@pythnetwork/pyth-sui-js 1.1.0 → 1.2.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuiRelay.d.ts","sourceRoot":"","sources":["../../src/examples/SuiRelay.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,eAAe,EAGhB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"SuiRelay.d.ts","sourceRoot":"","sources":["../../src/examples/SuiRelay.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,eAAe,EAGhB,MAAM,gBAAgB,CAAC;AAkCxB,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,mBAEtC"}
|
package/lib/examples/SuiRelay.js
CHANGED
|
@@ -15,8 +15,8 @@ const argvPromise = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
|
|
|
15
15
|
type: "array",
|
|
16
16
|
demandOption: true,
|
|
17
17
|
})
|
|
18
|
-
.option("
|
|
19
|
-
description: "Endpoint URL for
|
|
18
|
+
.option("hermes", {
|
|
19
|
+
description: "Endpoint URL for Hermes. e.g: https://hermes.pyth.network",
|
|
20
20
|
type: "string",
|
|
21
21
|
demandOption: true,
|
|
22
22
|
})
|
|
@@ -45,7 +45,7 @@ async function run() {
|
|
|
45
45
|
}
|
|
46
46
|
const argv = await argvPromise;
|
|
47
47
|
// Fetch the latest price feed update data from the Price Service
|
|
48
|
-
const connection = new index_1.SuiPriceServiceConnection(argv["
|
|
48
|
+
const connection = new index_1.SuiPriceServiceConnection(argv["hermes"]);
|
|
49
49
|
const feeds = argv["feed-id"];
|
|
50
50
|
const priceFeedUpdateData = await connection.getPriceFeedsUpdateData(feeds);
|
|
51
51
|
const provider = getProvider(argv["full-node"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pythnetwork/pyth-sui-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Pyth Network Sui Utilities",
|
|
5
5
|
"homepage": "https://pyth.network",
|
|
6
6
|
"author": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"@pythnetwork/price-service-client": "*",
|
|
58
58
|
"buffer": "^6.0.3"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "f41cf822ff404de523c9d4e34bed816e140cfa83"
|
|
61
61
|
}
|