Git Source Inherits: RulesEngineClient Author: @mpetersoCode55, @ShaneDuncan602, @TJ-Everett, @VoR0220 SPDX-License-Identifier: BUSL-1.1 This contract showcases the Rules Engine’s ability to enforce policies on external contract functions. This contract demonstrates how to integrate the Rules Engine with an external contract. It provides a genericDocumentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
transfer function that interacts with the Rules Engine to enforce policies. This contract is intended for
testing and demonstration purposes.
Functions
transfer
Demonstrates a generictransfer function integrated with the Rules Engine.
This function sends custom arguments 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. |