api

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterGrpcApiContractServer

func RegisterGrpcApiContractServer(s *grpc.Server, srv GrpcApiContractServer)

func RegisterGrpcApiDidServer

func RegisterGrpcApiDidServer(s *grpc.Server, srv GrpcApiDidServer)

func RegisterGrpcApiMQServer

func RegisterGrpcApiMQServer(s *grpc.Server, srv GrpcApiMQServer)

func RegisterGrpcApiTransactionServer

func RegisterGrpcApiTransactionServer(s *grpc.Server, srv GrpcApiTransactionServer)

Types

type Auth

type Auth struct {
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Timestamp int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*Auth) Descriptor

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

func (*Auth) GetAddress

func (m *Auth) GetAddress() string

func (*Auth) GetSignature

func (m *Auth) GetSignature() string

func (*Auth) GetTimestamp

func (m *Auth) GetTimestamp() int64

func (*Auth) Marshal

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

func (*Auth) MarshalTo

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

func (*Auth) MarshalToSizedBuffer

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

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) Reset

func (m *Auth) Reset()

func (*Auth) Size

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

func (*Auth) String

func (m *Auth) String() string

func (*Auth) Unmarshal

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

func (*Auth) XXX_DiscardUnknown

func (m *Auth) XXX_DiscardUnknown()

func (*Auth) XXX_Marshal

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

func (*Auth) XXX_Merge

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

func (*Auth) XXX_Size

func (m *Auth) XXX_Size() int

func (*Auth) XXX_Unmarshal

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

type CommonReq

type CommonReq struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Auth      *Auth  `protobuf:"bytes,2,opt,name=auth,proto3" json:"auth,omitempty"`
	Params    []byte `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	TCert     string `protobuf:"bytes,4,opt,name=tCert,proto3" json:"tCert,omitempty"`
	Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*CommonReq) Descriptor

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

func (*CommonReq) GetAuth

func (m *CommonReq) GetAuth() *Auth

func (*CommonReq) GetNamespace

func (m *CommonReq) GetNamespace() string

func (*CommonReq) GetParams

func (m *CommonReq) GetParams() []byte

func (*CommonReq) GetSignature

func (m *CommonReq) GetSignature() string

func (*CommonReq) GetTCert

func (m *CommonReq) GetTCert() string

func (*CommonReq) Marshal

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

func (*CommonReq) MarshalTo

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

func (*CommonReq) MarshalToSizedBuffer

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

func (*CommonReq) ProtoMessage

func (*CommonReq) ProtoMessage()

func (*CommonReq) Reset

func (m *CommonReq) Reset()

func (*CommonReq) Size

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

func (*CommonReq) String

func (m *CommonReq) String() string

func (*CommonReq) Unmarshal

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

func (*CommonReq) XXX_DiscardUnknown

func (m *CommonReq) XXX_DiscardUnknown()

func (*CommonReq) XXX_Marshal

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

func (*CommonReq) XXX_Merge

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

func (*CommonReq) XXX_Size

func (m *CommonReq) XXX_Size() int

func (*CommonReq) XXX_Unmarshal

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

type CommonRes

type CommonRes struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Code      int64  `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	CodeDesc  string `protobuf:"bytes,3,opt,name=codeDesc,proto3" json:"codeDesc,omitempty"`
	Result    []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
}

func (*CommonRes) Descriptor

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

func (*CommonRes) GetCode

func (m *CommonRes) GetCode() int64

func (*CommonRes) GetCodeDesc

func (m *CommonRes) GetCodeDesc() string

func (*CommonRes) GetNamespace

func (m *CommonRes) GetNamespace() string

func (*CommonRes) GetResult

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

func (*CommonRes) Marshal

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

func (*CommonRes) MarshalTo

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

func (*CommonRes) MarshalToSizedBuffer

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

func (*CommonRes) ProtoMessage

func (*CommonRes) ProtoMessage()

func (*CommonRes) Reset

func (m *CommonRes) Reset()

func (*CommonRes) Size

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

func (*CommonRes) String

func (m *CommonRes) String() string

func (*CommonRes) Unmarshal

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

func (*CommonRes) XXX_DiscardUnknown

func (m *CommonRes) XXX_DiscardUnknown()

