pb

package
v0.0.0-...-b124b1e Latest Latest
Warning

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

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

README

protoc -I ./ --go_out=./ --go_opt=paths=source_relative --go-grpc_out=./ --go-grpc_opt=paths=source_relative --go-grpc_opt=require_unimplemented_servers=false --grpc-gateway_out=./ --grpc-gateway_opt=logtostderr=true --grpc-gateway_opt=paths=source_relative --grpc-gateway_opt=generate_unbound_methods=true ./*.proto

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	XChainErrorEnum_name = map[int32]string{
		0:  "SUCCESS",
		1:  "UNKNOW_ERROR",
		2:  "CONNECT_REFUSE",
		3:  "NOT_ENOUGH_UTXO_ERROR",
		4:  "UTXOVM_ALREADY_UNCONFIRM_ERROR",
		5:  "UTXOVM_NOT_FOUND_ERROR",
		6:  "INPUT_OUTPUT_NOT_EQUAL_ERROR",
		7:  "TX_NOT_FOUND_ERROR",
		8:  "TX_SIGN_ERROR",
		9:  "BLOCKCHAIN_NOTEXIST",
		10: "VALIDATE_ERROR",
		11: "CANNOT_SYNC_BLOCK_ERROR",
		12: "CONFIRM_BLOCK_ERROR",
		13: "UTXOVM_PLAY_ERROR",
		14: "WALK_ERROR",
		15: "NOT_READY_ERROR",
		16: "BLOCK_EXIST_ERROR",
		17: "ROOT_BLOCK_EXIST_ERROR",
		19: "TX_DUPLICATE_ERROR",
		20: "SERVICE_REFUSED_ERROR",
		21: "TXDATA_SIGN_ERROR",
		25: "TX_SLE_ERROR",
		26: "TX_FEE_NOT_ENOUGH_ERROR",
		28: "UTXO_SIGN_ERROR",
		31: "DPOS_QUERY_ERROR",
		33: "RWSET_INVALID_ERROR",
		34: "RWACL_INVALID_ERROR",
		35: "GAS_NOT_ENOUGH_ERROR",
		36: "TX_VERSION_INVALID_ERROR",
		37: "COMPLIANCE_CHECK_NOT_APPROVED",
		38: "ACCOUNT_CONTRACT_STATUS_ERROR",
		40: "TX_VERIFICATION_ERROR",
	}
	XChainErrorEnum_value = map[string]int32{
		"SUCCESS":                        0,
		"UNKNOW_ERROR":                   1,
		"CONNECT_REFUSE":                 2,
		"NOT_ENOUGH_UTXO_ERROR":          3,
		"UTXOVM_ALREADY_UNCONFIRM_ERROR": 4,
		"UTXOVM_NOT_FOUND_ERROR":         5,
		"INPUT_OUTPUT_NOT_EQUAL_ERROR":   6,
		"TX_NOT_FOUND_ERROR":             7,
		"TX_SIGN_ERROR":                  8,
		"BLOCKCHAIN_NOTEXIST":            9,
		"VALIDATE_ERROR":                 10,
		"CANNOT_SYNC_BLOCK_ERROR":        11,
		"CONFIRM_BLOCK_ERROR":            12,
		"UTXOVM_PLAY_ERROR":              13,
		"WALK_ERROR":                     14,
		"NOT_READY_ERROR":                15,
		"BLOCK_EXIST_ERROR":              16,
		"ROOT_BLOCK_EXIST_ERROR":         17,
		"TX_DUPLICATE_ERROR":             19,
		"SERVICE_REFUSED_ERROR":          20,
		"TXDATA_SIGN_ERROR":              21,
		"TX_SLE_ERROR":                   25,
		"TX_FEE_NOT_ENOUGH_ERROR":        26,
		"UTXO_SIGN_ERROR":                28,
		"DPOS_QUERY_ERROR":               31,
		"RWSET_INVALID_ERROR":            33,
		"RWACL_INVALID_ERROR":            34,
		"GAS_NOT_ENOUGH_ERROR":           35,
		"TX_VERSION_INVALID_ERROR":       36,
		"COMPLIANCE_CHECK_NOT_APPROVED":  37,
		"ACCOUNT_CONTRACT_STATUS_ERROR":  38,
		"TX_VERIFICATION_ERROR":          40,
	}
)

Enum value maps for XChainErrorEnum.

View Source
var (
	TransactionStatus_name = map[int32]string{
		0: "UNDEFINE",
		1: "NOEXIST",
		2: "CONFIRM",
		3: "FURCATION",
		4: "UNCONFIRM",
		5: "FAILED",
	}
	TransactionStatus_value = map[string]int32{
		"UNDEFINE":  0,
		"NOEXIST":   1,
		"CONFIRM":   2,
		"FURCATION": 3,
		"UNCONFIRM": 4,
		"FAILED":    5,
	}
)

Enum value maps for TransactionStatus.

View Source
var (
	ViewOption_name = map[int32]string{
		0: "NONE",
		1: "LEDGER",
		2: "UTXOINFO",
		3: "BRANCHINFO",
		4: "PEERS",
	}
	ViewOption_value = map[string]int32{
		"NONE":       0,
		"LEDGER":     1,
		"UTXOINFO":   2,
		"BRANCHINFO": 3,
		"PEERS":      4,
	}
)

Enum value maps for ViewOption.

View Source
var (
	QCState_name = map[int32]string{
		0: "NEW_VIEW",
		1: "PREPARE",
		2: "PRE_COMMIT",
		3: "COMMIT",
		4: "DECIDE",
	}
	QCState_value = map[string]int32{
		"NEW_VIEW":   0,
		"PREPARE":    1,
		"PRE_COMMIT": 2,
		"COMMIT":     3,
		"DECIDE":     4,
	}
)

Enum value maps for QCState.

View Source
var (
	PermissionRule_name = map[int32]string{
		0: "NULL",
		1: "SIGN_THRESHOLD",
		2: "SIGN_AKSET",
		3: "SIGN_RATE",
		4: "SIGN_SUM",
		5: "CA_SERVER",
		6: "COMMUNITY_VOTE",
	}
	PermissionRule_value = map[string]int32{
		"NULL":           0,
		"SIGN_THRESHOLD": 1,
		"SIGN_AKSET":     2,
		"SIGN_RATE":      3,
		"SIGN_SUM":       4,
		"CA_SERVER":      5,
		"COMMUNITY_VOTE": 6,
	}
)

Enum value maps for PermissionRule.

View Source
var (
	ResourceType_name = map[int32]string{
		0: "CPU",
		1: "MEMORY",
		2: "DISK",
		3: "XFEE",
	}
	ResourceType_value = map[string]int32{
		"CPU":    0,
		"MEMORY": 1,
		"DISK":   2,
		"XFEE":   3,
	}
)

Enum value maps for ResourceType.

View Source
var (
	Block_EBlockStatus_name = map[int32]string{
		0: "ERROR",
		1: "TRUNK",
		2: "BRANCH",
		3: "NOEXIST",
	}
	Block_EBlockStatus_value = map[string]int32{
		"ERROR":   0,
		"TRUNK":   1,
		"BRANCH":  2,
		"NOEXIST": 3,
	}
)

Enum value maps for Block_EBlockStatus.

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_endorser_proto protoreflect.FileDescriptor
View Source
var MXchain_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.MXchain",
	HandlerType: (*MXchainServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SelectUTXOBySize",
			Handler:    _MXchain_SelectUTXOBySize_Handler,
		},
		{
			MethodName: "PostTx",
			Handler:    _MXchain_PostTx_Handler,
		},
		{
			MethodName: "QueryACL",
			Handler:    _MXchain_QueryACL_Handler,
		},
		{
			MethodName: "QueryUtxoRecord",
			Handler:    _MXchain_QueryUtxoRecord_Handler,
		},
		{
			MethodName: "QueryContractStatData",
			Handler:    _MXchain_QueryContractStatData_Handler,
		},
		{
			MethodName: "GetAccountContracts",
			Handler:    _MXchain_GetAccountContracts_Handler,
		},
		{
			MethodName: "QueryTx",
			Handler:    _MXchain_QueryTx_Handler,
		},
		{
			MethodName: "GetBalance",
			Handler:    _MXchain_GetBalance_Handler,
		},
		{
			MethodName: "GetBalanceDetail",
			Handler:    _MXchain_GetBalanceDetail_Handler,
		},
		{
			MethodName: "GetFrozenBalance",
			Handler:    _MXchain_GetFrozenBalance_Handler,
		},
		{
			MethodName: "GetBlock",
			Handler:    _MXchain_GetBlock_Handler,
		},
		{
			MethodName: "GetBlockByHeight",
			Handler:    _MXchain_GetBlockByHeight_Handler,
		},
		{
			MethodName: "GetBlockChainStatus",
			Handler:    _MXchain_GetBlockChainStatus_Handler,
		},
		{
			MethodName: "GetBlockChains",
			Handler:    _MXchain_GetBlockChains_Handler,
		},
		{
			MethodName: "GetSystemStatus",
			Handler:    _MXchain_GetSystemStatus_Handler,
		},
		{
			MethodName: "GetConsensusStatus",
			Handler:    _MXchain_GetConsensusStatus_Handler,
		},
		{
			MethodName: "GetNetURL",
			Handler:    _MXchain_GetNetURL_Handler,
		},
		{
			MethodName: "SelectUTXO",
			Handler:    _MXchain_SelectUTXO_Handler,
		},
		{
			MethodName: "PreExecWithSelectUTXO",
			Handler:    _MXchain_PreExecWithSelectUTXO_Handler,
		},
		{
			MethodName: "DposCandidates",
			Handler:    _MXchain_DposCandidates_Handler,
		},
		{
			MethodName: "DposNominateRecords",
			Handler:    _MXchain_DposNominateRecords_Handler,
		},
		{
			MethodName: "DposNomineeRecords",
			Handler:    _MXchain_DposNomineeRecords_Handler,
		},
		{
			MethodName: "DposVoteRecords",
			Handler:    _MXchain_DposVoteRecords_Handler,
		},
		{
			MethodName: "DposVotedRecords",
			Handler:    _MXchain_DposVotedRecords_Handler,
		},
		{
			MethodName: "DposCheckResults",
			Handler:    _MXchain_DposCheckResults_Handler,
		},
		{
			MethodName: "DposStatus",
			Handler:    _MXchain_DposStatus_Handler,
		},
		{
			MethodName: "GetAccountByAK",
			Handler:    _MXchain_GetAccountByAK_Handler,
		},
		{
			MethodName: "GetAddressContracts",
			Handler:    _MXchain_GetAddressContracts_Handler,
		},
		{
			MethodName: "PreExec",
			Handler:    _MXchain_PreExec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "common.proto",
}

MXchain_ServiceDesc is the grpc.ServiceDesc for MXchain service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Xendorser_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.xendorser",
	HandlerType: (*XendorserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EndorserCall",
			Handler:    _Xendorser_EndorserCall_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "endorser.proto",
}

Xendorser_ServiceDesc is the grpc.ServiceDesc for Xendorser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMXchainHandler

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

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

func RegisterMXchainHandlerClient

func RegisterMXchainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MXchainClient) error

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

func RegisterMXchainHandlerFromEndpoint

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

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

func RegisterMXchainHandlerServer

func RegisterMXchainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MXchainServer) error

RegisterMXchainHandlerServer registers the http handlers for service MXchain to "mux". UnaryRPC :call MXchainServer 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 RegisterMXchainHandlerFromEndpoint instead.

func RegisterMXchainServer

func RegisterMXchainServer(s grpc.ServiceRegistrar, srv MXchainServer)

func RegisterXendorserHandler

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

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

func RegisterXendorserHandlerClient

func RegisterXendorserHandlerClient(ctx context.Context, mux *runtime.ServeMux, client XendorserClient) error

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

func RegisterXendorserHandlerFromEndpoint

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

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

func RegisterXendorserHandlerServer

func RegisterXendorserHandlerServer(ctx context.Context, mux *runtime.ServeMux, server XendorserServer) error

RegisterXendorserHandlerServer registers the http handlers for service Xendorser to "mux". UnaryRPC :call XendorserServer 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 RegisterXendorserHandlerFromEndpoint instead.

func RegisterXendorserServer

func RegisterXendorserServer(s grpc.ServiceRegistrar, srv XendorserServer)

Types

type AK2AccountRequest

type AK2AccountRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AK2AccountRequest) Descriptor deprecated

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

Deprecated: Use AK2AccountRequest.ProtoReflect.Descriptor instead.

func (*AK2AccountRequest) GetAddress

func (x *AK2AccountRequest) GetAddress() string

func (*AK2AccountRequest) GetBcname

func (x *AK2AccountRequest) GetBcname() string

func (*AK2AccountRequest) GetHeader

func (x *AK2AccountRequest) GetHeader() *Header

func (*AK2AccountRequest) ProtoMessage

func (*AK2AccountRequest) ProtoMessage()

func (*AK2AccountRequest) ProtoReflect

func (x *AK2AccountRequest) ProtoReflect() protoreflect.Message

func (*AK2AccountRequest) Reset

func (x *AK2AccountRequest) Reset()

func (*AK2AccountRequest) String

func (x *AK2AccountRequest) String() string

type AK2AccountResponse

type AK2AccountResponse struct {
	Header  *Header  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string   `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Account []string `protobuf:"bytes,3,rep,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

func (*AK2AccountResponse) Descriptor deprecated

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

Deprecated: Use AK2AccountResponse.ProtoReflect.Descriptor instead.

func (*AK2AccountResponse) GetAccount

func (x *AK2AccountResponse) GetAccount() []string

func (*AK2AccountResponse) GetBcname

func (x *AK2AccountResponse) GetBcname() string

func (*AK2AccountResponse) GetHeader

func (x *AK2AccountResponse) GetHeader() *Header

func (*AK2AccountResponse) ProtoMessage

func (*AK2AccountResponse) ProtoMessage()

func (*AK2AccountResponse) ProtoReflect

func (x *AK2AccountResponse) ProtoReflect() protoreflect.Message

func (*AK2AccountResponse) Reset

func (x *AK2AccountResponse) Reset()

func (*AK2AccountResponse) String

func (x *AK2AccountResponse) String() string

type Acl

type Acl struct {
	Pm        *PermissionModel   `protobuf:"bytes,1,opt,name=pm,proto3" json:"pm,omitempty"` // 采用的权限模型
	AksWeight map[string]float64 ``                                                          // 公钥or账户名  -> 权重
	/* 161-byte string literal not displayed */
	AkSets *AkSets `protobuf:"bytes,3,opt,name=akSets,proto3" json:"akSets,omitempty"`
	// contains filtered or unexported fields
}

Acl实际使用的结构

func (*Acl) Descriptor deprecated

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

Deprecated: Use Acl.ProtoReflect.Descriptor instead.

func (*Acl) GetAkSets

func (x *Acl) GetAkSets() *AkSets

func (*Acl) GetAksWeight

func (x *Acl) GetAksWeight() map[string]float64

func (*Acl) GetPm

func (x *Acl) GetPm() *PermissionModel

func (*Acl) ProtoMessage

func (*Acl) ProtoMessage()

func (*Acl) ProtoReflect

func (x *Acl) ProtoReflect() protoreflect.Message

func (*Acl) Reset

func (x *Acl) Reset()

func (*Acl) String

func (x *Acl) String() string

type AclStatus

type AclStatus struct {
	Header       *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname       string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	AccountName  string  `protobuf:"bytes,3,opt,name=accountName,proto3" json:"accountName,omitempty"`
	ContractName string  `protobuf:"bytes,4,opt,name=contractName,proto3" json:"contractName,omitempty"`
	MethodName   string  `protobuf:"bytes,5,opt,name=methodName,proto3" json:"methodName,omitempty"`
	Confirmed    bool    `protobuf:"varint,6,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	Acl          *Acl    `protobuf:"bytes,7,opt,name=acl,proto3" json:"acl,omitempty"`
	// contains filtered or unexported fields
}

查询Acl

func (*AclStatus) Descriptor deprecated

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

Deprecated: Use AclStatus.ProtoReflect.Descriptor instead.

func (*AclStatus) GetAccountName

func (x *AclStatus) GetAccountName() string

func (*AclStatus) GetAcl

func (x *AclStatus) GetAcl() *Acl

func (*AclStatus) GetBcname

func (x *AclStatus) GetBcname() string

func (*AclStatus) GetConfirmed

func (x *AclStatus) GetConfirmed() bool

func (*AclStatus) GetContractName

func (x *AclStatus) GetContractName() string

func (*AclStatus) GetHeader

func (x *AclStatus) GetHeader() *Header

func (*AclStatus) GetMethodName

func (x *AclStatus) GetMethodName() string

func (*AclStatus) ProtoMessage

func (*AclStatus) ProtoMessage()

func (*AclStatus) ProtoReflect

func (x *AclStatus) ProtoReflect() protoreflect.Message

func (*AclStatus) Reset

func (x *AclStatus) Reset()

func (*AclStatus) String

func (x *AclStatus) String() string

type AddressBalanceStatus

type AddressBalanceStatus struct {
	Header  *Header               `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Address string                `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Tfds    []*TokenFrozenDetails `protobuf:"bytes,3,rep,name=tfds,proto3" json:"tfds,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressBalanceStatus) Descriptor deprecated

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

Deprecated: Use AddressBalanceStatus.ProtoReflect.Descriptor instead.

func (*AddressBalanceStatus) GetAddress

func (x *AddressBalanceStatus) GetAddress() string

func (*AddressBalanceStatus) GetHeader

func (x *AddressBalanceStatus) GetHeader() *Header

func (*AddressBalanceStatus) GetTfds

func (x *AddressBalanceStatus) GetTfds() []*TokenFrozenDetails

func (*AddressBalanceStatus) ProtoMessage

func (*AddressBalanceStatus) ProtoMessage()

func (*AddressBalanceStatus) ProtoReflect

func (x *AddressBalanceStatus) ProtoReflect() protoreflect.Message

func (*AddressBalanceStatus) Reset

func (x *AddressBalanceStatus) Reset()

func (*AddressBalanceStatus) String

func (x *AddressBalanceStatus) String() string

type AddressContractsRequest

type AddressContractsRequest struct {
	Header      *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname      string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address     string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	NeedContent bool    `protobuf:"varint,4,opt,name=need_content,json=needContent,proto3" json:"need_content,omitempty"`
	// contains filtered or unexported fields
}

Query address contracts request

func (*AddressContractsRequest) Descriptor deprecated

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

Deprecated: Use AddressContractsRequest.ProtoReflect.Descriptor instead.

func (*AddressContractsRequest) GetAddress

func (x *AddressContractsRequest) GetAddress() string

func (*AddressContractsRequest) GetBcname

func (x *AddressContractsRequest) GetBcname() string

func (*AddressContractsRequest) GetHeader

func (x *AddressContractsRequest) GetHeader() *Header

func (*AddressContractsRequest) GetNeedContent

func (x *AddressContractsRequest) GetNeedContent() bool

func (*AddressContractsRequest) ProtoMessage

func (*AddressContractsRequest) ProtoMessage()

func (*AddressContractsRequest) ProtoReflect

func (x *AddressContractsRequest) ProtoReflect() protoreflect.Message

func (*AddressContractsRequest) Reset

func (x *AddressContractsRequest) Reset()

func (*AddressContractsRequest) String

func (x *AddressContractsRequest) String() string

type AddressContractsResponse

type AddressContractsResponse struct {
	Header    *Header                  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Contracts map[string]*ContractList `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

Query address contracts response

func (*AddressContractsResponse) Descriptor deprecated

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

Deprecated: Use AddressContractsResponse.ProtoReflect.Descriptor instead.

func (*AddressContractsResponse) GetContracts

func (x *AddressContractsResponse) GetContracts() map[string]*ContractList

func (*AddressContractsResponse) GetHeader

func (x *AddressContractsResponse) GetHeader() *Header

func (*AddressContractsResponse) ProtoMessage

func (*AddressContractsResponse) ProtoMessage()

func (*AddressContractsResponse) ProtoReflect

func (x *AddressContractsResponse) ProtoReflect() protoreflect.Message

func (*AddressContractsResponse) Reset

func (x *AddressContractsResponse) Reset()

func (*AddressContractsResponse) String

func (x *AddressContractsResponse) String() string

type AddressStatus

type AddressStatus struct {
	Header  *Header        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Address string         `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Bcs     []*TokenDetail `protobuf:"bytes,3,rep,name=bcs,proto3" json:"bcs,omitempty"`
	// contains filtered or unexported fields
}

func (*AddressStatus) Descriptor deprecated

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

Deprecated: Use AddressStatus.ProtoReflect.Descriptor instead.

func (*AddressStatus) GetAddress

func (x *AddressStatus) GetAddress() string

func (*AddressStatus) GetBcs

func (x *AddressStatus) GetBcs() []*TokenDetail

func (*AddressStatus) GetHeader

func (x *AddressStatus) GetHeader() *Header

func (*AddressStatus) ProtoMessage

func (*AddressStatus) ProtoMessage()

func (*AddressStatus) ProtoReflect

func (x *AddressStatus) ProtoReflect() protoreflect.Message

func (*AddressStatus) Reset

func (x *AddressStatus) Reset()

func (*AddressStatus) String

func (x *AddressStatus) String() string

type AkSet

type AkSet struct {
	Aks []string `protobuf:"bytes,1,rep,name=aks,proto3" json:"aks,omitempty"` // 一堆公钥
	// contains filtered or unexported fields
}

AK集的表示方法

func (*AkSet) Descriptor deprecated

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

Deprecated: Use AkSet.ProtoReflect.Descriptor instead.

func (*AkSet) GetAks

func (x *AkSet) GetAks() []string

func (*AkSet) ProtoMessage

func (*AkSet) ProtoMessage()

func (*AkSet) ProtoReflect

func (x *AkSet) ProtoReflect() protoreflect.Message

func (*AkSet) Reset

func (x *AkSet) Reset()

func (*AkSet) String

func (x *AkSet) String() string

type AkSets

type AkSets struct {
	Sets map[string]*AkSet `` // 公钥or账户名集
	/* 149-byte string literal not displayed */
	Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` // 表达式,一期不支持表达式,默认集合内是and,集合间是or
	// contains filtered or unexported fields
}

func (*AkSets) Descriptor deprecated

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

Deprecated: Use AkSets.ProtoReflect.Descriptor instead.

func (*AkSets) GetExpression

func (x *AkSets) GetExpression() string

func (*AkSets) GetSets

func (x *AkSets) GetSets() map[string]*AkSet

func (*AkSets) ProtoMessage

func (*AkSets) ProtoMessage()

func (*AkSets) ProtoReflect

func (x *AkSets) ProtoReflect() protoreflect.Message

func (*AkSets) Reset

func (x *AkSets) Reset()

func (*AkSets) String

func (x *AkSets) String() string

type BCSpeeds

type BCSpeeds struct {
	BcSpeed map[string]float64 `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BCSpeeds) Descriptor deprecated

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

Deprecated: Use BCSpeeds.ProtoReflect.Descriptor instead.

func (*BCSpeeds) GetBcSpeed

func (x *BCSpeeds) GetBcSpeed() map[string]float64

func (*BCSpeeds) ProtoMessage

func (*BCSpeeds) ProtoMessage()

func (*BCSpeeds) ProtoReflect

func (x *BCSpeeds) ProtoReflect() protoreflect.Message

func (*BCSpeeds) Reset

func (x *BCSpeeds) Reset()

func (*BCSpeeds) String

func (x *BCSpeeds) String() string

type BCStatus

type BCStatus struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// block name
	Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// ledger metadata
	Meta *LedgerMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
	// The information of the longest block
	Block *InternalBlock `protobuf:"bytes,4,opt,name=block,proto3" json:"block,omitempty"`
	// Utox information
	UtxoMeta *UtxoMeta `protobuf:"bytes,5,opt,name=utxoMeta,proto3" json:"utxoMeta,omitempty"`
	// Branch info
	BranchBlockid []string `protobuf:"bytes,6,rep,name=branchBlockid,proto3" json:"branchBlockid,omitempty"`
	// contains filtered or unexported fields
}

