@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
69 lines (68 loc) • 1.51 kB
TypeScript
import type { TFunction } from 'i18next';
export declare enum PendingQuoteMessage {
PREPARING = 0,
VERIFYING_PROVIDER = 1,
ESTIMATING_GAS = 2,
FINALIZING = 3
}
export declare const getPendingQuoteMessageGenerator: (t: TFunction) => {
0: () => string;
1: (provider: string) => string;
2: () => string;
3: () => string;
};
export declare const getQuoteApiErrorStringInfo: (t: TFunction) => {
0: {
check: string;
display: string;
};
1: {
check: string;
display: string;
};
6: {
check: string;
display: string;
};
2: {
check: string;
display: string;
};
3: {
check: string;
display: string;
};
4: {
check: string;
display: string;
};
5: {
check: string;
display: string;
};
};
export declare enum QuoteCustomErrorType {
INSUFFICIENT_BALANCE_PRE_CHECK = 0,
INSUFFICIENT_TOKEN_BALANCE_PRE_CHECK = 1,
INSUFFICIENT_BALANCE_POST_CHECK = 2,
INSUFFICIENT_AMOUNT_POST_CHECK = 3
}
export declare const getQuoteCustomErrorStringInfo: (t: TFunction) => {
0: {
check: string;
display: string;
};
1: {
check: string;
display: string;
};
2: {
check: string;
display: string;
};
3: {
check: string;
display: string;
};
};
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): string;