@velora-dex/sdk
Version:
22 lines • 878 B
TypeScript
import type { ConstructFetchInput, Address, RequestParameters } from '../../types';
export type GetSpender<T = Address> = (requestParams?: RequestParameters) => Promise<T>;
type GetContracts = (requestParams?: RequestParameters) => Promise<AdaptersContractsResult>;
export type GetSpenderFunctions = {
getSpender: GetSpender;
getAugustusSwapper: GetSpender;
getAugustusRFQ: GetSpender;
getDelta: GetSpender<Address | null>;
getContracts: GetContracts;
};
export interface AdaptersContractsResult {
AugustusSwapper: string;
TokenTransferProxy: string;
AugustusRFQ: string;
Executors: {
[key: `Executor${number}`]: string;
};
ParaswapDelta?: string;
}
export declare const constructGetSpender: ({ apiURL, version, chainId, fetcher, }: ConstructFetchInput) => GetSpenderFunctions;
export {};
//# sourceMappingURL=spender.d.ts.map