drt-chain-scenario-go

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: GPL-3.0

README

DharitriOne blockchain scenarios: The Go framework

Overview

Blockchain scenarios are interactions with the blockchain, real or imagined.

They help developers write tests and are able to document and replay interactions with smart contracts.

The format is described here: https://docs.DharitriOne.com/developers/scenario-reference/overview

Scope

This Go framework deals with reading, writing, and controlling scenario runners.

Scenario runners are the routines that do something with these scenarios. Think of them as closures that receive the scenario steps.

The main example for such a runner can be found in the VM, here: https://github.com/DharitriOne/drt-chain-vm-go/tree/master/scenarioexec

However, more such runners are conceivable.

To implement such a runner, create an object that implements interface ScenarioRunner.

Alternate implementation

There is an equivalent Rust implementation here: https://github.com/DharitriOne/drt-sdk-rs/tree/master/sdk/scenario-format

The Go implementation (this one) is older and generally tends to be better featured, altough they should be up-to-date with one another now.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL