diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-13 22:01:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-13 22:01:01 +0800 |
commit | fe75660e88ed0c37c4f3d461a644bd9305bf6183 (patch) | |
tree | 5c4ec25bc6ef5c0b5573cf4e4f9fe34428394a49 /packages/contracts/src/abstract | |
parent | 946e6c16442ce434e160fa47a87cd705c5274038 (diff) | |
download | dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar.gz dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar.bz2 dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar.lz dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar.xz dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.tar.zst dexon-sol-tools-fe75660e88ed0c37c4f3d461a644bd9305bf6183.zip |
Refactor ERC20 and ERC721 wrappers for V2 and introduce the assetWrapper superset
Diffstat (limited to 'packages/contracts/src/abstract')
-rw-r--r-- | packages/contracts/src/abstract/abstract_asset_wrapper.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/contracts/src/abstract/abstract_asset_wrapper.ts b/packages/contracts/src/abstract/abstract_asset_wrapper.ts new file mode 100644 index 000000000..d7ab58fea --- /dev/null +++ b/packages/contracts/src/abstract/abstract_asset_wrapper.ts @@ -0,0 +1,10 @@ +import { BigNumber } from '@0xproject/utils'; + +export abstract class AbstractAssetWrapper { + public abstract getProxyId(): number; + public abstract async setBalancesAndAllowancesAsync(): Promise<void>; + public abstract async getBalanceAsync(owner: string, assetData: string): Promise<BigNumber>; + public abstract async getProxyAllowanceAsync(owner: string, assetData: string): Promise<BigNumber>; + public abstract getTokenOwnerAddresses(): string[]; + public abstract getTokenAddresses(): string[]; +} |