Example Token
The code of the IBEP20, IPantosInterface, PantosBaseToken and a reference implementation
IBEP20
The IBEP20 interface is a set of standardized functions and events that must be implemented by token contracts to be compatible with the Pantos Digital Asset Standard (PANDAS). It inherits from the ERC20 token standard, ensuring compatibility with various blockchain ecosystems.
IPantosInterface
The IPantosToken interface is a set of standardized functions and events that must be implemented by token contracts to be compatible with the Pantos Digital Asset Standard (PANDAS). It inherits from the ERC20 token standard, ensuring compatibility with various blockchain ecosystems. The interface defines additional functions and events specifically tailored for cross-chain functionality, such as pantosTransfer, pantosTransferFrom, pantosTransferTo, and getPantosForwarder. By implementing this interface, token contracts can utilize Pantos Hub's cross-chain functionality.
PantosBaseToken
The PantosBaseToken is a base token contract that implements the IPantosToken interface, providing a foundation for creating custom tokens that are compatible with the Pantos Digital Asset Standard (PANDAS). This base contract ensures that the necessary functions and events for cross-chain functionality are implemented correctly, simplifying the process of creating new tokens. Developers can inherit from PantosBaseToken and extend it with their custom logic to create a new token that is compatible with Pantos Hub and can be transferred between various blockchains seamlessly.
Example Token inherit from PantosBaseToken
The Example Token is a custom token that inherits from the PantosBaseToken. It is designed to be compatible with the Pantos Digital Asset Standard (PANDAS), making it easy to transfer the token across different blockchains. The Example Token has a name, symbol, and decimals value, which are set in the contract.
Last updated