interface UpdatePolicyRuleRequest {
    contract?: string;
    countLimit?: number;
    functionName?: string;
    gasLimit?: string;
    id: string;
    timeIntervalType?: TimeIntervalType;
    timeIntervalValue?: number;
    type: PolicyRuleType;
    wildcard?: boolean;
}

Hierarchy (view full)

Properties

contract?: string

The contract ID you want to interact with. Must have been added to Openfort first, starts with con_.

countLimit?: number

Number of times the function will be sponsored.

functionName?: string

Name of the function in the contract to allow. If you want to allow all functions, use the wildcard 'All functions'.

gasLimit?: string

Gas limit in WEI (i.e. factor 10^18).

id: string
timeIntervalType?: TimeIntervalType
timeIntervalValue?: number

Time interval value.

wildcard?: boolean

When using contract_functions type, set this to true to allow all contracts.