basicchain

package
v0.106.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RublesContractID         = int32(1)
	VerifyContractID         = int32(2)
	VerifyWithArgsContractID = int32(3)
	NNSContractID            = int32(4)
	NFSOContractID           = int32(5)
	StorageContractID        = int32(6)
)

Various contract IDs that were deployed to basic chain.

View Source
const (
	// RublesOldTestvalue is a value initially stored by `testkey` key inside Rubles contract.
	RublesOldTestvalue = "testvalue"
	// RublesNewTestvalue is an updated value of Rubles' storage item with `testkey` key.
	RublesNewTestvalue = "newtestvalue"
)

Variables

This section is empty.

Functions

func Init

func Init(t *testing.T, rootpath string, e *neotest.Executor)

Init pushes some predefined set of transactions into the given chain, it needs a path to the root project directory.

func InitSimple added in v0.99.4

func InitSimple(t *testing.T, rootpath string, e *neotest.Executor)

InitSimple initializes chain with simple contracts from 'examples' folder. It's not as complicated as chain got after Init and may be used for tests where chain with a small amount of data is needed and for historical functionality testing. Needs a path to the root directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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