Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.27 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.27 KB

Buidl the contract

cargo concordium build --out dist/smart-contract-multi/module.wasm.v1 --schema-out dist/smart-contract-multi/schema.bin

Deploy the contract

concordium-client module deploy dist/smart-contract-multi/module.wasm.v1 --sender --name cis2_multi --grpc-port 10001

Initialize the contract

concordium-client contract init --sender --energy 30000 --contract cis2-multi --grpc-port 10001

Mint Semi-Fungible Tokens

concordium-client contract update --entrypoint mint --parameter-json nft-artifacts/mint-params.json --schema dist/smart-contract-multi/schema.bin --sender --energy 6000 --grpc-port 10001

View Contract State

concordium-client contract invoke --entrypoint view --schema dist/smart-contract-multi/schema.bin --grpc-port 10001

Check Metadata

concordium-client contract invoke --entrypoint tokenMetadata --parameter-json nft-artifacts/ids.json --schema dist/smart-contract-multi/schema.bin --grpc-port 10001

Transfer

concordium-client contract update --entrypoint transfer --parameter-json nft-artifacts/transfer.json --schema dist/smart-contract-multi/schema.bin --sender --energy 6000 --grpc-port 10001