convertRuleStructToString(Converts afunctionString
,encodedValues
,ruleS
,plhArray
,foreignCalls
,trackers
,mappings
):ruleJSON
RuleStruct
object into a JSON-like string representation.
Parameter | Type | Description |
---|---|---|
functionString | string | The calling function signature as a string. |
encodedValues | string | A string containing encoded values for the rule. |
ruleS | RuleStruct | The RuleStruct object containing rule details such as placeholders, positive effects, and negative effects. |
plhArray | string [] | An array to store the names of placeholders extracted from the rule. |
foreignCalls | ForeignCallOnChain [] | - |
trackers | TrackerOnChain [] | - |
mappings | hexToFunctionString [] | - |
ruleJSON
An object of type ruleJSON
containing the condition, positive effects, negative effects, calling function, and encoded values.
The function processes the RuleStruct
object to:
plhArray
.ruleJSON
object with the processed data.