dotty 0.3.0

Smart contract test runner

To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

This package provides sub packages which can be used individually:

dotty:builder - Builder for smart-contracts

dotty:init-exec - Initiating folder for smart conract testing


Smart-Contract Test runner

Creating project with test runner

dub init -t dotty <your project  folder>
import dotty;
import contracts: Registry;

class ExampleTest: ContractTest
    /// test variables
    Registry registry;
    /// contructor for ContractTest neccesery for any Test
    mixin ContractTestContructor;
    /// function running before all tests once
    override void before(){
        registry = Registry.deploy(conn, conn.remoteAccounts[1]);

    @("registry should setable")
    void test()
        registry.set("registry", registry.address).send(conn.remoteAccounts[1].From);
        assert(registry.get("registry") == registry.address, "addr must be in registry");
  • tynuk
Sub packages:
dotty:runner, dotty:builder, dotty:init-exec
0.3.0 2023-Jun-01
0.2.0 2023-May-25
0.1.0 2023-May-09
0.0.9 2023-May-08
0.0.8 2023-May-08
Show all 14 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 46 downloads total

Short URL: