-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat: support Base resolution #262
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.
LGTM! Thanks for updating it!
Left a few comments to consider, but nothing that's blocking.
src/Resolution.ts
Outdated
return new Uns({ | ||
locations: { | ||
Layer1: { | ||
url: `${DEFAULT_UNS_PROXY_SERVICE_URL}/chains/eth/rpc`, | ||
network: 'mainnet', | ||
proxyServiceApiKey: config.apiKey, | ||
}, | ||
Layer2: { | ||
url: `${DEFAULT_UNS_PROXY_SERVICE_URL}/chains/base/rpc`, | ||
network: 'base-mainnet', | ||
proxyServiceApiKey: config.apiKey, | ||
}, | ||
}, | ||
}); | ||
} |
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.
We can consider making one of the "layers" optional for cases similar to Base where we know that domains can exist only on one chain.
This will save us some RPC calls on querying L1 when we don't need to.
src/Uns.ts
Outdated
this.unsl2 = new UnsInternal( | ||
UnsLocation.Layer2, | ||
source.locations.Layer2, | ||
BlockchainType.MATIC, | ||
BlockchainType.POL, | ||
); |
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 like this is going to be POL
for both Polygon and Base configs. It's probably fine as is, but might be worth passing the blockchain type into constructor args.
05a9313
to
d495e81
Compare
Background
Support domain resolution for UNS domains on Base blockchain
Changes
To Do
Additional Deployment and/or Rollback Steps
Code Review
This Pull Request was thoroughly reviewed and meets all Code Review Standards pertaining to:
Please select all applied standards relevant to this PR.
Confirmation