@aryze/reforge-sdk
Version:
SDK for interacting with reForge from ARYZE.
109 lines (108 loc) • 2.39 kB
TypeScript
import * as consts from './lib/constants';
import { TXRequest } from './lib/types';
export * from './lib/types';
export declare const prepareReforge: (sourceAmount: string, sourceToken: string, destinationToken: string, destinationChainId: number | string, sourceRpcUrl?: string) => {
status: boolean;
tx: string;
error?: undefined;
} | {
status: boolean;
error: any;
tx?: undefined;
};
export declare const executeReforgeAsync: (request: TXRequest) => Promise<{
status: boolean;
reciept: any;
error?: undefined;
} | {
status: boolean;
error: any;
reciept?: undefined;
}>;
export declare const executeReforge: (request: TXRequest) => Promise<{
status: boolean;
tx: any;
error?: undefined;
} | {
status: boolean;
error: any;
tx?: undefined;
}>;
export declare const SUPPORTED_CHAINS: typeof consts.BRIDGE_SUPPORTED_CHAINS_HEX;
export declare const SUPPORTED_TEST_CHAINS: typeof consts.BRIDGE_SUPPORTED_CHAINS_TEST_HEX;
export declare const TOKEN_IDS: {
"0x38": {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
"0x1": {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
"0x89": {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
"0x61": {
eEUR: string;
eUSD: string;
eGBP: string;
};
"0x5": {
eEUR: string;
eUSD: string;
eGBP: string;
};
"0x13881": {
eEUR: string;
eUSD: string;
eGBP: string;
};
};
export declare const TOKEN_NAMES: {
BINANCE: {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
MAINNET: {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
POLYGON: {
RYZE: string;
eEUR: string;
eUSD: string;
eGBP: string;
eSGD: string;
};
BINANCE_TESTNET: {
eEUR: string;
eUSD: string;
eGBP: string;
};
GOERLI: {
eEUR: string;
eUSD: string;
eGBP: string;
};
MUMBAI: {
eEUR: string;
eUSD: string;
eGBP: string;
};
};