UNPKG

@skalenetwork/fair-manager-types

Version:

TypeScript typings for SKALE Fair Manager smart contracts

921 lines 17.4 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "schainType", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "partOfNode", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "numberOfNodes", "type": "uint256" } ], "name": "SchainTypeAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "schainType", "type": "uint256" } ], "name": "SchainTypeRemoved", "type": "event" }, { "inputs": [ { "internalType": "contract INodes", "name": "nodes", "type": "address" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "addSchainForNode", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint8", "name": "partOfNode", "type": "uint8" }, { "internalType": "uint256", "name": "numberOfNodes", "type": "uint256" } ], "name": "addSchainType", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "lifetime", "type": "uint256" }, { "internalType": "uint256", "name": "deposit", "type": "uint256" } ], "name": "changeLifetime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "checkException", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "indexOfNode", "type": "uint256" } ], "name": "checkHoleForSchain", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "checkSchainOnNode", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "numberOfNodes", "type": "uint256" }, { "internalType": "uint8", "name": "partOfNode", "type": "uint8" } ], "name": "createGroupForSchain", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "deleteGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "getActiveSchain", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "getActiveSchains", "outputs": [ { "internalType": "bytes32[]", "name": "activeSchains", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getGeneration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeHash", "type": "uint256" } ], "name": "getNodeIndexInGroup", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getNodesInGroup", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getNumberOfNodesInGroup", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" } ], "name": "getSchainHashesByAddress", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "getSchainHashesForNode", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" } ], "name": "getSchainListSize", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getSchainName", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getSchainOriginator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getSchainOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "typeOfSchain", "type": "uint256" } ], "name": "getSchainType", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSchains", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getSchainsPartOfNode", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "originator", "type": "address" }, { "internalType": "uint256", "name": "lifetime", "type": "uint256" }, { "internalType": "uint256", "name": "deposit", "type": "uint256" } ], "name": "initializeSchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isAnyFreeNode", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "address", "name": "sender", "type": "address" } ], "name": "isNodeAddressesInGroup", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isOwnerAddress", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isSchainActive", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isSchainExist", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" } ], "name": "isSchainNameAvailable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isTimeExpired", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "makeSchainNodesInvisible", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "makeSchainNodesVisible", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "newGeneration", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "numberOfSchains", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "removeAllNodesFromSchainExceptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "removeHolesForSchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "removeNodeFromAllExceptionSchains", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "removeNodeFromExceptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "removeNodeFromSchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "address", "name": "from", "type": "address" } ], "name": "removeSchain", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "internalType": "uint256", "name": "schainIndex", "type": "uint256" } ], "name": "removeSchainForNode", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "typeOfSchain", "type": "uint256" } ], "name": "removeSchainType", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" } ], "name": "schainsAtSystem", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "setException", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "setNodeInGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "newNumberOfSchainTypes", "type": "uint256" } ], "name": "setNumberOfSchainTypes", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]