Skip to content

TENAMINT/nft-challenge-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nft-challenge-factory

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.

Important:

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

How to Build Locally?

Install cargo-near and run:

cargo near build

How to Test Locally?

cargo test

How to Deploy?

Deployment is automated with GitHub Actions CI/CD pipeline. To deploy manually, install cargo-near and run:

cargo near deploy <account-id>

Useful Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages