Skip to content

Commit 3fc996d

Browse files
author
Dev Kalra
authored
[price-pusher] support for aptos (#815)
* aptos price listener * price pusher aptos * add comment * update package lock * remove eslint disable comments * bump version * npm i at root * update readme * address feedback * update readme * json fix
1 parent 1dbc592 commit 3fc996d

File tree

9 files changed

+425
-118
lines changed

9 files changed

+425
-118
lines changed

package-lock.json

Lines changed: 115 additions & 112 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ npm run start -- injective --grpc-endpoint https://grpc-endpoint.com \
7171
[--pushing-frequency 10] \
7272
[--polling-frequency 5] \
7373

74+
# For Aptos
75+
npm run start -- aptos --endpoint https://fullnode.testnet.aptoslabs.com/v1 \
76+
--pyth-contract-address 0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387 --price-service-endpoint "https://xc-testnet.pyth.network" \
77+
--price-config-file "./price-config.testnet.sample.yaml" \
78+
--mnemonic-file "path/to/mnemonic.txt" \
79+
[--pushing-frequency 10] \
80+
[--polling-frequency 5] \
81+
7482

7583
# Or, run the price pusher docker image instead of building from the source
7684
docker run public.ecr.aws/pyth-network/xc-price-pusher:v<version> -- <above-arguments>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endpoint": "https://fullnode.testnet.aptoslabs.com/v1",
3+
"pyth-contract-address": "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387",
4+
"price-service-endpoint": "https://xc-testnet.pyth.network",
5+
"mnemonic-file": "./mnemonic",
6+
"price-config-file": "./price-config.testnet.sample.yaml"
7+
}

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.0.0",
3+
"version": "5.1.0",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",
@@ -55,6 +55,7 @@
5555
"@pythnetwork/price-service-client": "*",
5656
"@pythnetwork/pyth-sdk-solidity": "*",
5757
"@truffle/hdwallet-provider": "^2.1.3",
58+
"aptos": "^1.8.5",
5859
"joi": "^17.6.0",
5960
"web3": "^1.8.1",
6061
"web3-eth-contract": "^1.8.1",

0 commit comments

Comments
 (0)