testscc

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSCC

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

TestSCC is a sample in-process system chaincode

func New

func New(configServiceProvider configServiceProvider, peerConfig peerConfig) *TestSCC

New returns a new test chaincode

func (*TestSCC) Chaincode

func (cc *TestSCC) Chaincode() shim.Chaincode

Chaincode returns the chaincode implementation

func (*TestSCC) ChannelJoined

func (cc *TestSCC) ChannelJoined(channelID string)

ChannelJoined is called when the peer joins a channel

func (*TestSCC) Init

Init will be deprecated in a future Fabric release

func (*TestSCC) Invoke

func (cc *TestSCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response

Invoke invokes the config SCC

func (*TestSCC) Name

func (cc *TestSCC) Name() string

Name returns the name of this chaincode

Jump to

Keyboard shortcuts

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