diff options
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>; }; |