Policy Control Layer (PCL)
The enforcement engine for Maroo's regulatory compliance
The PCL is a Cosmos SDK module that intercepts transactions destined for EVM smart contracts. It evaluates predefined policy templates against the transaction context (sender identity, target contract, call data) to determine validity before execution. This ensures regulatory compliance is maintained at the infrastructure level rather than relying solely on smart contract logic.
Policy Templates
Templates are the blueprints for compliance. They define logical rules such as 'Must have KYC', 'Must be a Corporation', or 'Cannot be from Blacklisted Country'. Templates are stored on-chain and referenced by ID.
Contract Binding
A policy template does nothing until it is bound to a smart contract address. Once bound via
MsgSetContractPolicy, all incoming transactions to that contract must satisfy the policy's conditions.Global vs Local
Policies can be applied globally (affecting all transactions on the network, e.g., for sanctions enforcement) or locally (specific to a single dApp or token contract).