A factory smart contract for creating NFT challenges, the factory keeps track of nft challenges it's created. Note, if you make any changes to the challenge contract, you'll need to
get the compiled target/wasm32-unknown-unknown/release/nft_challenge.wasm
file within the challenge contract repo after building and replace the existing nft-challenge.wasm
file at wasm/nft-challenge.wasm
location in this repo. Note you need to rename nft_challenge.wasm
to nft-challenge.wasm
as well.
The challenges generated will be at the account id {ID_PREFIX}.{ID OF THIS FACTORY CONTRACT}
For example if I created a challenge with the id prefix of my-challenge, and the challenge factory contract was deployed at challenge-factory.testnet, then the challenge contract would be deployed at account my-challenge.challenge-factory.testnet
Install cargo-near
and run:
cargo near build
cargo test
Deployment is automated with GitHub Actions CI/CD pipeline.
To deploy manually, install cargo-near
and run:
cargo near deploy <account-id>
- cargo-near - NEAR smart contract development toolkit for Rust
- near CLI - Iteract with NEAR blockchain from command line
- NEAR Rust SDK Documentation
- NEAR Documentation
- NEAR StackOverflow
- NEAR Discord
- NEAR Telegram Developers Community Group
- NEAR DevHub: Telegram, Twitter