Function abiToPoliciesInfo

  • Parameters

    Returns {
        abi?: undefined;
        contractAddress: `0x${string}`;
        functionSelector: string | AbiFunction;
        rules?: Rule[];
        sudo?: boolean;
        tokenLimits?: SpendingLimitPolicyData[];
        usageLimit?: bigint;
        validAfter?: number;
        validUntil?: number;
        valueLimit?: bigint;
    }[]

    • Optionalabi?: undefined
    • contractAddress: `0x${string}`

      The address of the contract to be included in the policy

    • functionSelector: string | AbiFunction

      The specific function selector from the contract to be included in the policy

    • Optionalrules?: Rule[]

      Array of rules for the policy

    • Optionalsudo?: boolean

      The sudo policy is an action policy that will allow any action for the specified target and selector.

    • OptionaltokenLimits?: SpendingLimitPolicyData[]

      The spending limits policy can be used to ensure that only a certain amount of ERC-20 tokens can be spent. For native value spends, use the value limit policy

    • OptionalusageLimit?: bigint

      The value limit policy can be used to enforce that only a certain amount of native value can be spent. For ERC-20 limits, use the spending limit policy.

    • OptionalvalidAfter?: number

      Timestamp after which the policy becomes valid

    • OptionalvalidUntil?: number

      The timeframe policy can be used to restrict a session to only be able to be used within a certain timeframe

    • OptionalvalueLimit?: bigint

      The value limit policy can be used to enforce that only a certain amount of native value can be spent. For ERC-20 limits, use the spending limit policy