From 5381c1229e9772dae576969f67c7f84a23f35345 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Thu, 12 Sep 2024 13:32:51 +0530 Subject: [PATCH] add gnosis --- .env.sample | 1 + hardhat.config.ts | 8 +++++++- scripts/config/allo.config.ts | 7 +++++++ scripts/config/common.config.ts | 5 +++++ scripts/config/registry.config.ts | 4 ++++ scripts/config/strategies.config.ts | 15 +++++++++++++++ scripts/core/deployAllNetworks.sh | 9 +++++---- 7 files changed, 44 insertions(+), 5 deletions(-) diff --git a/.env.sample b/.env.sample index a3e08ec67..04b2a4bd5 100644 --- a/.env.sample +++ b/.env.sample @@ -21,6 +21,7 @@ POLYGONSCAN_API_KEY= ARBITRUMSCAN_API_KEY= AVASCAN_API_KEY= SEITRACE_API_KEY= +GNOSISSCAN_API_KEY= # Defender API keys DEFENDER_TEAM_API_KEY= diff --git a/hardhat.config.ts b/hardhat.config.ts index bb3dd100e..8a1ac759f 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -50,7 +50,8 @@ const chainIds = { avalanche: 43114, scroll: 534352, "lukso-mainnet": 42, - metisAndromeda: 1088 + metisAndromeda: 1088, + gnosis: 100, }; let deployPrivateKey = process.env.DEPLOYER_PRIVATE_KEY as string; @@ -266,6 +267,10 @@ const config: HardhatUserConfig = { ...createTestnetConfig("lukso-testnet"), url: "https://4201.rpc.thirdweb.com", }, + "gnosis": { + ...createMainnetConfig("gnosis"), + url: "https://rpc.gnosischain.com", + }, // Local Networks localhost: createTestnetConfig("localhost", "http://localhost:8545"), @@ -313,6 +318,7 @@ const config: HardhatUserConfig = { "lukso-mainnet": "no-api-key-needed", "lukso-testnet": "no-api-key-needed", metisAndromeda: "no-api-key-needed", + gnosis: process.env.GNOSISSCAN_API_KEY || "", }, customChains: [ { diff --git a/scripts/config/allo.config.ts b/scripts/config/allo.config.ts index 01d9be05d..33e0b519c 100644 --- a/scripts/config/allo.config.ts +++ b/scripts/config/allo.config.ts @@ -206,4 +206,11 @@ export const alloConfig: DeployParams = { percentFee: 0, baseFee: 0, }, + // Gnosis + 100: { + owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", + treasury: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", + percentFee: 0, + baseFee: 0, + } }; diff --git a/scripts/config/common.config.ts b/scripts/config/common.config.ts index 91aad1c5d..5c7d6e21f 100644 --- a/scripts/config/common.config.ts +++ b/scripts/config/common.config.ts @@ -146,4 +146,9 @@ export const commonConfig: DeployParams = { proxyAdminOwner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", permit2Address: "0xb1F795776cB9DdAC6E7e162f31C7419Dd3d48297", }, + // Gnosis + 100: { + proxyAdminOwner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", + permit2Address: "0x000000000022D473030F116dDEE9F6B43aC78BA3", + } }; diff --git a/scripts/config/registry.config.ts b/scripts/config/registry.config.ts index adc3554dc..0f2abe7e8 100644 --- a/scripts/config/registry.config.ts +++ b/scripts/config/registry.config.ts @@ -119,4 +119,8 @@ export const registryConfig: DeployParams = { 1088: { owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", }, + // Gnosis + 100: { + owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C", + }, }; diff --git a/scripts/config/strategies.config.ts b/scripts/config/strategies.config.ts index 686688cab..3c3486735 100644 --- a/scripts/config/strategies.config.ts +++ b/scripts/config/strategies.config.ts @@ -717,4 +717,19 @@ export const strategyConfig: DeployParams = { version: "v1.1", }, }, + // Gnosis + 100: { + "donation-voting-merkle-distribution-direct": { + name: "DonationVotingMerkleDistributionDirectTransferStrategy", + version: "v2.1", + }, + "direct-grants-lite": { + name: "DirectGrantsLiteStrategy", + version: "v1.0", + }, + "direct-allocation": { + name: "DirectAllocationStrategy", + version: "v1.1", + }, + }, }; diff --git a/scripts/core/deployAllNetworks.sh b/scripts/core/deployAllNetworks.sh index 13cb32e9d..0c7a72b00 100755 --- a/scripts/core/deployAllNetworks.sh +++ b/scripts/core/deployAllNetworks.sh @@ -48,6 +48,7 @@ networks=( # "lukso-testnet" # "lukso-mainnet" # "metisAndromeda" + "gnosis" # === ZkSync Era === # "zkSyncTestnet" @@ -56,16 +57,16 @@ networks=( ) scripts=( - # "core/deployRegistry" - # "core/deployContractFactory" - # "core/deployAllo" + "core/deployRegistry" + "core/deployContractFactory" + "core/deployAllo" # "strategies/deployDonationVotingMerkleDistributionDirect" - # "strategies/deployDirectGrants" # "strategies/deployDirectGrantsLite" # "strategies/deployDirectAllocation" # "core/transferProxyAdminOwnership" + # "strategies/deployDirectGrants" # "strategies/deployDonationVotingMerkleDistributionVault" # "strategies/deployQVSimple" # "strategies/deployRFPCommittee"