UNPKG

@wormhole-foundation/sdk-connect

Version:

The core package for the Connect SDK, used in conjunction with 1 or more of the chain packages

27 lines 1.4 kB
import type { Chain, Network } from "@wormhole-foundation/sdk-base"; import { amount } from "@wormhole-foundation/sdk-base"; import type { ChainContext, TokenId } from "@wormhole-foundation/sdk-definitions"; import { ChainAddress } from "@wormhole-foundation/sdk-definitions"; import type { TransferQuote } from "../types.js"; import type { Wormhole } from "../wormhole.js"; import type { TokenDetails } from "./token.js"; import type { Quote, ValidatedTransferParams } from "./types.js"; export declare class RouteTransferRequest<N extends Network> { source: TokenDetails; destination: TokenDetails; fromChain: ChainContext<N>; toChain: ChainContext<N>; recipient?: ChainAddress; private constructor(); parseAmount(amt: string): amount.Amount; amountFromBaseUnits(amt: bigint): amount.Amount; displayQuote<OP, VP extends ValidatedTransferParams<OP> = ValidatedTransferParams<OP>>(quote: TransferQuote, params: VP, details?: any): Promise<Quote<OP, VP>>; static create<N extends Network, FC extends Chain, TC extends Chain>(wh: Wormhole<N>, params: { source: TokenId<FC>; destination: TokenId<TC>; sourceDecimals?: number; destinationDecimals?: number; recipient?: ChainAddress; }, fromChain?: ChainContext<N, FC>, toChain?: ChainContext<N, TC>): Promise<RouteTransferRequest<N>>; } //# sourceMappingURL=request.d.ts.map