aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 16:48:34 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 16:48:34 +0800
commit1e69d2d1e1d27b5438d9064bd9a41cd53014770f (patch)
treebd2ac2af5eb553c89f4231b51a0c505d2c201977 /src
parentf2cd368a491fd868b063e4023bba1dc2b395b387 (diff)
downloaddexon-sol-tools-1e69d2d1e1d27b5438d9064bd9a41cd53014770f.tar.gz
dexon-sol-tools-1e69d2d1e1d27b5438d9064bd9a41cd53014770f.tar.zst
dexon-sol-tools-1e69d2d1e1d27b5438d9064bd9a41cd53014770f.zip
Improve type definitions
Diffstat (limited to 'src')
-rw-r--r--src/types.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts
index 57ffcd44b..6fce95706 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -31,8 +31,12 @@ export interface ExchangeContract {
}
export interface TokenRegistryContract {
- getTokenMetaData: any;
- getTokenAddresses: any;
+ getTokenMetaData: {
+ call: (address: string) => Promise<TokenMetadata>;
+ };
+ getTokenAddresses: {
+ call: () => Promise<string[]>;
+ };
}
export const SolidityTypes = strEnum([