@paraswap/sdk
Version:
13 lines • 911 B
TypeScript
import { SDKConfig } from '../../sdk/partial';
import { GetAdaptersFunctions } from './adapters';
import { ApproveTokenFunctions } from './approve';
import { GetBalancesFunctions } from './balance';
import { GetRateFunctions } from './rates';
import { GetSpenderFunctions } from './spender';
import { GetSwapTxFunctions } from './swapTx';
import { GetTokensFunctions } from './token';
import { BuildTxFunctions } from './transaction';
export type SwapSDKMethods<TxResponse> = GetBalancesFunctions & GetTokensFunctions & GetSpenderFunctions & ApproveTokenFunctions<TxResponse> & BuildTxFunctions & GetAdaptersFunctions & GetRateFunctions & GetSwapTxFunctions;
/** @description construct SDK with every Swap-related method, fetching from API and token approval */
export declare const constructSwapSDK: <TxResponse>(config: SDKConfig<TxResponse>) => SwapSDKMethods<TxResponse>;
//# sourceMappingURL=index.d.ts.map