setPolicies(
config
,rulesEnginePolicyContract
,policyIds
,contractAddressForPolicy
):Promise
<void
>
Sets the policies appled to a specific contract address.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
policyIds | [number ] | The list of IDs of all of the policies that will be applied to the contract |
contractAddressForPolicy | `0x${string}` | The address of the contract to which the policy will be applied. |
Promise
<void
>
setPolicies(
config
,rulesEnginePolicyContract
,policyIds
,contractAddressForPolicy
):Promise
<void
>
Sets the policies appled to a specific contract address.
Parameter | Type | Description |
---|---|---|
config | Config | - |
rulesEnginePolicyContract | object | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | (object | object )[] | - |
rulesEnginePolicyContract.address | `0x${string}` | - |
policyIds | [number ] | The list of IDs of all of the policies that will be applied to the contract |
contractAddressForPolicy | `0x${string}` | The address of the contract to which the policy will be applied. |
Promise
<void
>