From f046a8776597412a7ccb3bc8381b98e1ecae745e Mon Sep 17 00:00:00 2001 From: Manuel Gellfart Date: Mon, 14 Aug 2023 12:53:15 +0200 Subject: [PATCH] feat: fixed EIP-1559 gasprice (#126) --- src/types/chains.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/types/chains.ts b/src/types/chains.ts index dcebafdc..1474a75f 100644 --- a/src/types/chains.ts +++ b/src/types/chains.ts @@ -32,6 +32,7 @@ export type Theme = { export enum GAS_PRICE_TYPE { ORACLE = 'ORACLE', FIXED = 'FIXED', + FIXED_1559 = 'FIXED1559', UNKNOWN = 'UNKNOWN', } @@ -47,11 +48,17 @@ export type GasPriceFixed = { weiValue: string } +export type GasPriceFixedEIP1559 = { + type: GAS_PRICE_TYPE.FIXED_1559 + maxFeePerGas: string + maxPriorityFeePerGas: string +} + export type GasPriceUnknown = { type: GAS_PRICE_TYPE.UNKNOWN } -export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceUnknown)[] +export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceFixedEIP1559 | GasPriceUnknown)[] export enum FEATURES { ERC721 = 'ERC721',