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.

20 lines (19 loc) 876 B
import { type WalletClient } from 'viem'; import type { Quote } from '../registry.js'; import { BaseSwapAdapter, type Chain, type NormalizedQuote, type NormalizedTxResponse, type QuoteParams, type SwapStatus } from './BaseSwapAdapter.js'; export declare class PegasusAdapter extends BaseSwapAdapter { private chainsCache; getName(): string; getIcon(): string; getSupportedChains(): Chain[]; getSupportedTokens(_sourceChain: Chain, _destChain: Chain): any[]; private pegasusRequest; private getChains; private getChainAssets; private toPegasusChain; private resolvePegasusToken; private selectBestRoute; getQuote(params: QuoteParams): Promise<NormalizedQuote>; executeSwap({ quote }: Quote, walletClient: WalletClient): Promise<NormalizedTxResponse>; getTransactionStatus(p: NormalizedTxResponse): Promise<SwapStatus>; }