blockchain

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package blockchain contains code for interacting with the decentr blockchain.

Package blockchain is a generated GoMock package.

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 {
	health.Pinger

	SendStakes(address string, amount int64) error
}

Blockchain is interface for interacting with the blockchain.

func NewBlockchain

func NewBlockchain(ctx clicontext.CLIContext, b auth.TxBuilder) Blockchain

type MockBlockchain

type MockBlockchain struct {
	// contains filtered or unexported fields
}

MockBlockchain is a mock of Blockchain interface

func NewMockBlockchain

func NewMockBlockchain(ctrl *gomock.Controller) *MockBlockchain

NewMockBlockchain creates a new mock instance

func (*MockBlockchain) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBlockchain) Ping

func (m *MockBlockchain) Ping(ctx context.Context) error

Ping mocks base method

func (*MockBlockchain) SendStakes

func (m *MockBlockchain) SendStakes(address string, amount int64) error

SendStakes mocks base method

type MockBlockchainMockRecorder

type MockBlockchainMockRecorder struct {
	// contains filtered or unexported fields
}

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) Ping

func (mr *MockBlockchainMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockBlockchainMockRecorder) SendStakes

func (mr *MockBlockchainMockRecorder) SendStakes(address, amount interface{}) *gomock.Call

SendStakes indicates an expected call of SendStakes

Jump to

Keyboard shortcuts

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