.cryptocash-token-trait
This doc is wip of v1 .cryptocash-token-trait contract - for CryptoCash needs
activate-token
: This function seems to activate a token for a given principal (possibly a user). It takes a principal and a uint parameter and returns a boolean indicating success or failure, along with a uint.set-token-uri
: This function sets the URI for the token. It takes an optional string parameter and returns a boolean indicating success or failure, along with a uint.mint
: This function mints tokens for a given principal. It takes a uint parameter (possibly representing the number of tokens) and a principal parameter and returns a boolean indicating success or failure, along with a uint.burn
: This function burns tokens for a given principal. It takes a uint parameter (possibly representing the number of tokens to burn) and a principal parameter and returns a boolean indicating success or failure, along with a uint.send-many
: This function sends tokens to multiple recipients. It takes a list of up to 200 entries, each containing a 'to' principal, an 'amount' uint, and an optional 'memo' buffer parameter. It returns a boolean indicating success or failure, along with a uint.
Last updated