manifest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteDeployments

func ExecuteDeployments(ctx context.Context, manifests []*Manifest, client mazzaroth.Client, sender string, privKey ed25519.PrivateKey) error

func ExecuteTests

func ExecuteTests(ctx context.Context, manifests []*Manifest, client mazzaroth.Client, sender string, privKey ed25519.PrivateKey) error

Types

type Channel

type Channel struct {
	Version      string `yaml:"version,omitempty"`
	Id           string `yaml:"id,omitempty"`
	Owner        string `yaml:"owner,omitempty"`
	ContractFile string `yaml:"contract-file,omitempty"`
	AbiFile      string `yaml:"abi-file,omitempty"`
}

type Deploy

type Deploy struct {
	Name         string `yaml:"name"`
	Transactions []*Tx  `yaml:"transactions,omitempty"`
}

type GatewayNode

type GatewayNode struct {
	Address string `yaml:"address,omitempty"`
}

type Manifest

type Manifest struct {
	Version     string      `yaml:"version"`
	Type        string      `yaml:"type"`
	Channel     Channel     `yaml:"channel"`
	GatewayNode GatewayNode `yaml:"gateway-node"`
	Deploy      *Deploy     `yaml:"deploy"`
	Tests       []*Test     `yaml:"tests"`
}

func FromFile

func FromFile(path string, manifestType string) ([]*Manifest, error)

type Receipt

type Receipt struct {
	Status int32  `yaml:"status,omitempty"`
	Result string `yaml:"result,omitempty"`
}

type Test

type Test struct {
	Name         string `yaml:"name"`
	Reset        bool   `yaml:"reset"`
	Transactions []*Tx  `yaml:"transactions,omitempty"`
}

type Transaction

type Transaction struct {
	Function string   `yaml:"function,omitempty"`
	Args     []string `yaml:"args,omitempty"`
	Receipt  *Receipt `yaml:"receipt,omitempty"`
}

type Tx

type Tx struct {
	Tx *Transaction `yaml:"tx"`
}

Jump to

Keyboard shortcuts

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