setPolicies(Defined in: src/modules/policy.ts:1302 Sets the policies applied to a specific contract address.config,rulesEnginePolicyContract,policyIds,contractAddressForPolicy,confirmationCount):Promise<{transactionHash:`0x${string}`; }>
Parameters
| Parameter | Type | Description |
|---|---|---|
config | Config | The configuration object containing network and wallet information. |
rulesEnginePolicyContract | { abi: ({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[]; address: `0x${string}`; } | The contract instance for interacting with the Rules Engine Policy. |
rulesEnginePolicyContract.abi | ({ anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: undefined; inputs: object[]; name: string; outputs: object[]; stateMutability: string; type: string; } | { anonymous: boolean; inputs: object[]; name: string; outputs: undefined; stateMutability: undefined; type: string; })[] | - |
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. |
confirmationCount | number | - |
Returns
Promise<{ transactionHash: `0x${string}`; }>