-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor errors and naming of struct
- Loading branch information
Showing
5 changed files
with
69 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.25; | ||
|
||
import {UnstakingInfo} from "./UnstakingInfo.sol"; | ||
import {UnstakingRequest} from "./UnstakingRequest.sol"; | ||
|
||
struct StakingInfo { | ||
uint256 stakingBalance; | ||
uint256 unstakingBalance; | ||
string runeAddress; | ||
UnstakingInfo[] unstakingInfo; | ||
UnstakingRequest[] unstakingRequests; | ||
} |
2 changes: 1 addition & 1 deletion
2
foundry/src/UnstakingInfo.sol → foundry/src/UnstakingRequest.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.25; | ||
|
||
struct UnstakingInfo { | ||
struct UnstakingRequest { | ||
uint256 unstakingBalance; | ||
uint256 cooldownExpiry; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters