feat: add NillionTokenOwner to restrict direct minting#21
Merged
Conversation
jcabrero
approved these changes
Apr 17, 2026
Member
jcabrero
left a comment
There was a problem hiding this comment.
The changes look good to me. Just FYI, because this morning I was looking at the L1 NIL token contract, I think this contract doesn't match the L1 speci and this is just a dummy contract used for testing, but I agree with the change.
👍
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.
Asana: https://app.asana.com/1/1201208859446629/project/1213822431665320/task/1213823102319180?focus=true
Adds
NillionTokenOwner, a constrained owner that can manage minters but cannot callmint()directly. Transferring token ownership to it ensures only whitelisted minters (e.g. EmissionsController) can mint.Includes deployment script, unit tests, fork e2e tests against the live Sepolia token, and a CI job for fork tests. See
script/README.mdfor usage.