Skip to main content
Git Source Inherits: FacetCommonImports Author: @mpetersoCode55, @ShaneDuncan602, @TJ-Everett, @VoR0220 This contract is a critical component of the Rules Engine This contract contains worker functions and initialization functions.

State Variables

initialized

Functions

initialize

Initializes the Rules Engine with the specified owner. This function sets the initial owner of the diamond and ensures the contract is only initialized once.
Parameters

retrieveRawStringFromInstructionSet

Retrieves the raw string associated with a specific instruction set within a rule and policy. This function is used to fetch a StringVerificationStruct containing the raw string data.
Parameters Returns

retrieveRawAddressFromInstructionSet

Retrieves the raw address from a specific instruction set. This function is used to fetch the raw address associated with a given policy ID, rule ID, and instruction set ID.
Parameters Returns

_retreiveRawEncodedFromInstructionSet

Retrieves the raw encoded data and instruction set value from a given instruction set ID.
Parameters Returns

onlyOnce

Ensures that the function it modifies can only be executed once. This modifier checks if the contract has already been initialized and prevents re-initialization. If the contract is already initialized, it reverts with “Already initialized”.