flashloan-profit-calculator
Version:
A library for analyzing flashloan transactions and calculating profits
27 lines (26 loc) • 500 B
TypeScript
export interface TransferLog {
name: string;
anonymous: boolean;
raw: {
address: string;
topics: string[];
data: string;
};
inputs: {
value: number | string;
type: string;
name: string;
indexed: boolean;
}[];
}
export interface TraceCall {
type: string;
from: string;
to: string;
value?: string;
input?: string;
output?: string;
gas?: string;
gasUsed?: string;
calls?: TraceCall[];
}