Expand description
Generated by the following Solidity interface…
interface EthERC20 {
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidApprover(address approver);
error ERC20InvalidReceiver(address receiver);
error ERC20InvalidSender(address sender);
error ERC20InvalidSpender(address spender);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Transfer(address indexed from, address indexed to, uint256 value);
constructor();
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function balanceOf(address account) external view returns (uint256);
function burn(address form, uint256 amount) external;
function decimals() external view returns (uint8);
function mint(address to, uint256 amount) external;
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function testSkip() external;
function totalSupply() external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "allowance",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "burn",
"inputs": [
{
"name": "form",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "decimals",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "mint",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "testSkip",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transfer",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "ERC20InsufficientAllowance",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "allowance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC20InsufficientBalance",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
},
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "needed",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"type": "error",
"name": "ERC20InvalidApprover",
"inputs": [
{
"name": "approver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidReceiver",
"inputs": [
{
"name": "receiver",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidSender",
"inputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC20InvalidSpender",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
}
]
}
]Structs§
- Approval
- Event with signature
Approval(address,address,uint256)and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. - ERC20
Insufficient Allowance - Custom error with signature
ERC20InsufficientAllowance(address,uint256,uint256)and selector0xfb8f41b2. - ERC20
Insufficient Balance - Custom error with signature
ERC20InsufficientBalance(address,uint256,uint256)and selector0xe450d38c. - ERC20
Invalid Approver - Custom error with signature
ERC20InvalidApprover(address)and selector0xe602df05. - ERC20
Invalid Receiver - Custom error with signature
ERC20InvalidReceiver(address)and selector0xec442f05. - ERC20
Invalid Sender - Custom error with signature
ERC20InvalidSender(address)and selector0x96c6fd1e. - ERC20
Invalid Spender - Custom error with signature
ERC20InvalidSpender(address)and selector0x94280d62. - EthER
C20Instance - A
EthERC20instance. - Transfer
- Event with signature
Transfer(address,address,uint256)and selector0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. - allowance
Call - Function with signature
allowance(address,address)and selector0xdd62ed3e. - allowance
Return - Container type for the return parameters of the
allowance(address,address)function. - approve
Call - Function with signature
approve(address,uint256)and selector0x095ea7b3. - approve
Return - Container type for the return parameters of the
approve(address,uint256)function. - balance
OfCall - Function with signature
balanceOf(address)and selector0x70a08231. - balance
OfReturn - Container type for the return parameters of the
balanceOf(address)function. - burn
Call - Function with signature
burn(address,uint256)and selector0x9dc29fac. - burn
Return - Container type for the return parameters of the
burn(address,uint256)function. - constructor
Call - Constructor`.
- decimals
Call - Function with signature
decimals()and selector0x313ce567. - decimals
Return - Container type for the return parameters of the
decimals()function. - mint
Call - Function with signature
mint(address,uint256)and selector0x40c10f19. - mint
Return - Container type for the return parameters of the
mint(address,uint256)function. - name
Call - Function with signature
name()and selector0x06fdde03. - name
Return - Container type for the return parameters of the
name()function. - symbol
Call - Function with signature
symbol()and selector0x95d89b41. - symbol
Return - Container type for the return parameters of the
symbol()function. - test
Skip Call - Function with signature
testSkip()and selector0x7cc17ba4. - test
Skip Return - Container type for the return parameters of the
testSkip()function. - total
Supply Call - Function with signature
totalSupply()and selector0x18160ddd. - total
Supply Return - Container type for the return parameters of the
totalSupply()function. - transfer
Call - Function with signature
transfer(address,uint256)and selector0xa9059cbb. - transfer
From Call - Function with signature
transferFrom(address,address,uint256)and selector0x23b872dd. - transfer
From Return - Container type for the return parameters of the
transferFrom(address,address,uint256)function. - transfer
Return - Container type for the return parameters of the
transfer(address,uint256)function.
Enums§
- EthER
C20Calls - Container for all the
EthERC20function calls. - EthER
C20Errors - Container for all the
EthERC20custom errors. - EthER
C20Events - Container for all the
EthERC20events.