Learn about how to interact with an ERC20 Variable Criteria Incentive using the SDK
criteriaType
: Either SignatureType.EVENT
for event logs or SignatureType.FUNC
for function callssignature
: The event or function signature to match againstfieldIndex
: Which parameter in the event/function to extract the value from (0-based index)targetContract
: The contract address to watch for the event/function@boostxyz/signatures
package to get pre-defined event signatures instead of using raw hex values. For example: import { selectors } from '@boostxyz/signatures/events'
maxReward
parameter if necessary.