diff options
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index dc2a4d848..861df3187 100644 --- a/src/types.ts +++ b/src/types.ts @@ -17,6 +17,11 @@ export const ZeroExError = strEnum([ ]); export type ZeroExError = keyof typeof ZeroExError; +export const InternalError = strEnum([ + 'PROXY_ADDRESS_NOT_FOUND', +]); +export type InternalError = keyof typeof InternalError; + /** * Elliptic Curve signature */ @@ -45,6 +50,17 @@ export interface ExchangeContract { ) => ContractResponse; } +export interface TokenContract { + balanceOf: { + call: (address: string) => Promise<BigNumber.BigNumber>; + }; + allowance: { + call: (ownerAddress: string, allowedAddress: string) => Promise<BigNumber.BigNumber>; + }; + transfer: (to: string, amountInBaseUnits: BigNumber.BigNumber, opts: any) => Promise<boolean>; + approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, opts: any) => void; +} + export interface TokenRegistryContract { getTokenMetaData: { call: (address: string) => Promise<TokenMetadata>; |