UNPKG

@skalenetwork/fair-manager-types

Version:

TypeScript typings for SKALE Fair Manager smart contracts

445 lines (443 loc) 9.36 kB
// Auto-generated file - do not edit manually import type { Abi } from 'viem'; export const ICommitteeAbi = [ { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "version", "type": "string" }, { "indexed": false, "internalType": "string", "name": "newVersion", "type": "string" } ], "name": "VersionUpdated", "type": "event" }, { "inputs": [], "name": "disableRNG", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "ejectUnhealthyNode", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getActiveCommitteeIndex", "outputs": [ { "internalType": "CommitteeIndex", "name": "committeeIndex", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "CommitteeIndex", "name": "committeeIndex", "type": "uint256" } ], "name": "getCommittee", "outputs": [ { "components": [ { "internalType": "NodeId[]", "name": "nodes", "type": "uint256[]" }, { "internalType": "DkgId", "name": "dkg", "type": "uint256" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct IDkg.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct IDkg.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct IDkg.G2Point", "name": "commonPublicKey", "type": "tuple" }, { "internalType": "Timestamp", "name": "startingTimestamp", "type": "uint256" } ], "internalType": "struct ICommittee.Committee", "name": "committee", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "initialAuthority", "type": "address" }, { "internalType": "contract INodes", "name": "nodesAddress", "type": "address" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct IDkg.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct IDkg.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct IDkg.G2Point", "name": "commonPublicKey", "type": "tuple" }, { "internalType": "NodeId[]", "name": "nodeIds", "type": "uint256[]" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "isNodeInCurrentOrNextCommittee", "outputs": [ { "internalType": "bool", "name": "result", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "nodeRemoved", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "nodeRemovedFromWhitelist", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "nodeWhitelisted", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "processHeartbeat", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "DkgId", "name": "dkg", "type": "uint256" } ], "name": "processSuccessfulDkg", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "select", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "size", "type": "uint256" } ], "name": "setCommitteeSize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IDkg", "name": "dkgAddress", "type": "address" } ], "name": "setDkg", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Duration", "name": "delay", "type": "uint256" } ], "name": "setMinTransitionDelay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract INodes", "name": "nodesAddress", "type": "address" } ], "name": "setNodes", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newRNG", "type": "address" } ], "name": "setRNG", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IStaking", "name": "stakingAddress", "type": "address" } ], "name": "setStaking", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IStatus", "name": "statusAddress", "type": "address" } ], "name": "setStatus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "Duration", "name": "delay", "type": "uint256" } ], "name": "setTransitionDelay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "newVersion", "type": "string" } ], "name": "setVersion", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "staking", "outputs": [ { "internalType": "contract IStaking", "name": "stakingAddress", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "status", "outputs": [ { "internalType": "contract IStatus", "name": "statusContract", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" }, { "internalType": "uint256", "name": "share", "type": "uint256" } ], "name": "updateWeight", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ] as const satisfies Abi;