Skip to content

Commit 1c529dd

Browse files
author
Dev Kalra
authored
[price-pusher] sui (#825)
* sui pusher * cache mapping * typo * remove comment * add mainnet config * update readme * bump version
1 parent 4a17e7f commit 1c529dd

File tree

8 files changed

+690
-1
lines changed

8 files changed

+690
-1
lines changed

package-lock.json

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

price_pusher/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ npm run start -- aptos --endpoint https://fullnode.testnet.aptoslabs.com/v1 \
7979
[--pushing-frequency 10] \
8080
[--polling-frequency 5] \
8181

82+
# For Sui
83+
npm run start -- sui
84+
--endpoint https://sui-testnet-rpc.allthatnode.com,
85+
--pyth-package-id 0x975e063f398f720af4f33ec06a927f14ea76ca24f7f8dd544aa62ab9d5d15f44,
86+
--pyth-state-id 0xd8afde3a48b4ff7212bd6829a150f43f59043221200d63504d981f62bff2e27a,
87+
--wormhole-package-id 0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e,
88+
--wormhole-state-id 0xebba4cc4d614f7a7cdbe883acc76d1cc767922bc96778e7b68be0d15fce27c02,
89+
--price-feed-to-price-info-object-table-id 0xf8929174008c662266a1adde78e1e8e33016eb7ad37d379481e860b911e40ed5,
90+
--price-service-endpoint https://xc-testnet.pyth.network,
91+
--mnemonic-file ./mnemonic,
92+
--price-config-file ./price-config.testnet.sample.yaml
93+
[--pushing-frequency 10] \
94+
[--polling-frequency 5] \
95+
96+
97+
98+
--endpoint https://fullnode.testnet.aptoslabs.com/v1 \
99+
--pyth-contract-address 0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387 --price-service-endpoint "https://xc-testnet.pyth.network" \
100+
--price-config-file "./price-config.testnet.sample.yaml" \
101+
--mnemonic-file "path/to/mnemonic.txt" \
102+
[--pushing-frequency 10] \
103+
[--polling-frequency 5] \
104+
82105

83106
# Or, run the price pusher docker image instead of building from the source
84107
docker run public.ecr.aws/pyth-network/xc-price-pusher:v<version> -- <above-arguments>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"endpoint": "https://sui-testnet-rpc.allthatnode.com",
3+
"pyth-package-id": "0x00b53b0f4174108627fbee72e2498b58d6a2714cded53fac537034c220d26302",
4+
"pyth-state-id": "0xf9ff3ef935ef6cdfb659a203bf2754cebeb63346e29114a535ea6f41315e5a3f",
5+
"wormhole-package-id": "0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a",
6+
"wormhole-state-id": "0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c",
7+
"price-feed-to-price-info-object-table-id": "0x14b4697477d24c30c8eecc31dd1bd49a3115a9fe0db6bd4fd570cf14640b79a0",
8+
"price-service-endpoint": "https://xc-mainnet.pyth.network",
9+
"mnemonic-file": "./mnemonic",
10+
"price-config-file": "./price-config.mainnet.sample.yaml"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"endpoint": "https://sui-testnet-rpc.allthatnode.com",
3+
"pyth-package-id": "0x975e063f398f720af4f33ec06a927f14ea76ca24f7f8dd544aa62ab9d5d15f44",
4+
"pyth-state-id": "0xd8afde3a48b4ff7212bd6829a150f43f59043221200d63504d981f62bff2e27a",
5+
"wormhole-package-id": "0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e",
6+
"wormhole-state-id": "0xebba4cc4d614f7a7cdbe883acc76d1cc767922bc96778e7b68be0d15fce27c02",
7+
"price-feed-to-price-info-object-table-id": "0xf8929174008c662266a1adde78e1e8e33016eb7ad37d379481e860b911e40ed5",
8+
"price-service-endpoint": "https://xc-testnet.pyth.network",
9+
"mnemonic-file": "./mnemonic",
10+
"price-config-file": "./price-config.testnet.sample.yaml"
11+
}

price_pusher/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "5.1.0",
3+
"version": "5.2.0",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",
@@ -52,6 +52,7 @@
5252
},
5353
"dependencies": {
5454
"@injectivelabs/sdk-ts": "1.10.72",
55+
"@mysten/sui.js": "^0.34.0",
5556
"@pythnetwork/price-service-client": "*",
5657
"@pythnetwork/pyth-sdk-solidity": "*",
5758
"@truffle/hdwallet-provider": "^2.1.3",

price_pusher/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import { hideBin } from "yargs/helpers";
44
import injective from "./injective/command";
55
import evm from "./evm/command";
66
import aptos from "./aptos/command";
7+
import sui from "./sui/command";
78

89
yargs(hideBin(process.argv))
910
.config("config")
1011
.global("config")
1112
.command(evm)
1213
.command(injective)
1314
.command(aptos)
15+
.command(sui)
1416
.help().argv;

0 commit comments

Comments
 (0)