UNPKG

@skalenetwork/fair-manager-types

Version:

TypeScript typings for SKALE Fair Manager smart contracts

1,142 lines 23.9 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "AllDataReceived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "BadGuy", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "indexed": true, "internalType": "uint256", "name": "fromNode", "type": "uint256" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "indexed": false, "internalType": "struct ISkaleDKG.G2Point[]", "name": "verificationVector", "type": "tuple[]" }, { "components": [ { "internalType": "bytes32[2]", "name": "publicKey", "type": "bytes32[2]" }, { "internalType": "bytes32", "name": "share", "type": "bytes32" } ], "indexed": false, "internalType": "struct ISkaleDKG.KeyShare[]", "name": "secretKeyContribution", "type": "tuple[]" } ], "name": "BroadcastAndKeyShare", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "ChannelClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "ChannelOpened", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "error", "type": "string" } ], "name": "ComplaintError", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "indexed": true, "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "toNodeIndex", "type": "uint256" } ], "name": "ComplaintSent", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "FailedDKG", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "NewGuy", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "SuccessfulDKG", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" } ], "name": "alright", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct ISkaleDKG.G2Point[]", "name": "verificationVector", "type": "tuple[]" }, { "components": [ { "internalType": "bytes32[2]", "name": "publicKey", "type": "bytes32[2]" }, { "internalType": "bytes32", "name": "share", "type": "bytes32" } ], "internalType": "struct ISkaleDKG.KeyShare[]", "name": "secretKeyContribution", "type": "tuple[]" }, { "internalType": "uint256", "name": "rotationCounter", "type": "uint256" } ], "name": "broadcast", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" }, { "internalType": "bool", "name": "revertCheck", "type": "bool" } ], "name": "checkAndReturnIndexInGroup", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "internalType": "uint256", "name": "toNodeIndex", "type": "uint256" } ], "name": "complaint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "internalType": "uint256", "name": "toNodeIndex", "type": "uint256" } ], "name": "complaintBadData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "deleteChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "badNode", "type": "uint256" } ], "name": "finalizeSlashing", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getAlrightStartedTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getChannelStartedBlock", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getChannelStartedTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getComplaintData", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getComplaintStartedTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getNumberOfBroadcasted", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getNumberOfCompleted", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "getTimeOfLastSuccessfulDKG", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "bytes32[2]", "name": "publicKey", "type": "bytes32[2]" }, { "internalType": "bytes32", "name": "share", "type": "bytes32" } ], "internalType": "struct ISkaleDKG.KeyShare[]", "name": "secretKeyContribution", "type": "tuple[]" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct ISkaleDKG.G2Point[]", "name": "verificationVector", "type": "tuple[]" } ], "name": "hashData", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isAllDataReceived", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isAlrightPossible", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isBroadcastPossible", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isChannelOpened", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "internalType": "uint256", "name": "toNodeIndex", "type": "uint256" } ], "name": "isComplaintPossible", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "isEveryoneBroadcasted", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "groupIndex", "type": "bytes32" } ], "name": "isLastDKGSuccessful", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isNodeBroadcasted", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isPreResponsePossible", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "isResponsePossible", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "openChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "pendingToBeReplaced", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainId", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct ISkaleDKG.G2Point[]", "name": "verificationVector", "type": "tuple[]" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct ISkaleDKG.G2Point[]", "name": "verificationVectorMultiplication", "type": "tuple[]" }, { "components": [ { "internalType": "bytes32[2]", "name": "publicKey", "type": "bytes32[2]" }, { "internalType": "bytes32", "name": "share", "type": "bytes32" } ], "internalType": "struct ISkaleDKG.KeyShare[]", "name": "secretKeyContribution", "type": "tuple[]" } ], "name": "preResponse", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "resetPendingToBeReplaced", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "fromNodeIndex", "type": "uint256" }, { "internalType": "uint256", "name": "secretNumber", "type": "uint256" }, { "components": [ { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "x", "type": "tuple" }, { "components": [ { "internalType": "uint256", "name": "a", "type": "uint256" }, { "internalType": "uint256", "name": "b", "type": "uint256" } ], "internalType": "struct ISkaleDKG.Fp2Point", "name": "y", "type": "tuple" } ], "internalType": "struct ISkaleDKG.G2Point", "name": "multipliedShare", "type": "tuple" } ], "name": "response", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" }, { "internalType": "uint256", "name": "nodeIndex", "type": "uint256" } ], "name": "setBadNode", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "schainHash", "type": "bytes32" } ], "name": "setStartAlrightTimestamp", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]