jcc-moac-abi
Version:
Decoder and encoder for the MOAC ABI and decode events from MOAC transactions
47 lines (46 loc) • 868 B
TypeScript
export interface ILog {
TxData: string;
address: string;
blockHash: string;
blockNumber: number;
logIndex: number;
removed: number;
topics: string[];
transactionHash: string;
transactionIndex: number;
}
interface IEvent {
name: string;
type: string;
value: any;
}
export interface IDecodedLog extends ILog {
events?: IEvent[];
name?: string;
}
export interface IDecoded {
name: string;
value: any;
type: string;
}
interface IInput {
name: string;
type: string;
indexed?: boolean;
components?: any;
}
interface IOutput {
name: string;
type: string;
components?: any;
}
export interface IABIItem {
type?: string;
name?: string;
inputs?: IInput[];
outputs?: IOutput[];
stateMutability?: string;
payable?: boolean;
constant?: boolean;
}
export {};