@flarenetwork/flare-stake-tool
Version:
Utilities for staking on the Flare network
1,997 lines • 103 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.claimSetupManagerABI = exports.validatorRewardManagerABI = exports.distributionToDelegatorsABI = exports.flareContractRegistryABI = exports.pChainStakeMirror = exports.contractTransactionName = exports.defaultContractAddresses = exports.flareContractRegistryAddress = exports.maxAllowedDelegation = void 0;
exports.getFlareContractRegistryABI = getFlareContractRegistryABI;
exports.getPChainStakeMirrorABI = getPChainStakeMirrorABI;
/**
* @description max delegation allowed per address
*/
exports.maxAllowedDelegation = 3;
exports.flareContractRegistryAddress = "0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019";
/**
* @description Stores the default chain-wise addresses for contracts
*/
exports.defaultContractAddresses = {
FlareContractRegistry: {
flare: "0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019",
costwo: "0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019",
songbird: "0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019",
coston: "0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019"
},
PChainStakeMirror: {
flare: "0x7b61F9F27153a4F2F57Dc30bF08A8eb0cCB96C22",
costwo: "0xd2a1bb23eb350814a30dd6f9de78bb2c8fdd9f1d",
songbird: "",
coston: ""
}
};
exports.contractTransactionName = "ContractTransaction";
exports.pChainStakeMirror = "PChainStakeMirror";
/**
* @description returns the FlareContractRegistry contract ABI
*/
function getFlareContractRegistryABI() {
return exports.flareContractRegistryABI;
}
/**
*
* @returns return PChainStakeMirrorABI contract ABI
*/
function getPChainStakeMirrorABI() {
return pChainStakeMirrorABI;
}
exports.flareContractRegistryABI = [
{
"type": "constructor",
"stateMutability": "nonpayable",
"inputs": [
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
}
],
"name": "getAddressUpdater",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "string[]",
"name": "",
"internalType": "string[]"
},
{
"type": "address[]",
"name": "",
"internalType": "address[]"
}
],
"name": "getAllContracts",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "getContractAddressByHash",
"inputs": [
{
"type": "bytes32",
"name": "_nameHash",
"internalType": "bytes32"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "getContractAddressByName",
"inputs": [
{
"type": "string",
"name": "_name",
"internalType": "string"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address[]",
"name": "",
"internalType": "address[]"
}
],
"name": "getContractAddressesByHash",
"inputs": [
{
"type": "bytes32[]",
"name": "_nameHashes",
"internalType": "bytes32[]"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address[]",
"name": "",
"internalType": "address[]"
}
],
"name": "getContractAddressesByName",
"inputs": [
{
"type": "string[]",
"name": "_names",
"internalType": "string[]"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "updateContractAddresses",
"inputs": [
{
"type": "bytes32[]",
"name": "_contractNameHashes",
"internalType": "bytes32[]"
},
{
"type": "address[]",
"name": "_contractAddresses",
"internalType": "address[]"
}
]
}
];
const pChainStakeMirrorABI = [
{
"type": "constructor",
"inputs": [
{
"type": "address",
"name": "_governance",
"internalType": "address"
},
{
"type": "address",
"name": "_flareDaemon",
"internalType": "contract FlareDaemon"
},
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
},
{
"type": "uint256",
"name": "_maxUpdatesPerBlock",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "activate",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "active",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IAddressBinder"
}
],
"name": "addressBinder",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "balanceHistoryCleanup",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "uint256",
"name": "_count",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "balanceOf",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "balanceOfAt",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256[]",
"name": "_votePowers",
"internalType": "uint256[]"
}
],
"name": "batchVotePowerOfAt",
"inputs": [
{
"type": "bytes20[]",
"name": "_owners",
"internalType": "bytes20[]"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "cancelGovernanceCall",
"inputs": [
{
"type": "bytes4",
"name": "_selector",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "cleanerContract",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "cleanupBlockNumber",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "cleanupBlockNumberManager",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "daemonize",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "deactivate",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bytes32",
"name": "",
"internalType": "bytes32"
}
],
"name": "endTimeToTransactionHashList",
"inputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "executeGovernanceCall",
"inputs": [
{
"type": "bytes4",
"name": "_selector",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract FlareDaemon"
}
],
"name": "flareDaemon",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
}
],
"name": "getAddressUpdater",
"inputs": []
},
{
"type": "function",
"stateMutability": "pure",
"outputs": [
{
"type": "string",
"name": "",
"internalType": "string"
}
],
"name": "getContractName",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bytes32[]",
"name": "",
"internalType": "bytes32[]"
}
],
"name": "getTransactionHashList",
"inputs": [
{
"type": "uint256",
"name": "_endTime",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "governance",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IGovernanceSettings"
}
],
"name": "governanceSettings",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IIGovernanceVotePower"
}
],
"name": "governanceVotePower",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "initialise",
"inputs": [
{
"type": "address",
"name": "_initialGovernance",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "isActiveStakeMirrored",
"inputs": [
{
"type": "bytes32",
"name": "_txId",
"internalType": "bytes32"
},
{
"type": "bytes20",
"name": "_inputAddress",
"internalType": "bytes20"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "maxUpdatesPerBlock",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "mirrorStake",
"inputs": [
{
"type": "tuple",
"name": "_stakeData",
"internalType": "struct IPChainStakeMirrorVerifier.PChainStake",
"components": [
{
"type": "bytes32"
},
{
"type": "uint8"
},
{
"type": "bytes20"
},
{
"type": "bytes20"
},
{
"type": "uint64"
},
{
"type": "uint64"
},
{
"type": "uint64"
}
]
},
{
"type": "bytes32[]",
"name": "_merkleProof",
"internalType": "bytes32[]"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "nextTimestampToTrigger",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "productionMode",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "revokeStake",
"inputs": [
{
"type": "bytes32",
"name": "_txId",
"internalType": "bytes32"
},
{
"type": "bytes20",
"name": "_inputAddress",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_endTime",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "_endTimeTxHashIndex",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "setCleanerContract",
"inputs": [
{
"type": "address",
"name": "_cleanerContract",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "setCleanupBlockNumber",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "setMaxUpdatesPerBlock",
"inputs": [
{
"type": "uint256",
"name": "_maxUpdatesPerBlock",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "stakesHistoryCleanup",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "uint256",
"name": "_count",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bytes20[]",
"name": "_nodeIds",
"internalType": "bytes20[]"
},
{
"type": "uint256[]",
"name": "_amounts",
"internalType": "uint256[]"
}
],
"name": "stakesOf",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "bytes20[]",
"name": "_nodeIds",
"internalType": "bytes20[]"
},
{
"type": "uint256[]",
"name": "_amounts",
"internalType": "uint256[]"
}
],
"name": "stakesOfAt",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "switchToFallbackMode",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "switchToProductionMode",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "allowedAfterTimestamp",
"internalType": "uint256"
},
{
"type": "bytes",
"name": "encodedCall",
"internalType": "bytes"
}
],
"name": "timelockedCalls",
"inputs": [
{
"type": "bytes4",
"name": "",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalSupply",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalSupplyAt",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalSupplyCacheCleanup",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalSupplyHistoryCleanup",
"inputs": [
{
"type": "uint256",
"name": "_count",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalVotePower",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalVotePowerAt",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "totalVotePowerAtCached",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "owner",
"internalType": "address"
},
{
"type": "bytes20",
"name": "nodeId",
"internalType": "bytes20"
},
{
"type": "uint64",
"name": "weightGwei",
"internalType": "uint64"
}
],
"name": "transactionHashToPChainStakingData",
"inputs": [
{
"type": "bytes32",
"name": "",
"internalType": "bytes32"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "updateContractAddresses",
"inputs": [
{
"type": "bytes32[]",
"name": "_contractNameHashes",
"internalType": "bytes32[]"
},
{
"type": "address[]",
"name": "_contractAddresses",
"internalType": "address[]"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IIPChainStakeMirrorVerifier"
}
],
"name": "verifier",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "votePowerCacheCleanup",
"inputs": [
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_votePower",
"internalType": "uint256"
}
],
"name": "votePowerFromTo",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_votePower",
"internalType": "uint256"
}
],
"name": "votePowerFromToAt",
"inputs": [
{
"type": "address",
"name": "_owner",
"internalType": "address"
},
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "votePowerHistoryCleanup",
"inputs": [
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_count",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "votePowerOf",
"inputs": [
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "votePowerOfAt",
"inputs": [
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "votePowerOfAtCached",
"inputs": [
{
"type": "bytes20",
"name": "_nodeId",
"internalType": "bytes20"
},
{
"type": "uint256",
"name": "_blockNumber",
"internalType": "uint256"
}
]
},
{
"type": "event",
"name": "CreatedTotalSupplyCache",
"inputs": [
{
"type": "uint256",
"name": "_blockNumber",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernanceCallTimelocked",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"indexed": false
},
{
"type": "uint256",
"name": "allowedAfterTimestamp",
"indexed": false
},
{
"type": "bytes",
"name": "encodedCall",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernanceInitialised",
"inputs": [
{
"type": "address",
"name": "initialGovernance",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernedProductionModeEntered",
"inputs": [
{
"type": "address",
"name": "governanceSettings",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "MaxUpdatesPerBlockSet",
"inputs": [
{
"type": "uint256",
"name": "maxUpdatesPerBlock",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeConfirmed",
"inputs": [
{
"type": "address",
"name": "owner",
"indexed": true
},
{
"type": "bytes20",
"name": "nodeId",
"indexed": true
},
{
"type": "bytes32",
"name": "txHash",
"indexed": true
},
{
"type": "uint256",
"name": "amountWei",
"indexed": false
},
{
"type": "bytes32",
"name": "pChainTxId",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeEnded",
"inputs": [
{
"type": "address",
"name": "owner",
"indexed": true
},
{
"type": "bytes20",
"name": "nodeId",
"indexed": true
},
{
"type": "bytes32",
"name": "txHash",
"indexed": true
},
{
"type": "uint256",
"name": "amountWei",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "StakeRevoked",
"inputs": [
{
"type": "address",
"name": "owner",
"indexed": true
},
{
"type": "bytes20",
"name": "nodeId",
"indexed": true
},
{
"type": "bytes32",
"name": "txHash",
"indexed": true
},
{
"type": "uint256",
"name": "amountWei",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TimelockedGovernanceCallCanceled",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"indexed": false
},
{
"type": "uint256",
"name": "timestamp",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TimelockedGovernanceCallExecuted",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"indexed": false
},
{
"type": "uint256",
"name": "timestamp",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "VotePowerCacheCreated",
"inputs": [
{
"type": "bytes20",
"name": "nodeId",
"indexed": false
},
{
"type": "uint256",
"name": "blockNumber",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "VotePowerChanged",
"inputs": [
{
"type": "address",
"name": "owner",
"indexed": true
},
{
"type": "bytes20",
"name": "nodeId",
"indexed": true
},
{
"type": "uint256",
"name": "priorVotePower",
"indexed": false
},
{
"type": "uint256",
"name": "newVotePower",
"indexed": false
}
],
"anonymous": false
}
];
exports.distributionToDelegatorsABI = [
{
"type": "constructor",
"stateMutability": "nonpayable",
"inputs": [
{
"type": "address",
"name": "_governance",
"internalType": "address"
},
{
"type": "address",
"name": "_flareDaemon",
"internalType": "contract FlareDaemon"
},
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
},
{
"type": "address",
"name": "_treasury",
"internalType": "contract DistributionTreasury"
},
{
"type": "uint256",
"name": "_totalEntitlementWei",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "_latestEntitlementStartTs",
"internalType": "uint256"
}
]
},
{
"type": "event",
"name": "AccountClaimed",
"inputs": [
{
"type": "address",
"name": "whoClaimed",
"internalType": "address",
"indexed": true
},
{
"type": "address",
"name": "sentTo",
"internalType": "address",
"indexed": true
},
{
"type": "uint256",
"name": "month",
"internalType": "uint256",
"indexed": false
},
{
"type": "uint256",
"name": "amountWei",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "AccountOptOut",
"inputs": [
{
"type": "address",
"name": "theAccount",
"internalType": "address",
"indexed": true
},
{
"type": "bool",
"name": "confirmed",
"internalType": "bool",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "EntitlementStart",
"inputs": [
{
"type": "uint256",
"name": "entitlementStartTs",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernanceCallTimelocked",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"internalType": "bytes4",
"indexed": false
},
{
"type": "uint256",
"name": "allowedAfterTimestamp",
"internalType": "uint256",
"indexed": false
},
{
"type": "bytes",
"name": "encodedCall",
"internalType": "bytes",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernanceInitialised",
"inputs": [
{
"type": "address",
"name": "initialGovernance",
"internalType": "address",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GovernedProductionModeEntered",
"inputs": [
{
"type": "address",
"name": "governanceSettings",
"internalType": "address",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TimelockedGovernanceCallCanceled",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"internalType": "bytes4",
"indexed": false
},
{
"type": "uint256",
"name": "timestamp",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "TimelockedGovernanceCallExecuted",
"inputs": [
{
"type": "bytes4",
"name": "selector",
"internalType": "bytes4",
"indexed": false
},
{
"type": "uint256",
"name": "timestamp",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "UseGoodRandomSet",
"inputs": [
{
"type": "bool",
"name": "useGoodRandom",
"internalType": "bool",
"indexed": false
},
{
"type": "uint256",
"name": "maxWaitForGoodRandomSeconds",
"internalType": "uint256",
"indexed": false
}
],
"anonymous": false
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "autoClaim",
"inputs": [
{
"type": "address[]",
"name": "_rewardOwners",
"internalType": "address[]"
},
{
"type": "uint256",
"name": "_month",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "cancelGovernanceCall",
"inputs": [
{
"type": "bytes4",
"name": "_selector",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "uint256",
"name": "_rewardAmount",
"internalType": "uint256"
}
],
"name": "claim",
"inputs": [
{
"type": "address",
"name": "_rewardOwner",
"internalType": "address"
},
{
"type": "address",
"name": "_recipient",
"internalType": "address"
},
{
"type": "uint256",
"name": "_month",
"internalType": "uint256"
},
{
"type": "bool",
"name": "_wrap",
"internalType": "bool"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract ClaimSetupManager"
}
],
"name": "claimSetupManager",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IICombinedNatBalance"
}
],
"name": "combinedNat",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "confirmOptOutOfAirdrop",
"inputs": [
{
"type": "address[]",
"name": "_optOutAddresses",
"internalType": "address[]"
}
]
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [
{
"type": "bool",
"name": "",
"internalType": "bool"
}
],
"name": "daemonize",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "endBlockNumber",
"inputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "entitlementStartTs",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "executeGovernanceCall",
"inputs": [
{
"type": "bytes4",
"name": "_selector",
"internalType": "bytes4"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract FlareDaemon"
}
],
"name": "flareDaemon",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "_addressUpdater",
"internalType": "address"
}
],
"name": "getAddressUpdater",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_amountWei",
"internalType": "uint256"
}
],
"name": "getClaimableAmount",
"inputs": [
{
"type": "uint256",
"name": "_month",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_amountWei",
"internalType": "uint256"
}
],
"name": "getClaimableAmountOf",
"inputs": [
{
"type": "address",
"name": "_account",
"internalType": "address"
},
{
"type": "uint256",
"name": "_month",
"internalType": "uint256"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_startMonth",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "_endMonth",
"internalType": "uint256"
}
],
"name": "getClaimableMonths",
"inputs": []
},
{
"type": "function",
"stateMutability": "pure",
"outputs": [
{
"type": "string",
"name": "",
"internalType": "string"
}
],
"name": "getContractName",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_currentMonth",
"internalType": "uint256"
}
],
"name": "getCurrentMonth",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_monthToExpireNext",
"internalType": "uint256"
}
],
"name": "getMonthToExpireNext",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "_lockedFundsWei",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "_totalInflationAuthorizedWei",
"internalType": "uint256"
},
{
"type": "uint256",
"name": "_totalClaimedWei",
"internalType": "uint256"
}
],
"name": "getTokenPoolSupplyData",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "address"
}
],
"name": "governance",
"inputs": []
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "address",
"name": "",
"internalType": "contract IGovernanceSettings"
}
],
"name": "governanceSettings",
"inputs": []
},
{
"type": "function",
"stateMutability": "nonpayable",
"outputs": [],
"name": "initialise",
"inputs": [
{
"type": "address",
"name": "_initialGovernance",
"internalType": "address"
}
]
},
{
"type": "function",
"stateMutability": "view",
"outputs": [
{
"type": "uint256",
"name": "",
"internalType": "uint256"
}
],
"name": "latestEntitlementStartTs",
"inputs": []
},
{