bcos

package
v0.0.0-...-887b451 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = "bcos"

	ConfigFile = "config_file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BCOSChain

type BCOSChain struct {
	Client *bcosclient.Client
}

BCOSChain defines the BCOS chain

func MakeBCOSChain

func MakeBCOSChain(config Config) BCOSChain

MakeBCOSChain builds a BCOS chain from the given config

func NewBCOSChain

func NewBCOSChain(
	configFile string,
) BCOSChain

NewBCOSChain constructs a new BCOSChain instance

func (BCOSChain) WaitForReceipt

func (b BCOSChain) WaitForReceipt(tx *types.Transaction, name string) (*types.Receipt, error)

WaitForReceipt waits for the receipt of the given tx

type Config

type Config struct {
	ConfigFile string `yaml:"config_file"`
}

Config represents the BCOS chain config

func NewConfig

func NewConfig(v *viper.Viper) Config

NewConfig constructs a new Config from viper

Jump to

Keyboard shortcuts

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