Git Source Inherits: RulesEngineClient Author: @mpetersoCode55, @ShaneDuncan602, @TJ-Everett, @VoR0220 This contract showcases advanced integration with the Rules Engine by including additional parameters in the policy evaluation process. This contract extends the functionality of the ExampleUserContract by including additional parameters, such as the sender’s address, in the data sent to the Rules Engine. It demonstrates how to pass extra context to the Rules Engine for policy enforcement.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.
Functions
transfer
Demonstrates a generictransfer function with extra parameters integrated with the Rules Engine.
This function sends custom arguments, including the sender’s address, to the Rules Engine for policy
enforcement. The Rules Engine determines whether the transfer is allowed based on the provided arguments.
| Name | Type | Description |
|---|---|---|
to | address | The recipient address. |
value | uint256 | The amount to transfer. |
| Name | Type | Description |
|---|---|---|
<none> | bool | bool True if the transfer is allowed by the Rules Engine, false otherwise. |