func (*CommonRes) XXX_Marshal

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

func (*CommonRes) XXX_Merge

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

func (*CommonRes) XXX_Size

func (m *CommonRes) XXX_Size() int

func (*CommonRes) XXX_Unmarshal

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

type GrpcApiContractClient

type GrpcApiContractClient interface {
	DeployContract(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_DeployContractClient, error)
	DeployContractReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_DeployContractReturnReceiptClient, error)
	InvokeContract(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_InvokeContractClient, error)
	InvokeContractReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_InvokeContractReturnReceiptClient, error)
	MaintainContract(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_MaintainContractClient, error)
	MaintainContractReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_MaintainContractReturnReceiptClient, error)
	ManageContractByVote(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_ManageContractByVoteClient, error)
	ManageContractByVoteReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiContract_ManageContractByVoteReturnReceiptClient, error)
}

GrpcApiContractClient is the client API for GrpcApiContract service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrpcApiContractClient

func NewGrpcApiContractClient(cc *grpc.ClientConn) GrpcApiContractClient

type GrpcApiContractServer

GrpcApiContractServer is the server API for GrpcApiContract service.

type GrpcApiContract_DeployContractClient

type GrpcApiContract_DeployContractClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_DeployContractReturnReceiptClient

type GrpcApiContract_DeployContractReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_DeployContractReturnReceiptServer

type GrpcApiContract_DeployContractReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_DeployContractServer

type GrpcApiContract_DeployContractServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_InvokeContractClient

type GrpcApiContract_InvokeContractClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_InvokeContractReturnReceiptClient

type GrpcApiContract_InvokeContractReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_InvokeContractReturnReceiptServer

type GrpcApiContract_InvokeContractReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_InvokeContractServer

type GrpcApiContract_InvokeContractServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_MaintainContractClient

type GrpcApiContract_MaintainContractClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_MaintainContractReturnReceiptClient

type GrpcApiContract_MaintainContractReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_MaintainContractReturnReceiptServer

type GrpcApiContract_MaintainContractReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_MaintainContractServer

type GrpcApiContract_MaintainContractServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_ManageContractByVoteClient

type GrpcApiContract_ManageContractByVoteClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_ManageContractByVoteReturnReceiptClient

type GrpcApiContract_ManageContractByVoteReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiContract_ManageContractByVoteReturnReceiptServer

type GrpcApiContract_ManageContractByVoteReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiContract_ManageContractByVoteServer

type GrpcApiContract_ManageContractByVoteServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiDidClient

type GrpcApiDidClient interface {
	SendDIDTransaction(ctx context.Context, opts ...grpc.CallOption) (GrpcApiDid_SendDIDTransactionClient, error)
	SendDIDTransactionReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiDid_SendDIDTransactionReturnReceiptClient, error)
}

GrpcApiDidClient is the client API for GrpcApiDid service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrpcApiDidClient

func NewGrpcApiDidClient(cc *grpc.ClientConn) GrpcApiDidClient

type GrpcApiDidServer

type GrpcApiDidServer interface {
	SendDIDTransaction(GrpcApiDid_SendDIDTransactionServer) error
	SendDIDTransactionReturnReceipt(GrpcApiDid_SendDIDTransactionReturnReceiptServer) error
}

GrpcApiDidServer is the server API for GrpcApiDid service.

type GrpcApiDid_SendDIDTransactionClient

type GrpcApiDid_SendDIDTransactionClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiDid_SendDIDTransactionReturnReceiptClient

type GrpcApiDid_SendDIDTransactionReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiDid_SendDIDTransactionReturnReceiptServer

type GrpcApiDid_SendDIDTransactionReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiDid_SendDIDTransactionServer

type GrpcApiDid_SendDIDTransactionServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiMQClient

