@@ -17,7 +17,13 @@ contract EchidnaStakeRegistryMock2 is IStakeRegistry {
1717 mapping (address => Node) internal nodes;
1818 mapping (address => uint256 ) public freezeCount;
1919
20- function setNode (address owner , bytes32 overlay , uint8 height , uint256 effectiveStake , uint256 lastUpdated ) external {
20+ function setNode (
21+ address owner ,
22+ bytes32 overlay ,
23+ uint8 height ,
24+ uint256 effectiveStake ,
25+ uint256 lastUpdated
26+ ) external {
2127 nodes[owner] = Node ({
2228 overlay: overlay,
2329 height: height,
@@ -98,31 +104,58 @@ contract EchidnaPostageStampPotMock is IPostageStamp {
98104
99105 // Unused in this claim-stub harness but required by the interface.
100106 function setPrice (uint256 ) external {}
101- function validChunkCount () external view returns (uint256 ) { return validChunkCountValue; }
102- function batchOwner (bytes32 ) external pure returns (address ) { return address (0 ); }
103- function batchDepth (bytes32 ) external pure returns (uint8 ) { return 0 ; }
104- function batchBucketDepth (bytes32 ) external pure returns (uint8 ) { return 0 ; }
105- function remainingBalance (bytes32 ) external pure returns (uint256 ) { return 0 ; }
106- function minimumInitialBalancePerChunk () external pure returns (uint256 ) { return 0 ; }
107- function batches (bytes32 )
107+ function validChunkCount () external view returns (uint256 ) {
108+ return validChunkCountValue;
109+ }
110+ function batchOwner (bytes32 ) external pure returns (address ) {
111+ return address (0 );
112+ }
113+ function batchDepth (bytes32 ) external pure returns (uint8 ) {
114+ return 0 ;
115+ }
116+ function batchBucketDepth (bytes32 ) external pure returns (uint8 ) {
117+ return 0 ;
118+ }
119+ function remainingBalance (bytes32 ) external pure returns (uint256 ) {
120+ return 0 ;
121+ }
122+ function minimumInitialBalancePerChunk () external pure returns (uint256 ) {
123+ return 0 ;
124+ }
125+ function batches (
126+ bytes32
127+ )
108128 external
109129 pure
110- returns (address owner , uint8 depth , uint8 bucketDepth , bool immutableFlag , uint256 normalisedBalance , uint256 lastUpdatedBlockNumber )
130+ returns (
131+ address owner ,
132+ uint8 depth ,
133+ uint8 bucketDepth ,
134+ bool immutableFlag ,
135+ uint256 normalisedBalance ,
136+ uint256 lastUpdatedBlockNumber
137+ )
111138 {
112139 return (address (0 ), 0 , 0 , false , 0 , 0 );
113140 }
114141}
115142
116143contract RedistributionClaimStub is Redistribution {
117- constructor (address staking , address postageContract , address oracleContract ) Redistribution (staking, postageContract, oracleContract) {}
144+ constructor (
145+ address staking ,
146+ address postageContract ,
147+ address oracleContract
148+ ) Redistribution (staking, postageContract, oracleContract) {}
118149
119150 /// @notice Fuzz-only claim: run real winnerSelection(), then withdraw pot to winner.
120151 /// @dev Bypasses inclusion/SOC/stamp proof verification entirely.
121152 function claimStub () external whenNotPaused {
122153 winnerSelection ();
123154 Reveal memory winnerSelected = winner;
124155
125- (bool success , ) = address (PostageContract).call (abi.encodeWithSignature ("withdraw(address) " , winnerSelected.owner));
156+ (bool success , ) = address (PostageContract).call (
157+ abi.encodeWithSignature ("withdraw(address) " , winnerSelected.owner)
158+ );
126159 if (! success) {
127160 emit WithdrawFailed (winnerSelected.owner);
128161 }
@@ -209,7 +242,13 @@ contract EchidnaRedistributionClaimHarness {
209242 stampMock.seedPot (x);
210243 }
211244
212- function act_setActorNode (uint8 actorId , bytes32 overlay , uint8 height , uint256 effectiveStake , uint256 lastUpdated ) external {
245+ function act_setActorNode (
246+ uint8 actorId ,
247+ bytes32 overlay ,
248+ uint8 height ,
249+ uint256 effectiveStake ,
250+ uint256 lastUpdated
251+ ) external {
213252 uint256 idx = uint256 (actorId) % ACTOR_COUNT;
214253 uint8 h = uint8 (height % 16 );
215254 uint256 stake = effectiveStake == 0 ? 1e18 : (effectiveStake % 1e24 ) + 1 ;
@@ -347,4 +386,3 @@ contract EchidnaRedistributionClaimHarness {
347386 return 1 ;
348387 }
349388}
350-
0 commit comments