diff options
author | Jacob Evans <dekz@dekz.net> | 2018-04-20 06:49:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 06:49:23 +0800 |
commit | 62a55c013516c82eb4aa26c90db7533cd72f8d1b (patch) | |
tree | a96728392d7f9890e8a8f5a8c18627acc2ea8f28 /packages/typescript-typings | |
parent | f6fd4281a4772c28521fa606bd37f16a21dbe23c (diff) | |
parent | 72336eb393d775817619a354d784b7dea4e243bf (diff) | |
download | dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar.gz dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar.bz2 dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar.lz dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar.xz dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.tar.zst dexon-sol-tools-62a55c013516c82eb4aa26c90db7533cd72f8d1b.zip |
Merge pull request #540 from 0xProject/feature/abi-gen/tuple-return-types
Support Tuples returned from functions
Diffstat (limited to 'packages/typescript-typings')
-rw-r--r-- | packages/typescript-typings/CHANGELOG.json | 9 | ||||
-rw-r--r-- | packages/typescript-typings/types/ethers/index.d.ts (renamed from packages/typescript-typings/types/ethers-contracts/index.d.ts) | 9 |
2 files changed, 15 insertions, 3 deletions
diff --git a/packages/typescript-typings/CHANGELOG.json b/packages/typescript-typings/CHANGELOG.json index a2f1e7615..f3f68d509 100644 --- a/packages/typescript-typings/CHANGELOG.json +++ b/packages/typescript-typings/CHANGELOG.json @@ -1,5 +1,14 @@ [ { + "version": "0.3.0", + "changes": [ + { + "note": "Add types for `ethers.js`, removing `ethers-contracts`", + "pr": 540 + } + ] + }, + { "version": "0.2.0", "changes": [ { diff --git a/packages/typescript-typings/types/ethers-contracts/index.d.ts b/packages/typescript-typings/types/ethers/index.d.ts index e5d38819e..7e04c7dd1 100644 --- a/packages/typescript-typings/types/ethers-contracts/index.d.ts +++ b/packages/typescript-typings/types/ethers/index.d.ts @@ -1,4 +1,4 @@ -declare module 'ethers-contracts' { +declare module 'ethers' { export interface TransactionDescription { name: string; signature: string; @@ -12,17 +12,20 @@ declare module 'ethers-contracts' { (...params: any[]): TransactionDescription | CallDescription; inputs: { names: string[]; types: string[] }; outputs: { names: string[]; types: string[] }; + type: string; } export interface EventDescription { parse: (...args: any[]) => any; inputs: { names: string[]; types: string[] }; signature: string; - topic: string; + topics: string[]; } export class Interface { public functions: { [functionName: string]: FunctionDescription }; public events: { [eventName: string]: EventDescription }; - public static decodeParams(types: string[], data: string): any[]; constructor(abi: any); } + export class Contract { + constructor(address: string, abi: any, provider: any); + } } |