aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-12-01 07:33:52 +0800
committerAmir Bandeali <abandeali1@gmail.com>2019-01-08 02:31:11 +0800
commit4d5fcf8985be9f06509ad0b3c05ead066b24bf5a (patch)
treeae81780de3975edfb5e812f2707594a221a41f38
parent71c9b2f718b9e4dfa258c76aadd6232e434796e1 (diff)
downloaddexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.gz
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.bz2
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.lz
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.xz
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.tar.zst
dexon-sol-tools-4d5fcf8985be9f06509ad0b3c05ead066b24bf5a.zip
feat: Add MultiAsset types
-rw-r--r--packages/types/src/index.ts9
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 {