使用 NEP-171 规范 (类似于 ERC-721) 来实现用于表示独一无二资产(如收藏品或契约)的令牌的示例实现
This repository contains an example implementation of a non-fungible token contract in Rust which uses near-contract-standards and workspaces-rs tests.
Note: If you'd like to learn how to create an NFT contract from scratch that explores every aspect of the NEP-171 standard including an NFT marketplace, check out the NFT Zero to Hero Tutorial.
Install cargo-near and run:
cargo near buildNote: to avoid issues, be sure to update your Rust compiler with
rustup update stable
cargo testTo deploy manually, install cargo-near and run:
# Create a new account
cargo near create-dev-account
# Deploy the contract on it
cargo near deploy
# Initialize the contract
near call new_default_meta '{"owner_id": ""}' --accountId …暂无开放 Issues,或尚未同步最近议题。