diff options
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/types.ts b/src/types.ts index 46156b155..9d3127325 100644 --- a/src/types.ts +++ b/src/types.ts @@ -16,6 +16,8 @@ export const ZeroExError = strEnum([ 'INVALID_SIGNATURE', 'CONTRACT_NOT_DEPLOYED_ON_NETWORK', 'ZRX_NOT_IN_TOKEN_REGISTRY', + 'INSUFFICIENT_ALLOWANCE_FOR_TRANSFER', + 'INSUFFICIENT_BALANCE_FOR_TRANSFER', ]); export type ZeroExError = keyof typeof ZeroExError; @@ -66,7 +68,9 @@ export interface TokenContract { allowance: { call: (ownerAddress: string, allowedAddress: string) => Promise<BigNumber.BigNumber>; }; - transfer: (to: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => Promise<boolean>; + transfer: (toAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => Promise<boolean>; + transferFrom: (fromAddress: string, toAddress: string, amountInBaseUnits: BigNumber.BigNumber, + txOpts: TxOpts) => Promise<boolean>; approve: (proxyAddress: string, amountInBaseUnits: BigNumber.BigNumber, txOpts: TxOpts) => void; } |