UNPKG

mev-inspect

Version:

A JS port of 'mev-inspect-py' optimised for ease of use.

19 lines 1.36 kB
import { Block, Transaction } from './classifier/index.js'; import { Arbitrage, JitSandwich, Liquidation, Mev, NftArbitrage, Sandwich } from './mev/index.js'; declare function getBlock(mev: Mev): Block | null; declare function getTransaction(mev: Mev): Transaction | null; declare function isArbitrage(mev: Mev): boolean; declare function isLiquidation(mev: Mev): boolean; declare function isSandwich(mev: Mev): boolean; declare function isJitSandwich(mev: Mev): boolean; declare function isNftArbitrage(mev: Mev): boolean; declare function getArbitrages(mevList: Mev[]): Arbitrage[]; declare function getLiquidations(mevList: Mev[]): Liquidation[]; declare function getSandwiches(mevList: Mev[]): Sandwich[]; declare function getJitSandwiches(mevList: Mev[]): JitSandwich[]; declare function getNftArbitrages(mevList: Mev[]): NftArbitrage[]; declare function equalWithTolerance(firstValue: bigint, secondValue: bigint, threshold: number): boolean; declare function minByAbs(a: bigint, b: bigint): bigint; declare function groupBy<T>(arr: T[], filter: (item: T) => string): Record<string, T[]>; export { equalWithTolerance, getArbitrages, getBlock, getJitSandwiches, getLiquidations, getNftArbitrages, getSandwiches, getTransaction, groupBy, isArbitrage, isLiquidation, isSandwich, isJitSandwich, isNftArbitrage, minByAbs, }; //# sourceMappingURL=utils.d.ts.map