Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Plutonomicon/pluton

Repository files navigation

pluton

Hercules-ci Cachix Cache

Work in Progress

Pluton is intended to:

  • Write example smart contracts using Plutarch to assess what's needed to be done at the eDSL layer.
  • Benchmark (script size, cpu/mem cost) functions and smart contracts written in Haskell, Plutarch and Pluto

See Project board for planned tasks.

Developing

nix develop should get a dev environment with Haskell Language Server support and ghcid.

If you are developing with VSCode, nix-direnv is recommended. Using home-manager, you can install it as follows:

programs.direnv = {
  enable = true;
  enableBashIntegration = true;
  nix-direnv.enable = true;
};

If you use ghcid, you may find bin/{ghcid,test} handy.

Running the tests

In a nix-shell, run:

cabal run pluton

Benchmarks

Note: Benchmarks are work in progress; we intend to benchmark all examples in CI.

cabal bench

This will write the benchmark report to bench.*.

Benchmarking a commit

To run benchmarks on a particular commit,

nix run github:Plutonomicon/pluton/<COMMIT-GOES-HERE>#benchmark

About

Plutarch: Smart Contracts & benchmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •