proto_go

package module
v0.0.0-...-6be8b47 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 22 Imported by: 21

README

proto-go

介绍

武仙链 protobuffer 脚本生成的go代码项目

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

Documentation

Overview

Package proto_go is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAclParticipant        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAclParticipant          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAclParticipant = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAclPolicy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAclPolicy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAclPolicy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBlock        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlock          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCfgChain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfgChain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCfgChain = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCfgLocal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfgLocal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCfgLocal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCfgLog        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfgLog          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCfgLog = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCfgServer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfgServer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCfgServer = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCfgTxFilter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCfgTxFilter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCfgTxFilter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConsensus        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsensus          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsensus = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConsensusDpos        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsensusDpos          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsensusDpos = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContract = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDiscovery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDiscovery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDiscovery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNet = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRequest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthResponse        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowResponse          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupResponse = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSceBatchKeys        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSceBatchKeys          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSceBatchKeys = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStorage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStorage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStorage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSync        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSync          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSync = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysAccountManager        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysAccountManager          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysAccountManager = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysArchive        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysArchive          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysArchive = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysContractManage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysContractManage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysContractManage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysCrossTransaction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysCrossTransaction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysCrossTransaction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysDposStake        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysDposStake          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysDposStake = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysMultiSign        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysMultiSign          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysMultiSign = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSysSubscribe        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSysSubscribe          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSysSubscribe = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTxFilter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTxFilter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTxFilter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTxPool        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTxPool          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTxPool = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTxRwSet        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTxRwSet          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTxRwSet = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AddressType_name = map[int32]string{
	0: "AT_ETH",
	1: "AT_HER",
	2: "AT_LH",
}
View Source
var AddressType_value = map[string]int32{
	"AT_ETH": 0,
	"AT_HER": 1,
	"AT_LH":  2,
}
View Source
var ArchiveBlock_Parameter_name = map[int32]string{
	0: "BLOCK_HEIGHT",
}
View Source
var ArchiveBlock_Parameter_value = map[string]int32{
	"BLOCK_HEIGHT": 0,
}
View Source
var ArchiveFunction_name = map[int32]string{
	0: "ARCHIVE_BLOCK",
	1: "RESTORE_BLOCK",
}
View Source
var ArchiveFunction_value = map[string]int32{
	"ARCHIVE_BLOCK": 0,
	"RESTORE_BLOCK": 1,
}
View Source
var BlockType_name = map[int32]string{
	0: "BT_NORMAL_BLOCK",
	1: "BT_CONFIG_BLOCK",
	2: "BT_CONTRACT_MGR_BLOCK",
	3: "BT_HAS_COINBASE",
}
View Source
var BlockType_value = map[string]int32{
	"BT_NORMAL_BLOCK":       0,
	"BT_CONFIG_BLOCK":       1,
	"BT_CONTRACT_MGR_BLOCK": 2,
	"BT_HAS_COINBASE":       3,
}
View Source
var BondStatus_name = map[int32]string{
	0: "BONDED",
	1: "UNBONDING",
	2: "UNBONDED",
}
View Source
var BondStatus_value = map[string]int32{
	"BONDED":    0,
	"UNBONDING": 1,
	"UNBONDED":  2,
}
View Source
var CallType_name = map[int32]string{
	0: "DIRECT",
	1: "CROSS",
}
View Source
var CallType_value = map[string]int32{
	"DIRECT": 0,
	"CROSS":  1,
}
View Source
var CertManageFunction_name = map[int32]string{
	0: "CERT_ADD",
	1: "CERTS_DELETE",
	2: "CERTS_QUERY",
	3: "CERTS_FREEZE",
	4: "CERTS_UNFREEZE",
	5: "CERTS_REVOKE",
	6: "CERT_ALIAS_ADD",
	7: "CERT_ALIAS_UPDATE",
	8: "CERTS_ALIAS_DELETE",
	9: "CERTS_ALIAS_QUERY",
}
View Source
var CertManageFunction_value = map[string]int32{
	"CERT_ADD":           0,
	"CERTS_DELETE":       1,
	"CERTS_QUERY":        2,
	"CERTS_FREEZE":       3,
	"CERTS_UNFREEZE":     4,
	"CERTS_REVOKE":       5,
	"CERT_ALIAS_ADD":     6,
	"CERT_ALIAS_UPDATE":  7,
	"CERTS_ALIAS_DELETE": 8,
	"CERTS_ALIAS_QUERY":  9,
}
View Source
var ChainConfigFunction_name = map[int32]string{
	0:  "GET_CHAIN_CONFIG",
	1:  "GET_CHAIN_CONFIG_AT",
	2:  "CORE_UPDATE",
	3:  "BLOCK_UPDATE",
	4:  "TRUST_ROOT_ADD",
	5:  "TRUST_ROOT_UPDATE",
	6:  "TRUST_ROOT_DELETE",
	7:  "NODE_ADDRESS_ADD",
	8:  "NODE_ADDRESS_UPDATE",
	9:  "NODE_ADDRESS_DELETE",
	10: "NODE_ORGANIZATION_ADD",
	11: "NODE_ORGANIZATION_UPDATE",
	12: "NODE_ORGANIZATION_DELETE",
	13: "CONSENSUS_EXTEND_ADD",
	14: "CONSENSUS_EXTEND_UPDATE",
	15: "CONSENSUS_EXTEND_DELETE",
	16: "PERMISSION_ADD",
	17: "PERMISSION_UPDATE",
	18: "PERMISSION_DELETE",
	19: "NODE_ID_ADD",
	20: "NODE_ID_UPDATE",
	21: "NODE_ID_DELETE",
	22: "TRUST_PARTICIPANT_ADD",
	23: "TRUST_PARTICIPANT_UPDATE",
	24: "TRUST_PARTICIPANT_DELETE",
	25: "ALTER_ADDR_TYPE",
	26: "ENABLE_OR_DISABLE_GAS",
	27: "SET_INVOKE_BASE_GAS",
	28: "SET_ACCOUNT_MANAGER_ADMIN",
	29: "PERMISSION_LIST",
	30: "UPDATE_VERSION",
}
View Source
var ChainConfigFunction_value = map[string]int32{
	"GET_CHAIN_CONFIG":          0,
	"GET_CHAIN_CONFIG_AT":       1,
	"CORE_UPDATE":               2,
	"BLOCK_UPDATE":              3,
	"TRUST_ROOT_ADD":            4,
	"TRUST_ROOT_UPDATE":         5,
	"TRUST_ROOT_DELETE":         6,
	"NODE_ADDRESS_ADD":          7,
	"NODE_ADDRESS_UPDATE":       8,
	"NODE_ADDRESS_DELETE":       9,
	"NODE_ORGANIZATION_ADD":     10,
	"NODE_ORGANIZATION_UPDATE":  11,
	"NODE_ORGANIZATION_DELETE":  12,
	"CONSENSUS_EXTEND_ADD":      13,
	"CONSENSUS_EXTEND_UPDATE":   14,
	"CONSENSUS_EXTEND_DELETE":   15,
	"PERMISSION_ADD":            16,
	"PERMISSION_UPDATE":         17,
	"PERMISSION_DELETE":         18,
	"NODE_ID_ADD":               19,
	"NODE_ID_UPDATE":            20,
	"NODE_ID_DELETE":            21,
	"TRUST_PARTICIPANT_ADD":     22,
	"TRUST_PARTICIPANT_UPDATE":  23,
	"TRUST_PARTICIPANT_DELETE":  24,
	"ALTER_ADDR_TYPE":           25,
	"ENABLE_OR_DISABLE_GAS":     26,
	"SET_INVOKE_BASE_GAS":       27,
	"SET_ACCOUNT_MANAGER_ADMIN": 28,
	"PERMISSION_LIST":           29,
	"UPDATE_VERSION":            30,
}
View Source
var ChainQueryFunction_name = map[int32]string{
	0:  "GET_BLOCK_BY_TX_ID",
	1:  "GET_TX_BY_TX_ID",
	2:  "GET_BLOCK_BY_HEIGHT",
	3:  "GET_CHAIN_INFO",
	4:  "GET_LAST_CONFIG_BLOCK",
	5:  "GET_BLOCK_BY_HASH",
	6:  "GET_NODE_CHAIN_LIST",
	7:  "GET_GOVERNANCE_CONTRACT",
	8:  "GET_BLOCK_WITH_TXRWSETS_BY_HEIGHT",
	9:  "GET_BLOCK_WITH_TXRWSETS_BY_HASH",
	10: "GET_LAST_BLOCK",
	11: "GET_FULL_BLOCK_BY_HEIGHT",
	12: "GET_BLOCK_HEIGHT_BY_TX_ID",
	13: "GET_BLOCK_HEIGHT_BY_HASH",
	14: "GET_BLOCK_HEADER_BY_HEIGHT",
	15: "GET_ARCHIVED_BLOCK_HEIGHT",
	16: "GET_ALL_CONTRACTS",
	17: "GET_MERKLE_PATH_BY_TX_ID",
}
View Source
var ChainQueryFunction_value = map[string]int32{
	"GET_BLOCK_BY_TX_ID":                0,
	"GET_TX_BY_TX_ID":                   1,
	"GET_BLOCK_BY_HEIGHT":               2,
	"GET_CHAIN_INFO":                    3,
	"GET_LAST_CONFIG_BLOCK":             4,
	"GET_BLOCK_BY_HASH":                 5,
	"GET_NODE_CHAIN_LIST":               6,
	"GET_GOVERNANCE_CONTRACT":           7,
	"GET_BLOCK_WITH_TXRWSETS_BY_HEIGHT": 8,
	"GET_BLOCK_WITH_TXRWSETS_BY_HASH":   9,
	"GET_LAST_BLOCK":                    10,
	"GET_FULL_BLOCK_BY_HEIGHT":          11,
	"GET_BLOCK_HEIGHT_BY_TX_ID":         12,
	"GET_BLOCK_HEIGHT_BY_HASH":          13,
	"GET_BLOCK_HEADER_BY_HEIGHT":        14,
	"GET_ARCHIVED_BLOCK_HEIGHT":         15,
	"GET_ALL_CONTRACTS":                 16,
	"GET_MERKLE_PATH_BY_TX_ID":          17,
}
View Source
var ConsensusType_name = map[int32]string{
	0: "CT_SOLO",
	1: "CT_RAFT",
	2: "CT_DPOS",
}
View Source
var ConsensusType_value = map[string]int32{
	"CT_SOLO": 0,
	"CT_RAFT": 1,
	"CT_DPOS": 2,
}
View Source
var ContractAccess_Parameter_name = map[int32]string{
	0: "SYSTEM_CONTRACT_NAME",
}
View Source
var ContractAccess_Parameter_value = map[string]int32{
	"SYSTEM_CONTRACT_NAME": 0,
}
View Source
var ContractManageFunction_name = map[int32]string{
	0: "INIT_CONTRACT",
	1: "UPGRADE_CONTRACT",
	2: "FREEZE_CONTRACT",
	3: "UNFREEZE_CONTRACT",
	4: "REVOKE_CONTRACT",
	5: "GRANT_CONTRACT_ACCESS",
	6: "REVOKE_CONTRACT_ACCESS",
	7: "VERIFY_CONTRACT_ACCESS",
	8: "INIT_NEW_NATIVE_CONTRACT",
}
View Source
var ContractManageFunction_value = map[string]int32{
	"INIT_CONTRACT":            0,
	"UPGRADE_CONTRACT":         1,
	"FREEZE_CONTRACT":          2,
	"UNFREEZE_CONTRACT":        3,
	"REVOKE_CONTRACT":          4,
	"GRANT_CONTRACT_ACCESS":    5,
	"REVOKE_CONTRACT_ACCESS":   6,
	"VERIFY_CONTRACT_ACCESS":   7,
	"INIT_NEW_NATIVE_CONTRACT": 8,
}
View Source
var ContractQueryFunction_name = map[int32]string{
	0: "GET_CONTRACT_INFO",
	1: "GET_CONTRACT_BYTECODE",
	2: "GET_CONTRACT_LIST",
	3: "GET_DISABLED_CONTRACT_LIST",
}
View Source
var ContractQueryFunction_value = map[string]int32{
	"GET_CONTRACT_INFO":          0,
	"GET_CONTRACT_BYTECODE":      1,
	"GET_CONTRACT_LIST":          2,
	"GET_DISABLED_CONTRACT_LIST": 3,
}
View Source
var ContractStatus_name = map[int32]string{
	0: "SM_NORMAL",
	1: "SM_FROZEN",
	2: "SM_REVOKED",
}
View Source
var ContractStatus_value = map[string]int32{
	"SM_NORMAL":  0,
	"SM_FROZEN":  1,
	"SM_REVOKED": 2,
}
View Source
var CrossArbitrateCmd_name = map[int32]string{
	0: "AUTO_CMD",
	1: "EXECUTE_CMD",
	2: "COMMIT_CMD",
	3: "ROLLBACK_CMD",
}
View Source
var CrossArbitrateCmd_value = map[string]int32{
	"AUTO_CMD":     0,
	"EXECUTE_CMD":  1,
	"COMMIT_CMD":   2,
	"ROLLBACK_CMD": 3,
}
View Source
var CrossParams_name = map[int32]string{
	0: "CREATOR",
	1: "SENDER",
	2: "CALL_TYPE",
}
View Source
var CrossParams_value = map[string]int32{
	"CREATOR":   0,
	"SENDER":    1,
	"CALL_TYPE": 2,
}
View Source
var CrossTransactionFunction_name = map[int32]string{
	0: "EXECUTE",
	1: "COMMIT",
	2: "ROLLBACK",
	3: "READ_STATE",
	4: "SAVE_PROOF",
	5: "READ_PROOF",
	6: "ARBITRATE",
}
View Source
var CrossTransactionFunction_value = map[string]int32{
	"EXECUTE":    0,
	"COMMIT":     1,
	"ROLLBACK":   2,
	"READ_STATE": 3,
	"SAVE_PROOF": 4,
	"READ_PROOF": 5,
	"ARBITRATE":  6,
}
View Source
var CrossTxState_name = map[int32]string{
	0: "NON_EXIST",
	1: "INIT",
	2: "EXECUTE_OK",
	3: "EXECUTE_FAIL",
	4: "COMMIT_OK",
	5: "COMMIT_FAIL",
	6: "ROLLBACK_OK",
	7: "ROLLBACK_FAIL",
}
View Source
var CrossTxState_value = map[string]int32{
	"NON_EXIST":     0,
	"INIT":          1,
	"EXECUTE_OK":    2,
	"EXECUTE_FAIL":  3,
	"COMMIT_OK":     4,
	"COMMIT_FAIL":   5,
	"ROLLBACK_OK":   6,
	"ROLLBACK_FAIL": 7,
}
View Source
var DPoSERC20Function_name = map[int32]string{
	0:  "GET_OWNER",
	1:  "GET_DECIMALS",
	2:  "TRANSFER",
	3:  "TRANSFER_FROM",
	4:  "GET_BALANCEOF",
	5:  "APPROVE",
	6:  "GET_ALLOWANCE",
	7:  "BURN",
	8:  "MINT",
	9:  "TRANSFER_OWNERSHIP",
	10: "GET_TOTAL_SUPPLY",
}
View Source
var DPoSERC20Function_value = map[string]int32{
	"GET_OWNER":          0,
	"GET_DECIMALS":       1,
	"TRANSFER":           2,
	"TRANSFER_FROM":      3,
	"GET_BALANCEOF":      4,
	"APPROVE":            5,
	"GET_ALLOWANCE":      6,
	"BURN":               7,
	"MINT":               8,
	"TRANSFER_OWNERSHIP": 9,
	"GET_TOTAL_SUPPLY":   10,
}
View Source
var DPoSStakeFunction_name = map[int32]string{
	0:  "GET_ALL_CANDIDATES",
	1:  "GET_VALIDATOR_BY_ADDRESS",
	2:  "DELEGATE",
	3:  "GET_DELEGATIONS_BY_ADDRESS",
	4:  "GET_USER_DELEGATION_BY_VALIDATOR",
	5:  "UNDELEGATE",
	6:  "READ_EPOCH_BY_ID",
	7:  "READ_LATEST_EPOCH",
	8:  "SET_NODE_ID",
	9:  "GET_NODE_ID",
	10: "UPDATE_MIN_SELF_DELEGATION",
	11: "READ_MIN_SELF_DELEGATION",
	12: "UPDATE_EPOCH_VALIDATOR_NUMBER",
	13: "READ_EPOCH_VALIDATOR_NUMBER",
	14: "UPDATE_EPOCH_BLOCK_NUMBER",
	15: "READ_EPOCH_BLOCK_NUMBER",
	16: "READ_COMPLETE_UNBOUNDING_EPOCH_NUMBER",
	18: "READ_SYSTEM_CONTRACT_ADDR",
}
View Source
var DPoSStakeFunction_value = map[string]int32{
	"GET_ALL_CANDIDATES":                    0,
	"GET_VALIDATOR_BY_ADDRESS":              1,
	"DELEGATE":                              2,
	"GET_DELEGATIONS_BY_ADDRESS":            3,
	"GET_USER_DELEGATION_BY_VALIDATOR":      4,
	"UNDELEGATE":                            5,
	"READ_EPOCH_BY_ID":                      6,
	"READ_LATEST_EPOCH":                     7,
	"SET_NODE_ID":                           8,
	"GET_NODE_ID":                           9,
	"UPDATE_MIN_SELF_DELEGATION":            10,
	"READ_MIN_SELF_DELEGATION":              11,
	"UPDATE_EPOCH_VALIDATOR_NUMBER":         12,
	"READ_EPOCH_VALIDATOR_NUMBER":           13,
	"UPDATE_EPOCH_BLOCK_NUMBER":             14,
	"READ_EPOCH_BLOCK_NUMBER":               15,
	"READ_COMPLETE_UNBOUNDING_EPOCH_NUMBER": 16,
	"READ_SYSTEM_CONTRACT_ADDR":             18,
}
View Source
var DataStorageType_name = map[int32]string{
	0: "DST_FILE_STORAGE",
	1: "DST_SQL_STORAGE",
	2: "DST_MINIO_STORAGE",
}
View Source
var DataStorageType_value = map[string]int32{
	"DST_FILE_STORAGE":  0,
	"DST_SQL_STORAGE":   1,
	"DST_MINIO_STORAGE": 2,
}
View Source
var DbType_name = map[int32]string{
	0: "DBT_INVALID",
	1: "DBT_BLOCK",
	2: "DBT_BLOCK_INDEX",
	3: "DBT_TX",
	4: "DBT_TX_INDEX",
	5: "DBT_SOFT",
	6: "DBT_STATE",
	7: "DBT_READ_WRITE",
}
View Source
var DbType_value = map[string]int32{
	"DBT_INVALID":     0,
	"DBT_BLOCK":       1,
	"DBT_BLOCK_INDEX": 2,
	"DBT_TX":          3,
	"DBT_TX_INDEX":    4,
	"DBT_SOFT":        5,
	"DBT_STATE":       6,
	"DBT_READ_WRITE":  7,
}
View Source
var FilterExtensionType_name = map[int32]string{
	0: "KET_DEFAULT",
	1: "KET_TIMESTAMP",
}
View Source
var FilterExtensionType_value = map[string]int32{
	"KET_DEFAULT":   0,
	"KET_TIMESTAMP": 1,
}
View Source
var FreezeContract_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
}
View Source
var FreezeContract_Parameter_value = map[string]int32{
	"CONTRACT_NAME": 0,
}
View Source
var GasAccountFunction_name = map[int32]string{
	0:  "SET_ADMIN",
	1:  "GET_ADMIN",
	2:  "RECHARGE_GAS",
	3:  "GET_BALANCE",
	4:  "CHARGE_GAS",
	5:  "FROZEN_ACCOUNT",
	6:  "UNFROZEN_ACCOUNT",
	7:  "ACCOUNT_STATUS",
	8:  "REFUND_GAS",
	9:  "REFUND_GAS_SCE",
	10: "CHARGE_GAS_FOR_MULTI_ACCOUNT",
}
View Source
var GasAccountFunction_value = map[string]int32{
	"SET_ADMIN":                    0,
	"GET_ADMIN":                    1,
	"RECHARGE_GAS":                 2,
	"GET_BALANCE":                  3,
	"CHARGE_GAS":                   4,
	"FROZEN_ACCOUNT":               5,
	"UNFROZEN_ACCOUNT":             6,
	"ACCOUNT_STATUS":               7,
	"REFUND_GAS":                   8,
	"REFUND_GAS_SCE":               9,
	"CHARGE_GAS_FOR_MULTI_ACCOUNT": 10,
}
View Source
var GetContractInfo_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
}
View Source
var GetContractInfo_Parameter_value = map[string]int32{
	"CONTRACT_NAME": 0,
}
View Source
var IdentificationType_name = map[int32]string{
	0: "IT_CERT",
	1: "IT_CERT_HASH",
	2: "IT_PUBLIC_KEY",
	3: "IT_DID",
	4: "IT_ALIAS",
	5: "IT_ADDRESS",
}
View Source
var IdentificationType_value = map[string]int32{
	"IT_CERT":       0,
	"IT_CERT_HASH":  1,
	"IT_PUBLIC_KEY": 2,
	"IT_DID":        3,
	"IT_ALIAS":      4,
	"IT_ADDRESS":    5,
}
View Source
var InitContract_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
	1: "CONTRACT_RUNTIME_TYPE",
	2: "CONTRACT_VERSION",
	3: "CONTRACT_BYTECODE",
}
View Source
var InitContract_Parameter_value = map[string]int32{
	"CONTRACT_NAME":         0,
	"CONTRACT_RUNTIME_TYPE": 1,
	"CONTRACT_VERSION":      2,
	"CONTRACT_BYTECODE":     3,
}
View Source
var KeyType_name = map[int32]string{
	0: "KT_DEFAULT",
	1: "KT_TIMESTAMP_KEY",
}
View Source
var KeyType_value = map[string]int32{
	"KT_DEFAULT":       0,
	"KT_TIMESTAMP_KEY": 1,
}
View Source
var MultiQuery_Parameter_name = map[int32]string{
	0: "TX_ID",
}
View Source
var MultiQuery_Parameter_value = map[string]int32{
	"TX_ID": 0,
}
View Source
var MultiRequest_Parameter_name = map[int32]string{
	0: "SYSTEM_CONTRACT_NAME",
	1: "SYSTEM_METHOD",
}
View Source
var MultiRequest_Parameter_value = map[string]int32{
	"SYSTEM_CONTRACT_NAME": 0,
	"SYSTEM_METHOD":        1,
}
View Source
var MultiSignContractStatus_name = map[int32]string{
	0: "NORMAL",
	1: "FROZEN",
	2: "REVOKED",
}
View Source
var MultiSignContractStatus_value = map[string]int32{
	"NORMAL":  0,
	"FROZEN":  1,
	"REVOKED": 2,
}
View Source
var MultiSignFunction_name = map[int32]string{
	0: "REQUEST",
	1: "VOTE",
	2: "QUERY",
}
View Source
var MultiSignFunction_value = map[string]int32{
	"REQUEST": 0,
	"VOTE":    1,
	"QUERY":   2,
}
View Source
var MultiSignStatus_name = map[int32]string{
	0: "PROCESSING",
	1: "ADOPTED",
	2: "REFUSED",
	3: "FAILED",
}
View Source
var MultiSignStatus_value = map[string]int32{
	"PROCESSING": 0,
	"ADOPTED":    1,
	"REFUSED":    2,
	"FAILED":     3,
}
View Source
var MultiSignVoteStatus_name = map[int32]string{
	0: "ARGEE",
	1: "REJECT",
}
View Source
var MultiSignVoteStatus_value = map[string]int32{
	"ARGEE":  0,
	"REJECT": 1,
}
View Source
var MultiVote_Parameter_name = map[int32]string{
	0: "VOTE_INFO",
	1: "TX_ID",
}
View Source
var MultiVote_Parameter_value = map[string]int32{
	"VOTE_INFO": 0,
	"TX_ID":     1,
}
View Source
var NetMessage_MessageType_name = map[int32]string{
	0: "INVALID_MSG",
	1: "TX_MSG",
	2: "TXS_MSG",
	3: "BLOCK_MSG",
	4: "BLOCKS_MSG",
	5: "CONSENSUS_MSG",
	6: "SYNC_BLOCK_MSG",
	7: "CONSISTENT_MSG",
}
View Source
var NetMessage_MessageType_value = map[string]int32{
	"INVALID_MSG":    0,
	"TX_MSG":         1,
	"TXS_MSG":        2,
	"BLOCK_MSG":      3,
	"BLOCKS_MSG":     4,
	"CONSENSUS_MSG":  5,
	"SYNC_BLOCK_MSG": 6,
	"CONSISTENT_MSG": 7,
}
View Source
var ParticipantStatus_name = map[int32]string{
	0: "PS_NORMAL",
	1: "PS_INVALID",
	2: "PS_REVOKED",
	3: "PS_FROZEN",
}
View Source
var ParticipantStatus_value = map[string]int32{
	"PS_NORMAL":  0,
	"PS_INVALID": 1,
	"PS_REVOKED": 2,
	"PS_FROZEN":  3,
}
View Source
var PayloadTxType_name = map[int32]string{
	0: "PTXT_INVOKE_CONTRACT",
	1: "PTXT_QUERY_CONTRACT",
	2: "PTXT_SUBSCRIBE",
	3: "PTXT_ARCHIVE",
}
View Source
var PayloadTxType_value = map[string]int32{
	"PTXT_INVOKE_CONTRACT": 0,
	"PTXT_QUERY_CONTRACT":  1,
	"PTXT_SUBSCRIBE":       2,
	"PTXT_ARCHIVE":         3,
}
View Source
var PubkeyManageFunction_name = map[int32]string{
	0: "PUBKEY_ADD",
	1: "PUBKEY_DELETE",
	2: "PUBKEY_QUERY",
}
View Source
var PubkeyManageFunction_value = map[string]int32{
	"PUBKEY_ADD":    0,
	"PUBKEY_DELETE": 1,
	"PUBKEY_QUERY":  2,
}
View Source
var RestoreBlock_Parameter_name = map[int32]string{
	0: "FULL_BLOCK",
}
View Source
var RestoreBlock_Parameter_value = map[string]int32{
	"FULL_BLOCK": 0,
}
View Source
var RevokeContract_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
}
View Source
var RevokeContract_Parameter_value = map[string]int32{
	"CONTRACT_NAME": 0,
}
View Source
var RuleType_name = map[int32]string{
	0: "RT_ABSOLUTEEXPIRETIME",
}
View Source
var RuleType_value = map[string]int32{
	"RT_ABSOLUTEEXPIRETIME": 0,
}
View Source
var SCET_name = map[int32]string{
	0: "SCE_INVALID",
	1: "SCE_SYSTEM",
	2: "SCE_DOCKER_GO",
	3: "SCE_DOCKER_MOVE",
	4: "SCE_EVM",
	5: "SCE_WASMER",
}
View Source
var SCET_value = map[string]int32{
	"SCE_INVALID":     0,
	"SCE_SYSTEM":      1,
	"SCE_DOCKER_GO":   2,
	"SCE_DOCKER_MOVE": 3,
	"SCE_EVM":         4,
	"SCE_WASMER":      5,
}
View Source
var SerializeIntervalType_name = map[int32]string{
	0: "Height",
	1: "Timed",
	2: "Exit",
}
View Source
var SerializeIntervalType_value = map[string]int32{
	"Height": 0,
	"Timed":  1,
	"Exit":   2,
}
View Source
var SignalType_name = map[int32]string{
	0: "ST_NO_EVENT",
	1: "ST_TRANSACTION_INCOME",
	2: "ST_BLOCK_PROPOSE",
}
View Source
var SignalType_value = map[string]int32{
	"ST_NO_EVENT":           0,
	"ST_TRANSACTION_INCOME": 1,
	"ST_BLOCK_PROPOSE":      2,
}
View Source
var SubscribeBlock_Parameter_name = map[int32]string{
	0: "START_BLOCK",
	1: "END_BLOCK",
	2: "WITH_RWSET",
	3: "ONLY_HEADER",
}
View Source
var SubscribeBlock_Parameter_value = map[string]int32{
	"START_BLOCK": 0,
	"END_BLOCK":   1,
	"WITH_RWSET":  2,
	"ONLY_HEADER": 3,
}
View Source
var SubscribeContractEvent_Parameter_name = map[int32]string{
	0: "TOPIC",
	1: "CONTRACT_NAME",
	2: "START_BLOCK",
	3: "END_BLOCK",
}
View Source
var SubscribeContractEvent_Parameter_value = map[string]int32{
	"TOPIC":         0,
	"CONTRACT_NAME": 1,
	"START_BLOCK":   2,
	"END_BLOCK":     3,
}
View Source
var SubscribeFunction_name = map[int32]string{
	0: "SUBSCRIBE_BLOCK",
	1: "SUBSCRIBE_TX",
	2: "SUBSCRIBE_CONTRACT_EVENT",
}
View Source
var SubscribeFunction_value = map[string]int32{
	"SUBSCRIBE_BLOCK":          0,
	"SUBSCRIBE_TX":             1,
	"SUBSCRIBE_CONTRACT_EVENT": 2,
}
View Source
var SubscribeTx_Parameter_name = map[int32]string{
	0: "START_BLOCK",
	1: "END_BLOCK",
	2: "CONTRACT_NAME",
	3: "TX_IDS",
}
View Source
var SubscribeTx_Parameter_value = map[string]int32{
	"START_BLOCK":   0,
	"END_BLOCK":     1,
	"CONTRACT_NAME": 2,
	"TX_IDS":        3,
}
View Source
var SyncMessage_MessageType_name = map[int32]string{
	0: "NODE_STATUS_REQUEST",
	1: "NODE_STATUS_RESPONSE",
	2: "BLOCK_SYNC_REQUEST",
	3: "BLOCK_SYNC_RESPONSE",
}
View Source
var SyncMessage_MessageType_value = map[string]int32{
	"NODE_STATUS_REQUEST":  0,
	"NODE_STATUS_RESPONSE": 1,
	"BLOCK_SYNC_REQUEST":   2,
	"BLOCK_SYNC_RESPONSE":  3,
}
View Source
var SystemContract_name = map[int32]string{
	0:  "CHAIN_CONFIG",
	1:  "CHAIN_QUERY",
	2:  "CERT_MANAGE",
	3:  "GOVERNANCE",
	4:  "MULTI_SIGN",
	5:  "CONTRACT_MANAGE",
	6:  "DPOS_ERC20",
	7:  "DPOS_STAKE",
	8:  "SUBSCRIBE_MANAGE",
	9:  "ARCHIVE_MANAGE",
	10: "CROSS_TRANSACTION",
	11: "PUBKEY_MANAGE",
	12: "ACCOUNT_MANAGER",
	99: "T",
}
View Source
var SystemContract_value = map[string]int32{
	"CHAIN_CONFIG":      0,
	"CHAIN_QUERY":       1,
	"CERT_MANAGE":       2,
	"GOVERNANCE":        3,
	"MULTI_SIGN":        4,
	"CONTRACT_MANAGE":   5,
	"DPOS_ERC20":        6,
	"DPOS_STAKE":        7,
	"SUBSCRIBE_MANAGE":  8,
	"ARCHIVE_MANAGE":    9,
	"CROSS_TRANSACTION": 10,
	"PUBKEY_MANAGE":     11,
	"ACCOUNT_MANAGER":   12,
	"T":                 99,
}
View Source
var TestContractFunction_name = map[int32]string{
	0: "P",
	1: "G",
	2: "N",
	3: "D",
}
View Source
var TestContractFunction_value = map[string]int32{
	"P": 0,
	"G": 1,
	"N": 2,
	"D": 3,
}
View Source
var TxFilterType_name = map[int32]string{
	0: "TX_FT_NONE",
	1: "TX_FT_CUCKOOGROUP",
	2: "TX_FT_MAP",
	3: "TX_FT_SHARDINGCUCKOOGROUP",
}
View Source
var TxFilterType_value = map[string]int32{
	"TX_FT_NONE":                0,
	"TX_FT_CUCKOOGROUP":         1,
	"TX_FT_MAP":                 2,
	"TX_FT_SHARDINGCUCKOOGROUP": 3,
}
View Source
var TxPoolMessageType_name = map[int32]string{
	0: "SINGLE_TX",
	1: "BATCH_TX",
	2: "RECOVER_REQUEST",
	3: "RECOVER_RESPONSE",
}
View Source
var TxPoolMessageType_value = map[string]int32{
	"SINGLE_TX":        0,
	"BATCH_TX":         1,
	"RECOVER_REQUEST":  2,
	"RECOVER_RESPONSE": 3,
}
View Source
var TxStage_name = map[int32]string{
	0: "TXS_UNKNOWN_STAGE",
	1: "TXS_IN_QUEUE",
	2: "TXS_IN_PENDING",
	3: "TXS_ALL_STAGE",
}
View Source
var TxStage_value = map[string]int32{
	"TXS_UNKNOWN_STAGE": 0,
	"TXS_IN_QUEUE":      1,
	"TXS_IN_PENDING":    2,
	"TXS_ALL_STAGE":     3,
}
View Source
var TxStatusCode_name = map[int32]string{
	0:   "TX_SC_SUCCESS",
	1:   "TX_SC_TIMEOUT",
	2:   "TX_SC_INVALID_PARAMETER",
	3:   "TX_SC_NO_PERMISSION",
	4:   "TX_SC_CONTRACT_FAIL",
	5:   "TX_SC_INTERNAL_ERROR",
	51:  "TX_SC_INVALID_CONTRACT_TRANSACTION_TYPE",
	52:  "TX_SC_INVALID_CONTRACT_PARAMETER_CONTRACT_NAME",
	53:  "TX_SC_INVALID_CONTRACT_PARAMETER_METHOD",
	54:  "TX_SC_INVALID_CONTRACT_PARAMETER_INIT_METHOD",
	55:  "TX_SC_INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD",
	56:  "TX_SC_INVALID_CONTRACT_PARAMETER_BYTE_CODE",
	57:  "TX_SC_INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE",
	58:  "TX_SC_INVALID_CONTRACT_PARAMETER_VERSION",
	101: "TX_SC_GET_FROM_TX_CONTEXT_FAILED",
	102: "TX_SC_PUT_INTO_TX_CONTEXT_FAILED",
	103: "TX_SC_CONTRACT_VERSION_EXIST_FAILED",
	104: "TX_SC_CONTRACT_VERSION_NOT_EXIST_FAILED",
	105: "TX_SC_CONTRACT_BYTE_CODE_NOT_EXIST_FAILED",
	106: "TX_SC_MARSHAL_SENDER_FAILED",
	107: "TX_SC_INVOKE_INIT_METHOD_FAILED",
	108: "TX_SC_INVOKE_UPGRADE_METHOD_FAILED",
	109: "TX_SC_CREATE_RUNTIME_INSTANCE_FAILED",
	110: "TX_SC_UNMARSHAL_CREATOR_FAILED",
	111: "TX_SC_UNMARSHAL_SENDER_FAILED",
	112: "TX_SC_GET_SENDER_PK_FAILED",
	113: "TX_SC_GET_CREATOR_PK_FAILED",
	114: "TX_SC_GET_CREATOR_FAILED",
	115: "TX_SC_GET_CREATOR_CERT_FAILED",
	116: "TX_SC_GET_SENDER_CERT_FAILED",
	117: "TX_SC_CONTRACT_FREEZE_FAILED",
	118: "TX_SC_CONTRACT_TOO_DEEP_FAILED",
	119: "TX_SC_CONTRACT_REVOKE_FAILED",
	120: "TX_SC_CONTRACT_INVOKE_METHOD_FAILED",
	151: "TX_SC_ARCHIVED_TX",
	152: "TX_SC_ARCHIVED_BLOCK",
	201: "TX_SC_GAS_BALANCE_NOT_ENOUGH_FAILED",
	202: "TX_SC_GAS_LIMIT_NOT_SET",
}
View Source
var TxStatusCode_value = map[string]int32{
	"TX_SC_SUCCESS":                                   0,
	"TX_SC_TIMEOUT":                                   1,
	"TX_SC_INVALID_PARAMETER":                         2,
	"TX_SC_NO_PERMISSION":                             3,
	"TX_SC_CONTRACT_FAIL":                             4,
	"TX_SC_INTERNAL_ERROR":                            5,
	"TX_SC_INVALID_CONTRACT_TRANSACTION_TYPE":         51,
	"TX_SC_INVALID_CONTRACT_PARAMETER_CONTRACT_NAME":  52,
	"TX_SC_INVALID_CONTRACT_PARAMETER_METHOD":         53,
	"TX_SC_INVALID_CONTRACT_PARAMETER_INIT_METHOD":    54,
	"TX_SC_INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD": 55,
	"TX_SC_INVALID_CONTRACT_PARAMETER_BYTE_CODE":      56,
	"TX_SC_INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE":   57,
	"TX_SC_INVALID_CONTRACT_PARAMETER_VERSION":        58,
	"TX_SC_GET_FROM_TX_CONTEXT_FAILED":                101,
	"TX_SC_PUT_INTO_TX_CONTEXT_FAILED":                102,
	"TX_SC_CONTRACT_VERSION_EXIST_FAILED":             103,
	"TX_SC_CONTRACT_VERSION_NOT_EXIST_FAILED":         104,
	"TX_SC_CONTRACT_BYTE_CODE_NOT_EXIST_FAILED":       105,
	"TX_SC_MARSHAL_SENDER_FAILED":                     106,
	"TX_SC_INVOKE_INIT_METHOD_FAILED":                 107,
	"TX_SC_INVOKE_UPGRADE_METHOD_FAILED":              108,
	"TX_SC_CREATE_RUNTIME_INSTANCE_FAILED":            109,
	"TX_SC_UNMARSHAL_CREATOR_FAILED":                  110,
	"TX_SC_UNMARSHAL_SENDER_FAILED":                   111,
	"TX_SC_GET_SENDER_PK_FAILED":                      112,
	"TX_SC_GET_CREATOR_PK_FAILED":                     113,
	"TX_SC_GET_CREATOR_FAILED":                        114,
	"TX_SC_GET_CREATOR_CERT_FAILED":                   115,
	"TX_SC_GET_SENDER_CERT_FAILED":                    116,
	"TX_SC_CONTRACT_FREEZE_FAILED":                    117,
	"TX_SC_CONTRACT_TOO_DEEP_FAILED":                  118,
	"TX_SC_CONTRACT_REVOKE_FAILED":                    119,
	"TX_SC_CONTRACT_INVOKE_METHOD_FAILED":             120,
	"TX_SC_ARCHIVED_TX":                               151,
	"TX_SC_ARCHIVED_BLOCK":                            152,
	"TX_SC_GAS_BALANCE_NOT_ENOUGH_FAILED":             201,
	"TX_SC_GAS_LIMIT_NOT_SET":                         202,
}
View Source
var TxType_name = map[int32]string{
	0: "TXT_UNKNOWN_TYPE",
	1: "TXT_CONFIG_TX",
	2: "TXT_COMMON_TX",
	3: "TXT_ALL_TYPE",
}
View Source
var TxType_value = map[string]int32{
	"TXT_UNKNOWN_TYPE": 0,
	"TXT_CONFIG_TX":    1,
	"TXT_COMMON_TX":    2,
	"TXT_ALL_TYPE":     3,
}
View Source
var UnfreezeContract_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
}
View Source
var UnfreezeContract_Parameter_value = map[string]int32{
	"CONTRACT_NAME": 0,
}
View Source
var UpgradeContract_Parameter_name = map[int32]string{
	0: "CONTRACT_NAME",
	1: "CONTRACT_RUNTIME_TYPE",
	2: "CONTRACT_VERSION",
	3: "CONTRACT_BYTECODE",
}
View Source
var UpgradeContract_Parameter_value = map[string]int32{
	"CONTRACT_NAME":         0,
	"CONTRACT_RUNTIME_TYPE": 1,
	"CONTRACT_VERSION":      2,
	"CONTRACT_BYTECODE":     3,
}
View Source
var VerifyResult_Code_name = map[int32]string{
	0: "SUCCESS",
	1: "FAIL",
}
View Source
var VerifyResult_Code_value = map[string]int32{
	"SUCCESS": 0,
	"FAIL":    1,
}
View Source
var VerifyType_name = map[int32]string{
	0: "VT_CRL",
}
View Source
var VerifyType_value = map[string]int32{
	"VT_CRL": 0,
}

Functions

func GetTxKeyWith

func GetTxKeyWith(propose []byte, blockHeight uint64) string

func RegisterRpcNodeHandler

func RegisterRpcNodeHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRpcNodeHandler registers the http handlers for service RpcNode to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRpcNodeHandlerClient

func RegisterRpcNodeHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RpcNodeClient) error

RegisterRpcNodeHandlerClient registers the http handlers for service RpcNode to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RpcNodeClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RpcNodeClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RpcNodeClient" to call the correct interceptors.

func RegisterRpcNodeHandlerFromEndpoint

func RegisterRpcNodeHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRpcNodeHandlerFromEndpoint is same as RegisterRpcNodeHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRpcNodeHandlerServer

func RegisterRpcNodeHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RpcNodeServer) error

RegisterRpcNodeHandlerServer registers the http handlers for service RpcNode to "mux". UnaryRPC :call RpcNodeServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRpcNodeHandlerFromEndpoint instead.

func RegisterRpcNodeServer

func RegisterRpcNodeServer(s *grpc.Server, srv RpcNodeServer)

Types

type AccountMultiSign

type AccountMultiSign struct {
	Payloads      []byte `protobuf:"bytes,1,opt,name=payloads,proto3" json:"payloads,omitempty"`
	ClientSign    []byte `protobuf:"bytes,2,opt,name=client_sign,json=clientSign,proto3" json:"client_sign,omitempty"`
	PublicKeyInfo []byte `protobuf:"bytes,3,opt,name=public_key_info,json=publicKeyInfo,proto3" json:"public_key_info,omitempty"`
}

func (*AccountMultiSign) Descriptor

func (*AccountMultiSign) Descriptor() ([]byte, []int)

func (*AccountMultiSign) GetClientSign

func (m *AccountMultiSign) GetClientSign() []byte

func (*AccountMultiSign) GetPayloads

func (m *AccountMultiSign) GetPayloads() []byte

func (*AccountMultiSign) GetPublicKeyInfo

func (m *AccountMultiSign) GetPublicKeyInfo() []byte

func (*AccountMultiSign) Marshal

func (m *AccountMultiSign) Marshal() (dAtA []byte, err error)

func (*AccountMultiSign) MarshalTo

func (m *AccountMultiSign) MarshalTo(dAtA []byte) (int, error)

func (*AccountMultiSign) MarshalToSizedBuffer

func (m *AccountMultiSign) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccountMultiSign) ProtoMessage

func (*AccountMultiSign) ProtoMessage()

func (*AccountMultiSign) Reset

func (m *AccountMultiSign) Reset()

func (*AccountMultiSign) Size

func (m *AccountMultiSign) Size() (n int)

func (*AccountMultiSign) String

func (m *AccountMultiSign) String() string

func (*AccountMultiSign) Unmarshal

func (m *AccountMultiSign) Unmarshal(dAtA []byte) error

func (*AccountMultiSign) XXX_DiscardUnknown

func (m *AccountMultiSign) XXX_DiscardUnknown()

func (*AccountMultiSign) XXX_Marshal

func (m *AccountMultiSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountMultiSign) XXX_Merge

func (m *AccountMultiSign) XXX_Merge(src proto.Message)

func (*AccountMultiSign) XXX_Size

func (m *AccountMultiSign) XXX_Size() int

func (*AccountMultiSign) XXX_Unmarshal

func (m *AccountMultiSign) XXX_Unmarshal(b []byte) error

type AccountMultiSignsRequest

type AccountMultiSignsRequest struct {
	GasMultiSigns []*AccountMultiSign `protobuf:"bytes,1,rep,name=gas_multi_signs,json=gasMultiSigns,proto3" json:"gas_multi_signs,omitempty"`
}

帐户多签请求

func (*AccountMultiSignsRequest) Descriptor

func (*AccountMultiSignsRequest) Descriptor() ([]byte, []int)

func (*AccountMultiSignsRequest) GetGasMultiSigns

func (m *AccountMultiSignsRequest) GetGasMultiSigns() []*AccountMultiSign

func (*AccountMultiSignsRequest) Marshal

func (m *AccountMultiSignsRequest) Marshal() (dAtA []byte, err error)

func (*AccountMultiSignsRequest) MarshalTo

func (m *AccountMultiSignsRequest) MarshalTo(dAtA []byte) (int, error)

func (*AccountMultiSignsRequest) MarshalToSizedBuffer

func (m *AccountMultiSignsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccountMultiSignsRequest) ProtoMessage

func (*AccountMultiSignsRequest) ProtoMessage()

func (*AccountMultiSignsRequest) Reset

func (m *AccountMultiSignsRequest) Reset()

func (*AccountMultiSignsRequest) Size

func (m *AccountMultiSignsRequest) Size() (n int)

func (*AccountMultiSignsRequest) String

func (m *AccountMultiSignsRequest) String() string

func (*AccountMultiSignsRequest) Unmarshal

func (m *AccountMultiSignsRequest) Unmarshal(dAtA []byte) error

func (*AccountMultiSignsRequest) XXX_DiscardUnknown

func (m *AccountMultiSignsRequest) XXX_DiscardUnknown()

func (*AccountMultiSignsRequest) XXX_Marshal

func (m *AccountMultiSignsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountMultiSignsRequest) XXX_Merge

func (m *AccountMultiSignsRequest) XXX_Merge(src proto.Message)

func (*AccountMultiSignsRequest) XXX_Size

func (m *AccountMultiSignsRequest) XXX_Size() int

func (*AccountMultiSignsRequest) XXX_Unmarshal

func (m *AccountMultiSignsRequest) XXX_Unmarshal(b []byte) error

type AdditionalData

type AdditionalData struct {
	ExtendData map[string][]byte `` /* 179-byte string literal not displayed */
}

区块附加诗句

func (*AdditionalData) Descriptor

func (*AdditionalData) Descriptor() ([]byte, []int)

func (*AdditionalData) GetExtendData

func (m *AdditionalData) GetExtendData() map[string][]byte

func (*AdditionalData) Marshal

func (m *AdditionalData) Marshal() (dAtA []byte, err error)

func (*AdditionalData) MarshalTo

func (m *AdditionalData) MarshalTo(dAtA []byte) (int, error)

func (*AdditionalData) MarshalToSizedBuffer

func (m *AdditionalData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AdditionalData) ProtoMessage

func (*AdditionalData) ProtoMessage()

func (*AdditionalData) Reset

func (m *AdditionalData) Reset()

func (*AdditionalData) Size

func (m *AdditionalData) Size() (n int)

func (*AdditionalData) String

func (m *AdditionalData) String() string

func (*AdditionalData) Unmarshal

func (m *AdditionalData) Unmarshal(dAtA []byte) error

func (*AdditionalData) XXX_DiscardUnknown

func (m *AdditionalData) XXX_DiscardUnknown()

func (*AdditionalData) XXX_Marshal

func (m *AdditionalData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdditionalData) XXX_Merge

func (m *AdditionalData) XXX_Merge(src proto.Message)

func (*AdditionalData) XXX_Size

func (m *AdditionalData) XXX_Size() int

func (*AdditionalData) XXX_Unmarshal

func (m *AdditionalData) XXX_Unmarshal(b []byte) error

type AddressType

type AddressType int32

地址类型

const (
	AddressType_AT_ETH AddressType = 0
	AddressType_AT_HER AddressType = 1
	AddressType_AT_LH  AddressType = 2
)

func (AddressType) EnumDescriptor

func (AddressType) EnumDescriptor() ([]byte, []int)

func (AddressType) String

func (x AddressType) String() string

type AliasCertInfo

type AliasCertInfo struct {
	Hash        string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Cert        []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
	BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}

别名证书信息

func (*AliasCertInfo) Descriptor

func (*AliasCertInfo) Descriptor() ([]byte, []int)

func (*AliasCertInfo) GetBlockHeight

func (m *AliasCertInfo) GetBlockHeight() uint64

func (*AliasCertInfo) GetCert

func (m *AliasCertInfo) GetCert() []byte

func (*AliasCertInfo) GetHash

func (m *AliasCertInfo) GetHash() string

func (*AliasCertInfo) Marshal

func (m *AliasCertInfo) Marshal() (dAtA []byte, err error)

func (*AliasCertInfo) MarshalTo

func (m *AliasCertInfo) MarshalTo(dAtA []byte) (int, error)

func (*AliasCertInfo) MarshalToSizedBuffer

func (m *AliasCertInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AliasCertInfo) ProtoMessage

func (*AliasCertInfo) ProtoMessage()

func (*AliasCertInfo) Reset

func (m *AliasCertInfo) Reset()

func (*AliasCertInfo) Size

func (m *AliasCertInfo) Size() (n int)

func (*AliasCertInfo) String

func (m *AliasCertInfo) String() string

func (*AliasCertInfo) Unmarshal

func (m *AliasCertInfo) Unmarshal(dAtA []byte) error

func (*AliasCertInfo) XXX_DiscardUnknown

func (m *AliasCertInfo) XXX_DiscardUnknown()

func (*AliasCertInfo) XXX_Marshal

func (m *AliasCertInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AliasCertInfo) XXX_Merge

func (m *AliasCertInfo) XXX_Merge(src proto.Message)

func (*AliasCertInfo) XXX_Size

func (m *AliasCertInfo) XXX_Size() int

func (*AliasCertInfo) XXX_Unmarshal

func (m *AliasCertInfo) XXX_Unmarshal(b []byte) error

type AliasInfo

type AliasInfo struct {
	Alias    string           `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	NowCert  *AliasCertInfo   `protobuf:"bytes,2,opt,name=now_cert,json=nowCert,proto3" json:"now_cert,omitempty"`
	HisCerts []*AliasCertInfo `protobuf:"bytes,3,rep,name=his_certs,json=hisCerts,proto3" json:"his_certs,omitempty"`
}

别名信息

func (*AliasInfo) Descriptor

func (*AliasInfo) Descriptor() ([]byte, []int)

func (*AliasInfo) GetAlias

func (m *AliasInfo) GetAlias() string

func (*AliasInfo) GetHisCerts

func (m *AliasInfo) GetHisCerts() []*AliasCertInfo

func (*AliasInfo) GetNowCert

func (m *AliasInfo) GetNowCert() *AliasCertInfo

func (*AliasInfo) Marshal

func (m *AliasInfo) Marshal() (dAtA []byte, err error)

func (*AliasInfo) MarshalTo

func (m *AliasInfo) MarshalTo(dAtA []byte) (int, error)

func (*AliasInfo) MarshalToSizedBuffer

func (m *AliasInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AliasInfo) ProtoMessage

func (*AliasInfo) ProtoMessage()

func (*AliasInfo) Reset

func (m *AliasInfo) Reset()

func (*AliasInfo) Size

func (m *AliasInfo) Size() (n int)

func (*AliasInfo) String

func (m *AliasInfo) String() string

func (*AliasInfo) Unmarshal

func (m *AliasInfo) Unmarshal(dAtA []byte) error

func (*AliasInfo) XXX_DiscardUnknown

func (m *AliasInfo) XXX_DiscardUnknown()

func (*AliasInfo) XXX_Marshal

func (m *AliasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AliasInfo) XXX_Merge

func (m *AliasInfo) XXX_Merge(src proto.Message)

func (*AliasInfo) XXX_Size

func (m *AliasInfo) XXX_Size() int

func (*AliasInfo) XXX_Unmarshal

func (m *AliasInfo) XXX_Unmarshal(b []byte) error

type AliasInfos

type AliasInfos struct {
	AliasInfos []*AliasInfo `protobuf:"bytes,1,rep,name=alias_infos,json=aliasInfos,proto3" json:"alias_infos,omitempty"`
}

别名信息列表

func (*AliasInfos) Descriptor

func (*AliasInfos) Descriptor() ([]byte, []int)

func (*AliasInfos) GetAliasInfos

func (m *AliasInfos) GetAliasInfos() []*AliasInfo

func (*AliasInfos) Marshal

func (m *AliasInfos) Marshal() (dAtA []byte, err error)

func (*AliasInfos) MarshalTo

func (m *AliasInfos) MarshalTo(dAtA []byte) (int, error)

func (*AliasInfos) MarshalToSizedBuffer

func (m *AliasInfos) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AliasInfos) ProtoMessage

func (*AliasInfos) ProtoMessage()

func (*AliasInfos) Reset

func (m *AliasInfos) Reset()

func (*AliasInfos) Size

func (m *AliasInfos) Size() (n int)

func (*AliasInfos) String

func (m *AliasInfos) String() string

func (*AliasInfos) Unmarshal

func (m *AliasInfos) Unmarshal(dAtA []byte) error

func (*AliasInfos) XXX_DiscardUnknown

func (m *AliasInfos) XXX_DiscardUnknown()

func (*AliasInfos) XXX_Marshal

func (m *AliasInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AliasInfos) XXX_Merge

func (m *AliasInfos) XXX_Merge(src proto.Message)

func (*AliasInfos) XXX_Size

func (m *AliasInfos) XXX_Size() int

func (*AliasInfos) XXX_Unmarshal

func (m *AliasInfos) XXX_Unmarshal(b []byte) error

type ArchiveBlock

type ArchiveBlock struct {
}

归档块净荷参数

func (*ArchiveBlock) Descriptor

func (*ArchiveBlock) Descriptor() ([]byte, []int)

func (*ArchiveBlock) Marshal

func (m *ArchiveBlock) Marshal() (dAtA []byte, err error)

func (*ArchiveBlock) MarshalTo

func (m *ArchiveBlock) MarshalTo(dAtA []byte) (int, error)

func (*ArchiveBlock) MarshalToSizedBuffer

func (m *ArchiveBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ArchiveBlock) ProtoMessage

func (*ArchiveBlock) ProtoMessage()

func (*ArchiveBlock) Reset

func (m *ArchiveBlock) Reset()

func (*ArchiveBlock) Size

func (m *ArchiveBlock) Size() (n int)

func (*ArchiveBlock) String

func (m *ArchiveBlock) String() string

func (*ArchiveBlock) Unmarshal

func (m *ArchiveBlock) Unmarshal(dAtA []byte) error

func (*ArchiveBlock) XXX_DiscardUnknown

func (m *ArchiveBlock) XXX_DiscardUnknown()

func (*ArchiveBlock) XXX_Marshal

func (m *ArchiveBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArchiveBlock) XXX_Merge

func (m *ArchiveBlock) XXX_Merge(src proto.Message)

func (*ArchiveBlock) XXX_Size

func (m *ArchiveBlock) XXX_Size() int

func (*ArchiveBlock) XXX_Unmarshal

func (m *ArchiveBlock) XXX_Unmarshal(b []byte) error

type ArchiveBlock_Parameter

type ArchiveBlock_Parameter int32
const (
	ArchiveBlock_BLOCK_HEIGHT ArchiveBlock_Parameter = 0
)

func (ArchiveBlock_Parameter) EnumDescriptor

func (ArchiveBlock_Parameter) EnumDescriptor() ([]byte, []int)

func (ArchiveBlock_Parameter) String

func (x ArchiveBlock_Parameter) String() string

type ArchiveFunction

type ArchiveFunction int32

存档块的方法

const (
	ArchiveFunction_ARCHIVE_BLOCK ArchiveFunction = 0
	ArchiveFunction_RESTORE_BLOCK ArchiveFunction = 1
)

func (ArchiveFunction) EnumDescriptor

func (ArchiveFunction) EnumDescriptor() ([]byte, []int)

func (ArchiveFunction) String

func (x ArchiveFunction) String() string

type BatchKey

type BatchKey struct {
	Key          string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Field        string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	Value        []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	ContractName string `protobuf:"bytes,4,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
}

func (*BatchKey) Descriptor

func (*BatchKey) Descriptor() ([]byte, []int)

func (*BatchKey) GetContractName

func (m *BatchKey) GetContractName() string

func (*BatchKey) GetField

func (m *BatchKey) GetField() string

func (*BatchKey) GetKey

func (m *BatchKey) GetKey() string

func (*BatchKey) GetValue

func (m *BatchKey) GetValue() []byte

func (*BatchKey) Marshal

func (m *BatchKey) Marshal() (dAtA []byte, err error)

func (*BatchKey) MarshalTo

func (m *BatchKey) MarshalTo(dAtA []byte) (int, error)

func (*BatchKey) MarshalToSizedBuffer

func (m *BatchKey) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchKey) ProtoMessage

func (*BatchKey) ProtoMessage()

func (*BatchKey) Reset

func (m *BatchKey) Reset()

func (*BatchKey) Size

func (m *BatchKey) Size() (n int)

func (*BatchKey) String

func (m *BatchKey) String() string

func (*BatchKey) Unmarshal

func (m *BatchKey) Unmarshal(dAtA []byte) error

func (*BatchKey) XXX_DiscardUnknown

func (m *BatchKey) XXX_DiscardUnknown()

func (*BatchKey) XXX_Marshal

func (m *BatchKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchKey) XXX_Merge

func (m *BatchKey) XXX_Merge(src proto.Message)

func (*BatchKey) XXX_Size

func (m *BatchKey) XXX_Size() int

func (*BatchKey) XXX_Unmarshal

func (m *BatchKey) XXX_Unmarshal(b []byte) error

type BatchKeys

type BatchKeys struct {
	Keys []*BatchKey `protobuf:"bytes,1,rep,name=Keys,proto3" json:"Keys,omitempty"`
}

func (*BatchKeys) Descriptor

func (*BatchKeys) Descriptor() ([]byte, []int)

func (*BatchKeys) GetKeys

func (m *BatchKeys) GetKeys() []*BatchKey

func (*BatchKeys) Marshal

func (m *BatchKeys) Marshal() (dAtA []byte, err error)

func (*BatchKeys) MarshalTo

func (m *BatchKeys) MarshalTo(dAtA []byte) (int, error)

func (*BatchKeys) MarshalToSizedBuffer

func (m *BatchKeys) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BatchKeys) ProtoMessage

func (*BatchKeys) ProtoMessage()

func (*BatchKeys) Reset

func (m *BatchKeys) Reset()

func (*BatchKeys) Size

func (m *BatchKeys) Size() (n int)

func (*BatchKeys) String

func (m *BatchKeys) String() string

func (*BatchKeys) Unmarshal

func (m *BatchKeys) Unmarshal(dAtA []byte) error

func (*BatchKeys) XXX_DiscardUnknown

func (m *BatchKeys) XXX_DiscardUnknown()

func (*BatchKeys) XXX_Marshal

func (m *BatchKeys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchKeys) XXX_Merge

func (m *BatchKeys) XXX_Merge(src proto.Message)

func (*BatchKeys) XXX_Size

func (m *BatchKeys) XXX_Size() int

func (*BatchKeys) XXX_Unmarshal

func (m *BatchKeys) XXX_Unmarshal(b []byte) error

type Block

type Block struct {
	// 区块头
	Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 区块内交易的执行顺序,由提议者生成
	Dag *DAG `protobuf:"bytes,2,opt,name=dag,proto3" json:"dag,omitempty"`
	// 该区块中的交易列表
	Txs []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
	// 存储当前区块的投票信息,不包含在区块哈希值计算中
	AdditionalData *AdditionalData `protobuf:"bytes,4,opt,name=additional_data,json=additionalData,proto3" json:"additional_data,omitempty"`
}

区块

func (*Block) Descriptor

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetAdditionalData

func (m *Block) GetAdditionalData() *AdditionalData

func (*Block) GetBlockHashStr

func (b *Block) GetBlockHashStr() string

func (*Block) GetDag

func (m *Block) GetDag() *DAG

func (*Block) GetHeader

func (m *Block) GetHeader() *BlockHeader

func (*Block) GetTimestamp

func (b *Block) GetTimestamp() time.Time

func (*Block) GetTxKey

func (b *Block) GetTxKey() string

GetTxKey get transaction key

func (*Block) GetTxs

func (m *Block) GetTxs() []*Transaction

func (*Block) Hash

func (b *Block) Hash() []byte

func (*Block) Marshal

func (m *Block) Marshal() (dAtA []byte, err error)

func (*Block) MarshalTo

func (m *Block) MarshalTo(dAtA []byte) (int, error)

func (*Block) MarshalToSizedBuffer

func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

func (m *Block) Size() (n int)

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

func (m *Block) Unmarshal(dAtA []byte) error

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type BlockBatch

type BlockBatch struct {
	Batches []*Block `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
}

批量处理区块

func (*BlockBatch) Descriptor

func (*BlockBatch) Descriptor() ([]byte, []int)

func (*BlockBatch) GetBatches

func (m *BlockBatch) GetBatches() []*Block

func (*BlockBatch) Marshal

func (m *BlockBatch) Marshal() (dAtA []byte, err error)

func (*BlockBatch) MarshalTo

func (m *BlockBatch) MarshalTo(dAtA []byte) (int, error)

func (*BlockBatch) MarshalToSizedBuffer

func (m *BlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockBatch) ProtoMessage

func (*BlockBatch) ProtoMessage()

func (*BlockBatch) Reset

func (m *BlockBatch) Reset()

func (*BlockBatch) Size

func (m *BlockBatch) Size() (n int)

func (*BlockBatch) String

func (m *BlockBatch) String() string

func (*BlockBatch) Unmarshal

func (m *BlockBatch) Unmarshal(dAtA []byte) error

func (*BlockBatch) XXX_DiscardUnknown

func (m *BlockBatch) XXX_DiscardUnknown()

func (*BlockBatch) XXX_Marshal

func (m *BlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockBatch) XXX_Merge

func (m *BlockBatch) XXX_Merge(src proto.Message)

func (*BlockBatch) XXX_Size

func (m *BlockBatch) XXX_Size() int

func (*BlockBatch) XXX_Unmarshal

func (m *BlockBatch) XXX_Unmarshal(b []byte) error

type BlockConfig

type BlockConfig struct {
	// 是否启用交易时间戳验证
	TxTimestampVerify bool `protobuf:"varint,1,opt,name=tx_timestamp_verify,json=txTimestampVerify,proto3" json:"tx_timestamp_verify,omitempty"`
	// 交易时间戳过期时间(秒)
	TxTimeout uint32 `protobuf:"varint,2,opt,name=tx_timeout,json=txTimeout,proto3" json:"tx_timeout,omitempty"`
	// 一个区块的最大交易数
	BlockTxCapacity uint32 `protobuf:"varint,3,opt,name=block_tx_capacity,json=blockTxCapacity,proto3" json:"block_tx_capacity,omitempty"`
	// 最大块大小,以 MB 为单位
	BlockSize uint32 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	// 块提议间隔,以毫秒为单位
	BlockInterval uint32 `protobuf:"varint,5,opt,name=block_interval,json=blockInterval,proto3" json:"block_interval,omitempty"`
	// 事务参数的最大大小,以 MB 为单位
	TxParameterSize uint32 `protobuf:"varint,6,opt,name=tx_parameter_size,json=txParameterSize,proto3" json:"tx_parameter_size,omitempty"`
}

区块配置

func (*BlockConfig) Descriptor

func (*BlockConfig) Descriptor() ([]byte, []int)

func (*BlockConfig) GetBlockInterval

func (m *BlockConfig) GetBlockInterval() uint32

func (*BlockConfig) GetBlockSize

func (m *BlockConfig) GetBlockSize() uint32

func (*BlockConfig) GetBlockTxCapacity

func (m *BlockConfig) GetBlockTxCapacity() uint32

func (*BlockConfig) GetTxParameterSize

func (m *BlockConfig) GetTxParameterSize() uint32

func (*BlockConfig) GetTxTimeout

func (m *BlockConfig) GetTxTimeout() uint32

func (*BlockConfig) GetTxTimestampVerify

func (m *BlockConfig) GetTxTimestampVerify() bool

func (*BlockConfig) Marshal

func (m *BlockConfig) Marshal() (dAtA []byte, err error)

func (*BlockConfig) MarshalTo

func (m *BlockConfig) MarshalTo(dAtA []byte) (int, error)

func (*BlockConfig) MarshalToSizedBuffer

func (m *BlockConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockConfig) ProtoMessage

func (*BlockConfig) ProtoMessage()

func (*BlockConfig) Reset

func (m *BlockConfig) Reset()

func (*BlockConfig) Size

func (m *BlockConfig) Size() (n int)

func (*BlockConfig) String

func (m *BlockConfig) String() string

func (*BlockConfig) Unmarshal

func (m *BlockConfig) Unmarshal(dAtA []byte) error

func (*BlockConfig) XXX_DiscardUnknown

func (m *BlockConfig) XXX_DiscardUnknown()

func (*BlockConfig) XXX_Marshal

func (m *BlockConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockConfig) XXX_Merge

func (m *BlockConfig) XXX_Merge(src proto.Message)

func (*BlockConfig) XXX_Size

func (m *BlockConfig) XXX_Size() int

func (*BlockConfig) XXX_Unmarshal

func (m *BlockConfig) XXX_Unmarshal(b []byte) error

type BlockHeader

type BlockHeader struct {
	// 区块版本
	BlockVersion uint32 `protobuf:"varint,1,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"`
	// 区块类型
	BlockType BlockType `protobuf:"varint,2,opt,name=block_type,json=blockType,proto3,enum=proto_go.BlockType" json:"block_type,omitempty"`
	// 链 ID
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 区块哈希
	BlockHash []byte `protobuf:"bytes,5,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// 前一个区块哈希
	PreBlockHash []byte `protobuf:"bytes,6,opt,name=pre_block_hash,json=preBlockHash,proto3" json:"pre_block_hash,omitempty"`
	// 前一个配置块高度,用于跟踪和检查链配置是否有效
	PreConfHeight uint64 `protobuf:"varint,7,opt,name=pre_conf_height,json=preConfHeight,proto3" json:"pre_conf_height,omitempty"`
	// 交易次数
	TxCount uint32 `protobuf:"varint,8,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	// 用于验证此交易存在的交易的默克尔根
	TxRoot []byte `protobuf:"bytes,9,opt,name=tx_root,json=txRoot,proto3" json:"tx_root,omitempty"`
	// 保存DAG特征摘要,对序列化DAG的Pb序列化hash后的DAG进行hash
	DagHash []byte `protobuf:"bytes,10,opt,name=dag_hash,json=dagHash,proto3" json:"dag_hash,omitempty"`
	// 区块中每笔交易的结果中read_write_set_digest生成的Merkle树的根哈希,用于验证区块的读写集
	RwSetRoot []byte `protobuf:"bytes,11,opt,name=rw_set_root,json=rwSetRoot,proto3" json:"rw_set_root,omitempty"`
	// 区块的时间戳
	BlockTimestamp int64 `protobuf:"varint,12,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"`
	// 用于存储信息的共识参数,包括在区块哈希计算中
	ConsensusArgs []byte `protobuf:"bytes,13,opt,name=consensus_args,json=consensusArgs,proto3" json:"consensus_args,omitempty"`
	// 提议节点标识符
	Proposer *Participant `protobuf:"bytes,14,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// 提议人签名
	Signature []byte `protobuf:"bytes,15,opt,name=signature,proto3" json:"signature,omitempty"`
}

区块头

func (*BlockHeader) Descriptor

func (*BlockHeader) Descriptor() ([]byte, []int)

func (*BlockHeader) GetBlockHash

func (m *BlockHeader) GetBlockHash() []byte

func (*BlockHeader) GetBlockHeight

func (m *BlockHeader) GetBlockHeight() uint64

func (*BlockHeader) GetBlockTimestamp

func (m *BlockHeader) GetBlockTimestamp() int64

func (*BlockHeader) GetBlockType

func (m *BlockHeader) GetBlockType() BlockType

func (*BlockHeader) GetBlockVersion

func (m *BlockHeader) GetBlockVersion() uint32

func (*BlockHeader) GetChainId

func (m *BlockHeader) GetChainId() string

func (*BlockHeader) GetConsensusArgs

func (m *BlockHeader) GetConsensusArgs() []byte

func (*BlockHeader) GetDagHash

func (m *BlockHeader) GetDagHash() []byte

func (*BlockHeader) GetPreBlockHash

func (m *BlockHeader) GetPreBlockHash() []byte

func (*BlockHeader) GetPreConfHeight

func (m *BlockHeader) GetPreConfHeight() uint64

func (*BlockHeader) GetProposer

func (m *BlockHeader) GetProposer() *Participant

func (*BlockHeader) GetRwSetRoot

func (m *BlockHeader) GetRwSetRoot() []byte

func (*BlockHeader) GetSignature

func (m *BlockHeader) GetSignature() []byte

func (*BlockHeader) GetTxCount

func (m *BlockHeader) GetTxCount() uint32

func (*BlockHeader) GetTxRoot

func (m *BlockHeader) GetTxRoot() []byte

func (*BlockHeader) Marshal

func (m *BlockHeader) Marshal() (dAtA []byte, err error)

func (*BlockHeader) MarshalTo

func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)

func (*BlockHeader) MarshalToSizedBuffer

func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) Reset

func (m *BlockHeader) Reset()

func (*BlockHeader) Size

func (m *BlockHeader) Size() (n int)

func (*BlockHeader) String

func (m *BlockHeader) String() string

func (*BlockHeader) Unmarshal

func (m *BlockHeader) Unmarshal(dAtA []byte) error

func (*BlockHeader) XXX_DiscardUnknown

func (m *BlockHeader) XXX_DiscardUnknown()

func (*BlockHeader) XXX_Marshal

func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeader) XXX_Merge

func (m *BlockHeader) XXX_Merge(src proto.Message)

func (*BlockHeader) XXX_Size

func (m *BlockHeader) XXX_Size() int

func (*BlockHeader) XXX_Unmarshal

func (m *BlockHeader) XXX_Unmarshal(b []byte) error

type BlockHeaderConsensusArgs

type BlockHeaderConsensusArgs struct {
	ConsensusType int64    `protobuf:"varint,1,opt,name=consensus_type,json=consensusType,proto3" json:"consensus_type,omitempty"`
	Round         uint64   `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Level         uint64   `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
	ConsensusData *TxRWSet `protobuf:"bytes,4,opt,name=consensus_data,json=consensusData,proto3" json:"consensus_data,omitempty"`
}

func (*BlockHeaderConsensusArgs) Descriptor

func (*BlockHeaderConsensusArgs) Descriptor() ([]byte, []int)

func (*BlockHeaderConsensusArgs) GetConsensusData

func (m *BlockHeaderConsensusArgs) GetConsensusData() *TxRWSet

func (*BlockHeaderConsensusArgs) GetConsensusType

func (m *BlockHeaderConsensusArgs) GetConsensusType() int64

func (*BlockHeaderConsensusArgs) GetLevel

func (m *BlockHeaderConsensusArgs) GetLevel() uint64

func (*BlockHeaderConsensusArgs) GetRound

func (m *BlockHeaderConsensusArgs) GetRound() uint64

func (*BlockHeaderConsensusArgs) Marshal

func (m *BlockHeaderConsensusArgs) Marshal() (dAtA []byte, err error)

func (*BlockHeaderConsensusArgs) MarshalTo

func (m *BlockHeaderConsensusArgs) MarshalTo(dAtA []byte) (int, error)

func (*BlockHeaderConsensusArgs) MarshalToSizedBuffer

func (m *BlockHeaderConsensusArgs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockHeaderConsensusArgs) ProtoMessage

func (*BlockHeaderConsensusArgs) ProtoMessage()

func (*BlockHeaderConsensusArgs) Reset

func (m *BlockHeaderConsensusArgs) Reset()

func (*BlockHeaderConsensusArgs) Size

func (m *BlockHeaderConsensusArgs) Size() (n int)

func (*BlockHeaderConsensusArgs) String

func (m *BlockHeaderConsensusArgs) String() string

func (*BlockHeaderConsensusArgs) Unmarshal

func (m *BlockHeaderConsensusArgs) Unmarshal(dAtA []byte) error

func (*BlockHeaderConsensusArgs) XXX_DiscardUnknown

func (m *BlockHeaderConsensusArgs) XXX_DiscardUnknown()

func (*BlockHeaderConsensusArgs) XXX_Marshal

func (m *BlockHeaderConsensusArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeaderConsensusArgs) XXX_Merge

func (m *BlockHeaderConsensusArgs) XXX_Merge(src proto.Message)

func (*BlockHeaderConsensusArgs) XXX_Size

func (m *BlockHeaderConsensusArgs) XXX_Size() int

func (*BlockHeaderConsensusArgs) XXX_Unmarshal

func (m *BlockHeaderConsensusArgs) XXX_Unmarshal(b []byte) error

type BlockHeightBCM

type BlockHeightBCM struct {
	BlockHeight    uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	ArchivedHeight uint64 `protobuf:"varint,2,opt,name=archived_height,json=archivedHeight,proto3" json:"archived_height,omitempty"`
}

节点状态的响应消息

func (*BlockHeightBCM) Descriptor

func (*BlockHeightBCM) Descriptor() ([]byte, []int)

func (*BlockHeightBCM) GetArchivedHeight

func (m *BlockHeightBCM) GetArchivedHeight() uint64

func (*BlockHeightBCM) GetBlockHeight

func (m *BlockHeightBCM) GetBlockHeight() uint64

func (*BlockHeightBCM) Marshal

func (m *BlockHeightBCM) Marshal() (dAtA []byte, err error)

func (*BlockHeightBCM) MarshalTo

func (m *BlockHeightBCM) MarshalTo(dAtA []byte) (int, error)

func (*BlockHeightBCM) MarshalToSizedBuffer

func (m *BlockHeightBCM) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockHeightBCM) ProtoMessage

func (*BlockHeightBCM) ProtoMessage()

func (*BlockHeightBCM) Reset

func (m *BlockHeightBCM) Reset()

func (*BlockHeightBCM) Size

func (m *BlockHeightBCM) Size() (n int)

func (*BlockHeightBCM) String

func (m *BlockHeightBCM) String() string

func (*BlockHeightBCM) Unmarshal

func (m *BlockHeightBCM) Unmarshal(dAtA []byte) error

func (*BlockHeightBCM) XXX_DiscardUnknown

func (m *BlockHeightBCM) XXX_DiscardUnknown()

func (*BlockHeightBCM) XXX_Marshal

func (m *BlockHeightBCM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeightBCM) XXX_Merge

func (m *BlockHeightBCM) XXX_Merge(src proto.Message)

func (*BlockHeightBCM) XXX_Size

func (m *BlockHeightBCM) XXX_Size() int

func (*BlockHeightBCM) XXX_Unmarshal

func (m *BlockHeightBCM) XXX_Unmarshal(b []byte) error

type BlockHeightSerializeIntervalConfig

type BlockHeightSerializeIntervalConfig struct {
	Interval uint64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
}

区块高度序列化间隔

func (*BlockHeightSerializeIntervalConfig) Descriptor

func (*BlockHeightSerializeIntervalConfig) Descriptor() ([]byte, []int)

func (*BlockHeightSerializeIntervalConfig) GetInterval

func (m *BlockHeightSerializeIntervalConfig) GetInterval() uint64

func (*BlockHeightSerializeIntervalConfig) Marshal

func (m *BlockHeightSerializeIntervalConfig) Marshal() (dAtA []byte, err error)

func (*BlockHeightSerializeIntervalConfig) MarshalTo

func (m *BlockHeightSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)

func (*BlockHeightSerializeIntervalConfig) MarshalToSizedBuffer

func (m *BlockHeightSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockHeightSerializeIntervalConfig) ProtoMessage

func (*BlockHeightSerializeIntervalConfig) ProtoMessage()

func (*BlockHeightSerializeIntervalConfig) Reset

func (*BlockHeightSerializeIntervalConfig) Size

func (*BlockHeightSerializeIntervalConfig) String

func (*BlockHeightSerializeIntervalConfig) Unmarshal

func (m *BlockHeightSerializeIntervalConfig) Unmarshal(dAtA []byte) error

func (*BlockHeightSerializeIntervalConfig) XXX_DiscardUnknown

func (m *BlockHeightSerializeIntervalConfig) XXX_DiscardUnknown()

func (*BlockHeightSerializeIntervalConfig) XXX_Marshal

func (m *BlockHeightSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeightSerializeIntervalConfig) XXX_Merge

func (*BlockHeightSerializeIntervalConfig) XXX_Size

func (*BlockHeightSerializeIntervalConfig) XXX_Unmarshal

func (m *BlockHeightSerializeIntervalConfig) XXX_Unmarshal(b []byte) error

type BlockInfo

type BlockInfo struct {
	// 区块
	Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// 区块中包含的交易对应的读/写集列表
	RwSetList []*TxRWSet `protobuf:"bytes,2,rep,name=rw_set_list,json=rwSetList,proto3" json:"rw_set_list,omitempty"`
}

区块块信息

func (*BlockInfo) Descriptor

func (*BlockInfo) Descriptor() ([]byte, []int)

func (*BlockInfo) GetBlock

func (m *BlockInfo) GetBlock() *Block

func (*BlockInfo) GetRwSetList

func (m *BlockInfo) GetRwSetList() []*TxRWSet

func (*BlockInfo) Marshal

func (m *BlockInfo) Marshal() (dAtA []byte, err error)

func (*BlockInfo) MarshalTo

func (m *BlockInfo) MarshalTo(dAtA []byte) (int, error)

func (*BlockInfo) MarshalToSizedBuffer

func (m *BlockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockInfo) ProtoMessage

func (*BlockInfo) ProtoMessage()

func (*BlockInfo) Reset

func (m *BlockInfo) Reset()

func (*BlockInfo) Size

func (m *BlockInfo) Size() (n int)

func (*BlockInfo) String

func (m *BlockInfo) String() string

func (*BlockInfo) Unmarshal

func (m *BlockInfo) Unmarshal(dAtA []byte) error

func (*BlockInfo) XXX_DiscardUnknown

func (m *BlockInfo) XXX_DiscardUnknown()

func (*BlockInfo) XXX_Marshal

func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockInfo) XXX_Merge

func (m *BlockInfo) XXX_Merge(src proto.Message)

func (*BlockInfo) XXX_Size

func (m *BlockInfo) XXX_Size() int

func (*BlockInfo) XXX_Unmarshal

func (m *BlockInfo) XXX_Unmarshal(b []byte) error

type BlockInfoBatch

type BlockInfoBatch struct {
	BatchInfos []*BlockInfo `protobuf:"bytes,1,rep,name=batch_infos,json=batchInfos,proto3" json:"batch_infos,omitempty"`
}

批量区块信息

func (*BlockInfoBatch) Descriptor

func (*BlockInfoBatch) Descriptor() ([]byte, []int)

func (*BlockInfoBatch) GetBatchInfos

func (m *BlockInfoBatch) GetBatchInfos() []*BlockInfo

func (*BlockInfoBatch) Marshal

func (m *BlockInfoBatch) Marshal() (dAtA []byte, err error)

func (*BlockInfoBatch) MarshalTo

func (m *BlockInfoBatch) MarshalTo(dAtA []byte) (int, error)

func (*BlockInfoBatch) MarshalToSizedBuffer

func (m *BlockInfoBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockInfoBatch) ProtoMessage

func (*BlockInfoBatch) ProtoMessage()

func (*BlockInfoBatch) Reset

func (m *BlockInfoBatch) Reset()

func (*BlockInfoBatch) Size

func (m *BlockInfoBatch) Size() (n int)

func (*BlockInfoBatch) String

func (m *BlockInfoBatch) String() string

func (*BlockInfoBatch) Unmarshal

func (m *BlockInfoBatch) Unmarshal(dAtA []byte) error

func (*BlockInfoBatch) XXX_DiscardUnknown

func (m *BlockInfoBatch) XXX_DiscardUnknown()

func (*BlockInfoBatch) XXX_Marshal

func (m *BlockInfoBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockInfoBatch) XXX_Merge

func (m *BlockInfoBatch) XXX_Merge(src proto.Message)

func (*BlockInfoBatch) XXX_Size

func (m *BlockInfoBatch) XXX_Size() int

func (*BlockInfoBatch) XXX_Unmarshal

func (m *BlockInfoBatch) XXX_Unmarshal(b []byte) error

type BlockSyncRequest

type BlockSyncRequest struct {
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	BatchSize   uint64 `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
	WithRwset   bool   `protobuf:"varint,3,opt,name=with_rwset,json=withRwset,proto3" json:"with_rwset,omitempty"`
}

区块请求消息

func (*BlockSyncRequest) Descriptor

func (*BlockSyncRequest) Descriptor() ([]byte, []int)

func (*BlockSyncRequest) GetBatchSize

func (m *BlockSyncRequest) GetBatchSize() uint64

func (*BlockSyncRequest) GetBlockHeight

func (m *BlockSyncRequest) GetBlockHeight() uint64

func (*BlockSyncRequest) GetWithRwset

func (m *BlockSyncRequest) GetWithRwset() bool

func (*BlockSyncRequest) Marshal

func (m *BlockSyncRequest) Marshal() (dAtA []byte, err error)

func (*BlockSyncRequest) MarshalTo

func (m *BlockSyncRequest) MarshalTo(dAtA []byte) (int, error)

func (*BlockSyncRequest) MarshalToSizedBuffer

func (m *BlockSyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockSyncRequest) ProtoMessage

func (*BlockSyncRequest) ProtoMessage()

func (*BlockSyncRequest) Reset

func (m *BlockSyncRequest) Reset()

func (*BlockSyncRequest) Size

func (m *BlockSyncRequest) Size() (n int)

func (*BlockSyncRequest) String

func (m *BlockSyncRequest) String() string

func (*BlockSyncRequest) Unmarshal

func (m *BlockSyncRequest) Unmarshal(dAtA []byte) error

func (*BlockSyncRequest) XXX_DiscardUnknown

func (m *BlockSyncRequest) XXX_DiscardUnknown()

func (*BlockSyncRequest) XXX_Marshal

func (m *BlockSyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockSyncRequest) XXX_Merge

func (m *BlockSyncRequest) XXX_Merge(src proto.Message)

func (*BlockSyncRequest) XXX_Size

func (m *BlockSyncRequest) XXX_Size() int

func (*BlockSyncRequest) XXX_Unmarshal

func (m *BlockSyncRequest) XXX_Unmarshal(b []byte) error

type BlockType

type BlockType int32

BlockType 指定块包 txs 类型

const (
	// 普通区块,将多笔交易打包成一个区块
	BlockType_BT_NORMAL_BLOCK BlockType = 0
	// 配置区块,此区块中仅包含 1 条链配置更新 tx
	BlockType_BT_CONFIG_BLOCK BlockType = 1
	// Sql Contract init or upgrade 区块,该区块中仅包含 1 个 sql contract init 或 upgrade tx
	BlockType_BT_CONTRACT_MGR_BLOCK BlockType = 2
	// block.Txs[0] is a coinbase tx
	BlockType_BT_HAS_COINBASE BlockType = 3
)

func (BlockType) EnumDescriptor

func (BlockType) EnumDescriptor() ([]byte, []int)

func (BlockType) String

func (x BlockType) String() string

type BlockWithRWSet

type BlockWithRWSet struct {
	// 区块信息
	Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	// 区块中的交易读写集
	TxRWSets []*TxRWSet `protobuf:"bytes,2,rep,name=txRWSets,proto3" json:"txRWSets,omitempty"`
	// 合约事件信息
	ContractEvents []*ContractEvent `protobuf:"bytes,3,rep,name=contract_events,json=contractEvents,proto3" json:"contract_events,omitempty"`
}

Block及其读/写集信息

func (*BlockWithRWSet) Descriptor

func (*BlockWithRWSet) Descriptor() ([]byte, []int)

func (*BlockWithRWSet) GetBlock

func (m *BlockWithRWSet) GetBlock() *Block

func (*BlockWithRWSet) GetContractEvents

func (m *BlockWithRWSet) GetContractEvents() []*ContractEvent

func (*BlockWithRWSet) GetTxRWSets

func (m *BlockWithRWSet) GetTxRWSets() []*TxRWSet

func (*BlockWithRWSet) Marshal

func (m *BlockWithRWSet) Marshal() (dAtA []byte, err error)

func (*BlockWithRWSet) MarshalTo

func (m *BlockWithRWSet) MarshalTo(dAtA []byte) (int, error)

func (*BlockWithRWSet) MarshalToSizedBuffer

func (m *BlockWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockWithRWSet) ProtoMessage

func (*BlockWithRWSet) ProtoMessage()

func (*BlockWithRWSet) Reset

func (m *BlockWithRWSet) Reset()

func (*BlockWithRWSet) Size

func (m *BlockWithRWSet) Size() (n int)

func (*BlockWithRWSet) String

func (m *BlockWithRWSet) String() string

func (*BlockWithRWSet) Unmarshal

func (m *BlockWithRWSet) Unmarshal(dAtA []byte) error

func (*BlockWithRWSet) XXX_DiscardUnknown

func (m *BlockWithRWSet) XXX_DiscardUnknown()

func (*BlockWithRWSet) XXX_Marshal

func (m *BlockWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockWithRWSet) XXX_Merge

func (m *BlockWithRWSet) XXX_Merge(src proto.Message)

func (*BlockWithRWSet) XXX_Size

func (m *BlockWithRWSet) XXX_Size() int

func (*BlockWithRWSet) XXX_Unmarshal

func (m *BlockWithRWSet) XXX_Unmarshal(b []byte) error

type BondStatus

type BondStatus int32
const (
	BondStatus_BONDED    BondStatus = 0
	BondStatus_UNBONDING BondStatus = 1
	BondStatus_UNBONDED  BondStatus = 2
)

func (BondStatus) EnumDescriptor

func (BondStatus) EnumDescriptor() ([]byte, []int)

func (BondStatus) String

func (x BondStatus) String() string

type CallType

type CallType int32
const (
	CallType_DIRECT CallType = 0
	CallType_CROSS  CallType = 1
)

func (CallType) EnumDescriptor

func (CallType) EnumDescriptor() ([]byte, []int)

func (CallType) String

func (x CallType) String() string

type CandidateInfo

type CandidateInfo struct {
	// 节点标识
	PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	// 节点的投票权重
	Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"`
}

func (*CandidateInfo) Descriptor

func (*CandidateInfo) Descriptor() ([]byte, []int)

func (*CandidateInfo) GetPeerId

func (m *CandidateInfo) GetPeerId() string

func (*CandidateInfo) GetWeight

func (m *CandidateInfo) GetWeight() string

func (*CandidateInfo) Marshal

func (m *CandidateInfo) Marshal() (dAtA []byte, err error)

func (*CandidateInfo) MarshalTo

func (m *CandidateInfo) MarshalTo(dAtA []byte) (int, error)

func (*CandidateInfo) MarshalToSizedBuffer

func (m *CandidateInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CandidateInfo) ProtoMessage

func (*CandidateInfo) ProtoMessage()

func (*CandidateInfo) Reset

func (m *CandidateInfo) Reset()

func (*CandidateInfo) Size

func (m *CandidateInfo) Size() (n int)

func (*CandidateInfo) String

func (m *CandidateInfo) String() string

func (*CandidateInfo) Unmarshal

func (m *CandidateInfo) Unmarshal(dAtA []byte) error

func (*CandidateInfo) XXX_DiscardUnknown

func (m *CandidateInfo) XXX_DiscardUnknown()

func (*CandidateInfo) XXX_Marshal

func (m *CandidateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandidateInfo) XXX_Merge

func (m *CandidateInfo) XXX_Merge(src proto.Message)

func (*CandidateInfo) XXX_Size

func (m *CandidateInfo) XXX_Size() int

func (*CandidateInfo) XXX_Unmarshal

func (m *CandidateInfo) XXX_Unmarshal(b []byte) error

type CertInfo

type CertInfo struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
}

证书信息

func (*CertInfo) Descriptor

func (*CertInfo) Descriptor() ([]byte, []int)

func (*CertInfo) GetCert

func (m *CertInfo) GetCert() []byte

func (*CertInfo) GetHash

func (m *CertInfo) GetHash() string

func (*CertInfo) Marshal

func (m *CertInfo) Marshal() (dAtA []byte, err error)

func (*CertInfo) MarshalTo

func (m *CertInfo) MarshalTo(dAtA []byte) (int, error)

func (*CertInfo) MarshalToSizedBuffer

func (m *CertInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CertInfo) ProtoMessage

func (*CertInfo) ProtoMessage()

func (*CertInfo) Reset

func (m *CertInfo) Reset()

func (*CertInfo) Size

func (m *CertInfo) Size() (n int)

func (*CertInfo) String

func (m *CertInfo) String() string

func (*CertInfo) Unmarshal

func (m *CertInfo) Unmarshal(dAtA []byte) error

func (*CertInfo) XXX_DiscardUnknown

func (m *CertInfo) XXX_DiscardUnknown()

func (*CertInfo) XXX_Marshal

func (m *CertInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertInfo) XXX_Merge

func (m *CertInfo) XXX_Merge(src proto.Message)

func (*CertInfo) XXX_Size

func (m *CertInfo) XXX_Size() int

func (*CertInfo) XXX_Unmarshal

func (m *CertInfo) XXX_Unmarshal(b []byte) error

type CertInfos

type CertInfos struct {
	CertInfos []*CertInfo `protobuf:"bytes,1,rep,name=cert_infos,json=certInfos,proto3" json:"cert_infos,omitempty"`
}

证书信息列表

func (*CertInfos) Descriptor

func (*CertInfos) Descriptor() ([]byte, []int)

func (*CertInfos) GetCertInfos

func (m *CertInfos) GetCertInfos() []*CertInfo

func (*CertInfos) Marshal

func (m *CertInfos) Marshal() (dAtA []byte, err error)

func (*CertInfos) MarshalTo

func (m *CertInfos) MarshalTo(dAtA []byte) (int, error)

func (*CertInfos) MarshalToSizedBuffer

func (m *CertInfos) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CertInfos) ProtoMessage

func (*CertInfos) ProtoMessage()

func (*CertInfos) Reset

func (m *CertInfos) Reset()

func (*CertInfos) Size

func (m *CertInfos) Size() (n int)

func (*CertInfos) String

func (m *CertInfos) String() string

func (*CertInfos) Unmarshal

func (m *CertInfos) Unmarshal(dAtA []byte) error

func (*CertInfos) XXX_DiscardUnknown

func (m *CertInfos) XXX_DiscardUnknown()

func (*CertInfos) XXX_Marshal

func (m *CertInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertInfos) XXX_Merge

func (m *CertInfos) XXX_Merge(src proto.Message)

func (*CertInfos) XXX_Size

func (m *CertInfos) XXX_Size() int

func (*CertInfos) XXX_Unmarshal

func (m *CertInfos) XXX_Unmarshal(b []byte) error

type CertManageFunction

type CertManageFunction int32

证书管理方法

const (
	// 添加一个证书
	CertManageFunction_CERT_ADD CertManageFunction = 0
	// 删除一个证书
	CertManageFunction_CERTS_DELETE CertManageFunction = 1
	// 查询证书
	CertManageFunction_CERTS_QUERY CertManageFunction = 2
	// 冻结证书
	CertManageFunction_CERTS_FREEZE CertManageFunction = 3
	// 解冻证书
	CertManageFunction_CERTS_UNFREEZE CertManageFunction = 4
	// 吊销证书
	CertManageFunction_CERTS_REVOKE CertManageFunction = 5
	// 添加一个证书别名,任意
	CertManageFunction_CERT_ALIAS_ADD CertManageFunction = 6
	// 更新一个证书别名,self
	CertManageFunction_CERT_ALIAS_UPDATE CertManageFunction = 7
	// 删除证书别名,admin
	CertManageFunction_CERTS_ALIAS_DELETE CertManageFunction = 8
	// 查询证书别名,admin
	CertManageFunction_CERTS_ALIAS_QUERY CertManageFunction = 9
)

func (CertManageFunction) EnumDescriptor

func (CertManageFunction) EnumDescriptor() ([]byte, []int)

func (CertManageFunction) String

func (x CertManageFunction) String() string

type ChainConfig

type ChainConfig struct {
	// 链ID
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 版本
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// 参与者类型
	AuthType string `protobuf:"bytes,3,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// 配置序号
	Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// 加密算法相关配置
	Crypto *CryptoConfig `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"`
	// 区块相关配置
	Block *BlockConfig `protobuf:"bytes,6,opt,name=block,proto3" json:"block,omitempty"`
	// 核心模块相关配置
	Core *CoreConfig `protobuf:"bytes,7,opt,name=core,proto3" json:"core,omitempty"`
	// 共识相关配置
	Consensus *ConsensusConfig `protobuf:"bytes,8,opt,name=consensus,proto3" json:"consensus,omitempty"`
	// 可信根相关配置
	// 对于联盟成员,联盟初始成员的根信息;公链无需配置
	// Key: node_id; value: address, node public key / CA certificate
	TrustRoots        []*TrustRootConfig        `protobuf:"bytes,9,rep,name=trust_roots,json=trustRoots,proto3" json:"trust_roots,omitempty"`
	TrustParticipants []*TrustParticipantConfig `protobuf:"bytes,10,rep,name=trust_participants,json=trustParticipants,proto3" json:"trust_participants,omitempty"`
	// 权限相关配置
	ResourcePolicies []*ResourcePolicy `protobuf:"bytes,11,rep,name=resource_policies,json=resourcePolicies,proto3" json:"resource_policies,omitempty"`
	Contract         *ContractConfig   `protobuf:"bytes,12,opt,name=contract,proto3" json:"contract,omitempty"`
	// 快照模块相关配置
	Snapshot *SnapshotConfig `protobuf:"bytes,13,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// 调度器模块相关配置
	Scheduler *SchedulerConfig `protobuf:"bytes,14,opt,name=scheduler,proto3" json:"scheduler,omitempty"`
	// tx sim 上下文模块相关配置
	Context *ContextConfig `protobuf:"bytes,15,opt,name=context,proto3" json:"context,omitempty"`
	// 出于权限控制目的而禁用的本地合约列表
	DisabledSystemContracts []string `` /* 133-byte string literal not displayed */
	// GAS 账户配置
	AccountConfig *GasAccountConfig `protobuf:"bytes,17,opt,name=account_config,json=accountConfig,proto3" json:"account_config,omitempty"`
	// 智能合约虚拟机配置
	SCE *SCE `protobuf:"bytes,18,opt,name=SCE,proto3" json:"SCE,omitempty"`
}

链配置

func (*ChainConfig) Descriptor

func (*ChainConfig) Descriptor() ([]byte, []int)

func (*ChainConfig) GetAccountConfig

func (m *ChainConfig) GetAccountConfig() *GasAccountConfig

func (*ChainConfig) GetAuthType

func (m *ChainConfig) GetAuthType() string

func (*ChainConfig) GetBlock

func (m *ChainConfig) GetBlock() *BlockConfig

func (*ChainConfig) GetBlockVersion

func (c *ChainConfig) GetBlockVersion() uint32

GetBlockVersion get uint32 block version from ChainConfig

func (*ChainConfig) GetChainId

func (m *ChainConfig) GetChainId() string

func (*ChainConfig) GetConsensus

func (m *ChainConfig) GetConsensus() *ConsensusConfig

func (*ChainConfig) GetContext

func (m *ChainConfig) GetContext() *ContextConfig

func (*ChainConfig) GetContract

func (m *ChainConfig) GetContract() *ContractConfig

func (*ChainConfig) GetCore

func (m *ChainConfig) GetCore() *CoreConfig

func (*ChainConfig) GetCrypto

func (m *ChainConfig) GetCrypto() *CryptoConfig

func (*ChainConfig) GetDisabledSystemContracts

func (m *ChainConfig) GetDisabledSystemContracts() []string

func (*ChainConfig) GetNonce

func (m *ChainConfig) GetNonce() uint64

func (*ChainConfig) GetResourcePolicies

func (m *ChainConfig) GetResourcePolicies() []*ResourcePolicy

func (*ChainConfig) GetSCE

func (m *ChainConfig) GetSCE() *SCE

func (*ChainConfig) GetScheduler

func (m *ChainConfig) GetScheduler() *SchedulerConfig

func (*ChainConfig) GetSnapshot

func (m *ChainConfig) GetSnapshot() *SnapshotConfig

func (*ChainConfig) GetTrustParticipants

func (m *ChainConfig) GetTrustParticipants() []*TrustParticipantConfig

func (*ChainConfig) GetTrustRoots

func (m *ChainConfig) GetTrustRoots() []*TrustRootConfig

func (*ChainConfig) GetVersion

func (m *ChainConfig) GetVersion() string

func (*ChainConfig) Marshal

func (m *ChainConfig) Marshal() (dAtA []byte, err error)

func (*ChainConfig) MarshalTo

func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)

func (*ChainConfig) MarshalToSizedBuffer

func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainConfig) ProtoMessage

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) Reset

func (m *ChainConfig) Reset()

func (*ChainConfig) Size

func (m *ChainConfig) Size() (n int)

func (*ChainConfig) String

func (m *ChainConfig) String() string

func (*ChainConfig) Unmarshal

func (m *ChainConfig) Unmarshal(dAtA []byte) error

func (*ChainConfig) XXX_DiscardUnknown

func (m *ChainConfig) XXX_DiscardUnknown()

func (*ChainConfig) XXX_Marshal

func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainConfig) XXX_Merge

func (m *ChainConfig) XXX_Merge(src proto.Message)

func (*ChainConfig) XXX_Size

func (m *ChainConfig) XXX_Size() int

func (*ChainConfig) XXX_Unmarshal

func (m *ChainConfig) XXX_Unmarshal(b []byte) error

type ChainConfigFunction

type ChainConfigFunction int32

链配置合约的方法

const (
	// get chain configuration
	ChainConfigFunction_GET_CHAIN_CONFIG ChainConfigFunction = 0
	// 获取最新的配置块
	ChainConfigFunction_GET_CHAIN_CONFIG_AT ChainConfigFunction = 1
	// 更新核心
	ChainConfigFunction_CORE_UPDATE ChainConfigFunction = 2
	// 更新区块
	ChainConfigFunction_BLOCK_UPDATE ChainConfigFunction = 3
	// 添加可信证书(org_id 和 root)
	ChainConfigFunction_TRUST_ROOT_ADD ChainConfigFunction = 4
	// [self] 修改个人自己的信任根证书
	// [org_id必须存在于原trust_roots中,并且新的根证书必须与其他证书不同]
	ChainConfigFunction_TRUST_ROOT_UPDATE ChainConfigFunction = 5
	// 删除受信任的根证书
	// [org_ID应该在trust_nodes中的节点需要被删除]
	ChainConfigFunction_TRUST_ROOT_DELETE ChainConfigFunction = 6
	// 组织添加节点地址
	// org_id必须已经存在于节点中,可以批量添加地址
	// 参数是地址。单个地址用”,“分隔
	// ip+port和peerid不能重复
	// 不推荐使用,替换为 NODE_ID_ADD
	ChainConfigFunction_NODE_ADDRESS_ADD ChainConfigFunction = 7
	// [self]组织更新地址
	// [org_id和address必须已经存在于节点中,new_address为新地址。 ip+port 和 peerId 不能重复]
	// 已弃用,替换为 NODE_ID_UPDATE
	ChainConfigFunction_NODE_ADDRESS_UPDATE ChainConfigFunction = 8
	// 组织删除节点地址 [org_id 和地址必须已经存在于节点中]
	// 不推荐使用,替换为 NODE_ID_DELETE
	ChainConfigFunction_NODE_ADDRESS_DELETE ChainConfigFunction = 9
	// organization add node address in batches
	// [org_id在nodes不存在,批量添加地址,参数为node_ids,单地址用逗号","隔开。nodeId不能重复]
	ChainConfigFunction_NODE_ORGANIZATION_ADD ChainConfigFunction = 10
	// 组织更新org_id必须已经存在于节点中,参数为addresses,单个地址用","分隔,ip+port和peerid不能重复
	ChainConfigFunction_NODE_ORGANIZATION_UPDATE ChainConfigFunction = 11
	// 组织删除,org_id 必须已经存在于节点中
	ChainConfigFunction_NODE_ORGANIZATION_DELETE ChainConfigFunction = 12
	// 添加共识参数,key不在 ext_config中退出
	ChainConfigFunction_CONSENSUS_EXTEND_ADD ChainConfigFunction = 13
	// 更新 onsensus 参数,ext_config 中的键退出
	ChainConfigFunction_CONSENSUS_EXTEND_UPDATE ChainConfigFunction = 14
	// 删除 onsensus 参数,在 ext_config 中键退出
	ChainConfigFunction_CONSENSUS_EXTEND_DELETE ChainConfigFunction = 15
	// 添加权限
	ChainConfigFunction_PERMISSION_ADD ChainConfigFunction = 16
	// 更新权限
	ChainConfigFunction_PERMISSION_UPDATE ChainConfigFunction = 17
	// 删除权限
	ChainConfigFunction_PERMISSION_DELETE ChainConfigFunction = 18
	// 组织添加 node_id
	// org_id必须已经存在于节点中,可以批量添加node_id
	// 参数是node_ids。 单个 node_id 用“,”分隔
	// node_id 不能重复
	ChainConfigFunction_NODE_ID_ADD ChainConfigFunction = 19
	// [self]组织更新一个node_ids
	// [org_id和node_ids必须已经存在于节点中,new_node_id就是新的node_id。 node_id 不能重复]
	ChainConfigFunction_NODE_ID_UPDATE ChainConfigFunction = 20
	// 组织删除 node_id
	// [org_id 和 node_id 必须已经存在于节点中]
	ChainConfigFunction_NODE_ID_DELETE ChainConfigFunction = 21
	// 添加受信任的参与者(org_id signcert 角色 node_id)
	ChainConfigFunction_TRUST_PARTICIPANT_ADD ChainConfigFunction = 22
	// [self] 修改个人自己的信任参与者
	// [node_id 必须存在于原信任参与者中,并且新信任参与者必须与其他信任参与者不同]
	ChainConfigFunction_TRUST_PARTICIPANT_UPDATE ChainConfigFunction = 23
	// 删除信任参与者证书
	// [node_id应该在trust_nodes中需要删除的节点]
	ChainConfigFunction_TRUST_PARTICIPANT_DELETE ChainConfigFunction = 24
	// 更改地址类型
	ChainConfigFunction_ALTER_ADDR_TYPE ChainConfigFunction = 25
	// 能够或启用气体计算
	ChainConfigFunction_ENABLE_OR_DISABLE_GAS ChainConfigFunction = 26
	// 设置调用基础 gas
	ChainConfigFunction_SET_INVOKE_BASE_GAS ChainConfigFunction = 27
	// 设置客管理者 admin
	ChainConfigFunction_SET_ACCOUNT_MANAGER_ADMIN ChainConfigFunction = 28
	// 权限列表
	ChainConfigFunction_PERMISSION_LIST ChainConfigFunction = 29
	// 更新版本
	ChainConfigFunction_UPDATE_VERSION ChainConfigFunction = 30
)

func (ChainConfigFunction) EnumDescriptor

func (ChainConfigFunction) EnumDescriptor() ([]byte, []int)

func (ChainConfigFunction) String

func (x ChainConfigFunction) String() string

type ChainInfo

type ChainInfo struct {
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 节点列表
	NodeList []*Node `protobuf:"bytes,2,rep,name=node_list,json=nodeList,proto3" json:"node_list,omitempty"`
}

区块链信息

func (*ChainInfo) Descriptor

func (*ChainInfo) Descriptor() ([]byte, []int)

func (*ChainInfo) GetBlockHeight

func (m *ChainInfo) GetBlockHeight() uint64

func (*ChainInfo) GetNodeList

func (m *ChainInfo) GetNodeList() []*Node

func (*ChainInfo) Marshal

func (m *ChainInfo) Marshal() (dAtA []byte, err error)

func (*ChainInfo) MarshalTo

func (m *ChainInfo) MarshalTo(dAtA []byte) (int, error)

func (*ChainInfo) MarshalToSizedBuffer

func (m *ChainInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainInfo) ProtoMessage

func (*ChainInfo) ProtoMessage()

func (*ChainInfo) Reset

func (m *ChainInfo) Reset()

func (*ChainInfo) Size

func (m *ChainInfo) Size() (n int)

func (*ChainInfo) String

func (m *ChainInfo) String() string

func (*ChainInfo) Unmarshal

func (m *ChainInfo) Unmarshal(dAtA []byte) error

func (*ChainInfo) XXX_DiscardUnknown

func (m *ChainInfo) XXX_DiscardUnknown()

func (*ChainInfo) XXX_Marshal

func (m *ChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainInfo) XXX_Merge

func (m *ChainInfo) XXX_Merge(src proto.Message)

func (*ChainInfo) XXX_Size

func (m *ChainInfo) XXX_Size() int

func (*ChainInfo) XXX_Unmarshal

func (m *ChainInfo) XXX_Unmarshal(b []byte) error

type ChainList

type ChainList struct {
	ChainIdList []string `protobuf:"bytes,1,rep,name=chain_id_list,json=chainIdList,proto3" json:"chain_id_list,omitempty"`
}

区块链列表

func (*ChainList) Descriptor

func (*ChainList) Descriptor() ([]byte, []int)

func (*ChainList) GetChainIdList

func (m *ChainList) GetChainIdList() []string

func (*ChainList) Marshal

func (m *ChainList) Marshal() (dAtA []byte, err error)

func (*ChainList) MarshalTo

func (m *ChainList) MarshalTo(dAtA []byte) (int, error)

func (*ChainList) MarshalToSizedBuffer

func (m *ChainList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainList) ProtoMessage

func (*ChainList) ProtoMessage()

func (*ChainList) Reset

func (m *ChainList) Reset()

func (*ChainList) Size

func (m *ChainList) Size() (n int)

func (*ChainList) String

func (m *ChainList) String() string

func (*ChainList) Unmarshal

func (m *ChainList) Unmarshal(dAtA []byte) error

func (*ChainList) XXX_DiscardUnknown

func (m *ChainList) XXX_DiscardUnknown()

func (*ChainList) XXX_Marshal

func (m *ChainList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainList) XXX_Merge

func (m *ChainList) XXX_Merge(src proto.Message)

func (*ChainList) XXX_Size

func (m *ChainList) XXX_Size() int

func (*ChainList) XXX_Unmarshal

func (m *ChainList) XXX_Unmarshal(b []byte) error

type ChainQueryFunction

type ChainQueryFunction int32

链查询合约方法

const (
	// 通过 transactionId 获取块
	ChainQueryFunction_GET_BLOCK_BY_TX_ID ChainQueryFunction = 0
	// 通过 transactionId 获取交易
	ChainQueryFunction_GET_TX_BY_TX_ID ChainQueryFunction = 1
	// 逐块获取高度
	ChainQueryFunction_GET_BLOCK_BY_HEIGHT ChainQueryFunction = 2
	// 获取链信息,包括当前高度和共识节点列表
	ChainQueryFunction_GET_CHAIN_INFO ChainQueryFunction = 3
	// 获取最后一个配置块
	ChainQueryFunction_GET_LAST_CONFIG_BLOCK ChainQueryFunction = 4
	// 逐块获取哈希
	ChainQueryFunction_GET_BLOCK_BY_HASH ChainQueryFunction = 5
	// 获取节点知道的链列表
	ChainQueryFunction_GET_NODE_CHAIN_LIST ChainQueryFunction = 6
	// 获取治理信息
	ChainQueryFunction_GET_GOVERNANCE_CONTRACT ChainQueryFunction = 7
	// 按高度获取读/写集信息
	ChainQueryFunction_GET_BLOCK_WITH_TXRWSETS_BY_HEIGHT ChainQueryFunction = 8
	// 按高度获取读/写集信息
	ChainQueryFunction_GET_BLOCK_WITH_TXRWSETS_BY_HASH ChainQueryFunction = 9
	// 获取最后一个块
	ChainQueryFunction_GET_LAST_BLOCK ChainQueryFunction = 10
	// 按高度获得完整块
	ChainQueryFunction_GET_FULL_BLOCK_BY_HEIGHT ChainQueryFunction = 11
	// 通过 tx id 获取块高度
	ChainQueryFunction_GET_BLOCK_HEIGHT_BY_TX_ID ChainQueryFunction = 12
	// 通过哈希获取块高度
	ChainQueryFunction_GET_BLOCK_HEIGHT_BY_HASH ChainQueryFunction = 13
	// 按高度获取块头
	ChainQueryFunction_GET_BLOCK_HEADER_BY_HEIGHT ChainQueryFunction = 14
	// 获取存档块高度
	ChainQueryFunction_GET_ARCHIVED_BLOCK_HEIGHT ChainQueryFunction = 15
	// 获取所有合同信息列表
	ChainQueryFunction_GET_ALL_CONTRACTS ChainQueryFunction = 16
	// 通过 tx id 获取 merkle 路径
	ChainQueryFunction_GET_MERKLE_PATH_BY_TX_ID ChainQueryFunction = 17
)

func (ChainQueryFunction) EnumDescriptor

func (ChainQueryFunction) EnumDescriptor() ([]byte, []int)

func (ChainQueryFunction) String

func (x ChainQueryFunction) String() string

type CheckNewBlockChainConfigRequest

type CheckNewBlockChainConfigRequest struct {
}

请求检查新的块配置

func (*CheckNewBlockChainConfigRequest) Descriptor

func (*CheckNewBlockChainConfigRequest) Descriptor() ([]byte, []int)

func (*CheckNewBlockChainConfigRequest) Marshal

func (m *CheckNewBlockChainConfigRequest) Marshal() (dAtA []byte, err error)

func (*CheckNewBlockChainConfigRequest) MarshalTo

func (m *CheckNewBlockChainConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigRequest) MarshalToSizedBuffer

func (m *CheckNewBlockChainConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigRequest) ProtoMessage

func (*CheckNewBlockChainConfigRequest) ProtoMessage()

func (*CheckNewBlockChainConfigRequest) Reset

func (*CheckNewBlockChainConfigRequest) Size

func (m *CheckNewBlockChainConfigRequest) Size() (n int)

func (*CheckNewBlockChainConfigRequest) String

func (*CheckNewBlockChainConfigRequest) Unmarshal

func (m *CheckNewBlockChainConfigRequest) Unmarshal(dAtA []byte) error

func (*CheckNewBlockChainConfigRequest) XXX_DiscardUnknown

func (m *CheckNewBlockChainConfigRequest) XXX_DiscardUnknown()

func (*CheckNewBlockChainConfigRequest) XXX_Marshal

func (m *CheckNewBlockChainConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckNewBlockChainConfigRequest) XXX_Merge

func (m *CheckNewBlockChainConfigRequest) XXX_Merge(src proto.Message)

func (*CheckNewBlockChainConfigRequest) XXX_Size

func (m *CheckNewBlockChainConfigRequest) XXX_Size() int

func (*CheckNewBlockChainConfigRequest) XXX_Unmarshal

func (m *CheckNewBlockChainConfigRequest) XXX_Unmarshal(b []byte) error

type CheckNewBlockChainConfigResponse

type CheckNewBlockChainConfigResponse struct {
	// 0 success
	// 1 fail
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

检查新块配置的响应

func (*CheckNewBlockChainConfigResponse) Descriptor

func (*CheckNewBlockChainConfigResponse) Descriptor() ([]byte, []int)

func (*CheckNewBlockChainConfigResponse) GetCode

func (*CheckNewBlockChainConfigResponse) GetMessage

func (m *CheckNewBlockChainConfigResponse) GetMessage() string

func (*CheckNewBlockChainConfigResponse) Marshal

func (m *CheckNewBlockChainConfigResponse) Marshal() (dAtA []byte, err error)

func (*CheckNewBlockChainConfigResponse) MarshalTo

func (m *CheckNewBlockChainConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigResponse) MarshalToSizedBuffer

func (m *CheckNewBlockChainConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigResponse) ProtoMessage

func (*CheckNewBlockChainConfigResponse) ProtoMessage()

func (*CheckNewBlockChainConfigResponse) Reset

func (*CheckNewBlockChainConfigResponse) Size

func (m *CheckNewBlockChainConfigResponse) Size() (n int)

func (*CheckNewBlockChainConfigResponse) String

func (*CheckNewBlockChainConfigResponse) Unmarshal

func (m *CheckNewBlockChainConfigResponse) Unmarshal(dAtA []byte) error

func (*CheckNewBlockChainConfigResponse) XXX_DiscardUnknown

func (m *CheckNewBlockChainConfigResponse) XXX_DiscardUnknown()

func (*CheckNewBlockChainConfigResponse) XXX_Marshal

func (m *CheckNewBlockChainConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckNewBlockChainConfigResponse) XXX_Merge

func (*CheckNewBlockChainConfigResponse) XXX_Size

func (m *CheckNewBlockChainConfigResponse) XXX_Size() int

func (*CheckNewBlockChainConfigResponse) XXX_Unmarshal

func (m *CheckNewBlockChainConfigResponse) XXX_Unmarshal(b []byte) error

type ConfigKeyValue

type ConfigKeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

用于配置的字符串键值对

func (*ConfigKeyValue) Descriptor

func (*ConfigKeyValue) Descriptor() ([]byte, []int)

func (*ConfigKeyValue) GetKey

func (m *ConfigKeyValue) GetKey() string

func (*ConfigKeyValue) GetValue

func (m *ConfigKeyValue) GetValue() string

func (*ConfigKeyValue) Marshal

func (m *ConfigKeyValue) Marshal() (dAtA []byte, err error)

func (*ConfigKeyValue) MarshalTo

func (m *ConfigKeyValue) MarshalTo(dAtA []byte) (int, error)

func (*ConfigKeyValue) MarshalToSizedBuffer

func (m *ConfigKeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigKeyValue) ProtoMessage

func (*ConfigKeyValue) ProtoMessage()

func (*ConfigKeyValue) Reset

func (m *ConfigKeyValue) Reset()

func (*ConfigKeyValue) Size

func (m *ConfigKeyValue) Size() (n int)

func (*ConfigKeyValue) String

func (m *ConfigKeyValue) String() string

func (*ConfigKeyValue) Unmarshal

func (m *ConfigKeyValue) Unmarshal(dAtA []byte) error

func (*ConfigKeyValue) XXX_DiscardUnknown

func (m *ConfigKeyValue) XXX_DiscardUnknown()

func (*ConfigKeyValue) XXX_Marshal

func (m *ConfigKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigKeyValue) XXX_Merge

func (m *ConfigKeyValue) XXX_Merge(src proto.Message)

func (*ConfigKeyValue) XXX_Size

func (m *ConfigKeyValue) XXX_Size() int

func (*ConfigKeyValue) XXX_Unmarshal

func (m *ConfigKeyValue) XXX_Unmarshal(b []byte) error

type ConsensusConfig

type ConsensusConfig struct {
	// 共识类型
	Type ConsensusType `protobuf:"varint,1,opt,name=type,proto3,enum=proto_go.ConsensusType" json:"type,omitempty"`
	// 节点组织列表
	Nodes []*OrganizationConfig `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// 扩展领域,记录难度、奖励等共识算法配置
	ExtendConfig []*ConfigKeyValue `protobuf:"bytes,3,rep,name=extend_config,json=extendConfig,proto3" json:"extend_config,omitempty"`
	// 初始化 DPOS 的配置
	DposConfig []*ConfigKeyValue `protobuf:"bytes,4,rep,name=dpos_config,json=dposConfig,proto3" json:"dpos_config,omitempty"`
}

共识配置

func (*ConsensusConfig) Descriptor

func (*ConsensusConfig) Descriptor() ([]byte, []int)

func (*ConsensusConfig) GetDposConfig

func (m *ConsensusConfig) GetDposConfig() []*ConfigKeyValue

func (*ConsensusConfig) GetExtendConfig

func (m *ConsensusConfig) GetExtendConfig() []*ConfigKeyValue

func (*ConsensusConfig) GetNodes

func (m *ConsensusConfig) GetNodes() []*OrganizationConfig

func (*ConsensusConfig) GetType

func (m *ConsensusConfig) GetType() ConsensusType

func (*ConsensusConfig) Marshal

func (m *ConsensusConfig) Marshal() (dAtA []byte, err error)

func (*ConsensusConfig) MarshalTo

func (m *ConsensusConfig) MarshalTo(dAtA []byte) (int, error)

func (*ConsensusConfig) MarshalToSizedBuffer

func (m *ConsensusConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusConfig) ProtoMessage

func (*ConsensusConfig) ProtoMessage()

func (*ConsensusConfig) Reset

func (m *ConsensusConfig) Reset()

func (*ConsensusConfig) Size

func (m *ConsensusConfig) Size() (n int)

func (*ConsensusConfig) String

func (m *ConsensusConfig) String() string

func (*ConsensusConfig) Unmarshal

func (m *ConsensusConfig) Unmarshal(dAtA []byte) error

func (*ConsensusConfig) XXX_DiscardUnknown

func (m *ConsensusConfig) XXX_DiscardUnknown()

func (*ConsensusConfig) XXX_Marshal

func (m *ConsensusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConsensusConfig) XXX_Merge

func (m *ConsensusConfig) XXX_Merge(src proto.Message)

func (*ConsensusConfig) XXX_Size

func (m *ConsensusConfig) XXX_Size() int

func (*ConsensusConfig) XXX_Unmarshal

func (m *ConsensusConfig) XXX_Unmarshal(b []byte) error

type ConsensusTurboConfig

type ConsensusTurboConfig struct {
	// 共识消息加速的切换
	ConsensusMessageTurbo bool `` /* 127-byte string literal not displayed */
	// 通过 txIds 从 txpool 获取 tx 的重试时间
	RetryTime uint64 `protobuf:"varint,2,opt,name=retry_time,json=retryTime,proto3" json:"retry_time,omitempty"`
	// 通过 txIds from txpool(ms) 重试获取 tx 的间隔
	RetryInterval uint64 `protobuf:"varint,3,opt,name=retry_interval,json=retryInterval,proto3" json:"retry_interval,omitempty"`
}

共识消息涡轮配置

func (*ConsensusTurboConfig) Descriptor

func (*ConsensusTurboConfig) Descriptor() ([]byte, []int)

func (*ConsensusTurboConfig) GetConsensusMessageTurbo

func (m *ConsensusTurboConfig) GetConsensusMessageTurbo() bool

func (*ConsensusTurboConfig) GetRetryInterval

func (m *ConsensusTurboConfig) GetRetryInterval() uint64

func (*ConsensusTurboConfig) GetRetryTime

func (m *ConsensusTurboConfig) GetRetryTime() uint64

func (*ConsensusTurboConfig) Marshal

func (m *ConsensusTurboConfig) Marshal() (dAtA []byte, err error)

func (*ConsensusTurboConfig) MarshalTo

func (m *ConsensusTurboConfig) MarshalTo(dAtA []byte) (int, error)

func (*ConsensusTurboConfig) MarshalToSizedBuffer

func (m *ConsensusTurboConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusTurboConfig) ProtoMessage

func (*ConsensusTurboConfig) ProtoMessage()

func (*ConsensusTurboConfig) Reset

func (m *ConsensusTurboConfig) Reset()

func (*ConsensusTurboConfig) Size

func (m *ConsensusTurboConfig) Size() (n int)

func (*ConsensusTurboConfig) String

func (m *ConsensusTurboConfig) String() string

func (*ConsensusTurboConfig) Unmarshal

func (m *ConsensusTurboConfig) Unmarshal(dAtA []byte) error

func (*ConsensusTurboConfig) XXX_DiscardUnknown

func (m *ConsensusTurboConfig) XXX_DiscardUnknown()

func (*ConsensusTurboConfig) XXX_Marshal

func (m *ConsensusTurboConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConsensusTurboConfig) XXX_Merge

func (m *ConsensusTurboConfig) XXX_Merge(src proto.Message)

func (*ConsensusTurboConfig) XXX_Size

func (m *ConsensusTurboConfig) XXX_Size() int

func (*ConsensusTurboConfig) XXX_Unmarshal

func (m *ConsensusTurboConfig) XXX_Unmarshal(b []byte) error

type ConsensusType

type ConsensusType int32

共识算法类型

const (
	ConsensusType_CT_SOLO ConsensusType = 0
	ConsensusType_CT_RAFT ConsensusType = 1
	ConsensusType_CT_DPOS ConsensusType = 2
)

func (ConsensusType) EnumDescriptor

func (ConsensusType) EnumDescriptor() ([]byte, []int)

func (ConsensusType) String

func (x ConsensusType) String() string

type ContextConfig

type ContextConfig struct {
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

TxSimContext 配置

func (*ContextConfig) Descriptor

func (*ContextConfig) Descriptor() ([]byte, []int)

func (*ContextConfig) GetEnableEvidence

func (m *ContextConfig) GetEnableEvidence() bool

func (*ContextConfig) Marshal

func (m *ContextConfig) Marshal() (dAtA []byte, err error)

func (*ContextConfig) MarshalTo

func (m *ContextConfig) MarshalTo(dAtA []byte) (int, error)

func (*ContextConfig) MarshalToSizedBuffer

func (m *ContextConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContextConfig) ProtoMessage

func (*ContextConfig) ProtoMessage()

func (*ContextConfig) Reset

func (m *ContextConfig) Reset()

func (*ContextConfig) Size

func (m *ContextConfig) Size() (n int)

func (*ContextConfig) String

func (m *ContextConfig) String() string

func (*ContextConfig) Unmarshal

func (m *ContextConfig) Unmarshal(dAtA []byte) error

func (*ContextConfig) XXX_DiscardUnknown

func (m *ContextConfig) XXX_DiscardUnknown()

func (*ContextConfig) XXX_Marshal

func (m *ContextConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContextConfig) XXX_Merge

func (m *ContextConfig) XXX_Merge(src proto.Message)

func (*ContextConfig) XXX_Size

func (m *ContextConfig) XXX_Size() int

func (*ContextConfig) XXX_Unmarshal

func (m *ContextConfig) XXX_Unmarshal(b []byte) error

type Contract

type Contract struct {
	// 合约名称
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 合约版本
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// 合约执行引擎类型
	SCET SCET `protobuf:"varint,3,opt,name=SCET,proto3,enum=proto_go.SCET" json:"SCET,omitempty"`
	// 合约状态
	Status ContractStatus `protobuf:"varint,4,opt,name=status,proto3,enum=proto_go.ContractStatus" json:"status,omitempty"`
	// 合约创建者
	Creator *ParticipantFull `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"`
	// 合约地址
	Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
}

func (*Contract) Descriptor

func (*Contract) Descriptor() ([]byte, []int)

func (*Contract) GetAddress

func (m *Contract) GetAddress() string

func (*Contract) GetCreator

func (m *Contract) GetCreator() *ParticipantFull

func (*Contract) GetName

func (m *Contract) GetName() string

func (*Contract) GetSCET

func (m *Contract) GetSCET() SCET

func (*Contract) GetStatus

func (m *Contract) GetStatus() ContractStatus

func (*Contract) GetVersion

func (m *Contract) GetVersion() string

func (*Contract) Marshal

func (m *Contract) Marshal() (dAtA []byte, err error)

func (*Contract) MarshalTo

func (m *Contract) MarshalTo(dAtA []byte) (int, error)

func (*Contract) MarshalToSizedBuffer

func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size

func (m *Contract) Size() (n int)

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal

func (m *Contract) Unmarshal(dAtA []byte) error

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Contract) XXX_Merge

func (m *Contract) XXX_Merge(src proto.Message)

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

func (m *Contract) XXX_Unmarshal(b []byte) error

type ContractAccess

type ContractAccess struct {
}

func (*ContractAccess) Descriptor

func (*ContractAccess) Descriptor() ([]byte, []int)

func (*ContractAccess) Marshal

func (m *ContractAccess) Marshal() (dAtA []byte, err error)

func (*ContractAccess) MarshalTo

func (m *ContractAccess) MarshalTo(dAtA []byte) (int, error)

func (*ContractAccess) MarshalToSizedBuffer

func (m *ContractAccess) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractAccess) ProtoMessage

func (*ContractAccess) ProtoMessage()

func (*ContractAccess) Reset

func (m *ContractAccess) Reset()

func (*ContractAccess) Size

func (m *ContractAccess) Size() (n int)

func (*ContractAccess) String

func (m *ContractAccess) String() string

func (*ContractAccess) Unmarshal

func (m *ContractAccess) Unmarshal(dAtA []byte) error

func (*ContractAccess) XXX_DiscardUnknown

func (m *ContractAccess) XXX_DiscardUnknown()

func (*ContractAccess) XXX_Marshal

func (m *ContractAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractAccess) XXX_Merge

func (m *ContractAccess) XXX_Merge(src proto.Message)

func (*ContractAccess) XXX_Size

func (m *ContractAccess) XXX_Size() int

func (*ContractAccess) XXX_Unmarshal

func (m *ContractAccess) XXX_Unmarshal(b []byte) error

type ContractAccess_Parameter

type ContractAccess_Parameter int32
const (
	ContractAccess_SYSTEM_CONTRACT_NAME ContractAccess_Parameter = 0
)

func (ContractAccess_Parameter) EnumDescriptor

func (ContractAccess_Parameter) EnumDescriptor() ([]byte, []int)

func (ContractAccess_Parameter) String

func (x ContractAccess_Parameter) String() string

type ContractConfig

type ContractConfig struct {
	EnableSqlSupport bool `protobuf:"varint,1,opt,name=enable_sql_support,json=enableSqlSupport,proto3" json:"enable_sql_support,omitempty"`
	// 出于权限控制目的而禁用的本地合约列表
	DisabledSystemContracts []string `` /* 132-byte string literal not displayed */
}

合约配置

func (*ContractConfig) Descriptor

func (*ContractConfig) Descriptor() ([]byte, []int)

func (*ContractConfig) GetDisabledSystemContracts

func (m *ContractConfig) GetDisabledSystemContracts() []string

func (*ContractConfig) GetEnableSqlSupport

func (m *ContractConfig) GetEnableSqlSupport() bool

func (*ContractConfig) Marshal

func (m *ContractConfig) Marshal() (dAtA []byte, err error)

func (*ContractConfig) MarshalTo

func (m *ContractConfig) MarshalTo(dAtA []byte) (int, error)

func (*ContractConfig) MarshalToSizedBuffer

func (m *ContractConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractConfig) ProtoMessage

func (*ContractConfig) ProtoMessage()

func (*ContractConfig) Reset

func (m *ContractConfig) Reset()

func (*ContractConfig) Size

func (m *ContractConfig) Size() (n int)

func (*ContractConfig) String

func (m *ContractConfig) String() string

func (*ContractConfig) Unmarshal

func (m *ContractConfig) Unmarshal(dAtA []byte) error

func (*ContractConfig) XXX_DiscardUnknown

func (m *ContractConfig) XXX_DiscardUnknown()

func (*ContractConfig) XXX_Marshal

func (m *ContractConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractConfig) XXX_Merge

func (m *ContractConfig) XXX_Merge(src proto.Message)

func (*ContractConfig) XXX_Size

func (m *ContractConfig) XXX_Size() int

func (*ContractConfig) XXX_Unmarshal

func (m *ContractConfig) XXX_Unmarshal(b []byte) error

type ContractEvent

type ContractEvent struct {
	Topic           string   `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	TxId            string   `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	ContractName    string   `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	ContractVersion string   `protobuf:"bytes,4,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	EventData       []string `protobuf:"bytes,5,rep,name=event_data,json=eventData,proto3" json:"event_data,omitempty"`
}

区块链中保存的合约事件

func (*ContractEvent) Descriptor

func (*ContractEvent) Descriptor() ([]byte, []int)

func (*ContractEvent) GetContractName

func (m *ContractEvent) GetContractName() string

func (*ContractEvent) GetContractVersion

func (m *ContractEvent) GetContractVersion() string

func (*ContractEvent) GetEventData

func (m *ContractEvent) GetEventData() []string

func (*ContractEvent) GetTopic

func (m *ContractEvent) GetTopic() string

func (*ContractEvent) GetTxId

func (m *ContractEvent) GetTxId() string

func (*ContractEvent) Marshal

func (m *ContractEvent) Marshal() (dAtA []byte, err error)

func (*ContractEvent) MarshalTo

func (m *ContractEvent) MarshalTo(dAtA []byte) (int, error)

func (*ContractEvent) MarshalToSizedBuffer

func (m *ContractEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractEvent) ProtoMessage

func (*ContractEvent) ProtoMessage()

func (*ContractEvent) Reset

func (m *ContractEvent) Reset()

func (*ContractEvent) Size

func (m *ContractEvent) Size() (n int)

func (*ContractEvent) String

func (m *ContractEvent) String() string

func (*ContractEvent) Unmarshal

func (m *ContractEvent) Unmarshal(dAtA []byte) error

func (*ContractEvent) XXX_DiscardUnknown

func (m *ContractEvent) XXX_DiscardUnknown()

func (*ContractEvent) XXX_Marshal

func (m *ContractEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractEvent) XXX_Merge

func (m *ContractEvent) XXX_Merge(src proto.Message)

func (*ContractEvent) XXX_Size

func (m *ContractEvent) XXX_Size() int

func (*ContractEvent) XXX_Unmarshal

func (m *ContractEvent) XXX_Unmarshal(b []byte) error

type ContractEventInfo

type ContractEventInfo struct {
	BlockHeight     uint64   `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	ChainId         string   `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Topic           string   `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	TxId            string   `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	EventIndex      uint32   `protobuf:"varint,5,opt,name=event_index,json=eventIndex,proto3" json:"event_index,omitempty"`
	ContractName    string   `protobuf:"bytes,6,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	ContractVersion string   `protobuf:"bytes,7,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"`
	EventData       []string `protobuf:"bytes,8,rep,name=event_data,json=eventData,proto3" json:"event_data,omitempty"`
}

发布给用户的合约事件

func (*ContractEventInfo) Descriptor

func (*ContractEventInfo) Descriptor() ([]byte, []int)

func (*ContractEventInfo) GetBlockHeight

func (m *ContractEventInfo) GetBlockHeight() uint64

func (*ContractEventInfo) GetChainId

func (m *ContractEventInfo) GetChainId() string

func (*ContractEventInfo) GetContractName

func (m *ContractEventInfo) GetContractName() string

func (*ContractEventInfo) GetContractVersion

func (m *ContractEventInfo) GetContractVersion() string

func (*ContractEventInfo) GetEventData

func (m *ContractEventInfo) GetEventData() []string

func (*ContractEventInfo) GetEventIndex

func (m *ContractEventInfo) GetEventIndex() uint32

func (*ContractEventInfo) GetTopic

func (m *ContractEventInfo) GetTopic() string

func (*ContractEventInfo) GetTxId

func (m *ContractEventInfo) GetTxId() string

func (*ContractEventInfo) Marshal

func (m *ContractEventInfo) Marshal() (dAtA []byte, err error)

func (*ContractEventInfo) MarshalTo

func (m *ContractEventInfo) MarshalTo(dAtA []byte) (int, error)

func (*ContractEventInfo) MarshalToSizedBuffer

func (m *ContractEventInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractEventInfo) ProtoMessage

func (*ContractEventInfo) ProtoMessage()

func (*ContractEventInfo) Reset

func (m *ContractEventInfo) Reset()

func (*ContractEventInfo) Size

func (m *ContractEventInfo) Size() (n int)

func (*ContractEventInfo) String

func (m *ContractEventInfo) String() string

func (*ContractEventInfo) Unmarshal

func (m *ContractEventInfo) Unmarshal(dAtA []byte) error

func (*ContractEventInfo) XXX_DiscardUnknown

func (m *ContractEventInfo) XXX_DiscardUnknown()

func (*ContractEventInfo) XXX_Marshal

func (m *ContractEventInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractEventInfo) XXX_Merge

func (m *ContractEventInfo) XXX_Merge(src proto.Message)

func (*ContractEventInfo) XXX_Size

func (m *ContractEventInfo) XXX_Size() int

func (*ContractEventInfo) XXX_Unmarshal

func (m *ContractEventInfo) XXX_Unmarshal(b []byte) error

type ContractEventInfoList

type ContractEventInfoList struct {
	ContractEvents []*ContractEventInfo `protobuf:"bytes,1,rep,name=contract_events,json=contractEvents,proto3" json:"contract_events,omitempty"`
}

发布给用户的合约事件

func (*ContractEventInfoList) Descriptor

func (*ContractEventInfoList) Descriptor() ([]byte, []int)

func (*ContractEventInfoList) GetContractEvents

func (m *ContractEventInfoList) GetContractEvents() []*ContractEventInfo

func (*ContractEventInfoList) Marshal

func (m *ContractEventInfoList) Marshal() (dAtA []byte, err error)

func (*ContractEventInfoList) MarshalTo

func (m *ContractEventInfoList) MarshalTo(dAtA []byte) (int, error)

func (*ContractEventInfoList) MarshalToSizedBuffer

func (m *ContractEventInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractEventInfoList) ProtoMessage

func (*ContractEventInfoList) ProtoMessage()

func (*ContractEventInfoList) Reset

func (m *ContractEventInfoList) Reset()

func (*ContractEventInfoList) Size

func (m *ContractEventInfoList) Size() (n int)

func (*ContractEventInfoList) String

func (m *ContractEventInfoList) String() string

func (*ContractEventInfoList) Unmarshal

func (m *ContractEventInfoList) Unmarshal(dAtA []byte) error

func (*ContractEventInfoList) XXX_DiscardUnknown

func (m *ContractEventInfoList) XXX_DiscardUnknown()

func (*ContractEventInfoList) XXX_Marshal

func (m *ContractEventInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractEventInfoList) XXX_Merge

func (m *ContractEventInfoList) XXX_Merge(src proto.Message)

func (*ContractEventInfoList) XXX_Size

func (m *ContractEventInfoList) XXX_Size() int

func (*ContractEventInfoList) XXX_Unmarshal

func (m *ContractEventInfoList) XXX_Unmarshal(b []byte) error

type ContractInfo

type ContractInfo struct {
	ContractTransactions []*ContractTransaction `protobuf:"bytes,1,rep,name=contract_transactions,json=contractTransactions,proto3" json:"contract_transactions,omitempty"`
}

func (*ContractInfo) Descriptor

func (*ContractInfo) Descriptor() ([]byte, []int)

func (*ContractInfo) GetContractTransactions

func (m *ContractInfo) GetContractTransactions() []*ContractTransaction

func (*ContractInfo) Marshal

func (m *ContractInfo) Marshal() (dAtA []byte, err error)

func (*ContractInfo) MarshalTo

func (m *ContractInfo) MarshalTo(dAtA []byte) (int, error)

func (*ContractInfo) MarshalToSizedBuffer

func (m *ContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractInfo) ProtoMessage

func (*ContractInfo) ProtoMessage()

func (*ContractInfo) Reset

func (m *ContractInfo) Reset()

func (*ContractInfo) Size

func (m *ContractInfo) Size() (n int)

func (*ContractInfo) String

func (m *ContractInfo) String() string

func (*ContractInfo) Unmarshal

func (m *ContractInfo) Unmarshal(dAtA []byte) error

func (*ContractInfo) XXX_DiscardUnknown

func (m *ContractInfo) XXX_DiscardUnknown()

func (*ContractInfo) XXX_Marshal

func (m *ContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractInfo) XXX_Merge

func (m *ContractInfo) XXX_Merge(src proto.Message)

func (*ContractInfo) XXX_Size

func (m *ContractInfo) XXX_Size() int

func (*ContractInfo) XXX_Unmarshal

func (m *ContractInfo) XXX_Unmarshal(b []byte) error

type ContractManageFunction

type ContractManageFunction int32

用户合约合约方法

const (
	// 初始化合约
	ContractManageFunction_INIT_CONTRACT ContractManageFunction = 0
	// 升级合约版本
	ContractManageFunction_UPGRADE_CONTRACT ContractManageFunction = 1
	// 冻结合约,暂时无法调用
	ContractManageFunction_FREEZE_CONTRACT ContractManageFunction = 2
	// 将合约解冻至正常状态
	ContractManageFunction_UNFREEZE_CONTRACT ContractManageFunction = 3
	// 撤销合同,不能永久调用
	ContractManageFunction_REVOKE_CONTRACT ContractManageFunction = 4
	// 授予对本地合约的访问权限
	ContractManageFunction_GRANT_CONTRACT_ACCESS ContractManageFunction = 5
	// 撤销对原生合约的访问权限
	ContractManageFunction_REVOKE_CONTRACT_ACCESS ContractManageFunction = 6
	// 验证是否有权访问某个本地合约
	ContractManageFunction_VERIFY_CONTRACT_ACCESS ContractManageFunction = 7
	// 初始新链制造者版本原生合约列表
	ContractManageFunction_INIT_NEW_NATIVE_CONTRACT ContractManageFunction = 8
)

func (ContractManageFunction) EnumDescriptor

func (ContractManageFunction) EnumDescriptor() ([]byte, []int)

func (ContractManageFunction) String

func (x ContractManageFunction) String() string

type ContractQueryFunction

type ContractQueryFunction int32

合同查询方法

const (
	// 获取合同信息
	ContractQueryFunction_GET_CONTRACT_INFO ContractQueryFunction = 0
	// 获取合约字节码
	ContractQueryFunction_GET_CONTRACT_BYTECODE ContractQueryFunction = 1
	// 获取所有已安装的合同
	ContractQueryFunction_GET_CONTRACT_LIST ContractQueryFunction = 2
	// 获取原生合约列表可以访问
	ContractQueryFunction_GET_DISABLED_CONTRACT_LIST ContractQueryFunction = 3
)

func (ContractQueryFunction) EnumDescriptor

func (ContractQueryFunction) EnumDescriptor() ([]byte, []int)

func (ContractQueryFunction) String

func (x ContractQueryFunction) String() string

type ContractResult

type ContractResult struct {
	// 用户合约定义返回码,0-ok,>0 用户定义错误码。 例如代币转账余额不足
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 用户合约定义结果
	Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// 用户合约定义结果消息
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// 当前合约使用的gas(包括合约调用)
	GasUsed uint64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	// 合约事件
	ContractEvent []*ContractEvent `protobuf:"bytes,5,rep,name=contract_event,json=contractEvent,proto3" json:"contract_event,omitempty"`
}

调用用户合约方法返回 UserContractReturnPayload Unmarshal from TransactResult.TxResponse.payload

func (*ContractResult) Descriptor

func (*ContractResult) Descriptor() ([]byte, []int)

func (*ContractResult) GetCode

func (m *ContractResult) GetCode() uint32

func (*ContractResult) GetContractEvent

func (m *ContractResult) GetContractEvent() []*ContractEvent

func (*ContractResult) GetGasUsed

func (m *ContractResult) GetGasUsed() uint64

func (*ContractResult) GetMessage

func (m *ContractResult) GetMessage() string

func (*ContractResult) GetResult

func (m *ContractResult) GetResult() []byte

func (*ContractResult) Marshal

func (m *ContractResult) Marshal() (dAtA []byte, err error)

func (*ContractResult) MarshalTo

func (m *ContractResult) MarshalTo(dAtA []byte) (int, error)

func (*ContractResult) MarshalToSizedBuffer

func (m *ContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractResult) ProtoMessage

func (*ContractResult) ProtoMessage()

func (*ContractResult) Reset

func (m *ContractResult) Reset()

func (*ContractResult) Size

func (m *ContractResult) Size() (n int)

func (*ContractResult) String

func (m *ContractResult) String() string

func (*ContractResult) Unmarshal

func (m *ContractResult) Unmarshal(dAtA []byte) error

func (*ContractResult) XXX_DiscardUnknown

func (m *ContractResult) XXX_DiscardUnknown()

func (*ContractResult) XXX_Marshal

func (m *ContractResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractResult) XXX_Merge

func (m *ContractResult) XXX_Merge(src proto.Message)

func (*ContractResult) XXX_Size

func (m *ContractResult) XXX_Size() int

func (*ContractResult) XXX_Unmarshal

func (m *ContractResult) XXX_Unmarshal(b []byte) error

type ContractStatus

type ContractStatus int32

当前合约状态

const (
	// 正常,可以调用
	ContractStatus_SM_NORMAL ContractStatus = 0
	// 冻结,暂时无法调用
	ContractStatus_SM_FROZEN ContractStatus = 1
	// 已撤销,不能永久调用
	ContractStatus_SM_REVOKED ContractStatus = 2
)

func (ContractStatus) EnumDescriptor

func (ContractStatus) EnumDescriptor() ([]byte, []int)

func (ContractStatus) String

func (x ContractStatus) String() string

type ContractTransaction

type ContractTransaction struct {
	Contract *Contract `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	TxId     string    `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
}

func (*ContractTransaction) Descriptor

func (*ContractTransaction) Descriptor() ([]byte, []int)

func (*ContractTransaction) GetContract

func (m *ContractTransaction) GetContract() *Contract

func (*ContractTransaction) GetTxId

func (m *ContractTransaction) GetTxId() string

func (*ContractTransaction) Marshal

func (m *ContractTransaction) Marshal() (dAtA []byte, err error)

func (*ContractTransaction) MarshalTo

func (m *ContractTransaction) MarshalTo(dAtA []byte) (int, error)

func (*ContractTransaction) MarshalToSizedBuffer

func (m *ContractTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractTransaction) ProtoMessage

func (*ContractTransaction) ProtoMessage()

func (*ContractTransaction) Reset

func (m *ContractTransaction) Reset()

func (*ContractTransaction) Size

func (m *ContractTransaction) Size() (n int)

func (*ContractTransaction) String

func (m *ContractTransaction) String() string

func (*ContractTransaction) Unmarshal

func (m *ContractTransaction) Unmarshal(dAtA []byte) error

func (*ContractTransaction) XXX_DiscardUnknown

func (m *ContractTransaction) XXX_DiscardUnknown()

func (*ContractTransaction) XXX_Marshal

func (m *ContractTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractTransaction) XXX_Merge

func (m *ContractTransaction) XXX_Merge(src proto.Message)

func (*ContractTransaction) XXX_Size

func (m *ContractTransaction) XXX_Size() int

func (*ContractTransaction) XXX_Unmarshal

func (m *ContractTransaction) XXX_Unmarshal(b []byte) error

type CoreConfig

type CoreConfig struct {
	// [0, 60],事务调度器从事务池中获取事务调度的时间
	TxSchedulerTimeout uint64 `protobuf:"varint,1,opt,name=tx_scheduler_timeout,json=txSchedulerTimeout,proto3" json:"tx_scheduler_timeout,omitempty"`
	// [0, 60],交易调度器从区块中获取交易后的验证超时
	TxSchedulerValidateTimeout uint64 `` /* 144-byte string literal not displayed */
	// 共识消息turbo的配置
	ConsensusTurboConfig *ConsensusTurboConfig `protobuf:"bytes,3,opt,name=consensus_turbo_config,json=consensusTurboConfig,proto3" json:"consensus_turbo_config,omitempty"`
	// 启用发件人组,用于有效处理有发件人冲突的交易
	EnableSenderGroup bool `protobuf:"varint,4,opt,name=enable_sender_group,json=enableSenderGroup,proto3" json:"enable_sender_group,omitempty"`
	// 启用冲突位窗口,用于动态调整 tx 执行 goroutine 池的容量
	EnableConflictsBitWindow bool `` /* 138-byte string literal not displayed */
	// 为同一账户交易启用优化 charge gas
	EnableOptimizeChargeGas bool `` /* 135-byte string literal not displayed */
}

核心模块相关配置

func (*CoreConfig) Descriptor

func (*CoreConfig) Descriptor() ([]byte, []int)

func (*CoreConfig) GetConsensusTurboConfig

func (m *CoreConfig) GetConsensusTurboConfig() *ConsensusTurboConfig

func (*CoreConfig) GetEnableConflictsBitWindow

func (m *CoreConfig) GetEnableConflictsBitWindow() bool

func (*CoreConfig) GetEnableOptimizeChargeGas

func (m *CoreConfig) GetEnableOptimizeChargeGas() bool

func (*CoreConfig) GetEnableSenderGroup

func (m *CoreConfig) GetEnableSenderGroup() bool

func (*CoreConfig) GetTxSchedulerTimeout

func (m *CoreConfig) GetTxSchedulerTimeout() uint64

func (*CoreConfig) GetTxSchedulerValidateTimeout

func (m *CoreConfig) GetTxSchedulerValidateTimeout() uint64

func (*CoreConfig) Marshal

func (m *CoreConfig) Marshal() (dAtA []byte, err error)

func (*CoreConfig) MarshalTo

func (m *CoreConfig) MarshalTo(dAtA []byte) (int, error)

func (*CoreConfig) MarshalToSizedBuffer

func (m *CoreConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CoreConfig) ProtoMessage

func (*CoreConfig) ProtoMessage()

func (*CoreConfig) Reset

func (m *CoreConfig) Reset()

func (*CoreConfig) Size

func (m *CoreConfig) Size() (n int)

func (*CoreConfig) String

func (m *CoreConfig) String() string

func (*CoreConfig) Unmarshal

func (m *CoreConfig) Unmarshal(dAtA []byte) error

func (*CoreConfig) XXX_DiscardUnknown

func (m *CoreConfig) XXX_DiscardUnknown()

func (*CoreConfig) XXX_Marshal

func (m *CoreConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CoreConfig) XXX_Merge

func (m *CoreConfig) XXX_Merge(src proto.Message)

func (*CoreConfig) XXX_Size

func (m *CoreConfig) XXX_Size() int

func (*CoreConfig) XXX_Unmarshal

func (m *CoreConfig) XXX_Unmarshal(b []byte) error

type CrossArbitrateCmd

type CrossArbitrateCmd int32
const (
	// AUTO_CMD 根据流程自动处理
	CrossArbitrateCmd_AUTO_CMD CrossArbitrateCmd = 0
	// EXECUTE_CMD 执行执行流程
	CrossArbitrateCmd_EXECUTE_CMD CrossArbitrateCmd = 1
	// COMMIT_CMD 执行提交流程
	CrossArbitrateCmd_COMMIT_CMD CrossArbitrateCmd = 2
	// COMMIT_CMD 执行回滚流程
	CrossArbitrateCmd_ROLLBACK_CMD CrossArbitrateCmd = 3
)

func (CrossArbitrateCmd) EnumDescriptor

func (CrossArbitrateCmd) EnumDescriptor() ([]byte, []int)

func (CrossArbitrateCmd) String

func (x CrossArbitrateCmd) String() string

type CrossParams

type CrossParams int32
const (
	CrossParams_CREATOR   CrossParams = 0
	CrossParams_SENDER    CrossParams = 1
	CrossParams_CALL_TYPE CrossParams = 2
)

func (CrossParams) EnumDescriptor

func (CrossParams) EnumDescriptor() ([]byte, []int)

func (CrossParams) String

func (x CrossParams) String() string

type CrossState

type CrossState struct {
	State CrossTxState `protobuf:"varint,1,opt,name=state,proto3,enum=proto_go.CrossTxState" json:"state,omitempty"`
}

func (*CrossState) Descriptor

func (*CrossState) Descriptor() ([]byte, []int)

func (*CrossState) GetState

func (m *CrossState) GetState() CrossTxState

func (*CrossState) Marshal

func (m *CrossState) Marshal() (dAtA []byte, err error)

func (*CrossState) MarshalTo

func (m *CrossState) MarshalTo(dAtA []byte) (int, error)

func (*CrossState) MarshalToSizedBuffer

func (m *CrossState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CrossState) ProtoMessage

func (*CrossState) ProtoMessage()

func (*CrossState) Reset

func (m *CrossState) Reset()

func (*CrossState) Size

func (m *CrossState) Size() (n int)

func (*CrossState) String

func (m *CrossState) String() string

func (*CrossState) Unmarshal

func (m *CrossState) Unmarshal(dAtA []byte) error

func (*CrossState) XXX_DiscardUnknown

func (m *CrossState) XXX_DiscardUnknown()

func (*CrossState) XXX_Marshal

func (m *CrossState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CrossState) XXX_Merge

func (m *CrossState) XXX_Merge(src proto.Message)

func (*CrossState) XXX_Size

func (m *CrossState) XXX_Size() int

func (*CrossState) XXX_Unmarshal

func (m *CrossState) XXX_Unmarshal(b []byte) error

type CrossTransactionFunction

type CrossTransactionFunction int32
const (
	// 事务执行
	CrossTransactionFunction_EXECUTE CrossTransactionFunction = 0
	// 事务提交
	CrossTransactionFunction_COMMIT CrossTransactionFunction = 1
	// 事务回滚
	CrossTransactionFunction_ROLLBACK CrossTransactionFunction = 2
	// 读取交叉 ID 状态
	CrossTransactionFunction_READ_STATE CrossTransactionFunction = 3
	// 保存交叉其他交易证明
	CrossTransactionFunction_SAVE_PROOF CrossTransactionFunction = 4
	// 阅读交叉其他交易证明
	CrossTransactionFunction_READ_PROOF CrossTransactionFunction = 5
	// 仲裁交叉交易
	CrossTransactionFunction_ARBITRATE CrossTransactionFunction = 6
)

func (CrossTransactionFunction) EnumDescriptor

func (CrossTransactionFunction) EnumDescriptor() ([]byte, []int)

func (CrossTransactionFunction) String

func (x CrossTransactionFunction) String() string

type CrossTxState

type CrossTxState int32
const (
	// NON_EXIST 交叉 ID 不存在
	CrossTxState_NON_EXIST CrossTxState = 0
	// INIT 只是标记这个十字架已经被处理
	CrossTxState_INIT CrossTxState = 1
	// EXECUTE_OK cross tx 执行成功
	CrossTxState_EXECUTE_OK CrossTxState = 2
	// EXECUTE_FAIL 跨 tx 执行失败
	CrossTxState_EXECUTE_FAIL CrossTxState = 3
	// COMMIT_OK 跨 tx 提交成功
	CrossTxState_COMMIT_OK CrossTxState = 4
	// COMMIT_FAIL 跨 tx 提交失败
	CrossTxState_COMMIT_FAIL CrossTxState = 5
	// ROLLBACK_OK 跨tx回滚成功
	CrossTxState_ROLLBACK_OK CrossTxState = 6
	// ROLLBACK_FAIL 交叉 tx 回滚失败
	CrossTxState_ROLLBACK_FAIL CrossTxState = 7
)

func (CrossTxState) EnumDescriptor

func (CrossTxState) EnumDescriptor() ([]byte, []int)

func (CrossTxState) String

func (x CrossTxState) String() string

type CryptoConfig

type CryptoConfig struct {
	// 是否启用交易时间戳验证
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

加密配置

func (*CryptoConfig) Descriptor

func (*CryptoConfig) Descriptor() ([]byte, []int)

func (*CryptoConfig) GetHash

func (m *CryptoConfig) GetHash() string

func (*CryptoConfig) Marshal

func (m *CryptoConfig) Marshal() (dAtA []byte, err error)

func (*CryptoConfig) MarshalTo

func (m *CryptoConfig) MarshalTo(dAtA []byte) (int, error)

func (*CryptoConfig) MarshalToSizedBuffer

func (m *CryptoConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CryptoConfig) ProtoMessage

func (*CryptoConfig) ProtoMessage()

func (*CryptoConfig) Reset

func (m *CryptoConfig) Reset()

func (*CryptoConfig) Size

func (m *CryptoConfig) Size() (n int)

func (*CryptoConfig) String

func (m *CryptoConfig) String() string

func (*CryptoConfig) Unmarshal

func (m *CryptoConfig) Unmarshal(dAtA []byte) error

func (*CryptoConfig) XXX_DiscardUnknown

func (m *CryptoConfig) XXX_DiscardUnknown()

func (*CryptoConfig) XXX_Marshal

func (m *CryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CryptoConfig) XXX_Merge

func (m *CryptoConfig) XXX_Merge(src proto.Message)

func (*CryptoConfig) XXX_Size

func (m *CryptoConfig) XXX_Size() int

func (*CryptoConfig) XXX_Unmarshal

func (m *CryptoConfig) XXX_Unmarshal(b []byte) error

type CuckooConfig

type CuckooConfig struct {
	KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=proto_go.KeyType" json:"key_type,omitempty"`
	// 每个桶的标签数量,在纸上是 b。 tag是指纹,在纸上是f。
	TagsPerBucket uint32 `protobuf:"varint,2,opt,name=tags_per_bucket,json=tagsPerBucket,proto3" json:"tags_per_bucket,omitempty"`
	// 每个项目的位数,即标签长度(指纹)
	BitsPerItem uint32 `protobuf:"varint,3,opt,name=bits_per_item,json=bitsPerItem,proto3" json:"bits_per_item,omitempty"`
	// 过滤器将存储的键数。 该值应接近并降低
	// nextPow2(maxNumKeys/tagsPerBucket) * maxLoadFactor. 因为 table.NumBuckets 始终是 2 的幂
	MaxNumKeys uint32 `protobuf:"varint,4,opt,name=max_num_keys,json=maxNumKeys,proto3" json:"max_num_keys,omitempty"`
	// 有两个常数参数可供选择:
	// TableTypeSingle 普通单表
	// TableTypePacked 打包表,使用半排序每项节省 1 位
	TableType uint32 `protobuf:"varint,5,opt,name=table_type,json=tableType,proto3" json:"table_type,omitempty"`
}

布谷鸟配置

func (*CuckooConfig) Descriptor

func (*CuckooConfig) Descriptor() ([]byte, []int)

func (*CuckooConfig) GetBitsPerItem

func (m *CuckooConfig) GetBitsPerItem() uint32

func (*CuckooConfig) GetKeyType

func (m *CuckooConfig) GetKeyType() KeyType

func (*CuckooConfig) GetMaxNumKeys

func (m *CuckooConfig) GetMaxNumKeys() uint32

func (*CuckooConfig) GetTableType

func (m *CuckooConfig) GetTableType() uint32

func (*CuckooConfig) GetTagsPerBucket

func (m *CuckooConfig) GetTagsPerBucket() uint32

func (*CuckooConfig) Marshal

func (m *CuckooConfig) Marshal() (dAtA []byte, err error)

func (*CuckooConfig) MarshalTo

func (m *CuckooConfig) MarshalTo(dAtA []byte) (int, error)

func (*CuckooConfig) MarshalToSizedBuffer

func (m *CuckooConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CuckooConfig) ProtoMessage

func (*CuckooConfig) ProtoMessage()

func (*CuckooConfig) Reset

func (m *CuckooConfig) Reset()

func (*CuckooConfig) Size

func (m *CuckooConfig) Size() (n int)

func (*CuckooConfig) String

func (m *CuckooConfig) String() string

func (*CuckooConfig) Unmarshal

func (m *CuckooConfig) Unmarshal(dAtA []byte) error

func (*CuckooConfig) XXX_DiscardUnknown

func (m *CuckooConfig) XXX_DiscardUnknown()

func (*CuckooConfig) XXX_Marshal

func (m *CuckooConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CuckooConfig) XXX_Merge

func (m *CuckooConfig) XXX_Merge(src proto.Message)

func (*CuckooConfig) XXX_Size

func (m *CuckooConfig) XXX_Size() int

func (*CuckooConfig) XXX_Unmarshal

func (m *CuckooConfig) XXX_Unmarshal(b []byte) error

type CuckooFilter

type CuckooFilter struct {
	// “cuckoo”字段用于保存布谷鸟的序列化数据
	//Pb 限制:字节大小不能大于 4 GB
	Cuckoo []byte `protobuf:"bytes,1,opt,name=cuckoo,proto3" json:"cuckoo,omitempty"`
	// 携带当时的ID
	Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"`
	// 布谷鸟过滤器配置
	Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
}

布谷鸟过滤器

func (*CuckooFilter) Descriptor

func (*CuckooFilter) Descriptor() ([]byte, []int)

func (*CuckooFilter) GetConfig

func (m *CuckooFilter) GetConfig() []byte

func (*CuckooFilter) GetCuckoo

func (m *CuckooFilter) GetCuckoo() []byte

func (*CuckooFilter) GetExtension

func (m *CuckooFilter) GetExtension() []byte

func (*CuckooFilter) Marshal

func (m *CuckooFilter) Marshal() (dAtA []byte, err error)

func (*CuckooFilter) MarshalTo

func (m *CuckooFilter) MarshalTo(dAtA []byte) (int, error)

func (*CuckooFilter) MarshalToSizedBuffer

func (m *CuckooFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CuckooFilter) ProtoMessage

func (*CuckooFilter) ProtoMessage()

func (*CuckooFilter) Reset

func (m *CuckooFilter) Reset()

func (*CuckooFilter) Size

func (m *CuckooFilter) Size() (n int)

func (*CuckooFilter) String

func (m *CuckooFilter) String() string

func (*CuckooFilter) Unmarshal

func (m *CuckooFilter) Unmarshal(dAtA []byte) error

func (*CuckooFilter) XXX_DiscardUnknown

func (m *CuckooFilter) XXX_DiscardUnknown()

func (*CuckooFilter) XXX_Marshal

func (m *CuckooFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CuckooFilter) XXX_Merge

func (m *CuckooFilter) XXX_Merge(src proto.Message)

func (*CuckooFilter) XXX_Size

func (m *CuckooFilter) XXX_Size() int

func (*CuckooFilter) XXX_Unmarshal

func (m *CuckooFilter) XXX_Unmarshal(b []byte) error

type CuckooGroup

type CuckooGroup struct {
	Config *CuckooGroupConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	// 最终高度
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// 当前索引
	CurrentIndex uint32 `protobuf:"varint,3,opt,name=currentIndex,proto3" json:"currentIndex,omitempty"`
	// 一组布谷鸟过滤器
	Filters []*CuckooFilter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"`
}

func (*CuckooGroup) Descriptor

func (*CuckooGroup) Descriptor() ([]byte, []int)

func (*CuckooGroup) GetConfig

func (m *CuckooGroup) GetConfig() *CuckooGroupConfig

func (*CuckooGroup) GetCurrentIndex

func (m *CuckooGroup) GetCurrentIndex() uint32

func (*CuckooGroup) GetFilters

func (m *CuckooGroup) GetFilters() []*CuckooFilter

func (*CuckooGroup) GetHeight

func (m *CuckooGroup) GetHeight() uint64

func (*CuckooGroup) Marshal

func (m *CuckooGroup) Marshal() (dAtA []byte, err error)

func (*CuckooGroup) MarshalTo

func (m *CuckooGroup) MarshalTo(dAtA []byte) (int, error)

func (*CuckooGroup) MarshalToSizedBuffer

func (m *CuckooGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CuckooGroup) ProtoMessage

func (*CuckooGroup) ProtoMessage()

func (*CuckooGroup) Reset

func (m *CuckooGroup) Reset()

func (*CuckooGroup) Size

func (m *CuckooGroup) Size() (n int)

func (*CuckooGroup) String

func (m *CuckooGroup) String() string

func (*CuckooGroup) Unmarshal

func (m *CuckooGroup) Unmarshal(dAtA []byte) error

func (*CuckooGroup) XXX_DiscardUnknown

func (m *CuckooGroup) XXX_DiscardUnknown()

func (*CuckooGroup) XXX_Marshal

func (m *CuckooGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CuckooGroup) XXX_Merge

func (m *CuckooGroup) XXX_Merge(src proto.Message)

func (*CuckooGroup) XXX_Size

func (m *CuckooGroup) XXX_Size() int

func (*CuckooGroup) XXX_Unmarshal

func (m *CuckooGroup) XXX_Unmarshal(b []byte) error

type CuckooGroupConfig

type CuckooGroupConfig struct {
	ChainId  string                    `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Length   uint32                    `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	Rules    *RulesConfig              `protobuf:"bytes,3,opt,name=rules,proto3" json:"rules,omitempty"`
	Cuckoo   *CuckooConfig             `protobuf:"bytes,4,opt,name=cuckoo,proto3" json:"cuckoo,omitempty"`
	Snapshot *SnapshotSerializerConfig `protobuf:"bytes,5,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
}

func (*CuckooGroupConfig) Descriptor

func (*CuckooGroupConfig) Descriptor() ([]byte, []int)

func (*CuckooGroupConfig) GetChainId

func (m *CuckooGroupConfig) GetChainId() string

func (*CuckooGroupConfig) GetCuckoo

func (m *CuckooGroupConfig) GetCuckoo() *CuckooConfig

func (*CuckooGroupConfig) GetLength

func (m *CuckooGroupConfig) GetLength() uint32

func (*CuckooGroupConfig) GetRules

func (m *CuckooGroupConfig) GetRules() *RulesConfig

func (*CuckooGroupConfig) GetSnapshot

func (m *CuckooGroupConfig) GetSnapshot() *SnapshotSerializerConfig

func (*CuckooGroupConfig) Marshal

func (m *CuckooGroupConfig) Marshal() (dAtA []byte, err error)

func (*CuckooGroupConfig) MarshalTo

func (m *CuckooGroupConfig) MarshalTo(dAtA []byte) (int, error)

func (*CuckooGroupConfig) MarshalToSizedBuffer

func (m *CuckooGroupConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CuckooGroupConfig) ProtoMessage

func (*CuckooGroupConfig) ProtoMessage()

func (*CuckooGroupConfig) Reset

func (m *CuckooGroupConfig) Reset()

func (*CuckooGroupConfig) Size

func (m *CuckooGroupConfig) Size() (n int)

func (*CuckooGroupConfig) String

func (m *CuckooGroupConfig) String() string

func (*CuckooGroupConfig) Unmarshal

func (m *CuckooGroupConfig) Unmarshal(dAtA []byte) error

func (*CuckooGroupConfig) XXX_DiscardUnknown

func (m *CuckooGroupConfig) XXX_DiscardUnknown()

func (*CuckooGroupConfig) XXX_Marshal

func (m *CuckooGroupConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CuckooGroupConfig) XXX_Merge

func (m *CuckooGroupConfig) XXX_Merge(src proto.Message)

func (*CuckooGroupConfig) XXX_Size

func (m *CuckooGroupConfig) XXX_Size() int

func (*CuckooGroupConfig) XXX_Unmarshal

func (m *CuckooGroupConfig) XXX_Unmarshal(b []byte) error

type DAG

type DAG struct {
	// 事务拓扑排序序号 与事务关联的事务拓扑排序序号
	Vertexes []*DAG_Neighbor `protobuf:"bytes,2,rep,name=vertexes,proto3" json:"vertexes,omitempty"`
}

交易执行顺序 使用邻接表存储

func (*DAG) Descriptor

func (*DAG) Descriptor() ([]byte, []int)

func (*DAG) GetVertexes

func (m *DAG) GetVertexes() []*DAG_Neighbor

func (*DAG) Marshal

func (m *DAG) Marshal() (dAtA []byte, err error)

func (*DAG) MarshalTo

func (m *DAG) MarshalTo(dAtA []byte) (int, error)

func (*DAG) MarshalToSizedBuffer

func (m *DAG) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DAG) ProtoMessage

func (*DAG) ProtoMessage()

func (*DAG) Reset

func (m *DAG) Reset()

func (*DAG) Size

func (m *DAG) Size() (n int)

func (*DAG) String

func (m *DAG) String() string

func (*DAG) Unmarshal

func (m *DAG) Unmarshal(dAtA []byte) error

func (*DAG) XXX_DiscardUnknown

func (m *DAG) XXX_DiscardUnknown()

func (*DAG) XXX_Marshal

func (m *DAG) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DAG) XXX_Merge

func (m *DAG) XXX_Merge(src proto.Message)

func (*DAG) XXX_Size

func (m *DAG) XXX_Size() int

func (*DAG) XXX_Unmarshal

func (m *DAG) XXX_Unmarshal(b []byte) error

type DAG_Neighbor

type DAG_Neighbor struct {
	Neighbors []uint32 `protobuf:"varint,1,rep,packed,name=neighbors,proto3" json:"neighbors,omitempty"`
}

邻居节点:有读写冲突的相关事务

func (*DAG_Neighbor) Descriptor

func (*DAG_Neighbor) Descriptor() ([]byte, []int)

func (*DAG_Neighbor) GetNeighbors

func (m *DAG_Neighbor) GetNeighbors() []uint32

func (*DAG_Neighbor) Marshal

func (m *DAG_Neighbor) Marshal() (dAtA []byte, err error)

func (*DAG_Neighbor) MarshalTo

func (m *DAG_Neighbor) MarshalTo(dAtA []byte) (int, error)

func (*DAG_Neighbor) MarshalToSizedBuffer

func (m *DAG_Neighbor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DAG_Neighbor) ProtoMessage

func (*DAG_Neighbor) ProtoMessage()

func (*DAG_Neighbor) Reset

func (m *DAG_Neighbor) Reset()

func (*DAG_Neighbor) Size

func (m *DAG_Neighbor) Size() (n int)

func (*DAG_Neighbor) String

func (m *DAG_Neighbor) String() string

func (*DAG_Neighbor) Unmarshal

func (m *DAG_Neighbor) Unmarshal(dAtA []byte) error

func (*DAG_Neighbor) XXX_DiscardUnknown

func (m *DAG_Neighbor) XXX_DiscardUnknown()

func (*DAG_Neighbor) XXX_Marshal

func (m *DAG_Neighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DAG_Neighbor) XXX_Merge

func (m *DAG_Neighbor) XXX_Merge(src proto.Message)

func (*DAG_Neighbor) XXX_Size

func (m *DAG_Neighbor) XXX_Size() int

func (*DAG_Neighbor) XXX_Unmarshal

func (m *DAG_Neighbor) XXX_Unmarshal(b []byte) error

type DPoSERC20Function

type DPoSERC20Function int32

DPoS ERC20合约的方法

const (
	// 获得 DPoS 的所有者
	DPoSERC20Function_GET_OWNER DPoSERC20Function = 0
	// 获取 DPoS 的小数
	DPoSERC20Function_GET_DECIMALS DPoSERC20Function = 1
	// 在 DPoS 转移代币
	DPoSERC20Function_TRANSFER DPoSERC20Function = 2
	// 在 DPoS 从用户转移代币
	DPoSERC20Function_TRANSFER_FROM DPoSERC20Function = 3
	// 在 DPoS 获得用户余额
	DPoSERC20Function_GET_BALANCEOF DPoSERC20Function = 4
	// 在 DPoS 将用户的令牌批准给其他用户
	DPoSERC20Function_APPROVE DPoSERC20Function = 5
	// 在 DPoS 获得津贴
	DPoSERC20Function_GET_ALLOWANCE DPoSERC20Function = 6
	// 在 DPoS 销毁代币
	DPoSERC20Function_BURN DPoSERC20Function = 7
	// 作为 DPoS 的代币
	DPoSERC20Function_MINT DPoSERC20Function = 8
	// 在 DPoS 转移所有权
	DPoSERC20Function_TRANSFER_OWNERSHIP DPoSERC20Function = 9
	// 获得代币的总供应量
	DPoSERC20Function_GET_TOTAL_SUPPLY DPoSERC20Function = 10
)

func (DPoSERC20Function) EnumDescriptor

func (DPoSERC20Function) EnumDescriptor() ([]byte, []int)

func (DPoSERC20Function) String

func (x DPoSERC20Function) String() string

type DPoSStakeFunction

type DPoSStakeFunction int32

DPoS权益合约的方法

const (
	// 获取所有验证人候选人
	DPoSStakeFunction_GET_ALL_CANDIDATES DPoSStakeFunction = 0
	// 通过地址获取验证器
	DPoSStakeFunction_GET_VALIDATOR_BY_ADDRESS DPoSStakeFunction = 1
	// 委托
	DPoSStakeFunction_DELEGATE DPoSStakeFunction = 2
	// 通过地址获取委托
	DPoSStakeFunction_GET_DELEGATIONS_BY_ADDRESS DPoSStakeFunction = 3
	// 通过验证器获取用户委托
	DPoSStakeFunction_GET_USER_DELEGATION_BY_VALIDATOR DPoSStakeFunction = 4
	// 取消委托
	DPoSStakeFunction_UNDELEGATE DPoSStakeFunction = 5
	// 按 id 读取 epoch
	DPoSStakeFunction_READ_EPOCH_BY_ID DPoSStakeFunction = 6
	// 阅读最新纪元
	DPoSStakeFunction_READ_LATEST_EPOCH DPoSStakeFunction = 7
	// 加入网络前设置节点id
	DPoSStakeFunction_SET_NODE_ID DPoSStakeFunction = 8
	// 加入网络后获取节点id
	DPoSStakeFunction_GET_NODE_ID DPoSStakeFunction = 9
	// 更新最小自我委托
	DPoSStakeFunction_UPDATE_MIN_SELF_DELEGATION DPoSStakeFunction = 10
	// 读取最小自我委托
	DPoSStakeFunction_READ_MIN_SELF_DELEGATION DPoSStakeFunction = 11
	// 更新纪元验证器编号
	DPoSStakeFunction_UPDATE_EPOCH_VALIDATOR_NUMBER DPoSStakeFunction = 12
	// 读取 epoch 验证器编号
	DPoSStakeFunction_READ_EPOCH_VALIDATOR_NUMBER DPoSStakeFunction = 13
	// 更新纪元块号
	DPoSStakeFunction_UPDATE_EPOCH_BLOCK_NUMBER DPoSStakeFunction = 14
	// 读取纪元块号
	DPoSStakeFunction_READ_EPOCH_BLOCK_NUMBER DPoSStakeFunction = 15
	// 读取完整的无界纪元数
	DPoSStakeFunction_READ_COMPLETE_UNBOUNDING_EPOCH_NUMBER DPoSStakeFunction = 16
	// 读取系统合约地址
	DPoSStakeFunction_READ_SYSTEM_CONTRACT_ADDR DPoSStakeFunction = 18
)

func (DPoSStakeFunction) EnumDescriptor

func (DPoSStakeFunction) EnumDescriptor() ([]byte, []int)

func (DPoSStakeFunction) String

func (x DPoSStakeFunction) String() string

type DataStorageType

type DataStorageType int32
const (
	// 文件存储
	DataStorageType_DST_FILE_STORAGE DataStorageType = 0
	// SQL数据库存储
	DataStorageType_DST_SQL_STORAGE DataStorageType = 1
	// MINIO 对象存储
	DataStorageType_DST_MINIO_STORAGE DataStorageType = 2
)

func (DataStorageType) EnumDescriptor

func (DataStorageType) EnumDescriptor() ([]byte, []int)

func (DataStorageType) String

func (x DataStorageType) String() string

type DbType

type DbType int32
const (
	DbType_DBT_INVALID     DbType = 0
	DbType_DBT_BLOCK       DbType = 1
	DbType_DBT_BLOCK_INDEX DbType = 2
	DbType_DBT_TX          DbType = 3
	DbType_DBT_TX_INDEX    DbType = 4
	DbType_DBT_SOFT        DbType = 5
	DbType_DBT_STATE       DbType = 6
	DbType_DBT_READ_WRITE  DbType = 7
)

func (DbType) EnumDescriptor

func (DbType) EnumDescriptor() ([]byte, []int)

func (DbType) String

func (x DbType) String() string

type DebugConfigRequest

type DebugConfigRequest struct {
	Pairs []*ConfigKeyValue `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"`
}

调试配置请求

func (*DebugConfigRequest) Descriptor

func (*DebugConfigRequest) Descriptor() ([]byte, []int)

func (*DebugConfigRequest) GetPairs

func (m *DebugConfigRequest) GetPairs() []*ConfigKeyValue

func (*DebugConfigRequest) Marshal

func (m *DebugConfigRequest) Marshal() (dAtA []byte, err error)

func (*DebugConfigRequest) MarshalTo

func (m *DebugConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*DebugConfigRequest) MarshalToSizedBuffer

func (m *DebugConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DebugConfigRequest) ProtoMessage

func (*DebugConfigRequest) ProtoMessage()

func (*DebugConfigRequest) Reset

func (m *DebugConfigRequest) Reset()

func (*DebugConfigRequest) Size

func (m *DebugConfigRequest) Size() (n int)

func (*DebugConfigRequest) String

func (m *DebugConfigRequest) String() string

func (*DebugConfigRequest) Unmarshal

func (m *DebugConfigRequest) Unmarshal(dAtA []byte) error

func (*DebugConfigRequest) XXX_DiscardUnknown

func (m *DebugConfigRequest) XXX_DiscardUnknown()

func (*DebugConfigRequest) XXX_Marshal

func (m *DebugConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugConfigRequest) XXX_Merge

func (m *DebugConfigRequest) XXX_Merge(src proto.Message)

func (*DebugConfigRequest) XXX_Size

func (m *DebugConfigRequest) XXX_Size() int

func (*DebugConfigRequest) XXX_Unmarshal

func (m *DebugConfigRequest) XXX_Unmarshal(b []byte) error

type DebugConfigResponse

type DebugConfigResponse struct {
	// 0 success
	// 1 fail
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

调试配置响应

func (*DebugConfigResponse) Descriptor

func (*DebugConfigResponse) Descriptor() ([]byte, []int)

func (*DebugConfigResponse) GetCode

func (m *DebugConfigResponse) GetCode() int32

func (*DebugConfigResponse) GetMessage

func (m *DebugConfigResponse) GetMessage() string

func (*DebugConfigResponse) Marshal

func (m *DebugConfigResponse) Marshal() (dAtA []byte, err error)

func (*DebugConfigResponse) MarshalTo

func (m *DebugConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*DebugConfigResponse) MarshalToSizedBuffer

func (m *DebugConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DebugConfigResponse) ProtoMessage

func (*DebugConfigResponse) ProtoMessage()

func (*DebugConfigResponse) Reset

func (m *DebugConfigResponse) Reset()

func (*DebugConfigResponse) Size

func (m *DebugConfigResponse) Size() (n int)

func (*DebugConfigResponse) String

func (m *DebugConfigResponse) String() string

func (*DebugConfigResponse) Unmarshal

func (m *DebugConfigResponse) Unmarshal(dAtA []byte) error

func (*DebugConfigResponse) XXX_DiscardUnknown

func (m *DebugConfigResponse) XXX_DiscardUnknown()

func (*DebugConfigResponse) XXX_Marshal

func (m *DebugConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugConfigResponse) XXX_Merge

func (m *DebugConfigResponse) XXX_Merge(src proto.Message)

func (*DebugConfigResponse) XXX_Size

func (m *DebugConfigResponse) XXX_Size() int

func (*DebugConfigResponse) XXX_Unmarshal

func (m *DebugConfigResponse) XXX_Unmarshal(b []byte) error

type Delegation

type Delegation struct {
	// 委托人证书哈希
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// 验证者证书哈希
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// 股份金额
	Shares string `protobuf:"bytes,3,opt,name=shares,proto3" json:"shares,omitempty"`
}

func (*Delegation) Descriptor

func (*Delegation) Descriptor() ([]byte, []int)

func (*Delegation) GetDelegatorAddress

func (m *Delegation) GetDelegatorAddress() string

func (*Delegation) GetShares

func (m *Delegation) GetShares() string

func (*Delegation) GetValidatorAddress

func (m *Delegation) GetValidatorAddress() string

func (*Delegation) Marshal

func (m *Delegation) Marshal() (dAtA []byte, err error)

func (*Delegation) MarshalTo

func (m *Delegation) MarshalTo(dAtA []byte) (int, error)

func (*Delegation) MarshalToSizedBuffer

func (m *Delegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

func (m *Delegation) Size() (n int)

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

func (m *Delegation) Unmarshal(dAtA []byte) error

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

func (m *Delegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Delegation) XXX_Merge

func (m *Delegation) XXX_Merge(src proto.Message)

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

func (m *Delegation) XXX_Unmarshal(b []byte) error

type DelegationInfo

type DelegationInfo struct {
	// 委托切片
	Infos []*Delegation `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
}

func (*DelegationInfo) Descriptor

func (*DelegationInfo) Descriptor() ([]byte, []int)

func (*DelegationInfo) GetInfos

func (m *DelegationInfo) GetInfos() []*Delegation

func (*DelegationInfo) Marshal

func (m *DelegationInfo) Marshal() (dAtA []byte, err error)

func (*DelegationInfo) MarshalTo

func (m *DelegationInfo) MarshalTo(dAtA []byte) (int, error)

func (*DelegationInfo) MarshalToSizedBuffer

func (m *DelegationInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DelegationInfo) ProtoMessage

func (*DelegationInfo) ProtoMessage()

func (*DelegationInfo) Reset

func (m *DelegationInfo) Reset()

func (*DelegationInfo) Size

func (m *DelegationInfo) Size() (n int)

func (*DelegationInfo) String

func (m *DelegationInfo) String() string

func (*DelegationInfo) Unmarshal

func (m *DelegationInfo) Unmarshal(dAtA []byte) error

func (*DelegationInfo) XXX_DiscardUnknown

func (m *DelegationInfo) XXX_DiscardUnknown()

func (*DelegationInfo) XXX_Marshal

func (m *DelegationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationInfo) XXX_Merge

func (m *DelegationInfo) XXX_Merge(src proto.Message)

func (*DelegationInfo) XXX_Size

func (m *DelegationInfo) XXX_Size() int

func (*DelegationInfo) XXX_Unmarshal

func (m *DelegationInfo) XXX_Unmarshal(b []byte) error

type EndorsementEntry

type EndorsementEntry struct {
	// 签名人
	Signer *Participant `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// 签名信息
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

背书信息,包括签名人及其签名信息

func (*EndorsementEntry) Descriptor

func (*EndorsementEntry) Descriptor() ([]byte, []int)

func (*EndorsementEntry) GetSignature

func (m *EndorsementEntry) GetSignature() []byte

func (*EndorsementEntry) GetSigner

func (m *EndorsementEntry) GetSigner() *Participant

func (*EndorsementEntry) Marshal

func (m *EndorsementEntry) Marshal() (dAtA []byte, err error)

func (*EndorsementEntry) MarshalTo

func (m *EndorsementEntry) MarshalTo(dAtA []byte) (int, error)

func (*EndorsementEntry) MarshalToSizedBuffer

func (m *EndorsementEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EndorsementEntry) ProtoMessage

func (*EndorsementEntry) ProtoMessage()

func (*EndorsementEntry) Reset

func (m *EndorsementEntry) Reset()

func (*EndorsementEntry) Size

func (m *EndorsementEntry) Size() (n int)

func (*EndorsementEntry) String

func (m *EndorsementEntry) String() string

func (*EndorsementEntry) Unmarshal

func (m *EndorsementEntry) Unmarshal(dAtA []byte) error

func (*EndorsementEntry) XXX_DiscardUnknown

func (m *EndorsementEntry) XXX_DiscardUnknown()

func (*EndorsementEntry) XXX_Marshal

func (m *EndorsementEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndorsementEntry) XXX_Merge

func (m *EndorsementEntry) XXX_Merge(src proto.Message)

func (*EndorsementEntry) XXX_Size

func (m *EndorsementEntry) XXX_Size() int

func (*EndorsementEntry) XXX_Unmarshal

func (m *EndorsementEntry) XXX_Unmarshal(b []byte) error

type Epoch

type Epoch struct {
	// 具有自动增量的 ID
	EpochId uint64 `protobuf:"varint,1,opt,name=epoch_id,json=epochId,proto3" json:"epoch_id,omitempty"`
	// 当前一代的验证器集合
	ProposerVectors []string `protobuf:"bytes,2,rep,name=proposer_vectors,json=proposerVectors,proto3" json:"proposer_vectors,omitempty"`
	// 下一个纪元切换高度
	NextEpochCreateHeight uint64 `` /* 129-byte string literal not displayed */
}

func (*Epoch) Descriptor

func (*Epoch) Descriptor() ([]byte, []int)

func (*Epoch) GetEpochId

func (m *Epoch) GetEpochId() uint64

func (*Epoch) GetNextEpochCreateHeight

func (m *Epoch) GetNextEpochCreateHeight() uint64

func (*Epoch) GetProposerVectors

func (m *Epoch) GetProposerVectors() []string

func (*Epoch) Marshal

func (m *Epoch) Marshal() (dAtA []byte, err error)

func (*Epoch) MarshalTo

func (m *Epoch) MarshalTo(dAtA []byte) (int, error)

func (*Epoch) MarshalToSizedBuffer

func (m *Epoch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Epoch) ProtoMessage

func (*Epoch) ProtoMessage()

func (*Epoch) Reset

func (m *Epoch) Reset()

func (*Epoch) Size

func (m *Epoch) Size() (n int)

func (*Epoch) String

func (m *Epoch) String() string

func (*Epoch) Unmarshal

func (m *Epoch) Unmarshal(dAtA []byte) error

func (*Epoch) XXX_DiscardUnknown

func (m *Epoch) XXX_DiscardUnknown()

func (*Epoch) XXX_Marshal

func (m *Epoch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Epoch) XXX_Merge

func (m *Epoch) XXX_Merge(src proto.Message)

func (*Epoch) XXX_Size

func (m *Epoch) XXX_Size() int

func (*Epoch) XXX_Unmarshal

func (m *Epoch) XXX_Unmarshal(b []byte) error

type FilterExtensionType

type FilterExtensionType int32
const (
	FilterExtensionType_KET_DEFAULT   FilterExtensionType = 0
	FilterExtensionType_KET_TIMESTAMP FilterExtensionType = 1
)

func (FilterExtensionType) EnumDescriptor

func (FilterExtensionType) EnumDescriptor() ([]byte, []int)

func (FilterExtensionType) String

func (x FilterExtensionType) String() string

type FreezeContract

type FreezeContract struct {
}

冻结合约参数

func (*FreezeContract) Descriptor

func (*FreezeContract) Descriptor() ([]byte, []int)

func (*FreezeContract) Marshal

func (m *FreezeContract) Marshal() (dAtA []byte, err error)

func (*FreezeContract) MarshalTo

func (m *FreezeContract) MarshalTo(dAtA []byte) (int, error)

func (*FreezeContract) MarshalToSizedBuffer

func (m *FreezeContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FreezeContract) ProtoMessage

func (*FreezeContract) ProtoMessage()

func (*FreezeContract) Reset

func (m *FreezeContract) Reset()

func (*FreezeContract) Size

func (m *FreezeContract) Size() (n int)

func (*FreezeContract) String

func (m *FreezeContract) String() string

func (*FreezeContract) Unmarshal

func (m *FreezeContract) Unmarshal(dAtA []byte) error

func (*FreezeContract) XXX_DiscardUnknown

func (m *FreezeContract) XXX_DiscardUnknown()

func (*FreezeContract) XXX_Marshal

func (m *FreezeContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FreezeContract) XXX_Merge

func (m *FreezeContract) XXX_Merge(src proto.Message)

func (*FreezeContract) XXX_Size

func (m *FreezeContract) XXX_Size() int

func (*FreezeContract) XXX_Unmarshal

func (m *FreezeContract) XXX_Unmarshal(b []byte) error

type FreezeContract_Parameter

type FreezeContract_Parameter int32
const (
	FreezeContract_CONTRACT_NAME FreezeContract_Parameter = 0
)

func (FreezeContract_Parameter) EnumDescriptor

func (FreezeContract_Parameter) EnumDescriptor() ([]byte, []int)

func (FreezeContract_Parameter) String

func (x FreezeContract_Parameter) String() string

type GasAccountConfig

type GasAccountConfig struct {
	// 管理员地址
	GasAdminAddress string `protobuf:"bytes,1,opt,name=gas_admin_address,json=gasAdminAddress,proto3" json:"gas_admin_address,omitempty"`
	// 管理员GAS计数
	GasCount uint32 `protobuf:"varint,2,opt,name=gas_count,json=gasCount,proto3" json:"gas_count,omitempty"`
	// 启用GAS
	EnableGas bool `protobuf:"varint,3,opt,name=enable_gas,json=enableGas,proto3" json:"enable_gas,omitempty"`
	// 默认情况下,每笔交易的gas值
	DefaultGas uint64 `protobuf:"varint,4,opt,name=default_gas,json=defaultGas,proto3" json:"default_gas,omitempty"`
}

GAS账户配置

func (*GasAccountConfig) Descriptor

func (*GasAccountConfig) Descriptor() ([]byte, []int)

func (*GasAccountConfig) GetDefaultGas

func (m *GasAccountConfig) GetDefaultGas() uint64

func (*GasAccountConfig) GetEnableGas

func (m *GasAccountConfig) GetEnableGas() bool

func (*GasAccountConfig) GetGasAdminAddress

func (m *GasAccountConfig) GetGasAdminAddress() string

func (*GasAccountConfig) GetGasCount

func (m *GasAccountConfig) GetGasCount() uint32

func (*GasAccountConfig) Marshal

func (m *GasAccountConfig) Marshal() (dAtA []byte, err error)

func (*GasAccountConfig) MarshalTo

func (m *GasAccountConfig) MarshalTo(dAtA []byte) (int, error)

func (*GasAccountConfig) MarshalToSizedBuffer

func (m *GasAccountConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GasAccountConfig) ProtoMessage

func (*GasAccountConfig) ProtoMessage()

func (*GasAccountConfig) Reset

func (m *GasAccountConfig) Reset()

func (*GasAccountConfig) Size

func (m *GasAccountConfig) Size() (n int)

func (*GasAccountConfig) String

func (m *GasAccountConfig) String() string

func (*GasAccountConfig) Unmarshal

func (m *GasAccountConfig) Unmarshal(dAtA []byte) error

func (*GasAccountConfig) XXX_DiscardUnknown

func (m *GasAccountConfig) XXX_DiscardUnknown()

func (*GasAccountConfig) XXX_Marshal

func (m *GasAccountConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasAccountConfig) XXX_Merge

func (m *GasAccountConfig) XXX_Merge(src proto.Message)

func (*GasAccountConfig) XXX_Size

func (m *GasAccountConfig) XXX_Size() int

func (*GasAccountConfig) XXX_Unmarshal

func (m *GasAccountConfig) XXX_Unmarshal(b []byte) error

type GasAccountFunction

type GasAccountFunction int32
const (
	// 设置管理员
	GasAccountFunction_SET_ADMIN GasAccountFunction = 0
	// 获取管理员
	GasAccountFunction_GET_ADMIN GasAccountFunction = 1
	// 补充 gas
	GasAccountFunction_RECHARGE_GAS GasAccountFunction = 2
	// 获取余额
	GasAccountFunction_GET_BALANCE GasAccountFunction = 3
	// 收费 gas
	GasAccountFunction_CHARGE_GAS GasAccountFunction = 4
	// 冻结账户
	GasAccountFunction_FROZEN_ACCOUNT GasAccountFunction = 5
	// 解冻账户
	GasAccountFunction_UNFROZEN_ACCOUNT GasAccountFunction = 6
	// 账户状态
	GasAccountFunction_ACCOUNT_STATUS GasAccountFunction = 7
	// 退款 gas
	GasAccountFunction_REFUND_GAS GasAccountFunction = 8
	// 为智能合约执行引擎返还 gas
	GasAccountFunction_REFUND_GAS_SCE GasAccountFunction = 9
	// 多账户 charge gas
	GasAccountFunction_CHARGE_GAS_FOR_MULTI_ACCOUNT GasAccountFunction = 10
)

func (GasAccountFunction) EnumDescriptor

func (GasAccountFunction) EnumDescriptor() ([]byte, []int)

func (GasAccountFunction) String

func (x GasAccountFunction) String() string

type GetContractInfo

type GetContractInfo struct {
}

查询合约参数

func (*GetContractInfo) Descriptor

func (*GetContractInfo) Descriptor() ([]byte, []int)

func (*GetContractInfo) Marshal

func (m *GetContractInfo) Marshal() (dAtA []byte, err error)

func (*GetContractInfo) MarshalTo

func (m *GetContractInfo) MarshalTo(dAtA []byte) (int, error)

func (*GetContractInfo) MarshalToSizedBuffer

func (m *GetContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetContractInfo) ProtoMessage

func (*GetContractInfo) ProtoMessage()

func (*GetContractInfo) Reset

func (m *GetContractInfo) Reset()

func (*GetContractInfo) Size

func (m *GetContractInfo) Size() (n int)

func (*GetContractInfo) String

func (m *GetContractInfo) String() string

func (*GetContractInfo) Unmarshal

func (m *GetContractInfo) Unmarshal(dAtA []byte) error

func (*GetContractInfo) XXX_DiscardUnknown

func (m *GetContractInfo) XXX_DiscardUnknown()

func (*GetContractInfo) XXX_Marshal

func (m *GetContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetContractInfo) XXX_Merge

func (m *GetContractInfo) XXX_Merge(src proto.Message)

func (*GetContractInfo) XXX_Size

func (m *GetContractInfo) XXX_Size() int

func (*GetContractInfo) XXX_Unmarshal

func (m *GetContractInfo) XXX_Unmarshal(b []byte) error

type GetContractInfo_Parameter

type GetContractInfo_Parameter int32
const (
	GetContractInfo_CONTRACT_NAME GetContractInfo_Parameter = 0
)

func (GetContractInfo_Parameter) EnumDescriptor

func (GetContractInfo_Parameter) EnumDescriptor() ([]byte, []int)

func (GetContractInfo_Parameter) String

func (x GetContractInfo_Parameter) String() string

type GetPoolStatusRequest

type GetPoolStatusRequest struct {
	// 区块链标识符
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

rpc 获取池状态请求

func (*GetPoolStatusRequest) Descriptor

func (*GetPoolStatusRequest) Descriptor() ([]byte, []int)

func (*GetPoolStatusRequest) GetChainId

func (m *GetPoolStatusRequest) GetChainId() string

func (*GetPoolStatusRequest) Marshal

func (m *GetPoolStatusRequest) Marshal() (dAtA []byte, err error)

func (*GetPoolStatusRequest) MarshalTo

func (m *GetPoolStatusRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetPoolStatusRequest) MarshalToSizedBuffer

func (m *GetPoolStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetPoolStatusRequest) ProtoMessage

func (*GetPoolStatusRequest) ProtoMessage()

func (*GetPoolStatusRequest) Reset

func (m *GetPoolStatusRequest) Reset()

func (*GetPoolStatusRequest) Size

func (m *GetPoolStatusRequest) Size() (n int)

func (*GetPoolStatusRequest) String

func (m *GetPoolStatusRequest) String() string

func (*GetPoolStatusRequest) Unmarshal

func (m *GetPoolStatusRequest) Unmarshal(dAtA []byte) error

func (*GetPoolStatusRequest) XXX_DiscardUnknown

func (m *GetPoolStatusRequest) XXX_DiscardUnknown()

func (*GetPoolStatusRequest) XXX_Marshal

func (m *GetPoolStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPoolStatusRequest) XXX_Merge

func (m *GetPoolStatusRequest) XXX_Merge(src proto.Message)

func (*GetPoolStatusRequest) XXX_Size

func (m *GetPoolStatusRequest) XXX_Size() int

func (*GetPoolStatusRequest) XXX_Unmarshal

func (m *GetPoolStatusRequest) XXX_Unmarshal(b []byte) error

type GetTxIdsByTypeAndStageRequest

type GetTxIdsByTypeAndStageRequest struct {
	// 区块链标识符
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 交易类型
	TxType TxType `protobuf:"varint,2,opt,name=tx_type,json=txType,proto3,enum=proto_go.TxType" json:"tx_type,omitempty"`
	// 交易阶段
	TxStage TxStage `protobuf:"varint,3,opt,name=tx_stage,json=txStage,proto3,enum=proto_go.TxStage" json:"tx_stage,omitempty"`
}

rpc 按类型和阶段请求获取 tx id

func (*GetTxIdsByTypeAndStageRequest) Descriptor

func (*GetTxIdsByTypeAndStageRequest) Descriptor() ([]byte, []int)

func (*GetTxIdsByTypeAndStageRequest) GetChainId

func (m *GetTxIdsByTypeAndStageRequest) GetChainId() string

func (*GetTxIdsByTypeAndStageRequest) GetTxStage

func (m *GetTxIdsByTypeAndStageRequest) GetTxStage() TxStage

func (*GetTxIdsByTypeAndStageRequest) GetTxType

func (m *GetTxIdsByTypeAndStageRequest) GetTxType() TxType

func (*GetTxIdsByTypeAndStageRequest) Marshal

func (m *GetTxIdsByTypeAndStageRequest) Marshal() (dAtA []byte, err error)

func (*GetTxIdsByTypeAndStageRequest) MarshalTo

func (m *GetTxIdsByTypeAndStageRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetTxIdsByTypeAndStageRequest) MarshalToSizedBuffer

func (m *GetTxIdsByTypeAndStageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTxIdsByTypeAndStageRequest) ProtoMessage

func (*GetTxIdsByTypeAndStageRequest) ProtoMessage()

func (*GetTxIdsByTypeAndStageRequest) Reset

func (m *GetTxIdsByTypeAndStageRequest) Reset()

func (*GetTxIdsByTypeAndStageRequest) Size

func (m *GetTxIdsByTypeAndStageRequest) Size() (n int)

func (*GetTxIdsByTypeAndStageRequest) String

func (*GetTxIdsByTypeAndStageRequest) Unmarshal

func (m *GetTxIdsByTypeAndStageRequest) Unmarshal(dAtA []byte) error

func (*GetTxIdsByTypeAndStageRequest) XXX_DiscardUnknown

func (m *GetTxIdsByTypeAndStageRequest) XXX_DiscardUnknown()

func (*GetTxIdsByTypeAndStageRequest) XXX_Marshal

func (m *GetTxIdsByTypeAndStageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxIdsByTypeAndStageRequest) XXX_Merge

func (m *GetTxIdsByTypeAndStageRequest) XXX_Merge(src proto.Message)

func (*GetTxIdsByTypeAndStageRequest) XXX_Size

func (m *GetTxIdsByTypeAndStageRequest) XXX_Size() int

func (*GetTxIdsByTypeAndStageRequest) XXX_Unmarshal

func (m *GetTxIdsByTypeAndStageRequest) XXX_Unmarshal(b []byte) error

type GetTxIdsByTypeAndStageResponse

type GetTxIdsByTypeAndStageResponse struct {
	// 交易节点列表
	TxIds []string `protobuf:"bytes,1,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
}

rpc 按类型和阶段响应获取 tx id

func (*GetTxIdsByTypeAndStageResponse) Descriptor

func (*GetTxIdsByTypeAndStageResponse) Descriptor() ([]byte, []int)

func (*GetTxIdsByTypeAndStageResponse) GetTxIds

func (m *GetTxIdsByTypeAndStageResponse) GetTxIds() []string

func (*GetTxIdsByTypeAndStageResponse) Marshal

func (m *GetTxIdsByTypeAndStageResponse) Marshal() (dAtA []byte, err error)

func (*GetTxIdsByTypeAndStageResponse) MarshalTo

func (m *GetTxIdsByTypeAndStageResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetTxIdsByTypeAndStageResponse) MarshalToSizedBuffer

func (m *GetTxIdsByTypeAndStageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTxIdsByTypeAndStageResponse) ProtoMessage

func (*GetTxIdsByTypeAndStageResponse) ProtoMessage()

func (*GetTxIdsByTypeAndStageResponse) Reset

func (m *GetTxIdsByTypeAndStageResponse) Reset()

func (*GetTxIdsByTypeAndStageResponse) Size

func (m *GetTxIdsByTypeAndStageResponse) Size() (n int)

func (*GetTxIdsByTypeAndStageResponse) String

func (*GetTxIdsByTypeAndStageResponse) Unmarshal

func (m *GetTxIdsByTypeAndStageResponse) Unmarshal(dAtA []byte) error

func (*GetTxIdsByTypeAndStageResponse) XXX_DiscardUnknown

func (m *GetTxIdsByTypeAndStageResponse) XXX_DiscardUnknown()

func (*GetTxIdsByTypeAndStageResponse) XXX_Marshal

func (m *GetTxIdsByTypeAndStageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxIdsByTypeAndStageResponse) XXX_Merge

func (m *GetTxIdsByTypeAndStageResponse) XXX_Merge(src proto.Message)

func (*GetTxIdsByTypeAndStageResponse) XXX_Size

func (m *GetTxIdsByTypeAndStageResponse) XXX_Size() int

func (*GetTxIdsByTypeAndStageResponse) XXX_Unmarshal

func (m *GetTxIdsByTypeAndStageResponse) XXX_Unmarshal(b []byte) error

type GetTxsInPoolByTxIdsRequest

type GetTxsInPoolByTxIdsRequest struct {
	// 区块链标识符
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 交易节点列表
	TxIds []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
}

rpc 通过 tx ids 请求获取池中的 txs

func (*GetTxsInPoolByTxIdsRequest) Descriptor

func (*GetTxsInPoolByTxIdsRequest) Descriptor() ([]byte, []int)

func (*GetTxsInPoolByTxIdsRequest) GetChainId

func (m *GetTxsInPoolByTxIdsRequest) GetChainId() string

func (*GetTxsInPoolByTxIdsRequest) GetTxIds

func (m *GetTxsInPoolByTxIdsRequest) GetTxIds() []string

func (*GetTxsInPoolByTxIdsRequest) Marshal

func (m *GetTxsInPoolByTxIdsRequest) Marshal() (dAtA []byte, err error)

func (*GetTxsInPoolByTxIdsRequest) MarshalTo

func (m *GetTxsInPoolByTxIdsRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetTxsInPoolByTxIdsRequest) MarshalToSizedBuffer

func (m *GetTxsInPoolByTxIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTxsInPoolByTxIdsRequest) ProtoMessage

func (*GetTxsInPoolByTxIdsRequest) ProtoMessage()

func (*GetTxsInPoolByTxIdsRequest) Reset

func (m *GetTxsInPoolByTxIdsRequest) Reset()

func (*GetTxsInPoolByTxIdsRequest) Size

func (m *GetTxsInPoolByTxIdsRequest) Size() (n int)

func (*GetTxsInPoolByTxIdsRequest) String

func (m *GetTxsInPoolByTxIdsRequest) String() string

func (*GetTxsInPoolByTxIdsRequest) Unmarshal

func (m *GetTxsInPoolByTxIdsRequest) Unmarshal(dAtA []byte) error

func (*GetTxsInPoolByTxIdsRequest) XXX_DiscardUnknown

func (m *GetTxsInPoolByTxIdsRequest) XXX_DiscardUnknown()

func (*GetTxsInPoolByTxIdsRequest) XXX_Marshal

func (m *GetTxsInPoolByTxIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxsInPoolByTxIdsRequest) XXX_Merge

func (m *GetTxsInPoolByTxIdsRequest) XXX_Merge(src proto.Message)

func (*GetTxsInPoolByTxIdsRequest) XXX_Size

func (m *GetTxsInPoolByTxIdsRequest) XXX_Size() int

func (*GetTxsInPoolByTxIdsRequest) XXX_Unmarshal

func (m *GetTxsInPoolByTxIdsRequest) XXX_Unmarshal(b []byte) error

type GetTxsInPoolByTxIdsResponse

type GetTxsInPoolByTxIdsResponse struct {
	// 交易池中的交易
	Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// 不在 tx 池中的 tx 的 tx id
	TxIds []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
}

rpc 通过 tx ids 响应获取池中的 txs

func (*GetTxsInPoolByTxIdsResponse) Descriptor

func (*GetTxsInPoolByTxIdsResponse) Descriptor() ([]byte, []int)

func (*GetTxsInPoolByTxIdsResponse) GetTxIds

func (m *GetTxsInPoolByTxIdsResponse) GetTxIds() []string

func (*GetTxsInPoolByTxIdsResponse) GetTxs

func (*GetTxsInPoolByTxIdsResponse) Marshal

func (m *GetTxsInPoolByTxIdsResponse) Marshal() (dAtA []byte, err error)

func (*GetTxsInPoolByTxIdsResponse) MarshalTo

func (m *GetTxsInPoolByTxIdsResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetTxsInPoolByTxIdsResponse) MarshalToSizedBuffer

func (m *GetTxsInPoolByTxIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetTxsInPoolByTxIdsResponse) ProtoMessage

func (*GetTxsInPoolByTxIdsResponse) ProtoMessage()

func (*GetTxsInPoolByTxIdsResponse) Reset

func (m *GetTxsInPoolByTxIdsResponse) Reset()

func (*GetTxsInPoolByTxIdsResponse) Size

func (m *GetTxsInPoolByTxIdsResponse) Size() (n int)

func (*GetTxsInPoolByTxIdsResponse) String

func (m *GetTxsInPoolByTxIdsResponse) String() string

func (*GetTxsInPoolByTxIdsResponse) Unmarshal

func (m *GetTxsInPoolByTxIdsResponse) Unmarshal(dAtA []byte) error

func (*GetTxsInPoolByTxIdsResponse) XXX_DiscardUnknown

func (m *GetTxsInPoolByTxIdsResponse) XXX_DiscardUnknown()

func (*GetTxsInPoolByTxIdsResponse) XXX_Marshal

func (m *GetTxsInPoolByTxIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxsInPoolByTxIdsResponse) XXX_Merge

func (m *GetTxsInPoolByTxIdsResponse) XXX_Merge(src proto.Message)

func (*GetTxsInPoolByTxIdsResponse) XXX_Size

func (m *GetTxsInPoolByTxIdsResponse) XXX_Size() int

func (*GetTxsInPoolByTxIdsResponse) XXX_Unmarshal

func (m *GetTxsInPoolByTxIdsResponse) XXX_Unmarshal(b []byte) error

type GovernanceContract

type GovernanceContract struct {
	// epoch id,通过epoch switch增加
	EpochId uint64 `protobuf:"varint,1,opt,name=epoch_id,json=epochId,proto3" json:"epoch_id,omitempty"`
	// 共识类型
	Type ConsensusType `protobuf:"varint,2,opt,name=type,proto3,enum=proto_go.ConsensusType" json:"type,omitempty"`
	// 当前要分配的索引
	CurMaxIndex       int64 `protobuf:"varint,3,opt,name=cur_max_index,json=curMaxIndex,proto3" json:"cur_max_index,omitempty"`
	SkipTimeoutCommit bool  `protobuf:"varint,4,opt,name=skip_timeout_commit,json=skipTimeoutCommit,proto3" json:"skip_timeout_commit,omitempty"`
	// config序列,检查配置是否改变
	ConfigNonce uint64 `protobuf:"varint,5,opt,name=config_nonce,json=configNonce,proto3" json:"config_nonce,omitempty"`
	// 参与共识的节点数
	N uint64 `protobuf:"varint,6,opt,name=n,proto3" json:"n,omitempty"`
	// 需要存活的最小共识节点数
	MinQuorumForQc uint64 `protobuf:"varint,7,opt,name=min_quorum_for_qc,json=minQuorumForQc,proto3" json:"min_quorum_for_qc,omitempty"`
	CachedLen      uint64 `protobuf:"varint,8,opt,name=cached_len,json=cachedLen,proto3" json:"cached_len,omitempty"`
	// 切换验证器的下一个高度
	NextSwitchHeight uint64 `protobuf:"varint,9,opt,name=next_switch_height,json=nextSwitchHeight,proto3" json:"next_switch_height,omitempty"`
	// 切换验证器的缓冲区高度
	TransitBlock uint64 `protobuf:"varint,10,opt,name=transit_block,json=transitBlock,proto3" json:"transit_block,omitempty"`
	// 切换验证器的周期
	BlockNumPerEpoch uint64 `protobuf:"varint,11,opt,name=block_num_per_epoch,json=blockNumPerEpoch,proto3" json:"block_num_per_epoch,omitempty"`
	// 参与验证者的最大数量
	ValidatorNum uint64 `protobuf:"varint,12,opt,name=validator_num,json=validatorNum,proto3" json:"validator_num,omitempty"`
	// 每个验证者可以连续出块的轮次
	NodeProposeRound uint64 `protobuf:"varint,13,opt,name=node_propose_round,json=nodeProposeRound,proto3" json:"node_propose_round,omitempty"`
	// 当前维护的节点
	Rarticipants []*GovernanceParticipant `protobuf:"bytes,14,rep,name=rarticipants,proto3" json:"rarticipants,omitempty"`
	// 目前参与验证者
	Validators []*GovernanceParticipant `protobuf:"bytes,15,rep,name=validators,proto3" json:"validators,omitempty"`
	// 下一个参与验证者
	NextValidators []*GovernanceParticipant `protobuf:"bytes,16,rep,name=next_validators,json=nextValidators,proto3" json:"next_validators,omitempty"`
	// 最后一个epoch需要存活的最小共识节点数
	LastMinQuorumForQc uint64 `protobuf:"varint,17,opt,name=last_min_quorum_for_qc,json=lastMinQuorumForQc,proto3" json:"last_min_quorum_for_qc,omitempty"`
	// 最后一个时期参与验证者
	LastValidators []*GovernanceParticipant `protobuf:"bytes,18,rep,name=last_validators,json=lastValidators,proto3" json:"last_validators,omitempty"`
}

func (*GovernanceContract) Descriptor

func (*GovernanceContract) Descriptor() ([]byte, []int)

func (*GovernanceContract) GetBlockNumPerEpoch

func (m *GovernanceContract) GetBlockNumPerEpoch() uint64

func (*GovernanceContract) GetCachedLen

func (m *GovernanceContract) GetCachedLen() uint64

func (*GovernanceContract) GetConfigNonce

func (m *GovernanceContract) GetConfigNonce() uint64

func (*GovernanceContract) GetCurMaxIndex

func (m *GovernanceContract) GetCurMaxIndex() int64

func (*GovernanceContract) GetEpochId

func (m *GovernanceContract) GetEpochId() uint64

func (*GovernanceContract) GetLastMinQuorumForQc

func (m *GovernanceContract) GetLastMinQuorumForQc() uint64

func (*GovernanceContract) GetLastValidators

func (m *GovernanceContract) GetLastValidators() []*GovernanceParticipant

func (*GovernanceContract) GetMinQuorumForQc

func (m *GovernanceContract) GetMinQuorumForQc() uint64

func (*GovernanceContract) GetN

func (m *GovernanceContract) GetN() uint64

func (*GovernanceContract) GetNextSwitchHeight

func (m *GovernanceContract) GetNextSwitchHeight() uint64

func (*GovernanceContract) GetNextValidators

func (m *GovernanceContract) GetNextValidators() []*GovernanceParticipant

func (*GovernanceContract) GetNodeProposeRound

func (m *GovernanceContract) GetNodeProposeRound() uint64

func (*GovernanceContract) GetRarticipants

func (m *GovernanceContract) GetRarticipants() []*GovernanceParticipant

func (*GovernanceContract) GetSkipTimeoutCommit

func (m *GovernanceContract) GetSkipTimeoutCommit() bool

func (*GovernanceContract) GetTransitBlock

func (m *GovernanceContract) GetTransitBlock() uint64

func (*GovernanceContract) GetType

func (m *GovernanceContract) GetType() ConsensusType

func (*GovernanceContract) GetValidatorNum

func (m *GovernanceContract) GetValidatorNum() uint64

func (*GovernanceContract) GetValidators

func (m *GovernanceContract) GetValidators() []*GovernanceParticipant

func (*GovernanceContract) Marshal

func (m *GovernanceContract) Marshal() (dAtA []byte, err error)

func (*GovernanceContract) MarshalTo

func (m *GovernanceContract) MarshalTo(dAtA []byte) (int, error)

func (*GovernanceContract) MarshalToSizedBuffer

func (m *GovernanceContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GovernanceContract) ProtoMessage

func (*GovernanceContract) ProtoMessage()

func (*GovernanceContract) Reset

func (m *GovernanceContract) Reset()

func (*GovernanceContract) Size

func (m *GovernanceContract) Size() (n int)

func (*GovernanceContract) String

func (m *GovernanceContract) String() string

func (*GovernanceContract) Unmarshal

func (m *GovernanceContract) Unmarshal(dAtA []byte) error

func (*GovernanceContract) XXX_DiscardUnknown

func (m *GovernanceContract) XXX_DiscardUnknown()

func (*GovernanceContract) XXX_Marshal

func (m *GovernanceContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GovernanceContract) XXX_Merge

func (m *GovernanceContract) XXX_Merge(src proto.Message)

func (*GovernanceContract) XXX_Size

func (m *GovernanceContract) XXX_Size() int

func (*GovernanceContract) XXX_Unmarshal

func (m *GovernanceContract) XXX_Unmarshal(b []byte) error

type GovernanceParticipant

type GovernanceParticipant struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Index  int64  `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
}

func (*GovernanceParticipant) Descriptor

func (*GovernanceParticipant) Descriptor() ([]byte, []int)

func (*GovernanceParticipant) GetIndex

func (m *GovernanceParticipant) GetIndex() int64

func (*GovernanceParticipant) GetNodeId

func (m *GovernanceParticipant) GetNodeId() string

func (*GovernanceParticipant) Marshal

func (m *GovernanceParticipant) Marshal() (dAtA []byte, err error)

func (*GovernanceParticipant) MarshalTo

func (m *GovernanceParticipant) MarshalTo(dAtA []byte) (int, error)

func (*GovernanceParticipant) MarshalToSizedBuffer

func (m *GovernanceParticipant) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GovernanceParticipant) ProtoMessage

func (*GovernanceParticipant) ProtoMessage()

func (*GovernanceParticipant) Reset

func (m *GovernanceParticipant) Reset()

func (*GovernanceParticipant) Size

func (m *GovernanceParticipant) Size() (n int)

func (*GovernanceParticipant) String

func (m *GovernanceParticipant) String() string

func (*GovernanceParticipant) Unmarshal

func (m *GovernanceParticipant) Unmarshal(dAtA []byte) error

func (*GovernanceParticipant) XXX_DiscardUnknown

func (m *GovernanceParticipant) XXX_DiscardUnknown()

func (*GovernanceParticipant) XXX_Marshal

func (m *GovernanceParticipant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GovernanceParticipant) XXX_Merge

func (m *GovernanceParticipant) XXX_Merge(src proto.Message)

func (*GovernanceParticipant) XXX_Size

func (m *GovernanceParticipant) XXX_Size() int

func (*GovernanceParticipant) XXX_Unmarshal

func (m *GovernanceParticipant) XXX_Unmarshal(b []byte) error

type IdentificationType

type IdentificationType int32

标识类型

const (
	// X509 证书
	IdentificationType_IT_CERT IdentificationType = 0
	// 证书哈希值
	IdentificationType_IT_CERT_HASH IdentificationType = 1
	// 公钥
	IdentificationType_IT_PUBLIC_KEY IdentificationType = 2
	// 去中心化的身份识别
	IdentificationType_IT_DID IdentificationType = 3
	// 别名
	IdentificationType_IT_ALIAS IdentificationType = 4
	// 地址
	IdentificationType_IT_ADDRESS IdentificationType = 5
)

func (IdentificationType) EnumDescriptor

func (IdentificationType) EnumDescriptor() ([]byte, []int)

func (IdentificationType) String

func (x IdentificationType) String() string

type InitContract

type InitContract struct {
}

初始化合约参数

func (*InitContract) Descriptor

func (*InitContract) Descriptor() ([]byte, []int)

func (*InitContract) Marshal

func (m *InitContract) Marshal() (dAtA []byte, err error)

func (*InitContract) MarshalTo

func (m *InitContract) MarshalTo(dAtA []byte) (int, error)

func (*InitContract) MarshalToSizedBuffer

func (m *InitContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*InitContract) ProtoMessage

func (*InitContract) ProtoMessage()

func (*InitContract) Reset

func (m *InitContract) Reset()

func (*InitContract) Size

func (m *InitContract) Size() (n int)

func (*InitContract) String

func (m *InitContract) String() string

func (*InitContract) Unmarshal

func (m *InitContract) Unmarshal(dAtA []byte) error

func (*InitContract) XXX_DiscardUnknown

func (m *InitContract) XXX_DiscardUnknown()

func (*InitContract) XXX_Marshal

func (m *InitContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InitContract) XXX_Merge

func (m *InitContract) XXX_Merge(src proto.Message)

func (*InitContract) XXX_Size

func (m *InitContract) XXX_Size() int

func (*InitContract) XXX_Unmarshal

func (m *InitContract) XXX_Unmarshal(b []byte) error

type InitContract_Parameter

type InitContract_Parameter int32
const (
	InitContract_CONTRACT_NAME         InitContract_Parameter = 0
	InitContract_CONTRACT_RUNTIME_TYPE InitContract_Parameter = 1
	InitContract_CONTRACT_VERSION      InitContract_Parameter = 2
	InitContract_CONTRACT_BYTECODE     InitContract_Parameter = 3
)

func (InitContract_Parameter) EnumDescriptor

func (InitContract_Parameter) EnumDescriptor() ([]byte, []int)

func (InitContract_Parameter) String

func (x InitContract_Parameter) String() string

type KV

type KV struct {
	ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	Key          []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value        []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
}

func (*KV) Descriptor

func (*KV) Descriptor() ([]byte, []int)

func (*KV) GetContractName

func (m *KV) GetContractName() string

func (*KV) GetKey

func (m *KV) GetKey() []byte

func (*KV) GetValue

func (m *KV) GetValue() []byte

func (*KV) Marshal

func (m *KV) Marshal() (dAtA []byte, err error)

func (*KV) MarshalTo

func (m *KV) MarshalTo(dAtA []byte) (int, error)

func (*KV) MarshalToSizedBuffer

func (m *KV) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KV) ProtoMessage

func (*KV) ProtoMessage()

func (*KV) Reset

func (m *KV) Reset()

func (*KV) Size

func (m *KV) Size() (n int)

func (*KV) String

func (m *KV) String() string

func (*KV) Unmarshal

func (m *KV) Unmarshal(dAtA []byte) error

func (*KV) XXX_DiscardUnknown

func (m *KV) XXX_DiscardUnknown()

func (*KV) XXX_Marshal

func (m *KV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KV) XXX_Merge

func (m *KV) XXX_Merge(src proto.Message)

func (*KV) XXX_Size

func (m *KV) XXX_Size() int

func (*KV) XXX_Unmarshal

func (m *KV) XXX_Unmarshal(b []byte) error

type KeyModification

type KeyModification struct {
	TxId        string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	Value       []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp   int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	IsDelete    bool   `protobuf:"varint,4,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"`
	BlockHeight uint64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}

KeyModification -- 历史数据库查询的 QueryResult。 保存历史查询产生的事务 ID、值、时间戳和删除标记。

func (*KeyModification) Descriptor

func (*KeyModification) Descriptor() ([]byte, []int)

func (*KeyModification) GetBlockHeight

func (m *KeyModification) GetBlockHeight() uint64

func (*KeyModification) GetIsDelete

func (m *KeyModification) GetIsDelete() bool

func (*KeyModification) GetTimestamp

func (m *KeyModification) GetTimestamp() int64

func (*KeyModification) GetTxId

func (m *KeyModification) GetTxId() string

func (*KeyModification) GetValue

func (m *KeyModification) GetValue() []byte

func (*KeyModification) Marshal

func (m *KeyModification) Marshal() (dAtA []byte, err error)

func (*KeyModification) MarshalTo

func (m *KeyModification) MarshalTo(dAtA []byte) (int, error)

func (*KeyModification) MarshalToSizedBuffer

func (m *KeyModification) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyModification) ProtoMessage

func (*KeyModification) ProtoMessage()

func (*KeyModification) Reset

func (m *KeyModification) Reset()

func (*KeyModification) Size

func (m *KeyModification) Size() (n int)

func (*KeyModification) String

func (m *KeyModification) String() string

func (*KeyModification) Unmarshal

func (m *KeyModification) Unmarshal(dAtA []byte) error

func (*KeyModification) XXX_DiscardUnknown

func (m *KeyModification) XXX_DiscardUnknown()

func (*KeyModification) XXX_Marshal

func (m *KeyModification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyModification) XXX_Merge

func (m *KeyModification) XXX_Merge(src proto.Message)

func (*KeyModification) XXX_Size

func (m *KeyModification) XXX_Size() int

func (*KeyModification) XXX_Unmarshal

func (m *KeyModification) XXX_Unmarshal(b []byte) error

type KeyType

type KeyType int32
const (
	KeyType_KT_DEFAULT       KeyType = 0
	KeyType_KT_TIMESTAMP_KEY KeyType = 1
)

func (KeyType) EnumDescriptor

func (KeyType) EnumDescriptor() ([]byte, []int)

func (KeyType) String

func (x KeyType) String() string

type KeyValuePair

type KeyValuePair struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

键值对

func (*KeyValuePair) Descriptor

func (*KeyValuePair) Descriptor() ([]byte, []int)

func (*KeyValuePair) GetKey

func (m *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (m *KeyValuePair) GetValue() []byte

func (*KeyValuePair) Marshal

func (m *KeyValuePair) Marshal() (dAtA []byte, err error)

func (*KeyValuePair) MarshalTo

func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error)

func (*KeyValuePair) MarshalToSizedBuffer

func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) Reset

func (m *KeyValuePair) Reset()

func (*KeyValuePair) Size

func (m *KeyValuePair) Size() (n int)

func (*KeyValuePair) String

func (m *KeyValuePair) String() string

func (*KeyValuePair) Unmarshal

func (m *KeyValuePair) Unmarshal(dAtA []byte) error

func (*KeyValuePair) XXX_DiscardUnknown

func (m *KeyValuePair) XXX_DiscardUnknown()

func (*KeyValuePair) XXX_Marshal

func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValuePair) XXX_Merge

func (m *KeyValuePair) XXX_Merge(src proto.Message)

func (*KeyValuePair) XXX_Size

func (m *KeyValuePair) XXX_Size() int

func (*KeyValuePair) XXX_Unmarshal

func (m *KeyValuePair) XXX_Unmarshal(b []byte) error

type KeyVersion

type KeyVersion struct {
	// 最后修改密钥的事务标识符
	RefTxId string `protobuf:"bytes,1,opt,name=ref_tx_id,json=refTxId,proto3" json:"ref_tx_id,omitempty"`
	// 事务写入集中key的偏移量,从0开始
	RefOffset int32 `protobuf:"varint,2,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"`
}

键读版本

func (*KeyVersion) Descriptor

func (*KeyVersion) Descriptor() ([]byte, []int)

func (*KeyVersion) GetRefOffset

func (m *KeyVersion) GetRefOffset() int32

func (*KeyVersion) GetRefTxId

func (m *KeyVersion) GetRefTxId() string

func (*KeyVersion) Marshal

func (m *KeyVersion) Marshal() (dAtA []byte, err error)

func (*KeyVersion) MarshalTo

func (m *KeyVersion) MarshalTo(dAtA []byte) (int, error)

func (*KeyVersion) MarshalToSizedBuffer

func (m *KeyVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyVersion) ProtoMessage

func (*KeyVersion) ProtoMessage()

func (*KeyVersion) Reset

func (m *KeyVersion) Reset()

func (*KeyVersion) Size

func (m *KeyVersion) Size() (n int)

func (*KeyVersion) String

func (m *KeyVersion) String() string

func (*KeyVersion) Unmarshal

func (m *KeyVersion) Unmarshal(dAtA []byte) error

func (*KeyVersion) XXX_DiscardUnknown

func (m *KeyVersion) XXX_DiscardUnknown()

func (*KeyVersion) XXX_Marshal

func (m *KeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyVersion) XXX_Merge

func (m *KeyVersion) XXX_Merge(src proto.Message)

func (*KeyVersion) XXX_Size

func (m *KeyVersion) XXX_Size() int

func (*KeyVersion) XXX_Unmarshal

func (m *KeyVersion) XXX_Unmarshal(b []byte) error

type Keys

type Keys struct {
	Key []string `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
}

func (*Keys) Descriptor

func (*Keys) Descriptor() ([]byte, []int)

func (*Keys) GetKey

func (m *Keys) GetKey() []string

func (*Keys) Marshal

func (m *Keys) Marshal() (dAtA []byte, err error)

func (*Keys) MarshalTo

func (m *Keys) MarshalTo(dAtA []byte) (int, error)

func (*Keys) MarshalToSizedBuffer

func (m *Keys) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Keys) ProtoMessage

func (*Keys) ProtoMessage()

func (*Keys) Reset

func (m *Keys) Reset()

func (*Keys) Size

func (m *Keys) Size() (n int)

func (*Keys) String

func (m *Keys) String() string

func (*Keys) Unmarshal

func (m *Keys) Unmarshal(dAtA []byte) error

func (*Keys) XXX_DiscardUnknown

func (m *Keys) XXX_DiscardUnknown()

func (*Keys) XXX_Marshal

func (m *Keys) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Keys) XXX_Merge

func (m *Keys) XXX_Merge(src proto.Message)

func (*Keys) XXX_Size

func (m *Keys) XXX_Size() int

func (*Keys) XXX_Unmarshal

func (m *Keys) XXX_Unmarshal(b []byte) error

type Limit

type Limit struct {
	// GAS 限制
	GasLimit uint64 `protobuf:"varint,1,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
}

限制定义交易限制,限制为消息,便于扩展

func (*Limit) Descriptor

func (*Limit) Descriptor() ([]byte, []int)

func (*Limit) GetGasLimit

func (m *Limit) GetGasLimit() uint64

func (*Limit) Marshal

func (m *Limit) Marshal() (dAtA []byte, err error)

func (*Limit) MarshalTo

func (m *Limit) MarshalTo(dAtA []byte) (int, error)

func (*Limit) MarshalToSizedBuffer

func (m *Limit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Limit) ProtoMessage

func (*Limit) ProtoMessage()

func (*Limit) Reset

func (m *Limit) Reset()

func (*Limit) Size

func (m *Limit) Size() (n int)

func (*Limit) String

func (m *Limit) String() string

func (*Limit) Unmarshal

func (m *Limit) Unmarshal(dAtA []byte) error

func (*Limit) XXX_DiscardUnknown

func (m *Limit) XXX_DiscardUnknown()

func (*Limit) XXX_Marshal

func (m *Limit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Limit) XXX_Merge

func (m *Limit) XXX_Merge(src proto.Message)

func (*Limit) XXX_Size

func (m *Limit) XXX_Size() int

func (*Limit) XXX_Unmarshal

func (m *Limit) XXX_Unmarshal(b []byte) error

type LogLevelsRequest

type LogLevelsRequest struct {
}

请求日志级别

func (*LogLevelsRequest) Descriptor

func (*LogLevelsRequest) Descriptor() ([]byte, []int)

func (*LogLevelsRequest) Marshal

func (m *LogLevelsRequest) Marshal() (dAtA []byte, err error)

func (*LogLevelsRequest) MarshalTo

func (m *LogLevelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*LogLevelsRequest) MarshalToSizedBuffer

func (m *LogLevelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogLevelsRequest) ProtoMessage

func (*LogLevelsRequest) ProtoMessage()

func (*LogLevelsRequest) Reset

func (m *LogLevelsRequest) Reset()

func (*LogLevelsRequest) Size

func (m *LogLevelsRequest) Size() (n int)

func (*LogLevelsRequest) String

func (m *LogLevelsRequest) String() string

func (*LogLevelsRequest) Unmarshal

func (m *LogLevelsRequest) Unmarshal(dAtA []byte) error

func (*LogLevelsRequest) XXX_DiscardUnknown

func (m *LogLevelsRequest) XXX_DiscardUnknown()

func (*LogLevelsRequest) XXX_Marshal

func (m *LogLevelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogLevelsRequest) XXX_Merge

func (m *LogLevelsRequest) XXX_Merge(src proto.Message)

func (*LogLevelsRequest) XXX_Size

func (m *LogLevelsRequest) XXX_Size() int

func (*LogLevelsRequest) XXX_Unmarshal

func (m *LogLevelsRequest) XXX_Unmarshal(b []byte) error

type LogLevelsResponse

type LogLevelsResponse struct {
	// 0 success
	// 1 fail
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

响应日志级别

func (*LogLevelsResponse) Descriptor

func (*LogLevelsResponse) Descriptor() ([]byte, []int)

func (*LogLevelsResponse) GetCode

func (m *LogLevelsResponse) GetCode() int32

func (*LogLevelsResponse) GetMessage

func (m *LogLevelsResponse) GetMessage() string

func (*LogLevelsResponse) Marshal

func (m *LogLevelsResponse) Marshal() (dAtA []byte, err error)

func (*LogLevelsResponse) MarshalTo

func (m *LogLevelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*LogLevelsResponse) MarshalToSizedBuffer

func (m *LogLevelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogLevelsResponse) ProtoMessage

func (*LogLevelsResponse) ProtoMessage()

func (*LogLevelsResponse) Reset

func (m *LogLevelsResponse) Reset()

func (*LogLevelsResponse) Size

func (m *LogLevelsResponse) Size() (n int)

func (*LogLevelsResponse) String

func (m *LogLevelsResponse) String() string

func (*LogLevelsResponse) Unmarshal

func (m *LogLevelsResponse) Unmarshal(dAtA []byte) error

func (*LogLevelsResponse) XXX_DiscardUnknown

func (m *LogLevelsResponse) XXX_DiscardUnknown()

func (*LogLevelsResponse) XXX_Marshal

func (m *LogLevelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogLevelsResponse) XXX_Merge

func (m *LogLevelsResponse) XXX_Merge(src proto.Message)

func (*LogLevelsResponse) XXX_Size

func (m *LogLevelsResponse) XXX_Size() int

func (*LogLevelsResponse) XXX_Unmarshal

func (m *LogLevelsResponse) XXX_Unmarshal(b []byte) error

type Message

type Message struct {
	Msg     *NetMessage `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	ChainId string      `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 属于那个模块,判断消息类型
	Flag string `protobuf:"bytes,3,opt,name=flag,proto3" json:"flag,omitempty"`
}

包装的网络消息

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetChainId

func (m *Message) GetChainId() string

func (*Message) GetFlag

func (m *Message) GetFlag() string

func (*Message) GetMsg

func (m *Message) GetMsg() *NetMessage

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type MultiQuery

type MultiQuery struct {
}

func (*MultiQuery) Descriptor

func (*MultiQuery) Descriptor() ([]byte, []int)

func (*MultiQuery) Marshal

func (m *MultiQuery) Marshal() (dAtA []byte, err error)

func (*MultiQuery) MarshalTo

func (m *MultiQuery) MarshalTo(dAtA []byte) (int, error)

func (*MultiQuery) MarshalToSizedBuffer

func (m *MultiQuery) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiQuery) ProtoMessage

func (*MultiQuery) ProtoMessage()

func (*MultiQuery) Reset

func (m *MultiQuery) Reset()

func (*MultiQuery) Size

func (m *MultiQuery) Size() (n int)

func (*MultiQuery) String

func (m *MultiQuery) String() string

func (*MultiQuery) Unmarshal

func (m *MultiQuery) Unmarshal(dAtA []byte) error

func (*MultiQuery) XXX_DiscardUnknown

func (m *MultiQuery) XXX_DiscardUnknown()

func (*MultiQuery) XXX_Marshal

func (m *MultiQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiQuery) XXX_Merge

func (m *MultiQuery) XXX_Merge(src proto.Message)

func (*MultiQuery) XXX_Size

func (m *MultiQuery) XXX_Size() int

func (*MultiQuery) XXX_Unmarshal

func (m *MultiQuery) XXX_Unmarshal(b []byte) error

type MultiQuery_Parameter

type MultiQuery_Parameter int32
const (
	MultiQuery_TX_ID MultiQuery_Parameter = 0
)

func (MultiQuery_Parameter) EnumDescriptor

func (MultiQuery_Parameter) EnumDescriptor() ([]byte, []int)

func (MultiQuery_Parameter) String

func (x MultiQuery_Parameter) String() string

type MultiRequest

type MultiRequest struct {
}

func (*MultiRequest) Descriptor

func (*MultiRequest) Descriptor() ([]byte, []int)

func (*MultiRequest) Marshal

func (m *MultiRequest) Marshal() (dAtA []byte, err error)

func (*MultiRequest) MarshalTo

func (m *MultiRequest) MarshalTo(dAtA []byte) (int, error)

func (*MultiRequest) MarshalToSizedBuffer

func (m *MultiRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiRequest) ProtoMessage

func (*MultiRequest) ProtoMessage()

func (*MultiRequest) Reset

func (m *MultiRequest) Reset()

func (*MultiRequest) Size

func (m *MultiRequest) Size() (n int)

func (*MultiRequest) String

func (m *MultiRequest) String() string

func (*MultiRequest) Unmarshal

func (m *MultiRequest) Unmarshal(dAtA []byte) error

func (*MultiRequest) XXX_DiscardUnknown

func (m *MultiRequest) XXX_DiscardUnknown()

func (*MultiRequest) XXX_Marshal

func (m *MultiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiRequest) XXX_Merge

func (m *MultiRequest) XXX_Merge(src proto.Message)

func (*MultiRequest) XXX_Size

func (m *MultiRequest) XXX_Size() int

func (*MultiRequest) XXX_Unmarshal

func (m *MultiRequest) XXX_Unmarshal(b []byte) error

type MultiRequest_Parameter

type MultiRequest_Parameter int32
const (
	MultiRequest_SYSTEM_CONTRACT_NAME MultiRequest_Parameter = 0
	MultiRequest_SYSTEM_METHOD        MultiRequest_Parameter = 1
)

func (MultiRequest_Parameter) EnumDescriptor

func (MultiRequest_Parameter) EnumDescriptor() ([]byte, []int)

func (MultiRequest_Parameter) String

func (x MultiRequest_Parameter) String() string

type MultiSignContractStatus

type MultiSignContractStatus int32

当前合同状态

const (
	// 正常,可以调用
	MultiSignContractStatus_NORMAL MultiSignContractStatus = 0
	// 冻结,暂时无法调用
	MultiSignContractStatus_FROZEN MultiSignContractStatus = 1
	// 已撤销,不能永久调用
	MultiSignContractStatus_REVOKED MultiSignContractStatus = 2
)

func (MultiSignContractStatus) EnumDescriptor

func (MultiSignContractStatus) EnumDescriptor() ([]byte, []int)

func (MultiSignContractStatus) String

func (x MultiSignContractStatus) String() string

type MultiSignFunction

type MultiSignFunction int32

管理多重签名的方法

const (
	// 多重签名请求
	MultiSignFunction_REQUEST MultiSignFunction = 0
	// 多签名投票
	MultiSignFunction_VOTE MultiSignFunction = 1
	// 多签名查询
	MultiSignFunction_QUERY MultiSignFunction = 2
)

func (MultiSignFunction) EnumDescriptor

func (MultiSignFunction) EnumDescriptor() ([]byte, []int)

func (MultiSignFunction) String

func (x MultiSignFunction) String() string

type MultiSignInfo

type MultiSignInfo struct {
	// 当前 tx 净荷
	Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// 调用系统合约名称
	ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// 调用系统合约方法
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// 调用系统合约方法
	Status MultiSignStatus `protobuf:"varint,4,opt,name=status,proto3,enum=proto_go.MultiSignStatus" json:"status,omitempty"`
	// 投票列表
	VoteInfos []*MultiSignVoteInfo `protobuf:"bytes,5,rep,name=vote_infos,json=voteInfos,proto3" json:"vote_infos,omitempty"`
	// 调用系统合约消息
	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	// 调用系统合约结果
	Result []byte `protobuf:"bytes,7,opt,name=result,proto3" json:"result,omitempty"`
}

func (*MultiSignInfo) Descriptor

func (*MultiSignInfo) Descriptor() ([]byte, []int)

func (*MultiSignInfo) GetContractName

func (m *MultiSignInfo) GetContractName() string

func (*MultiSignInfo) GetMessage

func (m *MultiSignInfo) GetMessage() string

func (*MultiSignInfo) GetMethod

func (m *MultiSignInfo) GetMethod() string

func (*MultiSignInfo) GetPayload

func (m *MultiSignInfo) GetPayload() *Payload

func (*MultiSignInfo) GetResult

func (m *MultiSignInfo) GetResult() []byte

func (*MultiSignInfo) GetStatus

func (m *MultiSignInfo) GetStatus() MultiSignStatus

func (*MultiSignInfo) GetVoteInfos

func (m *MultiSignInfo) GetVoteInfos() []*MultiSignVoteInfo

func (*MultiSignInfo) Marshal

func (m *MultiSignInfo) Marshal() (dAtA []byte, err error)

func (*MultiSignInfo) MarshalTo

func (m *MultiSignInfo) MarshalTo(dAtA []byte) (int, error)

func (*MultiSignInfo) MarshalToSizedBuffer

func (m *MultiSignInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiSignInfo) ProtoMessage

func (*MultiSignInfo) ProtoMessage()

func (*MultiSignInfo) Reset

func (m *MultiSignInfo) Reset()

func (*MultiSignInfo) Size

func (m *MultiSignInfo) Size() (n int)

func (*MultiSignInfo) String

func (m *MultiSignInfo) String() string

func (*MultiSignInfo) Unmarshal

func (m *MultiSignInfo) Unmarshal(dAtA []byte) error

func (*MultiSignInfo) XXX_DiscardUnknown

func (m *MultiSignInfo) XXX_DiscardUnknown()

func (*MultiSignInfo) XXX_Marshal

func (m *MultiSignInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiSignInfo) XXX_Merge

func (m *MultiSignInfo) XXX_Merge(src proto.Message)

func (*MultiSignInfo) XXX_Size

func (m *MultiSignInfo) XXX_Size() int

func (*MultiSignInfo) XXX_Unmarshal

func (m *MultiSignInfo) XXX_Unmarshal(b []byte) error

type MultiSignStatus

type MultiSignStatus int32
const (
	MultiSignStatus_PROCESSING MultiSignStatus = 0
	MultiSignStatus_ADOPTED    MultiSignStatus = 1
	MultiSignStatus_REFUSED    MultiSignStatus = 2
	MultiSignStatus_FAILED     MultiSignStatus = 3
)

func (MultiSignStatus) EnumDescriptor

func (MultiSignStatus) EnumDescriptor() ([]byte, []int)

func (MultiSignStatus) String

func (x MultiSignStatus) String() string

type MultiSignVoteInfo

type MultiSignVoteInfo struct {
	Vote        MultiSignVoteStatus `protobuf:"varint,1,opt,name=vote,proto3,enum=proto_go.MultiSignVoteStatus" json:"vote,omitempty"`
	Endorsement *EndorsementEntry   `protobuf:"bytes,2,opt,name=endorsement,proto3" json:"endorsement,omitempty"`
}

func (*MultiSignVoteInfo) Descriptor

func (*MultiSignVoteInfo) Descriptor() ([]byte, []int)

func (*MultiSignVoteInfo) GetEndorsement

func (m *MultiSignVoteInfo) GetEndorsement() *EndorsementEntry

func (*MultiSignVoteInfo) GetVote

func (*MultiSignVoteInfo) Marshal

func (m *MultiSignVoteInfo) Marshal() (dAtA []byte, err error)

func (*MultiSignVoteInfo) MarshalTo

func (m *MultiSignVoteInfo) MarshalTo(dAtA []byte) (int, error)

func (*MultiSignVoteInfo) MarshalToSizedBuffer

func (m *MultiSignVoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiSignVoteInfo) ProtoMessage

func (*MultiSignVoteInfo) ProtoMessage()

func (*MultiSignVoteInfo) Reset

func (m *MultiSignVoteInfo) Reset()

func (*MultiSignVoteInfo) Size

func (m *MultiSignVoteInfo) Size() (n int)

func (*MultiSignVoteInfo) String

func (m *MultiSignVoteInfo) String() string

func (*MultiSignVoteInfo) Unmarshal

func (m *MultiSignVoteInfo) Unmarshal(dAtA []byte) error

func (*MultiSignVoteInfo) XXX_DiscardUnknown

func (m *MultiSignVoteInfo) XXX_DiscardUnknown()

func (*MultiSignVoteInfo) XXX_Marshal

func (m *MultiSignVoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiSignVoteInfo) XXX_Merge

func (m *MultiSignVoteInfo) XXX_Merge(src proto.Message)

func (*MultiSignVoteInfo) XXX_Size

func (m *MultiSignVoteInfo) XXX_Size() int

func (*MultiSignVoteInfo) XXX_Unmarshal

func (m *MultiSignVoteInfo) XXX_Unmarshal(b []byte) error

type MultiSignVoteStatus

type MultiSignVoteStatus int32
const (
	MultiSignVoteStatus_ARGEE  MultiSignVoteStatus = 0
	MultiSignVoteStatus_REJECT MultiSignVoteStatus = 1
)

func (MultiSignVoteStatus) EnumDescriptor

func (MultiSignVoteStatus) EnumDescriptor() ([]byte, []int)

func (MultiSignVoteStatus) String

func (x MultiSignVoteStatus) String() string

type MultiVote

type MultiVote struct {
}

func (*MultiVote) Descriptor

func (*MultiVote) Descriptor() ([]byte, []int)

func (*MultiVote) Marshal

func (m *MultiVote) Marshal() (dAtA []byte, err error)

func (*MultiVote) MarshalTo

func (m *MultiVote) MarshalTo(dAtA []byte) (int, error)

func (*MultiVote) MarshalToSizedBuffer

func (m *MultiVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MultiVote) ProtoMessage

func (*MultiVote) ProtoMessage()

func (*MultiVote) Reset

func (m *MultiVote) Reset()

func (*MultiVote) Size

func (m *MultiVote) Size() (n int)

func (*MultiVote) String

func (m *MultiVote) String() string

func (*MultiVote) Unmarshal

func (m *MultiVote) Unmarshal(dAtA []byte) error

func (*MultiVote) XXX_DiscardUnknown

func (m *MultiVote) XXX_DiscardUnknown()

func (*MultiVote) XXX_Marshal

func (m *MultiVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiVote) XXX_Merge

func (m *MultiVote) XXX_Merge(src proto.Message)

func (*MultiVote) XXX_Size

func (m *MultiVote) XXX_Size() int

func (*MultiVote) XXX_Unmarshal

func (m *MultiVote) XXX_Unmarshal(b []byte) error

type MultiVote_Parameter

type MultiVote_Parameter int32
const (
	MultiVote_VOTE_INFO MultiVote_Parameter = 0
	MultiVote_TX_ID     MultiVote_Parameter = 1
)

func (MultiVote_Parameter) EnumDescriptor

func (MultiVote_Parameter) EnumDescriptor() ([]byte, []int)

func (MultiVote_Parameter) String

func (x MultiVote_Parameter) String() string

type NetMessage

type NetMessage struct {
	// 净荷
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// 消息类型
	Type NetMessage_MessageType `protobuf:"varint,2,opt,name=type,proto3,enum=proto_go.NetMessage_MessageType" json:"type,omitempty"`
	// 节点标识
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
}

网络消息

func (*NetMessage) Descriptor

func (*NetMessage) Descriptor() ([]byte, []int)

func (*NetMessage) GetPayload

func (m *NetMessage) GetPayload() []byte

func (*NetMessage) GetTo

func (m *NetMessage) GetTo() string

func (*NetMessage) GetType

func (m *NetMessage) GetType() NetMessage_MessageType

func (*NetMessage) Marshal

func (m *NetMessage) Marshal() (dAtA []byte, err error)

func (*NetMessage) MarshalTo

func (m *NetMessage) MarshalTo(dAtA []byte) (int, error)

func (*NetMessage) MarshalToSizedBuffer

func (m *NetMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NetMessage) ProtoMessage

func (*NetMessage) ProtoMessage()

func (*NetMessage) Reset

func (m *NetMessage) Reset()

func (*NetMessage) Size

func (m *NetMessage) Size() (n int)

func (*NetMessage) String

func (m *NetMessage) String() string

func (*NetMessage) Unmarshal

func (m *NetMessage) Unmarshal(dAtA []byte) error

func (*NetMessage) XXX_DiscardUnknown

func (m *NetMessage) XXX_DiscardUnknown()

func (*NetMessage) XXX_Marshal

func (m *NetMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetMessage) XXX_Merge

func (m *NetMessage) XXX_Merge(src proto.Message)

func (*NetMessage) XXX_Size

func (m *NetMessage) XXX_Size() int

func (*NetMessage) XXX_Unmarshal

func (m *NetMessage) XXX_Unmarshal(b []byte) error

type NetMessage_MessageType

type NetMessage_MessageType int32

特定的网络消息类型

const (
	NetMessage_INVALID_MSG    NetMessage_MessageType = 0
	NetMessage_TX_MSG         NetMessage_MessageType = 1
	NetMessage_TXS_MSG        NetMessage_MessageType = 2
	NetMessage_BLOCK_MSG      NetMessage_MessageType = 3
	NetMessage_BLOCKS_MSG     NetMessage_MessageType = 4
	NetMessage_CONSENSUS_MSG  NetMessage_MessageType = 5
	NetMessage_SYNC_BLOCK_MSG NetMessage_MessageType = 6
	NetMessage_CONSISTENT_MSG NetMessage_MessageType = 7
)

func (NetMessage_MessageType) EnumDescriptor

func (NetMessage_MessageType) EnumDescriptor() ([]byte, []int)

func (NetMessage_MessageType) String

func (x NetMessage_MessageType) String() string

type Node

type Node struct {
	// 节点标识
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// 节点地址
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	// 节点的 TLS 证书
	NodeTlsCert []byte `protobuf:"bytes,3,opt,name=node_tls_cert,json=nodeTlsCert,proto3" json:"node_tls_cert,omitempty"`
}

区块链节点信息

func (*Node) Descriptor

func (*Node) Descriptor() ([]byte, []int)

func (*Node) GetNodeAddress

func (m *Node) GetNodeAddress() string

func (*Node) GetNodeId

func (m *Node) GetNodeId() string

func (*Node) GetNodeTlsCert

func (m *Node) GetNodeTlsCert() []byte

func (*Node) Marshal

func (m *Node) Marshal() (dAtA []byte, err error)

func (*Node) MarshalTo

func (m *Node) MarshalTo(dAtA []byte) (int, error)

func (*Node) MarshalToSizedBuffer

func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal

func (m *Node) Unmarshal(dAtA []byte) error

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node) XXX_Merge

func (m *Node) XXX_Merge(src proto.Message)

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

func (m *Node) XXX_Unmarshal(b []byte) error

type OrganizationConfig

type OrganizationConfig struct {
	// 组织ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// 地址
	AddressList []string `protobuf:"bytes,2,rep,name=address_list,json=addressList,proto3" json:"address_list,omitempty"`
	// 节点ID
	NodeIds []string `protobuf:"bytes,3,rep,name=node_ids,json=nodeIds,proto3" json:"node_ids,omitempty"`
}

组织相关配置

func (*OrganizationConfig) Descriptor

func (*OrganizationConfig) Descriptor() ([]byte, []int)

func (*OrganizationConfig) GetAddressList

func (m *OrganizationConfig) GetAddressList() []string

func (*OrganizationConfig) GetNodeIds

func (m *OrganizationConfig) GetNodeIds() []string

func (*OrganizationConfig) GetOrganizationId

func (m *OrganizationConfig) GetOrganizationId() string

func (*OrganizationConfig) Marshal

func (m *OrganizationConfig) Marshal() (dAtA []byte, err error)

func (*OrganizationConfig) MarshalTo

func (m *OrganizationConfig) MarshalTo(dAtA []byte) (int, error)

func (*OrganizationConfig) MarshalToSizedBuffer

func (m *OrganizationConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrganizationConfig) ProtoMessage

func (*OrganizationConfig) ProtoMessage()

func (*OrganizationConfig) Reset

func (m *OrganizationConfig) Reset()

func (*OrganizationConfig) Size

func (m *OrganizationConfig) Size() (n int)

func (*OrganizationConfig) String

func (m *OrganizationConfig) String() string

func (*OrganizationConfig) Unmarshal

func (m *OrganizationConfig) Unmarshal(dAtA []byte) error

func (*OrganizationConfig) XXX_DiscardUnknown

func (m *OrganizationConfig) XXX_DiscardUnknown()

func (*OrganizationConfig) XXX_Marshal

func (m *OrganizationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrganizationConfig) XXX_Merge

func (m *OrganizationConfig) XXX_Merge(src proto.Message)

func (*OrganizationConfig) XXX_Size

func (m *OrganizationConfig) XXX_Size() int

func (*OrganizationConfig) XXX_Unmarshal

func (m *OrganizationConfig) XXX_Unmarshal(b []byte) error

type PKInfo

type PKInfo struct {
	// 参与者公钥字节
	PkBytes []byte `protobuf:"bytes,1,opt,name=pk_bytes,json=pkBytes,proto3" json:"pk_bytes,omitempty"`
	// 参与者角色
	Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	// 参与者组织 ID
	OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
}

参与者公钥信息

func (*PKInfo) Descriptor

func (*PKInfo) Descriptor() ([]byte, []int)

func (*PKInfo) GetOrganizationId

func (m *PKInfo) GetOrganizationId() string

func (*PKInfo) GetPkBytes

func (m *PKInfo) GetPkBytes() []byte

func (*PKInfo) GetRole

func (m *PKInfo) GetRole() string

func (*PKInfo) Marshal

func (m *PKInfo) Marshal() (dAtA []byte, err error)

func (*PKInfo) MarshalTo

func (m *PKInfo) MarshalTo(dAtA []byte) (int, error)

func (*PKInfo) MarshalToSizedBuffer

func (m *PKInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PKInfo) ProtoMessage

func (*PKInfo) ProtoMessage()

func (*PKInfo) Reset

func (m *PKInfo) Reset()

func (*PKInfo) Size

func (m *PKInfo) Size() (n int)

func (*PKInfo) String

func (m *PKInfo) String() string

func (*PKInfo) Unmarshal

func (m *PKInfo) Unmarshal(dAtA []byte) error

func (*PKInfo) XXX_DiscardUnknown

func (m *PKInfo) XXX_DiscardUnknown()

func (*PKInfo) XXX_Marshal

func (m *PKInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PKInfo) XXX_Merge

func (m *PKInfo) XXX_Merge(src proto.Message)

func (*PKInfo) XXX_Size

func (m *PKInfo) XXX_Size() int

func (*PKInfo) XXX_Unmarshal

func (m *PKInfo) XXX_Unmarshal(b []byte) error

type Participant

type Participant struct {
	// 参与者所属组织 ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// 参与者身份标识类型
	ParticipantType IdentificationType `` /* 140-byte string literal not displayed */
	// 参与者身份相关字节
	ParticipantInfo []byte `protobuf:"bytes,3,opt,name=participant_info,json=participantInfo,proto3" json:"participant_info,omitempty"`
}

链上参数者

func (*Participant) ChangeToParticipantFull

func (p *Participant) ChangeToParticipantFull() *ParticipantFull

func (*Participant) Descriptor

func (*Participant) Descriptor() ([]byte, []int)

func (*Participant) GetOrganizationId

func (m *Participant) GetOrganizationId() string

func (*Participant) GetParticipantInfo

func (m *Participant) GetParticipantInfo() []byte

func (*Participant) GetParticipantType

func (m *Participant) GetParticipantType() IdentificationType

func (*Participant) Marshal

func (m *Participant) Marshal() (dAtA []byte, err error)

func (*Participant) MarshalTo

func (m *Participant) MarshalTo(dAtA []byte) (int, error)

func (*Participant) MarshalToSizedBuffer

func (m *Participant) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Participant) ProtoMessage

func (*Participant) ProtoMessage()

func (*Participant) Reset

func (m *Participant) Reset()

func (*Participant) Size

func (m *Participant) Size() (n int)

func (*Participant) String

func (m *Participant) String() string

func (*Participant) Unmarshal

func (m *Participant) Unmarshal(dAtA []byte) error

func (*Participant) XXX_DiscardUnknown

func (m *Participant) XXX_DiscardUnknown()

func (*Participant) XXX_Marshal

func (m *Participant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Participant) XXX_Merge

func (m *Participant) XXX_Merge(src proto.Message)

func (*Participant) XXX_Size

func (m *Participant) XXX_Size() int

func (*Participant) XXX_Unmarshal

func (m *Participant) XXX_Unmarshal(b []byte) error

type ParticipantExtendCombination

type ParticipantExtendCombination struct {
	// 参与者
	Participant *Participant `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// 参与者扩展数据
	ParticipantExtendData *ParticipantExtendData `` /* 126-byte string literal not displayed */
}

参与者扩展数据组合

func (*ParticipantExtendCombination) Descriptor

func (*ParticipantExtendCombination) Descriptor() ([]byte, []int)

func (*ParticipantExtendCombination) GetParticipant

func (m *ParticipantExtendCombination) GetParticipant() *Participant

func (*ParticipantExtendCombination) GetParticipantExtendData

func (m *ParticipantExtendCombination) GetParticipantExtendData() *ParticipantExtendData

func (*ParticipantExtendCombination) Marshal

func (m *ParticipantExtendCombination) Marshal() (dAtA []byte, err error)

func (*ParticipantExtendCombination) MarshalTo

func (m *ParticipantExtendCombination) MarshalTo(dAtA []byte) (int, error)

func (*ParticipantExtendCombination) MarshalToSizedBuffer

func (m *ParticipantExtendCombination) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParticipantExtendCombination) ProtoMessage

func (*ParticipantExtendCombination) ProtoMessage()

func (*ParticipantExtendCombination) Reset

func (m *ParticipantExtendCombination) Reset()

func (*ParticipantExtendCombination) Size

func (m *ParticipantExtendCombination) Size() (n int)

func (*ParticipantExtendCombination) String

func (*ParticipantExtendCombination) Unmarshal

func (m *ParticipantExtendCombination) Unmarshal(dAtA []byte) error

func (*ParticipantExtendCombination) XXX_DiscardUnknown

func (m *ParticipantExtendCombination) XXX_DiscardUnknown()

func (*ParticipantExtendCombination) XXX_Marshal

func (m *ParticipantExtendCombination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParticipantExtendCombination) XXX_Merge

func (m *ParticipantExtendCombination) XXX_Merge(src proto.Message)

func (*ParticipantExtendCombination) XXX_Size

func (m *ParticipantExtendCombination) XXX_Size() int

func (*ParticipantExtendCombination) XXX_Unmarshal

func (m *ParticipantExtendCombination) XXX_Unmarshal(b []byte) error

type ParticipantExtendData

type ParticipantExtendData struct {
	// 序号
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
}

参与者扩展数据

func (*ParticipantExtendData) Descriptor

func (*ParticipantExtendData) Descriptor() ([]byte, []int)

func (*ParticipantExtendData) GetNonce

func (m *ParticipantExtendData) GetNonce() uint64

func (*ParticipantExtendData) Marshal

func (m *ParticipantExtendData) Marshal() (dAtA []byte, err error)

func (*ParticipantExtendData) MarshalTo

func (m *ParticipantExtendData) MarshalTo(dAtA []byte) (int, error)

func (*ParticipantExtendData) MarshalToSizedBuffer

func (m *ParticipantExtendData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParticipantExtendData) ProtoMessage

func (*ParticipantExtendData) ProtoMessage()

func (*ParticipantExtendData) Reset

func (m *ParticipantExtendData) Reset()

func (*ParticipantExtendData) Size

func (m *ParticipantExtendData) Size() (n int)

func (*ParticipantExtendData) String

func (m *ParticipantExtendData) String() string

func (*ParticipantExtendData) Unmarshal

func (m *ParticipantExtendData) Unmarshal(dAtA []byte) error

func (*ParticipantExtendData) XXX_DiscardUnknown

func (m *ParticipantExtendData) XXX_DiscardUnknown()

func (*ParticipantExtendData) XXX_Marshal

func (m *ParticipantExtendData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParticipantExtendData) XXX_Merge

func (m *ParticipantExtendData) XXX_Merge(src proto.Message)

func (*ParticipantExtendData) XXX_Size

func (m *ParticipantExtendData) XXX_Size() int

func (*ParticipantExtendData) XXX_Unmarshal

func (m *ParticipantExtendData) XXX_Unmarshal(b []byte) error

type ParticipantFull

type ParticipantFull struct {
	// 参与者所属组织 ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// 参与者身份标识类型
	ParticipantType IdentificationType `` /* 140-byte string literal not displayed */
	// 参与方身份相关字节
	ParticipantInfo []byte `protobuf:"bytes,3,opt,name=participant_info,json=participantInfo,proto3" json:"participant_info,omitempty"`
	// 参与者身份标识(非唯一)
	ParticipantId string `protobuf:"bytes,4,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// 参与者角色
	Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"`
	// 参与者身份标识(唯一)
	Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
}

链上参与者全属性

func (*ParticipantFull) ChangeToParticipant

func (p *ParticipantFull) ChangeToParticipant() *Participant

func (*ParticipantFull) Descriptor

func (*ParticipantFull) Descriptor() ([]byte, []int)

func (*ParticipantFull) GetOrganizationId

func (m *ParticipantFull) GetOrganizationId() string

func (*ParticipantFull) GetParticipantId

func (m *ParticipantFull) GetParticipantId() string

func (*ParticipantFull) GetParticipantInfo

func (m *ParticipantFull) GetParticipantInfo() []byte

func (*ParticipantFull) GetParticipantType

func (m *ParticipantFull) GetParticipantType() IdentificationType

func (*ParticipantFull) GetRole

func (m *ParticipantFull) GetRole() string

func (*ParticipantFull) GetUid

func (m *ParticipantFull) GetUid() string

func (*ParticipantFull) Marshal

func (m *ParticipantFull) Marshal() (dAtA []byte, err error)

func (*ParticipantFull) MarshalTo

func (m *ParticipantFull) MarshalTo(dAtA []byte) (int, error)

func (*ParticipantFull) MarshalToSizedBuffer

func (m *ParticipantFull) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ParticipantFull) ProtoMessage

func (*ParticipantFull) ProtoMessage()

func (*ParticipantFull) Reset

func (m *ParticipantFull) Reset()

func (*ParticipantFull) Size

func (m *ParticipantFull) Size() (n int)

func (*ParticipantFull) String

func (m *ParticipantFull) String() string

func (*ParticipantFull) Unmarshal

func (m *ParticipantFull) Unmarshal(dAtA []byte) error

func (*ParticipantFull) XXX_DiscardUnknown

func (m *ParticipantFull) XXX_DiscardUnknown()

func (*ParticipantFull) XXX_Marshal

func (m *ParticipantFull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ParticipantFull) XXX_Merge

func (m *ParticipantFull) XXX_Merge(src proto.Message)

func (*ParticipantFull) XXX_Size

func (m *ParticipantFull) XXX_Size() int

func (*ParticipantFull) XXX_Unmarshal

func (m *ParticipantFull) XXX_Unmarshal(b []byte) error

type ParticipantStatus

type ParticipantStatus int32

参与者状态

const (
	// 正常的
	ParticipantStatus_PS_NORMAL ParticipantStatus = 0
	// 无效的
	ParticipantStatus_PS_INVALID ParticipantStatus = 1
	// 吊销的
	ParticipantStatus_PS_REVOKED ParticipantStatus = 2
	// 冻结的
	ParticipantStatus_PS_FROZEN ParticipantStatus = 3
)

func (ParticipantStatus) EnumDescriptor

func (ParticipantStatus) EnumDescriptor() ([]byte, []int)

func (ParticipantStatus) String

func (x ParticipantStatus) String() string

type Payload

type Payload struct {
	// 链标识符
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 交易类型
	TxType PayloadTxType `protobuf:"varint,2,opt,name=tx_type,json=txType,proto3,enum=proto_go.PayloadTxType" json:"tx_type,omitempty"`
	// 交易 ID(唯一)
	TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// 交易时间戳,unix时间戳格式,秒
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// unix时间戳格式的到期时间戳。之后,如果交易尚未包含在块中,则该交易无效
	ExpirationTime int64 `protobuf:"varint,5,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
	// 合约名称
	ContractName string `protobuf:"bytes,6,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// 合约方法
	Method string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	// 调用k-v格式的参数
	Parameters []*KeyValuePair `protobuf:"bytes,8,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// 序号
	Nonce uint64 `protobuf:"varint,9,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// 交易限制
	Limit *Limit `protobuf:"bytes,10,opt,name=limit,proto3" json:"limit,omitempty"`
}

交易净荷

func (*Payload) Descriptor

func (*Payload) Descriptor() ([]byte, []int)

func (*Payload) GetChainId

func (m *Payload) GetChainId() string

func (*Payload) GetContractName

func (m *Payload) GetContractName() string

func (*Payload) GetExpirationTime

func (m *Payload) GetExpirationTime() int64

func (*Payload) GetLimit

func (m *Payload) GetLimit() *Limit

func (*Payload) GetMethod

func (m *Payload) GetMethod() string

func (*Payload) GetNonce

func (m *Payload) GetNonce() uint64

func (*Payload) GetParameter

func (t *Payload) GetParameter(key string) []byte

GetParameter 获得某个参数的值

func (*Payload) GetParameters

func (m *Payload) GetParameters() []*KeyValuePair

func (*Payload) GetTimestamp

func (m *Payload) GetTimestamp() int64

func (*Payload) GetTxId

func (m *Payload) GetTxId() string

func (*Payload) GetTxType

func (m *Payload) GetTxType() PayloadTxType

func (*Payload) Marshal

func (m *Payload) Marshal() (dAtA []byte, err error)

func (*Payload) MarshalTo

func (m *Payload) MarshalTo(dAtA []byte) (int, error)

func (*Payload) MarshalToSizedBuffer

func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

func (m *Payload) Size() (n int)

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Unmarshal

func (m *Payload) Unmarshal(dAtA []byte) error

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

func (m *Payload) XXX_Unmarshal(b []byte) error

type PayloadTxType

type PayloadTxType int32

交易类型

const (
	// 调用预先创建的合同,tx包含在块中
	PayloadTxType_PTXT_INVOKE_CONTRACT PayloadTxType = 0
	// 查询预先创建的合同,tx不包括在块中
	PayloadTxType_PTXT_QUERY_CONTRACT PayloadTxType = 1
	// 订阅区块信息、发送信息和合同信息。tx不包括在块中
	PayloadTxType_PTXT_SUBSCRIBE PayloadTxType = 2
	// 存档/恢复块,tx不包括在块中
	PayloadTxType_PTXT_ARCHIVE PayloadTxType = 3
)

func (PayloadTxType) EnumDescriptor

func (PayloadTxType) EnumDescriptor() ([]byte, []int)

func (PayloadTxType) String

func (x PayloadTxType) String() string

type Policy

type Policy struct {
	// 描述规则的关键字,比如:ANY/MAJORITY/ALL/SELF/NUMBER/RATE
	Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// 描述身份验证中包含的组织集
	OrganizationCollection []string `` /* 127-byte string literal not displayed */
	// 描述身份验证中包含的角色集
	RoleCollection []string `protobuf:"bytes,3,rep,name=role_collection,json=roleCollection,proto3" json:"role_collection,omitempty"`
}

用于描述如何验证特定操作的策略

func (*Policy) Descriptor

func (*Policy) Descriptor() ([]byte, []int)

func (*Policy) GetOrganizationCollection

func (m *Policy) GetOrganizationCollection() []string

func (*Policy) GetRoleCollection

func (m *Policy) GetRoleCollection() []string

func (*Policy) GetRule

func (m *Policy) GetRule() string

func (*Policy) Marshal

func (m *Policy) Marshal() (dAtA []byte, err error)

func (*Policy) MarshalTo

func (m *Policy) MarshalTo(dAtA []byte) (int, error)

func (*Policy) MarshalToSizedBuffer

func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

func (m *Policy) Size() (n int)

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Unmarshal

func (m *Policy) Unmarshal(dAtA []byte) error

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Policy) XXX_Merge

func (m *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

func (m *Policy) XXX_Unmarshal(b []byte) error

type PrivateGetContract

type PrivateGetContract struct {
	ContractCode []byte `protobuf:"bytes,1,opt,name=contract_code,json=contractCode,proto3" json:"contract_code,omitempty"`
	Version      string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	GasLimit     uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
}

func (*PrivateGetContract) Descriptor

func (*PrivateGetContract) Descriptor() ([]byte, []int)

func (*PrivateGetContract) GetContractCode

func (m *PrivateGetContract) GetContractCode() []byte

func (*PrivateGetContract) GetGasLimit

func (m *PrivateGetContract) GetGasLimit() uint64

func (*PrivateGetContract) GetVersion

func (m *PrivateGetContract) GetVersion() string

func (*PrivateGetContract) Marshal

func (m *PrivateGetContract) Marshal() (dAtA []byte, err error)

func (*PrivateGetContract) MarshalTo

func (m *PrivateGetContract) MarshalTo(dAtA []byte) (int, error)

func (*PrivateGetContract) MarshalToSizedBuffer

func (m *PrivateGetContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PrivateGetContract) ProtoMessage

func (*PrivateGetContract) ProtoMessage()

func (*PrivateGetContract) Reset

func (m *PrivateGetContract) Reset()

func (*PrivateGetContract) Size

func (m *PrivateGetContract) Size() (n int)

func (*PrivateGetContract) String

func (m *PrivateGetContract) String() string

func (*PrivateGetContract) Unmarshal

func (m *PrivateGetContract) Unmarshal(dAtA []byte) error

func (*PrivateGetContract) XXX_DiscardUnknown

func (m *PrivateGetContract) XXX_DiscardUnknown()

func (*PrivateGetContract) XXX_Marshal

func (m *PrivateGetContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PrivateGetContract) XXX_Merge

func (m *PrivateGetContract) XXX_Merge(src proto.Message)

func (*PrivateGetContract) XXX_Size

func (m *PrivateGetContract) XXX_Size() int

func (*PrivateGetContract) XXX_Unmarshal

func (m *PrivateGetContract) XXX_Unmarshal(b []byte) error

type ProposalBlock

type ProposalBlock struct {
	Block    *Block              `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	TxsRwSet map[string]*TxRWSet `` /* 175-byte string literal not displayed */
	CutBlock *Block              `protobuf:"bytes,3,opt,name=cut_block,json=cutBlock,proto3" json:"cut_block,omitempty"`
}

func (*ProposalBlock) Descriptor

func (*ProposalBlock) Descriptor() ([]byte, []int)

func (*ProposalBlock) GetBlock

func (m *ProposalBlock) GetBlock() *Block

func (*ProposalBlock) GetCutBlock

func (m *ProposalBlock) GetCutBlock() *Block

func (*ProposalBlock) GetTxsRwSet

func (m *ProposalBlock) GetTxsRwSet() map[string]*TxRWSet

func (*ProposalBlock) Marshal

func (m *ProposalBlock) Marshal() (dAtA []byte, err error)

func (*ProposalBlock) MarshalTo

func (m *ProposalBlock) MarshalTo(dAtA []byte) (int, error)

func (*ProposalBlock) MarshalToSizedBuffer

func (m *ProposalBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProposalBlock) ProtoMessage

func (*ProposalBlock) ProtoMessage()

func (*ProposalBlock) Reset

func (m *ProposalBlock) Reset()

func (*ProposalBlock) Size

func (m *ProposalBlock) Size() (n int)

func (*ProposalBlock) String

func (m *ProposalBlock) String() string

func (*ProposalBlock) Unmarshal

func (m *ProposalBlock) Unmarshal(dAtA []byte) error

func (*ProposalBlock) XXX_DiscardUnknown

func (m *ProposalBlock) XXX_DiscardUnknown()

func (*ProposalBlock) XXX_Marshal

func (m *ProposalBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalBlock) XXX_Merge

func (m *ProposalBlock) XXX_Merge(src proto.Message)

func (*ProposalBlock) XXX_Size

func (m *ProposalBlock) XXX_Size() int

func (*ProposalBlock) XXX_Unmarshal

func (m *ProposalBlock) XXX_Unmarshal(b []byte) error

type PubkeyManageFunction

type PubkeyManageFunction int32

公钥管理方法

const (
	// 添加一个公钥
	PubkeyManageFunction_PUBKEY_ADD PubkeyManageFunction = 0
	// 删除公钥
	PubkeyManageFunction_PUBKEY_DELETE PubkeyManageFunction = 1
	// 查询公钥
	PubkeyManageFunction_PUBKEY_QUERY PubkeyManageFunction = 2
)

func (PubkeyManageFunction) EnumDescriptor

func (PubkeyManageFunction) EnumDescriptor() ([]byte, []int)

func (PubkeyManageFunction) String

func (x PubkeyManageFunction) String() string

type RWSetVerifyFailTxs

type RWSetVerifyFailTxs struct {
	BlockHeight uint64   `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	TxIds       []string `protobuf:"bytes,2,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
}

func (*RWSetVerifyFailTxs) Descriptor

func (*RWSetVerifyFailTxs) Descriptor() ([]byte, []int)

func (*RWSetVerifyFailTxs) GetBlockHeight

func (m *RWSetVerifyFailTxs) GetBlockHeight() uint64

func (*RWSetVerifyFailTxs) GetTxIds

func (m *RWSetVerifyFailTxs) GetTxIds() []string

func (*RWSetVerifyFailTxs) Marshal

func (m *RWSetVerifyFailTxs) Marshal() (dAtA []byte, err error)

func (*RWSetVerifyFailTxs) MarshalTo

func (m *RWSetVerifyFailTxs) MarshalTo(dAtA []byte) (int, error)

func (*RWSetVerifyFailTxs) MarshalToSizedBuffer

func (m *RWSetVerifyFailTxs) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RWSetVerifyFailTxs) ProtoMessage

func (*RWSetVerifyFailTxs) ProtoMessage()

func (*RWSetVerifyFailTxs) Reset

func (m *RWSetVerifyFailTxs) Reset()

func (*RWSetVerifyFailTxs) Size

func (m *RWSetVerifyFailTxs) Size() (n int)

func (*RWSetVerifyFailTxs) String

func (m *RWSetVerifyFailTxs) String() string

func (*RWSetVerifyFailTxs) Unmarshal

func (m *RWSetVerifyFailTxs) Unmarshal(dAtA []byte) error

func (*RWSetVerifyFailTxs) XXX_DiscardUnknown

func (m *RWSetVerifyFailTxs) XXX_DiscardUnknown()

func (*RWSetVerifyFailTxs) XXX_Marshal

func (m *RWSetVerifyFailTxs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RWSetVerifyFailTxs) XXX_Merge

func (m *RWSetVerifyFailTxs) XXX_Merge(src proto.Message)

func (*RWSetVerifyFailTxs) XXX_Size

func (m *RWSetVerifyFailTxs) XXX_Size() int

func (*RWSetVerifyFailTxs) XXX_Unmarshal

func (m *RWSetVerifyFailTxs) XXX_Unmarshal(b []byte) error

type RawTxRequest

type RawTxRequest struct {
	RawTx []byte `protobuf:"bytes,1,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
}

func (*RawTxRequest) Descriptor

func (*RawTxRequest) Descriptor() ([]byte, []int)

func (*RawTxRequest) GetRawTx

func (m *RawTxRequest) GetRawTx() []byte

func (*RawTxRequest) Marshal

func (m *RawTxRequest) Marshal() (dAtA []byte, err error)

func (*RawTxRequest) MarshalTo

func (m *RawTxRequest) MarshalTo(dAtA []byte) (int, error)

func (*RawTxRequest) MarshalToSizedBuffer

func (m *RawTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RawTxRequest) ProtoMessage

func (*RawTxRequest) ProtoMessage()

func (*RawTxRequest) Reset

func (m *RawTxRequest) Reset()

func (*RawTxRequest) Size

func (m *RawTxRequest) Size() (n int)

func (*RawTxRequest) String

func (m *RawTxRequest) String() string

func (*RawTxRequest) Unmarshal

func (m *RawTxRequest) Unmarshal(dAtA []byte) error

func (*RawTxRequest) XXX_DiscardUnknown

func (m *RawTxRequest) XXX_DiscardUnknown()

func (*RawTxRequest) XXX_Marshal

func (m *RawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RawTxRequest) XXX_Merge

func (m *RawTxRequest) XXX_Merge(src proto.Message)

func (*RawTxRequest) XXX_Size

func (m *RawTxRequest) XXX_Size() int

func (*RawTxRequest) XXX_Unmarshal

func (m *RawTxRequest) XXX_Unmarshal(b []byte) error

type RechargeGas

type RechargeGas struct {
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	GasAmount int64  `protobuf:"varint,2,opt,name=gas_amount,json=gasAmount,proto3" json:"gas_amount,omitempty"`
}

func (*RechargeGas) Descriptor

func (*RechargeGas) Descriptor() ([]byte, []int)

func (*RechargeGas) GetAddress

func (m *RechargeGas) GetAddress() string

func (*RechargeGas) GetGasAmount

func (m *RechargeGas) GetGasAmount() int64

func (*RechargeGas) Marshal

func (m *RechargeGas) Marshal() (dAtA []byte, err error)

func (*RechargeGas) MarshalTo

func (m *RechargeGas) MarshalTo(dAtA []byte) (int, error)

func (*RechargeGas) MarshalToSizedBuffer

func (m *RechargeGas) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RechargeGas) ProtoMessage

func (*RechargeGas) ProtoMessage()

func (*RechargeGas) Reset

func (m *RechargeGas) Reset()

func (*RechargeGas) Size

func (m *RechargeGas) Size() (n int)

func (*RechargeGas) String

func (m *RechargeGas) String() string

func (*RechargeGas) Unmarshal

func (m *RechargeGas) Unmarshal(dAtA []byte) error

func (*RechargeGas) XXX_DiscardUnknown

func (m *RechargeGas) XXX_DiscardUnknown()

func (*RechargeGas) XXX_Marshal

func (m *RechargeGas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RechargeGas) XXX_Merge

func (m *RechargeGas) XXX_Merge(src proto.Message)

func (*RechargeGas) XXX_Size

func (m *RechargeGas) XXX_Size() int

func (*RechargeGas) XXX_Unmarshal

func (m *RechargeGas) XXX_Unmarshal(b []byte) error

type RechargeGasRequest

type RechargeGasRequest struct {
	BatchRechargeGas []*RechargeGas `protobuf:"bytes,1,rep,name=batch_recharge_gas,json=batchRechargeGas,proto3" json:"batch_recharge_gas,omitempty"`
}

func (*RechargeGasRequest) Descriptor

func (*RechargeGasRequest) Descriptor() ([]byte, []int)

func (*RechargeGasRequest) GetBatchRechargeGas

func (m *RechargeGasRequest) GetBatchRechargeGas() []*RechargeGas

func (*RechargeGasRequest) Marshal

func (m *RechargeGasRequest) Marshal() (dAtA []byte, err error)

func (*RechargeGasRequest) MarshalTo

func (m *RechargeGasRequest) MarshalTo(dAtA []byte) (int, error)

func (*RechargeGasRequest) MarshalToSizedBuffer

func (m *RechargeGasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RechargeGasRequest) ProtoMessage

func (*RechargeGasRequest) ProtoMessage()

func (*RechargeGasRequest) Reset

func (m *RechargeGasRequest) Reset()

func (*RechargeGasRequest) Size

func (m *RechargeGasRequest) Size() (n int)

func (*RechargeGasRequest) String

func (m *RechargeGasRequest) String() string

func (*RechargeGasRequest) Unmarshal

func (m *RechargeGasRequest) Unmarshal(dAtA []byte) error

func (*RechargeGasRequest) XXX_DiscardUnknown

func (m *RechargeGasRequest) XXX_DiscardUnknown()

func (*RechargeGasRequest) XXX_Marshal

func (m *RechargeGasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RechargeGasRequest) XXX_Merge

func (m *RechargeGasRequest) XXX_Merge(src proto.Message)

func (*RechargeGasRequest) XXX_Size

func (m *RechargeGasRequest) XXX_Size() int

func (*RechargeGasRequest) XXX_Unmarshal

func (m *RechargeGasRequest) XXX_Unmarshal(b []byte) error

type ResourcePolicy

type ResourcePolicy struct {
	// 资源名称
	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// 策略(权限)
	Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
}

具体权限配置结构

func (*ResourcePolicy) Descriptor

func (*ResourcePolicy) Descriptor() ([]byte, []int)

func (*ResourcePolicy) GetPolicy

func (m *ResourcePolicy) GetPolicy() *Policy

func (*ResourcePolicy) GetResourceName

func (m *ResourcePolicy) GetResourceName() string

func (*ResourcePolicy) Marshal

func (m *ResourcePolicy) Marshal() (dAtA []byte, err error)

func (*ResourcePolicy) MarshalTo

func (m *ResourcePolicy) MarshalTo(dAtA []byte) (int, error)

func (*ResourcePolicy) MarshalToSizedBuffer

func (m *ResourcePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourcePolicy) ProtoMessage

func (*ResourcePolicy) ProtoMessage()

func (*ResourcePolicy) Reset

func (m *ResourcePolicy) Reset()

func (*ResourcePolicy) Size

func (m *ResourcePolicy) Size() (n int)

func (*ResourcePolicy) String

func (m *ResourcePolicy) String() string

func (*ResourcePolicy) Unmarshal

func (m *ResourcePolicy) Unmarshal(dAtA []byte) error

func (*ResourcePolicy) XXX_DiscardUnknown

func (m *ResourcePolicy) XXX_DiscardUnknown()

func (*ResourcePolicy) XXX_Marshal

func (m *ResourcePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourcePolicy) XXX_Merge

func (m *ResourcePolicy) XXX_Merge(src proto.Message)

func (*ResourcePolicy) XXX_Size

func (m *ResourcePolicy) XXX_Size() int

func (*ResourcePolicy) XXX_Unmarshal

func (m *ResourcePolicy) XXX_Unmarshal(b []byte) error

type RestoreBlock

type RestoreBlock struct {
}

恢复净荷参数

func (*RestoreBlock) Descriptor

func (*RestoreBlock) Descriptor() ([]byte, []int)

func (*RestoreBlock) Marshal

func (m *RestoreBlock) Marshal() (dAtA []byte, err error)

func (*RestoreBlock) MarshalTo

func (m *RestoreBlock) MarshalTo(dAtA []byte) (int, error)

func (*RestoreBlock) MarshalToSizedBuffer

func (m *RestoreBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RestoreBlock) ProtoMessage

func (*RestoreBlock) ProtoMessage()

func (*RestoreBlock) Reset

func (m *RestoreBlock) Reset()

func (*RestoreBlock) Size

func (m *RestoreBlock) Size() (n int)

func (*RestoreBlock) String

func (m *RestoreBlock) String() string

func (*RestoreBlock) Unmarshal

func (m *RestoreBlock) Unmarshal(dAtA []byte) error

func (*RestoreBlock) XXX_DiscardUnknown

func (m *RestoreBlock) XXX_DiscardUnknown()

func (*RestoreBlock) XXX_Marshal

func (m *RestoreBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreBlock) XXX_Merge

func (m *RestoreBlock) XXX_Merge(src proto.Message)

func (*RestoreBlock) XXX_Size

func (m *RestoreBlock) XXX_Size() int

func (*RestoreBlock) XXX_Unmarshal

func (m *RestoreBlock) XXX_Unmarshal(b []byte) error

type RestoreBlock_Parameter

type RestoreBlock_Parameter int32
const (
	RestoreBlock_FULL_BLOCK RestoreBlock_Parameter = 0
)

func (RestoreBlock_Parameter) EnumDescriptor

func (RestoreBlock_Parameter) EnumDescriptor() ([]byte, []int)

func (RestoreBlock_Parameter) String

func (x RestoreBlock_Parameter) String() string

type Result

type Result struct {
	// 响应码
	Code TxStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto_go.TxStatusCode" json:"code,omitempty"`
	// 返回的数据,在智能合约中设置
	ContractResult *ContractResult `protobuf:"bytes,2,opt,name=contract_result,json=contractResult,proto3" json:"contract_result,omitempty"`
	// 事务读写集的哈希
	RwSetHash []byte `protobuf:"bytes,3,opt,name=rw_set_hash,json=rwSetHash,proto3" json:"rw_set_hash,omitempty"`
	Message   string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
}

tx result,块中交易的一部分

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetCode

func (m *Result) GetCode() TxStatusCode

func (*Result) GetContractResult

func (m *Result) GetContractResult() *ContractResult

func (*Result) GetMessage

func (m *Result) GetMessage() string

func (*Result) GetRwSetHash

func (m *Result) GetRwSetHash() []byte

func (*Result) Marshal

func (m *Result) Marshal() (dAtA []byte, err error)

func (*Result) MarshalTo

func (m *Result) MarshalTo(dAtA []byte) (int, error)

func (*Result) MarshalToSizedBuffer

func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size

func (m *Result) Size() (n int)

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal

func (m *Result) Unmarshal(dAtA []byte) error

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

type RevokeContract

type RevokeContract struct {
}

撤销合约参数

func (*RevokeContract) Descriptor

func (*RevokeContract) Descriptor() ([]byte, []int)

func (*RevokeContract) Marshal

func (m *RevokeContract) Marshal() (dAtA []byte, err error)

func (*RevokeContract) MarshalTo

func (m *RevokeContract) MarshalTo(dAtA []byte) (int, error)

func (*RevokeContract) MarshalToSizedBuffer

func (m *RevokeContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RevokeContract) ProtoMessage

func (*RevokeContract) ProtoMessage()

func (*RevokeContract) Reset

func (m *RevokeContract) Reset()

func (*RevokeContract) Size

func (m *RevokeContract) Size() (n int)

func (*RevokeContract) String

func (m *RevokeContract) String() string

func (*RevokeContract) Unmarshal

func (m *RevokeContract) Unmarshal(dAtA []byte) error

func (*RevokeContract) XXX_DiscardUnknown

func (m *RevokeContract) XXX_DiscardUnknown()

func (*RevokeContract) XXX_Marshal

func (m *RevokeContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RevokeContract) XXX_Merge

func (m *RevokeContract) XXX_Merge(src proto.Message)

func (*RevokeContract) XXX_Size

func (m *RevokeContract) XXX_Size() int

func (*RevokeContract) XXX_Unmarshal

func (m *RevokeContract) XXX_Unmarshal(b []byte) error

type RevokeContract_Parameter

type RevokeContract_Parameter int32
const (
	RevokeContract_CONTRACT_NAME RevokeContract_Parameter = 0
)

func (RevokeContract_Parameter) EnumDescriptor

func (RevokeContract_Parameter) EnumDescriptor() ([]byte, []int)

func (RevokeContract_Parameter) String

func (x RevokeContract_Parameter) String() string

type RpcNodeClient

type RpcNodeClient interface {
	// 处理事务消息请求
	SendRequest(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (*TxResponse, error)
	// 处理消息订阅请求
	Subscribe(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (RpcNode_SubscribeClient, error)
	// 通过 websocket 处理消息订阅请求
	SubscribeWS(ctx context.Context, in *RawTxRequest, opts ...grpc.CallOption) (RpcNode_SubscribeWSClient, error)
	// 更新调试状态(开发调试)
	UpdateDebugConfig(ctx context.Context, in *DebugConfigRequest, opts ...grpc.CallOption) (*DebugConfigResponse, error)
	// 刷新日志级别配置
	RefreshLogLevelsConfig(ctx context.Context, in *LogLevelsRequest, opts ...grpc.CallOption) (*LogLevelsResponse, error)
	// 获取服务器版本
	GetVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
	// 检查链配置并动态加载新链
	CheckNewBlockChainConfig(ctx context.Context, in *CheckNewBlockChainConfigRequest, opts ...grpc.CallOption) (*CheckNewBlockChainConfigResponse, error)
	// GetPoolStatus 返回配置事务池和普通事务池的最大大小,
	// 队列和挂起缓存中的配置事务数,队列和挂起缓存中的普通事务数。
	GetPoolStatus(ctx context.Context, in *GetPoolStatusRequest, opts ...grpc.CallOption) (*TxPoolStatus, error)
	// // GetTxIdsByTypeAndStage 返回不同阶段的配置或普通 txId。
	// TxType 可能是 TxType_TXT_CONFIG_TX, TxType_TXT_COMMON_TX, (TxType_TXT_CONFIG_TX|TxType_TXT_COMMON_TX)
	// TxStage 可能是 TxStage_TXS_IN_QUEUE, TxStage_TXS_IN_PENDING, (TxStage_TXS_IN_QUEUE|TxStage_TXS_IN_PENDING)
	GetTxIdsByTypeAndStage(ctx context.Context, in *GetTxIdsByTypeAndStageRequest, opts ...grpc.CallOption) (*GetTxIdsByTypeAndStageResponse, error)
	// GetTxsInPoolByTxIds 通过 txIds 从 txPool 中检索交易,
	// 返回 txPool 中的交易和不在 txPool 中的 txIds。
	// 默认查询上限为1w个交易,超过上限返回错误。
	GetTxsInPoolByTxIds(ctx context.Context, in *GetTxsInPoolByTxIdsRequest, opts ...grpc.CallOption) (*GetTxsInPoolByTxIdsResponse, error)
}

RpcNodeClient is the client API for RpcNode service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRpcNodeClient

func NewRpcNodeClient(cc *grpc.ClientConn) RpcNodeClient

type RpcNodeServer

type RpcNodeServer interface {
	// 处理事务消息请求
	SendRequest(context.Context, *TxRequest) (*TxResponse, error)
	// 处理消息订阅请求
	Subscribe(*TxRequest, RpcNode_SubscribeServer) error
	// 通过 websocket 处理消息订阅请求
	SubscribeWS(*RawTxRequest, RpcNode_SubscribeWSServer) error
	// 更新调试状态(开发调试)
	UpdateDebugConfig(context.Context, *DebugConfigRequest) (*DebugConfigResponse, error)
	// 刷新日志级别配置
	RefreshLogLevelsConfig(context.Context, *LogLevelsRequest) (*LogLevelsResponse, error)
	// 获取服务器版本
	GetVersion(context.Context, *VersionRequest) (*VersionResponse, error)
	// 检查链配置并动态加载新链
	CheckNewBlockChainConfig(context.Context, *CheckNewBlockChainConfigRequest) (*CheckNewBlockChainConfigResponse, error)
	// GetPoolStatus 返回配置事务池和普通事务池的最大大小,
	// 队列和挂起缓存中的配置事务数,队列和挂起缓存中的普通事务数。
	GetPoolStatus(context.Context, *GetPoolStatusRequest) (*TxPoolStatus, error)
	// // GetTxIdsByTypeAndStage 返回不同阶段的配置或普通 txId。
	// TxType 可能是 TxType_TXT_CONFIG_TX, TxType_TXT_COMMON_TX, (TxType_TXT_CONFIG_TX|TxType_TXT_COMMON_TX)
	// TxStage 可能是 TxStage_TXS_IN_QUEUE, TxStage_TXS_IN_PENDING, (TxStage_TXS_IN_QUEUE|TxStage_TXS_IN_PENDING)
	GetTxIdsByTypeAndStage(context.Context, *GetTxIdsByTypeAndStageRequest) (*GetTxIdsByTypeAndStageResponse, error)
	// GetTxsInPoolByTxIds 通过 txIds 从 txPool 中检索交易,
	// 返回 txPool 中的交易和不在 txPool 中的 txIds。
	// 默认查询上限为1w个交易,超过上限返回错误。
	GetTxsInPoolByTxIds(context.Context, *GetTxsInPoolByTxIdsRequest) (*GetTxsInPoolByTxIdsResponse, error)
}

RpcNodeServer is the server API for RpcNode service.

type RpcNode_SubscribeClient

type RpcNode_SubscribeClient interface {
	Recv() (*SubscribeResult, error)
	grpc.ClientStream
}

type RpcNode_SubscribeServer

type RpcNode_SubscribeServer interface {
	Send(*SubscribeResult) error
	grpc.ServerStream
}

type RpcNode_SubscribeWSClient

type RpcNode_SubscribeWSClient interface {
	Recv() (*SubscribeResult, error)
	grpc.ClientStream
}

type RpcNode_SubscribeWSServer

type RpcNode_SubscribeWSServer interface {
	Send(*SubscribeResult) error
	grpc.ServerStream
}

type RuleType

type RuleType int32
const (
	RuleType_RT_ABSOLUTEEXPIRETIME RuleType = 0
)

func (RuleType) EnumDescriptor

func (RuleType) EnumDescriptor() ([]byte, []int)

func (RuleType) String

func (x RuleType) String() string

type RulesConfig

type RulesConfig struct {
	// 绝对过期时间秒
	AbsoluteExpireTime int64 `protobuf:"varint,1,opt,name=absolute_expire_time,json=absoluteExpireTime,proto3" json:"absolute_expire_time,omitempty"`
}

func (*RulesConfig) Descriptor

func (*RulesConfig) Descriptor() ([]byte, []int)

func (*RulesConfig) GetAbsoluteExpireTime

func (m *RulesConfig) GetAbsoluteExpireTime() int64

func (*RulesConfig) Marshal

func (m *RulesConfig) Marshal() (dAtA []byte, err error)

func (*RulesConfig) MarshalTo

func (m *RulesConfig) MarshalTo(dAtA []byte) (int, error)

func (*RulesConfig) MarshalToSizedBuffer

func (m *RulesConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RulesConfig) ProtoMessage

func (*RulesConfig) ProtoMessage()

func (*RulesConfig) Reset

func (m *RulesConfig) Reset()

func (*RulesConfig) Size

func (m *RulesConfig) Size() (n int)

func (*RulesConfig) String

func (m *RulesConfig) String() string

func (*RulesConfig) Unmarshal

func (m *RulesConfig) Unmarshal(dAtA []byte) error

func (*RulesConfig) XXX_DiscardUnknown

func (m *RulesConfig) XXX_DiscardUnknown()

func (*RulesConfig) XXX_Marshal

func (m *RulesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RulesConfig) XXX_Merge

func (m *RulesConfig) XXX_Merge(src proto.Message)

func (*RulesConfig) XXX_Size

func (m *RulesConfig) XXX_Size() int

func (*RulesConfig) XXX_Unmarshal

func (m *RulesConfig) XXX_Unmarshal(b []byte) error

type SCE

type SCE struct {
	SupportList []string    `protobuf:"bytes,1,rep,name=support_list,json=supportList,proto3" json:"support_list,omitempty"`
	AddressType AddressType `protobuf:"varint,2,opt,name=address_type,json=addressType,proto3,enum=proto_go.AddressType" json:"address_type,omitempty"`
}

智能合约虚拟机

func (*SCE) Descriptor

func (*SCE) Descriptor() ([]byte, []int)

func (*SCE) GetAddressType

func (m *SCE) GetAddressType() AddressType

func (*SCE) GetSupportList

func (m *SCE) GetSupportList() []string

func (*SCE) Marshal

func (m *SCE) Marshal() (dAtA []byte, err error)

func (*SCE) MarshalTo

func (m *SCE) MarshalTo(dAtA []byte) (int, error)

func (*SCE) MarshalToSizedBuffer

func (m *SCE) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SCE) ProtoMessage

func (*SCE) ProtoMessage()

func (*SCE) Reset

func (m *SCE) Reset()

func (*SCE) Size

func (m *SCE) Size() (n int)

func (*SCE) String

func (m *SCE) String() string

func (*SCE) Unmarshal

func (m *SCE) Unmarshal(dAtA []byte) error

func (*SCE) XXX_DiscardUnknown

func (m *SCE) XXX_DiscardUnknown()

func (*SCE) XXX_Marshal

func (m *SCE) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SCE) XXX_Merge

func (m *SCE) XXX_Merge(src proto.Message)

func (*SCE) XXX_Size

func (m *SCE) XXX_Size() int

func (*SCE) XXX_Unmarshal

func (m *SCE) XXX_Unmarshal(b []byte) error

type SCET

type SCET int32

智能合约执行引擎类型

const (
	// 未知
	SCET_SCE_INVALID SCET = 0
	// 系统
	SCET_SCE_SYSTEM SCET = 1
	// 支持合约运行在Docker里的环境,使用go语言写智能合约
	SCET_SCE_DOCKER_GO SCET = 2
	// move 语言智能合约运行环境,使用move语言编写智能合约
	SCET_SCE_DOCKER_MOVE SCET = 3
	// 以太坊智能合约运行环境,使用solidity语言编写智能合约
	SCET_SCE_EVM SCET = 4
	// WebAssembly Runtime supporting WASI and Emscripten
	SCET_SCE_WASMER SCET = 5
)

func (SCET) EnumDescriptor

func (SCET) EnumDescriptor() ([]byte, []int)

func (SCET) String

func (x SCET) String() string

type SchedulerConfig

type SchedulerConfig struct {
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

调度器配置

func (*SchedulerConfig) Descriptor

func (*SchedulerConfig) Descriptor() ([]byte, []int)

func (*SchedulerConfig) GetEnableEvidence

func (m *SchedulerConfig) GetEnableEvidence() bool

func (*SchedulerConfig) Marshal

func (m *SchedulerConfig) Marshal() (dAtA []byte, err error)

func (*SchedulerConfig) MarshalTo

func (m *SchedulerConfig) MarshalTo(dAtA []byte) (int, error)

func (*SchedulerConfig) MarshalToSizedBuffer

func (m *SchedulerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SchedulerConfig) ProtoMessage

func (*SchedulerConfig) ProtoMessage()

func (*SchedulerConfig) Reset

func (m *SchedulerConfig) Reset()

func (*SchedulerConfig) Size

func (m *SchedulerConfig) Size() (n int)

func (*SchedulerConfig) String

func (m *SchedulerConfig) String() string

func (*SchedulerConfig) Unmarshal

func (m *SchedulerConfig) Unmarshal(dAtA []byte) error

func (*SchedulerConfig) XXX_DiscardUnknown

func (m *SchedulerConfig) XXX_DiscardUnknown()

func (*SchedulerConfig) XXX_Marshal

func (m *SchedulerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SchedulerConfig) XXX_Merge

func (m *SchedulerConfig) XXX_Merge(src proto.Message)

func (*SchedulerConfig) XXX_Size

func (m *SchedulerConfig) XXX_Size() int

func (*SchedulerConfig) XXX_Unmarshal

func (m *SchedulerConfig) XXX_Unmarshal(b []byte) error

type SerializeIntervalType

type SerializeIntervalType int32
const (
	// 定时序列化类型
	SerializeIntervalType_Height SerializeIntervalType = 0
	// 定时序列化类型
	SerializeIntervalType_Timed SerializeIntervalType = 1
	// 退出序列化类型
	SerializeIntervalType_Exit SerializeIntervalType = 2
)

func (SerializeIntervalType) EnumDescriptor

func (SerializeIntervalType) EnumDescriptor() ([]byte, []int)

func (SerializeIntervalType) String

func (x SerializeIntervalType) String() string

type SerializedBlock

type SerializedBlock struct {
	// 区块头
	Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 区块的交易执行顺序,由 DAG 描述
	Dag *DAG `protobuf:"bytes,2,opt,name=dag,proto3" json:"dag,omitempty"`
	// 区块内的交易标识列表
	TxIds []string `protobuf:"bytes,3,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
	// 区块附加数据,不包含在区块哈希计算中
	AdditionalData *AdditionalData `protobuf:"bytes,4,opt,name=additional_data,json=additionalData,proto3" json:"additional_data,omitempty"`
}

序列化中使用的块结构

func (*SerializedBlock) Descriptor

func (*SerializedBlock) Descriptor() ([]byte, []int)

func (*SerializedBlock) GetAdditionalData

func (m *SerializedBlock) GetAdditionalData() *AdditionalData

func (*SerializedBlock) GetDag

func (m *SerializedBlock) GetDag() *DAG

func (*SerializedBlock) GetHeader

func (m *SerializedBlock) GetHeader() *BlockHeader

func (*SerializedBlock) GetTxIds

func (m *SerializedBlock) GetTxIds() []string

func (*SerializedBlock) Marshal

func (m *SerializedBlock) Marshal() (dAtA []byte, err error)

func (*SerializedBlock) MarshalTo

func (m *SerializedBlock) MarshalTo(dAtA []byte) (int, error)

func (*SerializedBlock) MarshalToSizedBuffer

func (m *SerializedBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SerializedBlock) ProtoMessage

func (*SerializedBlock) ProtoMessage()

func (*SerializedBlock) Reset

func (m *SerializedBlock) Reset()

func (*SerializedBlock) Size

func (m *SerializedBlock) Size() (n int)

func (*SerializedBlock) String

func (m *SerializedBlock) String() string

func (*SerializedBlock) Unmarshal

func (m *SerializedBlock) Unmarshal(dAtA []byte) error

func (*SerializedBlock) XXX_DiscardUnknown

func (m *SerializedBlock) XXX_DiscardUnknown()

func (*SerializedBlock) XXX_Marshal

func (m *SerializedBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializedBlock) XXX_Merge

func (m *SerializedBlock) XXX_Merge(src proto.Message)

func (*SerializedBlock) XXX_Size

func (m *SerializedBlock) XXX_Size() int

func (*SerializedBlock) XXX_Unmarshal

func (m *SerializedBlock) XXX_Unmarshal(b []byte) error

type ShardingCuckooGroup

type ShardingCuckooGroup struct {
	Length uint32                     `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
	Height uint64                     `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Config *ShardingCuckooGroupConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
}

func (*ShardingCuckooGroup) Descriptor

func (*ShardingCuckooGroup) Descriptor() ([]byte, []int)

func (*ShardingCuckooGroup) GetConfig

func (*ShardingCuckooGroup) GetHeight

func (m *ShardingCuckooGroup) GetHeight() uint64

func (*ShardingCuckooGroup) GetLength

func (m *ShardingCuckooGroup) GetLength() uint32

func (*ShardingCuckooGroup) Marshal

func (m *ShardingCuckooGroup) Marshal() (dAtA []byte, err error)

func (*ShardingCuckooGroup) MarshalTo

func (m *ShardingCuckooGroup) MarshalTo(dAtA []byte) (int, error)

func (*ShardingCuckooGroup) MarshalToSizedBuffer

func (m *ShardingCuckooGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ShardingCuckooGroup) ProtoMessage

func (*ShardingCuckooGroup) ProtoMessage()

func (*ShardingCuckooGroup) Reset

func (m *ShardingCuckooGroup) Reset()

func (*ShardingCuckooGroup) Size

func (m *ShardingCuckooGroup) Size() (n int)

func (*ShardingCuckooGroup) String

func (m *ShardingCuckooGroup) String() string

func (*ShardingCuckooGroup) Unmarshal

func (m *ShardingCuckooGroup) Unmarshal(dAtA []byte) error

func (*ShardingCuckooGroup) XXX_DiscardUnknown

func (m *ShardingCuckooGroup) XXX_DiscardUnknown()

func (*ShardingCuckooGroup) XXX_Marshal

func (m *ShardingCuckooGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShardingCuckooGroup) XXX_Merge

func (m *ShardingCuckooGroup) XXX_Merge(src proto.Message)

func (*ShardingCuckooGroup) XXX_Size

func (m *ShardingCuckooGroup) XXX_Size() int

func (*ShardingCuckooGroup) XXX_Unmarshal

func (m *ShardingCuckooGroup) XXX_Unmarshal(b []byte) error

type ShardingCuckooGroupConfig

type ShardingCuckooGroupConfig struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Length  uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	// 分片任务超时
	Timeout     int64                     `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	CuckooGroup *CuckooGroupConfig        `protobuf:"bytes,4,opt,name=cuckoo_group,json=cuckooGroup,proto3" json:"cuckoo_group,omitempty"`
	Snapshot    *SnapshotSerializerConfig `protobuf:"bytes,5,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
}

func (*ShardingCuckooGroupConfig) Descriptor

func (*ShardingCuckooGroupConfig) Descriptor() ([]byte, []int)

func (*ShardingCuckooGroupConfig) GetChainId

func (m *ShardingCuckooGroupConfig) GetChainId() string

func (*ShardingCuckooGroupConfig) GetCuckooGroup

func (m *ShardingCuckooGroupConfig) GetCuckooGroup() *CuckooGroupConfig

func (*ShardingCuckooGroupConfig) GetLength

func (m *ShardingCuckooGroupConfig) GetLength() uint32

func (*ShardingCuckooGroupConfig) GetSnapshot

func (*ShardingCuckooGroupConfig) GetTimeout

func (m *ShardingCuckooGroupConfig) GetTimeout() int64

func (*ShardingCuckooGroupConfig) Marshal

func (m *ShardingCuckooGroupConfig) Marshal() (dAtA []byte, err error)

func (*ShardingCuckooGroupConfig) MarshalTo

func (m *ShardingCuckooGroupConfig) MarshalTo(dAtA []byte) (int, error)

func (*ShardingCuckooGroupConfig) MarshalToSizedBuffer

func (m *ShardingCuckooGroupConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ShardingCuckooGroupConfig) ProtoMessage

func (*ShardingCuckooGroupConfig) ProtoMessage()

func (*ShardingCuckooGroupConfig) Reset

func (m *ShardingCuckooGroupConfig) Reset()

func (*ShardingCuckooGroupConfig) Size

func (m *ShardingCuckooGroupConfig) Size() (n int)

func (*ShardingCuckooGroupConfig) String

func (m *ShardingCuckooGroupConfig) String() string

func (*ShardingCuckooGroupConfig) Unmarshal

func (m *ShardingCuckooGroupConfig) Unmarshal(dAtA []byte) error

func (*ShardingCuckooGroupConfig) XXX_DiscardUnknown

func (m *ShardingCuckooGroupConfig) XXX_DiscardUnknown()

func (*ShardingCuckooGroupConfig) XXX_Marshal

func (m *ShardingCuckooGroupConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShardingCuckooGroupConfig) XXX_Merge

func (m *ShardingCuckooGroupConfig) XXX_Merge(src proto.Message)

func (*ShardingCuckooGroupConfig) XXX_Size

func (m *ShardingCuckooGroupConfig) XXX_Size() int

func (*ShardingCuckooGroupConfig) XXX_Unmarshal

func (m *ShardingCuckooGroupConfig) XXX_Unmarshal(b []byte) error

type SignalType

type SignalType int32

SignalType 是交易事件类型

const (
	// 没交易
	SignalType_ST_NO_EVENT SignalType = 0
	// 新交易
	SignalType_ST_TRANSACTION_INCOME SignalType = 1
	// 打包区块块
	SignalType_ST_BLOCK_PROPOSE SignalType = 2
)

func (SignalType) EnumDescriptor

func (SignalType) EnumDescriptor() ([]byte, []int)

func (SignalType) String

func (x SignalType) String() string

type SnapshotConfig

type SnapshotConfig struct {
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

快照配置

func (*SnapshotConfig) Descriptor

func (*SnapshotConfig) Descriptor() ([]byte, []int)

func (*SnapshotConfig) GetEnableEvidence

func (m *SnapshotConfig) GetEnableEvidence() bool

func (*SnapshotConfig) Marshal

func (m *SnapshotConfig) Marshal() (dAtA []byte, err error)

func (*SnapshotConfig) MarshalTo

func (m *SnapshotConfig) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotConfig) MarshalToSizedBuffer

func (m *SnapshotConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotConfig) ProtoMessage

func (*SnapshotConfig) ProtoMessage()

func (*SnapshotConfig) Reset

func (m *SnapshotConfig) Reset()

func (*SnapshotConfig) Size

func (m *SnapshotConfig) Size() (n int)

func (*SnapshotConfig) String

func (m *SnapshotConfig) String() string

func (*SnapshotConfig) Unmarshal

func (m *SnapshotConfig) Unmarshal(dAtA []byte) error

func (*SnapshotConfig) XXX_DiscardUnknown

func (m *SnapshotConfig) XXX_DiscardUnknown()

func (*SnapshotConfig) XXX_Marshal

func (m *SnapshotConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotConfig) XXX_Merge

func (m *SnapshotConfig) XXX_Merge(src proto.Message)

func (*SnapshotConfig) XXX_Size

func (m *SnapshotConfig) XXX_Size() int

func (*SnapshotConfig) XXX_Unmarshal

func (m *SnapshotConfig) XXX_Unmarshal(b []byte) error

type SnapshotSerializerConfig

type SnapshotSerializerConfig struct {
	// 序列化类型
	Type        SerializeIntervalType               `protobuf:"varint,1,opt,name=type,proto3,enum=proto_go.SerializeIntervalType" json:"type,omitempty"`
	Timed       *TimedSerializeIntervalConfig       `protobuf:"bytes,2,opt,name=timed,proto3" json:"timed,omitempty"`
	BlockHeight *BlockHeightSerializeIntervalConfig `protobuf:"bytes,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 文件路径
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
}

快照序列化程序配置

func (*SnapshotSerializerConfig) Descriptor

func (*SnapshotSerializerConfig) Descriptor() ([]byte, []int)

func (*SnapshotSerializerConfig) GetBlockHeight

func (*SnapshotSerializerConfig) GetPath

func (m *SnapshotSerializerConfig) GetPath() string

func (*SnapshotSerializerConfig) GetTimed

func (*SnapshotSerializerConfig) GetType

func (*SnapshotSerializerConfig) Marshal

func (m *SnapshotSerializerConfig) Marshal() (dAtA []byte, err error)

func (*SnapshotSerializerConfig) MarshalTo

func (m *SnapshotSerializerConfig) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotSerializerConfig) MarshalToSizedBuffer

func (m *SnapshotSerializerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotSerializerConfig) ProtoMessage

func (*SnapshotSerializerConfig) ProtoMessage()

func (*SnapshotSerializerConfig) Reset

func (m *SnapshotSerializerConfig) Reset()

func (*SnapshotSerializerConfig) Size

func (m *SnapshotSerializerConfig) Size() (n int)

func (*SnapshotSerializerConfig) String

func (m *SnapshotSerializerConfig) String() string

func (*SnapshotSerializerConfig) Unmarshal

func (m *SnapshotSerializerConfig) Unmarshal(dAtA []byte) error

func (*SnapshotSerializerConfig) XXX_DiscardUnknown

func (m *SnapshotSerializerConfig) XXX_DiscardUnknown()

func (*SnapshotSerializerConfig) XXX_Marshal

func (m *SnapshotSerializerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotSerializerConfig) XXX_Merge

func (m *SnapshotSerializerConfig) XXX_Merge(src proto.Message)

func (*SnapshotSerializerConfig) XXX_Size

func (m *SnapshotSerializerConfig) XXX_Size() int

func (*SnapshotSerializerConfig) XXX_Unmarshal

func (m *SnapshotSerializerConfig) XXX_Unmarshal(b []byte) error

type Stat

type Stat struct {
	// 大于 0 的值表示 tx 过滤器中的误报,未来支持多笔交易
	FpCount uint32 `protobuf:"varint,1,opt,name=fp_count,json=fpCount,proto3" json:"fp_count,omitempty"`
	// 过滤查询时间
	FilterCosts int64 `protobuf:"varint,2,opt,name=filter_costs,json=filterCosts,proto3" json:"filter_costs,omitempty"`
	// 数据库查询时间
	DbCosts int64 `protobuf:"varint,3,opt,name=db_costs,json=dbCosts,proto3" json:"db_costs,omitempty"`
}

统计包含统计

func (*Stat) Descriptor

func (*Stat) Descriptor() ([]byte, []int)

func (*Stat) GetDbCosts

func (m *Stat) GetDbCosts() int64

func (*Stat) GetFilterCosts

func (m *Stat) GetFilterCosts() int64

func (*Stat) GetFpCount

func (m *Stat) GetFpCount() uint32

func (*Stat) Marshal

func (m *Stat) Marshal() (dAtA []byte, err error)

func (*Stat) MarshalTo

func (m *Stat) MarshalTo(dAtA []byte) (int, error)

func (*Stat) MarshalToSizedBuffer

func (m *Stat) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) Reset

func (m *Stat) Reset()

func (*Stat) Size

func (m *Stat) Size() (n int)

func (*Stat) String

func (m *Stat) String() string

func (*Stat) Unmarshal

func (m *Stat) Unmarshal(dAtA []byte) error

func (*Stat) XXX_DiscardUnknown

func (m *Stat) XXX_DiscardUnknown()

func (*Stat) XXX_Marshal

func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stat) XXX_Merge

func (m *Stat) XXX_Merge(src proto.Message)

func (*Stat) XXX_Size

func (m *Stat) XXX_Size() int

func (*Stat) XXX_Unmarshal

func (m *Stat) XXX_Unmarshal(b []byte) error

type StorageInfo

type StorageInfo struct {
	// 存储类型
	StorageType DataStorageType `protobuf:"varint,1,opt,name=storage_type,json=storageType,proto3,enum=proto_go.DataStorageType" json:"storage_type,omitempty"`
	// 文件名称
	FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	// 文件中的偏移量
	Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// 数据长度
	ByteLen uint64 `protobuf:"varint,4,opt,name=byte_len,json=byteLen,proto3" json:"byte_len,omitempty"`
}

存储数据信息

func (*StorageInfo) Descriptor

func (*StorageInfo) Descriptor() ([]byte, []int)

func (*StorageInfo) GetByteLen

func (m *StorageInfo) GetByteLen() uint64

func (*StorageInfo) GetFileName

func (m *StorageInfo) GetFileName() string

func (*StorageInfo) GetOffset

func (m *StorageInfo) GetOffset() uint64

func (*StorageInfo) GetStorageType

func (m *StorageInfo) GetStorageType() DataStorageType

func (*StorageInfo) Marshal

func (m *StorageInfo) Marshal() (dAtA []byte, err error)

func (*StorageInfo) MarshalTo

func (m *StorageInfo) MarshalTo(dAtA []byte) (int, error)

func (*StorageInfo) MarshalToSizedBuffer

func (m *StorageInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StorageInfo) ProtoMessage

func (*StorageInfo) ProtoMessage()

func (*StorageInfo) Reset

func (m *StorageInfo) Reset()

func (*StorageInfo) Size

func (m *StorageInfo) Size() (n int)

func (*StorageInfo) String

func (m *StorageInfo) String() string

func (*StorageInfo) Unmarshal

func (m *StorageInfo) Unmarshal(dAtA []byte) error

func (*StorageInfo) XXX_DiscardUnknown

func (m *StorageInfo) XXX_DiscardUnknown()

func (*StorageInfo) XXX_Marshal

func (m *StorageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageInfo) XXX_Merge

func (m *StorageInfo) XXX_Merge(src proto.Message)

func (*StorageInfo) XXX_Size

func (m *StorageInfo) XXX_Size() int

func (*StorageInfo) XXX_Unmarshal

func (m *StorageInfo) XXX_Unmarshal(b []byte) error

type StrSlice

type StrSlice struct {
	StrArr []string `protobuf:"bytes,1,rep,name=str_arr,json=strArr,proto3" json:"str_arr,omitempty"`
}

func (*StrSlice) Descriptor

func (*StrSlice) Descriptor() ([]byte, []int)

func (*StrSlice) GetStrArr

func (m *StrSlice) GetStrArr() []string

func (*StrSlice) Marshal

func (m *StrSlice) Marshal() (dAtA []byte, err error)

func (*StrSlice) MarshalTo

func (m *StrSlice) MarshalTo(dAtA []byte) (int, error)

func (*StrSlice) MarshalToSizedBuffer

func (m *StrSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StrSlice) ProtoMessage

func (*StrSlice) ProtoMessage()

func (*StrSlice) Reset

func (m *StrSlice) Reset()

func (*StrSlice) Size

func (m *StrSlice) Size() (n int)

func (*StrSlice) String

func (m *StrSlice) String() string

func (*StrSlice) Unmarshal

func (m *StrSlice) Unmarshal(dAtA []byte) error

func (*StrSlice) XXX_DiscardUnknown

func (m *StrSlice) XXX_DiscardUnknown()

func (*StrSlice) XXX_Marshal

func (m *StrSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StrSlice) XXX_Merge

func (m *StrSlice) XXX_Merge(src proto.Message)

func (*StrSlice) XXX_Size

func (m *StrSlice) XXX_Size() int

func (*StrSlice) XXX_Unmarshal

func (m *StrSlice) XXX_Unmarshal(b []byte) error

type SubscribeBlock

type SubscribeBlock struct {
}

订阅块净荷参数

func (*SubscribeBlock) Descriptor

func (*SubscribeBlock) Descriptor() ([]byte, []int)

func (*SubscribeBlock) Marshal

func (m *SubscribeBlock) Marshal() (dAtA []byte, err error)

func (*SubscribeBlock) MarshalTo

func (m *SubscribeBlock) MarshalTo(dAtA []byte) (int, error)

func (*SubscribeBlock) MarshalToSizedBuffer

func (m *SubscribeBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubscribeBlock) ProtoMessage

func (*SubscribeBlock) ProtoMessage()

func (*SubscribeBlock) Reset

func (m *SubscribeBlock) Reset()

func (*SubscribeBlock) Size

func (m *SubscribeBlock) Size() (n int)

func (*SubscribeBlock) String

func (m *SubscribeBlock) String() string

func (*SubscribeBlock) Unmarshal

func (m *SubscribeBlock) Unmarshal(dAtA []byte) error

func (*SubscribeBlock) XXX_DiscardUnknown

func (m *SubscribeBlock) XXX_DiscardUnknown()

func (*SubscribeBlock) XXX_Marshal

func (m *SubscribeBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeBlock) XXX_Merge

func (m *SubscribeBlock) XXX_Merge(src proto.Message)

func (*SubscribeBlock) XXX_Size

func (m *SubscribeBlock) XXX_Size() int

func (*SubscribeBlock) XXX_Unmarshal

func (m *SubscribeBlock) XXX_Unmarshal(b []byte) error

type SubscribeBlock_Parameter

type SubscribeBlock_Parameter int32
const (
	SubscribeBlock_START_BLOCK SubscribeBlock_Parameter = 0
	SubscribeBlock_END_BLOCK   SubscribeBlock_Parameter = 1
	SubscribeBlock_WITH_RWSET  SubscribeBlock_Parameter = 2
	SubscribeBlock_ONLY_HEADER SubscribeBlock_Parameter = 3
)

func (SubscribeBlock_Parameter) EnumDescriptor

func (SubscribeBlock_Parameter) EnumDescriptor() ([]byte, []int)

func (SubscribeBlock_Parameter) String

func (x SubscribeBlock_Parameter) String() string

type SubscribeContractEvent

type SubscribeContractEvent struct {
}

订阅合约事件参数

func (*SubscribeContractEvent) Descriptor

func (*SubscribeContractEvent) Descriptor() ([]byte, []int)

func (*SubscribeContractEvent) Marshal

func (m *SubscribeContractEvent) Marshal() (dAtA []byte, err error)

func (*SubscribeContractEvent) MarshalTo

func (m *SubscribeContractEvent) MarshalTo(dAtA []byte) (int, error)

func (*SubscribeContractEvent) MarshalToSizedBuffer

func (m *SubscribeContractEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubscribeContractEvent) ProtoMessage

func (*SubscribeContractEvent) ProtoMessage()

func (*SubscribeContractEvent) Reset

func (m *SubscribeContractEvent) Reset()

func (*SubscribeContractEvent) Size

func (m *SubscribeContractEvent) Size() (n int)

func (*SubscribeContractEvent) String

func (m *SubscribeContractEvent) String() string

func (*SubscribeContractEvent) Unmarshal

func (m *SubscribeContractEvent) Unmarshal(dAtA []byte) error

func (*SubscribeContractEvent) XXX_DiscardUnknown

func (m *SubscribeContractEvent) XXX_DiscardUnknown()

func (*SubscribeContractEvent) XXX_Marshal

func (m *SubscribeContractEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeContractEvent) XXX_Merge

func (m *SubscribeContractEvent) XXX_Merge(src proto.Message)

func (*SubscribeContractEvent) XXX_Size

func (m *SubscribeContractEvent) XXX_Size() int

func (*SubscribeContractEvent) XXX_Unmarshal

func (m *SubscribeContractEvent) XXX_Unmarshal(b []byte) error

type SubscribeContractEvent_Parameter

type SubscribeContractEvent_Parameter int32
const (
	SubscribeContractEvent_TOPIC         SubscribeContractEvent_Parameter = 0
	SubscribeContractEvent_CONTRACT_NAME SubscribeContractEvent_Parameter = 1
	SubscribeContractEvent_START_BLOCK   SubscribeContractEvent_Parameter = 2
	SubscribeContractEvent_END_BLOCK     SubscribeContractEvent_Parameter = 3
)

func (SubscribeContractEvent_Parameter) EnumDescriptor

func (SubscribeContractEvent_Parameter) EnumDescriptor() ([]byte, []int)

func (SubscribeContractEvent_Parameter) String

type SubscribeFunction

type SubscribeFunction int32

订阅方法

const (
	SubscribeFunction_SUBSCRIBE_BLOCK          SubscribeFunction = 0
	SubscribeFunction_SUBSCRIBE_TX             SubscribeFunction = 1
	SubscribeFunction_SUBSCRIBE_CONTRACT_EVENT SubscribeFunction = 2
)

func (SubscribeFunction) EnumDescriptor

func (SubscribeFunction) EnumDescriptor() ([]byte, []int)

func (SubscribeFunction) String

func (x SubscribeFunction) String() string

type SubscribeResult

type SubscribeResult struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*SubscribeResult) Descriptor

func (*SubscribeResult) Descriptor() ([]byte, []int)

func (*SubscribeResult) GetData

func (m *SubscribeResult) GetData() []byte

func (*SubscribeResult) Marshal

func (m *SubscribeResult) Marshal() (dAtA []byte, err error)

func (*SubscribeResult) MarshalTo

func (m *SubscribeResult) MarshalTo(dAtA []byte) (int, error)

func (*SubscribeResult) MarshalToSizedBuffer

func (m *SubscribeResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubscribeResult) ProtoMessage

func (*SubscribeResult) ProtoMessage()

func (*SubscribeResult) Reset

func (m *SubscribeResult) Reset()

func (*SubscribeResult) Size

func (m *SubscribeResult) Size() (n int)

func (*SubscribeResult) String

func (m *SubscribeResult) String() string

func (*SubscribeResult) Unmarshal

func (m *SubscribeResult) Unmarshal(dAtA []byte) error

func (*SubscribeResult) XXX_DiscardUnknown

func (m *SubscribeResult) XXX_DiscardUnknown()

func (*SubscribeResult) XXX_Marshal

func (m *SubscribeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeResult) XXX_Merge

func (m *SubscribeResult) XXX_Merge(src proto.Message)

func (*SubscribeResult) XXX_Size

func (m *SubscribeResult) XXX_Size() int

func (*SubscribeResult) XXX_Unmarshal

func (m *SubscribeResult) XXX_Unmarshal(b []byte) error

type SubscribeTx

type SubscribeTx struct {
}

订阅交易净荷参数

func (*SubscribeTx) Descriptor

func (*SubscribeTx) Descriptor() ([]byte, []int)

func (*SubscribeTx) Marshal

func (m *SubscribeTx) Marshal() (dAtA []byte, err error)

func (*SubscribeTx) MarshalTo

func (m *SubscribeTx) MarshalTo(dAtA []byte) (int, error)

func (*SubscribeTx) MarshalToSizedBuffer

func (m *SubscribeTx) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SubscribeTx) ProtoMessage

func (*SubscribeTx) ProtoMessage()

func (*SubscribeTx) Reset

func (m *SubscribeTx) Reset()

func (*SubscribeTx) Size

func (m *SubscribeTx) Size() (n int)

func (*SubscribeTx) String

func (m *SubscribeTx) String() string

func (*SubscribeTx) Unmarshal

func (m *SubscribeTx) Unmarshal(dAtA []byte) error

func (*SubscribeTx) XXX_DiscardUnknown

func (m *SubscribeTx) XXX_DiscardUnknown()

func (*SubscribeTx) XXX_Marshal

func (m *SubscribeTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeTx) XXX_Merge

func (m *SubscribeTx) XXX_Merge(src proto.Message)

func (*SubscribeTx) XXX_Size

func (m *SubscribeTx) XXX_Size() int

func (*SubscribeTx) XXX_Unmarshal

func (m *SubscribeTx) XXX_Unmarshal(b []byte) error

type SubscribeTx_Parameter

type SubscribeTx_Parameter int32
const (
	SubscribeTx_START_BLOCK   SubscribeTx_Parameter = 0
	SubscribeTx_END_BLOCK     SubscribeTx_Parameter = 1
	SubscribeTx_CONTRACT_NAME SubscribeTx_Parameter = 2
	SubscribeTx_TX_IDS        SubscribeTx_Parameter = 3
)

func (SubscribeTx_Parameter) EnumDescriptor

func (SubscribeTx_Parameter) EnumDescriptor() ([]byte, []int)

func (SubscribeTx_Parameter) String

func (x SubscribeTx_Parameter) String() string

type SyncBlockBatch

type SyncBlockBatch struct {
	// Types that are valid to be assigned to Data:
	//	*SyncBlockBatch_BlockBatch
	//	*SyncBlockBatch_BlockinfoBatch
	Data      isSyncBlockBatch_Data `protobuf_oneof:"data"`
	WithRwset bool                  `protobuf:"varint,3,opt,name=with_rwset,json=withRwset,proto3" json:"with_rwset,omitempty"`
}

块响应消息

func (*SyncBlockBatch) Descriptor

func (*SyncBlockBatch) Descriptor() ([]byte, []int)

func (*SyncBlockBatch) GetBlockBatch

func (m *SyncBlockBatch) GetBlockBatch() *BlockBatch

func (*SyncBlockBatch) GetBlockinfoBatch

func (m *SyncBlockBatch) GetBlockinfoBatch() *BlockInfoBatch

func (*SyncBlockBatch) GetData

func (m *SyncBlockBatch) GetData() isSyncBlockBatch_Data

func (*SyncBlockBatch) GetWithRwset

func (m *SyncBlockBatch) GetWithRwset() bool

func (*SyncBlockBatch) Marshal

func (m *SyncBlockBatch) Marshal() (dAtA []byte, err error)

func (*SyncBlockBatch) MarshalTo

func (m *SyncBlockBatch) MarshalTo(dAtA []byte) (int, error)

func (*SyncBlockBatch) MarshalToSizedBuffer

func (m *SyncBlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncBlockBatch) ProtoMessage

func (*SyncBlockBatch) ProtoMessage()

func (*SyncBlockBatch) Reset

func (m *SyncBlockBatch) Reset()

func (*SyncBlockBatch) Size

func (m *SyncBlockBatch) Size() (n int)

func (*SyncBlockBatch) String

func (m *SyncBlockBatch) String() string

func (*SyncBlockBatch) Unmarshal

func (m *SyncBlockBatch) Unmarshal(dAtA []byte) error

func (*SyncBlockBatch) XXX_DiscardUnknown

func (m *SyncBlockBatch) XXX_DiscardUnknown()

func (*SyncBlockBatch) XXX_Marshal

func (m *SyncBlockBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncBlockBatch) XXX_Merge

func (m *SyncBlockBatch) XXX_Merge(src proto.Message)

func (*SyncBlockBatch) XXX_OneofWrappers

func (*SyncBlockBatch) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SyncBlockBatch) XXX_Size

func (m *SyncBlockBatch) XXX_Size() int

func (*SyncBlockBatch) XXX_Unmarshal

func (m *SyncBlockBatch) XXX_Unmarshal(b []byte) error

type SyncBlockBatch_BlockBatch

type SyncBlockBatch_BlockBatch struct {
	BlockBatch *BlockBatch `protobuf:"bytes,1,opt,name=block_batch,json=blockBatch,proto3,oneof" json:"block_batch,omitempty"`
}

func (*SyncBlockBatch_BlockBatch) MarshalTo

func (m *SyncBlockBatch_BlockBatch) MarshalTo(dAtA []byte) (int, error)

func (*SyncBlockBatch_BlockBatch) MarshalToSizedBuffer

func (m *SyncBlockBatch_BlockBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncBlockBatch_BlockBatch) Size

func (m *SyncBlockBatch_BlockBatch) Size() (n int)

type SyncBlockBatch_BlockinfoBatch

type SyncBlockBatch_BlockinfoBatch struct {
	BlockinfoBatch *BlockInfoBatch `protobuf:"bytes,2,opt,name=blockinfo_batch,json=blockinfoBatch,proto3,oneof" json:"blockinfo_batch,omitempty"`
}

func (*SyncBlockBatch_BlockinfoBatch) MarshalTo

func (m *SyncBlockBatch_BlockinfoBatch) MarshalTo(dAtA []byte) (int, error)

func (*SyncBlockBatch_BlockinfoBatch) MarshalToSizedBuffer

func (m *SyncBlockBatch_BlockinfoBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncBlockBatch_BlockinfoBatch) Size

func (m *SyncBlockBatch_BlockinfoBatch) Size() (n int)

type SyncMessage

type SyncMessage struct {
	// 同步消息类型
	Type SyncMessage_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=proto_go.SyncMessage_MessageType" json:"type,omitempty"`
	// 消息净荷
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

同步模块的网络消息

func (*SyncMessage) Descriptor

func (*SyncMessage) Descriptor() ([]byte, []int)

func (*SyncMessage) GetPayload

func (m *SyncMessage) GetPayload() []byte

func (*SyncMessage) GetType

func (m *SyncMessage) GetType() SyncMessage_MessageType

func (*SyncMessage) Marshal

func (m *SyncMessage) Marshal() (dAtA []byte, err error)

func (*SyncMessage) MarshalTo

func (m *SyncMessage) MarshalTo(dAtA []byte) (int, error)

func (*SyncMessage) MarshalToSizedBuffer

func (m *SyncMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncMessage) ProtoMessage

func (*SyncMessage) ProtoMessage()

func (*SyncMessage) Reset

func (m *SyncMessage) Reset()

func (*SyncMessage) Size

func (m *SyncMessage) Size() (n int)

func (*SyncMessage) String

func (m *SyncMessage) String() string

func (*SyncMessage) Unmarshal

func (m *SyncMessage) Unmarshal(dAtA []byte) error

func (*SyncMessage) XXX_DiscardUnknown

func (m *SyncMessage) XXX_DiscardUnknown()

func (*SyncMessage) XXX_Marshal

func (m *SyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncMessage) XXX_Merge

func (m *SyncMessage) XXX_Merge(src proto.Message)

func (*SyncMessage) XXX_Size

func (m *SyncMessage) XXX_Size() int

func (*SyncMessage) XXX_Unmarshal

func (m *SyncMessage) XXX_Unmarshal(b []byte) error

type SyncMessage_MessageType

type SyncMessage_MessageType int32

特定的同步块消息类型

const (
	SyncMessage_NODE_STATUS_REQUEST  SyncMessage_MessageType = 0
	SyncMessage_NODE_STATUS_RESPONSE SyncMessage_MessageType = 1
	SyncMessage_BLOCK_SYNC_REQUEST   SyncMessage_MessageType = 2
	SyncMessage_BLOCK_SYNC_RESPONSE  SyncMessage_MessageType = 3
)

func (SyncMessage_MessageType) EnumDescriptor

func (SyncMessage_MessageType) EnumDescriptor() ([]byte, []int)

func (SyncMessage_MessageType) String

func (x SyncMessage_MessageType) String() string

type SystemContract

type SystemContract int32
const (
	// 系统链配置合约,用于添加、删除和更改链配置
	SystemContract_CHAIN_CONFIG SystemContract = 0
	// 系统链查询合约用于查询链上配置
	SystemContract_CHAIN_QUERY SystemContract = 1
	// 用于管理证书的系统证书存储合约
	SystemContract_CERT_MANAGE SystemContract = 2
	// 治理合约
	SystemContract_GOVERNANCE SystemContract = 3
	// 链上多签合约
	SystemContract_MULTI_SIGN SystemContract = 4
	// 管理用户合约
	SystemContract_CONTRACT_MANAGE SystemContract = 5
	// DPoS 的 erc20 合约
	SystemContract_DPOS_ERC20 SystemContract = 6
	// dpos的股权合约
	SystemContract_DPOS_STAKE SystemContract = 7
	// 订阅区块信息、交易信息和合约信息
	SystemContract_SUBSCRIBE_MANAGE SystemContract = 8
	// 存档/恢复块
	SystemContract_ARCHIVE_MANAGE SystemContract = 9
	// 跨链交易系统合约
	SystemContract_CROSS_TRANSACTION SystemContract = 10
	// pubkey 管理系统合约
	SystemContract_PUBKEY_MANAGE SystemContract = 11
	// 客户经理系统合同
	SystemContract_ACCOUNT_MANAGER SystemContract = 12
	// 用于测试或调试合约代码
	SystemContract_T SystemContract = 99
)

func (SystemContract) EnumDescriptor

func (SystemContract) EnumDescriptor() ([]byte, []int)

func (SystemContract) String

func (x SystemContract) String() string

type TestContractFunction

type TestContractFunction int32

链查询合约方法

const (
	// put 数据,参数:k,v
	TestContractFunction_P TestContractFunction = 0
	// get 数据,参数:k
	TestContractFunction_G TestContractFunction = 1
	// 什么都不做
	TestContractFunction_N TestContractFunction = 2
	// 按键删除数据,参数:k
	TestContractFunction_D TestContractFunction = 3
)

func (TestContractFunction) EnumDescriptor

func (TestContractFunction) EnumDescriptor() ([]byte, []int)

func (TestContractFunction) String

func (x TestContractFunction) String() string

type TimedSerializeIntervalConfig

type TimedSerializeIntervalConfig struct {
	Interval uint64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
}

定时序列化间隔

func (*TimedSerializeIntervalConfig) Descriptor

func (*TimedSerializeIntervalConfig) Descriptor() ([]byte, []int)

func (*TimedSerializeIntervalConfig) GetInterval

func (m *TimedSerializeIntervalConfig) GetInterval() uint64

func (*TimedSerializeIntervalConfig) Marshal

func (m *TimedSerializeIntervalConfig) Marshal() (dAtA []byte, err error)

func (*TimedSerializeIntervalConfig) MarshalTo

func (m *TimedSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)

func (*TimedSerializeIntervalConfig) MarshalToSizedBuffer

func (m *TimedSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TimedSerializeIntervalConfig) ProtoMessage

func (*TimedSerializeIntervalConfig) ProtoMessage()

func (*TimedSerializeIntervalConfig) Reset

func (m *TimedSerializeIntervalConfig) Reset()

func (*TimedSerializeIntervalConfig) Size

func (m *TimedSerializeIntervalConfig) Size() (n int)

func (*TimedSerializeIntervalConfig) String

func (*TimedSerializeIntervalConfig) Unmarshal

func (m *TimedSerializeIntervalConfig) Unmarshal(dAtA []byte) error

func (*TimedSerializeIntervalConfig) XXX_DiscardUnknown

func (m *TimedSerializeIntervalConfig) XXX_DiscardUnknown()

func (*TimedSerializeIntervalConfig) XXX_Marshal

func (m *TimedSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimedSerializeIntervalConfig) XXX_Merge

func (m *TimedSerializeIntervalConfig) XXX_Merge(src proto.Message)

func (*TimedSerializeIntervalConfig) XXX_Size

func (m *TimedSerializeIntervalConfig) XXX_Size() int

func (*TimedSerializeIntervalConfig) XXX_Unmarshal

func (m *TimedSerializeIntervalConfig) XXX_Unmarshal(b []byte) error

type Transaction

type Transaction struct {
	// 净荷
	Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// 发件人帐户和签名
	Sender *EndorsementEntry `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// 背书人账户和签名
	Endorsers []*EndorsementEntry `protobuf:"bytes,3,rep,name=endorsers,proto3" json:"endorsers,omitempty"`
	// 交易结果
	Result *Result `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
}

事务包括请求及其结果

func (*Transaction) Descriptor

func (*Transaction) Descriptor() ([]byte, []int)

func (*Transaction) GetEndorsers

func (m *Transaction) GetEndorsers() []*EndorsementEntry

func (*Transaction) GetPayload

func (m *Transaction) GetPayload() *Payload

func (*Transaction) GetResult

func (m *Transaction) GetResult() *Result

func (*Transaction) GetSender

func (m *Transaction) GetSender() *EndorsementEntry

func (*Transaction) GetSenderAccountId

func (t *Transaction) GetSenderAccountId() []byte

GetSenderAccountId 获得交易的发起人的唯一账户标识,这个标识如果大于200字节,则返回的是SHA256 Hash

func (*Transaction) Marshal

func (m *Transaction) Marshal() (dAtA []byte, err error)

func (*Transaction) MarshalTo

func (m *Transaction) MarshalTo(dAtA []byte) (int, error)

func (*Transaction) MarshalToSizedBuffer

func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

func (m *Transaction) Size() (n int)

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

func (m *Transaction) Unmarshal(dAtA []byte) error

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type TransactionInfo

type TransactionInfo struct {
	// 交易原始数据
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 区块哈希
	BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// 交易索引
	TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
	// 区块时间戳
	BlockTimestamp int64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"`
}

交易信息包括交易及其区块高度哈希和交易索引

func (*TransactionInfo) Descriptor

func (*TransactionInfo) Descriptor() ([]byte, []int)

func (*TransactionInfo) GetBlockHash

func (m *TransactionInfo) GetBlockHash() []byte

func (*TransactionInfo) GetBlockHeight

func (m *TransactionInfo) GetBlockHeight() uint64

func (*TransactionInfo) GetBlockTimestamp

func (m *TransactionInfo) GetBlockTimestamp() int64

func (*TransactionInfo) GetTransaction

func (m *TransactionInfo) GetTransaction() *Transaction

func (*TransactionInfo) GetTxIndex

func (m *TransactionInfo) GetTxIndex() uint32

func (*TransactionInfo) Marshal

func (m *TransactionInfo) Marshal() (dAtA []byte, err error)

func (*TransactionInfo) MarshalTo

func (m *TransactionInfo) MarshalTo(dAtA []byte) (int, error)

func (*TransactionInfo) MarshalToSizedBuffer

func (m *TransactionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionInfo) ProtoMessage

func (*TransactionInfo) ProtoMessage()

func (*TransactionInfo) Reset

func (m *TransactionInfo) Reset()

func (*TransactionInfo) Size

func (m *TransactionInfo) Size() (n int)

func (*TransactionInfo) String

func (m *TransactionInfo) String() string

func (*TransactionInfo) Unmarshal

func (m *TransactionInfo) Unmarshal(dAtA []byte) error

func (*TransactionInfo) XXX_DiscardUnknown

func (m *TransactionInfo) XXX_DiscardUnknown()

func (*TransactionInfo) XXX_Marshal

func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionInfo) XXX_Merge

func (m *TransactionInfo) XXX_Merge(src proto.Message)

func (*TransactionInfo) XXX_Size

func (m *TransactionInfo) XXX_Size() int

func (*TransactionInfo) XXX_Unmarshal

func (m *TransactionInfo) XXX_Unmarshal(b []byte) error

type TransactionInfoWithRWSet

type TransactionInfoWithRWSet struct {
	// 交易原始数据
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 区块哈希
	BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// 交易索引
	TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
	// 区块时间戳
	BlockTimestamp int64    `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"`
	RwSet          *TxRWSet `protobuf:"bytes,6,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"`
}

func (*TransactionInfoWithRWSet) Descriptor

func (*TransactionInfoWithRWSet) Descriptor() ([]byte, []int)

func (*TransactionInfoWithRWSet) GetBlockHash

func (m *TransactionInfoWithRWSet) GetBlockHash() []byte

func (*TransactionInfoWithRWSet) GetBlockHeight

func (m *TransactionInfoWithRWSet) GetBlockHeight() uint64

func (*TransactionInfoWithRWSet) GetBlockTimestamp

func (m *TransactionInfoWithRWSet) GetBlockTimestamp() int64

func (*TransactionInfoWithRWSet) GetRwSet

func (m *TransactionInfoWithRWSet) GetRwSet() *TxRWSet

func (*TransactionInfoWithRWSet) GetTransaction

func (m *TransactionInfoWithRWSet) GetTransaction() *Transaction

func (*TransactionInfoWithRWSet) GetTxIndex

func (m *TransactionInfoWithRWSet) GetTxIndex() uint32

func (*TransactionInfoWithRWSet) Marshal

func (m *TransactionInfoWithRWSet) Marshal() (dAtA []byte, err error)

func (*TransactionInfoWithRWSet) MarshalTo

func (m *TransactionInfoWithRWSet) MarshalTo(dAtA []byte) (int, error)

func (*TransactionInfoWithRWSet) MarshalToSizedBuffer

func (m *TransactionInfoWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionInfoWithRWSet) ProtoMessage

func (*TransactionInfoWithRWSet) ProtoMessage()

func (*TransactionInfoWithRWSet) Reset

func (m *TransactionInfoWithRWSet) Reset()

func (*TransactionInfoWithRWSet) Size

func (m *TransactionInfoWithRWSet) Size() (n int)

func (*TransactionInfoWithRWSet) String

func (m *TransactionInfoWithRWSet) String() string

func (*TransactionInfoWithRWSet) Unmarshal

func (m *TransactionInfoWithRWSet) Unmarshal(dAtA []byte) error

func (*TransactionInfoWithRWSet) XXX_DiscardUnknown

func (m *TransactionInfoWithRWSet) XXX_DiscardUnknown()

func (*TransactionInfoWithRWSet) XXX_Marshal

func (m *TransactionInfoWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionInfoWithRWSet) XXX_Merge

func (m *TransactionInfoWithRWSet) XXX_Merge(src proto.Message)

func (*TransactionInfoWithRWSet) XXX_Size

func (m *TransactionInfoWithRWSet) XXX_Size() int

func (*TransactionInfoWithRWSet) XXX_Unmarshal

func (m *TransactionInfoWithRWSet) XXX_Unmarshal(b []byte) error

type TransactionStorageInfo

type TransactionStorageInfo struct {
	// 交易原始数据
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// 区块高度
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// 区块哈希
	BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// 交易索引
	TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
	// 区块时间戳
	BlockTimestamp int64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"`
	// 文件中的事务偏移索引
	TransactionStorageInfo *StorageInfo `` /* 129-byte string literal not displayed */
}

交易信息包括交易及其区块高度哈希和交易索引

func (*TransactionStorageInfo) Descriptor

func (*TransactionStorageInfo) Descriptor() ([]byte, []int)

func (*TransactionStorageInfo) GetBlockHash

func (m *TransactionStorageInfo) GetBlockHash() []byte

func (*TransactionStorageInfo) GetBlockHeight

func (m *TransactionStorageInfo) GetBlockHeight() uint64

func (*TransactionStorageInfo) GetBlockTimestamp

func (m *TransactionStorageInfo) GetBlockTimestamp() int64

func (*TransactionStorageInfo) GetTransaction

func (m *TransactionStorageInfo) GetTransaction() *Transaction

func (*TransactionStorageInfo) GetTransactionStorageInfo

func (m *TransactionStorageInfo) GetTransactionStorageInfo() *StorageInfo

func (*TransactionStorageInfo) GetTxIndex

func (m *TransactionStorageInfo) GetTxIndex() uint32

func (*TransactionStorageInfo) Marshal

func (m *TransactionStorageInfo) Marshal() (dAtA []byte, err error)

func (*TransactionStorageInfo) MarshalTo

func (m *TransactionStorageInfo) MarshalTo(dAtA []byte) (int, error)

func (*TransactionStorageInfo) MarshalToSizedBuffer

func (m *TransactionStorageInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionStorageInfo) ProtoMessage

func (*TransactionStorageInfo) ProtoMessage()

func (*TransactionStorageInfo) Reset

func (m *TransactionStorageInfo) Reset()

func (*TransactionStorageInfo) Size

func (m *TransactionStorageInfo) Size() (n int)

func (*TransactionStorageInfo) String

func (m *TransactionStorageInfo) String() string

func (*TransactionStorageInfo) Unmarshal

func (m *TransactionStorageInfo) Unmarshal(dAtA []byte) error

func (*TransactionStorageInfo) XXX_DiscardUnknown

func (m *TransactionStorageInfo) XXX_DiscardUnknown()

func (*TransactionStorageInfo) XXX_Marshal

func (m *TransactionStorageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionStorageInfo) XXX_Merge

func (m *TransactionStorageInfo) XXX_Merge(src proto.Message)

func (*TransactionStorageInfo) XXX_Size

func (m *TransactionStorageInfo) XXX_Size() int

func (*TransactionStorageInfo) XXX_Unmarshal

func (m *TransactionStorageInfo) XXX_Unmarshal(b []byte) error

type TransactionWithRWSet

type TransactionWithRWSet struct {
	// 交易原始数据
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	RwSet       *TxRWSet     `protobuf:"bytes,2,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"`
}

事务和读写集

func (*TransactionWithRWSet) Descriptor

func (*TransactionWithRWSet) Descriptor() ([]byte, []int)

func (*TransactionWithRWSet) GetRwSet

func (m *TransactionWithRWSet) GetRwSet() *TxRWSet

func (*TransactionWithRWSet) GetTransaction

func (m *TransactionWithRWSet) GetTransaction() *Transaction

func (*TransactionWithRWSet) Marshal

func (m *TransactionWithRWSet) Marshal() (dAtA []byte, err error)

func (*TransactionWithRWSet) MarshalTo

func (m *TransactionWithRWSet) MarshalTo(dAtA []byte) (int, error)

func (*TransactionWithRWSet) MarshalToSizedBuffer

func (m *TransactionWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransactionWithRWSet) ProtoMessage

func (*TransactionWithRWSet) ProtoMessage()

func (*TransactionWithRWSet) Reset

func (m *TransactionWithRWSet) Reset()

func (*TransactionWithRWSet) Size

func (m *TransactionWithRWSet) Size() (n int)

func (*TransactionWithRWSet) String

func (m *TransactionWithRWSet) String() string

func (*TransactionWithRWSet) Unmarshal

func (m *TransactionWithRWSet) Unmarshal(dAtA []byte) error

func (*TransactionWithRWSet) XXX_DiscardUnknown

func (m *TransactionWithRWSet) XXX_DiscardUnknown()

func (*TransactionWithRWSet) XXX_Marshal

func (m *TransactionWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionWithRWSet) XXX_Merge

func (m *TransactionWithRWSet) XXX_Merge(src proto.Message)

func (*TransactionWithRWSet) XXX_Size

func (m *TransactionWithRWSet) XXX_Size() int

func (*TransactionWithRWSet) XXX_Unmarshal

func (m *TransactionWithRWSet) XXX_Unmarshal(b []byte) error

type TrustParticipantConfig

type TrustParticipantConfig struct {
	// 参与者信息
	ParticipantInfo string `protobuf:"bytes,1,opt,name=participant_info,json=participantInfo,proto3" json:"participant_info,omitempty"`
	// 参与者所属组织 ID
	OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// 角色
	Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	// 节点 ID
	NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
}

信任的参与者配置

func (*TrustParticipantConfig) Descriptor

func (*TrustParticipantConfig) Descriptor() ([]byte, []int)

func (*TrustParticipantConfig) GetNodeId

func (m *TrustParticipantConfig) GetNodeId() string

func (*TrustParticipantConfig) GetOrganizationId

func (m *TrustParticipantConfig) GetOrganizationId() string

func (*TrustParticipantConfig) GetParticipantInfo

func (m *TrustParticipantConfig) GetParticipantInfo() string

func (*TrustParticipantConfig) GetRole

func (m *TrustParticipantConfig) GetRole() string

func (*TrustParticipantConfig) Marshal

func (m *TrustParticipantConfig) Marshal() (dAtA []byte, err error)

func (*TrustParticipantConfig) MarshalTo

func (m *TrustParticipantConfig) MarshalTo(dAtA []byte) (int, error)

func (*TrustParticipantConfig) MarshalToSizedBuffer

func (m *TrustParticipantConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrustParticipantConfig) ProtoMessage

func (*TrustParticipantConfig) ProtoMessage()

func (*TrustParticipantConfig) Reset

func (m *TrustParticipantConfig) Reset()

func (*TrustParticipantConfig) Size

func (m *TrustParticipantConfig) Size() (n int)

func (*TrustParticipantConfig) String

func (m *TrustParticipantConfig) String() string

func (*TrustParticipantConfig) Unmarshal

func (m *TrustParticipantConfig) Unmarshal(dAtA []byte) error

func (*TrustParticipantConfig) XXX_DiscardUnknown

func (m *TrustParticipantConfig) XXX_DiscardUnknown()

func (*TrustParticipantConfig) XXX_Marshal

func (m *TrustParticipantConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrustParticipantConfig) XXX_Merge

func (m *TrustParticipantConfig) XXX_Merge(src proto.Message)

func (*TrustParticipantConfig) XXX_Size

func (m *TrustParticipantConfig) XXX_Size() int

func (*TrustParticipantConfig) XXX_Unmarshal

func (m *TrustParticipantConfig) XXX_Unmarshal(b []byte) error

type TrustRootConfig

type TrustRootConfig struct {
	// 组织ID
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// 根证书/公钥
	Roots []string `protobuf:"bytes,2,rep,name=roots,proto3" json:"roots,omitempty"`
}

可信根相关配置

func (*TrustRootConfig) Descriptor

func (*TrustRootConfig) Descriptor() ([]byte, []int)

func (*TrustRootConfig) GetOrganizationId

func (m *TrustRootConfig) GetOrganizationId() string

func (*TrustRootConfig) GetRoots

func (m *TrustRootConfig) GetRoots() []string

func (*TrustRootConfig) Marshal

func (m *TrustRootConfig) Marshal() (dAtA []byte, err error)

func (*TrustRootConfig) MarshalTo

func (m *TrustRootConfig) MarshalTo(dAtA []byte) (int, error)

func (*TrustRootConfig) MarshalToSizedBuffer

func (m *TrustRootConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrustRootConfig) ProtoMessage

func (*TrustRootConfig) ProtoMessage()

func (*TrustRootConfig) Reset

func (m *TrustRootConfig) Reset()

func (*TrustRootConfig) Size

func (m *TrustRootConfig) Size() (n int)

func (*TrustRootConfig) String

func (m *TrustRootConfig) String() string

func (*TrustRootConfig) Unmarshal

func (m *TrustRootConfig) Unmarshal(dAtA []byte) error

func (*TrustRootConfig) XXX_DiscardUnknown

func (m *TrustRootConfig) XXX_DiscardUnknown()

func (*TrustRootConfig) XXX_Marshal

func (m *TrustRootConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrustRootConfig) XXX_Merge

func (m *TrustRootConfig) XXX_Merge(src proto.Message)

func (*TrustRootConfig) XXX_Size

func (m *TrustRootConfig) XXX_Size() int

func (*TrustRootConfig) XXX_Unmarshal

func (m *TrustRootConfig) XXX_Unmarshal(b []byte) error

type TxBatch

type TxBatch struct {
	// 批次Id = timestamp(8byte)+nodeId(8byte)+batchHash(8byte)
	BatchId string `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// 批次大小
	Size_ int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	// 交易列表
	Txs []*Transaction `protobuf:"bytes,4,rep,name=txs,proto3" json:"txs,omitempty"`
	// map:交易ID映射记录(key:交易ID,value:tcs中的交易索引)
	TxIdsMap map[string]int32 `` /* 176-byte string literal not displayed */
	// 批签名
	Endorsement *EndorsementEntry `protobuf:"bytes,6,opt,name=endorsement,proto3" json:"endorsement,omitempty"`
}

交易批处理,用于高效添加交易

func (*TxBatch) Descriptor

func (*TxBatch) Descriptor() ([]byte, []int)

func (*TxBatch) GetBatchId

func (m *TxBatch) GetBatchId() string

func (*TxBatch) GetEndorsement

func (m *TxBatch) GetEndorsement() *EndorsementEntry

func (*TxBatch) GetSize_

func (m *TxBatch) GetSize_() int32

func (*TxBatch) GetTxIdsMap

func (m *TxBatch) GetTxIdsMap() map[string]int32

func (*TxBatch) GetTxs

func (m *TxBatch) GetTxs() []*Transaction

func (*TxBatch) Marshal

func (m *TxBatch) Marshal() (dAtA []byte, err error)

func (*TxBatch) MarshalTo

func (m *TxBatch) MarshalTo(dAtA []byte) (int, error)

func (*TxBatch) MarshalToSizedBuffer

func (m *TxBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxBatch) ProtoMessage

func (*TxBatch) ProtoMessage()

func (*TxBatch) Reset

func (m *TxBatch) Reset()

func (*TxBatch) Size

func (m *TxBatch) Size() (n int)

func (*TxBatch) String

func (m *TxBatch) String() string

func (*TxBatch) Unmarshal

func (m *TxBatch) Unmarshal(dAtA []byte) error

func (*TxBatch) XXX_DiscardUnknown

func (m *TxBatch) XXX_DiscardUnknown()

func (*TxBatch) XXX_Marshal

func (m *TxBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxBatch) XXX_Merge

func (m *TxBatch) XXX_Merge(src proto.Message)

func (*TxBatch) XXX_Size

func (m *TxBatch) XXX_Size() int

func (*TxBatch) XXX_Unmarshal

func (m *TxBatch) XXX_Unmarshal(b []byte) error

type TxBatchInfo

type TxBatchInfo struct {
	BatchIds []string `protobuf:"bytes,1,rep,name=batch_ids,json=batchIds,proto3" json:"batch_ids,omitempty"`
	Index    []uint32 `protobuf:"varint,2,rep,packed,name=index,proto3" json:"index,omitempty"`
}

tx 批次信息,保存在附加数据中

func (*TxBatchInfo) Descriptor

func (*TxBatchInfo) Descriptor() ([]byte, []int)

func (*TxBatchInfo) GetBatchIds

func (m *TxBatchInfo) GetBatchIds() []string

func (*TxBatchInfo) GetIndex

func (m *TxBatchInfo) GetIndex() []uint32

func (*TxBatchInfo) Marshal

func (m *TxBatchInfo) Marshal() (dAtA []byte, err error)

func (*TxBatchInfo) MarshalTo

func (m *TxBatchInfo) MarshalTo(dAtA []byte) (int, error)

func (*TxBatchInfo) MarshalToSizedBuffer

func (m *TxBatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxBatchInfo) ProtoMessage

func (*TxBatchInfo) ProtoMessage()

func (*TxBatchInfo) Reset

func (m *TxBatchInfo) Reset()

func (*TxBatchInfo) Size

func (m *TxBatchInfo) Size() (n int)

func (*TxBatchInfo) String

func (m *TxBatchInfo) String() string

func (*TxBatchInfo) Unmarshal

func (m *TxBatchInfo) Unmarshal(dAtA []byte) error

func (*TxBatchInfo) XXX_DiscardUnknown

func (m *TxBatchInfo) XXX_DiscardUnknown()

func (*TxBatchInfo) XXX_Marshal

func (m *TxBatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxBatchInfo) XXX_Merge

func (m *TxBatchInfo) XXX_Merge(src proto.Message)

func (*TxBatchInfo) XXX_Size

func (m *TxBatchInfo) XXX_Size() int

func (*TxBatchInfo) XXX_Unmarshal

func (m *TxBatchInfo) XXX_Unmarshal(b []byte) error

type TxBatchRecoverRequest

type TxBatchRecoverRequest struct {
	// 提议者节点 Id
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// 高度
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// 批次 Id 列表
	BatchIds []string `protobuf:"bytes,3,rep,name=batch_ids,json=batchIds,proto3" json:"batch_ids,omitempty"`
}

批量恢复请求,用于向提议者请求批量

func (*TxBatchRecoverRequest) Descriptor

func (*TxBatchRecoverRequest) Descriptor() ([]byte, []int)

func (*TxBatchRecoverRequest) GetBatchIds

func (m *TxBatchRecoverRequest) GetBatchIds() []string

func (*TxBatchRecoverRequest) GetHeight

func (m *TxBatchRecoverRequest) GetHeight() uint64

func (*TxBatchRecoverRequest) GetNodeId

func (m *TxBatchRecoverRequest) GetNodeId() string

func (*TxBatchRecoverRequest) Marshal

func (m *TxBatchRecoverRequest) Marshal() (dAtA []byte, err error)

func (*TxBatchRecoverRequest) MarshalTo

func (m *TxBatchRecoverRequest) MarshalTo(dAtA []byte) (int, error)

func (*TxBatchRecoverRequest) MarshalToSizedBuffer

func (m *TxBatchRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxBatchRecoverRequest) ProtoMessage

func (*TxBatchRecoverRequest) ProtoMessage()

func (*TxBatchRecoverRequest) Reset

func (m *TxBatchRecoverRequest) Reset()

func (*TxBatchRecoverRequest) Size

func (m *TxBatchRecoverRequest) Size() (n int)

func (*TxBatchRecoverRequest) String

func (m *TxBatchRecoverRequest) String() string

func (*TxBatchRecoverRequest) Unmarshal

func (m *TxBatchRecoverRequest) Unmarshal(dAtA []byte) error

func (*TxBatchRecoverRequest) XXX_DiscardUnknown

func (m *TxBatchRecoverRequest) XXX_DiscardUnknown()

func (*TxBatchRecoverRequest) XXX_Marshal

func (m *TxBatchRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxBatchRecoverRequest) XXX_Merge

func (m *TxBatchRecoverRequest) XXX_Merge(src proto.Message)

func (*TxBatchRecoverRequest) XXX_Size

func (m *TxBatchRecoverRequest) XXX_Size() int

func (*TxBatchRecoverRequest) XXX_Unmarshal

func (m *TxBatchRecoverRequest) XXX_Unmarshal(b []byte) error

type TxBatchRecoverResponse

type TxBatchRecoverResponse struct {
	// 节点标识
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// 高度
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// 批次列表
	TxBatches []*TxBatch `protobuf:"bytes,3,rep,name=tx_batches,json=txBatches,proto3" json:"tx_batches,omitempty"`
}

批量恢复响应,用于由提议者将事务返回给验证者

func (*TxBatchRecoverResponse) Descriptor

func (*TxBatchRecoverResponse) Descriptor() ([]byte, []int)

func (*TxBatchRecoverResponse) GetHeight

func (m *TxBatchRecoverResponse) GetHeight() uint64

func (*TxBatchRecoverResponse) GetNodeId

func (m *TxBatchRecoverResponse) GetNodeId() string

func (*TxBatchRecoverResponse) GetTxBatches

func (m *TxBatchRecoverResponse) GetTxBatches() []*TxBatch

func (*TxBatchRecoverResponse) Marshal

func (m *TxBatchRecoverResponse) Marshal() (dAtA []byte, err error)

func (*TxBatchRecoverResponse) MarshalTo

func (m *TxBatchRecoverResponse) MarshalTo(dAtA []byte) (int, error)

func (*TxBatchRecoverResponse) MarshalToSizedBuffer

func (m *TxBatchRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxBatchRecoverResponse) ProtoMessage

func (*TxBatchRecoverResponse) ProtoMessage()

func (*TxBatchRecoverResponse) Reset

func (m *TxBatchRecoverResponse) Reset()

func (*TxBatchRecoverResponse) Size

func (m *TxBatchRecoverResponse) Size() (n int)

func (*TxBatchRecoverResponse) String

func (m *TxBatchRecoverResponse) String() string

func (*TxBatchRecoverResponse) Unmarshal

func (m *TxBatchRecoverResponse) Unmarshal(dAtA []byte) error

func (*TxBatchRecoverResponse) XXX_DiscardUnknown

func (m *TxBatchRecoverResponse) XXX_DiscardUnknown()

func (*TxBatchRecoverResponse) XXX_Marshal

func (m *TxBatchRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxBatchRecoverResponse) XXX_Merge

func (m *TxBatchRecoverResponse) XXX_Merge(src proto.Message)

func (*TxBatchRecoverResponse) XXX_Size

func (m *TxBatchRecoverResponse) XXX_Size() int

func (*TxBatchRecoverResponse) XXX_Unmarshal

func (m *TxBatchRecoverResponse) XXX_Unmarshal(b []byte) error

type TxFilterConfig

type TxFilterConfig struct {
	// 过滤器类型
	Type TxFilterType `protobuf:"varint,1,opt,name=type,proto3,enum=proto_go.TxFilterType" json:"type,omitempty"`
	// 布谷鸟群过滤器配置
	CuckooGroup *CuckooGroupConfig `protobuf:"bytes,2,opt,name=cuckoo_group,json=cuckooGroup,proto3" json:"cuckoo_group,omitempty"`
	// 布谷鸟群过滤器分片配置
	ShardingCuckooGroup *ShardingCuckooGroup `protobuf:"bytes,3,opt,name=sharding_cuckoo_group,json=shardingCuckooGroup,proto3" json:"sharding_cuckoo_group,omitempty"`
}

交易过滤器配置

func (*TxFilterConfig) Descriptor

func (*TxFilterConfig) Descriptor() ([]byte, []int)

func (*TxFilterConfig) GetCuckooGroup

func (m *TxFilterConfig) GetCuckooGroup() *CuckooGroupConfig

func (*TxFilterConfig) GetShardingCuckooGroup

func (m *TxFilterConfig) GetShardingCuckooGroup() *ShardingCuckooGroup

func (*TxFilterConfig) GetType

func (m *TxFilterConfig) GetType() TxFilterType

func (*TxFilterConfig) Marshal

func (m *TxFilterConfig) Marshal() (dAtA []byte, err error)

func (*TxFilterConfig) MarshalTo

func (m *TxFilterConfig) MarshalTo(dAtA []byte) (int, error)

func (*TxFilterConfig) MarshalToSizedBuffer

func (m *TxFilterConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxFilterConfig) ProtoMessage

func (*TxFilterConfig) ProtoMessage()

func (*TxFilterConfig) Reset

func (m *TxFilterConfig) Reset()

func (*TxFilterConfig) Size

func (m *TxFilterConfig) Size() (n int)

func (*TxFilterConfig) String

func (m *TxFilterConfig) String() string

func (*TxFilterConfig) Unmarshal

func (m *TxFilterConfig) Unmarshal(dAtA []byte) error

func (*TxFilterConfig) XXX_DiscardUnknown

func (m *TxFilterConfig) XXX_DiscardUnknown()

func (*TxFilterConfig) XXX_Marshal

func (m *TxFilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxFilterConfig) XXX_Merge

func (m *TxFilterConfig) XXX_Merge(src proto.Message)

func (*TxFilterConfig) XXX_Size

func (m *TxFilterConfig) XXX_Size() int

func (*TxFilterConfig) XXX_Unmarshal

func (m *TxFilterConfig) XXX_Unmarshal(b []byte) error

type TxFilterType

type TxFilterType int32

交易过滤器类型

const (
	TxFilterType_TX_FT_NONE                TxFilterType = 0
	TxFilterType_TX_FT_CUCKOOGROUP         TxFilterType = 1
	TxFilterType_TX_FT_MAP                 TxFilterType = 2
	TxFilterType_TX_FT_SHARDINGCUCKOOGROUP TxFilterType = 3
)

func (TxFilterType) EnumDescriptor

func (TxFilterType) EnumDescriptor() ([]byte, []int)

func (TxFilterType) String

func (x TxFilterType) String() string

type TxHistory

type TxHistory struct {
	TxId        string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	BlockHash   []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	Timestamp   int64  `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*TxHistory) Descriptor

func (*TxHistory) Descriptor() ([]byte, []int)

func (*TxHistory) GetBlockHash

func (m *TxHistory) GetBlockHash() []byte

func (*TxHistory) GetBlockHeight

func (m *TxHistory) GetBlockHeight() uint64

func (*TxHistory) GetTimestamp

func (m *TxHistory) GetTimestamp() int64

func (*TxHistory) GetTxId

func (m *TxHistory) GetTxId() string

func (*TxHistory) Marshal

func (m *TxHistory) Marshal() (dAtA []byte, err error)

func (*TxHistory) MarshalTo

func (m *TxHistory) MarshalTo(dAtA []byte) (int, error)

func (*TxHistory) MarshalToSizedBuffer

func (m *TxHistory) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxHistory) ProtoMessage

func (*TxHistory) ProtoMessage()

func (*TxHistory) Reset

func (m *TxHistory) Reset()

func (*TxHistory) Size

func (m *TxHistory) Size() (n int)

func (*TxHistory) String

func (m *TxHistory) String() string

func (*TxHistory) Unmarshal

func (m *TxHistory) Unmarshal(dAtA []byte) error

func (*TxHistory) XXX_DiscardUnknown

func (m *TxHistory) XXX_DiscardUnknown()

func (*TxHistory) XXX_Marshal

func (m *TxHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxHistory) XXX_Merge

func (m *TxHistory) XXX_Merge(src proto.Message)

func (*TxHistory) XXX_Size

func (m *TxHistory) XXX_Size() int

func (*TxHistory) XXX_Unmarshal

func (m *TxHistory) XXX_Unmarshal(b []byte) error

type TxPoolMessage

type TxPoolMessage struct {
	// txPool 消息类型
	Type TxPoolMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=proto_go.TxPoolMessageType" json:"type,omitempty"`
	// 消息字节
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

TxPoolMessage 包含所有 txPool msg 类型和 msg 正文

func (*TxPoolMessage) Descriptor

func (*TxPoolMessage) Descriptor() ([]byte, []int)

func (*TxPoolMessage) GetPayload

func (m *TxPoolMessage) GetPayload() []byte

func (*TxPoolMessage) GetType

func (m *TxPoolMessage) GetType() TxPoolMessageType

func (*TxPoolMessage) Marshal

func (m *TxPoolMessage) Marshal() (dAtA []byte, err error)

func (*TxPoolMessage) MarshalTo

func (m *TxPoolMessage) MarshalTo(dAtA []byte) (int, error)

func (*TxPoolMessage) MarshalToSizedBuffer

func (m *TxPoolMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxPoolMessage) ProtoMessage

func (*TxPoolMessage) ProtoMessage()

func (*TxPoolMessage) Reset

func (m *TxPoolMessage) Reset()

func (*TxPoolMessage) Size

func (m *TxPoolMessage) Size() (n int)

func (*TxPoolMessage) String

func (m *TxPoolMessage) String() string

func (*TxPoolMessage) Unmarshal

func (m *TxPoolMessage) Unmarshal(dAtA []byte) error

func (*TxPoolMessage) XXX_DiscardUnknown

func (m *TxPoolMessage) XXX_DiscardUnknown()

func (*TxPoolMessage) XXX_Marshal

func (m *TxPoolMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxPoolMessage) XXX_Merge

func (m *TxPoolMessage) XXX_Merge(src proto.Message)

func (*TxPoolMessage) XXX_Size

func (m *TxPoolMessage) XXX_Size() int

func (*TxPoolMessage) XXX_Unmarshal

func (m *TxPoolMessage) XXX_Unmarshal(b []byte) error

type TxPoolMessageType

type TxPoolMessageType int32

TxPoolMessageType 在 txPool 中定义了不同类型的消息

const (
	// 单一交易类型
	TxPoolMessageType_SINGLE_TX TxPoolMessageType = 0
	// 批量交易类型
	TxPoolMessageType_BATCH_TX TxPoolMessageType = 1
	// 事务恢复请求类型
	TxPoolMessageType_RECOVER_REQUEST TxPoolMessageType = 2
	// 事务恢复响应类型
	TxPoolMessageType_RECOVER_RESPONSE TxPoolMessageType = 3
)

func (TxPoolMessageType) EnumDescriptor

func (TxPoolMessageType) EnumDescriptor() ([]byte, []int)

func (TxPoolMessageType) String

func (x TxPoolMessageType) String() string

type TxPoolSignal

type TxPoolSignal struct {
	// 交易事件类型
	SignalType SignalType `protobuf:"varint,1,opt,name=signal_type,json=signalType,proto3,enum=proto_go.SignalType" json:"signal_type,omitempty"`
	// 链标识
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

TxPoolSignal 被 tx pool 用来向区块提议者发送信号

func (*TxPoolSignal) Descriptor

func (*TxPoolSignal) Descriptor() ([]byte, []int)

func (*TxPoolSignal) GetChainId

func (m *TxPoolSignal) GetChainId() string

func (*TxPoolSignal) GetSignalType

func (m *TxPoolSignal) GetSignalType() SignalType

func (*TxPoolSignal) Marshal

func (m *TxPoolSignal) Marshal() (dAtA []byte, err error)

func (*TxPoolSignal) MarshalTo

func (m *TxPoolSignal) MarshalTo(dAtA []byte) (int, error)

func (*TxPoolSignal) MarshalToSizedBuffer

func (m *TxPoolSignal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxPoolSignal) ProtoMessage

func (*TxPoolSignal) ProtoMessage()

func (*TxPoolSignal) Reset

func (m *TxPoolSignal) Reset()

func (*TxPoolSignal) Size

func (m *TxPoolSignal) Size() (n int)

func (*TxPoolSignal) String

func (m *TxPoolSignal) String() string

func (*TxPoolSignal) Unmarshal

func (m *TxPoolSignal) Unmarshal(dAtA []byte) error

func (*TxPoolSignal) XXX_DiscardUnknown

func (m *TxPoolSignal) XXX_DiscardUnknown()

func (*TxPoolSignal) XXX_Marshal

func (m *TxPoolSignal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxPoolSignal) XXX_Merge

func (m *TxPoolSignal) XXX_Merge(src proto.Message)

func (*TxPoolSignal) XXX_Size

func (m *TxPoolSignal) XXX_Size() int

func (*TxPoolSignal) XXX_Unmarshal

func (m *TxPoolSignal) XXX_Unmarshal(b []byte) error

type TxPoolStatus

type TxPoolStatus struct {
	// 配置交易池的最大大小
	ConfigTxPoolSize int32 `protobuf:"varint,1,opt,name=config_tx_pool_size,json=configTxPoolSize,proto3" json:"config_tx_pool_size,omitempty"`
	// 公通用共 tx 池的最大大小
	CommonTxPoolSize int32 `protobuf:"varint,2,opt,name=common_tx_pool_size,json=commonTxPoolSize,proto3" json:"common_tx_pool_size,omitempty"`
	// 队列缓存中 config txt 的数量
	ConfigTxNumInQueue int32 `protobuf:"varint,3,opt,name=config_tx_num_in_queue,json=configTxNumInQueue,proto3" json:"config_tx_num_in_queue,omitempty"`
	// 待处理缓存中的 config txt 数量
	ConfigTxNumInPending int32 `` /* 128-byte string literal not displayed */
	// 队列缓存中公共 tx 的数量
	CommonTxNumInQueue int32 `protobuf:"varint,5,opt,name=common_tx_num_in_queue,json=commonTxNumInQueue,proto3" json:"common_tx_num_in_queue,omitempty"`
	// 待处理缓存中的公共 tx 数量
	CommonTxNumInPending int32 `` /* 128-byte string literal not displayed */
}

TxPoolStatus 定义 txPool 状态

func (*TxPoolStatus) Descriptor

func (*TxPoolStatus) Descriptor() ([]byte, []int)

func (*TxPoolStatus) GetCommonTxNumInPending

func (m *TxPoolStatus) GetCommonTxNumInPending() int32

func (*TxPoolStatus) GetCommonTxNumInQueue

func (m *TxPoolStatus) GetCommonTxNumInQueue() int32

func (*TxPoolStatus) GetCommonTxPoolSize

func (m *TxPoolStatus) GetCommonTxPoolSize() int32

func (*TxPoolStatus) GetConfigTxNumInPending

func (m *TxPoolStatus) GetConfigTxNumInPending() int32

func (*TxPoolStatus) GetConfigTxNumInQueue

func (m *TxPoolStatus) GetConfigTxNumInQueue() int32

func (*TxPoolStatus) GetConfigTxPoolSize

func (m *TxPoolStatus) GetConfigTxPoolSize() int32

func (*TxPoolStatus) Marshal

func (m *TxPoolStatus) Marshal() (dAtA []byte, err error)

func (*TxPoolStatus) MarshalTo

func (m *TxPoolStatus) MarshalTo(dAtA []byte) (int, error)

func (*TxPoolStatus) MarshalToSizedBuffer

func (m *TxPoolStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxPoolStatus) ProtoMessage

func (*TxPoolStatus) ProtoMessage()

func (*TxPoolStatus) Reset

func (m *TxPoolStatus) Reset()

func (*TxPoolStatus) Size

func (m *TxPoolStatus) Size() (n int)

func (*TxPoolStatus) String

func (m *TxPoolStatus) String() string

func (*TxPoolStatus) Unmarshal

func (m *TxPoolStatus) Unmarshal(dAtA []byte) error

func (*TxPoolStatus) XXX_DiscardUnknown

func (m *TxPoolStatus) XXX_DiscardUnknown()

func (*TxPoolStatus) XXX_Marshal

func (m *TxPoolStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxPoolStatus) XXX_Merge

func (m *TxPoolStatus) XXX_Merge(src proto.Message)

func (*TxPoolStatus) XXX_Size

func (m *TxPoolStatus) XXX_Size() int

func (*TxPoolStatus) XXX_Unmarshal

func (m *TxPoolStatus) XXX_Unmarshal(b []byte) error

type TxRWSet

type TxRWSet struct {
	// 交易标识
	TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// 读集
	TxReads []*TxRead `protobuf:"bytes,2,rep,name=tx_reads,json=txReads,proto3" json:"tx_reads,omitempty"`
	// 写集
	TxWrites []*TxWrite `protobuf:"bytes,3,rep,name=tx_writes,json=txWrites,proto3" json:"tx_writes,omitempty"`
}

TxRWSet 描述账本上交易的所有操作

func (*TxRWSet) Descriptor

func (*TxRWSet) Descriptor() ([]byte, []int)

func (*TxRWSet) GetTxId

func (m *TxRWSet) GetTxId() string

func (*TxRWSet) GetTxReads

func (m *TxRWSet) GetTxReads() []*TxRead

func (*TxRWSet) GetTxWrites

func (m *TxRWSet) GetTxWrites() []*TxWrite

func (*TxRWSet) Marshal

func (m *TxRWSet) Marshal() (dAtA []byte, err error)

func (*TxRWSet) MarshalTo

func (m *TxRWSet) MarshalTo(dAtA []byte) (int, error)

func (*TxRWSet) MarshalToSizedBuffer

func (m *TxRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxRWSet) ProtoMessage

func (*TxRWSet) ProtoMessage()

func (*TxRWSet) Reset

func (m *TxRWSet) Reset()

func (*TxRWSet) Size

func (m *TxRWSet) Size() (n int)

func (*TxRWSet) String

func (m *TxRWSet) String() string

func (*TxRWSet) Unmarshal

func (m *TxRWSet) Unmarshal(dAtA []byte) error

func (*TxRWSet) XXX_DiscardUnknown

func (m *TxRWSet) XXX_DiscardUnknown()

func (*TxRWSet) XXX_Marshal

func (m *TxRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRWSet) XXX_Merge

func (m *TxRWSet) XXX_Merge(src proto.Message)

func (*TxRWSet) XXX_Size

func (m *TxRWSet) XXX_Size() int

func (*TxRWSet) XXX_Unmarshal

func (m *TxRWSet) XXX_Unmarshal(b []byte) error

type TxRead

type TxRead struct {
	// 读键
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// 键的值
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// 合约名称,用于跨合约调用,如果仅调用交易请求中的合约,则设置为 null
	ContractName string `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// 读取密钥版本
	Version *KeyVersion `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
}

TxRead 描述一个键的读操作

func (*TxRead) Descriptor

func (*TxRead) Descriptor() ([]byte, []int)

func (*TxRead) GetContractName

func (m *TxRead) GetContractName() string

func (*TxRead) GetKey

func (m *TxRead) GetKey() []byte

func (*TxRead) GetValue

func (m *TxRead) GetValue() []byte

func (*TxRead) GetVersion

func (m *TxRead) GetVersion() *KeyVersion

func (*TxRead) Marshal

func (m *TxRead) Marshal() (dAtA []byte, err error)

func (*TxRead) MarshalTo

func (m *TxRead) MarshalTo(dAtA []byte) (int, error)

func (*TxRead) MarshalToSizedBuffer

func (m *TxRead) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxRead) ProtoMessage

func (*TxRead) ProtoMessage()

func (*TxRead) Reset

func (m *TxRead) Reset()

func (*TxRead) Size

func (m *TxRead) Size() (n int)

func (*TxRead) String

func (m *TxRead) String() string

func (*TxRead) Unmarshal

func (m *TxRead) Unmarshal(dAtA []byte) error

func (*TxRead) XXX_DiscardUnknown

func (m *TxRead) XXX_DiscardUnknown()

func (*TxRead) XXX_Marshal

func (m *TxRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRead) XXX_Merge

func (m *TxRead) XXX_Merge(src proto.Message)

func (*TxRead) XXX_Size

func (m *TxRead) XXX_Size() int

func (*TxRead) XXX_Unmarshal

func (m *TxRead) XXX_Unmarshal(b []byte) error

type TxRecoverRequest

type TxRecoverRequest struct {
	// 节点标识
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// 高度
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// 交易 Id 列表
	TxIds []string `protobuf:"bytes,3,rep,name=tx_ids,json=txIds,proto3" json:"tx_ids,omitempty"`
}

交易恢复请求,用于向提议者请求交易

func (*TxRecoverRequest) Descriptor

func (*TxRecoverRequest) Descriptor() ([]byte, []int)

func (*TxRecoverRequest) GetHeight

func (m *TxRecoverRequest) GetHeight() uint64

func (*TxRecoverRequest) GetNodeId

func (m *TxRecoverRequest) GetNodeId() string

func (*TxRecoverRequest) GetTxIds

func (m *TxRecoverRequest) GetTxIds() []string

func (*TxRecoverRequest) Marshal

func (m *TxRecoverRequest) Marshal() (dAtA []byte, err error)

func (*TxRecoverRequest) MarshalTo

func (m *TxRecoverRequest) MarshalTo(dAtA []byte) (int, error)

func (*TxRecoverRequest) MarshalToSizedBuffer

func (m *TxRecoverRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxRecoverRequest) ProtoMessage

func (*TxRecoverRequest) ProtoMessage()

func (*TxRecoverRequest) Reset

func (m *TxRecoverRequest) Reset()

func (*TxRecoverRequest) Size

func (m *TxRecoverRequest) Size() (n int)

func (*TxRecoverRequest) String

func (m *TxRecoverRequest) String() string

func (*TxRecoverRequest) Unmarshal

func (m *TxRecoverRequest) Unmarshal(dAtA []byte) error

func (*TxRecoverRequest) XXX_DiscardUnknown

func (m *TxRecoverRequest) XXX_DiscardUnknown()

func (*TxRecoverRequest) XXX_Marshal

func (m *TxRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRecoverRequest) XXX_Merge

func (m *TxRecoverRequest) XXX_Merge(src proto.Message)

func (*TxRecoverRequest) XXX_Size

func (m *TxRecoverRequest) XXX_Size() int

func (*TxRecoverRequest) XXX_Unmarshal

func (m *TxRecoverRequest) XXX_Unmarshal(b []byte) error

type TxRecoverResponse

type TxRecoverResponse struct {
	// 节点标识
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// 高度
	Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// 交易列表
	Txs []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
}

交易恢复响应,用于由提议者将交易返回给验证者

func (*TxRecoverResponse) Descriptor

func (*TxRecoverResponse) Descriptor() ([]byte, []int)

func (*TxRecoverResponse) GetHeight

func (m *TxRecoverResponse) GetHeight() uint64

func (*TxRecoverResponse) GetNodeId

func (m *TxRecoverResponse) GetNodeId() string

func (*TxRecoverResponse) GetTxs

func (m *TxRecoverResponse) GetTxs() []*Transaction

func (*TxRecoverResponse) Marshal

func (m *TxRecoverResponse) Marshal() (dAtA []byte, err error)

func (*TxRecoverResponse) MarshalTo

func (m *TxRecoverResponse) MarshalTo(dAtA []byte) (int, error)

func (*TxRecoverResponse) MarshalToSizedBuffer

func (m *TxRecoverResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxRecoverResponse) ProtoMessage

func (*TxRecoverResponse) ProtoMessage()

func (*TxRecoverResponse) Reset

func (m *TxRecoverResponse) Reset()

func (*TxRecoverResponse) Size

func (m *TxRecoverResponse) Size() (n int)

func (*TxRecoverResponse) String

func (m *TxRecoverResponse) String() string

func (*TxRecoverResponse) Unmarshal

func (m *TxRecoverResponse) Unmarshal(dAtA []byte) error

func (*TxRecoverResponse) XXX_DiscardUnknown

func (m *TxRecoverResponse) XXX_DiscardUnknown()

func (*TxRecoverResponse) XXX_Marshal

func (m *TxRecoverResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRecoverResponse) XXX_Merge

func (m *TxRecoverResponse) XXX_Merge(src proto.Message)

func (*TxRecoverResponse) XXX_Size

func (m *TxRecoverResponse) XXX_Size() int

func (*TxRecoverResponse) XXX_Unmarshal

func (m *TxRecoverResponse) XXX_Unmarshal(b []byte) error

type TxRequest

type TxRequest struct {
	// 交易净荷
	Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// 发件人帐户和发件人签名
	Sender *EndorsementEntry `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// 背书人账户和签名
	Endorsers []*EndorsementEntry `protobuf:"bytes,3,rep,name=endorsers,proto3" json:"endorsers,omitempty"`
}

用户提出的交易请求

func (*TxRequest) Descriptor

func (*TxRequest) Descriptor() ([]byte, []int)

func (*TxRequest) GetEndorsers

func (m *TxRequest) GetEndorsers() []*EndorsementEntry

func (*TxRequest) GetPayload

func (m *TxRequest) GetPayload() *Payload

func (*TxRequest) GetSender

func (m *TxRequest) GetSender() *EndorsementEntry

func (*TxRequest) Marshal

func (m *TxRequest) Marshal() (dAtA []byte, err error)

func (*TxRequest) MarshalTo

func (m *TxRequest) MarshalTo(dAtA []byte) (int, error)

func (*TxRequest) MarshalToSizedBuffer

func (m *TxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxRequest) ProtoMessage

func (*TxRequest) ProtoMessage()

func (*TxRequest) Reset

func (m *TxRequest) Reset()

func (*TxRequest) Size

func (m *TxRequest) Size() (n int)

func (*TxRequest) String

func (m *TxRequest) String() string

func (*TxRequest) Unmarshal

func (m *TxRequest) Unmarshal(dAtA []byte) error

func (*TxRequest) XXX_DiscardUnknown

func (m *TxRequest) XXX_DiscardUnknown()

func (*TxRequest) XXX_Marshal

func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRequest) XXX_Merge

func (m *TxRequest) XXX_Merge(src proto.Message)

func (*TxRequest) XXX_Size

func (m *TxRequest) XXX_Size() int

func (*TxRequest) XXX_Unmarshal

func (m *TxRequest) XXX_Unmarshal(b []byte) error

type TxResponse

type TxResponse struct {
	// 响应码
	Code TxStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=proto_go.TxStatusCode" json:"code,omitempty"`
	// 响应消息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// 返回的数据,在智能合约中设置
	ContractResult *ContractResult `protobuf:"bytes,3,opt,name=contract_result,json=contractResult,proto3" json:"contract_result,omitempty"`
	// 请求中的交易标识
	TxId string `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// 异步 tx 模式:tx 时间戳为零
	//同步tx模式:tx时间戳为TxRequest.Payload.Timestamp
	TxTimestamp int64 `protobuf:"varint,5,opt,name=tx_timestamp,json=txTimestamp,proto3" json:"tx_timestamp,omitempty"`
	// 异步 tx 模式:tx 块高度为零
	// 同步 tx 模式:tx 块高度是打包此 tx 的块的高度
	TxBlockHeight uint64 `protobuf:"varint,6,opt,name=tx_block_height,json=txBlockHeight,proto3" json:"tx_block_height,omitempty"`
}

tx request - tx response,仅用于 RPC 响应

func (*TxResponse) Descriptor

func (*TxResponse) Descriptor() ([]byte, []int)

func (*TxResponse) GetCode

func (m *TxResponse) GetCode() TxStatusCode

func (*TxResponse) GetContractResult

func (m *TxResponse) GetContractResult() *ContractResult

func (*TxResponse) GetMessage

func (m *TxResponse) GetMessage() string

func (*TxResponse) GetTxBlockHeight

func (m *TxResponse) GetTxBlockHeight() uint64

func (*TxResponse) GetTxId

func (m *TxResponse) GetTxId() string

func (*TxResponse) GetTxTimestamp

func (m *TxResponse) GetTxTimestamp() int64

func (*TxResponse) Marshal

func (m *TxResponse) Marshal() (dAtA []byte, err error)

func (*TxResponse) MarshalTo

func (m *TxResponse) MarshalTo(dAtA []byte) (int, error)

func (*TxResponse) MarshalToSizedBuffer

func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxResponse) ProtoMessage

func (*TxResponse) ProtoMessage()

func (*TxResponse) Reset

func (m *TxResponse) Reset()

func (*TxResponse) Size

func (m *TxResponse) Size() (n int)

func (*TxResponse) String

func (m *TxResponse) String() string

func (*TxResponse) Unmarshal

func (m *TxResponse) Unmarshal(dAtA []byte) error

func (*TxResponse) XXX_DiscardUnknown

func (m *TxResponse) XXX_DiscardUnknown()

func (*TxResponse) XXX_Marshal

func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxResponse) XXX_Merge

func (m *TxResponse) XXX_Merge(src proto.Message)

func (*TxResponse) XXX_Size

func (m *TxResponse) XXX_Size() int

func (*TxResponse) XXX_Unmarshal

func (m *TxResponse) XXX_Unmarshal(b []byte) error

type TxStage

type TxStage int32

TxStage 是当前的交易阶段

const (
	// 未知
	TxStage_TXS_UNKNOWN_STAGE TxStage = 0
	// 在队列中
	TxStage_TXS_IN_QUEUE TxStage = 1
	// 待定
	TxStage_TXS_IN_PENDING TxStage = 2
	// 在队列中和待处理
	TxStage_TXS_ALL_STAGE TxStage = 3
)

func (TxStage) EnumDescriptor

func (TxStage) EnumDescriptor() ([]byte, []int)

func (TxStage) String

func (x TxStage) String() string

type TxStatusCode

type TxStatusCode int32

交易状态码

const (
	TxStatusCode_TX_SC_SUCCESS                                   TxStatusCode = 0
	TxStatusCode_TX_SC_TIMEOUT                                   TxStatusCode = 1
	TxStatusCode_TX_SC_INVALID_PARAMETER                         TxStatusCode = 2
	TxStatusCode_TX_SC_NO_PERMISSION                             TxStatusCode = 3
	TxStatusCode_TX_SC_CONTRACT_FAIL                             TxStatusCode = 4
	TxStatusCode_TX_SC_INTERNAL_ERROR                            TxStatusCode = 5
	TxStatusCode_TX_SC_INVALID_CONTRACT_TRANSACTION_TYPE         TxStatusCode = 51
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_CONTRACT_NAME  TxStatusCode = 52
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_METHOD         TxStatusCode = 53
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_INIT_METHOD    TxStatusCode = 54
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD TxStatusCode = 55
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_BYTE_CODE      TxStatusCode = 56
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE   TxStatusCode = 57
	TxStatusCode_TX_SC_INVALID_CONTRACT_PARAMETER_VERSION        TxStatusCode = 58
	TxStatusCode_TX_SC_GET_FROM_TX_CONTEXT_FAILED                TxStatusCode = 101
	TxStatusCode_TX_SC_PUT_INTO_TX_CONTEXT_FAILED                TxStatusCode = 102
	TxStatusCode_TX_SC_CONTRACT_VERSION_EXIST_FAILED             TxStatusCode = 103
	TxStatusCode_TX_SC_CONTRACT_VERSION_NOT_EXIST_FAILED         TxStatusCode = 104
	TxStatusCode_TX_SC_CONTRACT_BYTE_CODE_NOT_EXIST_FAILED       TxStatusCode = 105
	TxStatusCode_TX_SC_MARSHAL_SENDER_FAILED                     TxStatusCode = 106
	TxStatusCode_TX_SC_INVOKE_INIT_METHOD_FAILED                 TxStatusCode = 107
	TxStatusCode_TX_SC_INVOKE_UPGRADE_METHOD_FAILED              TxStatusCode = 108
	TxStatusCode_TX_SC_CREATE_RUNTIME_INSTANCE_FAILED            TxStatusCode = 109
	TxStatusCode_TX_SC_UNMARSHAL_CREATOR_FAILED                  TxStatusCode = 110
	TxStatusCode_TX_SC_UNMARSHAL_SENDER_FAILED                   TxStatusCode = 111
	TxStatusCode_TX_SC_GET_SENDER_PK_FAILED                      TxStatusCode = 112
	TxStatusCode_TX_SC_GET_CREATOR_PK_FAILED                     TxStatusCode = 113
	TxStatusCode_TX_SC_GET_CREATOR_FAILED                        TxStatusCode = 114
	TxStatusCode_TX_SC_GET_CREATOR_CERT_FAILED                   TxStatusCode = 115
	TxStatusCode_TX_SC_GET_SENDER_CERT_FAILED                    TxStatusCode = 116
	TxStatusCode_TX_SC_CONTRACT_FREEZE_FAILED                    TxStatusCode = 117
	TxStatusCode_TX_SC_CONTRACT_TOO_DEEP_FAILED                  TxStatusCode = 118
	TxStatusCode_TX_SC_CONTRACT_REVOKE_FAILED                    TxStatusCode = 119
	TxStatusCode_TX_SC_CONTRACT_INVOKE_METHOD_FAILED             TxStatusCode = 120
	TxStatusCode_TX_SC_ARCHIVED_TX                               TxStatusCode = 151
	TxStatusCode_TX_SC_ARCHIVED_BLOCK                            TxStatusCode = 152
	TxStatusCode_TX_SC_GAS_BALANCE_NOT_ENOUGH_FAILED             TxStatusCode = 201
	TxStatusCode_TX_SC_GAS_LIMIT_NOT_SET                         TxStatusCode = 202
)

func (TxStatusCode) EnumDescriptor

func (TxStatusCode) EnumDescriptor() ([]byte, []int)

func (TxStatusCode) String

func (x TxStatusCode) String() string

type TxType

type TxType int32

TxType 是交易类型

const (
	// 未知
	TxType_TXT_UNKNOWN_TYPE TxType = 0
	// 交易配置
	TxType_TXT_CONFIG_TX TxType = 1
	// 普通交易
	TxType_TXT_COMMON_TX TxType = 2
	// 配置和普通交易
	TxType_TXT_ALL_TYPE TxType = 3
)

func (TxType) EnumDescriptor

func (TxType) EnumDescriptor() ([]byte, []int)

func (TxType) String

func (x TxType) String() string

type TxWrite

type TxWrite struct {
	// 写键
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// 写值
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// 合约名称,用于跨合约调用,如果仅调用交易请求中的合约,则设置为 null
	ContractName string `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
}

TxRead 描述了一个键的写/删除操作

func (*TxWrite) Descriptor

func (*TxWrite) Descriptor() ([]byte, []int)

func (*TxWrite) GetContractName

func (m *TxWrite) GetContractName() string

func (*TxWrite) GetKey

func (m *TxWrite) GetKey() []byte

func (*TxWrite) GetValue

func (m *TxWrite) GetValue() []byte

func (*TxWrite) Marshal

func (m *TxWrite) Marshal() (dAtA []byte, err error)

func (*TxWrite) MarshalTo

func (m *TxWrite) MarshalTo(dAtA []byte) (int, error)

func (*TxWrite) MarshalToSizedBuffer

func (m *TxWrite) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxWrite) ProtoMessage

func (*TxWrite) ProtoMessage()

func (*TxWrite) Reset

func (m *TxWrite) Reset()

func (*TxWrite) Size

func (m *TxWrite) Size() (n int)

func (*TxWrite) String

func (m *TxWrite) String() string

func (*TxWrite) Unmarshal

func (m *TxWrite) Unmarshal(dAtA []byte) error

func (*TxWrite) XXX_DiscardUnknown

func (m *TxWrite) XXX_DiscardUnknown()

func (*TxWrite) XXX_Marshal

func (m *TxWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxWrite) XXX_Merge

func (m *TxWrite) XXX_Merge(src proto.Message)

func (*TxWrite) XXX_Size

func (m *TxWrite) XXX_Size() int

func (*TxWrite) XXX_Unmarshal

func (m *TxWrite) XXX_Unmarshal(b []byte) error

type UnbondingDelegation

type UnbondingDelegation struct {
	// 纪元 id
	EpochId string `protobuf:"bytes,1,opt,name=epoch_id,json=epochId,proto3" json:"epoch_id,omitempty"`
	// 委托人证书哈希
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// 验证者证书哈希
	ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// 解绑条目记录
	Entries []*UnbondingDelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"`
}

func (*UnbondingDelegation) Descriptor

func (*UnbondingDelegation) Descriptor() ([]byte, []int)

func (*UnbondingDelegation) GetDelegatorAddress

func (m *UnbondingDelegation) GetDelegatorAddress() string

func (*UnbondingDelegation) GetEntries

func (m *UnbondingDelegation) GetEntries() []*UnbondingDelegationEntry

func (*UnbondingDelegation) GetEpochId

func (m *UnbondingDelegation) GetEpochId() string

func (*UnbondingDelegation) GetValidatorAddress

func (m *UnbondingDelegation) GetValidatorAddress() string

func (*UnbondingDelegation) Marshal

func (m *UnbondingDelegation) Marshal() (dAtA []byte, err error)

func (*UnbondingDelegation) MarshalTo

func (m *UnbondingDelegation) MarshalTo(dAtA []byte) (int, error)

func (*UnbondingDelegation) MarshalToSizedBuffer

func (m *UnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

func (m *UnbondingDelegation) Size() (n int)

func (*UnbondingDelegation) String

func (m *UnbondingDelegation) String() string

func (*UnbondingDelegation) Unmarshal

func (m *UnbondingDelegation) Unmarshal(dAtA []byte) error

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

func (m *UnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnbondingDelegation) XXX_Merge

func (m *UnbondingDelegation) XXX_Merge(src proto.Message)

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

func (m *UnbondingDelegation) XXX_Unmarshal(b []byte) error

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {
	// 创建纪元 id
	CreationEpochId uint64 `protobuf:"varint,1,opt,name=creation_epoch_id,json=creationEpochId,proto3" json:"creation_epoch_id,omitempty"`
	// 完整的纪元 id
	CompletionEpochId uint64 `protobuf:"varint,2,opt,name=completion_epoch_id,json=completionEpochId,proto3" json:"completion_epoch_id,omitempty"`
	// 未授权金额
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*UnbondingDelegationEntry) Descriptor

func (*UnbondingDelegationEntry) Descriptor() ([]byte, []int)

func (*UnbondingDelegationEntry) GetAmount

func (m *UnbondingDelegationEntry) GetAmount() string

func (*UnbondingDelegationEntry) GetCompletionEpochId

func (m *UnbondingDelegationEntry) GetCompletionEpochId() uint64

func (*UnbondingDelegationEntry) GetCreationEpochId

func (m *UnbondingDelegationEntry) GetCreationEpochId() uint64

func (*UnbondingDelegationEntry) Marshal

func (m *UnbondingDelegationEntry) Marshal() (dAtA []byte, err error)

func (*UnbondingDelegationEntry) MarshalTo

func (m *UnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)

func (*UnbondingDelegationEntry) MarshalToSizedBuffer

func (m *UnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) Reset

func (m *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) Size

func (m *UnbondingDelegationEntry) Size() (n int)

func (*UnbondingDelegationEntry) String

func (m *UnbondingDelegationEntry) String() string

func (*UnbondingDelegationEntry) Unmarshal

func (m *UnbondingDelegationEntry) Unmarshal(dAtA []byte) error

func (*UnbondingDelegationEntry) XXX_DiscardUnknown

func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()

func (*UnbondingDelegationEntry) XXX_Marshal

func (m *UnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnbondingDelegationEntry) XXX_Merge

func (m *UnbondingDelegationEntry) XXX_Merge(src proto.Message)

func (*UnbondingDelegationEntry) XXX_Size

func (m *UnbondingDelegationEntry) XXX_Size() int

func (*UnbondingDelegationEntry) XXX_Unmarshal

func (m *UnbondingDelegationEntry) XXX_Unmarshal(b []byte) error

type UnfreezeContract

type UnfreezeContract struct {
}

解冻合约参数

func (*UnfreezeContract) Descriptor

func (*UnfreezeContract) Descriptor() ([]byte, []int)

func (*UnfreezeContract) Marshal

func (m *UnfreezeContract) Marshal() (dAtA []byte, err error)

func (*UnfreezeContract) MarshalTo

func (m *UnfreezeContract) MarshalTo(dAtA []byte) (int, error)

func (*UnfreezeContract) MarshalToSizedBuffer

func (m *UnfreezeContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UnfreezeContract) ProtoMessage

func (*UnfreezeContract) ProtoMessage()

func (*UnfreezeContract) Reset

func (m *UnfreezeContract) Reset()

func (*UnfreezeContract) Size

func (m *UnfreezeContract) Size() (n int)

func (*UnfreezeContract) String

func (m *UnfreezeContract) String() string

func (*UnfreezeContract) Unmarshal

func (m *UnfreezeContract) Unmarshal(dAtA []byte) error

func (*UnfreezeContract) XXX_DiscardUnknown

func (m *UnfreezeContract) XXX_DiscardUnknown()

func (*UnfreezeContract) XXX_Marshal

func (m *UnfreezeContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnfreezeContract) XXX_Merge

func (m *UnfreezeContract) XXX_Merge(src proto.Message)

func (*UnfreezeContract) XXX_Size

func (m *UnfreezeContract) XXX_Size() int

func (*UnfreezeContract) XXX_Unmarshal

func (m *UnfreezeContract) XXX_Unmarshal(b []byte) error

type UnfreezeContract_Parameter

type UnfreezeContract_Parameter int32
const (
	UnfreezeContract_CONTRACT_NAME UnfreezeContract_Parameter = 0
)

func (UnfreezeContract_Parameter) EnumDescriptor

func (UnfreezeContract_Parameter) EnumDescriptor() ([]byte, []int)

func (UnfreezeContract_Parameter) String

type UnimplementedRpcNodeServer

type UnimplementedRpcNodeServer struct {
}

UnimplementedRpcNodeServer can be embedded to have forward compatible implementations.

func (*UnimplementedRpcNodeServer) CheckNewBlockChainConfig

func (*UnimplementedRpcNodeServer) GetPoolStatus

func (*UnimplementedRpcNodeServer) GetTxIdsByTypeAndStage

func (*UnimplementedRpcNodeServer) GetTxsInPoolByTxIds

func (*UnimplementedRpcNodeServer) GetVersion

func (*UnimplementedRpcNodeServer) RefreshLogLevelsConfig

func (*UnimplementedRpcNodeServer) RefreshLogLevelsConfig(ctx context.Context, req *LogLevelsRequest) (*LogLevelsResponse, error)

func (*UnimplementedRpcNodeServer) SendRequest

func (*UnimplementedRpcNodeServer) Subscribe

func (*UnimplementedRpcNodeServer) SubscribeWS

func (*UnimplementedRpcNodeServer) UpdateDebugConfig

type UpgradeContract

type UpgradeContract struct {
}

升级合约参数

func (*UpgradeContract) Descriptor

func (*UpgradeContract) Descriptor() ([]byte, []int)

func (*UpgradeContract) Marshal

func (m *UpgradeContract) Marshal() (dAtA []byte, err error)

func (*UpgradeContract) MarshalTo

func (m *UpgradeContract) MarshalTo(dAtA []byte) (int, error)

func (*UpgradeContract) MarshalToSizedBuffer

func (m *UpgradeContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UpgradeContract) ProtoMessage

func (*UpgradeContract) ProtoMessage()

func (*UpgradeContract) Reset

func (m *UpgradeContract) Reset()

func (*UpgradeContract) Size

func (m *UpgradeContract) Size() (n int)

func (*UpgradeContract) String

func (m *UpgradeContract) String() string

func (*UpgradeContract) Unmarshal

func (m *UpgradeContract) Unmarshal(dAtA []byte) error

func (*UpgradeContract) XXX_DiscardUnknown

func (m *UpgradeContract) XXX_DiscardUnknown()

func (*UpgradeContract) XXX_Marshal

func (m *UpgradeContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpgradeContract) XXX_Merge

func (m *UpgradeContract) XXX_Merge(src proto.Message)

func (*UpgradeContract) XXX_Size

func (m *UpgradeContract) XXX_Size() int

func (*UpgradeContract) XXX_Unmarshal

func (m *UpgradeContract) XXX_Unmarshal(b []byte) error

type UpgradeContract_Parameter

type UpgradeContract_Parameter int32
const (
	UpgradeContract_CONTRACT_NAME         UpgradeContract_Parameter = 0
	UpgradeContract_CONTRACT_RUNTIME_TYPE UpgradeContract_Parameter = 1
	UpgradeContract_CONTRACT_VERSION      UpgradeContract_Parameter = 2
	UpgradeContract_CONTRACT_BYTECODE     UpgradeContract_Parameter = 3
)

func (UpgradeContract_Parameter) EnumDescriptor

func (UpgradeContract_Parameter) EnumDescriptor() ([]byte, []int)

func (UpgradeContract_Parameter) String

func (x UpgradeContract_Parameter) String() string

type Validator

type Validator struct {
	// 验证者地址:base58.Encode(sha256(pubkey))
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// 主动惩罚标记验证者是否入狱
	Jailed bool `protobuf:"varint,2,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// 验证人状态:已绑定/未绑定/未绑定
	Status BondStatus `protobuf:"varint,3,opt,name=status,proto3,enum=proto_go.BondStatus" json:"status,omitempty"`
	// 委托代币数量
	Tokens string `protobuf:"bytes,4,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// 委托股份金额
	DelegatorShares string `protobuf:"bytes,5,opt,name=delegator_shares,json=delegatorShares,proto3" json:"delegator_shares,omitempty"`
	// 取消委托条目 epoch id
	UnbondingEpochId uint64 `protobuf:"varint,6,opt,name=unbonding_epoch_id,json=unbondingEpochId,proto3" json:"unbonding_epoch_id,omitempty"`
	// 取消委托条目完整的纪元 id
	UnbondingCompletionEpochId uint64 `` /* 144-byte string literal not displayed */
	// 验证人自我委托代币数量
	SelfDelegation string `protobuf:"bytes,8,opt,name=self_delegation,json=selfDelegation,proto3" json:"self_delegation,omitempty"`
}

func (*Validator) Descriptor

func (*Validator) Descriptor() ([]byte, []int)

func (*Validator) GetDelegatorShares

func (m *Validator) GetDelegatorShares() string

func (*Validator) GetJailed

func (m *Validator) GetJailed() bool

func (*Validator) GetSelfDelegation

func (m *Validator) GetSelfDelegation() string

func (*Validator) GetStatus

func (m *Validator) GetStatus() BondStatus

func (*Validator) GetTokens

func (m *Validator) GetTokens() string

func (*Validator) GetUnbondingCompletionEpochId

func (m *Validator) GetUnbondingCompletionEpochId() uint64

func (*Validator) GetUnbondingEpochId

func (m *Validator) GetUnbondingEpochId() uint64

func (*Validator) GetValidatorAddress

func (m *Validator) GetValidatorAddress() string

func (*Validator) Marshal

func (m *Validator) Marshal() (dAtA []byte, err error)

func (*Validator) MarshalTo

func (m *Validator) MarshalTo(dAtA []byte) (int, error)

func (*Validator) MarshalToSizedBuffer

func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

func (m *Validator) Size() (n int)

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Validator) XXX_Merge

func (m *Validator) XXX_Merge(src proto.Message)

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

func (m *Validator) XXX_Unmarshal(b []byte) error

type ValidatorVector

type ValidatorVector struct {
	// 验证者证书哈希向量
	Vectors []string `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
}

func (*ValidatorVector) Descriptor

func (*ValidatorVector) Descriptor() ([]byte, []int)

func (*ValidatorVector) GetVectors

func (m *ValidatorVector) GetVectors() []string

func (*ValidatorVector) Marshal

func (m *ValidatorVector) Marshal() (dAtA []byte, err error)

func (*ValidatorVector) MarshalTo

func (m *ValidatorVector) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorVector) MarshalToSizedBuffer

func (m *ValidatorVector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorVector) ProtoMessage

func (*ValidatorVector) ProtoMessage()

func (*ValidatorVector) Reset

func (m *ValidatorVector) Reset()

func (*ValidatorVector) Size

func (m *ValidatorVector) Size() (n int)

func (*ValidatorVector) String

func (m *ValidatorVector) String() string

func (*ValidatorVector) Unmarshal

func (m *ValidatorVector) Unmarshal(dAtA []byte) error

func (*ValidatorVector) XXX_DiscardUnknown

func (m *ValidatorVector) XXX_DiscardUnknown()

func (*ValidatorVector) XXX_Marshal

func (m *ValidatorVector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorVector) XXX_Merge

func (m *ValidatorVector) XXX_Merge(src proto.Message)

func (*ValidatorVector) XXX_Size

func (m *ValidatorVector) XXX_Size() int

func (*ValidatorVector) XXX_Unmarshal

func (m *ValidatorVector) XXX_Unmarshal(b []byte) error

type VerifyResult

type VerifyResult struct {
	VerifiedBlock      *Block              `protobuf:"bytes,1,opt,name=verified_block,json=verifiedBlock,proto3" json:"verified_block,omitempty"`
	Code               VerifyResult_Code   `protobuf:"varint,2,opt,name=code,proto3,enum=proto_go.VerifyResult_Code" json:"code,omitempty"`
	Msg                string              `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	TxsRwSet           map[string]*TxRWSet `` /* 175-byte string literal not displayed */
	RwSetVerifyFailTxs *RWSetVerifyFailTxs `protobuf:"bytes,5,opt,name=rw_set_verify_fail_txs,json=rwSetVerifyFailTxs,proto3" json:"rw_set_verify_fail_txs,omitempty"`
}

func (*VerifyResult) Descriptor

func (*VerifyResult) Descriptor() ([]byte, []int)

func (*VerifyResult) GetCode

func (m *VerifyResult) GetCode() VerifyResult_Code

func (*VerifyResult) GetMsg

func (m *VerifyResult) GetMsg() string

func (*VerifyResult) GetRwSetVerifyFailTxs

func (m *VerifyResult) GetRwSetVerifyFailTxs() *RWSetVerifyFailTxs

func (*VerifyResult) GetTxsRwSet

func (m *VerifyResult) GetTxsRwSet() map[string]*TxRWSet

func (*VerifyResult) GetVerifiedBlock

func (m *VerifyResult) GetVerifiedBlock() *Block

func (*VerifyResult) Marshal

func (m *VerifyResult) Marshal() (dAtA []byte, err error)

func (*VerifyResult) MarshalTo

func (m *VerifyResult) MarshalTo(dAtA []byte) (int, error)

func (*VerifyResult) MarshalToSizedBuffer

func (m *VerifyResult) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VerifyResult) ProtoMessage

func (*VerifyResult) ProtoMessage()

func (*VerifyResult) Reset

func (m *VerifyResult) Reset()

func (*VerifyResult) Size

func (m *VerifyResult) Size() (n int)

func (*VerifyResult) String

func (m *VerifyResult) String() string

func (*VerifyResult) Unmarshal

func (m *VerifyResult) Unmarshal(dAtA []byte) error

func (*VerifyResult) XXX_DiscardUnknown

func (m *VerifyResult) XXX_DiscardUnknown()

func (*VerifyResult) XXX_Marshal

func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyResult) XXX_Merge

func (m *VerifyResult) XXX_Merge(src proto.Message)

func (*VerifyResult) XXX_Size

func (m *VerifyResult) XXX_Size() int

func (*VerifyResult) XXX_Unmarshal

func (m *VerifyResult) XXX_Unmarshal(b []byte) error

type VerifyResult_Code

type VerifyResult_Code int32
const (
	VerifyResult_SUCCESS VerifyResult_Code = 0
	VerifyResult_FAIL    VerifyResult_Code = 1
)

func (VerifyResult_Code) EnumDescriptor

func (VerifyResult_Code) EnumDescriptor() ([]byte, []int)

func (VerifyResult_Code) String

func (x VerifyResult_Code) String() string

type VerifyType

type VerifyType int32

参与者验证类型

const (
	// 证书吊销列表
	VerifyType_VT_CRL VerifyType = 0
)

func (VerifyType) EnumDescriptor

func (VerifyType) EnumDescriptor() ([]byte, []int)

func (VerifyType) String

func (x VerifyType) String() string

type VersionRequest

type VersionRequest struct {
}

服务版本获取请求参数

func (*VersionRequest) Descriptor

func (*VersionRequest) Descriptor() ([]byte, []int)

func (*VersionRequest) Marshal

func (m *VersionRequest) Marshal() (dAtA []byte, err error)

func (*VersionRequest) MarshalTo

func (m *VersionRequest) MarshalTo(dAtA []byte) (int, error)

func (*VersionRequest) MarshalToSizedBuffer

func (m *VersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) Reset

func (m *VersionRequest) Reset()

func (*VersionRequest) Size

func (m *VersionRequest) Size() (n int)

func (*VersionRequest) String

func (m *VersionRequest) String() string

func (*VersionRequest) Unmarshal

func (m *VersionRequest) Unmarshal(dAtA []byte) error

func (*VersionRequest) XXX_DiscardUnknown

func (m *VersionRequest) XXX_DiscardUnknown()

func (*VersionRequest) XXX_Marshal

func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionRequest) XXX_Merge

func (m *VersionRequest) XXX_Merge(src proto.Message)

func (*VersionRequest) XXX_Size

func (m *VersionRequest) XXX_Size() int

func (*VersionRequest) XXX_Unmarshal

func (m *VersionRequest) XXX_Unmarshal(b []byte) error

type VersionResponse

type VersionResponse struct {
	// 0 success
	// 1 fail
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
}

服务版本获取响应

func (*VersionResponse) Descriptor

func (*VersionResponse) Descriptor() ([]byte, []int)

func (*VersionResponse) GetCode

func (m *VersionResponse) GetCode() int32

func (*VersionResponse) GetMessage

func (m *VersionResponse) GetMessage() string

func (*VersionResponse) GetVersion

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) Marshal

func (m *VersionResponse) Marshal() (dAtA []byte, err error)

func (*VersionResponse) MarshalTo

func (m *VersionResponse) MarshalTo(dAtA []byte) (int, error)

func (*VersionResponse) MarshalToSizedBuffer

func (m *VersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) Size

func (m *VersionResponse) Size() (n int)

func (*VersionResponse) String

func (m *VersionResponse) String() string

func (*VersionResponse) Unmarshal

func (m *VersionResponse) Unmarshal(dAtA []byte) error

func (*VersionResponse) XXX_DiscardUnknown

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal

func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionResponse) XXX_Merge

func (m *VersionResponse) XXX_Merge(src proto.Message)

func (*VersionResponse) XXX_Size

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal

func (m *VersionResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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