BlockChain status

func (*BCStatus) Descriptor deprecated

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

Deprecated: Use BCStatus.ProtoReflect.Descriptor instead.

func (*BCStatus) GetBcname

func (x *BCStatus) GetBcname() string

func (*BCStatus) GetBlock

func (x *BCStatus) GetBlock() *InternalBlock

func (*BCStatus) GetBranchBlockid

func (x *BCStatus) GetBranchBlockid() []string

func (*BCStatus) GetHeader

func (x *BCStatus) GetHeader() *Header

func (*BCStatus) GetMeta

func (x *BCStatus) GetMeta() *LedgerMeta

func (*BCStatus) GetUtxoMeta

func (x *BCStatus) GetUtxoMeta() *UtxoMeta

func (*BCStatus) ProtoMessage

func (*BCStatus) ProtoMessage()

func (*BCStatus) ProtoReflect

func (x *BCStatus) ProtoReflect() protoreflect.Message

func (*BCStatus) Reset

func (x *BCStatus) Reset()

func (*BCStatus) String

func (x *BCStatus) String() string

type BCTipStatus

type BCTipStatus struct {
	Header     *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	IsTrunkTip bool    `protobuf:"varint,2,opt,name=is_trunk_tip,json=isTrunkTip,proto3" json:"is_trunk_tip,omitempty"`
	// contains filtered or unexported fields
}

func (*BCTipStatus) Descriptor deprecated

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

Deprecated: Use BCTipStatus.ProtoReflect.Descriptor instead.

func (*BCTipStatus) GetHeader

func (x *BCTipStatus) GetHeader() *Header

func (*BCTipStatus) GetIsTrunkTip

func (x *BCTipStatus) GetIsTrunkTip() bool

func (*BCTipStatus) ProtoMessage

func (*BCTipStatus) ProtoMessage()

func (*BCTipStatus) ProtoReflect

func (x *BCTipStatus) ProtoReflect() protoreflect.Message

func (*BCTipStatus) Reset

func (x *BCTipStatus) Reset()

func (*BCTipStatus) String

func (x *BCTipStatus) String() string

type BatchTxs

type BatchTxs struct {
	Header *Header     `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Txs    []*TxStatus `protobuf:"bytes,2,rep,name=Txs,proto3" json:"Txs,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchTxs) Descriptor deprecated

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

Deprecated: Use BatchTxs.ProtoReflect.Descriptor instead.

func (*BatchTxs) GetHeader

func (x *BatchTxs) GetHeader() *Header

func (*BatchTxs) GetTxs

func (x *BatchTxs) GetTxs() []*TxStatus

func (*BatchTxs) ProtoMessage

func (*BatchTxs) ProtoMessage()

func (*BatchTxs) ProtoReflect

func (x *BatchTxs) ProtoReflect() protoreflect.Message

func (*BatchTxs) Reset

func (x *BatchTxs) Reset()

func (*BatchTxs) String

func (x *BatchTxs) String() string

type Block

type Block struct {
	Header  *Header            `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string             `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Blockid []byte             `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"`
	Status  Block_EBlockStatus `protobuf:"varint,4,opt,name=status,proto3,enum=pb.Block_EBlockStatus" json:"status,omitempty"`
	Block   *InternalBlock     `protobuf:"bytes,5,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBcname

func (x *Block) GetBcname() string

func (*Block) GetBlock

func (x *Block) GetBlock() *InternalBlock

func (*Block) GetBlockid

func (x *Block) GetBlockid() []byte

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) GetStatus

func (x *Block) GetStatus() Block_EBlockStatus

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockChains

type BlockChains struct {
	Header      *Header  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Blockchains []string `protobuf:"bytes,2,rep,name=blockchains,proto3" json:"blockchains,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockChains) Descriptor deprecated

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

Deprecated: Use BlockChains.ProtoReflect.Descriptor instead.

func (*BlockChains) GetBlockchains

func (x *BlockChains) GetBlockchains() []string

func (*BlockChains) GetHeader

func (x *BlockChains) GetHeader() *Header

func (*BlockChains) ProtoMessage

func (*BlockChains) ProtoMessage()

func (*BlockChains) ProtoReflect

func (x *BlockChains) ProtoReflect() protoreflect.Message

func (*BlockChains) Reset

func (x *BlockChains) Reset()

func (*BlockChains) String

func (x *BlockChains) String() string

type BlockHeight

type BlockHeight struct {
	Header *Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Height int64   `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeight) Descriptor deprecated

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

Deprecated: Use BlockHeight.ProtoReflect.Descriptor instead.

func (*BlockHeight) GetBcname

func (x *BlockHeight) GetBcname() string

func (*BlockHeight) GetHeader

func (x *BlockHeight) GetHeader() *Header

func (*BlockHeight) GetHeight

func (x *BlockHeight) GetHeight() int64

func (*BlockHeight) ProtoMessage

func (*BlockHeight) ProtoMessage()

func (*BlockHeight) ProtoReflect

func (x *BlockHeight) ProtoReflect() protoreflect.Message

func (*BlockHeight) Reset

func (x *BlockHeight) Reset()

func (*BlockHeight) String

func (x *BlockHeight) String() string

type BlockID

type BlockID struct {
	Header  *Header `protobuf:"bytes,4,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Blockid []byte  `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// if need content
	NeedContent bool `protobuf:"varint,3,opt,name=need_content,json=needContent,proto3" json:"need_content,omitempty"` //是否需要内容
	// contains filtered or unexported fields
}

func (*BlockID) Descriptor deprecated

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

Deprecated: Use BlockID.ProtoReflect.Descriptor instead.

func (*BlockID) GetBcname

func (x *BlockID) GetBcname() string

func (*BlockID) GetBlockid

func (x *BlockID) GetBlockid() []byte

func (*BlockID) GetHeader

func (x *BlockID) GetHeader() *Header

func (*BlockID) GetNeedContent

func (x *BlockID) GetNeedContent() bool

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) ProtoReflect

func (x *BlockID) ProtoReflect() protoreflect.Message

func (*BlockID) Reset

func (x *BlockID) Reset()

func (*BlockID) String

func (x *BlockID) String() string

type Block_EBlockStatus

type Block_EBlockStatus int32
const (
	Block_ERROR   Block_EBlockStatus = 0
	Block_TRUNK   Block_EBlockStatus = 1
	Block_BRANCH  Block_EBlockStatus = 2
	Block_NOEXIST Block_EBlockStatus = 3
)

func (Block_EBlockStatus) Descriptor

func (Block_EBlockStatus) Enum

func (Block_EBlockStatus) EnumDescriptor deprecated

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

Deprecated: Use Block_EBlockStatus.Descriptor instead.

func (Block_EBlockStatus) Number

func (Block_EBlockStatus) String

func (x Block_EBlockStatus) String() string

func (Block_EBlockStatus) Type

type CommonIn

type CommonIn struct {
	Header     *Header    `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	ViewOption ViewOption `protobuf:"varint,2,opt,name=view_option,json=viewOption,proto3,enum=pb.ViewOption" json:"view_option,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonIn) Descriptor deprecated

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

Deprecated: Use CommonIn.ProtoReflect.Descriptor instead.

func (*CommonIn) GetHeader

func (x *CommonIn) GetHeader() *Header

func (*CommonIn) GetViewOption

func (x *CommonIn) GetViewOption() ViewOption

func (*CommonIn) ProtoMessage

func (*CommonIn) ProtoMessage()

func (*CommonIn) ProtoReflect

func (x *CommonIn) ProtoReflect() protoreflect.Message

func (*CommonIn) Reset

func (x *CommonIn) Reset()

func (*CommonIn) String

func (x *CommonIn) String() string

type CommonReply

type CommonReply struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonReply) Descriptor deprecated

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

Deprecated: Use CommonReply.ProtoReflect.Descriptor instead.

func (*CommonReply) GetHeader

func (x *CommonReply) GetHeader() *Header

func (*CommonReply) ProtoMessage

func (*CommonReply) ProtoMessage()

func (*CommonReply) ProtoReflect

func (x *CommonReply) ProtoReflect() protoreflect.Message

func (*CommonReply) Reset

func (x *CommonReply) Reset()

func (*CommonReply) String

func (x *CommonReply) String() string

type ConsensusStatRequest

type ConsensusStatRequest struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// contains filtered or unexported fields
}

func (*ConsensusStatRequest) Descriptor deprecated

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

Deprecated: Use ConsensusStatRequest.ProtoReflect.Descriptor instead.

func (*ConsensusStatRequest) GetBcname

func (x *ConsensusStatRequest) GetBcname() string

func (*ConsensusStatRequest) GetHeader

func (x *ConsensusStatRequest) GetHeader() *Header

func (*ConsensusStatRequest) ProtoMessage

func (*ConsensusStatRequest) ProtoMessage()

func (*ConsensusStatRequest) ProtoReflect

func (x *ConsensusStatRequest) ProtoReflect() protoreflect.Message

func (*ConsensusStatRequest) Reset

func (x *ConsensusStatRequest) Reset()

func (*ConsensusStatRequest) String

func (x *ConsensusStatRequest) String() string

type ConsensusStatus

type ConsensusStatus struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// consensus name
	ConsensusName string `protobuf:"bytes,3,opt,name=consensus_name,json=consensusName,proto3" json:"consensus_name,omitempty"`
	// consensus start height
	StartHeight string `protobuf:"bytes,4,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// consensus validators info
	ValidatorsInfo string `protobuf:"bytes,5,opt,name=validators_info,json=validatorsInfo,proto3" json:"validators_info,omitempty"`
	// contains filtered or unexported fields
}

Consensus status

func (*ConsensusStatus) Descriptor deprecated

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

Deprecated: Use ConsensusStatus.ProtoReflect.Descriptor instead.

func (*ConsensusStatus) GetConsensusName

func (x *ConsensusStatus) GetConsensusName() string

func (*ConsensusStatus) GetHeader

func (x *ConsensusStatus) GetHeader() *Header

func (*ConsensusStatus) GetStartHeight

func (x *ConsensusStatus) GetStartHeight() string

func (*ConsensusStatus) GetValidatorsInfo

func (x *ConsensusStatus) GetValidatorsInfo() string

func (*ConsensusStatus) GetVersion

func (x *ConsensusStatus) GetVersion() string

func (*ConsensusStatus) ProtoMessage

func (*ConsensusStatus) ProtoMessage()

func (*ConsensusStatus) ProtoReflect

func (x *ConsensusStatus) ProtoReflect() protoreflect.Message

func (*ConsensusStatus) Reset

func (x *ConsensusStatus) Reset()

func (*ConsensusStatus) String

func (x *ConsensusStatus) String() string

type ContractEvent

type ContractEvent struct {
	Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Body     []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractEvent) Descriptor deprecated

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

Deprecated: Use ContractEvent.ProtoReflect.Descriptor instead.

func (*ContractEvent) GetBody

func (x *ContractEvent) GetBody() []byte

func (*ContractEvent) GetContract

func (x *ContractEvent) GetContract() string

func (*ContractEvent) GetName

func (x *ContractEvent) GetName() string

func (*ContractEvent) ProtoMessage

func (*ContractEvent) ProtoMessage()

func (*ContractEvent) ProtoReflect

func (x *ContractEvent) ProtoReflect() protoreflect.Message

func (*ContractEvent) Reset

func (x *ContractEvent) Reset()

func (*ContractEvent) String

func (x *ContractEvent) String() string

type ContractList

type ContractList struct {
	ContractStatus []*ContractStatus `protobuf:"bytes,1,rep,name=contract_status,json=contractStatus,proto3" json:"contract_status,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractList) Descriptor deprecated

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

Deprecated: Use ContractList.ProtoReflect.Descriptor instead.

func (*ContractList) GetContractStatus

func (x *ContractList) GetContractStatus() []*ContractStatus

func (*ContractList) ProtoMessage

func (*ContractList) ProtoMessage()

func (*ContractList) ProtoReflect

func (x *ContractList) ProtoReflect() protoreflect.Message

func (*ContractList) Reset

func (x *ContractList) Reset()

func (*ContractList) String

func (x *ContractList) String() string

type ContractResponse

