NOTE: these steps were done on Ubuntu 21.04
git clone [email protected]:Psychedelic/dab.git
git checkout main
git pull
Skip this section if you have already setup dependencies for deploying the canister.
If you are missing any packages:
apt-get update -y
apt-get install -y libssl-dev pkg-config
If you haven't installed the wasm32 target, install it with
rustup target add wasm32-unknown-unknown
If you haven't installed the IC CDK optimizer, install it with the following. Run this from a directory where there is no Cargo.toml:
cargo install ic-cdk-optimizer
If cargo.lock file has been changed, run
cargo update
Build and test
node build.js
cargo test
dfx canister --network=ic --no-wallet install nft --mode=upgrade
cd scripts
chmod +x add.js
./add.js path/to/your/csv/file