This project contains CKB smart contracts and unit tests.
The contracts (e.g., vault-type) use network-specific constants such as ALWAYS_SUCCESS and xUDT code hashes. You can dynamically switch configurations at build time by passing the NETWORK variable:
make build NETWORK=mainnetmake build NETWORK=testnetmake build NETWORK=testing
# Or run tests directly (which automatically builds with the testing profile)
make test- Option A: In
contracts/vault-type/src/configs/, create a new configuration file (e.g.,constants.mydevnet.rs). Fill in your custom hashes, and run:make build NETWORK=mydevnet
- Option B: Directly edit
src/constants.rsinside the contract directory, and build withNETWORK=custom(or simply omitNETWORKentirely, since by default it will not overwriteconstants.rs):make build NETWORK=custom
This project was bootstrapped with ckb-script-templates.