From e0bf533036c8539d351327fbb3a3e338c2cdacbc Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Fri, 29 Dec 2023 13:48:23 +0200 Subject: [PATCH] refactor: reorder struct fields --- src/types/DataTypes.sol | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/types/DataTypes.sol b/src/types/DataTypes.sol index 3c74ed8c..19dc1620 100644 --- a/src/types/DataTypes.sol +++ b/src/types/DataTypes.sol @@ -14,12 +14,12 @@ library Batch { /// @notice A struct encapsulating all parameters of {SablierV2LockupDynamic.createWithDelta} except for the asset. struct CreateWithDeltas { address sender; - bool cancelable; - bool transferable; address recipient; uint128 totalAmount; - Broker broker; + bool cancelable; + bool transferable; LockupDynamic.SegmentWithDelta[] segments; + Broker broker; } /// @notice A struct encapsulating all parameters of {SablierV2LockupLinear.createWithDurations} except for the @@ -38,13 +38,13 @@ library Batch { /// asset. struct CreateWithMilestones { address sender; + address recipient; + uint128 totalAmount; uint40 startTime; bool cancelable; bool transferable; - address recipient; - uint128 totalAmount; - Broker broker; LockupDynamic.Segment[] segments; + Broker broker; } /// @notice A struct encapsulating all parameters of {SablierV2LockupLinear.createWithRange} except for the asset. @@ -54,7 +54,7 @@ library Batch { uint128 totalAmount; bool cancelable; bool transferable; - LockupLinear.Range range; Broker broker; + LockupLinear.Range range; } }