diff --git a/deployment/artifacts/lynx.json b/deployment/artifacts/lynx.json index 228e58ac..049d569f 100644 --- a/deployment/artifacts/lynx.json +++ b/deployment/artifacts/lynx.json @@ -1,344 +1,262 @@ { - "5": { - "LynxStakingToken": { - "address": "0x90990F1F7C952D4D02759802565d62479e8aA936", + "80001": { + "Coordinator": { + "address": "0x530608219a8A671FD183534b17E2a2CE09e782a4", "abi": [ { "type": "constructor", "stateMutability": "nonpayable", "inputs": [ { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", + "name": "_application", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "contract ITACoChildApplication" }, { - "name": "spender", + "name": "_currency", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "contract IERC20" }, { - "name": "value", + "name": "_feeRatePerSecond", "type": "uint256", - "internalType": "uint256", - "indexed": false + "internalType": "uint256" } - ], - "anonymous": false + ] }, { - "type": "event", - "name": "Transfer", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "to", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] }, { - "type": "function", - "name": "allowance", - "stateMutability": "view", + "type": "error", + "name": "AccessControlEnforcedDefaultAdminDelay", "inputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "schedule", + "type": "uint48", + "internalType": "uint48" } ] }, { - "type": "function", - "name": "approve", - "stateMutability": "nonpayable", + "type": "error", + "name": "AccessControlEnforcedDefaultAdminRules", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlInvalidDefaultAdmin", "inputs": [ { - "name": "spender", + "name": "defaultAdmin", "type": "address", "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" } ] }, { - "type": "function", - "name": "balanceOf", - "stateMutability": "view", + "type": "error", + "name": "AccessControlUnauthorizedAccount", "inputs": [ { "name": "account", "type": "address", "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "decimals", - "stateMutability": "view", - "inputs": [], - "outputs": [ + }, { - "name": "", - "type": "uint8", - "internalType": "uint8" + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" } ] }, { - "type": "function", - "name": "decreaseAllowance", - "stateMutability": "nonpayable", + "type": "error", + "name": "AddressEmptyCode", "inputs": [ { - "name": "spender", + "name": "target", "type": "address", "internalType": "address" - }, - { - "name": "subtractedValue", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" } ] }, { - "type": "function", - "name": "increaseAllowance", - "stateMutability": "nonpayable", + "type": "error", + "name": "AddressInsufficientBalance", "inputs": [ { - "name": "spender", + "name": "account", "type": "address", "internalType": "address" - }, - { - "name": "addedValue", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" } ] }, { - "type": "function", - "name": "name", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] + "type": "error", + "name": "FailedInnerCall", + "inputs": [] }, { - "type": "function", - "name": "symbol", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] + "type": "error", + "name": "InvalidInitialization", + "inputs": [] }, { - "type": "function", - "name": "totalSupply", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "SafeCastOverflowedUintDowncast", + "inputs": [ { - "name": "", + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", "type": "uint256", "internalType": "uint256" } ] }, { - "type": "function", - "name": "transfer", - "stateMutability": "nonpayable", + "type": "error", + "name": "SafeERC20FailedOperation", "inputs": [ { - "name": "to", + "name": "token", "type": "address", "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" } ] }, { - "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", + "type": "event", + "name": "AggregationPosted", "inputs": [ { - "name": "from", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true }, { - "name": "to", + "name": "node", "type": "address", - "internalType": "address" + "internalType": "address", + "indexed": true }, { - "name": "amount", - "type": "uint256", - "internalType": "uint256" + "name": "aggregatedTranscriptDigest", + "type": "bytes32", + "internalType": "bytes32", + "indexed": false } ], - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeScheduled", + "inputs": [ { - "name": "", - "type": "bool", - "internalType": "bool" + "name": "newDelay", + "type": "uint48", + "internalType": "uint48", + "indexed": false + }, + { + "name": "effectSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false } - ] - } - ], - "tx_hash": "0x727721ea135cd46bc4510b163b524672cf5eed2df1bcdef8886b775d883a34a3", - "block_number": 9758692, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonRoot": { - "address": "0x7761756c57398e478F855Fbe31dc500C030F85BE", - "abi": [ + ], + "anonymous": false + }, { - "type": "constructor", - "stateMutability": "nonpayable", + "type": "event", + "name": "DefaultAdminTransferCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminTransferScheduled", "inputs": [ { - "name": "_rootApplication", + "name": "newAdmin", "type": "address", - "internalType": "contract ITACoChildToRoot" + "internalType": "address", + "indexed": true + }, + { + "name": "acceptSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "error", - "name": "OwnableInvalidOwner", + "type": "event", + "name": "EndRitual", "inputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "successful", + "type": "bool", + "internalType": "bool", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "error", - "name": "OwnableUnauthorizedAccount", + "type": "event", + "name": "Initialized", "inputs": [ { - "name": "account", - "type": "address", - "internalType": "address" + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false } - ] + ], + "anonymous": false }, { "type": "event", - "name": "AuthorizationUpdated", + "name": "MaxDkgSizeChanged", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true + "name": "oldSize", + "type": "uint16", + "internalType": "uint16", + "indexed": false }, { - "name": "amount", - "type": "uint96", - "internalType": "uint96", + "name": "newSize", + "type": "uint16", + "internalType": "uint16", "indexed": false } ], @@ -346,16 +264,52 @@ }, { "type": "event", - "name": "OperatorConfirmed", + "name": "ParticipantPublicKeySet", "inputs": [ { - "name": "stakingProvider", + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "participant", "type": "address", "internalType": "address", "indexed": true }, { - "name": "operator", + "name": "publicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word2", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "internalType": "struct BLS12381.G2Point", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReimbursementPoolSet", + "inputs": [ + { + "name": "pool", "type": "address", "internalType": "address", "indexed": true @@ -365,16 +319,22 @@ }, { "type": "event", - "name": "OperatorUpdated", + "name": "RitualAuthorityTransferred", "inputs": [ { - "name": "stakingProvider", + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "previousAuthority", "type": "address", "internalType": "address", "indexed": true }, { - "name": "operator", + "name": "newAuthority", "type": "address", "internalType": "address", "indexed": true @@ -384,16 +344,47 @@ }, { "type": "event", - "name": "OwnershipTransferred", + "name": "RoleAdminChanged", "inputs": [ { - "name": "previousOwner", + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "newAdminRole", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", "type": "address", "internalType": "address", "indexed": true }, { - "name": "newOwner", + "name": "sender", "type": "address", "internalType": "address", "indexed": true @@ -402,71 +393,178 @@ "anonymous": false }, { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", + "type": "event", + "name": "RoleRevoked", "inputs": [ { - "name": "operator", + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", "type": "address", - "internalType": "address" + "internalType": "address", + "indexed": true + }, + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "event", + "name": "StartAggregationRound", + "inputs": [ { - "name": "", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, + "type": "event", + "name": "StartRitual", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "authority", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "participants", + "type": "address[]", + "internalType": "address[]", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TimeoutChanged", + "inputs": [ + { + "name": "oldTimeout", + "type": "uint32", + "internalType": "uint32", + "indexed": false + }, + { + "name": "newTimeout", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TranscriptPosted", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "node", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "transcriptDigest", + "type": "bytes32", + "internalType": "bytes32", + "indexed": false + } + ], + "anonymous": false + }, { "type": "function", - "name": "rootApplication", + "name": "DEFAULT_ADMIN_ROLE", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract ITACoChildToRoot" + "type": "bytes32", + "internalType": "bytes32" } ] }, { "type": "function", - "name": "setRootApplication", + "name": "INITIATOR_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "TREASURY_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "acceptDefaultAdminTransfer", "stateMutability": "nonpayable", - "inputs": [ + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "application", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "application", + "name": "", "type": "address", - "internalType": "contract ITACoChildToRoot" + "internalType": "contract ITACoChildApplication" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "transferOwnership", + "name": "beginDefaultAdminTransfer", "stateMutability": "nonpayable", "inputs": [ { - "name": "newOwner", + "name": "newAdmin", "type": "address", "internalType": "address" } @@ -475,635 +573,546 @@ }, { "type": "function", - "name": "updateAuthorization", + "name": "cancelDefaultAdminTransfer", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "changeDefaultAdminDelay", "stateMutability": "nonpayable", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" } ], "outputs": [] }, { "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", + "name": "cohortFingerprint", + "stateMutability": "pure", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" + "name": "nodes", + "type": "address[]", + "internalType": "address[]" } ], - "outputs": [] - } - ], - "tx_hash": "0x4b17504b2177768291c281118aa596245a20969550c646bfedf59ff6dfa88c1e", - "block_number": 10054994, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TACoApplication": { - "address": "0x31F0a0B94C829Ba6d902c98CAF8d8462C6c63241", - "abi": [ + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ + "type": "function", + "name": "currency", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "_token", + "name": "", "type": "address", "internalType": "contract IERC20" - }, - { - "name": "_tStaking", - "type": "address", - "internalType": "contract IStaking" - }, - { - "name": "_minimumAuthorization", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_minOperatorSeconds", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_rewardDuration", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_deauthorizationDuration", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_commitmentDurationOptions", - "type": "uint64[]", - "internalType": "uint64[]" - }, - { - "name": "_commitmentDeadline", - "type": "uint64", - "internalType": "uint64" } ] }, { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ + "type": "function", + "name": "defaultAdmin", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "target", + "name": "", "type": "address", "internalType": "address" } ] }, { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ + "type": "function", + "name": "defaultAdminDelay", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "account", - "type": "address", - "internalType": "address" + "name": "", + "type": "uint48", + "internalType": "uint48" } ] }, { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] + "type": "function", + "name": "defaultAdminDelayIncreaseWait", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint48", + "internalType": "uint48" + } + ] }, { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] + "type": "function", + "name": "feeRatePerSecond", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] }, { - "type": "error", - "name": "OwnableInvalidOwner", + "type": "function", + "name": "getAuthority", + "stateMutability": "view", "inputs": [ { - "name": "owner", + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", "type": "address", "internalType": "address" } ] }, { - "type": "error", - "name": "OwnableUnauthorizedAccount", + "type": "function", + "name": "getParticipantFromProvider", + "stateMutability": "view", "inputs": [ { - "name": "account", + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", "type": "address", "internalType": "address" } + ], + "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": "error", - "name": "SafeCastOverflowedUintDowncast", + "type": "function", + "name": "getParticipants", + "stateMutability": "view", "inputs": [ { - "name": "bits", - "type": "uint8", - "internalType": "uint8" - }, + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ { - "name": "value", - "type": "uint256", - "internalType": "uint256" + "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": "error", - "name": "SafeERC20FailedOperation", + "type": "function", + "name": "getProviderPublicKey", + "stateMutability": "view", "inputs": [ { - "name": "token", + "name": "_provider", "type": "address", "internalType": "address" + }, + { + "name": "_ritualId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word2", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "internalType": "struct BLS12381.G2Point" } ] }, { - "type": "event", - "name": "AuthorizationDecreaseApproved", + "type": "function", + "name": "getPublicKeyFromRitualId", + "stateMutability": "view", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" } ], - "anonymous": false + "outputs": [ + { + "name": "dkgPublicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + } + ] }, { - "type": "event", - "name": "AuthorizationDecreaseRequested", + "type": "function", + "name": "getRitualIdFromPublicKey", + "stateMutability": "view", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false + "name": "dkgPublicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" } ], - "anonymous": false + "outputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ] }, { - "type": "event", - "name": "AuthorizationIncreased", + "type": "function", + "name": "getRitualInitiationCost", + "stateMutability": "view", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true + "name": "providers", + "type": "address[]", + "internalType": "address[]" }, { - "name": "fromAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false + "name": "duration", + "type": "uint32", + "internalType": "uint32" } ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationInvoluntaryDecreased", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, + "outputs": [ { - "name": "toAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false + "name": "", + "type": "uint256", + "internalType": "uint256" } - ], - "anonymous": false + ] }, { - "type": "event", - "name": "AuthorizationReSynchronized", + "type": "function", + "name": "getRitualState", + "stateMutability": "view", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "internalType": "uint96", - "indexed": false + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" } ], - "anonymous": false - }, - { - "type": "event", - "name": "CommitmentMade", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, + "outputs": [ { - "name": "endCommitment", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "", + "type": "uint8", + "internalType": "enum Coordinator.RitualState" } - ], - "anonymous": false + ] }, { - "type": "event", - "name": "Initialized", + "type": "function", + "name": "getRoleAdmin", + "stateMutability": "view", "inputs": [ { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false + "name": "role", + "type": "bytes32", + "internalType": "bytes32" } ], - "anonymous": false + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] }, { - "type": "event", - "name": "OperatorBonded", + "type": "function", + "name": "getThresholdForRitualSize", + "stateMutability": "pure", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "operator", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "previousOperator", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "startTimestamp", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "size", + "type": "uint16", + "internalType": "uint16" } ], - "anonymous": false + "outputs": [ + { + "name": "", + "type": "uint16", + "internalType": "uint16" + } + ] }, { - "type": "event", - "name": "OperatorConfirmed", + "type": "function", + "name": "grantRole", + "stateMutability": "nonpayable", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true + "name": "role", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "operator", + "name": "account", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } ], - "anonymous": false + "outputs": [] }, { - "type": "event", - "name": "OwnershipTransferred", + "type": "function", + "name": "hasRole", + "stateMutability": "view", "inputs": [ { - "name": "previousOwner", - "type": "address", - "internalType": "address", - "indexed": true + "name": "role", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "newOwner", + "name": "account", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardAdded", - "inputs": [ + "outputs": [ { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "", + "type": "bool", + "internalType": "bool" } - ], - "anonymous": false + ] }, { - "type": "event", - "name": "RewardDistributorSet", + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", "inputs": [ { - "name": "distributor", + "name": "_timeout", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_maxDkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_admin", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } ], - "anonymous": false + "outputs": [] }, { - "type": "event", - "name": "RewardPaid", + "type": "function", + "name": "initiateRitual", + "stateMutability": "nonpayable", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true + "name": "providers", + "type": "address[]", + "internalType": "address[]" }, { - "name": "beneficiary", + "name": "authority", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" }, { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "duration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "accessController", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" } ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardsWithdrawn", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Slashed", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "penalty", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "investigator", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "REWARD_PER_TOKEN_MULTIPLIER", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] }, { "type": "function", - "name": "adjudicator", + "name": "isEncryptionAuthorized", "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "approveAuthorizationDecrease", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationDecreaseRequested", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_fromAmount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationIncreased", - "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" }, { - "name": "_fromAmount", - "type": "uint96", - "internalType": "uint96" + "name": "evidence", + "type": "bytes", + "internalType": "bytes" }, { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" } ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationParameters", - "stateMutability": "view", - "inputs": [], "outputs": [ { - "name": "_minimumAuthorization", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "authorizationDecreaseDelay", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "authorizationDecreaseChangePeriod", - "type": "uint64", - "internalType": "uint64" + "name": "", + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "authorizedOverall", + "name": "isInitiationPublic", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint96", - "internalType": "uint96" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "authorizedStake", + "name": "isProviderPublicKeySet", "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", + "name": "_provider", "type": "address", "internalType": "address" } @@ -1111,405 +1120,441 @@ "outputs": [ { "name": "", - "type": "uint96", - "internalType": "uint96" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "availableRewards", + "name": "isRitualActive", "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" } ], "outputs": [ { "name": "", - "type": "uint96", - "internalType": "uint96" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "bondOperator", + "name": "makeInitiationPublic", "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], + "inputs": [], "outputs": [] }, { "type": "function", - "name": "childApplication", + "name": "maxDkgSize", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" + "type": "uint16", + "internalType": "uint16" } ] }, { "type": "function", - "name": "commitmentDeadline", + "name": "numberOfRituals", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint64", - "internalType": "uint64" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "commitmentDurationOption1", + "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint64", - "internalType": "uint64" + "type": "address", + "internalType": "address" } ] }, { "type": "function", - "name": "commitmentDurationOption2", + "name": "pendingDefaultAdmin", "stateMutability": "view", "inputs": [], "outputs": [ { - "name": "", - "type": "uint64", - "internalType": "uint64" + "name": "newAdmin", + "type": "address", + "internalType": "address" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" } ] }, { "type": "function", - "name": "commitmentDurationOption3", + "name": "pendingDefaultAdminDelay", "stateMutability": "view", "inputs": [], "outputs": [ { - "name": "", - "type": "uint64", - "internalType": "uint64" + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" } ] }, { "type": "function", - "name": "commitmentDurationOption4", + "name": "pendingFees", "stateMutability": "view", - "inputs": [], + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], "outputs": [ { "name": "", - "type": "uint64", - "internalType": "uint64" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "confirmOperatorAddress", + "name": "postAggregation", "stateMutability": "nonpayable", "inputs": [ { - "name": "_operator", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "aggregatedTranscript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "dkgPublicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" } ], "outputs": [] }, { "type": "function", - "name": "deauthorizationDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "postTranscript", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", + "name": "processPendingFee", + "stateMutability": "nonpayable", "inputs": [ { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" } ], "outputs": [ { - "name": "allAuthorizedTokens", + "name": "refundableFee", "type": "uint256", "internalType": "uint256" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" } ] }, { "type": "function", - "name": "getBeneficiary", - "stateMutability": "view", + "name": "renounceRole", + "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", "type": "address", "internalType": "address" } ], - "outputs": [ - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - } - ] - }, - { - "type": "function", - "name": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [], "outputs": [] }, { "type": "function", - "name": "involuntaryAuthorizationDecrease", + "name": "revokeRole", "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_fromAmount", - "type": "uint96", - "internalType": "uint96" + "name": "role", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" + "name": "account", + "type": "address", + "internalType": "address" } ], "outputs": [] }, { "type": "function", - "name": "isAuthorized", + "name": "rituals", "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isOperatorConfirmed", - "stateMutability": "view", - "inputs": [ + "name": "initiator", + "type": "address", + "internalType": "address" + }, { - "name": "_operator", + "name": "initTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "totalTranscripts", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "totalAggregations", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "authority", "type": "address", "internalType": "address" - } - ], - "outputs": [ + }, { - "name": "", + "name": "dkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "threshold", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "aggregationMismatch", "type": "bool", "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "lastTimeRewardApplicable", - "stateMutability": "view", - "inputs": [], - "outputs": [ + }, { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "accessController", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + }, + { + "name": "publicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + }, + { + "name": "aggregatedTranscript", + "type": "bytes", + "internalType": "bytes" } ] }, { "type": "function", - "name": "lastUpdateTime", - "stateMutability": "view", + "name": "rollbackDefaultAdminDelay", + "stateMutability": "nonpayable", "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] + "outputs": [] }, { "type": "function", - "name": "makeCommitment", + "name": "setMaxDkgSize", "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_commitmentDuration", - "type": "uint64", - "internalType": "uint64" + "name": "newSize", + "type": "uint16", + "internalType": "uint16" } ], "outputs": [] }, { "type": "function", - "name": "minOperatorSeconds", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "setProviderPublicKey", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "_publicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word2", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "internalType": "struct BLS12381.G2Point" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "setReimbursementPool", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint96", - "internalType": "uint96" + "name": "pool", + "type": "address", + "internalType": "contract IReimbursementPool" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", + "name": "setTimeout", + "stateMutability": "nonpayable", "inputs": [ { - "name": "_operator", - "type": "address", - "internalType": "address" + "name": "newTimeout", + "type": "uint32", + "internalType": "uint32" } ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] + "outputs": [] }, { "type": "function", - "name": "owner", + "name": "supportsInterface", "stateMutability": "view", - "inputs": [], + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "pendingAuthorizationDecrease", + "name": "timeout", "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], + "inputs": [], "outputs": [ { "name": "", - "type": "uint96", - "internalType": "uint96" + "type": "uint32", + "internalType": "uint32" } ] }, { "type": "function", - "name": "periodFinish", + "name": "totalPendingFees", "stateMutability": "view", "inputs": [], "outputs": [ @@ -1522,24 +1567,16 @@ }, { "type": "function", - "name": "pushReward", + "name": "transferRitualAuthority", "stateMutability": "nonpayable", "inputs": [ { - "name": "_reward", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "registerOperator", - "stateMutability": "nonpayable", - "inputs": [ + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, { - "name": "_operator", + "name": "newAuthority", "type": "address", "internalType": "address" } @@ -1548,236 +1585,251 @@ }, { "type": "function", - "name": "remainingAuthorizationDecreaseDelay", - "stateMutability": "view", + "name": "withdrawTokens", + "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", + "name": "token", "type": "address", - "internalType": "address" - } - ], - "outputs": [ + "internalType": "contract IERC20" + }, { - "name": "", - "type": "uint64", - "internalType": "uint64" + "name": "amount", + "type": "uint256", + "internalType": "uint256" } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], + ], "outputs": [] - }, + } + ], + "tx_hash": "0xc2fd6f00ad2881cf3fd6b3440746dda9811c2cde625ef6c6d9acf47886bf5b77", + "block_number": 42479020, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "GlobalAllowList": { + "address": "0xA02d71363258bB2468c5482e97580B6072D682fF", + "abi": [ { - "type": "function", - "name": "resynchronizeAuthorization", + "type": "constructor", "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", + "name": "_coordinator", "type": "address", - "internalType": "address" + "internalType": "contract Coordinator" } - ], - "outputs": [] + ] }, { - "type": "function", - "name": "rewardDistributor", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] + "type": "error", + "name": "ECDSAInvalidSignature", + "inputs": [] }, { - "type": "function", - "name": "rewardDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "error", + "name": "ECDSAInvalidSignatureLength", + "inputs": [ { - "name": "", + "name": "length", "type": "uint256", "internalType": "uint256" } ] }, { - "type": "function", - "name": "rewardPerToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "error", + "name": "ECDSAInvalidSignatureS", + "inputs": [ { - "name": "", - "type": "uint160", - "internalType": "uint160" + "name": "s", + "type": "bytes32", + "internalType": "bytes32" } ] }, { "type": "function", - "name": "rewardPerTokenStored", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "authorize", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint160", - "internalType": "uint160" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "rewardRateDecimals", + "name": "coordinator", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "address", + "internalType": "contract Coordinator" } ] }, { "type": "function", - "name": "setAdjudicator", + "name": "deauthorize", "stateMutability": "nonpayable", "inputs": [ { - "name": "_adjudicator", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" } ], "outputs": [] }, { "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", + "name": "isAddressAuthorized", + "stateMutability": "view", "inputs": [ { - "name": "_childApplication", + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "encryptor", "type": "address", - "internalType": "contract ITACoRootToChild" + "internalType": "address" } ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardDistributor", - "stateMutability": "nonpayable", - "inputs": [ + "outputs": [ { - "name": "_rewardDistributor", - "type": "address", - "internalType": "address" + "name": "", + "type": "bool", + "internalType": "bool" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "slash", - "stateMutability": "nonpayable", + "name": "isAuthorized", + "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" }, { - "name": "_penalty", - "type": "uint96", - "internalType": "uint96" + "name": "evidence", + "type": "bytes", + "internalType": "bytes" }, { - "name": "_investigator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" } ], "outputs": [ { - "name": "operator", - "type": "address", - "internalType": "address" - }, - { - "name": "operatorConfirmed", + "name": "", "type": "bool", "internalType": "bool" - }, + } + ] + } + ], + "tx_hash": "0x7611c330e52936ee7022a2dc972d46335611414a36a3d73048e1b3c826a483f4", + "block_number": 42479041, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "LynxRitualToken": { + "address": "0x6DED3A2DCaC9dcB62253F063D765F323D6E4be82", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "operatorStartTimestamp", - "type": "uint64", - "internalType": "uint64" - }, + "name": "_totalSupplyOfTokens", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "event", + "name": "Approval", + "inputs": [ { - "name": "authorized", - "type": "uint96", - "internalType": "uint96" + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96" + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64" - }, + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ { - "name": "tReward", - "type": "uint96", - "internalType": "uint96" + "name": "from", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "rewardPerTokenPaid", - "type": "uint160", - "internalType": "uint160" + "name": "to", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "endCommitment", - "type": "uint64", - "internalType": "uint64" + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false } - ] + ], + "anonymous": false }, { "type": "function", - "name": "stakingProviderToOperator", + "name": "allowance", "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", "type": "address", "internalType": "address" } @@ -1785,18 +1837,23 @@ "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "stakingProviders", - "stateMutability": "view", + "name": "approve", + "stateMutability": "nonpayable", "inputs": [ { - "name": "", + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", "type": "uint256", "internalType": "uint256" } @@ -1804,194 +1861,301 @@ "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "tStaking", + "name": "balanceOf", "stateMutability": "view", - "inputs": [], + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract IStaking" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "token", + "name": "decimals", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract IERC20" + "type": "uint8", + "internalType": "uint8" } ] }, { "type": "function", - "name": "transferOwnership", + "name": "decreaseAllowance", "stateMutability": "nonpayable", "inputs": [ { - "name": "newOwner", + "name": "spender", "type": "address", "internalType": "address" + }, + { + "name": "subtractedValue", + "type": "uint256", + "internalType": "uint256" } ], - "outputs": [] + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { "type": "function", - "name": "withdrawRewards", + "name": "increaseAllowance", "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", + "name": "spender", "type": "address", "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x146cf5298f981d9cf7480ee478da5069fca17f18658c7abdda2fc6abf3d2d869", - "block_number": 10054982, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TestnetThresholdStaking": { - "address": "0xcdD63981c8f4a2A684d102f7d7693A1c326CDd33", - "abi": [ - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "internalType": "address", - "indexed": true }, { - "name": "newOwner", - "type": "address", - "internalType": "address", - "indexed": true + "name": "addedValue", + "type": "uint256", + "internalType": "uint256" } ], - "anonymous": false + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { "type": "function", - "name": "application", + "name": "name", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract IApplication" + "type": "string", + "internalType": "string" } ] }, { "type": "function", - "name": "authorizationIncreased", - "stateMutability": "nonpayable", - "inputs": [ + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "_stakingProvider", + "name": "", + "type": "string", + "internalType": "string" + } + ] + }, + { + "type": "function", + "name": "totalSupply", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "transfer", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "to", "type": "address", "internalType": "address" }, { - "name": "_fromAmount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" + "name": "amount", + "type": "uint256", + "internalType": "uint256" } ], - "outputs": [] + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { "type": "function", - "name": "authorizedStake", - "stateMutability": "view", + "name": "transferFrom", + "stateMutability": "nonpayable", "inputs": [ { - "name": "", + "name": "from", "type": "address", "internalType": "address" }, { - "name": "", + "name": "to", "type": "address", "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ { "name": "", - "type": "uint96", - "internalType": "uint96" + "type": "bool", + "internalType": "bool" } ] + } + ], + "tx_hash": "0x01457fcb28352bfb2cf6f39871f2de00601122cdf7c7a5a0e98fccea88b16b60", + "block_number": 40514238, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonChild": { + "address": "0x45e06A2EaC4D928C8773A64b9eFe9d757B17F04D", + "abi": [ + { + "type": "event", + "name": "AuthorizationUpdated", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint96", + "internalType": "uint96", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorConfirmed", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorUpdated", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "newOwner", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false }, { "type": "function", - "name": "owner", + "name": "childApplication", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", "type": "address", - "internalType": "address" + "internalType": "contract ITACoRootToChild" } ] }, { "type": "function", - "name": "renounceOwnership", + "name": "confirmOperatorAddress", "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "rolesOf", - "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", + "name": "_operator", "type": "address", "internalType": "address" } ], + "outputs": [] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], "outputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "authorizer", + "name": "", "type": "address", "internalType": "address" } @@ -1999,24 +2163,31 @@ }, { "type": "function", - "name": "setApplication", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "setChildApplication", "stateMutability": "nonpayable", "inputs": [ { - "name": "_application", + "name": "_childApplication", "type": "address", - "internalType": "contract IApplication" + "internalType": "contract ITACoRootToChild" } ], "outputs": [] }, { "type": "function", - "name": "setRoles", + "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [ { - "name": "_stakingProvider", + "name": "newOwner", "type": "address", "internalType": "address" } @@ -2025,7 +2196,7 @@ }, { "type": "function", - "name": "setRoles", + "name": "updateAuthorization", "stateMutability": "nonpayable", "inputs": [ { @@ -2034,26 +2205,16 @@ "internalType": "address" }, { - "name": "_owner", - "type": "address", - "internalType": "address" - }, - { - "name": "_beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "_authorizer", - "type": "address", - "internalType": "address" + "name": "_amount", + "type": "uint96", + "internalType": "uint96" } ], "outputs": [] }, { "type": "function", - "name": "setStakes", + "name": "updateOperator", "stateMutability": "nonpayable", "inputs": [ { @@ -2062,700 +2223,733 @@ "internalType": "address" }, { - "name": "_tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_nuInTStake", - "type": "uint96", - "internalType": "uint96" + "name": "_operator", + "type": "address", + "internalType": "address" } ], "outputs": [] - }, + } + ], + "tx_hash": "0x05c20dd9661b89048e50304d6b4cf626167c44bb64b0137aeb88155d277b9c94", + "block_number": 40514106, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "OpenAccessAuthorizer": { + "address": "0x23177458642a0Cf50000d8EAE53B0248475D3EdE", + "abi": [ { "type": "function", - "name": "stakedNu", - "stateMutability": "view", + "name": "isAuthorized", + "stateMutability": "pure", "inputs": [ { "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ + "type": "uint32", + "internalType": "uint32" + }, { "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "stakes", - "stateMutability": "view", - "inputs": [ + "type": "bytes", + "internalType": "bytes" + }, { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" + "name": "", + "type": "bytes", + "internalType": "bytes" } ], "outputs": [ { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" + "name": "", + "type": "bool", + "internalType": "bool" } ] - }, + } + ], + "tx_hash": "0x9ca790512e619a8cb9729c9be3a3e9a4f8d35b9b4a107aceb34ec3fc47b1a106", + "block_number": 41671721, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "SubscriptionManager": { + "address": "0xb9015d7B35Ce7c81ddE38eF7136Baa3B1044f313", + "abi": [ { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", + "anonymous": false, "inputs": [ { - "name": "", - "type": "address", - "internalType": "address" + "indexed": false, + "internalType": "uint256", + "name": "oldFeeRate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newFeeRate", + "type": "uint256" } ], - "outputs": [ + "name": "FeeRateUpdated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" + "indexed": true, + "internalType": "bytes16", + "name": "policyId", + "type": "bytes16" }, { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" + "indexed": true, + "internalType": "address", + "name": "sponsor", + "type": "address" }, { - "name": "authorizer", - "type": "address", - "internalType": "address" + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" }, { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" + "indexed": false, + "internalType": "uint16", + "name": "size", + "type": "uint16" }, { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" + "indexed": false, + "internalType": "uint32", + "name": "startTimestamp", + "type": "uint32" }, { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ + "indexed": false, + "internalType": "uint32", + "name": "endTimestamp", + "type": "uint32" + }, { - "name": "newOwner", - "type": "address", - "internalType": "address" + "indexed": false, + "internalType": "uint256", + "name": "cost", + "type": "uint256" } ], - "outputs": [] - } - ], - "tx_hash": "0x1d2bd03c0a9204b8ec1aae6f10eed732699d91da7fe66e20adf154259fdff027", - "block_number": 9758696, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - } - }, - "80001": { - "Coordinator": { - "address": "0x530608219a8A671FD183534b17E2a2CE09e782a4", - "abi": [ + "name": "PolicyCreated", + "type": "event" + }, { - "type": "constructor", - "stateMutability": "nonpayable", + "anonymous": false, "inputs": [ { - "name": "_application", - "type": "address", - "internalType": "contract ITACoChildApplication" + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "name": "_currency", - "type": "address", - "internalType": "contract IERC20" + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" }, { - "name": "_feeRatePerSecond", - "type": "uint256", - "internalType": "uint256" + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" } - ] - }, - { - "type": "error", - "name": "AccessControlBadConfirmation", - "inputs": [] + ], + "name": "RoleAdminChanged", + "type": "event" }, { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminDelay", + "anonymous": false, "inputs": [ { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminRules", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlInvalidDefaultAdmin", - "inputs": [ + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, { - "name": "defaultAdmin", - "type": "address", - "internalType": "address" + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" } - ] + ], + "name": "RoleGranted", + "type": "event" }, { - "type": "error", - "name": "AccessControlUnauthorizedAccount", + "anonymous": false, "inputs": [ { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", "name": "account", - "type": "address", - "internalType": "address" + "type": "address" }, { - "name": "neededRole", - "type": "bytes32", - "internalType": "bytes32" + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" } - ] + ], + "name": "RoleRevoked", + "type": "event" }, { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ { - "name": "target", - "type": "address", - "internalType": "address" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } - ] + ], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ + "inputs": [], + "name": "SET_RATE_ROLE", + "outputs": [ { - "name": "account", - "type": "address", - "internalType": "address" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } - ] - }, - { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] + ], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "NotInitializing", - "inputs": [] + "inputs": [], + "name": "WITHDRAW_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", "inputs": [ { - "name": "bits", - "type": "uint8", - "internalType": "uint8" + "internalType": "bytes16", + "name": "_policyId", + "type": "bytes16" }, { - "name": "value", - "type": "uint256", - "internalType": "uint256" + "internalType": "address", + "name": "_policyOwner", + "type": "address" + }, + { + "internalType": "uint16", + "name": "_size", + "type": "uint16" + }, + { + "internalType": "uint32", + "name": "_startTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "_endTimestamp", + "type": "uint32" } - ] + ], + "name": "createPolicy", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "feeRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "SafeERC20FailedOperation", "inputs": [ { - "name": "token", - "type": "address", - "internalType": "address" + "internalType": "bytes16", + "name": "_policyID", + "type": "bytes16" } - ] + ], + "name": "getPolicy", + "outputs": [ + { + "components": [ + { + "internalType": "address payable", + "name": "sponsor", + "type": "address" + }, + { + "internalType": "uint32", + "name": "startTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "endTimestamp", + "type": "uint32" + }, + { + "internalType": "uint16", + "name": "size", + "type": "uint16" + }, + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "internalType": "struct SubscriptionManager.Policy", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "AggregationPosted", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true + "internalType": "uint16", + "name": "_size", + "type": "uint16" }, { - "name": "node", - "type": "address", - "internalType": "address", - "indexed": true + "internalType": "uint32", + "name": "_startTimestamp", + "type": "uint32" }, { - "name": "aggregatedTranscriptDigest", - "type": "bytes32", - "internalType": "bytes32", - "indexed": false + "internalType": "uint32", + "name": "_endTimestamp", + "type": "uint32" } ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminDelayChangeCanceled", - "inputs": [], - "anonymous": false + "name": "getPolicyCost", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "DefaultAdminDelayChangeScheduled", "inputs": [ { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48", - "indexed": false - }, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ { - "name": "effectSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminTransferCanceled", - "inputs": [], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "DefaultAdminTransferScheduled", "inputs": [ { - "name": "newAdmin", - "type": "address", - "internalType": "address", - "indexed": true + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "name": "acceptSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false + "internalType": "address", + "name": "account", + "type": "address" } ], - "anonymous": false + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "EndRitual", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "name": "successful", - "type": "bool", + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { "internalType": "bool", - "indexed": false + "name": "", + "type": "bool" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "Initialized", "inputs": [ { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false + "internalType": "uint256", + "name": "_feeRate", + "type": "uint256" } ], - "anonymous": false + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "MaxDkgSizeChanged", "inputs": [ { - "name": "oldSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false - }, + "internalType": "bytes16", + "name": "_policyID", + "type": "bytes16" + } + ], + "name": "isPolicyActive", + "outputs": [ { - "name": "newSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false + "internalType": "bool", + "name": "", + "type": "bool" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "ParticipantPublicKeySet", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true + "internalType": "bytes32", + "name": "role", + "type": "bytes32" }, { - "name": "participant", - "type": "address", "internalType": "address", - "indexed": true - }, - { - "name": "publicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word2", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "internalType": "struct BLS12381.G2Point", - "indexed": false + "name": "account", + "type": "address" } ], - "anonymous": false + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "ReimbursementPoolSet", "inputs": [ { - "name": "pool", - "type": "address", + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { "internalType": "address", - "indexed": true + "name": "account", + "type": "address" } ], - "anonymous": false + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "RitualAuthorityTransferred", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "previousAuthority", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "newAuthority", - "type": "address", - "internalType": "address", - "indexed": true + "internalType": "uint256", + "name": "_ratePerSecond", + "type": "uint256" } ], - "anonymous": false + "name": "setFeeRate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "RoleAdminChanged", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "previousAdminRole", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ { - "name": "newAdminRole", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true + "internalType": "bool", + "name": "", + "type": "bool" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "RoleGranted", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, + "internalType": "address payable", + "name": "recipient", + "type": "address" + } + ], + "name": "sweep", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "tx_hash": "0xf502961a38a98d7a59abe4c28d354fbcd213a967447a548af7441c3fe9547422", + "block_number": 25203956, + "deployer": "0xA5DC704642d9630636dc7d4976da9e46dcEd8BCD" + }, + "TACoChildApplication": { + "address": "0x8BFB087C4427387dFA217599EA0b860b3F3C49A3", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "account", + "name": "_rootApplication", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "contract ITACoChildToRoot" }, { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true + "name": "_minimumAuthorization", + "type": "uint96", + "internalType": "uint96" } - ], - "anonymous": false + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] }, { "type": "event", - "name": "RoleRevoked", + "name": "AuthorizationUpdated", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "account", + "name": "stakingProvider", "type": "address", "internalType": "address", "indexed": true }, { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true + "name": "amount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], "anonymous": false }, { "type": "event", - "name": "StartAggregationRound", + "name": "Initialized", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false } ], "anonymous": false }, { "type": "event", - "name": "StartRitual", + "name": "OperatorConfirmed", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", + "name": "stakingProvider", + "type": "address", + "internalType": "address", "indexed": true }, { - "name": "authority", + "name": "operator", "type": "address", "internalType": "address", "indexed": true - }, - { - "name": "participants", - "type": "address[]", - "internalType": "address[]", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TimeoutChanged", - "inputs": [ - { - "name": "oldTimeout", - "type": "uint32", - "internalType": "uint32", - "indexed": false - }, - { - "name": "newTimeout", - "type": "uint32", - "internalType": "uint32", - "indexed": false } ], "anonymous": false }, { "type": "event", - "name": "TranscriptPosted", + "name": "OperatorUpdated", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", + "name": "stakingProvider", + "type": "address", + "internalType": "address", "indexed": true }, { - "name": "node", + "name": "operator", "type": "address", "internalType": "address", "indexed": true - }, - { - "name": "transcriptDigest", - "type": "bytes32", - "internalType": "bytes32", - "indexed": false } ], "anonymous": false }, { "type": "function", - "name": "DEFAULT_ADMIN_ROLE", + "name": "authorizedStake", "stateMutability": "view", - "inputs": [], + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], "outputs": [ { "name": "", - "type": "bytes32", - "internalType": "bytes32" + "type": "uint96", + "internalType": "uint96" } ] }, { "type": "function", - "name": "INITIATOR_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "bytes32", - "internalType": "bytes32" + "name": "_operator", + "type": "address", + "internalType": "address" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "TREASURY_ROLE", + "name": "coordinator", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "bytes32", - "internalType": "bytes32" + "type": "address", + "internalType": "address" } ] }, { "type": "function", - "name": "acceptDefaultAdminTransfer", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] }, { "type": "function", - "name": "application", + "name": "getStakingProvidersLength", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract ITACoChildApplication" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "beginDefaultAdminTransfer", + "name": "initialize", "stateMutability": "nonpayable", "inputs": [ { - "name": "newAdmin", + "name": "_coordinator", "type": "address", "internalType": "address" } @@ -2764,61 +2958,94 @@ }, { "type": "function", - "name": "cancelDefaultAdminTransfer", - "stateMutability": "nonpayable", + "name": "minimumAuthorization", + "stateMutability": "view", "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "changeDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [ + "outputs": [ { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" + "name": "", + "type": "uint96", + "internalType": "uint96" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "cohortFingerprint", - "stateMutability": "pure", + "name": "operatorToStakingProvider", + "stateMutability": "view", "inputs": [ { - "name": "nodes", - "type": "address[]", - "internalType": "address[]" + "name": "", + "type": "address", + "internalType": "address" } ], "outputs": [ { "name": "", - "type": "bytes32", - "internalType": "bytes32" + "type": "address", + "internalType": "address" } ] }, { "type": "function", - "name": "currency", + "name": "rootApplication", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", "type": "address", - "internalType": "contract IERC20" + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "operatorConfirmed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "index", + "type": "uint248", + "internalType": "uint248" } ] }, { "type": "function", - "name": "defaultAdmin", + "name": "stakingProviders", "stateMutability": "view", - "inputs": [], + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], "outputs": [ { "name": "", @@ -2829,266 +3056,254 @@ }, { "type": "function", - "name": "defaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint48", - "internalType": "uint48" + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint96", + "internalType": "uint96" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "defaultAdminDelayIncreaseWait", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint48", - "internalType": "uint48" + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" } - ] - }, + ], + "outputs": [] + } + ], + "tx_hash": "0xbc45b42b3aa4b774ee7f67c4a7a3c7fda14fa871d5ee851359c4accb44ac6fb2", + "block_number": 42478969, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + } + }, + "11155111": { + "LynxStakingToken": { + "address": "0x347370278531Db455Aec3BFD0F30d57e41422353", + "abi": [ { - "type": "function", - "name": "feeRatePerSecond", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", + "name": "_totalSupplyOfTokens", "type": "uint256", "internalType": "uint256" } ] }, { - "type": "function", - "name": "getAuthority", - "stateMutability": "view", + "type": "error", + "name": "ERC20InsufficientAllowance", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", + "name": "spender", "type": "address", "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" } ] }, { - "type": "function", - "name": "getParticipantFromProvider", - "stateMutability": "view", + "type": "error", + "name": "ERC20InsufficientBalance", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "sender", + "type": "address", + "internalType": "address" }, { - "name": "provider", + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", "type": "address", "internalType": "address" } - ], - "outputs": [ + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ { - "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" + "name": "receiver", + "type": "address", + "internalType": "address" } ] }, { - "type": "function", - "name": "getParticipants", - "stateMutability": "view", + "type": "error", + "name": "ERC20InvalidSender", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "sender", + "type": "address", + "internalType": "address" } - ], - "outputs": [ + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ { - "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[]" + "name": "spender", + "type": "address", + "internalType": "address" } ] }, { - "type": "function", - "name": "getProviderPublicKey", - "stateMutability": "view", + "type": "event", + "name": "Approval", "inputs": [ { - "name": "_provider", + "name": "owner", "type": "address", - "internalType": "address" + "internalType": "address", + "indexed": true }, { - "name": "_ritualId", + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "indexed": false } ], - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ { - "name": "", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word2", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "internalType": "struct BLS12381.G2Point" + "name": "from", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "to", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false } - ] + ], + "anonymous": false }, { "type": "function", - "name": "getPublicKeyFromRitualId", + "name": "allowance", "stateMutability": "view", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" } ], "outputs": [ { - "name": "dkgPublicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" + "name": "", + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "getRitualIdFromPublicKey", - "stateMutability": "view", + "name": "approve", + "stateMutability": "nonpayable", "inputs": [ { - "name": "dkgPublicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "", + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "getRitualInitiationCost", + "name": "balanceOf", "stateMutability": "view", "inputs": [ { - "name": "providers", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" + "name": "account", + "type": "address", + "internalType": "address" } ], "outputs": [ @@ -3101,93 +3316,99 @@ }, { "type": "function", - "name": "getRitualState", + "name": "decimals", "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], + "inputs": [], "outputs": [ { "name": "", "type": "uint8", - "internalType": "enum Coordinator.RitualState" + "internalType": "uint8" } ] }, { "type": "function", - "name": "getRoleAdmin", + "name": "name", "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], + "inputs": [], "outputs": [ { "name": "", - "type": "bytes32", - "internalType": "bytes32" + "type": "string", + "internalType": "string" } ] }, { "type": "function", - "name": "getThresholdForRitualSize", - "stateMutability": "pure", - "inputs": [ + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "size", - "type": "uint16", - "internalType": "uint16" + "name": "", + "type": "string", + "internalType": "string" } - ], + ] + }, + { + "type": "function", + "name": "totalSupply", + "stateMutability": "view", + "inputs": [], "outputs": [ { "name": "", - "type": "uint16", - "internalType": "uint16" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "grantRole", + "name": "transfer", "stateMutability": "nonpayable", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", + "name": "to", "type": "address", "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" } ], - "outputs": [] + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { "type": "function", - "name": "hasRole", - "stateMutability": "view", + "name": "transferFrom", + "stateMutability": "nonpayable", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" + "name": "from", + "type": "address", + "internalType": "address" }, { - "name": "account", + "name": "to", "type": "address", "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ @@ -3197,830 +3418,852 @@ "internalType": "bool" } ] - }, + } + ], + "tx_hash": "0x43084903238b8bb454720c2298195fbf7338283f70971d9191fb2ec5328ad73d", + "block_number": 4886808, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonRoot": { + "address": "0xDD60a8E632c13fb777Ca76C7FE5670031202Edab", + "abi": [ { - "type": "function", - "name": "initialize", + "type": "constructor", "stateMutability": "nonpayable", "inputs": [ { - "name": "_timeout", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_maxDkgSize", - "type": "uint16", - "internalType": "uint16" - }, + "name": "_rootApplication", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ { - "name": "_admin", + "name": "owner", "type": "address", "internalType": "address" } - ], - "outputs": [] + ] }, { - "type": "function", - "name": "initiateRitual", - "stateMutability": "nonpayable", + "type": "error", + "name": "OwnableUnauthorizedAccount", "inputs": [ { - "name": "providers", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "authority", + "name": "account", "type": "address", "internalType": "address" - }, + } + ] + }, + { + "type": "event", + "name": "AuthorizationUpdated", + "inputs": [ { - "name": "duration", - "type": "uint32", - "internalType": "uint32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "accessController", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" + "name": "amount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "OperatorConfirmed", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, { - "name": "", - "type": "uint32", - "internalType": "uint32" + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": true } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "isEncryptionAuthorized", - "stateMutability": "view", + "type": "event", + "name": "OperatorUpdated", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": true } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] + "anonymous": false }, { - "type": "function", - "name": "isInitiationPublic", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ { - "name": "", - "type": "bool", - "internalType": "bool" + "name": "previousOwner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "newOwner", + "type": "address", + "internalType": "address", + "indexed": true } - ] + ], + "anonymous": false }, { "type": "function", - "name": "isProviderPublicKeySet", - "stateMutability": "view", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", "inputs": [ { - "name": "_provider", + "name": "operator", "type": "address", "internalType": "address" } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] + "outputs": [] }, { "type": "function", - "name": "isRitualActive", + "name": "owner", "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], + "inputs": [], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "address", + "internalType": "address" } ] }, { "type": "function", - "name": "makeInitiationPublic", + "name": "renounceOwnership", "stateMutability": "nonpayable", "inputs": [], "outputs": [] }, { "type": "function", - "name": "maxDkgSize", + "name": "rootApplication", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint16", - "internalType": "uint16" + "type": "address", + "internalType": "contract ITACoChildToRoot" } ] }, { "type": "function", - "name": "numberOfRituals", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "setRootApplication", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "application", + "type": "address", + "internalType": "contract ITACoChildToRoot" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", + "name": "newOwner", "type": "address", "internalType": "address" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "pendingDefaultAdmin", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "newAdmin", + "name": "stakingProvider", "type": "address", "internalType": "address" }, { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" + "name": "amount", + "type": "uint96", + "internalType": "uint96" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "pendingDefaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" + "name": "stakingProvider", + "type": "address", + "internalType": "address" }, { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "pendingFees", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "operator", + "type": "address", + "internalType": "address" } ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, + "outputs": [] + } + ], + "tx_hash": "0x304bed5b4870f49600a6357b5b385c6e08f64bd9a086279bd624e826bc520c56", + "block_number": 4886826, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TACoApplication": { + "address": "0x329bc9Df0e45f360583374726ccaFF003264a136", + "abi": [ { - "type": "function", - "name": "postAggregation", + "type": "constructor", "stateMutability": "nonpayable", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "_token", + "type": "address", + "internalType": "contract IERC20" }, { - "name": "aggregatedTranscript", - "type": "bytes", - "internalType": "bytes" + "name": "_tStaking", + "type": "address", + "internalType": "contract IStaking" }, { - "name": "dkgPublicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" + "name": "_minimumAuthorization", + "type": "uint96", + "internalType": "uint96" }, { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "postTranscript", - "stateMutability": "nonpayable", - "inputs": [ + "name": "_minOperatorSeconds", + "type": "uint256", + "internalType": "uint256" + }, { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "_rewardDuration", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_deauthorizationDuration", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_commitmentDurationOptions", + "type": "uint64[]", + "internalType": "uint64[]" }, { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" + "name": "_commitmentDeadline", + "type": "uint64", + "internalType": "uint64" } - ], - "outputs": [] + ] }, { - "type": "function", - "name": "processPendingFee", - "stateMutability": "nonpayable", + "type": "error", + "name": "AddressEmptyCode", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "refundableFee", - "type": "uint256", - "internalType": "uint256" + "name": "target", + "type": "address", + "internalType": "address" } ] }, { - "type": "function", - "name": "renounceRole", - "stateMutability": "nonpayable", + "type": "error", + "name": "AddressInsufficientBalance", "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, { "name": "account", "type": "address", "internalType": "address" } - ], - "outputs": [] + ] }, { - "type": "function", - "name": "revokeRole", - "stateMutability": "nonpayable", + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", "inputs": [ { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ { "name": "account", "type": "address", "internalType": "address" } - ], - "outputs": [] + ] }, { - "type": "function", - "name": "rituals", - "stateMutability": "view", + "type": "error", + "name": "SafeCastOverflowedUintDowncast", "inputs": [ { - "name": "", + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", "type": "uint256", "internalType": "uint256" } - ], - "outputs": [ + ] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ { - "name": "initiator", + "name": "token", "type": "address", "internalType": "address" - }, - { - "name": "initTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "totalTranscripts", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "totalAggregations", - "type": "uint16", - "internalType": "uint16" - }, + } + ] + }, + { + "type": "event", + "name": "AuthorizationDecreaseApproved", + "inputs": [ { - "name": "authority", + "name": "stakingProvider", "type": "address", - "internalType": "address" - }, - { - "name": "dkgSize", - "type": "uint16", - "internalType": "uint16" + "internalType": "address", + "indexed": true }, { - "name": "threshold", - "type": "uint16", - "internalType": "uint16" + "name": "fromAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false }, { - "name": "aggregationMismatch", - "type": "bool", - "internalType": "bool" - }, + "name": "toAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationDecreaseRequested", + "inputs": [ { - "name": "accessController", + "name": "stakingProvider", "type": "address", - "internalType": "contract IEncryptionAuthorizer" + "internalType": "address", + "indexed": true }, { - "name": "publicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" + "name": "fromAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false }, { - "name": "aggregatedTranscript", - "type": "bytes", - "internalType": "bytes" - } - ] - }, - { - "type": "function", - "name": "rollbackDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setMaxDkgSize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newSize", - "type": "uint16", - "internalType": "uint16" + "name": "toAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "setProviderPublicKey", - "stateMutability": "nonpayable", + "type": "event", + "name": "AuthorizationIncreased", "inputs": [ { - "name": "_publicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word2", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "internalType": "struct BLS12381.G2Point" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "fromAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "toAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "setReimbursementPool", - "stateMutability": "nonpayable", + "type": "event", + "name": "AuthorizationInvoluntaryDecreased", "inputs": [ { - "name": "pool", + "name": "stakingProvider", "type": "address", - "internalType": "contract IReimbursementPool" + "internalType": "address", + "indexed": true + }, + { + "name": "fromAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "toAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "setTimeout", - "stateMutability": "nonpayable", + "type": "event", + "name": "AuthorizationReSynchronized", "inputs": [ { - "name": "newTimeout", - "type": "uint32", - "internalType": "uint32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "fromAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "toAmount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "supportsInterface", - "stateMutability": "view", + "type": "event", + "name": "CommitmentMade", "inputs": [ { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "endCommitment", + "type": "uint256", + "internalType": "uint256", + "indexed": false } ], - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ { - "name": "", - "type": "bool", - "internalType": "bool" + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "timeout", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "event", + "name": "ManualChildSynchronizationSent", + "inputs": [ { - "name": "", - "type": "uint32", - "internalType": "uint32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "totalPendingFees", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "type": "event", + "name": "OperatorBonded", + "inputs": [ { - "name": "", + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "previousOperator", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "startTimestamp", "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "transferRitualAuthority", - "stateMutability": "nonpayable", + "type": "event", + "name": "OperatorConfirmed", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "newAuthority", + "name": "operator", "type": "address", - "internalType": "address" + "internalType": "address", + "indexed": true } ], - "outputs": [] + "anonymous": false }, { - "type": "function", - "name": "withdrawTokens", - "stateMutability": "nonpayable", + "type": "event", + "name": "OwnershipTransferred", "inputs": [ { - "name": "token", + "name": "previousOwner", "type": "address", - "internalType": "contract IERC20" + "internalType": "address", + "indexed": true }, { - "name": "amount", - "type": "uint256", - "internalType": "uint256" + "name": "newOwner", + "type": "address", + "internalType": "address", + "indexed": true } ], - "outputs": [] - } - ], - "tx_hash": "0xc2fd6f00ad2881cf3fd6b3440746dda9811c2cde625ef6c6d9acf47886bf5b77", - "block_number": 42479020, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "GlobalAllowList": { - "address": "0xA02d71363258bB2468c5482e97580B6072D682fF", - "abi": [ + "anonymous": false + }, { - "type": "constructor", - "stateMutability": "nonpayable", + "type": "event", + "name": "RewardAdded", "inputs": [ { - "name": "_coordinator", - "type": "address", - "internalType": "contract Coordinator" + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "error", - "name": "ECDSAInvalidSignature", - "inputs": [] + "type": "event", + "name": "RewardDistributorSet", + "inputs": [ + { + "name": "distributor", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false }, { - "type": "error", - "name": "ECDSAInvalidSignatureLength", + "type": "event", + "name": "RewardPaid", "inputs": [ { - "name": "length", + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "reward", "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "error", - "name": "ECDSAInvalidSignatureS", + "type": "event", + "name": "RewardsWithdrawn", "inputs": [ { - "name": "s", - "type": "bytes32", - "internalType": "bytes32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint96", + "internalType": "uint96", + "indexed": false } - ] + ], + "anonymous": false }, { - "type": "function", - "name": "authorize", - "stateMutability": "nonpayable", + "type": "event", + "name": "Slashed", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true }, { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" + "name": "penalty", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "investigator", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false } ], - "outputs": [] + "anonymous": false }, { "type": "function", - "name": "coordinator", + "name": "REWARD_PER_TOKEN_MULTIPLIER", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract Coordinator" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "deauthorize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, + "name": "adjudicator", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" + "name": "", + "type": "address", + "internalType": "address" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "isAddressAuthorized", - "stateMutability": "view", + "name": "approveAuthorizationDecrease", + "stateMutability": "nonpayable", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "encryptor", + "name": "_stakingProvider", "type": "address", "internalType": "address" } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] + "outputs": [] }, { "type": "function", - "name": "isAuthorized", - "stateMutability": "view", + "name": "authorizationDecreaseRequested", + "stateMutability": "nonpayable", "inputs": [ { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" }, { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" + "name": "_fromAmount", + "type": "uint96", + "internalType": "uint96" }, { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" + "name": "_toAmount", + "type": "uint96", + "internalType": "uint96" } ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x7611c330e52936ee7022a2dc972d46335611414a36a3d73048e1b3c826a483f4", - "block_number": 42479041, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "LynxRitualToken": { - "address": "0x6DED3A2DCaC9dcB62253F063D765F323D6E4be82", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] + "outputs": [] }, { - "type": "event", - "name": "Approval", + "type": "function", + "name": "authorizationIncreased", + "stateMutability": "nonpayable", "inputs": [ { - "name": "owner", + "name": "_stakingProvider", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" }, { - "name": "spender", - "type": "address", - "internalType": "address", - "indexed": true + "name": "_fromAmount", + "type": "uint96", + "internalType": "uint96" }, { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "_toAmount", + "type": "uint96", + "internalType": "uint96" } ], - "anonymous": false + "outputs": [] }, { - "type": "event", - "name": "Transfer", - "inputs": [ + "type": "function", + "name": "authorizationParameters", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "from", - "type": "address", - "internalType": "address", - "indexed": true + "name": "_minimumAuthorization", + "type": "uint96", + "internalType": "uint96" }, { - "name": "to", - "type": "address", - "internalType": "address", - "indexed": true + "name": "authorizationDecreaseDelay", + "type": "uint64", + "internalType": "uint64" }, { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false + "name": "authorizationDecreaseChangePeriod", + "type": "uint64", + "internalType": "uint64" } - ], - "anonymous": false + ] }, { "type": "function", - "name": "allowance", + "name": "authorizedOverall", "stateMutability": "view", - "inputs": [ + "inputs": [], + "outputs": [ { - "name": "owner", - "type": "address", - "internalType": "address" - }, + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "authorizedStake", + "stateMutability": "view", + "inputs": [ { - "name": "spender", + "name": "_stakingProvider", "type": "address", "internalType": "address" } @@ -4028,144 +4271,142 @@ "outputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint96", + "internalType": "uint96" } ] }, { "type": "function", - "name": "approve", - "stateMutability": "nonpayable", + "name": "availableRewards", + "stateMutability": "view", "inputs": [ { - "name": "spender", + "name": "_stakingProvider", "type": "address", "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" } ], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "uint96", + "internalType": "uint96" } ] }, { "type": "function", - "name": "balanceOf", - "stateMutability": "view", + "name": "bondOperator", + "stateMutability": "nonpayable", "inputs": [ { - "name": "account", + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_operator", "type": "address", "internalType": "address" } ], + "outputs": [] + }, + { + "type": "function", + "name": "childApplication", + "stateMutability": "view", + "inputs": [], "outputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "address", + "internalType": "contract ITACoRootToChild" } ] }, { "type": "function", - "name": "decimals", + "name": "commitmentDeadline", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "uint8", - "internalType": "uint8" + "type": "uint64", + "internalType": "uint64" } ] }, { "type": "function", - "name": "decreaseAllowance", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "subtractedValue", - "type": "uint256", - "internalType": "uint256" - } - ], + "name": "commitmentDurationOption1", + "stateMutability": "view", + "inputs": [], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "uint64", + "internalType": "uint64" } ] }, { "type": "function", - "name": "increaseAllowance", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "addedValue", - "type": "uint256", - "internalType": "uint256" - } - ], + "name": "commitmentDurationOption2", + "stateMutability": "view", + "inputs": [], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "uint64", + "internalType": "uint64" } ] }, { "type": "function", - "name": "name", + "name": "commitmentDurationOption3", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "string", - "internalType": "string" + "type": "uint64", + "internalType": "uint64" } ] }, { "type": "function", - "name": "symbol", + "name": "commitmentDurationOption4", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "string", - "internalType": "string" + "type": "uint64", + "internalType": "uint64" } ] }, { "type": "function", - "name": "totalSupply", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "deauthorizationDuration", "stateMutability": "view", "inputs": [], "outputs": [ @@ -4178,207 +4419,184 @@ }, { "type": "function", - "name": "transfer", - "stateMutability": "nonpayable", + "name": "getActiveStakingProviders", + "stateMutability": "view", "inputs": [ { - "name": "to", - "type": "address", - "internalType": "address" + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" }, { - "name": "amount", + "name": "_maxStakingProviders", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { - "name": "", - "type": "bool", - "internalType": "bool" + "name": "allAuthorizedTokens", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" } ] }, { "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", + "name": "getBeneficiary", + "stateMutability": "view", "inputs": [ { - "name": "from", + "name": "_stakingProvider", "type": "address", "internalType": "address" - }, + } + ], + "outputs": [ { - "name": "to", + "name": "beneficiary", "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" + "internalType": "address payable" } - ], + ] + }, + { + "type": "function", + "name": "getStakingProvidersLength", + "stateMutability": "view", + "inputs": [], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "uint256", + "internalType": "uint256" } ] - } - ], - "tx_hash": "0x01457fcb28352bfb2cf6f39871f2de00601122cdf7c7a5a0e98fccea88b16b60", - "block_number": 40514238, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonChild": { - "address": "0x45e06A2EaC4D928C8773A64b9eFe9d757B17F04D", - "abi": [ + }, { - "type": "event", - "name": "AuthorizationUpdated", + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "involuntaryAuthorizationDecrease", + "stateMutability": "nonpayable", "inputs": [ { - "name": "stakingProvider", + "name": "_stakingProvider", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" }, { - "name": "amount", + "name": "_fromAmount", "type": "uint96", - "internalType": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorConfirmed", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true + "internalType": "uint96" }, { - "name": "operator", - "type": "address", - "internalType": "address", - "indexed": true + "name": "_toAmount", + "type": "uint96", + "internalType": "uint96" } ], - "anonymous": false + "outputs": [] }, { - "type": "event", - "name": "OperatorUpdated", + "type": "function", + "name": "isAuthorized", + "stateMutability": "view", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "operator", + "name": "_stakingProvider", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } ], - "anonymous": false + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { - "type": "event", - "name": "OwnershipTransferred", + "type": "function", + "name": "isOperatorConfirmed", + "stateMutability": "view", "inputs": [ { - "name": "previousOwner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "newOwner", + "name": "_operator", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } ], - "anonymous": false - }, - { - "type": "function", - "name": "childApplication", - "stateMutability": "view", - "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" + "type": "bool", + "internalType": "bool" } ] }, { "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ + "name": "lastTimeRewardApplicable", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "_operator", - "type": "address", - "internalType": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "owner", + "name": "lastUpdateTime", "stateMutability": "view", "inputs": [], "outputs": [ { "name": "", - "type": "address", - "internalType": "address" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", + "name": "makeCommitment", "stateMutability": "nonpayable", "inputs": [ { - "name": "_childApplication", + "name": "_stakingProvider", "type": "address", - "internalType": "contract ITACoRootToChild" + "internalType": "address" + }, + { + "name": "_commitmentDuration", + "type": "uint64", + "internalType": "uint64" } ], "outputs": [] }, { "type": "function", - "name": "transferOwnership", + "name": "manualChildSynchronization", "stateMutability": "nonpayable", "inputs": [ { - "name": "newOwner", + "name": "_stakingProvider", "type": "address", "internalType": "address" } @@ -4387,659 +4605,482 @@ }, { "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ + "name": "minOperatorSeconds", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "minimumAuthorization", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "name": "_amount", + "name": "", "type": "uint96", "internalType": "uint96" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", + "name": "operatorToStakingProvider", + "stateMutability": "view", "inputs": [ { - "name": "_stakingProvider", + "name": "_operator", "type": "address", "internalType": "address" - }, + } + ], + "outputs": [ { - "name": "_operator", + "name": "", "type": "address", "internalType": "address" } - ], - "outputs": [] - } - ], - "tx_hash": "0x05c20dd9661b89048e50304d6b4cf626167c44bb64b0137aeb88155d277b9c94", - "block_number": 40514106, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "OpenAccessAuthorizer": { - "address": "0x23177458642a0Cf50000d8EAE53B0248475D3EdE", - "abi": [ + ] + }, { "type": "function", - "name": "isAuthorized", - "stateMutability": "pure", - "inputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ { "name": "", - "type": "bytes", - "internalType": "bytes" - }, + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" } ], "outputs": [ { "name": "", - "type": "bool", - "internalType": "bool" + "type": "uint96", + "internalType": "uint96" } ] - } - ], - "tx_hash": "0x9ca790512e619a8cb9729c9be3a3e9a4f8d35b9b4a107aceb34ec3fc47b1a106", - "block_number": 41671721, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "SubscriptionManager": { - "address": "0xb9015d7B35Ce7c81ddE38eF7136Baa3B1044f313", - "abi": [ + }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldFeeRate", - "type": "uint256" - }, + "type": "function", + "name": "periodFinish", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "newFeeRate", - "type": "uint256" + "name": "", + "type": "uint256", + "internalType": "uint256" } - ], - "name": "FeeRateUpdated", - "type": "event" + ] }, { - "anonymous": false, + "type": "function", + "name": "pushReward", + "stateMutability": "nonpayable", "inputs": [ { - "indexed": true, - "internalType": "bytes16", - "name": "policyId", - "type": "bytes16" - }, - { - "indexed": true, - "internalType": "address", - "name": "sponsor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "size", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "startTimestamp", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "cost", - "type": "uint256" + "name": "_reward", + "type": "uint96", + "internalType": "uint96" } ], - "name": "PolicyCreated", - "type": "event" + "outputs": [] }, { - "anonymous": false, + "type": "function", + "name": "registerOperator", + "stateMutability": "nonpayable", "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": "_operator", + "type": "address", + "internalType": "address" } ], - "name": "RoleAdminChanged", - "type": "event" + "outputs": [] }, { - "anonymous": false, + "type": "function", + "name": "remainingAuthorizationDecreaseDelay", + "stateMutability": "view", "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": "_stakingProvider", + "type": "address", + "internalType": "address" } ], - "name": "RoleGranted", - "type": "event" + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] }, { - "anonymous": false, + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "resynchronizeAuthorization", + "stateMutability": "nonpayable", "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": "_stakingProvider", + "type": "address", + "internalType": "address" } ], - "name": "RoleRevoked", - "type": "event" + "outputs": [] }, { + "type": "function", + "name": "rewardDistributor", + "stateMutability": "view", "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "address", + "internalType": "address" } - ], - "stateMutability": "view", - "type": "function" + ] }, { + "type": "function", + "name": "rewardDuration", + "stateMutability": "view", "inputs": [], - "name": "SET_RATE_ROLE", "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "uint256", + "internalType": "uint256" } - ], - "stateMutability": "view", - "type": "function" + ] }, { + "type": "function", + "name": "rewardPerToken", + "stateMutability": "view", "inputs": [], - "name": "WITHDRAW_ROLE", "outputs": [ { - "internalType": "bytes32", "name": "", - "type": "bytes32" + "type": "uint160", + "internalType": "uint160" } - ], - "stateMutability": "view", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "bytes16", - "name": "_policyId", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "_policyOwner", - "type": "address" - }, - { - "internalType": "uint16", - "name": "_size", - "type": "uint16" - }, - { - "internalType": "uint32", - "name": "_startTimestamp", - "type": "uint32" - }, + "type": "function", + "name": "rewardPerTokenStored", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "internalType": "uint32", - "name": "_endTimestamp", - "type": "uint32" + "name": "", + "type": "uint160", + "internalType": "uint160" } - ], - "name": "createPolicy", - "outputs": [], - "stateMutability": "payable", - "type": "function" + ] }, { + "type": "function", + "name": "rewardRateDecimals", + "stateMutability": "view", "inputs": [], - "name": "feeRate", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "setAdjudicator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_adjudicator", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "outputs": [] }, { + "type": "function", + "name": "setChildApplication", + "stateMutability": "nonpayable", "inputs": [ { - "internalType": "bytes16", - "name": "_policyID", - "type": "bytes16" + "name": "_childApplication", + "type": "address", + "internalType": "contract ITACoRootToChild" } ], - "name": "getPolicy", - "outputs": [ + "outputs": [] + }, + { + "type": "function", + "name": "setRewardDistributor", + "stateMutability": "nonpayable", + "inputs": [ { - "components": [ - { - "internalType": "address payable", - "name": "sponsor", - "type": "address" - }, - { - "internalType": "uint32", - "name": "startTimestamp", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "endTimestamp", - "type": "uint32" - }, - { - "internalType": "uint16", - "name": "size", - "type": "uint16" - }, - { - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "internalType": "struct SubscriptionManager.Policy", - "name": "", - "type": "tuple" + "name": "_rewardDistributor", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "outputs": [] }, { + "type": "function", + "name": "slash", + "stateMutability": "nonpayable", "inputs": [ { - "internalType": "uint16", - "name": "_size", - "type": "uint16" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" }, { - "internalType": "uint32", - "name": "_startTimestamp", - "type": "uint32" + "name": "_penalty", + "type": "uint96", + "internalType": "uint96" }, { - "internalType": "uint32", - "name": "_endTimestamp", - "type": "uint32" - } - ], - "name": "getPolicyCost", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "_investigator", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "outputs": [] }, { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", "inputs": [ { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "name": "", + "type": "address", + "internalType": "address" } ], - "name": "getRoleAdmin", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "name": "operator", + "type": "address", + "internalType": "address" + }, + { + "name": "operatorConfirmed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "operatorStartTimestamp", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "tReward", + "type": "uint96", + "internalType": "uint96" + }, { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" + "name": "rewardPerTokenPaid", + "type": "uint160", + "internalType": "uint160" }, { - "internalType": "address", - "name": "account", - "type": "address" + "name": "endCommitment", + "type": "uint64", + "internalType": "uint64" } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "name": "stakingProviderToOperator", + "stateMutability": "view", "inputs": [ { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" } ], - "name": "hasRole", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_feeRate", - "type": "uint256" + "type": "address", + "internalType": "address" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { + "type": "function", + "name": "stakingProviders", + "stateMutability": "view", "inputs": [ { - "internalType": "bytes16", - "name": "_policyID", - "type": "bytes16" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "isPolicyActive", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "address", + "internalType": "address" } - ], - "stateMutability": "view", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, + "type": "function", + "name": "tStaking", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "internalType": "address", - "name": "account", - "type": "address" + "name": "", + "type": "address", + "internalType": "contract IStaking" } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, + "type": "function", + "name": "token", + "stateMutability": "view", + "inputs": [], + "outputs": [ { - "internalType": "address", - "name": "account", - "type": "address" + "name": "", + "type": "address", + "internalType": "contract IERC20" } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + ] }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_ratePerSecond", - "type": "uint256" - } - ], - "name": "setFeeRate", - "outputs": [], + "type": "function", + "name": "transferOwnership", "stateMutability": "nonpayable", - "type": "function" - }, - { "inputs": [ { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "newOwner", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "outputs": [] }, { + "type": "function", + "name": "withdrawRewards", + "stateMutability": "nonpayable", "inputs": [ { - "internalType": "address payable", - "name": "recipient", - "type": "address" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" } ], - "name": "sweep", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "outputs": [] } ], - "tx_hash": "0xf502961a38a98d7a59abe4c28d354fbcd213a967447a548af7441c3fe9547422", - "block_number": 25203956, - "deployer": "0xA5DC704642d9630636dc7d4976da9e46dcEd8BCD" + "tx_hash": "0xd5d4f1abe3e9eb2d92b02cd7f22ee7f6b514d9c15d578c94ecb1543afd6207c1", + "block_number": 4886820, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" }, - "TACoChildApplication": { - "address": "0x8BFB087C4427387dFA217599EA0b860b3F3C49A3", + "TestnetThresholdStaking": { + "address": "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2", "abi": [ { "type": "constructor", "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rootApplication", - "type": "address", - "internalType": "contract ITACoChildToRoot" - }, - { - "name": "_minimumAuthorization", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", "inputs": [] }, { "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "event", - "name": "AuthorizationUpdated", + "name": "OwnableInvalidOwner", "inputs": [ { - "name": "stakingProvider", + "name": "owner", "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false + "internalType": "address" } - ], - "anonymous": false + ] }, { - "type": "event", - "name": "OperatorConfirmed", + "type": "error", + "name": "OwnableUnauthorizedAccount", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "operator", + "name": "account", "type": "address", - "internalType": "address", - "indexed": true + "internalType": "address" } - ], - "anonymous": false + ] }, { "type": "event", - "name": "OperatorUpdated", + "name": "OwnershipTransferred", "inputs": [ { - "name": "stakingProvider", + "name": "previousOwner", "type": "address", "internalType": "address", "indexed": true }, { - "name": "operator", + "name": "newOwner", "type": "address", "internalType": "address", "indexed": true @@ -5049,39 +5090,67 @@ }, { "type": "function", - "name": "authorizedStake", + "name": "application", "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IApplication" + } + ] + }, + { + "type": "function", + "name": "authorizationIncreased", + "stateMutability": "nonpayable", "inputs": [ { "name": "_stakingProvider", "type": "address", "internalType": "address" - } - ], - "outputs": [ + }, { - "name": "", + "name": "_fromAmount", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_toAmount", "type": "uint96", "internalType": "uint96" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", + "name": "authorizedStake", + "stateMutability": "view", "inputs": [ { - "name": "_operator", + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", "type": "address", "internalType": "address" } ], - "outputs": [] + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] }, { "type": "function", - "name": "coordinator", + "name": "owner", "stateMutability": "view", "inputs": [], "outputs": [ @@ -5094,53 +5163,60 @@ }, { "type": "function", - "name": "getActiveStakingProviders", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "rolesOf", "stateMutability": "view", "inputs": [ { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" } ], "outputs": [ { - "name": "allAuthorizedTokens", - "type": "uint96", - "internalType": "uint96" + "name": "owner", + "type": "address", + "internalType": "address" }, { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", + "type": "address", + "internalType": "address" } ] }, { "type": "function", - "name": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "setApplication", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint256", - "internalType": "uint256" + "name": "_application", + "type": "address", + "internalType": "contract IApplication" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "initialize", + "name": "setRoles", "stateMutability": "nonpayable", "inputs": [ { - "name": "_coordinator", + "name": "_stakingProvider", "type": "address", "internalType": "address" } @@ -5149,132 +5225,159 @@ }, { "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ + "name": "setRoles", + "stateMutability": "nonpayable", + "inputs": [ { - "name": "", - "type": "uint96", - "internalType": "uint96" + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_owner", + "type": "address", + "internalType": "address" + }, + { + "name": "_beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "_authorizer", + "type": "address", + "internalType": "address" } - ] + ], + "outputs": [] }, { "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", + "name": "setStakes", + "stateMutability": "nonpayable", "inputs": [ { - "name": "", + "name": "_stakingProvider", "type": "address", "internalType": "address" + }, + { + "name": "_tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_nuInTStake", + "type": "uint96", + "internalType": "uint96" } ], - "outputs": [ + "outputs": [] + }, + { + "type": "function", + "name": "stakedNu", + "stateMutability": "view", + "inputs": [ { "name": "", "type": "address", "internalType": "address" } - ] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], + ], "outputs": [ { "name": "", - "type": "address", - "internalType": "contract ITACoChildToRoot" + "type": "uint256", + "internalType": "uint256" } ] }, { "type": "function", - "name": "stakingProviderInfo", + "name": "stakes", "stateMutability": "view", "inputs": [ { - "name": "", + "name": "_stakingProvider", "type": "address", "internalType": "address" } ], "outputs": [ { - "name": "operator", - "type": "address", - "internalType": "address" - }, - { - "name": "authorized", + "name": "tStake", "type": "uint96", "internalType": "uint96" }, { - "name": "operatorConfirmed", - "type": "bool", - "internalType": "bool" + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" }, { - "name": "index", - "type": "uint248", - "internalType": "uint248" + "name": "nuInTStake", + "type": "uint96", + "internalType": "uint96" } ] }, { "type": "function", - "name": "stakingProviders", + "name": "stakingProviderInfo", "stateMutability": "view", "inputs": [ { "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "address", + "internalType": "address" } ], "outputs": [ { - "name": "", + "name": "owner", "type": "address", "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ + }, { - "name": "stakingProvider", + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", "type": "address", "internalType": "address" }, { - "name": "amount", + "name": "tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "nuInTStake", "type": "uint96", "internalType": "uint96" } - ], - "outputs": [] + ] }, { "type": "function", - "name": "updateOperator", + "name": "transferOwnership", "stateMutability": "nonpayable", "inputs": [ { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", + "name": "newOwner", "type": "address", "internalType": "address" } @@ -5282,9 +5385,9 @@ "outputs": [] } ], - "tx_hash": "0xbc45b42b3aa4b774ee7f67c4a7a3c7fda14fa871d5ee851359c4accb44ac6fb2", - "block_number": 42478969, + "tx_hash": "0xeb083a1906cd8825653e4077cccc9caae00007624f4ac0dba29f49d82ec41ea2", + "block_number": 4886812, "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" } } -} \ No newline at end of file +} diff --git a/deployment/constructor_params/lynx/root.yml b/deployment/constructor_params/lynx/root.yml index 96b38bec..b2080e5d 100644 --- a/deployment/constructor_params/lynx/root.yml +++ b/deployment/constructor_params/lynx/root.yml @@ -1,6 +1,6 @@ deployment: name: lynx-root - chain_id: 5 + chain_id: 11155111 # sepolia artifacts: dir: ./deployment/artifacts/ @@ -10,8 +10,10 @@ constants: IN_SECONDS_1_HOUR: 3600 IN_SECONDS_7_DAYS: 604800 IN_SECONDS_60_DAYS: 5184000 + IN_SECONDS_91_DAYS: 7862400 IN_SECONDS_182_DAYS: 15724800 IN_SECONDS_364_DAYS: 31449600 + IN_SECONDS_546_DAYS: 47174400 FORTY_THOUSAND_TOKENS_IN_WEI_UNITS: 40000000000000000000000 TEN_MILLION_TOKENS_IN_WEI_UNITS: 10000000000000000000000000 YEAR_2025: 1735689600 @@ -32,7 +34,7 @@ contracts: _minOperatorSeconds: $IN_SECONDS_1_HOUR _rewardDuration: $IN_SECONDS_7_DAYS _deauthorizationDuration: $IN_SECONDS_60_DAYS - _commitmentDurationOptions: [$IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS] + _commitmentDurationOptions: [$IN_SECONDS_91_DAYS, $IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS, $IN_SECONDS_546_DAYS] _commitmentDeadline: $YEAR_2025 - MockPolygonRoot: constructor: diff --git a/deployment/constructor_params/lynx/upgrades-root.yml b/deployment/constructor_params/lynx/upgrades-root.yml index 2975cdfd..32517941 100644 --- a/deployment/constructor_params/lynx/upgrades-root.yml +++ b/deployment/constructor_params/lynx/upgrades-root.yml @@ -1,6 +1,6 @@ deployment: name: lynx-root - chain_id: 5 + chain_id: 11155111 # sepolia artifacts: dir: ./deployment/artifacts/ @@ -10,8 +10,10 @@ constants: IN_SECONDS_1_HOUR: 3600 IN_SECONDS_7_DAYS: 604800 IN_SECONDS_60_DAYS: 5184000 + IN_SECONDS_91_DAYS: 7862400 IN_SECONDS_182_DAYS: 15724800 IN_SECONDS_364_DAYS: 31449600 + IN_SECONDS_546_DAYS: 47174400 FORTY_THOUSAND_TOKENS_IN_WEI_UNITS: 40000000000000000000000 TEN_MILLION_TOKENS_IN_WEI_UNITS: 10000000000000000000000000 YEAR_2025: 1735689600 @@ -19,11 +21,11 @@ constants: contracts: - TACoApplication: constructor: - _token: "0x90990F1F7C952D4D02759802565d62479e8aA936" - _tStaking: "0xcdD63981c8f4a2A684d102f7d7693A1c326CDd33" + _token: "0x347370278531Db455Aec3BFD0F30d57e41422353" + _tStaking: "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2" _minimumAuthorization: $FORTY_THOUSAND_TOKENS_IN_WEI_UNITS _minOperatorSeconds: $IN_SECONDS_1_HOUR _rewardDuration: $IN_SECONDS_7_DAYS _deauthorizationDuration: $IN_SECONDS_60_DAYS - _commitmentDurationOptions: [$IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS] + _commitmentDurationOptions: [$IN_SECONDS_91_DAYS, $IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS, $IN_SECONDS_546_DAYS] _commitmentDeadline: $YEAR_2025 diff --git a/scripts/lynx/configure_staking.py b/scripts/lynx/configure_staking.py index b75fe4cb..e192bba2 100644 --- a/scripts/lynx/configure_staking.py +++ b/scripts/lynx/configure_staking.py @@ -2,6 +2,7 @@ from ape import networks, project + from deployment.constants import ARTIFACTS_DIR, LYNX_NODES from deployment.params import Transactor from deployment.registry import contracts_from_registry @@ -10,10 +11,10 @@ LYNX_REGISTRY_FILEPATH = ARTIFACTS_DIR / "lynx.json" -def configure_goerli_root(transactor: Transactor) -> int: - """Configures ThresholdStaking and TACoApplication on Goerli.""" - # Set up lynx stakes on Goerli - eth_network = networks.ethereum.goerli +def configure_sepolia_root(transactor: Transactor) -> int: + """Configures ThresholdStaking and TACoApplication on Sepolia.""" + # Set up lynx stakes on Sepolia + eth_network = networks.ethereum.sepolia with eth_network.use_provider("infura"): deployments = contracts_from_registry( filepath=LYNX_REGISTRY_FILEPATH, chain_id=eth_network.chain_id @@ -72,5 +73,5 @@ def configure_mumbai_root(transactor: Transactor, stake_size: int): def main(): check_plugins() transactor = Transactor() - stake_size = configure_goerli_root(transactor) + stake_size = configure_sepolia_root(transactor) configure_mumbai_root(transactor, stake_size) diff --git a/scripts/lynx/confirm_operator_addresses.py b/scripts/lynx/confirm_operator_addresses.py index 52af7a7e..eac112a1 100644 --- a/scripts/lynx/confirm_operator_addresses.py +++ b/scripts/lynx/confirm_operator_addresses.py @@ -2,6 +2,7 @@ from ape import networks, project + from deployment.constants import ARTIFACTS_DIR, LYNX_NODES from deployment.params import Transactor from deployment.registry import contracts_from_registry @@ -12,9 +13,9 @@ def main(): """ - Confirm lynx operator addresses on the Goerli side of the bridge + Confirm lynx operator addresses on the Sepolia side of the bridge - ape run lynx confirm_operator_addresses --network ethereum:goerli:infura + ape run lynx confirm_operator_addresses --network ethereum:sepolia:infura """ check_plugins() transactor = Transactor() diff --git a/scripts/lynx/deploy_root.py b/scripts/lynx/deploy_root.py index 154fbcde..ba2c3863 100644 --- a/scripts/lynx/deploy_root.py +++ b/scripts/lynx/deploy_root.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 from ape import project + from deployment.constants import CONSTRUCTOR_PARAMS_DIR from deployment.params import Deployer @@ -13,7 +14,7 @@ def main(): This script deploys only the Proxied Lynx TACo Root Application. September 25, 2023, Deployment: - ape-run deploy_lynx_root --network etherscan:goerli:infura + ape-run deploy_lynx_root --network etherscan:sepolia:infura ape-etherscan 0.6.10 ape-infura 0.6.3 ape-polygon 0.6.5 @@ -26,6 +27,14 @@ def main(): ape-polygon 0.6.6 ape-solidity 0.6.9 eth-ape 0.6.20 + + December 14, 2023, Switch to Sepolia: + ape-etherscan 0.6.10 + ape-polygon 0.6.6 + ape-solidity 0.6.9 + ape-infura 0.6.4 + eth-ape 0.6.19 + """ deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) diff --git a/scripts/lynx/upgrade_root.py b/scripts/lynx/upgrade_root.py index dc77dbb0..bba29f32 100644 --- a/scripts/lynx/upgrade_root.py +++ b/scripts/lynx/upgrade_root.py @@ -1,6 +1,7 @@ #!/usr/bin/python3 from ape import project + from deployment.constants import CONSTRUCTOR_PARAMS_DIR from deployment.params import Deployer @@ -10,16 +11,13 @@ def main(): """ - This script upgrades TACoApplication in Lynx Goerli. + This script upgrades TACoApplication in Lynx Sepolia. """ deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) - taco_app_proxy_address = "0x31F0a0B94C829Ba6d902c98CAF8d8462C6c63241" - new_taco_app_implementation = deployer.upgrade( - project.TACoApplication, - taco_app_proxy_address - ) + taco_app_proxy_address = "0x329bc9Df0e45f360583374726ccaFF003264a136" + new_taco_app_implementation = deployer.upgrade(project.TACoApplication, taco_app_proxy_address) deployments = [ new_taco_app_implementation,