blockchain

package
v1.1.2 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

This section is empty.

Functions

This section is empty.

Types

type Blockchain

type Blockchain interface {
	health.Pinger

	DistributeReward(receiver sdk.AccAddress, id uint64, reward uint64) 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) DistributeReward

func (m *MockBlockchain) DistributeReward(receiver types.AccAddress, id, reward uint64) error

DistributeReward mocks base method

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

type MockBlockchainMockRecorder

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

MockBlockchainMockRecorder is the mock recorder for MockBlockchain

func (*MockBlockchainMockRecorder) DistributeReward

func (mr *MockBlockchainMockRecorder) DistributeReward(receiver, id, reward interface{}) *gomock.Call

DistributeReward indicates an expected call of DistributeReward

func (*MockBlockchainMockRecorder) Ping

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

Ping indicates an expected call of Ping

Jump to

Keyboard shortcuts

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