Asset Built-in Contract
Contract Address
vite_000000000000000000000000000000000000000595292d996d
ABI
[
// Issue new token
{"type":"function","name":"IssueToken","inputs":[{"name":"isReIssuable","type":"bool"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"totalSupply","type":"uint256"},{"name":"decimals","type":"uint8"},{"name":"maxSupply","type":"uint256"},{"name":"isOwnerBurnOnly","type":"bool"}]},
// Re-issue. Mint additional tokens
{"type":"function","name":"ReIssue","inputs":[{"name":"tokenId","type":"tokenId"},{"name":"amount","type":"uint256"},{"name":"receiveAddress","type":"address"}]},
// Burn
{"type":"function","name":"Burn","inputs":[]},
// Transfer ownership of re-issuable token
{"type":"function","name":"TransferOwnership","inputs":[{"name":"tokenId","type":"tokenId"},{"name":"newOwner","type":"address"}]},
// Change token type from re-issuable to non-reissuable
{"type":"function","name":"DisableReIssue","inputs":[{"name":"tokenId","type":"tokenId"}]},
// Get token information
{"type":"function","name":"GetTokenInformation","inputs":[{"name":"tokenId","type":"tokenId"}]},
// Token issuance event
{"type":"event","name":"issue","inputs":[{"name":"tokenId","type":"tokenId","indexed":true}]},
// Token re-issuance event
{"type":"event","name":"reIssue","inputs":[{"name":"tokenId","type":"tokenId","indexed":true}]},
// Burn event
{"type":"event","name":"burn","inputs":[{"name":"tokenId","type":"tokenId","indexed":true},{"name":"burnAddress","type":"address"},{"name":"amount","type":"uint256"}]},
// Ownership transfer event
{"type":"event","name":"transferOwnership","inputs":[{"name":"tokenId","type":"tokenId","indexed":true},{"name":"owner","type":"address"}]},
// Token type change event
{"type":"event","name":"disableReIssue","inputs":[{"name":"tokenId","type":"tokenId","indexed":true}]},
// Callback for GetTokenInformation
{"type":"callback","name":"GetTokenInformation","inputs":[{"name":"id","type":"bytes32"},{"name":"tokenId","type":"tokenId"},{"name":"exist","type":"bool"},{"name":"isReIssuable","type":"bool"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"},{"name":"totalSupply","type":"uint256"},{"name":"decimals","type":"uint8"},{"name":"maxSupply","type":"uint256"},{"name":"isOwnerBurnOnly","type":"bool"},{"name":"index","type":"uint16"},{"name":"ownerAddress","type":"address"}]}
]
Warning
Due to historical reasons, this contract also contains a number of other ABIs that are NOT listed on this page. These functions are deprecated and no longer in use. Do NOT use them in your code.
IssueToken
Mint a new token with an initial supply. The minted token will be sent to the issuer's account. The cost to mint a token is 1,000 VITE.
- Parameters:
tokenName
:string
Token nametokenSymbol
:string
Token symboltotalSupply
:bigint
Total initial supplydecimals
:uint8
Token decimalsmaxSupply
:bigint
Maximum supplyisReIssuable
:bool
Reissuable flagisOwnerBurnOnly
:bool
true
means the token can only be burned by the owner. Deprecated
ReIssue
Mint additional units of a re-issuable token and increase the token's total supply. Tokens with fixed supply cannot be reissued.
Note: Only the token owner can perform this operation.
- Parameters:
tokenId
:tokenId
Token idamount
:bigint
Reissue amountreceiveAddress
:address
Receive Address
Burn
Burn units of a re-issuable token and reduce the total supply. Tokens with fixed supply cannot be burned.
- Parameters: none
TransferOwnership
Transfer a re-issuable token's ownership to another account.
Note
Only the token owner can perform this operation.
DisableReIssue
Permanently change a re-issuable token to non-reissuable.
Note
Only the token owner can perform this operation.
- Parameters:
tokenId
:tokenId
Token id
GetTokenInformation
Get a token's information. This function is provided for another contract to get a token's information within the contract. For client programs, you should call RPC contract_getTokenInfoById
.
- Parameters:
tokenId
:tokenId
Token id
Callback GetTokenInformation
The callback function of GetTokenInformation
. This will be called back by the Asset contract to return the result.
Note
The current Solidity++ 0.8.0 does not support more than 9 arguments. Solidity++ 0.8.2 will expand this limit to 16.
- Parameters:
id
:bytes32
Hash ofGetTokenInformation
transactiontokenId
:tokenId
Token idexist
:bool
true
means the token existsisReIssuable
:bool
true
means the token is re-issuabletokenName
:string
Token nametokenSymbol
:string
Token symboltotalSupply
:bigint
Total supplydecimals
:uint8
Token decimalsmaxSupply
:bigint
Maximum supplyisOwnerBurnOnly
:bool
true
means the token can only be burned by the owner. Deprecatedindex
:uint16
Token indexownerAddress
:address
Address of token owner