Skip to content

Commit

Permalink
hedera deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Feb 7, 2025
1 parent 7666061 commit c7ac655
Show file tree
Hide file tree
Showing 20 changed files with 950 additions and 9 deletions.
515 changes: 515 additions & 0 deletions .openzeppelin/unknown-296.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,14 @@ const config: HardhatUserConfig = {
},
"hedera-mainnet": {
...createMainnetConfig("hedera-mainnet"),
url: "https://mainnet.hashio.io/api"
url: "https://mainnet.hashio.io/api",
gasPrice: 350000000000,
// url: "https://295.rpc.thirdweb.com",
},
"hedera-testnet": {
...createTestnetConfig("hedera-testnet"),
url: "https://testnet.hashio.io/api"
url: "https://testnet.hashio.io/api",
gasPrice: 350000000000,
// url: "https://296.rpc.thirdweb.com"
},

Expand Down
16 changes: 16 additions & 0 deletions reports/deployment-logs/core/deploy.log
Original file line number Diff line number Diff line change
Expand Up @@ -673,3 +673,19 @@
20250107_150308 - Deployment finished with 0 error(s)
20250107_150313 - Executing: bun hardhat run scripts/strategies/deployEasyRetroFunding.ts --no-compile --network sepolia | tee ./reports/deployment-logs/strategies/deployEasyRetroFunding/sepolia/20250107_150313/deploy-20250107_150313.log
20250107_160738 - Deployment finished with 0 error(s)
20250207_152703 - Executing: bun hardhat run scripts/core/deployRegistry.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployRegistry/hedera-testnet/20250207_152703/deploy-20250207_152703.log
20250207_152709 - Deployment finished with 0 error(s)
20250207_152709 - Executing: bun hardhat run scripts/core/deployContractFactory.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployContractFactory/hedera-testnet/20250207_152703/deploy-20250207_152703.log
20250207_152713 - Deployment finished with 0 error(s)
20250207_152713 - Executing: bun hardhat run scripts/core/deployAllo.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployAllo/hedera-testnet/20250207_152703/deploy-20250207_152703.log
20250207_152714 - Deployment finished with 0 error(s)
20250207_152933 - Executing: bun hardhat run scripts/core/deployRegistry.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployRegistry/hedera-testnet/20250207_152933/deploy-20250207_152933.log
20250207_153119 - Deployment finished with 0 error(s)
20250207_182818 - Executing: bun hardhat run scripts/core/deployContractFactory.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployContractFactory/hedera-testnet/20250207_182818/deploy-20250207_182818.log
20250207_182917 - Deployment finished with 0 error(s)
20250207_182922 - Executing: bun hardhat run scripts/core/deployAllo.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/core/deployAllo/hedera-testnet/20250207_182922/deploy-20250207_182922.log
20250207_183056 - Deployment finished with 0 error(s)
20250207_183113 - Executing: bun hardhat run scripts/strategies/deployDirectGrantsLite.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/strategies/deployDirectGrantsLite/hedera-testnet/20250207_183113/deploy-20250207_183113.log
20250207_183210 - Deployment finished with 0 error(s)
20250207_183231 - Executing: bun hardhat run scripts/strategies/deployDirectAllocation.ts --no-compile --network hedera-testnet | tee ./reports/deployment-logs/strategies/deployDirectAllocation/hedera-testnet/20250207_183231/deploy-20250207_183231.log
20250207_183315 - Deployment finished with 0 error(s)
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
WARNING: You are currently using Node.js v21.7.3, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions



////////////////////////////////////////////////////
Deploys Allo.sol on hedera-testnet
////////////////////////////////////////////////////

┌─────────────────┬──────────────────────────────────────────────┐
│ (index) │ Values │
├─────────────────┼──────────────────────────────────────────────┤
│ contract │ 'Deploy Allo.sol' │
│ chainId │ 296 │
│ network │ 'hedera-testnet' │
│ owner │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │
│ registry │ '0xd39b40aC9279EeeB86FBbDeb2C9acDF16e16cF89' │
│ treasury │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │
│ percentFee │ 0 │
│ baseFee │ 0 │
│ deployerAddress │ '0xB8cEF765721A6da910f14Be93e7684e9a3714123' │
│ balance │ '99.55726574' │
└─────────────────┴──────────────────────────────────────────────┘
Deploying Allo.sol...
Allo Proxy deployed to: 0x00CD233ae7F31DC3664401cb040f24f6bf615668
Registry implementation deployed to: 0x0BFA0AAF5f2D81f859e85C8E82A3fc5b624fc6E8
Proxy Admin: 0xe773F10dE367E803940693cD3AA3C563A354dE26
Proxy Admin Owner: 0xB8cEF765721A6da910f14Be93e7684e9a3714123

