aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/abstract
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-13 23:39:41 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-13 23:39:41 +0800
commit830790eeacd8b69ba30e56ca0f794ec16fe9bd7d (patch)
tree48beed511bbc3e5de21694e124bf8089b0cd08a0 /packages/order-utils/src/abstract
parent39de9c78798669bb38c389f4380f5ee748cdb6c3 (diff)
downloaddexon-0x-contracts-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.tar.gz
dexon-0x-contracts-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.tar.zst
dexon-0x-contracts-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.zip
Add AbstractOrderFilledCancelledLazyStore
Diffstat (limited to 'packages/order-utils/src/abstract')
-rw-r--r--packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts b/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts
new file mode 100644
index 000000000..617bcb224
--- /dev/null
+++ b/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts
@@ -0,0 +1,12 @@
+import { BigNumber } from '@0xproject/utils';
+
+export abstract class AbstractOrderFilledCancelledLazyStore {
+ public abstract async getFilledTakerAmountAsync(orderHash: string): Promise<BigNumber>;
+ public abstract async getIsCancelledAsync(orderHash: string): Promise<boolean>;
+ public abstract setFilledTakerAmount(orderHash: string, balance: BigNumber): void;
+ public abstract deleteFilledTakerAmount(orderHash: string): void;
+ public abstract setIsCancelled(orderHash: string, isCancelled: boolean): void;
+ public abstract deleteIsCancelled(orderHash: string): void;
+ public abstract deleteAll(): void;
+ public abstract getZRXAssetData(): string;
+}