Skip to content

Commit

Permalink
feat: fixed EIP-1559 gasprice (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Aug 14, 2023
1 parent 1217b60 commit f046a87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/types/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export type Theme = {
export enum GAS_PRICE_TYPE {
ORACLE = 'ORACLE',
FIXED = 'FIXED',
FIXED_1559 = 'FIXED1559',
UNKNOWN = 'UNKNOWN',
}

Expand All @@ -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',
Expand Down

0 comments on commit f046a87

Please sign in to comment.