Verifying contract...
Verifying implementation: 0x0BFA0AAF5f2D81f859e85C8E82A3fc5b624fc6E8
Failed to verify implementation contract at 0x0BFA0AAF5f2D81f859e85C8E82A3fc5b624fc6E8: Trying to verify a contract in a network with chain id 296, 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
ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 296, 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 getEtherscanInstance (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/utils/etherscan-api.ts:44:23)
at async fullVerifyTransparentOrUUPS (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:202:21)
at async verify (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:99:5)
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)

Verifying contract...
ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 296, 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 getRegistry() == 0xd39b40aC9279EeeB86FBbDeb2C9acDF16e16cF89
 ✅ PASSED with Result: 0xd39b40aC9279EeeB86FBbDeb2C9acDF16e16cF89

Validating getTreasury() == 0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C
 ✅ PASSED with Result: 0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C

Validating getPercentFee() == 0
 ✅ PASSED with Result: 0

Validating getBaseFee() == 0
 ✅ PASSED with Result: 0

Validating owner() == 0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C
 ✅ PASSED with Result: 0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
WARNING: You are currently using Node.js v21.7.3, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions



////////////////////////////////////////////////////
Deploys ContractFactory.sol on hedera-testnet
////////////////////////////////////////////////////

┌─────────────────┬──────────────────────────────────────────────┐
│ (index) │ Values │
├─────────────────┼──────────────────────────────────────────────┤
│ contract │ 'Deploy ContractFactory.sol' │
│ chainId │ 296 │
│ network │ 'hedera-testnet' │
│ deployerAddress │ '0xB8cEF765721A6da910f14Be93e7684e9a3714123' │
│ balance │ '99.59193806' │
└─────────────────┴──────────────────────────────────────────────┘
Deploying ContractFactory.sol...
ContractFactory deployed to: 0x56296242CA408bA36393f3981879fF9692F193cC

Verifying contract...
ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 296, 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 isDeployer(0xB8cEF765721A6da910f14Be93e7684e9a3714123) == true
 ✅ PASSED with Result: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
WARNING: You are currently using Node.js v21.7.3, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions



////////////////////////////////////////////////////
Deploys Registry.sol on hedera-testnet
////////////////////////////////////////////////////

Error: Registry params not found for chainId: 296
at deployRegistry (/Users/thelostone-mc/Labs/allo/allo-v2/scripts/core/deployRegistry.ts:28:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
error: "hardhat" exited with code 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
WARNING: You are currently using Node.js v21.7.3, which is not supported by Hardhat. This can lead to unexpected behavior. See https://hardhat.org/nodejs-versions



////////////////////////////////////////////////////
Deploys Registry.sol on hedera-testnet
////////////////////////////////////////////////////

┌─────────────────┬──────────────────────────────────────────────┐
│ (index) │ Values │
├─────────────────┼──────────────────────────────────────────────┤
│ contract │ 'Registry.sol' │
│ chainId │ 296 │
│ network │ 'hedera-testnet' │
│ deployerAddress │ '0xB8cEF765721A6da910f14Be93e7684e9a3714123' │
│ registryOwner │ '0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C' │
│ balance │ '100.0' │
└─────────────────┴──────────────────────────────────────────────┘
Deploying Registry...
Registry proxy deployed to: 0xd39b40aC9279EeeB86FBbDeb2C9acDF16e16cF89
Registry implementation deployed to: 0x606e4A7Ffd2cF4Db089bdF530c17618eA29b4F1c
Proxy Admin: 0xe773F10dE367E803940693cD3AA3C563A354dE26
Proxy Admin Owner: 0xB8cEF765721A6da910f14Be93e7684e9a3714123

Verifying contract...
Verifying implementation: 0x606e4A7Ffd2cF4Db089bdF530c17618eA29b4F1c
Failed to verify implementation contract at 0x606e4A7Ffd2cF4Db089bdF530c17618eA29b4F1c: Trying to verify a contract in a network with chain id 296, 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
ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 296, 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 getEtherscanInstance (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/utils/etherscan-api.ts:44:23)
at async fullVerifyTransparentOrUUPS (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:202:21)
at async verify (/Users/thelostone-mc/Labs/allo/allo-v2/node_modules/@openzeppelin/hardhat-upgrades/src/verify-proxy.ts:99:5)
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)

Verifying contract...
ChainConfigNotFoundError: Trying to verify a contract in a network with chain id 296, 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 hasRole(0x815b5a78dc333d344c7df9da23c04dbd432015cc701876ddb9ffe850e6882747,0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C) == true
 ✅ PASSED with Result: true
Loading

0 comments on commit c7ac655

Please sign in to comment.