Skip to content

Commit 1be8a02

Browse files
authored
Expose gas-price option for injective price pusher (#1185)
1 parent 5d951ee commit 1be8a02

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

package-lock.json

Lines changed: 4 additions & 2 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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ cd price_pusher
9393
npm run start -- evm --endpoint wss://example-rpc.com \
9494
--pyth-contract-address 0xff1a0f4744e8582DF...... \
9595
--price-service-endpoint https://example-hermes-rpc.com \
96-
--price-config-file "path/to/price-config.testnet.sample.yaml" \
96+
--price-config-file "path/to/price-config.beta.sample.yaml" \
9797
--mnemonic-file "path/to/mnemonic.txt" \
9898
[--pushing-frequency 10] \
9999
[--polling-frequency 5] \
@@ -102,17 +102,18 @@ npm run start -- evm --endpoint wss://example-rpc.com \
102102
# For Injective
103103
npm run start -- injective --grpc-endpoint https://grpc-endpoint.com \
104104
--pyth-contract-address inj1z60tg0... --price-service-endpoint "https://example-hermes-rpc.com" \
105-
--price-config-file "path/to/price-config.testnet.sample.yaml" \
105+
--price-config-file "path/to/price-config.beta.sample.yaml" \
106106
--mnemonic-file "path/to/mnemonic.txt" \
107107
--network testnet \
108+
[--gas-price 500000000] \
108109
[--pushing-frequency 10] \
109110
[--polling-frequency 5]
110111
111112
# For Aptos
112113
npm run start -- aptos --endpoint https://fullnode.testnet.aptoslabs.com/v1 \
113114
--pyth-contract-address 0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387 \
114115
--price-service-endpoint "https://example-hermes-rpc.com" \
115-
--price-config-file "./price-config.testnet.sample.yaml" \
116+
--price-config-file "path/to/price-config.beta.sample.yaml" \
116117
--mnemonic-file "path/to/mnemonic.txt" \
117118
[--pushing-frequency 10] \
118119
[--polling-frequency 5]
@@ -127,7 +128,7 @@ npm run start -- sui \
127128
--price-feed-to-price-info-object-table-id 0xf8929174008c662266a1adde78e1e8e33016eb7ad37d379481e860b911e40ed5 \
128129
--price-service-endpoint https://example-hermes-rpc.com \
129130
--mnemonic-file ./mnemonic \
130-
--price-config-file ./price-config.testnet.sample.yaml \
131+
--price-config-file ./price-config.beta.sample.yaml \
131132
[--pushing-frequency 10] \
132133
[--polling-frequency 5] \
133134
[--num-gas-objects 30]

price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "6.0.0",
3+
"version": "6.1.0",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

price_pusher/src/injective/command.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export default {
2525
type: "string",
2626
required: true,
2727
} as Options,
28+
"gas-price": {
29+
description: "Gas price to be used for each transasction",
30+
type: "number",
31+
} as Options,
2832
...options.priceConfigFile,
2933
...options.priceServiceEndpoint,
3034
...options.mnemonicFile,
@@ -35,6 +39,7 @@ export default {
3539
handler: function (argv: any) {
3640
// FIXME: type checks for this
3741
const {
42+
gasPrice,
3843
grpcEndpoint,
3944
priceConfigFile,
4045
priceServiceEndpoint,
@@ -87,6 +92,7 @@ export default {
8792
mnemonic,
8893
{
8994
chainId: getNetworkInfo(network).chainId,
95+
gasPrice,
9096
}
9197
);
9298

0 commit comments

Comments
 (0)