DappContextType: {
    checkout?: CheckoutOperation["checkout"];
    checkoutOperation: CheckoutOperation | null;
    createCheckoutTransactionBundleCb?: ((caller) => string);
    createProviderError: string;
    estimatePrice?: CheckoutOperation["estimatePrice"];
    estimatedPrice?: SwapEstimation;
    getDestinationTx?: CheckoutOperation["getDestinationTx"];
    isInitialized: boolean;
    loadPaymentTokens?: CheckoutOperation["getPaymentTokens"];
    params?: CheckoutOperationParams;
    provider: IProvider | null;
    selectedChain?: BridgeChain;
    selectedPaymentToken?: PaymentToken | null;
    selectedSwapToken?: Token;
    setEstimatedPrice: React.Dispatch<React.SetStateAction<SwapEstimation | undefined>>;
    setSelectedChain: React.Dispatch<React.SetStateAction<BridgeChain | undefined>>;
    setSelectedPaymentToken: React.Dispatch<React.SetStateAction<PaymentToken | undefined | null>>;
    setSelectedProviderProxy: React.Dispatch<React.SetStateAction<ProviderProxyConstructor | undefined>>;
    supportedChains: BridgeChain[];
}

Type declaration

  • Optional checkout?: CheckoutOperation["checkout"]
  • checkoutOperation: CheckoutOperation | null
  • Optional createCheckoutTransactionBundleCb?: ((caller) => string)
      • (caller): string
      • Parameters

        • caller: string

        Returns string

  • createProviderError: string
  • Optional estimatePrice?: CheckoutOperation["estimatePrice"]
  • Optional estimatedPrice?: SwapEstimation
  • Optional getDestinationTx?: CheckoutOperation["getDestinationTx"]
  • isInitialized: boolean
  • Optional loadPaymentTokens?: CheckoutOperation["getPaymentTokens"]
  • Optional params?: CheckoutOperationParams
  • provider: IProvider | null
  • Optional selectedChain?: BridgeChain
  • Optional selectedPaymentToken?: PaymentToken | null
  • Optional selectedSwapToken?: Token
  • setEstimatedPrice: React.Dispatch<React.SetStateAction<SwapEstimation | undefined>>
  • setSelectedChain: React.Dispatch<React.SetStateAction<BridgeChain | undefined>>
  • setSelectedPaymentToken: React.Dispatch<React.SetStateAction<PaymentToken | undefined | null>>
  • setSelectedProviderProxy: React.Dispatch<React.SetStateAction<ProviderProxyConstructor | undefined>>
  • supportedChains: BridgeChain[]

Generated using TypeDoc