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.
Vesting 2.0 · Client@tokenops/sdk/fhe-vesting

ConfidentialVestingFactoryClient

Resolves the Sepolia factory from DEPLOYED_ADDRESSES by chain id; on mainnet the registry entry is null, so construction reports DeploymentAddressUnavailableError with reason registry-not-deployed. Both create methods are overloaded on waitForReceipt: omitted or true returns the mined CreateManagerResult, false returns PendingCreateManagerResult with manager: undefined. Fee setters are positional and need FEE_MANAGER_ROLE; they use the client's gasHeadroomPercent. Address prediction lives on ConfidentialVestingFactoryAdvancedClient from @tokenops/sdk/fhe-vesting/advanced, whose predictManagerAddress takes PredictManagerArgs.

Construct

Headless TS — non-React consumers (Node, Vite, server workers). React hosts use the per-hook surface; same method names, lazy encryptor.

@tokenops/sdk/fhe-vesting
ts
import { createConfidentialVestingFactoryClient } from "@tokenops/sdk/fhe-vesting";

const client = createConfidentialVestingFactoryClient({
  publicClient,
  walletClient,
  // address optional: resolved from publicClient.chain.id
});

Methods

Introspection · 1

  • client.predictManagerAddress()Advanced client only. Block-dependent: the factory packs the deployment block into the clone args, so it is for historical lookups at a known blockNumber, not pre-deploy prediction.

Configure · 8

Read · 8