diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-01-03 08:52:15 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-08 02:31:11 +0800 |
commit | 1dda10b4f34eb19b731e58c26f13ecc08e367bbe (patch) | |
tree | a33ff795d65bcbb67379414e29138cb364c02fe0 /packages/types/src | |
parent | 0fba0b1a1bbe1192802ebcf4b88437b94d6a1c18 (diff) | |
download | dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar.gz dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar.bz2 dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar.lz dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar.xz dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.tar.zst dexon-sol-tools-1dda10b4f34eb19b731e58c26f13ecc08e367bbe.zip |
Add recursive MultiAsset decoding, store first address in pipeline
Diffstat (limited to 'packages/types/src')
-rw-r--r-- | packages/types/src/index.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 2e8ce6629..71fcbf9db 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -171,13 +171,19 @@ export interface ERC721AssetData { tokenId: BigNumber; } +export type SingleAssetData = ERC20AssetData | ERC721AssetData; + export interface MultiAssetData { assetProxyId: string; amounts: BigNumber[]; nestedAssetData: string[]; } -export type SingleAssetData = ERC20AssetData | ERC721AssetData; +export interface MultiAssetDataWithRecursiveDecoding { + assetProxyId: string; + amounts: BigNumber[]; + nestedAssetData: SingleAssetData[]; +} // TODO: DRY. These should be extracted from contract code. export enum RevertReason { |