-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Polygon ZkEVM a.DI and Gov V3 addresses
- Loading branch information
Showing
9 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {ChainId} from '../../generator/chains'; | ||
import {GovernanceConfig} from '../types'; | ||
|
||
export const governanceConfigPolygonZkEVM: GovernanceConfig = { | ||
name: 'PolygonZkEVM', | ||
CHAIN_ID: ChainId.zkevm, | ||
ADDRESSES: { | ||
CROSS_CHAIN_CONTROLLER: '0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B', | ||
PAYLOADS_CONTROLLER: '0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615', | ||
PC_DATA_HELPER: '0xF1c11BE0b4466728DDb7991A0Ac5265646ec9672', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {NetworkAddresses} from '../types'; | ||
import {ChainId} from '../../generator/chains'; | ||
|
||
export const polygonZkevmAddresses: NetworkAddresses = { | ||
name: 'PolygonZkEVM', | ||
chainId: ChainId.zkevm, | ||
addresses: { | ||
TRANSPARENT_PROXY_FACTORY: '0x8B6851156023f4f5A66F68BEA80851c3D905Ac93', | ||
PROXY_ADMIN: '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2', | ||
CREATE_3_FACTORY: '0xE2E8Badc5d50f8a6188577B89f50701cDE2D4e19', | ||
PROTOCOL_GUARDIAN: '0x8C05474F1f0161F71276677De0a2d8a347583c45', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ export enum ChainId { | |
base = 8453, | ||
bnb = 56, | ||
gnosis = 100, | ||
zkevm = 1101, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0; | ||
|
||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
import {IGovernanceCore, IPayloadsControllerCore, IDataWarehouse, IVotingStrategy} from './GovernanceV3.sol'; | ||
|
||
library GovernanceV3PolygonZkEVM { | ||
// https://zkevm.polygonscan.com/address/0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B | ||
address internal constant CROSS_CHAIN_CONTROLLER = 0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B; | ||
|
||
// https://zkevm.polygonscan.com/address/0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615 | ||
IPayloadsControllerCore internal constant PAYLOADS_CONTROLLER = | ||
IPayloadsControllerCore(0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615); | ||
|
||
// https://zkevm.polygonscan.com/address/0xF1c11BE0b4466728DDb7991A0Ac5265646ec9672 | ||
address internal constant PC_DATA_HELPER = 0xF1c11BE0b4466728DDb7991A0Ac5265646ec9672; | ||
|
||
// https://zkevm.polygonscan.com/address/0xe59470B3BE3293534603487E00A44C72f2CD466d | ||
address internal constant EXECUTOR_LVL_1 = 0xe59470B3BE3293534603487E00A44C72f2CD466d; | ||
|
||
// https://zkevm.polygonscan.com/address/0x0000000000000000000000000000000000000000 | ||
address internal constant EXECUTOR_LVL_2 = 0x0000000000000000000000000000000000000000; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// https://zkevm.polygonscan.com/address/0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B | ||
export const CROSS_CHAIN_CONTROLLER = '0xed7e0874526B9BB9E36C7e9472ed7ed324CEeE3B'; | ||
|
||
// IPayloadsControllerCore https://zkevm.polygonscan.com/address/0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615 | ||
export const PAYLOADS_CONTROLLER = '0xa2d22795E0D85D4Cb14Cbb14Df7bb8fec1016615'; | ||
|
||
// https://zkevm.polygonscan.com/address/0xF1c11BE0b4466728DDb7991A0Ac5265646ec9672 | ||
export const PC_DATA_HELPER = '0xF1c11BE0b4466728DDb7991A0Ac5265646ec9672'; | ||
|
||
// https://zkevm.polygonscan.com/address/0xe59470B3BE3293534603487E00A44C72f2CD466d | ||
export const EXECUTOR_LVL_1 = '0xe59470B3BE3293534603487E00A44C72f2CD466d'; | ||
|
||
// https://zkevm.polygonscan.com/address/0x0000000000000000000000000000000000000000 | ||
export const EXECUTOR_LVL_2 = '0x0000000000000000000000000000000000000000'; |