-
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.
- Loading branch information
Showing
5 changed files
with
30 additions
and
228 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.23; | ||
|
||
import "@account-abstraction/contracts/interfaces/IStakeManager.sol"; | ||
|
||
interface IRip7560StakeManager is IStakeManager { | ||
|
||
// internal method to return just the stake info | ||
function getStakeInfo(address[] calldata accounts) external view returns (StakeInfo[] memory infos); | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
pragma solidity ^0.8.12; | ||
|
||
import "@account-abstraction/contracts/core/StakeManager.sol"; | ||
import "../interfaces/IRip7560StakeManager.sol"; | ||
|
||
contract Rip7560StakeManager is StakeManager, IRip7560StakeManager { | ||
|
||
// internal method to return just the stake info | ||
function getStakeInfo(address[] calldata accounts) public view returns (StakeInfo[] memory) { | ||
StakeInfo[] memory infos = new StakeInfo[](accounts.length); | ||
for (uint256 i = 0; i < accounts.length; i++) { | ||
infos[i] = _getStakeInfo(accounts[i]); | ||
} | ||
return infos; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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