Skip to content

Commit

Permalink
feat: add includedSteps array to full status response (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
melianessa authored Sep 10, 2024
1 parent 107a3ff commit de01d0c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { BridgeDefinition } from './bridges.js'
import type { Chain, ChainId, ChainKey, ChainType } from './chains/index.js'
import type { ExchangeDefinition } from './exchanges.js'
import type { Action, LiFiStep } from './step.js'
import type { Action, LiFiStep, StepToolDetails } from './step.js'
import type { Token } from './tokens/index.js'

/**
Expand Down Expand Up @@ -404,6 +404,7 @@ export interface ExtendedTransactionInfo extends BaseTransactionInfo {
gasAmountUSD: string
timestamp?: number
value?: string
includedSteps?: IncludedStep[]
}

export interface PendingReceivingInfo {
Expand Down Expand Up @@ -505,6 +506,16 @@ interface TransferMetadata {
integrator: string
}

export type IncludedStep = {
fromAmount: string
fromToken: Token
toAmount: string
toToken: string
bridgedAmount?: string
tool: string
toolDetails: StepToolDetails
}

export interface FullStatusData extends StatusData {
transactionId: string
sending: ExtendedTransactionInfo
Expand Down

0 comments on commit de01d0c

Please sign in to comment.