Observed since 20 Oct, 22:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
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.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 2.0.51Registry latest | 7 Apr 2023 | 17 | |
| 2.0.50 | 7 Apr 2023 | 17 | |
| 2.0.49 | 26 Jan 2023 | 17 | |
| 2.0.48 | 13 Oct 2022 | 17 | |
| 2.0.47 | 18 Aug 2022 | 17 | |
| 2.0.46 | 16 Mar 2022 | 17 | |
| 2.0.45 | 16 Mar 2022 | 17 | |
| 2.0.44 | 26 Feb 2022 | 17 | |
| 2.0.43 | 19 Jan 2022 | 17 | |
| 2.0.42 | 27 Oct 2021 | 17 | |
| 2.0.41 | 23 Sept 2021 | 17 | |
| 2.0.40 | 25 Aug 2021 | 17 | |
| 2.0.39 | 28 Jun 2021 | 17 | |
| 2.0.38 | 28 Apr 2021 | 17 | |
| 2.0.37 | 26 Apr 2021 | 17 | |
| 2.0.36 | 26 Apr 2021 | 17 | |
| 2.0.35 | 26 Apr 2021 | 17 | |
| 2.0.34 | 6 Apr 2021 | 17 | |
| 2.0.33 | 24 Mar 2021 | 17 | |
| 2.0.32 | 17 Feb 2021 | 17 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f77834fcddf825a28bb2d7733d0b51be1cbe75f4b13a5f599e30e46e4360d543