chaincodeimpl

package
v0.0.0-...-c716174 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChaincodeOp

func NewChaincodeOp(other *models.Other, sdk *fabsdk.FabricSDK) internalfabsdk.Chaincode

NewChaincodeOp /***************************************************************

Types

type ChaincodeOp

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

func (*ChaincodeOp) ApproveCC

func (c *ChaincodeOp) ApproveCC(packageID string, ccName, ccVersion string, sequence int64, chaincodePolicy string, isInit bool, channelID string, orgsInfos []*models.PeerOrgInfo) error

ApproveCC 批准链码 "OutOf('1', 'AMSP.member', 'BMSP.member')" **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) CommitCC

func (c *ChaincodeOp) CommitCC(ccName, ccVersion string, sequence int64, chaincodePolicy string, isInit bool, channelID string, orgsInfos []*models.PeerOrgInfo) error

CommitCC 提交链码 "OutOf('1', 'AMSP.member', 'BMSP.member')" **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) InitCC

func (c *ChaincodeOp) InitCC(ccName string, channelID string, args []string, orgInfo *models.PeerOrgInfo) (string, error)

InitCC 初始化链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) InstallCC

func (c *ChaincodeOp) InstallCC(ccName, ccVersion string, ret interface{}, orgsInfos []*models.PeerOrgInfo) (string, error)

InstallCC 安装链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) InvokeCC

func (c *ChaincodeOp) InvokeCC(ccName string, channelID string, args []string, orgInfo *models.PeerOrgInfo) (string, error)

InvokeCC 调用链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) PackageCC

func (c *ChaincodeOp) PackageCC(cCName, cCVersion, cCpath string, chaincodeType string) (string, interface{}, string, error)

PackageCC 打包链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) QueryCC

func (c *ChaincodeOp) QueryCC(ccName string, channelID string, args []string, orgInfo *models.PeerOrgInfo) (string, error)

QueryCC 查询链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

func (*ChaincodeOp) UpgradeCC

func (c *ChaincodeOp) UpgradeCC(packageID string, ccName, ccVersion string, sequence int64, chaincodePolicy string, isInit bool, channelID string, orgsInfos []*models.PeerOrgInfo) error

UpgradeCC 升级链码 **************************************************************

  • @brief 函数作用
  • @param 参数
  • @note 备注
  • @Sample usage: 函数的使用方法

*************************************************************

Jump to

Keyboard shortcuts

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