diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-31 16:43:09 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-31 16:43:09 +0800 |
commit | 2acdc627e2eaa1d562de6243045c701caa9468c8 (patch) | |
tree | d1907332bd9b2dd4b33f028f72538b8adccbd188 /src | |
parent | 03072049d67f460e2420ed5e05a91ab1c06972ac (diff) | |
download | dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar.gz dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar.bz2 dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar.lz dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar.xz dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.tar.zst dexon-sol-tools-2acdc627e2eaa1d562de6243045c701caa9468c8.zip |
Add TxOpts type
Diffstat (limited to 'src')
-rw-r--r-- | src/types.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index caef50993..3619c800f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -38,7 +38,7 @@ export interface TokenContract { allowance: { call: (ownerAddress: string, allowedAddress: string) => Promise<BigNumber.BigNumber>; }; - approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, opts: any) => void; + approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => void; } export interface TokenRegistryContract { @@ -66,3 +66,8 @@ export interface Token { decimals: number; url: string; }; + +export interface TxOpts { + from: string; + gas?: number; +}; |