Documentation ¶
Overview ¶
Package dcrticketmatcher is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
TxOut OutPoint WatchWaitingListRequest WatchWaitingListResponse FindMatchesRequest FindMatchesResponse GenerateTicketRequest GenerateTicketResponse FundTicketRequest FundTicketResponse FundSplitTxRequest FundSplitTxResponse StatusRequest StatusResponse BuyerErrorRequest BuyerErrorResponse
Index ¶
- func RegisterSplitTicketMatcherServiceServer(s *grpc.Server, srv SplitTicketMatcherServiceServer)
- type BuyerErrorRequest
- type BuyerErrorResponse
- type FindMatchesRequest
- func (*FindMatchesRequest) Descriptor() ([]byte, []int)
- func (m *FindMatchesRequest) GetAmount() uint64
- func (m *FindMatchesRequest) GetPoolAddress() string
- func (m *FindMatchesRequest) GetProtocolVersion() uint32
- func (m *FindMatchesRequest) GetSessionName() string
- func (m *FindMatchesRequest) GetVoteAddress() string
- func (*FindMatchesRequest) ProtoMessage()
- func (m *FindMatchesRequest) Reset()
- func (m *FindMatchesRequest) String() string
- type FindMatchesResponse
- func (*FindMatchesResponse) Descriptor() ([]byte, []int)
- func (m *FindMatchesResponse) GetAmount() uint64
- func (m *FindMatchesResponse) GetFee() uint64
- func (m *FindMatchesResponse) GetMainchainHash() []byte
- func (m *FindMatchesResponse) GetMainchainHeight() uint32
- func (m *FindMatchesResponse) GetNbParticipants() uint32
- func (m *FindMatchesResponse) GetPoolFee() uint64
- func (m *FindMatchesResponse) GetSessionId() uint32
- func (m *FindMatchesResponse) GetSessionToken() []byte
- func (m *FindMatchesResponse) GetTicketPrice() uint64
- func (*FindMatchesResponse) ProtoMessage()
- func (m *FindMatchesResponse) Reset()
- func (m *FindMatchesResponse) String() string
- type FundSplitTxRequest
- func (*FundSplitTxRequest) Descriptor() ([]byte, []int)
- func (m *FundSplitTxRequest) GetSecretnb() []byte
- func (m *FundSplitTxRequest) GetSessionId() uint32
- func (m *FundSplitTxRequest) GetSessionToken() []byte
- func (m *FundSplitTxRequest) GetSplitTxScriptsigs() [][]byte
- func (*FundSplitTxRequest) ProtoMessage()
- func (m *FundSplitTxRequest) Reset()
- func (m *FundSplitTxRequest) String() string
- type FundSplitTxResponse
- type FundTicketRequest
- func (*FundTicketRequest) Descriptor() ([]byte, []int)
- func (m *FundTicketRequest) GetRevocationScriptSig() []byte
- func (m *FundTicketRequest) GetSessionId() uint32
- func (m *FundTicketRequest) GetSessionToken() []byte
- func (m *FundTicketRequest) GetTickets() []*FundTicketRequest_FundedParticipantTicket
- func (*FundTicketRequest) ProtoMessage()
- func (m *FundTicketRequest) Reset()
- func (m *FundTicketRequest) String() string
- type FundTicketRequest_FundedParticipantTicket
- func (*FundTicketRequest_FundedParticipantTicket) Descriptor() ([]byte, []int)
- func (m *FundTicketRequest_FundedParticipantTicket) GetTicketInputScriptsig() []byte
- func (*FundTicketRequest_FundedParticipantTicket) ProtoMessage()
- func (m *FundTicketRequest_FundedParticipantTicket) Reset()
- func (m *FundTicketRequest_FundedParticipantTicket) String() string
- type FundTicketResponse
- type FundTicketResponse_FundedParticipantTicket
- func (*FundTicketResponse_FundedParticipantTicket) Descriptor() ([]byte, []int)
- func (m *FundTicketResponse_FundedParticipantTicket) GetRevocation() []byte
- func (m *FundTicketResponse_FundedParticipantTicket) GetTicket() []byte
- func (*FundTicketResponse_FundedParticipantTicket) ProtoMessage()
- func (m *FundTicketResponse_FundedParticipantTicket) Reset()
- func (m *FundTicketResponse_FundedParticipantTicket) String() string
- type GenerateTicketRequest
- func (*GenerateTicketRequest) Descriptor() ([]byte, []int)
- func (m *GenerateTicketRequest) GetCommitmentAddress() string
- func (m *GenerateTicketRequest) GetSecretnbHash() []byte
- func (m *GenerateTicketRequest) GetSessionId() uint32
- func (m *GenerateTicketRequest) GetSessionToken() []byte
- func (m *GenerateTicketRequest) GetSplitTxAddress() string
- func (m *GenerateTicketRequest) GetSplitTxChange() *TxOut
- func (m *GenerateTicketRequest) GetSplitTxInputs() []*OutPoint
- func (*GenerateTicketRequest) ProtoMessage()
- func (m *GenerateTicketRequest) Reset()
- func (m *GenerateTicketRequest) String() string
- type GenerateTicketResponse
- func (*GenerateTicketResponse) Descriptor() ([]byte, []int)
- func (m *GenerateTicketResponse) GetIndex() uint32
- func (m *GenerateTicketResponse) GetParticipants() []*GenerateTicketResponse_Participant
- func (m *GenerateTicketResponse) GetSplitTx() []byte
- func (m *GenerateTicketResponse) GetTicketTemplate() []byte
- func (*GenerateTicketResponse) ProtoMessage()
- func (m *GenerateTicketResponse) Reset()
- func (m *GenerateTicketResponse) String() string
- type GenerateTicketResponse_Participant
- func (*GenerateTicketResponse_Participant) Descriptor() ([]byte, []int)
- func (m *GenerateTicketResponse_Participant) GetAmount() uint64
- func (m *GenerateTicketResponse_Participant) GetPoolPkScript() []byte
- func (m *GenerateTicketResponse_Participant) GetSecretnbHash() []byte
- func (m *GenerateTicketResponse_Participant) GetVotePkScript() []byte
- func (*GenerateTicketResponse_Participant) ProtoMessage()
- func (m *GenerateTicketResponse_Participant) Reset()
- func (m *GenerateTicketResponse_Participant) String() string
- type OutPoint
- type SplitTicketMatcherServiceClient
- type SplitTicketMatcherServiceServer
- type SplitTicketMatcherService_WatchWaitingListClient
- type SplitTicketMatcherService_WatchWaitingListServer
- type StatusRequest
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)
- func (m *StatusResponse) GetMainchainHash() []byte
- func (m *StatusResponse) GetProtocolVersion() uint32
- func (m *StatusResponse) GetTicketPrice() uint64
- func (*StatusResponse) ProtoMessage()
- func (m *StatusResponse) Reset()
- func (m *StatusResponse) String() string
- type TxOut
- type WatchWaitingListRequest
- type WatchWaitingListResponse
- type WatchWaitingListResponse_Queue
- func (*WatchWaitingListResponse_Queue) Descriptor() ([]byte, []int)
- func (m *WatchWaitingListResponse_Queue) GetAmounts() []uint64
- func (m *WatchWaitingListResponse_Queue) GetName() string
- func (*WatchWaitingListResponse_Queue) ProtoMessage()
- func (m *WatchWaitingListResponse_Queue) Reset()
- func (m *WatchWaitingListResponse_Queue) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSplitTicketMatcherServiceServer ¶
func RegisterSplitTicketMatcherServiceServer(s *grpc.Server, srv SplitTicketMatcherServiceServer)
Types ¶
type BuyerErrorRequest ¶ added in v0.7.0
type BuyerErrorRequest struct { SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` ErrorMsg string `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg" json:"error_msg,omitempty"` }
func (*BuyerErrorRequest) Descriptor ¶ added in v0.7.0
func (*BuyerErrorRequest) Descriptor() ([]byte, []int)
func (*BuyerErrorRequest) GetErrorMsg ¶ added in v0.7.0
func (m *BuyerErrorRequest) GetErrorMsg() string
func (*BuyerErrorRequest) GetSessionId ¶ added in v0.7.0
func (m *BuyerErrorRequest) GetSessionId() uint32
func (*BuyerErrorRequest) ProtoMessage ¶ added in v0.7.0
func (*BuyerErrorRequest) ProtoMessage()
func (*BuyerErrorRequest) Reset ¶ added in v0.7.0
func (m *BuyerErrorRequest) Reset()
func (*BuyerErrorRequest) String ¶ added in v0.7.0
func (m *BuyerErrorRequest) String() string
type BuyerErrorResponse ¶ added in v0.7.0
type BuyerErrorResponse struct { }
func (*BuyerErrorResponse) Descriptor ¶ added in v0.7.0
func (*BuyerErrorResponse) Descriptor() ([]byte, []int)
func (*BuyerErrorResponse) ProtoMessage ¶ added in v0.7.0
func (*BuyerErrorResponse) ProtoMessage()
func (*BuyerErrorResponse) Reset ¶ added in v0.7.0
func (m *BuyerErrorResponse) Reset()
func (*BuyerErrorResponse) String ¶ added in v0.7.0
func (m *BuyerErrorResponse) String() string
type FindMatchesRequest ¶
type FindMatchesRequest struct { ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` SessionName string `protobuf:"bytes,3,opt,name=session_name,json=sessionName" json:"session_name,omitempty"` VoteAddress string `protobuf:"bytes,4,opt,name=vote_address,json=voteAddress" json:"vote_address,omitempty"` PoolAddress string `protobuf:"bytes,5,opt,name=pool_address,json=poolAddress" json:"pool_address,omitempty"` }
func (*FindMatchesRequest) Descriptor ¶
func (*FindMatchesRequest) Descriptor() ([]byte, []int)
func (*FindMatchesRequest) GetAmount ¶
func (m *FindMatchesRequest) GetAmount() uint64
func (*FindMatchesRequest) GetPoolAddress ¶ added in v0.5.1
func (m *FindMatchesRequest) GetPoolAddress() string
func (*FindMatchesRequest) GetProtocolVersion ¶ added in v0.4.6
func (m *FindMatchesRequest) GetProtocolVersion() uint32
func (*FindMatchesRequest) GetSessionName ¶ added in v0.4.6
func (m *FindMatchesRequest) GetSessionName() string
func (*FindMatchesRequest) GetVoteAddress ¶ added in v0.5.1
func (m *FindMatchesRequest) GetVoteAddress() string
func (*FindMatchesRequest) ProtoMessage ¶
func (*FindMatchesRequest) ProtoMessage()
func (*FindMatchesRequest) Reset ¶
func (m *FindMatchesRequest) Reset()
func (*FindMatchesRequest) String ¶
func (m *FindMatchesRequest) String() string
type FindMatchesResponse ¶
type FindMatchesResponse struct { SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` Fee uint64 `protobuf:"varint,3,opt,name=fee" json:"fee,omitempty"` PoolFee uint64 `protobuf:"varint,4,opt,name=pool_fee,json=poolFee" json:"pool_fee,omitempty"` MainchainHash []byte `protobuf:"bytes,5,opt,name=mainchain_hash,json=mainchainHash,proto3" json:"mainchain_hash,omitempty"` MainchainHeight uint32 `protobuf:"varint,6,opt,name=mainchain_height,json=mainchainHeight" json:"mainchain_height,omitempty"` TicketPrice uint64 `protobuf:"varint,7,opt,name=ticket_price,json=ticketPrice" json:"ticket_price,omitempty"` NbParticipants uint32 `protobuf:"varint,8,opt,name=nb_participants,json=nbParticipants" json:"nb_participants,omitempty"` SessionToken []byte `protobuf:"bytes,9,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` }
func (*FindMatchesResponse) Descriptor ¶
func (*FindMatchesResponse) Descriptor() ([]byte, []int)
func (*FindMatchesResponse) GetAmount ¶
func (m *FindMatchesResponse) GetAmount() uint64
func (*FindMatchesResponse) GetFee ¶
func (m *FindMatchesResponse) GetFee() uint64
func (*FindMatchesResponse) GetMainchainHash ¶ added in v0.4.6
func (m *FindMatchesResponse) GetMainchainHash() []byte
func (*FindMatchesResponse) GetMainchainHeight ¶ added in v0.4.6
func (m *FindMatchesResponse) GetMainchainHeight() uint32
func (*FindMatchesResponse) GetNbParticipants ¶ added in v0.4.6
func (m *FindMatchesResponse) GetNbParticipants() uint32
func (*FindMatchesResponse) GetPoolFee ¶
func (m *FindMatchesResponse) GetPoolFee() uint64
func (*FindMatchesResponse) GetSessionId ¶
func (m *FindMatchesResponse) GetSessionId() uint32
func (*FindMatchesResponse) GetSessionToken ¶ added in v0.7.0
func (m *FindMatchesResponse) GetSessionToken() []byte
func (*FindMatchesResponse) GetTicketPrice ¶ added in v0.4.6
func (m *FindMatchesResponse) GetTicketPrice() uint64
func (*FindMatchesResponse) ProtoMessage ¶
func (*FindMatchesResponse) ProtoMessage()
func (*FindMatchesResponse) Reset ¶
func (m *FindMatchesResponse) Reset()
func (*FindMatchesResponse) String ¶
func (m *FindMatchesResponse) String() string
type FundSplitTxRequest ¶
type FundSplitTxRequest struct { SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` SplitTxScriptsigs [][]byte `protobuf:"bytes,2,rep,name=split_tx_scriptsigs,json=splitTxScriptsigs,proto3" json:"split_tx_scriptsigs,omitempty"` Secretnb []byte `protobuf:"bytes,3,opt,name=secretnb,proto3" json:"secretnb,omitempty"` SessionToken []byte `protobuf:"bytes,4,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` }
func (*FundSplitTxRequest) Descriptor ¶
func (*FundSplitTxRequest) Descriptor() ([]byte, []int)
func (*FundSplitTxRequest) GetSecretnb ¶ added in v0.4.6
func (m *FundSplitTxRequest) GetSecretnb() []byte
func (*FundSplitTxRequest) GetSessionId ¶
func (m *FundSplitTxRequest) GetSessionId() uint32
func (*FundSplitTxRequest) GetSessionToken ¶ added in v0.7.0
func (m *FundSplitTxRequest) GetSessionToken() []byte
func (*FundSplitTxRequest) GetSplitTxScriptsigs ¶
func (m *FundSplitTxRequest) GetSplitTxScriptsigs() [][]byte
func (*FundSplitTxRequest) ProtoMessage ¶
func (*FundSplitTxRequest) ProtoMessage()
func (*FundSplitTxRequest) Reset ¶
func (m *FundSplitTxRequest) Reset()
func (*FundSplitTxRequest) String ¶
func (m *FundSplitTxRequest) String() string
type FundSplitTxResponse ¶
type FundSplitTxResponse struct { SplitTx []byte `protobuf:"bytes,1,opt,name=split_tx,json=splitTx,proto3" json:"split_tx,omitempty"` SecretNumbers [][]byte `protobuf:"bytes,2,rep,name=secret_numbers,json=secretNumbers,proto3" json:"secret_numbers,omitempty"` }
func (*FundSplitTxResponse) Descriptor ¶
func (*FundSplitTxResponse) Descriptor() ([]byte, []int)
func (*FundSplitTxResponse) GetSecretNumbers ¶ added in v0.4.6
func (m *FundSplitTxResponse) GetSecretNumbers() [][]byte
func (*FundSplitTxResponse) GetSplitTx ¶
func (m *FundSplitTxResponse) GetSplitTx() []byte
func (*FundSplitTxResponse) ProtoMessage ¶
func (*FundSplitTxResponse) ProtoMessage()
func (*FundSplitTxResponse) Reset ¶
func (m *FundSplitTxResponse) Reset()
func (*FundSplitTxResponse) String ¶
func (m *FundSplitTxResponse) String() string
type FundTicketRequest ¶
type FundTicketRequest struct { SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` Tickets []*FundTicketRequest_FundedParticipantTicket `protobuf:"bytes,2,rep,name=tickets" json:"tickets,omitempty"` RevocationScriptSig []byte `protobuf:"bytes,3,opt,name=revocation_script_sig,json=revocationScriptSig,proto3" json:"revocation_script_sig,omitempty"` SessionToken []byte `protobuf:"bytes,4,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` }
func (*FundTicketRequest) Descriptor ¶
func (*FundTicketRequest) Descriptor() ([]byte, []int)
func (*FundTicketRequest) GetRevocationScriptSig ¶
func (m *FundTicketRequest) GetRevocationScriptSig() []byte
func (*FundTicketRequest) GetSessionId ¶
func (m *FundTicketRequest) GetSessionId() uint32
func (*FundTicketRequest) GetSessionToken ¶ added in v0.7.0
func (m *FundTicketRequest) GetSessionToken() []byte
func (*FundTicketRequest) GetTickets ¶ added in v0.4.6
func (m *FundTicketRequest) GetTickets() []*FundTicketRequest_FundedParticipantTicket
func (*FundTicketRequest) ProtoMessage ¶
func (*FundTicketRequest) ProtoMessage()
func (*FundTicketRequest) Reset ¶
func (m *FundTicketRequest) Reset()
func (*FundTicketRequest) String ¶
func (m *FundTicketRequest) String() string
type FundTicketRequest_FundedParticipantTicket ¶ added in v0.4.6
type FundTicketRequest_FundedParticipantTicket struct {
TicketInputScriptsig []byte `protobuf:"bytes,1,opt,name=ticket_input_scriptsig,json=ticketInputScriptsig,proto3" json:"ticket_input_scriptsig,omitempty"`
}
func (*FundTicketRequest_FundedParticipantTicket) Descriptor ¶ added in v0.4.6
func (*FundTicketRequest_FundedParticipantTicket) Descriptor() ([]byte, []int)
func (*FundTicketRequest_FundedParticipantTicket) GetTicketInputScriptsig ¶ added in v0.4.6
func (m *FundTicketRequest_FundedParticipantTicket) GetTicketInputScriptsig() []byte
func (*FundTicketRequest_FundedParticipantTicket) ProtoMessage ¶ added in v0.4.6
func (*FundTicketRequest_FundedParticipantTicket) ProtoMessage()
func (*FundTicketRequest_FundedParticipantTicket) Reset ¶ added in v0.4.6
func (m *FundTicketRequest_FundedParticipantTicket) Reset()
func (*FundTicketRequest_FundedParticipantTicket) String ¶ added in v0.4.6
func (m *FundTicketRequest_FundedParticipantTicket) String() string
type FundTicketResponse ¶
type FundTicketResponse struct {
Tickets []*FundTicketResponse_FundedParticipantTicket `protobuf:"bytes,1,rep,name=tickets" json:"tickets,omitempty"`
}
func (*FundTicketResponse) Descriptor ¶
func (*FundTicketResponse) Descriptor() ([]byte, []int)
func (*FundTicketResponse) GetTickets ¶ added in v0.4.6
func (m *FundTicketResponse) GetTickets() []*FundTicketResponse_FundedParticipantTicket
func (*FundTicketResponse) ProtoMessage ¶
func (*FundTicketResponse) ProtoMessage()
func (*FundTicketResponse) Reset ¶
func (m *FundTicketResponse) Reset()
func (*FundTicketResponse) String ¶
func (m *FundTicketResponse) String() string
type FundTicketResponse_FundedParticipantTicket ¶ added in v0.4.6
type FundTicketResponse_FundedParticipantTicket struct { Ticket []byte `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Revocation []byte `protobuf:"bytes,2,opt,name=revocation,proto3" json:"revocation,omitempty"` }
func (*FundTicketResponse_FundedParticipantTicket) Descriptor ¶ added in v0.4.6
func (*FundTicketResponse_FundedParticipantTicket) Descriptor() ([]byte, []int)
func (*FundTicketResponse_FundedParticipantTicket) GetRevocation ¶ added in v0.4.6
func (m *FundTicketResponse_FundedParticipantTicket) GetRevocation() []byte
func (*FundTicketResponse_FundedParticipantTicket) GetTicket ¶ added in v0.4.6
func (m *FundTicketResponse_FundedParticipantTicket) GetTicket() []byte
func (*FundTicketResponse_FundedParticipantTicket) ProtoMessage ¶ added in v0.4.6
func (*FundTicketResponse_FundedParticipantTicket) ProtoMessage()
func (*FundTicketResponse_FundedParticipantTicket) Reset ¶ added in v0.4.6
func (m *FundTicketResponse_FundedParticipantTicket) Reset()
func (*FundTicketResponse_FundedParticipantTicket) String ¶ added in v0.4.6
func (m *FundTicketResponse_FundedParticipantTicket) String() string
type GenerateTicketRequest ¶
type GenerateTicketRequest struct { SessionId uint32 `protobuf:"varint,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` CommitmentAddress string `protobuf:"bytes,2,opt,name=commitment_address,json=commitmentAddress" json:"commitment_address,omitempty"` SplitTxAddress string `protobuf:"bytes,3,opt,name=split_tx_address,json=splitTxAddress" json:"split_tx_address,omitempty"` SplitTxChange *TxOut `protobuf:"bytes,4,opt,name=split_tx_change,json=splitTxChange" json:"split_tx_change,omitempty"` SplitTxInputs []*OutPoint `protobuf:"bytes,5,rep,name=split_tx_inputs,json=splitTxInputs" json:"split_tx_inputs,omitempty"` SecretnbHash []byte `protobuf:"bytes,6,opt,name=secretnb_hash,json=secretnbHash,proto3" json:"secretnb_hash,omitempty"` SessionToken []byte `protobuf:"bytes,7,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` }
func (*GenerateTicketRequest) Descriptor ¶
func (*GenerateTicketRequest) Descriptor() ([]byte, []int)
func (*GenerateTicketRequest) GetCommitmentAddress ¶ added in v0.4.6
func (m *GenerateTicketRequest) GetCommitmentAddress() string
func (*GenerateTicketRequest) GetSecretnbHash ¶ added in v0.4.6
func (m *GenerateTicketRequest) GetSecretnbHash() []byte
func (*GenerateTicketRequest) GetSessionId ¶
func (m *GenerateTicketRequest) GetSessionId() uint32
func (*GenerateTicketRequest) GetSessionToken ¶ added in v0.7.0
func (m *GenerateTicketRequest) GetSessionToken() []byte
func (*GenerateTicketRequest) GetSplitTxAddress ¶ added in v0.4.6
func (m *GenerateTicketRequest) GetSplitTxAddress() string
func (*GenerateTicketRequest) GetSplitTxChange ¶
func (m *GenerateTicketRequest) GetSplitTxChange() *TxOut
func (*GenerateTicketRequest) GetSplitTxInputs ¶
func (m *GenerateTicketRequest) GetSplitTxInputs() []*OutPoint
func (*GenerateTicketRequest) ProtoMessage ¶
func (*GenerateTicketRequest) ProtoMessage()
func (*GenerateTicketRequest) Reset ¶
func (m *GenerateTicketRequest) Reset()
func (*GenerateTicketRequest) String ¶
func (m *GenerateTicketRequest) String() string
type GenerateTicketResponse ¶
type GenerateTicketResponse struct { SplitTx []byte `protobuf:"bytes,1,opt,name=split_tx,json=splitTx,proto3" json:"split_tx,omitempty"` TicketTemplate []byte `protobuf:"bytes,2,opt,name=ticket_template,json=ticketTemplate,proto3" json:"ticket_template,omitempty"` Participants []*GenerateTicketResponse_Participant `protobuf:"bytes,3,rep,name=participants" json:"participants,omitempty"` Index uint32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"` }
func (*GenerateTicketResponse) Descriptor ¶
func (*GenerateTicketResponse) Descriptor() ([]byte, []int)
func (*GenerateTicketResponse) GetIndex ¶ added in v0.4.6
func (m *GenerateTicketResponse) GetIndex() uint32
func (*GenerateTicketResponse) GetParticipants ¶ added in v0.4.6
func (m *GenerateTicketResponse) GetParticipants() []*GenerateTicketResponse_Participant
func (*GenerateTicketResponse) GetSplitTx ¶
func (m *GenerateTicketResponse) GetSplitTx() []byte
func (*GenerateTicketResponse) GetTicketTemplate ¶ added in v0.4.6
func (m *GenerateTicketResponse) GetTicketTemplate() []byte
func (*GenerateTicketResponse) ProtoMessage ¶
func (*GenerateTicketResponse) ProtoMessage()
func (*GenerateTicketResponse) Reset ¶
func (m *GenerateTicketResponse) Reset()
func (*GenerateTicketResponse) String ¶
func (m *GenerateTicketResponse) String() string
type GenerateTicketResponse_Participant ¶ added in v0.4.6
type GenerateTicketResponse_Participant struct { Amount uint64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"` SecretnbHash []byte `protobuf:"bytes,2,opt,name=secretnb_hash,json=secretnbHash,proto3" json:"secretnb_hash,omitempty"` VotePkScript []byte `protobuf:"bytes,3,opt,name=vote_pk_script,json=votePkScript,proto3" json:"vote_pk_script,omitempty"` PoolPkScript []byte `protobuf:"bytes,4,opt,name=pool_pk_script,json=poolPkScript,proto3" json:"pool_pk_script,omitempty"` }
func (*GenerateTicketResponse_Participant) Descriptor ¶ added in v0.4.6
func (*GenerateTicketResponse_Participant) Descriptor() ([]byte, []int)
func (*GenerateTicketResponse_Participant) GetAmount ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) GetAmount() uint64
func (*GenerateTicketResponse_Participant) GetPoolPkScript ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) GetPoolPkScript() []byte
func (*GenerateTicketResponse_Participant) GetSecretnbHash ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) GetSecretnbHash() []byte
func (*GenerateTicketResponse_Participant) GetVotePkScript ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) GetVotePkScript() []byte
func (*GenerateTicketResponse_Participant) ProtoMessage ¶ added in v0.4.6
func (*GenerateTicketResponse_Participant) ProtoMessage()
func (*GenerateTicketResponse_Participant) Reset ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) Reset()
func (*GenerateTicketResponse_Participant) String ¶ added in v0.4.6
func (m *GenerateTicketResponse_Participant) String() string
type OutPoint ¶
type OutPoint struct { PrevHash []byte `protobuf:"bytes,1,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"` PrevIndex int32 `protobuf:"varint,2,opt,name=prev_index,json=prevIndex" json:"prev_index,omitempty"` Tree int32 `protobuf:"varint,3,opt,name=tree" json:"tree,omitempty"` }
func (*OutPoint) Descriptor ¶
func (*OutPoint) GetPrevHash ¶
func (*OutPoint) GetPrevIndex ¶
func (*OutPoint) ProtoMessage ¶
func (*OutPoint) ProtoMessage()
type SplitTicketMatcherServiceClient ¶
type SplitTicketMatcherServiceClient interface { WatchWaitingList(ctx context.Context, in *WatchWaitingListRequest, opts ...grpc.CallOption) (SplitTicketMatcherService_WatchWaitingListClient, error) FindMatches(ctx context.Context, in *FindMatchesRequest, opts ...grpc.CallOption) (*FindMatchesResponse, error) GenerateTicket(ctx context.Context, in *GenerateTicketRequest, opts ...grpc.CallOption) (*GenerateTicketResponse, error) FundTicket(ctx context.Context, in *FundTicketRequest, opts ...grpc.CallOption) (*FundTicketResponse, error) FundSplitTx(ctx context.Context, in *FundSplitTxRequest, opts ...grpc.CallOption) (*FundSplitTxResponse, error) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) BuyerError(ctx context.Context, in *BuyerErrorRequest, opts ...grpc.CallOption) (*BuyerErrorResponse, error) }
func NewSplitTicketMatcherServiceClient ¶
func NewSplitTicketMatcherServiceClient(cc *grpc.ClientConn) SplitTicketMatcherServiceClient
type SplitTicketMatcherServiceServer ¶
type SplitTicketMatcherServiceServer interface { WatchWaitingList(*WatchWaitingListRequest, SplitTicketMatcherService_WatchWaitingListServer) error FindMatches(context.Context, *FindMatchesRequest) (*FindMatchesResponse, error) GenerateTicket(context.Context, *GenerateTicketRequest) (*GenerateTicketResponse, error) FundTicket(context.Context, *FundTicketRequest) (*FundTicketResponse, error) FundSplitTx(context.Context, *FundSplitTxRequest) (*FundSplitTxResponse, error) Status(context.Context, *StatusRequest) (*StatusResponse, error) BuyerError(context.Context, *BuyerErrorRequest) (*BuyerErrorResponse, error) }
type SplitTicketMatcherService_WatchWaitingListClient ¶
type SplitTicketMatcherService_WatchWaitingListClient interface { Recv() (*WatchWaitingListResponse, error) grpc.ClientStream }
type SplitTicketMatcherService_WatchWaitingListServer ¶
type SplitTicketMatcherService_WatchWaitingListServer interface { Send(*WatchWaitingListResponse) error grpc.ServerStream }
type StatusRequest ¶
type StatusRequest struct { }
func (*StatusRequest) Descriptor ¶
func (*StatusRequest) Descriptor() ([]byte, []int)
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) Reset ¶
func (m *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (m *StatusRequest) String() string
type StatusResponse ¶
type StatusResponse struct { TicketPrice uint64 `protobuf:"varint,1,opt,name=ticket_price,json=ticketPrice" json:"ticket_price,omitempty"` ProtocolVersion uint32 `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion" json:"protocol_version,omitempty"` MainchainHash []byte `protobuf:"bytes,3,opt,name=mainchain_hash,json=mainchainHash,proto3" json:"mainchain_hash,omitempty"` }
func (*StatusResponse) Descriptor ¶
func (*StatusResponse) Descriptor() ([]byte, []int)
func (*StatusResponse) GetMainchainHash ¶ added in v0.7.0
func (m *StatusResponse) GetMainchainHash() []byte
func (*StatusResponse) GetProtocolVersion ¶ added in v0.4.6
func (m *StatusResponse) GetProtocolVersion() uint32
func (*StatusResponse) GetTicketPrice ¶
func (m *StatusResponse) GetTicketPrice() uint64
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) Reset ¶
func (m *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (m *StatusResponse) String() string
type TxOut ¶
type TxOut struct { Value uint64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"` }
func (*TxOut) Descriptor ¶
func (*TxOut) ProtoMessage ¶
func (*TxOut) ProtoMessage()
type WatchWaitingListRequest ¶
type WatchWaitingListRequest struct {
SendCurrent bool `protobuf:"varint,1,opt,name=send_current,json=sendCurrent" json:"send_current,omitempty"`
}
func (*WatchWaitingListRequest) Descriptor ¶
func (*WatchWaitingListRequest) Descriptor() ([]byte, []int)
func (*WatchWaitingListRequest) GetSendCurrent ¶ added in v0.5.2
func (m *WatchWaitingListRequest) GetSendCurrent() bool
func (*WatchWaitingListRequest) ProtoMessage ¶
func (*WatchWaitingListRequest) ProtoMessage()
func (*WatchWaitingListRequest) Reset ¶
func (m *WatchWaitingListRequest) Reset()
func (*WatchWaitingListRequest) String ¶
func (m *WatchWaitingListRequest) String() string
type WatchWaitingListResponse ¶
type WatchWaitingListResponse struct {
Queues []*WatchWaitingListResponse_Queue `protobuf:"bytes,1,rep,name=queues" json:"queues,omitempty"`
}
func (*WatchWaitingListResponse) Descriptor ¶
func (*WatchWaitingListResponse) Descriptor() ([]byte, []int)
func (*WatchWaitingListResponse) GetQueues ¶ added in v0.4.6
func (m *WatchWaitingListResponse) GetQueues() []*WatchWaitingListResponse_Queue
func (*WatchWaitingListResponse) ProtoMessage ¶
func (*WatchWaitingListResponse) ProtoMessage()
func (*WatchWaitingListResponse) Reset ¶
func (m *WatchWaitingListResponse) Reset()
func (*WatchWaitingListResponse) String ¶
func (m *WatchWaitingListResponse) String() string
type WatchWaitingListResponse_Queue ¶ added in v0.4.6
type WatchWaitingListResponse_Queue struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Amounts []uint64 `protobuf:"varint,2,rep,packed,name=amounts" json:"amounts,omitempty"` }
func (*WatchWaitingListResponse_Queue) Descriptor ¶ added in v0.4.6
func (*WatchWaitingListResponse_Queue) Descriptor() ([]byte, []int)
func (*WatchWaitingListResponse_Queue) GetAmounts ¶ added in v0.4.6
func (m *WatchWaitingListResponse_Queue) GetAmounts() []uint64
func (*WatchWaitingListResponse_Queue) GetName ¶ added in v0.4.6
func (m *WatchWaitingListResponse_Queue) GetName() string
func (*WatchWaitingListResponse_Queue) ProtoMessage ¶ added in v0.4.6
func (*WatchWaitingListResponse_Queue) ProtoMessage()
func (*WatchWaitingListResponse_Queue) Reset ¶ added in v0.4.6
func (m *WatchWaitingListResponse_Queue) Reset()
func (*WatchWaitingListResponse_Queue) String ¶ added in v0.4.6
func (m *WatchWaitingListResponse_Queue) String() string
Click to show internal directories.
Click to hide internal directories.