Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Add input relay base contract #67

Merged
merged 4 commits into from
Jul 11, 2023
Merged

Conversation

guidanoli
Copy link
Contributor

@guidanoli guidanoli commented May 30, 2023

Proposed changes

  1. Create a base contract1 for portals and relays in contracts/inputs called InputRelay
  2. Make portals and relays1 inherit InputRelay
  3. Remove old base contracts1 Portal and Relay

Related issues

Closes #131.

Footnotes

  1. and associated interface(s) 2 3

@guidanoli guidanoli added refactor onchain Related to the onchain code labels May 30, 2023
@guidanoli guidanoli self-assigned this May 30, 2023
Copy link
Contributor

@ZzzzHui ZzzzHui left a comment

Choose a reason for hiding this comment

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

Do you think the folder structure under test/foundry should be consistent as under the contracts?
Also, I think there are quite a lot of files under the inputs folder, which makes it difficult to figure out where to start reading. Do you think we should create new folders under inputs for those renamed files? We could consider a structure like:

- inputs
    - input relay
        - address relay
        - portals

@guidanoli
Copy link
Contributor Author

@ZzzzHui After some thought, I think I agree with you on this. I will revert the moving of contracts. :-)

@guidanoli guidanoli force-pushed the feature/add-input-relay-base-contract branch from 2ea6729 to 727782c Compare June 1, 2023 13:45
@guidanoli
Copy link
Contributor Author

Rebased and reverted moving of contracts. :-)

@guidanoli guidanoli force-pushed the feature/add-input-relay-base-contract branch from 727782c to 7082820 Compare June 1, 2023 13:58
@guidanoli
Copy link
Contributor Author

Fixed some paths. :-)

@ZzzzHui
Copy link
Contributor

ZzzzHui commented Jun 2, 2023

👍 Just need to rebase the branch

@guidanoli guidanoli force-pushed the feature/add-input-relay-base-contract branch from 7082820 to 0824521 Compare June 2, 2023 13:34
@guidanoli
Copy link
Contributor Author

Rebased 🙌

ZzzzHui
ZzzzHui previously approved these changes Jun 2, 2023
@ZzzzHui
Copy link
Contributor

ZzzzHui commented Jun 7, 2023

This PR is ready to merge

@guidanoli
Copy link
Contributor Author

Rebased, and ran yarn prepack.

@guidanoli guidanoli requested a review from ZzzzHui June 21, 2023 16:22
@guidanoli guidanoli force-pushed the feature/add-input-relay-base-contract branch from 682bd36 to b747ccc Compare July 1, 2023 00:34
@guidanoli
Copy link
Contributor Author

Rebased.

@guidanoli guidanoli linked an issue Jul 3, 2023 that may be closed by this pull request
4 tasks
Copy link

@xdaniortega xdaniortega left a comment

Choose a reason for hiding this comment

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

LGTM!

@guidanoli guidanoli merged commit 4d545da into main Jul 11, 2023
15 checks passed
@guidanoli guidanoli deleted the feature/add-input-relay-base-contract branch July 11, 2023 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
onchain Related to the onchain code refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a common base contract for portals and relays
4 participants