Add StakeInfo and Coordinator abis to mumbai registry

pull/3124/head
James Campbell 2023-05-09 19:01:37 +02:00
parent 2310793b50
commit 23656b7c48
1 changed files with 965 additions and 0 deletions

View File

@ -482,5 +482,970 @@
"type": "function" "type": "function"
} }
] ]
],
[
"StakeInfo",
"v0.0.0",
"0xC1379866Fb0c100DCBFAb7b470009C4827D47DD8",
[
{
"inputs": [
{
"internalType": "address[]",
"name": "updaters",
"type": "address[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "stakingProvider",
"type": "address"
},
{
"indexed": false,
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "UpdatedStakeAmount",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "stakingProvider",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "UpdatedStakeOperator",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "UPDATE_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_stakingProvider",
"type": "address"
}
],
"name": "authorizedStake",
"outputs": [
{
"internalType": "uint96",
"name": "",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "updateInfo",
"type": "bytes32[]"
}
],
"name": "batchUpdate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "operatorToProvider",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "stakes",
"outputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "stakingProviderFromOperator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "stakingProvider",
"type": "address"
},
{
"internalType": "uint96",
"name": "amount",
"type": "uint96"
}
],
"name": "updateAmount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "stakingProvider",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "updateOperator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
],
[
"Coordinator",
"v0.0.0",
"0x14EB9BB700E45D2Ee9233056b8cc341276c688Ba",
[
{
"inputs": [
{
"internalType": "contract IAccessControlApplication",
"name": "app",
"type": "address"
},
{
"internalType": "uint32",
"name": "_timeout",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "_maxDkgSize",
"type": "uint32"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "node",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "aggregatedTranscriptDigest",
"type": "bytes32"
}
],
"name": "AggregationPosted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "initiator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "successful",
"type": "bool"
}
],
"name": "EndRitual",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint32",
"name": "oldSize",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "newSize",
"type": "uint32"
}
],
"name": "MaxDkgSizeChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
}
],
"name": "StartAggregationRound",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "initiator",
"type": "address"
},
{
"indexed": false,
"internalType": "address[]",
"name": "participants",
"type": "address[]"
}
],
"name": "StartRitual",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint32",
"name": "oldTimeout",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "newTimeout",
"type": "uint32"
}
],
"name": "TimeoutChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"indexed": true,
"internalType": "address",
"name": "node",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "transcriptDigest",
"type": "bytes32"
}
],
"name": "TranscriptPosted",
"type": "event"
},
{
"inputs": [],
"name": "application",
"outputs": [
{
"internalType": "contract IAccessControlApplication",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "nodes",
"type": "address[]"
}
],
"name": "cohortFingerprint",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "ritualID",
"type": "uint256"
},
{
"internalType": "address",
"name": "provider",
"type": "address"
}
],
"name": "getParticipantFromProvider",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "provider",
"type": "address"
},
{
"internalType": "bool",
"name": "aggregated",
"type": "bool"
},
{
"internalType": "bytes",
"name": "transcript",
"type": "bytes"
}
],
"internalType": "struct Coordinator.Participant",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
}
],
"name": "getParticipants",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "provider",
"type": "address"
},
{
"internalType": "bool",
"name": "aggregated",
"type": "bool"
},
{
"internalType": "bytes",
"name": "transcript",
"type": "bytes"
}
],
"internalType": "struct Coordinator.Participant[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "ritualId",
"type": "uint256"
}
],
"name": "getRitualState",
"outputs": [
{
"internalType": "enum Coordinator.RitualState",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "providers",
"type": "address[]"
}
],
"name": "initiateRitual",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "maxDkgSize",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "numberOfRituals",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "aggregatedTranscript",
"type": "bytes"
},
{
"components": [
{
"internalType": "bytes32",
"name": "word0",
"type": "bytes32"
},
{
"internalType": "bytes16",
"name": "word1",
"type": "bytes16"
}
],
"internalType": "struct BLS12381.G1Point",
"name": "publicKey",
"type": "tuple"
}
],
"name": "postAggregation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "ritualId",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "transcript",
"type": "bytes"
}
],
"name": "postTranscript",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "rituals",
"outputs": [
{
"internalType": "address",
"name": "initiator",
"type": "address"
},
{
"internalType": "uint32",
"name": "dkgSize",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "initTimestamp",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "totalTranscripts",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "totalAggregations",
"type": "uint32"
},
{
"components": [
{
"internalType": "bytes32",
"name": "word0",
"type": "bytes32"
},
{
"internalType": "bytes16",
"name": "word1",
"type": "bytes16"
}
],
"internalType": "struct BLS12381.G1Point",
"name": "publicKey",
"type": "tuple"
},
{
"internalType": "bool",
"name": "aggregationMismatch",
"type": "bool"
},
{
"internalType": "bytes",
"name": "aggregatedTranscript",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "newSize",
"type": "uint32"
}
],
"name": "setMaxDkgSize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "newTimeout",
"type": "uint32"
}
],
"name": "setTimeout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "timeout",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
] ]
] ]