ade_plutus
BLUE- Purpose
Quarantine boundary between the Ade-canonical ledger and the ported UPLC evaluator from
aiken-lang/aiken(pinned tagv1.1.21). A per-script declared-ex_unitscap closes a Plutus false-accept. (No change across the span —ade_plutusis 9, byte-stable.)- Creates
PlutusScript,PlutusLanguage,EvalOutput,PlutusError,CostModels,DecoderMode,PerScriptResult,TxEvalResult,RedeemerFields. 9 top-level types.- Interprets
UPLC scripts (Plutus V1/V2/V3) and
CostModelsCBOR; phase-two tx evaluation with the per-script declared-ex_unitscap.- MUST NOT
(1) Re-export any
pallas_*oraiken_uplc::type. (2) Let another BLUE crate bypass the canonical entry. (3) Activate PV11 builtins. (4) Use any BLUE-forbidden pattern. (5) ConstructPreservedCboroutsideade_codec. (6,CN-PLUTUS-01/04) phase-two evaluation fails closed on a script exceeding its declared per-scriptex_units, under host-environment purity.- Inbound deps
ade_ledger,ade_testkit.- Outbound deps
ade_types,ade_crypto,ade_codec,aiken_uplc(git, tagv1.1.21),pallas-primitives(internal-only).- Entry points
ade_plutus::eval_tx_phase_two,ade_plutus::tx_eval::*,ade_plutus::evaluator::*,ade_plutus::cost_model::*.- Key modules
evaluator.rs,cost_model.rs,script_context.rs,script_verdict.rs,tx_eval.rs.
Depends on
—
Depended on by
—
CI guards — 4
| Script | Enforces |
|---|---|
| ci_check_plutus_budget_cap.sh | CN-PLUTUS-02, DC-LEDGER-03 |
| ci_check_plutus_conformance.sh | CN-PLUTUS-01 |
| ci_check_plutus_eval_purity.sh | CN-PLUTUS-01, CN-PLUTUS-04 |
| ci_check_required_signer_closure.sh | CN-LEDGER-09, DC-LEDGER-05 |
Related invariants — 4
| ID | Status | Statement |
|---|---|---|
| CN-PLUTUS-01 | enforced | Same script + same redeemers/datum/context + same cost model must produce identical result and budget accounting |
| CN-PLUTUS-02 | declared | Budget exhaustion and script failure must have a single deterministic failure shape |
| CN-PLUTUS-04 | enforced | No host-environment property may influence script results |
| DC-LEDGER-05 | partial | Witness binding is era-specific: Byron TxWitness, Shelley+ WitsVKey/Scripts/BootstrapWitnesses, Alonzo+ Redeemers/Datums, Conway governance witnesses |