cc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTokenChaincode                    = "github.com/hyperledger-labs/fabric-token-sdk/token/services/network/fabric/tcc/main"
	DefaultTokenChaincodeParamsReplaceSuffix = "/token/services/network/fabric/tcc/params.go"
)

Variables

This section is empty.

Functions

func PublicParamsTemplate

func PublicParamsTemplate(ppRaw []byte) *bytes.Buffer

Types

type GenericBackend

type GenericBackend struct {
	TokenChaincodePath                string
	TokenChaincodeParamsReplaceSuffix string
	TokenPlatform                     common2.TokenPlatform
}

func NewDefaultGenericBackend

func NewDefaultGenericBackend(tokenPlatform common2.TokenPlatform) *GenericBackend

func NewGenericBackend

func NewGenericBackend(tokenChaincodePath string, tokenChaincodeParamsReplaceSuffix string, tokenPlatform common2.TokenPlatform) *GenericBackend

func (*GenericBackend) Fabric

func (p *GenericBackend) Fabric(tms *topology3.TMS) fabricPlatform

func (*GenericBackend) PrepareNamespace

func (p *GenericBackend) PrepareNamespace(tms *topology3.TMS)

func (*GenericBackend) TCCCtor

func (p *GenericBackend) TCCCtor(tms *topology3.TMS) string

func (*GenericBackend) TokenChaincodeServerAddr

func (p *GenericBackend) TokenChaincodeServerAddr(port uint16) string

func (*GenericBackend) UpdatePublicParams

func (p *GenericBackend) UpdatePublicParams(tms *topology3.TMS, ppRaw []byte)

type TCC

type TCC struct {
	Chaincode *topology.ChannelChaincode
}

Jump to

Keyboard shortcuts

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