@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
808 lines (806 loc) • 17 kB
text/typescript
// Auto-generated file - do not edit manually
import type { Abi } from 'viem';
export const DKGAbi = [
{
"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": "DkgId",
"name": "id",
"type": "uint256"
}
],
"name": "DkgIsNotInAlrightStage",
"type": "error"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "id",
"type": "uint256"
}
],
"name": "DkgIsNotInBroadcastStage",
"type": "error"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "id",
"type": "uint256"
}
],
"name": "DkgIsNotSuccessful",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "DuplicatedNodeId",
"type": "error"
},
{
"inputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "x",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "y",
"type": "tuple"
}
],
"internalType": "struct IDkg.G2Point",
"name": "value",
"type": "tuple"
}
],
"name": "IncorrectG2Point",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "actual",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "IncorrectSecretKeyContributionQuantity",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "actual",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "expected",
"type": "uint256"
}
],
"name": "IncorrectVerificationsVectorQuantity",
"type": "error"
},
{
"inputs": [],
"name": "InvalidCommitteeAddress",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "InvalidNodesAddress",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "NodeAlreadyBroadcasted",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "NodeDoesNotParticipateInDkg",
"type": "error"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "NodeIsAlreadyAlright",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "precompiledContract",
"type": "address"
}
],
"name": "PrecompiledCallFailed",
"type": "error"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "RoundDoesNotExist",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
},
{
"indexed": true,
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "AllDataReceived",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "authority",
"type": "address"
}
],
"name": "AuthorityUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
},
{
"indexed": true,
"internalType": "NodeId",
"name": "node",
"type": "uint256"
},
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "x",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "y",
"type": "tuple"
}
],
"indexed": false,
"internalType": "struct IDkg.G2Point[]",
"name": "verificationVector",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
},
{
"internalType": "bytes32",
"name": "share",
"type": "bytes32"
}
],
"indexed": false,
"internalType": "struct IDkg.KeyShare[]",
"name": "secretKeyContribution",
"type": "tuple[]"
}
],
"name": "BroadcastAndKeyShare",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "DkgId",
"name": "dkgId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "NodeId[]",
"name": "participants",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startingBlockNumber",
"type": "uint256"
}
],
"name": "DkgRoundCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "SuccessfulDkg",
"type": "event"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "alright",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "authority",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
},
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "x",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "y",
"type": "tuple"
}
],
"internalType": "struct IDkg.G2Point[]",
"name": "verificationVector",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "bytes32[2]",
"name": "publicKey",
"type": "bytes32[2]"
},
{
"internalType": "bytes32",
"name": "share",
"type": "bytes32"
}
],
"internalType": "struct IDkg.KeyShare[]",
"name": "secretKeyContribution",
"type": "tuple[]"
}
],
"name": "broadcast",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "committee",
"outputs": [
{
"internalType": "contract ICommittee",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId[]",
"name": "participants",
"type": "uint256[]"
}
],
"name": "generate",
"outputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "getParticipants",
"outputs": [
{
"internalType": "NodeId[]",
"name": "participants",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "getPublicKey",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "x",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "y",
"type": "tuple"
}
],
"internalType": "struct IDkg.G2Point",
"name": "publicKey",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
}
],
"name": "getRound",
"outputs": [
{
"components": [
{
"internalType": "DkgId",
"name": "id",
"type": "uint256"
},
{
"internalType": "enum IDkg.Status",
"name": "status",
"type": "uint8"
},
{
"internalType": "NodeId[]",
"name": "nodes",
"type": "uint256[]"
},
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "x",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "a",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "b",
"type": "uint256"
}
],
"internalType": "struct IDkg.Fp2Point",
"name": "y",
"type": "tuple"
}
],
"internalType": "struct IDkg.G2Point",
"name": "publicKey",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "startingBlockNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "numberOfBroadcasted",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "hashedData",
"type": "bytes32[]"
},
{
"internalType": "uint256",
"name": "numberOfCompleted",
"type": "uint256"
},
{
"internalType": "bool[]",
"name": "completed",
"type": "bool[]"
}
],
"internalType": "struct IDkg.Round",
"name": "round",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "initialAuthority",
"type": "address"
},
{
"internalType": "contract ICommittee",
"name": "committeeAddress",
"type": "address"
},
{
"internalType": "contract INodes",
"name": "nodesAddress",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "isConsumingScheduledOp",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "DkgId",
"name": "dkg",
"type": "uint256"
},
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "isNodeBroadcasted",
"outputs": [
{
"internalType": "bool",
"name": "broadcasted",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lastDkgId",
"outputs": [
{
"internalType": "DkgId",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "nodes",
"outputs": [
{
"internalType": "contract INodes",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newAuthority",
"type": "address"
}
],
"name": "setAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
] as const satisfies Abi;