@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
992 lines • 18.9 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "ExitCompleted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startLeavingPeriod",
"type": "uint256"
}
],
"name": "ExitInitialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "previousIP",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "newIP",
"type": "bytes4"
}
],
"name": "IPChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bool",
"name": "status",
"type": "bool"
}
],
"name": "IncompliantNode",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bool",
"name": "status",
"type": "bool"
}
],
"name": "MaintenanceNode",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "ip",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "bytes4",
"name": "publicIP",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "uint16",
"name": "port",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "nonce",
"type": "uint16"
},
{
"indexed": false,
"internalType": "string",
"name": "domainName",
"type": "string"
}
],
"name": "NodeCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "space",
"type": "uint8"
}
],
"name": "addSpaceToNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"internalType": "bytes4",
"name": "newIP",
"type": "bytes4"
},
{
"internalType": "bytes4",
"name": "newPublicIP",
"type": "bytes4"
}
],
"name": "changeIP",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "time",
"type": "uint256"
}
],
"name": "changeNodeFinishTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "changeNodeLastRewardDate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "checkPossibilityCreatingNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "validatorId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "checkPossibilityToMaintainNode",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "completeExit",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "freeSpace",
"type": "uint8"
}
],
"name": "countNodesWithFreeSpace",
"outputs": [
{
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"components": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "bytes4",
"name": "ip",
"type": "bytes4"
},
{
"internalType": "bytes4",
"name": "publicIp",
"type": "bytes4"
},
{
"internalType": "uint16",
"name": "port",
"type": "uint16"
},
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
},
{
"internalType": "uint16",
"name": "nonce",
"type": "uint16"
},
{
"internalType": "string",
"name": "domainName",
"type": "string"
}
],
"internalType": "struct INodes.NodeCreationParams",
"name": "params",
"type": "tuple"
}
],
"name": "createNode",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "validatorId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "deleteNodeForValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getActiveNodeIds",
"outputs": [
{
"internalType": "uint256[]",
"name": "activeNodeIds",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getFreeSpace",
"outputs": [
{
"internalType": "uint8",
"name": "freeSpace",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getLastChangeIpTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeDomainName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeFinishTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeIP",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeLastRewardDate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeNextRewardDate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodePort",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodePublicKey",
"outputs": [
{
"internalType": "bytes32[2]",
"name": "",
"type": "bytes32[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getNodeStatus",
"outputs": [
{
"internalType": "enum INodes.NodeStatus",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumberOfNodes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumberOnlineNodes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "freeSpace",
"type": "uint8"
},
{
"components": [
{
"internalType": "uint256",
"name": "seed",
"type": "uint256"
}
],
"internalType": "struct IRandom.RandomGenerator",
"name": "randomGenerator",
"type": "tuple"
}
],
"name": "getRandomNodeWithFreeSpace",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "getValidatorId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "validatorId",
"type": "uint256"
}
],
"name": "getValidatorNodeIndexes",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "incompliant",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "initExit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeActive",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeExist",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeInMaintenance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeLeaving",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeLeft",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isNodeVisible",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "isTimeForReward",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "makeNodeInvisible",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "makeNodeVisible",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "numberOfActiveNodes",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "removeNodeFromInMaintenance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "space",
"type": "uint8"
}
],
"name": "removeSpaceFromNode",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
},
{
"internalType": "string",
"name": "domainName",
"type": "string"
}
],
"name": "setDomainName",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "setNodeCompliant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "setNodeInMaintenance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nodeIndex",
"type": "uint256"
}
],
"name": "setNodeIncompliant",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]