SDK 2.1: platform toolkit + vesting engine
Vesting 2.x · Clients

Headless clients for vesting

Clients read and write managers; the versioned engine previews their audited plaintext rules without network access.

v2.1.0 stable
SDK 2.1 is the stable release on the latest dist-tag. Install it with pnpm add @tokenops/sdk. The receipt-free and Safe create surface of /fhe-airdrop remains @beta.

The clients are not the only headless surface. createVestingEngine('v1') validates drafts and reproduces vesting, claim-state, token-fee, split and revoke math from explicit inputs. It does not replace reads, encryption or writes; adapt client VestingInfo into its neutral Schedule shape.

Both configs take publicClient, an optional walletClient, telemetry, and gasHeadroomPercent (default DEFAULT_GAS_HEADROOM_PERCENT, 25). The factory resolves its address from the chain id; the manager needs the clone address and an encryptor for any write that submits an encrypted amount.

Every write refuses a wallet on a different chain than the public client with WalletChainMismatchError, before estimating gas, and throws the typed revert from a failing estimate instead of handing the call back to the wallet.