From dbedcb9e5664688c6c4819804c3fdf34ee8946f0 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Wed, 30 Oct 2024 12:34:30 +0000 Subject: [PATCH 1/3] chore: deployment of contributes --- scripts/deployment/globals_base_mainnet_contribute.json | 5 ++++- .../deployment/globals_base_mainnet_contribute_alpha.json | 2 +- .../deployment/globals_base_mainnet_contribute_alpha2.json | 2 +- .../deployment/globals_base_mainnet_contribute_alpha3.json | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/deployment/globals_base_mainnet_contribute.json b/scripts/deployment/globals_base_mainnet_contribute.json index d262e49..17ddd44 100644 --- a/scripts/deployment/globals_base_mainnet_contribute.json +++ b/scripts/deployment/globals_base_mainnet_contribute.json @@ -18,5 +18,8 @@ "stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80", "stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a", "agentId":"41", - "configHash":"0xd984ec4ebedd513d8132366f2525aa2258eaddb1cf5abdafb0d0fb7dd87ce1a1" + "configHash":"0xd984ec4ebedd513d8132366f2525aa2258eaddb1cf5abdafb0d0fb7dd87ce1a1", + "contributorsAddress":"0x6e7f594f680f7aBad18b7a63de50F0FeE47dfD06", + "contributorsProxyAddress":"0x4be7A91e67be963806FeFA9C1FD6C53DfC358d94", + "contributeManagerAddress":"0xaea9ef993d8a1A164397642648DF43F053d43D85" } \ No newline at end of file diff --git a/scripts/deployment/globals_base_mainnet_contribute_alpha.json b/scripts/deployment/globals_base_mainnet_contribute_alpha.json index 9a566ee..4d44f31 100644 --- a/scripts/deployment/globals_base_mainnet_contribute_alpha.json +++ b/scripts/deployment/globals_base_mainnet_contribute_alpha.json @@ -17,7 +17,7 @@ "gnosisSafeMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac", "stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80", "stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a", - "contributorsProxyAddress":"", + "contributorsProxyAddress":"0x4be7A91e67be963806FeFA9C1FD6C53DfC358d94", "livenessRatio":"11574074074074", "contributeActivityCheckerAddress":"", "stakingParams": diff --git a/scripts/deployment/globals_base_mainnet_contribute_alpha2.json b/scripts/deployment/globals_base_mainnet_contribute_alpha2.json index 73e3d13..646124e 100644 --- a/scripts/deployment/globals_base_mainnet_contribute_alpha2.json +++ b/scripts/deployment/globals_base_mainnet_contribute_alpha2.json @@ -17,7 +17,7 @@ "gnosisSafeMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac", "stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80", "stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a", - "contributorsProxyAddress":"", + "contributorsProxyAddress":"0x4be7A91e67be963806FeFA9C1FD6C53DfC358d94", "livenessRatio":"57870370370370", "contributeActivityCheckerAddress":"", "stakingParams": diff --git a/scripts/deployment/globals_base_mainnet_contribute_alpha3.json b/scripts/deployment/globals_base_mainnet_contribute_alpha3.json index 5e09fce..1a7bc6b 100644 --- a/scripts/deployment/globals_base_mainnet_contribute_alpha3.json +++ b/scripts/deployment/globals_base_mainnet_contribute_alpha3.json @@ -17,7 +17,7 @@ "gnosisSafeMultisigImplementationAddress":"0xBb7e1D6Cb6F243D6bdE81CE92a9f2aFF7Fbe7eac", "stakingTokenAddress":"0xEB5638eefE289691EcE01943f768EDBF96258a80", "stakingFactoryAddress":"0x1cEe30D08943EB58EFF84DD1AB44a6ee6FEff63a", - "contributorsProxyAddress":"", + "contributorsProxyAddress":"0x4be7A91e67be963806FeFA9C1FD6C53DfC358d94", "livenessRatio":"115740740740740", "contributeActivityCheckerAddress":"", "stakingParams": From 57e0aaf51f41376316afc8e07dd95b160aafe142 Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Wed, 30 Oct 2024 12:45:50 +0000 Subject: [PATCH 2/3] chore: code adjustment --- .../deployment/deploy_11_contributors_proxy_change_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployment/deploy_11_contributors_proxy_change_manager.js b/scripts/deployment/deploy_11_contributors_proxy_change_manager.js index 4f1ec34..390b876 100644 --- a/scripts/deployment/deploy_11_contributors_proxy_change_manager.js +++ b/scripts/deployment/deploy_11_contributors_proxy_change_manager.js @@ -50,7 +50,7 @@ async function main() { // Transaction signing and execution console.log("11. EOA to change manager in ContributorsProxy"); console.log("You are signing the following transaction: ContributorsProxy.connect(EOA).changeManager()"); - const result = await contributorsProxy.changeManager(contributeManagerAddress, { gasPrice }); + const result = await contributorsProxy.connect(EOA).changeManager(contributeManagerAddress, { gasPrice }); // Transaction details console.log("Contract deployment: ContributorsProxy"); From 09b1b0392e7362356cf554053f19fca9a52270ea Mon Sep 17 00:00:00 2001 From: Aleksandr Kuperman Date: Wed, 30 Oct 2024 12:46:29 +0000 Subject: [PATCH 3/3] chore: code adjustment --- ...eploy_12_contributors_proxy_set_contribute_agent_statuses.js | 2 +- scripts/deployment/deploy_13_contributors_proxy_change_owner.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deployment/deploy_12_contributors_proxy_set_contribute_agent_statuses.js b/scripts/deployment/deploy_12_contributors_proxy_set_contribute_agent_statuses.js index 336b285..46d2cca 100644 --- a/scripts/deployment/deploy_12_contributors_proxy_set_contribute_agent_statuses.js +++ b/scripts/deployment/deploy_12_contributors_proxy_set_contribute_agent_statuses.js @@ -50,7 +50,7 @@ async function main() { // Transaction signing and execution console.log("12. EOA to set contribute agent statuses in ContributorsProxy"); console.log("You are signing the following transaction: ContributorsProxy.connect(EOA).setContributeAgentStatuses()"); - const result = await contributorsProxy.setContributeAgentStatuses([contributeAgentAddress], [true], { gasPrice }); + const result = await contributorsProxy.connect(EOA).setContributeAgentStatuses([contributeAgentAddress], [true], { gasPrice }); // Transaction details console.log("Contract deployment: ContributorsProxy"); diff --git a/scripts/deployment/deploy_13_contributors_proxy_change_owner.js b/scripts/deployment/deploy_13_contributors_proxy_change_owner.js index 72cbdfa..1fa969d 100644 --- a/scripts/deployment/deploy_13_contributors_proxy_change_owner.js +++ b/scripts/deployment/deploy_13_contributors_proxy_change_owner.js @@ -50,7 +50,7 @@ async function main() { // Transaction signing and execution console.log("13. EOA to change owner in ContributorsProxy"); console.log("You are signing the following transaction: ContributorsProxy.connect(EOA).changeOwner()"); - const result = await contributorsProxy.changeOwner(bridgeMediatorAddress, { gasPrice }); + const result = await contributorsProxy.connect(EOA).changeOwner(bridgeMediatorAddress, { gasPrice }); // Transaction details console.log("Contract deployment: ContributorsProxy");