Copy dutch auction asset data utils to @0x/order-utils (#1943)
* copy dutch auction assetdata utils to @0x/order-utils * encode/decode dutch auction asset data using order-utils
This commit is contained in:
@@ -216,6 +216,12 @@ export interface MultiAssetDataWithRecursiveDecoding {
|
||||
nestedAssetData: SingleAssetData[];
|
||||
}
|
||||
|
||||
export interface DutchAuctionData {
|
||||
assetData: AssetData;
|
||||
beginTimeSeconds: BigNumber;
|
||||
beginAmount: BigNumber;
|
||||
}
|
||||
|
||||
export type AssetData = SingleAssetData | MultiAssetData | MultiAssetDataWithRecursiveDecoding;
|
||||
|
||||
// TODO: DRY. These should be extracted from contract code.
|
||||
|
||||
Reference in New Issue
Block a user