You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
666 B
22 lines
666 B
import { addHexPrefix } from 'ethereumjs-util';
|
|
|
|
const TWENTY_ONE_THOUSAND = 21000;
|
|
const ONE_HUNDRED_THOUSAND = 100000;
|
|
|
|
export const GAS_LIMITS = {
|
|
// maximum gasLimit of a simple send
|
|
SIMPLE: addHexPrefix(TWENTY_ONE_THOUSAND.toString(16)),
|
|
// a base estimate for token transfers.
|
|
BASE_TOKEN_ESTIMATE: addHexPrefix(ONE_HUNDRED_THOUSAND.toString(16)),
|
|
};
|
|
|
|
/**
|
|
* These are already declared in @metamask/controllers but importing them from
|
|
* that module and re-exporting causes the UI bundle size to expand beyond 4MB
|
|
*/
|
|
export const GAS_ESTIMATE_TYPES = {
|
|
FEE_MARKET: 'fee-market',
|
|
LEGACY: 'legacy',
|
|
ETH_GASPRICE: 'eth_gasPrice',
|
|
NONE: 'none',
|
|
};
|
|
|