randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
5 lines (4 loc) • 554 B
TypeScript
import { EventFragment, Interface, ParamType, Result, TransactionReceipt } from "ethers";
export declare function extractLogs<T extends Interface, E extends EventFragment>(iface: T, receipt: TransactionReceipt, contractAddress: string, event: E): Array<Result>;
export declare function extractSingleLog<T extends Interface, E extends EventFragment>(iface: T, receipt: TransactionReceipt, contractAddress: string, event: E): Result;
export declare const encodeParams: (dataTypes: readonly ParamType[] | readonly string[], data: readonly any[]) => string;