diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-13 23:39:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-13 23:39:41 +0800 |
commit | 830790eeacd8b69ba30e56ca0f794ec16fe9bd7d (patch) | |
tree | 48beed511bbc3e5de21694e124bf8089b0cd08a0 /packages | |
parent | 39de9c78798669bb38c389f4380f5ee748cdb6c3 (diff) | |
download | dexon-sol-tools-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.tar.gz dexon-sol-tools-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.tar.zst dexon-sol-tools-830790eeacd8b69ba30e56ca0f794ec16fe9bd7d.zip |
Add AbstractOrderFilledCancelledLazyStore
Diffstat (limited to 'packages')
-rw-r--r-- | packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts | 12 |
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; +} |