Repository navigation
feat: add Onchain Subnames SDK for registration and renewal - #52
Draft
HAPPYS1NGH wants to merge 2 commits into
Draft
HAPPYS1NGH wants to merge 2 commits into
HAPPYS1NGH wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
@thenamespace/onchain-subnamesso applications can quote and prepare ENSv2 subname registrations and renewals without duplicating contract reads, proof retrieval, payment approvals, and simulation. Applications retain control of wallet prompts and transaction submission.ready,blocked, andaccount_requiredquote outcomes, nullable USD prices, and nullable expiry information.managerApiUrlunchanged.Validation
Release notes
This is an unpublished new package. Requires Node.js 18+ or compatible browser APIs, Viem, and an RPC supporting
eth_simulateV1for simulation.maxPriceUsdguards preparation; it is not an onchain execution-price cap. Sequential ERC20 flows must prepare and simulate again after approval.ENS Components integration: thenamespace/ens-components#63. Land and publish this SDK before removing the integration PR's local dependency override and completing its package checks. Publishing workflow selection for this package remains a follow-up; this PR does not publish or deploy anything.