Skip to content
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

Merged
merged 4 commits into from
Nov 25, 2022

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented Nov 4, 2022

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

@dk1a dk1a requested a review from alvrs as a code owner November 4, 2022 17:32
Copy link
Member

@alvrs alvrs left a 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;
Copy link
Member

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?

@dk1a
Copy link
Contributor Author

dk1a commented Nov 11, 2022

Yeah that shouldn't be there, removed the struct changes

Copy link
Member

@alvrs alvrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@alvrs alvrs changed the title Interface changes, better inheritance for preset components fix: allow overriding preset components, replace Owned interface with IERC173, fix IComponent interface Nov 25, 2022
@alvrs alvrs merged commit ae3983b into latticexyz:main Nov 25, 2022
github-actions bot pushed a commit that referenced this pull request Nov 25, 2022
…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>
LPSCRYPT pushed a commit to LPSCRYPT/esp that referenced this pull request Jan 23, 2023
… 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>
@dk1a dk1a deleted the dk1a/inheritance branch February 5, 2023 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants