Skip to content

Commit

Permalink
chore(suite): types and receive priorityFee object
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Jan 16, 2025
1 parent 52748f5 commit 31a831b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/connect/src/types/fees.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const FeeInfo = Type.Object({
dustLimit: Type.Number(),
});

const PriorityFeeEstimationDetails = Type.Object({
export type PriorityFeeEstimationDetails = Static<typeof PriorityFeeEstimationDetails>;
export const PriorityFeeEstimationDetails = Type.Object({
maxFeePerGas: Type.String(),
maxPriorityFeePerGas: Type.String(),
maxWaitTimeEstimate: Type.Number(),
Expand Down
1 change: 1 addition & 0 deletions suite-common/wallet-types/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export interface FeeInfo {
dustLimit?: number; // coin dust limit
feeLimit?: number; // eth gas limit
levels: FeeLevel[]; // fee levels are predefined in @trezor/connect > trezor-firmware/common
priorityFees?: FeeLevel['eip1559'];
}

export type NetworksFees = Record<NetworkSymbol, FeeInfo>;
Expand Down

0 comments on commit 31a831b

Please sign in to comment.