Implementation of RMRK protocol in ink! Smart contract language
-
Make sure you have the latest cargo contract
-
Clone the repository
git clone https://github.com/rmrk-team/rmrk-ink.git
- Compile & Build
cd ./rmrk-ink/contracts/rmrk
cargo +nightly contract build --release
- Run ink! unit tests
cargo test
- Integration test Start local test node. Recommended swanky-node version 1.2 or higher. Download binary or run compiled version
./swanky-node --dev --tmp
To run tests:
yarn
yarn compile
yarn test
- 「equippable」フォルダに移動
cd examples/equippable
- contractのビルド(作成時点でのコマンド)
cargo +nightly-2023-02-07 contract build
- 使用するファイル
target/ink/rmrk_example_equippable/rmrk_example_equippable.contract
- Substrateにてデプロイ
https://contracts-ui.substrate.io/add-contract
- 初期設定
URLなどのデフォルトを設定するために、以下の関数を実施
multiAsset::setDefault