From 68ebc407ca0b515acc09a41bb777cbfaa3589731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Mon, 29 Jul 2024 09:03:39 +0200 Subject: [PATCH 1/4] Dummy parameters for penalty --- deployment/constructor_params/mainnet/redeploy-taco-app.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployment/constructor_params/mainnet/redeploy-taco-app.yml b/deployment/constructor_params/mainnet/redeploy-taco-app.yml index c011ff892..53c1ea189 100644 --- a/deployment/constructor_params/mainnet/redeploy-taco-app.yml +++ b/deployment/constructor_params/mainnet/redeploy-taco-app.yml @@ -33,4 +33,7 @@ contracts: _deauthorizationDuration: $IN_SECONDS_182_DAYS _commitmentDurationOptions: [$IN_SECONDS_91_DAYS, $IN_SECONDS_182_DAYS, $IN_SECONDS_364_DAYS, $IN_SECONDS_546_DAYS] _commitmentDeadline: $TIMESTAMP_FOR_2024_01_15_2359_UTC + _penaltyDefault: 1 + _penaltyDuration: 1 + _penaltyIncrement: 1 From c00c607de844b073d50fa945d024a7b04c13ac50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Mon, 29 Jul 2024 09:08:54 +0200 Subject: [PATCH 2/4] Updated mainnet registry with new TACoApplication --- deployment/artifacts/mainnet.json | 223 +++++++++++++++++++++++++++++- 1 file changed, 219 insertions(+), 4 deletions(-) diff --git a/deployment/artifacts/mainnet.json b/deployment/artifacts/mainnet.json index 78a2b75c5..130daeb17 100644 --- a/deployment/artifacts/mainnet.json +++ b/deployment/artifacts/mainnet.json @@ -149,7 +149,7 @@ "deployer": "0xFfFd7092685bDeeBD121D1A0FEA3c349114Cce50" }, "TACoApplication": { - "address": "0x347CC7ede7e5517bD47D20620B2CF1b406edcF07", + "address": "0x98F643B32b5A3513929Dfd3F2E3e39F7376659DB", "abi": [ { "type": "constructor", @@ -194,6 +194,21 @@ "name": "_commitmentDeadline", "type": "uint64", "internalType": "uint64" + }, + { + "name": "_penaltyDefault", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "_penaltyDuration", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "_penaltyIncrement", + "type": "uint192", + "internalType": "uint192" } ] }, @@ -546,6 +561,31 @@ ], "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", @@ -559,6 +599,19 @@ ], "anonymous": false }, + { + "type": "event", + "name": "RewardContractSet", + "inputs": [ + { + "name": "rewardContract", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, { "type": "event", "name": "RewardDistributorSet", @@ -576,6 +629,12 @@ "type": "event", "name": "RewardPaid", "inputs": [ + { + "name": "sender", + "type": "address", + "internalType": "address", + "indexed": true + }, { "name": "stakingProvider", "type": "address", @@ -597,6 +656,19 @@ ], "anonymous": false }, + { + "type": "event", + "name": "RewardReset", + "inputs": [ + { + "name": "stakingProvider", + "type": "address", + "internalType": "address", + "indexed": true + } + ], + "anonymous": false + }, { "type": "event", "name": "RewardsWithdrawn", @@ -647,6 +719,19 @@ ], "anonymous": false }, + { + "type": "function", + "name": "PENALTY_BASE", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint192", + "internalType": "uint192" + } + ] + }, { "type": "function", "name": "REWARD_PER_TOKEN_MULTIPLIER", @@ -1005,6 +1090,30 @@ } ] }, + { + "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", @@ -1201,6 +1310,58 @@ } ] }, + { + "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", @@ -1285,6 +1446,19 @@ "inputs": [], "outputs": [] }, + { + "type": "function", + "name": "resetReward", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_stakingProvider", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, { "type": "function", "name": "resynchronizeAuthorization", @@ -1298,6 +1472,19 @@ ], "outputs": [] }, + { + "type": "function", + "name": "rewardContract", + "stateMutability": "view", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ] + }, { "type": "function", "name": "rewardDistributor", @@ -1389,6 +1576,19 @@ ], "outputs": [] }, + { + "type": "function", + "name": "setRewardContract", + "stateMutability": "nonpayable", + "inputs": [ + { + "name": "_rewardContract", + "type": "address", + "internalType": "address" + } + ], + "outputs": [] + }, { "type": "function", "name": "setRewardDistributor", @@ -1481,6 +1681,21 @@ "name": "endCommitment", "type": "uint64", "internalType": "uint64" + }, + { + "name": "stub", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "penaltyPercent", + "type": "uint192", + "internalType": "uint192" + }, + { + "name": "endPenalty", + "type": "uint64", + "internalType": "uint64" } ] }, @@ -1575,8 +1790,8 @@ "outputs": [] } ], - "tx_hash": "0x58617564fa2bf9ad71b9eab1ceefdd3eae5a46efc71f4463df6dbffbd713a160", - "block_number": 18622368, + "tx_hash": "0x178f50155caea7bb32dab5cd79280c66d19a52aa2d303174fa9f5d843ba2ea91", + "block_number": 20410589, "deployer": "0xFfFd7092685bDeeBD121D1A0FEA3c349114Cce50" } }, @@ -5682,4 +5897,4 @@ "deployer": "0xFfFd7092685bDeeBD121D1A0FEA3c349114Cce50" } } -} +} \ No newline at end of file From 3308553891fe922d988bbddaa716c720b879541f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Mon, 29 Jul 2024 09:09:26 +0200 Subject: [PATCH 3/4] Delete old intermediary redeployment artifacts --- .../artifacts/mainnet-redeploy-taco-app.json | 1584 ----------------- .../mainnet-redeploy-taco-child.json | 521 ------ 2 files changed, 2105 deletions(-) delete mode 100644 deployment/artifacts/mainnet-redeploy-taco-app.json delete mode 100644 deployment/artifacts/mainnet-redeploy-taco-child.json diff --git a/deployment/artifacts/mainnet-redeploy-taco-app.json b/deployment/artifacts/mainnet-redeploy-taco-app.json deleted file mode 100644 index 425afceb7..000000000 --- a/deployment/artifacts/mainnet-redeploy-taco-app.json +++ /dev/null @@ -1,1584 +0,0 @@ -{ - "1": { - "TACoApplication": { - "address": "0x9a4C2f112Bc4A836C625E856d17bb25C075E2B51", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_token", - "type": "address", - "components": null, - "internal_type": "contract IERC20" - }, - { - "name": "_tStaking", - "type": "address", - "components": null, - "internal_type": "contract IStaking" - }, - { - "name": "_minimumAuthorization", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "_minOperatorSeconds", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_rewardDuration", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_deauthorizationDuration", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_commitmentDurationOptions", - "type": "uint64[]", - "components": null, - "internal_type": "uint64[]" - }, - { - "name": "_commitmentDeadline", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "error", - "name": "AddressInsufficientBalance", - "inputs": [ - { - "name": "account", - "type": "address", - "components": null, - "internal_type": "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", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "error", - "name": "SafeCastOverflowedUintDowncast", - "inputs": [ - { - "name": "bits", - "type": "uint8", - "components": null, - "internal_type": "uint8" - }, - { - "name": "value", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "error", - "name": "SafeERC20FailedOperation", - "inputs": [ - { - "name": "token", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "event", - "name": "AuthorizationDecreaseApproved", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationDecreaseRequested", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationIncreased", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationInvoluntaryDecreased", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "AuthorizationReSynchronized", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CommitmentMade", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "endCommitment", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "components": null, - "internal_type": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ManualChildSynchronizationSent", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "components": null, - "internal_type": "uint64", - "indexed": false - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorBonded", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "previousOperator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "startTimestamp", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorConfirmed", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "newOwner", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardAdded", - "inputs": [ - { - "name": "reward", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardDistributorSet", - "inputs": [ - { - "name": "distributor", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardPaid", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "beneficiary", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "reward", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RewardsWithdrawn", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "amount", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Slashed", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "penalty", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - }, - { - "name": "investigator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "reward", - "type": "uint256", - "components": null, - "internal_type": "uint256", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "REWARD_PER_TOKEN_MULTIPLIER", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "adjudicator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "approveAuthorizationDecrease", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationDecreaseRequested", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationIncreased", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "authorizationParameters", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "_minimumAuthorization", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "authorizationDecreaseDelay", - "type": "uint64", - "components": null, - "internal_type": "uint64" - }, - { - "name": "authorizationDecreaseChangePeriod", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "authorizedOverall", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "availableRewards", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "bondOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "childApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "contract ITACoRootToChild" - } - ] - }, - { - "type": "function", - "name": "commitmentDeadline", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption1", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption2", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption3", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "commitmentDurationOption4", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "deauthorizationDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "components": null, - "internal_type": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "components": null, - "internal_type": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getBeneficiary", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "beneficiary", - "type": "address", - "components": null, - "internal_type": "address payable" - } - ] - }, - { - "type": "function", - "name": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "involuntaryAuthorizationDecrease", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_fromAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "_toAmount", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "isAuthorized", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "components": null, - "internal_type": "bool" - } - ] - }, - { - "type": "function", - "name": "isOperatorConfirmed", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "components": null, - "internal_type": "bool" - } - ] - }, - { - "type": "function", - "name": "lastTimeRewardApplicable", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "lastUpdateTime", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "makeCommitment", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_commitmentDuration", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "manualChildSynchronization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minOperatorSeconds", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "owner", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "periodFinish", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "pushReward", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_reward", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "registerOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "remainingAuthorizationDecreaseDelay", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "renounceOwnership", - "stateMutability": "nonpayable", - "inputs": [], - "outputs": [] - }, - { - "type": "function", - "name": "resynchronizeAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "rewardDistributor", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "rewardDuration", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "rewardPerToken", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "components": null, - "internal_type": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardPerTokenStored", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint160", - "components": null, - "internal_type": "uint160" - } - ] - }, - { - "type": "function", - "name": "rewardRateDecimals", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "setAdjudicator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_adjudicator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setChildApplication", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_childApplication", - "type": "address", - "components": null, - "internal_type": "contract ITACoRootToChild" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "setRewardDistributor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rewardDistributor", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "slash", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_penalty", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "_investigator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "operatorConfirmed", - "type": "bool", - "components": null, - "internal_type": "bool" - }, - { - "name": "operatorStartTimestamp", - "type": "uint64", - "components": null, - "internal_type": "uint64" - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "deauthorizing", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "components": null, - "internal_type": "uint64" - }, - { - "name": "tReward", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "rewardPerTokenPaid", - "type": "uint160", - "components": null, - "internal_type": "uint160" - }, - { - "name": "endCommitment", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "stakingProviderToOperator", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "tStaking", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "contract IStaking" - } - ] - }, - { - "type": "function", - "name": "token", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "contract IERC20" - } - ] - }, - { - "type": "function", - "name": "transferOwnership", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "withdrawRewards", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0x073e91d330c8954dd194013bc0e38f0ed567074e6af5fe40dbc491e90047cbeb", - "block_number": 19274350, - "deployer": "0xFfFd7092685bDeeBD121D1A0FEA3c349114Cce50" - } - } -} \ No newline at end of file diff --git a/deployment/artifacts/mainnet-redeploy-taco-child.json b/deployment/artifacts/mainnet-redeploy-taco-child.json deleted file mode 100644 index e4305a389..000000000 --- a/deployment/artifacts/mainnet-redeploy-taco-child.json +++ /dev/null @@ -1,521 +0,0 @@ -{ - "137": { - "TACoChildApplication": { - "address": "0xa6381716D4d9e94B0c332cfFf0527e22C0c007cb", - "abi": [ - { - "type": "constructor", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_rootApplication", - "type": "address", - "components": null, - "internal_type": "contract ITACoChildToRoot" - }, - { - "name": "_minimumAuthorization", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "event", - "name": "AuthorizationUpdated", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "deauthorizing", - "type": "uint96", - "components": null, - "internal_type": "uint96", - "indexed": false - }, - { - "name": "endDeauthorization", - "type": "uint64", - "components": null, - "internal_type": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "components": null, - "internal_type": "uint64", - "indexed": false - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorConfirmed", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OperatorUpdated", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address", - "indexed": true - } - ], - "anonymous": false - }, - { - "type": "function", - "name": "authorizedStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "confirmOperatorAddress", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "coordinator", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "eligibleStake", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "_endDate", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_cohortDuration", - "type": "uint32", - "components": null, - "internal_type": "uint32" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "components": null, - "internal_type": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getActiveStakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "_startIndex", - "type": "uint256", - "components": null, - "internal_type": "uint256" - }, - { - "name": "_maxStakingProviders", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ], - "outputs": [ - { - "name": "allAuthorizedTokens", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "activeStakingProviders", - "type": "bytes32[]", - "components": null, - "internal_type": "bytes32[]" - } - ] - }, - { - "type": "function", - "name": "getStakingProvidersLength", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ] - }, - { - "type": "function", - "name": "initialize", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "_coordinator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "minimumAuthorization", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "operatorToStakingProvider", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "pendingAuthorizationDecrease", - "stateMutability": "view", - "inputs": [ - { - "name": "_stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ] - }, - { - "type": "function", - "name": "rootApplication", - "stateMutability": "view", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "contract ITACoChildToRoot" - } - ] - }, - { - "type": "function", - "name": "stakingProviderInfo", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [ - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "operatorConfirmed", - "type": "bool", - "components": null, - "internal_type": "bool" - }, - { - "name": "index", - "type": "uint248", - "components": null, - "internal_type": "uint248" - }, - { - "name": "deauthorizing", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ] - }, - { - "type": "function", - "name": "stakingProviders", - "stateMutability": "view", - "inputs": [ - { - "name": "", - "type": "uint256", - "components": null, - "internal_type": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "components": null, - "internal_type": "address" - } - ] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateAuthorization", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "authorized", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "deauthorizing", - "type": "uint96", - "components": null, - "internal_type": "uint96" - }, - { - "name": "endDeauthorization", - "type": "uint64", - "components": null, - "internal_type": "uint64" - } - ], - "outputs": [] - }, - { - "type": "function", - "name": "updateOperator", - "stateMutability": "nonpayable", - "inputs": [ - { - "name": "stakingProvider", - "type": "address", - "components": null, - "internal_type": "address" - }, - { - "name": "operator", - "type": "address", - "components": null, - "internal_type": "address" - } - ], - "outputs": [] - } - ], - "tx_hash": "0xe15af2eab1314bcc2d8a85cb537c8266f7551766de8dd307fab9e5233521ebea", - "block_number": 53775101, - "deployer": "0x1591165F1BF8B73de7053A6BE6f239BC15076879" - } - } -} \ No newline at end of file From c763df9fd5893ea6b9c9bdc82ca1b052237e4f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Thu, 15 Aug 2024 14:59:34 +0200 Subject: [PATCH 4/4] Don't change TACoApp address in registry, since it's proxied Co-authored-by: Derek Pierre --- deployment/artifacts/mainnet.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/artifacts/mainnet.json b/deployment/artifacts/mainnet.json index 130daeb17..da5cfafae 100644 --- a/deployment/artifacts/mainnet.json +++ b/deployment/artifacts/mainnet.json @@ -149,7 +149,7 @@ "deployer": "0xFfFd7092685bDeeBD121D1A0FEA3c349114Cce50" }, "TACoApplication": { - "address": "0x98F643B32b5A3513929Dfd3F2E3e39F7376659DB", + "address": "0x347CC7ede7e5517bD47D20620B2CF1b406edcF07", "abi": [ { "type": "constructor",