Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallContext ¶
type Chaincode ¶
type Chaincode interface { // called when chaincode is deployed Init(ctx CallContext) error Invoke(ctx CallContext) error Query(ctx CallContext) ([]byte, error) }
all chaincodes implements Chaincode interface
type MockCallContext ¶
type MockCallContext struct { MockSender []byte MockBlockHeight uint64 MockBlockHash []byte MockInput []byte *MockState }
func (*MockCallContext) BlockHash ¶
func (wc *MockCallContext) BlockHash() []byte
func (*MockCallContext) BlockHeight ¶
func (wc *MockCallContext) BlockHeight() uint64
func (*MockCallContext) Input ¶
func (wc *MockCallContext) Input() []byte
func (*MockCallContext) Sender ¶
func (wc *MockCallContext) Sender() []byte
type MockState ¶
func NewMockState ¶
func NewMockState() *MockState
Click to show internal directories.
Click to hide internal directories.