Conditions
Available conditions:- equal ()
- greater than ()
- less than ()
- greater than or equal ()
- less than or equal ()
- not equal ()
{ condition, value, usageLimit? }— a single comparison, using one of the conditions above.{ min, max, usageLimit? }— inclusive bounds, compiling to two comparisons the param must pass together.{ anyOf: [...] }— an allowlist of accepted values. See the migration guide for the rules it expands to.
Usage
To restrict an ERC20 transfer to a single recipient: Examples on this page use@rhinestone/sdk, where rhinestone is the RhinestoneSDK instance from Create a session with a custom setup.
address, bool, uint*, int*, bytes1–bytes32).
To bound a param on both sides, give min and max instead of a condition:
Param accumulator
Cap the total accumulated value of a param across all session uses withusageLimit. Useful for capping cumulative spend across calls.
Value limit
To cap the ETH value sent on a single call, usevalueLimitPerUse at the function level: