Oya Commitments are Safe-based commitments controlled by plain-language rules and enforced via an Optimistic Governor module. This repo contains the Solidity contracts, deployment scripts, an optional web UI, and an offchain agent scaffold.
This is beta software provided “as is.” Use at your own risk. No guarantees of safety, correctness, or fitness for any purpose.
- Write plain-language rules that define what the commitment may do.
- Deploy a Safe wired to an Optimistic Governor module with those rules.
- An agent or user proposes transactions via the module and posts a bond.
- If no challenge occurs during the window, the proposal is executed by the Safe.
- Install Foundry: https://book.getfoundry.sh/
- Set required environment variables (see
docs/deployment.md). - Run the deployment script:
forge script script/DeploySafeWithOptimisticGovernor.s.sol:DeploySafeWithOptimisticGovernor \
--rpc-url <your_rpc_url> \
--broadcast \
--private-key <your_private_key>- Deployment and configuration:
docs/deployment.md - Signer options and
with-signerhelper:docs/signers.md - Offchain agent usage:
docs/agent.md - Web frontend:
docs/frontend.md - Testing and common commands:
docs/testing.md
src/Solidity contractsscript/Foundry deployment and ops scriptstest/Foundry testsagent/Offchain agent scaffoldfrontend/Web UIlib/External dependencies (Foundry)