hNFT ABI
JSON ABI:
[{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
}, {
"inputs": [],
"name": "ERC721EnumerableForbiddenBatchMint",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721IncorrectOwner",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "operator",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721InsufficientApproval",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "approver",
"type": "address"
}
],
"name": "ERC721InvalidApprover",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "ERC721InvalidOperator",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "ERC721InvalidOwner",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "ERC721InvalidReceiver",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "ERC721InvalidSender",
"type": "error"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ERC721NonexistentToken",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "ERC721OutOfBoundsIndex",
"type": "error"
}, {
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
}, {
"inputs": [],
"name": "NotInitializing",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
}, {
"inputs": [{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
}, {
"inputs": [],
"name": "ReentrancyGuardReentrantCall",
"type": "error"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
}, {
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"indexed": true,
"internalType": "uint32",
"name": "destinationDomain",
"type": "uint32"
}, {
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}, {
"indexed": false,
"internalType": "bytes32",
"name": "messageId",
"type": "bytes32"
}
],
"name": "Bridge",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"indexed": true,
"internalType": "uint32",
"name": "destinationDomain",
"type": "uint32"
}, {
"indexed": false,
"internalType": "address",
"name": "mailbox",
"type": "address"
}, {
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "Handle",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "target",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "Mint",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "target",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "tokenIdFrom",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "tokenIdTo",
"type": "uint256"
}, {
"indexed": false,
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "MintBatch",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "actionFee",
"type": "uint256"
}
],
"name": "SetActionFee",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "bridgeFee",
"type": "uint256"
}
],
"name": "SetBridgeFee",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "newMailbox",
"type": "address"
}
],
"name": "SetMailbox",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "mintFee",
"type": "uint256"
}
],
"name": "SetMintFee",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "string",
"name": "oldUri",
"type": "string"
}, {
"indexed": false,
"internalType": "string",
"name": "newUri",
"type": "string"
}
],
"name": "SetURI",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
}, {
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}, {
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}, {
"anonymous": false,
"inputs": [{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}, {
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
}, {
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "WithdrawETH",
"type": "event"
}, {
"inputs": [],
"name": "actionFee",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId_",
"type": "uint256"
}, {
"internalType": "uint32",
"name": "destinationDomain_",
"type": "uint32"
}
],
"name": "bridge",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}, {
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256[]",
"name": "tokenIds_",
"type": "uint256[]"
}, {
"internalType": "uint32[]",
"name": "destinationDomains_",
"type": "uint32[]"
}
],
"name": "bridgeBatch",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}, {
"internalType": "bytes32[]",
"name": "",
"type": "bytes32[]"
}
],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [],
"name": "bridgeFee",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId_",
"type": "uint256"
}, {
"internalType": "uint32",
"name": "destinationDomain_",
"type": "uint32"
}
],
"name": "calculateBridgeFee",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256[]",
"name": "tokenIds_",
"type": "uint256[]"
}, {
"internalType": "uint32[]",
"name": "destinationDomains_",
"type": "uint32[]"
}
],
"name": "calculateBridgeFeeBatch",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId_",
"type": "uint256"
}, {
"internalType": "uint32",
"name": "destinationDomain_",
"type": "uint32"
}
],
"name": "calculateHyperlaneFee",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint32",
"name": "origin_",
"type": "uint32"
}, {
"internalType": "bytes32",
"name": "sender_",
"type": "bytes32"
}, {
"internalType": "bytes",
"name": "data_",
"type": "bytes"
}
],
"name": "handle",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [],
"name": "hyperlaneClient",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "initialOwner_",
"type": "address"
}, {
"internalType": "uint256",
"name": "initialTokenId_",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "mintFee_",
"type": "uint256"
}, {
"internalType": "address",
"name": "mailboxAddr_",
"type": "address"
}, {
"internalType": "address",
"name": "hyperlaneClient_",
"type": "address"
}, {
"internalType": "string",
"name": "uri_",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "mailboxAddr",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "target_",
"type": "address"
}
],
"name": "mint",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "target_",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "mintBatch",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
}, {
"inputs": [],
"name": "mintFee",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "name",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "nextTokenId",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "owner",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}, {
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "actionFee_",
"type": "uint256"
}
],
"name": "setActionFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "operator",
"type": "address"
}, {
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "bridgeFee_",
"type": "uint256"
}
],
"name": "setBridgeFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "newMailbox_",
"type": "address"
}
],
"name": "setMailbox",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "mintFee_",
"type": "uint256"
}
],
"name": "setMintFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "string",
"name": "uri_",
"type": "string"
}
],
"name": "setURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "symbol",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"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": "from",
"type": "address"
}, {
"internalType": "address",
"name": "to",
"type": "address"
}, {
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [],
"name": "uri",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "to_",
"type": "address"
}, {
"internalType": "uint256",
"name": "amount_",
"type": "uint256"
}
],
"name": "withdrawETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Last updated