@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
452 lines (450 loc) • 8.41 kB
text/typescript
// Auto-generated file - do not edit manually
import type { Abi } from 'viem';
export const StatusAbi = [
{
"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": "InvalidInitialization",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeAlreadyWhitelisted",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeDoesNotExist",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeNotWhitelisted",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "authority",
"type": "address"
}
],
"name": "AuthorityUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "Duration",
"name": "interval",
"type": "uint256"
}
],
"name": "HeartbeatIntervalChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "Duration",
"name": "oldInterval",
"type": "uint256"
},
{
"indexed": false,
"internalType": "Duration",
"name": "newInterval",
"type": "uint256"
}
],
"name": "HeartbeatIntervalUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "HeartbeatReceived",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "HeartbeatSignal",
"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"
}
],
"name": "NodeDataRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeRemovedFromWhitelist",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "NodeWhitelisted",
"type": "event"
},
{
"inputs": [],
"name": "alive",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "authority",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "committee",
"outputs": [
{
"internalType": "contract ICommittee",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getWhitelistedNodes",
"outputs": [
{
"internalType": "NodeId[]",
"name": "nodeIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "heartbeatInterval",
"outputs": [
{
"internalType": "Duration",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "initialAuthority",
"type": "address"
},
{
"internalType": "contract INodes",
"name": "nodesAddress",
"type": "address"
},
{
"internalType": "contract ICommittee",
"name": "committeeAddress",
"type": "address"
}
],
"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": "isHealthy",
"outputs": [
{
"internalType": "bool",
"name": "healthy",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "isWhitelisted",
"outputs": [
{
"internalType": "bool",
"name": "whitelisted",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "id",
"type": "uint256"
}
],
"name": "lastHeartbeatTimestamp",
"outputs": [
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "nodeRemoved",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "nodes",
"outputs": [
{
"internalType": "contract INodes",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "removeNodeFromWhitelist",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newAuthority",
"type": "address"
}
],
"name": "setAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "Duration",
"name": "interval",
"type": "uint256"
}
],
"name": "setHeartbeatInterval",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
}
],
"name": "whitelistNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
] as const satisfies Abi;