Skip to content

Files

38 lines (28 loc) · 1.33 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.33 KB

Aiken aiken/sample

Licence Continuous Integration


The official library for writing samplers (a.k.a Scaled Fuzzers) for the Aiken Cardano smart-contract language.

Warning

This is a work in progress and the API is not stable yet; The sample API for benchmarks is only supported since aiken==1.1.11;

Installation

aiken add aiken-lang/sample --version v0.0.0

Getting started

use aiken/sample.{Linear}

fn my_function(n: Int) -> Int {
  n * 2
}

bench multiply_bench(n via sample.int(Linear(5))) {
  my_function(n)
}

Tip

For more information, read the user manual.