Type Alias AbiToPoliciesInfoParams

AbiToPoliciesInfoParams: Omit<ActionPolicyInfo, "functionSelector" | "rules"> & {
    abi: Abi;
}

Converts an ABI to a list of ActionPolicyInfo objects.

The parameters object

The ABI to convert

The ActionPolicyInfo object to apply to each function in the ABI

const actionPoliciesInfo = abiToPoliciesInfo({
abi: CounterAbi,
actionPolicyInfo: {
contractAddress: COUNTER_ADDRESS,
sudo: false,
tokenLimits: [],
usageLimit: 1000n,
valueLimit: 1000n
}
})

An array of ActionPolicyInfo objects