Skip to content

Commit df8e20a

Browse files
authored
chore(target_chains/cosmwasm): replace xion_testnet with xion_testnet_2 (#2510)
* chore(target_chains/cosmwasm): replace xion_testnet with xion_testnet_2 The previous contract doesn't exist anymore * fix: add missing import
1 parent 30efb0d commit df8e20a

File tree

8 files changed

+148
-55
lines changed

8 files changed

+148
-55
lines changed

contract_manager/store/chains/CosmWasmChains.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
prefix: rol
7575
feeDenom: urax
7676
type: CosmWasmChain
77-
- endpoint: https://testnet-burnt-rpc.lavenderfive.com
78-
id: xion_testnet
77+
- endpoint: https://rpc.xion-testnet-2.burnt.com:443
78+
id: xion_testnet_2
7979
wormholeChainName: xion_testnet
8080
mainnet: false
8181
gasPrice: "0.025"

contract_manager/store/contracts/CosmWasmPriceFeedContracts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
- chain: rol_testnet
4444
address: rol1pvrwmjuusn9wh34j7y520g8gumuy9xtl3gvprlljfdpwju3x7ucszdyfs8
4545
type: CosmWasmPriceFeedContract
46-
- chain: xion_testnet
47-
address: xion1w39ctwxxhxxc2kxarycjxj9rndn65gf8daek7ggarwh3rq3zl0lqqllnmt
46+
- chain: xion_testnet_2
47+
address: xion1wptw89weav8tnpgxg4fyhcahgk8yy99lka3w308536ktadkvjwxqe463hl
4848
type: CosmWasmPriceFeedContract

contract_manager/store/contracts/CosmWasmWormholeContracts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
- chain: injective
4444
address: inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d
4545
type: CosmWasmWormholeContract
46-
- chain: xion_testnet
47-
address: xion14ycw3tx0hpz3aawmzm6cufs6hx94d64ht5qawd0ej9ug9j2ffzsqmpecys
46+
- chain: xion_testnet_2
47+
address: xion1qlrdccrcw4rew9ervlazeyt9qmcx84r87vrq74sfd48f4q8y3qrqf59syp
4848
type: CosmWasmWormholeContract

pnpm-lock.yaml

Lines changed: 132 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_chains/cosmwasm/deploy-scripts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
2. If the wormhole contract is not deployed on the target chain run the following command:
55

66
```
7-
pnpm instantiate-wormhole -- --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge> --chain <chain>
7+
pnpm instantiate-wormhole --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge> --chain <chain>
88
```
99

1010
You can re-build the wormhole contract using the scripts given in `wormhole-stub`.

target_chains/cosmwasm/deploy-scripts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"devDependencies": {
2929
"@types/adm-zip": "^0.5.0",
3030
"@types/yargs": "^17.0.18",
31-
"prettier": "catalog:"
31+
"prettier": "catalog:",
32+
"ts-node": "^10.9.2"
3233
}
3334
}

target_chains/cosmwasm/deploy-scripts/src/instantiate-wormhole.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
DefaultStore,
88
toPrivateKey,
99
CosmWasmWormholeContract,
10+
Store,
1011
} from "@pythnetwork/contract-manager";
1112
import { CHAINS } from "@pythnetwork/xc-admin-common";
1213
import { DeploymentType } from "./helper";
@@ -87,6 +88,11 @@ async function run() {
8788
console.log(
8889
`Contract deployed on chain ${chain.getId()} at ${contract.address}`,
8990
);
91+
92+
DefaultStore.wormhole_contracts[contract.getId()] = contract;
93+
DefaultStore.saveAllContracts();
94+
console.log("Added the following to your CosmWasm contracts configs");
95+
console.log(Store.serialize(contract));
9096
}
9197

9298
run();

target_chains/cosmwasm/tools/src/chains-manager/cosmwasm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function extractFromRawLog(rawLog: string, key: string): string {
268268
return rx.exec(rawLog)![1];
269269
} catch (e) {
270270
console.error(
271-
"Encountered an error in parsing instantiation result. Printing raw log",
271+
"Encountered an error in parsing tx result. Printing raw log",
272272
);
273273
console.error(rawLog);
274274
throw e;

0 commit comments

Comments
 (0)