UNPKG

@openocean.finance/widget

Version:

Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

16 lines (15 loc) 753 B
import { Currency } from '../constants/index.js'; import { WalletClient } from 'viem'; import { Quote } from '../registry.js'; import { BaseSwapAdapter, Chain, EvmQuoteParams, NormalizedQuote, NormalizedTxResponse, SwapStatus } from './BaseSwapAdapter.js'; export declare class AcrossAdapter extends BaseSwapAdapter { private acrossClient; constructor(); getName(): string; getIcon(): string; getSupportedChains(): Chain[]; getSupportedTokens(_sourceChain: Chain, _destChain: Chain): Currency[]; getQuote(params: EvmQuoteParams): Promise<NormalizedQuote>; executeSwap(quote: Quote, walletClient: WalletClient): Promise<NormalizedTxResponse>; getTransactionStatus(params: NormalizedTxResponse): Promise<SwapStatus>; }