Understand the system
Technical reference and proposed architecture for the Orium Works developer experience.
Introduction
Orium Works is building programmable execution assurance infrastructure. The public website includes a working local rule evaluator, not a deployed execution protocol.
Policy model
Policies contain maxSpend, minOutput, maxSlippage, requireAllowlist and expiresAt. Amounts are illustrative units, not live market values. An empty expiresAt means no expiration. The evaluator rejects invalid, negative or non-finite values.
{
"maxSpend": 100,
"minOutput": 98.5,
"maxSlippage": 1,
"requireAllowlist": true,
"expiresAt": ""
}Simulation
The local engine evaluates user-supplied spend, output, slippage and allowlisted status. It does not retrieve live prices, balances or state. An eventual state simulation service would require verified external data and network support.
Guard design
A production guard would bind authorized policy parameters to compatible transaction paths and check required preconditions and postconditions atomically. It must not be bypassable by alternate execution modules.
Receipt format
Local receipts contain an identifier, timestamp, status, policy, transaction, individual checks and executed: false. They are not signed attestations, settlement confirmations or proofs of execution.
Local API reference
Load assets/engine.js in a browser or require it in a Node.js script. defaultPolicy() returns a fresh example policy. scenario(name) returns example transaction values. evaluate(policy, transaction, now) validates inputs and returns a receipt. The optional now argument is a millisecond timestamp for repeatable tests.
Security considerations
Production requires authorization verification, replay protection, recovery and revocation, careful handling of token behavior, reentrancy protection, gas bounds and independent audits. Do not use the local evaluator to authorize real funds.
Development status
The static website and local evaluator are implemented. Live execution, production contracts, wallet connection, public network integrations, audits and a published package are not available through this release.
No matching topics.
