The PantosToken ABI is a JSON representation of the PantosToken smart contract's interface, containing the functions and events necessary for interacting with cross-chain tokens
The ABI acts as an interface between the contract's bytecode and the outside world. Here's a breakdown of the important elements in the PantosToken ABI:
Events
Approval: Emitted when the allowance of a spender for an owner is set by a call to approve. value is the new allowance.
Transfer: Emitted when value tokens are moved from one account (from) to another (to).
Functions
allowance: Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transferFrom.
approve: Sets amount as the allowance of spender over the caller’s tokens. Returns a boolean value indicating whether the operation succeeded.
balanceOf: Returns the token balance of a specified account.
decimals: Returns the number of decimal places used for user representation.
decreaseAllowance: Decreases the allowance granted to a spender by the caller.
increateAllowance: Increases the allowance granted to a spender by the caller.
name: Returns the name of the token.
symbol: Returns the symbol of the token, usually a shorter version of the name.
totalSupply: Returns the amount of tokens in existence.