blockchain

package
v1.0.15 Latest Latest
Warning

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

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

Documentation

Overview

Package blockchain contains code for interacting with the decentr blockchain.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAddress = errors.New("invalid address")

ErrInvalidAddress is returned when address is invalid. It is unexpected situation.

Functions

This section is empty.

Types

type Blockchain

type Blockchain interface {
	SendStakes(address string, amount int64) error
}

Blockchain is interface for interacting with the blockchain.

func New added in v1.0.5

func New(b *broadcaster.Broadcaster, memo string) Blockchain

New returns new instance of Blockchain.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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