-
Notifications
You must be signed in to change notification settings - Fork 184
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
fix: allow overriding preset components, replace Owned interface with IERC173, fix IComponent interface #239
Conversation
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.
Looks good! My only concern are the changes in FunctionComponent
and FunctionBareComponent
as they are breaking changes for existing consumers, so i'd like to get a better understanding for why those changes were made
@@ -3,7 +3,7 @@ pragma solidity >=0.8.0; | |||
import "solecs/BareComponent.sol"; | |||
|
|||
struct FunctionSelector { | |||
address contr; | |||
address target; |
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.
what's the reason for this change?
1468b84
to
aae7c0e
Compare
Yeah that shouldn't be there, removed the struct changes |
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.
Looks great!
…d interface with IERC173, fix IComponent interface (#239) * refactor(std-contracts): better inheritance for component presets * feat(solecs): use IERC173 instead of IOwned, update IComponent Co-authored-by: alvarius <89248902+alvrs@users.noreply.github.com>
… IERC173, fix IComponent interface (latticexyz#239) * refactor(std-contracts): better inheritance for component presets * feat(solecs): use IERC173 instead of IOwned, update IComponent Co-authored-by: alvarius <89248902+alvrs@users.noreply.github.com>
Allow overriding component presets in std-contracts
Standardize IComponent and ISystem under IERC173
(Components are effectively unchanged, Systems now get transferOwnership, and transferOwnership also emits an event)
Move getSchema and registerIndexer into IComponent, fix some comments