Rule: {
    condition: ParamCondition;
    isLimited: boolean;
    offsetIndex: number;
    ref: AnyReferenceValue;
    usage: LimitUsage;
}

Represents a rule for action policies.

Type declaration

  • condition: ParamCondition

    The condition to apply to the parameter

  • isLimited: boolean

    Indicates if the rule has a usage limit

  • offsetIndex: number

    The offset index in the calldata where the value to be checked is located

  • ref: AnyReferenceValue

    The reference value to compare against

  • usage: LimitUsage

    The usage object containing limit and used values (required if isLimited is true)