Skip to content

Commit c45664c

Browse files
authored
[evm] Polygon ZKEVM deployment (#711)
* gr * doc * add zkevm deployment * gr * zkevm deployment * add zkevm testnet
1 parent 75a795d commit c45664c

File tree

9 files changed

+34
-4
lines changed

9 files changed

+34
-4
lines changed

governance/xc_governance_sdk_js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/xc-governance-sdk",
3-
"version": "0.2.0",
3+
"version": "0.4.0",
44
"description": "Pyth Cross-chain Governance SDK",
55
"private": "true",
66
"homepage": "https://pyth.network",

governance/xc_governance_sdk_js/src/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const RECEIVER_CHAINS = {
99
gnosis: 60005,
1010
evmos: 60006,
1111
neon: 60007,
12+
polygon_zkevm: 60008,
1213
};
1314

1415
// If there is any overlapping value the receiver chain will replace the wormhole

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MIGRATIONS_DIR=./migrations/prod-receiver
2+
MIGRATIONS_NETWORK=polygon_zkevm_testnet
3+
WORMHOLE_CHAIN_NAME=polygon_zkevm
4+
CLUSTER=testnet
5+
VALID_TIME_PERIOD_SECONDS=60

target_chains/ethereum/contracts/Deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This is the deployment process:
5454
values in [`.env.prod.development`](.env.prod.development).
5555
3. If you have changed the contract make sure that:
5656
- The change is not breaking the storage.
57-
- If it is making a backward incomptabile change, the legacy methods/storages are still used. For example,
57+
- If it is making a backward incompatible change, the legacy methods/storages are still used. For example,
5858
if the PriceInfos are now stored in a separate storage slot, the old PriceInfo should be accessible when
5959
the new one is not populated.
6060
- the contract version is updated both in [`Pyth.sol`](./contracts/pyth/Pyth.sol) and [`package.json`](./package.json).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"contractName": "Migrations",
4+
"address": "0xA4D48066e3B206E380c989ccB59B887691796e57"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0xb13722A7a87D9f5F080a133eb322A4deCC68f088",
9+
"transactionHash": "0xc9d6c850e0e1d2f514cfbd6864b410e2bdb9a09d24ceb4355f1e4da325df0da0"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xd54bf1758b1C932F86B178F8b1D5d1A7e2F62C2E",
14+
"transactionHash": "0x6fa1950947ef8fdb40e8ffd5423207f6abbf1d79dd436dfe2575d4e7cfe3dddb"
15+
}
16+
]

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ function payerProvider(url) {
1111
new HDWalletProvider({
1212
mnemonic: process.env.MNEMONIC,
1313
providerOrUrl: url,
14+
// This option makes deployments more reliable (by avoiding rate limiting errors) at the cost of
15+
// taking a little longer.
16+
pollingInterval: 12000,
1417
});
1518
}
1619

@@ -181,6 +184,10 @@ module.exports = {
181184
provider: payerProvider(`https://evm-t3.cronos.org`),
182185
network_id: 338,
183186
},
187+
polygon_zkevm_testnet: {
188+
provider: payerProvider(`https://rpc.public.zkevm-test.net/`),
189+
network_id: 1442,
190+
},
184191
shimmer_testnet: {
185192
provider: payerProvider(`https://json-rpc.evm.testnet.shimmer.network`),
186193
network_id: 1070,

target_chains/ethereum/sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-evm-js",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Pyth Network EVM Utils in JS",
55
"homepage": "https://pyth.network",
66
"author": {

target_chains/ethereum/sdk/js/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ export const CONTRACT_ADDR: Record<string, string> = {
4040
evmos: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
4141
evmos_testnet: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
4242
neon_devnet: "0x2FF312f50689ad279ABb164dB255Eb568733BD6c",
43+
polygon_zkevm_testnet: "0xd54bf1758b1C932F86B178F8b1D5d1A7e2F62C2E",
4344
};

0 commit comments

Comments
 (0)