rubic-sdk
Version:
Simplify dApp creation
21 lines (20 loc) • 1.27 kB
TypeScript
import { TxStatusData } from "../../../../../common/status-manager/models/tx-status-data";
import { RetroBridgeQuoteResponse, RetroBridgeQuoteSendParams, RetroBridgeTxResponse, RetroBridgeTxSendParams } from '../models/retro-bridge-quote-send-params';
import { RetroBridgeToken } from '../models/retro-bridge-token';
export declare class RetroBridgeApiService {
private static readonly RETRO_BRIDGE_API_ENDPOINT;
private static API_KEY;
static getTokenLimits(fromBlockchain: string, toBlockchain: string, fromToken: string, toToken: string): Promise<{
min_send: number;
max_send: number;
}>;
static getQuote(params: RetroBridgeQuoteSendParams): Promise<RetroBridgeQuoteResponse>;
static getMessageToAuthWallet(): Promise<string>;
static sendSignedMessage(walletAddress: string, signature: string, networkType: string): Promise<never | void>;
static checkWallet(walletAddress: string, networkType: string): Promise<string>;
static createTransaction(params: RetroBridgeTxSendParams, networkType: string): Promise<RetroBridgeTxResponse>;
static getTxStatus(transactionId: string): Promise<TxStatusData>;
static getTokenList(srcChain: string, dstChain: string): Promise<{
data: RetroBridgeToken[];
}>;
}