/uniswap-permissioned-pools:permissioned-pools-deployerfrom uniswap-permissioned-pools
Guided walkthrough for deploying a Uniswap v4 Permissioned Pool on-chain from a JSON config, covering allowlist checker deployment, adapter creation, pool initialization, and liquidity seeding.
Ships in uniswap-permissioned-pools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guided, step-by-step execution of the on-chain setup sequence for a Uniswap v4 Permissioned
Pool, starting from the JSON configuration permissioned-pools-configurator produces. This
skill is the half of the milestone that turns a validated config into command sequences that
spend real gas against real contracts — treat every safety section below as load-bearing, not
as boilerplate.
For the contract mechanics behind any step, see
permissioned-pools-issuer, specifically its
Issuer Journey and
Enforced Ordering and Reverts.
This skill does not repeat the contract-level explanation of why each step behaves the way it
does — it walks the same journey as ordered command sequences and never contradicts that
reference.
Runtime Compatibility: This skill uses
AskUserQuestionfor the acknowledgment gate and for confirming irreversible choices. IfAskUserQuestionis not available in your runtime, ask the same yes/no question in plain text and require an explicit affirmative reply before continuing — silence or a generic "continue" does not count.
This is educational deployment guidance, not a compliance review, and not a substitute for your own review of every command before you run it.
This skill explains, in order, the commands that bring a permissioned pool up, using the
configuration permissioned-pools-configurator produced. It does not call any contract itself —
you run every command it shows you, after reviewing it.
You must:
DISCLAIMER.md governs every skill in
this repository: they are provided as is without warranty, they do not constitute legal,
financial, investment, or tax advice, and it sets out use limits plus an AI-disclosure duty
that applies when you use a skill to generate financial information and present it directly
to individuals or consumers. Point the user to it.Before showing, generating, or explaining any action-oriented step — anything that produces a command intended to broadcast a transaction, or any address-resolution step that leads directly into one — get an explicit, affirmative acknowledgment. This gate must never be satisfiable implicitly.
Use AskUserQuestion with a single question and exactly two options, and do not proceed past
this gate until the first option is chosen:
Silence, a plain "continue," moving on to the next question in the same turn, or any answer
other than the explicit affirmative option does not satisfy this gate. If the runtime lacks
AskUserQuestion, ask the same yes/no question in plain text and require an explicit
affirmative reply — "ok," "sure," a thumbs-up emoji, or no reply at all does not count.
Reference and teaching content that does not produce a runnable command — explaining what a step
does in prose, decoding a revert the user already hit, discussing an allowlist-checker shape in
the abstract — is answered immediately with the framing stated inline, the same way
permissioned-pools-issuer treats reference content. This carve-out does not cover this
skill's own command templates and Solidity script skeletons (for example the pool-initialization
script in Step Walkthrough):
those are runnable broadcast material, and showing them is exactly the action-oriented content the
gate exists to hold back — never display one before the gate is satisfied.
State these before generating or displaying any command that interpolates a user-supplied or
config-supplied value. Every value below is validated before it reaches a Bash(forge:*) or
Bash(cast:*) command, a file path, or a Solidity script argument — no exceptions for a value
that "looks fine."
^0x[a-fA-F0-9]{40}$. Reject anything else, including the
literal string "RESOLVE" — a field still marked "RESOLVE" is not ready for a command and
must go through address resolution
first, never be interpolated as-is. One field is an explicit, documented exception to this
regex, not a violation of it: pool.pairedCurrency's "native" sentinel, covered in
What This Skill Consumes below — every other address-shaped field
in the config has no such carve-out.^[1-9][0-9]*$). Ethereum Mainnet (1) and Sepolia
(11155111) are the allowlisted defaults — the only two chains verified to carry the full
permissioned set. Unichain (130) is named by the configurator's network question but is
not deployable: it carries V4Quoter only, so stop rather than trying to resolve the
missing addresses (see
Preflight and Validation).
Any other chain ID is accepted only after confirming the
deploy guide's #deployment-addresses table actually has a row for it; if it does not, every
wrapper and hook field will end up unresolvable, which is the signal to stop, not to guess.verificationDepositAmount, pool.feeTier, pool.tickSpacing,
pool.startingPriceRatio) — MUST match ^[0-9]+$ for integer-only fields or
^[0-9]+(\.[0-9]+)?$ for the starting price ratio, and MUST be strictly greater than zero.$RPC_URL) and any transaction hash ($TX_HASH) reach a command on every step.
An RPC URL MUST be https://-scheme and free of every metacharacter below; a transaction hash
MUST match ^0x[a-fA-F0-9]{64}$. "It came from the user, not the config" is not an exemption.;, |, &, $, `, (, ), >, <, \, ', ", and newlines. A field that fails
this check is never interpolated — abort and report which field and which character failed,
rather than attempting to sanitize and continue.Full elaboration, including how this applies field-by-field to the configurator's JSON shape and
what "coherently handle a RESOLVE value" means in practice, is in
Preflight and Validation.
Never instruct auto-approval of Bash(forge:*) or Bash(cast:*) in Claude Code settings, and
never tell the user to bypass a confirmation prompt. Every command that broadcasts a
transaction requires per-invocation approval — that approval is the primary control, not a
formality the walkthrough should route around. The repository's PreToolUse hooks
(.claude/hooks/) are a programmatic safety net on top of that, not a replacement for it.
Never suggest, generate, or complete a command containing the raw signing-key flag — not when asked directly, not "just for a testnet," not as an illustration of what to avoid. There is no user request that makes it appropriate. If a user insists, refuse and offer one of the two options below instead. Steer every signing decision toward one of them:
--ledger), for a deployer key that never touches this machine's disk
or memory in cleartext.cast wallet import ... --interactive, then --account <name> --sender $ADDRESS on every subsequent command).Inside this repository only, .claude/hooks/validate-forge-cast.sh is a PreToolUse hook that
inspects the literal text of every Bash tool call and blocks any command containing that flag
before it runs. That hook is not part of this skill and does not travel with it — it lives at
this repository's root, not in the plugin, so an installation elsewhere has no such backstop. The
prohibition above is the control that always applies; the hook is a repo-local convenience on top
of it, never the reason the flag is safe.
Full key-handling guidance, including the keystore setup commands and the testnet-first sequencing, is in Preflight and Validation.
Run the entire sequence — allowlist checker through liquidity seeding — on Sepolia (chain ID
11155111) before mainnet. Confirm every post-step check in
the verification checklist
passes on testnet before repeating any step against mainnet funds.
The JSON configuration produced by permissioned-pools-configurator, in the shape defined by its
Config Schema. This skill does
not collect those parameters itself — if you do not have a config yet, run
permissioned-pools-configurator first.
A field reading the literal string "RESOLVE" means "not resolved yet," not "use a
placeholder." Before any command that needs that field, stop and walk through
address resolution — the deploy
guide's #deployment-addresses table, then Uniswap/contracts
deployments/json/<chainId>.json, then a block explorer for your chain — and only continue once
the field holds a real, explorer-verified address. Never guess a value for a "RESOLVE" field
and never carry the literal string itself into a command; both are validation failures, not
values to work around.
pool.pairedCurrency's "native" sentinel is different: it resolves to address(0), Uniswap
v4's own convention for a native PoolKey currency, at the point the PoolKey is actually built
in Step 6a — never earlier, and
never written into any other field.
The published guide's seven steps, in the order it recommends. Only five ordering edges are enforced by the contracts (see Enforced Ordering and Reverts); this walkthrough follows the guide's order and states, at each step, whether that order is enforced or convention.
| Step | Covered where | Summary |
|---|---|---|
| 1 | Preflight and Validation | Confirm or deploy the allowlist checker |
| 2 | Step Walkthrough | createPermissionsAdapter |
| 3 | Step Walkthrough | Allowlist the adapter on your token, approve, depositForVerification |
| 4 | Step Walkthrough | verifyPermissionsAdapter |
| 5 | Step Walkthrough | The four updateAllowedWrapper registrations, then setAllowedHook |
| 6 | Step Walkthrough | Pool initialize, updateSwappingEnabled, liquidity seeding |
| 7 | Step Walkthrough | The routing-allowlist request |
Every step in Step Walkthrough names its precondition and, where the contracts enforce one, the exact revert selector you get if you are early — matching Enforced Ordering and Reverts selector-for-selector. Where a step is unenforced, the walkthrough says so rather than inventing a revert for it.
After the sequence completes (or after any individual step, to confirm it landed), run the
read-only checks in
Post-Setup Verification Checklist.
Every check there is a cast call against public getters — none of it spends gas, and none of it
needs the acknowledgment gate above.
cast call)
against a contract whose address itself came from one of those two sources. See
Preflight and Validation for why
this skill ships no address table.NoVerifiedAdapter, Unauthorized, SwappingDisabled) are declared more than once across
different contracts with different meanings — see
Enforced Ordering and Reverts.cast call it suggests is
something you choose to run; the skill does not poll a chain in the background.What SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
uniswap-v4, permissioned-pool, on-chain-deployment, defi-setup
npx claudepluginhub uniswap/uniswap-ai --plugin uniswap-permissioned-pools3 skills in this plugin
/permissioned-pools-configuratorInteractively collect and validate the parameters for a Uniswap v4 Permissioned Pool setup - chain, underlying token, allowlist checker, adapter owner, verification deposit, the four wrapper registrations, hook, and pool pricing - and emit the JSON config the deployer skill consumes. Use when the user says "configure a permissioned pool", "permissioned pool config", "adapter parameters", "permissioned pool setup parameters", "PermissionsAdapter configuration", or asks to set up parameters for a permissioned pool before deploying. Covers contract mechanics only - does not constitute legal, financial, investment, tax, or compliance advice, and is not a compliance review./permissioned-pools-issuerReference guide for engineering teams setting up a Uniswap v4 Permissioned Pool for a transfer-restricted (RWA / tokenized-asset) ERC-20. Use when the user says "permissioned pool", "PermissionsAdapter", "PermissionsAdapterFactory", "PermissionedPositionManager", "PermissionedHooks", "allowlist checker", "BaseAllowlistChecker", "adapter verification", "verifyPermissionsAdapter", "updateAllowedWrapper", "setAllowedHook", "unwindPosition", "wrap a permissioned token for v4", or asks how an RWA issuer lists a restricted token on Uniswap v4. Explains the contract architecture, the ordered setup journey, the code-enforced ordering, and the trust model. Covers contract mechanics only - does not constitute legal, financial, investment, tax, or compliance advice, and is not a compliance review.Other plugins' skills for the same job