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 ¶
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 ¶
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 ¶
func (m *MockBlockchain) EXPECT() *MockBlockchainMockRecorder
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