UNPKG

@roninbuilders/contracts

Version:

Type safe Contract ABIs for Ronin Network

1 lines 9.98 kB
var t={id:5053,address:"0xd43bdbd75141f328104eb2887689479f1258703c",contract_name:"Mystery Box Proxy",display_name:"Mystery Box Proxy",is_deprecated:false,is_proxy:true,proxy_to:"0x3e2934c6167dd822ea12c2761da97aaf012f075e",created_at:1731315249,abi:[{type:"constructor",stateMutability:"payable",inputs:[{type:"address",name:"implementationAddress"},{type:"address",name:"ownerAddress"},{type:"bytes",name:"data"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:true},{type:"address",name:"newOwner",indexed:true}]},{name:"ProxyImplementationUpdated",type:"event",inputs:[{type:"address",name:"previousImplementation",indexed:true},{type:"address",name:"newImplementation",indexed:true}]},{type:"fallback",stateMutability:"payable"},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"supportsInterface",type:"function",stateMutability:"view",inputs:[{type:"bytes4",name:"id"}],outputs:[{type:"bool"}]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"upgradeTo",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newImplementation"}],outputs:[]},{name:"upgradeToAndCall",type:"function",stateMutability:"payable",inputs:[{type:"address",name:"newImplementation"},{type:"bytes",name:"data"}],outputs:[]},{type:"receive",stateMutability:"payable"}],proxy_abi:[{type:"constructor",stateMutability:"nonpayable",inputs:[]},{name:"InsufficientFee",type:"error",inputs:[]},{name:"OnlyCoordinatorCanFulfill",type:"error",inputs:[]},{name:"ApprovalForAll",type:"event",inputs:[{type:"address",name:"account",indexed:true},{type:"address",name:"operator",indexed:true},{type:"bool",name:"approved"}]},{name:"BoxMinted",type:"event",inputs:[{type:"uint256",name:"tokenId"},{type:"address",name:"receiver"},{type:"uint256",name:"amount"}]},{name:"BoxRewardsCleared",type:"event",inputs:[{type:"uint256",name:"tokenId"}]},{name:"BoxRewardsUpdated",type:"event",inputs:[{type:"uint256",name:"tokenId"},{type:"uint8",name:"rewardType"},{type:"tuple[]",name:"rewards",components:[{type:"uint16",name:"monsterType"},{type:"uint256",name:"probability"},{type:"uint8",name:"rarity"},{type:"uint256",name:"amount"},{type:"uint256",name:"tokenId"}]}]},{name:"Initialized",type:"event",inputs:[{type:"uint8",name:"version"}]},{name:"Paused",type:"event",inputs:[{type:"address",name:"account"}]},{name:"RagmonMinted",type:"event",inputs:[{type:"uint256",name:"tokenId"},{type:"uint16",name:"monsterType"},{type:"address",name:"receiver"}]},{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:"TransferBatch",type:"event",inputs:[{type:"address",name:"operator",indexed:true},{type:"address",name:"from",indexed:true},{type:"address",name:"to",indexed:true},{type:"uint256[]",name:"ids"},{type:"uint256[]",name:"values"}]},{name:"TransferSingle",type:"event",inputs:[{type:"address",name:"operator",indexed:true},{type:"address",name:"from",indexed:true},{type:"address",name:"to",indexed:true},{type:"uint256",name:"id"},{type:"uint256",name:"value"}]},{name:"URI",type:"event",inputs:[{type:"string",name:"value"},{type:"uint256",name:"id",indexed:true}]},{name:"Unpaused",type:"event",inputs:[{type:"address",name:"account"}]},{name:"DEFAULT_ADMIN_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"MINTER_ROLE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bytes32"}]},{name:"NYANGKIT",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"RAGMON",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"ZENY",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"balanceOf",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"uint256",name:"id"}],outputs:[{type:"uint256"}]},{name:"balanceOfBatch",type:"function",stateMutability:"view",inputs:[{type:"address[]",name:"accounts"},{type:"uint256[]",name:"ids"}],outputs:[{type:"uint256[]"}]},{name:"boxRewards",type:"function",stateMutability:"view",inputs:[{type:"uint256"},{type:"uint256"}],outputs:[{type:"uint8",name:"rewardType"}]},{name:"burn",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"account"},{type:"uint256",name:"id"},{type:"uint256",name:"value"}],outputs:[]},{name:"burnBatch",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"account"},{type:"uint256[]",name:"ids"},{type:"uint256[]",name:"values"}],outputs:[]},{name:"callbackGasLimit",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"clearBoxRewards",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"tokenId"}],outputs:[]},{name:"configureBoxRewards",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"tokenId"},{type:"uint8",name:"rewardType"},{type:"tuple[]",name:"rewards",components:[{type:"uint16",name:"monsterType"},{type:"uint256",name:"probability"},{type:"uint8",name:"rarity"},{type:"uint256",name:"amount"},{type:"uint256",name:"tokenId"}]}],outputs:[]},{name:"gasPrice",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"getBoxRewards",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"tokenId"}],outputs:[{type:"uint8[]",name:"rewardTypes"},{type:"uint256[][]",name:"monsterTypes"},{type:"uint256[][]",name:"probabilities"},{type:"uint8[][]",name:"rarities"},{type:"uint256[][]",name:"tokenIds"},{type:"uint256[][]",name:"amounts"}]},{name:"getRoleAdmin",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"role"}],outputs:[{type:"bytes32"}]},{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:"string",name:"baseTokenURI"},{type:"address",name:"_ragmon"},{type:"address",name:"_vrfCoordinator"}],outputs:[]},{name:"isApprovedForAll",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"operator"}],outputs:[{type:"bool"}]},{name:"isBoxMinted",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"bool"}]},{name:"mintBox",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"tokenId"},{type:"address",name:"receiver"},{type:"uint256",name:"amount"}],outputs:[{type:"uint256"}]},{name:"name",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"string"}]},{name:"openBox",type:"function",stateMutability:"payable",inputs:[{type:"uint256",name:"tokenId"}],outputs:[]},{name:"pause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"paused",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"rawFulfillRandomSeed",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"_reqHash"},{type:"uint256",name:"_randomSeed"}],outputs:[]},{name:"renounceRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"revokeRole",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"role"},{type:"address",name:"account"}],outputs:[]},{name:"rewardsMap",type:"function",stateMutability:"view",inputs:[{type:"uint256"},{type:"uint256"}],outputs:[{type:"uint8",name:"rewardType"}]},{name:"safeBatchTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256[]",name:"ids"},{type:"uint256[]",name:"amounts"},{type:"bytes",name:"data"}],outputs:[]},{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"from"},{type:"address",name:"to"},{type:"uint256",name:"id"},{type:"uint256",name:"amount"},{type:"bytes",name:"data"}],outputs:[]},{name:"setApprovalForAll",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"operator"},{type:"bool",name:"approved"}],outputs:[]},{name:"setNyangKit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_nyangKit"}],outputs:[]},{name:"setURI",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"newURI"}],outputs:[]},{name:"setVRFVariables",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_callbackGasLimit"},{type:"uint256",name:"_gasPrice"}],outputs:[]},{name:"setZeny",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_zeny"}],outputs:[]},{name:"supportsInterface",type:"function",stateMutability:"view",inputs:[{type:"bytes4",name:"interfaceId"}],outputs:[{type:"bool"}]},{name:"symbol",type:"function",stateMutability:"pure",inputs:[],outputs:[{type:"string"}]},{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"id"}],outputs:[{type:"string"}]},{name:"unpause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"uri",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"id"}],outputs:[{type:"string"}]},{name:"vrfCoordinator",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]}]},e=t;export{e as default};