@accret/bridge-sdk
Version:
31 lines • 1.45 kB
TypeScript
import { executeSwap, getQuote, getTokenList } from "./lib";
import { AccretSupportedChain, AccretSupportedProvider } from "./types";
import type { QuoteResponse as JupiterQuoteResponse } from "@jup-ag/api";
import type { Quote as MayanQuoteResponse } from "@mayanfinance/swap-sdk";
import type { CrossChainQuoteResponse as DeBridgeCrossChainQuoteResponse, SingleChainQuoteResponse as DeBridgeSingleChainQuoteResponse } from "./types/deBridge/getQuote";
export interface AccretSupportedRawQuotes {
jupiterQuote: JupiterQuoteResponse;
mayanQuote: MayanQuoteResponse;
DebridgeSingleChainQuote: DeBridgeSingleChainQuoteResponse;
DeBridgeCrossChainQuoteResponse: DeBridgeCrossChainQuoteResponse;
}
export declare class AccretBridgeClient {
private static instance;
constructor();
/**
* Initializes the Accret bridge client with the provided API keys.
* @param infuraApiKey - The Infura API key.
* @param heliusApiKey - The Helius API key.
* @throws An error if any of the API keys are invalid.
*/
configure({ infuraApiKey, heliusApiKey, }: {
infuraApiKey: string;
heliusApiKey: string;
}): Promise<AccretBridgeClient>;
getQuote: typeof getQuote;
executeSwap: typeof executeSwap;
getTokenList: typeof getTokenList;
AccretSupportedChain: typeof AccretSupportedChain;
AccretSupportedProvider: typeof AccretSupportedProvider;
}
//# sourceMappingURL=index.d.ts.map