Skip to main content

Documentation Index

Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

getAllRules(config, rulesEngineRulesContract, policyId): Promise<Maybe<any[]>>
Retrieves all rules associated with a specific policy ID from the Rules Engine Policy Contract.

Parameters

ParameterTypeDescription
configConfig-
rulesEngineRulesContractobjectAn object representing the Rules Engine Rules Contract, including its address and ABI (Application Binary Interface).
rulesEngineRulesContract.abi(object | object | object)[]-
rulesEngineRulesContract.address`0x${string}`-
policyIdnumberThe unique identifier of the policy for which rules are to be retrieved.

Returns

Promise<Maybe<any[]>> A promise that resolves to an array of rules if successful, or null if an error occurs.

Throws

Will log an error to the console if the operation fails.

Defined in

src/modules/rules.ts:565