2.0 RC docsView 1.x docs
v2.0.0-rc.1 release candidate
The API is frozen and later candidates carry fixes only, except the receipt-free and Safe create surface of /fhe-airdrop, which is @beta. Published on the next dist-tag; latest stays on 1.6.0 until 2.0.0.
Create and split hooks resolve Mined | Pending
useCreateManager, useCreateManagerAndGetAddress and useSplitVesting accept waitForReceipt, and a hook cannot overload on it, so data is the mined result or its pending counterpart. Narrow with if (data.pending) return; before reading manager or newVestingId.
Read hooks take query
Every read hook accepts query (ReadHookQueryOptions). Immutable manager reads default to staleTime: Infinity; pass query: { staleTime: 0 } for the old behaviour. Query keys start with FHE_VESTING_KEY, FHE_VESTING_NAMESPACE.
Configuration errors do not throw in render
A rejected client config (a malformed address, a bad gasHeadroomPercent) is returned as resolutionError: read hooks stay disabled and mutation hooks throw it when called.
Vesting 2.0 · Hooks · 84

Every vesting 2.0 method, as a hook.

Filter by lifecycle (where in the flow), TanStack shape (how to wire it), or encryptor dependency. Import path is @tokenops/sdk/fhe-vesting/react.

Lifecycle
Return shape
Encryptor
84 hooks
Group:

Setup · deploy · 2

Deploy a factory clone or register with the singleton — the one-time entrypoint.

Configure · 10

Set fees, batch limits, claim windows. Caller is usually the factory or clone owner.

Write · 10

Headline writes — submit a tx through the connected wallet.

Batch write · 2

Bulk variants that pack N operations into one tx with one batch proof.

Disclose · ACL · 6

Grant ACL on a ciphertext handle to a third party (auditor, tax authority).

Encrypted read · 10

Returns a ciphertext handle. Some are useQuery; some are useMutation (FHE.allow grants ACL inside a tx). Pair with useDecryptedHandle.

Read · 24

Plaintext on-chain reads. TanStack Query envelope, cached + refetched.

Admin · 2

Admin-only mutations — caller must hold the relevant role.

Roles · RBAC · 5

RBAC — grant, revoke, renounce. Read role constants + membership.

Recovery · 8

Pause / unpause / withdraw / rescue — recover the system or its funds.

Introspection · 5

Deterministic CREATE2 inputs, role bytes, immutable deployment metadata.