aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/globals.d.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-24 04:53:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:05:23 +0800
commit9d9cab1711f2d5c77376056affc1d7287211c18d (patch)
tree695c3934b2cfb8726fc8472fc5ddb57c94ce5a86 /packages/contracts/globals.d.ts
parentfe8f2d8d898e9909636366c9ceee37a5e9481573 (diff)
downloaddexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar.gz
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar.bz2
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar.lz
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar.xz
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.tar.zst
dexon-sol-tools-9d9cab1711f2d5c77376056affc1d7287211c18d.zip
Fix build by using local events types
Diffstat (limited to 'packages/contracts/globals.d.ts')
-rw-r--r--packages/contracts/globals.d.ts28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/contracts/globals.d.ts b/packages/contracts/globals.d.ts
index 0e6586a4b..fe39fb11d 100644
--- a/packages/contracts/globals.d.ts
+++ b/packages/contracts/globals.d.ts
@@ -32,3 +32,31 @@ declare module 'ethereumjs-abi' {
const soliditySHA3: (argTypes: string[], args: any[]) => Buffer;
const methodID: (name: string, types: string[]) => Buffer;
}
+
+declare module 'ethers-contracts' {
+ export interface TransactionDescription {
+ name: string;
+ signature: string;
+ sighash: string;
+ data: string;
+ }
+ export interface CallDescription extends TransactionDescription {
+ parse: (...args: any[]) => any;
+ }
+ export interface FunctionDescription {
+ (...params: any[]): TransactionDescription | CallDescription;
+ inputs: { names: string[]; types: string[] };
+ outputs: { names: string[]; types: string[] };
+ }
+ export interface EventDescription {
+ inputs: { names: string[]; types: string[] };
+ signature: string;
+ topic: string;
+ }
+ // tslint:disable-next-line:max-classes-per-file
+ export class Interface {
+ public functions: { [functionName: string]: FunctionDescription };
+ public events: { [eventName: string]: EventDescription };
+ constructor(abi: any);
+ }
+}