UNPKG

@roninbuilders/contracts

Version:

Type safe Contract ABIs for Ronin Network

1 lines 5.99 kB
var e={id:4623,address:"0x7f408408184d784a14548537934be81a9ee498b7",contract_name:"AxieDelegation",display_name:"Axie Delegation",is_deprecated:false,is_proxy:false,proxy_to:false,created_at:1729065086,abi:[{type:"constructor",stateMutability:"nonpayable",inputs:[]},{name:"InvalidDelegationExpiration",type:"error",inputs:[{type:"uint256",name:"until"}]},{name:"InvalidDelegationStatus",type:"error",inputs:[{type:"uint256",name:"tokenId"}]},{name:"InvalidRevokeTiming",type:"error",inputs:[{type:"uint256",name:"tokenId"},{type:"uint64",name:"expected"},{type:"uint64",name:"actual"}]},{name:"MismatchContextHash",type:"error",inputs:[{type:"bytes4",name:"sig"}]},{name:"MismatchLength",type:"error",inputs:[{type:"bytes4",name:"sig"}]},{name:"NonexistentDelegation",type:"error",inputs:[{type:"uint256",name:"tokenId"}]},{name:"UnauthorizedCaller",type:"error",inputs:[{type:"bytes4",name:"sig"}]},{name:"UnauthorizedREP15Callback",type:"error",inputs:[{type:"bytes4",name:"sig"}]},{name:"ZeroAddress",type:"error",inputs:[{type:"bytes4",name:"sig"}]},{name:"AxieDelegated",type:"event",inputs:[{type:"uint256",name:"tokenId",indexed:true},{type:"address",name:"owner",indexed:true},{type:"address",name:"delegatee",indexed:true},{type:"uint256",name:"expiryTs"}]},{name:"DelegationRevoked",type:"event",inputs:[{type:"uint256",name:"tokenId",indexed:true},{type:"address",name:"operator",indexed:true}]},{name:"Initialized",type:"event",inputs:[{type:"uint8",name:"version"}]},{name:"MinRevokingDurationUpdated",type:"event",inputs:[{type:"uint64",name:"duration"}]},{name:"RoleAdminChanged",type:"event",inputs:[{type:"bytes32",name:"role",indexed:true},{type:"bytes32",name:"previousAdminRole",indexed:true},{type:"bytes32",name:"newAdminRole",indexed:true}]},{name:"RoleGranted",type:"event",inputs:[{type:"bytes32",name:"role",indexed:true},{type:"address",name:"account",indexed:true},{type:"address",name:"sender",indexed:true}]},{name:"RoleRevoked",type:"event",inputs:[{type:"bytes32",name:"role",indexed:true},{type:"address",name:"account",indexed:true},{type:"address",name:"sender",indexed:true}]},{name:"DEFAULT_ADMIN_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"bulkDelegate",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256[]",name:"tokenIds"},{type:"address[]",name:"delegatees"},{type:"uint64[]",name:"expiryTimes"}],outputs:[]},{name:"bulkRevokeDelegations",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256[]",name:"tokenIds"}],outputs:[]},{name:"delegate",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"tokenId"},{type:"address",name:"delegatee"},{type:"uint64",name:"expiryTs"}],outputs:[]},{name:"getAxieContract",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"getContextHash",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"getDelegationInfo",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"tokenId"}],outputs:[{type:"address",name:"delegatee"},{type:"uint64",name:"delegatedAt"},{type:"uint64",name:"expiryTs"}]},{name:"getMinRevokingDuration",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint64"}]},{name:"getRoleAdmin",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"}],outputs:[{type:"bytes32"}]},{name:"getRoleMember",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"},{type:"uint256",name:"index"}],outputs:[{type:"address"}]},{name:"getRoleMemberCount",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"}],outputs:[{type:"uint256"}]},{name:"grantRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"hasRole",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[{type:"bool"}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"admin"},{type:"address",name:"axieContract"},{type:"uint64",name:"detachingDuration"},{type:"uint64",name:"minRevokingDuration"}],outputs:[]},{name:"isDelegationActive",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"tokenId"}],outputs:[{type:"bool"}]},{name:"isTokenDelegatedTo",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"tokenId"},{type:"address",name:"user"}],outputs:[{type:"bool"}]},{name:"onAttached",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"ctxHash"},{type:"uint256",name:"tokenId"},{type:"address",name:"operator"},{type:"bytes",name:"data"}],outputs:[]},{name:"onDetachRequested",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"ctxHash"},{type:"uint256",name:"tokenId"},{type:"address",name:"operator"},{type:"bytes",name:"data"}],outputs:[]},{name:"onExecDetachContext",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"ctxHash"},{type:"uint256",name:"tokenId"},{type:"address",name:"operator"},{type:"address"},{type:"bytes"}],outputs:[]},{name:"renounceRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"revokeDelegation",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"tokenId"}],outputs:[]},{name:"revokeRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"setMinRevokingDuration",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"duration"}],outputs:[]},{name:"supportsInterface",type:"function",stateMutability:"view",inputs:[{type:"bytes4",name:"interfaceId"}],outputs:[{type:"bool"}]},{name:"updateDetachingDuration",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint64",name:"detachingDuration"}],outputs:[]}]},t=e;export{t as default};