Skip to content

Commit

Permalink
add gnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Sep 12, 2024
1 parent 258f3c6 commit 5381c12
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
8 changes: 7 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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: [
{
Expand Down
7 changes: 7 additions & 0 deletions scripts/config/allo.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,11 @@ export const alloConfig: DeployParams = {
percentFee: 0,
baseFee: 0,
},
// Gnosis
100: {
owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
treasury: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
percentFee: 0,
baseFee: 0,
}
};
5 changes: 5 additions & 0 deletions scripts/config/common.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,9 @@ export const commonConfig: DeployParams = {
proxyAdminOwner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
permit2Address: "0xb1F795776cB9DdAC6E7e162f31C7419Dd3d48297",
},
// Gnosis
100: {
proxyAdminOwner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
permit2Address: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
}
};
4 changes: 4 additions & 0 deletions scripts/config/registry.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,8 @@ export const registryConfig: DeployParams = {
1088: {
owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
},
// Gnosis
100: {
owner: "0x8C180840fcBb90CE8464B4eCd12ab0f840c6647C",
},
};
15 changes: 15 additions & 0 deletions scripts/config/strategies.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
};
9 changes: 5 additions & 4 deletions scripts/core/deployAllNetworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ networks=(
# "lukso-testnet"
# "lukso-mainnet"
# "metisAndromeda"
"gnosis"

# === ZkSync Era ===
# "zkSyncTestnet"
Expand All @@ -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"
Expand Down

0 comments on commit 5381c12

Please sign in to comment.