PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/micro-eth-signer/lib/api
Просмотр файла: uniswap-v2.d.ts
import * as abi from '../web3.js';
import * as uni from './uniswap-common.js';
export declare const FACTORY_ADDRESS = "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f";
export declare const INIT_CODE_HASH: Uint8Array;
export declare function create2(from: Uint8Array, salt: Uint8Array, initCodeHash: Uint8Array): string;
export declare function pairAddress(a: string, b: string, factory?: string): string;
export declare function reserves(net: abi.Web3API, a: string, b: string): Promise<[bigint, bigint]>;
export declare function amount(reserveIn: bigint, reserveOut: bigint, amountIn?: bigint, amountOut?: bigint): bigint;
export type Path = {
path: string[];
amountIn: bigint;
amountOut: bigint;
};
export declare function bestPath(net: abi.Web3API, tokenA: string, tokenB: string, amountIn?: bigint, amountOut?: bigint): Promise<Path>;
export declare const TX_DEFAULT_OPT: {
feeOnTransfer: boolean;
slippagePercent: number;
ttl: number;
};
export declare function txData(to: string, input: string, output: string, path: Path, amountIn?: bigint, amountOut?: bigint, opt?: {
ttl: number;
deadline?: number;
slippagePercent: number;
feeOnTransfer: boolean;
}): {
to: string;
value: bigint;
data: any;
allowance: {
token: string;
amount: bigint;
} | undefined;
};
export declare class UniswapV2 extends uni.UniswapAbstract {
name: string;
contract: string;
bestPath(fromCoin: string, toCoin: string, inputAmount: bigint): Promise<Path>;
txData(toAddress: string, fromCoin: string, toCoin: string, path: any, inputAmount?: bigint, outputAmount?: bigint, opt?: uni.SwapOpt): any;
}
//# sourceMappingURL=uniswap-v2.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!