Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- type Agent
- type ChaincodeStubInterface
- type GetTokenView
- type PublicParametersManager
- type SetupAction
- type TokenChaincode
- func (cc *TokenChaincode) AreTokensSpent(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response
- func (cc *TokenChaincode) GetValidator(builtInParams string) (Validator, error)
- func (cc *TokenChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *TokenChaincode) Initialize(builtInParams string) error
- func (cc *TokenChaincode) Invoke(stub shim.ChaincodeStubInterface) (res pb.Response)
- func (cc *TokenChaincode) NewMetricsAgent(id string) (Agent, error)
- func (cc *TokenChaincode) Params(builtInParams string) ([]byte, error)
- func (cc *TokenChaincode) ProcessRequest(raw []byte, stub shim.ChaincodeStubInterface) pb.Response
- func (cc *TokenChaincode) QueryPublicParams(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *TokenChaincode) QueryTokens(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response
- func (cc *TokenChaincode) ReadParamsFromFile() string
- type Validator
Constants ¶
View Source
const ( InvokeFunction = "invoke" QueryPublicParamsFunction = "queryPublicParams" AddCertifierFunction = "addCertifier" QueryTokensFunctions = "queryTokens" AreTokensSpent = "areTokensSpent" PublicParamsPathVarEnv = "PUBLIC_PARAMS_FILE_PATH" )
View Source
const Params = ``
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeStubInterface ¶
type ChaincodeStubInterface interface { shim.ChaincodeStubInterface }
ChaincodeStubInterface is used by deployable chaincode apps to access and modify their ledgers
type GetTokenView ¶
func NewGetTokensView ¶
func NewGetTokensView(channel string, namespace string, ids ...*token2.ID) *GetTokenView
type PublicParametersManager ¶
type PublicParametersManager interface {
GraphHiding() bool
}
type SetupAction ¶
type SetupAction struct {
SetupParameters []byte
}
func (*SetupAction) GetSetupParameters ¶
func (a *SetupAction) GetSetupParameters() ([]byte, error)
type TokenChaincode ¶
type TokenChaincode struct { LogLevel string Validator Validator PublicParametersManager PublicParametersManager PPDigest []byte TokenServicesFactory func([]byte) (PublicParametersManager, Validator, error) MetricsEnabled bool MetricsServer string MetricsLock sync.Mutex MetricsAgent Agent // contains filtered or unexported fields }
func (*TokenChaincode) AreTokensSpent ¶
func (cc *TokenChaincode) AreTokensSpent(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response
func (*TokenChaincode) GetValidator ¶
func (cc *TokenChaincode) GetValidator(builtInParams string) (Validator, error)
func (*TokenChaincode) Init ¶
func (cc *TokenChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response
func (*TokenChaincode) Initialize ¶
func (cc *TokenChaincode) Initialize(builtInParams string) error
func (*TokenChaincode) Invoke ¶
func (cc *TokenChaincode) Invoke(stub shim.ChaincodeStubInterface) (res pb.Response)
func (*TokenChaincode) NewMetricsAgent ¶
func (cc *TokenChaincode) NewMetricsAgent(id string) (Agent, error)
func (*TokenChaincode) Params ¶
func (cc *TokenChaincode) Params(builtInParams string) ([]byte, error)
func (*TokenChaincode) ProcessRequest ¶
func (cc *TokenChaincode) ProcessRequest(raw []byte, stub shim.ChaincodeStubInterface) pb.Response
func (*TokenChaincode) QueryPublicParams ¶
func (cc *TokenChaincode) QueryPublicParams(stub shim.ChaincodeStubInterface) pb.Response
func (*TokenChaincode) QueryTokens ¶
func (cc *TokenChaincode) QueryTokens(idsRaw []byte, stub shim.ChaincodeStubInterface) pb.Response
func (*TokenChaincode) ReadParamsFromFile ¶
func (cc *TokenChaincode) ReadParamsFromFile() string
Click to show internal directories.
Click to hide internal directories.