Skip to content

Commit bdc3fed

Browse files
authored
[eth] Deploy to Kava (#859)
* [eth] Deploy to Kava * [eth] Bump sdk/js package version * [eth] Fix pre-commit
1 parent e39db17 commit bdc3fed

File tree

10 files changed

+63
-9
lines changed

10 files changed

+63
-9
lines changed

governance/xc_governance_sdk_js/src/chains.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export const RECEIVER_CHAINS = {
2727
meter: 60010,
2828
mantle: 60011,
2929
conflux_espace: 60012,
30-
31-
// for cosmos
3230
injective_testnet: 60013,
3331
osmosis: 60014,
3432
osmosis_testnet_4: 60015,
@@ -39,6 +37,7 @@ export const RECEIVER_CHAINS = {
3937
neutron_testnet_pion_1: 60020,
4038
juno: 60020,
4139
juno_testnet: 60021,
40+
kava: 60022,
4241
};
4342

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

package-lock.json

Lines changed: 3 additions & 3 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=kava
3+
WORMHOLE_CHAIN_NAME=kava
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=kava_testnet
3+
WORMHOLE_CHAIN_NAME=kava
4+
CLUSTER=testnet
5+
VALID_TIME_PERIOD_SECONDS=60

target_chains/ethereum/contracts/.env.prod.optimism_goerli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Mumbai is Polygon testnet network
2-
31
MIGRATIONS_DIR=./migrations/prod
42
MIGRATIONS_NETWORK=optimism_goerli
53
WORMHOLE_CHAIN_NAME=optimism
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": "0x87047526937246727E4869C5f76A347160e08672",
9+
"transactionHash": "0x472c397969c3e0be996ed54cd80bddb5a2ab56e921dc51973f62e555da771368"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
14+
"transactionHash": "0x3062e9a8ebde180deb6b06980cd47a95b5a9b07aa75119382f6980e6dd4cc732"
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": "0x6f95cf4e82cff4ba1dbeb5f2d24dd80e1958ee2416b71c8e4ddc06892ebdc9bb"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
14+
"transactionHash": "0x1326c69422ada82201339b9443ffe6d6b16dc0a04865ab2e78fd528081ed2745"
15+
}
16+
]

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ module.exports = {
228228
verify: {
229229
apiUrl: "https://api-goerli.basescan.org/api",
230230
explorerUrl: "https://goerli.basescan.org/",
231-
apiKey: "",
231+
apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
232232
},
233233
},
234234
evmos: {
@@ -267,6 +267,19 @@ module.exports = {
267267
provider: payerProvider("NEON_RPC_PLACEHOLDER"), // Replace this by the neon RPC node endpoint
268268
network_id: 245022934,
269269
},
270+
kava: {
271+
provider: payerProvider("https://evm.kava.io"),
272+
network_id: 2222,
273+
verify: {
274+
apiUrl: "https://explorer.kava.io/api",
275+
explorerUrl: "https://explorer.kava.io/",
276+
apiKey: "there_should_be_a_dummy_value_here_to_avoid_error",
277+
},
278+
},
279+
kava_testnet: {
280+
provider: payerProvider("https://evm.testnet.kava.io"),
281+
network_id: 2221,
282+
},
270283
},
271284

272285
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.17.0",
3+
"version": "1.18.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
@@ -49,4 +49,6 @@ export const CONTRACT_ADDR: Record<string, string> = {
4949
mantle_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5050
conflux_espace: "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
5151
conflux_espace_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
52+
kava_testnet: "0x98046Bd286715D3B0BC227Dd7a956b83D8978603",
53+
kava: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
5254
};

0 commit comments

Comments
 (0)