-
Notifications
You must be signed in to change notification settings - Fork 75
Ethereum Spoke Pool #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chrismaree
commented
Feb 16, 2022
- Update hub for protocol fees
- nit
- Update test/chain-adapters/Arbitrum_Adapter.ts
- Update test/chain-adapters/Arbitrum_Adapter.ts
- nit
- nit
- WIP
- WIP
- nit
- WIP
- nit
- nit
- nit
- feat: add L1 SpokePool
Signed-off-by: chrismaree <christopher.maree@gmail.com>
Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>
Co-authored-by: nicholaspai <9457025+nicholaspai@users.noreply.github.com>
Signed-off-by: chrismaree <christopher.maree@gmail.com>
contracts/Ethereum_SpokePool.sol
Outdated
| /** | ||
| * @notice Changes the L1 contract that can trigger admin functions on this contract. | ||
| * @dev This should be set to the address of the L1 contract that ultimately relays a cross-domain message, which | ||
| * is expected to be the Optimism_Adapter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change or remove these comments
mrice32
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| * @dev Used on Ethereum L1 to facilitate L2->L1 transfers. | ||
| */ | ||
|
|
||
| contract Ethereum_SpokePool is SpokePoolInterface, SpokePool, Ownable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed IRL, we might want to add a TODO to refactor the SpokePool inheritance setup s.t. we can have most of these methods implemented in the base contract and just have an _calledByAdmin() function that's implemented in each derived class, and have the base class call require(_calledByAdmin(), "not authorized");
…Proxy, contracts in production (#36)