type ContractResponse struct {
	Status  int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Body    []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

ContractResponse is the response returnd by contract

func (*ContractResponse) Descriptor deprecated

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

Deprecated: Use ContractResponse.ProtoReflect.Descriptor instead.

func (*ContractResponse) GetBody

func (x *ContractResponse) GetBody() []byte

func (*ContractResponse) GetMessage

func (x *ContractResponse) GetMessage() string

func (*ContractResponse) GetStatus

func (x *ContractResponse) GetStatus() int32

func (*ContractResponse) ProtoMessage

func (*ContractResponse) ProtoMessage()

func (*ContractResponse) ProtoReflect

func (x *ContractResponse) ProtoReflect() protoreflect.Message

func (*ContractResponse) Reset

func (x *ContractResponse) Reset()

func (*ContractResponse) String

func (x *ContractResponse) String() string

type ContractStatData

type ContractStatData struct {
	AccountCount  int64 `protobuf:"varint,1,opt,name=accountCount,proto3" json:"accountCount,omitempty"`
	ContractCount int64 `protobuf:"varint,2,opt,name=contractCount,proto3" json:"contractCount,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractStatData) Descriptor deprecated

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

Deprecated: Use ContractStatData.ProtoReflect.Descriptor instead.

func (*ContractStatData) GetAccountCount

func (x *ContractStatData) GetAccountCount() int64

func (*ContractStatData) GetContractCount

func (x *ContractStatData) GetContractCount() int64

func (*ContractStatData) ProtoMessage

func (*ContractStatData) ProtoMessage()

func (*ContractStatData) ProtoReflect

func (x *ContractStatData) ProtoReflect() protoreflect.Message

func (*ContractStatData) Reset

func (x *ContractStatData) Reset()

func (*ContractStatData) String

func (x *ContractStatData) String() string

type ContractStatDataRequest

type ContractStatDataRequest struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractStatDataRequest) Descriptor deprecated

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

Deprecated: Use ContractStatDataRequest.ProtoReflect.Descriptor instead.

func (*ContractStatDataRequest) GetBcname

func (x *ContractStatDataRequest) GetBcname() string

func (*ContractStatDataRequest) GetHeader

func (x *ContractStatDataRequest) GetHeader() *Header

func (*ContractStatDataRequest) ProtoMessage

func (*ContractStatDataRequest) ProtoMessage()

func (*ContractStatDataRequest) ProtoReflect

func (x *ContractStatDataRequest) ProtoReflect() protoreflect.Message

func (*ContractStatDataRequest) Reset

func (x *ContractStatDataRequest) Reset()

func (*ContractStatDataRequest) String

func (x *ContractStatDataRequest) String() string

type ContractStatDataResponse

type ContractStatDataResponse struct {
	Header *Header           `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string            `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Data   *ContractStatData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractStatDataResponse) Descriptor deprecated

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

Deprecated: Use ContractStatDataResponse.ProtoReflect.Descriptor instead.

func (*ContractStatDataResponse) GetBcname

func (x *ContractStatDataResponse) GetBcname() string

func (*ContractStatDataResponse) GetData

func (*ContractStatDataResponse) GetHeader

func (x *ContractStatDataResponse) GetHeader() *Header

func (*ContractStatDataResponse) ProtoMessage

func (*ContractStatDataResponse) ProtoMessage()

func (*ContractStatDataResponse) ProtoReflect

func (x *ContractStatDataResponse) ProtoReflect() protoreflect.Message

func (*ContractStatDataResponse) Reset

func (x *ContractStatDataResponse) Reset()

func (*ContractStatDataResponse) String

func (x *ContractStatDataResponse) String() string

type ContractStatus

type ContractStatus struct {
	ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	Txid         string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	Desc         []byte `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	IsBanned     bool   `protobuf:"varint,4,opt,name=is_banned,json=isBanned,proto3" json:"is_banned,omitempty"`
	Timestamp    int64  `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Runtime      string `protobuf:"bytes,6,opt,name=runtime,proto3" json:"runtime,omitempty"`
	// contains filtered or unexported fields
}

Status of a contract

func (*ContractStatus) Descriptor deprecated

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

Deprecated: Use ContractStatus.ProtoReflect.Descriptor instead.

func (*ContractStatus) GetContractName

func (x *ContractStatus) GetContractName() string

func (*ContractStatus) GetDesc

func (x *ContractStatus) GetDesc() []byte

func (*ContractStatus) GetIsBanned

func (x *ContractStatus) GetIsBanned() bool

func (*ContractStatus) GetRuntime

func (x *ContractStatus) GetRuntime() string

func (*ContractStatus) GetTimestamp

func (x *ContractStatus) GetTimestamp() int64

func (*ContractStatus) GetTxid

func (x *ContractStatus) GetTxid() string

func (*ContractStatus) ProtoMessage

func (*ContractStatus) ProtoMessage()

func (*ContractStatus) ProtoReflect

func (x *ContractStatus) ProtoReflect() protoreflect.Message

func (*ContractStatus) Reset

func (x *ContractStatus) Reset()

func (*ContractStatus) String

func (x *ContractStatus) String() string

type CrossChainMeta

type CrossChainMeta struct {
	Type           string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	MinEndorsorNum int64  `protobuf:"varint,2,opt,name=min_endorsor_num,json=minEndorsorNum,proto3" json:"min_endorsor_num,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossChainMeta) Descriptor deprecated

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

Deprecated: Use CrossChainMeta.ProtoReflect.Descriptor instead.

func (*CrossChainMeta) GetMinEndorsorNum

func (x *CrossChainMeta) GetMinEndorsorNum() int64

func (*CrossChainMeta) GetType

func (x *CrossChainMeta) GetType() string

func (*CrossChainMeta) ProtoMessage

func (*CrossChainMeta) ProtoMessage()

func (*CrossChainMeta) ProtoReflect

func (x *CrossChainMeta) ProtoReflect() protoreflect.Message

func (*CrossChainMeta) Reset

func (x *CrossChainMeta) Reset()

func (*CrossChainMeta) String

func (x *CrossChainMeta) String() string

type CrossEndorsor

type CrossEndorsor struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey  string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// ip+port
	Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossEndorsor) Descriptor deprecated

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

Deprecated: Use CrossEndorsor.ProtoReflect.Descriptor instead.

func (*CrossEndorsor) GetAddress

func (x *CrossEndorsor) GetAddress() string

func (*CrossEndorsor) GetHost

func (x *CrossEndorsor) GetHost() string

func (*CrossEndorsor) GetPubKey

func (x *CrossEndorsor) GetPubKey() string

func (*CrossEndorsor) ProtoMessage

func (*CrossEndorsor) ProtoMessage()

func (*CrossEndorsor) ProtoReflect

func (x *CrossEndorsor) ProtoReflect() protoreflect.Message

func (*CrossEndorsor) Reset

func (x *CrossEndorsor) Reset()

func (*CrossEndorsor) String

func (x *CrossEndorsor) String() string

type CrossQueryInfo

type CrossQueryInfo struct {
	Request  *CrossQueryRequest  `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	Response *CrossQueryResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	Signs    []*SignatureInfo    `protobuf:"bytes,3,rep,name=signs,proto3" json:"signs,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossQueryInfo) Descriptor deprecated

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

Deprecated: Use CrossQueryInfo.ProtoReflect.Descriptor instead.

func (*CrossQueryInfo) GetRequest

func (x *CrossQueryInfo) GetRequest() *CrossQueryRequest

func (*CrossQueryInfo) GetResponse

func (x *CrossQueryInfo) GetResponse() *CrossQueryResponse

func (*CrossQueryInfo) GetSigns

func (x *CrossQueryInfo) GetSigns() []*SignatureInfo

func (*CrossQueryInfo) ProtoMessage

func (*CrossQueryInfo) ProtoMessage()

func (*CrossQueryInfo) ProtoReflect

func (x *CrossQueryInfo) ProtoReflect() protoreflect.Message

func (*CrossQueryInfo) Reset

func (x *CrossQueryInfo) Reset()

func (*CrossQueryInfo) String

func (x *CrossQueryInfo) String() string

type CrossQueryMeta

type CrossQueryMeta struct {
	ChainMeta *CrossChainMeta  `protobuf:"bytes,1,opt,name=chain_meta,json=chainMeta,proto3" json:"chain_meta,omitempty"`
	Endorsors []*CrossEndorsor `protobuf:"bytes,2,rep,name=endorsors,proto3" json:"endorsors,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossQueryMeta) Descriptor deprecated

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

Deprecated: Use CrossQueryMeta.ProtoReflect.Descriptor instead.

func (*CrossQueryMeta) GetChainMeta

func (x *CrossQueryMeta) GetChainMeta() *CrossChainMeta

func (*CrossQueryMeta) GetEndorsors

func (x *CrossQueryMeta) GetEndorsors() []*CrossEndorsor

func (*CrossQueryMeta) ProtoMessage

func (*CrossQueryMeta) ProtoMessage()

func (*CrossQueryMeta) ProtoReflect

func (x *CrossQueryMeta) ProtoReflect() protoreflect.Message

func (*CrossQueryMeta) Reset

func (x *CrossQueryMeta) Reset()

func (*CrossQueryMeta) String

func (x *CrossQueryMeta) String() string

type CrossQueryRequest

type CrossQueryRequest struct {
	Bcname      string         `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Timestamp   int64          `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Initiator   string         `protobuf:"bytes,3,opt,name=initiator,proto3" json:"initiator,omitempty"`
	AuthRequire []string       `protobuf:"bytes,4,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"`
	Request     *InvokeRequest `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossQueryRequest) Descriptor deprecated

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

Deprecated: Use CrossQueryRequest.ProtoReflect.Descriptor instead.

func (*CrossQueryRequest) GetAuthRequire

func (x *CrossQueryRequest) GetAuthRequire() []string

func (*CrossQueryRequest) GetBcname

func (x *CrossQueryRequest) GetBcname() string

func (*CrossQueryRequest) GetInitiator

func (x *CrossQueryRequest) GetInitiator() string

func (*CrossQueryRequest) GetRequest

func (x *CrossQueryRequest) GetRequest() *InvokeRequest

func (*CrossQueryRequest) GetTimestamp

func (x *CrossQueryRequest) GetTimestamp() int64

func (*CrossQueryRequest) ProtoMessage

func (*CrossQueryRequest) ProtoMessage()

func (*CrossQueryRequest) ProtoReflect

func (x *CrossQueryRequest) ProtoReflect() protoreflect.Message

func (*CrossQueryRequest) Reset

func (x *CrossQueryRequest) Reset()

func (*CrossQueryRequest) String

func (x *CrossQueryRequest) String() string

type CrossQueryResponse

type CrossQueryResponse struct {
	Response *ContractResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*CrossQueryResponse) Descriptor deprecated

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

Deprecated: Use CrossQueryResponse.ProtoReflect.Descriptor instead.

func (*CrossQueryResponse) GetResponse

func (x *CrossQueryResponse) GetResponse() *ContractResponse

func (*CrossQueryResponse) ProtoMessage

func (*CrossQueryResponse) ProtoMessage()

func (*CrossQueryResponse) ProtoReflect

func (x *CrossQueryResponse) ProtoReflect() protoreflect.Message

func (*CrossQueryResponse) Reset

func (x *CrossQueryResponse) Reset()

func (*CrossQueryResponse) String

func (x *CrossQueryResponse) String() string

type DposCandidatesRequest

type DposCandidatesRequest struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// contains filtered or unexported fields
}

候选人列表接口

func (*DposCandidatesRequest) Descriptor deprecated

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

Deprecated: Use DposCandidatesRequest.ProtoReflect.Descriptor instead.

func (*DposCandidatesRequest) GetBcname

func (x *DposCandidatesRequest) GetBcname() string

func (*DposCandidatesRequest) GetHeader

func (x *DposCandidatesRequest) GetHeader() *Header

func (*DposCandidatesRequest) ProtoMessage

func (*DposCandidatesRequest) ProtoMessage()

func (*DposCandidatesRequest) ProtoReflect

func (x *DposCandidatesRequest) ProtoReflect() protoreflect.Message

func (*DposCandidatesRequest) Reset

func (x *DposCandidatesRequest) Reset()

func (*DposCandidatesRequest) String

func (x *DposCandidatesRequest) String() string

type DposCandidatesResponse

type DposCandidatesResponse struct {
	Header         *Header  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	CandidatesInfo []string `protobuf:"bytes,2,rep,name=candidatesInfo,proto3" json:"candidatesInfo,omitempty"`
	// contains filtered or unexported fields
}

候选人列表返回

func (*DposCandidatesResponse) Descriptor deprecated

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

Deprecated: Use DposCandidatesResponse.ProtoReflect.Descriptor instead.

func (*DposCandidatesResponse) GetCandidatesInfo

func (x *DposCandidatesResponse) GetCandidatesInfo() []string

func (*DposCandidatesResponse) GetHeader

func (x *DposCandidatesResponse) GetHeader() *Header

func (*DposCandidatesResponse) ProtoMessage

func (*DposCandidatesResponse) ProtoMessage()

func (*DposCandidatesResponse) ProtoReflect

func (x *DposCandidatesResponse) ProtoReflect() protoreflect.Message

func (*DposCandidatesResponse) Reset

func (x *DposCandidatesResponse) Reset()

func (*DposCandidatesResponse) String

func (x *DposCandidatesResponse) String() string

type DposCheckResultsRequest

type DposCheckResultsRequest struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Term   int64   `protobuf:"varint,3,opt,name=term,proto3" json:"term,omitempty"`
	// contains filtered or unexported fields
}

查询检票结果记录请求

func (*DposCheckResultsRequest) Descriptor deprecated

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

Deprecated: Use DposCheckResultsRequest.ProtoReflect.Descriptor instead.

func (*DposCheckResultsRequest) GetBcname

func (x *DposCheckResultsRequest) GetBcname() string

func (*DposCheckResultsRequest) GetHeader

func (x *DposCheckResultsRequest) GetHeader() *Header

func (*DposCheckResultsRequest) GetTerm

func (x *DposCheckResultsRequest) GetTerm() int64

func (*DposCheckResultsRequest) ProtoMessage

func (*DposCheckResultsRequest) ProtoMessage()

func (*DposCheckResultsRequest) ProtoReflect

func (x *DposCheckResultsRequest) ProtoReflect() protoreflect.Message

func (*DposCheckResultsRequest) Reset

func (x *DposCheckResultsRequest) Reset()

func (*DposCheckResultsRequest) String

func (x *DposCheckResultsRequest) String() string

type DposCheckResultsResponse

type DposCheckResultsResponse struct {
	Header      *Header  `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Term        int64    `protobuf:"varint,2,opt,name=term,proto3" json:"term,omitempty"`
	CheckResult []string `protobuf:"bytes,3,rep,name=checkResult,proto3" json:"checkResult,omitempty"`
	// contains filtered or unexported fields
}

查询检票结果记录返回

func (*DposCheckResultsResponse) Descriptor deprecated

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

Deprecated: Use DposCheckResultsResponse.ProtoReflect.Descriptor instead.

func (*DposCheckResultsResponse) GetCheckResult

func (x *DposCheckResultsResponse) GetCheckResult() []string

func (*DposCheckResultsResponse) GetHeader

func (x *DposCheckResultsResponse) GetHeader() *Header

func (*DposCheckResultsResponse) GetTerm

func (x *DposCheckResultsResponse) GetTerm() int64

func (*DposCheckResultsResponse) ProtoMessage

func (*DposCheckResultsResponse) ProtoMessage()

func (*DposCheckResultsResponse) ProtoReflect

func (x *DposCheckResultsResponse) ProtoReflect() protoreflect.Message

func (*DposCheckResultsResponse) Reset

func (x *DposCheckResultsResponse) Reset()

func (*DposCheckResultsResponse) String

func (x *DposCheckResultsResponse) String() string

type DposNominateInfo

type DposNominateInfo struct {
	Candidate string `protobuf:"bytes,1,opt,name=candidate,proto3" json:"candidate,omitempty"`
	Txid      string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

候选人信息

func (*DposNominateInfo) Descriptor deprecated

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

Deprecated: Use DposNominateInfo.ProtoReflect.Descriptor instead.

func (*DposNominateInfo) GetCandidate

func (x *DposNominateInfo) GetCandidate() string

func (*DposNominateInfo) GetTxid

func (x *DposNominateInfo) GetTxid() string

func (*DposNominateInfo) ProtoMessage

func (*DposNominateInfo) ProtoMessage()

func (*DposNominateInfo) ProtoReflect

func (x *DposNominateInfo) ProtoReflect() protoreflect.Message

func (*DposNominateInfo) Reset

func (x *DposNominateInfo) Reset()

func (*DposNominateInfo) String

func (x *DposNominateInfo) String() string

type DposNominateRecordsRequest

type DposNominateRecordsRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

提名者提名记录请求

func (*DposNominateRecordsRequest) Descriptor deprecated

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

Deprecated: Use DposNominateRecordsRequest.ProtoReflect.Descriptor instead.

func (*DposNominateRecordsRequest) GetAddress

func (x *DposNominateRecordsRequest) GetAddress() string

func (*DposNominateRecordsRequest) GetBcname

func (x *DposNominateRecordsRequest) GetBcname() string

func (*DposNominateRecordsRequest) GetHeader

func (x *DposNominateRecordsRequest) GetHeader() *Header

func (*DposNominateRecordsRequest) ProtoMessage

func (*DposNominateRecordsRequest) ProtoMessage()

func (*DposNominateRecordsRequest) ProtoReflect

func (*DposNominateRecordsRequest) Reset

func (x *DposNominateRecordsRequest) Reset()

func (*DposNominateRecordsRequest) String

func (x *DposNominateRecordsRequest) String() string

type DposNominateRecordsResponse

type DposNominateRecordsResponse struct {
	Header          *Header             `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	NominateRecords []*DposNominateInfo `protobuf:"bytes,2,rep,name=nominateRecords,proto3" json:"nominateRecords,omitempty"`
	// contains filtered or unexported fields
}

提名者提名记录返回

func (*DposNominateRecordsResponse) Descriptor deprecated

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

Deprecated: Use DposNominateRecordsResponse.ProtoReflect.Descriptor instead.

func (*DposNominateRecordsResponse) GetHeader

func (x *DposNominateRecordsResponse) GetHeader() *Header

func (*DposNominateRecordsResponse) GetNominateRecords

func (x *DposNominateRecordsResponse) GetNominateRecords() []*DposNominateInfo

func (*DposNominateRecordsResponse) ProtoMessage

func (*DposNominateRecordsResponse) ProtoMessage()

func (*DposNominateRecordsResponse) ProtoReflect

func (*DposNominateRecordsResponse) Reset

func (x *DposNominateRecordsResponse) Reset()

func (*DposNominateRecordsResponse) String

func (x *DposNominateRecordsResponse) String() string

type DposNomineeRecordsRequest

type DposNomineeRecordsRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

候选人被提名记录请求

func (*DposNomineeRecordsRequest) Descriptor deprecated

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

Deprecated: Use DposNomineeRecordsRequest.ProtoReflect.Descriptor instead.

func (*DposNomineeRecordsRequest) GetAddress

func (x *DposNomineeRecordsRequest) GetAddress() string

func (*DposNomineeRecordsRequest) GetBcname

func (x *DposNomineeRecordsRequest) GetBcname() string

func (*DposNomineeRecordsRequest) GetHeader

func (x *DposNomineeRecordsRequest) GetHeader() *Header

func (*DposNomineeRecordsRequest) ProtoMessage

func (*DposNomineeRecordsRequest) ProtoMessage()

func (*DposNomineeRecordsRequest) ProtoReflect

func (*DposNomineeRecordsRequest) Reset

func (x *DposNomineeRecordsRequest) Reset()

func (*DposNomineeRecordsRequest) String

func (x *DposNomineeRecordsRequest) String() string

type DposNomineeRecordsResponse

type DposNomineeRecordsResponse struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Txid   string  `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

候选人被提名记录返回

func (*DposNomineeRecordsResponse) Descriptor deprecated

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

Deprecated: Use DposNomineeRecordsResponse.ProtoReflect.Descriptor instead.

func (*DposNomineeRecordsResponse) GetHeader

func (x *DposNomineeRecordsResponse) GetHeader() *Header

func (*DposNomineeRecordsResponse) GetTxid

func (x *DposNomineeRecordsResponse) GetTxid() string

func (*DposNomineeRecordsResponse) ProtoMessage

func (*DposNomineeRecordsResponse) ProtoMessage()

func (*DposNomineeRecordsResponse) ProtoReflect

func (*DposNomineeRecordsResponse) Reset

func (x *DposNomineeRecordsResponse) Reset()

func (*DposNomineeRecordsResponse) String

func (x *DposNomineeRecordsResponse) String() string

type DposStatus

type DposStatus struct {
	Term        int64    `protobuf:"varint,1,opt,name=term,proto3" json:"term,omitempty"`
	BlockNum    int64    `protobuf:"varint,2,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
	Proposer    string   `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
	ProposerNum int64    `protobuf:"varint,4,opt,name=proposer_num,json=proposerNum,proto3" json:"proposer_num,omitempty"`
	CheckResult []string `protobuf:"bytes,5,rep,name=checkResult,proto3" json:"checkResult,omitempty"`
	// contains filtered or unexported fields
}

func (*DposStatus) Descriptor deprecated

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

Deprecated: Use DposStatus.ProtoReflect.Descriptor instead.

func (*DposStatus) GetBlockNum

func (x *DposStatus) GetBlockNum() int64

func (*DposStatus) GetCheckResult

func (x *DposStatus) GetCheckResult() []string

func (*DposStatus) GetProposer

func (x *DposStatus) GetProposer() string

func (*DposStatus) GetProposerNum

func (x *DposStatus) GetProposerNum() int64

func (*DposStatus) GetTerm

func (x *DposStatus) GetTerm() int64

func (*DposStatus) ProtoMessage

func (*DposStatus) ProtoMessage()

func (*DposStatus) ProtoReflect

func (x *DposStatus) ProtoReflect() protoreflect.Message

func (*DposStatus) Reset

func (x *DposStatus) Reset()

func (*DposStatus) String

func (x *DposStatus) String() string

type DposStatusRequest

type DposStatusRequest struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// contains filtered or unexported fields
}

query dpos consensus current status request

func (*DposStatusRequest) Descriptor deprecated

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

Deprecated: Use DposStatusRequest.ProtoReflect.Descriptor instead.

func (*DposStatusRequest) GetBcname

func (x *DposStatusRequest) GetBcname() string

func (*DposStatusRequest) GetHeader

func (x *DposStatusRequest) GetHeader() *Header

func (*DposStatusRequest) ProtoMessage

func (*DposStatusRequest) ProtoMessage()

func (*DposStatusRequest) ProtoReflect

func (x *DposStatusRequest) ProtoReflect() protoreflect.Message

func (*DposStatusRequest) Reset

func (x *DposStatusRequest) Reset()

func (*DposStatusRequest) String

func (x *DposStatusRequest) String() string

type DposStatusResponse

type DposStatusResponse struct {
	Header *Header     `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Status *DposStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

query dpos consensus current status reply

func (*DposStatusResponse) Descriptor deprecated

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

Deprecated: Use DposStatusResponse.ProtoReflect.Descriptor instead.

func (*DposStatusResponse) GetHeader

func (x *DposStatusResponse) GetHeader() *Header

func (*DposStatusResponse) GetStatus

func (x *DposStatusResponse) GetStatus() *DposStatus

func (*DposStatusResponse) ProtoMessage

func (*DposStatusResponse) ProtoMessage()

func (*DposStatusResponse) ProtoReflect

func (x *DposStatusResponse) ProtoReflect() protoreflect.Message

func (*DposStatusResponse) Reset

func (x *DposStatusResponse) Reset()

func (*DposStatusResponse) String

func (x *DposStatusResponse) String() string

type DposVoteRecordsRequest

type DposVoteRecordsRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

选民投票记录请求

func (*DposVoteRecordsRequest) Descriptor deprecated

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

Deprecated: Use DposVoteRecordsRequest.ProtoReflect.Descriptor instead.

func (*DposVoteRecordsRequest) GetAddress

func (x *DposVoteRecordsRequest) GetAddress() string

func (*DposVoteRecordsRequest) GetBcname

func (x *DposVoteRecordsRequest) GetBcname() string

func (*DposVoteRecordsRequest) GetHeader

func (x *DposVoteRecordsRequest) GetHeader() *Header

func (*DposVoteRecordsRequest) ProtoMessage

func (*DposVoteRecordsRequest) ProtoMessage()

func (*DposVoteRecordsRequest) ProtoReflect

func (x *DposVoteRecordsRequest) ProtoReflect() protoreflect.Message

