Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pyth-network/pyth-crosschain
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: pyth-price-pusher-v9.0.0
Choose a base ref
...
head repository: pyth-network/pyth-crosschain
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: xc-admin-v0.6.12
Choose a head ref
  • 2 commits
  • 12 files changed
  • 2 contributors

Commits on Feb 7, 2025

  1. bump: pyth client to 2.22.1 (#2341)

    guibescos authored Feb 7, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    928b16c View commit details
  2. refactor(governance/xc_admin): add more logs on relayer (#2324)

    * refactor(governance/xc_admin): add more logs on relayer
    
    If the relayer fails for whatever reason it is hard to debug what
    is going on. This change adds more logs to see the details of the
    proposals which is quite helpful in debugging the issues.
    
    * fix: remove maxretries
    ali-bahjati authored Feb 7, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    032f98f View commit details
2 changes: 1 addition & 1 deletion apps/api-reference/package.json
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
"@headlessui/react": "^2.2.0",
"@heroicons/react": "^2.1.4",
"@next/third-parties": "^14.2.4",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/pyth-sdk-solidity": "workspace:^",
"@solana/web3.js": "^1.95.1",
"@tanstack/react-query": "^5.45.1",
2 changes: 1 addition & 1 deletion contract_manager/package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
"@cosmjs/stargate": "^0.32.3",
"@injectivelabs/networks": "^1.14.6",
"@mysten/sui": "^1.3.0",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/cosmwasm-deploy-tools": "workspace:*",
"@pythnetwork/entropy-sdk-solidity": "workspace:*",
"@pythnetwork/hermes-client": "workspace:*",
2 changes: 1 addition & 1 deletion governance/pyth_staking_sdk/package.json
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/solana-utils": "workspace:*",
"@solana/spl-governance": "^0.3.28",
"@solana/spl-token": "^0.3.7",
2 changes: 1 addition & 1 deletion governance/xc_admin/packages/crank_executor/package.json
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
"@coral-xyz/anchor": "^0.29.0",
"@injectivelabs/sdk-ts": "^1.10.72",
"@project-serum/anchor": "^0.25.0",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/xc-admin-common": "workspace:*",
"@solana/web3.js": "^1.73.0",
"@sqds/mesh": "^1.0.6",
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"@certusone/wormhole-sdk": "^0.10.15",
"@coral-xyz/anchor": "^0.29.0",
"@injectivelabs/sdk-ts": "^1.10.72",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/xc-admin-common": "workspace:*",
"@solana/web3.js": "^1.73.0",
"@sqds/mesh": "^1.0.6",
15 changes: 9 additions & 6 deletions governance/xc_admin/packages/crank_pythnet_relayer/src/index.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ import {
Connection,
Keypair,
PublicKey,
SystemProgram,
TransactionInstruction,
} from "@solana/web3.js";
import * as fs from "fs";
@@ -32,9 +31,6 @@ import {
REMOTE_EXECUTOR_ADDRESS,
envOrErr,
PriceStoreMultisigInstruction,
findDetermisticPublisherBufferAddress,
PRICE_STORE_BUFFER_SPACE,
PRICE_STORE_PROGRAM_ID,
createDeterministicPublisherBufferAccountInstruction,
} from "@pythnetwork/xc-admin-common";

@@ -101,7 +97,8 @@ async function run() {
) {
const preInstructions: TransactionInstruction[] = [];

console.log(`Found VAA ${lastSequenceNumber}, relaying ...`);
console.log(`Found VAA ${lastSequenceNumber}, relaying vaa ...`);

await postVaaSolana(
provider.connection,
signTransactionFactory(KEYPAIR),
@@ -111,6 +108,8 @@ async function run() {
{ commitment: COMMITMENT }
);

console.log(`VAA ${lastSequenceNumber} relayed. executing ...`);

let extraAccountMetas: AccountMeta[] = [
{ pubkey: executorKey, isSigner: false, isWritable: true },
];
@@ -128,6 +127,10 @@ async function run() {
);

const parsedInstruction = multisigParser.parseInstruction(ix);

console.log("Parsed instruction:");
console.dir(parsedInstruction, { depth: null });

if (
parsedInstruction instanceof PythMultisigInstruction &&
parsedInstruction.name == "addProduct"
@@ -200,7 +203,7 @@ async function run() {
.postInstructions([
ComputeBudgetProgram.setComputeUnitLimit({ units: 1000000 }),
])
.rpc({ skipPreflight: true });
.rpc({ skipPreflight: false });
} catch (e) {
if (SKIP_FAILED_REMOTE_INSTRUCTIONS) {
console.error(e);
2 changes: 1 addition & 1 deletion governance/xc_admin/packages/proposer_server/package.json
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@injectivelabs/sdk-ts": "^1.10.72",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/xc-admin-common": "workspace:*",
"@solana/web3.js": "^1.76.0",
"@sqds/mesh": "^1.0.6",
2 changes: 1 addition & 1 deletion governance/xc_admin/packages/xc_admin_cli/package.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
"@coral-xyz/anchor": "^0.29.0",
"@ledgerhq/hw-transport": "^6.31.4",
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/pyth-solana-receiver": "workspace:*",
"@pythnetwork/solana-utils": "workspace:^",
"@pythnetwork/xc-admin-common": "workspace:*",
2 changes: 1 addition & 1 deletion governance/xc_admin/packages/xc_admin_common/package.json
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
"@coral-xyz/anchor": "^0.29.0",
"@injectivelabs/token-metadata": "~1.10.42",
"@project-serum/anchor": "^0.25.0",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/pyth-solana-receiver": "workspace:*",
"@pythnetwork/solana-utils": "workspace:*",
"@solana/buffer-layout": "^4.0.1",
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
"dependencies": {
"@coral-xyz/anchor": "^0.29.0",
"@headlessui/react": "^2.2.0",
"@pythnetwork/client": "^2.22.0",
"@pythnetwork/client": "catalog:",
"@pythnetwork/solana-utils": "workspace:^",
"@pythnetwork/xc-admin-common": "workspace:*",
"@radix-ui/react-label": "^2.0.0",
60 changes: 38 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ catalog:
"@cprussin/tsconfig": 3.0.1
"@next/third-parties": 15.0.2
"@phosphor-icons/react": 2.1.7
"@pythnetwork/client": 2.22.0
"@pythnetwork/client": 2.22.1
"@react-hookz/web": 24.0.4
"@solana/web3.js": 1.95.4
"@storybook/addon-essentials": 8.3.5