Skip to content

Commit f046a87

Browse files
authored
feat: fixed EIP-1559 gasprice (#126)
1 parent 1217b60 commit f046a87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/types/chains.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type Theme = {
3232
export enum GAS_PRICE_TYPE {
3333
ORACLE = 'ORACLE',
3434
FIXED = 'FIXED',
35+
FIXED_1559 = 'FIXED1559',
3536
UNKNOWN = 'UNKNOWN',
3637
}
3738

@@ -47,11 +48,17 @@ export type GasPriceFixed = {
4748
weiValue: string
4849
}
4950

51+
export type GasPriceFixedEIP1559 = {
52+
type: GAS_PRICE_TYPE.FIXED_1559
53+
maxFeePerGas: string
54+
maxPriorityFeePerGas: string
55+
}
56+
5057
export type GasPriceUnknown = {
5158
type: GAS_PRICE_TYPE.UNKNOWN
5259
}
5360

54-
export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceUnknown)[]
61+
export type GasPrice = (GasPriceOracle | GasPriceFixed | GasPriceFixedEIP1559 | GasPriceUnknown)[]
5562

5663
export enum FEATURES {
5764
ERC721 = 'ERC721',

0 commit comments

Comments
 (0)