$ bash download_latest_icrc1_ledger.sh
Found artifacts for commit 21fa6190f619ae1179e3511092cd5644f61ceb3e. Downloading icrc1_ledger.did and icrc1_ledger.wasm.gz
#!/bin/bash
# Change the variable to "ic" to deploy the ledger on the mainnet.
export NETWORK=local
# Change the variable to the principal that can mint and burn tokens.
export MINTER_PRINCIPAL=$(dfx identity get-principal)
# Change the variable to the principal that controls archive canisters.
export ARCHIVE_CONTROLLER=$(dfx identity get-principal)
export TOKEN_NAME="TM Token"
export TOKEN_SYMBOL=XTM
dfx deploy --network ${NETWORK} icrc1-ledger --argument "(variant { Init =
record {
token_name = \"${TOKEN_NAME}\";
token_symbol = \"${TOKEN_SYMBOL}\";
minting_account = record { owner = principal \"${MINTER_PRINCIPAL}\";};
initial_balances = vec {};
metadata = vec {};
transfer_fee = 10;
archive_options = record {
trigger_threshold = 2000;
num_blocks_to_archive = 1000;
controller_id = principal \"${ARCHIVE_CONTROLLER}\";
}
}})"