File tree Expand file tree Collapse file tree 6 files changed +18
-9
lines changed
target_chains/cosmwasm/tools/src Expand file tree Collapse file tree 6 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ pnpm run start injective --grpc-endpoint https://grpc-endpoint.com \
105
105
--price-config-file "path/to/price-config.beta.sample.yaml" \
106
106
--mnemonic-file "path/to/mnemonic.txt" \
107
107
--network testnet \
108
- [--gas-price 500000000] \
108
+ [--gas-price 160000000] \
109
+ [--gas-multiplier 1.1] \
109
110
[--pushing-frequency 10] \
110
111
[--polling-frequency 5]
111
112
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pythnetwork/price-pusher" ,
3
- "version" : " 8.0.4 " ,
3
+ "version" : " 8.1.0 " ,
4
4
"description" : " Pyth Price Pusher" ,
5
5
"homepage" : " https://pyth.network" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ export default {
30
30
description : "Gas price to be used for each transasction" ,
31
31
type : "number" ,
32
32
} as Options ,
33
+ "gas-multiplier" : {
34
+ description : "Gas multiplier to be used for each transasction" ,
35
+ type : "number" ,
36
+ } as Options ,
33
37
...options . priceConfigFile ,
34
38
...options . priceServiceEndpoint ,
35
39
...options . mnemonicFile ,
@@ -44,6 +48,7 @@ export default {
44
48
// FIXME: type checks for this
45
49
const {
46
50
gasPrice,
51
+ gasMultiplier,
47
52
grpcEndpoint,
48
53
priceConfigFile,
49
54
priceServiceEndpoint,
@@ -101,6 +106,7 @@ export default {
101
106
{
102
107
chainId : getNetworkInfo ( network ) . chainId ,
103
108
gasPrice,
109
+ gasMultiplier,
104
110
}
105
111
) ;
106
112
Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ import {
22
22
import { Logger } from "pino" ;
23
23
import { Account } from "@injectivelabs/sdk-ts/dist/cjs/client/chain/types/auth" ;
24
24
25
- const DEFAULT_GAS_PRICE = 500000000 ;
25
+ const DEFAULT_GAS_PRICE = 160000000 ;
26
+ const DEFAULT_GAS_MULTIPLIER = 1.05 ;
27
+ const INJECTIVE_TESTNET_CHAIN_ID = "injective-888" ;
26
28
27
29
type PriceQueryResponse = {
28
30
price_feed : {
@@ -108,8 +110,8 @@ export class InjectivePricePusher implements IPricePusher {
108
110
this . wallet = PrivateKey . fromMnemonic ( mnemonic ) ;
109
111
110
112
this . chainConfig = {
111
- chainId : chainConfig ?. chainId ?? "injective-888" ,
112
- gasMultiplier : chainConfig ?. gasMultiplier ?? 1.2 ,
113
+ chainId : chainConfig ?. chainId ?? INJECTIVE_TESTNET_CHAIN_ID ,
114
+ gasMultiplier : chainConfig ?. gasMultiplier ?? DEFAULT_GAS_MULTIPLIER ,
113
115
gasPrice : chainConfig ?. gasPrice ?? DEFAULT_GAS_PRICE ,
114
116
} ;
115
117
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import {
34
34
} from "@injectivelabs/networks" ;
35
35
import * as net from "net" ;
36
36
37
- const DEFAULT_GAS_PRICE = 500000000 ;
37
+ const DEFAULT_GAS_PRICE = 160000000 ;
38
38
39
39
export class InjectiveExecutor implements ChainExecutor {
40
40
private readonly gasMultiplier = 2 ;
Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ export class InjectiveDeployer implements Deployer {
87
87
const txResponse = await this . signAndBroadcastMsg ( store_code , {
88
88
amount : [
89
89
{
90
- // gas = 5000000 & gasPrice = 500000000
91
- amount : String ( 500000000 * 5000000 ) ,
90
+ // gas = 5000000 & gasPrice = 160000000
91
+ amount : String ( 160000000 * 5000000 ) ,
92
92
denom : "inj" ,
93
93
} ,
94
94
] ,
95
- // DEFAULT STD FEE that we use has gas = 400000 and gasPrice = 500000000
95
+ // DEFAULT STD FEE that we use has gas = 400000 and gasPrice = 160000000
96
96
// But this transaction was taking gas around 3000000. Which is a lot more
97
97
// Keeping the gasPrice same as in default std fee as seen above in amount.
98
98
// Changing the gasLimit to 5000000
You can’t perform that action at this time.
0 commit comments