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
| Event | Args | Emitted on |
|---|---|---|
| ManagerCreated | (indexed manager, indexed creator, indexed token, feeType, fee, salt) | createManager / createManagerAndGetAddress succeeds. With waitForReceipt: false, read the clone address from this log once the transaction executes. |
| DefaultGasFeeUpdated | (oldFee, newFee) | setDefaultGasFee / resetGasFee succeeds. |
| DefaultTokenFeeUpdated | (oldFee, newFee) | setDefaultTokenFee / resetTokenFee succeeds. |
| DefaultFeeTypeChanged | (oldType, newType) | setDefaultFeeType succeeds. |
| CustomFeeSet | (indexed creator, feeType, gasFee, tokenFee) | setCustomFee succeeds. |
| CustomFeeDisabled | (indexed creator) | disableCustomFee succeeds. |
| FeeCollectorUpdated | (indexed oldCollector, indexed newCollector) | setFeeCollector succeeds. |
Vesting lifecycle· 7
| Event | Args | Emitted on |
|---|---|---|
| VestingCreated | (indexed vestingId, indexed recipient, startTimestamp, endTimestamp, cliffReleaseTimestamp, encryptedAmount) | createVesting / batchCreateVesting succeeds. Carries the vestingId every later call needs. |
| TokensClaimed | (indexed vestingId, indexed recipient, amount) | claim / partialClaim / adminClaim / adminPartialClaim succeeds. |
| VestingRevoked | (indexed vestingId, revokeTimestamp) | revokeVesting / batchRevokeVesting succeeds. |
| VestingSplit | (indexed originalVestingId, indexed newVestingId, indexed newRecipient, origAllocation, newAllocation) | splitVesting succeeds. With waitForReceipt: false, read newVestingId from this log. |
| VestingTransferInitiated | (indexed vestingId, indexed from, indexed to) | initiateVestingTransfer succeeds. |
| VestingTransferAccepted | (indexed vestingId, indexed oldRecipient, indexed newRecipient) | acceptVestingTransfer / directVestingTransfer succeeds. |
| VestingTransferCancelled | (indexed vestingId) | cancelVestingTransfer succeeds. |
Disclosure· 2
| Event | Args | Emitted on |
|---|---|---|
| AmountDisclosed | (indexed vestingId, indexed discloser, indexed party, disclosureType, encryptedAmount) | discloseToParty / batchDiscloseToParty / adminDiscloseToParty / adminBatchDiscloseToParty succeeds. The batch methods pair each event with its input by vestingId and disclosure type. |
| HandleDisclosedToParty | (indexed discloser, indexed party, encryptedAmount) | discloseHandleToParty / batchDiscloseHandlesToParty succeeds. |
Admin and recovery· 11
| Event | Args | Emitted on |
|---|---|---|
| VestingManagerInitialized | (indexed admin, indexed feeCollector, blockNumber) | The clone is initialized at deployment. |
| Initialized | (version) | OpenZeppelin initializer marker, once during initialization. |
| Paused | (account) | pause succeeds. |
| Unpaused | (account) | unpause succeeds. |
| GasFeeWithdrawal | (indexed to, amount) | withdrawGasFee succeeds. |
| TokenFeeWithdrawal | (indexed to, amount) | withdrawTokenFee succeeds. |
| AdminWithdrawal | (indexed to, amount) | withdrawAdmin succeeds. |
| OtherTokenWithdrawal | (indexed token, indexed to, amount) | withdrawOtherToken succeeds. |
| OtherConfidentialTokenWithdrawal | (indexed token, indexed to, amount) | withdrawOtherConfidentialToken succeeds. |
| MaxBatchSizeUpdated | (oldMax, newMax) | setMaxBatchSize succeeds. |
| MaxRevokeBatchSizeUpdated | (oldMax, newMax) | setMaxRevokeBatchSize succeeds. |
Roles· 3
| Event | Args | Emitted on |
|---|---|---|
| RoleGranted | (indexed role, indexed account, indexed sender) | grantRole succeeds, on a manager or the factory. |
| RoleRevoked | (indexed role, indexed account, indexed sender) | revokeRole / renounceRole succeeds. |
| RoleAdminChanged | (indexed role, indexed previousAdminRole, indexed newAdminRole) | A role's admin role is reassigned (AccessControl). |
ERC-7984 operator (on the token)· 1
| Event | Args | Emitted on |
|---|---|---|
| OperatorSet | (indexed holder, indexed operator, until) | setOperator / revokeOperator succeeds on the distribution token, with the manager clone as operator. Emitted by the token, not the manager. |
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