@kodex-data/testing
Version:
```typescript import '@kodex-data/testing' ```
14 lines (13 loc) • 986 B
TypeScript
import type { ContractReceipt, Event } from '@ethersproject/contracts';
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
export declare const ZERO_BYTES = "0x0000000000000000000000000000000000000000000000000000000000000000";
export declare function findDuplicates<T extends (string | number)[]>(arr: T): T[number][];
type ReceiptOrEvents = ContractReceipt | Event[] | undefined;
export declare function expectEvents(receiptOrEvents: ReceiptOrEvents, ...eventNamesOrTopics: string[]): void;
export declare function expectEventArg<T = string>(receiptOrEvents: ReceiptOrEvents, eventNameOrTopic: string, argumentKey: string): T;
export declare function printEvents(receipt?: ContractReceipt, log?: (...values: any) => void): void;
export declare function getNetwork(): string;
export declare function getAccounts(): string[];
export declare function generateAccounts(): void;
export declare function splitEther(nodeUrl?: string): Promise<void>;
export {};