aboutsummaryrefslogtreecommitdiffstats
path: root/packages/ethers-typescript-typings/index.d.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-27 09:03:09 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-28 04:06:02 +0800
commit34c1134b55c202b47ac4672a4c9025e4be9e21b4 (patch)
tree2a4f75240fc3a085ea4f91e8fb462cb7ba618125 /packages/ethers-typescript-typings/index.d.ts
parenta5ef1db0c56e4166641c19b46641921a3b1e509f (diff)
downloaddexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar.gz
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar.bz2
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar.lz
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar.xz
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.tar.zst
dexon-sol-tools-34c1134b55c202b47ac4672a4c9025e4be9e21b4.zip
Create ethers-typescript-typings
Diffstat (limited to 'packages/ethers-typescript-typings/index.d.ts')
-rw-r--r--packages/ethers-typescript-typings/index.d.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/ethers-typescript-typings/index.d.ts b/packages/ethers-typescript-typings/index.d.ts
new file mode 100644
index 000000000..f4f99b890
--- /dev/null
+++ b/packages/ethers-typescript-typings/index.d.ts
@@ -0,0 +1,29 @@
+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 {
+ parse: (...args: any[]) => any;
+ 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 };
+ public static decodeParams(types: string[], data: string): any[];
+ constructor(abi: any);
+ }
+}