PantosToken ABI
The Pantos Token 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 Pantos Token ABI.
Functions
pantosTransfer
Called by the Pantos Forwarder to transfer tokens on a blockchain.
The function is only callable by a trusted Pantos Forwarder contract and thefore can't be invoked by a user. The function is used to transfer tokens on a blockchain between the sender and recipient. Revert if anything prevents the transfer from happening.
Parameters
sender
address
The address of the sender of the tokens.
recipient
address
The address of the recipient of the tokens.
amount
uint256
The amount of tokens to mint.
pantosTransferFrom
Called by the Pantos Forwarder to debit tokens on the source blockchain during a cross-chain transfer.
The function is only callable by a trusted Pantos Forwarder contract and thefore can't be invoked by a user. The function is used to burn tokens on the source blockchain to initiate a cross-chain transfer. Revert if anything prevents the transfer from happening.
Parameters
sender
address
The address of the sender of the tokens.
amount
uint256
The amount of tokens to send/burn.
pantosTransferTo
Called by the Pantos Forwarder to mint tokens on the destination blockchain during a cross-chain transfer.
The function is only callable by a trusted Pantos Forwarder contract and thefore can't be invoked by a user. The function is used to mint tokens on the destination blockchain to finish a cross-chain transfer. Revert if anything prevents the transfer from happening.
Parameters
recipient
address
The address of the recipient of the tokens.
amount
uint256
The amount of tokens to mint.
getPantosForwarder
Returns the address of the Pantos Forwarder contract.
Returns
<none>
address
Address of the Pantos Forwarder.
totalSupply
Returns the value of tokens in existence.
balanceOf
Returns the value of tokens owned by account
.
transfer
allowance
approve
transferFrom
decimals
Returns
<none>
uint8
The token decimals.
symbol
Returns
<none>
string
The token symbol.
name
Returns
<none>
string
The token name.
getOwner
Returns
<none>
address
The token owner.
supportsInterface
Returns true if this contract implements the interface defined by interfaceId
. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
Events
PantosForwarderSet
PantosForwarderUnset
Transfer
Emitted when value
tokens are moved from one account (from
) to another (to
). Note that value
may be zero.
Approval
ABI
Last updated