Catalog npm
Back to packageRELEASE DETAILS

12.0.0

npm

@0x/contract-wrappers

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

0xprojectethereumexchangetokens
Published3 Sept 2019
Direct dependencies33
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 33

Native requirements
33 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x/dev-utils
Environment
{
  "local_name": "@0x/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^2.3.2runtime
@0x/migrations
Environment
{
  "local_name": "@0x/migrations",
  "alias": false,
  "peer_metadata": null
}
^4.3.1runtime
@0x/order-utils
Environment
{
  "local_name": "@0x/order-utils",
  "alias": false,
  "peer_metadata": null
}
^8.3.1runtime
@0x/subproviders
Environment
{
  "local_name": "@0x/subproviders",
  "alias": false,
  "peer_metadata": null
}
^5.0.3runtime
@0x/base-contract
Environment
{
  "local_name": "@0x/base-contract",
  "alias": false,
  "peer_metadata": null
}
^5.3.3runtime
http-status-codes
Environment
{
  "local_name": "http-status-codes",
  "alias": false,
  "peer_metadata": null
}
^1.3.2runtime
@0x/fill-scenarios
Environment
{
  "local_name": "@0x/fill-scenarios",
  "alias": false,
  "peer_metadata": null
}
^3.0.18runtime
@0x/abi-gen-wrappers
Environment
{
  "local_name": "@0x/abi-gen-wrappers",
  "alias": false,
  "peer_metadata": null
}
^5.3.1runtime
@0x/contract-addresses
Environment
{
  "local_name": "@0x/contract-addresses",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
@0x/contract-artifacts
Environment
{
  "local_name": "@0x/contract-artifacts",
  "alias": false,
  "peer_metadata": null
}
^2.2.1runtime
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
nock
Environment
{
  "local_name": "nock",
  "alias": false,
  "peer_metadata": null
}
^10.0.6development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
~4.0.4development
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.15.0development
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^2.4.2development
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^4.5.1development
@0x/assert
Environment
{
  "local_name": "@0x/assert",
  "alias": false,
  "peer_metadata": null
}
^2.1.5development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
@types/nock
Environment
{
  "local_name": "@types/nock",
  "alias": false,
  "peer_metadata": null
}
^10.0.3development
@0x/ts-doc-gen
Environment
{
  "local_name": "@0x/ts-doc-gen",
  "alias": false,
  "peer_metadata": null
}
^0.0.21development
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^2.1.5development
@0x/json-schemas
Environment
{
  "local_name": "@0x/json-schemas",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^6.0.12development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^3.0.1development
@0x/coordinator-server
Environment
{
  "local_name": "@0x/coordinator-server",
  "alias": false,
  "peer_metadata": null
}
^0.1.3development
@0x/contracts-test-utils
Environment
{
  "local_name": "@0x/contracts-test-utils",
  "alias": false,
  "peer_metadata": null
}
^3.1.15development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "297a79d52a5032db3e0aa1e640607ba279d2b536",
  "tarball": "https://registry.npmjs.org/@0x/contract-wrappers/-/contract-wrappers-12.0.0.tgz",
  "fileCount": 57,
  "integrity": "sha512-IDxvc77za18s9aPeU20t/cDBfh1uZ0Wr8xgyTWXtLeQKJK9QCbnzaM1/ye0/J4IRrf9awhjSTrMacBYE2IN3qg==",
  "signatures": [
    {
      "sig": "MEQCIFQr7T7H1oQgxdtGoVbrIVMp16/WMuGdG9ipfozdvDg6AiBlnTlLSpVaJZx9xlifGZTGVYlwyPvt5Gs5Z1DCZBreEQ==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 243829,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdbnzyCRA9TVsSAnZWagAAMfIQAIqhLb5opYVudWZu1ppQ\n9w++ogWNCKfnulfX12MfwZVTVArFz/b/I/f3dxgWpPqYPNjZThi9IqmT/YPY\nQ2+kUxqCaJpbXpxRG9j8DHC44d3EiN3II4Zc2/z5+OtQrmWFm+x4youb0auI\n+DV2hJtx4/B+PusveBNPPbRkx5uXEXNpZp/HAPapUmVp6hEqcBDacbv0YMxq\njgt4ks9O10VuVbHVjWrRVXwPOrOzgLLpbe/G13JdG4Jq5f/iKFh/FsDSTb7D\nxkkTCP/eQclaMhpJYtcyWDe2S6tw20xCXN8Rc/8iTbH7BkuVjEwQtwo0IvJ7\nA0ryGf/1G5Fz9CxucKX311ThnjZSF8DOkur3E4EjPKfYvpyJHYjg3QTHFLjY\nN2IFoGI8GzLGj758L6QFPnUPU6Udt1/MPLw8w7oldz2CqjLiMa/lIwI867TY\njbTZaOQeuegz+VxgXs1N3EX96knfQX7EphZjwaIUogZzUjhnisvODCwGXw6P\nrYH/aaoklz/B0TpT2gpn25m8ORkqv9jfIwNbQOCVw88byGA1Ds6MWv6SH70h\nMRuCcZqR/9rWAk2q0/o6+JUUZ1brGYG9Z92vltp6PZU0HvrrdSfCr+6R0jUL\nC5FFj92OufVftnIcai+TVRDxFtvPccqNzdNTJAaJUxuBZlQGjFn0Rg+S0PL3\nsxND\r\n=kQEQ\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:a7d9f3f160b82828ffbb9a7be76d0a449189fa38f4c5ad977d2b56a238e07971

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 →