Implement zeroEx.token.getProxyAllowanceAsync

This commit is contained in:
Fabio Berger
2017-05-30 15:27:51 +02:00
parent 86cdb6cb83
commit b5e496ea0f
2 changed files with 34 additions and 1 deletions

View File

@@ -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 {