@swapnet-xyz/sdk
Version:
TypeScript SDK for SwapNet API.
36 lines (35 loc) • 1.24 kB
TypeScript
export declare const ChainId: {
readonly EthereumMainnet: 1;
readonly ArbitrumOne: 42161;
readonly BaseMainnet: 8453;
readonly BlastMainnet: 81457;
readonly SuiMainnet: 101;
readonly UnichainMainnet: 130;
};
export type ChainName = keyof typeof ChainId;
export type ChainId = typeof ChainId[ChainName];
export declare const getChainName: (chainId: ChainId) => ChainName;
export declare const availableChainIds: (1 | 42161 | 8453 | 81457 | 101 | 130)[];
export declare enum LiquiditySourceUname {
UniswapV2 = "UniswapV2",
UniswapV3 = "UniswapV3",
UniswapV4 = "UniswapV4",
PancakeswapV3 = "PancakeswapV3",
CurveV1 = "CurveV1",
Clipper = "Clipper",
SushiswapV2 = "SushiswapV2",
SushiswapV3 = "SushiswapV3",
NativeOrderbook = "Orderbook-Native",
NativeLimitOrder = "LimitOrder-Native",
BebopOrderbook = "Orderbook-Bebop",
BebopLimitOrder = "LimitOrder-Bebop",
AerodromeV2 = "AerodromeV2",
AerodromeV3 = "AerodromeV3",
ThrusterV2_3k = "ThrusterV2-3k",
ThrusterV2_10k = "ThrusterV2-10k",
ThrusterV3 = "ThrusterV3",
Blasterswap = "Blasterswap",
RingswapV2 = "RingswapV2",
Cetus = "Cetus"
}
export declare const universalRouterUname: string;