Skip to content

Commit

Permalink
Chore: Add zksync mainnet support (#90)
Browse files Browse the repository at this point in the history
* add zksync sepolia support configuration (#87)

Co-authored-by: Giorgi Lagidze <[email protected]>

* chore: added zksync mainnet support (#89)

* add zksync mainnet support configuration

* fix prettier

---------

Co-authored-by: Giorgi Lagidze <[email protected]>

---------

Co-authored-by: Giorgi Lagidze <[email protected]>
  • Loading branch information
novaknole and Giorgi Lagidze authored Jun 25, 2024
1 parent 05d8e78 commit 05513e0
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 1 deletion.
6 changes: 6 additions & 0 deletions configs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.6.0

## Added

- Add `zksync-mainnet` network configuration.

## v0.5.0

## Added
Expand Down
2 changes: 1 addition & 1 deletion configs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aragon/osx-commons-configs",
"author": "Aragon X",
"version": "0.5.0",
"version": "0.6.0",
"license": "AGPL-3.0-or-later",
"typings": "dist/index.d.ts",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions configs/src/deployments/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as mainnet from './json/mainnet.json';
import * as mumbai from './json/mumbai.json';
import * as polygon from './json/polygon.json';
import * as sepolia from './json/sepolia.json';
import * as zksyncMainnet from './json/zksyncMainnet.json';
import * as zksyncSepolia from './json/zksyncSepolia.json';
import {NetworkDeployment, SupportedVersions} from './types';

Expand All @@ -24,6 +25,7 @@ export {
arbitrum,
arbitrumSepolia,
zksyncSepolia,
zksyncMainnet,
};

export const contracts: {
Expand All @@ -42,6 +44,7 @@ export const contracts: {
arbitrum,
arbitrumSepolia,
zksyncSepolia,
zksyncMainnet,
local: {
[SupportedVersions.V1_0_0]: {} as NetworkDeployment,
[SupportedVersions.V1_3_0]: {} as NetworkDeployment,
Expand Down
149 changes: 149 additions & 0 deletions configs/src/deployments/json/zksyncMainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{
"v1.3.0": {
"AddresslistVotingSetup": {
"address": "0x85F6454826f74EC75ABA0c7Ce1DfA00aBFcb2858",
"blockNumber": 37460824,
"deploymentTx": "0xfb42d0ba67465e76aa70ce3c517442c4b3d866d16aa711bd997930db1f4efb50"
},
"AddresslistVotingSetupImplementation": {
"address": "0x1cbc2150e0C8E9aBC20AF515DAC70cBeb77407be",
"blockNumber": 37460824,
"deploymentTx": "0xfb42d0ba67465e76aa70ce3c517442c4b3d866d16aa711bd997930db1f4efb50"
},
"DAOFactory": {
"address": "0x66Be46fFF2423f39Ba47CD83480C71232eeE5bcD",
"blockNumber": 37460798,
"deploymentTx": "0xcb67bfb280ef848867c7b05a0748abc13940a276d492ae4173a1d0f2614f1a44"
},
"DAORegistryProxy": {
"address": "0xE7351bA0DDCc52249F27353893BcDBC74229e99d",
"blockNumber": 37460768,
"deploymentTx": "0x4d6e760f77fa059eda2b4a12a197651017949587c25b8de99a64ad0ef7f1c104"
},
"DAORegistryImplementation": {
"address": "0x460D5F6cE93bfC22230b70c25CA8110Af8eb0064",
"blockNumber": 37460765,
"deploymentTx": "0xaea229ae87855f83ce15196232baea2b1eac554ae301d5ef148debb608b320bd"
},
"DAOENSSubdomainRegistrarProxy": {
"address": "0x59D297b6E8ceffe99AC55401FDbC8F0800Bf684B",
"blockNumber": 37460750,
"deploymentTx": "0xb8f223b599d15b77ad7c52b13daad4ac50a7364c46c99bcc424d0255f8c675cb"
},
"DAOENSSubdomainRegistrarImplementation": {
"address": "0x86622E11A5D4C4D5e7EACfa788BDd4fb22f15476",
"blockNumber": 37460746,
"deploymentTx": "0xa7e23081e253b24dfa9c12977f4b9741fc78c160629ba84ff1841ed814d73158"
},
"ENSRegistry": {
"address": "0x61aaD591d84037948126bdAC2e06C0ea0C55a4fE",
"blockNumber": 37460705,
"deploymentTx": "0x6f2e3fe06d509f9924778e0dcc2789390566358f93b594a167b9c4e916810376"
},
"MultisigSetup": {
"address": "0xD07290844d6b6ECF497B490FE5E82890dD16999a",
"blockNumber": 37460843,
"deploymentTx": "0xa34ea8a0e59a1b886c5834ebb282378846799ce22bd636dc5606d01e323249ab"
},
"MultisigSetupImplementation": {
"address": "0x428C144b4e0E1DF244746632f6891e1a03541de4",
"blockNumber": 37460843,
"deploymentTx": "0xa34ea8a0e59a1b886c5834ebb282378846799ce22bd636dc5606d01e323249ab"
},
"PlaceholderSetup": {
"address": "0x6D41F0dd14Ac0591F48f21050D02214b13728180",
"blockNumber": 37460847,
"deploymentTx": "0xd39f6f21562685dee6b6e3aa62b4b02a915b13df1965e28f9ca26a298ac2ba48"
},
"PluginRepoBase": {
"address": "0xE916c573460ED02CA00E00009bd0dFCEe0324dD0",
"blockNumber": 37460781,
"deploymentTx": "0x8c396f105ef42c3b638fdbe4c51131dfab742d38a8061543b7d1a0b4e129a7df"
},
"PluginRepoFactory": {
"address": "0xCc4f863FB743f2b08B2E887D639bC3a64ae12075",
"blockNumber": 37460781,
"deploymentTx": "0x8c396f105ef42c3b638fdbe4c51131dfab742d38a8061543b7d1a0b4e129a7df"
},
"PluginRepoRegistryProxy": {
"address": "0xEa26fC4028D9293f453804b40F097F11974FdB79",
"blockNumber": 37460776,
"deploymentTx": "0xc9a3d15f5f3121b0063bc49c6c66a0d5620c9d0d60296c90517727b9258f20d5"
},
"PluginRepoRegistryImplementation": {
"address": "0xC9F3707f32D4C572ceAf3B5DEe119B265b635d51",
"blockNumber": 37460772,
"deploymentTx": "0x4cda5cb8ca5f468fb2c3bc3b92952ff5771b372082b41825de6c0f1d1a7f51e1"
},
"PluginSetupProcessor": {
"address": "0x8E3e98ECF5CdBF2bEcCD91d3BA580D472df5A0cB",
"blockNumber": 37460792,
"deploymentTx": "0x825efef92aa842776e5d8e32a316f82594c21c2db5119b3ff448b8357fd45b8c"
},
"PluginENSSubdomainRegistrarProxy": {
"address": "0x3f028c7Cf0515bA726E32f48183810672A9CcEA8",
"blockNumber": 37460758,
"deploymentTx": "0x643dcab1ec9529e050f553da1ecaaa6c4a52529ad8c3d92c96b972c144623907"
},
"PluginENSSubdomainRegistrarImplementation": {
"address": "0x2f8Be554Cf833Dbd5E244B2398739D9b4f6F8a67",
"blockNumber": 37460754,
"deploymentTx": "0xfcd0f6be44231049f3a5025f79e00feb59bb68ac4483c6569da9ac02eeb21c96"
},
"TokenVotingSetup": {
"address": "0x2b3Ba0906b3f4F42Cf9128Acc0784312a60e17ed",
"blockNumber": 37460834,
"deploymentTx": "0x39f3510c21f463601d4136fd070461542500c47f98649bc5347051034b53086e"
},
"TokenVotingSetupImplementation": {
"address": "0xde2A34D03f964e1bA620a0443e52B9c8427F391c",
"blockNumber": 37460834,
"deploymentTx": "0x39f3510c21f463601d4136fd070461542500c47f98649bc5347051034b53086e"
},
"AddresslistVotingRepoProxy": {
"address": "0x5BC82E4473e01f57716FC7f1361d424B54968e17",
"blockNumber": 37460851,
"deploymentTx": "0x61be5972a637e4699760d9a6b5cd0e5e4656a6fc647c6e2953c7f78b27e4fa72"
},
"AddresslistVotingRepoImplementation": {
"address": "0xE916c573460ED02CA00E00009bd0dFCEe0324dD0",
"blockNumber": 37460781,
"deploymentTx": "0x8c396f105ef42c3b638fdbe4c51131dfab742d38a8061543b7d1a0b4e129a7df"
},
"ManagementDAOProxy": {
"address": "0x8a289003063781e0963a02b7aA9EB200d7B774CB",
"blockNumber": 37460687,
"deploymentTx": "0xb47daeb38d0ce002482ec4db44d35f325b86f0543b9240f45cad9a0424765b05"
},
"ManagementDAOImplementation": {
"address": "0x0ED69b3b690e10Fb509FA1b081C1b74EF3FeB36D",
"blockNumber": 37460684,
"deploymentTx": "0x84979d8951708cb49aacd5178d37c5289410622298dfea22b4bf930279c143f0"
},
"MultisigRepoProxy": {
"address": "0x83f88d380073c8F929fAB649F3d016649c101D3A",
"blockNumber": 37460877,
"deploymentTx": "0xdb4438278e5fe751dcf0eb67e9b389d9439369e18d0cb0d519cd6c0c4b3da848"
},
"MultisigRepoImplementation": {
"address": "0xE916c573460ED02CA00E00009bd0dFCEe0324dD0",
"blockNumber": 37460781,
"deploymentTx": "0x8c396f105ef42c3b638fdbe4c51131dfab742d38a8061543b7d1a0b4e129a7df"
},
"TokenVotingRepoProxy": {
"address": "0xE8F4C59f83CeE31A867E61c9959533A6e95ebCB3",
"blockNumber": 37460864,
"deploymentTx": "0xdd9f906a3ddc400ff6d8f353c3f8540703ec1d93f46ee22a27c50988843ff033"
},
"TokenVotingRepoImplementation": {
"address": "0xE916c573460ED02CA00E00009bd0dFCEe0324dD0",
"blockNumber": 37460781,
"deploymentTx": "0x8c396f105ef42c3b638fdbe4c51131dfab742d38a8061543b7d1a0b4e129a7df"
},
"DAOBase": {
"address": "0xe0232413B54B4cC25915b642279D3865808AdE6e",
"blockNumber": 37460798,
"deploymentTx": "0xcb67bfb280ef848867c7b05a0748abc13940a276d492ae4173a1d0f2614f1a44"
}
}
}
8 changes: 8 additions & 0 deletions configs/src/networks/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ export const networks: NetworkConfigs = {
name: SupportedNetworks.ZKSYNC_SEPOLIA,
aliases: {},
},
[SupportedNetworks.ZKSYNC_MAINNET]: {
chainId: 324,
isTestnet: true,
name: SupportedNetworks.ZKSYNC_MAINNET,
aliases: {},
},
[SupportedNetworks.LOCAL]: {
isTestnet: true,
chainId: 31337,
Expand All @@ -113,6 +119,8 @@ export const networksAlchemyRpcUrl: NetworkRpcUrl = {
[SupportedNetworks.ARBITRUM_SEPOLIA]: 'https://arb-sepolia.g.alchemy.com/v2/',
[SupportedNetworks.ZKSYNC_SEPOLIA]:
'https://zksync-sepolia.g.alchemy.com/v2/',
[SupportedNetworks.ZKSYNC_MAINNET]:
'https://zksync-mainnet.g.alchemy.com/v2/',
[SupportedNetworks.LOCAL]: 'http://localhost:8545',
};

Expand Down
1 change: 1 addition & 0 deletions configs/src/networks/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export enum SupportedNetworks {
ARBITRUM = 'arbitrum',
ARBITRUM_SEPOLIA = 'arbitrumSepolia',
ZKSYNC_SEPOLIA = 'zksyncSepolia',
ZKSYNC_MAINNET = 'zksyncMainnet',
LOCAL = 'local',
}

Expand Down

0 comments on commit 05513e0

Please sign in to comment.