diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 17:04:42 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 17:04:42 +0800 |
commit | 9daca6a4be95a87a63e293300d0768e3e63162d2 (patch) | |
tree | ffa51a7275532557a6bd5097f1ced3a19b0725d0 /src/types.ts | |
parent | 56dc33f3a6ef0a9ae00d62d816000dab4cfea07f (diff) | |
download | dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar.gz dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar.bz2 dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar.lz dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar.xz dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.tar.zst dexon-0x-contracts-9daca6a4be95a87a63e293300d0768e3e63162d2.zip |
Address feedback
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/types.ts b/src/types.ts index 92cafd409..fa3560ef8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -44,7 +44,10 @@ export interface ContractEventObj { } export type CreateContractEvent = (indexFilterValues: IndexFilterValues, subscriptionOpts: SubscriptionOpts) => ContractEventObj; -export interface ExchangeContract { +export interface ContractInstance { + address: string; +} +export interface ExchangeContract extends ContractInstance { isValidSignature: { call: (signerAddressHex: string, dataHex: string, v: number, r: string, s: string, txOpts?: TxOpts) => Promise<boolean>; @@ -85,7 +88,7 @@ export interface ExchangeContract { }; } -export interface TokenContract { +export interface TokenContract extends ContractInstance { balanceOf: { call: (address: string) => Promise<BigNumber.BigNumber>; }; @@ -98,7 +101,7 @@ export interface TokenContract { approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => void; } -export interface TokenRegistryContract { +export interface TokenRegistryContract extends ContractInstance { getTokenMetaData: { call: (address: string) => Promise<TokenMetadata>; }; |