Observed since 20 Oct, 22:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0x/contracts-gen
Generates boilerplate code for smart contracts packages
This package allows you to generate boilerplate TypeScript code and configs for smart contracts packages.
yarn add -g @0x/contracts-gen
Run it from within your smart contracts packages.
contracts-gen
You should run this tool after each time you move your contracts around to regenerate boilerplate code and configs.
This tool does the following:
compiler.json. Specifically the list of smart contracts.wrapper.ts file which exports all contract wrappers.artifacts.ts file which exports all contract artifacts.tsconfig.jsonpackage.jsonOn top of that - if your compiler.json has contracts referenced just by name - it will resolve the name to relative path and put it there.
It also sorts all the lists in it's output leading to smaller and cleaner diffs.
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.
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
yarn config set workspaces-experimental true
Then install dependencies
yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
PKG=@0x/contracts-gen yarn build
Or continuously rebuild on change:
PKG=@0x/contracts-gen yarn watch
yarn clean
yarn lint
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
lodashEnvironment{
"local_name": "lodash",
"alias": false,
"peer_metadata": null
} | ^4.17.11 | runtime |
prettierEnvironment{
"local_name": "prettier",
"alias": false,
"peer_metadata": null
} | ^1.16.3 | runtime |
@0x/typesEnvironment{
"local_name": "@0x/types",
"alias": false,
"peer_metadata": null
} | ^2.1.1 | runtime |
@0x/utilsEnvironment{
"local_name": "@0x/utils",
"alias": false,
"peer_metadata": null
} | ^4.2.1 | runtime |
to-snake-caseEnvironment{
"local_name": "to-snake-case",
"alias": false,
"peer_metadata": null
} | ^1.0.0 | runtime |
ethereum-typesEnvironment{
"local_name": "ethereum-types",
"alias": false,
"peer_metadata": null
} | ^2.1.0 | runtime |
@0x/sol-resolverEnvironment{
"local_name": "@0x/sol-resolver",
"alias": false,
"peer_metadata": null
} | ^2.0.4 | runtime |
@0x/typescript-typingsEnvironment{
"local_name": "@0x/typescript-typings",
"alias": false,
"peer_metadata": null
} | ^4.1.0 | runtime |
shxEnvironment{
"local_name": "shx",
"alias": false,
"peer_metadata": null
} | ^0.2.2 | development |
tslintEnvironment{
"local_name": "tslint",
"alias": false,
"peer_metadata": null
} | 5.11.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | 3.0.1 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | * | development |
@types/prettierEnvironment{
"local_name": "@types/prettier",
"alias": false,
"peer_metadata": null
} | ^1.15.2 | development |
@0x/tslint-configEnvironment{
"local_name": "@0x/tslint-config",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | development |
Source distribution
{
"shasum": "2bde898060d7ef3e1c12077399c934b984df08ad",
"tarball": "https://registry.npmjs.org/@0x/contracts-gen/-/contracts-gen-1.0.4.tgz",
"fileCount": 19,
"integrity": "sha512-1G29JGtMTVn+cGSVgMjBeoR3P08RS7Kb8NCQSTnVvDX+gT0WEX0VI+9pKcHz+lOb7XjzojryJa6RoV/crzijVA==",
"signatures": [
{
"sig": "MEUCIQC2xYACGe9iU+TAUGbOInW4y6UvwdHSElw0KmEKnmoSWAIgf8up7maTxyQqbEYuMBJ6sNW8fv3/MVJIVXtVMjTOFc0=",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
],
"unpackedSize": 21478,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdcGuCRA9TVsSAnZWagAAf9IP/2IyQrtP02CYBTokET78\nZb/PHRPA5Ai4i7m/ZYtwGscAFhA9BgXmEQjIQXdjg5R0HdDN4Wus9F91AOg+\nX0onbYTugHz/WgLuLLY8pNDIn3181Hxl+mtontLh0QmK1xIGOwhEFE37WLXC\noESP5EhKNtx8Ch5O1/WEC6/qSvCTJB3TyV2r/hG17TBeomCSKTiFrLJ7zTZM\ndOw4gWuWOKvAuc+obE/YsGLvKlh4aOCOObQuUnMyC1mSsfRG2lZkI0cb3kmE\n535b7k4T23pPk04kUhr+d5/RYOn4BYloEwRzDUAv0PvZ5sPAmnCNUw9xdO5P\nQSEMhhE8/6CwN8ac05lbmFQ4LQno9vafhQJLNaAr7nAUQlgsNprD1pTm1sdP\nZ3hSAA2LWr3qouH59bynFU3zfvGzGPoM9uWpJ/uzbUHRVc/ZoZbfSywEjS23\nlIrODvuD+7peWEmqxOc0KtV80f+RcWUnd/WoSwnfd9OJWJNfOJQGYxyksfxw\nGGSvC/3nw2mAw+3GZ0/ydroerHIAfiQ3zeqpjPujD0WynTL1FK3jaKYM5vDK\nKtk1TT/g902bbqy//og8gWGea1f7HUPNi9H1WYLtXKon0RsBEA1dt7FCrGnO\nmoOl3V/ktiCNKiqzPL0YYkelGYq8NWv2bHAv4FGitFMm8Y083tljvG+wfaK+\nfRul\r\n=1OW2\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 22:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:47bd6ed70a1511cce63aba02bcee01ac72fbc279e23ecc956db6e65717c02b17