Skip to content

Commit d7f436a

Browse files
authored
Cascade Pyth SDK JS update to downstream packages (#326)
* Fix annoying ethereum problem * Update p2w-sdk * rename + lint + format + bump to 1.0.0 * Update price service * Bump version + format + add lint * Fix price service linting issues * Fix package rename issue * Update package lock of dependencies local dependency is aweful! * Fix exclusion bug
1 parent 5ff2449 commit d7f436a

File tree

21 files changed

+340
-287
lines changed

21 files changed

+340
-287
lines changed

Dockerfile.ethereum

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ WORKDIR /home/node/ethereum
2323
# Only invalidate the npm install step if package.json changed
2424
ADD --chown=node:node ethereum/package.json .
2525
ADD --chown=node:node ethereum/package-lock.json .
26-
ADD --chown=node:node ethereum/.env.test .env
2726

2827
# We want to cache node_modules *and* incorporate it into the final image.
2928
RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
@@ -37,4 +36,4 @@ RUN --mount=type=cache,uid=1000,gid=1000,target=/home/node/.npm \
3736
RUN rm -rf node_modules && mv node_modules_cache node_modules
3837

3938
ADD --chown=node:node ethereum/ .
40-
39+
ADD --chown=node:node ethereum/.env.test .env

third_party/pyth/p2w-relay/package-lock.json

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

third_party/pyth/p2w-relay/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"typescript": "^4.3.5"
3131
},
3232
"dependencies": {
33-
"@certusone/p2w-sdk": "file:../p2w-sdk/js",
33+
"@pythnetwork/p2w-sdk-js": "file:../p2w-sdk/js",
3434
"@certusone/wormhole-sdk": "^0.1.4",
3535
"@certusone/wormhole-spydk": "^0.0.1",
3636
"@solana/spl-token": "^0.1.8",

third_party/pyth/p2w-relay/src/listen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
subscribeSignedVAA,
1515
} from "@certusone/wormhole-spydk";
1616

17-
import { parseBatchPriceAttestation, getBatchSummary } from "@certusone/p2w-sdk";
17+
import { parseBatchPriceAttestation, getBatchSummary } from "@pythnetwork/p2w-sdk-js";
1818

1919
import { importCoreWasm } from "@certusone/wormhole-sdk/lib/cjs/solana/wasm";
2020

third_party/pyth/p2w-relay/src/relay/evm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { hexToUint8Array } from "@certusone/wormhole-sdk";
55
import { importCoreWasm } from "@certusone/wormhole-sdk/lib/cjs/solana/wasm";
66

77
import { PythUpgradable__factory, PythUpgradable } from "../evm/bindings/";
8-
import { parseBatchPriceAttestation } from "@certusone/p2w-sdk";
8+
import { parseBatchPriceAttestation } from "@pythnetwork/p2w-sdk-js";
99

1010
let WH_WASM: any = null;
1111

third_party/pyth/p2w-relay/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Relay, RelayResult, RelayRetcode } from "./relay/iface";
88
import * as helpers from "./helpers";
99
import { logger } from "./helpers";
1010
import { PromHelper } from "./promHelpers";
11-
import { BatchPriceAttestation, getBatchAttestationHashKey, getBatchSummary } from "@certusone/p2w-sdk";
11+
import { BatchPriceAttestation, getBatchAttestationHashKey, getBatchSummary } from "@pythnetwork/p2w-sdk-js";
1212

1313
const mutex = new Mutex();
1414
let condition = new CondVar();

third_party/pyth/p2w-sdk/js/package-lock.json

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

third_party/pyth/p2w-sdk/js/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@certusone/p2w-sdk",
3-
"version": "0.1.0",
2+
"name": "@pythnetwork/p2w-sdk-js",
3+
"version": "1.0.0",
44
"description": "TypeScript library for interacting with Pyth2Wormhole",
55
"types": "lib/index.d.ts",
66
"main": "lib/index.js",
@@ -11,6 +11,7 @@
1111
"build": "npm run build-lib",
1212
"build-lib": "npm run copy-artifacts && tsc",
1313
"build-watch": "npm run copy-artifacts && tsc --watch",
14+
"format": "prettier --write \"src/**/*.ts\"",
1415
"copy-artifacts": "node scripts/copyWasm.cjs",
1516
"lint": "tslint -p tsconfig.json",
1617
"postversion": "git push && git push --tags",
@@ -41,7 +42,7 @@
4142
"dependencies": {
4243
"@certusone/wormhole-sdk": "0.2.1",
4344
"@improbable-eng/grpc-web-node-http-transport": "^0.14.1",
44-
"@pythnetwork/pyth-sdk-js": "^0.3.0"
45+
"@pythnetwork/pyth-sdk-js": "^1.0.0"
4546
},
4647
"bugs": {
4748
"url": "https://github.com/pyth-network/pyth-crosschain/issues"

0 commit comments

Comments
 (0)