@pythnetwork/pyth-solana-receiver 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/PythSolanaReceiver.d.ts +2 -2
- package/lib/PythSolanaReceiver.js +2 -2
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -1
- package/package.json +3 -3
|
@@ -51,7 +51,7 @@ export declare class PythTransactionBuilder extends TransactionBuilder {
|
|
|
51
51
|
* @param priceUpdateDataArray the output of the `@pythnetwork/price-service-client`'s `PriceServiceConnection.getLatestVaas`. This is an array of verifiable price updates.
|
|
52
52
|
*
|
|
53
53
|
* Partially verified price updates are price updates where not all the guardian signatures have been verified. By default this methods checks `DEFAULT_REDUCED_GUARDIAN_SET_SIZE` signatures when posting the VAA.
|
|
54
|
-
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/
|
|
54
|
+
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs}.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* ```typescript
|
|
@@ -145,7 +145,7 @@ export declare class PythSolanaReceiver {
|
|
|
145
145
|
* Build a series of helper instructions that post price updates to the Pyth Solana Receiver program and another series to close the price update accounts.
|
|
146
146
|
*
|
|
147
147
|
* This function uses partially verified price updates. Partially verified price updates are price updates where not all the guardian signatures have been verified. By default this methods checks `DEFAULT_REDUCED_GUARDIAN_SET_SIZE` signatures when posting the VAA.
|
|
148
|
-
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/
|
|
148
|
+
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs}.
|
|
149
149
|
*
|
|
150
150
|
* @param priceUpdateDataArray the output of the `@pythnetwork/price-service-client`'s `PriceServiceConnection.getLatestVaas`. This is an array of verifiable price updates.
|
|
151
151
|
* @returns `postInstructions`: the instructions to post the price updates, these should be called before consuming the price updates
|
|
@@ -59,7 +59,7 @@ class PythTransactionBuilder extends solana_utils_1.TransactionBuilder {
|
|
|
59
59
|
* @param priceUpdateDataArray the output of the `@pythnetwork/price-service-client`'s `PriceServiceConnection.getLatestVaas`. This is an array of verifiable price updates.
|
|
60
60
|
*
|
|
61
61
|
* Partially verified price updates are price updates where not all the guardian signatures have been verified. By default this methods checks `DEFAULT_REDUCED_GUARDIAN_SET_SIZE` signatures when posting the VAA.
|
|
62
|
-
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/
|
|
62
|
+
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs}.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```typescript
|
|
@@ -176,7 +176,7 @@ class PythSolanaReceiver {
|
|
|
176
176
|
* Build a series of helper instructions that post price updates to the Pyth Solana Receiver program and another series to close the price update accounts.
|
|
177
177
|
*
|
|
178
178
|
* This function uses partially verified price updates. Partially verified price updates are price updates where not all the guardian signatures have been verified. By default this methods checks `DEFAULT_REDUCED_GUARDIAN_SET_SIZE` signatures when posting the VAA.
|
|
179
|
-
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/
|
|
179
|
+
* If you are a on-chain program developer, make sure you understand the risks of consuming partially verified price updates here: {@link https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs}.
|
|
180
180
|
*
|
|
181
181
|
* @param priceUpdateDataArray the output of the `@pythnetwork/price-service-client`'s `PriceServiceConnection.getLatestVaas`. This is an array of verifiable price updates.
|
|
182
182
|
* @returns `postInstructions`: the instructions to post the price updates, these should be called before consuming the price updates
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { PythSolanaReceiver, PythTransactionBuilder, } from "./PythSolanaReceiver";
|
|
2
2
|
export { TransactionBuilder, InstructionWithEphemeralSigners, } from "@pythnetwork/solana-utils";
|
|
3
|
+
export { getConfigPda, DEFAULT_RECEIVER_PROGRAM_ID, DEFAULT_WORMHOLE_PROGRAM_ID, } from "./address";
|
|
4
|
+
export { IDL as pythSolanaReceiverIdl, PythSolanaReceiver as PythSolanaReceiverProgram, } from "./idl/pyth_solana_receiver";
|
|
5
|
+
export { IDL as wormholeCoreBridgeIdl, WormholeCoreBridgeSolana as WormholeCoreBridgeProgram, } from "./idl/wormhole_core_bridge_solana";
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,+BAA+B,GAChC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,GAAG,IAAI,qBAAqB,EAC5B,kBAAkB,IAAI,yBAAyB,GAChD,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,GAAG,IAAI,qBAAqB,EAC5B,wBAAwB,IAAI,yBAAyB,GACtD,MAAM,mCAAmC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionBuilder = exports.PythTransactionBuilder = exports.PythSolanaReceiver = void 0;
|
|
3
|
+
exports.wormholeCoreBridgeIdl = exports.pythSolanaReceiverIdl = exports.DEFAULT_WORMHOLE_PROGRAM_ID = exports.DEFAULT_RECEIVER_PROGRAM_ID = exports.getConfigPda = exports.TransactionBuilder = exports.PythTransactionBuilder = exports.PythSolanaReceiver = void 0;
|
|
4
4
|
var PythSolanaReceiver_1 = require("./PythSolanaReceiver");
|
|
5
5
|
Object.defineProperty(exports, "PythSolanaReceiver", { enumerable: true, get: function () { return PythSolanaReceiver_1.PythSolanaReceiver; } });
|
|
6
6
|
Object.defineProperty(exports, "PythTransactionBuilder", { enumerable: true, get: function () { return PythSolanaReceiver_1.PythTransactionBuilder; } });
|
|
7
7
|
var solana_utils_1 = require("@pythnetwork/solana-utils");
|
|
8
8
|
Object.defineProperty(exports, "TransactionBuilder", { enumerable: true, get: function () { return solana_utils_1.TransactionBuilder; } });
|
|
9
|
+
var address_1 = require("./address");
|
|
10
|
+
Object.defineProperty(exports, "getConfigPda", { enumerable: true, get: function () { return address_1.getConfigPda; } });
|
|
11
|
+
Object.defineProperty(exports, "DEFAULT_RECEIVER_PROGRAM_ID", { enumerable: true, get: function () { return address_1.DEFAULT_RECEIVER_PROGRAM_ID; } });
|
|
12
|
+
Object.defineProperty(exports, "DEFAULT_WORMHOLE_PROGRAM_ID", { enumerable: true, get: function () { return address_1.DEFAULT_WORMHOLE_PROGRAM_ID; } });
|
|
13
|
+
var pyth_solana_receiver_1 = require("./idl/pyth_solana_receiver");
|
|
14
|
+
Object.defineProperty(exports, "pythSolanaReceiverIdl", { enumerable: true, get: function () { return pyth_solana_receiver_1.IDL; } });
|
|
15
|
+
var wormhole_core_bridge_solana_1 = require("./idl/wormhole_core_bridge_solana");
|
|
16
|
+
Object.defineProperty(exports, "wormholeCoreBridgeIdl", { enumerable: true, get: function () { return wormhole_core_bridge_solana_1.IDL; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pythnetwork/pyth-solana-receiver",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Pyth solana receiver SDK",
|
|
5
5
|
"homepage": "https://pyth.network",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@coral-xyz/anchor": "^0.29.0",
|
|
46
|
-
"@pythnetwork/price-service-sdk": ">=1.
|
|
46
|
+
"@pythnetwork/price-service-sdk": ">=1.6.0",
|
|
47
47
|
"@pythnetwork/solana-utils": "*",
|
|
48
48
|
"@solana/web3.js": "^1.90.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "ab7560ad3504cd5057d264fa30ee6ff810e1064b"
|
|
51
51
|
}
|