diff options
author | Ara Kevonian <ara@dextroid.io> | 2018-04-13 18:04:51 +0800 |
---|---|---|
committer | Ara Kevonian <ara@dextroid.io> | 2018-04-13 18:04:51 +0800 |
commit | 38f7c4a0d2d9269b5fd185b303ede7a44ab78c99 (patch) | |
tree | 901387c575cd38968bb5dbe58c34fccd7a7bf9eb /packages/0x.js/src/abstract | |
parent | bf0ef055fbd4f5f798ea56868ad0beddf1111e7f (diff) | |
download | dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.gz dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.bz2 dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.lz dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.xz dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.tar.zst dexon-sol-tools-38f7c4a0d2d9269b5fd185b303ede7a44ab78c99.zip |
Implement Simple Fetchers
Diffstat (limited to 'packages/0x.js/src/abstract')
-rw-r--r-- | packages/0x.js/src/abstract/balance_and_allowance_fetcher.ts | 6 | ||||
-rw-r--r-- | packages/0x.js/src/abstract/order_filled_cancelled_fetcher.ts | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/0x.js/src/abstract/balance_and_allowance_fetcher.ts b/packages/0x.js/src/abstract/balance_and_allowance_fetcher.ts new file mode 100644 index 000000000..f7b1183f1 --- /dev/null +++ b/packages/0x.js/src/abstract/balance_and_allowance_fetcher.ts @@ -0,0 +1,6 @@ +import { BigNumber } from '@0xproject/utils'; + +export abstract class BalanceAndAllowanceFetcher { + public abstract async getBalanceAsync(tokenAddress: string, userAddress: string): Promise<BigNumber>; + public abstract async getProxyAllowanceAsync(tokenAddress: string, userAddress: string): Promise<BigNumber>; +} diff --git a/packages/0x.js/src/abstract/order_filled_cancelled_fetcher.ts b/packages/0x.js/src/abstract/order_filled_cancelled_fetcher.ts new file mode 100644 index 000000000..81ae04b9c --- /dev/null +++ b/packages/0x.js/src/abstract/order_filled_cancelled_fetcher.ts @@ -0,0 +1,6 @@ +import { BigNumber } from '@0xproject/utils'; + +export abstract class OrderFilledCancelledFetcher { + public abstract async getFilledTakerAmountAsync(orderHash: string): Promise<BigNumber>; + public abstract async getCancelledTakerAmountAsync(orderHash: string): Promise<BigNumber>; +} |