blockchain

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 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, memo string) error
}

Blockchain is interface for interacting with the blockchain.

func New added in v1.0.5

func New(b broadcaster.Broadcaster) Blockchain

New returns new instance of Blockchain.

type Stake added in v1.2.0

type Stake struct {
	Address string
	Amount  sdk.Int
}

Stake ...

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