diff --git a/deployment/artifacts/tapir.json b/deployment/artifacts/tapir.json index c3474060..f9ca11d5 100644 --- a/deployment/artifacts/tapir.json +++ b/deployment/artifacts/tapir.json @@ -533,6 +533,18 @@ "internalType": "uint96", "indexed": false }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false + }, { "name": "operator", "type": "address", @@ -993,6 +1005,30 @@ } ] }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, { "type": "function", "name": "getActiveStakingProviders", @@ -1007,6 +1043,11 @@ "name": "_maxStakingProviders", "type": "uint256", "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" } ], "outputs": [ @@ -3331,12 +3372,12 @@ "stateMutability": "pure", "inputs": [ { - "name": "pending", + "name": "", "type": "uint256", "internalType": "uint256" }, { - "name": "duration", + "name": "", "type": "uint256", "internalType": "uint256" } @@ -3381,6 +3422,57 @@ } ] }, + { + "type": "function", + "name": "getParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "transcript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant" + } + ] + }, { "type": "function", "name": "getParticipantFromProvider", @@ -3468,18 +3560,74 @@ } ] }, + { + "type": "function", + "name": "getParticipants", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "maxParticipants", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "includeTranscript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant[]" + } + ] + }, { "type": "function", "name": "getProviderPublicKey", "stateMutability": "view", "inputs": [ { - "name": "_provider", + "name": "provider", "type": "address", "internalType": "address" }, { - "name": "_ritualId", + "name": "ritualId", "type": "uint256", "internalType": "uint256" } @@ -3509,6 +3657,25 @@ } ] }, + { + "type": "function", + "name": "getProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ] + }, { "type": "function", "name": "getPublicKeyFromRitualId", @@ -3522,7 +3689,7 @@ ], "outputs": [ { - "name": "dkgPublicKey", + "name": "", "type": "tuple", "components": [ { @@ -3793,13 +3960,37 @@ } ] }, + { + "type": "function", + "name": "isParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, { "type": "function", "name": "isProviderPublicKeySet", "stateMutability": "view", "inputs": [ { - "name": "_provider", + "name": "provider", "type": "address", "internalType": "address" } @@ -4157,7 +4348,7 @@ "stateMutability": "nonpayable", "inputs": [ { - "name": "_publicKey", + "name": "publicKey", "type": "tuple", "components": [ { @@ -5247,10 +5438,22 @@ "indexed": true }, { - "name": "amount", + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "deauthorizing", "type": "uint96", "internalType": "uint96", "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false } ], "anonymous": false @@ -5351,6 +5554,64 @@ } ] }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] + }, { "type": "function", "name": "getActiveStakingProviders", @@ -5438,6 +5699,25 @@ } ] }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, { "type": "function", "name": "rootApplication", @@ -5482,6 +5762,16 @@ "name": "index", "type": "uint248", "internalType": "uint248" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" } ] }, @@ -5515,9 +5805,37 @@ "internalType": "address" }, { - "name": "amount", + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", "type": "uint96", "internalType": "uint96" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" } ], "outputs": []