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 ¶
func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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
Click to show internal directories.
Click to hide internal directories.