UNPKG

@roninbuilders/contracts

Version:

Type safe Contract ABIs for Ronin Network

1 lines 5.74 kB
var e={id:36530,address:"0x2846307caac69141520a7eb281bd4b9210e57b2f",contract_name:"ClickTileERC20",display_name:"Click Tile ERC20",is_deprecated:false,is_proxy:false,proxy_to:false,created_at:1754236091,abi:[{name:"ECDSAInvalidSignature",type:"error",inputs:[]},{name:"ECDSAInvalidSignatureLength",type:"error",inputs:[{type:"uint256",name:"length"}]},{name:"ECDSAInvalidSignatureS",type:"error",inputs:[{type:"bytes32",name:"s"}]},{name:"GameAlreadyExists",type:"error",inputs:[{type:"string",name:"preliminaryGameId"}]},{name:"GameDoesNotExist",type:"error",inputs:[{type:"uint256",name:"onChainGameId"}]},{name:"GameNotActive",type:"error",inputs:[{type:"uint256",name:"onChainGameId"}]},{name:"InvalidInitialization",type:"error",inputs:[]},{name:"InvalidServerSignature",type:"error",inputs:[]},{name:"NotInitializing",type:"error",inputs:[]},{name:"OwnableInvalidOwner",type:"error",inputs:[{type:"address",name:"owner"}]},{name:"OwnableUnauthorizedAccount",type:"error",inputs:[{type:"address",name:"account"}]},{name:"PayoutFailed",type:"error",inputs:[{type:"uint256",name:"onChainGameId"},{type:"uint256",name:"amount"}]},{name:"ReentrancyGuardReentrantCall",type:"error",inputs:[]},{name:"SafeERC20FailedOperation",type:"error",inputs:[{type:"address",name:"token"}]},{name:"AdminAdded",type:"event",inputs:[{type:"address",name:"newAdmin",indexed:true}]},{name:"AdminRemoved",type:"event",inputs:[{type:"address",name:"removedAdmin",indexed:true}]},{name:"GameCreated",type:"event",inputs:[{type:"string",name:"preliminaryGameId"},{type:"uint256",name:"onChainGameId",indexed:true},{type:"address",name:"player",indexed:true},{type:"uint256",name:"betAmount"},{type:"bytes32",name:"gameSeedHash"}]},{name:"GameStatusUpdated",type:"event",inputs:[{type:"uint256",name:"onChainGameId",indexed:true},{type:"uint8",name:"status"}]},{name:"Initialized",type:"event",inputs:[{type:"uint64",name:"version"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:true},{type:"address",name:"newOwner",indexed:true}]},{name:"PayoutSent",type:"event",inputs:[{type:"uint256",name:"onChainGameId",indexed:true},{type:"uint256",name:"amount"},{type:"address",name:"recipient",indexed:true}]},{name:"addAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newAdmin"}],outputs:[]},{name:"cashOut",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"onChainGameId"},{type:"uint256",name:"payoutAmount"},{type:"string",name:"gameState"},{type:"string",name:"gameSeed"},{type:"uint256",name:"deadline"},{type:"bytes",name:"serverSignature"}],outputs:[]},{name:"createGame",type:"function",stateMutability:"nonpayable",inputs:[{type:"tuple",name:"p",components:[{type:"string",name:"preliminaryGameId"},{type:"bytes32",name:"gameSeedHash"},{type:"string",name:"algoVersion"},{type:"string",name:"gameConfig"},{type:"uint256",name:"deadline"},{type:"bytes",name:"serverSignature"},{type:"uint256",name:"betAmount"}]}],outputs:[]},{name:"gameCounter",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"gameToken",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"games",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256",name:"createdAt"},{type:"address",name:"player"},{type:"uint256",name:"betAmount"},{type:"uint8",name:"status"},{type:"uint256",name:"payoutAmount"},{type:"bytes32",name:"gameSeedHash"},{type:"string",name:"gameSeed"},{type:"string",name:"algoVersion"},{type:"string",name:"gameConfig"},{type:"string",name:"gameState"}]},{name:"getGameDetails",type:"function",stateMutability:"view",inputs:[{type:"uint256",name:"onChainGameId"}],outputs:[{type:"tuple",components:[{type:"uint256",name:"createdAt"},{type:"address",name:"player"},{type:"uint256",name:"betAmount"},{type:"uint8",name:"status"},{type:"uint256",name:"payoutAmount"},{type:"bytes32",name:"gameSeedHash"},{type:"string",name:"gameSeed"},{type:"string",name:"algoVersion"},{type:"string",name:"gameConfig"},{type:"string",name:"gameState"}]}]},{name:"getOnChainGameId",type:"function",stateMutability:"view",inputs:[{type:"string",name:"preliminaryGameId"}],outputs:[{type:"uint256"}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"string",name:"_prefix"},{type:"address",name:"_erc20Token"}],outputs:[]},{name:"isAdmin",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"bool"}]},{name:"markGameAsLost",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"onChainGameId"},{type:"string",name:"gameState"},{type:"string",name:"gameSeed"},{type:"uint256",name:"deadline"},{type:"bytes",name:"serverSignature"}],outputs:[]},{name:"messagePrefix",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"preliminaryToOnChainId",type:"function",stateMutability:"view",inputs:[{type:"string"}],outputs:[{type:"uint256"}]},{name:"removeAdmin",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"adminToRemove"}],outputs:[]},{name:"renounceOwnership",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"setGameCounter",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"newCounter"}],outputs:[]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"withdrawTokens",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amount"},{type:"address",name:"to"}],outputs:[]}]},t=e;export{t as default};