SDK API
CLI tools, Go modules, and internal SDK reference
ante
app
Exports the entire application state and validator set at the current block height into a format suitable for a `genesis.json` file. This fu...
A collection of constructor functions that create the default genesis state for various modules within the Maroo application. These function...
cli
Initializes the node configuration files, private validator keys, and a default genesis file. This is the first step to running a Maroo node...
Initializes files for a local testnet with multiple validators. Useful for local development and testing smart contracts in a multi-node env...
config
Utility functions to retrieve Maroo's core security and module configurations. `BlockedAddresses` returns a set of all system-reserved addre...
A collection of functions used to configure the global Cosmos SDK settings for the Maroo network. These functions must be called at applicat...
maroo.pcl.v1
Creates a reusable policy template in the Policy Control Layer (PCL). These templates define rules for smart contract interactions.
Assigns a specific policy template to a smart contract address. This enforces the policy's rules on all transactions interacting with that c...
precompiles.types
This function constructs and returns the complete, default set of static precompiles for the Maroo network. It is the central point of assem...
This method adds the OKRW precompile to a `StaticPrecompiles` map. It instantiates the precompile, injects its required keeper dependencies,...
This method adds the PCL (Programmable Compliance Layer) precompile to a `StaticPrecompiles` map. It instantiates the precompile, injects it...
precompiles/common
A base struct that extends the standard Cosmos EVM precompile. It overrides `RunNativeAction` to detect `RevertWithData` errors and correctl...
A specific error type used to return raw ABI-encoded data to the EVM during a revert. Use this when a precompile needs to throw a custom Sol...
scripts
utils
Constructs and emits an EVM log event. It automatically separates indexed arguments (topics) from non-indexed arguments (data) based on the ...
Parses generic input arguments (typically from ABI unpacking) into a specific Go struct using JSON as an intermediate format. This function ...
x/okrw
Mints a specified amount of `aokrw` tokens and sends them to a recipient address. This transaction can only be successfully executed by the ...
Retrieves the current parameters of the `x/okrw` module, including the authorized minter address and the mintable token denomination.
Updates the parameters for the `x/okrw` module. This is a privileged transaction that can only be executed by the module's authority, which ...