Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v0.4.1](https://github.com/sambacha/eigenlayer-template/compare/v0.4.0...v0.4.1)

> 15 August 2024

- feat(tokens): init support [`842722d`](https://github.com/sambacha/eigenlayer-template/commit/842722d87b48639df8e631e8c8d158ca4906bb08)
- fix(fmt): lint apply [`48d367d`](https://github.com/sambacha/eigenlayer-template/commit/48d367d5fda081aa5882529fcb347eaf2faf6063)
- feat(lido): init support rebasing [`cfd5013`](https://github.com/sambacha/eigenlayer-template/commit/cfd5013c4dd20e43b7703dcb7431f1dc7f1d1acb)

#### v0.4.0

> 15 August 2024

- contracts setup [`#1`](https://github.com/sambacha/eigenlayer-template/pull/1)
- Removed .gitmodules [`fa96ba3`](https://github.com/sambacha/eigenlayer-template/commit/fa96ba3741ef9e7a6db1ff6d899b956c8dbaf0a7)
- Merge commit '03b4804bedd2e2db3e1e3c30cab1129155cb3066' as 'lib/openzeppelin-contracts-upgradeable' [`f05585f`](https://github.com/sambacha/eigenlayer-template/commit/f05585fb0a13b03d75a25aa43f606154ae7d2a31)
- Squashed 'lib/openzeppelin-contracts-upgradeable/' content from commit 723f8cab0 [`03b4804`](https://github.com/sambacha/eigenlayer-template/commit/03b4804bedd2e2db3e1e3c30cab1129155cb3066)
143 changes: 0 additions & 143 deletions foundry.toml

This file was deleted.

19 changes: 7 additions & 12 deletions src/interfaces/IDelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ interface IDelegationManager {
uint32 stakerOptOutWindowBlocks;
}

event OperatorMetadataURIUpdated(
address indexed operator,
string metadataURI
);
event OperatorMetadataURIUpdated(address indexed operator, string metadataURI);

function registerAsOperator(
OperatorDetails calldata registeringOperatorDetails,
string calldata metadataURI
) external;
function registerAsOperator(OperatorDetails calldata registeringOperatorDetails, string calldata metadataURI)
external;

function getOperatorShares(
address operator,
IStrategy[] memory strategies
) external view returns (uint256[] memory);
function getOperatorShares(address operator, IStrategy[] memory strategies)
external
view
returns (uint256[] memory);
}
16 changes: 3 additions & 13 deletions src/interfaces/IECDSAStakeRegistryEventsAndErrors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,13 @@ interface IECDSAStakeRegistryEventsAndErrors {
/// @notice Emitted when the weight required to be an operator changes
/// @param oldMinimumWeight The previous weight
/// @param newMinimumWeight The updated weight
event UpdateMinimumWeight(
uint256 oldMinimumWeight,
uint256 newMinimumWeight
);
event UpdateMinimumWeight(uint256 oldMinimumWeight, uint256 newMinimumWeight);

/// @notice Emitted when the system updates an operator's weight
/// @param _operator The address of the operator updated
/// @param oldWeight The operator's weight before the update
/// @param newWeight The operator's weight after the update
event OperatorWeightUpdated(
address indexed _operator,
uint256 oldWeight,
uint256 newWeight
);
event OperatorWeightUpdated(address indexed _operator, uint256 oldWeight, uint256 newWeight);

/// @notice Emitted when the system updates the total weight
/// @param oldTotalWeight The total weight before the update
Expand All @@ -65,10 +58,7 @@ interface IECDSAStakeRegistryEventsAndErrors {
/// @param newSigningKey The operator's signing key after the update
/// @param oldSigningKey The operator's signing key before the update
event SigningKeyUpdate(
address indexed operator,
uint256 indexed updateBlock,
address indexed newSigningKey,
address oldSigningKey
address indexed operator, uint256 indexed updateBlock, address indexed newSigningKey, address oldSigningKey
);
/// @notice Indicates when the lengths of the signers array and signatures array do not match.

Expand Down
7 changes: 4 additions & 3 deletions src/interfaces/IGasOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ interface IGasOracle {
uint128 gasPrice;
}

function getExchangeRateAndGasPrice(
uint32 _destinationDomain
) external view returns (uint128 tokenExchangeRate, uint128 gasPrice);
function getExchangeRateAndGasPrice(uint32 _destinationDomain)
external
view
returns (uint128 tokenExchangeRate, uint128 gasPrice);
}
21 changes: 5 additions & 16 deletions src/interfaces/IInterchainGasPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,11 @@ interface IInterchainGasPaymaster {
* @param gasAmount The amount of destination gas paid for.
* @param payment The amount of native tokens paid.
*/
event GasPayment(
bytes32 indexed messageId,
uint32 indexed destinationDomain,
uint256 gasAmount,
uint256 payment
);
event GasPayment(bytes32 indexed messageId, uint32 indexed destinationDomain, uint256 gasAmount, uint256 payment);

function payForGas(
bytes32 _messageId,
uint32 _destinationDomain,
uint256 _gasAmount,
address _refundAddress
) external payable;
function payForGas(bytes32 _messageId, uint32 _destinationDomain, uint256 _gasAmount, address _refundAddress)
external
payable;

function quoteGasPayment(
uint32 _destinationDomain,
uint256 _gasAmount
) external view returns (uint256);
function quoteGasPayment(uint32 _destinationDomain, uint256 _gasAmount) external view returns (uint256);
}
10 changes: 2 additions & 8 deletions src/interfaces/IInterchainSecurityModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ interface IInterchainSecurityModule {
* @param _message Manifold Finance AVS encoded interchain message
* @return True if the message was verified
*/
function verify(
bytes calldata _metadata,
bytes calldata _message
) external returns (bool);
function verify(bytes calldata _metadata, bytes calldata _message) external returns (bool);
}

interface ISpecifiesInterchainSecurityModule {
function interchainSecurityModule()
external
view
returns (IInterchainSecurityModule);
function interchainSecurityModule() external view returns (IInterchainSecurityModule);
}
9 changes: 2 additions & 7 deletions src/interfaces/ILiquidityLayerMessageRecipient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
pragma solidity ^0.8.13;

interface ILiquidityLayerMessageRecipient {
function handleWithTokens(
uint32 _origin,
bytes32 _sender,
bytes calldata _message,
address _token,
uint256 _amount
) external;
function handleWithTokens(uint32 _origin, bytes32 _sender, bytes calldata _message, address _token, uint256 _amount)
external;
}
40 changes: 12 additions & 28 deletions src/interfaces/IMailbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ interface IMailbox {
* @param recipient The message recipient address on `destination`
* @param message Raw bytes of message
*/
event Dispatch(
address indexed sender,
uint32 indexed destination,
bytes32 indexed recipient,
bytes message
);
event Dispatch(address indexed sender, uint32 indexed destination, bytes32 indexed recipient, bytes message);

/**
* @notice Emitted when a new message is dispatched via Manifold Finance AVS
Expand All @@ -38,11 +33,7 @@ interface IMailbox {
* @param sender The message sender address on `origin`
* @param recipient The address that handled the message
*/
event Process(
uint32 indexed origin,
bytes32 indexed sender,
address indexed recipient
);
event Process(uint32 indexed origin, bytes32 indexed sender, address indexed recipient);

function localDomain() external view returns (uint32);

Expand All @@ -56,17 +47,15 @@ interface IMailbox {

function latestDispatchedId() external view returns (bytes32);

function dispatch(
uint32 destinationDomain,
bytes32 recipientAddress,
bytes calldata messageBody
) external payable returns (bytes32 messageId);
function dispatch(uint32 destinationDomain, bytes32 recipientAddress, bytes calldata messageBody)
external
payable
returns (bytes32 messageId);

function quoteDispatch(
uint32 destinationDomain,
bytes32 recipientAddress,
bytes calldata messageBody
) external view returns (uint256 fee);
function quoteDispatch(uint32 destinationDomain, bytes32 recipientAddress, bytes calldata messageBody)
external
view
returns (uint256 fee);

function dispatch(
uint32 destinationDomain,
Expand Down Expand Up @@ -98,12 +87,7 @@ interface IMailbox {
IPostDispatchHook customHook
) external view returns (uint256 fee);

function process(
bytes calldata metadata,
bytes calldata message
) external payable;
function process(bytes calldata metadata, bytes calldata message) external payable;

function recipientIsm(
address recipient
) external view returns (IInterchainSecurityModule module);
function recipientIsm(address recipient) external view returns (IInterchainSecurityModule module);
}
6 changes: 1 addition & 5 deletions src/interfaces/IMessageRecipient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
pragma solidity >=0.6.11;

interface IMessageRecipient {
function handle(
uint32 _origin,
bytes32 _sender,
bytes calldata _message
) external payable;
function handle(uint32 _origin, bytes32 _sender, bytes calldata _message) external payable;
}
5 changes: 1 addition & 4 deletions src/interfaces/IRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ interface IRouter {

function enrollRemoteRouter(uint32 _domain, bytes32 _router) external;

function enrollRemoteRouters(
uint32[] calldata _domains,
bytes32[] calldata _routers
) external;
function enrollRemoteRouters(uint32[] calldata _domains, bytes32[] calldata _routers) external;
}
Loading