UNPKG

@skalenetwork/fair-manager-types

Version:

TypeScript typings for SKALE Fair Manager smart contracts

1,098 lines (1,096 loc) 21.7 kB
// Auto-generated file - do not edit manually import type { Abi } from 'viem'; export const CommitteeAbi = [ { "inputs": [ { "internalType": "address", "name": "authority", "type": "address" } ], "name": "AccessManagedInvalidAuthority", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" }, { "internalType": "uint32", "name": "delay", "type": "uint32" } ], "name": "AccessManagedRequiredDelay", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" } ], "name": "AccessManagedUnauthorized", "type": "error" }, { "inputs": [], "name": "AddressIsZero", "type": "error" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" }, { "internalType": "NodeId", "name": "child", "type": "uint256" } ], "name": "ChildIsMissing", "type": "error" }, { "inputs": [ { "internalType": "CommitteeIndex", "name": "index", "type": "uint256" } ], "name": "CommitteeNotFound", "type": "error" }, { "inputs": [], "name": "CommitteeRotationInProgress", "type": "error" }, { "inputs": [], "name": "InsertNullNode", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "InvalidNodesAddress", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "rng", "type": "address" } ], "name": "InvalidSkaleRngContract", "type": "error" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "NodeNotActive", "type": "error" }, { "inputs": [], "name": "NotFound", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "precompiledContract", "type": "address" } ], "name": "PrecompiledCallFailed", "type": "error" }, { "inputs": [], "name": "RemoveNullNode", "type": "error" }, { "inputs": [ { "internalType": "uint8", "name": "bits", "type": "uint8" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "SafeCastOverflowedUintDowncast", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "SenderIsNotDkg", "type": "error" }, { "inputs": [], "name": "SetWeightOfNullNode", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "needed", "type": "uint256" }, { "internalType": "uint256", "name": "available", "type": "uint256" } ], "name": "TooFewCandidates", "type": "error" }, { "inputs": [], "name": "TransitionDelayTooShort", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "authority", "type": "address" } ], "name": "AuthorityUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "CommitteeIndex", "name": "committeeIndex", "type": "uint256" }, { "indexed": true, "internalType": "DkgId", "name": "dkgId", "type": "uint256" }, { "indexed": false, "internalType": "Timestamp", "name": "startingTimestamp", "type": "uint256" } ], "name": "CommitteeDkgCompleted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "CommitteeIndex", "name": "committeeIndex", "type": "uint256" }, { "indexed": false, "internalType": "NodeId[]", "name": "nodes", "type": "uint256[]" }, { "indexed": true, "internalType": "DkgId", "name": "dkgId", "type": "uint256" } ], "name": "CommitteeSelected", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "oldSize", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "newSize", "type": "uint256" } ], "name": "CommitteeSizeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IDkg", "name": "oldDkg", "type": "address" }, { "indexed": true, "internalType": "contract IDkg", "name": "newDkg", "type": "address" } ], "name": "DkgUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" } ], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Duration", "name": "oldDelay", "type": "uint256" }, { "indexed": false, "internalType": "Duration", "name": "newDelay", "type": "uint256" } ], "name": "MinTransitionDelayUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "NodeBecomesEligible", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "NodeLosesEligibility", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract INodes", "name": "oldNodes", "type": "address" }, { "indexed": true, "internalType": "contract INodes", "name": "newNodes", "type": "address" } ], "name": "NodesUpdated", "type": "event" }, { "anonymous": false, "inputs": [], "name": "SkaleRNGDisabled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "rng", "type": "address" } ], "name": "SkaleRNGEnabled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IStaking", "name": "oldStaking", "type": "address" }, { "indexed": true, "internalType": "contract IStaking", "name": "newStaking", "type": "address" } ], "name": "StakingUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IStatus", "name": "oldStatus", "type": "address" }, { "indexed": true, "internalType": "contract IStatus", "name": "newStatus", "type": "address" } ], "name": "StatusUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "Duration", "name": "oldDelay", "type": "uint256" }, { "indexed": false, "internalType": "Duration", "name": "newDelay", "type": "uint256" } ], "name": "TransitionDelayUpdated", "type": "event" }, { "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": "authority", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "committeeSize", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "CommitteeIndex", "name": "index", "type": "uint256" } ], "name": "committees", "outputs": [ { "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" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "disableRNG", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "dkg", "outputs": [ { "internalType": "contract IDkg", "name": "", "type": "address" } ], "stateMutability": "view", "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": [], "name": "isConsumingScheduledOp", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "isNodeInCurrentOrNextCommittee", "outputs": [ { "internalType": "bool", "name": "result", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastCommitteeIndex", "outputs": [ { "internalType": "CommitteeIndex", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minTransitionDelay", "outputs": [ { "internalType": "Duration", "name": "", "type": "uint256" } ], "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": [], "name": "nodes", "outputs": [ { "internalType": "contract INodes", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" } ], "name": "processHeartbeat", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "DkgId", "name": "round", "type": "uint256" } ], "name": "processSuccessfulDkg", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "select", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newAuthority", "type": "address" } ], "name": "setAuthority", "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": "skaleRng", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "staking", "outputs": [ { "internalType": "contract IStaking", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "status", "outputs": [ { "internalType": "contract IStatus", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "transitionDelay", "outputs": [ { "internalType": "Duration", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "NodeId", "name": "node", "type": "uint256" }, { "internalType": "uint256", "name": "share", "type": "uint256" } ], "name": "updateWeight", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ] as const satisfies Abi;