Set default gas limit for send transactions to 100k
This commit is contained in:
@@ -27,7 +27,7 @@ import { SigningCosmWasmClientOptions } from "./signingcosmwasmclient";
|
||||
import hackatom from "./testdata/contract.json";
|
||||
|
||||
export const defaultGasPrice = GasPrice.fromString("0.025ucosm");
|
||||
export const defaultSendFee = calculateFee(200_000, defaultGasPrice);
|
||||
export const defaultSendFee = calculateFee(100_000, defaultGasPrice);
|
||||
export const defaultUploadFee = calculateFee(1_500_000, defaultGasPrice);
|
||||
export const defaultInstantiateFee = calculateFee(500_000, defaultGasPrice);
|
||||
export const defaultExecuteFee = calculateFee(200_000, defaultGasPrice);
|
||||
|
||||
@@ -49,7 +49,7 @@ FAUCET_PORT Port of the webserver. Defaults to 8000.
|
||||
FAUCET_MEMO Memo for send transactions. Defaults to unset.
|
||||
FAUCET_GAS_PRICE Gas price for transactions as a comma separated list.
|
||||
Defaults to "0.025ucosm".
|
||||
FAUCET_GAS_LIMIT Gas limit for send transactions. Defaults to 80000.
|
||||
FAUCET_GAS_LIMIT Gas limit for send transactions. Defaults to 100000.
|
||||
FAUCET_MNEMONIC Secret mnemonic that serves as the base secret for the
|
||||
faucet HD accounts
|
||||
FAUCET_PATH_PATTERN The pattern of BIP32 paths for the faucet accounts.
|
||||
|
||||
@@ -22,7 +22,7 @@ FAUCET_PORT Port of the webserver. Defaults to 8000.
|
||||
FAUCET_MEMO Memo for send transactions. Defaults to unset.
|
||||
FAUCET_GAS_PRICE Gas price for transactions as a comma separated list.
|
||||
Defaults to "0.025ucosm".
|
||||
FAUCET_GAS_LIMIT Gas limit for send transactions. Defaults to 80000.
|
||||
FAUCET_GAS_LIMIT Gas limit for send transactions. Defaults to 100000.
|
||||
FAUCET_MNEMONIC Secret mnemonic that serves as the base secret for the
|
||||
faucet HD accounts
|
||||
FAUCET_PATH_PATTERN The pattern of BIP32 paths for the faucet accounts.
|
||||
|
||||
@@ -6,7 +6,9 @@ import { parseBankTokens } from "./tokens";
|
||||
export const binaryName = "cosmos-faucet";
|
||||
export const memo: string | undefined = process.env.FAUCET_MEMO;
|
||||
export const gasPrice = GasPrice.fromString(process.env.FAUCET_GAS_PRICE || "0.025ucosm");
|
||||
export const gasLimitSend = parseInt(process.env.FAUCET_GAS_LIMIT || "200000", 10);
|
||||
export const gasLimitSend = process.env.FAUCET_GAS_LIMIT
|
||||
? parseInt(process.env.FAUCET_GAS_LIMIT, 10)
|
||||
: 100_000;
|
||||
export const concurrency: number = Number.parseInt(process.env.FAUCET_CONCURRENCY || "", 10) || 5;
|
||||
export const port: number = Number.parseInt(process.env.FAUCET_PORT || "", 10) || 8000;
|
||||
export const mnemonic: string | undefined = process.env.FAUCET_MNEMONIC;
|
||||
|
||||
@@ -64,7 +64,7 @@ export function fromOneElementArray<T>(elements: ArrayLike<T>): T {
|
||||
}
|
||||
|
||||
export const defaultGasPrice = GasPrice.fromString("0.025ucosm");
|
||||
export const defaultSendFee = calculateFee(80_000, defaultGasPrice);
|
||||
export const defaultSendFee = calculateFee(100_000, defaultGasPrice);
|
||||
|
||||
export const simapp = {
|
||||
tendermintUrl: "localhost:26658",
|
||||
|
||||
Reference in New Issue
Block a user