From e72d2ba8de984aa740b14ae2de59ef3a498a19c4 Mon Sep 17 00:00:00 2001 From: Victoria Zotova Date: Wed, 21 Aug 2024 14:43:56 -0400 Subject: [PATCH 1/4] Upgrade lynx Coordinator --- deployment/artifacts/lynx.json | 14123 +++++++++++++------------- deployment/params.py | 14 +- scripts/lynx/upgrade_coordinator.py | 8 +- 3 files changed, 7097 insertions(+), 7048 deletions(-) diff --git a/deployment/artifacts/lynx.json b/deployment/artifacts/lynx.json index 7d1f65d6c..4370fd2df 100644 --- a/deployment/artifacts/lynx.json +++ b/deployment/artifacts/lynx.json @@ -1,7057 +1,7098 @@ { - "11155111": { - "LynxStakingToken": { - "address": "0x347370278531Db455Aec3BFD0F30d57e41422353", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientAllowance", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "allowance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientBalance", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - }, - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidApprover", - "inputs": [ - { - "name": "approver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidReceiver", - "inputs": [ - { - "name": "receiver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSender", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSpender", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "spender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "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": "function", - "name": "allowance", - "stateMutability": "view", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "approve", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "balanceOf", - "stateMutability": "view", - "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" - } - ] - }, - { - "type": "function", - "name": "name", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "function", - "name": "symbol", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "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": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x43084903238b8bb454720c2298195fbf7338283f70971d9191fb2ec5328ad73d", - "block_number": 4886808, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonRoot": { - "address": "0xDD60a8E632c13fb777Ca76C7FE5670031202Edab", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rootApplication", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ] - }, - { - "type": "function", - "name": "setRootApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "application", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x304bed5b4870f49600a6357b5b385c6e08f64bd9a086279bd624e826bc520c56", - "block_number": 4886826, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TACoApplication": { - "address": "0x329bc9Df0e45f360583374726ccaFF003264a136", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_token", - "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" - }, - { - "name": "_penaltyDefault", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "_penaltyDuration", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_penaltyIncrement", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", - "inputs": [ - { - "name": "bits", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SafeERC20FailedOperation", - "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "AuthorizationDecreaseApproved", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationDecreaseRequested", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationIncreased", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationInvoluntaryDecreased", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationReSynchronized", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CommitmentMade", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "endCommitment", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ManualChildSynchronizationSent", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64", - "indexed": false - }, - { - "name": "operator", - "type": "address", - "internalType": "address", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorBonded", - "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 - } - ], - "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": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "newOwner", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Penalized", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "penaltyPercent", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardAdded", - "inputs": [ - { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardContractSet", - "inputs": [ - { - "name": "rewardContract", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardDistributorSet", - "inputs": [ - { - "name": "distributor", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardPaid", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardReset", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "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": "PENALTY_BASE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "REWARD_PER_TOKEN_MULTIPLIER", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "adjudicator", - "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": "_fromAmount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" - } - ], - "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" - } - ] - }, - { - "type": "function", - "name": "authorizedOverall", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "availableRewards", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "bondOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "childApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ] - }, - { - "type": "function", - "name": "commitmentDeadline", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption1", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption2", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption3", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption4", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "deauthorizationDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getBeneficiary", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - } - ] - }, - { - "type": "function", - "name": "getPenalty", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "penalty", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "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", - "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": "isAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isOperatorConfirmed", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "lastTimeRewardApplicable", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "lastUpdateTime", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "makeCommitment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_commitmentDuration", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "manualChildSynchronization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minOperatorSeconds", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "penalize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "penaltyDefault", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "penaltyDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "penaltyIncrement", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "periodFinish", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "pushReward", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_reward", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "registerOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "remainingAuthorizationDecreaseDelay", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "resetReward", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "resynchronizeAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "rewardContract", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "rewardDistributor", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "rewardDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "rewardPerToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "internalType": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardPerTokenStored", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "internalType": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardRateDecimals", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "setAdjudicator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_adjudicator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_childApplication", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardContract", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rewardContract", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardDistributor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rewardDistributor", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "slash", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_penalty", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_investigator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "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" - }, - { - "name": "rewardPerTokenPaid", - "type": "uint160", - "internalType": "uint160" - }, - { - "name": "endCommitment", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "stub", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "penaltyPercent", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "stakingProviderToOperator", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "tStaking", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IStaking" - } - ] - }, - { - "type": "function", - "name": "token", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "withdrawRewards", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xd5d4f1abe3e9eb2d92b02cd7f22ee7f6b514d9c15d578c94ecb1543afd6207c1", - "block_number": 4886820, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TestnetThresholdStaking": { - "address": "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "application", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IApplication" - } - ] - }, - { - "type": "function", - "name": "authorizationIncreased", - "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": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "rolesOf", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "authorizer", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "setApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_application", - "type": "address", - "internalType": "contract IApplication" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRoles", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRoles", - "stateMutability": "nonpayable", - "inputs": [ - { - "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": "setStakes", - "stateMutability": "nonpayable", - "inputs": [ - { - "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": [] - }, - { - "type": "function", - "name": "stakedNu", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "stakes", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "authorizer", - "type": "address", - "internalType": "address" - }, - { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xeb083a1906cd8825653e4077cccc9caae00007624f4ac0dba29f49d82ec41ea2", - "block_number": 4886812, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - } - }, - "80002": { - "BqETHSubscription": { - "address": "0x3E851204c29742b713d5C243093E98691591e654", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "contract Coordinator" - }, - { - "name": "_accessController", - "type": "address", - "internalType": "contract GlobalAllowList" - }, - { - "name": "_feeToken", - "type": "address", - "internalType": "contract IERC20" - }, - { - "name": "_adopter", - "type": "address", - "internalType": "address" - }, - { - "name": "_initialBaseFeeRate", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_baseFeeRateIncrease", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_encryptorFeeRate", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxNodes", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_subscriptionPeriodDuration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_yellowPeriodDuration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_redPeriodDuration", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "SafeERC20FailedOperation", - "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "EncryptorSlotsPaid", - "inputs": [ - { - "name": "sponsor", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128", - "indexed": false - }, - { - "name": "endOfCurrentPeriod", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "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": "event", - "name": "SubscriptionPaid", - "inputs": [ - { - "name": "subscriber", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128", - "indexed": false - }, - { - "name": "endOfSubscription", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "WithdrawalToTreasury", - "inputs": [ - { - "name": "treasury", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "INACTIVE_RITUAL_ID", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "INCREASE_BASE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "accessController", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract GlobalAllowList" - } - ] - }, - { - "type": "function", - "name": "activeRitualId", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "adopter", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "baseFeeRateIncrease", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "baseFees", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "baseFees", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "beforeIsAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeSetAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "value", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "billingInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "paid", - "type": "bool", - "internalType": "bool" - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "function", - "name": "encryptorFeeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "encryptorFees", - "stateMutability": "view", - "inputs": [ - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "feeToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20" - } - ] - }, - { - "type": "function", - "name": "getCurrentPeriodNumber", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getEndOfSubscription", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "endOfSubscription", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "getPaidEncryptorSlots", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialBaseFeeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_treasury", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isPeriodPaid", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "maxNodes", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "payForEncryptorSlots", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "additionalEncryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "payForSubscription", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualExtending", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualPayment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "numberOfProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "redPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "startOfSubscription", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "subscriptionPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "usedEncryptorSlots", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "withdrawToTreasury", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "yellowPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - } - ], - "tx_hash": "0x709f8cb91d3489fed89b0006a162e226a12095e12c5b737d1ec639109cac4a26", - "block_number": 9101924, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "Coordinator": { - "address": "0xE9e94499bB0f67b9DBD75506ec1735486DE57770", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_application", - "type": "address", - "internalType": "contract ITACoChildApplication" - } - ] - }, - { - "type": "error", - "name": "AccessControlBadConfirmation", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminDelay", - "inputs": [ - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminRules", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlInvalidDefaultAdmin", - "inputs": [ - { - "name": "defaultAdmin", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AccessControlUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - }, - { - "name": "neededRole", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", - "inputs": [ - { - "name": "bits", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "event", - "name": "AggregationPosted", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "node", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "aggregatedTranscriptDigest", - "type": "bytes32", - "internalType": "bytes32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminDelayChangeCanceled", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminDelayChangeScheduled", - "inputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48", - "indexed": false - }, - { - "name": "effectSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminTransferCanceled", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminTransferScheduled", - "inputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "acceptSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "EndRitual", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "successful", - "type": "bool", - "internalType": "bool", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "FeeModelApproved", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "MaxDkgSizeChanged", - "inputs": [ - { - "name": "oldSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false - }, - { - "name": "newSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ParticipantPublicKeySet", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReimbursementPoolSet", - "inputs": [ - { - "name": "pool", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RitualExtended", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleAdminChanged", - "inputs": [ - { - "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": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleRevoked", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "account", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StartAggregationRound", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - } - ], - "anonymous": false - }, - { - "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": "DEFAULT_ADMIN_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": [], - "outputs": [] - }, - { - "type": "function", - "name": "application", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoChildApplication" - } - ] - }, - { - "type": "function", - "name": "approveFeeModel", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beginDefaultAdminTransfer", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "cancelDefaultAdminTransfer", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "changeDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "cohortFingerprint", - "stateMutability": "pure", - "inputs": [ - { - "name": "nodes", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "defaultAdmin", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "defaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "defaultAdminDelayIncreaseWait", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "extendRitual", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "feeModelsRegistry", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IFeeModel" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "getAccessController", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" - } - ] - }, - { - "type": "function", - "name": "getAuthority", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "getFeeModel", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IFeeModel" - } - ] - }, - { - "type": "function", - "name": "getInitiator", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "getParticipant", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "transcript", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "aggregated", - "type": "bool", - "internalType": "bool" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" - } - ], - "internalType": "struct Coordinator.Participant" - } - ] - }, - { - "type": "function", - "name": "getParticipantFromProvider", - "stateMutability": "view", - "inputs": [ - { - "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": "function", - "name": "getParticipants", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "components": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "aggregated", - "type": "bool", - "internalType": "bool" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" - } - ], - "internalType": "struct Coordinator.Participant[]" - } - ] - }, - { - "type": "function", - "name": "getParticipants", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "maxParticipants", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "includeTranscript", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "components": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "aggregated", - "type": "bool", - "internalType": "bool" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" - } - ], - "internalType": "struct Coordinator.Participant[]" - } - ] - }, - { - "type": "function", - "name": "getProviderPublicKey", - "stateMutability": "view", - "inputs": [ - { - "name": "provider", - "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": "function", - "name": "getProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address[]", - "internalType": "address[]" - } - ] - }, - { - "type": "function", - "name": "getPublicKeyFromRitualId", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" - } - ] - }, - { - "type": "function", - "name": "getRitualIdFromPublicKey", - "stateMutability": "view", - "inputs": [ - { - "name": "dkgPublicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "internalType": "struct BLS12381.G1Point" - } - ], - "outputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "getRitualState", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "enum Coordinator.RitualState" - } - ] - }, - { - "type": "function", - "name": "getRoleAdmin", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "getThresholdForRitualSize", - "stateMutability": "pure", - "inputs": [ - { - "name": "size", - "type": "uint16", - "internalType": "uint16" - } - ], - "outputs": [ - { - "name": "", - "type": "uint16", - "internalType": "uint16" - } - ] - }, - { - "type": "function", - "name": "getTimestamps", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "initTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "grantRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "hasRole", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_timeout", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_maxDkgSize", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_admin", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "initiateRitual", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - }, - { - "name": "providers", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "authority", - "type": "address", - "internalType": "address" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "accessController", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" - } - ], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "isEncryptionAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isParticipant", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "provider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isProviderPublicKeySet", - "stateMutability": "view", - "inputs": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isRitualActive", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "maxDkgSize", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint16", - "internalType": "uint16" - } - ] - }, - { - "type": "function", - "name": "numberOfRituals", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "pendingDefaultAdmin", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address" - }, - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "pendingDefaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" - }, - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "postAggregation", - "stateMutability": "nonpayable", - "inputs": [ - { - "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": "postTranscript", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "renounceRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "revokeRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "rituals", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "initiator", - "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" - }, - { - "name": "authority", - "type": "address", - "internalType": "address" - }, - { - "name": "dkgSize", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "threshold", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "aggregationMismatch", - "type": "bool", - "internalType": "bool" - }, - { - "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" - }, - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - } - ] - }, - { - "type": "function", - "name": "rollbackDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setMaxDkgSize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newSize", - "type": "uint16", - "internalType": "uint16" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setProviderPublicKey", - "stateMutability": "nonpayable", - "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" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setReimbursementPool", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "pool", - "type": "address", - "internalType": "contract IReimbursementPool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setTimeout", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newTimeout", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "supportsInterface", - "stateMutability": "view", - "inputs": [ - { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "timeout", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "transferRitualAuthority", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "newAuthority", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x4207f1fd038945ef7d5da06a0989446d3ed2eb031adad1233c7e3a61951652a1", - "block_number": 5198668, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "FreeFeeModel": { - "address": "0x14EB9BB700E45D2Ee9233056b8cc341276c688Ba", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "approveInitiator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeIsAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeSetAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "value", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "initiatorWhiteList", - "stateMutability": "view", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "approved", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "processRitualExtending", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualPayment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x9672d91bcbab5b746288e592e420c7cda089ef598023971d6525243d1504758b", - "block_number": 9106650, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "GlobalAllowList": { - "address": "0xd5a66BF5f63dccAFEC74AEe1ba755CD7e06F683a", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "error", - "name": "ECDSAInvalidSignature", - "inputs": [] - }, - { - "type": "error", - "name": "ECDSAInvalidSignatureLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ECDSAInvalidSignatureS", - "inputs": [ - { - "name": "s", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "event", - "name": "AddressAuthorizationSet", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "_address", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "isAuthorized", - "type": "bool", - "internalType": "bool", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "MAX_AUTH_ACTIONS", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "authActions", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "authorize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "function", - "name": "deauthorize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isAddressAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "encryptor", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x7753ec5286e2521a8430a9686052d7e065b3b561167123e6975f0ae1a2d312d0", - "block_number": 9101909, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "LynxRitualToken": { - "address": "0x064Be2a9740e565729BC0d47bC616c5bb8Cc87B9", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientAllowance", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "allowance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientBalance", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - }, - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidApprover", - "inputs": [ - { - "name": "approver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidReceiver", - "inputs": [ - { - "name": "receiver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSender", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSpender", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "spender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "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": "function", - "name": "allowance", - "stateMutability": "view", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "approve", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "balanceOf", - "stateMutability": "view", - "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" - } - ] - }, - { - "type": "function", - "name": "name", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "function", - "name": "symbol", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "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": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] + "11155111": { + "LynxStakingToken": { + "address": "0x347370278531Db455Aec3BFD0F30d57e41422353", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_totalSupplyOfTokens", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "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": "function", + "name": "allowance", + "stateMutability": "view", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "approve", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "balanceOf", + "stateMutability": "view", + "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" + } + ] + }, + { + "type": "function", + "name": "name", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ] + }, + { + "type": "function", + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "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": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "transferFrom", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + } + ], + "tx_hash": "0x43084903238b8bb454720c2298195fbf7338283f70971d9191fb2ec5328ad73d", + "block_number": 4886808, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonRoot": { + "address": "0xDD60a8E632c13fb777Ca76C7FE5670031202Edab", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rootApplication", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "rootApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "function", + "name": "setRootApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "application", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0x304bed5b4870f49600a6357b5b385c6e08f64bd9a086279bd624e826bc520c56", + "block_number": 4886826, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TACoApplication": { + "address": "0x329bc9Df0e45f360583374726ccaFF003264a136", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_token", + "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" + }, + { + "name": "_penaltyDefault", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "_penaltyDuration", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_penaltyIncrement", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SafeCastOverflowedUintDowncast", + "inputs": [ + { + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "AuthorizationDecreaseApproved", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationDecreaseRequested", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationIncreased", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationInvoluntaryDecreased", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationReSynchronized", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CommitmentMade", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "endCommitment", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ManualChildSynchronizationSent", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorBonded", + "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 + } + ], + "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": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "newOwner", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Penalized", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "penaltyPercent", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardAdded", + "inputs": [ + { + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardContractSet", + "inputs": [ + { + "name": "rewardContract", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardDistributorSet", + "inputs": [ + { + "name": "distributor", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardPaid", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardReset", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "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": "PENALTY_BASE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "REWARD_PER_TOKEN_MULTIPLIER", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "adjudicator", + "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": "_fromAmount", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_toAmount", + "type": "uint96", + "internalType": "uint96" + } + ], + "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" + } + ] + }, + { + "type": "function", + "name": "authorizedOverall", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "availableRewards", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "bondOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "childApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ] + }, + { + "type": "function", + "name": "commitmentDeadline", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption1", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption2", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption3", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption4", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "deauthorizationDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] + }, + { + "type": "function", + "name": "getBeneficiary", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + } + ] + }, + { + "type": "function", + "name": "getPenalty", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "penalty", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "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", + "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": "isAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isOperatorConfirmed", + "stateMutability": "view", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "lastTimeRewardApplicable", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "lastUpdateTime", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "makeCommitment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_commitmentDuration", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "manualChildSynchronization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "minOperatorSeconds", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "minimumAuthorization", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "operatorToStakingProvider", + "stateMutability": "view", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "penalize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "penaltyDefault", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "penaltyDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "penaltyIncrement", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "periodFinish", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "pushReward", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_reward", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "registerOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "remainingAuthorizationDecreaseDelay", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "resetReward", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "resynchronizeAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "rewardContract", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "rewardDistributor", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "rewardDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "rewardPerToken", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint160", + "internalType": "uint160" + } + ] + }, + { + "type": "function", + "name": "rewardPerTokenStored", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint160", + "internalType": "uint160" + } + ] + }, + { + "type": "function", + "name": "rewardRateDecimals", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "setAdjudicator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_adjudicator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setChildApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_childApplication", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRewardContract", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rewardContract", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRewardDistributor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rewardDistributor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "slash", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_penalty", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_investigator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "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" + }, + { + "name": "rewardPerTokenPaid", + "type": "uint160", + "internalType": "uint160" + }, + { + "name": "endCommitment", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "stub", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "penaltyPercent", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "stakingProviderToOperator", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "stakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "tStaking", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IStaking" + } + ] + }, + { + "type": "function", + "name": "token", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "withdrawRewards", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0xd5d4f1abe3e9eb2d92b02cd7f22ee7f6b514d9c15d578c94ecb1543afd6207c1", + "block_number": 4886820, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TestnetThresholdStaking": { + "address": "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "application", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IApplication" + } + ] + }, + { + "type": "function", + "name": "authorizationIncreased", + "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": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "rolesOf", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "setApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_application", + "type": "address", + "internalType": "contract IApplication" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRoles", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRoles", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": "setStakes", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": [] + }, + { + "type": "function", + "name": "stakedNu", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "stakes", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "nuInTStake", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", + "type": "address", + "internalType": "address" + }, + { + "name": "tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "nuInTStake", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0xeb083a1906cd8825653e4077cccc9caae00007624f4ac0dba29f49d82ec41ea2", + "block_number": 4886812, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + } + }, + "80002": { + "BqETHSubscription": { + "address": "0x3E851204c29742b713d5C243093E98691591e654", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "contract Coordinator" + }, + { + "name": "_accessController", + "type": "address", + "internalType": "contract GlobalAllowList" + }, + { + "name": "_feeToken", + "type": "address", + "internalType": "contract IERC20" + }, + { + "name": "_adopter", + "type": "address", + "internalType": "address" + }, + { + "name": "_initialBaseFeeRate", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_baseFeeRateIncrease", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_encryptorFeeRate", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxNodes", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_subscriptionPeriodDuration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_yellowPeriodDuration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_redPeriodDuration", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "EncryptorSlotsPaid", + "inputs": [ + { + "name": "sponsor", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128", + "indexed": false + }, + { + "name": "endOfCurrentPeriod", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "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": "event", + "name": "SubscriptionPaid", + "inputs": [ + { + "name": "subscriber", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128", + "indexed": false + }, + { + "name": "endOfSubscription", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WithdrawalToTreasury", + "inputs": [ + { + "name": "treasury", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "INACTIVE_RITUAL_ID", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "INCREASE_BASE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "accessController", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract GlobalAllowList" + } + ] + }, + { + "type": "function", + "name": "activeRitualId", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "adopter", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "baseFeeRateIncrease", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "baseFees", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "baseFees", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "beforeIsAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeSetAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "value", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "billingInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "paid", + "type": "bool", + "internalType": "bool" + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "function", + "name": "encryptorFeeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "encryptorFees", + "stateMutability": "view", + "inputs": [ + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "feeToken", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ] + }, + { + "type": "function", + "name": "getCurrentPeriodNumber", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getEndOfSubscription", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "endOfSubscription", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "getPaidEncryptorSlots", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialBaseFeeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_treasury", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isPeriodPaid", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "maxNodes", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "payForEncryptorSlots", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "additionalEncryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "payForSubscription", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualExtending", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualPayment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "numberOfProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "redPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "startOfSubscription", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "subscriptionPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "usedEncryptorSlots", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "withdrawToTreasury", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "yellowPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + } + ], + "tx_hash": "0x709f8cb91d3489fed89b0006a162e226a12095e12c5b737d1ec639109cac4a26", + "block_number": 9101924, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "Coordinator": { + "address": "0xE9e94499bB0f67b9DBD75506ec1735486DE57770", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_application", + "type": "address", + "internalType": "contract ITACoChildApplication" + } + ] + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlEnforcedDefaultAdminDelay", + "inputs": [ + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "error", + "name": "AccessControlEnforcedDefaultAdminRules", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlInvalidDefaultAdmin", + "inputs": [ + { + "name": "defaultAdmin", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "SafeCastOverflowedUintDowncast", + "inputs": [ + { + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "event", + "name": "AggregationPosted", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "node", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "aggregatedTranscriptDigest", + "type": "bytes32", + "internalType": "bytes32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeScheduled", + "inputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48", + "indexed": false + }, + { + "name": "effectSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminTransferCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminTransferScheduled", + "inputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "acceptSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "EndRitual", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "successful", + "type": "bool", + "internalType": "bool", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeeModelApproved", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MaxDkgSizeChanged", + "inputs": [ + { + "name": "oldSize", + "type": "uint16", + "internalType": "uint16", + "indexed": false + }, + { + "name": "newSize", + "type": "uint16", + "internalType": "uint16", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ParticipantPublicKeySet", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "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" } - ], - "tx_hash": "0x3fa59f2ab18ce9017f5760b31bd7b132b387f1dd6e8c5d3fb8e58a553411ed69", - "block_number": 5198656, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonChild": { - "address": "0x4FD23FAB4A09F85872bf240ABBd484cb4F9a5F79", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "childApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_childApplication", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_amount", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] + ], + "internalType": "struct BLS12381.G2Point", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReimbursementPoolSet", + "inputs": [ + { + "name": "pool", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RitualExtended", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "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": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StartAggregationRound", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + } + ], + "anonymous": false + }, + { + "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": "DEFAULT_ADMIN_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": [], + "outputs": [] + }, + { + "type": "function", + "name": "application", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoChildApplication" + } + ] + }, + { + "type": "function", + "name": "approveFeeModel", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beginDefaultAdminTransfer", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "cancelDefaultAdminTransfer", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "changeDefaultAdminDelay", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "cohortFingerprint", + "stateMutability": "pure", + "inputs": [ + { + "name": "nodes", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "defaultAdmin", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "defaultAdminDelay", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "defaultAdminDelayIncreaseWait", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "extendRitual", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "feeModelsRegistry", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IFeeModel" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "getAccessController", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + } + ] + }, + { + "type": "function", + "name": "getAuthority", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "getFeeModel", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IFeeModel" + } + ] + }, + { + "type": "function", + "name": "getInitiator", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "getParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "transcript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" } - ], - "tx_hash": "0xee32aa290b2ea1a03cc01412e9089897ec92cabd3561664c26bf2c1e5e9247d4", - "block_number": 5198636, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "OpenAccessAuthorizer": { - "address": "0x33270a0B88d0Ffb6B0b4FBA119ca6a7263DeF675", - "abi": [ - { - "type": "function", - "name": "isAuthorized", - "stateMutability": "pure", - "inputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] + ], + "internalType": "struct Coordinator.Participant" + } + ] + }, + { + "type": "function", + "name": "getParticipantFromProvider", + "stateMutability": "view", + "inputs": [ + { + "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" } - ], - "tx_hash": "0x8bbd39406559c99b6dc35df89c604c645b0996aac2908ce9e75f2d38367d294a", - "block_number": 5196868, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "SubscriptionManager": { - "address": "0x811389558a2C0B65ff56652d5E5bBF5DbC9A4358", - "abi": [ - { - "type": "error", - "name": "AccessControlBadConfirmation", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - }, - { - "name": "neededRole", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "event", - "name": "FeeRateUpdated", - "inputs": [ - { - "name": "oldFeeRate", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "newFeeRate", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "PolicyCreated", - "inputs": [ - { - "name": "policyId", - "type": "bytes16", - "internalType": "bytes16", - "indexed": true - }, - { - "name": "sponsor", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "size", - "type": "uint16", - "internalType": "uint16", - "indexed": false - }, - { - "name": "startTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - }, - { - "name": "cost", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleAdminChanged", - "inputs": [ - { - "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": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleRevoked", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "account", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "DEFAULT_ADMIN_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "SET_RATE_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "WITHDRAW_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "createPolicy", - "stateMutability": "payable", - "inputs": [ - { - "name": "_policyId", - "type": "bytes16", - "internalType": "bytes16" - }, - { - "name": "_policyOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "_size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "feeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getPolicy", - "stateMutability": "view", - "inputs": [ - { - "name": "_policyID", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "sponsor", - "type": "address", - "internalType": "address payable" - }, - { - "name": "startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "internalType": "struct SubscriptionManager.Policy" - } - ] - }, - { - "type": "function", - "name": "getPolicyCost", - "stateMutability": "view", - "inputs": [ - { - "name": "_size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getRoleAdmin", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "grantRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "hasRole", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_feeRate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isPolicyActive", - "stateMutability": "view", - "inputs": [ - { - "name": "_policyID", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "renounceRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "callerConfirmation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "revokeRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setFeeRate", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_ratePerSecond", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "supportsInterface", - "stateMutability": "view", - "inputs": [ - { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "sweep", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - } - ], - "outputs": [] + ], + "internalType": "struct Coordinator.Participant" + } + ] + }, + { + "type": "function", + "name": "getParticipants", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "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" } - ], - "tx_hash": "0x9a02db05c96318d8b0abfd5030c98cd013d670f46012ac1fbabf1564d40d2b6c", - "block_number": 5347313, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TACoChildApplication": { - "address": "0x42F30AEc1A36995eEFaf9536Eb62BD751F982D32", - "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", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "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": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "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": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "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" - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64" - } - ] + ], + "internalType": "struct Coordinator.Participant[]" + } + ] + }, + { + "type": "function", + "name": "getParticipants", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "maxParticipants", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "includeTranscript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant[]" + } + ] + }, + { + "type": "function", + "name": "getProviderPublicKey", + "stateMutability": "view", + "inputs": [ + { + "name": "provider", + "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": "function", + "name": "getProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ] + }, + { + "type": "function", + "name": "getPublicKeyFromRitualId", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + } + ] + }, + { + "type": "function", + "name": "getRitualIdFromPublicKey", + "stateMutability": "view", + "inputs": [ + { + "name": "dkgPublicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + } + ], + "outputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "getRitualState", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum Coordinator.RitualState" + } + ] + }, + { + "type": "function", + "name": "getRoleAdmin", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "getThresholdForRitualSize", + "stateMutability": "pure", + "inputs": [ + { + "name": "size", + "type": "uint16", + "internalType": "uint16" + } + ], + "outputs": [ + { + "name": "", + "type": "uint16", + "internalType": "uint16" + } + ] + }, + { + "type": "function", + "name": "getTimestamps", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "initTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "grantRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "hasRole", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_timeout", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_maxDkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "initializeNumberOfRituals", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "initiateRitual", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + }, + { + "name": "providers", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "authority", + "type": "address", + "internalType": "address" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "accessController", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + } + ], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "isEncryptionAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "evidence", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isProviderPublicKeySet", + "stateMutability": "view", + "inputs": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isRitualActive", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "maxDkgSize", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint16", + "internalType": "uint16" + } + ] + }, + { + "type": "function", + "name": "numberOfRituals", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "pendingDefaultAdmin", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "pendingDefaultAdminDelay", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "postAggregation", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": "postTranscript", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "renounceRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "revokeRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "rituals", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "initiator", + "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" + }, + { + "name": "authority", + "type": "address", + "internalType": "address" + }, + { + "name": "dkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "threshold", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "aggregationMismatch", + "type": "bool", + "internalType": "bool" + }, + { + "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" + }, + { + "name": "participant", + "type": "tuple[]", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant[]" }, { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + } + ], + "internalType": "struct Coordinator.Ritual" + } + ] + }, + { + "type": "function", + "name": "rollbackDefaultAdminDelay", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "setMaxDkgSize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newSize", + "type": "uint16", + "internalType": "uint16" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setProviderPublicKey", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "publicKey", + "type": "tuple", + "components": [ { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" }, { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [] + "name": "word1", + "type": "bytes32", + "internalType": "bytes32" }, { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] + "name": "word2", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "internalType": "struct BLS12381.G2Point" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setReimbursementPool", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "pool", + "type": "address", + "internalType": "contract IReimbursementPool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setTimeout", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newTimeout", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "supportsInterface", + "stateMutability": "view", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "timeout", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "transferRitualAuthority", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "newAuthority", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0x4207f1fd038945ef7d5da06a0989446d3ed2eb031adad1233c7e3a61951652a1", + "block_number": 5198668, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "FreeFeeModel": { + "address": "0x14EB9BB700E45D2Ee9233056b8cc341276c688Ba", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "approveInitiator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeIsAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeSetAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "value", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "initiatorWhiteList", + "stateMutability": "view", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "approved", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "processRitualExtending", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualPayment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0x9672d91bcbab5b746288e592e420c7cda089ef598023971d6525243d1504758b", + "block_number": 9106650, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "GlobalAllowList": { + "address": "0xd5a66BF5f63dccAFEC74AEe1ba755CD7e06F683a", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "error", + "name": "ECDSAInvalidSignature", + "inputs": [] + }, + { + "type": "error", + "name": "ECDSAInvalidSignatureLength", + "inputs": [ + { + "name": "length", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ECDSAInvalidSignatureS", + "inputs": [ + { + "name": "s", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "event", + "name": "AddressAuthorizationSet", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "_address", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "isAuthorized", + "type": "bool", + "internalType": "bool", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "MAX_AUTH_ACTIONS", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "authActions", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "authorize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "function", + "name": "deauthorize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isAddressAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "encryptor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "evidence", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + } + ], + "tx_hash": "0x7753ec5286e2521a8430a9686052d7e065b3b561167123e6975f0ae1a2d312d0", + "block_number": 9101909, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "LynxRitualToken": { + "address": "0x064Be2a9740e565729BC0d47bC616c5bb8Cc87B9", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_totalSupplyOfTokens", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "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": "function", + "name": "allowance", + "stateMutability": "view", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "approve", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "balanceOf", + "stateMutability": "view", + "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" + } + ] + }, + { + "type": "function", + "name": "name", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ] + }, + { + "type": "function", + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "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": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "transferFrom", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + } + ], + "tx_hash": "0x3fa59f2ab18ce9017f5760b31bd7b132b387f1dd6e8c5d3fb8e58a553411ed69", + "block_number": 5198656, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonChild": { + "address": "0x4FD23FAB4A09F85872bf240ABBd484cb4F9a5F79", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "childApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "setChildApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_childApplication", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + } + ], + "tx_hash": "0xee32aa290b2ea1a03cc01412e9089897ec92cabd3561664c26bf2c1e5e9247d4", + "block_number": 5198636, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "OpenAccessAuthorizer": { + "address": "0x33270a0B88d0Ffb6B0b4FBA119ca6a7263DeF675", + "abi": [ + { + "type": "function", + "name": "isAuthorized", + "stateMutability": "pure", + "inputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + } + ], + "tx_hash": "0x8bbd39406559c99b6dc35df89c604c645b0996aac2908ce9e75f2d38367d294a", + "block_number": 5196868, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "SubscriptionManager": { + "address": "0x811389558a2C0B65ff56652d5E5bBF5DbC9A4358", + "abi": [ + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "event", + "name": "FeeRateUpdated", + "inputs": [ + { + "name": "oldFeeRate", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "newFeeRate", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PolicyCreated", + "inputs": [ + { + "name": "policyId", + "type": "bytes16", + "internalType": "bytes16", + "indexed": true + }, + { + "name": "sponsor", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "size", + "type": "uint16", + "internalType": "uint16", + "indexed": false + }, + { + "name": "startTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + }, + { + "name": "cost", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "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": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "SET_RATE_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "WITHDRAW_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "createPolicy", + "stateMutability": "payable", + "inputs": [ + { + "name": "_policyId", + "type": "bytes16", + "internalType": "bytes16" + }, + { + "name": "_policyOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "feeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getPolicy", + "stateMutability": "view", + "inputs": [ + { + "name": "_policyID", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "sponsor", + "type": "address", + "internalType": "address payable" + }, + { + "name": "startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "owner", + "type": "address", + "internalType": "address" } - ], - "tx_hash": "0x4a1de1566b64df4f11a782939b4b694cb193df9bb06b307835a87e2420f37e81", - "block_number": 5198646, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + ], + "internalType": "struct SubscriptionManager.Policy" + } + ] + }, + { + "type": "function", + "name": "getPolicyCost", + "stateMutability": "view", + "inputs": [ + { + "name": "_size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getRoleAdmin", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "grantRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "hasRole", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_feeRate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isPolicyActive", + "stateMutability": "view", + "inputs": [ + { + "name": "_policyID", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "renounceRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "revokeRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setFeeRate", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_ratePerSecond", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "supportsInterface", + "stateMutability": "view", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "sweep", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "recipient", + "type": "address", + "internalType": "address payable" + } + ], + "outputs": [] + } + ], + "tx_hash": "0x9a02db05c96318d8b0abfd5030c98cd013d670f46012ac1fbabf1564d40d2b6c", + "block_number": 5347313, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TACoChildApplication": { + "address": "0x42F30AEc1A36995eEFaf9536Eb62BD751F982D32", + "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", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "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": "function", + "name": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "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": "getStakingProvidersLength", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "minimumAuthorization", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "operatorToStakingProvider", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "rootApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "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" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "stakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } + ], + "tx_hash": "0x4a1de1566b64df4f11a782939b4b694cb193df9bb06b307835a87e2420f37e81", + "block_number": 5198646, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" } + } } diff --git a/deployment/params.py b/deployment/params.py index 53826e26f..bcf77ec33 100644 --- a/deployment/params.py +++ b/deployment/params.py @@ -4,7 +4,7 @@ from pathlib import Path from typing import Any, List -from ape import chain, networks +from ape import chain, networks, project from ape.api import AccountAPI, ReceiptAPI from ape.cli.choices import select_account from ape.contracts.base import ContractContainer, ContractInstance, ContractTransactionHandler @@ -633,6 +633,13 @@ def _deploy_proxy( return contract_type_container.at(proxy_contract.address) def upgrade(self, container: ContractContainer, proxy_address, data=b"") -> ContractInstance: + implementation = self.deploy(container) + # TODO: initialize taco app implementation too + return self.upgradeTo(implementation, proxy_address, data) + + def upgradeTo( + self, implementation: ContractInstance, proxy_address, data=b"" + ) -> ContractInstance: admin_slot = chain.provider.get_storage_at(address=proxy_address, slot=EIP1967_ADMIN_SLOT) if admin_slot == EMPTY_BYTES32: @@ -645,12 +652,9 @@ def upgrade(self, container: ContractContainer, proxy_address, data=b"") -> Cont proxy_admin = OZ_DEPENDENCY.ProxyAdmin.at(admin_address) # TODO: Check that owner of proxy admin is deployer - implementation = self.deploy(container) - # TODO: initialize taco app implementation too - self.transact(proxy_admin.upgradeAndCall, proxy_address, implementation.address, data) - wrapped_instance = container.at(proxy_address) + wrapped_instance = getattr(project, implementation.contract_type.name).at(proxy_address) return wrapped_instance def finalize(self, deployments: List[ContractInstance]) -> None: diff --git a/scripts/lynx/upgrade_coordinator.py b/scripts/lynx/upgrade_coordinator.py index 391619813..3ed3c9aaa 100644 --- a/scripts/lynx/upgrade_coordinator.py +++ b/scripts/lynx/upgrade_coordinator.py @@ -18,8 +18,12 @@ def main(): deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) instances = contracts_from_registry(filepath=ARTIFACTS_DIR / "lynx.json", chain_id=80002) - coordinator = deployer.upgrade( - project.Coordinator, instances[project.Coordinator.contract_type.name].address + implementation = deployer.deploy(project.Coordinator) + encoded_initializer_function = implementation.initializeNumberOfRituals.encode_input() + coordinator = deployer.upgradeTo( + implementation, + instances[project.Coordinator.contract_type.name].address, + encoded_initializer_function, ) deployments = [ From 2593c52e87f5030aa9093fe537f0e91ef3112fb6 Mon Sep 17 00:00:00 2001 From: Victoria Zotova Date: Wed, 21 Aug 2024 16:44:27 -0400 Subject: [PATCH 2/4] Coordinator: Removes participants array from "rituals" ABI --- .../contracts/coordination/Coordinator.sol | 43 +++++++++++++++++-- scripts/ritual_state_check.py | 1 + 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/contracts/contracts/coordination/Coordinator.sol b/contracts/contracts/coordination/Coordinator.sol index e58337a71..519074e76 100644 --- a/contracts/contracts/coordination/Coordinator.sol +++ b/contracts/contracts/coordination/Coordinator.sol @@ -138,8 +138,43 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable } } - function rituals(uint32 ritualId) public view returns (Ritual memory) { - return storageRitual(ritualId); + function rituals( + uint32 ritualId + ) + external + view + returns ( + address initiator, + uint32 initTimestamp, + uint32 endTimestamp, + uint16 totalTranscripts, + uint16 totalAggregations, + // + address authority, + uint16 dkgSize, + uint16 threshold, + bool aggregationMismatch, + // + IEncryptionAuthorizer accessController, + BLS12381.G1Point memory publicKey, + bytes memory aggregatedTranscript, + IFeeModel feeModel + ) + { + Ritual storage ritual = storageRitual(ritualId); + initiator = ritual.initiator; + initTimestamp = ritual.initTimestamp; + endTimestamp = ritual.endTimestamp; + totalTranscripts = ritual.totalTranscripts; + totalAggregations = ritual.totalAggregations; + authority = ritual.authority; + dkgSize = ritual.dkgSize; + threshold = ritual.threshold; + aggregationMismatch = ritual.aggregationMismatch; + accessController = ritual.accessController; + publicKey = ritual.publicKey; + aggregatedTranscript = ritual.aggregatedTranscript; + feeModel = ritual.feeModel; } // for backward compatibility @@ -152,7 +187,7 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable } function getInitiator(uint32 ritualId) external view returns (address) { - return rituals(ritualId).initiator; + return storageRitual(ritualId).initiator; } function getTimestamps( @@ -377,7 +412,7 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable } function getAuthority(uint32 ritualId) external view returns (address) { - return rituals(ritualId).authority; + return storageRitual(ritualId).authority; } function postAggregation( diff --git a/scripts/ritual_state_check.py b/scripts/ritual_state_check.py index c414fd9b9..c68106231 100644 --- a/scripts/ritual_state_check.py +++ b/scripts/ritual_state_check.py @@ -114,6 +114,7 @@ def cli(network, domain, ritual_id, realtime): f"\tAccessController : " f"{ritual.accessController} {'(GlobalAllowList)' if isGlobalAllowList else ''}" ) + print(f"\tFee Model : {ritual.feeModel}") print("\tParticipants :") for participant in participants: provider = participant.provider From b785a754573a36bff499d169b6b5c823883f4a5b Mon Sep 17 00:00:00 2001 From: Victoria Zotova Date: Wed, 21 Aug 2024 17:12:31 -0400 Subject: [PATCH 3/4] Upgrade Coordinator: changed ABI of `rituals` --- .../contracts/coordination/Coordinator.sol | 4 +- deployment/artifacts/lynx.json | 174 +++++++----------- scripts/lynx/upgrade_coordinator.py | 11 +- 3 files changed, 81 insertions(+), 108 deletions(-) diff --git a/contracts/contracts/coordination/Coordinator.sol b/contracts/contracts/coordination/Coordinator.sol index 519074e76..2672fede5 100644 --- a/contracts/contracts/coordination/Coordinator.sol +++ b/contracts/contracts/coordination/Coordinator.sol @@ -139,7 +139,7 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable } function rituals( - uint32 ritualId + uint256 ritualId // uint256 for backward compatibility ) external view @@ -161,7 +161,7 @@ contract Coordinator is Initializable, AccessControlDefaultAdminRulesUpgradeable IFeeModel feeModel ) { - Ritual storage ritual = storageRitual(ritualId); + Ritual storage ritual = storageRitual(uint32(ritualId)); initiator = ritual.initiator; initTimestamp = ritual.initTimestamp; endTimestamp = ritual.endTimestamp; diff --git a/deployment/artifacts/lynx.json b/deployment/artifacts/lynx.json index 4370fd2df..91bb98d49 100644 --- a/deployment/artifacts/lynx.json +++ b/deployment/artifacts/lynx.json @@ -4852,121 +4852,87 @@ "inputs": [ { "name": "ritualId", - "type": "uint32", - "internalType": "uint32" + "type": "uint256", + "internalType": "uint256" } ], "outputs": [ { - "name": "", + "name": "initiator", + "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" + }, + { + "name": "authority", + "type": "address", + "internalType": "address" + }, + { + "name": "dkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "threshold", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "aggregationMismatch", + "type": "bool", + "internalType": "bool" + }, + { + "name": "accessController", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + }, + { + "name": "publicKey", "type": "tuple", "components": [ { - "name": "initiator", - "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" - }, - { - "name": "authority", - "type": "address", - "internalType": "address" - }, - { - "name": "dkgSize", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "threshold", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "aggregationMismatch", - "type": "bool", - "internalType": "bool" - }, - { - "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" - }, - { - "name": "participant", - "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": "word0", + "type": "bytes32", + "internalType": "bytes32" }, { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" } ], - "internalType": "struct Coordinator.Ritual" + "internalType": "struct BLS12381.G1Point" + }, + { + "name": "aggregatedTranscript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" } ] }, diff --git a/scripts/lynx/upgrade_coordinator.py b/scripts/lynx/upgrade_coordinator.py index 3ed3c9aaa..e06db254d 100644 --- a/scripts/lynx/upgrade_coordinator.py +++ b/scripts/lynx/upgrade_coordinator.py @@ -4,10 +4,11 @@ from deployment.constants import ARTIFACTS_DIR, CONSTRUCTOR_PARAMS_DIR from deployment.params import Deployer -from deployment.registry import contracts_from_registry +from deployment.registry import contracts_from_registry, merge_registries VERIFY = False CONSTRUCTOR_PARAMS_FILEPATH = CONSTRUCTOR_PARAMS_DIR / "lynx" / "upgrade-coordinator.yml" +LYNX_REGISTRY = ARTIFACTS_DIR / "lynx.json" def main(): @@ -19,7 +20,8 @@ def main(): instances = contracts_from_registry(filepath=ARTIFACTS_DIR / "lynx.json", chain_id=80002) implementation = deployer.deploy(project.Coordinator) - encoded_initializer_function = implementation.initializeNumberOfRituals.encode_input() + # encoded_initializer_function = implementation.initializeNumberOfRituals.encode_input() + encoded_initializer_function = b"" coordinator = deployer.upgradeTo( implementation, instances[project.Coordinator.contract_type.name].address, @@ -31,3 +33,8 @@ def main(): ] deployer.finalize(deployments=deployments) + merge_registries( + registry_1_filepath=LYNX_REGISTRY, + registry_2_filepath=deployer.registry_filepath, + output_filepath=LYNX_REGISTRY, + ) From 6b8420a3a8b1b29a833cad8279c31724c1f818b1 Mon Sep 17 00:00:00 2001 From: Victoria Date: Thu, 22 Aug 2024 16:51:25 +0200 Subject: [PATCH 4/4] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Derek Pierre Co-authored-by: David Núñez --- deployment/artifacts/lynx.json | 14088 +++++++++++++------------- deployment/params.py | 2 +- scripts/lynx/upgrade_coordinator.py | 17 +- 3 files changed, 7056 insertions(+), 7051 deletions(-) diff --git a/deployment/artifacts/lynx.json b/deployment/artifacts/lynx.json index 91bb98d49..ddbf5bba5 100644 --- a/deployment/artifacts/lynx.json +++ b/deployment/artifacts/lynx.json @@ -1,7064 +1,7064 @@ { - "11155111": { - "LynxStakingToken": { - "address": "0x347370278531Db455Aec3BFD0F30d57e41422353", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientAllowance", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "allowance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientBalance", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - }, - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidApprover", - "inputs": [ - { - "name": "approver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidReceiver", - "inputs": [ - { - "name": "receiver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSender", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSpender", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "spender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "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": "function", - "name": "allowance", - "stateMutability": "view", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "approve", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "balanceOf", - "stateMutability": "view", - "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" - } - ] - }, - { - "type": "function", - "name": "name", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "function", - "name": "symbol", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "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": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x43084903238b8bb454720c2298195fbf7338283f70971d9191fb2ec5328ad73d", - "block_number": 4886808, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonRoot": { - "address": "0xDD60a8E632c13fb777Ca76C7FE5670031202Edab", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rootApplication", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ] - }, - { - "type": "function", - "name": "setRootApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "application", - "type": "address", - "internalType": "contract ITACoChildToRoot" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x304bed5b4870f49600a6357b5b385c6e08f64bd9a086279bd624e826bc520c56", - "block_number": 4886826, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TACoApplication": { - "address": "0x329bc9Df0e45f360583374726ccaFF003264a136", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_token", - "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" - }, - { - "name": "_penaltyDefault", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "_penaltyDuration", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_penaltyIncrement", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", - "inputs": [ - { - "name": "bits", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SafeERC20FailedOperation", - "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "AuthorizationDecreaseApproved", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationDecreaseRequested", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationIncreased", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationInvoluntaryDecreased", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationReSynchronized", - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CommitmentMade", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "endCommitment", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ManualChildSynchronizationSent", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64", - "indexed": false - }, - { - "name": "operator", - "type": "address", - "internalType": "address", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorBonded", - "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 - } - ], - "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": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "newOwner", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Penalized", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "penaltyPercent", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardAdded", - "inputs": [ - { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardContractSet", - "inputs": [ - { - "name": "rewardContract", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardDistributorSet", - "inputs": [ - { - "name": "distributor", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardPaid", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "reward", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardReset", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "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": "PENALTY_BASE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "REWARD_PER_TOKEN_MULTIPLIER", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "adjudicator", - "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": "_fromAmount", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "internalType": "uint96" - } - ], - "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" - } - ] - }, - { - "type": "function", - "name": "authorizedOverall", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "availableRewards", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "bondOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "childApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ] - }, - { - "type": "function", - "name": "commitmentDeadline", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption1", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption2", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption3", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption4", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "deauthorizationDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getBeneficiary", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - } - ] - }, - { - "type": "function", - "name": "getPenalty", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "penalty", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "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", - "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": "isAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isOperatorConfirmed", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "lastTimeRewardApplicable", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "lastUpdateTime", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "makeCommitment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_commitmentDuration", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "manualChildSynchronization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minOperatorSeconds", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "penalize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "penaltyDefault", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "penaltyDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "penaltyIncrement", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint192", - "internalType": "uint192" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "periodFinish", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "pushReward", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_reward", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "registerOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "remainingAuthorizationDecreaseDelay", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "resetReward", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "resynchronizeAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "rewardContract", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "rewardDistributor", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "rewardDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "rewardPerToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "internalType": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardPerTokenStored", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "internalType": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardRateDecimals", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "setAdjudicator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_adjudicator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_childApplication", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardContract", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rewardContract", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardDistributor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rewardDistributor", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "slash", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_penalty", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "_investigator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "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" - }, - { - "name": "rewardPerTokenPaid", - "type": "uint160", - "internalType": "uint160" - }, - { - "name": "endCommitment", - "type": "uint64", - "internalType": "uint64" - }, - { - "name": "stub", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "penaltyPercent", - "type": "uint192", - "internalType": "uint192" - }, - { - "name": "endPenalty", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "stakingProviderToOperator", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "tStaking", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IStaking" - } - ] - }, - { - "type": "function", - "name": "token", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "withdrawRewards", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xd5d4f1abe3e9eb2d92b02cd7f22ee7f6b514d9c15d578c94ecb1543afd6207c1", - "block_number": 4886820, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TestnetThresholdStaking": { - "address": "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "application", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IApplication" - } - ] - }, - { - "type": "function", - "name": "authorizationIncreased", - "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": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "rolesOf", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "authorizer", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "setApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_application", - "type": "address", - "internalType": "contract IApplication" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRoles", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRoles", - "stateMutability": "nonpayable", - "inputs": [ - { - "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": "setStakes", - "stateMutability": "nonpayable", - "inputs": [ - { - "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": [] - }, - { - "type": "function", - "name": "stakedNu", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "stakes", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "beneficiary", - "type": "address", - "internalType": "address payable" - }, - { - "name": "authorizer", - "type": "address", - "internalType": "address" - }, - { - "name": "tStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "keepInTStake", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "nuInTStake", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xeb083a1906cd8825653e4077cccc9caae00007624f4ac0dba29f49d82ec41ea2", - "block_number": 4886812, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - } - }, - "80002": { - "BqETHSubscription": { - "address": "0x3E851204c29742b713d5C243093E98691591e654", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "contract Coordinator" - }, - { - "name": "_accessController", - "type": "address", - "internalType": "contract GlobalAllowList" - }, - { - "name": "_feeToken", - "type": "address", - "internalType": "contract IERC20" - }, - { - "name": "_adopter", - "type": "address", - "internalType": "address" - }, - { - "name": "_initialBaseFeeRate", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_baseFeeRateIncrease", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_encryptorFeeRate", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxNodes", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_subscriptionPeriodDuration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_yellowPeriodDuration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_redPeriodDuration", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FailedInnerCall", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "SafeERC20FailedOperation", - "inputs": [ - { - "name": "token", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "EncryptorSlotsPaid", - "inputs": [ - { - "name": "sponsor", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128", - "indexed": false - }, - { - "name": "endOfCurrentPeriod", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "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": "event", - "name": "SubscriptionPaid", - "inputs": [ - { - "name": "subscriber", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128", - "indexed": false - }, - { - "name": "endOfSubscription", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "WithdrawalToTreasury", - "inputs": [ - { - "name": "treasury", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "INACTIVE_RITUAL_ID", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "INCREASE_BASE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "accessController", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract GlobalAllowList" - } - ] - }, - { - "type": "function", - "name": "activeRitualId", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "adopter", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "baseFeeRateIncrease", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "baseFees", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "baseFees", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "beforeIsAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeSetAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "value", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "billingInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "paid", - "type": "bool", - "internalType": "bool" - }, - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "function", - "name": "encryptorFeeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "encryptorFees", - "stateMutability": "view", - "inputs": [ - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "feeToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IERC20" - } - ] - }, - { - "type": "function", - "name": "getCurrentPeriodNumber", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getEndOfSubscription", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "endOfSubscription", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "getPaidEncryptorSlots", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialBaseFeeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_treasury", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isPeriodPaid", - "stateMutability": "view", - "inputs": [ - { - "name": "periodNumber", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "maxNodes", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "payForEncryptorSlots", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "additionalEncryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "payForSubscription", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "encryptorSlots", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualExtending", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualPayment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "numberOfProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "redPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "startOfSubscription", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "subscriptionPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "usedEncryptorSlots", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "withdrawToTreasury", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "yellowPeriodDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - } - ], - "tx_hash": "0x709f8cb91d3489fed89b0006a162e226a12095e12c5b737d1ec639109cac4a26", - "block_number": 9101924, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "Coordinator": { - "address": "0xE9e94499bB0f67b9DBD75506ec1735486DE57770", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_application", - "type": "address", - "internalType": "contract ITACoChildApplication" - } - ] - }, - { - "type": "error", - "name": "AccessControlBadConfirmation", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminDelay", - "inputs": [ - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "error", - "name": "AccessControlEnforcedDefaultAdminRules", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlInvalidDefaultAdmin", - "inputs": [ - { - "name": "defaultAdmin", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "AccessControlUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - }, - { - "name": "neededRole", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", - "inputs": [ - { - "name": "bits", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "event", - "name": "AggregationPosted", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "node", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "aggregatedTranscriptDigest", - "type": "bytes32", - "internalType": "bytes32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminDelayChangeCanceled", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminDelayChangeScheduled", - "inputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48", - "indexed": false - }, - { - "name": "effectSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminTransferCanceled", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "DefaultAdminTransferScheduled", - "inputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "acceptSchedule", - "type": "uint48", - "internalType": "uint48", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "EndRitual", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "successful", - "type": "bool", - "internalType": "bool", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "FeeModelApproved", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "MaxDkgSizeChanged", - "inputs": [ - { - "name": "oldSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false - }, - { - "name": "newSize", - "type": "uint16", - "internalType": "uint16", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ParticipantPublicKeySet", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "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" + "11155111": { + "LynxStakingToken": { + "address": "0x347370278531Db455Aec3BFD0F30d57e41422353", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_totalSupplyOfTokens", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "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": "function", + "name": "allowance", + "stateMutability": "view", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "approve", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "balanceOf", + "stateMutability": "view", + "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" + } + ] + }, + { + "type": "function", + "name": "name", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ] + }, + { + "type": "function", + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "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": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "transferFrom", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] } - ], - "internalType": "struct BLS12381.G2Point", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReimbursementPoolSet", - "inputs": [ - { - "name": "pool", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "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 - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RitualExtended", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleAdminChanged", - "inputs": [ - { - "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": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleRevoked", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "account", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StartAggregationRound", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - } - ], - "anonymous": false - }, - { - "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": "DEFAULT_ADMIN_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": [], - "outputs": [] - }, - { - "type": "function", - "name": "application", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoChildApplication" - } - ] - }, - { - "type": "function", - "name": "approveFeeModel", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beginDefaultAdminTransfer", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "cancelDefaultAdminTransfer", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "changeDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "cohortFingerprint", - "stateMutability": "pure", - "inputs": [ - { - "name": "nodes", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "defaultAdmin", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "defaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "defaultAdminDelayIncreaseWait", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "extendRitual", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "feeModelsRegistry", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IFeeModel" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "getAccessController", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" - } - ] - }, - { - "type": "function", - "name": "getAuthority", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "getFeeModel", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IFeeModel" - } - ] - }, - { - "type": "function", - "name": "getInitiator", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "getParticipant", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "transcript", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "aggregated", - "type": "bool", - "internalType": "bool" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" + ], + "tx_hash": "0x43084903238b8bb454720c2298195fbf7338283f70971d9191fb2ec5328ad73d", + "block_number": 4886808, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonRoot": { + "address": "0xDD60a8E632c13fb777Ca76C7FE5670031202Edab", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rootApplication", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "rootApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ] + }, + { + "type": "function", + "name": "setRootApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "application", + "type": "address", + "internalType": "contract ITACoChildToRoot" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct Coordinator.Participant" - } - ] - }, - { - "type": "function", - "name": "getParticipantFromProvider", - "stateMutability": "view", - "inputs": [ - { - "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" + ], + "tx_hash": "0x304bed5b4870f49600a6357b5b385c6e08f64bd9a086279bd624e826bc520c56", + "block_number": 4886826, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TACoApplication": { + "address": "0x329bc9Df0e45f360583374726ccaFF003264a136", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_token", + "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" + }, + { + "name": "_penaltyDefault", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "_penaltyDuration", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_penaltyIncrement", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SafeCastOverflowedUintDowncast", + "inputs": [ + { + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "AuthorizationDecreaseApproved", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationDecreaseRequested", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationIncreased", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationInvoluntaryDecreased", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AuthorizationReSynchronized", + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CommitmentMade", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "endCommitment", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ManualChildSynchronizationSent", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false + }, + { + "name": "operator", + "type": "address", + "internalType": "address", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorBonded", + "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 + } + ], + "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": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "newOwner", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Penalized", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "penaltyPercent", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardAdded", + "inputs": [ + { + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardContractSet", + "inputs": [ + { + "name": "rewardContract", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardDistributorSet", + "inputs": [ + { + "name": "distributor", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardPaid", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "reward", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardReset", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "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": "PENALTY_BASE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "REWARD_PER_TOKEN_MULTIPLIER", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "adjudicator", + "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": "_fromAmount", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_toAmount", + "type": "uint96", + "internalType": "uint96" + } + ], + "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" + } + ] + }, + { + "type": "function", + "name": "authorizedOverall", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "availableRewards", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "bondOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "childApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ] + }, + { + "type": "function", + "name": "commitmentDeadline", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption1", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption2", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption3", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "commitmentDurationOption4", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "deauthorizationDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] + }, + { + "type": "function", + "name": "getBeneficiary", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + } + ] + }, + { + "type": "function", + "name": "getPenalty", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "penalty", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "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", + "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": "isAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isOperatorConfirmed", + "stateMutability": "view", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "lastTimeRewardApplicable", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "lastUpdateTime", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "makeCommitment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_commitmentDuration", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "manualChildSynchronization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "minOperatorSeconds", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "minimumAuthorization", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "operatorToStakingProvider", + "stateMutability": "view", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "penalize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "penaltyDefault", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "penaltyDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "penaltyIncrement", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "periodFinish", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "pushReward", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_reward", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "registerOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "remainingAuthorizationDecreaseDelay", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "resetReward", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "resynchronizeAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "rewardContract", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "rewardDistributor", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "rewardDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "rewardPerToken", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint160", + "internalType": "uint160" + } + ] + }, + { + "type": "function", + "name": "rewardPerTokenStored", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint160", + "internalType": "uint160" + } + ] + }, + { + "type": "function", + "name": "rewardRateDecimals", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "setAdjudicator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_adjudicator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setChildApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_childApplication", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRewardContract", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rewardContract", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRewardDistributor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rewardDistributor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "slash", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_penalty", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "_investigator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "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" + }, + { + "name": "rewardPerTokenPaid", + "type": "uint160", + "internalType": "uint160" + }, + { + "name": "endCommitment", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "stub", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "penaltyPercent", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "stakingProviderToOperator", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "stakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "tStaking", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IStaking" + } + ] + }, + { + "type": "function", + "name": "token", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "withdrawRewards", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct Coordinator.Participant" - } - ] - }, - { - "type": "function", - "name": "getParticipants", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "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" + ], + "tx_hash": "0xd5d4f1abe3e9eb2d92b02cd7f22ee7f6b514d9c15d578c94ecb1543afd6207c1", + "block_number": 4886820, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TestnetThresholdStaking": { + "address": "0x18006f9A84C0bAD4CD96Aa69C7cE17aD760cDaD2", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "application", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IApplication" + } + ] + }, + { + "type": "function", + "name": "authorizationIncreased", + "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": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "rolesOf", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "setApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_application", + "type": "address", + "internalType": "contract IApplication" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRoles", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setRoles", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": "setStakes", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": [] + }, + { + "type": "function", + "name": "stakedNu", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "stakes", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "nuInTStake", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "stakingProviderInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "beneficiary", + "type": "address", + "internalType": "address payable" + }, + { + "name": "authorizer", + "type": "address", + "internalType": "address" + }, + { + "name": "tStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "keepInTStake", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "nuInTStake", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct Coordinator.Participant[]" - } - ] - }, - { - "type": "function", - "name": "getParticipants", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "maxParticipants", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "includeTranscript", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "components": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - }, - { - "name": "aggregated", - "type": "bool", - "internalType": "bool" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" + ], + "tx_hash": "0xeb083a1906cd8825653e4077cccc9caae00007624f4ac0dba29f49d82ec41ea2", + "block_number": 4886812, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + } + }, + "80002": { + "BqETHSubscription": { + "address": "0x3E851204c29742b713d5C243093E98691591e654", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "contract Coordinator" + }, + { + "name": "_accessController", + "type": "address", + "internalType": "contract GlobalAllowList" + }, + { + "name": "_feeToken", + "type": "address", + "internalType": "contract IERC20" + }, + { + "name": "_adopter", + "type": "address", + "internalType": "address" + }, + { + "name": "_initialBaseFeeRate", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_baseFeeRateIncrease", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_encryptorFeeRate", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxNodes", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_subscriptionPeriodDuration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_yellowPeriodDuration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_redPeriodDuration", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FailedInnerCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "EncryptorSlotsPaid", + "inputs": [ + { + "name": "sponsor", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128", + "indexed": false + }, + { + "name": "endOfCurrentPeriod", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "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": "event", + "name": "SubscriptionPaid", + "inputs": [ + { + "name": "subscriber", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128", + "indexed": false + }, + { + "name": "endOfSubscription", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WithdrawalToTreasury", + "inputs": [ + { + "name": "treasury", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "INACTIVE_RITUAL_ID", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "INCREASE_BASE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "accessController", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract GlobalAllowList" + } + ] + }, + { + "type": "function", + "name": "activeRitualId", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "adopter", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "baseFeeRateIncrease", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "baseFees", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "baseFees", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "beforeIsAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeSetAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "value", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "billingInfo", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "paid", + "type": "bool", + "internalType": "bool" + }, + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "function", + "name": "encryptorFeeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "encryptorFees", + "stateMutability": "view", + "inputs": [ + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "feeToken", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IERC20" + } + ] + }, + { + "type": "function", + "name": "getCurrentPeriodNumber", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getEndOfSubscription", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "endOfSubscription", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "getPaidEncryptorSlots", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialBaseFeeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_treasury", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isPeriodPaid", + "stateMutability": "view", + "inputs": [ + { + "name": "periodNumber", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "maxNodes", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "payForEncryptorSlots", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "additionalEncryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "payForSubscription", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "encryptorSlots", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualExtending", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualPayment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "numberOfProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "redPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "startOfSubscription", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "subscriptionPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "usedEncryptorSlots", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "withdrawToTreasury", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "yellowPeriodDuration", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] } - ], - "internalType": "struct Coordinator.Participant[]" - } - ] - }, - { - "type": "function", - "name": "getProviderPublicKey", - "stateMutability": "view", - "inputs": [ - { - "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" + ], + "tx_hash": "0x709f8cb91d3489fed89b0006a162e226a12095e12c5b737d1ec639109cac4a26", + "block_number": 9101924, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "Coordinator": { + "address": "0xE9e94499bB0f67b9DBD75506ec1735486DE57770", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_application", + "type": "address", + "internalType": "contract ITACoChildApplication" + } + ] + }, + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlEnforcedDefaultAdminDelay", + "inputs": [ + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "error", + "name": "AccessControlEnforcedDefaultAdminRules", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlInvalidDefaultAdmin", + "inputs": [ + { + "name": "defaultAdmin", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "SafeCastOverflowedUintDowncast", + "inputs": [ + { + "name": "bits", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "event", + "name": "AggregationPosted", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "node", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "aggregatedTranscriptDigest", + "type": "bytes32", + "internalType": "bytes32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminDelayChangeScheduled", + "inputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48", + "indexed": false + }, + { + "name": "effectSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminTransferCanceled", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "DefaultAdminTransferScheduled", + "inputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "acceptSchedule", + "type": "uint48", + "internalType": "uint48", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "EndRitual", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "successful", + "type": "bool", + "internalType": "bool", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeeModelApproved", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MaxDkgSizeChanged", + "inputs": [ + { + "name": "oldSize", + "type": "uint16", + "internalType": "uint16", + "indexed": false + }, + { + "name": "newSize", + "type": "uint16", + "internalType": "uint16", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ParticipantPublicKeySet", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReimbursementPoolSet", + "inputs": [ + { + "name": "pool", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "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 + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RitualExtended", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "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": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "StartAggregationRound", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + } + ], + "anonymous": false + }, + { + "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": "DEFAULT_ADMIN_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": [], + "outputs": [] + }, + { + "type": "function", + "name": "application", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoChildApplication" + } + ] + }, + { + "type": "function", + "name": "approveFeeModel", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beginDefaultAdminTransfer", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "cancelDefaultAdminTransfer", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "changeDefaultAdminDelay", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "cohortFingerprint", + "stateMutability": "pure", + "inputs": [ + { + "name": "nodes", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "defaultAdmin", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "defaultAdminDelay", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "defaultAdminDelayIncreaseWait", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "extendRitual", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "feeModelsRegistry", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IFeeModel" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "getAccessController", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + } + ] + }, + { + "type": "function", + "name": "getAuthority", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "getFeeModel", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IFeeModel" + } + ] + }, + { + "type": "function", + "name": "getInitiator", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "getParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "transcript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant" + } + ] + }, + { + "type": "function", + "name": "getParticipantFromProvider", + "stateMutability": "view", + "inputs": [ + { + "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": "function", + "name": "getParticipants", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant[]" + } + ] + }, + { + "type": "function", + "name": "getParticipants", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "maxParticipants", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "includeTranscript", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "components": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + }, + { + "name": "aggregated", + "type": "bool", + "internalType": "bool" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "decryptionRequestStaticKey", + "type": "bytes", + "internalType": "bytes" + } + ], + "internalType": "struct Coordinator.Participant[]" + } + ] + }, + { + "type": "function", + "name": "getProviderPublicKey", + "stateMutability": "view", + "inputs": [ + { + "name": "provider", + "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": "function", + "name": "getProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ] + }, + { + "type": "function", + "name": "getPublicKeyFromRitualId", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + } + ] + }, + { + "type": "function", + "name": "getRitualIdFromPublicKey", + "stateMutability": "view", + "inputs": [ + { + "name": "dkgPublicKey", + "type": "tuple", + "components": [ + { + "name": "word0", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "word1", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "internalType": "struct BLS12381.G1Point" + } + ], + "outputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "getRitualState", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "enum Coordinator.RitualState" + } + ] + }, + { + "type": "function", + "name": "getRoleAdmin", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "getThresholdForRitualSize", + "stateMutability": "pure", + "inputs": [ + { + "name": "size", + "type": "uint16", + "internalType": "uint16" + } + ], + "outputs": [ + { + "name": "", + "type": "uint16", + "internalType": "uint16" + } + ] + }, + { + "type": "function", + "name": "getTimestamps", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "initTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "grantRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "hasRole", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_timeout", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_maxDkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_admin", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "initializeNumberOfRituals", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "initiateRitual", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + }, + { + "name": "providers", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "authority", + "type": "address", + "internalType": "address" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "accessController", + "type": "address", + "internalType": "contract IEncryptionAuthorizer" + } + ], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "isEncryptionAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "evidence", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isParticipant", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "provider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isProviderPublicKeySet", + "stateMutability": "view", + "inputs": [ + { + "name": "provider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isRitualActive", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "maxDkgSize", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint16", + "internalType": "uint16" + } + ] + }, + { + "type": "function", + "name": "numberOfRituals", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "pendingDefaultAdmin", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "newAdmin", + "type": "address", + "internalType": "address" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "pendingDefaultAdminDelay", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "newDelay", + "type": "uint48", + "internalType": "uint48" + }, + { + "name": "schedule", + "type": "uint48", + "internalType": "uint48" + } + ] + }, + { + "type": "function", + "name": "postAggregation", + "stateMutability": "nonpayable", + "inputs": [ + { + "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": "postTranscript", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "transcript", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "renounceRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "revokeRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "rituals", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "initiator", + "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" + }, + { + "name": "authority", + "type": "address", + "internalType": "address" + }, + { + "name": "dkgSize", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "threshold", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "aggregationMismatch", + "type": "bool", + "internalType": "bool" + }, + { + "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" + }, + { + "name": "feeModel", + "type": "address", + "internalType": "contract IFeeModel" + } + ] + }, + { + "type": "function", + "name": "rollbackDefaultAdminDelay", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "setMaxDkgSize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newSize", + "type": "uint16", + "internalType": "uint16" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setProviderPublicKey", + "stateMutability": "nonpayable", + "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" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setReimbursementPool", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "pool", + "type": "address", + "internalType": "contract IReimbursementPool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "setTimeout", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newTimeout", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "supportsInterface", + "stateMutability": "view", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "timeout", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "transferRitualAuthority", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "newAuthority", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct BLS12381.G2Point" - } - ] - }, - { - "type": "function", - "name": "getProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "address[]", - "internalType": "address[]" - } - ] - }, - { - "type": "function", - "name": "getPublicKeyFromRitualId", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" + ], + "tx_hash": "0x4207f1fd038945ef7d5da06a0989446d3ed2eb031adad1233c7e3a61951652a1", + "block_number": 5198668, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "FreeFeeModel": { + "address": "0x14EB9BB700E45D2Ee9233056b8cc341276c688Ba", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "approveInitiator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeIsAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "beforeSetAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "value", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "initiatorWhiteList", + "stateMutability": "view", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "approved", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "processRitualExtending", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "processRitualPayment", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "initiator", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct BLS12381.G1Point" - } - ] - }, - { - "type": "function", - "name": "getRitualIdFromPublicKey", - "stateMutability": "view", - "inputs": [ - { - "name": "dkgPublicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" + ], + "tx_hash": "0x9672d91bcbab5b746288e592e420c7cda089ef598023971d6525243d1504758b", + "block_number": 9106650, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "GlobalAllowList": { + "address": "0xd5a66BF5f63dccAFEC74AEe1ba755CD7e06F683a", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "error", + "name": "ECDSAInvalidSignature", + "inputs": [] + }, + { + "type": "error", + "name": "ECDSAInvalidSignatureLength", + "inputs": [ + { + "name": "length", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ECDSAInvalidSignatureS", + "inputs": [ + { + "name": "s", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "event", + "name": "AddressAuthorizationSet", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32", + "indexed": true + }, + { + "name": "_address", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "isAuthorized", + "type": "bool", + "internalType": "bool", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "MAX_AUTH_ACTIONS", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "function", + "name": "authActions", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "authorize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract Coordinator" + } + ] + }, + { + "type": "function", + "name": "deauthorize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "addresses", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isAddressAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "encryptor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "isAuthorized", + "stateMutability": "view", + "inputs": [ + { + "name": "ritualId", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "evidence", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "ciphertextHeader", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] } - ], - "internalType": "struct BLS12381.G1Point" - } - ], - "outputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "getRitualState", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "enum Coordinator.RitualState" - } - ] - }, - { - "type": "function", - "name": "getRoleAdmin", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "getThresholdForRitualSize", - "stateMutability": "pure", - "inputs": [ - { - "name": "size", - "type": "uint16", - "internalType": "uint16" - } - ], - "outputs": [ - { - "name": "", - "type": "uint16", - "internalType": "uint16" - } - ] - }, - { - "type": "function", - "name": "getTimestamps", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "initTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "grantRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "hasRole", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_timeout", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_maxDkgSize", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_admin", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "initializeNumberOfRituals", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "initiateRitual", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - }, - { - "name": "providers", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "authority", - "type": "address", - "internalType": "address" - }, - { - "name": "duration", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "accessController", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" - } - ], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "isEncryptionAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isParticipant", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "provider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isProviderPublicKeySet", - "stateMutability": "view", - "inputs": [ - { - "name": "provider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isRitualActive", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "maxDkgSize", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint16", - "internalType": "uint16" - } - ] - }, - { - "type": "function", - "name": "numberOfRituals", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "pendingDefaultAdmin", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "newAdmin", - "type": "address", - "internalType": "address" - }, - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "pendingDefaultAdminDelay", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "newDelay", - "type": "uint48", - "internalType": "uint48" - }, - { - "name": "schedule", - "type": "uint48", - "internalType": "uint48" - } - ] - }, - { - "type": "function", - "name": "postAggregation", - "stateMutability": "nonpayable", - "inputs": [ - { - "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" + ], + "tx_hash": "0x7753ec5286e2521a8430a9686052d7e065b3b561167123e6975f0ae1a2d312d0", + "block_number": 9101909, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "LynxRitualToken": { + "address": "0x064Be2a9740e565729BC0d47bC616c5bb8Cc87B9", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_totalSupplyOfTokens", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientAllowance", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "allowance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InsufficientBalance", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + }, + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "needed", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidApprover", + "inputs": [ + { + "name": "approver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidReceiver", + "inputs": [ + { + "name": "receiver", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSender", + "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC20InvalidSpender", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "spender", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "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": "function", + "name": "allowance", + "stateMutability": "view", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "approve", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "balanceOf", + "stateMutability": "view", + "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" + } + ] + }, + { + "type": "function", + "name": "name", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ] + }, + { + "type": "function", + "name": "symbol", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "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": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "transferFrom", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] } - ], - "internalType": "struct BLS12381.G1Point" - }, - { - "name": "decryptionRequestStaticKey", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "postTranscript", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "transcript", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "renounceRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "revokeRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "rituals", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "initiator", - "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" - }, - { - "name": "authority", - "type": "address", - "internalType": "address" - }, - { - "name": "dkgSize", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "threshold", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "aggregationMismatch", - "type": "bool", - "internalType": "bool" - }, - { - "name": "accessController", - "type": "address", - "internalType": "contract IEncryptionAuthorizer" - }, - { - "name": "publicKey", - "type": "tuple", - "components": [ - { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "word1", - "type": "bytes16", - "internalType": "bytes16" + ], + "tx_hash": "0x3fa59f2ab18ce9017f5760b31bd7b132b387f1dd6e8c5d3fb8e58a553411ed69", + "block_number": 5198656, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "MockPolygonChild": { + "address": "0x4FD23FAB4A09F85872bf240ABBd484cb4F9a5F79", + "abi": [ + { + "type": "constructor", + "stateMutability": "nonpayable", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "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": "childApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "owner", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "renounceOwnership", + "stateMutability": "nonpayable", + "inputs": [], + "outputs": [] + }, + { + "type": "function", + "name": "setChildApplication", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_childApplication", + "type": "address", + "internalType": "contract ITACoRootToChild" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "transferOwnership", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct BLS12381.G1Point" - }, - { - "name": "aggregatedTranscript", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "feeModel", - "type": "address", - "internalType": "contract IFeeModel" - } - ] - }, - { - "type": "function", - "name": "rollbackDefaultAdminDelay", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setMaxDkgSize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newSize", - "type": "uint16", - "internalType": "uint16" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setProviderPublicKey", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "publicKey", - "type": "tuple", - "components": [ + ], + "tx_hash": "0xee32aa290b2ea1a03cc01412e9089897ec92cabd3561664c26bf2c1e5e9247d4", + "block_number": 5198636, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "OpenAccessAuthorizer": { + "address": "0x33270a0B88d0Ffb6B0b4FBA119ca6a7263DeF675", + "abi": [ + { + "type": "function", + "name": "isAuthorized", + "stateMutability": "pure", + "inputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + } + ], + "tx_hash": "0x8bbd39406559c99b6dc35df89c604c645b0996aac2908ce9e75f2d38367d294a", + "block_number": 5196868, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "SubscriptionManager": { + "address": "0x811389558a2C0B65ff56652d5E5bBF5DbC9A4358", + "abi": [ + { + "type": "error", + "name": "AccessControlBadConfirmation", + "inputs": [] + }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + }, + { + "name": "neededRole", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "event", + "name": "FeeRateUpdated", + "inputs": [ + { + "name": "oldFeeRate", + "type": "uint256", + "internalType": "uint256", + "indexed": false + }, + { + "name": "newFeeRate", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PolicyCreated", + "inputs": [ + { + "name": "policyId", + "type": "bytes16", + "internalType": "bytes16", + "indexed": true + }, + { + "name": "sponsor", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "owner", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "size", + "type": "uint16", + "internalType": "uint16", + "indexed": false + }, + { + "name": "startTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32", + "indexed": false + }, + { + "name": "cost", + "type": "uint256", + "internalType": "uint256", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleAdminChanged", + "inputs": [ + { + "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": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32", + "indexed": true + }, + { + "name": "account", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "SET_RATE_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "WITHDRAW_ROLE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "createPolicy", + "stateMutability": "payable", + "inputs": [ + { + "name": "_policyId", + "type": "bytes16", + "internalType": "bytes16" + }, + { + "name": "_policyOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "feeRate", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getPolicy", + "stateMutability": "view", + "inputs": [ + { + "name": "_policyID", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple", + "components": [ + { + "name": "sponsor", + "type": "address", + "internalType": "address payable" + }, + { + "name": "startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "endTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "internalType": "struct SubscriptionManager.Policy" + } + ] + }, + { + "type": "function", + "name": "getPolicyCost", + "stateMutability": "view", + "inputs": [ + { + "name": "_size", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "_startTimestamp", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_endTimestamp", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "getRoleAdmin", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "function", + "name": "grantRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "hasRole", + "stateMutability": "view", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_feeRate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "isPolicyActive", + "stateMutability": "view", + "inputs": [ + { + "name": "_policyID", + "type": "bytes16", + "internalType": "bytes16" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] + }, + { + "type": "function", + "name": "renounceRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "revokeRole", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, { - "name": "word0", - "type": "bytes32", - "internalType": "bytes32" + "type": "function", + "name": "setFeeRate", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_ratePerSecond", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [] }, { - "name": "word1", - "type": "bytes32", - "internalType": "bytes32" + "type": "function", + "name": "supportsInterface", + "stateMutability": "view", + "inputs": [ + { + "name": "interfaceId", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ] }, { - "name": "word2", - "type": "bytes32", - "internalType": "bytes32" + "type": "function", + "name": "sweep", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "recipient", + "type": "address", + "internalType": "address payable" + } + ], + "outputs": [] } - ], - "internalType": "struct BLS12381.G2Point" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setReimbursementPool", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "pool", - "type": "address", - "internalType": "contract IReimbursementPool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setTimeout", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newTimeout", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "supportsInterface", - "stateMutability": "view", - "inputs": [ - { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "timeout", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "transferRitualAuthority", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "newAuthority", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x4207f1fd038945ef7d5da06a0989446d3ed2eb031adad1233c7e3a61951652a1", - "block_number": 5198668, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "FreeFeeModel": { - "address": "0x14EB9BB700E45D2Ee9233056b8cc341276c688Ba", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "approveInitiator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeIsAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "beforeSetAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - }, - { - "name": "value", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "initiatorWhiteList", - "stateMutability": "view", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "approved", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "processRitualExtending", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "processRitualPayment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "initiator", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x9672d91bcbab5b746288e592e420c7cda089ef598023971d6525243d1504758b", - "block_number": 9106650, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "GlobalAllowList": { - "address": "0xd5a66BF5f63dccAFEC74AEe1ba755CD7e06F683a", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "error", - "name": "ECDSAInvalidSignature", - "inputs": [] - }, - { - "type": "error", - "name": "ECDSAInvalidSignatureLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ECDSAInvalidSignatureS", - "inputs": [ - { - "name": "s", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "event", - "name": "AddressAuthorizationSet", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32", - "indexed": true - }, - { - "name": "_address", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "isAuthorized", - "type": "bool", - "internalType": "bool", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "MAX_AUTH_ACTIONS", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ] - }, - { - "type": "function", - "name": "authActions", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "authorize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract Coordinator" - } - ] - }, - { - "type": "function", - "name": "deauthorize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "addresses", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isAddressAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "encryptor", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "isAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "ritualId", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "evidence", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "ciphertextHeader", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x7753ec5286e2521a8430a9686052d7e065b3b561167123e6975f0ae1a2d312d0", - "block_number": 9101909, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "LynxRitualToken": { - "address": "0x064Be2a9740e565729BC0d47bC616c5bb8Cc87B9", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_totalSupplyOfTokens", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientAllowance", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "allowance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InsufficientBalance", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - }, - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "needed", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidApprover", - "inputs": [ - { - "name": "approver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidReceiver", - "inputs": [ - { - "name": "receiver", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSender", - "inputs": [ - { - "name": "sender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC20InvalidSpender", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "spender", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "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": "function", - "name": "allowance", - "stateMutability": "view", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "approve", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "balanceOf", - "stateMutability": "view", - "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" - } - ] - }, - { - "type": "function", - "name": "name", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "function", - "name": "symbol", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "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": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "transferFrom", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "value", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x3fa59f2ab18ce9017f5760b31bd7b132b387f1dd6e8c5d3fb8e58a553411ed69", - "block_number": 5198656, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "MockPolygonChild": { - "address": "0x4FD23FAB4A09F85872bf240ABBd484cb4F9a5F79", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "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": "childApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_childApplication", - "type": "address", - "internalType": "contract ITACoRootToChild" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_amount", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xee32aa290b2ea1a03cc01412e9089897ec92cabd3561664c26bf2c1e5e9247d4", - "block_number": 5198636, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "OpenAccessAuthorizer": { - "address": "0x33270a0B88d0Ffb6B0b4FBA119ca6a7263DeF675", - "abi": [ - { - "type": "function", - "name": "isAuthorized", - "stateMutability": "pure", - "inputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - } - ], - "tx_hash": "0x8bbd39406559c99b6dc35df89c604c645b0996aac2908ce9e75f2d38367d294a", - "block_number": 5196868, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "SubscriptionManager": { - "address": "0x811389558a2C0B65ff56652d5E5bBF5DbC9A4358", - "abi": [ - { - "type": "error", - "name": "AccessControlBadConfirmation", - "inputs": [] - }, - { - "type": "error", - "name": "AccessControlUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - }, - { - "name": "neededRole", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "event", - "name": "FeeRateUpdated", - "inputs": [ - { - "name": "oldFeeRate", - "type": "uint256", - "internalType": "uint256", - "indexed": false - }, - { - "name": "newFeeRate", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "PolicyCreated", - "inputs": [ - { - "name": "policyId", - "type": "bytes16", - "internalType": "bytes16", - "indexed": true - }, - { - "name": "sponsor", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "owner", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "size", - "type": "uint16", - "internalType": "uint16", - "indexed": false - }, - { - "name": "startTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32", - "indexed": false - }, - { - "name": "cost", - "type": "uint256", - "internalType": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleAdminChanged", - "inputs": [ - { - "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": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleRevoked", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32", - "indexed": true - }, - { - "name": "account", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "sender", - "type": "address", - "internalType": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "DEFAULT_ADMIN_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "SET_RATE_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "WITHDRAW_ROLE", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "createPolicy", - "stateMutability": "payable", - "inputs": [ - { - "name": "_policyId", - "type": "bytes16", - "internalType": "bytes16" - }, - { - "name": "_policyOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "_size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "feeRate", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getPolicy", - "stateMutability": "view", - "inputs": [ - { - "name": "_policyID", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple", - "components": [ - { - "name": "sponsor", - "type": "address", - "internalType": "address payable" - }, - { - "name": "startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "endTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "owner", - "type": "address", - "internalType": "address" + ], + "tx_hash": "0x9a02db05c96318d8b0abfd5030c98cd013d670f46012ac1fbabf1564d40d2b6c", + "block_number": 5347313, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" + }, + "TACoChildApplication": { + "address": "0x42F30AEc1A36995eEFaf9536Eb62BD751F982D32", + "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", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96", + "indexed": false + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64", + "indexed": false + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "internalType": "uint64", + "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": "function", + "name": "authorizedStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "confirmOperatorAddress", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "coordinator", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "eligibleStake", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "_endDate", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_maxStakingProviders", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_cohortDuration", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "allAuthorizedTokens", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "activeStakingProviders", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ] + }, + { + "type": "function", + "name": "getActiveStakingProviders", + "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": "getStakingProvidersLength", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "function", + "name": "initialize", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_coordinator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "minimumAuthorization", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "operatorToStakingProvider", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "pendingAuthorizationDecrease", + "stateMutability": "view", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "function", + "name": "rootApplication", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "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" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "function", + "name": "stakingProviders", + "stateMutability": "view", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateAuthorization", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "authorized", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "deauthorizing", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "endDeauthorization", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [] + }, + { + "type": "function", + "name": "updateOperator", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] } - ], - "internalType": "struct SubscriptionManager.Policy" - } - ] - }, - { - "type": "function", - "name": "getPolicyCost", - "stateMutability": "view", - "inputs": [ - { - "name": "_size", - "type": "uint16", - "internalType": "uint16" - }, - { - "name": "_startTimestamp", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_endTimestamp", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "getRoleAdmin", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ] - }, - { - "type": "function", - "name": "grantRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "hasRole", - "stateMutability": "view", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_feeRate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isPolicyActive", - "stateMutability": "view", - "inputs": [ - { - "name": "_policyID", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "renounceRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "callerConfirmation", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "revokeRole", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setFeeRate", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_ratePerSecond", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "supportsInterface", - "stateMutability": "view", - "inputs": [ - { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ] - }, - { - "type": "function", - "name": "sweep", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x9a02db05c96318d8b0abfd5030c98cd013d670f46012ac1fbabf1564d40d2b6c", - "block_number": 5347313, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" - }, - "TACoChildApplication": { - "address": "0x42F30AEc1A36995eEFaf9536Eb62BD751F982D32", - "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", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "internalType": "uint64", - "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": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "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": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "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" - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64" - } - ] - }, - { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "authorized", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "deauthorizing", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "internalType": "uint64" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [] + ], + "tx_hash": "0x4a1de1566b64df4f11a782939b4b694cb193df9bb06b307835a87e2420f37e81", + "block_number": 5198646, + "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" } - ], - "tx_hash": "0x4a1de1566b64df4f11a782939b4b694cb193df9bb06b307835a87e2420f37e81", - "block_number": 5198646, - "deployer": "0x3B42d26E19FF860bC4dEbB920DD8caA53F93c600" } - } -} +} \ No newline at end of file diff --git a/deployment/params.py b/deployment/params.py index bcf77ec33..e91e85e58 100644 --- a/deployment/params.py +++ b/deployment/params.py @@ -634,7 +634,7 @@ def _deploy_proxy( def upgrade(self, container: ContractContainer, proxy_address, data=b"") -> ContractInstance: implementation = self.deploy(container) - # TODO: initialize taco app implementation too + # upgrade proxy to implementation return self.upgradeTo(implementation, proxy_address, data) def upgradeTo( diff --git a/scripts/lynx/upgrade_coordinator.py b/scripts/lynx/upgrade_coordinator.py index e06db254d..5ecf87040 100644 --- a/scripts/lynx/upgrade_coordinator.py +++ b/scripts/lynx/upgrade_coordinator.py @@ -19,13 +19,18 @@ def main(): deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) instances = contracts_from_registry(filepath=ARTIFACTS_DIR / "lynx.json", chain_id=80002) - implementation = deployer.deploy(project.Coordinator) + # `initializeNumberOfRituals` was used for the original upgrade, but should NOT be + # used for subsequent upgrades of Coordinator + # implementation = deployer.deploy(project.Coordinator) # encoded_initializer_function = implementation.initializeNumberOfRituals.encode_input() - encoded_initializer_function = b"" - coordinator = deployer.upgradeTo( - implementation, - instances[project.Coordinator.contract_type.name].address, - encoded_initializer_function, + # encoded_initializer_function = b"" + # coordinator = deployer.upgradeTo( + # implementation, + # instances[project.Coordinator.contract_type.name].address, + # encoded_initializer_function, + # ) + coordinator = deployer.upgrade( + project.Coordinator, instances[project.Coordinator.contract_type.name].address ) deployments = [