Skip to content

Commit

Permalink
deploy strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Feb 10, 2025
1 parent 68eb7bd commit b2fe6e0
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 3 deletions.
4 changes: 4 additions & 0 deletions reports/deployment-logs/core/deploy.log
Original file line number Diff line number Diff line change
Expand Up @@ -703,3 +703,7 @@
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)
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion scripts/core/deployAllNetworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ scripts=(
# "core/deployContractFactory"
# "core/deployAllo"

# "strategies/deployDonationVotingMerkleDistributionDirect"
"strategies/deployDonationVotingMerkleDistributionDirect"
# "strategies/deployDirectGrantsLite"
# "strategies/deployDirectAllocation"
# "strategies/deployEasyRetroFunding"
Expand Down
7 changes: 7 additions & 0 deletions scripts/deployments/directallocationstrategy.deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions scripts/deployments/directgrantslitestrategy.deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions scripts/test/createDirectAllocationPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ createDirectAllocationPool().catch((error) => {
// Metis | 0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602 | 0x13ffe09671f07a4eb6bfcf96fa58d93bedabf721d26d0cc162f267504816f3db | 1
// Polygon | | | |
// Zksync | | | |
// Hedera | 0x56662F9c0174cD6ae14b214fC52Bd6Eb6B6eA602 | 0x13ffe09671f07a4eb6bfcf96fa58d93bedabf721d26d0cc162f267504816f3db | 1
// ```
4 changes: 2 additions & 2 deletions scripts/test/createProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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;
}
Expand Down

0 comments on commit b2fe6e0

Please sign in to comment.