Airdrop · Events · 18@tokenops/sdk/fhe-airdrop
Airdrop event reference.
Factory emits ConfidentialAirdropCreated and ConfidentialAirdropFunded; per-clone emits claims (Claimed carries the EIP-712 struct hash), window extensions, withdrawals, role mgmt.
Factory· 5
| Event | Args | Emitted on |
|---|---|---|
| ConfidentialAirdropCreated | (indexed airdrop, indexed token, indexed admin, feeCollector, gasFee, startTime, endTime, canExtendClaimWindow, creator, userSalt) | factory.createConfidentialAirdrop / createAndFundConfidentialAirdrop succeeds. |
| ConfidentialAirdropFunded | (indexed airdrop, indexed token, transferredAmount) | factory.fundConfidentialAirdrop / createAndFundConfidentialAirdrop succeeds. |
| FeeCollectorSet | (indexed admin, indexed newFeeCollector) | factory.setFeeCollector succeeds. |
| SetDefaultGasFee | (indexed admin, oldGasFee, newGasFee) | factory.setDefaultGasFee succeeds. |
| SetCustomFee | (indexed admin, enabled, indexed campaignCreator, gasFee) | factory.setCustomFee / disableCustomFee succeeds (enabled flag distinguishes). |
Claim lifecycle· 4
| Event | Args | Emitted on |
|---|---|---|
| Initialized | (indexed admin, indexed feeCollector, endTime) | clone.initialize succeeds (factory deployment). |
| Claimed | (indexed user, signatureHash) | clone.claim succeeds. signatureHash is the EIP-712 struct hash of the claim; it is not indexed, so it lives in the log data, not a topic. |
| ClaimWindowExtended | (indexed admin, oldEndTime, newEndTime) | clone.extendClaimWindow succeeds. |
| EIP712DomainChanged | () | EIP-712 domain (re)initialized (OpenZeppelin EIP712). |
Admin / Recovery· 6
| Event | Args | Emitted on |
|---|---|---|
| PauseToggled | (isPaused) | clone.setPaused succeeds. |
| Withdrawn | (indexed admin, indexed recipient) | clone.withdraw succeeds (post-window cleanup). |
| GasFeeWithdrawn | (indexed recipient, amount) | clone.withdrawGasFee succeeds. |
| OtherTokenWithdrawn | (indexed admin, indexed token, amount) | clone.withdrawOtherToken succeeds. |
| OtherConfidentialTokenWithdrawn | (indexed admin, indexed token, indexed recipient) | clone.withdrawOtherConfidentialToken succeeds. |
| Initialized | (version) | OpenZeppelin initializer version marker, fires once during clone.initialize. |
Roles· 3
| Event | Args | Emitted on |
|---|---|---|
| RoleGranted | (indexed role, indexed account, indexed sender) | clone / factory grantRole succeeds. |
| RoleRevoked | (indexed role, indexed account, indexed sender) | clone / factory revokeRole / renounceRole succeeds. |
| RoleAdminChanged | (indexed role, indexed previousAdminRole, indexed newAdminRole) | Admin role for a role is reassigned (AccessControl). |
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