Created
January 17, 2024 17:48
-
-
Save Olanetsoft/39051a113dfa080d7c58e6cfc8d878cc to your computer and use it in GitHub Desktop.
Interchain Token ABI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "interchainTokenServiceAddress", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ "inputs": [], "name": "AlreadyInitialized", "type": "error" }, | |
{ | |
"inputs": [], | |
"name": "InterchainTokenServiceAddressZero", | |
"type": "error" | |
}, | |
{ "inputs": [], "name": "InvalidAccount", "type": "error" }, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "fromAccount", "type": "address" }, | |
{ "internalType": "address", "name": "toAccount", "type": "address" }, | |
{ "internalType": "uint256", "name": "accountRoles", "type": "uint256" } | |
], | |
"name": "InvalidProposedRoles", | |
"type": "error" | |
}, | |
{ "inputs": [], "name": "InvalidS", "type": "error" }, | |
{ "inputs": [], "name": "InvalidSignature", "type": "error" }, | |
{ "inputs": [], "name": "InvalidV", "type": "error" }, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint256", "name": "accountRoles", "type": "uint256" } | |
], | |
"name": "MissingAllRoles", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint256", "name": "accountRoles", "type": "uint256" } | |
], | |
"name": "MissingAnyOfRoles", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint8", "name": "role", "type": "uint8" } | |
], | |
"name": "MissingRole", | |
"type": "error" | |
}, | |
{ "inputs": [], "name": "PermitExpired", "type": "error" }, | |
{ "inputs": [], "name": "TokenIdZero", "type": "error" }, | |
{ "inputs": [], "name": "TokenNameEmpty", "type": "error" }, | |
{ "inputs": [], "name": "TokenSymbolEmpty", "type": "error" }, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "spender", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Approval", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "accountRoles", | |
"type": "uint256" | |
} | |
], | |
"name": "RolesAdded", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "fromAccount", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "toAccount", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "accountRoles", | |
"type": "uint256" | |
} | |
], | |
"name": "RolesProposed", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "accountRoles", | |
"type": "uint256" | |
} | |
], | |
"name": "RolesRemoved", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "to", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "uint256", | |
"name": "value", | |
"type": "uint256" | |
} | |
], | |
"name": "Transfer", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "DOMAIN_SEPARATOR", | |
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "fromMinter", "type": "address" } | |
], | |
"name": "acceptMintership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "", "type": "address" }, | |
{ "internalType": "address", "name": "", "type": "address" } | |
], | |
"name": "allowance", | |
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "spender", "type": "address" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" } | |
], | |
"name": "approve", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
"name": "balanceOf", | |
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" } | |
], | |
"name": "burn", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "decimals", | |
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "spender", "type": "address" }, | |
{ | |
"internalType": "uint256", | |
"name": "subtractedValue", | |
"type": "uint256" | |
} | |
], | |
"name": "decreaseAllowance", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint8", "name": "role", "type": "uint8" } | |
], | |
"name": "hasRole", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "spender", "type": "address" }, | |
{ "internalType": "uint256", "name": "addedValue", "type": "uint256" } | |
], | |
"name": "increaseAllowance", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "bytes32", "name": "tokenId_", "type": "bytes32" }, | |
{ "internalType": "address", "name": "minter", "type": "address" }, | |
{ "internalType": "string", "name": "tokenName", "type": "string" }, | |
{ "internalType": "string", "name": "tokenSymbol", "type": "string" }, | |
{ "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" } | |
], | |
"name": "init", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "interchainTokenId", | |
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "interchainTokenService", | |
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "string", | |
"name": "destinationChain", | |
"type": "string" | |
}, | |
{ "internalType": "bytes", "name": "recipient", "type": "bytes" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
{ "internalType": "bytes", "name": "metadata", "type": "bytes" } | |
], | |
"name": "interchainTransfer", | |
"outputs": [], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "sender", "type": "address" }, | |
{ | |
"internalType": "string", | |
"name": "destinationChain", | |
"type": "string" | |
}, | |
{ "internalType": "bytes", "name": "recipient", "type": "bytes" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" }, | |
{ "internalType": "bytes", "name": "metadata", "type": "bytes" } | |
], | |
"name": "interchainTransferFrom", | |
"outputs": [], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "addr", "type": "address" } | |
], | |
"name": "isMinter", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "account", "type": "address" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" } | |
], | |
"name": "mint", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "name", | |
"outputs": [{ "internalType": "string", "name": "", "type": "string" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "nameHash", | |
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | |
"name": "nonces", | |
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "issuer", "type": "address" }, | |
{ "internalType": "address", "name": "spender", "type": "address" }, | |
{ "internalType": "uint256", "name": "value", "type": "uint256" }, | |
{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, | |
{ "internalType": "uint8", "name": "v", "type": "uint8" }, | |
{ "internalType": "bytes32", "name": "r", "type": "bytes32" }, | |
{ "internalType": "bytes32", "name": "s", "type": "bytes32" } | |
], | |
"name": "permit", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "minter_", "type": "address" } | |
], | |
"name": "proposeMintership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "symbol", | |
"outputs": [{ "internalType": "string", "name": "", "type": "string" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "totalSupply", | |
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "recipient", "type": "address" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" } | |
], | |
"name": "transfer", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "sender", "type": "address" }, | |
{ "internalType": "address", "name": "recipient", "type": "address" }, | |
{ "internalType": "uint256", "name": "amount", "type": "uint256" } | |
], | |
"name": "transferFrom", | |
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ "internalType": "address", "name": "minter_", "type": "address" } | |
], | |
"name": "transferMintership", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment