-
Notifications
You must be signed in to change notification settings - Fork 1
/
typings.d.ts
37 lines (35 loc) · 992 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare module 'openzeppelin-test-helpers' {
export interface ExpectRevert {
(promise: Promise<any>, msg: string): Promise<any>;
assertion: (promise: Promise<any>) => Promise<any>;
unspecified: (promise: Promise<any>) => Promise<any>;
}
export const expectRevert: ExpectRevert;
export const time: {
increase: (n: number) => Promise<any>;
latest: () => Promise<any>;
duration: {
seconds: (n: number) => any;
minutes: (n: number) => any;
hours: (n: number) => any;
days: (n: number) => any;
weeks: (n: number) => any;
years: (n: number) => any;
};
};
export const constants: any;
export const expectEvent: (
receipt: Truffle.TransactionResponse<Truffle.AnyEvent>,
eventName: string,
eventArgs: {},
) => Promise<any>;
}
declare namespace Chai {
interface Assertion {
bignumber: Assertion;
}
}
declare module 'chai-bn' {
const f: (bn: any) => (chai: any, utils: any) => null;
export = f;
}