aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/abstract
diff options
context:
space:
mode:
authorAra Kevonian <ara@dextroid.io>2018-04-13 18:04:51 +0800
committerAra Kevonian <ara@dextroid.io>2018-04-13 18:04:51 +0800
commit38f7c4a0d2d9269b5fd185b303ede7a44ab78c99 (patch)
tree901387c575cd38968bb5dbe58c34fccd7a7bf9eb /packages/0x.js/src/abstract
parentbf0ef055fbd4f5f798ea56868ad0beddf1111e7f (diff)
downloaddexon-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.ts6
-rw-r--r--packages/0x.js/src/abstract/order_filled_cancelled_fetcher.ts6
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>;
+}