Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBusinessMiddleWireServicesServer(s grpc.ServiceRegistrar, srv BusinessMiddleWireServicesServer)
- type Address
- type BusinessMiddleWireServicesClient
- type BusinessMiddleWireServicesServer
- type BusinessRegisterRequest
- func (*BusinessRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BusinessRegisterRequest) GetConsumerToken() string
- func (x *BusinessRegisterRequest) GetNotifyUrl() string
- func (x *BusinessRegisterRequest) GetRequestId() string
- func (*BusinessRegisterRequest) ProtoMessage()
- func (x *BusinessRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *BusinessRegisterRequest) Reset()
- func (x *BusinessRegisterRequest) String() string
- type BusinessRegisterResponse
- func (*BusinessRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BusinessRegisterResponse) GetCode() ReturnCode
- func (x *BusinessRegisterResponse) GetMsg() string
- func (*BusinessRegisterResponse) ProtoMessage()
- func (x *BusinessRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *BusinessRegisterResponse) Reset()
- func (x *BusinessRegisterResponse) String() string
- type ExportAddressesRequest
- func (*ExportAddressesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportAddressesRequest) GetConsumerToken() string
- func (x *ExportAddressesRequest) GetPublicKeys() []*PublicKey
- func (x *ExportAddressesRequest) GetRequestId() string
- func (*ExportAddressesRequest) ProtoMessage()
- func (x *ExportAddressesRequest) ProtoReflect() protoreflect.Message
- func (x *ExportAddressesRequest) Reset()
- func (x *ExportAddressesRequest) String() string
- type ExportAddressesResponse
- func (*ExportAddressesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportAddressesResponse) GetAddresses() []*Address
- func (x *ExportAddressesResponse) GetCode() ReturnCode
- func (x *ExportAddressesResponse) GetMsg() string
- func (*ExportAddressesResponse) ProtoMessage()
- func (x *ExportAddressesResponse) ProtoReflect() protoreflect.Message
- func (x *ExportAddressesResponse) Reset()
- func (x *ExportAddressesResponse) String() string
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *PublicKey) GetFormat() string
- func (x *PublicKey) GetPublicKey() string
- func (x *PublicKey) GetType() uint32
- func (*PublicKey) ProtoMessage()
- func (x *PublicKey) ProtoReflect() protoreflect.Message
- func (x *PublicKey) Reset()
- func (x *PublicKey) String() string
- type ReturnCode
- type ReturnSignedTransactions
- func (*ReturnSignedTransactions) Descriptor() ([]byte, []int)deprecated
- func (x *ReturnSignedTransactions) GetSignedTx() string
- func (x *ReturnSignedTransactions) GetTransactionUuid() string
- func (x *ReturnSignedTransactions) GetTxId() string
- func (*ReturnSignedTransactions) ProtoMessage()
- func (x *ReturnSignedTransactions) ProtoReflect() protoreflect.Message
- func (x *ReturnSignedTransactions) Reset()
- func (x *ReturnSignedTransactions) String() string
- type ReturnTransactionHashes
- func (*ReturnTransactionHashes) Descriptor() ([]byte, []int)deprecated
- func (x *ReturnTransactionHashes) GetTransactionUuid() string
- func (x *ReturnTransactionHashes) GetTxData() string
- func (x *ReturnTransactionHashes) GetUnSignTx() string
- func (*ReturnTransactionHashes) ProtoMessage()
- func (x *ReturnTransactionHashes) ProtoReflect() protoreflect.Message
- func (x *ReturnTransactionHashes) Reset()
- func (x *ReturnTransactionHashes) String() string
- type SignedTransactions
- func (*SignedTransactions) Descriptor() ([]byte, []int)deprecated
- func (x *SignedTransactions) GetSignature() string
- func (x *SignedTransactions) GetTransactionUuid() string
- func (x *SignedTransactions) GetTxData() string
- func (*SignedTransactions) ProtoMessage()
- func (x *SignedTransactions) ProtoReflect() protoreflect.Message
- func (x *SignedTransactions) Reset()
- func (x *SignedTransactions) String() string
- type SignedWithdrawTransactionRequest
- func (*SignedWithdrawTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignedWithdrawTransactionRequest) GetConsumerToken() string
- func (x *SignedWithdrawTransactionRequest) GetRequestId() string
- func (x *SignedWithdrawTransactionRequest) GetSignTxn() []*SignedTransactions
- func (*SignedWithdrawTransactionRequest) ProtoMessage()
- func (x *SignedWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *SignedWithdrawTransactionRequest) Reset()
- func (x *SignedWithdrawTransactionRequest) String() string
- type SignedWithdrawTransactionResponse
- func (*SignedWithdrawTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignedWithdrawTransactionResponse) GetCode() ReturnCode
- func (x *SignedWithdrawTransactionResponse) GetMsg() string
- func (x *SignedWithdrawTransactionResponse) GetReturnSignTxn() []*ReturnSignedTransactions
- func (*SignedWithdrawTransactionResponse) ProtoMessage()
- func (x *SignedWithdrawTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *SignedWithdrawTransactionResponse) Reset()
- func (x *SignedWithdrawTransactionResponse) String() string
- type SubmitWithdrawRequest
- func (*SubmitWithdrawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitWithdrawRequest) GetConsumerToken() string
- func (x *SubmitWithdrawRequest) GetRequestId() string
- func (x *SubmitWithdrawRequest) GetWithdrawList() []*Withdraw
- func (*SubmitWithdrawRequest) ProtoMessage()
- func (x *SubmitWithdrawRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitWithdrawRequest) Reset()
- func (x *SubmitWithdrawRequest) String() string
- type SubmitWithdrawResponse
- func (*SubmitWithdrawResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitWithdrawResponse) GetCode() ReturnCode
- func (x *SubmitWithdrawResponse) GetMsg() string
- func (*SubmitWithdrawResponse) ProtoMessage()
- func (x *SubmitWithdrawResponse) ProtoReflect() protoreflect.Message
- func (x *SubmitWithdrawResponse) Reset()
- func (x *SubmitWithdrawResponse) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)deprecated
- func (x *Token) GetAddress() string
- func (x *Token) GetColdAmount() string
- func (x *Token) GetCollectAmount() string
- func (x *Token) GetDecimals() uint32
- func (x *Token) GetTokenName() string
- func (*Token) ProtoMessage()
- func (x *Token) ProtoReflect() protoreflect.Message
- func (x *Token) Reset()
- func (x *Token) String() string
- type Transactions
- func (*Transactions) Descriptor() ([]byte, []int)deprecated
- func (x *Transactions) GetFrom() string
- func (x *Transactions) GetTo() string
- func (x *Transactions) GetTransactionUuid() string
- func (x *Transactions) GetTxType() string
- func (x *Transactions) GetValue() string
- func (*Transactions) ProtoMessage()
- func (x *Transactions) ProtoReflect() protoreflect.Message
- func (x *Transactions) Reset()
- func (x *Transactions) String() string
- type UnSignWithdrawTransactionRequest
- func (*UnSignWithdrawTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnSignWithdrawTransactionRequest) GetConsumerToken() string
- func (x *UnSignWithdrawTransactionRequest) GetRequestId() string
- func (x *UnSignWithdrawTransactionRequest) GetTxn() []*Transactions
- func (*UnSignWithdrawTransactionRequest) ProtoMessage()
- func (x *UnSignWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *UnSignWithdrawTransactionRequest) Reset()
- func (x *UnSignWithdrawTransactionRequest) String() string
- type UnSignWithdrawTransactionResponse
- func (*UnSignWithdrawTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnSignWithdrawTransactionResponse) GetCode() ReturnCode
- func (x *UnSignWithdrawTransactionResponse) GetMsg() string
- func (x *UnSignWithdrawTransactionResponse) GetReturnTxHashes() []*ReturnTransactionHashes
- func (*UnSignWithdrawTransactionResponse) ProtoMessage()
- func (x *UnSignWithdrawTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *UnSignWithdrawTransactionResponse) Reset()
- func (x *UnSignWithdrawTransactionResponse) String() string
- type UnimplementedBusinessMiddleWireServicesServer
- func (UnimplementedBusinessMiddleWireServicesServer) BuildSignedTransaction(context.Context, *SignedWithdrawTransactionRequest) (*SignedWithdrawTransactionResponse, error)
- func (UnimplementedBusinessMiddleWireServicesServer) BuildUnSignTransaction(context.Context, *UnSignWithdrawTransactionRequest) (*UnSignWithdrawTransactionResponse, error)
- func (UnimplementedBusinessMiddleWireServicesServer) BusinessRegister(context.Context, *BusinessRegisterRequest) (*BusinessRegisterResponse, error)
- func (UnimplementedBusinessMiddleWireServicesServer) ExportAddressesByPublicKeys(context.Context, *ExportAddressesRequest) (*ExportAddressesResponse, error)
- func (UnimplementedBusinessMiddleWireServicesServer) SubmitWithdraw(context.Context, *SubmitWithdrawRequest) (*SubmitWithdrawResponse, error)
- type UnsafeBusinessMiddleWireServicesServer
- type Withdraw
- func (*Withdraw) Descriptor() ([]byte, []int)deprecated
- func (x *Withdraw) GetAddress() string
- func (x *Withdraw) GetChainId() string
- func (x *Withdraw) GetFee() string
- func (x *Withdraw) GetValue() string
- func (*Withdraw) ProtoMessage()
- func (x *Withdraw) ProtoReflect() protoreflect.Message
- func (x *Withdraw) Reset()
- func (x *Withdraw) String() string
Constants ¶
const ( BusinessMiddleWireServices_BusinessRegister_FullMethodName = "/syncs.BusinessMiddleWireServices/businessRegister" BusinessMiddleWireServices_ExportAddressesByPublicKeys_FullMethodName = "/syncs.BusinessMiddleWireServices/exportAddressesByPublicKeys" BusinessMiddleWireServices_BuildUnSignTransaction_FullMethodName = "/syncs.BusinessMiddleWireServices/buildUnSignTransaction" BusinessMiddleWireServices_BuildSignedTransaction_FullMethodName = "/syncs.BusinessMiddleWireServices/buildSignedTransaction" BusinessMiddleWireServices_SubmitWithdraw_FullMethodName = "/syncs.BusinessMiddleWireServices/submitWithdraw" )
Variables ¶
var ( ReturnCode_name = map[int32]string{ 0: "ERROR", 1: "SUCCESS", } ReturnCode_value = map[string]int32{ "ERROR": 0, "SUCCESS": 1, } )
Enum value maps for ReturnCode.
var BusinessMiddleWireServices_ServiceDesc = grpc.ServiceDesc{ ServiceName: "syncs.BusinessMiddleWireServices", HandlerType: (*BusinessMiddleWireServicesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "businessRegister", Handler: _BusinessMiddleWireServices_BusinessRegister_Handler, }, { MethodName: "exportAddressesByPublicKeys", Handler: _BusinessMiddleWireServices_ExportAddressesByPublicKeys_Handler, }, { MethodName: "buildUnSignTransaction", Handler: _BusinessMiddleWireServices_BuildUnSignTransaction_Handler, }, { MethodName: "buildSignedTransaction", Handler: _BusinessMiddleWireServices_BuildSignedTransaction_Handler, }, { MethodName: "submitWithdraw", Handler: _BusinessMiddleWireServices_SubmitWithdraw_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protobuf/dapplink-wallet.proto", }
BusinessMiddleWireServices_ServiceDesc is the grpc.ServiceDesc for BusinessMiddleWireServices service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_protobuf_dapplink_wallet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBusinessMiddleWireServicesServer ¶
func RegisterBusinessMiddleWireServicesServer(s grpc.ServiceRegistrar, srv BusinessMiddleWireServicesServer)
Types ¶
type Address ¶
type Address struct {
Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type BusinessMiddleWireServicesClient ¶
type BusinessMiddleWireServicesClient interface {
BusinessRegister(ctx context.Context, in *BusinessRegisterRequest, opts ...grpc.CallOption) (*BusinessRegisterResponse, error)
ExportAddressesByPublicKeys(ctx context.Context, in *ExportAddressesRequest, opts ...grpc.CallOption) (*ExportAddressesResponse, error)
BuildUnSignTransaction(ctx context.Context, in *UnSignWithdrawTransactionRequest, opts ...grpc.CallOption) (*UnSignWithdrawTransactionResponse, error)
BuildSignedTransaction(ctx context.Context, in *SignedWithdrawTransactionRequest, opts ...grpc.CallOption) (*SignedWithdrawTransactionResponse, error)
// --提交提现交易--
SubmitWithdraw(ctx context.Context, in *SubmitWithdrawRequest, opts ...grpc.CallOption) (*SubmitWithdrawResponse, error)
}
BusinessMiddleWireServicesClient is the client API for BusinessMiddleWireServices 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 NewBusinessMiddleWireServicesClient ¶
func NewBusinessMiddleWireServicesClient(cc grpc.ClientConnInterface) BusinessMiddleWireServicesClient
type BusinessMiddleWireServicesServer ¶
type BusinessMiddleWireServicesServer interface {
BusinessRegister(context.Context, *BusinessRegisterRequest) (*BusinessRegisterResponse, error)
ExportAddressesByPublicKeys(context.Context, *ExportAddressesRequest) (*ExportAddressesResponse, error)
BuildUnSignTransaction(context.Context, *UnSignWithdrawTransactionRequest) (*UnSignWithdrawTransactionResponse, error)
BuildSignedTransaction(context.Context, *SignedWithdrawTransactionRequest) (*SignedWithdrawTransactionResponse, error)
// --提交提现交易--
SubmitWithdraw(context.Context, *SubmitWithdrawRequest) (*SubmitWithdrawResponse, error)
}
BusinessMiddleWireServicesServer is the server API for BusinessMiddleWireServices service. All implementations should embed UnimplementedBusinessMiddleWireServicesServer for forward compatibility
type BusinessRegisterRequest ¶
type BusinessRegisterRequest struct {
ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
NotifyUrl string `protobuf:"bytes,3,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"`
// contains filtered or unexported fields
}
func (*BusinessRegisterRequest) Descriptor
deprecated
func (*BusinessRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use BusinessRegisterRequest.ProtoReflect.Descriptor instead.
func (*BusinessRegisterRequest) GetConsumerToken ¶
func (x *BusinessRegisterRequest) GetConsumerToken() string
func (*BusinessRegisterRequest) GetNotifyUrl ¶
func (x *BusinessRegisterRequest) GetNotifyUrl() string
func (*BusinessRegisterRequest) GetRequestId ¶
func (x *BusinessRegisterRequest) GetRequestId() string
func (*BusinessRegisterRequest) ProtoMessage ¶
func (*BusinessRegisterRequest) ProtoMessage()
func (*BusinessRegisterRequest) ProtoReflect ¶
func (x *BusinessRegisterRequest) ProtoReflect() protoreflect.Message
func (*BusinessRegisterRequest) Reset ¶
func (x *BusinessRegisterRequest) Reset()
func (*BusinessRegisterRequest) String ¶
func (x *BusinessRegisterRequest) String() string
type BusinessRegisterResponse ¶
type BusinessRegisterResponse struct {
Code ReturnCode `protobuf:"varint,1,opt,name=Code,proto3,enum=syncs.ReturnCode" json:"Code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"`
// contains filtered or unexported fields
}
func (*BusinessRegisterResponse) Descriptor
deprecated
func (*BusinessRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use BusinessRegisterResponse.ProtoReflect.Descriptor instead.
func (*BusinessRegisterResponse) GetCode ¶
func (x *BusinessRegisterResponse) GetCode() ReturnCode
func (*BusinessRegisterResponse) GetMsg ¶
func (x *BusinessRegisterResponse) GetMsg() string
func (*BusinessRegisterResponse) ProtoMessage ¶
func (*BusinessRegisterResponse) ProtoMessage()
func (*BusinessRegisterResponse) ProtoReflect ¶
func (x *BusinessRegisterResponse) ProtoReflect() protoreflect.Message
func (*BusinessRegisterResponse) Reset ¶
func (x *BusinessRegisterResponse) Reset()
func (*BusinessRegisterResponse) String ¶
func (x *BusinessRegisterResponse) String() string
type ExportAddressesRequest ¶
type ExportAddressesRequest struct {
ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
PublicKeys []*PublicKey `protobuf:"bytes,3,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
// contains filtered or unexported fields
}
func (*ExportAddressesRequest) Descriptor
deprecated
func (*ExportAddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportAddressesRequest.ProtoReflect.Descriptor instead.
func (*ExportAddressesRequest) GetConsumerToken ¶
func (x *ExportAddressesRequest) GetConsumerToken() string
func (*ExportAddressesRequest) GetPublicKeys ¶
func (x *ExportAddressesRequest) GetPublicKeys() []*PublicKey
func (*ExportAddressesRequest) GetRequestId ¶
func (x *ExportAddressesRequest) GetRequestId() string
func (*ExportAddressesRequest) ProtoMessage ¶
func (*ExportAddressesRequest) ProtoMessage()
func (*ExportAddressesRequest) ProtoReflect ¶
func (x *ExportAddressesRequest) ProtoReflect() protoreflect.Message
func (*ExportAddressesRequest) Reset ¶
func (x *ExportAddressesRequest) Reset()
func (*ExportAddressesRequest) String ¶
func (x *ExportAddressesRequest) String() string
type ExportAddressesResponse ¶
type ExportAddressesResponse struct {
Code ReturnCode `protobuf:"varint,1,opt,name=Code,proto3,enum=syncs.ReturnCode" json:"Code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Addresses []*Address `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"`
// contains filtered or unexported fields
}
func (*ExportAddressesResponse) Descriptor
deprecated
func (*ExportAddressesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportAddressesResponse.ProtoReflect.Descriptor instead.
func (*ExportAddressesResponse) GetAddresses ¶
func (x *ExportAddressesResponse) GetAddresses() []*Address
func (*ExportAddressesResponse) GetCode ¶
func (x *ExportAddressesResponse) GetCode() ReturnCode
func (*ExportAddressesResponse) GetMsg ¶
func (x *ExportAddressesResponse) GetMsg() string
func (*ExportAddressesResponse) ProtoMessage ¶
func (*ExportAddressesResponse) ProtoMessage()
func (*ExportAddressesResponse) ProtoReflect ¶
func (x *ExportAddressesResponse) ProtoReflect() protoreflect.Message
func (*ExportAddressesResponse) Reset ¶
func (x *ExportAddressesResponse) Reset()
func (*ExportAddressesResponse) String ¶
func (x *ExportAddressesResponse) String() string
type PublicKey ¶
type PublicKey struct {
Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// contains filtered or unexported fields
}
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) GetPublicKey ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
type ReturnCode ¶
type ReturnCode int32
const ( ReturnCode_ERROR ReturnCode = 0 ReturnCode_SUCCESS ReturnCode = 1 )
func (ReturnCode) Descriptor ¶
func (ReturnCode) Descriptor() protoreflect.EnumDescriptor
func (ReturnCode) Enum ¶
func (x ReturnCode) Enum() *ReturnCode
func (ReturnCode) EnumDescriptor
deprecated
func (ReturnCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReturnCode.Descriptor instead.
func (ReturnCode) Number ¶
func (x ReturnCode) Number() protoreflect.EnumNumber
func (ReturnCode) String ¶
func (x ReturnCode) String() string
func (ReturnCode) Type ¶
func (ReturnCode) Type() protoreflect.EnumType
type ReturnSignedTransactions ¶
type ReturnSignedTransactions struct {
TransactionUuid string `protobuf:"bytes,1,opt,name=transaction_uuid,json=transactionUuid,proto3" json:"transaction_uuid,omitempty"`
SignedTx string `protobuf:"bytes,2,opt,name=signed_tx,json=signedTx,proto3" json:"signed_tx,omitempty"`
TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
// contains filtered or unexported fields
}
func (*ReturnSignedTransactions) Descriptor
deprecated
func (*ReturnSignedTransactions) Descriptor() ([]byte, []int)
Deprecated: Use ReturnSignedTransactions.ProtoReflect.Descriptor instead.
func (*ReturnSignedTransactions) GetSignedTx ¶
func (x *ReturnSignedTransactions) GetSignedTx() string
func (*ReturnSignedTransactions) GetTransactionUuid ¶
func (x *ReturnSignedTransactions) GetTransactionUuid() string
func (*ReturnSignedTransactions) GetTxId ¶
func (x *ReturnSignedTransactions) GetTxId() string
func (*ReturnSignedTransactions) ProtoMessage ¶
func (*ReturnSignedTransactions) ProtoMessage()
func (*ReturnSignedTransactions) ProtoReflect ¶
func (x *ReturnSignedTransactions) ProtoReflect() protoreflect.Message
func (*ReturnSignedTransactions) Reset ¶
func (x *ReturnSignedTransactions) Reset()
func (*ReturnSignedTransactions) String ¶
func (x *ReturnSignedTransactions) String() string
type ReturnTransactionHashes ¶
type ReturnTransactionHashes struct {
TransactionUuid string `protobuf:"bytes,1,opt,name=transaction_uuid,json=transactionUuid,proto3" json:"transaction_uuid,omitempty"`
UnSignTx string `protobuf:"bytes,2,opt,name=un_sign_tx,json=unSignTx,proto3" json:"un_sign_tx,omitempty"`
TxData string `protobuf:"bytes,3,opt,name=tx_data,json=txData,proto3" json:"tx_data,omitempty"`
// contains filtered or unexported fields
}
func (*ReturnTransactionHashes) Descriptor
deprecated
func (*ReturnTransactionHashes) Descriptor() ([]byte, []int)
Deprecated: Use ReturnTransactionHashes.ProtoReflect.Descriptor instead.
func (*ReturnTransactionHashes) GetTransactionUuid ¶
func (x *ReturnTransactionHashes) GetTransactionUuid() string
func (*ReturnTransactionHashes) GetTxData ¶
func (x *ReturnTransactionHashes) GetTxData() string
func (*ReturnTransactionHashes) GetUnSignTx ¶
func (x *ReturnTransactionHashes) GetUnSignTx() string
func (*ReturnTransactionHashes) ProtoMessage ¶
func (*ReturnTransactionHashes) ProtoMessage()
func (*ReturnTransactionHashes) ProtoReflect ¶
func (x *ReturnTransactionHashes) ProtoReflect() protoreflect.Message
func (*ReturnTransactionHashes) Reset ¶
func (x *ReturnTransactionHashes) Reset()
func (*ReturnTransactionHashes) String ¶
func (x *ReturnTransactionHashes) String() string
type SignedTransactions ¶
type SignedTransactions struct {
TransactionUuid string `protobuf:"bytes,1,opt,name=transaction_uuid,json=transactionUuid,proto3" json:"transaction_uuid,omitempty"`
Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
TxData string `protobuf:"bytes,3,opt,name=tx_data,json=txData,proto3" json:"tx_data,omitempty"`
// contains filtered or unexported fields
}
func (*SignedTransactions) Descriptor
deprecated
func (*SignedTransactions) Descriptor() ([]byte, []int)
Deprecated: Use SignedTransactions.ProtoReflect.Descriptor instead.
func (*SignedTransactions) GetSignature ¶
func (x *SignedTransactions) GetSignature() string
func (*SignedTransactions) GetTransactionUuid ¶
func (x *SignedTransactions) GetTransactionUuid() string
func (*SignedTransactions) GetTxData ¶
func (x *SignedTransactions) GetTxData() string
func (*SignedTransactions) ProtoMessage ¶
func (*SignedTransactions) ProtoMessage()
func (*SignedTransactions) ProtoReflect ¶
func (x *SignedTransactions) ProtoReflect() protoreflect.Message
func (*SignedTransactions) Reset ¶
func (x *SignedTransactions) Reset()
func (*SignedTransactions) String ¶
func (x *SignedTransactions) String() string
type SignedWithdrawTransactionRequest ¶
type SignedWithdrawTransactionRequest struct {
ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
SignTxn []*SignedTransactions `protobuf:"bytes,3,rep,name=sign_txn,json=signTxn,proto3" json:"sign_txn,omitempty"`
// contains filtered or unexported fields
}
func (*SignedWithdrawTransactionRequest) Descriptor
deprecated
func (*SignedWithdrawTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignedWithdrawTransactionRequest.ProtoReflect.Descriptor instead.
func (*SignedWithdrawTransactionRequest) GetConsumerToken ¶
func (x *SignedWithdrawTransactionRequest) GetConsumerToken() string
func (*SignedWithdrawTransactionRequest) GetRequestId ¶
func (x *SignedWithdrawTransactionRequest) GetRequestId() string
func (*SignedWithdrawTransactionRequest) GetSignTxn ¶
func (x *SignedWithdrawTransactionRequest) GetSignTxn() []*SignedTransactions
func (*SignedWithdrawTransactionRequest) ProtoMessage ¶
func (*SignedWithdrawTransactionRequest) ProtoMessage()
func (*SignedWithdrawTransactionRequest) ProtoReflect ¶
func (x *SignedWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
func (*SignedWithdrawTransactionRequest) Reset ¶
func (x *SignedWithdrawTransactionRequest) Reset()
func (*SignedWithdrawTransactionRequest) String ¶
func (x *SignedWithdrawTransactionRequest) String() string
type SignedWithdrawTransactionResponse ¶
type SignedWithdrawTransactionResponse struct {
Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=syncs.ReturnCode" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
ReturnSignTxn []*ReturnSignedTransactions `protobuf:"bytes,3,rep,name=return_sign_txn,json=returnSignTxn,proto3" json:"return_sign_txn,omitempty"`
// contains filtered or unexported fields
}
func (*SignedWithdrawTransactionResponse) Descriptor
deprecated
func (*SignedWithdrawTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignedWithdrawTransactionResponse.ProtoReflect.Descriptor instead.
func (*SignedWithdrawTransactionResponse) GetCode ¶
func (x *SignedWithdrawTransactionResponse) GetCode() ReturnCode
func (*SignedWithdrawTransactionResponse) GetMsg ¶
func (x *SignedWithdrawTransactionResponse) GetMsg() string
func (*SignedWithdrawTransactionResponse) GetReturnSignTxn ¶
func (x *SignedWithdrawTransactionResponse) GetReturnSignTxn() []*ReturnSignedTransactions
func (*SignedWithdrawTransactionResponse) ProtoMessage ¶
func (*SignedWithdrawTransactionResponse) ProtoMessage()
func (*SignedWithdrawTransactionResponse) ProtoReflect ¶
func (x *SignedWithdrawTransactionResponse) ProtoReflect() protoreflect.Message
func (*SignedWithdrawTransactionResponse) Reset ¶
func (x *SignedWithdrawTransactionResponse) Reset()
func (*SignedWithdrawTransactionResponse) String ¶
func (x *SignedWithdrawTransactionResponse) String() string
type SubmitWithdrawRequest ¶
type SubmitWithdrawRequest struct {
ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
WithdrawList []*Withdraw `protobuf:"bytes,3,rep,name=withdraw_list,json=withdrawList,proto3" json:"withdraw_list,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitWithdrawRequest) Descriptor
deprecated
func (*SubmitWithdrawRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitWithdrawRequest.ProtoReflect.Descriptor instead.
func (*SubmitWithdrawRequest) GetConsumerToken ¶
func (x *SubmitWithdrawRequest) GetConsumerToken() string
func (*SubmitWithdrawRequest) GetRequestId ¶
func (x *SubmitWithdrawRequest) GetRequestId() string
func (*SubmitWithdrawRequest) GetWithdrawList ¶
func (x *SubmitWithdrawRequest) GetWithdrawList() []*Withdraw
func (*SubmitWithdrawRequest) ProtoMessage ¶
func (*SubmitWithdrawRequest) ProtoMessage()
func (*SubmitWithdrawRequest) ProtoReflect ¶
func (x *SubmitWithdrawRequest) ProtoReflect() protoreflect.Message
func (*SubmitWithdrawRequest) Reset ¶
func (x *SubmitWithdrawRequest) Reset()
func (*SubmitWithdrawRequest) String ¶
func (x *SubmitWithdrawRequest) String() string
type SubmitWithdrawResponse ¶
type SubmitWithdrawResponse struct {
Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=syncs.ReturnCode" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*SubmitWithdrawResponse) Descriptor
deprecated
func (*SubmitWithdrawResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubmitWithdrawResponse.ProtoReflect.Descriptor instead.
func (*SubmitWithdrawResponse) GetCode ¶
func (x *SubmitWithdrawResponse) GetCode() ReturnCode
func (*SubmitWithdrawResponse) GetMsg ¶
func (x *SubmitWithdrawResponse) GetMsg() string
func (*SubmitWithdrawResponse) ProtoMessage ¶
func (*SubmitWithdrawResponse) ProtoMessage()
func (*SubmitWithdrawResponse) ProtoReflect ¶
func (x *SubmitWithdrawResponse) ProtoReflect() protoreflect.Message
func (*SubmitWithdrawResponse) Reset ¶
func (x *SubmitWithdrawResponse) Reset()
func (*SubmitWithdrawResponse) String ¶
func (x *SubmitWithdrawResponse) String() string
type Token ¶
type Token struct {
Decimals uint32 `protobuf:"varint,1,opt,name=decimals,proto3" json:"decimals,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
TokenName string `protobuf:"bytes,3,opt,name=token_name,json=tokenName,proto3" json:"token_name,omitempty"`
CollectAmount string `protobuf:"bytes,4,opt,name=collect_amount,json=collectAmount,proto3" json:"collect_amount,omitempty"`
ColdAmount string `protobuf:"bytes,5,opt,name=cold_amount,json=coldAmount,proto3" json:"cold_amount,omitempty"`
// contains filtered or unexported fields
}
func (*Token) Descriptor
deprecated
func (*Token) GetAddress ¶
func (*Token) GetColdAmount ¶
func (*Token) GetCollectAmount ¶
func (*Token) GetDecimals ¶
func (*Token) GetTokenName ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type Transactions ¶
type Transactions struct {
TransactionUuid string `protobuf:"bytes,1,opt,name=transaction_uuid,json=transactionUuid,proto3" json:"transaction_uuid,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
TxType string `protobuf:"bytes,5,opt,name=tx_type,json=txType,proto3" json:"tx_type,omitempty"`
// contains filtered or unexported fields
}
func (*Transactions) Descriptor
deprecated
func (*Transactions) Descriptor() ([]byte, []int)
Deprecated: Use Transactions.ProtoReflect.Descriptor instead.
func (*Transactions) GetFrom ¶
func (x *Transactions) GetFrom() string
func (*Transactions) GetTo ¶
func (x *Transactions) GetTo() string
func (*Transactions) GetTransactionUuid ¶
func (x *Transactions) GetTransactionUuid() string
func (*Transactions) GetTxType ¶
func (x *Transactions) GetTxType() string
func (*Transactions) GetValue ¶
func (x *Transactions) GetValue() string
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) ProtoReflect ¶
func (x *Transactions) ProtoReflect() protoreflect.Message
func (*Transactions) Reset ¶
func (x *Transactions) Reset()
func (*Transactions) String ¶
func (x *Transactions) String() string
type UnSignWithdrawTransactionRequest ¶
type UnSignWithdrawTransactionRequest struct {
ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"`
RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
Txn []*Transactions `protobuf:"bytes,3,rep,name=txn,proto3" json:"txn,omitempty"`
// contains filtered or unexported fields
}
func (*UnSignWithdrawTransactionRequest) Descriptor
deprecated
func (*UnSignWithdrawTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnSignWithdrawTransactionRequest.ProtoReflect.Descriptor instead.
func (*UnSignWithdrawTransactionRequest) GetConsumerToken ¶
func (x *UnSignWithdrawTransactionRequest) GetConsumerToken() string
func (*UnSignWithdrawTransactionRequest) GetRequestId ¶
func (x *UnSignWithdrawTransactionRequest) GetRequestId() string
func (*UnSignWithdrawTransactionRequest) GetTxn ¶
func (x *UnSignWithdrawTransactionRequest) GetTxn() []*Transactions
func (*UnSignWithdrawTransactionRequest) ProtoMessage ¶
func (*UnSignWithdrawTransactionRequest) ProtoMessage()
func (*UnSignWithdrawTransactionRequest) ProtoReflect ¶
func (x *UnSignWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
func (*UnSignWithdrawTransactionRequest) Reset ¶
func (x *UnSignWithdrawTransactionRequest) Reset()
func (*UnSignWithdrawTransactionRequest) String ¶
func (x *UnSignWithdrawTransactionRequest) String() string
type UnSignWithdrawTransactionResponse ¶
type UnSignWithdrawTransactionResponse struct {
Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=syncs.ReturnCode" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
ReturnTxHashes []*ReturnTransactionHashes `protobuf:"bytes,3,rep,name=return_tx_hashes,json=returnTxHashes,proto3" json:"return_tx_hashes,omitempty"`
// contains filtered or unexported fields
}
func (*UnSignWithdrawTransactionResponse) Descriptor
deprecated
func (*UnSignWithdrawTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnSignWithdrawTransactionResponse.ProtoReflect.Descriptor instead.
func (*UnSignWithdrawTransactionResponse) GetCode ¶
func (x *UnSignWithdrawTransactionResponse) GetCode() ReturnCode
func (*UnSignWithdrawTransactionResponse) GetMsg ¶
func (x *UnSignWithdrawTransactionResponse) GetMsg() string
func (*UnSignWithdrawTransactionResponse) GetReturnTxHashes ¶
func (x *UnSignWithdrawTransactionResponse) GetReturnTxHashes() []*ReturnTransactionHashes
func (*UnSignWithdrawTransactionResponse) ProtoMessage ¶
func (*UnSignWithdrawTransactionResponse) ProtoMessage()
func (*UnSignWithdrawTransactionResponse) ProtoReflect ¶
func (x *UnSignWithdrawTransactionResponse) ProtoReflect() protoreflect.Message
func (*UnSignWithdrawTransactionResponse) Reset ¶
func (x *UnSignWithdrawTransactionResponse) Reset()
func (*UnSignWithdrawTransactionResponse) String ¶
func (x *UnSignWithdrawTransactionResponse) String() string
type UnimplementedBusinessMiddleWireServicesServer ¶
type UnimplementedBusinessMiddleWireServicesServer struct {
}
UnimplementedBusinessMiddleWireServicesServer should be embedded to have forward compatible implementations.
func (UnimplementedBusinessMiddleWireServicesServer) BuildSignedTransaction ¶
func (UnimplementedBusinessMiddleWireServicesServer) BuildSignedTransaction(context.Context, *SignedWithdrawTransactionRequest) (*SignedWithdrawTransactionResponse, error)
func (UnimplementedBusinessMiddleWireServicesServer) BuildUnSignTransaction ¶
func (UnimplementedBusinessMiddleWireServicesServer) BuildUnSignTransaction(context.Context, *UnSignWithdrawTransactionRequest) (*UnSignWithdrawTransactionResponse, error)
func (UnimplementedBusinessMiddleWireServicesServer) BusinessRegister ¶
func (UnimplementedBusinessMiddleWireServicesServer) BusinessRegister(context.Context, *BusinessRegisterRequest) (*BusinessRegisterResponse, error)
func (UnimplementedBusinessMiddleWireServicesServer) ExportAddressesByPublicKeys ¶
func (UnimplementedBusinessMiddleWireServicesServer) ExportAddressesByPublicKeys(context.Context, *ExportAddressesRequest) (*ExportAddressesResponse, error)
func (UnimplementedBusinessMiddleWireServicesServer) SubmitWithdraw ¶
func (UnimplementedBusinessMiddleWireServicesServer) SubmitWithdraw(context.Context, *SubmitWithdrawRequest) (*SubmitWithdrawResponse, error)
type UnsafeBusinessMiddleWireServicesServer ¶
type UnsafeBusinessMiddleWireServicesServer interface {
// contains filtered or unexported methods
}
UnsafeBusinessMiddleWireServicesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BusinessMiddleWireServicesServer will result in compilation errors.
type Withdraw ¶
type Withdraw struct {
ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Fee string `protobuf:"bytes,4,opt,name=fee,proto3" json:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*Withdraw) Descriptor
deprecated
func (*Withdraw) GetAddress ¶
func (*Withdraw) GetChainId ¶
func (*Withdraw) ProtoMessage ¶
func (*Withdraw) ProtoMessage()
func (*Withdraw) ProtoReflect ¶
func (x *Withdraw) ProtoReflect() protoreflect.Message