This project was generated with Trampoline.
High level functions that use a TContract to perform operations (by generating transactions) that interact with IAMM NFTs.
Molecule-defined structures and bindings to rust-native types.
Smart contracts written with Capsule
To build generators and schemas, run cargo build --workspace.
To build the contracts using Capsule:
- Ensure Capsule is installed
cargo install ckb-capsule cd scripts/iamm_nftcapsule build
Ensure you have the necessary pre-requisites installed:
- install ckb-binary-patcher
cargo install --git https://github.com/xxuejie/ckb-binary-patcher.git - add target
rustup target add riscv64imac-unknown-none-elfapt-get install gcc-riscv64imac-unknown-none-elf
Then, to build the nft contract: cd scripts/iamm_nft and bash build.sh.
If the bash script produces errors such as this:
error: failed to run custom build command for ckb-std v0.9.0
then you may need to install the the riscv toolchain
Note: We do not use capsule build because it prevents using the iamm_nft-schemas package as a dependency due to the project structure.