txn

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCASStubWrapperFactory added in v0.1.5

type DCASStubWrapperFactory interface {
	CreateDCASClientStubWrapper(coll string, stub shim.ChaincodeStubInterface) (dcasclient.DCAS, error)
}

DCASStubWrapperFactory creates a DCAS client wrapper around a stub

type ProtocolClientChannelProvider added in v0.1.5

type ProtocolClientChannelProvider interface {
	ProtocolClientProviderForChannel(channelID string) (ctxcommon.ProtocolClientProvider, error)
}

ProtocolClientChannelProvider returns the protocol client provider for a given channel

type SidetreeTxnCC

type SidetreeTxnCC struct {
	ProtocolClientChannelProvider
	DCASStubWrapperFactory
	// contains filtered or unexported fields
}

SidetreeTxnCC ...

func New added in v0.1.1

New returns chaincode

func (*SidetreeTxnCC) Chaincode added in v0.1.1

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

Chaincode returns the SidetreeTxn chaincode

func (*SidetreeTxnCC) GetDBArtifacts added in v0.1.1

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

GetDBArtifacts returns Couch DB indexes for the 'docs' collection

func (*SidetreeTxnCC) Init

Init - nothing to do for now

func (*SidetreeTxnCC) Invoke

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

Invoke manages metadata lifecycle operations (writeContent, readContent)

func (*SidetreeTxnCC) Name added in v0.1.1

func (cc *SidetreeTxnCC) Name() string

Name returns the name of this chaincode

func (*SidetreeTxnCC) Version added in v0.1.2

func (cc *SidetreeTxnCC) 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