Skip to content

Latest commit

 

History

History

starknet-gauntlet-token

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Gauntlet Starknet Commands for LINK Token

Token

Declare

To delcare the class hash of a contract:

yarn gauntlet token:declare --network=<NETWORK>

Deploy

The contract is pre-configured to be the LINK token contract.

yarn gauntlet token:deploy --network=<NETWORK> --owner=<OWNER_ADDRESS>

To deploy by referencing an existing class hash:

yarn gauntlet token:deploy --classHash=<CLASS_HASH> --network=<NETWORK> --owner=<OWNER_ADDRESS>

IMPORTANT: For the token contract to be used in L1<>L2 bridging the owner must be the L2 Bridge address.

Mint

yarn gauntlet token:mint --network=<NETWORK> --recipient=<RECPIENT_ACCOUNT> --amount=<AMOUNT> <TOKEN_CONTRACT_ADDRESS>

Transfer

yarn gauntlet token:transfer --network=<NETWORK> --recipient=<RECPIENT_ACCOUNT> --amount=<AMOUNT> <TOKEN_CONTRACT_ADDRESS>

Check balance

yarn gauntlet token:balance_of --network=<NETWORK> --address=<ACCOUNT_ADDRESS> <TOKEN_CONTRACT_ADDRESS>

Upgrade

yarn gauntlet token:upgrade --network=<NETWORK> --classHash=<CLASS_HASH> <TOKEN_CONTRACT_ADDRESS>