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 · Events · 31@tokenops/sdk/fhe-vesting

Vesting 2.0 event reference.

Arguments are read from the installed ABIs. The SDK parses ManagerCreated, VestingSplit and AmountDisclosed from receipts; a receipt-free write (waitForReceipt: false) leaves that to you, so index ManagerCreated and VestingSplit to resolve a pending create or split.

Factory· 7

EventArgs
ManagerCreated(indexed manager, indexed creator, indexed token, feeType, fee, salt)
DefaultGasFeeUpdated(oldFee, newFee)
DefaultTokenFeeUpdated(oldFee, newFee)
DefaultFeeTypeChanged(oldType, newType)
CustomFeeSet(indexed creator, feeType, gasFee, tokenFee)
CustomFeeDisabled(indexed creator)
FeeCollectorUpdated(indexed oldCollector, indexed newCollector)

Vesting lifecycle· 7

EventArgs
VestingCreated(indexed vestingId, indexed recipient, startTimestamp, endTimestamp, cliffReleaseTimestamp, encryptedAmount)
TokensClaimed(indexed vestingId, indexed recipient, amount)
VestingRevoked(indexed vestingId, revokeTimestamp)
VestingSplit(indexed originalVestingId, indexed newVestingId, indexed newRecipient, origAllocation, newAllocation)
VestingTransferInitiated(indexed vestingId, indexed from, indexed to)
VestingTransferAccepted(indexed vestingId, indexed oldRecipient, indexed newRecipient)
VestingTransferCancelled(indexed vestingId)

Disclosure· 2

EventArgs
AmountDisclosed(indexed vestingId, indexed discloser, indexed party, disclosureType, encryptedAmount)
HandleDisclosedToParty(indexed discloser, indexed party, encryptedAmount)

Admin and recovery· 11

EventArgs
VestingManagerInitialized(indexed admin, indexed feeCollector, blockNumber)
Initialized(version)
Paused(account)
Unpaused(account)
GasFeeWithdrawal(indexed to, amount)
TokenFeeWithdrawal(indexed to, amount)
AdminWithdrawal(indexed to, amount)
OtherTokenWithdrawal(indexed token, indexed to, amount)
OtherConfidentialTokenWithdrawal(indexed token, indexed to, amount)
MaxBatchSizeUpdated(oldMax, newMax)
MaxRevokeBatchSizeUpdated(oldMax, newMax)

Roles· 3

EventArgs
RoleGranted(indexed role, indexed account, indexed sender)
RoleRevoked(indexed role, indexed account, indexed sender)
RoleAdminChanged(indexed role, indexed previousAdminRole, indexed newAdminRole)

ERC-7984 operator (on the token)· 1

EventArgs
OperatorSet(indexed holder, indexed operator, until)
Indexer recipe: subscribe via viem's parseEventLogs({ abi, logs }) and persist by topic. The ACL.Allowed event from the FHE coprocessor is the canonical source for handle ownership — see the indexing events recipe (coming soon).Browse recipes