mev-inspect
Version:
A JS port of 'mev-inspect-py' optimised for ease of use.
26 lines • 1.58 kB
TypeScript
import { SwapProtocol, LendingProtocol, NftSwapProtocol } from './base.js';
declare const ETHEREUM = 1;
declare const OPTIMISM = 10;
declare const POLYGON = 137;
declare const ARBITRUM = 42161;
declare const AVALANCHE = 43114;
type ChainId = typeof ETHEREUM | typeof OPTIMISM | typeof POLYGON | typeof ARBITRUM | typeof AVALANCHE;
interface Factory {
label: string;
address: string;
}
interface LendingPool {
label: string;
addresses: string[];
}
declare const nativeAsset: Record<ChainId, string>;
declare function getFactories(chainId: ChainId, protocol: SwapProtocol): Factory[];
declare function getFactoryByAddress(chainId: ChainId, protocol: SwapProtocol, address: string): Factory | undefined;
declare function getNftFactoryByAddress(chainId: ChainId, protocol: NftSwapProtocol, address: string): Factory | undefined;
declare function getPoolByAddress(chainId: ChainId, protocol: LendingProtocol, address: string): LendingPool | undefined;
declare function isValidFactory(chainId: ChainId, protocol: SwapProtocol, factory: Factory): boolean;
declare function isValidNftFactory(chainId: ChainId, protocol: NftSwapProtocol, factory: Factory): boolean;
declare function isValidPool(chainId: ChainId, protocol: LendingProtocol, pool: string): boolean;
declare function isKnownRouter(chainId: ChainId, address: string): boolean;
export { ChainId, Factory, LendingPool, nativeAsset, getFactories, getFactoryByAddress, getNftFactoryByAddress, getPoolByAddress, isValidFactory, isValidNftFactory, isValidPool, isKnownRouter, };
//# sourceMappingURL=directory.d.ts.map