Git Source

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.

function transfer(address to, uint256 value) public returns (bool);

Parameters

NameTypeDescription
toaddressThe recipient address.
valueuint256The amount to transfer.

Returns

NameTypeDescription
<none>boolbool True if the transfer is allowed by the Rules Engine, false otherwise.