inprocucc

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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V1

type V1 struct {
}

V1 chaincode for in-process UCC tests

func NewV1

func NewV1() *V1

New returns a new instance of V1

func (*V1) Chaincode

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

Chaincode returns the chaincode implementation

func (*V1) GetDBArtifacts

func (cc *V1) GetDBArtifacts([]string) map[string]*ccapi.DBArtifacts

GetDBArtifacts returns DB artifacts. For this chaincode there are no artifacts.

func (*V1) Init

func (cc *V1) Init(stub shim.ChaincodeStubInterface) pb.Response

Init will be deprecated in a future Fabric release

func (*V1) Invoke

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

Invoke invokes the chaincode

func (*V1) Name

func (cc *V1) Name() string

Name returns the name of this chaincode

func (*V1) Version

func (cc *V1) Version() string

Version returns the version of this chaincode

type V1_1

type V1_1 struct {
	*V1
}

V1_1 chaincode for in-process UCC tests

func NewV1_1

func NewV1_1() *V1_1

New returns a new instance of V1_1

func (*V1_1) Chaincode

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

Chaincode returns the chaincode implementation

func (*V1_1) Invoke

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

Invoke invokes the chaincode

func (*V1_1) Version

func (cc *V1_1) Version() string

Version returns the version of this chaincode

type V2

type V2 struct {
	*V1_1
}

V2 chaincode for in-process UCC tests

func NewV2

func NewV2() *V2

New returns a new instance of V2

func (*V2) Chaincode

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

Chaincode returns the chaincode implementation

func (*V2) GetDBArtifacts added in v0.1.4

func (cc *V2) GetDBArtifacts([]string) map[string]*ccapi.DBArtifacts

GetDBArtifacts returns DB artifacts

func (*V2) Invoke

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

Invoke invokes the chaincode

func (*V2) Version

func (cc *V2) Version() string

Version returns the version of this chaincode

Jump to

Keyboard shortcuts

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