-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(contracts/core): migrate genesis contracts to monorepo (#2689)
Migrated Genesis contracts into monorepo issue: none
- Loading branch information
Showing
6 changed files
with
623 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
"dependencies": { | ||
"@nomad-xyz/excessively-safe-call": "github:nomad-xyz/ExcessivelySafeCall", | ||
"@openzeppelin-v4/contracts": "npm:@openzeppelin/[email protected]", | ||
"@openzeppelin-v4/contracts-upgradeable": "npm:@openzeppelin/[email protected]", | ||
"@openzeppelin/contracts": "^5.0.2", | ||
"@openzeppelin/contracts-upgradeable": "^5.0.2", | ||
"eigenlayer-contracts": "github:Layr-Labs/eigenlayer-contracts", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,33 @@ | ||
// SPDX-License-Identifier: GPL-3.0-only | ||
pragma solidity 0.8.24; | ||
|
||
interface IGenesisStake { | ||
/** | ||
* @notice Stake `amount` tokens. | ||
* @param amount The amount of tokens to stake. | ||
*/ | ||
function stake(uint256 amount) external; | ||
|
||
/** | ||
* @notice Stake `amount` tokens for `recipient`, paid by the caller. | ||
* @param recipient The recipient to stake tokens for. | ||
* @param amount The amount of tokens to stake. | ||
*/ | ||
function stakeFor(address recipient, uint256 amount) external; | ||
|
||
/** | ||
* @notice Unstake your entire balance, starting the unbonding period. | ||
*/ | ||
function unstake() external; | ||
|
||
/** | ||
* @notice Withdraw your entire balance after the unbonding period. | ||
*/ | ||
function withdraw() external; | ||
|
||
/** | ||
* @notice Returns timestamp at which `account` can withdraw. | ||
* Reverts if the account has not staked & unstaked. | ||
*/ | ||
function canWithdrawAt(address account) external view returns (uint256); | ||
} |
Oops, something went wrong.