aleeusgr / potential-robot

minimal dApp testing suite
MIT License
3 stars 2 forks source link
cosp testing web3

version: Adderall

is used to architect a decentralzied application using eUTXO model and Helios, a domain specific language for writing smart contracts on Cardano blockchain.

Quick Start

  1. npm install
  2. npm test

image

Usage

Simple dApp consists of a smart contract with the set of transactions that could be applied to it. Current example is vesting, which is discussed in the documentation below. Following the book in the links and tutorials on Test-Driven Development a programmer should be able to express buisness logic as functional requirements for the product and write tests to verify the requirements are satisfied. For example for the vesting contract the functional requirements are like so:

FOr the first excercise the user may seek to implement NFT escrow - a contract that validates withdrawal depending not on time of the transation but if the transaction has a specific NFT. Take a look at the code example.

Architecture

image

Contributing

Refs:

Vitest

Helios

Helios vesting example

Cardano Smart contract with Helios

Plutus: Writing reliable smart contracts

Big Thanks to Helios team, James Dunseith Gimbalabs, Ben Hart MLabs, Romain Soulat IOG and Matthias Sieber EMURGO. The project is inspired by Nine Inch Nails, SBF trial and the show Inside Job.