Skip to content

cryptogamesinc/astar_showgame

Repository files navigation

RMRK ink!

workflow stack-exchange discord built-with-ink License

Implementation of RMRK protocol in ink! Smart contract language

Quick start

  1. Make sure you have the latest cargo contract

  2. Clone the repository

git clone https://github.com/rmrk-team/rmrk-ink.git
  1. Compile & Build
cd ./rmrk-ink/contracts/rmrk
cargo +nightly contract build --release
  1. Run ink! unit tests
cargo test
  1. 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

以下、AstarGamesショーゲームのコントラクトの実装方法です。

  1. 「equippable」フォルダに移動

 cd examples/equippable

  1. contractのビルド(作成時点でのコマンド)

 cargo +nightly-2023-02-07 contract build

  1. 使用するファイル

target/ink/rmrk_example_equippable/rmrk_example_equippable.contract

  1. Substrateにてデプロイ

https://contracts-ui.substrate.io/add-contract

  1. 初期設定

URLなどのデフォルトを設定するために、以下の関数を実施

multiAsset::setDefault

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published