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: testAddresses.Counter,
sudo: false,
tokenLimits: [],
usageLimit: 1000n,
valueLimit: 1000n
}
})
An array of ActionPolicyInfo objects
Converts an ABI to a list of ActionPolicyInfo objects.