deth
Version:
Ethereum node focused on Developer Experience
20 lines (19 loc) • 584 B
TypeScript
import { utils } from 'ethers';
import { Path } from '../fs/Path';
import { FileSystem } from '../fs/FileSystem';
interface SimpleLog {
topics: string[];
data: string;
}
export declare class AbiDecoder {
private readonly fs;
constructor(fs: FileSystem);
private readonly ABIs;
private iface;
loadAbi(path: Path): void;
loadAbis(glob: string, basePath: Path): void;
addAbi(abi: object[]): void;
decodeLog(log: SimpleLog): utils.LogDescription | undefined;
decodeCalldata(data: string): utils.TransactionDescription | undefined;
}
export {};