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

multichain #6

Merged
merged 15 commits into from
Jul 7, 2024
Merged

multichain #6

merged 15 commits into from
Jul 7, 2024

Conversation

mejango
Copy link
Contributor

@mejango mejango commented Jun 6, 2024

Description

TLDR: allows an ENS record to point to a specific projectId on a specific chainId. i.e. @jango points to project 33 on Op.

The ENS records now returns a projectId and the chainId on which the projectId should be resolved.
In order to do this, we remove the Permission check since we cant know who owns a projectId on a different chain, and instead allow anyone to set records for any project on any chain, BUT the record will be set relative to the msg.sender. Clients are advised to request matches only for a project's current project owner if they wish to resolve records set by the project owner.

The new ENS record keys are "juicebox:projectId" and "juicebox:chainId".

To be clear, this contract is only meant to be deployed on the chain where the ENS registry lives -- likely only mainnet to start.

Limitations & risks

Are there any trade-off or new vulnarbility surface based on theses changes?

Check-list

  • Tests are covering the new feature
  • Code is natspec'd
  • Code is linted and formatted
  • I have run the test locally (and they pass)
  • I have rebased to the latest main commit (and tests still pass)

Interactions

These changes will impact the following contracts:

  • Directly:

  • Indirectly:

@mejango mejango merged commit 34862ea into main Jul 7, 2024
2 of 3 checks passed
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