@roninbuilders/contracts
Version:
Type safe Contract ABIs for Ronin Network
1 lines • 10.6 kB
JavaScript
var e={id:27705,address:"0x73654c829587d423e1e702c8994737fe24a3c2c0",contract_name:"RealmWalkersRT",display_name:"Realm Walkers RT",is_deprecated:false,is_proxy:false,proxy_to:false,created_at:1742260242,abi:[{type:"constructor",stateMutability:"nonpayable",inputs:[{type:"address",name:"_feeCollector"},{type:"address",name:"_vrfCoordinator"}]},{name:"OnlyCoordinatorCanFulfill",type:"error",inputs:[]},{name:"BaseFeePercentageUpdated",type:"event",inputs:[{type:"uint256",name:"newBaseFeePercentage"}]},{name:"FeeCollectorUpdated",type:"event",inputs:[{type:"address",name:"newFeeCollector"}]},{name:"MinValueAllowedUpdated",type:"event",inputs:[{type:"uint256",name:"newMinValue"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:true},{type:"address",name:"newOwner",indexed:true}]},{name:"PaymentTokenAdded",type:"event",inputs:[{type:"address",name:"token"}]},{name:"PaymentTokenRemoved",type:"event",inputs:[{type:"address",name:"token"}]},{name:"RaffleCancelled",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true}]},{name:"RaffleCancelledError",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true}]},{name:"RaffleCreated",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"}]},{name:"RaffleFinalized",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"address",name:"winner"}]},{name:"RaffleRandomnessReceived",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"uint256",name:"randomSeed"}]},{name:"RaffleRandomnessRequested",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"bytes32",name:"requestId"}]},{name:"RaffleVRFFailed",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"string",name:"reason"}]},{name:"RealFeePercentageUpdated",type:"event",inputs:[{type:"uint256",name:"newRealFeePercentage"}]},{name:"TicketsPurchased",type:"event",inputs:[{type:"uint256",name:"raffleId",indexed:true},{type:"address",name:"buyer"},{type:"uint256",name:"amount"}]},{name:"ALTERNATIVE_SEED_ITERATIONS",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"BASE_FEE_PERCENTAGE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"REAL_ADDRESS",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"REAL_FEE_PERCENTAGE",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"REAL_TOKEN",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"RON_ADDRESS",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"VRF_TIMEOUT",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"addPaymentToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_token"}],outputs:[]},{name:"buyTickets",type:"function",stateMutability:"payable",inputs:[{type:"uint256",name:"_raffleId"},{type:"uint256",name:"_numberOfTickets"}],outputs:[]},{name:"cancelRaffle",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[]},{name:"cancelRaffleError",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[]},{name:"createRaffle",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_nftContract"},{type:"uint256",name:"_tokenId"},{type:"uint256",name:"_ticketPrice"},{type:"address",name:"_paymentToken"},{type:"uint256",name:"_duration"},{type:"bool",name:"_isERC1155"}],outputs:[]},{name:"feeCollector",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"finalizeRaffle",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[]},{name:"finalizeRaffleWithFallback",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[]},{name:"getActiveRaffles",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",components:[{type:"uint256",name:"raffleId"},{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"participantCount"},{type:"bool",name:"isFinalized"},{type:"uint256",name:"totalTickets"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"}]}]},{name:"getExpiredRaffleIds",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256[]"}]},{name:"getExpiredRaffles",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",components:[{type:"uint256",name:"raffleId"},{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"participantCount"},{type:"bool",name:"isFinalized"},{type:"uint256",name:"totalTickets"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"}]}]},{name:"getMyParticipatedRaffles",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",components:[{type:"uint256",name:"raffleId"},{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"participantCount"},{type:"bool",name:"isFinalized"},{type:"uint256",name:"totalTickets"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"}]}]},{name:"getMyRaffles",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"tuple[]",components:[{type:"uint256",name:"raffleId"},{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"participantCount"},{type:"bool",name:"isFinalized"},{type:"uint256",name:"totalTickets"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"}]}]},{name:"getParticipantTickets",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"},{type:"address",name:"_participant"}],outputs:[{type:"uint256",name:"tickets"},{type:"uint256",name:"winningPercentage"}]},{name:"getRaffleInfo",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"participantCount"},{type:"bool",name:"isFinalized"},{type:"uint256",name:"totalTickets"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"}]},{name:"getRaffleParticipants",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[{type:"address[]"}]},{name:"getRaffleParticipantsSorted",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[{type:"address[]",name:"addresses"},{type:"uint256[]",name:"ticketCounts"},{type:"uint256[]",name:"winningPercentages"}]},{name:"isRafflePendingRandomness",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[{type:"bool"}]},{name:"isValidPaymentToken",type:"function",stateMutability:"view",inputs:[{type:"address",name:"_token"}],outputs:[{type:"bool"}]},{name:"minValueAllowed",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"needsFallbackFinalization",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"_raffleId"}],outputs:[{type:"bool"}]},{name:"onERC1155BatchReceived",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"},{type:"address"},{type:"uint256[]"},{type:"uint256[]"},{type:"bytes"}],outputs:[{type:"bytes4"}]},{name:"onERC1155Received",type:"function",stateMutability:"nonpayable",inputs:[{type:"address"},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"bytes"}],outputs:[{type:"bytes4"}]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"raffleCounter",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"raffles",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"address",name:"creator"},{type:"address",name:"nftContract"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"ticketPrice"},{type:"address",name:"paymentToken"},{type:"uint256",name:"endTime"},{type:"bool",name:"isActive"},{type:"uint256",name:"totalTickets"},{type:"bool",name:"isFinalized"},{type:"address",name:"winner"},{type:"bool",name:"isERC1155"},{type:"bool",name:"pendingRandomness"}]},{name:"rawFulfillRandomSeed",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"_reqHash"},{type:"uint256",name:"_randomSeed"}],outputs:[]},{name:"removePaymentToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_token"}],outputs:[]},{name:"renounceOwnership",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"supportsInterface",type:"function",stateMutability:"view",inputs:[{type:"bytes4",name:"interfaceId"}],outputs:[{type:"bool"}]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"updateBaseFeePercentage",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_newBaseFeePercentage"}],outputs:[]},{name:"updateFeeCollector",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_newFeeCollector"}],outputs:[]},{name:"updateMinValueAllowed",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_newMinValue"}],outputs:[]},{name:"updateRealFeePercentage",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_newRealFeePercentage"}],outputs:[]},{name:"validPaymentTokens",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"bool",name:"isValid"}]},{name:"vrfCoordinator",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{type:"receive",stateMutability:"payable"}]},t=e;export{t as default};