@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
974 lines (972 loc) • 18.7 kB
text/typescript
// Auto-generated file - do not edit manually
import type { Abi } from 'viem';
export const NodesAbi = [
{
"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": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "ActiveNodeWasNeverRegistered",
"type": "error"
},
{
"inputs": [],
"name": "ActiveNodesCannotChangeOwnership",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "AddressInUseByPassiveNodes",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "AddressIsNotAssignedToAnyNode",
"type": "error"
},
{
"inputs": [],
"name": "AddressIsZero",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "AddressWasAlreadyAssignedToNode",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "key",
"type": "bytes32"
}
],
"name": "EnumerableMapNonexistentKey",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
}
],
"name": "InvalidIp",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nodeIdCounter",
"type": "uint256"
}
],
"name": "InvalidNodeId",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
}
],
"name": "InvalidPublicKey",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
},
{
"internalType": "address",
"name": "expected",
"type": "address"
},
{
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "InvalidPublicKeyForSender",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeDoesNotExist",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeIsInCommittee",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "PassiveNodeAlreadyExistsForAddress",
"type": "error"
},
{
"inputs": [],
"name": "PortShouldNotBeZero",
"type": "error"
},
{
"inputs": [],
"name": "SenderIsNotNewNodeOwner",
"type": "error"
},
{
"inputs": [],
"name": "SenderIsNotNodeOwner",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "ActiveNodeDeleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "authority",
"type": "address"
}
],
"name": "AuthorityUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "contract ICommittee",
"name": "newCommittee",
"type": "address"
}
],
"name": "CommitteeUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "newName",
"type": "string"
}
],
"name": "NodeDomainNameChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "NodeIpChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "oldOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "NodeOwnerChangeRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "oldOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "NodeOwnerChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "NodeRegistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "PassiveNodeDeleted",
"type": "event"
},
{
"inputs": [],
"name": "ZERO_IPV4",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ZERO_IPV6",
"outputs": [
{
"internalType": "bytes16",
"name": "",
"type": "bytes16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "activeNodeExists",
"outputs": [
{
"internalType": "bool",
"name": "result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "authority",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "committeeContract",
"outputs": [
{
"internalType": "contract ICommittee",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "confirmOwnerChange",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "deleteNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "deleteNodeByFoundation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getActiveNodeIds",
"outputs": [
{
"internalType": "NodeId[]",
"name": "nodeIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "getNode",
"outputs": [
{
"components": [
{
"internalType": "NodeId",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "string",
"name": "domainName",
"type": "string"
},
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"internalType": "struct INodes.Node",
"name": "node",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "getNodeId",
"outputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPassiveNodeIds",
"outputs": [
{
"internalType": "NodeId[]",
"name": "nodeIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "getPassiveNodeIdsForAddress",
"outputs": [
{
"internalType": "NodeId[]",
"name": "nodeIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "getPublicKey",
"outputs": [
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "initialAuthority",
"type": "address"
},
{
"components": [
{
"internalType": "NodeId",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "string",
"name": "domainName",
"type": "string"
},
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"internalType": "struct INodes.Node[]",
"name": "initialNodes",
"type": "tuple[]"
},
{
"internalType": "bytes32[2][]",
"name": "nodesPublicKeys",
"type": "bytes32[2][]"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "isConsumingScheduledOp",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "nodes",
"outputs": [
{
"internalType": "NodeId",
"name": "id",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "string",
"name": "domainName",
"type": "string"
},
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "ownerChangeRequests",
"outputs": [
{
"internalType": "address",
"name": "newNodeOwner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "passiveNodeExists",
"outputs": [
{
"internalType": "bool",
"name": "result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "registerNode",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "registerPassiveNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "requestChangeOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newAuthority",
"type": "address"
}
],
"name": "setAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ICommittee",
"name": "committeeAddress",
"type": "address"
}
],
"name": "setCommittee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "setDomainName",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "ip",
"type": "bytes"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
}
],
"name": "setIpAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
] as const satisfies Abi;