blockchain

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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(stakes []Stake) 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.

type Stake added in v1.2.0

type Stake struct {
	Address string
	Amount  int64
}

Stake ...

Directories

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

Jump to

Keyboard shortcuts

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