func (*DposVoteRecordsRequest) Reset

func (x *DposVoteRecordsRequest) Reset()

func (*DposVoteRecordsRequest) String

func (x *DposVoteRecordsRequest) String() string

type DposVoteRecordsResponse

type DposVoteRecordsResponse struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 选民投票txid记录
	VoteTxidRecords []*VoteRecord `protobuf:"bytes,2,rep,name=voteTxidRecords,proto3" json:"voteTxidRecords,omitempty"`
	// contains filtered or unexported fields
}

选民投票记录返回

func (*DposVoteRecordsResponse) Descriptor deprecated

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

Deprecated: Use DposVoteRecordsResponse.ProtoReflect.Descriptor instead.

func (*DposVoteRecordsResponse) GetHeader

func (x *DposVoteRecordsResponse) GetHeader() *Header

func (*DposVoteRecordsResponse) GetVoteTxidRecords

func (x *DposVoteRecordsResponse) GetVoteTxidRecords() []*VoteRecord

func (*DposVoteRecordsResponse) ProtoMessage

func (*DposVoteRecordsResponse) ProtoMessage()

func (*DposVoteRecordsResponse) ProtoReflect

func (x *DposVoteRecordsResponse) ProtoReflect() protoreflect.Message

func (*DposVoteRecordsResponse) Reset

func (x *DposVoteRecordsResponse) Reset()

func (*DposVoteRecordsResponse) String

func (x *DposVoteRecordsResponse) String() string

type DposVotedRecordsRequest

type DposVotedRecordsRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

候选人被投票记录请求

func (*DposVotedRecordsRequest) Descriptor deprecated

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

Deprecated: Use DposVotedRecordsRequest.ProtoReflect.Descriptor instead.

func (*DposVotedRecordsRequest) GetAddress

func (x *DposVotedRecordsRequest) GetAddress() string

func (*DposVotedRecordsRequest) GetBcname

func (x *DposVotedRecordsRequest) GetBcname() string

func (*DposVotedRecordsRequest) GetHeader

func (x *DposVotedRecordsRequest) GetHeader() *Header

func (*DposVotedRecordsRequest) ProtoMessage

func (*DposVotedRecordsRequest) ProtoMessage()

func (*DposVotedRecordsRequest) ProtoReflect

func (x *DposVotedRecordsRequest) ProtoReflect() protoreflect.Message

func (*DposVotedRecordsRequest) Reset

func (x *DposVotedRecordsRequest) Reset()

func (*DposVotedRecordsRequest) String

func (x *DposVotedRecordsRequest) String() string

type DposVotedRecordsResponse

type DposVotedRecordsResponse struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 候选人被投票的txid记录
	VotedTxidRecords []*VotedRecord `protobuf:"bytes,2,rep,name=votedTxidRecords,proto3" json:"votedTxidRecords,omitempty"`
	// contains filtered or unexported fields
}

候选人被投票记录返回

func (*DposVotedRecordsResponse) Descriptor deprecated

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

Deprecated: Use DposVotedRecordsResponse.ProtoReflect.Descriptor instead.

func (*DposVotedRecordsResponse) GetHeader

func (x *DposVotedRecordsResponse) GetHeader() *Header

func (*DposVotedRecordsResponse) GetVotedTxidRecords

func (x *DposVotedRecordsResponse) GetVotedTxidRecords() []*VotedRecord

func (*DposVotedRecordsResponse) ProtoMessage

func (*DposVotedRecordsResponse) ProtoMessage()

func (*DposVotedRecordsResponse) ProtoReflect

func (x *DposVotedRecordsResponse) ProtoReflect() protoreflect.Message

func (*DposVotedRecordsResponse) Reset

func (x *DposVotedRecordsResponse) Reset()

func (*DposVotedRecordsResponse) String

func (x *DposVotedRecordsResponse) String() string

type EndorserRequest

type EndorserRequest struct {
	Header      *Header      `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	RequestName string       `protobuf:"bytes,2,opt,name=RequestName,proto3" json:"RequestName,omitempty"` // 请求名(类型)
	BcName      string       `protobuf:"bytes,3,opt,name=BcName,proto3" json:"BcName,omitempty"`           // 请求链名
	Fee         *Transaction `protobuf:"bytes,4,opt,name=Fee,proto3" json:"Fee,omitempty"`                 // 带签名的交易费Tx
	RequestData []byte       `protobuf:"bytes,5,opt,name=RequestData,proto3" json:"RequestData,omitempty"` // Json打包的数据
	// contains filtered or unexported fields
}

请求参数

func (*EndorserRequest) Descriptor deprecated

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

Deprecated: Use EndorserRequest.ProtoReflect.Descriptor instead.

func (*EndorserRequest) GetBcName

func (x *EndorserRequest) GetBcName() string

func (*EndorserRequest) GetFee

func (x *EndorserRequest) GetFee() *Transaction

func (*EndorserRequest) GetHeader

func (x *EndorserRequest) GetHeader() *Header

func (*EndorserRequest) GetRequestData

func (x *EndorserRequest) GetRequestData() []byte

func (*EndorserRequest) GetRequestName

func (x *EndorserRequest) GetRequestName() string

func (*EndorserRequest) ProtoMessage

func (*EndorserRequest) ProtoMessage()

func (*EndorserRequest) ProtoReflect

func (x *EndorserRequest) ProtoReflect() protoreflect.Message

func (*EndorserRequest) Reset

func (x *EndorserRequest) Reset()

func (*EndorserRequest) String

func (x *EndorserRequest) String() string

type EndorserResponse

type EndorserResponse struct {
	Header          *Header        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	ResponseName    string         `protobuf:"bytes,2,opt,name=ResponseName,proto3" json:"ResponseName,omitempty"`
	EndorserAddress string         `protobuf:"bytes,3,opt,name=EndorserAddress,proto3" json:"EndorserAddress,omitempty"` // 背书服务地址
	EndorserSign    *SignatureInfo `protobuf:"bytes,4,opt,name=EndorserSign,proto3" json:"EndorserSign,omitempty"`       // 背书服务签名
	ResponseData    []byte         `protobuf:"bytes,5,opt,name=ResponseData,proto3" json:"ResponseData,omitempty"`
	// contains filtered or unexported fields
}

func (*EndorserResponse) Descriptor deprecated

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

Deprecated: Use EndorserResponse.ProtoReflect.Descriptor instead.

func (*EndorserResponse) GetEndorserAddress

func (x *EndorserResponse) GetEndorserAddress() string

func (*EndorserResponse) GetEndorserSign

func (x *EndorserResponse) GetEndorserSign() *SignatureInfo

func (*EndorserResponse) GetHeader

func (x *EndorserResponse) GetHeader() *Header

func (*EndorserResponse) GetResponseData

func (x *EndorserResponse) GetResponseData() []byte

func (*EndorserResponse) GetResponseName

func (x *EndorserResponse) GetResponseName() string

func (*EndorserResponse) ProtoMessage

func (*EndorserResponse) ProtoMessage()

func (*EndorserResponse) ProtoReflect

func (x *EndorserResponse) ProtoReflect() protoreflect.Message

func (*EndorserResponse) Reset

func (x *EndorserResponse) Reset()

func (*EndorserResponse) String

func (x *EndorserResponse) String() string

type GasPrice

type GasPrice struct {
	CpuRate  int64 `protobuf:"varint,1,opt,name=cpu_rate,json=cpuRate,proto3" json:"cpu_rate,omitempty"`
	MemRate  int64 `protobuf:"varint,2,opt,name=mem_rate,json=memRate,proto3" json:"mem_rate,omitempty"`
	DiskRate int64 `protobuf:"varint,3,opt,name=disk_rate,json=diskRate,proto3" json:"disk_rate,omitempty"`
	XfeeRate int64 `protobuf:"varint,4,opt,name=xfee_rate,json=xfeeRate,proto3" json:"xfee_rate,omitempty"`
	// contains filtered or unexported fields
}

func (*GasPrice) Descriptor deprecated

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

Deprecated: Use GasPrice.ProtoReflect.Descriptor instead.

func (*GasPrice) GetCpuRate

func (x *GasPrice) GetCpuRate() int64

func (*GasPrice) GetDiskRate

func (x *GasPrice) GetDiskRate() int64

func (*GasPrice) GetMemRate

func (x *GasPrice) GetMemRate() int64

func (*GasPrice) GetXfeeRate

func (x *GasPrice) GetXfeeRate() int64

func (*GasPrice) ProtoMessage

func (*GasPrice) ProtoMessage()

func (*GasPrice) ProtoReflect

func (x *GasPrice) ProtoReflect() protoreflect.Message

func (*GasPrice) Reset

func (x *GasPrice) Reset()

func (*GasPrice) String

func (x *GasPrice) String() string

type GetAccountContractsRequest

type GetAccountContractsRequest struct {
	Header  *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname  string  `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Account string  `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

Query account contracts request

func (*GetAccountContractsRequest) Descriptor deprecated

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

Deprecated: Use GetAccountContractsRequest.ProtoReflect.Descriptor instead.

func (*GetAccountContractsRequest) GetAccount

func (x *GetAccountContractsRequest) GetAccount() string

func (*GetAccountContractsRequest) GetBcname

func (x *GetAccountContractsRequest) GetBcname() string

func (*GetAccountContractsRequest) GetHeader

func (x *GetAccountContractsRequest) GetHeader() *Header

func (*GetAccountContractsRequest) ProtoMessage

func (*GetAccountContractsRequest) ProtoMessage()

func (*GetAccountContractsRequest) ProtoReflect

func (*GetAccountContractsRequest) Reset

func (x *GetAccountContractsRequest) Reset()

func (*GetAccountContractsRequest) String

func (x *GetAccountContractsRequest) String() string

type GetAccountContractsResponse

type GetAccountContractsResponse struct {
	Header          *Header           `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	ContractsStatus []*ContractStatus `protobuf:"bytes,2,rep,name=contracts_status,json=contractsStatus,proto3" json:"contracts_status,omitempty"`
	// contains filtered or unexported fields
}

Query account contracts response

func (*GetAccountContractsResponse) Descriptor deprecated

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

Deprecated: Use GetAccountContractsResponse.ProtoReflect.Descriptor instead.

func (*GetAccountContractsResponse) GetContractsStatus

func (x *GetAccountContractsResponse) GetContractsStatus() []*ContractStatus

func (*GetAccountContractsResponse) GetHeader

func (x *GetAccountContractsResponse) GetHeader() *Header

func (*GetAccountContractsResponse) ProtoMessage

func (*GetAccountContractsResponse) ProtoMessage()

func (*GetAccountContractsResponse) ProtoReflect

func (*GetAccountContractsResponse) Reset

func (x *GetAccountContractsResponse) Reset()

func (*GetAccountContractsResponse) String

func (x *GetAccountContractsResponse) String() string

type HDInfo

type HDInfo struct {

	// HDPublickey
	HdPublicKey []byte `protobuf:"bytes,1,opt,name=hd_public_key,json=hdPublicKey,proto3" json:"hd_public_key,omitempty"`
	// original_hash
	OriginalHash []byte `protobuf:"bytes,2,opt,name=original_hash,json=originalHash,proto3" json:"original_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*HDInfo) Descriptor deprecated

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

Deprecated: Use HDInfo.ProtoReflect.Descriptor instead.

func (*HDInfo) GetHdPublicKey

func (x *HDInfo) GetHdPublicKey() []byte

func (*HDInfo) GetOriginalHash

func (x *HDInfo) GetOriginalHash() []byte

func (*HDInfo) ProtoMessage

func (*HDInfo) ProtoMessage()

func (*HDInfo) ProtoReflect

func (x *HDInfo) ProtoReflect() protoreflect.Message

func (*HDInfo) Reset

func (x *HDInfo) Reset()

func (*HDInfo) String

func (x *HDInfo) String() string
type Header struct {
	Logid    string          `protobuf:"bytes,1,opt,name=logid,proto3" json:"logid,omitempty"`                       //如果logid没填写,生成一个
	FromNode string          `protobuf:"bytes,2,opt,name=from_node,json=fromNode,proto3" json:"from_node,omitempty"` // call rpc client address,客户端可以为空,节点一定要写自己的address
	Error    XChainErrorEnum `protobuf:"varint,3,opt,name=error,proto3,enum=pb.XChainErrorEnum" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetError

func (x *Header) GetError() XChainErrorEnum

func (*Header) GetFromNode

func (x *Header) GetFromNode() string

func (*Header) GetLogid

func (x *Header) GetLogid() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type IdentityAuth

type IdentityAuth struct {
	Sign      []byte `protobuf:"bytes,1,opt,name=sign,proto3" json:"sign,omitempty"`
	Pubkey    []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Addr      string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	PeerID    string `protobuf:"bytes,4,opt,name=peerID,proto3" json:"peerID,omitempty"`
	Timestamp string `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Identity authentication request

func (*IdentityAuth) Descriptor deprecated

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

Deprecated: Use IdentityAuth.ProtoReflect.Descriptor instead.

func (*IdentityAuth) GetAddr

func (x *IdentityAuth) GetAddr() string

func (*IdentityAuth) GetPeerID

func (x *IdentityAuth) GetPeerID() string

func (*IdentityAuth) GetPubkey

func (x *IdentityAuth) GetPubkey() []byte

func (*IdentityAuth) GetSign

func (x *IdentityAuth) GetSign() []byte

func (*IdentityAuth) GetTimestamp

func (x *IdentityAuth) GetTimestamp() string

func (*IdentityAuth) ProtoMessage

func (*IdentityAuth) ProtoMessage()

func (*IdentityAuth) ProtoReflect

func (x *IdentityAuth) ProtoReflect() protoreflect.Message

func (*IdentityAuth) Reset

func (x *IdentityAuth) Reset()

func (*IdentityAuth) String

func (x *IdentityAuth) String() string

type IdentityAuths

type IdentityAuths struct {
	Auth []*IdentityAuth `protobuf:"bytes,1,rep,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

Identity authentication requests

func (*IdentityAuths) Descriptor deprecated

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

Deprecated: Use IdentityAuths.ProtoReflect.Descriptor instead.

func (*IdentityAuths) GetAuth

func (x *IdentityAuths) GetAuth() []*IdentityAuth

func (*IdentityAuths) ProtoMessage

func (*IdentityAuths) ProtoMessage()

func (*IdentityAuths) ProtoReflect

func (x *IdentityAuths) ProtoReflect() protoreflect.Message

func (*IdentityAuths) Reset

func (x *IdentityAuths) Reset()

func (*IdentityAuths) String

func (x *IdentityAuths) String() string

type InternalBlock

type InternalBlock struct {

	// block version
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Random number used to avoid replay attacks
	Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// blockid generate the hash sign of the block used by sha256
	Blockid []byte `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// pre_hash is the parent blockid of the block
	PreHash []byte `protobuf:"bytes,4,opt,name=pre_hash,json=preHash,proto3" json:"pre_hash,omitempty"`
	// The miner id
	Proposer []byte `protobuf:"bytes,5,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// The sign which miner signed: blockid + nonce + timestamp
	Sign []byte `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"`
	// The pk of the miner
	Pubkey []byte `protobuf:"bytes,7,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// The Merkle Tree root
	MerkleRoot []byte `protobuf:"bytes,8,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// The height of the blockchain
	Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
	// Timestamp of the block
	Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Transactions of the block, only txid stored on kv, the detail information
	// stored in another table
	Transactions []*Transaction `protobuf:"bytes,11,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// The transaction count of the block
	TxCount int32 `protobuf:"varint,12,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	// 所有交易hash的merkle tree
	MerkleTree  [][]byte          `protobuf:"bytes,13,rep,name=merkle_tree,json=merkleTree,proto3" json:"merkle_tree,omitempty"`
	CurTerm     int64             `protobuf:"varint,16,opt,name=curTerm,proto3" json:"curTerm,omitempty"`
	CurBlockNum int64             `protobuf:"varint,17,opt,name=curBlockNum,proto3" json:"curBlockNum,omitempty"`
	FailedTxs   map[string]string `` // txid -> failed reason
	/* 177-byte string literal not displayed */
	TargetBits int32 `protobuf:"varint,19,opt,name=targetBits,proto3" json:"targetBits,omitempty"`
	// Justify used in chained-bft
	Justify *QuorumCert `protobuf:"bytes,20,opt,name=Justify,proto3" json:"Justify,omitempty"`
	// 下面的属性会动态变化
	// If the block is on the trunk
	InTrunk bool `protobuf:"varint,14,opt,name=in_trunk,json=inTrunk,proto3" json:"in_trunk,omitempty"`
	// Next next block which on trunk
	NextHash []byte `protobuf:"bytes,15,opt,name=next_hash,json=nextHash,proto3" json:"next_hash,omitempty"`
	// contains filtered or unexported fields
}

The internal block struct

func (*InternalBlock) Descriptor deprecated

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

Deprecated: Use InternalBlock.ProtoReflect.Descriptor instead.

func (*InternalBlock) GetBlockid

func (x *InternalBlock) GetBlockid() []byte

func (*InternalBlock) GetCurBlockNum

func (x *InternalBlock) GetCurBlockNum() int64

func (*InternalBlock) GetCurTerm

func (x *InternalBlock) GetCurTerm() int64

func (*InternalBlock) GetFailedTxs

func (x *InternalBlock) GetFailedTxs() map[string]string

func (*InternalBlock) GetHeight

func (x *InternalBlock) GetHeight() int64

func (*InternalBlock) GetInTrunk

func (x *InternalBlock) GetInTrunk() bool

func (*InternalBlock) GetJustify

func (x *InternalBlock) GetJustify() *QuorumCert

func (*InternalBlock) GetMerkleRoot

func (x *InternalBlock) GetMerkleRoot() []byte

func (*InternalBlock) GetMerkleTree

func (x *InternalBlock) GetMerkleTree() [][]byte

func (*InternalBlock) GetNextHash

func (x *InternalBlock) GetNextHash() []byte

func (*InternalBlock) GetNonce

func (x *InternalBlock) GetNonce() int32

func (*InternalBlock) GetPreHash

func (x *InternalBlock) GetPreHash() []byte

func (*InternalBlock) GetProposer

func (x *InternalBlock) GetProposer() []byte

func (*InternalBlock) GetPubkey

func (x *InternalBlock) GetPubkey() []byte

func (*InternalBlock) GetSign

func (x *InternalBlock) GetSign() []byte

func (*InternalBlock) GetTargetBits

func (x *InternalBlock) GetTargetBits() int32

func (*InternalBlock) GetTimestamp

func (x *InternalBlock) GetTimestamp() int64

func (*InternalBlock) GetTransactions

func (x *InternalBlock) GetTransactions() []*Transaction

func (*InternalBlock) GetTxCount

func (x *InternalBlock) GetTxCount() int32

func (*InternalBlock) GetVersion

func (x *InternalBlock) GetVersion() int32

func (*InternalBlock) ProtoMessage

func (*InternalBlock) ProtoMessage()

func (*InternalBlock) ProtoReflect

func (x *InternalBlock) ProtoReflect() protoreflect.Message

func (*InternalBlock) Reset

func (x *InternalBlock) Reset()

func (*InternalBlock) String

func (x *InternalBlock) String() string

type InvokeRPCRequest

type InvokeRPCRequest struct {
	Header      *Header          `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname      string           `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Requests    []*InvokeRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"`
	Initiator   string           `protobuf:"bytes,4,opt,name=initiator,proto3" json:"initiator,omitempty"`
	AuthRequire []string         `protobuf:"bytes,5,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeRPCRequest) Descriptor deprecated

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

Deprecated: Use InvokeRPCRequest.ProtoReflect.Descriptor instead.

func (*InvokeRPCRequest) GetAuthRequire

func (x *InvokeRPCRequest) GetAuthRequire() []string

func (*InvokeRPCRequest) GetBcname

func (x *InvokeRPCRequest) GetBcname() string

func (*InvokeRPCRequest) GetHeader

func (x *InvokeRPCRequest) GetHeader() *Header

func (*InvokeRPCRequest) GetInitiator

func (x *InvokeRPCRequest) GetInitiator() string

func (*InvokeRPCRequest) GetRequests

func (x *InvokeRPCRequest) GetRequests() []*InvokeRequest

func (*InvokeRPCRequest) ProtoMessage

func (*InvokeRPCRequest) ProtoMessage()

func (*InvokeRPCRequest) ProtoReflect

func (x *InvokeRPCRequest) ProtoReflect() protoreflect.Message

func (*InvokeRPCRequest) Reset

func (x *InvokeRPCRequest) Reset()

func (*InvokeRPCRequest) String

func (x *InvokeRPCRequest) String() string

type InvokeRPCResponse

type InvokeRPCResponse struct {
	Header   *Header         `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname   string          `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Response *InvokeResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*InvokeRPCResponse) Descriptor deprecated

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

Deprecated: Use InvokeRPCResponse.ProtoReflect.Descriptor instead.

func (*InvokeRPCResponse) GetBcname

func (x *InvokeRPCResponse) GetBcname() string

func (*InvokeRPCResponse) GetHeader

func (x *InvokeRPCResponse) GetHeader() *Header

func (*InvokeRPCResponse) GetResponse

func (x *InvokeRPCResponse) GetResponse() *InvokeResponse

func (*InvokeRPCResponse) ProtoMessage

func (*InvokeRPCResponse) ProtoMessage()

func (*InvokeRPCResponse) ProtoReflect

func (x *InvokeRPCResponse) ProtoReflect() protoreflect.Message

func (*InvokeRPCResponse) Reset

func (x *InvokeRPCResponse) Reset()

func (*InvokeRPCResponse) String

func (x *InvokeRPCResponse) String() string

type InvokeRequest

type InvokeRequest struct {
	ModuleName     string            `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	ContractName   string            `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	MethodName     string            `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	Args           map[string][]byte `` /* 149-byte string literal not displayed */
	ResourceLimits []*ResourceLimit  `protobuf:"bytes,5,rep,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty"`
	// amount is the amount transfer to the contract
	// attention: In one transaction, transfer to only one contract is allowed
	Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

预执行的请求结构

func (*InvokeRequest) Descriptor deprecated

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

Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.

func (*InvokeRequest) GetAmount

func (x *InvokeRequest) GetAmount() string

func (*InvokeRequest) GetArgs

func (x *InvokeRequest) GetArgs() map[string][]byte

func (*InvokeRequest) GetContractName

func (x *InvokeRequest) GetContractName() string

func (*InvokeRequest) GetMethodName

func (x *InvokeRequest) GetMethodName() string

func (*InvokeRequest) GetModuleName

func (x *InvokeRequest) GetModuleName() string

func (*InvokeRequest) GetResourceLimits

func (x *InvokeRequest) GetResourceLimits() []*ResourceLimit

func (*InvokeRequest) ProtoMessage

func (*InvokeRequest) ProtoMessage()

func (*InvokeRequest) ProtoReflect

func (x *InvokeRequest) ProtoReflect() protoreflect.Message

func (*InvokeRequest) Reset

func (x *InvokeRequest) Reset()

func (*InvokeRequest) String

func (x *InvokeRequest) String() string

type InvokeResponse

type InvokeResponse struct {
	Inputs      []*TxInputExt       `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs     []*TxOutputExt      `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Response    [][]byte            `protobuf:"bytes,3,rep,name=response,proto3" json:"response,omitempty"`
	GasUsed     int64               `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Requests    []*InvokeRequest    `protobuf:"bytes,5,rep,name=requests,proto3" json:"requests,omitempty"`
	Responses   []*ContractResponse `protobuf:"bytes,6,rep,name=responses,proto3" json:"responses,omitempty"`
	UtxoInputs  []*TxInput          `protobuf:"bytes,7,rep,name=utxoInputs,proto3" json:"utxoInputs,omitempty"`
	UtxoOutputs []*TxOutput         `protobuf:"bytes,8,rep,name=utxoOutputs,proto3" json:"utxoOutputs,omitempty"`
	// contains filtered or unexported fields
}

预执行的返回结构

func (*InvokeResponse) Descriptor deprecated

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

Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.

func (*InvokeResponse) GetGasUsed

func (x *InvokeResponse) GetGasUsed() int64

func (*InvokeResponse) GetInputs

func (x *InvokeResponse) GetInputs() []*TxInputExt

func (*InvokeResponse) GetOutputs

func (x *InvokeResponse) GetOutputs() []*TxOutputExt

func (*InvokeResponse) GetRequests

func (x *InvokeResponse) GetRequests() []*InvokeRequest

func (*InvokeResponse) GetResponse

func (x *InvokeResponse) GetResponse() [][]byte

func (*InvokeResponse) GetResponses

func (x *InvokeResponse) GetResponses() []*ContractResponse

func (*InvokeResponse) GetUtxoInputs

func (x *InvokeResponse) GetUtxoInputs() []*TxInput

func (*InvokeResponse) GetUtxoOutputs

func (x *InvokeResponse) GetUtxoOutputs() []*TxOutput

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) ProtoReflect

func (x *InvokeResponse) ProtoReflect() protoreflect.Message

func (*InvokeResponse) Reset

func (x *InvokeResponse) Reset()

func (*InvokeResponse) String

func (x *InvokeResponse) String() string

type LedgerMeta

type LedgerMeta struct {

	// root block id
	RootBlockid []byte `protobuf:"bytes,1,opt,name=root_blockid,json=rootBlockid,proto3" json:"root_blockid,omitempty"`
	// tip block id
	TipBlockid []byte `protobuf:"bytes,2,opt,name=tip_blockid,json=tipBlockid,proto3" json:"tip_blockid,omitempty"`
	// the height of the trunk
	TrunkHeight int64 `protobuf:"varint,3,opt,name=trunk_height,json=trunkHeight,proto3" json:"trunk_height,omitempty"`
	// contains filtered or unexported fields
}

Ledger metadata

func (*LedgerMeta) Descriptor deprecated

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

Deprecated: Use LedgerMeta.ProtoReflect.Descriptor instead.

func (*LedgerMeta) GetRootBlockid

func (x *LedgerMeta) GetRootBlockid() []byte

func (*LedgerMeta) GetTipBlockid

func (x *LedgerMeta) GetTipBlockid() []byte

func (*LedgerMeta) GetTrunkHeight

func (x *LedgerMeta) GetTrunkHeight() int64

func (*LedgerMeta) ProtoMessage

func (*LedgerMeta) ProtoMessage()

func (*LedgerMeta) ProtoReflect

func (x *LedgerMeta) ProtoReflect() protoreflect.Message

func (*LedgerMeta) Reset

func (x *LedgerMeta) Reset()

func (*LedgerMeta) String

func (x *LedgerMeta) String() string

type MXchainClient

type MXchainClient interface {
	// SelectUTXOBySize merge many utxos into a few of utxos
	SelectUTXOBySize(ctx context.Context, in *UtxoInput, opts ...grpc.CallOption) (*UtxoOutput, error)
	// PostTx post Transaction to a node
	PostTx(ctx context.Context, in *TxStatus, opts ...grpc.CallOption) (*CommonReply, error)
	QueryACL(ctx context.Context, in *AclStatus, opts ...grpc.CallOption) (*AclStatus, error)
	QueryUtxoRecord(ctx context.Context, in *UtxoRecordDetail, opts ...grpc.CallOption) (*UtxoRecordDetail, error)
	QueryContractStatData(ctx context.Context, in *ContractStatDataRequest, opts ...grpc.CallOption) (*ContractStatDataResponse, error)
	GetAccountContracts(ctx context.Context, in *GetAccountContractsRequest, opts ...grpc.CallOption) (*GetAccountContractsResponse, error)
	// QueryTx query Transaction by TxStatus,
	// Bcname and Txid are required for this
	QueryTx(ctx context.Context, in *TxStatus, opts ...grpc.CallOption) (*TxStatus, error)
	// GetBalance get balance of an address,
	// Address is required for this
	GetBalance(ctx context.Context, in *AddressStatus, opts ...grpc.CallOption) (*AddressStatus, error)
	// GetFrozenBalance get two kinds of balance
	// 1. Still be frozen of an address
	// 2. Available now of an address
	// Address is required for this
	GetBalanceDetail(ctx context.Context, in *AddressBalanceStatus, opts ...grpc.CallOption) (*AddressBalanceStatus, error)
	// GetFrozenBalance get balance that still be frozen of an address,
	// Address is required for this
	GetFrozenBalance(ctx context.Context, in *AddressStatus, opts ...grpc.CallOption) (*AddressStatus, error)
	// GetBlock get block by blockid and return if the block in trunk or in branch
	GetBlock(ctx context.Context, in *BlockID, opts ...grpc.CallOption) (*Block, error)
	// GetBlockByHeight get block by height and return if the block in trunk or in
	// branch
	GetBlockByHeight(ctx context.Context, in *BlockHeight, opts ...grpc.CallOption) (*Block, error)
	GetBlockChainStatus(ctx context.Context, in *BCStatus, opts ...grpc.CallOption) (*BCStatus, error)
	// Get blockchains query blockchains
	GetBlockChains(ctx context.Context, in *CommonIn, opts ...grpc.CallOption) (*BlockChains, error)
	// GetSystemStatus query system status
	GetSystemStatus(ctx context.Context, in *CommonIn, opts ...grpc.CallOption) (*SystemsStatusReply, error)
	// GetConsensusChains query consensus status
	GetConsensusStatus(ctx context.Context, in *ConsensusStatRequest, opts ...grpc.CallOption) (*ConsensusStatus, error)
	// GetNetURL return net url
	GetNetURL(ctx context.Context, in *CommonIn, opts ...grpc.CallOption) (*RawUrl, error)
	// 新的Select utxos接口, 不需要签名,可以支持选择账户的utxo
	SelectUTXO(ctx context.Context, in *UtxoInput, opts ...grpc.CallOption) (*UtxoOutput, error)
	// PreExecWithSelectUTXO preExec & selectUtxo
	PreExecWithSelectUTXO(ctx context.Context, in *PreExecWithSelectUTXORequest, opts ...grpc.CallOption) (*PreExecWithSelectUTXOResponse, error)
	//  DposCandidates get all candidates of the tdpos consensus
	DposCandidates(ctx context.Context, in *DposCandidatesRequest, opts ...grpc.CallOption) (*DposCandidatesResponse, error)
	//  DposNominateRecords get all records nominated by an user
	DposNominateRecords(ctx context.Context, in *DposNominateRecordsRequest, opts ...grpc.CallOption) (*DposNominateRecordsResponse, error)
	//  DposNomineeRecords get nominated record of a candidate
	DposNomineeRecords(ctx context.Context, in *DposNomineeRecordsRequest, opts ...grpc.CallOption) (*DposNomineeRecordsResponse, error)
	//  DposVoteRecords get all vote records voted by an user
	DposVoteRecords(ctx context.Context, in *DposVoteRecordsRequest, opts ...grpc.CallOption) (*DposVoteRecordsResponse, error)
	//  DposVotedRecords get all vote records of a candidate
	DposVotedRecords(ctx context.Context, in *DposVotedRecordsRequest, opts ...grpc.CallOption) (*DposVotedRecordsResponse, error)
	//  DposCheckResults get check results of a specific term
	DposCheckResults(ctx context.Context, in *DposCheckResultsRequest, opts ...grpc.CallOption) (*DposCheckResultsResponse, error)
	// DposStatus get dpos status
	DposStatus(ctx context.Context, in *DposStatusRequest, opts ...grpc.CallOption) (*DposStatusResponse, error)
	// GetAccountByAK get account sets contain a specific address
	GetAccountByAK(ctx context.Context, in *AK2AccountRequest, opts ...grpc.CallOption) (*AK2AccountResponse, error)
	// GetAddressContracts get contracts of accounts contain a specific address
	GetAddressContracts(ctx context.Context, in *AddressContractsRequest, opts ...grpc.CallOption) (*AddressContractsResponse, error)
	//预执行合约
	PreExec(ctx context.Context, in *InvokeRPCRequest, opts ...grpc.CallOption) (*InvokeRPCResponse, error)
}

MXchainClient is the client API for MXchain service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMXchainClient

func NewMXchainClient(cc grpc.ClientConnInterface) MXchainClient

type MXchainServer

type MXchainServer interface {
	// SelectUTXOBySize merge many utxos into a few of utxos
	SelectUTXOBySize(context.Context, *UtxoInput) (*UtxoOutput, error)
	// PostTx post Transaction to a node
	PostTx(context.Context, *TxStatus) (*CommonReply, error)
	QueryACL(context.Context, *AclStatus) (*AclStatus, error)
	QueryUtxoRecord(context.Context, *UtxoRecordDetail) (*UtxoRecordDetail, error)
	QueryContractStatData(context.Context, *ContractStatDataRequest) (*ContractStatDataResponse, error)
	GetAccountContracts(context.Context, *GetAccountContractsRequest) (*GetAccountContractsResponse, error)
	// QueryTx query Transaction by TxStatus,
	// Bcname and Txid are required for this
	QueryTx(context.Context, *TxStatus) (*TxStatus, error)
	// GetBalance get balance of an address,
	// Address is required for this
	GetBalance(context.Context, *AddressStatus) (*AddressStatus, error)
	// GetFrozenBalance get two kinds of balance
	// 1. Still be frozen of an address
	// 2. Available now of an address
	// Address is required for this
	GetBalanceDetail(context.Context, *AddressBalanceStatus) (*AddressBalanceStatus, error)
	// GetFrozenBalance get balance that still be frozen of an address,
	// Address is required for this
	GetFrozenBalance(context.Context, *AddressStatus) (*AddressStatus, error)
	// GetBlock get block by blockid and return if the block in trunk or in branch
	GetBlock(context.Context, *BlockID) (*Block, error)
	// GetBlockByHeight get block by height and return if the block in trunk or in
	// branch
	GetBlockByHeight(context.Context, *BlockHeight) (*Block, error)
	GetBlockChainStatus(context.Context, *BCStatus) (*BCStatus, error)
	// Get blockchains query blockchains
	GetBlockChains(context.Context, *CommonIn) (*BlockChains, error)
	// GetSystemStatus query system status
	GetSystemStatus(context.Context, *CommonIn) (*SystemsStatusReply, error)
	// GetConsensusChains query consensus status
	GetConsensusStatus(context.Context, *ConsensusStatRequest) (*ConsensusStatus, error)
	// GetNetURL return net url
	GetNetURL(context.Context, *CommonIn) (*RawUrl, error)
	// 新的Select utxos接口, 不需要签名,可以支持选择账户的utxo
	SelectUTXO(context.Context, *UtxoInput) (*UtxoOutput, error)
	// PreExecWithSelectUTXO preExec & selectUtxo
	PreExecWithSelectUTXO(context.Context, *PreExecWithSelectUTXORequest) (*PreExecWithSelectUTXOResponse, error)
	//  DposCandidates get all candidates of the tdpos consensus
	DposCandidates(context.Context, *DposCandidatesRequest) (*DposCandidatesResponse, error)
	//  DposNominateRecords get all records nominated by an user
	DposNominateRecords(context.Context, *DposNominateRecordsRequest) (*DposNominateRecordsResponse, error)
	//  DposNomineeRecords get nominated record of a candidate
	DposNomineeRecords(context.Context, *DposNomineeRecordsRequest) (*DposNomineeRecordsResponse, error)
	//  DposVoteRecords get all vote records voted by an user
	DposVoteRecords(context.Context, *DposVoteRecordsRequest) (*DposVoteRecordsResponse, error)
	//  DposVotedRecords get all vote records of a candidate
	DposVotedRecords(context.Context, *DposVotedRecordsRequest) (*DposVotedRecordsResponse, error)
	//  DposCheckResults get check results of a specific term
	DposCheckResults(context.Context, *DposCheckResultsRequest) (*DposCheckResultsResponse, error)
	// DposStatus get dpos status
	DposStatus(context.Context, *DposStatusRequest) (*DposStatusResponse, error)
	// GetAccountByAK get account sets contain a specific address
	GetAccountByAK(context.Context, *AK2AccountRequest) (*AK2AccountResponse, error)
	// GetAddressContracts get contracts of accounts contain a specific address
	GetAddressContracts(context.Context, *AddressContractsRequest) (*AddressContractsResponse, error)
	//预执行合约
	PreExec(context.Context, *InvokeRPCRequest) (*InvokeRPCResponse, error)
}

MXchainServer is the server API for MXchain service. All implementations should embed UnimplementedMXchainServer for forward compatibility

type ModifyBlock

type ModifyBlock struct {

	// txid交易被effective_txid的交易提出可修改区块链的请求
	EffectiveTxid string `protobuf:"bytes,1,opt,name=effective_txid,json=effectiveTxid,proto3" json:"effective_txid,omitempty"`
	// 本交易是否已被修改标记
	Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"`
	// txid交易被修改生效的高度
	EffectiveHeight int64 `protobuf:"varint,3,opt,name=effective_height,json=effectiveHeight,proto3" json:"effective_height,omitempty"`
	// 监管的public key
	PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// 监管地址对修改的交易id的签名
	Sign string `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*ModifyBlock) Descriptor deprecated

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

Deprecated: Use ModifyBlock.ProtoReflect.Descriptor instead.

func (*ModifyBlock) GetEffectiveHeight

func (x *ModifyBlock) GetEffectiveHeight() int64

func (*ModifyBlock) GetEffectiveTxid

func (x *ModifyBlock) GetEffectiveTxid() string

func (*ModifyBlock) GetMarked

func (x *ModifyBlock) GetMarked() bool

func (*ModifyBlock) GetPublicKey

func (x *ModifyBlock) GetPublicKey() string

func (*ModifyBlock) GetSign

func (x *ModifyBlock) GetSign() string

func (*ModifyBlock) ProtoMessage

func (*ModifyBlock) ProtoMessage()

func (*ModifyBlock) ProtoReflect

func (x *ModifyBlock) ProtoReflect() protoreflect.Message

func (*ModifyBlock) Reset

func (x *ModifyBlock) Reset()

func (*ModifyBlock) String

func (x *ModifyBlock) String() string

type NativeCodeDesc

type NativeCodeDesc struct {

	// native code name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// code version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// digest of binary
	Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// the previous verion
	PrevVersion string `protobuf:"bytes,4,opt,name=prevVersion,proto3" json:"prevVersion,omitempty"`
	// xuper api version
	XuperApiVersion int32 `protobuf:"varint,5,opt,name=xuperApiVersion,proto3" json:"xuperApiVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*NativeCodeDesc) Descriptor deprecated

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

Deprecated: Use NativeCodeDesc.ProtoReflect.Descriptor instead.

func (*NativeCodeDesc) GetDigest

func (x *NativeCodeDesc) GetDigest() []byte

func (*NativeCodeDesc) GetName

func (x *NativeCodeDesc) GetName() string

func (*NativeCodeDesc) GetPrevVersion

func (x *NativeCodeDesc) GetPrevVersion() string

func (*NativeCodeDesc) GetVersion

func (x *NativeCodeDesc) GetVersion() string

func (*NativeCodeDesc) GetXuperApiVersion

func (x *NativeCodeDesc) GetXuperApiVersion() int32

func (*NativeCodeDesc) ProtoMessage

func (*NativeCodeDesc) ProtoMessage()

func (*NativeCodeDesc) ProtoReflect

func (x *NativeCodeDesc) ProtoReflect() protoreflect.Message

func (*NativeCodeDesc) Reset

func (x *NativeCodeDesc) Reset()

func (*NativeCodeDesc) String

func (x *NativeCodeDesc) String() string

type NativeCodeStatus

type NativeCodeStatus struct {
	Desc    *NativeCodeDesc `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"`
	Status  int32           `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Healthy bool            `protobuf:"varint,3,opt,name=healthy,proto3" json:"healthy,omitempty"`
	// contains filtered or unexported fields
}

func (*NativeCodeStatus) Descriptor deprecated

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

Deprecated: Use NativeCodeStatus.ProtoReflect.Descriptor instead.

func (*NativeCodeStatus) GetDesc

func (x *NativeCodeStatus) GetDesc() *NativeCodeDesc

func (*NativeCodeStatus) GetHealthy

func (x *NativeCodeStatus) GetHealthy() bool

func (*NativeCodeStatus) GetStatus

func (x *NativeCodeStatus) GetStatus() int32

func (*NativeCodeStatus) ProtoMessage

func (*NativeCodeStatus) ProtoMessage()

func (*NativeCodeStatus) ProtoReflect

func (x *NativeCodeStatus) ProtoReflect() protoreflect.Message

func (*NativeCodeStatus) Reset

func (x *NativeCodeStatus) Reset()

func (*NativeCodeStatus) String

func (x *NativeCodeStatus) String() string

type PermissionModel

type PermissionModel struct {
	Rule        PermissionRule `protobuf:"varint,1,opt,name=rule,proto3,enum=pb.PermissionRule" json:"rule,omitempty"`
	AcceptValue float64        `protobuf:"fixed64,2,opt,name=acceptValue,proto3" json:"acceptValue,omitempty"` // 取决于用哪种rule, 可以表示签名率,签名数或权重阈值
	// contains filtered or unexported fields
}

func (*PermissionModel) Descriptor deprecated

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

Deprecated: Use PermissionModel.ProtoReflect.Descriptor instead.

func (*PermissionModel) GetAcceptValue

func (x *PermissionModel) GetAcceptValue() float64

func (*PermissionModel) GetRule

func (x *PermissionModel) GetRule() PermissionRule

func (*PermissionModel) ProtoMessage

func (*PermissionModel) ProtoMessage()

func (*PermissionModel) ProtoReflect

func (x *PermissionModel) ProtoReflect() protoreflect.Message

func (*PermissionModel) Reset

func (x *PermissionModel) Reset()

func (*PermissionModel) String

func (x *PermissionModel) String() string

type PermissionRule

type PermissionRule int32

-------- Account and Permission Section --------

const (
	PermissionRule_NULL           PermissionRule = 0 // 无权限控制
	PermissionRule_SIGN_THRESHOLD PermissionRule = 1 // 签名阈值策略
	PermissionRule_SIGN_AKSET     PermissionRule = 2 // AKSet签名策略
	PermissionRule_SIGN_RATE      PermissionRule = 3 // 签名率策略
	PermissionRule_SIGN_SUM       PermissionRule = 4 // 签名个数策略
	PermissionRule_CA_SERVER      PermissionRule = 5 // CA服务器鉴权
	PermissionRule_COMMUNITY_VOTE PermissionRule = 6 // 社区治理
)

func (PermissionRule) Descriptor

func (PermissionRule) Enum

func (x PermissionRule) Enum() *PermissionRule

func (PermissionRule) EnumDescriptor deprecated

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

Deprecated: Use PermissionRule.Descriptor instead.

func (PermissionRule) Number

func (PermissionRule) String

func (x PermissionRule) String() string

func (PermissionRule) Type

type PreExecWithSelectUTXORequest

type PreExecWithSelectUTXORequest struct {
	Header      *Header           `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname      string            `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address     string            `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	TotalAmount int64             `protobuf:"varint,4,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"`
	SignInfo    *SignatureInfo    `protobuf:"bytes,6,opt,name=signInfo,proto3" json:"signInfo,omitempty"`
	NeedLock    bool              `protobuf:"varint,7,opt,name=needLock,proto3" json:"needLock,omitempty"`
	Request     *InvokeRPCRequest `protobuf:"bytes,5,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

PreExecWithSelectUTXORequest preExec + selectUtxo for request

func (*PreExecWithSelectUTXORequest) Descriptor deprecated

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

Deprecated: Use PreExecWithSelectUTXORequest.ProtoReflect.Descriptor instead.

func (*PreExecWithSelectUTXORequest) GetAddress

func (x *PreExecWithSelectUTXORequest) GetAddress() string

func (*PreExecWithSelectUTXORequest) GetBcname

func (x *PreExecWithSelectUTXORequest) GetBcname() string

func (*PreExecWithSelectUTXORequest) GetHeader

func (x *PreExecWithSelectUTXORequest) GetHeader() *Header

func (*PreExecWithSelectUTXORequest) GetNeedLock

func (x *PreExecWithSelectUTXORequest) GetNeedLock() bool

func (*PreExecWithSelectUTXORequest) GetRequest

func (*PreExecWithSelectUTXORequest) GetSignInfo

func (x *PreExecWithSelectUTXORequest) GetSignInfo() *SignatureInfo

func (*PreExecWithSelectUTXORequest) GetTotalAmount

func (x *PreExecWithSelectUTXORequest) GetTotalAmount() int64

func (*PreExecWithSelectUTXORequest) ProtoMessage

func (*PreExecWithSelectUTXORequest) ProtoMessage()

func (*PreExecWithSelectUTXORequest) ProtoReflect

func (*PreExecWithSelectUTXORequest) Reset

func (x *PreExecWithSelectUTXORequest) Reset()

func (*PreExecWithSelectUTXORequest) String

type PreExecWithSelectUTXOResponse

type PreExecWithSelectUTXOResponse struct {
	Header   *Header         `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname   string          `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Response *InvokeResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// for preExec & selectUTXO
	UtxoOutput *UtxoOutput `protobuf:"bytes,4,opt,name=utxoOutput,proto3" json:"utxoOutput,omitempty"`
	// contains filtered or unexported fields
}

PreExecWithSelectUTXOResponse preExec + selectUtxo for response

func (*PreExecWithSelectUTXOResponse) Descriptor deprecated

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

Deprecated: Use PreExecWithSelectUTXOResponse.ProtoReflect.Descriptor instead.

func (*PreExecWithSelectUTXOResponse) GetBcname

func (x *PreExecWithSelectUTXOResponse) GetBcname() string

func (*PreExecWithSelectUTXOResponse) GetHeader

func (x *PreExecWithSelectUTXOResponse) GetHeader() *Header

func (*PreExecWithSelectUTXOResponse) GetResponse

func (*PreExecWithSelectUTXOResponse) GetUtxoOutput

func (x *PreExecWithSelectUTXOResponse) GetUtxoOutput() *UtxoOutput

func (*PreExecWithSelectUTXOResponse) ProtoMessage

func (*PreExecWithSelectUTXOResponse) ProtoMessage()

func (*PreExecWithSelectUTXOResponse) ProtoReflect

func (*PreExecWithSelectUTXOResponse) Reset

func (x *PreExecWithSelectUTXOResponse) Reset()

func (*PreExecWithSelectUTXOResponse) String

type QCSignInfos

type QCSignInfos struct {

	// QCSignInfos
	QCSignInfos []*SignInfo `protobuf:"bytes,1,rep,name=QCSignInfos,proto3" json:"QCSignInfos,omitempty"`
	// contains filtered or unexported fields
}

QCSignInfos is the signs of the leader gathered from replicas of a specifically certType. A slice of signs is used at present. TODO @qizheng09: It will be change to Threshold-Signatures after Crypto lib support Threshold-Signatures.

func (*QCSignInfos) Descriptor deprecated

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

Deprecated: Use QCSignInfos.ProtoReflect.Descriptor instead.

func (*QCSignInfos) GetQCSignInfos

func (x *QCSignInfos) GetQCSignInfos() []*SignInfo

func (*QCSignInfos) ProtoMessage

func (*QCSignInfos) ProtoMessage()

func (*QCSignInfos) ProtoReflect

func (x *QCSignInfos) ProtoReflect() protoreflect.Message

func (*QCSignInfos) Reset

func (x *QCSignInfos) Reset()

func (*QCSignInfos) String

func (x *QCSignInfos) String() string

type QCState

type QCState int32

QCState is the phase of hotstuff

const (
	QCState_NEW_VIEW   QCState = 0
	QCState_PREPARE    QCState = 1
	QCState_PRE_COMMIT QCState = 2
	QCState_COMMIT     QCState = 3
	QCState_DECIDE     QCState = 4
)

func (QCState) Descriptor

func (QCState) Descriptor() protoreflect.EnumDescriptor

func (QCState) Enum

func (x QCState) Enum() *QCState

func (QCState) EnumDescriptor deprecated

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

Deprecated: Use QCState.Descriptor instead.

func (QCState) Number

func (x QCState) Number() protoreflect.EnumNumber

func (QCState) String

func (x QCState) String() string

func (QCState) Type

func (QCState) Type() protoreflect.EnumType

type QuorumCert

type QuorumCert struct {

	// The id of Proposal this QC certified.
	ProposalId []byte `protobuf:"bytes,1,opt,name=ProposalId,proto3" json:"ProposalId,omitempty"`
	// The msg of Proposal this QC certified.
	ProposalMsg []byte `protobuf:"bytes,2,opt,name=ProposalMsg,proto3" json:"ProposalMsg,omitempty"`
	// The current type of this QC certified.
	// the type contains `NEW_VIEW`, `PREPARE`
	Type QCState `protobuf:"varint,3,opt,name=Type,proto3,enum=pb.QCState" json:"Type,omitempty"`
	// The view number of this QC certified.
	ViewNumber int64 `protobuf:"varint,4,opt,name=ViewNumber,proto3" json:"ViewNumber,omitempty"`
	// SignInfos is the signs of the leader gathered from replicas
	// of a specifically certType.
	SignInfos *QCSignInfos `protobuf:"bytes,5,opt,name=SignInfos,proto3" json:"SignInfos,omitempty"`
	// contains filtered or unexported fields
}

QuorumCert is a data type that combines a collection of signatures from replicas.

func (*QuorumCert) Descriptor deprecated

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

Deprecated: Use QuorumCert.ProtoReflect.Descriptor instead.

func (*QuorumCert) GetProposalId

func (x *QuorumCert) GetProposalId() []byte

func (*QuorumCert) GetProposalMsg

func (x *QuorumCert) GetProposalMsg() []byte

func (*QuorumCert) GetSignInfos

func (x *QuorumCert) GetSignInfos() *QCSignInfos

func (*QuorumCert) GetType

func (x *QuorumCert) GetType() QCState

func (*QuorumCert) GetViewNumber

func (x *QuorumCert) GetViewNumber() int64

func (*QuorumCert) ProtoMessage

func (*QuorumCert) ProtoMessage()

func (*QuorumCert) ProtoReflect

func (x *QuorumCert) ProtoReflect() protoreflect.Message

func (*QuorumCert) Reset

func (x *QuorumCert) Reset()

func (*QuorumCert) String

func (x *QuorumCert) String() string

type RawUrl

type RawUrl struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	RawUrl string  `protobuf:"bytes,2,opt,name=rawUrl,proto3" json:"rawUrl,omitempty"`
	// contains filtered or unexported fields
}

RawUrl return the node's connect url

func (*RawUrl) Descriptor deprecated

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

Deprecated: Use RawUrl.ProtoReflect.Descriptor instead.

func (*RawUrl) GetHeader

func (x *RawUrl) GetHeader() *Header

func (*RawUrl) GetRawUrl

func (x *RawUrl) GetRawUrl() string

func (*RawUrl) ProtoMessage

func (*RawUrl) ProtoMessage()

func (*RawUrl) ProtoReflect

func (x *RawUrl) ProtoReflect() protoreflect.Message

func (*RawUrl) Reset

func (x *RawUrl) Reset()

func (*RawUrl) String

func (x *RawUrl) String() string

type ResourceLimit

type ResourceLimit struct {
	Type  ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.ResourceType" json:"type,omitempty"`
	Limit int64        `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceLimit) Descriptor deprecated

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

Deprecated: Use ResourceLimit.ProtoReflect.Descriptor instead.

func (*ResourceLimit) GetLimit

func (x *ResourceLimit) GetLimit() int64

func (*ResourceLimit) GetType

func (x *ResourceLimit) GetType() ResourceType

func (*ResourceLimit) ProtoMessage

func (*ResourceLimit) ProtoMessage()

func (*ResourceLimit) ProtoReflect

func (x *ResourceLimit) ProtoReflect() protoreflect.Message

func (*ResourceLimit) Reset

func (x *ResourceLimit) Reset()

func (*ResourceLimit) String

func (x *ResourceLimit) String() string

type ResourceType

type ResourceType int32
const (
	ResourceType_CPU    ResourceType = 0
	ResourceType_MEMORY ResourceType = 1
	ResourceType_DISK   ResourceType = 2
	ResourceType_XFEE   ResourceType = 3 // the fee used in kernel contract
)

func (ResourceType) Descriptor

func (ResourceType) Enum

func (x ResourceType) Enum() *ResourceType

func (ResourceType) EnumDescriptor deprecated

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

Deprecated: Use ResourceType.Descriptor instead.

func (ResourceType) Number

func (ResourceType) String

func (x ResourceType) String() string

func (ResourceType) Type

type SignInfo

type SignInfo struct {
	Address   string `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	PublicKey string `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Sign      []byte `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"`
	// contains filtered or unexported fields
}

SignInfo is the signature information of the

func (*SignInfo) Descriptor deprecated

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

Deprecated: Use SignInfo.ProtoReflect.Descriptor instead.

func (*SignInfo) GetAddress

func (x *SignInfo) GetAddress() string

func (*SignInfo) GetPublicKey

func (x *SignInfo) GetPublicKey() string

func (*SignInfo) GetSign

func (x *SignInfo) GetSign() []byte

func (*SignInfo) ProtoMessage

func (*SignInfo) ProtoMessage()

func (*SignInfo) ProtoReflect

func (x *SignInfo) ProtoReflect() protoreflect.Message

func (*SignInfo) Reset

func (x *SignInfo) Reset()

func (*SignInfo) String

func (x *SignInfo) String() string

type SignatureInfo

type SignatureInfo struct {
	PublicKey string `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Sign      []byte `protobuf:"bytes,2,opt,name=Sign,proto3" json:"Sign,omitempty"`
	// contains filtered or unexported fields
}

签名详情

func (*SignatureInfo) Descriptor deprecated

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

Deprecated: Use SignatureInfo.ProtoReflect.Descriptor instead.

func (*SignatureInfo) GetPublicKey

func (x *SignatureInfo) GetPublicKey() string

func (*SignatureInfo) GetSign

func (x *SignatureInfo) GetSign() []byte

func (*SignatureInfo) ProtoMessage

func (*SignatureInfo) ProtoMessage()

func (*SignatureInfo) ProtoReflect

func (x *SignatureInfo) ProtoReflect() protoreflect.Message

func (*SignatureInfo) Reset

func (x *SignatureInfo) Reset()

func (*SignatureInfo) String

func (x *SignatureInfo) String() string

type Speeds

type Speeds struct {
	SumSpeeds map[string]float64   `` /* 161-byte string literal not displayed */
	BcSpeeds  map[string]*BCSpeeds `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Speeds) Descriptor deprecated

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

Deprecated: Use Speeds.ProtoReflect.Descriptor instead.

func (*Speeds) GetBcSpeeds

func (x *Speeds) GetBcSpeeds() map[string]*BCSpeeds

func (*Speeds) GetSumSpeeds

func (x *Speeds) GetSumSpeeds() map[string]float64

func (*Speeds) ProtoMessage

func (*Speeds) ProtoMessage()

func (*Speeds) ProtoReflect

func (x *Speeds) ProtoReflect() protoreflect.Message

func (*Speeds) Reset

func (x *Speeds) Reset()

func (*Speeds) String

func (x *Speeds) String() string

type SystemsStatus

type SystemsStatus struct {
	Header    *Header     `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	BcsStatus []*BCStatus `protobuf:"bytes,2,rep,name=bcs_status,json=bcsStatus,proto3" json:"bcs_status,omitempty"`
	Speeds    *Speeds     `protobuf:"bytes,3,opt,name=speeds,proto3" json:"speeds,omitempty"`
	PeerUrls  []string    `protobuf:"bytes,4,rep,name=peerUrls,proto3" json:"peerUrls,omitempty"`
	// contains filtered or unexported fields
}

func (*SystemsStatus) Descriptor deprecated

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

Deprecated: Use SystemsStatus.ProtoReflect.Descriptor instead.

func (*SystemsStatus) GetBcsStatus

func (x *SystemsStatus) GetBcsStatus() []*BCStatus

func (*SystemsStatus) GetHeader

func (x *SystemsStatus) GetHeader() *Header

func (*SystemsStatus) GetPeerUrls

func (x *SystemsStatus) GetPeerUrls() []string

func (*SystemsStatus) GetSpeeds

func (x *SystemsStatus) GetSpeeds() *Speeds

func (*SystemsStatus) ProtoMessage

func (*SystemsStatus) ProtoMessage()

func (*SystemsStatus) ProtoReflect

func (x *SystemsStatus) ProtoReflect() protoreflect.Message

func (*SystemsStatus) Reset

func (x *SystemsStatus) Reset()

func (*SystemsStatus) String

func (x *SystemsStatus) String() string

type SystemsStatusReply

type SystemsStatusReply struct {
	Header        *Header        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	SystemsStatus *SystemsStatus `protobuf:"bytes,2,opt,name=systems_status,json=systemsStatus,proto3" json:"systems_status,omitempty"`
	// contains filtered or unexported fields
}

func (*SystemsStatusReply) Descriptor deprecated

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

Deprecated: Use SystemsStatusReply.ProtoReflect.Descriptor instead.

func (*SystemsStatusReply) GetHeader

func (x *SystemsStatusReply) GetHeader() *Header

func (*SystemsStatusReply) GetSystemsStatus

func (x *SystemsStatusReply) GetSystemsStatus() *SystemsStatus

func (*SystemsStatusReply) ProtoMessage

func (*SystemsStatusReply) ProtoMessage()

func (*SystemsStatusReply) ProtoReflect

func (x *SystemsStatusReply) ProtoReflect() protoreflect.Message

func (*SystemsStatusReply) Reset

func (x *SystemsStatusReply) Reset()

func (*SystemsStatusReply) String

func (x *SystemsStatusReply) String() string

type TokenDetail

type TokenDetail struct {
	Bcname  string          `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Balance string          `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Error   XChainErrorEnum `protobuf:"varint,3,opt,name=error,proto3,enum=pb.XChainErrorEnum" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenDetail) Descriptor deprecated

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

Deprecated: Use TokenDetail.ProtoReflect.Descriptor instead.

func (*TokenDetail) GetBalance

func (x *TokenDetail) GetBalance() string

func (*TokenDetail) GetBcname

func (x *TokenDetail) GetBcname() string

func (*TokenDetail) GetError

func (x *TokenDetail) GetError() XChainErrorEnum

func (*TokenDetail) ProtoMessage

func (*TokenDetail) ProtoMessage()

func (*TokenDetail) ProtoReflect

func (x *TokenDetail) ProtoReflect() protoreflect.Message

func (*TokenDetail) Reset

func (x *TokenDetail) Reset()

func (*TokenDetail) String

func (x *TokenDetail) String() string

type TokenFrozenDetail

type TokenFrozenDetail struct {
	Balance  string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	IsFrozen bool   `protobuf:"varint,2,opt,name=isFrozen,proto3" json:"isFrozen,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenFrozenDetail) Descriptor deprecated

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

Deprecated: Use TokenFrozenDetail.ProtoReflect.Descriptor instead.

func (*TokenFrozenDetail) GetBalance

func (x *TokenFrozenDetail) GetBalance() string

func (*TokenFrozenDetail) GetIsFrozen

func (x *TokenFrozenDetail) GetIsFrozen() bool

func (*TokenFrozenDetail) ProtoMessage

func (*TokenFrozenDetail) ProtoMessage()

func (*TokenFrozenDetail) ProtoReflect

func (x *TokenFrozenDetail) ProtoReflect() protoreflect.Message

func (*TokenFrozenDetail) Reset

func (x *TokenFrozenDetail) Reset()

func (*TokenFrozenDetail) String

func (x *TokenFrozenDetail) String() string

type TokenFrozenDetails

type TokenFrozenDetails struct {
	Bcname string               `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Tfd    []*TokenFrozenDetail `protobuf:"bytes,2,rep,name=tfd,proto3" json:"tfd,omitempty"`
	Error  XChainErrorEnum      `protobuf:"varint,3,opt,name=error,proto3,enum=pb.XChainErrorEnum" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenFrozenDetails) Descriptor deprecated

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

Deprecated: Use TokenFrozenDetails.ProtoReflect.Descriptor instead.

func (*TokenFrozenDetails) GetBcname

func (x *TokenFrozenDetails) GetBcname() string

func (*TokenFrozenDetails) GetError

func (x *TokenFrozenDetails) GetError() XChainErrorEnum

func (*TokenFrozenDetails) GetTfd

func (x *TokenFrozenDetails) GetTfd() []*TokenFrozenDetail

func (*TokenFrozenDetails) ProtoMessage

func (*TokenFrozenDetails) ProtoMessage()

func (*TokenFrozenDetails) ProtoReflect

func (x *TokenFrozenDetails) ProtoReflect() protoreflect.Message

func (*TokenFrozenDetails) Reset

func (x *TokenFrozenDetails) Reset()

func (*TokenFrozenDetails) String

func (x *TokenFrozenDetails) String() string

type Transaction

type Transaction struct {

	// txid is the id of this transaction
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	// the blockid the transaction belong to
	Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// Transaction input list
	TxInputs []*TxInput `protobuf:"bytes,3,rep,name=tx_inputs,json=txInputs,proto3" json:"tx_inputs,omitempty"`
	// Transaction output list
	TxOutputs []*TxOutput `protobuf:"bytes,4,rep,name=tx_outputs,json=txOutputs,proto3" json:"tx_outputs,omitempty"`
	// Transaction description or system contract
	Desc []byte `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`
	// Mining rewards
	Coinbase bool `protobuf:"varint,7,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	// Random number used to avoid replay attacks
	Nonce string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Timestamp to launch the transaction
	Timestamp int64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// tx format version; tx格式版本号
	Version int32 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"`
	// auto generated tx
	Autogen          bool             `protobuf:"varint,11,opt,name=autogen,proto3" json:"autogen,omitempty"`
	TxInputsExt      []*TxInputExt    `protobuf:"bytes,23,rep,name=tx_inputs_ext,json=txInputsExt,proto3" json:"tx_inputs_ext,omitempty"`
	TxOutputsExt     []*TxOutputExt   `protobuf:"bytes,24,rep,name=tx_outputs_ext,json=txOutputsExt,proto3" json:"tx_outputs_ext,omitempty"`
	ContractRequests []*InvokeRequest `protobuf:"bytes,25,rep,name=contract_requests,json=contractRequests,proto3" json:"contract_requests,omitempty"`
	// 权限系统新增字段
	// 交易发起者, 可以是一个Address或者一个Account
	Initiator string `protobuf:"bytes,26,opt,name=initiator,proto3" json:"initiator,omitempty"`
	// 交易发起需要被收集签名的AddressURL集合信息,包括用于utxo转账和用于合约调用
	AuthRequire []string `protobuf:"bytes,27,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"`
	// 交易发起者对交易元数据签名,签名的内容包括auth_require字段
	InitiatorSigns []*SignatureInfo `protobuf:"bytes,28,rep,name=initiator_signs,json=initiatorSigns,proto3" json:"initiator_signs,omitempty"`
	// 收集到的签名
	AuthRequireSigns []*SignatureInfo `protobuf:"bytes,29,rep,name=auth_require_signs,json=authRequireSigns,proto3" json:"auth_require_signs,omitempty"`
	// 节点收到tx的时间戳,不参与签名
	ReceivedTimestamp int64 `protobuf:"varint,30,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"`
	// 统一签名(支持多重签名/环签名等,与initiator_signs/auth_require_signs不同时使用)
	XuperSign *XuperSignature `protobuf:"bytes,31,opt,name=xuper_sign,json=xuperSign,proto3" json:"xuper_sign,omitempty"`
	// 可修改区块链标记
	ModifyBlock *ModifyBlock `protobuf:"bytes,32,opt,name=modify_block,json=modifyBlock,proto3" json:"modify_block,omitempty"`
	// HD加解密相关信息
	HDInfo *HDInfo `protobuf:"bytes,33,opt,name=HD_info,json=HDInfo,proto3" json:"HD_info,omitempty"`
	// contains filtered or unexported fields
}

Transaction is the information of the transaction

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAuthRequire

func (x *Transaction) GetAuthRequire() []string

func (*Transaction) GetAuthRequireSigns

func (x *Transaction) GetAuthRequireSigns() []*SignatureInfo

func (*Transaction) GetAutogen

func (x *Transaction) GetAutogen() bool

func (*Transaction) GetBlockid

func (x *Transaction) GetBlockid() []byte

func (*Transaction) GetCoinbase

func (x *Transaction) GetCoinbase() bool

func (*Transaction) GetContractRequests

func (x *Transaction) GetContractRequests() []*InvokeRequest

func (*Transaction) GetDesc

func (x *Transaction) GetDesc() []byte

func (*Transaction) GetHDInfo

func (x *Transaction) GetHDInfo() *HDInfo

func (*Transaction) GetInitiator

func (x *Transaction) GetInitiator() string

func (*Transaction) GetInitiatorSigns

func (x *Transaction) GetInitiatorSigns() []*SignatureInfo

func (*Transaction) GetModifyBlock

func (x *Transaction) GetModifyBlock() *ModifyBlock

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() string

func (*Transaction) GetReceivedTimestamp

func (x *Transaction) GetReceivedTimestamp() int64

func (*Transaction) GetTimestamp

func (x *Transaction) GetTimestamp() int64

func (*Transaction) GetTxInputs

func (x *Transaction) GetTxInputs() []*TxInput

func (*Transaction) GetTxInputsExt

func (x *Transaction) GetTxInputsExt() []*TxInputExt

func (*Transaction) GetTxOutputs

func (x *Transaction) GetTxOutputs() []*TxOutput

func (*Transaction) GetTxOutputsExt

func (x *Transaction) GetTxOutputsExt() []*TxOutputExt

func (*Transaction) GetTxid

func (x *Transaction) GetTxid() []byte

func (*Transaction) GetVersion

func (x *Transaction) GetVersion() int32

func (*Transaction) GetXuperSign

func (x *Transaction) GetXuperSign() *XuperSignature

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionStatus

type TransactionStatus int32

TransactionStatus is the status of transaction

const (
	// Undefined status
	TransactionStatus_UNDEFINE TransactionStatus = 0
	// Transaction not exist
	TransactionStatus_NOEXIST TransactionStatus = 1
	// Transaction have been confirmed
	TransactionStatus_CONFIRM TransactionStatus = 2
	// Transaction is on the furcation
	TransactionStatus_FURCATION TransactionStatus = 3
	// Transaction have not been confirmed
	TransactionStatus_UNCONFIRM TransactionStatus = 4
	// Transaction occurs error
	TransactionStatus_FAILED TransactionStatus = 5
)

func (TransactionStatus) Descriptor

func (TransactionStatus) Enum

func (TransactionStatus) EnumDescriptor deprecated

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

Deprecated: Use TransactionStatus.Descriptor instead.

func (TransactionStatus) Number

func (TransactionStatus) String

func (x TransactionStatus) String() string

func (TransactionStatus) Type

type TxData

type TxData struct {
	Header *Header `protobuf:"bytes,13,opt,name=header,proto3" json:"header,omitempty"`
	// Transaction id
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	// Block name
	Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// Account which start the transaction
	FromAddr string `protobuf:"bytes,3,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	// The pk of the account which start the transaction
	FromPubkey string `protobuf:"bytes,4,opt,name=from_pubkey,json=fromPubkey,proto3" json:"from_pubkey,omitempty"`
	// The sk of the account which start the transaction
	FromScrkey string `protobuf:"bytes,5,opt,name=from_scrkey,json=fromScrkey,proto3" json:"from_scrkey,omitempty"`
	// if user don't want to provide scrkey, he should sign the txdata into
	// user_sign
	UserSign []byte `protobuf:"bytes,14,opt,name=user_sign,json=userSign,proto3" json:"user_sign,omitempty"`
	// The account list accept tx
	Account []*TxDataAccount `protobuf:"bytes,6,rep,name=account,proto3" json:"account,omitempty"`
	// Random number used to avoid replay attacks
	Nonce string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Timestamp to launch the Tx
	Timestamp int64  `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Desc      []byte `protobuf:"bytes,12,opt,name=desc,proto3" json:"desc,omitempty"`
	// tx version
	Version int32 `protobuf:"varint,15,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*TxData) Descriptor deprecated

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

Deprecated: Use TxData.ProtoReflect.Descriptor instead.

func (*TxData) GetAccount

func (x *TxData) GetAccount() []*TxDataAccount

func (*TxData) GetBcname

func (x *TxData) GetBcname() string

func (*TxData) GetDesc

func (x *TxData) GetDesc() []byte

func (*TxData) GetFromAddr

func (x *TxData) GetFromAddr() string

func (*TxData) GetFromPubkey

func (x *TxData) GetFromPubkey() string

func (*TxData) GetFromScrkey

func (x *TxData) GetFromScrkey() string

func (*TxData) GetHeader

func (x *TxData) GetHeader() *Header

func (*TxData) GetNonce

func (x *TxData) GetNonce() string

func (*TxData) GetTimestamp

func (x *TxData) GetTimestamp() int64

func (*TxData) GetTxid

func (x *TxData) GetTxid() []byte

func (*TxData) GetUserSign

func (x *TxData) GetUserSign() []byte

func (*TxData) GetVersion

func (x *TxData) GetVersion() int32

func (*TxData) ProtoMessage

func (*TxData) ProtoMessage()

func (*TxData) ProtoReflect

func (x *TxData) ProtoReflect() protoreflect.Message

func (*TxData) Reset

func (x *TxData) Reset()

func (*TxData) String

func (x *TxData) String() string

type TxDataAccount

type TxDataAccount struct {
	Address      string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`                                //地址
	Amount       string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`                                  //金额
	FrozenHeight int64  `protobuf:"varint,3,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` //冻结高度
	// contains filtered or unexported fields
}

func (*TxDataAccount) Descriptor deprecated

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

Deprecated: Use TxDataAccount.ProtoReflect.Descriptor instead.

func (*TxDataAccount) GetAddress

func (x *TxDataAccount) GetAddress() string

func (*TxDataAccount) GetAmount

func (x *TxDataAccount) GetAmount() string

func (*TxDataAccount) GetFrozenHeight

func (x *TxDataAccount) GetFrozenHeight() int64

func (*TxDataAccount) ProtoMessage

func (*TxDataAccount) ProtoMessage()

func (*TxDataAccount) ProtoReflect

func (x *TxDataAccount) ProtoReflect() protoreflect.Message

func (*TxDataAccount) Reset

func (x *TxDataAccount) Reset()

func (*TxDataAccount) String

func (x *TxDataAccount) String() string

type TxInput

type TxInput struct {

	// The transaction id referenced to
	RefTxid []byte `protobuf:"bytes,1,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"`
	// The output offset of the transaction referenced to
	RefOffset int32 `protobuf:"varint,2,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"`
	// The address of the launcher
	FromAddr []byte `protobuf:"bytes,5,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	// The amount of the transaction
	Amount []byte `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	// Frozen height
	FrozenHeight int64 `protobuf:"varint,7,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	// contains filtered or unexported fields
}

Transaction input

func (*TxInput) Descriptor deprecated

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

Deprecated: Use TxInput.ProtoReflect.Descriptor instead.

func (*TxInput) GetAmount

func (x *TxInput) GetAmount() []byte

func (*TxInput) GetFromAddr

func (x *TxInput) GetFromAddr() []byte

func (*TxInput) GetFrozenHeight

func (x *TxInput) GetFrozenHeight() int64

func (*TxInput) GetRefOffset

func (x *TxInput) GetRefOffset() int32

func (*TxInput) GetRefTxid

func (x *TxInput) GetRefTxid() []byte

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) ProtoReflect

func (x *TxInput) ProtoReflect() protoreflect.Message

func (*TxInput) Reset

func (x *TxInput) Reset()

func (*TxInput) String

func (x *TxInput) String() string

type TxInputExt

type TxInputExt struct {
	Bucket    string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Key       []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	RefTxid   []byte `protobuf:"bytes,3,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"`
	RefOffset int32  `protobuf:"varint,4,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"`
	// contains filtered or unexported fields
}

扩展输入

func (*TxInputExt) Descriptor deprecated

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

Deprecated: Use TxInputExt.ProtoReflect.Descriptor instead.

func (*TxInputExt) GetBucket

func (x *TxInputExt) GetBucket() string

func (*TxInputExt) GetKey

func (x *TxInputExt) GetKey() []byte

func (*TxInputExt) GetRefOffset

func (x *TxInputExt) GetRefOffset() int32

func (*TxInputExt) GetRefTxid

func (x *TxInputExt) GetRefTxid() []byte

func (*TxInputExt) ProtoMessage

func (*TxInputExt) ProtoMessage()

func (*TxInputExt) ProtoReflect

func (x *TxInputExt) ProtoReflect() protoreflect.Message

func (*TxInputExt) Reset

func (x *TxInputExt) Reset()

func (*TxInputExt) String

func (x *TxInputExt) String() string

type TxOutput

type TxOutput struct {

	// The amount of the transaction
	Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// The address of the launcher
	ToAddr []byte `protobuf:"bytes,2,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"`
	// Fronzen height
	FrozenHeight int64 `protobuf:"varint,4,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	// contains filtered or unexported fields
}

Transaction output

func (*TxOutput) Descriptor deprecated

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

Deprecated: Use TxOutput.ProtoReflect.Descriptor instead.

func (*TxOutput) GetAmount

func (x *TxOutput) GetAmount() []byte

func (*TxOutput) GetFrozenHeight

func (x *TxOutput) GetFrozenHeight() int64

func (*TxOutput) GetToAddr

func (x *TxOutput) GetToAddr() []byte

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) ProtoReflect

func (x *TxOutput) ProtoReflect() protoreflect.Message

func (*TxOutput) Reset

func (x *TxOutput) Reset()

func (*TxOutput) String

func (x *TxOutput) String() string

type TxOutputExt

type TxOutputExt struct {
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,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"`
	// contains filtered or unexported fields
}

扩展输出

func (*TxOutputExt) Descriptor deprecated

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

Deprecated: Use TxOutputExt.ProtoReflect.Descriptor instead.

func (*TxOutputExt) GetBucket

func (x *TxOutputExt) GetBucket() string

func (*TxOutputExt) GetKey

func (x *TxOutputExt) GetKey() []byte

func (*TxOutputExt) GetValue

func (x *TxOutputExt) GetValue() []byte

func (*TxOutputExt) ProtoMessage

func (*TxOutputExt) ProtoMessage()

func (*TxOutputExt) ProtoReflect

func (x *TxOutputExt) ProtoReflect() protoreflect.Message

func (*TxOutputExt) Reset

func (x *TxOutputExt) Reset()

func (*TxOutputExt) String

func (x *TxOutputExt) String() string

type TxStatus

type TxStatus struct {
	Header   *Header           `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname   string            `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Txid     []byte            `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"`
	Status   TransactionStatus `protobuf:"varint,4,opt,name=status,proto3,enum=pb.TransactionStatus" json:"status,omitempty"` //当前状态
	Distance int64             `protobuf:"varint,5,opt,name=distance,proto3" json:"distance,omitempty"`                       //离主干末端的距离(如果在主干上)
	Tx       *Transaction      `protobuf:"bytes,7,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

func (*TxStatus) Descriptor deprecated

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

Deprecated: Use TxStatus.ProtoReflect.Descriptor instead.

func (*TxStatus) GetBcname

func (x *TxStatus) GetBcname() string

func (*TxStatus) GetDistance

func (x *TxStatus) GetDistance() int64

func (*TxStatus) GetHeader

func (x *TxStatus) GetHeader() *Header

func (*TxStatus) GetStatus

func (x *TxStatus) GetStatus() TransactionStatus

func (*TxStatus) GetTx

func (x *TxStatus) GetTx() *Transaction

func (*TxStatus) GetTxid

func (x *TxStatus) GetTxid() []byte

func (*TxStatus) ProtoMessage

func (*TxStatus) ProtoMessage()

func (*TxStatus) ProtoReflect

func (x *TxStatus) ProtoReflect() protoreflect.Message

func (*TxStatus) Reset

func (x *TxStatus) Reset()

func (*TxStatus) String

func (x *TxStatus) String() string

type UnimplementedMXchainServer

type UnimplementedMXchainServer struct {
}

UnimplementedMXchainServer should be embedded to have forward compatible implementations.

func (UnimplementedMXchainServer) DposCandidates

func (UnimplementedMXchainServer) DposCheckResults

func (UnimplementedMXchainServer) DposStatus

func (UnimplementedMXchainServer) DposVoteRecords

func (UnimplementedMXchainServer) DposVotedRecords

func (UnimplementedMXchainServer) GetAccountByAK

func (UnimplementedMXchainServer) GetAddressContracts

func (UnimplementedMXchainServer) GetBalance

func (UnimplementedMXchainServer) GetBalanceDetail

func (UnimplementedMXchainServer) GetBlock

func (UnimplementedMXchainServer) GetBlockByHeight

func (UnimplementedMXchainServer) GetBlockChainStatus

func (UnimplementedMXchainServer) GetBlockChainStatus(context.Context, *BCStatus) (*BCStatus, error)

func (UnimplementedMXchainServer) GetBlockChains

func (UnimplementedMXchainServer) GetConsensusStatus

func (UnimplementedMXchainServer) GetFrozenBalance

func (UnimplementedMXchainServer) GetNetURL

func (UnimplementedMXchainServer) GetSystemStatus

func (UnimplementedMXchainServer) PostTx

func (UnimplementedMXchainServer) PreExec

func (UnimplementedMXchainServer) QueryACL

func (UnimplementedMXchainServer) QueryContractStatData

func (UnimplementedMXchainServer) QueryTx

func (UnimplementedMXchainServer) QueryUtxoRecord

func (UnimplementedMXchainServer) SelectUTXO

func (UnimplementedMXchainServer) SelectUTXOBySize

type UnimplementedXendorserServer

type UnimplementedXendorserServer struct {
}

UnimplementedXendorserServer should be embedded to have forward compatible implementations.

func (UnimplementedXendorserServer) EndorserCall

type UnsafeMXchainServer

type UnsafeMXchainServer interface {
	// contains filtered or unexported methods
}

UnsafeMXchainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MXchainServer will result in compilation errors.

type UnsafeXendorserServer

type UnsafeXendorserServer interface {
	// contains filtered or unexported methods
}

UnsafeXendorserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to XendorserServer will result in compilation errors.

type Utxo

type Utxo struct {
	Amount    []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	ToAddr    []byte `protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
	ToPubkey  []byte `protobuf:"bytes,3,opt,name=toPubkey,proto3" json:"toPubkey,omitempty"`
	RefTxid   []byte `protobuf:"bytes,4,opt,name=refTxid,proto3" json:"refTxid,omitempty"`
	RefOffset int32  `protobuf:"varint,5,opt,name=refOffset,proto3" json:"refOffset,omitempty"`
	// contains filtered or unexported fields
}

func (*Utxo) Descriptor deprecated

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

Deprecated: Use Utxo.ProtoReflect.Descriptor instead.

func (*Utxo) GetAmount

func (x *Utxo) GetAmount() []byte

func (*Utxo) GetRefOffset

func (x *Utxo) GetRefOffset() int32

func (*Utxo) GetRefTxid

func (x *Utxo) GetRefTxid() []byte

func (*Utxo) GetToAddr

func (x *Utxo) GetToAddr() []byte

func (*Utxo) GetToPubkey

func (x *Utxo) GetToPubkey() []byte

func (*Utxo) ProtoMessage

func (*Utxo) ProtoMessage()

func (*Utxo) ProtoReflect

func (x *Utxo) ProtoReflect() protoreflect.Message

func (*Utxo) Reset

func (x *Utxo) Reset()

func (*Utxo) String

func (x *Utxo) String() string

type UtxoInput

type UtxoInput struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// which bcname to select
	Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	// address to select
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// publickey of the address
	Publickey string `protobuf:"bytes,4,opt,name=publickey,proto3" json:"publickey,omitempty"`
	// totalNeed refer the total need utxos to select
	TotalNeed string `protobuf:"bytes,5,opt,name=totalNeed,proto3" json:"totalNeed,omitempty"`
	// userSign of input
	UserSign []byte `protobuf:"bytes,7,opt,name=userSign,proto3" json:"userSign,omitempty"`
	// need lock
	NeedLock bool `protobuf:"varint,8,opt,name=needLock,proto3" json:"needLock,omitempty"`
	// contains filtered or unexported fields
}

UtxoInput query info to query utxos

func (*UtxoInput) Descriptor deprecated

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

Deprecated: Use UtxoInput.ProtoReflect.Descriptor instead.

func (*UtxoInput) GetAddress

func (x *UtxoInput) GetAddress() string

func (*UtxoInput) GetBcname

func (x *UtxoInput) GetBcname() string

func (*UtxoInput) GetHeader

func (x *UtxoInput) GetHeader() *Header

func (*UtxoInput) GetNeedLock

func (x *UtxoInput) GetNeedLock() bool

func (*UtxoInput) GetPublickey

func (x *UtxoInput) GetPublickey() string

func (*UtxoInput) GetTotalNeed

func (x *UtxoInput) GetTotalNeed() string

func (*UtxoInput) GetUserSign

func (x *UtxoInput) GetUserSign() []byte

func (*UtxoInput) ProtoMessage

func (*UtxoInput) ProtoMessage()

func (*UtxoInput) ProtoReflect

func (x *UtxoInput) ProtoReflect() protoreflect.Message

func (*UtxoInput) Reset

func (x *UtxoInput) Reset()

func (*UtxoInput) String

func (x *UtxoInput) String() string

type UtxoKey

type UtxoKey struct {
	RefTxid string `protobuf:"bytes,1,opt,name=refTxid,proto3" json:"refTxid,omitempty"`
	Offset  string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Amount  string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*UtxoKey) Descriptor deprecated

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

Deprecated: Use UtxoKey.ProtoReflect.Descriptor instead.

func (*UtxoKey) GetAmount

func (x *UtxoKey) GetAmount() string

func (*UtxoKey) GetOffset

func (x *UtxoKey) GetOffset() string

func (*UtxoKey) GetRefTxid

func (x *UtxoKey) GetRefTxid() string

func (*UtxoKey) ProtoMessage

func (*UtxoKey) ProtoMessage()

func (*UtxoKey) ProtoReflect

func (x *UtxoKey) ProtoReflect() protoreflect.Message

func (*UtxoKey) Reset

func (x *UtxoKey) Reset()

func (*UtxoKey) String

func (x *UtxoKey) String() string

type UtxoMeta

type UtxoMeta struct {
	LatestBlockid            []byte           `protobuf:"bytes,1,opt,name=latest_blockid,json=latestBlockid,proto3" json:"latest_blockid,omitempty"` // utxo vm目前执行到的blockid
	LockKeyList              []string         `protobuf:"bytes,2,rep,name=lock_key_list,json=lockKeyList,proto3" json:"lock_key_list,omitempty"`
	UtxoTotal                string           `protobuf:"bytes,3,opt,name=utxo_total,json=utxoTotal,proto3" json:"utxo_total,omitempty"`                         // 当前utxo vm上的总资产
	AvgDelay                 int64            `protobuf:"varint,4,opt,name=avgDelay,proto3" json:"avgDelay,omitempty"`                                           // 平均上链延时
	UnconfirmTxAmount        int64            `protobuf:"varint,5,opt,name=unconfirmTxAmount,proto3" json:"unconfirmTxAmount,omitempty"`                         // 待确认交易量
	MaxBlockSize             int64            `protobuf:"varint,6,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"`             // max block size
	ReservedContracts        []*InvokeRequest `protobuf:"bytes,7,rep,name=reserved_contracts,json=reservedContracts,proto3" json:"reserved_contracts,omitempty"` // preset contracts
	ForbiddenContract        *InvokeRequest   `protobuf:"bytes,8,opt,name=forbidden_contract,json=forbiddenContract,proto3" json:"forbidden_contract,omitempty"` // reset forbidden contract configuration
	NewAccountResourceAmount int64            ``                                                                                                                 // the resource amount of creating an account
	/* 138-byte string literal not displayed */
	IrreversibleBlockHeight int64          `protobuf:"varint,10,opt,name=irreversibleBlockHeight,proto3" json:"irreversibleBlockHeight,omitempty"` // 当前不可逆区块高度,与utxo对齐
	IrreversibleSlideWindow int64          `protobuf:"varint,11,opt,name=irreversibleSlideWindow,proto3" json:"irreversibleSlideWindow,omitempty"` // 当前不可逆区块高度调整窗口
	GasPrice                *GasPrice      `protobuf:"bytes,12,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	GroupChainContract      *InvokeRequest `protobuf:"bytes,13,opt,name=group_chain_contract,json=groupChainContract,proto3" json:"group_chain_contract,omitempty"` // 群组合约相关
	// contains filtered or unexported fields
}

Utxo metadata

func (*UtxoMeta) Descriptor deprecated

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

Deprecated: Use UtxoMeta.ProtoReflect.Descriptor instead.

func (*UtxoMeta) GetAvgDelay

func (x *UtxoMeta) GetAvgDelay() int64

func (*UtxoMeta) GetForbiddenContract

func (x *UtxoMeta) GetForbiddenContract() *InvokeRequest

func (*UtxoMeta) GetGasPrice

func (x *UtxoMeta) GetGasPrice() *GasPrice

func (*UtxoMeta) GetGroupChainContract

func (x *UtxoMeta) GetGroupChainContract() *InvokeRequest

func (*UtxoMeta) GetIrreversibleBlockHeight

func (x *UtxoMeta) GetIrreversibleBlockHeight() int64

func (*UtxoMeta) GetIrreversibleSlideWindow

func (x *UtxoMeta) GetIrreversibleSlideWindow() int64

func (*UtxoMeta) GetLatestBlockid

func (x *UtxoMeta) GetLatestBlockid() []byte

func (*UtxoMeta) GetLockKeyList

func (x *UtxoMeta) GetLockKeyList() []string

func (*UtxoMeta) GetMaxBlockSize

func (x *UtxoMeta) GetMaxBlockSize() int64

func (*UtxoMeta) GetNewAccountResourceAmount

func (x *UtxoMeta) GetNewAccountResourceAmount() int64

func (*UtxoMeta) GetReservedContracts

func (x *UtxoMeta) GetReservedContracts() []*InvokeRequest

func (*UtxoMeta) GetUnconfirmTxAmount

func (x *UtxoMeta) GetUnconfirmTxAmount() int64

func (*UtxoMeta) GetUtxoTotal

func (x *UtxoMeta) GetUtxoTotal() string

func (*UtxoMeta) ProtoMessage

func (*UtxoMeta) ProtoMessage()

func (*UtxoMeta) ProtoReflect

func (x *UtxoMeta) ProtoReflect() protoreflect.Message

func (*UtxoMeta) Reset

func (x *UtxoMeta) Reset()

func (*UtxoMeta) String

func (x *UtxoMeta) String() string

type UtxoOutput

type UtxoOutput struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// outSign return the output
	// bytes outSign = 2;
	// utxo list
	UtxoList []*Utxo `protobuf:"bytes,2,rep,name=utxoList,proto3" json:"utxoList,omitempty"`
	// total selected amount
	TotalSelected string `protobuf:"bytes,3,opt,name=totalSelected,proto3" json:"totalSelected,omitempty"`
	// contains filtered or unexported fields
}

UtxoOutput query results

func (*UtxoOutput) Descriptor deprecated

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

Deprecated: Use UtxoOutput.ProtoReflect.Descriptor instead.

func (*UtxoOutput) GetHeader

func (x *UtxoOutput) GetHeader() *Header

func (*UtxoOutput) GetTotalSelected

func (x *UtxoOutput) GetTotalSelected() string

func (*UtxoOutput) GetUtxoList

func (x *UtxoOutput) GetUtxoList() []*Utxo

func (*UtxoOutput) ProtoMessage

func (*UtxoOutput) ProtoMessage()

func (*UtxoOutput) ProtoReflect

func (x *UtxoOutput) ProtoReflect() protoreflect.Message

func (*UtxoOutput) Reset

func (x *UtxoOutput) Reset()

func (*UtxoOutput) String

func (x *UtxoOutput) String() string

type UtxoRecord

type UtxoRecord struct {
	UtxoCount  string     `protobuf:"bytes,1,opt,name=utxoCount,proto3" json:"utxoCount,omitempty"`
	UtxoAmount string     `protobuf:"bytes,2,opt,name=utxoAmount,proto3" json:"utxoAmount,omitempty"`
	Item       []*UtxoKey `protobuf:"bytes,3,rep,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

func (*UtxoRecord) Descriptor deprecated

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

Deprecated: Use UtxoRecord.ProtoReflect.Descriptor instead.

func (*UtxoRecord) GetItem

func (x *UtxoRecord) GetItem() []*UtxoKey

func (*UtxoRecord) GetUtxoAmount

func (x *UtxoRecord) GetUtxoAmount() string

func (*UtxoRecord) GetUtxoCount

func (x *UtxoRecord) GetUtxoCount() string

func (*UtxoRecord) ProtoMessage

func (*UtxoRecord) ProtoMessage()

func (*UtxoRecord) ProtoReflect

func (x *UtxoRecord) ProtoReflect() protoreflect.Message

func (*UtxoRecord) Reset

func (x *UtxoRecord) Reset()

func (*UtxoRecord) String

func (x *UtxoRecord) String() string

type UtxoRecordDetail

type UtxoRecordDetail struct {
	Header           *Header     `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Bcname           string      `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"`
	AccountName      string      `protobuf:"bytes,3,opt,name=accountName,proto3" json:"accountName,omitempty"`
	OpenUtxoRecord   *UtxoRecord `protobuf:"bytes,4,opt,name=openUtxoRecord,proto3" json:"openUtxoRecord,omitempty"`
	LockedUtxoRecord *UtxoRecord `protobuf:"bytes,5,opt,name=lockedUtxoRecord,proto3" json:"lockedUtxoRecord,omitempty"`
	FrozenUtxoRecord *UtxoRecord `protobuf:"bytes,6,opt,name=frozenUtxoRecord,proto3" json:"frozenUtxoRecord,omitempty"`
	DisplayCount     int64       `protobuf:"varint,7,opt,name=displayCount,proto3" json:"displayCount,omitempty"`
	// contains filtered or unexported fields
}

func (*UtxoRecordDetail) Descriptor deprecated

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

Deprecated: Use UtxoRecordDetail.ProtoReflect.Descriptor instead.

func (*UtxoRecordDetail) GetAccountName

func (x *UtxoRecordDetail) GetAccountName() string

func (*UtxoRecordDetail) GetBcname

func (x *UtxoRecordDetail) GetBcname() string

func (*UtxoRecordDetail) GetDisplayCount

func (x *UtxoRecordDetail) GetDisplayCount() int64

func (*UtxoRecordDetail) GetFrozenUtxoRecord

func (x *UtxoRecordDetail) GetFrozenUtxoRecord() *UtxoRecord

func (*UtxoRecordDetail) GetHeader

func (x *UtxoRecordDetail) GetHeader() *Header

func (*UtxoRecordDetail) GetLockedUtxoRecord

func (x *UtxoRecordDetail) GetLockedUtxoRecord() *UtxoRecord

func (*UtxoRecordDetail) GetOpenUtxoRecord

func (x *UtxoRecordDetail) GetOpenUtxoRecord() *UtxoRecord

func (*UtxoRecordDetail) ProtoMessage

func (*UtxoRecordDetail) ProtoMessage()

func (*UtxoRecordDetail) ProtoReflect

func (x *UtxoRecordDetail) ProtoReflect() protoreflect.Message

func (*UtxoRecordDetail) Reset

func (x *UtxoRecordDetail) Reset()

func (*UtxoRecordDetail) String

func (x *UtxoRecordDetail) String() string

type ViewOption

type ViewOption int32

View option to be choosed (only used in status filter currently)

const (
	// Without any flag: Default
	ViewOption_NONE ViewOption = 0
	// Ledger flag: Get Ledger Info
	ViewOption_LEDGER ViewOption = 1
	// Utxo flag: Get UTXO Info
	ViewOption_UTXOINFO ViewOption = 2
	// Branch flag: Get BranchId Info
	ViewOption_BRANCHINFO ViewOption = 3
	// Peers flag: Get Peers Info
	ViewOption_PEERS ViewOption = 4
)

func (ViewOption) Descriptor

func (ViewOption) Descriptor() protoreflect.EnumDescriptor

func (ViewOption) Enum

func (x ViewOption) Enum() *ViewOption

func (ViewOption) EnumDescriptor deprecated

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

Deprecated: Use ViewOption.Descriptor instead.

func (ViewOption) Number

func (x ViewOption) Number() protoreflect.EnumNumber

func (ViewOption) String

func (x ViewOption) String() string

func (ViewOption) Type

type VoteRecord

type VoteRecord struct {
	Candidate string `protobuf:"bytes,1,opt,name=candidate,proto3" json:"candidate,omitempty"`
	Txid      string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

选民投票记录

func (*VoteRecord) Descriptor deprecated

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

Deprecated: Use VoteRecord.ProtoReflect.Descriptor instead.

func (*VoteRecord) GetCandidate

func (x *VoteRecord) GetCandidate() string

func (*VoteRecord) GetTxid

func (x *VoteRecord) GetTxid() string

func (*VoteRecord) ProtoMessage

func (*VoteRecord) ProtoMessage()

func (*VoteRecord) ProtoReflect

func (x *VoteRecord) ProtoReflect() protoreflect.Message

func (*VoteRecord) Reset

func (x *VoteRecord) Reset()

func (*VoteRecord) String

func (x *VoteRecord) String() string

type VotedRecord

type VotedRecord struct {
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	Txid  string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	// contains filtered or unexported fields
}

候选人被投票记录

func (*VotedRecord) Descriptor deprecated

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

Deprecated: Use VotedRecord.ProtoReflect.Descriptor instead.

func (*VotedRecord) GetTxid

func (x *VotedRecord) GetTxid() string

func (*VotedRecord) GetVoter

func (x *VotedRecord) GetVoter() string

func (*VotedRecord) ProtoMessage

func (*VotedRecord) ProtoMessage()

func (*VotedRecord) ProtoReflect

func (x *VotedRecord) ProtoReflect() protoreflect.Message

func (*VotedRecord) Reset

func (x *VotedRecord) Reset()

func (*VotedRecord) String

func (x *VotedRecord) String() string

type WasmCodeDesc

type WasmCodeDesc struct {
	Runtime      string `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"`
	Compiler     string `protobuf:"bytes,2,opt,name=compiler,proto3" json:"compiler,omitempty"`
	Digest       []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	VmCompiler   string `protobuf:"bytes,4,opt,name=vm_compiler,json=vmCompiler,proto3" json:"vm_compiler,omitempty"`
	ContractType string `protobuf:"bytes,5,opt,name=contract_type,json=contractType,proto3" json:"contract_type,omitempty"`
	// contains filtered or unexported fields
}

func (*WasmCodeDesc) Descriptor deprecated

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

Deprecated: Use WasmCodeDesc.ProtoReflect.Descriptor instead.

func (*WasmCodeDesc) GetCompiler

func (x *WasmCodeDesc) GetCompiler() string

func (*WasmCodeDesc) GetContractType

func (x *WasmCodeDesc) GetContractType() string

func (*WasmCodeDesc) GetDigest

func (x *WasmCodeDesc) GetDigest() []byte

func (*WasmCodeDesc) GetRuntime

func (x *WasmCodeDesc) GetRuntime() string

func (*WasmCodeDesc) GetVmCompiler

func (x *WasmCodeDesc) GetVmCompiler() string

func (*WasmCodeDesc) ProtoMessage

func (*WasmCodeDesc) ProtoMessage()

func (*WasmCodeDesc) ProtoReflect

func (x *WasmCodeDesc) ProtoReflect() protoreflect.Message

func (*WasmCodeDesc) Reset

func (x *WasmCodeDesc) Reset()

func (*WasmCodeDesc) String

func (x *WasmCodeDesc) String() string

type XChainErrorEnum

type XChainErrorEnum int32
const (
	XChainErrorEnum_SUCCESS                        XChainErrorEnum = 0
	XChainErrorEnum_UNKNOW_ERROR                   XChainErrorEnum = 1
	XChainErrorEnum_CONNECT_REFUSE                 XChainErrorEnum = 2
	XChainErrorEnum_NOT_ENOUGH_UTXO_ERROR          XChainErrorEnum = 3
	XChainErrorEnum_UTXOVM_ALREADY_UNCONFIRM_ERROR XChainErrorEnum = 4
	XChainErrorEnum_UTXOVM_NOT_FOUND_ERROR         XChainErrorEnum = 5
	XChainErrorEnum_INPUT_OUTPUT_NOT_EQUAL_ERROR   XChainErrorEnum = 6
	XChainErrorEnum_TX_NOT_FOUND_ERROR             XChainErrorEnum = 7
	XChainErrorEnum_TX_SIGN_ERROR                  XChainErrorEnum = 8
	XChainErrorEnum_BLOCKCHAIN_NOTEXIST            XChainErrorEnum = 9
	XChainErrorEnum_VALIDATE_ERROR                 XChainErrorEnum = 10
	XChainErrorEnum_CANNOT_SYNC_BLOCK_ERROR        XChainErrorEnum = 11
	XChainErrorEnum_CONFIRM_BLOCK_ERROR            XChainErrorEnum = 12
	XChainErrorEnum_UTXOVM_PLAY_ERROR              XChainErrorEnum = 13
	XChainErrorEnum_WALK_ERROR                     XChainErrorEnum = 14
	XChainErrorEnum_NOT_READY_ERROR                XChainErrorEnum = 15
	XChainErrorEnum_BLOCK_EXIST_ERROR              XChainErrorEnum = 16
	XChainErrorEnum_ROOT_BLOCK_EXIST_ERROR         XChainErrorEnum = 17
	XChainErrorEnum_TX_DUPLICATE_ERROR             XChainErrorEnum = 19
	XChainErrorEnum_SERVICE_REFUSED_ERROR          XChainErrorEnum = 20
	XChainErrorEnum_TXDATA_SIGN_ERROR              XChainErrorEnum = 21
	XChainErrorEnum_TX_SLE_ERROR                   XChainErrorEnum = 25
	XChainErrorEnum_TX_FEE_NOT_ENOUGH_ERROR        XChainErrorEnum = 26
	XChainErrorEnum_UTXO_SIGN_ERROR                XChainErrorEnum = 28
	XChainErrorEnum_DPOS_QUERY_ERROR               XChainErrorEnum = 31
	XChainErrorEnum_RWSET_INVALID_ERROR            XChainErrorEnum = 33
	XChainErrorEnum_RWACL_INVALID_ERROR            XChainErrorEnum = 34
	XChainErrorEnum_GAS_NOT_ENOUGH_ERROR           XChainErrorEnum = 35
	XChainErrorEnum_TX_VERSION_INVALID_ERROR       XChainErrorEnum = 36
	XChainErrorEnum_COMPLIANCE_CHECK_NOT_APPROVED  XChainErrorEnum = 37
	XChainErrorEnum_ACCOUNT_CONTRACT_STATUS_ERROR  XChainErrorEnum = 38
	XChainErrorEnum_TX_VERIFICATION_ERROR          XChainErrorEnum = 40
)

func (XChainErrorEnum) Descriptor

func (XChainErrorEnum) Enum

func (x XChainErrorEnum) Enum() *XChainErrorEnum

func (XChainErrorEnum) EnumDescriptor deprecated

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

Deprecated: Use XChainErrorEnum.Descriptor instead.

func (XChainErrorEnum) Number

func (XChainErrorEnum) String

func (x XChainErrorEnum) String() string

func (XChainErrorEnum) Type

type XendorserClient

type XendorserClient interface {
	EndorserCall(ctx context.Context, in *EndorserRequest, opts ...grpc.CallOption) (*EndorserResponse, error)
}

XendorserClient is the client API for Xendorser service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewXendorserClient

func NewXendorserClient(cc grpc.ClientConnInterface) XendorserClient

type XendorserServer

type XendorserServer interface {
	EndorserCall(context.Context, *EndorserRequest) (*EndorserResponse, error)
}

XendorserServer is the server API for Xendorser service. All implementations should embed UnimplementedXendorserServer for forward compatibility

type XuperSignature

type XuperSignature struct {
	PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	Signature  []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Unified Xuper Signature

func (*XuperSignature) Descriptor deprecated

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

Deprecated: Use XuperSignature.ProtoReflect.Descriptor instead.

func (*XuperSignature) GetPublicKeys

func (x *XuperSignature) GetPublicKeys() [][]byte

func (*XuperSignature) GetSignature

func (x *XuperSignature) GetSignature() []byte

func (*XuperSignature) ProtoMessage

func (*XuperSignature) ProtoMessage()

func (*XuperSignature) ProtoReflect

func (x *XuperSignature) ProtoReflect() protoreflect.Message

func (*XuperSignature) Reset

func (x *XuperSignature) Reset()

func (*XuperSignature) String

func (x *XuperSignature) String() string

Jump to

Keyboard shortcuts

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