The NFT staking platform supported for Aura network.
| Name | Description |
|---|---|
campaign_factory |
Handle the information related to campaigns. Also create new staking campaigns |
campaign |
Each contract contains a staking campaign |
You will need Rust 1.66.0+ with wasm32-unknown-unknown target installed.
The contracts can be compiled using cargo
cargo build
with the optimizer is
optimizer_version = '0.12.11'Build .wasm file stored in target/wasm32-unknown-unknown/release/<CONTRACT_NAME>.wasm
--no-wasm-opt is suitable for development, explained below
To run the tests for the contract, run the following command:
RUST_BACKTRACE=1 cargo unit-testThis will build the contract and run a series of tests to ensure that it functions correctly. The tests are defined in the ./tests directory.