BespokeAction_Simple
BespokeAction_Simple is an executive mandate that enables the execution of a single, predefined function call to a target contract.
Overview
Section titled “Overview”This mandate is the most basic tool for executing external actions. It is configured to call a specific function on a specific contract. When executed, it passes the user’s input directly to that function.
Configuration
Section titled “Configuration”When adopting a BespokeAction_Simple instance, the following parameters are required:
TargetContract(address): The address of the contract to call.FunctionSelector(bytes4): The function selector to call.Params(string[]): An array of strings describing the input parameters for the UI (e.g.,["uint256 Amount", "address Recipient"]).
Proposing an Action
Section titled “Proposing an Action”When calling the mandate, the input (mandateCalldata) must contain the encoded arguments matching the target function’s signature (excluding the selector).
Execution Flow
Section titled “Execution Flow”-
Assembly
- Concatenates the configured
FunctionSelectorwith the providedmandateCalldata.
- Concatenates the configured
-
Execution
- Calls the
TargetContractwith the assembled data.
- Calls the
Technical Specifications
Section titled “Technical Specifications”Functions
Section titled “Functions”initializeMandate
Section titled “initializeMandate”function initializeMandate(...) public override- Initializes the contract and function.
- Sets input parameters.
handleRequest
Section titled “handleRequest”function handleRequest(...) public view virtual override returns (...)- Encodes the call.
Current Deployments
Section titled “Current Deployments”| Chain ID | Chain Name | Address |
|---|---|---|