ExampleUserContractExtraParams
Inherits: [RulesEngineClient](/v2(/v2/reference/client/RulesEngineClient.sol/abstract.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.
Functions
transfer
Demonstrates a generic transfer
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.
Parameters
Name | Type | Description |
---|---|---|
to | address | The recipient address. |
value | uint256 | The amount to transfer. |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | bool True if the transfer is allowed by the Rules Engine, false otherwise. |