From 2159a517249f2290b2f52d0eb7d205ca4814e0ff Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Mon, 10 Feb 2025 15:57:36 +0530 Subject: [PATCH] deploy strategies --- reports/deployment-logs/core/deploy.log | 6 +++ .../deploy-20250210_154806.log | 43 +++++++++++++++++++ .../deploy-20250210_154612.log | 43 +++++++++++++++++++ .../deploy-20250210_161400.log | 43 +++++++++++++++++++ scripts/config/common.config.ts | 9 +--- scripts/core/deployAllNetworks.sh | 2 +- .../directallocationstrategy.deployment.json | 7 +++ .../directgrantslitestrategy.deployment.json | 7 +++ ...tiondirecttransferstrategy.deployment.json | 7 +++ scripts/test/createDirectAllocationPool.ts | 1 + scripts/test/createProfile.ts | 4 +- 11 files changed, 162 insertions(+), 10 deletions(-) create mode 100644 reports/deployment-logs/strategies/deployDirectAllocation/hedera-mainnet/20250210_154806/deploy-20250210_154806.log create mode 100644 reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-mainnet/20250210_154612/deploy-20250210_154612.log create mode 100644 reports/deployment-logs/strategies/deployDonationVotingMerkleDistributionDirect/hedera-mainnet/20250210_161400/deploy-20250210_161400.log diff --git a/reports/deployment-logs/core/deploy.log b/reports/deployment-logs/core/deploy.log index ab778ba81..923e738a3 100644 --- a/reports/deployment-logs/core/deploy.log +++ b/reports/deployment-logs/core/deploy.log @@ -703,3 +703,9 @@ 20250210_153908 - Deployment finished with 0 error(s) 20250210_153916 - Executing: bun hardhat run scripts/core/deployAllo.ts --no-compile --network hedera-mainnet | tee ./reports/deployment-logs/core/deployAllo/hedera-mainnet/20250210_153916/deploy-20250210_153916.log 20250210_154202 - Deployment finished with 0 error(s) +20250210_154612 - Executing: bun hardhat run scripts/strategies/deployDirectGrantsLite.ts --no-compile --network hedera-mainnet | tee ./reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-mainnet/20250210_154612/deploy-20250210_154612.log +20250210_154756 - Deployment finished with 0 error(s) +20250210_154806 - Executing: bun hardhat run scripts/strategies/deployDirectAllocation.ts --no-compile --network hedera-mainnet | tee ./reports/deployment-logs/strategies/deployDirectAllocation/hedera-mainnet/20250210_154806/deploy-20250210_154806.log +20250210_154918 - Deployment finished with 0 error(s) +20250210_161400 - Executing: bun hardhat run scripts/strategies/deployDonationVotingMerkleDistributionDirect.ts --no-compile --network hedera-mainnet | tee ./reports/deployment-logs/strategies/deployDonationVotingMerkleDistributionDirect/hedera-mainnet/20250210_161400/deploy-20250210_161400.log +20250210_161551 - Deployment finished with 0 error(s) diff --git a/reports/deployment-logs/strategies/deployDirectAllocation/hedera-mainnet/20250210_154806/deploy-20250210_154806.log b/reports/deployment-logs/strategies/deployDirectAllocation/hedera-mainnet/20250210_154806/deploy-20250210_154806.log new file mode 100644 index 000000000..10c5bb73e --- /dev/null +++ b/reports/deployment-logs/strategies/deployDirectAllocation/hedera-mainnet/20250210_154806/deploy-20250210_154806.log @@ -0,0 +1,43 @@ + + //////////////////////////////////////////////////// + Deploys DirectAllocationStrategy.sol on hedera-mainnet + //////////////////////////////////////////////////// + +┌─────────────────┬──────────────────────────────────────────────┐ +│ (index) │ Values │ +├─────────────────┼──────────────────────────────────────────────┤ +│ contract │ 'DirectAllocationStrategy.sol' │ +│ chainId │ 295 │ +│ network │ 'hedera-mainnet' │ +│ deployerAddress │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │ +│ balance │ '198.4778719' │ +└─────────────────┴──────────────────────────────────────────────┘ +Deploying DirectAllocationStrategy.sol +Contract DirectAllocationStrategy deployed at address: 0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602 + +Verifying contract... +ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 295, but the plugin doesn't recognize it as a supported chain. + +You can manually add support for it by following these instructions: https://hardhat.org/verify-custom-networks + +To see the list of supported networks, run this command: + + npx hardhat verify --list-networks + at Function.getCurrentChainConfig (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/internal/etherscan.ts:65:13) + at processTicksAndRejections (node:internal/process/task_queues:95:5) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:234:27) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async hardhatVerify (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:118:12) + at async OverriddenTaskDefinition._action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:206:12) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async Environment.run (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:546:7) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + + Validating getAllo() == 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + ✅ PASSED with Result: 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + + Validating getStrategyId() == 0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3 + ✅ PASSED with Result: 0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3 +Adding DirectAllocationStrategy v1.1 to cloneable strategies... +DirectAllocationStrategy v1.1 added to cloneable strategies. diff --git a/reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-mainnet/20250210_154612/deploy-20250210_154612.log b/reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-mainnet/20250210_154612/deploy-20250210_154612.log new file mode 100644 index 000000000..7467a73f5 --- /dev/null +++ b/reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-mainnet/20250210_154612/deploy-20250210_154612.log @@ -0,0 +1,43 @@ + + //////////////////////////////////////////////////// + Deploys DirectGrantsLiteStrategy.sol on hedera-mainnet + //////////////////////////////////////////////////// + +┌─────────────────┬──────────────────────────────────────────────┐ +│ (index) │ Values │ +├─────────────────┼──────────────────────────────────────────────┤ +│ contract │ 'DirectGrantsLiteStrategy.sol' │ +│ chainId │ 295 │ +│ network │ 'hedera-mainnet' │ +│ deployerAddress │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │ +│ balance │ '198.60024065' │ +└─────────────────┴──────────────────────────────────────────────┘ +Deploying DirectGrantsLiteStrategy.sol +Contract DirectGrantsLiteStrategy deployed at address: 0x79A5EEc2C87Cd2116195E71af7A38647f89C8Ffa + +Verifying contract... +ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 295, but the plugin doesn't recognize it as a supported chain. + +You can manually add support for it by following these instructions: https://hardhat.org/verify-custom-networks + +To see the list of supported networks, run this command: + + npx hardhat verify --list-networks + at Function.getCurrentChainConfig (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/internal/etherscan.ts:65:13) + at processTicksAndRejections (node:internal/process/task_queues:95:5) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:234:27) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async hardhatVerify (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:118:12) + at async OverriddenTaskDefinition._action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:206:12) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async Environment.run (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:546:7) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + + Validating getAllo() == 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + ✅ PASSED with Result: 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + + Validating getStrategyId() == 0x103732a8e473467a510d4128ee11065262bdd978f0d9dad89ba68f2c56127e27 + ✅ PASSED with Result: 0x103732a8e473467a510d4128ee11065262bdd978f0d9dad89ba68f2c56127e27 +Adding DirectGrantsLiteStrategy v1.0 to cloneable strategies... +DirectGrantsLiteStrategy v1.0 added to cloneable strategies. diff --git a/reports/deployment-logs/strategies/deployDonationVotingMerkleDistributionDirect/hedera-mainnet/20250210_161400/deploy-20250210_161400.log b/reports/deployment-logs/strategies/deployDonationVotingMerkleDistributionDirect/hedera-mainnet/20250210_161400/deploy-20250210_161400.log new file mode 100644 index 000000000..6acda1e34 --- /dev/null +++ b/reports/deployment-logs/strategies/deployDonationVotingMerkleDistributionDirect/hedera-mainnet/20250210_161400/deploy-20250210_161400.log @@ -0,0 +1,43 @@ + + //////////////////////////////////////////////////// + Deploys DonationVotingMerkleDistributionDirectTransferStrategy.sol on hedera-mainnet + //////////////////////////////////////////////////// + +┌─────────────────┬──────────────────────────────────────────────────────────────┐ +│ (index) │ Values │ +├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ contract │ 'DonationVotingMerkleDistributionDirectTransferStrategy.sol' │ +│ chainId │ 295 │ +│ network │ 'hedera-mainnet' │ +│ deployerAddress │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │ +│ balance │ '197.87950245' │ +└─────────────────┴──────────────────────────────────────────────────────────────┘ +Deploying DonationVotingMerkleDistributionDirectTransferStrategy.sol +Contract DonationVotingMerkleDistributionDirectTransferStrategy deployed at address: 0x787eC93Dd71a90563979417879F5a3298389227f + +Verifying contract... +ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 295, but the plugin doesn't recognize it as a supported chain. + +You can manually add support for it by following these instructions: https://hardhat.org/verify-custom-networks + +To see the list of supported networks, run this command: + + npx hardhat verify --list-networks + at Function.getCurrentChainConfig (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/internal/etherscan.ts:65:13) + at processTicksAndRejections (node:internal/process/task_queues:95:5) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:234:27) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async hardhatVerify (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:118:12) + at async OverriddenTaskDefinition._action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:206:12) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + at async Environment.run (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14) + at async SimpleTaskDefinition.action (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:546:7) + at async Environment._runTaskDefinition (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14) + + Validating getAllo() == 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + ✅ PASSED with Result: 0x1133eA7Af70876e64665ecD07C0A0476d09465a1 + + Validating getStrategyId() == 0x9fa6890423649187b1f0e8bf4265f0305ce99523c3d11aa36b35a54617bb0ec0 + ✅ PASSED with Result: 0x9fa6890423649187b1f0e8bf4265f0305ce99523c3d11aa36b35a54617bb0ec0 +Adding DonationVotingMerkleDistributionDirectTransferStrategy v2.1 to cloneable strategies... +DonationVotingMerkleDistributionDirectTransferStrategy v2.1 added to cloneable strategies. diff --git a/scripts/config/common.config.ts b/scripts/config/common.config.ts index fb7256435..9eb740411 100644 --- a/scripts/config/common.config.ts +++ b/scripts/config/common.config.ts @@ -153,12 +153,7 @@ export const commonConfig: DeployParams = { }, // Hedera Mainnet 295: { - proxyAdminOwner: "TODO", - permit2Address: "TODO", - }, - // Hedera Testnet - 296: { - proxyAdminOwner: "TODO", - permit2Address: "TODO", + proxyAdminOwner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", + permit2Address: "0x629c94181a081a8d70f96a3d0b0c0e7c73d9e289", }, }; diff --git a/scripts/core/deployAllNetworks.sh b/scripts/core/deployAllNetworks.sh index d0a936b45..c6cb51435 100755 --- a/scripts/core/deployAllNetworks.sh +++ b/scripts/core/deployAllNetworks.sh @@ -49,7 +49,7 @@ networks=( # "lukso-mainnet" # "metisAndromeda" # "gnosis" - "hedera-mainnet" +# "hedera-mainnet" # "hedera-testnet" # === ZkSync Era === # "zkSyncTestnet" diff --git a/scripts/deployments/directallocationstrategy.deployment.json b/scripts/deployments/directallocationstrategy.deployment.json index ce5e8233d..3b502bf88 100644 --- a/scripts/deployments/directallocationstrategy.deployment.json +++ b/scripts/deployments/directallocationstrategy.deployment.json @@ -41,6 +41,13 @@ "address": "0x1E18cdce56B3754c4Dca34CB3a7439C24E8363de", "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" }, + "295": { + "id": "0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3", + "name": "DirectAllocationStrategy", + "version": "v1.1", + "address": "0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602", + "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" + }, "296": { "id": "0x4cd0051913234cdd7d165b208851240d334786d6e5afbb4d0eec203515a9c6f3", "name": "DirectAllocationStrategy", diff --git a/scripts/deployments/directgrantslitestrategy.deployment.json b/scripts/deployments/directgrantslitestrategy.deployment.json index 8965941ea..7caa79278 100644 --- a/scripts/deployments/directgrantslitestrategy.deployment.json +++ b/scripts/deployments/directgrantslitestrategy.deployment.json @@ -41,6 +41,13 @@ "address": "0x79A5EEc2C87Cd2116195E71af7A38647f89C8Ffa", "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" }, + "295": { + "id": "0x103732a8e473467a510d4128ee11065262bdd978f0d9dad89ba68f2c56127e27", + "name": "DirectGrantsLiteStrategy", + "version": "v1.0", + "address": "0x79A5EEc2C87Cd2116195E71af7A38647f89C8Ffa", + "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" + }, "296": { "id": "0x103732a8e473467a510d4128ee11065262bdd978f0d9dad89ba68f2c56127e27", "name": "DirectGrantsLiteStrategy", diff --git a/scripts/deployments/donationvotingmerkledistributiondirecttransferstrategy.deployment.json b/scripts/deployments/donationvotingmerkledistributiondirecttransferstrategy.deployment.json index 6a6136634..e4cc7d2e1 100644 --- a/scripts/deployments/donationvotingmerkledistributiondirecttransferstrategy.deployment.json +++ b/scripts/deployments/donationvotingmerkledistributiondirecttransferstrategy.deployment.json @@ -55,6 +55,13 @@ "address": "0x61E288cf14f196CF8a6104ec421ae17c7f16a749", "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" }, + "295": { + "id": "0x9fa6890423649187b1f0e8bf4265f0305ce99523c3d11aa36b35a54617bb0ec0", + "name": "DonationVotingMerkleDistributionDirectTransferStrategy", + "version": "v2.1", + "address": "0x787eC93Dd71a90563979417879F5a3298389227f", + "deployerAddress": "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C" + }, "324": { "id": "", "name": "DonationVotingMerkleDistributionDirectTransferStrategy", diff --git a/scripts/test/createDirectAllocationPool.ts b/scripts/test/createDirectAllocationPool.ts index 42407f301..3fb714c4f 100644 --- a/scripts/test/createDirectAllocationPool.ts +++ b/scripts/test/createDirectAllocationPool.ts @@ -70,4 +70,5 @@ createDirectAllocationPool().catch((error) => { // Metis | 0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602 | 0x13ffe09671f07a4eb6bfcf96fa58d93bedabf721d26d0cc162f267504816f3db | 1 // Polygon | | | | // Zksync | | | | +// Hedera | 0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602 | 0x13ffe09671f07a4eb6bfcf96fa58d93bedabf721d26d0cc162f267504816f3db | 1 // ``` \ No newline at end of file diff --git a/scripts/test/createProfile.ts b/scripts/test/createProfile.ts index 4ae3ecc57..adb9967e9 100644 --- a/scripts/test/createProfile.ts +++ b/scripts/test/createProfile.ts @@ -12,7 +12,7 @@ export async function createProfile() { const balance = await ethers.provider.getBalance(deployerAddress); - const registry = "0xd39b40aC9279EeeB86FBbDeb2C9acDF16e16cF89"; + const registry = "0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3"; console.table({ contract: "registry: create profile", @@ -37,7 +37,7 @@ export async function createProfile() { [] // members ); - console.log("profile created on resgistry:", instance.target); + console.log("profile created at registry:", instance.target); return instance.target; }