UNPKG

@triadxyz/triad-protocol

Version:

<div align="center"> <h1>Triad Protocol</h1> </div>

15 lines (14 loc) 542 B
import { AddressLookupTableAccount, Connection, TransactionInstruction } from '@solana/web3.js'; export declare const swap: ({ connection, wallet, inToken, outToken, amount }: { connection: Connection; wallet: string; inToken: string; outToken: string; amount: number; }) => Promise<{ swapIxs: TransactionInstruction[]; addressLookupTableAccounts: AddressLookupTableAccount[]; setupInstructions: TransactionInstruction[]; outAmount: any; }>; export declare const getPrice: (token: string) => Promise<any>;