UNPKG

@roninbuilders/contracts

Version:

Type safe Contract ABIs for Ronin Network

1 lines 18 kB
'use strict';var t={id:34725,address:"0xf1e7b327c78fcf10f0c9eb0306d4366edac107a7",contract_name:"CommanderV2",display_name:"Commander V2",is_deprecated:false,is_proxy:false,proxy_to:false,created_at:1746682668,abi:[{type:"constructor",stateMutability:"nonpayable",inputs:[]},{name:"AdminWithdrawFailed",type:"error",inputs:[]},{name:"AlreadyAtMaxFacility",type:"error",inputs:[]},{name:"AlreadyPurchasedInitialFactory",type:"error",inputs:[]},{name:"CallerNotItemShop",type:"error",inputs:[]},{name:"CantModifyStarterFacility",type:"error",inputs:[]},{name:"ClaimCooldownActive",type:"error",inputs:[]},{name:"CoordinatesOccupied",type:"error",inputs:[]},{name:"ERC1155ItemsCollectionNotSet",type:"error",inputs:[]},{name:"ERC1155MintFailed",type:"error",inputs:[]},{name:"FacilityDimensionsInvalid",type:"error",inputs:[]},{name:"FacilityInadequatePowerOutput",type:"error",inputs:[]},{name:"FacilityLevelTooLow",type:"error",inputs:[]},{name:"GamePaused",type:"error",inputs:[]},{name:"IndexOutOfBounds",type:"error",inputs:[]},{name:"InsufficientMoveFee",type:"error",inputs:[]},{name:"InsufficientWithdrawFee",type:"error",inputs:[]},{name:"InvalidFacilityIndex",type:"error",inputs:[]},{name:"InvalidFee",type:"error",inputs:[]},{name:"InvalidInitialization",type:"error",inputs:[]},{name:"InvalidMinerCoordinates",type:"error",inputs:[]},{name:"InvalidMinerIndex",type:"error",inputs:[]},{name:"InvalidPowerOutput",type:"error",inputs:[]},{name:"InvalidReferrer",type:"error",inputs:[]},{name:"MinerNotInProduction",type:"error",inputs:[]},{name:"MinerTokenIdNotSet",type:"error",inputs:[]},{name:"MiningHasntStarted",type:"error",inputs:[]},{name:"NeedToInitializeFacility",type:"error",inputs:[]},{name:"NewFacilityNotInProduction",type:"error",inputs:[]},{name:"NoRewardsPending",type:"error",inputs:[]},{name:"NonExistentFacility",type:"error",inputs:[]},{name:"NotInitializing",type:"error",inputs:[]},{name:"NotOwnerOfNFT",type:"error",inputs:[]},{name:"OwnableInvalidOwner",type:"error",inputs:[{type:"address",name:"owner"}]},{name:"OwnableUnauthorizedAccount",type:"error",inputs:[{type:"address",name:"account"}]},{name:"PlayerDoesNotOwnMiner",type:"error",inputs:[]},{name:"RecipientNotSet",type:"error",inputs:[]},{name:"ReentrancyGuardReentrantCall",type:"error",inputs:[]},{name:"StarterFacilityNotSet",type:"error",inputs:[]},{name:"TooPoor",type:"error",inputs:[]},{name:"WithdrawFailed",type:"error",inputs:[]},{name:"AdminMinerWithdrawn",type:"event",inputs:[{type:"address",name:"owner",indexed:true},{type:"address",name:"player",indexed:true},{type:"uint256",name:"minerId"},{type:"uint256",name:"minerIndex"},{type:"uint256",name:"tokenId"}]},{name:"ERC1155ItemsCollectionSet",type:"event",inputs:[{type:"address",name:"tokenAddress",indexed:true}]},{name:"FacilityBought",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"facilityIndex",indexed:true},{type:"uint256",name:"cost"}]},{name:"FacilityCostChanged",type:"event",inputs:[{type:"uint256",name:"facilityIndex",indexed:true},{type:"uint256",name:"newCost"},{type:"uint256",name:"newTotalPowerOutput"}]},{name:"FacilityProductionToggled",type:"event",inputs:[{type:"uint256",name:"facilityIndex",indexed:true},{type:"bool",name:"inProduction"}]},{name:"InitialFacilityPurchased",type:"event",inputs:[{type:"address",name:"player",indexed:true}]},{name:"Initialized",type:"event",inputs:[{type:"uint64",name:"version"}]},{name:"ItemShopContractSet",type:"event",inputs:[{type:"address",name:"itemShopContract",indexed:true}]},{name:"MinerBought",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"minerIndex",indexed:true},{type:"uint256",name:"cost"},{type:"uint256",name:"minerId"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"MinerMoved",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"minerId"},{type:"uint256",name:"oldX"},{type:"uint256",name:"oldY"},{type:"uint256",name:"newX"},{type:"uint256",name:"newY"}]},{name:"MinerProductionToggled",type:"event",inputs:[{type:"uint256",name:"minerIndex",indexed:true},{type:"bool",name:"inProduction"}]},{name:"MinerReintegrated",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"minerId"},{type:"uint256",name:"minerIndex",indexed:true},{type:"uint256",name:"tokenId",indexed:true},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"MinerTokenIdSet",type:"event",inputs:[{type:"uint256",name:"minerIndex",indexed:true},{type:"uint256",name:"tokenId",indexed:true}]},{name:"MinerWithdrawn",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"minerId"},{type:"uint256",name:"minerIndex",indexed:true},{type:"uint256",name:"tokenId",indexed:true},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"MiningStarted",type:"event",inputs:[{type:"uint256",name:"startBlock"}]},{name:"NewFacilityAdded",type:"event",inputs:[{type:"uint256",name:"facilityIndex",indexed:true},{type:"uint256",name:"totalPowerOutput"},{type:"uint256",name:"cost"},{type:"bool",name:"inProduction"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"NewMinerAdded",type:"event",inputs:[{type:"uint256",name:"minerIndex",indexed:true},{type:"uint256",name:"hashrate"},{type:"uint256",name:"powerConsumption"},{type:"uint256",name:"cost"},{type:"uint256",name:"facilityMinimum"},{type:"bool",name:"inProduction"}]},{name:"OwnershipTransferred",type:"event",inputs:[{type:"address",name:"previousOwner",indexed:true},{type:"address",name:"newOwner",indexed:true}]},{name:"PauseToggled",type:"event",inputs:[{type:"bool",name:"isPaused"}]},{name:"PlayerHashrateDecreased",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"newHashrate"},{type:"uint256",name:"pendingRewards"}]},{name:"PlayerHashrateIncreased",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"newHashrate"},{type:"uint256",name:"pendingRewards"}]},{name:"ReferrerSet",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"address",name:"referralAddress",indexed:true}]},{name:"RequiredTokenPerMinerSet",type:"event",inputs:[{type:"uint256",name:"requiredToken",indexed:true}]},{name:"RewardsClaimed",type:"event",inputs:[{type:"address",name:"player",indexed:true},{type:"uint256",name:"totalAmount"},{type:"address",name:"referralAddress",indexed:true},{type:"uint256",name:"tokenReferralBonus"}]},{name:"StarterFacilityIndexSet",type:"event",inputs:[{type:"uint256",name:"facilityIndex",indexed:true}]},{name:"StarterMinerIndexSet",type:"event",inputs:[{type:"uint256",name:"minerIndex",indexed:true}]},{name:"CLAIM_COOLDOWN_PERIOD",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"HALVING_INTERVAL",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"INITIAL_TOKEN_PER_BLOCK",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"REWARDS_PRECISION",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"STARTER_FACILITY_INDEX",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"addFacility",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"totalPowerOutput"},{type:"uint256",name:"cost"},{type:"bool",name:"inProduction"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}],outputs:[]},{name:"addMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"hashrate"},{type:"uint256",name:"powerConsumption"},{type:"uint256",name:"cost"},{type:"uint256",name:"facilityMinimum"},{type:"bool",name:"inProduction"}],outputs:[]},{name:"adminWithdrawMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"player"},{type:"uint256",name:"minerId"}],outputs:[]},{name:"blocksUntilNextHalving",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"burnPct",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"buyMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}],outputs:[]},{name:"buyNewFacility",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"changeFacilityCost",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"facilityIndex"},{type:"uint256",name:"newCost"},{type:"uint256",name:"newTotalPowerOutput"}],outputs:[]},{name:"claimRewards",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"cumulativeTokenPerHash",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"erc1155ItemsCollection",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"facilities",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256",name:"totalPowerOutput"},{type:"uint256",name:"cost"},{type:"bool",name:"inProduction"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"facilityCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"getPlayerMinerCount",type:"function",stateMutability:"view",inputs:[{type:"address",name:"player"}],outputs:[{type:"uint256"}]},{name:"getPlayerMinersPaginated",type:"function",stateMutability:"view",inputs:[{type:"address",name:"player"},{type:"uint256",name:"startIndex"},{type:"uint256",name:"size"}],outputs:[{type:"tuple[]",components:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"id"},{type:"uint256",name:"x"},{type:"uint256",name:"y"},{type:"uint256",name:"hashrate"},{type:"uint256",name:"powerConsumption"},{type:"uint256",name:"cost"},{type:"uint256",name:"facilityMinimum"},{type:"bool",name:"inProduction"}]}]},{name:"getPlayerReferrer",type:"function",stateMutability:"view",inputs:[{type:"address",name:"player"}],outputs:[{type:"address"}]},{name:"getReferralTokenBonusPaid",type:"function",stateMutability:"view",inputs:[{type:"address",name:"referrer"}],outputs:[{type:"uint256"}]},{name:"getReferrerCount",type:"function",stateMutability:"view",inputs:[{type:"address",name:"referrer"}],outputs:[{type:"uint256"}]},{name:"getTokenPerBlock",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"holderMultipliers",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256"}]},{name:"initialize",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"initialOwner"}],outputs:[]},{name:"initializedStarterFacility",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"bool"}]},{name:"itemShopContract",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"lastClaimTimestamp",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"lastFacilityUpgradeTimestamp",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"lastRewardBlock",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"minerIndexToTokenId",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256"}]},{name:"miners",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"id"},{type:"uint256",name:"x"},{type:"uint256",name:"y"},{type:"uint256",name:"hashrate"},{type:"uint256",name:"powerConsumption"},{type:"uint256",name:"cost"},{type:"uint256",name:"facilityMinimum"},{type:"bool",name:"inProduction"}]},{name:"miningHasStarted",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"mintFromShop",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"to"},{type:"uint256",name:"tokenId"},{type:"uint256",name:"amount"}],outputs:[]},{name:"moveMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerId"},{type:"uint256",name:"newX"},{type:"uint256",name:"newY"}],outputs:[]},{name:"moveMinerFee",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"onTokenBalanceChanged",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"player"}],outputs:[]},{name:"owner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"ownerToFacility",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256",name:"facilityIndex"},{type:"uint256",name:"currMiners"},{type:"uint256",name:"totalPowerOutput"},{type:"uint256",name:"currPowerOutput"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}]},{name:"pause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"paused",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"bool"}]},{name:"pendingRewards",type:"function",stateMutability:"view",inputs:[{type:"address",name:"player"}],outputs:[{type:"uint256"}]},{name:"playerHashrate",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"playerHolderMultiplier",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"playerMinersId",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"id"},{type:"uint256",name:"x"},{type:"uint256",name:"y"},{type:"uint256",name:"hashrate"},{type:"uint256",name:"powerConsumption"},{type:"uint256",name:"cost"},{type:"uint256",name:"facilityMinimum"},{type:"bool",name:"inProduction"}]},{name:"playerMinersOwned",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256",name:"_spacer"}]},{name:"playerOccupiedCoords",type:"function",stateMutability:"view",inputs:[{type:"address"},{type:"uint256"},{type:"uint256"}],outputs:[{type:"bool"}]},{name:"playerPendingRewards",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"playerReferrer",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"address"}]},{name:"playerTokenDebt",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"playerTokenPerBlock",type:"function",stateMutability:"view",inputs:[{type:"address",name:"player"}],outputs:[{type:"uint256"}]},{name:"purchaseInitialFacility",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"referralAddress"}],outputs:[]},{name:"referralBonusPaid",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"referralFee",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"referrerCount",type:"function",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{name:"reintegrateMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"x"},{type:"uint256",name:"y"}],outputs:[]},{name:"renounceOwnership",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"requiredTokenPerMiner",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"setERC1155ItemsCollection",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_tokenAddress"}],outputs:[]},{name:"setItemShopContract",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"_itemShopContract"}],outputs:[]},{name:"setMinerTokenId",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerIndex"},{type:"uint256",name:"tokenId"}],outputs:[]},{name:"setRequiredTokenPerMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_requiredToken"}],outputs:[]},{name:"startBlock",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"toggleFacilityProduction",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"facilityIndex"},{type:"bool",name:"inProduction"}],outputs:[]},{name:"toggleMinerProduction",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerIndex"},{type:"bool",name:"inProduction"}],outputs:[]},{name:"token",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"tokenFeeRecipient",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"tokenThresholds",type:"function",stateMutability:"view",inputs:[{type:"uint256"}],outputs:[{type:"uint256"}]},{name:"totalHashrate",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"transferOwnership",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"newOwner"}],outputs:[]},{name:"uniqueMinerCount",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"unpause",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"updateMultiplierTiers",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256[]",name:"_thresholds"},{type:"uint256[]",name:"_multipliers"}],outputs:[]},{name:"updateVariables",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"_referralFee"},{type:"uint256",name:"_burnPct"},{type:"uint256",name:"_moveMinerFee"},{type:"uint256",name:"_withdrawMinerFee"},{type:"address",name:"_tokenFeeRecipient"},{type:"address",name:"_token"}],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"withdrawMiner",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"minerId"}],outputs:[]},{name:"withdrawMinerFee",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{name:"withdrawToken",type:"function",stateMutability:"nonpayable",inputs:[{type:"uint256",name:"amt"}],outputs:[]}]},e=t;module.exports=e;