#!/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=$(dfxidentityget-principal)# Change the variable to the principal that controls archive canisters.export ARCHIVE_CONTROLLER=$(dfxidentityget-principal)export TOKEN_NAME="TM Token"export TOKEN_SYMBOL=XTMdfxdeploy--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}\"; }}})"
(5) deploy
$dfxstart--background--clean$bashdeploy_token.sh
(6) deploy
$ dfx start --background --clean
その他情報
The Internet Computer Token Standards: A Comparison