Skip to content

Instantly share code, notes, and snippets.

@geekygeeky
Last active May 26, 2025 18:32
Show Gist options
  • Select an option

  • Save geekygeeky/f1d3507e25aac51f278fa266f8e60b7c to your computer and use it in GitHub Desktop.

Select an option

Save geekygeeky/f1d3507e25aac51f278fa266f8e60b7c to your computer and use it in GitHub Desktop.
export type StandardQuoteResponse = {
fees?: StandardFees;
details?: BridgeDetails;
steps: BridgeSteps[];
};
export type StandardFees = {
gas: AssetAmount | undefined;
bridgeProtocolFees: AssetAmount | undefined;
};
export interface BridgeDetails {
operation: QuoteStepId; // string
sender: string;
recipient: string;
currencyIn: AssetAmount;
currencyOut: AssetAmount;
}
export type BridgeSteps = {
action: string;
description: string;
kind: "transaction" | "signature";
id: QuoteStepId;
requestId?: string;
depositAddress?: string;
items: {
trxType?: ProviderType;
data?: any;
}[];
};
export interface AssetAmount {
asset: Asset;
amount: number;
amountFormatted?: string;
amountUsd?: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment