syscontract

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 39

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAccountManager        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccountManager          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccountManager = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthArchive        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowArchive          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupArchive = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthContractManage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContractManage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContractManage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCrossTransaction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCrossTransaction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCrossTransaction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMultiSign        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMultiSign          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMultiSign = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubscribe        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubscribe          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubscribe = fmt.Errorf("proto: unexpected end of group")
)
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 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_ADDR_ADD",
	8:  "NODE_ADDR_UPDATE",
	9:  "NODE_ADDR_DELETE",
	10: "NODE_ORG_ADD",
	11: "NODE_ORG_UPDATE",
	12: "NODE_ORG_DELETE",
	13: "CONSENSUS_EXT_ADD",
	14: "CONSENSUS_EXT_UPDATE",
	15: "CONSENSUS_EXT_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_ADDR_ADD":             7,
	"NODE_ADDR_UPDATE":          8,
	"NODE_ADDR_DELETE":          9,
	"NODE_ORG_ADD":              10,
	"NODE_ORG_UPDATE":           11,
	"NODE_ORG_DELETE":           12,
	"CONSENSUS_EXT_ADD":         13,
	"CONSENSUS_EXT_UPDATE":      14,
	"CONSENSUS_EXT_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 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_SYSTEM_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_SYSTEM_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: "NORMAL",
	1: "FROZEN",
	2: "REVOKED",
}
View Source
var ContractStatus_value = map[string]int32{
	"NORMAL":  0,
	"FROZEN":  1,
	"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 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_VM",
	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_VM":                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 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 MultiQuery_Parameter_name = map[int32]string{
	0: "TX_ID",
}
View Source
var MultiQuery_Parameter_value = map[string]int32{
	"TX_ID": 0,
}
View Source
var MultiReq_Parameter_name = map[int32]string{
	0: "SYS_CONTRACT_NAME",
	1: "SYS_METHOD",
}
View Source
var MultiReq_Parameter_value = map[string]int32{
	"SYS_CONTRACT_NAME": 0,
	"SYS_METHOD":        1,
}
View Source
var MultiSignFunction_name = map[int32]string{
	0: "REQ",
	1: "VOTE",
	2: "QUERY",
}
View Source
var MultiSignFunction_value = map[string]int32{
	"REQ":   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 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 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 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 SystemContract_name = map[int32]string{
	0:  "CHAIN_CONFIG",
	1:  "CHAIN_QUERY",
	2:  "CERT_MANAGE",
	3:  "GOVERNANCE",
	4:  "MULTI_SIGN",
	5:  "CONTRACT_MANAGE",
	6:  "SUBSCRIBE_MANAGE",
	7:  "ARCHIVE_MANAGE",
	8:  "CROSS_TRANSACTION",
	9:  "PUBKEY_MANAGE",
	10: "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,
	"SUBSCRIBE_MANAGE":  6,
	"ARCHIVE_MANAGE":    7,
	"CROSS_TRANSACTION": 8,
	"PUBKEY_MANAGE":     9,
	"ACCOUNT_MANAGER":   10,
	"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 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 VoteStatus_name = map[int32]string{
	0: "AGREE",
	1: "REJECT",
}
View Source
var VoteStatus_value = map[string]int32{
	"AGREE":  0,
	"REJECT": 1,
}

Functions

This section is empty.

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 AccountMultiSignsReq

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

account multi sign req

func (*AccountMultiSignsReq) Descriptor

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

func (*AccountMultiSignsReq) GetGasMultiSigns

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

func (*AccountMultiSignsReq) Marshal

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

func (*AccountMultiSignsReq) MarshalTo

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

func (*AccountMultiSignsReq) MarshalToSizedBuffer

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

func (*AccountMultiSignsReq) ProtoMessage

func (*AccountMultiSignsReq) ProtoMessage()

func (*AccountMultiSignsReq) Reset

func (m *AccountMultiSignsReq) Reset()

func (*AccountMultiSignsReq) Size

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

func (*AccountMultiSignsReq) String

func (m *AccountMultiSignsReq) String() string

func (*AccountMultiSignsReq) Unmarshal

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

func (*AccountMultiSignsReq) XXX_DiscardUnknown

func (m *AccountMultiSignsReq) XXX_DiscardUnknown()

func (*AccountMultiSignsReq) XXX_Marshal

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

func (*AccountMultiSignsReq) XXX_Merge

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

func (*AccountMultiSignsReq) XXX_Size

func (m *AccountMultiSignsReq) XXX_Size() int

func (*AccountMultiSignsReq) XXX_Unmarshal

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

type ArchiveBlock

type ArchiveBlock struct {
}

archive block payload parameters

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

methods of archive block

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 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 CertManageFunction

type CertManageFunction int32

methods of certificate management

const (
	// add one certificate
	CertManageFunction_CERT_ADD CertManageFunction = 0
	// delete certificates
	CertManageFunction_CERTS_DELETE CertManageFunction = 1
	// query certificates
	CertManageFunction_CERTS_QUERY CertManageFunction = 2
	// freeze certificates
	CertManageFunction_CERTS_FREEZE CertManageFunction = 3
	// unfreeze certificates
	CertManageFunction_CERTS_UNFREEZE CertManageFunction = 4
	// revoke certificates
	CertManageFunction_CERTS_REVOKE CertManageFunction = 5
	// add one certificate alias, any
	CertManageFunction_CERT_ALIAS_ADD CertManageFunction = 6
	// update one certificate alias, self
	CertManageFunction_CERT_ALIAS_UPDATE CertManageFunction = 7
	// delete certificate alias, admin
	CertManageFunction_CERTS_ALIAS_DELETE CertManageFunction = 8
	// query certificate alias, admin
	CertManageFunction_CERTS_ALIAS_QUERY CertManageFunction = 9
)

func (CertManageFunction) EnumDescriptor

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

func (CertManageFunction) String

func (x CertManageFunction) String() string

type ChainConfigFunction

type ChainConfigFunction int32

methods of chain config contract

const (
	// get chain configuration
	ChainConfigFunction_GET_CHAIN_CONFIG ChainConfigFunction = 0
	// get the latest configuration block
	// the incoming block height must exist in the database
	ChainConfigFunction_GET_CHAIN_CONFIG_AT ChainConfigFunction = 1
	// update core
	ChainConfigFunction_CORE_UPDATE ChainConfigFunction = 2
	// update block
	ChainConfigFunction_BLOCK_UPDATE ChainConfigFunction = 3
	// add trusted certificate (org_id and root)
	ChainConfigFunction_TRUST_ROOT_ADD ChainConfigFunction = 4
	// [self] modify an individual's own trusted root certificate [org_id must exist in the original trust_roots,
	// and the new root certificate must be different from other certificates]
	ChainConfigFunction_TRUST_ROOT_UPDATE ChainConfigFunction = 5
	// delete trusted root certificate [org_ ID should be in trust_ The nodes in nodes need to be deleted]
	ChainConfigFunction_TRUST_ROOT_DELETE ChainConfigFunction = 6
	// organization add node address
	// org_id must already exist in nodes,you can add addresses in batches
	// the parameter is addresses. Single addresses are separated by ","
	// ip+port and peerid cannot be repeated
	// Deprecated , replace by NODE_ID_ADD
	ChainConfigFunction_NODE_ADDR_ADD ChainConfigFunction = 7
	// [self]the organization updates an address
	//[org_id and address must already exist in nodes, new_address is the new address. ip+port and peerId cannot be duplicated]
	// Deprecated , replace by NODE_ID_UPDATE
	ChainConfigFunction_NODE_ADDR_UPDATE ChainConfigFunction = 8
	// organization delete node address [org_id and address must already exist in nodes]
	// Deprecated , replace by NODE_ID_DELETE
	ChainConfigFunction_NODE_ADDR_DELETE ChainConfigFunction = 9
	// organization add node address in batches [org_id在nodes不存在,批量添加地址,参数为node_ids,单地址用逗号","隔开。nodeId不能重复]
	ChainConfigFunction_NODE_ORG_ADD ChainConfigFunction = 10
	// organization update
	// org_id must already exist in nodes,the parameter is addresses,Single addresses are separated by ","
	// ip+port and peerid cannot be repeated
	ChainConfigFunction_NODE_ORG_UPDATE ChainConfigFunction = 11
	// organization delete, org_id must already exist in nodes
	ChainConfigFunction_NODE_ORG_DELETE ChainConfigFunction = 12
	// add consensus parameters, key is not exit in ext_config
	ChainConfigFunction_CONSENSUS_EXT_ADD ChainConfigFunction = 13
	// update onsensus parameters, key exit in ext_config
	ChainConfigFunction_CONSENSUS_EXT_UPDATE ChainConfigFunction = 14
	// delete onsensus parameters, key exit in ext_config
	ChainConfigFunction_CONSENSUS_EXT_DELETE ChainConfigFunction = 15
	// add permission
	ChainConfigFunction_PERMISSION_ADD ChainConfigFunction = 16
	// update permission
	ChainConfigFunction_PERMISSION_UPDATE ChainConfigFunction = 17
	// delete permission
	ChainConfigFunction_PERMISSION_DELETE ChainConfigFunction = 18
	// organization add node_id
	// org_id must already exist in nodes,you can add node_id in batches
	// the parameter is node_ids. Single node_ids are separated by ","
	// node_id cannot be repeated
	ChainConfigFunction_NODE_ID_ADD ChainConfigFunction = 19
	// [self]the organization updates a node_ids
	//[org_id and node_ids must already exist in nodes, new_node_id is the new node_id. node_id cannot be duplicated]
	ChainConfigFunction_NODE_ID_UPDATE ChainConfigFunction = 20
	// organization delete node_id [org_id and node_id must already exist in nodes]
	ChainConfigFunction_NODE_ID_DELETE ChainConfigFunction = 21
	// add trusted participant (org_id signcert role  node_id)
	ChainConfigFunction_TRUST_PARTICIPANT_ADD ChainConfigFunction = 22
	// [self] modify an individual's own trusted participant [node_id must exist in the original trust_participants,
	// and the new trust herbt must be different from other trust participants]
	ChainConfigFunction_TRUST_PARTICIPANT_UPDATE ChainConfigFunction = 23
	// delete trusted participant certificate [node_ ID should be in trust_ The nodes in nodes need to be deleted]
	ChainConfigFunction_TRUST_PARTICIPANT_DELETE ChainConfigFunction = 24
	// alter address type
	ChainConfigFunction_ALTER_ADDR_TYPE ChainConfigFunction = 25
	// able or enable gas calc
	ChainConfigFunction_ENABLE_OR_DISABLE_GAS ChainConfigFunction = 26
	// set invoke base gas
	ChainConfigFunction_SET_INVOKE_BASE_GAS ChainConfigFunction = 27
	// set account manager admin
	ChainConfigFunction_SET_ACCOUNT_MANAGER_ADMIN ChainConfigFunction = 28
	// list permissions
	ChainConfigFunction_PERMISSION_LIST ChainConfigFunction = 29
	// update version
	ChainConfigFunction_UPDATE_VERSION ChainConfigFunction = 30
)

func (ChainConfigFunction) EnumDescriptor

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

func (ChainConfigFunction) String

func (x ChainConfigFunction) String() string

type ChainQueryFunction

type ChainQueryFunction int32

methods of chain query contract

const (
	// get block by transactionId
	ChainQueryFunction_GET_BLOCK_BY_TX_ID ChainQueryFunction = 0
	// get transaction by transactionId
	ChainQueryFunction_GET_TX_BY_TX_ID ChainQueryFunction = 1
	// get block by block height
	ChainQueryFunction_GET_BLOCK_BY_HEIGHT ChainQueryFunction = 2
	// get chain information, include current height and consensus node list
	ChainQueryFunction_GET_CHAIN_INFO ChainQueryFunction = 3
	// get the last configuration block
	ChainQueryFunction_GET_LAST_CONFIG_BLOCK ChainQueryFunction = 4
	// get block by block hash
	ChainQueryFunction_GET_BLOCK_BY_HASH ChainQueryFunction = 5
	// get the list of chains the node knows
	ChainQueryFunction_GET_NODE_CHAIN_LIST ChainQueryFunction = 6
	// get governance information
	ChainQueryFunction_GET_GOVERNANCE_CONTRACT ChainQueryFunction = 7
	// get read/write set information by eight
	ChainQueryFunction_GET_BLOCK_WITH_TXRWSETS_BY_HEIGHT ChainQueryFunction = 8
	// get read/write set information by hash
	ChainQueryFunction_GET_BLOCK_WITH_TXRWSETS_BY_HASH ChainQueryFunction = 9
	// get the last block
	ChainQueryFunction_GET_LAST_BLOCK ChainQueryFunction = 10
	// get full block by height
	ChainQueryFunction_GET_FULL_BLOCK_BY_HEIGHT ChainQueryFunction = 11
	// get block height by tx id
	ChainQueryFunction_GET_BLOCK_HEIGHT_BY_TX_ID ChainQueryFunction = 12
	// get block height by hash
	ChainQueryFunction_GET_BLOCK_HEIGHT_BY_HASH ChainQueryFunction = 13
	//get block header by height
	ChainQueryFunction_GET_BLOCK_HEADER_BY_HEIGHT ChainQueryFunction = 14
	// get archived block height
	ChainQueryFunction_GET_ARCHIVED_BLOCK_HEIGHT ChainQueryFunction = 15
	//get all contract info list
	ChainQueryFunction_GET_ALL_CONTRACTS ChainQueryFunction = 16
	// get merkle path by tx id
	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 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 ContractInfo

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

func (*ContractInfo) Descriptor

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

func (*ContractInfo) GetContractTransaction

func (m *ContractInfo) GetContractTransaction() []*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

methods of user management contract

const (
	// init contract
	ContractManageFunction_INIT_CONTRACT ContractManageFunction = 0
	// upgrade contract version
	ContractManageFunction_UPGRADE_CONTRACT ContractManageFunction = 1
	// freeze contract, cannot be invoked temporarily
	ContractManageFunction_FREEZE_CONTRACT ContractManageFunction = 2
	// unfreeze contract to normal status
	ContractManageFunction_UNFREEZE_CONTRACT ContractManageFunction = 3
	// revoke contract, cannot be invoked permanently
	ContractManageFunction_REVOKE_CONTRACT ContractManageFunction = 4
	// grant access to a system contract
	ContractManageFunction_GRANT_CONTRACT_ACCESS ContractManageFunction = 5
	// revoke access to a system contract
	ContractManageFunction_REVOKE_CONTRACT_ACCESS ContractManageFunction = 6
	// verify if has access to a certain system contract
	ContractManageFunction_VERIFY_CONTRACT_ACCESS ContractManageFunction = 7
	//initial new herbt version system contract list
	ContractManageFunction_INIT_NEW_SYSTEM_CONTRACT ContractManageFunction = 8
)

func (ContractManageFunction) EnumDescriptor

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

func (ContractManageFunction) String

func (x ContractManageFunction) String() string

type ContractQueryFunction

type ContractQueryFunction int32

methods of contract query

const (
	// get contract information
	ContractQueryFunction_GET_CONTRACT_INFO ContractQueryFunction = 0
	// get contract bytecode
	ContractQueryFunction_GET_CONTRACT_BYTECODE ContractQueryFunction = 1
	// get all installed contract
	ContractQueryFunction_GET_CONTRACT_LIST ContractQueryFunction = 2
	// get system contract list has access to
	ContractQueryFunction_GET_DISABLED_CONTRACT_LIST ContractQueryFunction = 3
)

func (ContractQueryFunction) EnumDescriptor

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

func (ContractQueryFunction) String

func (x ContractQueryFunction) String() string

type ContractStatus

type ContractStatus int32

current contract status

const (
	// normal, can be invoked
	ContractStatus_NORMAL ContractStatus = 0
	// frozen, cannot be invoked temporarily
	ContractStatus_FROZEN ContractStatus = 1
	// revoked, cannot be invoked permanently
	ContractStatus_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 *common.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() *common.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 CrossArbitrateCmd

type CrossArbitrateCmd int32
const (
	//AUTO_CMD automatic processing according to the process
	CrossArbitrateCmd_AUTO_CMD CrossArbitrateCmd = 0
	//EXECUTE_CMD execute the execution flow
	CrossArbitrateCmd_EXECUTE_CMD CrossArbitrateCmd = 1
	//COMMIT_CMD execute the commit flow
	CrossArbitrateCmd_COMMIT_CMD CrossArbitrateCmd = 2
	//COMMIT_CMD execute the rollback flow
	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=syscontract.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 (
	// transaction execute
	CrossTransactionFunction_EXECUTE CrossTransactionFunction = 0
	// transaction commit
	CrossTransactionFunction_COMMIT CrossTransactionFunction = 1
	// transaction rollback
	CrossTransactionFunction_ROLLBACK CrossTransactionFunction = 2
	// read cross id state
	CrossTransactionFunction_READ_STATE CrossTransactionFunction = 3
	// save cross other transaction proof
	CrossTransactionFunction_SAVE_PROOF CrossTransactionFunction = 4
	// read cross other transaction proof
	CrossTransactionFunction_READ_PROOF CrossTransactionFunction = 5
	// arbitrate the cross transaction
	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 cross id is not exist
	CrossTxState_NON_EXIST CrossTxState = 0
	//INIT just mark this cross is has been processed
	CrossTxState_INIT CrossTxState = 1
	//EXECUTE_OK cross tx execute successfully
	CrossTxState_EXECUTE_OK CrossTxState = 2
	//EXECUTE_FAIL cross tx execute fail
	CrossTxState_EXECUTE_FAIL CrossTxState = 3
	//COMMIT_OK cross tx commit successfully
	CrossTxState_COMMIT_OK CrossTxState = 4
	//COMMIT_FAIL cross tx commit fail
	CrossTxState_COMMIT_FAIL CrossTxState = 5
	//ROLLBACK_OK cross tx rollback successfully
	CrossTxState_ROLLBACK_OK CrossTxState = 6
	//ROLLBACK_FAIL cross tx rollback fail
	CrossTxState_ROLLBACK_FAIL CrossTxState = 7
)

func (CrossTxState) EnumDescriptor

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

func (CrossTxState) String

func (x CrossTxState) String() string

type FreezeContract

type FreezeContract struct {
}

freeze contract parameters

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 GasAccountFunction

type GasAccountFunction int32

methods of private compute contract

const (
	// set admin
	GasAccountFunction_SET_ADMIN GasAccountFunction = 0
	// get admin
	GasAccountFunction_GET_ADMIN GasAccountFunction = 1
	// recharge gas
	GasAccountFunction_RECHARGE_GAS GasAccountFunction = 2
	// get balance
	GasAccountFunction_GET_BALANCE GasAccountFunction = 3
	// charge gas
	GasAccountFunction_CHARGE_GAS GasAccountFunction = 4
	// frozen account
	GasAccountFunction_FROZEN_ACCOUNT GasAccountFunction = 5
	// unfrozen account
	GasAccountFunction_UNFROZEN_ACCOUNT GasAccountFunction = 6
	// account status
	GasAccountFunction_ACCOUNT_STATUS GasAccountFunction = 7
	// refund gas
	GasAccountFunction_REFUND_GAS GasAccountFunction = 8
	// refund gas for vm
	GasAccountFunction_REFUND_GAS_VM GasAccountFunction = 9
	// charge gas for multi accounts
	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 {
}

query contract parameters

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 InitContract

type InitContract struct {
}

init contract parameters

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 MultiQuery

type MultiQuery struct {
}

revoke contract parameters

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 MultiReq

type MultiReq struct {
}

revoke contract parameters

func (*MultiReq) Descriptor

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

func (*MultiReq) Marshal

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

func (*MultiReq) MarshalTo

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

func (*MultiReq) MarshalToSizedBuffer

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

func (*MultiReq) ProtoMessage

func (*MultiReq) ProtoMessage()

func (*MultiReq) Reset

func (m *MultiReq) Reset()

func (*MultiReq) Size

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

func (*MultiReq) String

func (m *MultiReq) String() string

func (*MultiReq) Unmarshal

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

func (*MultiReq) XXX_DiscardUnknown

func (m *MultiReq) XXX_DiscardUnknown()

func (*MultiReq) XXX_Marshal

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

func (*MultiReq) XXX_Merge

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

func (*MultiReq) XXX_Size

func (m *MultiReq) XXX_Size() int

func (*MultiReq) XXX_Unmarshal

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

type MultiReq_Parameter

type MultiReq_Parameter int32
const (
	MultiReq_SYS_CONTRACT_NAME MultiReq_Parameter = 0
	MultiReq_SYS_METHOD        MultiReq_Parameter = 1
)

func (MultiReq_Parameter) EnumDescriptor

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

func (MultiReq_Parameter) String

func (x MultiReq_Parameter) String() string

type MultiSignFunction

type MultiSignFunction int32

methods of managing multi signature

const (
	// multi signature request
	MultiSignFunction_REQ MultiSignFunction = 0
	// multi signature voting
	MultiSignFunction_VOTE MultiSignFunction = 1
	// multi signature query
	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 {
	// current tx payload
	Payload *common.Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// call system contract name
	ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	// call system contract method
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// call system contract parameters
	//repeated common.KeyValuePair parameters = 4;
	// status
	Status MultiSignStatus `protobuf:"varint,4,opt,name=status,proto3,enum=syscontract.MultiSignStatus" json:"status,omitempty"`
	// vote list
	VoteInfos []*MultiSignVoteInfo `protobuf:"bytes,5,rep,name=vote_infos,json=voteInfos,proto3" json:"vote_infos,omitempty"`
	//call system contract message
	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	//call system contract result
	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() *common.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

smart contract runtime, contains vm type and language type

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        VoteStatus               `protobuf:"varint,1,opt,name=vote,proto3,enum=syscontract.VoteStatus" json:"vote,omitempty"`
	Endorsement *common.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() *common.EndorsementEntry

func (*MultiSignVoteInfo) GetVote

func (m *MultiSignVoteInfo) GetVote() VoteStatus

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 MultiVote

type MultiVote struct {
}

revoke contract parameters

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 PubkeyManageFunction

type PubkeyManageFunction int32

methods of pubkey management

const (
	// add one pubkey
	PubkeyManageFunction_PUBKEY_ADD PubkeyManageFunction = 0
	// delete pubkeys
	PubkeyManageFunction_PUBKEY_DELETE PubkeyManageFunction = 1
	// query pubkeys
	PubkeyManageFunction_PUBKEY_QUERY PubkeyManageFunction = 2
)

func (PubkeyManageFunction) EnumDescriptor

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

func (PubkeyManageFunction) String

func (x PubkeyManageFunction) String() string

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 RechargeGasReq

type RechargeGasReq struct {
	BatchRechargeGas []*RechargeGas `protobuf:"bytes,1,rep,name=batch_recharge_gas,json=batchRechargeGas,proto3" json:"batch_recharge_gas,omitempty"`
}

func (*RechargeGasReq) Descriptor

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

func (*RechargeGasReq) GetBatchRechargeGas

func (m *RechargeGasReq) GetBatchRechargeGas() []*RechargeGas

func (*RechargeGasReq) Marshal

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

func (*RechargeGasReq) MarshalTo

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

func (*RechargeGasReq) MarshalToSizedBuffer

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

func (*RechargeGasReq) ProtoMessage

func (*RechargeGasReq) ProtoMessage()

func (*RechargeGasReq) Reset

func (m *RechargeGasReq) Reset()

func (*RechargeGasReq) Size

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

func (*RechargeGasReq) String

func (m *RechargeGasReq) String() string

func (*RechargeGasReq) Unmarshal

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

func (*RechargeGasReq) XXX_DiscardUnknown

func (m *RechargeGasReq) XXX_DiscardUnknown()

func (*RechargeGasReq) XXX_Marshal

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

func (*RechargeGasReq) XXX_Merge

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

func (*RechargeGasReq) XXX_Size

func (m *RechargeGasReq) XXX_Size() int

func (*RechargeGasReq) XXX_Unmarshal

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

type RestoreBlock

type RestoreBlock struct {
}

restore block payload parameters

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 RevokeContract

type RevokeContract struct {
}

revoke contract parameters

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 SubscribeBlock

type SubscribeBlock struct {
}

subscribe block payload parameters

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 {
}

subscribe contract event parameters

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

methods of subscribe

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 SubscribeTx

type SubscribeTx struct {
}

subscribe transaction payload parameters

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 SystemContract

type SystemContract int32
const (
	// system chain configuration contract
	// used to add, delete and change the chain configuration
	SystemContract_CHAIN_CONFIG SystemContract = 0
	// system chain query contract
	// used to query the configuration on the chain
	SystemContract_CHAIN_QUERY SystemContract = 1
	// system certificate storage contract
	// used to manage certificates
	SystemContract_CERT_MANAGE SystemContract = 2
	// governance contract
	SystemContract_GOVERNANCE SystemContract = 3
	// multi signature contract on chain
	SystemContract_MULTI_SIGN SystemContract = 4
	// manage user contract
	SystemContract_CONTRACT_MANAGE SystemContract = 5
	//subscribe block info,tx info and contract info.
	SystemContract_SUBSCRIBE_MANAGE SystemContract = 6
	//archive/restore block
	SystemContract_ARCHIVE_MANAGE SystemContract = 7
	//cross chain transaction system contract
	SystemContract_CROSS_TRANSACTION SystemContract = 8
	// pubkey manage system contract
	SystemContract_PUBKEY_MANAGE SystemContract = 9
	// account manager system contract
	SystemContract_ACCOUNT_MANAGER SystemContract = 10
	// for test or debug contract code
	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

methods of chain query contract

const (
	// put data, parameters: k,v
	TestContractFunction_P TestContractFunction = 0
	// get data parameter: k
	TestContractFunction_G TestContractFunction = 1
	// nothing to do.
	TestContractFunction_N TestContractFunction = 2
	// delete data by key, parameter: k
	TestContractFunction_D TestContractFunction = 3
)

func (TestContractFunction) EnumDescriptor

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

func (TestContractFunction) String

func (x TestContractFunction) String() string

type UnfreezeContract

type UnfreezeContract struct {
}

unfreeze contract parameters

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 UpgradeContract

type UpgradeContract struct {
}

upgrade contract parameters

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 VoteStatus

type VoteStatus int32
const (
	VoteStatus_AGREE  VoteStatus = 0
	VoteStatus_REJECT VoteStatus = 1
)

func (VoteStatus) EnumDescriptor

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

func (VoteStatus) String

func (x VoteStatus) String() string

Jump to

Keyboard shortcuts

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