/plutonomy-cli

An extremely simple CLI for well-typed/plutonomy

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Plutonomy-cli

A simple command-line wrapper for Plutonomy -- an optimizer for UPLC.

See disclaimer notice on Plutonomy.

Getting Started

Installation instructions

cabal install --overwrite-policy=always --install-method=copy plutonomy-cli

Usage

plutonomy-cli --help

Example

First, generate or obtain the script as hex encoded single-wrapped cbor of the flat encoding. This is usually among the output of the build commands of uplc, opshin or aiken.

uplc build foo.uplc

Then optimize the code using plutonomy-cli.

plutonomy-cli foo/script.cbor > foo/optimized.cbor