Skip to content

Commit aa0e6fd

Browse files
[eth] Add WEMIX network (#940)
* [eth] Add WEMIX network * Fix pre-commit * Remove unnecessary change * Fix prettier --------- Co-authored-by: Guillermo Bescos <[email protected]>
1 parent 78917f6 commit aa0e6fd

File tree

9 files changed

+60
-3
lines changed

9 files changed

+60
-3
lines changed

governance/xc_governance_sdk_js/src/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const RECEIVER_CHAINS = {
3838
juno: 60020,
3939
juno_testnet: 60021,
4040
kava: 60022,
41+
wemix: 60023,
4142
};
4243

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

package-lock.json

Lines changed: 2 additions & 2 deletions
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=wemix
3+
WORMHOLE_CHAIN_NAME=wemix
4+
CLUSTER=mainnet
5+
VALID_TIME_PERIOD_SECONDS=60
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=wemix_testnet
3+
WORMHOLE_CHAIN_NAME=wemix
4+
CLUSTER=testnet
5+
VALID_TIME_PERIOD_SECONDS=60
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": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
9+
"transactionHash": "0xb3168a99749474402d4a6763f207736fcdd7fa8b7326e6a1ae0a74b84773be57"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0xe5d3f6b77e5a7694929a3a2017f65b2607d5e003d1fea6d58f27cf32fa1f462f"
15+
}
16+
]
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": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a",
9+
"transactionHash": "0x8afe07593eded6e9a061dd8ec59458dcf36033307afc21f68cd016be46de2d20"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0x92fa026e0c85f030369e61a32f26d69e80f3e5d4f6a6befb27a3cfb5df804065"
15+
}
16+
]

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,18 @@ module.exports = {
280280
provider: payerProvider("https://evm.testnet.kava.io"),
281281
network_id: 2221,
282282
},
283+
wemix: {
284+
provider: payerProvider("https://api.wemix.com"),
285+
network_id: 1111,
286+
gas: 10000000,
287+
gasPrice: 200000000000,
288+
},
289+
wemix_testnet: {
290+
provider: payerProvider("https://api.test.wemix.com"),
291+
network_id: 1112,
292+
gas: 10000000,
293+
gasPrice: 200000000000,
294+
},
283295
},
284296

285297
compilers: {

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.19.0",
3+
"version": "1.20.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ export const CONTRACT_ADDR: Record<string, string> = {
5252
conflux_espace_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5353
kava_testnet: "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
5454
kava: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
55+
wemix: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
56+
wemix_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5557
};

0 commit comments

Comments
 (0)