guibescos 1 年之前
父节点
当前提交
71d0323b7a

文件差异内容过多而无法显示
+ 371 - 95
pnpm-lock.yaml


+ 1 - 4
target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_price_update.ts

@@ -1,9 +1,6 @@
 import { Connection, Keypair, PublicKey } from "@solana/web3.js";
 import { Connection, Keypair, PublicKey } from "@solana/web3.js";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
-import {
-  InstructionWithEphemeralSigners,
-  PythSolanaReceiver,
-} from "@pythnetwork/pyth-solana-receiver";
+import { InstructionWithEphemeralSigners, PythSolanaReceiver } from "../";
 import { Wallet } from "@coral-xyz/anchor";
 import { Wallet } from "@coral-xyz/anchor";
 import fs from "fs";
 import fs from "fs";
 import os from "os";
 import os from "os";

+ 1 - 4
target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_price_update_instructions.ts

@@ -1,9 +1,6 @@
 import { Connection, Keypair } from "@solana/web3.js";
 import { Connection, Keypair } from "@solana/web3.js";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
-import {
-  InstructionWithEphemeralSigners,
-  PythSolanaReceiver,
-} from "@pythnetwork/pyth-solana-receiver";
+import { InstructionWithEphemeralSigners, PythSolanaReceiver } from "../";
 import { Wallet } from "@coral-xyz/anchor";
 import { Wallet } from "@coral-xyz/anchor";
 import fs from "fs";
 import fs from "fs";
 import os from "os";
 import os from "os";

+ 1 - 4
target_chains/solana/sdk/js/pyth_solana_receiver/examples/update_price_feed.ts

@@ -1,9 +1,6 @@
 import { Connection, Keypair, PublicKey } from "@solana/web3.js";
 import { Connection, Keypair, PublicKey } from "@solana/web3.js";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
-import {
-  InstructionWithEphemeralSigners,
-  PythSolanaReceiver,
-} from "@pythnetwork/pyth-solana-receiver";
+import { InstructionWithEphemeralSigners, PythSolanaReceiver } from "../";
 import { Wallet } from "@coral-xyz/anchor";
 import { Wallet } from "@coral-xyz/anchor";
 import fs from "fs";
 import fs from "fs";
 import os from "os";
 import os from "os";

+ 2 - 0
target_chains/solana/sdk/js/pyth_solana_receiver/package.json

@@ -31,6 +31,7 @@
   ],
   ],
   "license": "Apache-2.0",
   "license": "Apache-2.0",
   "devDependencies": {
   "devDependencies": {
+    "@pythnetwork/price-service-client": "workspace:*",
     "@types/jest": "^29.4.0",
     "@types/jest": "^29.4.0",
     "@typescript-eslint/eslint-plugin": "^5.20.0",
     "@typescript-eslint/eslint-plugin": "^5.20.0",
     "@typescript-eslint/parser": "^5.20.0",
     "@typescript-eslint/parser": "^5.20.0",
@@ -39,6 +40,7 @@
     "prettier": "^2.6.2",
     "prettier": "^2.6.2",
     "quicktype": "^23.0.76",
     "quicktype": "^23.0.76",
     "ts-jest": "^29.0.5",
     "ts-jest": "^29.0.5",
+    "ts-node": "^10.9.2",
     "typescript": "^4.6.3"
     "typescript": "^4.6.3"
   },
   },
   "dependencies": {
   "dependencies": {

部分文件因为文件数量过多而无法显示