Repository navigation
Conversation
Contributor
Author
|
/cmd bench --pallet indiv_pallet_dotns_gateway |
re-gius
marked this pull request as draft
November 18, 2026 10:44
Contributor
|
Command "bench --pallet indiv_pallet_dotns_gateway" has started 🚀 See logs here |
Contributor
|
Command "bench --pallet indiv_pallet_dotns_gateway" has failed ❌! See logs here |
…itytech/individuality-community into feat/195-gr-dotns-maintainer-account
…llet-revive maps it
…ntainer-account # Conflicts: # pallets/dotns-gateway/src/lib.rs
Contributor
Author
|
/cmd bench --pallet indiv_pallet_dotns_gateway |
Contributor
|
Command "bench --pallet indiv_pallet_dotns_gateway" has started 🚀 See logs here |
|
Command "bench --pallet indiv_pallet_dotns_gateway" has finished ✅ See logs here Runtime weight deviation: |
re-gius
marked this pull request as ready for review
November 18, 2026 13:57
Contributor
Author
|
/cmd bench --pallet indiv_pallet_dotns_gateway |
Contributor
|
Command "bench --pallet indiv_pallet_dotns_gateway" has started 🚀 See logs here |
|
Command "bench --pallet indiv_pallet_dotns_gateway" has finished ✅ See logs here Runtime weight deviation: |
20 of 27 tasks
re-gius
added a commit
to paritytech/dotns
that referenced
this pull request
Nov 25, 2026
…tenance values (#371) ## Description Maintenance values move from the bootstrap owner to Root and a maintainer account. Root must set the account explicitly under the new `maintainer` key of the protocol registry, and can remove it again; until it is set, no account can act as maintainer. The maintainer only tunes values, and never in a direction that disrupts what is under way. Root can set any value within the existing bounds. | Setter | Maintainer | |---|---| | Escrow `updateCooldown`, `updateRedeemWindow` | Either direction | | Whitelist `setGrantDuration` | Either direction: a grant now keeps the expiry it was given | | Whitelist `setMaxClaimants`, `setMaxReasonBytes` | Either direction with no window live; raise only while a window is open or scheduled | | PoP controller `setReservationDuration`, whitelist `setMaxGrantBatch` | Raise only | | Whitelist `setWindow` | Never opens a window; only lengthens one Root opened or scheduled, up to 90 days from its opening | ## Type - [ ] Bug fix - [x] Feature - [x] Breaking change - [x] Documentation - [ ] Chore - [ ] Refactor - [x] Security ## Scope - [x] Registration - [ ] Resolver - [ ] Store - [x] Proof of Personhood - [x] Deployment scripts - [x] Tests ## Related Issues #370, paritytech/individuality-community#253, polkadot-fellows/runtimes#1350 ## Fixes Completes the smart contracts side of #238 ## Checklist ### Code - [x] Follows project style - [x] `forge build` passes - [x] `forge test` passes - [x] No new compiler warnings ### Testing - [x] New tests added for changed behavior - [ ] Fuzz tests added where applicable - [x] Invariant tests verified ### Security - [x] No new `selfdestruct` or `delegatecall` - [x] Access control reviewed - [x] No storage layout conflicts (for upgradeable contracts) ### Documentation - [x] NatSpec updated on changed interfaces - [x] README updated if needed ### Breaking Changes - [ ] No breaking changes - [x] Breaking changes documented below **Breaking changes:** - The bootstrap owner can no longer call any maintenance setter. - `DotnsConstants.registryKeys()` gains `maintainer`. - A whitelist grant stores its expiry when it is made, so `setGrantDuration` applies only to later grants. The grant record's `grantedAt` field becomes `expiresAt`. ## How to test ```bash forge clean && forge build forge test --match-path 'test/{unit,intergration}/**' forge test --match-path 'test/{invariant,fuzz}/whitelist/**' ``` ## Notes - Raising the reservation duration can still revive an expired queue head that nobody has cleared. `DotnsPopController` has 7 bytes to spare, so this is recorded in `KNOWN_ISSUES.md` §7. - `release-metadata.mjs verify` reports the `maintainer` key without failing, because it holds an account and not a contract.
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.
Closes #195
The dotNS contracts will accept a maintainer account that tunes their bounded operational values, such as the reservation duration or the claim window (paritytech/dotns#238). This PR gives the gateway pallet that account and lets a configurable
MaintenanceOriginact through it, limited to the contract functions that Root allows. Upgrades, revocations and other critical operations stay on Root.MaintenanceOriginalso sets the gateway's limits, each within bounds that the runtime fixes. The limits replace the per-runtime constants on Paseo and thepallet-parameterskeys on Asset Hub Polkadot.On Asset Hub Polkadot,
MaintenanceOriginwill accept Root or thedotns_maintenancetrack (polkadot-fellows/runtimes#1350), andMaintainerCallsManagerwill be Root. Both are set in polkadot-fellows/runtimes after this pallet is released. Paseo uses Root for both.Changes
call_as_maintainercalls a contract as the pallet's keyless maintainer account, derived fromPalletId. OnlyMaintenanceOriginmay call it, and only for a contract address and selector inAllowedMaintainerCalls.allow_maintainer_callanddisallow_maintainer_calladd and remove entries inAllowedMaintainerCalls. OnlyMaintainerCallsManagermay call them. The list starts empty.Before its first call, the maintainer account gets a provider reference, so
pallet-revivemaps it to an EVM address without a balance.set_limitssets the contract call weight, signature validity and future clock skew withinMinLimitsandMaxLimits. The limits are stored inLimits, which holdsDefaultLimitsuntil set, so no migration runs.integrity_testchecks thatDefaultLimitsis within the bounds and that a gateway call with the maximum contract call weight fits one normal extrinsic.Paseo sets both origins to
EnsureRoot, derives the account frompy/dotnsand uses these limits:docs/operations.mdlists the new extrinsics.