Skip to content

Commit a969fef

Browse files
committed
staking: move CloseAllocationRequest to StakingData interface
1 parent 60b73d3 commit a969fef

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

contracts/staking/IStaking.sol

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ interface IStaking is IStakingData {
1919
*/
2020
enum AllocationState { Null, Active, Closed, Finalized, Claimed }
2121

22-
/**
23-
* @dev Represents a request to close an allocation with a specific proof of indexing.
24-
* This is passed when calling closeAllocationMany to define the closing parameters for
25-
* each allocation.
26-
*/
27-
struct CloseAllocationRequest {
28-
address allocationID;
29-
bytes32 poi;
30-
}
31-
3222
// -- Configuration --
3323

3424
function setMinimumIndexerStake(uint256 _minimumIndexerStake) external;

contracts/staking/IStakingData.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ interface IStakingData {
1919
uint256 accRewardsPerAllocatedToken; // Snapshot used for reward calc
2020
}
2121

22+
/**
23+
* @dev Represents a request to close an allocation with a specific proof of indexing.
24+
* This is passed when calling closeAllocationMany to define the closing parameters for
25+
* each allocation.
26+
*/
27+
struct CloseAllocationRequest {
28+
address allocationID;
29+
bytes32 poi;
30+
}
31+
2232
// -- Delegation Data --
2333

2434
/**

contracts/staking/IStakingV1.sol

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ interface IStakingV1 is IStakingData {
1919
*/
2020
enum AllocationState { Null, Active, Closed, Finalized, Claimed }
2121

22-
/**
23-
* @dev Represents a request to close an allocation with a specific proof of indexing.
24-
* This is passed when calling closeAllocationMany to define the closing parameters for
25-
* each allocation.
26-
*/
27-
struct CloseAllocationRequest {
28-
address allocationID;
29-
bytes32 poi;
30-
}
31-
3222
// -- Configuration --
3323

3424
function setMinimumIndexerStake(uint256 _minimumIndexerStake) external;

0 commit comments

Comments
 (0)