diff options
Diffstat (limited to 'packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts')
-rw-r--r-- | packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts b/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts deleted file mode 100644 index 13fbf1736..000000000 --- a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { BigNumber } from '@0x/utils'; - -/** - * An abstract class to be implemented in order to use OrderStateUtils. The class that - * implements this interface must be capable of fetching the balance and proxyAllowance - * for an Ethereum address and assetData - */ -export abstract class AbstractBalanceAndProxyAllowanceFetcher { - /** - * Get balance of assetData for userAddress - * @param assetData AssetData for which to fetch the balance - * @param userAddress Ethereum address for which to fetch the balance - * @return Balance amount in base units - */ - public abstract async getBalanceAsync(assetData: string, userAddress: string): Promise<BigNumber>; - /** - * Get the 0x asset proxy allowance of assetData for userAddress - * @param assetData AssetData for which to fetch the allowance - * @param userAddress Ethereum address for which to fetch the allowance - * @return Allowance amount in base units - */ - public abstract async getProxyAllowanceAsync(assetData: string, userAddress: string): Promise<BigNumber>; -} |