diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 21:27:51 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 21:27:51 +0800 |
commit | b5e496ea0f04206b74b37d71d6ba3e6975206efc (patch) | |
tree | 27d6a82455a942ee6ede80fa32d6d619fd5a1d84 /src/types.ts | |
parent | 86cdb6cb83078f9f29f473e0ebb8425a2d90f5ec (diff) | |
download | dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar.gz dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar.bz2 dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar.lz dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar.xz dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.tar.zst dexon-0x-contracts-b5e496ea0f04206b74b37d71d6ba3e6975206efc.zip |
Implement zeroEx.token.getProxyAllowanceAsync
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index e1c68e8ae..c2a048e8a 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 */ @@ -34,6 +39,9 @@ export interface TokenContract { balanceOf: { call: (address: string) => Promise<BigNumber.BigNumber>; }; + allowance: { + call: (ownerAddress: string, allowedAddress: string) => Promise<BigNumber.BigNumber>; + }; } export interface TokenRegistryContract { |