Repository navigation
chore(release): version packages - #58
Merged
Merged
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@ensforge/contracts@1.2.0
Minor Changes
d1b9625: ensforge 1.2.0 fixes the differences an audit found between ensforge and the ENS app, and makes
writes that would fail late, or succeed while doing nothing, fail before anything is sent. See
the upgrade guide, "Upgrade from ensforge 1.1", for code changes.
Behaviour changes
PermissionedResolver (
resolver: "owned", one per wallet at the ENS app's address), deployedwith the first registration and reused.
resolver: "new"deploys one per name as before. Acommitment made by ensforge 1.1 with the default resolver is revealed with
resolver: "new";without it,
registercommits again.name.transfertakesunsafe: "auto"by default: a safe transfer when theregistry allows one, else
unsafeTransferwith the warningTRANSFER_UNSAFE. Passunsafe: falseto refuse instead.record.set({ resolver })onto a resolver that already holds recordsfor the name starts a fresh record there, as
clear: truewould. Passclear: falsefor theold merge.
incomplete list from the indexer) fail with
RECORDS_UNKNOWNunlessallowIncompleteRecords.renewBatchcall is its own plan step (renew:v2:0,renew:v1:0, …;renewwhen there is one).wrapper.unwrapleaves the name with its current holder by default, not thesigner. Pass
ownerto send it elsewhere.role.grantandrole.revokeread role names from the table of the contractthey target.
roles: ["setAddr"]withtarget: "registry"used to grantregistrar; it nowfails with
INVALID_ROLES. The option types acceptRole.RegistryNamefor registries andRole.ResolverNamefor resolvers, so aRole.Name[]variable must be narrowed.@ensforge/hca.rhinestone()no longer requests sponsorship: executions pay their feefrom the HCA. Pass
sponsored: trueif your Rhinestone project sponsors gas. Writes throughvia: hca()fund the HCA from the owner's wallet when it holds too little; passhca({ funding: "none" })to fail instead.Registration and renewal
via: hca(), the commit is one HCA execution and the reveal another: the paymentapproval, the HCA's shared resolver, the registrations, their records, the primary name and
the approval reset to zero.
register({ primaryName: true })writes the owner's default name (default.reverse) andclears an
addr.reverseentry with another name, as the ENS app does.failing with
COMMITMENT_TOO_NEW.Plan.Step.waitForgainssince. An expired commitmentwith the same secret is made again (warning
COMMITMENT_RECOMMITTED).registration.commitreports
COMMITMENT_EXISTSfor any unexpired commitment.registerandcommitrefuse the zero owner (INVALID_ADDRESS), a subregistry without acontract (
REGISTRY_NOT_FOUND) and a resolver without a contract (RESOLVER_NOT_DEPLOYED)before the commitment is paid for. Durations must be at most 100 years (
INVALID_DURATION).renewrefuses a renewal in grace that would leave the name expired (DURATION_TOO_SHORT,naming the shortest duration that works).
untiloption onrenewandgetRenewalPrice: every name is extended to one expiry, andnames already reaching it are skipped, so a retry never pays twice (
NAME_ALREADY_RENEWEDwhen nothing is left).
getRenewalPriceitems carryexpiryandduration.2% headroom. Names typed in another form warn
NAME_NORMALIZED. The referrer takes up to 32bytes of hex, left-padded.
getPricequotes the registrar's owngetRegisterPrice, and a past block with that block'sprice oracle.
registerandrenewcount the signer's payment token balance(
Plan.Requirement.accountnames the account).Migration
resumeoption onmigration.migrate: names already on ENSv2 get only the steps aninterrupted run left after the transfer (subnames still on ENSv1, PublicResolverV2 records
from
records), and names not moved yet migrate as usual. It fails withALREADY_MIGRATEDwhen nothing is left.
plan.resumestill finishes a stored plan.NOT_ATOMIC.Plan.Step.gascarries the estimate.MigrationHelper, never the HCA, and the NameWrapper approval added for the run is revoked in a
last step.
same owner (blockers
resolver-conflict,registry-conflict).recipient-cannot-receivefor an owner that cannot receive ERC-1155 tokens,wrapper-out-of-syncfor a wrapped name renewed without the NameWrapper being told, anduncertified-parent-registryfor a locked child whose parent registry is not theWrapperRegistry its migration created.
wrapper.sync(andwrapper.syncSync) callsETHRenewerV1.syncWrapper. A namelate in grace whose reservation lapsed can migrate with
renew.RECORDS_FROM_CUSTOM_RESOLVER). ABI, interface, data and name records are copied, and thecontent hash as its raw bytes.
cannotSetResolvername migrated through an HCA has its records copied toPublicResolverV2 in the same execution. Migrating one with records to another
ownerfails(
records-not-replayable) unlessallowEmptyResolver.cannotUnwrapis planned as detached, not locked: its subnames gointo a UserRegistry.
migrateSyncverifies recreated subnames and WrapperRegistries(
VERIFICATION_FAILED). Names are planned parents first whatever the input order.SUBNAME_EXPIRY_EXTENDEDfor a pastone).
preserveManagercan be set per name.Transfers, registries and roles
ROLES_RETAINED). The newdelegates: "revoke"revokes them before the move, with holders the indexer lists and thechain confirms (
INDEXER_BEHIND,INDEXER_NOT_CONFIGURED).name.transfertakessetEthAddress.records: "handover"hands over a PermissionedResolveronly when it serves the name alone (
INVALID_RECORD_VALUEotherwise, warningRESOLVER_SHARING_UNCHECKEDwhen the indexer cannot answer).registry.attachandregistry.deploy({ attachTo })refuse to replace a subregistry(
SUBREGISTRY_EXISTS) unlessreplace: true, refuse addresses that are not a registry(
INVALID_ADDRESS), and warnREGISTRY_UPGRADE_AVAILABLEon outdated ones.role.revokerefuses to revokecanTransferAdminfrom a name's owner unlessallowIrreversible: true, and warnsROLE_ADMIN_LOCKOUTwhen an admin role loses its lastholder. An explicit
contract, or a name's resolver, must be the kindtargetnames.Role.RegistryName,Role.ResolverNameandRole.NameOf<target>types;Role.fromandRole.hastake an optionaltarget.Reusing a shared resolver from ensforge 1.0 or 1.1 warns
RESOLVER_ROLES_PARTIAL.resolver.createhonoursvia.Records and primary names
record.set({ clear: true })alone gives a PermissionedResolver name a fresh, empty record.Node-keyed resolvers that cannot clear warn
RECORDS_MAY_REMAIN.resolver.link({ to: null })unlinks a name.
Abi, and as a URI (8) from a string.Deleting an ABI without a content type clears every content type the resolver holds.
record.setandresolver.setrefuse a resolver without a contract (RESOLVER_NOT_DEPLOYED);resolver.set({ allowNonContract: true })still allows it.primaryName.set({ ensureForward: true })writes the missing ETH address first. Anaddr.reverseentry with a resolver outranks the default name, as ENS resolves it: clearingthe Ethereum name removes that entry's resolver, and the new
coin: "all"sets or clears both.primaryName.sethonoursvia, through the reverse registrar adapters' HCA entry points(warning
PRIMARY_NAME_ROUTED_TO_SIGNERwhen the call goes to the signer).Naming another address on an L2 checks that the signer owns the contract (
NOT_APPROVED).Subnames and the NameWrapper
subname.create({ upsert: true })changes only what it is given on an existing child. A childcreated for another
ownerwith records is created for the signer, given its records, thenhanded over.
subname.removerefuses an ENSv1 child with subnames of its own (NAME_HAS_SUBNAMES) unlessallowOrphanedSubnames: true, with the warningSUBNAMES_UNCHECKEDwithout an indexer.naming the route the signer has authority on. Children named by their labelhash are written
with their real label (warning
WRAPPER_TOKEN_STRANDEDwhere a token is left controllingnothing).
Plans
eth_simulateV1, soregisterfailures show in
.simulatebefore the commitment is paid for.@ensforge/hcarhinestone()sendhcaSessionNonceandhcaSessionConfig, whichthe ENS-patched
@rhinestone/sdk@1.22.0needs; before, every session-signed intent failed.HCA_ROUTE_REJECTED, newmaxRefundoption).
rhinestone()implementsquoteandquoteRefund, andplan.feeshas one entry perexecution.
hca.authorizeSession({ executor })sizes the refund gas cap from a quote.transferin the owner's setup step withowner(), or an EIP-2612permitandtransferFromwith relaying executors (warningHCA_FUNDING). Sessions may pull their refund token this way.VerifiableFactory.verifyContract(
untrusted-implementationwhen it cannot be verified).hca.revokeSessionsworks on an HCA that is not deployed yet (warningHCA_DEPLOYED). Asession for another HCA fails with
HCA_SESSION_INVALID.rhinestone()takesownerAccount.@ensforge/contractsAbis.shared.erc2612,Abis.shared.erc1155Receiver,Abis.shared.ownable,InterfaceIds.resolver.addressSetter,mainnetL2ReverseRegistrars,testnetL2ReverseRegistrars, andhcaRefundCapsin@ensforge/contracts/v2/experimental/hca.@ensforge/hca@1.2.0
Minor Changes
d1b9625: ensforge 1.2.0 fixes the differences an audit found between ensforge and the ENS app, and makes
writes that would fail late, or succeed while doing nothing, fail before anything is sent. See
the upgrade guide, "Upgrade from ensforge 1.1", for code changes.
Behaviour changes
PermissionedResolver (
resolver: "owned", one per wallet at the ENS app's address), deployedwith the first registration and reused.
resolver: "new"deploys one per name as before. Acommitment made by ensforge 1.1 with the default resolver is revealed with
resolver: "new";without it,
registercommits again.name.transfertakesunsafe: "auto"by default: a safe transfer when theregistry allows one, else
unsafeTransferwith the warningTRANSFER_UNSAFE. Passunsafe: falseto refuse instead.record.set({ resolver })onto a resolver that already holds recordsfor the name starts a fresh record there, as
clear: truewould. Passclear: falsefor theold merge.
incomplete list from the indexer) fail with
RECORDS_UNKNOWNunlessallowIncompleteRecords.renewBatchcall is its own plan step (renew:v2:0,renew:v1:0, …;renewwhen there is one).wrapper.unwrapleaves the name with its current holder by default, not thesigner. Pass
ownerto send it elsewhere.role.grantandrole.revokeread role names from the table of the contractthey target.
roles: ["setAddr"]withtarget: "registry"used to grantregistrar; it nowfails with
INVALID_ROLES. The option types acceptRole.RegistryNamefor registries andRole.ResolverNamefor resolvers, so aRole.Name[]variable must be narrowed.@ensforge/hca.rhinestone()no longer requests sponsorship: executions pay their feefrom the HCA. Pass
sponsored: trueif your Rhinestone project sponsors gas. Writes throughvia: hca()fund the HCA from the owner's wallet when it holds too little; passhca({ funding: "none" })to fail instead.Registration and renewal
via: hca(), the commit is one HCA execution and the reveal another: the paymentapproval, the HCA's shared resolver, the registrations, their records, the primary name and
the approval reset to zero.
register({ primaryName: true })writes the owner's default name (default.reverse) andclears an
addr.reverseentry with another name, as the ENS app does.failing with
COMMITMENT_TOO_NEW.Plan.Step.waitForgainssince. An expired commitmentwith the same secret is made again (warning
COMMITMENT_RECOMMITTED).registration.commitreports
COMMITMENT_EXISTSfor any unexpired commitment.registerandcommitrefuse the zero owner (INVALID_ADDRESS), a subregistry without acontract (
REGISTRY_NOT_FOUND) and a resolver without a contract (RESOLVER_NOT_DEPLOYED)before the commitment is paid for. Durations must be at most 100 years (
INVALID_DURATION).renewrefuses a renewal in grace that would leave the name expired (DURATION_TOO_SHORT,naming the shortest duration that works).
untiloption onrenewandgetRenewalPrice: every name is extended to one expiry, andnames already reaching it are skipped, so a retry never pays twice (
NAME_ALREADY_RENEWEDwhen nothing is left).
getRenewalPriceitems carryexpiryandduration.2% headroom. Names typed in another form warn
NAME_NORMALIZED. The referrer takes up to 32bytes of hex, left-padded.
getPricequotes the registrar's owngetRegisterPrice, and a past block with that block'sprice oracle.
registerandrenewcount the signer's payment token balance(
Plan.Requirement.accountnames the account).Migration
resumeoption onmigration.migrate: names already on ENSv2 get only the steps aninterrupted run left after the transfer (subnames still on ENSv1, PublicResolverV2 records
from
records), and names not moved yet migrate as usual. It fails withALREADY_MIGRATEDwhen nothing is left.
plan.resumestill finishes a stored plan.NOT_ATOMIC.Plan.Step.gascarries the estimate.MigrationHelper, never the HCA, and the NameWrapper approval added for the run is revoked in a
last step.
same owner (blockers
resolver-conflict,registry-conflict).recipient-cannot-receivefor an owner that cannot receive ERC-1155 tokens,wrapper-out-of-syncfor a wrapped name renewed without the NameWrapper being told, anduncertified-parent-registryfor a locked child whose parent registry is not theWrapperRegistry its migration created.
wrapper.sync(andwrapper.syncSync) callsETHRenewerV1.syncWrapper. A namelate in grace whose reservation lapsed can migrate with
renew.RECORDS_FROM_CUSTOM_RESOLVER). ABI, interface, data and name records are copied, and thecontent hash as its raw bytes.
cannotSetResolvername migrated through an HCA has its records copied toPublicResolverV2 in the same execution. Migrating one with records to another
ownerfails(
records-not-replayable) unlessallowEmptyResolver.cannotUnwrapis planned as detached, not locked: its subnames gointo a UserRegistry.
migrateSyncverifies recreated subnames and WrapperRegistries(
VERIFICATION_FAILED). Names are planned parents first whatever the input order.SUBNAME_EXPIRY_EXTENDEDfor a pastone).
preserveManagercan be set per name.Transfers, registries and roles
ROLES_RETAINED). The newdelegates: "revoke"revokes them before the move, with holders the indexer lists and thechain confirms (
INDEXER_BEHIND,INDEXER_NOT_CONFIGURED).name.transfertakessetEthAddress.records: "handover"hands over a PermissionedResolveronly when it serves the name alone (
INVALID_RECORD_VALUEotherwise, warningRESOLVER_SHARING_UNCHECKEDwhen the indexer cannot answer).registry.attachandregistry.deploy({ attachTo })refuse to replace a subregistry(
SUBREGISTRY_EXISTS) unlessreplace: true, refuse addresses that are not a registry(
INVALID_ADDRESS), and warnREGISTRY_UPGRADE_AVAILABLEon outdated ones.role.revokerefuses to revokecanTransferAdminfrom a name's owner unlessallowIrreversible: true, and warnsROLE_ADMIN_LOCKOUTwhen an admin role loses its lastholder. An explicit
contract, or a name's resolver, must be the kindtargetnames.Role.RegistryName,Role.ResolverNameandRole.NameOf<target>types;Role.fromandRole.hastake an optionaltarget.Reusing a shared resolver from ensforge 1.0 or 1.1 warns
RESOLVER_ROLES_PARTIAL.resolver.createhonoursvia.Records and primary names
record.set({ clear: true })alone gives a PermissionedResolver name a fresh, empty record.Node-keyed resolvers that cannot clear warn
RECORDS_MAY_REMAIN.resolver.link({ to: null })unlinks a name.
Abi, and as a URI (8) from a string.Deleting an ABI without a content type clears every content type the resolver holds.
record.setandresolver.setrefuse a resolver without a contract (RESOLVER_NOT_DEPLOYED);resolver.set({ allowNonContract: true })still allows it.primaryName.set({ ensureForward: true })writes the missing ETH address first. Anaddr.reverseentry with a resolver outranks the default name, as ENS resolves it: clearingthe Ethereum name removes that entry's resolver, and the new
coin: "all"sets or clears both.primaryName.sethonoursvia, through the reverse registrar adapters' HCA entry points(warning
PRIMARY_NAME_ROUTED_TO_SIGNERwhen the call goes to the signer).Naming another address on an L2 checks that the signer owns the contract (
NOT_APPROVED).Subnames and the NameWrapper
subname.create({ upsert: true })changes only what it is given on an existing child. A childcreated for another
ownerwith records is created for the signer, given its records, thenhanded over.
subname.removerefuses an ENSv1 child with subnames of its own (NAME_HAS_SUBNAMES) unlessallowOrphanedSubnames: true, with the warningSUBNAMES_UNCHECKEDwithout an indexer.naming the route the signer has authority on. Children named by their labelhash are written
with their real label (warning
WRAPPER_TOKEN_STRANDEDwhere a token is left controllingnothing).
Plans
eth_simulateV1, soregisterfailures show in
.simulatebefore the commitment is paid for.@ensforge/hcarhinestone()sendhcaSessionNonceandhcaSessionConfig, whichthe ENS-patched
@rhinestone/sdk@1.22.0needs; before, every session-signed intent failed.HCA_ROUTE_REJECTED, newmaxRefundoption).
rhinestone()implementsquoteandquoteRefund, andplan.feeshas one entry perexecution.
hca.authorizeSession({ executor })sizes the refund gas cap from a quote.transferin the owner's setup step withowner(), or an EIP-2612permitandtransferFromwith relaying executors (warningHCA_FUNDING). Sessions may pull their refund token this way.VerifiableFactory.verifyContract(
untrusted-implementationwhen it cannot be verified).hca.revokeSessionsworks on an HCA that is not deployed yet (warningHCA_DEPLOYED). Asession for another HCA fails with
HCA_SESSION_INVALID.rhinestone()takesownerAccount.@ensforge/contractsAbis.shared.erc2612,Abis.shared.erc1155Receiver,Abis.shared.ownable,InterfaceIds.resolver.addressSetter,mainnetL2ReverseRegistrars,testnetL2ReverseRegistrars, andhcaRefundCapsin@ensforge/contracts/v2/experimental/hca.Patch Changes
@ensforge/sdk@1.2.0
Minor Changes
d1b9625: ensforge 1.2.0 fixes the differences an audit found between ensforge and the ENS app, and makes
writes that would fail late, or succeed while doing nothing, fail before anything is sent. See
the upgrade guide, "Upgrade from ensforge 1.1", for code changes.
Behaviour changes
PermissionedResolver (
resolver: "owned", one per wallet at the ENS app's address), deployedwith the first registration and reused.
resolver: "new"deploys one per name as before. Acommitment made by ensforge 1.1 with the default resolver is revealed with
resolver: "new";without it,
registercommits again.name.transfertakesunsafe: "auto"by default: a safe transfer when theregistry allows one, else
unsafeTransferwith the warningTRANSFER_UNSAFE. Passunsafe: falseto refuse instead.record.set({ resolver })onto a resolver that already holds recordsfor the name starts a fresh record there, as
clear: truewould. Passclear: falsefor theold merge.
incomplete list from the indexer) fail with
RECORDS_UNKNOWNunlessallowIncompleteRecords.renewBatchcall is its own plan step (renew:v2:0,renew:v1:0, …;renewwhen there is one).wrapper.unwrapleaves the name with its current holder by default, not thesigner. Pass
ownerto send it elsewhere.role.grantandrole.revokeread role names from the table of the contractthey target.
roles: ["setAddr"]withtarget: "registry"used to grantregistrar; it nowfails with
INVALID_ROLES. The option types acceptRole.RegistryNamefor registries andRole.ResolverNamefor resolvers, so aRole.Name[]variable must be narrowed.@ensforge/hca.rhinestone()no longer requests sponsorship: executions pay their feefrom the HCA. Pass
sponsored: trueif your Rhinestone project sponsors gas. Writes throughvia: hca()fund the HCA from the owner's wallet when it holds too little; passhca({ funding: "none" })to fail instead.Registration and renewal
via: hca(), the commit is one HCA execution and the reveal another: the paymentapproval, the HCA's shared resolver, the registrations, their records, the primary name and
the approval reset to zero.
register({ primaryName: true })writes the owner's default name (default.reverse) andclears an
addr.reverseentry with another name, as the ENS app does.failing with
COMMITMENT_TOO_NEW.Plan.Step.waitForgainssince. An expired commitmentwith the same secret is made again (warning
COMMITMENT_RECOMMITTED).registration.commitreports
COMMITMENT_EXISTSfor any unexpired commitment.registerandcommitrefuse the zero owner (INVALID_ADDRESS), a subregistry without acontract (
REGISTRY_NOT_FOUND) and a resolver without a contract (RESOLVER_NOT_DEPLOYED)before the commitment is paid for. Durations must be at most 100 years (
INVALID_DURATION).renewrefuses a renewal in grace that would leave the name expired (DURATION_TOO_SHORT,naming the shortest duration that works).
untiloption onrenewandgetRenewalPrice: every name is extended to one expiry, andnames already reaching it are skipped, so a retry never pays twice (
NAME_ALREADY_RENEWEDwhen nothing is left).
getRenewalPriceitems carryexpiryandduration.2% headroom. Names typed in another form warn
NAME_NORMALIZED. The referrer takes up to 32bytes of hex, left-padded.
getPricequotes the registrar's owngetRegisterPrice, and a past block with that block'sprice oracle.
registerandrenewcount the signer's payment token balance(
Plan.Requirement.accountnames the account).Migration
resumeoption onmigration.migrate: names already on ENSv2 get only the steps aninterrupted run left after the transfer (subnames still on ENSv1, PublicResolverV2 records
from
records), and names not moved yet migrate as usual. It fails withALREADY_MIGRATEDwhen nothing is left.
plan.resumestill finishes a stored plan.NOT_ATOMIC.Plan.Step.gascarries the estimate.MigrationHelper, never the HCA, and the NameWrapper approval added for the run is revoked in a
last step.
same owner (blockers
resolver-conflict,registry-conflict).recipient-cannot-receivefor an owner that cannot receive ERC-1155 tokens,wrapper-out-of-syncfor a wrapped name renewed without the NameWrapper being told, anduncertified-parent-registryfor a locked child whose parent registry is not theWrapperRegistry its migration created.
wrapper.sync(andwrapper.syncSync) callsETHRenewerV1.syncWrapper. A namelate in grace whose reservation lapsed can migrate with
renew.RECORDS_FROM_CUSTOM_RESOLVER). ABI, interface, data and name records are copied, and thecontent hash as its raw bytes.
cannotSetResolvername migrated through an HCA has its records copied toPublicResolverV2 in the same execution. Migrating one with records to another
ownerfails(
records-not-replayable) unlessallowEmptyResolver.cannotUnwrapis planned as detached, not locked: its subnames gointo a UserRegistry.
migrateSyncverifies recreated subnames and WrapperRegistries(
VERIFICATION_FAILED). Names are planned parents first whatever the input order.SUBNAME_EXPIRY_EXTENDEDfor a pastone).
preserveManagercan be set per name.Transfers, registries and roles
ROLES_RETAINED). The newdelegates: "revoke"revokes them before the move, with holders the indexer lists and thechain confirms (
INDEXER_BEHIND,INDEXER_NOT_CONFIGURED).name.transfertakessetEthAddress.records: "handover"hands over a PermissionedResolveronly when it serves the name alone (
INVALID_RECORD_VALUEotherwise, warningRESOLVER_SHARING_UNCHECKEDwhen the indexer cannot answer).registry.attachandregistry.deploy({ attachTo })refuse to replace a subregistry(
SUBREGISTRY_EXISTS) unlessreplace: true, refuse addresses that are not a registry(
INVALID_ADDRESS), and warnREGISTRY_UPGRADE_AVAILABLEon outdated ones.role.revokerefuses to revokecanTransferAdminfrom a name's owner unlessallowIrreversible: true, and warnsROLE_ADMIN_LOCKOUTwhen an admin role loses its lastholder. An explicit
contract, or a name's resolver, must be the kindtargetnames.Role.RegistryName,Role.ResolverNameandRole.NameOf<target>types;Role.fromandRole.hastake an optionaltarget.Reusing a shared resolver from ensforge 1.0 or 1.1 warns
RESOLVER_ROLES_PARTIAL.resolver.createhonoursvia.Records and primary names
record.set({ clear: true })alone gives a PermissionedResolver name a fresh, empty record.Node-keyed resolvers that cannot clear warn
RECORDS_MAY_REMAIN.resolver.link({ to: null })unlinks a name.
Abi, and as a URI (8) from a string.Deleting an ABI without a content type clears every content type the resolver holds.
record.setandresolver.setrefuse a resolver without a contract (RESOLVER_NOT_DEPLOYED);resolver.set({ allowNonContract: true })still allows it.primaryName.set({ ensureForward: true })writes the missing ETH address first. Anaddr.reverseentry with a resolver outranks the default name, as ENS resolves it: clearingthe Ethereum name removes that entry's resolver, and the new
coin: "all"sets or clears both.primaryName.sethonoursvia, through the reverse registrar adapters' HCA entry points(warning
PRIMARY_NAME_ROUTED_TO_SIGNERwhen the call goes to the signer).Naming another address on an L2 checks that the signer owns the contract (
NOT_APPROVED).Subnames and the NameWrapper
subname.create({ upsert: true })changes only what it is given on an existing child. A childcreated for another
ownerwith records is created for the signer, given its records, thenhanded over.
subname.removerefuses an ENSv1 child with subnames of its own (NAME_HAS_SUBNAMES) unlessallowOrphanedSubnames: true, with the warningSUBNAMES_UNCHECKEDwithout an indexer.naming the route the signer has authority on. Children named by their labelhash are written
with their real label (warning
WRAPPER_TOKEN_STRANDEDwhere a token is left controllingnothing).
Plans
eth_simulateV1, soregisterfailures show in
.simulatebefore the commitment is paid for.@ensforge/hcarhinestone()sendhcaSessionNonceandhcaSessionConfig, whichthe ENS-patched
@rhinestone/sdk@1.22.0needs; before, every session-signed intent failed.HCA_ROUTE_REJECTED, newmaxRefundoption).
rhinestone()implementsquoteandquoteRefund, andplan.feeshas one entry perexecution.
hca.authorizeSession({ executor })sizes the refund gas cap from a quote.transferin the owner's setup step withowner(), or an EIP-2612permitandtransferFromwith relaying executors (warningHCA_FUNDING). Sessions may pull their refund token this way.VerifiableFactory.verifyContract(
untrusted-implementationwhen it cannot be verified).hca.revokeSessionsworks on an HCA that is not deployed yet (warningHCA_DEPLOYED). Asession for another HCA fails with
HCA_SESSION_INVALID.rhinestone()takesownerAccount.@ensforge/contractsAbis.shared.erc2612,Abis.shared.erc1155Receiver,Abis.shared.ownable,InterfaceIds.resolver.addressSetter,mainnetL2ReverseRegistrars,testnetL2ReverseRegistrars, andhcaRefundCapsin@ensforge/contracts/v2/experimental/hca.Patch Changes
@ensforge/react@1.2.0
Patch Changes