Documentation ¶
Index ¶
- Variables
- func InitRelayChain(relayChainConfig *conf.RelayChain) error
- func InitRelayChainMock(relayChainConfig *conf.RelayChain) error
- type RelayChainChainmaker
- func (r *RelayChainChainmaker) InitContract(contractName, version, byteCodeBase64 string, kvJsonStr string, ...) error
- func (r *RelayChainChainmaker) InvokeContract(contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, error)
- func (r *RelayChainChainmaker) QueryContract(contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, error)
- func (r *RelayChainChainmaker) UpdateContract(contractName, version, byteCodeBase64 string, kvJsonStr string, ...) error
- type RelayChainChainmakerMock
- func (r *RelayChainChainmakerMock) InitContract(contractName, version, byteCodeBase64 string, kvJsonStr string, ...) error
- func (r *RelayChainChainmakerMock) InvokeContract(contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, error)
- func (r *RelayChainChainmakerMock) QueryContract(contractName, method string, withSyncResult bool, kvJsonStr string, ...) ([]byte, error)
- func (r *RelayChainChainmakerMock) UpdateContract(contractName, version, byteCodeBase64 string, kvJsonStr string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var RelayChainV1 relayChainManager.RelayChainManager
RelayChainV1 中继链交互全局变量
Functions ¶
func InitRelayChain ¶
func InitRelayChain(relayChainConfig *conf.RelayChain) error
InitRelayChain 初始化中继链
@param relayChainConfig @return error
func InitRelayChainMock ¶
func InitRelayChainMock(relayChainConfig *conf.RelayChain) error
InitRelayChainMock 中继链mock
@param relayChainConfig @return error
Types ¶
type RelayChainChainmaker ¶
type RelayChainChainmaker struct {
// contains filtered or unexported fields
}
RelayChainChainmaker 中继链交互结构体
func (*RelayChainChainmaker) InitContract ¶
func (r *RelayChainChainmaker) InitContract( contractName, version, byteCodeBase64 string, kvJsonStr string, withSyncResult bool, timeout int64, runtime tcipcommon.ChainmakerRuntimeType) error
InitContract 初始化合约
@receiver r @param contractName @param version @param byteCodeBase64 @param kvJsonStr @param withSyncResult @param timeout @param runtime @return error
func (*RelayChainChainmaker) InvokeContract ¶
func (r *RelayChainChainmaker) InvokeContract( contractName, method string, withSyncResult bool, kvJsonStr string, timeout int64) ([]byte, error)
InvokeContract invoke合约
@receiver r @param contractName @param method @param withSyncResult @param kvJsonStr @param timeout @return []byte @return error
func (*RelayChainChainmaker) QueryContract ¶
func (r *RelayChainChainmaker) QueryContract( contractName, method string, withSyncResult bool, kvJsonStr string, timeout int64) ([]byte, error)
QueryContract 查询合约
@receiver r @param contractName @param method @param withSyncResult @param kvJsonStr @param timeout @return []byte @return error
func (*RelayChainChainmaker) UpdateContract ¶
func (r *RelayChainChainmaker) UpdateContract( contractName, version, byteCodeBase64 string, kvJsonStr string, withSyncResult bool, timeout int64, runtime tcipcommon.ChainmakerRuntimeType) error
UpdateContract 更新合约
@receiver r @param contractName @param version @param byteCodeBase64 @param kvJsonStr @param withSyncResult @param timeout @param runtime @return error
type RelayChainChainmakerMock ¶
type RelayChainChainmakerMock struct {
// contains filtered or unexported fields
}
RelayChainChainmakerMock 中继链mock
func (*RelayChainChainmakerMock) InitContract ¶
func (r *RelayChainChainmakerMock) InitContract( contractName, version, byteCodeBase64 string, kvJsonStr string, withSyncResult bool, timeout int64, runtime tcipcommon.ChainmakerRuntimeType) error
InitContract 中继链mock
@receiver r @param contractName @param version @param byteCodeBase64 @param kvJsonStr @param withSyncResult @param timeout @param runtime @return error
func (*RelayChainChainmakerMock) InvokeContract ¶
func (r *RelayChainChainmakerMock) InvokeContract( contractName, method string, withSyncResult bool, kvJsonStr string, timeout int64) ([]byte, error)
InvokeContract 中继链mock
@receiver r @param contractName @param method @param withSyncResult @param kvJsonStr @param timeout @return []byte @return error
func (*RelayChainChainmakerMock) QueryContract ¶
func (r *RelayChainChainmakerMock) QueryContract( contractName, method string, withSyncResult bool, kvJsonStr string, timeout int64) ([]byte, error)
QueryContract 中继链mock
@receiver r @param contractName @param method @param withSyncResult @param kvJsonStr @param timeout @return []byte @return error
func (*RelayChainChainmakerMock) UpdateContract ¶
func (r *RelayChainChainmakerMock) UpdateContract( contractName, version, byteCodeBase64 string, kvJsonStr string, withSyncResult bool, timeout int64, runtime tcipcommon.ChainmakerRuntimeType) error
UpdateContract 中继链mock
@receiver r @param contractName @param version @param byteCodeBase64 @param kvJsonStr @param withSyncResult @param timeout @param runtime @return error
Click to show internal directories.
Click to hide internal directories.