diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-12-01 07:33:52 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | 4d5fcf8985be9f06509ad0b3c05ead066b24bf5a (patch) | |
tree | ae81780de3975edfb5e812f2707594a221a41f38 /packages | |
parent | 71c9b2f718b9e4dfa258c76aadd6232e434796e1 (diff) | |
download | dexon-0x-contracts-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.gz dexon-0x-contracts-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.zst dexon-0x-contracts-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.zip |
feat: Add MultiAsset types
Diffstat (limited to 'packages')
-rw-r--r-- | packages/types/src/index.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 4470dd501..846c030ee 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -155,6 +155,7 @@ export enum SignatureType { export enum AssetProxyId { ERC20 = '0xf47261b0', ERC721 = '0x02571792', + MultiAsset = '0x94cfcdd7', } export interface ERC20AssetData { @@ -168,7 +169,13 @@ export interface ERC721AssetData { tokenId: BigNumber; } -export type AssetData = ERC20AssetData | ERC721AssetData; +export interface MultiAssetData { + assetProxyId: string; + amounts: BigNumber[]; + nestedAssetData: string[]; +} + +export type AssetData = ERC20AssetData | ERC721AssetData | MultiAssetData; // TODO: DRY. These should be extracted from contract code. export enum RevertReason { |