Catalog npm
Back to packageRELEASE DETAILS

13.11.0

npm

@0x/contract-wrappers

Wrappers for 0x smart contract wrappers generated using @0x/abi-gen

0xprojectethereumexchangetokens
Published9 Dec 2020
Direct dependencies15
Transitive dependenciesNot calculated

README

Current package documentation

@0x/contract-wrappers

Wrappers for 0x smart contracts, generated using @0x/abi-gen.

Installation

Install

npm install @0x/contract-wrappers --save

Import

import { ContractWrappers } from '@0x/contract-wrappers';

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/contract-wrappers yarn build

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Documentation

Documentation for this package is generated by TypeDoc, using the Solidity source code for 0x contracts. Each contract corresponds to one global-level module, which contains relevant enums and interfaces for its events and structs. Most significantly, each module exports a class, <ContractName>Contract, e.g. ExchangeContract, which implements helper methods for all the functions defined in the corresponding contract.

A convention to note is that these contract-specific helper methods are defined as object literals, which are separated from methods in the generated documentation. Each contract method has a number of sub-methods, e.g. sendTransactionAsync, or estimateGasAsync, which are documented separately. This is an example of an expected method call signature: exchangeContractInstance.fillOrder.sendTransactionAsync(...arguments).

Development

This package contains generated code. We use the abi-gen utility to generate wrappers from compiler artifacts in @0x/contract-artifacts. To re-generate wrappers, e.g. when @0x/contract-artifacts has been updated, run yarn wrappers:generate && yarn wrappers:prettier.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 15

Native requirements
15 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
~4.0.4runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.3.1runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.1.1runtime
@0x/assert
Environment
{
  "local_name": "@0x/assert",
  "alias": false,
  "peer_metadata": null
}
^3.0.19runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.4.0runtime
@0x/json-schemas
Environment
{
  "local_name": "@0x/json-schemas",
  "alias": false,
  "peer_metadata": null
}
^5.3.4runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.3.0runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^6.2.14runtime
@0x/contract-addresses
Environment
{
  "local_name": "@0x/contract-addresses",
  "alias": false,
  "peer_metadata": null
}
^5.6.0runtime
gitpkg
Environment
{
  "local_name": "gitpkg",
  "alias": false,
  "peer_metadata": null
}
git+https://github.com/0xProject/gitpkg.gitdevelopment
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
~0.16.11development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
@0x/ts-doc-gen
Environment
{
  "local_name": "@0x/ts-doc-gen",
  "alias": false,
  "peer_metadata": null
}
^0.0.28development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.1.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "7b0940e8cbf0e0b863fcdd3d0de3b345f76c7449",
  "tarball": "https://registry.npmjs.org/@0x/contract-wrappers/-/contract-wrappers-13.11.0.tgz",
  "fileCount": 89,
  "integrity": "sha512-8IETC0rlxQ9YxGIK9gcVvx4mq232/EYmfPEh3jmobPj5SW+cS+3jEJfwGaj1rDk3/A1nU9b4btt+7NT7DKpvCA==",
  "signatures": [
    {
      "sig": "MEQCIFVgfw1b52ikcAg/ClZHHI6bqfrjU7EZWA6QLEAWU65NAiB+/GaEEf0WFgQDET34s7fVDSQsjcDNbbpLA72tupAI5Q==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 2140787,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0EdcCRA9TVsSAnZWagAAp3QP/3oy/1uRfmYoxBw/r+eK\nRh6pAyUJ6gZHRzxFFVOoHsz1adzya1UMZ1MZLwAI39iejrNi0b08yTHAD7xV\n+PCGc7w0bF64nMdtSkQB+rpW5yAUs1wUBP4S2hqSODT3J5kCGQ06q9zI8Mkv\nFPhOOTuwFWYKdgHc/elB+Rbd8jc7ovxN747rhxw5PoBxaFowQ21rWn0r5utl\nl3lG20AEX1iCyIZ02iLwNJOecHfFG3C07QRObLLtScD3CYffcErwgq2ytuQl\nNG+MpJjiNv7neLcMn62BCPx9k6czzUX0eIgTYwnqynnJiDwh3EEE/eCcCltj\niKJf0VmTJInt8oWRvrnEeGu2Uwz2x2NmUQg7xX+Izkv3LnjrysIwahozxgzM\nkawseqAf1KKvpEEuNRt8yt+GIjULstXL0n87Rn1NgfeFyvsLwUTZP+NINGLS\nPs4z0SlJ4y4Km3kMkw1Kbv1TFDFRf4sjcSTQ95YkDm4bD5q4Hi8kN1DyZQ92\nX/4KYfuN45ACshDDHOItYxUG6oUgKSNyxoxwbB7XFwoGayXs5KUmwocyTJ0k\nrehqJaSDovSw3b/fuSOM28AOL9pz06CsNzuN1Zug1qqDojwdbrG0HpaBCzOH\nc6mgGrkr38ZtdH5VMa3YBAyRkcRflwmovmro0AjTuQjHSbyJ/decCH0w0zgt\nYSZY\r\n=yj4a\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/protocol

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:22 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:0a68ff1f82a4e6df5d724de2aec7e2caab1e206e6ae46c0fa3ecff2475352e4d

Other collected versions

13.23.816 Nov13.23.729 Aug13.23.618 Aug13.23.59 Aug13.23.421 Jul13.23.319 JulView all collected versions →