- This project was written taking reference of icrc7
- Stable Memory
- Pre and Post upgrading
- Transaction Deduplication
Remaining/
- Chunk Upload for larger images
- Transaction Log with filters
- HTTP Handling
If you want to test your project locally, you can use the following commands:
# Build the project
chmod +x scripts/build.sh
./scripts/build.sh
# Starts the replica, running in the background
dfx start --background
# Sets minting authority
export MINTING_AUTHORITY=$(dfx identity get-principal)
# Deploys your canisters to the replica and generates your candid interface
dfx deploy icrc7 --argument '(record {
tx_window=24;
permitted_drift=2;
name="Icrc7 Token";
symbol="ICRC7";
minting_authority=opt principal"'${MINTING_AUTHORITY}'";
royalties=null;
royalties_recipient=null;
description=opt "ICRC7 Standard Token";
image=null;
supply_cap=null;
})'
# Mints token
dfx canister call icrc7 icrc7_mint '(record{
id=100;
name="Icrc7 100";
description=opt "100th token of the collection";
image=null;
to=record{
owner=principal"2vxsx-fae";
subaccount=null;
};
})'
# Returns owner of
dfx canister call icrc7 icrc7_owner_of '(100)'