@cfxlabsinc/b2b-services
    Preparing search index...
    type SwapLegInput = {
        owner: {
            identityId: TransactionLeg["identityId"];
            organizationId: TransactionLeg["organizationId"];
        };
        productQuote: | { id: TransactionLeg["productQuoteId"] } & Pick<
            SelectProductQuote,
            | "sourceAmount"
            | "targetAmountAfterFees"
            | "totalFees"
            | "sourceCurrency"
            | "targetCurrency",
        >
        | null;
        quote: | Pick<SelectSwapQuote, "source" | "target"> & {
            sourceSymbol: string;
            targetSymbol: string;
        }
        | null;
        settlements: ReadonlyMap<string, ChainSettlement>;
        swap: Pick<
            SelectSwap,
            "externalId"
            | "status"
            | "receipt"
            | "source"
            | "amount",
        > & {
            createdAt: Temporal.Instant;
            customerId: TransactionLeg["customerId"];
            depositSymbol: string | null;
            ledgerAccountId: TransactionLeg["ledgerAccountId"];
        };
    }
    Index
    owner: {
        identityId: TransactionLeg["identityId"];
        organizationId: TransactionLeg["organizationId"];
    }

    The quote's identity or organization, or with no quote its ledger account's.

    productQuote:
        | { id: TransactionLeg["productQuoteId"] } & Pick<
            SelectProductQuote,
            | "sourceAmount"
            | "targetAmountAfterFees"
            | "totalFees"
            | "sourceCurrency"
            | "targetCurrency",
        >
        | null
    quote:
        | Pick<SelectSwapQuote, "source" | "target"> & {
            sourceSymbol: string;
            targetSymbol: string;
        }
        | null

    Null on a DEPOSIT swap not yet priced.

    Type Declaration

    • Pick<SelectSwapQuote, "source" | "target"> & {
          sourceSymbol: string;
          targetSymbol: string;
      }
      • sourceSymbol: string

        Each side's token symbol: its b2b.token's, else the stored currency.

      • targetSymbol: string
    • null
    settlements: ReadonlyMap<string, ChainSettlement>

    Each receipt signature's Solana transaction, by signature.

    swap: Pick<
        SelectSwap,
        "externalId"
        | "status"
        | "receipt"
        | "source"
        | "amount",
    > & {
        createdAt: Temporal.Instant;
        customerId: TransactionLeg["customerId"];
        depositSymbol: string | null;
        ledgerAccountId: TransactionLeg["ledgerAccountId"];
    }

    Type Declaration