From 4d5fcf8985be9f06509ad0b3c05ead066b24bf5a Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Fri, 30 Nov 2018 15:33:52 -0800 Subject: feat: Add MultiAsset types --- packages/types/src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'packages') 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 { -- cgit v1.2.3