Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixed EIP-1559 gasprice #126

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading