The smart contracts are published to npm as a package. The package name is @tokenizeit/contracts. This makes it easy to use the contracts in other projects (e.g. in our web app).
Currently, no automated publishing is set up. Publishing is done manually. To publish a new version, follow these steps:
-
Update version in package.json and create git tag:
npm version <newversion>
The version number must be a valid semver version. The version number must be higher than the current version number.
-
Build the contracts:
yarn build
-
Test without publishing:
npm publish [--tag <alpha/beta>] --dry-run
-
Check if all necessary files are contained and no secrets are leaked.
-
If everything is fine, publish:
npm publish [--tag <alpha/beta>]
Sadly, yarn publish did not work at the time of writing. It appeared to have trouble with the 2FA.