From de01d0ca58eb7e67c20d4e7e4b3a8240bfeda190 Mon Sep 17 00:00:00 2001 From: Daniela Chybisova Date: Tue, 10 Sep 2024 11:50:53 +0200 Subject: [PATCH] feat: add includedSteps array to full status response (#275) --- src/api.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index a98e40d..8f48663 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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' /** @@ -404,6 +404,7 @@ export interface ExtendedTransactionInfo extends BaseTransactionInfo { gasAmountUSD: string timestamp?: number value?: string + includedSteps?: IncludedStep[] } export interface PendingReceivingInfo { @@ -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