Interface.izrc20
IZRC20
Git Source (opens in a new tab)
Interface for the ZRC20 token contract.
Functions
totalSupply
function totalSupply() external view returns (uint256);
balanceOf
function balanceOf(address account) external view returns (uint256);
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
allowance
function allowance(address owner, address spender) external view returns (uint256);
approve
function approve(address spender, uint256 amount) external returns (bool);
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
deposit
function deposit(address to, uint256 amount) external returns (bool);
burn
function burn(uint256 amount) external returns (bool);
withdraw
function withdraw(bytes memory to, uint256 amount) external returns (bool);
withdrawGasFee
function withdrawGasFee() external view returns (address, uint256);
withdrawGasFeeWithGasLimit
function withdrawGasFeeWithGasLimit(uint256 gasLimit) external view returns (address, uint256);
PROTOCOL_FLAT_FEE
Name is in upper case to maintain compatibility with ZRC20.sol v1
function PROTOCOL_FLAT_FEE() external view returns (uint256);
GAS_LIMIT
Name is in upper case to maintain compatibility with ZRC20.sol v1
function GAS_LIMIT() external view returns (uint256);
setName
function setName(string memory newName) external;
setSymbol
function setSymbol(string memory newSymbol) external;
Continue Learning
Continue with the next part or try a related tutorial
How has your developer experience been?
Share your feedback and help improve it for everyone.