Skip to content

chore(target_chains/cosmwasm): replace xion_testnet with xion_testnet_2 #2510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contract_manager/store/chains/CosmWasmChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
prefix: rol
feeDenom: urax
type: CosmWasmChain
- endpoint: https://testnet-burnt-rpc.lavenderfive.com
id: xion_testnet
- endpoint: https://rpc.xion-testnet-2.burnt.com:443
id: xion_testnet_2
wormholeChainName: xion_testnet
mainnet: false
gasPrice: "0.025"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
- chain: rol_testnet
address: rol1pvrwmjuusn9wh34j7y520g8gumuy9xtl3gvprlljfdpwju3x7ucszdyfs8
type: CosmWasmPriceFeedContract
- chain: xion_testnet
address: xion1w39ctwxxhxxc2kxarycjxj9rndn65gf8daek7ggarwh3rq3zl0lqqllnmt
- chain: xion_testnet_2
address: xion1wptw89weav8tnpgxg4fyhcahgk8yy99lka3w308536ktadkvjwxqe463hl
type: CosmWasmPriceFeedContract
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
- chain: injective
address: inj17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9l2q74d
type: CosmWasmWormholeContract
- chain: xion_testnet
address: xion14ycw3tx0hpz3aawmzm6cufs6hx94d64ht5qawd0ej9ug9j2ffzsqmpecys
- chain: xion_testnet_2
address: xion1qlrdccrcw4rew9ervlazeyt9qmcx84r87vrq74sfd48f4q8y3qrqf59syp
type: CosmWasmWormholeContract
178 changes: 132 additions & 46 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion target_chains/cosmwasm/deploy-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
2. If the wormhole contract is not deployed on the target chain run the following command:

```
pnpm instantiate-wormhole -- --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge> --chain <chain>
pnpm instantiate-wormhole --private-key <YOUR_PRIVATE_KEY_HEX> --deploy <stable or edge> --chain <chain>
```

You can re-build the wormhole contract using the scripts given in `wormhole-stub`.
Expand Down
3 changes: 2 additions & 1 deletion target_chains/cosmwasm/deploy-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"devDependencies": {
"@types/adm-zip": "^0.5.0",
"@types/yargs": "^17.0.18",
"prettier": "catalog:"
"prettier": "catalog:",
"ts-node": "^10.9.2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably move ts-node to the catalog too since we should be managing it alongside typescript, and ideally we should upgrade the tooling across the whole monorepo simultaneously.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make a separate PR for it because it affects everything else

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
DefaultStore,
toPrivateKey,
CosmWasmWormholeContract,
Store,
} from "@pythnetwork/contract-manager";
import { CHAINS } from "@pythnetwork/xc-admin-common";
import { DeploymentType } from "./helper";
Expand Down Expand Up @@ -87,6 +88,11 @@ async function run() {
console.log(
`Contract deployed on chain ${chain.getId()} at ${contract.address}`,
);

DefaultStore.wormhole_contracts[contract.getId()] = contract;
DefaultStore.saveAllContracts();
console.log("Added the following to your CosmWasm contracts configs");
console.log(Store.serialize(contract));
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function extractFromRawLog(rawLog: string, key: string): string {
return rx.exec(rawLog)![1];
} catch (e) {
console.error(
"Encountered an error in parsing instantiation result. Printing raw log",
"Encountered an error in parsing tx result. Printing raw log",
);
console.error(rawLog);
throw e;
Expand Down
Loading