type GrpcApiMQClient interface {
	Register(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
	UnRegister(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
	GetAllQueueNames(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
	Consume(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (GrpcApiMQ_ConsumeClient, error)
	StopConsume(ctx context.Context, in *CommonReq, opts ...grpc.CallOption) (*CommonRes, error)
}

GrpcApiMQClient is the client API for GrpcApiMQ service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrpcApiMQClient

func NewGrpcApiMQClient(cc *grpc.ClientConn) GrpcApiMQClient

type GrpcApiMQServer

type GrpcApiMQServer interface {
	Register(context.Context, *CommonReq) (*CommonRes, error)
	UnRegister(context.Context, *CommonReq) (*CommonRes, error)
	GetAllQueueNames(context.Context, *CommonReq) (*CommonRes, error)
	Consume(*CommonReq, GrpcApiMQ_ConsumeServer) error
	StopConsume(context.Context, *CommonReq) (*CommonRes, error)
}

GrpcApiMQServer is the server API for GrpcApiMQ service.

type GrpcApiMQ_ConsumeClient

type GrpcApiMQ_ConsumeClient interface {
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiMQ_ConsumeServer

type GrpcApiMQ_ConsumeServer interface {
	Send(*CommonRes) error
	grpc.ServerStream
}

type GrpcApiTransactionClient

type GrpcApiTransactionClient interface {
	SendTransaction(ctx context.Context, opts ...grpc.CallOption) (GrpcApiTransaction_SendTransactionClient, error)
	SendTransactionReturnReceipt(ctx context.Context, opts ...grpc.CallOption) (GrpcApiTransaction_SendTransactionReturnReceiptClient, error)
}

GrpcApiTransactionClient is the client API for GrpcApiTransaction service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrpcApiTransactionClient

func NewGrpcApiTransactionClient(cc *grpc.ClientConn) GrpcApiTransactionClient

type GrpcApiTransactionServer

type GrpcApiTransactionServer interface {
	SendTransaction(GrpcApiTransaction_SendTransactionServer) error
	SendTransactionReturnReceipt(GrpcApiTransaction_SendTransactionReturnReceiptServer) error
}

GrpcApiTransactionServer is the server API for GrpcApiTransaction service.

type GrpcApiTransaction_SendTransactionClient

type GrpcApiTransaction_SendTransactionClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiTransaction_SendTransactionReturnReceiptClient

type GrpcApiTransaction_SendTransactionReturnReceiptClient interface {
	Send(*CommonReq) error
	Recv() (*CommonRes, error)
	grpc.ClientStream
}

type GrpcApiTransaction_SendTransactionReturnReceiptServer

type GrpcApiTransaction_SendTransactionReturnReceiptServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type GrpcApiTransaction_SendTransactionServer

type GrpcApiTransaction_SendTransactionServer interface {
	Send(*CommonRes) error
	Recv() (*CommonReq, error)
	grpc.ServerStream
}

type LogTrans

type LogTrans struct {
	Address     string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	Topics      []string `protobuf:"bytes,2,rep,name=Topics,proto3" json:"Topics,omitempty"`
	Data        string   `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	BlockNumber uint64   `protobuf:"varint,4,opt,name=BlockNumber,proto3" json:"BlockNumber,omitempty"`
	BlockHash   string   `protobuf:"bytes,5,opt,name=BlockHash,proto3" json:"BlockHash,omitempty"`
	TxHash      string   `protobuf:"bytes,6,opt,name=TxHash,proto3" json:"TxHash,omitempty"`
	TxIndex     uint64   `protobuf:"varint,7,opt,name=TxIndex,proto3" json:"TxIndex,omitempty"`
	Index       uint64   `protobuf:"varint,8,opt,name=Index,proto3" json:"Index,omitempty"`
}

func (*LogTrans) Descriptor

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

func (*LogTrans) GetAddress

func (m *LogTrans) GetAddress() string

func (*LogTrans) GetBlockHash

func (m *LogTrans) GetBlockHash() string

func (*LogTrans) GetBlockNumber

func (m *LogTrans) GetBlockNumber() uint64

func (*LogTrans) GetData

func (m *LogTrans) GetData() string

func (*LogTrans) GetIndex

func (m *LogTrans) GetIndex() uint64

func (*LogTrans) GetTopics

func (m *LogTrans) GetTopics() []string

func (*LogTrans) GetTxHash

func (m *LogTrans) GetTxHash() string

func (*LogTrans) GetTxIndex

func (m *LogTrans) GetTxIndex() uint64

func (*LogTrans) Marshal

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

func (*LogTrans) MarshalTo

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

func (*LogTrans) MarshalToSizedBuffer

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

func (*LogTrans) ProtoMessage

func (*LogTrans) ProtoMessage()

func (*LogTrans) Reset

func (m *LogTrans) Reset()

func (*LogTrans) Size

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

func (*LogTrans) String

func (m *LogTrans) String() string

func (*LogTrans) Unmarshal

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

func (*LogTrans) XXX_DiscardUnknown

func (m *LogTrans) XXX_DiscardUnknown()

func (*LogTrans) XXX_Marshal

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

func (*LogTrans) XXX_Merge

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

func (*LogTrans) XXX_Size

func (m *LogTrans) XXX_Size() int

func (*LogTrans) XXX_Unmarshal

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

type OracleTrans

type OracleTrans struct {
	URL             string            `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"`
	Method          string            `protobuf:"bytes,2,opt,name=Method,proto3" json:"Method,omitempty"`
	Header          map[string]string `` /* 153-byte string literal not displayed */
	Body            string            `protobuf:"bytes,4,opt,name=Body,proto3" json:"Body,omitempty"`
	TxHash          string            `protobuf:"bytes,5,opt,name=TxHash,proto3" json:"TxHash,omitempty"`
	BizID           string            `protobuf:"bytes,6,opt,name=BizID,proto3" json:"BizID,omitempty"`
	CallBackAddress string            `protobuf:"bytes,7,opt,name=CallBackAddress,proto3" json:"CallBackAddress,omitempty"`
	CallBackMethod  string            `protobuf:"bytes,8,opt,name=CallBackMethod,proto3" json:"CallBackMethod,omitempty"`
	UUID            string            `protobuf:"bytes,9,opt,name=UUID,proto3" json:"UUID,omitempty"`
	ContractAddress string            `protobuf:"bytes,10,opt,name=ContractAddress,proto3" json:"ContractAddress,omitempty"`
}

func (*OracleTrans) Descriptor

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

func (*OracleTrans) GetBizID

func (m *OracleTrans) GetBizID() string

func (*OracleTrans) GetBody

func (m *OracleTrans) GetBody() string

func (*OracleTrans) GetCallBackAddress

func (m *OracleTrans) GetCallBackAddress() string

func (*OracleTrans) GetCallBackMethod

func (m *OracleTrans) GetCallBackMethod() string

func (*OracleTrans) GetContractAddress

func (m *OracleTrans) GetContractAddress() string

func (*OracleTrans) GetHeader

func (m *OracleTrans) GetHeader() map[string]string

func (*OracleTrans) GetMethod

func (m *OracleTrans) GetMethod() string

func (*OracleTrans) GetTxHash

func (m *OracleTrans) GetTxHash() string

func (*OracleTrans) GetURL

func (m *OracleTrans) GetURL() string

func (*OracleTrans) GetUUID

func (m *OracleTrans) GetUUID() string

func (*OracleTrans) Marshal

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

func (*OracleTrans) MarshalTo

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

func (*OracleTrans) MarshalToSizedBuffer

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

func (*OracleTrans) ProtoMessage

func (*OracleTrans) ProtoMessage()

func (*OracleTrans) Reset

func (m *OracleTrans) Reset()

func (*OracleTrans) Size

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

func (*OracleTrans) String

func (m *OracleTrans) String() string

func (*OracleTrans) Unmarshal

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

func (*OracleTrans) XXX_DiscardUnknown

func (m *OracleTrans) XXX_DiscardUnknown()

func (*OracleTrans) XXX_Marshal

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

func (*OracleTrans) XXX_Merge

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

func (*OracleTrans) XXX_Size

func (m *OracleTrans) XXX_Size() int

func (*OracleTrans) XXX_Unmarshal

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

type ReceiptResult

type ReceiptResult struct {
	Version         string         `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	TxHash          string         `protobuf:"bytes,2,opt,name=TxHash,proto3" json:"TxHash,omitempty"`
	VMType          string         `protobuf:"bytes,3,opt,name=VMType,proto3" json:"VMType,omitempty"`
	ContractAddress string         `protobuf:"bytes,4,opt,name=ContractAddress,proto3" json:"ContractAddress,omitempty"`
	ContractName    string         `protobuf:"bytes,5,opt,name=ContractName,proto3" json:"ContractName,omitempty"`
	GasUsed         int64          `protobuf:"varint,6,opt,name=GasUsed,proto3" json:"GasUsed,omitempty"`
	Ret             string         `protobuf:"bytes,7,opt,name=Ret,proto3" json:"Ret,omitempty"`
	Log             []*LogTrans    `protobuf:"bytes,8,rep,name=Log,proto3" json:"Log,omitempty"`
	Valid           bool           `protobuf:"varint,9,opt,name=Valid,proto3" json:"Valid,omitempty"`
	ErrorMsg        string         `protobuf:"bytes,10,opt,name=ErrorMsg,proto3" json:"ErrorMsg,omitempty"`
	Oracles         []*OracleTrans `protobuf:"bytes,11,rep,name=Oracles,proto3" json:"Oracles,omitempty"`
}

func (*ReceiptResult) Descriptor

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

func (*ReceiptResult) GetContractAddress

func (m *ReceiptResult) GetContractAddress() string

func (*ReceiptResult) GetContractName

func (m *ReceiptResult) GetContractName() string

func (*ReceiptResult) GetErrorMsg

func (m *ReceiptResult) GetErrorMsg() string

func (*ReceiptResult) GetGasUsed

func (m *ReceiptResult) GetGasUsed() int64

func (*ReceiptResult) GetLog

func (m *ReceiptResult) GetLog() []*LogTrans

func (*ReceiptResult) GetOracles

func (m *ReceiptResult) GetOracles() []*OracleTrans

func (*ReceiptResult) GetRet

func (m *ReceiptResult) GetRet() string

func (*ReceiptResult) GetTxHash

func (m *ReceiptResult) GetTxHash() string

func (*ReceiptResult) GetVMType

func (m *ReceiptResult) GetVMType() string

func (*ReceiptResult) GetValid

func (m *ReceiptResult) GetValid() bool

func (*ReceiptResult) GetVersion

func (m *ReceiptResult) GetVersion() string

func (*ReceiptResult) Marshal

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

func (*ReceiptResult) MarshalTo

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

func (*ReceiptResult) MarshalToSizedBuffer

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

func (*ReceiptResult) ProtoMessage

func (*ReceiptResult) ProtoMessage()

func (*ReceiptResult) Reset

func (m *ReceiptResult) Reset()

func (*ReceiptResult) Size

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

func (*ReceiptResult) String

func (m *ReceiptResult) String() string

func (*ReceiptResult) Unmarshal

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

func (*ReceiptResult) XXX_DiscardUnknown

func (m *ReceiptResult) XXX_DiscardUnknown()

func (*ReceiptResult) XXX_Marshal

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

func (*ReceiptResult) XXX_Merge

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

func (*ReceiptResult) XXX_Size

func (m *ReceiptResult) XXX_Size() int

func (*ReceiptResult) XXX_Unmarshal

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

type SendTxArgs

type SendTxArgs struct {
	From               string   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                 string   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Value              int64    `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
	Payload            string   `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	Signature          string   `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	Timestamp          int64    `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Simulate           bool     `protobuf:"varint,7,opt,name=simulate,proto3" json:"simulate,omitempty"`
	Nonce              int64    `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Extra              string   `protobuf:"bytes,9,opt,name=extra,proto3" json:"extra,omitempty"`
	VmType             string   `protobuf:"bytes,10,opt,name=vmType,proto3" json:"vmType,omitempty"`
	Opcode             int32    `protobuf:"varint,11,opt,name=opcode,proto3" json:"opcode,omitempty"`
	SnapshotID         string   `protobuf:"bytes,12,opt,name=snapshotID,proto3" json:"snapshotID,omitempty"`
	ExtraIDInt64Array  []int64  `protobuf:"varint,13,rep,packed,name=extraIDInt64Array,proto3" json:"extraIDInt64Array,omitempty"`
	ExtraIDStringArray []string `protobuf:"bytes,14,rep,name=extraIDStringArray,proto3" json:"extraIDStringArray,omitempty"`
	CName              string   `protobuf:"bytes,15,opt,name=cName,proto3" json:"cName,omitempty"`
}

func (*SendTxArgs) Descriptor

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

func (*SendTxArgs) GetCName

func (m *SendTxArgs) GetCName() string

func (*SendTxArgs) GetExtra

func (m *SendTxArgs) GetExtra() string

func (*SendTxArgs) GetExtraIDInt64Array

func (m *SendTxArgs) GetExtraIDInt64Array() []int64

func (*SendTxArgs) GetExtraIDStringArray

func (m *SendTxArgs) GetExtraIDStringArray() []string

func (*SendTxArgs) GetFrom

func (m *SendTxArgs) GetFrom() string

func (*SendTxArgs) GetNonce

func (m *SendTxArgs) GetNonce() int64

func (*SendTxArgs) GetOpcode

func (m *SendTxArgs) GetOpcode() int32

func (*SendTxArgs) GetPayload

func (m *SendTxArgs) GetPayload() string

func (*SendTxArgs) GetSignature

func (m *SendTxArgs) GetSignature() string

func (*SendTxArgs) GetSimulate

func (m *SendTxArgs) GetSimulate() bool

func (*SendTxArgs) GetSnapshotID

func (m *SendTxArgs) GetSnapshotID() string

func (*SendTxArgs) GetTimestamp

func (m *SendTxArgs) GetTimestamp() int64

func (*SendTxArgs) GetTo

func (m *SendTxArgs) GetTo() string

func (*SendTxArgs) GetValue

func (m *SendTxArgs) GetValue() int64

func (*SendTxArgs) GetVmType

func (m *SendTxArgs) GetVmType() string

func (*SendTxArgs) Marshal

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

func (*SendTxArgs) MarshalTo

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

func (*SendTxArgs) MarshalToSizedBuffer

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

func (*SendTxArgs) ProtoMessage

func (*SendTxArgs) ProtoMessage()

func (*SendTxArgs) Reset

func (m *SendTxArgs) Reset()

func (*SendTxArgs) Size

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

func (*SendTxArgs) String

func (m *SendTxArgs) String() string

func (*SendTxArgs) Unmarshal

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

func (*SendTxArgs) XXX_DiscardUnknown

func (m *SendTxArgs) XXX_DiscardUnknown()

func (*SendTxArgs) XXX_Marshal

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

func (*SendTxArgs) XXX_Merge

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

func (*SendTxArgs) XXX_Size

func (m *SendTxArgs) XXX_Size() int

func (*SendTxArgs) XXX_Unmarshal

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

type UnimplementedGrpcApiContractServer

type UnimplementedGrpcApiContractServer struct {
}

UnimplementedGrpcApiContractServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrpcApiContractServer) DeployContract

func (*UnimplementedGrpcApiContractServer) DeployContractReturnReceipt

func (*UnimplementedGrpcApiContractServer) InvokeContract

func (*UnimplementedGrpcApiContractServer) InvokeContractReturnReceipt

func (*UnimplementedGrpcApiContractServer) MaintainContract

func (*UnimplementedGrpcApiContractServer) MaintainContractReturnReceipt

func (*UnimplementedGrpcApiContractServer) ManageContractByVote

func (*UnimplementedGrpcApiContractServer) ManageContractByVoteReturnReceipt

type UnimplementedGrpcApiDidServer

type UnimplementedGrpcApiDidServer struct {
}

UnimplementedGrpcApiDidServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrpcApiDidServer) SendDIDTransaction

func (*UnimplementedGrpcApiDidServer) SendDIDTransactionReturnReceipt

type UnimplementedGrpcApiMQServer

type UnimplementedGrpcApiMQServer struct {
}

UnimplementedGrpcApiMQServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrpcApiMQServer) Consume

func (*UnimplementedGrpcApiMQServer) GetAllQueueNames

func (*UnimplementedGrpcApiMQServer) GetAllQueueNames(ctx context.Context, req *CommonReq) (*CommonRes, error)

func (*UnimplementedGrpcApiMQServer) Register

func (*UnimplementedGrpcApiMQServer) StopConsume

func (*UnimplementedGrpcApiMQServer) UnRegister

type UnimplementedGrpcApiTransactionServer

type UnimplementedGrpcApiTransactionServer struct {
}

UnimplementedGrpcApiTransactionServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrpcApiTransactionServer) SendTransaction

func (*UnimplementedGrpcApiTransactionServer) SendTransactionReturnReceipt

Jump to

Keyboard shortcuts

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