mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-14 12:43:03 +02:00
3817 lines
143 KiB
Go
3817 lines
143 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: trader.proto
|
|
|
|
package poolrpc
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type AccountState int32
|
|
|
|
const (
|
|
// The state of an account when it is pending its confirmation on-chain.
|
|
AccountState_PENDING_OPEN AccountState = 0
|
|
//
|
|
//The state of an account when it has undergone an update on-chain either as
|
|
//part of a matched order or a trader modification and it is pending its
|
|
//confirmation on-chain.
|
|
AccountState_PENDING_UPDATE AccountState = 1
|
|
// The state of an account once it has confirmed on-chain.
|
|
AccountState_OPEN AccountState = 2
|
|
//
|
|
//The state of an account once its expiration has been reached and its closing
|
|
//transaction has confirmed.
|
|
AccountState_EXPIRED AccountState = 3
|
|
//
|
|
//The state of an account when we're waiting for the closing transaction of
|
|
//an account to confirm that required cooperation with the auctioneer.
|
|
AccountState_PENDING_CLOSED AccountState = 4
|
|
// The state of an account once its closing transaction has confirmed.
|
|
AccountState_CLOSED AccountState = 5
|
|
//
|
|
//The state of an account that indicates that the account was attempted to be
|
|
//recovered but failed because the opening transaction wasn't found by lnd.
|
|
//This could be because it was never published or it never confirmed. Then the
|
|
//funds are SAFU and the account can be considered to never have been opened
|
|
//in the first place.
|
|
AccountState_RECOVERY_FAILED AccountState = 6
|
|
//
|
|
//The account has recently participated in a batch and is not yet confirmed.
|
|
AccountState_PENDING_BATCH AccountState = 7
|
|
)
|
|
|
|
var AccountState_name = map[int32]string{
|
|
0: "PENDING_OPEN",
|
|
1: "PENDING_UPDATE",
|
|
2: "OPEN",
|
|
3: "EXPIRED",
|
|
4: "PENDING_CLOSED",
|
|
5: "CLOSED",
|
|
6: "RECOVERY_FAILED",
|
|
7: "PENDING_BATCH",
|
|
}
|
|
|
|
var AccountState_value = map[string]int32{
|
|
"PENDING_OPEN": 0,
|
|
"PENDING_UPDATE": 1,
|
|
"OPEN": 2,
|
|
"EXPIRED": 3,
|
|
"PENDING_CLOSED": 4,
|
|
"CLOSED": 5,
|
|
"RECOVERY_FAILED": 6,
|
|
"PENDING_BATCH": 7,
|
|
}
|
|
|
|
func (x AccountState) String() string {
|
|
return proto.EnumName(AccountState_name, int32(x))
|
|
}
|
|
|
|
func (AccountState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{0}
|
|
}
|
|
|
|
type MatchState int32
|
|
|
|
const (
|
|
//
|
|
//The OrderMatchPrepare message from the auctioneer was received initially.
|
|
MatchState_PREPARE MatchState = 0
|
|
//
|
|
//The OrderMatchPrepare message from the auctioneer was processed successfully
|
|
//and the batch was accepted.
|
|
MatchState_ACCEPTED MatchState = 1
|
|
//
|
|
//The order was rejected by the trader daemon, either as an answer to a
|
|
//OrderMatchSignBegin or OrderMatchFinalize message from the auctioneer.
|
|
MatchState_REJECTED MatchState = 2
|
|
//
|
|
//The OrderMatchSignBegin message from the auctioneer was processed
|
|
//successfully.
|
|
MatchState_SIGNED MatchState = 3
|
|
//
|
|
//The OrderMatchFinalize message from the auctioneer was processed
|
|
//successfully.
|
|
MatchState_FINALIZED MatchState = 4
|
|
)
|
|
|
|
var MatchState_name = map[int32]string{
|
|
0: "PREPARE",
|
|
1: "ACCEPTED",
|
|
2: "REJECTED",
|
|
3: "SIGNED",
|
|
4: "FINALIZED",
|
|
}
|
|
|
|
var MatchState_value = map[string]int32{
|
|
"PREPARE": 0,
|
|
"ACCEPTED": 1,
|
|
"REJECTED": 2,
|
|
"SIGNED": 3,
|
|
"FINALIZED": 4,
|
|
}
|
|
|
|
func (x MatchState) String() string {
|
|
return proto.EnumName(MatchState_name, int32(x))
|
|
}
|
|
|
|
func (MatchState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{1}
|
|
}
|
|
|
|
type MatchRejectReason int32
|
|
|
|
const (
|
|
// No reject occurred, this is the default value.
|
|
MatchRejectReason_NONE MatchRejectReason = 0
|
|
//
|
|
//The client didn't come up with the same result as the server and is
|
|
//rejecting the batch because of that.
|
|
MatchRejectReason_SERVER_MISBEHAVIOR MatchRejectReason = 1
|
|
//
|
|
//The client doesn't support the current batch verification version the
|
|
//server is using.
|
|
MatchRejectReason_BATCH_VERSION_MISMATCH MatchRejectReason = 2
|
|
//
|
|
//The client rejects some of the orders, not the full batch. This reason is
|
|
//set on matches for orders that were in the same batch as partial reject ones
|
|
//but were not themselves rejected.
|
|
MatchRejectReason_PARTIAL_REJECT_COLLATERAL MatchRejectReason = 3
|
|
//
|
|
//The trader's client has a preference to only match orders with peers it
|
|
//doesn't already have channels with. The order that is rejected with this
|
|
//reason type comes from a peer that the trader already has channels with.
|
|
MatchRejectReason_PARTIAL_REJECT_DUPLICATE_PEER MatchRejectReason = 4
|
|
//
|
|
//The trader's client couldn't connect to the remote node of the matched
|
|
//order or the channel funding could not be initialized for another
|
|
//reason. This could also be the rejecting node's fault if their
|
|
//connection is not stable. Using this code can have a negative impact on
|
|
//the reputation score of both nodes, depending on the number of errors
|
|
//recorded.
|
|
MatchRejectReason_PARTIAL_REJECT_CHANNEL_FUNDING_FAILED MatchRejectReason = 5
|
|
)
|
|
|
|
var MatchRejectReason_name = map[int32]string{
|
|
0: "NONE",
|
|
1: "SERVER_MISBEHAVIOR",
|
|
2: "BATCH_VERSION_MISMATCH",
|
|
3: "PARTIAL_REJECT_COLLATERAL",
|
|
4: "PARTIAL_REJECT_DUPLICATE_PEER",
|
|
5: "PARTIAL_REJECT_CHANNEL_FUNDING_FAILED",
|
|
}
|
|
|
|
var MatchRejectReason_value = map[string]int32{
|
|
"NONE": 0,
|
|
"SERVER_MISBEHAVIOR": 1,
|
|
"BATCH_VERSION_MISMATCH": 2,
|
|
"PARTIAL_REJECT_COLLATERAL": 3,
|
|
"PARTIAL_REJECT_DUPLICATE_PEER": 4,
|
|
"PARTIAL_REJECT_CHANNEL_FUNDING_FAILED": 5,
|
|
}
|
|
|
|
func (x MatchRejectReason) String() string {
|
|
return proto.EnumName(MatchRejectReason_name, int32(x))
|
|
}
|
|
|
|
func (MatchRejectReason) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{2}
|
|
}
|
|
|
|
type InitAccountRequest struct {
|
|
AccountValue uint64 `protobuf:"varint,1,opt,name=account_value,json=accountValue,proto3" json:"account_value,omitempty"`
|
|
// Types that are valid to be assigned to AccountExpiry:
|
|
// *InitAccountRequest_AbsoluteHeight
|
|
// *InitAccountRequest_RelativeHeight
|
|
AccountExpiry isInitAccountRequest_AccountExpiry `protobuf_oneof:"account_expiry"`
|
|
// Types that are valid to be assigned to Fees:
|
|
// *InitAccountRequest_ConfTarget
|
|
Fees isInitAccountRequest_Fees `protobuf_oneof:"fees"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *InitAccountRequest) Reset() { *m = InitAccountRequest{} }
|
|
func (m *InitAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*InitAccountRequest) ProtoMessage() {}
|
|
func (*InitAccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{0}
|
|
}
|
|
|
|
func (m *InitAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InitAccountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *InitAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InitAccountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *InitAccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InitAccountRequest.Merge(m, src)
|
|
}
|
|
func (m *InitAccountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_InitAccountRequest.Size(m)
|
|
}
|
|
func (m *InitAccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InitAccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InitAccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *InitAccountRequest) GetAccountValue() uint64 {
|
|
if m != nil {
|
|
return m.AccountValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isInitAccountRequest_AccountExpiry interface {
|
|
isInitAccountRequest_AccountExpiry()
|
|
}
|
|
|
|
type InitAccountRequest_AbsoluteHeight struct {
|
|
AbsoluteHeight uint32 `protobuf:"varint,2,opt,name=absolute_height,json=absoluteHeight,proto3,oneof"`
|
|
}
|
|
|
|
type InitAccountRequest_RelativeHeight struct {
|
|
RelativeHeight uint32 `protobuf:"varint,3,opt,name=relative_height,json=relativeHeight,proto3,oneof"`
|
|
}
|
|
|
|
func (*InitAccountRequest_AbsoluteHeight) isInitAccountRequest_AccountExpiry() {}
|
|
|
|
func (*InitAccountRequest_RelativeHeight) isInitAccountRequest_AccountExpiry() {}
|
|
|
|
func (m *InitAccountRequest) GetAccountExpiry() isInitAccountRequest_AccountExpiry {
|
|
if m != nil {
|
|
return m.AccountExpiry
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InitAccountRequest) GetAbsoluteHeight() uint32 {
|
|
if x, ok := m.GetAccountExpiry().(*InitAccountRequest_AbsoluteHeight); ok {
|
|
return x.AbsoluteHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *InitAccountRequest) GetRelativeHeight() uint32 {
|
|
if x, ok := m.GetAccountExpiry().(*InitAccountRequest_RelativeHeight); ok {
|
|
return x.RelativeHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isInitAccountRequest_Fees interface {
|
|
isInitAccountRequest_Fees()
|
|
}
|
|
|
|
type InitAccountRequest_ConfTarget struct {
|
|
ConfTarget uint32 `protobuf:"varint,4,opt,name=conf_target,json=confTarget,proto3,oneof"`
|
|
}
|
|
|
|
func (*InitAccountRequest_ConfTarget) isInitAccountRequest_Fees() {}
|
|
|
|
func (m *InitAccountRequest) GetFees() isInitAccountRequest_Fees {
|
|
if m != nil {
|
|
return m.Fees
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InitAccountRequest) GetConfTarget() uint32 {
|
|
if x, ok := m.GetFees().(*InitAccountRequest_ConfTarget); ok {
|
|
return x.ConfTarget
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*InitAccountRequest) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*InitAccountRequest_AbsoluteHeight)(nil),
|
|
(*InitAccountRequest_RelativeHeight)(nil),
|
|
(*InitAccountRequest_ConfTarget)(nil),
|
|
}
|
|
}
|
|
|
|
type QuoteAccountRequest struct {
|
|
AccountValue uint64 `protobuf:"varint,1,opt,name=account_value,json=accountValue,proto3" json:"account_value,omitempty"`
|
|
// Types that are valid to be assigned to Fees:
|
|
// *QuoteAccountRequest_ConfTarget
|
|
Fees isQuoteAccountRequest_Fees `protobuf_oneof:"fees"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *QuoteAccountRequest) Reset() { *m = QuoteAccountRequest{} }
|
|
func (m *QuoteAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*QuoteAccountRequest) ProtoMessage() {}
|
|
func (*QuoteAccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{1}
|
|
}
|
|
|
|
func (m *QuoteAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_QuoteAccountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *QuoteAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_QuoteAccountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *QuoteAccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QuoteAccountRequest.Merge(m, src)
|
|
}
|
|
func (m *QuoteAccountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_QuoteAccountRequest.Size(m)
|
|
}
|
|
func (m *QuoteAccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QuoteAccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QuoteAccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *QuoteAccountRequest) GetAccountValue() uint64 {
|
|
if m != nil {
|
|
return m.AccountValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isQuoteAccountRequest_Fees interface {
|
|
isQuoteAccountRequest_Fees()
|
|
}
|
|
|
|
type QuoteAccountRequest_ConfTarget struct {
|
|
ConfTarget uint32 `protobuf:"varint,2,opt,name=conf_target,json=confTarget,proto3,oneof"`
|
|
}
|
|
|
|
func (*QuoteAccountRequest_ConfTarget) isQuoteAccountRequest_Fees() {}
|
|
|
|
func (m *QuoteAccountRequest) GetFees() isQuoteAccountRequest_Fees {
|
|
if m != nil {
|
|
return m.Fees
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QuoteAccountRequest) GetConfTarget() uint32 {
|
|
if x, ok := m.GetFees().(*QuoteAccountRequest_ConfTarget); ok {
|
|
return x.ConfTarget
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*QuoteAccountRequest) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*QuoteAccountRequest_ConfTarget)(nil),
|
|
}
|
|
}
|
|
|
|
type QuoteAccountResponse struct {
|
|
MinerFeeRateSatPerKw uint64 `protobuf:"varint,1,opt,name=miner_fee_rate_sat_per_kw,json=minerFeeRateSatPerKw,proto3" json:"miner_fee_rate_sat_per_kw,omitempty"`
|
|
MinerFeeTotal uint64 `protobuf:"varint,2,opt,name=miner_fee_total,json=minerFeeTotal,proto3" json:"miner_fee_total,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *QuoteAccountResponse) Reset() { *m = QuoteAccountResponse{} }
|
|
func (m *QuoteAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*QuoteAccountResponse) ProtoMessage() {}
|
|
func (*QuoteAccountResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{2}
|
|
}
|
|
|
|
func (m *QuoteAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_QuoteAccountResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *QuoteAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_QuoteAccountResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *QuoteAccountResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QuoteAccountResponse.Merge(m, src)
|
|
}
|
|
func (m *QuoteAccountResponse) XXX_Size() int {
|
|
return xxx_messageInfo_QuoteAccountResponse.Size(m)
|
|
}
|
|
func (m *QuoteAccountResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QuoteAccountResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QuoteAccountResponse proto.InternalMessageInfo
|
|
|
|
func (m *QuoteAccountResponse) GetMinerFeeRateSatPerKw() uint64 {
|
|
if m != nil {
|
|
return m.MinerFeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *QuoteAccountResponse) GetMinerFeeTotal() uint64 {
|
|
if m != nil {
|
|
return m.MinerFeeTotal
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListAccountsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListAccountsRequest) Reset() { *m = ListAccountsRequest{} }
|
|
func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListAccountsRequest) ProtoMessage() {}
|
|
func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{3}
|
|
}
|
|
|
|
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListAccountsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListAccountsRequest.Merge(m, src)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ListAccountsRequest.Size(m)
|
|
}
|
|
func (m *ListAccountsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo
|
|
|
|
type ListAccountsResponse struct {
|
|
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListAccountsResponse) Reset() { *m = ListAccountsResponse{} }
|
|
func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListAccountsResponse) ProtoMessage() {}
|
|
func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{4}
|
|
}
|
|
|
|
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListAccountsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListAccountsResponse.Merge(m, src)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ListAccountsResponse.Size(m)
|
|
}
|
|
func (m *ListAccountsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListAccountsResponse) GetAccounts() []*Account {
|
|
if m != nil {
|
|
return m.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Output struct {
|
|
// The value, in satoshis, of the output.
|
|
ValueSat uint64 `protobuf:"varint,1,opt,name=value_sat,json=valueSat,proto3" json:"value_sat,omitempty"`
|
|
// The address corresponding to the output.
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Output) Reset() { *m = Output{} }
|
|
func (m *Output) String() string { return proto.CompactTextString(m) }
|
|
func (*Output) ProtoMessage() {}
|
|
func (*Output) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{5}
|
|
}
|
|
|
|
func (m *Output) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Output.Unmarshal(m, b)
|
|
}
|
|
func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Output.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Output) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Output.Merge(m, src)
|
|
}
|
|
func (m *Output) XXX_Size() int {
|
|
return xxx_messageInfo_Output.Size(m)
|
|
}
|
|
func (m *Output) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Output.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Output proto.InternalMessageInfo
|
|
|
|
func (m *Output) GetValueSat() uint64 {
|
|
if m != nil {
|
|
return m.ValueSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Output) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OutputWithFee struct {
|
|
// The address corresponding to the output.
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
// Types that are valid to be assigned to Fees:
|
|
// *OutputWithFee_ConfTarget
|
|
// *OutputWithFee_FeeRateSatPerKw
|
|
Fees isOutputWithFee_Fees `protobuf_oneof:"fees"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *OutputWithFee) Reset() { *m = OutputWithFee{} }
|
|
func (m *OutputWithFee) String() string { return proto.CompactTextString(m) }
|
|
func (*OutputWithFee) ProtoMessage() {}
|
|
func (*OutputWithFee) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{6}
|
|
}
|
|
|
|
func (m *OutputWithFee) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_OutputWithFee.Unmarshal(m, b)
|
|
}
|
|
func (m *OutputWithFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_OutputWithFee.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *OutputWithFee) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_OutputWithFee.Merge(m, src)
|
|
}
|
|
func (m *OutputWithFee) XXX_Size() int {
|
|
return xxx_messageInfo_OutputWithFee.Size(m)
|
|
}
|
|
func (m *OutputWithFee) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_OutputWithFee.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_OutputWithFee proto.InternalMessageInfo
|
|
|
|
func (m *OutputWithFee) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isOutputWithFee_Fees interface {
|
|
isOutputWithFee_Fees()
|
|
}
|
|
|
|
type OutputWithFee_ConfTarget struct {
|
|
ConfTarget uint32 `protobuf:"varint,2,opt,name=conf_target,json=confTarget,proto3,oneof"`
|
|
}
|
|
|
|
type OutputWithFee_FeeRateSatPerKw struct {
|
|
FeeRateSatPerKw uint64 `protobuf:"varint,3,opt,name=fee_rate_sat_per_kw,json=feeRateSatPerKw,proto3,oneof"`
|
|
}
|
|
|
|
func (*OutputWithFee_ConfTarget) isOutputWithFee_Fees() {}
|
|
|
|
func (*OutputWithFee_FeeRateSatPerKw) isOutputWithFee_Fees() {}
|
|
|
|
func (m *OutputWithFee) GetFees() isOutputWithFee_Fees {
|
|
if m != nil {
|
|
return m.Fees
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *OutputWithFee) GetConfTarget() uint32 {
|
|
if x, ok := m.GetFees().(*OutputWithFee_ConfTarget); ok {
|
|
return x.ConfTarget
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *OutputWithFee) GetFeeRateSatPerKw() uint64 {
|
|
if x, ok := m.GetFees().(*OutputWithFee_FeeRateSatPerKw); ok {
|
|
return x.FeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*OutputWithFee) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*OutputWithFee_ConfTarget)(nil),
|
|
(*OutputWithFee_FeeRateSatPerKw)(nil),
|
|
}
|
|
}
|
|
|
|
type OutputsWithImplicitFee struct {
|
|
Outputs []*Output `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *OutputsWithImplicitFee) Reset() { *m = OutputsWithImplicitFee{} }
|
|
func (m *OutputsWithImplicitFee) String() string { return proto.CompactTextString(m) }
|
|
func (*OutputsWithImplicitFee) ProtoMessage() {}
|
|
func (*OutputsWithImplicitFee) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{7}
|
|
}
|
|
|
|
func (m *OutputsWithImplicitFee) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_OutputsWithImplicitFee.Unmarshal(m, b)
|
|
}
|
|
func (m *OutputsWithImplicitFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_OutputsWithImplicitFee.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *OutputsWithImplicitFee) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_OutputsWithImplicitFee.Merge(m, src)
|
|
}
|
|
func (m *OutputsWithImplicitFee) XXX_Size() int {
|
|
return xxx_messageInfo_OutputsWithImplicitFee.Size(m)
|
|
}
|
|
func (m *OutputsWithImplicitFee) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_OutputsWithImplicitFee.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_OutputsWithImplicitFee proto.InternalMessageInfo
|
|
|
|
func (m *OutputsWithImplicitFee) GetOutputs() []*Output {
|
|
if m != nil {
|
|
return m.Outputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CloseAccountRequest struct {
|
|
// The trader key associated with the account that will be closed.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
// Types that are valid to be assigned to FundsDestination:
|
|
// *CloseAccountRequest_OutputWithFee
|
|
// *CloseAccountRequest_Outputs
|
|
FundsDestination isCloseAccountRequest_FundsDestination `protobuf_oneof:"funds_destination"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CloseAccountRequest) Reset() { *m = CloseAccountRequest{} }
|
|
func (m *CloseAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CloseAccountRequest) ProtoMessage() {}
|
|
func (*CloseAccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{8}
|
|
}
|
|
|
|
func (m *CloseAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CloseAccountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CloseAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CloseAccountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CloseAccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CloseAccountRequest.Merge(m, src)
|
|
}
|
|
func (m *CloseAccountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CloseAccountRequest.Size(m)
|
|
}
|
|
func (m *CloseAccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CloseAccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CloseAccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *CloseAccountRequest) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isCloseAccountRequest_FundsDestination interface {
|
|
isCloseAccountRequest_FundsDestination()
|
|
}
|
|
|
|
type CloseAccountRequest_OutputWithFee struct {
|
|
OutputWithFee *OutputWithFee `protobuf:"bytes,2,opt,name=output_with_fee,json=outputWithFee,proto3,oneof"`
|
|
}
|
|
|
|
type CloseAccountRequest_Outputs struct {
|
|
Outputs *OutputsWithImplicitFee `protobuf:"bytes,3,opt,name=outputs,proto3,oneof"`
|
|
}
|
|
|
|
func (*CloseAccountRequest_OutputWithFee) isCloseAccountRequest_FundsDestination() {}
|
|
|
|
func (*CloseAccountRequest_Outputs) isCloseAccountRequest_FundsDestination() {}
|
|
|
|
func (m *CloseAccountRequest) GetFundsDestination() isCloseAccountRequest_FundsDestination {
|
|
if m != nil {
|
|
return m.FundsDestination
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CloseAccountRequest) GetOutputWithFee() *OutputWithFee {
|
|
if x, ok := m.GetFundsDestination().(*CloseAccountRequest_OutputWithFee); ok {
|
|
return x.OutputWithFee
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CloseAccountRequest) GetOutputs() *OutputsWithImplicitFee {
|
|
if x, ok := m.GetFundsDestination().(*CloseAccountRequest_Outputs); ok {
|
|
return x.Outputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*CloseAccountRequest) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*CloseAccountRequest_OutputWithFee)(nil),
|
|
(*CloseAccountRequest_Outputs)(nil),
|
|
}
|
|
}
|
|
|
|
type CloseAccountResponse struct {
|
|
// The hash of the closing transaction.
|
|
CloseTxid []byte `protobuf:"bytes,1,opt,name=close_txid,json=closeTxid,proto3" json:"close_txid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CloseAccountResponse) Reset() { *m = CloseAccountResponse{} }
|
|
func (m *CloseAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CloseAccountResponse) ProtoMessage() {}
|
|
func (*CloseAccountResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{9}
|
|
}
|
|
|
|
func (m *CloseAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CloseAccountResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CloseAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CloseAccountResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CloseAccountResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CloseAccountResponse.Merge(m, src)
|
|
}
|
|
func (m *CloseAccountResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CloseAccountResponse.Size(m)
|
|
}
|
|
func (m *CloseAccountResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CloseAccountResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CloseAccountResponse proto.InternalMessageInfo
|
|
|
|
func (m *CloseAccountResponse) GetCloseTxid() []byte {
|
|
if m != nil {
|
|
return m.CloseTxid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WithdrawAccountRequest struct {
|
|
//
|
|
//The trader key associated with the account that funds will be withdrawed
|
|
//from.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
// The outputs we'll withdraw funds from the account into.
|
|
Outputs []*Output `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
|
|
//
|
|
//The fee rate, in satoshis per kw, to use for the withdrawal transaction.
|
|
FeeRateSatPerKw uint64 `protobuf:"varint,3,opt,name=fee_rate_sat_per_kw,json=feeRateSatPerKw,proto3" json:"fee_rate_sat_per_kw,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WithdrawAccountRequest) Reset() { *m = WithdrawAccountRequest{} }
|
|
func (m *WithdrawAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*WithdrawAccountRequest) ProtoMessage() {}
|
|
func (*WithdrawAccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{10}
|
|
}
|
|
|
|
func (m *WithdrawAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WithdrawAccountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *WithdrawAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WithdrawAccountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *WithdrawAccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WithdrawAccountRequest.Merge(m, src)
|
|
}
|
|
func (m *WithdrawAccountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_WithdrawAccountRequest.Size(m)
|
|
}
|
|
func (m *WithdrawAccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WithdrawAccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WithdrawAccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *WithdrawAccountRequest) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WithdrawAccountRequest) GetOutputs() []*Output {
|
|
if m != nil {
|
|
return m.Outputs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WithdrawAccountRequest) GetFeeRateSatPerKw() uint64 {
|
|
if m != nil {
|
|
return m.FeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WithdrawAccountResponse struct {
|
|
// The state of the account after processing the withdrawal.
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
// The transaction used to withdraw funds from the account.
|
|
WithdrawTxid []byte `protobuf:"bytes,2,opt,name=withdraw_txid,json=withdrawTxid,proto3" json:"withdraw_txid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WithdrawAccountResponse) Reset() { *m = WithdrawAccountResponse{} }
|
|
func (m *WithdrawAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*WithdrawAccountResponse) ProtoMessage() {}
|
|
func (*WithdrawAccountResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{11}
|
|
}
|
|
|
|
func (m *WithdrawAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WithdrawAccountResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *WithdrawAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WithdrawAccountResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *WithdrawAccountResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WithdrawAccountResponse.Merge(m, src)
|
|
}
|
|
func (m *WithdrawAccountResponse) XXX_Size() int {
|
|
return xxx_messageInfo_WithdrawAccountResponse.Size(m)
|
|
}
|
|
func (m *WithdrawAccountResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WithdrawAccountResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WithdrawAccountResponse proto.InternalMessageInfo
|
|
|
|
func (m *WithdrawAccountResponse) GetAccount() *Account {
|
|
if m != nil {
|
|
return m.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WithdrawAccountResponse) GetWithdrawTxid() []byte {
|
|
if m != nil {
|
|
return m.WithdrawTxid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DepositAccountRequest struct {
|
|
//
|
|
//The trader key associated with the account that funds will be deposited
|
|
//into.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
// The amount in satoshis to deposit into the account.
|
|
AmountSat uint64 `protobuf:"varint,2,opt,name=amount_sat,json=amountSat,proto3" json:"amount_sat,omitempty"`
|
|
//
|
|
//The fee rate, in satoshis per kw, to use for the deposit transaction.
|
|
FeeRateSatPerKw uint64 `protobuf:"varint,3,opt,name=fee_rate_sat_per_kw,json=feeRateSatPerKw,proto3" json:"fee_rate_sat_per_kw,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DepositAccountRequest) Reset() { *m = DepositAccountRequest{} }
|
|
func (m *DepositAccountRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DepositAccountRequest) ProtoMessage() {}
|
|
func (*DepositAccountRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{12}
|
|
}
|
|
|
|
func (m *DepositAccountRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DepositAccountRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DepositAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DepositAccountRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DepositAccountRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DepositAccountRequest.Merge(m, src)
|
|
}
|
|
func (m *DepositAccountRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DepositAccountRequest.Size(m)
|
|
}
|
|
func (m *DepositAccountRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DepositAccountRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DepositAccountRequest proto.InternalMessageInfo
|
|
|
|
func (m *DepositAccountRequest) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DepositAccountRequest) GetAmountSat() uint64 {
|
|
if m != nil {
|
|
return m.AmountSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DepositAccountRequest) GetFeeRateSatPerKw() uint64 {
|
|
if m != nil {
|
|
return m.FeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DepositAccountResponse struct {
|
|
// The state of the account after processing the deposit.
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
// The transaction used to deposit funds into the account.
|
|
DepositTxid []byte `protobuf:"bytes,2,opt,name=deposit_txid,json=depositTxid,proto3" json:"deposit_txid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DepositAccountResponse) Reset() { *m = DepositAccountResponse{} }
|
|
func (m *DepositAccountResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DepositAccountResponse) ProtoMessage() {}
|
|
func (*DepositAccountResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{13}
|
|
}
|
|
|
|
func (m *DepositAccountResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DepositAccountResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DepositAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DepositAccountResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DepositAccountResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DepositAccountResponse.Merge(m, src)
|
|
}
|
|
func (m *DepositAccountResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DepositAccountResponse.Size(m)
|
|
}
|
|
func (m *DepositAccountResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DepositAccountResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DepositAccountResponse proto.InternalMessageInfo
|
|
|
|
func (m *DepositAccountResponse) GetAccount() *Account {
|
|
if m != nil {
|
|
return m.Account
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DepositAccountResponse) GetDepositTxid() []byte {
|
|
if m != nil {
|
|
return m.DepositTxid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BumpAccountFeeRequest struct {
|
|
//
|
|
//The trader key associated with the account that will have its fee bumped.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
//
|
|
//The new fee rate, in satoshis per kw, to use for the child of the account
|
|
//transaction.
|
|
FeeRateSatPerKw uint64 `protobuf:"varint,2,opt,name=fee_rate_sat_per_kw,json=feeRateSatPerKw,proto3" json:"fee_rate_sat_per_kw,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BumpAccountFeeRequest) Reset() { *m = BumpAccountFeeRequest{} }
|
|
func (m *BumpAccountFeeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BumpAccountFeeRequest) ProtoMessage() {}
|
|
func (*BumpAccountFeeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{14}
|
|
}
|
|
|
|
func (m *BumpAccountFeeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BumpAccountFeeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *BumpAccountFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BumpAccountFeeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BumpAccountFeeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BumpAccountFeeRequest.Merge(m, src)
|
|
}
|
|
func (m *BumpAccountFeeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_BumpAccountFeeRequest.Size(m)
|
|
}
|
|
func (m *BumpAccountFeeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BumpAccountFeeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BumpAccountFeeRequest proto.InternalMessageInfo
|
|
|
|
func (m *BumpAccountFeeRequest) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BumpAccountFeeRequest) GetFeeRateSatPerKw() uint64 {
|
|
if m != nil {
|
|
return m.FeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BumpAccountFeeResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BumpAccountFeeResponse) Reset() { *m = BumpAccountFeeResponse{} }
|
|
func (m *BumpAccountFeeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BumpAccountFeeResponse) ProtoMessage() {}
|
|
func (*BumpAccountFeeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{15}
|
|
}
|
|
|
|
func (m *BumpAccountFeeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BumpAccountFeeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *BumpAccountFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BumpAccountFeeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BumpAccountFeeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BumpAccountFeeResponse.Merge(m, src)
|
|
}
|
|
func (m *BumpAccountFeeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_BumpAccountFeeResponse.Size(m)
|
|
}
|
|
func (m *BumpAccountFeeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BumpAccountFeeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BumpAccountFeeResponse proto.InternalMessageInfo
|
|
|
|
type Account struct {
|
|
//
|
|
//The identifying component of an account. This is the key used for the trader
|
|
//in the 2-of-2 multi-sig construction of an account with an auctioneer.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
//
|
|
//The current outpoint associated with the account. This will change every
|
|
//time the account has been updated.
|
|
Outpoint *OutPoint `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
|
|
// The current total amount of satoshis in the account.
|
|
Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
|
|
//
|
|
//The amount of satoshis in the account that is available, meaning not
|
|
//allocated to any oustanding orders.
|
|
AvailableBalance uint64 `protobuf:"varint,4,opt,name=available_balance,json=availableBalance,proto3" json:"available_balance,omitempty"`
|
|
// The height at which the account will expire.
|
|
ExpirationHeight uint32 `protobuf:"varint,5,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
|
|
// The current state of the account.
|
|
State AccountState `protobuf:"varint,6,opt,name=state,proto3,enum=poolrpc.AccountState" json:"state,omitempty"`
|
|
// The hash of the account's latest transaction.
|
|
LatestTxid []byte `protobuf:"bytes,7,opt,name=latest_txid,json=latestTxid,proto3" json:"latest_txid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Account) Reset() { *m = Account{} }
|
|
func (m *Account) String() string { return proto.CompactTextString(m) }
|
|
func (*Account) ProtoMessage() {}
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{16}
|
|
}
|
|
|
|
func (m *Account) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Account.Unmarshal(m, b)
|
|
}
|
|
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Account.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Account) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Account.Merge(m, src)
|
|
}
|
|
func (m *Account) XXX_Size() int {
|
|
return xxx_messageInfo_Account.Size(m)
|
|
}
|
|
func (m *Account) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Account.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Account proto.InternalMessageInfo
|
|
|
|
func (m *Account) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Account) GetOutpoint() *OutPoint {
|
|
if m != nil {
|
|
return m.Outpoint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Account) GetValue() uint64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Account) GetAvailableBalance() uint64 {
|
|
if m != nil {
|
|
return m.AvailableBalance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Account) GetExpirationHeight() uint32 {
|
|
if m != nil {
|
|
return m.ExpirationHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Account) GetState() AccountState {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return AccountState_PENDING_OPEN
|
|
}
|
|
|
|
func (m *Account) GetLatestTxid() []byte {
|
|
if m != nil {
|
|
return m.LatestTxid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SubmitOrderRequest struct {
|
|
// Types that are valid to be assigned to Details:
|
|
// *SubmitOrderRequest_Ask
|
|
// *SubmitOrderRequest_Bid
|
|
Details isSubmitOrderRequest_Details `protobuf_oneof:"details"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SubmitOrderRequest) Reset() { *m = SubmitOrderRequest{} }
|
|
func (m *SubmitOrderRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SubmitOrderRequest) ProtoMessage() {}
|
|
func (*SubmitOrderRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{17}
|
|
}
|
|
|
|
func (m *SubmitOrderRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SubmitOrderRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *SubmitOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SubmitOrderRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SubmitOrderRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SubmitOrderRequest.Merge(m, src)
|
|
}
|
|
func (m *SubmitOrderRequest) XXX_Size() int {
|
|
return xxx_messageInfo_SubmitOrderRequest.Size(m)
|
|
}
|
|
func (m *SubmitOrderRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SubmitOrderRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SubmitOrderRequest proto.InternalMessageInfo
|
|
|
|
type isSubmitOrderRequest_Details interface {
|
|
isSubmitOrderRequest_Details()
|
|
}
|
|
|
|
type SubmitOrderRequest_Ask struct {
|
|
Ask *Ask `protobuf:"bytes,1,opt,name=ask,proto3,oneof"`
|
|
}
|
|
|
|
type SubmitOrderRequest_Bid struct {
|
|
Bid *Bid `protobuf:"bytes,2,opt,name=bid,proto3,oneof"`
|
|
}
|
|
|
|
func (*SubmitOrderRequest_Ask) isSubmitOrderRequest_Details() {}
|
|
|
|
func (*SubmitOrderRequest_Bid) isSubmitOrderRequest_Details() {}
|
|
|
|
func (m *SubmitOrderRequest) GetDetails() isSubmitOrderRequest_Details {
|
|
if m != nil {
|
|
return m.Details
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SubmitOrderRequest) GetAsk() *Ask {
|
|
if x, ok := m.GetDetails().(*SubmitOrderRequest_Ask); ok {
|
|
return x.Ask
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SubmitOrderRequest) GetBid() *Bid {
|
|
if x, ok := m.GetDetails().(*SubmitOrderRequest_Bid); ok {
|
|
return x.Bid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*SubmitOrderRequest) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*SubmitOrderRequest_Ask)(nil),
|
|
(*SubmitOrderRequest_Bid)(nil),
|
|
}
|
|
}
|
|
|
|
type SubmitOrderResponse struct {
|
|
// Types that are valid to be assigned to Details:
|
|
// *SubmitOrderResponse_InvalidOrder
|
|
// *SubmitOrderResponse_AcceptedOrderNonce
|
|
Details isSubmitOrderResponse_Details `protobuf_oneof:"details"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SubmitOrderResponse) Reset() { *m = SubmitOrderResponse{} }
|
|
func (m *SubmitOrderResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SubmitOrderResponse) ProtoMessage() {}
|
|
func (*SubmitOrderResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{18}
|
|
}
|
|
|
|
func (m *SubmitOrderResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SubmitOrderResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SubmitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SubmitOrderResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SubmitOrderResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SubmitOrderResponse.Merge(m, src)
|
|
}
|
|
func (m *SubmitOrderResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SubmitOrderResponse.Size(m)
|
|
}
|
|
func (m *SubmitOrderResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SubmitOrderResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SubmitOrderResponse proto.InternalMessageInfo
|
|
|
|
type isSubmitOrderResponse_Details interface {
|
|
isSubmitOrderResponse_Details()
|
|
}
|
|
|
|
type SubmitOrderResponse_InvalidOrder struct {
|
|
InvalidOrder *InvalidOrder `protobuf:"bytes,1,opt,name=invalid_order,json=invalidOrder,proto3,oneof"`
|
|
}
|
|
|
|
type SubmitOrderResponse_AcceptedOrderNonce struct {
|
|
AcceptedOrderNonce []byte `protobuf:"bytes,2,opt,name=accepted_order_nonce,json=acceptedOrderNonce,proto3,oneof"`
|
|
}
|
|
|
|
func (*SubmitOrderResponse_InvalidOrder) isSubmitOrderResponse_Details() {}
|
|
|
|
func (*SubmitOrderResponse_AcceptedOrderNonce) isSubmitOrderResponse_Details() {}
|
|
|
|
func (m *SubmitOrderResponse) GetDetails() isSubmitOrderResponse_Details {
|
|
if m != nil {
|
|
return m.Details
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SubmitOrderResponse) GetInvalidOrder() *InvalidOrder {
|
|
if x, ok := m.GetDetails().(*SubmitOrderResponse_InvalidOrder); ok {
|
|
return x.InvalidOrder
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SubmitOrderResponse) GetAcceptedOrderNonce() []byte {
|
|
if x, ok := m.GetDetails().(*SubmitOrderResponse_AcceptedOrderNonce); ok {
|
|
return x.AcceptedOrderNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*SubmitOrderResponse) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*SubmitOrderResponse_InvalidOrder)(nil),
|
|
(*SubmitOrderResponse_AcceptedOrderNonce)(nil),
|
|
}
|
|
}
|
|
|
|
type ListOrdersRequest struct {
|
|
//
|
|
//Can be set to true to list the orders including all events, which can be
|
|
//very verbose.
|
|
Verbose bool `protobuf:"varint,1,opt,name=verbose,proto3" json:"verbose,omitempty"`
|
|
//
|
|
//Only list orders that are still active.
|
|
ActiveOnly bool `protobuf:"varint,2,opt,name=active_only,json=activeOnly,proto3" json:"active_only,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListOrdersRequest) Reset() { *m = ListOrdersRequest{} }
|
|
func (m *ListOrdersRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListOrdersRequest) ProtoMessage() {}
|
|
func (*ListOrdersRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{19}
|
|
}
|
|
|
|
func (m *ListOrdersRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListOrdersRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ListOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListOrdersRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListOrdersRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListOrdersRequest.Merge(m, src)
|
|
}
|
|
func (m *ListOrdersRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ListOrdersRequest.Size(m)
|
|
}
|
|
func (m *ListOrdersRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListOrdersRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListOrdersRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListOrdersRequest) GetVerbose() bool {
|
|
if m != nil {
|
|
return m.Verbose
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ListOrdersRequest) GetActiveOnly() bool {
|
|
if m != nil {
|
|
return m.ActiveOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ListOrdersResponse struct {
|
|
Asks []*Ask `protobuf:"bytes,1,rep,name=asks,proto3" json:"asks,omitempty"`
|
|
Bids []*Bid `protobuf:"bytes,2,rep,name=bids,proto3" json:"bids,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListOrdersResponse) Reset() { *m = ListOrdersResponse{} }
|
|
func (m *ListOrdersResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListOrdersResponse) ProtoMessage() {}
|
|
func (*ListOrdersResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{20}
|
|
}
|
|
|
|
func (m *ListOrdersResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListOrdersResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ListOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListOrdersResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListOrdersResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListOrdersResponse.Merge(m, src)
|
|
}
|
|
func (m *ListOrdersResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ListOrdersResponse.Size(m)
|
|
}
|
|
func (m *ListOrdersResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListOrdersResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListOrdersResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListOrdersResponse) GetAsks() []*Ask {
|
|
if m != nil {
|
|
return m.Asks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ListOrdersResponse) GetBids() []*Bid {
|
|
if m != nil {
|
|
return m.Bids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CancelOrderRequest struct {
|
|
OrderNonce []byte `protobuf:"bytes,1,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CancelOrderRequest) Reset() { *m = CancelOrderRequest{} }
|
|
func (m *CancelOrderRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CancelOrderRequest) ProtoMessage() {}
|
|
func (*CancelOrderRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{21}
|
|
}
|
|
|
|
func (m *CancelOrderRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CancelOrderRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CancelOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CancelOrderRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CancelOrderRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CancelOrderRequest.Merge(m, src)
|
|
}
|
|
func (m *CancelOrderRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CancelOrderRequest.Size(m)
|
|
}
|
|
func (m *CancelOrderRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CancelOrderRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CancelOrderRequest proto.InternalMessageInfo
|
|
|
|
func (m *CancelOrderRequest) GetOrderNonce() []byte {
|
|
if m != nil {
|
|
return m.OrderNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CancelOrderResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CancelOrderResponse) Reset() { *m = CancelOrderResponse{} }
|
|
func (m *CancelOrderResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CancelOrderResponse) ProtoMessage() {}
|
|
func (*CancelOrderResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{22}
|
|
}
|
|
|
|
func (m *CancelOrderResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CancelOrderResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CancelOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CancelOrderResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CancelOrderResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CancelOrderResponse.Merge(m, src)
|
|
}
|
|
func (m *CancelOrderResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CancelOrderResponse.Size(m)
|
|
}
|
|
func (m *CancelOrderResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CancelOrderResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CancelOrderResponse proto.InternalMessageInfo
|
|
|
|
type Order struct {
|
|
//
|
|
//The trader's account key of the account that is used for the order.
|
|
TraderKey []byte `protobuf:"bytes,1,opt,name=trader_key,json=traderKey,proto3" json:"trader_key,omitempty"`
|
|
//
|
|
//Fixed order rate in parts per billion.
|
|
RateFixed uint32 `protobuf:"varint,2,opt,name=rate_fixed,json=rateFixed,proto3" json:"rate_fixed,omitempty"`
|
|
//
|
|
//Order amount in satoshis.
|
|
Amt uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
|
|
//
|
|
//Maximum fee rate the trader is willing to pay for the batch transaction,
|
|
//expressed in satoshis per 1000 weight units (sat/KW).
|
|
MaxBatchFeeRateSatPerKw uint64 `protobuf:"varint,4,opt,name=max_batch_fee_rate_sat_per_kw,json=maxBatchFeeRateSatPerKw,proto3" json:"max_batch_fee_rate_sat_per_kw,omitempty"`
|
|
//
|
|
//Order nonce, acts as unique order identifier.
|
|
OrderNonce []byte `protobuf:"bytes,5,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
|
|
//
|
|
//The state the order currently is in.
|
|
State OrderState `protobuf:"varint,6,opt,name=state,proto3,enum=poolrpc.OrderState" json:"state,omitempty"`
|
|
//
|
|
//The number of order units the amount corresponds to.
|
|
Units uint32 `protobuf:"varint,7,opt,name=units,proto3" json:"units,omitempty"`
|
|
//
|
|
//The number of currently unfilled units of this order. This will be equal to
|
|
//the total amount of units until the order has reached the state PARTIAL_FILL
|
|
//or EXECUTED.
|
|
UnitsUnfulfilled uint32 `protobuf:"varint,8,opt,name=units_unfulfilled,json=unitsUnfulfilled,proto3" json:"units_unfulfilled,omitempty"`
|
|
// The value reserved from the account by this order to ensure the account
|
|
// can pay execution and chain fees in case it gets matched.
|
|
ReservedValueSat uint64 `protobuf:"varint,9,opt,name=reserved_value_sat,json=reservedValueSat,proto3" json:"reserved_value_sat,omitempty"`
|
|
// The unix timestamp in nanoseconds the order was first created/submitted.
|
|
CreationTimestampNs uint64 `protobuf:"varint,10,opt,name=creation_timestamp_ns,json=creationTimestampNs,proto3" json:"creation_timestamp_ns,omitempty"`
|
|
//
|
|
//A list of events that were emitted for this order. This field is only set
|
|
//when the verbose flag is set to true in the request.
|
|
Events []*OrderEvent `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"`
|
|
// The minimum number of order units that must be matched per order pair.
|
|
MinUnitsMatch uint32 `protobuf:"varint,12,opt,name=min_units_match,json=minUnitsMatch,proto3" json:"min_units_match,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Order) Reset() { *m = Order{} }
|
|
func (m *Order) String() string { return proto.CompactTextString(m) }
|
|
func (*Order) ProtoMessage() {}
|
|
func (*Order) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{23}
|
|
}
|
|
|
|
func (m *Order) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Order.Unmarshal(m, b)
|
|
}
|
|
func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Order.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Order) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Order.Merge(m, src)
|
|
}
|
|
func (m *Order) XXX_Size() int {
|
|
return xxx_messageInfo_Order.Size(m)
|
|
}
|
|
func (m *Order) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Order.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Order proto.InternalMessageInfo
|
|
|
|
func (m *Order) GetTraderKey() []byte {
|
|
if m != nil {
|
|
return m.TraderKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Order) GetRateFixed() uint32 {
|
|
if m != nil {
|
|
return m.RateFixed
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetAmt() uint64 {
|
|
if m != nil {
|
|
return m.Amt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetMaxBatchFeeRateSatPerKw() uint64 {
|
|
if m != nil {
|
|
return m.MaxBatchFeeRateSatPerKw
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetOrderNonce() []byte {
|
|
if m != nil {
|
|
return m.OrderNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Order) GetState() OrderState {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return OrderState_ORDER_SUBMITTED
|
|
}
|
|
|
|
func (m *Order) GetUnits() uint32 {
|
|
if m != nil {
|
|
return m.Units
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetUnitsUnfulfilled() uint32 {
|
|
if m != nil {
|
|
return m.UnitsUnfulfilled
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetReservedValueSat() uint64 {
|
|
if m != nil {
|
|
return m.ReservedValueSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetCreationTimestampNs() uint64 {
|
|
if m != nil {
|
|
return m.CreationTimestampNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Order) GetEvents() []*OrderEvent {
|
|
if m != nil {
|
|
return m.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Order) GetMinUnitsMatch() uint32 {
|
|
if m != nil {
|
|
return m.MinUnitsMatch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Bid struct {
|
|
//
|
|
//The common fields shared between both ask and bid order types.
|
|
Details *Order `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
|
|
//
|
|
//Required number of blocks that a channel opened as a result of this bid
|
|
//should be kept open.
|
|
LeaseDurationBlocks uint32 `protobuf:"varint,2,opt,name=lease_duration_blocks,json=leaseDurationBlocks,proto3" json:"lease_duration_blocks,omitempty"`
|
|
//
|
|
//The version of the order format that is used. Will be increased once new
|
|
//features are added.
|
|
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
//
|
|
//The minium node tier this order should be matched with. Only asks backed by
|
|
//a node this tier or higher will be eligible for matching with this bid.
|
|
MinNodeTier NodeTier `protobuf:"varint,4,opt,name=min_node_tier,json=minNodeTier,proto3,enum=poolrpc.NodeTier" json:"min_node_tier,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Bid) Reset() { *m = Bid{} }
|
|
func (m *Bid) String() string { return proto.CompactTextString(m) }
|
|
func (*Bid) ProtoMessage() {}
|
|
func (*Bid) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{24}
|
|
}
|
|
|
|
func (m *Bid) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Bid.Unmarshal(m, b)
|
|
}
|
|
func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Bid.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Bid) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Bid.Merge(m, src)
|
|
}
|
|
func (m *Bid) XXX_Size() int {
|
|
return xxx_messageInfo_Bid.Size(m)
|
|
}
|
|
func (m *Bid) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Bid.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Bid proto.InternalMessageInfo
|
|
|
|
func (m *Bid) GetDetails() *Order {
|
|
if m != nil {
|
|
return m.Details
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Bid) GetLeaseDurationBlocks() uint32 {
|
|
if m != nil {
|
|
return m.LeaseDurationBlocks
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Bid) GetVersion() uint32 {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Bid) GetMinNodeTier() NodeTier {
|
|
if m != nil {
|
|
return m.MinNodeTier
|
|
}
|
|
return NodeTier_TIER_DEFAULT
|
|
}
|
|
|
|
type Ask struct {
|
|
//
|
|
//The common fields shared between both ask and bid order types.
|
|
Details *Order `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
|
|
//
|
|
//The number of blocks the liquidity provider is willing to provide the
|
|
//channel funds for.
|
|
LeaseDurationBlocks uint32 `protobuf:"varint,2,opt,name=lease_duration_blocks,json=leaseDurationBlocks,proto3" json:"lease_duration_blocks,omitempty"`
|
|
//
|
|
//The version of the order format that is used. Will be increased once new
|
|
//features are added.
|
|
Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Ask) Reset() { *m = Ask{} }
|
|
func (m *Ask) String() string { return proto.CompactTextString(m) }
|
|
func (*Ask) ProtoMessage() {}
|
|
func (*Ask) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{25}
|
|
}
|
|
|
|
func (m *Ask) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Ask.Unmarshal(m, b)
|
|
}
|
|
func (m *Ask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Ask.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Ask) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Ask.Merge(m, src)
|
|
}
|
|
func (m *Ask) XXX_Size() int {
|
|
return xxx_messageInfo_Ask.Size(m)
|
|
}
|
|
func (m *Ask) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Ask.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Ask proto.InternalMessageInfo
|
|
|
|
func (m *Ask) GetDetails() *Order {
|
|
if m != nil {
|
|
return m.Details
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Ask) GetLeaseDurationBlocks() uint32 {
|
|
if m != nil {
|
|
return m.LeaseDurationBlocks
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Ask) GetVersion() uint32 {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OrderEvent struct {
|
|
//
|
|
//The unix timestamp in nanoseconds the event was emitted at. This is the
|
|
//primary key of the event and is unique across the database.
|
|
TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
|
|
// The human readable representation of the event.
|
|
EventStr string `protobuf:"bytes,2,opt,name=event_str,json=eventStr,proto3" json:"event_str,omitempty"`
|
|
// Types that are valid to be assigned to Event:
|
|
// *OrderEvent_StateChange
|
|
// *OrderEvent_Matched
|
|
Event isOrderEvent_Event `protobuf_oneof:"event"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *OrderEvent) Reset() { *m = OrderEvent{} }
|
|
func (m *OrderEvent) String() string { return proto.CompactTextString(m) }
|
|
func (*OrderEvent) ProtoMessage() {}
|
|
func (*OrderEvent) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{26}
|
|
}
|
|
|
|
func (m *OrderEvent) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_OrderEvent.Unmarshal(m, b)
|
|
}
|
|
func (m *OrderEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_OrderEvent.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *OrderEvent) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_OrderEvent.Merge(m, src)
|
|
}
|
|
func (m *OrderEvent) XXX_Size() int {
|
|
return xxx_messageInfo_OrderEvent.Size(m)
|
|
}
|
|
func (m *OrderEvent) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_OrderEvent.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_OrderEvent proto.InternalMessageInfo
|
|
|
|
func (m *OrderEvent) GetTimestampNs() int64 {
|
|
if m != nil {
|
|
return m.TimestampNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *OrderEvent) GetEventStr() string {
|
|
if m != nil {
|
|
return m.EventStr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isOrderEvent_Event interface {
|
|
isOrderEvent_Event()
|
|
}
|
|
|
|
type OrderEvent_StateChange struct {
|
|
StateChange *UpdatedEvent `protobuf:"bytes,3,opt,name=state_change,json=stateChange,proto3,oneof"`
|
|
}
|
|
|
|
type OrderEvent_Matched struct {
|
|
Matched *MatchEvent `protobuf:"bytes,4,opt,name=matched,proto3,oneof"`
|
|
}
|
|
|
|
func (*OrderEvent_StateChange) isOrderEvent_Event() {}
|
|
|
|
func (*OrderEvent_Matched) isOrderEvent_Event() {}
|
|
|
|
func (m *OrderEvent) GetEvent() isOrderEvent_Event {
|
|
if m != nil {
|
|
return m.Event
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *OrderEvent) GetStateChange() *UpdatedEvent {
|
|
if x, ok := m.GetEvent().(*OrderEvent_StateChange); ok {
|
|
return x.StateChange
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *OrderEvent) GetMatched() *MatchEvent {
|
|
if x, ok := m.GetEvent().(*OrderEvent_Matched); ok {
|
|
return x.Matched
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*OrderEvent) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*OrderEvent_StateChange)(nil),
|
|
(*OrderEvent_Matched)(nil),
|
|
}
|
|
}
|
|
|
|
type UpdatedEvent struct {
|
|
//
|
|
//The state of the order previous to the change. This is what the state
|
|
//changed from.
|
|
PreviousState OrderState `protobuf:"varint,1,opt,name=previous_state,json=previousState,proto3,enum=poolrpc.OrderState" json:"previous_state,omitempty"`
|
|
//
|
|
//The new state of the order after the change. This is what the state changed
|
|
//to.
|
|
NewState OrderState `protobuf:"varint,2,opt,name=new_state,json=newState,proto3,enum=poolrpc.OrderState" json:"new_state,omitempty"`
|
|
// The units that were filled at the time of the event.
|
|
UnitsFilled uint32 `protobuf:"varint,3,opt,name=units_filled,json=unitsFilled,proto3" json:"units_filled,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UpdatedEvent) Reset() { *m = UpdatedEvent{} }
|
|
func (m *UpdatedEvent) String() string { return proto.CompactTextString(m) }
|
|
func (*UpdatedEvent) ProtoMessage() {}
|
|
func (*UpdatedEvent) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{27}
|
|
}
|
|
|
|
func (m *UpdatedEvent) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UpdatedEvent.Unmarshal(m, b)
|
|
}
|
|
func (m *UpdatedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UpdatedEvent.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *UpdatedEvent) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UpdatedEvent.Merge(m, src)
|
|
}
|
|
func (m *UpdatedEvent) XXX_Size() int {
|
|
return xxx_messageInfo_UpdatedEvent.Size(m)
|
|
}
|
|
func (m *UpdatedEvent) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UpdatedEvent.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UpdatedEvent proto.InternalMessageInfo
|
|
|
|
func (m *UpdatedEvent) GetPreviousState() OrderState {
|
|
if m != nil {
|
|
return m.PreviousState
|
|
}
|
|
return OrderState_ORDER_SUBMITTED
|
|
}
|
|
|
|
func (m *UpdatedEvent) GetNewState() OrderState {
|
|
if m != nil {
|
|
return m.NewState
|
|
}
|
|
return OrderState_ORDER_SUBMITTED
|
|
}
|
|
|
|
func (m *UpdatedEvent) GetUnitsFilled() uint32 {
|
|
if m != nil {
|
|
return m.UnitsFilled
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MatchEvent struct {
|
|
// The state of the match making process the order went through.
|
|
MatchState MatchState `protobuf:"varint,1,opt,name=match_state,json=matchState,proto3,enum=poolrpc.MatchState" json:"match_state,omitempty"`
|
|
// The number of units that would be (or were) filled with this match.
|
|
UnitsFilled uint32 `protobuf:"varint,2,opt,name=units_filled,json=unitsFilled,proto3" json:"units_filled,omitempty"`
|
|
// The nonce of the order we were matched to.
|
|
MatchedOrder []byte `protobuf:"bytes,3,opt,name=matched_order,json=matchedOrder,proto3" json:"matched_order,omitempty"`
|
|
//
|
|
//The reason why the trader daemon rejected the order. Is only set if
|
|
//match_state is set to REJECTED.
|
|
RejectReason MatchRejectReason `protobuf:"varint,4,opt,name=reject_reason,json=rejectReason,proto3,enum=poolrpc.MatchRejectReason" json:"reject_reason,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MatchEvent) Reset() { *m = MatchEvent{} }
|
|
func (m *MatchEvent) String() string { return proto.CompactTextString(m) }
|
|
func (*MatchEvent) ProtoMessage() {}
|
|
func (*MatchEvent) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{28}
|
|
}
|
|
|
|
func (m *MatchEvent) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MatchEvent.Unmarshal(m, b)
|
|
}
|
|
func (m *MatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MatchEvent.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *MatchEvent) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MatchEvent.Merge(m, src)
|
|
}
|
|
func (m *MatchEvent) XXX_Size() int {
|
|
return xxx_messageInfo_MatchEvent.Size(m)
|
|
}
|
|
func (m *MatchEvent) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MatchEvent.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MatchEvent proto.InternalMessageInfo
|
|
|
|
func (m *MatchEvent) GetMatchState() MatchState {
|
|
if m != nil {
|
|
return m.MatchState
|
|
}
|
|
return MatchState_PREPARE
|
|
}
|
|
|
|
func (m *MatchEvent) GetUnitsFilled() uint32 {
|
|
if m != nil {
|
|
return m.UnitsFilled
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MatchEvent) GetMatchedOrder() []byte {
|
|
if m != nil {
|
|
return m.MatchedOrder
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *MatchEvent) GetRejectReason() MatchRejectReason {
|
|
if m != nil {
|
|
return m.RejectReason
|
|
}
|
|
return MatchRejectReason_NONE
|
|
}
|
|
|
|
type RecoverAccountsRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RecoverAccountsRequest) Reset() { *m = RecoverAccountsRequest{} }
|
|
func (m *RecoverAccountsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RecoverAccountsRequest) ProtoMessage() {}
|
|
func (*RecoverAccountsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{29}
|
|
}
|
|
|
|
func (m *RecoverAccountsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RecoverAccountsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RecoverAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RecoverAccountsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RecoverAccountsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RecoverAccountsRequest.Merge(m, src)
|
|
}
|
|
func (m *RecoverAccountsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RecoverAccountsRequest.Size(m)
|
|
}
|
|
func (m *RecoverAccountsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RecoverAccountsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RecoverAccountsRequest proto.InternalMessageInfo
|
|
|
|
type RecoverAccountsResponse struct {
|
|
// The number of accounts that were recovered.
|
|
NumRecoveredAccounts uint32 `protobuf:"varint,1,opt,name=num_recovered_accounts,json=numRecoveredAccounts,proto3" json:"num_recovered_accounts,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RecoverAccountsResponse) Reset() { *m = RecoverAccountsResponse{} }
|
|
func (m *RecoverAccountsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RecoverAccountsResponse) ProtoMessage() {}
|
|
func (*RecoverAccountsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{30}
|
|
}
|
|
|
|
func (m *RecoverAccountsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RecoverAccountsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RecoverAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RecoverAccountsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RecoverAccountsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RecoverAccountsResponse.Merge(m, src)
|
|
}
|
|
func (m *RecoverAccountsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RecoverAccountsResponse.Size(m)
|
|
}
|
|
func (m *RecoverAccountsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RecoverAccountsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RecoverAccountsResponse proto.InternalMessageInfo
|
|
|
|
func (m *RecoverAccountsResponse) GetNumRecoveredAccounts() uint32 {
|
|
if m != nil {
|
|
return m.NumRecoveredAccounts
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AuctionFeeRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AuctionFeeRequest) Reset() { *m = AuctionFeeRequest{} }
|
|
func (m *AuctionFeeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AuctionFeeRequest) ProtoMessage() {}
|
|
func (*AuctionFeeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{31}
|
|
}
|
|
|
|
func (m *AuctionFeeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AuctionFeeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AuctionFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AuctionFeeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AuctionFeeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AuctionFeeRequest.Merge(m, src)
|
|
}
|
|
func (m *AuctionFeeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AuctionFeeRequest.Size(m)
|
|
}
|
|
func (m *AuctionFeeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AuctionFeeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AuctionFeeRequest proto.InternalMessageInfo
|
|
|
|
type AuctionFeeResponse struct {
|
|
//
|
|
//The execution fee charged per matched order.
|
|
ExecutionFee *ExecutionFee `protobuf:"bytes,1,opt,name=execution_fee,json=executionFee,proto3" json:"execution_fee,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AuctionFeeResponse) Reset() { *m = AuctionFeeResponse{} }
|
|
func (m *AuctionFeeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AuctionFeeResponse) ProtoMessage() {}
|
|
func (*AuctionFeeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{32}
|
|
}
|
|
|
|
func (m *AuctionFeeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AuctionFeeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *AuctionFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AuctionFeeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AuctionFeeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AuctionFeeResponse.Merge(m, src)
|
|
}
|
|
func (m *AuctionFeeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_AuctionFeeResponse.Size(m)
|
|
}
|
|
func (m *AuctionFeeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AuctionFeeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AuctionFeeResponse proto.InternalMessageInfo
|
|
|
|
func (m *AuctionFeeResponse) GetExecutionFee() *ExecutionFee {
|
|
if m != nil {
|
|
return m.ExecutionFee
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Lease struct {
|
|
// The outpoint of the channel created.
|
|
ChannelPoint *OutPoint `protobuf:"bytes,1,opt,name=channel_point,json=channelPoint,proto3" json:"channel_point,omitempty"`
|
|
// The amount, in satoshis, of the channel created.
|
|
ChannelAmtSat uint64 `protobuf:"varint,2,opt,name=channel_amt_sat,json=channelAmtSat,proto3" json:"channel_amt_sat,omitempty"`
|
|
// The intended duration, in blocks, of the channel created.
|
|
ChannelDurationBlocks uint32 `protobuf:"varint,3,opt,name=channel_duration_blocks,json=channelDurationBlocks,proto3" json:"channel_duration_blocks,omitempty"`
|
|
// The absolute height that this channel lease expires.
|
|
ChannelLeaseExpiry uint32 `protobuf:"varint,4,opt,name=channel_lease_expiry,json=channelLeaseExpiry,proto3" json:"channel_lease_expiry,omitempty"`
|
|
//
|
|
//The premium, in satoshis, either paid or received for the offered liquidity.
|
|
PremiumSat uint64 `protobuf:"varint,5,opt,name=premium_sat,json=premiumSat,proto3" json:"premium_sat,omitempty"`
|
|
//
|
|
//The execution fee, in satoshis, charged by the auctioneer for the channel
|
|
//created.
|
|
ExecutionFeeSat uint64 `protobuf:"varint,6,opt,name=execution_fee_sat,json=executionFeeSat,proto3" json:"execution_fee_sat,omitempty"`
|
|
//
|
|
//The fee, in satoshis, charged by the auctioneer for the batch execution
|
|
//transaction that created this lease.
|
|
ChainFeeSat uint64 `protobuf:"varint,7,opt,name=chain_fee_sat,json=chainFeeSat,proto3" json:"chain_fee_sat,omitempty"`
|
|
//
|
|
//The actual fixed rate expressed in parts per billionth this lease was
|
|
//bought/sold at.
|
|
ClearingRatePrice uint64 `protobuf:"varint,8,opt,name=clearing_rate_price,json=clearingRatePrice,proto3" json:"clearing_rate_price,omitempty"`
|
|
//
|
|
//The actual fixed rate of the bid/ask, this should always be 'better' than
|
|
//the clearing_rate_price.
|
|
OrderFixedRate uint64 `protobuf:"varint,9,opt,name=order_fixed_rate,json=orderFixedRate,proto3" json:"order_fixed_rate,omitempty"`
|
|
// The order executed that resulted in the channel created.
|
|
OrderNonce []byte `protobuf:"bytes,10,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
|
|
// Whether this channel was purchased from another trader or not.
|
|
Purchased bool `protobuf:"varint,11,opt,name=purchased,proto3" json:"purchased,omitempty"`
|
|
// The pubkey of the node that this channel was bought/sold from.
|
|
ChannelRemoteNodeKey []byte `protobuf:"bytes,12,opt,name=channel_remote_node_key,json=channelRemoteNodeKey,proto3" json:"channel_remote_node_key,omitempty"`
|
|
// The tier of the node that this channel was bought/sold from.
|
|
ChannelNodeTier NodeTier `protobuf:"varint,13,opt,name=channel_node_tier,json=channelNodeTier,proto3,enum=poolrpc.NodeTier" json:"channel_node_tier,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Lease) Reset() { *m = Lease{} }
|
|
func (m *Lease) String() string { return proto.CompactTextString(m) }
|
|
func (*Lease) ProtoMessage() {}
|
|
func (*Lease) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{33}
|
|
}
|
|
|
|
func (m *Lease) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Lease.Unmarshal(m, b)
|
|
}
|
|
func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Lease.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Lease) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Lease.Merge(m, src)
|
|
}
|
|
func (m *Lease) XXX_Size() int {
|
|
return xxx_messageInfo_Lease.Size(m)
|
|
}
|
|
func (m *Lease) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Lease.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Lease proto.InternalMessageInfo
|
|
|
|
func (m *Lease) GetChannelPoint() *OutPoint {
|
|
if m != nil {
|
|
return m.ChannelPoint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Lease) GetChannelAmtSat() uint64 {
|
|
if m != nil {
|
|
return m.ChannelAmtSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetChannelDurationBlocks() uint32 {
|
|
if m != nil {
|
|
return m.ChannelDurationBlocks
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetChannelLeaseExpiry() uint32 {
|
|
if m != nil {
|
|
return m.ChannelLeaseExpiry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetPremiumSat() uint64 {
|
|
if m != nil {
|
|
return m.PremiumSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetExecutionFeeSat() uint64 {
|
|
if m != nil {
|
|
return m.ExecutionFeeSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetChainFeeSat() uint64 {
|
|
if m != nil {
|
|
return m.ChainFeeSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetClearingRatePrice() uint64 {
|
|
if m != nil {
|
|
return m.ClearingRatePrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetOrderFixedRate() uint64 {
|
|
if m != nil {
|
|
return m.OrderFixedRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Lease) GetOrderNonce() []byte {
|
|
if m != nil {
|
|
return m.OrderNonce
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Lease) GetPurchased() bool {
|
|
if m != nil {
|
|
return m.Purchased
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *Lease) GetChannelRemoteNodeKey() []byte {
|
|
if m != nil {
|
|
return m.ChannelRemoteNodeKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Lease) GetChannelNodeTier() NodeTier {
|
|
if m != nil {
|
|
return m.ChannelNodeTier
|
|
}
|
|
return NodeTier_TIER_DEFAULT
|
|
}
|
|
|
|
type LeasesRequest struct {
|
|
//
|
|
//An optional list of batches to retrieve the leases of. If empty, leases
|
|
//throughout all batches are returned.
|
|
BatchIds [][]byte `protobuf:"bytes,1,rep,name=batch_ids,json=batchIds,proto3" json:"batch_ids,omitempty"`
|
|
//
|
|
//An optional list of accounts to retrieve the leases of. If empty, leases
|
|
//for all accounts are returned.
|
|
Accounts [][]byte `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LeasesRequest) Reset() { *m = LeasesRequest{} }
|
|
func (m *LeasesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*LeasesRequest) ProtoMessage() {}
|
|
func (*LeasesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{34}
|
|
}
|
|
|
|
func (m *LeasesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LeasesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *LeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LeasesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LeasesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LeasesRequest.Merge(m, src)
|
|
}
|
|
func (m *LeasesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LeasesRequest.Size(m)
|
|
}
|
|
func (m *LeasesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LeasesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LeasesRequest proto.InternalMessageInfo
|
|
|
|
func (m *LeasesRequest) GetBatchIds() [][]byte {
|
|
if m != nil {
|
|
return m.BatchIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LeasesRequest) GetAccounts() [][]byte {
|
|
if m != nil {
|
|
return m.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LeasesResponse struct {
|
|
// The relevant list of leases purchased or sold within the auction.
|
|
Leases []*Lease `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases,omitempty"`
|
|
// The total amount of satoshis earned from the leases returned.
|
|
TotalAmtEarnedSat uint64 `protobuf:"varint,2,opt,name=total_amt_earned_sat,json=totalAmtEarnedSat,proto3" json:"total_amt_earned_sat,omitempty"`
|
|
// The total amount of satoshis paid for the leases returned.
|
|
TotalAmtPaidSat uint64 `protobuf:"varint,3,opt,name=total_amt_paid_sat,json=totalAmtPaidSat,proto3" json:"total_amt_paid_sat,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LeasesResponse) Reset() { *m = LeasesResponse{} }
|
|
func (m *LeasesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LeasesResponse) ProtoMessage() {}
|
|
func (*LeasesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{35}
|
|
}
|
|
|
|
func (m *LeasesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LeasesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *LeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LeasesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LeasesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LeasesResponse.Merge(m, src)
|
|
}
|
|
func (m *LeasesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_LeasesResponse.Size(m)
|
|
}
|
|
func (m *LeasesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LeasesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LeasesResponse proto.InternalMessageInfo
|
|
|
|
func (m *LeasesResponse) GetLeases() []*Lease {
|
|
if m != nil {
|
|
return m.Leases
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LeasesResponse) GetTotalAmtEarnedSat() uint64 {
|
|
if m != nil {
|
|
return m.TotalAmtEarnedSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LeasesResponse) GetTotalAmtPaidSat() uint64 {
|
|
if m != nil {
|
|
return m.TotalAmtPaidSat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TokensRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TokensRequest) Reset() { *m = TokensRequest{} }
|
|
func (m *TokensRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*TokensRequest) ProtoMessage() {}
|
|
func (*TokensRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{36}
|
|
}
|
|
|
|
func (m *TokensRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TokensRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *TokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TokensRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TokensRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TokensRequest.Merge(m, src)
|
|
}
|
|
func (m *TokensRequest) XXX_Size() int {
|
|
return xxx_messageInfo_TokensRequest.Size(m)
|
|
}
|
|
func (m *TokensRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TokensRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TokensRequest proto.InternalMessageInfo
|
|
|
|
type TokensResponse struct {
|
|
//*
|
|
//List of all tokens the daemon knows of, including old/expired tokens.
|
|
Tokens []*LsatToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TokensResponse) Reset() { *m = TokensResponse{} }
|
|
func (m *TokensResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*TokensResponse) ProtoMessage() {}
|
|
func (*TokensResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{37}
|
|
}
|
|
|
|
func (m *TokensResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TokensResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *TokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TokensResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TokensResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TokensResponse.Merge(m, src)
|
|
}
|
|
func (m *TokensResponse) XXX_Size() int {
|
|
return xxx_messageInfo_TokensResponse.Size(m)
|
|
}
|
|
func (m *TokensResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TokensResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TokensResponse proto.InternalMessageInfo
|
|
|
|
func (m *TokensResponse) GetTokens() []*LsatToken {
|
|
if m != nil {
|
|
return m.Tokens
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LsatToken struct {
|
|
//*
|
|
//The base macaroon that was baked by the auth server.
|
|
BaseMacaroon []byte `protobuf:"bytes,1,opt,name=base_macaroon,json=baseMacaroon,proto3" json:"base_macaroon,omitempty"`
|
|
//*
|
|
//The payment hash of the payment that was paid to obtain the token.
|
|
PaymentHash []byte `protobuf:"bytes,2,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
|
//*
|
|
//The preimage of the payment hash, knowledge of this is proof that the
|
|
//payment has been paid. If the preimage is set to all zeros, this means the
|
|
//payment is still pending and the token is not yet fully valid.
|
|
PaymentPreimage []byte `protobuf:"bytes,3,opt,name=payment_preimage,json=paymentPreimage,proto3" json:"payment_preimage,omitempty"`
|
|
//*
|
|
//The amount of millisatoshis that was paid to get the token.
|
|
AmountPaidMsat int64 `protobuf:"varint,4,opt,name=amount_paid_msat,json=amountPaidMsat,proto3" json:"amount_paid_msat,omitempty"`
|
|
//*
|
|
//The amount of millisatoshis paid in routing fee to pay for the token.
|
|
RoutingFeePaidMsat int64 `protobuf:"varint,5,opt,name=routing_fee_paid_msat,json=routingFeePaidMsat,proto3" json:"routing_fee_paid_msat,omitempty"`
|
|
//*
|
|
//The creation time of the token as UNIX timestamp in seconds.
|
|
TimeCreated int64 `protobuf:"varint,6,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"`
|
|
//*
|
|
//Indicates whether the token is expired or still valid.
|
|
Expired bool `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"`
|
|
//*
|
|
//Identifying attribute of this token in the store. Currently represents the
|
|
//file name of the token where it's stored on the file system.
|
|
StorageName string `protobuf:"bytes,8,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LsatToken) Reset() { *m = LsatToken{} }
|
|
func (m *LsatToken) String() string { return proto.CompactTextString(m) }
|
|
func (*LsatToken) ProtoMessage() {}
|
|
func (*LsatToken) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{38}
|
|
}
|
|
|
|
func (m *LsatToken) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LsatToken.Unmarshal(m, b)
|
|
}
|
|
func (m *LsatToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LsatToken.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LsatToken) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LsatToken.Merge(m, src)
|
|
}
|
|
func (m *LsatToken) XXX_Size() int {
|
|
return xxx_messageInfo_LsatToken.Size(m)
|
|
}
|
|
func (m *LsatToken) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LsatToken.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LsatToken proto.InternalMessageInfo
|
|
|
|
func (m *LsatToken) GetBaseMacaroon() []byte {
|
|
if m != nil {
|
|
return m.BaseMacaroon
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LsatToken) GetPaymentHash() []byte {
|
|
if m != nil {
|
|
return m.PaymentHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LsatToken) GetPaymentPreimage() []byte {
|
|
if m != nil {
|
|
return m.PaymentPreimage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *LsatToken) GetAmountPaidMsat() int64 {
|
|
if m != nil {
|
|
return m.AmountPaidMsat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LsatToken) GetRoutingFeePaidMsat() int64 {
|
|
if m != nil {
|
|
return m.RoutingFeePaidMsat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LsatToken) GetTimeCreated() int64 {
|
|
if m != nil {
|
|
return m.TimeCreated
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LsatToken) GetExpired() bool {
|
|
if m != nil {
|
|
return m.Expired
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *LsatToken) GetStorageName() string {
|
|
if m != nil {
|
|
return m.StorageName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LeaseDurationRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LeaseDurationRequest) Reset() { *m = LeaseDurationRequest{} }
|
|
func (m *LeaseDurationRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*LeaseDurationRequest) ProtoMessage() {}
|
|
func (*LeaseDurationRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{39}
|
|
}
|
|
|
|
func (m *LeaseDurationRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LeaseDurationRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *LeaseDurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LeaseDurationRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LeaseDurationRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LeaseDurationRequest.Merge(m, src)
|
|
}
|
|
func (m *LeaseDurationRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LeaseDurationRequest.Size(m)
|
|
}
|
|
func (m *LeaseDurationRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LeaseDurationRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LeaseDurationRequest proto.InternalMessageInfo
|
|
|
|
type LeaseDurationResponse struct {
|
|
LeaseDurations map[uint32]bool `protobuf:"bytes,1,rep,name=lease_durations,json=leaseDurations,proto3" json:"lease_durations,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LeaseDurationResponse) Reset() { *m = LeaseDurationResponse{} }
|
|
func (m *LeaseDurationResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*LeaseDurationResponse) ProtoMessage() {}
|
|
func (*LeaseDurationResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{40}
|
|
}
|
|
|
|
func (m *LeaseDurationResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LeaseDurationResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *LeaseDurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LeaseDurationResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LeaseDurationResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LeaseDurationResponse.Merge(m, src)
|
|
}
|
|
func (m *LeaseDurationResponse) XXX_Size() int {
|
|
return xxx_messageInfo_LeaseDurationResponse.Size(m)
|
|
}
|
|
func (m *LeaseDurationResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LeaseDurationResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LeaseDurationResponse proto.InternalMessageInfo
|
|
|
|
func (m *LeaseDurationResponse) GetLeaseDurations() map[uint32]bool {
|
|
if m != nil {
|
|
return m.LeaseDurations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NodeRatingRequest struct {
|
|
// The target node to obtain ratings information for.
|
|
NodePubkeys [][]byte `protobuf:"bytes,1,rep,name=node_pubkeys,json=nodePubkeys,proto3" json:"node_pubkeys,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodeRatingRequest) Reset() { *m = NodeRatingRequest{} }
|
|
func (m *NodeRatingRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NodeRatingRequest) ProtoMessage() {}
|
|
func (*NodeRatingRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{41}
|
|
}
|
|
|
|
func (m *NodeRatingRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodeRatingRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *NodeRatingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodeRatingRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodeRatingRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeRatingRequest.Merge(m, src)
|
|
}
|
|
func (m *NodeRatingRequest) XXX_Size() int {
|
|
return xxx_messageInfo_NodeRatingRequest.Size(m)
|
|
}
|
|
func (m *NodeRatingRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeRatingRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeRatingRequest proto.InternalMessageInfo
|
|
|
|
func (m *NodeRatingRequest) GetNodePubkeys() [][]byte {
|
|
if m != nil {
|
|
return m.NodePubkeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type NodeRatingResponse struct {
|
|
// A series of node ratings for each of the queried nodes.
|
|
NodeRatings []*NodeRating `protobuf:"bytes,1,rep,name=node_ratings,json=nodeRatings,proto3" json:"node_ratings,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodeRatingResponse) Reset() { *m = NodeRatingResponse{} }
|
|
func (m *NodeRatingResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NodeRatingResponse) ProtoMessage() {}
|
|
func (*NodeRatingResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b8f61804588c75fe, []int{42}
|
|
}
|
|
|
|
func (m *NodeRatingResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodeRatingResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *NodeRatingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodeRatingResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodeRatingResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodeRatingResponse.Merge(m, src)
|
|
}
|
|
func (m *NodeRatingResponse) XXX_Size() int {
|
|
return xxx_messageInfo_NodeRatingResponse.Size(m)
|
|
}
|
|
func (m *NodeRatingResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodeRatingResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodeRatingResponse proto.InternalMessageInfo
|
|
|
|
func (m *NodeRatingResponse) GetNodeRatings() []*NodeRating {
|
|
if m != nil {
|
|
return m.NodeRatings
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("poolrpc.AccountState", AccountState_name, AccountState_value)
|
|
proto.RegisterEnum("poolrpc.MatchState", MatchState_name, MatchState_value)
|
|
proto.RegisterEnum("poolrpc.MatchRejectReason", MatchRejectReason_name, MatchRejectReason_value)
|
|
proto.RegisterType((*InitAccountRequest)(nil), "poolrpc.InitAccountRequest")
|
|
proto.RegisterType((*QuoteAccountRequest)(nil), "poolrpc.QuoteAccountRequest")
|
|
proto.RegisterType((*QuoteAccountResponse)(nil), "poolrpc.QuoteAccountResponse")
|
|
proto.RegisterType((*ListAccountsRequest)(nil), "poolrpc.ListAccountsRequest")
|
|
proto.RegisterType((*ListAccountsResponse)(nil), "poolrpc.ListAccountsResponse")
|
|
proto.RegisterType((*Output)(nil), "poolrpc.Output")
|
|
proto.RegisterType((*OutputWithFee)(nil), "poolrpc.OutputWithFee")
|
|
proto.RegisterType((*OutputsWithImplicitFee)(nil), "poolrpc.OutputsWithImplicitFee")
|
|
proto.RegisterType((*CloseAccountRequest)(nil), "poolrpc.CloseAccountRequest")
|
|
proto.RegisterType((*CloseAccountResponse)(nil), "poolrpc.CloseAccountResponse")
|
|
proto.RegisterType((*WithdrawAccountRequest)(nil), "poolrpc.WithdrawAccountRequest")
|
|
proto.RegisterType((*WithdrawAccountResponse)(nil), "poolrpc.WithdrawAccountResponse")
|
|
proto.RegisterType((*DepositAccountRequest)(nil), "poolrpc.DepositAccountRequest")
|
|
proto.RegisterType((*DepositAccountResponse)(nil), "poolrpc.DepositAccountResponse")
|
|
proto.RegisterType((*BumpAccountFeeRequest)(nil), "poolrpc.BumpAccountFeeRequest")
|
|
proto.RegisterType((*BumpAccountFeeResponse)(nil), "poolrpc.BumpAccountFeeResponse")
|
|
proto.RegisterType((*Account)(nil), "poolrpc.Account")
|
|
proto.RegisterType((*SubmitOrderRequest)(nil), "poolrpc.SubmitOrderRequest")
|
|
proto.RegisterType((*SubmitOrderResponse)(nil), "poolrpc.SubmitOrderResponse")
|
|
proto.RegisterType((*ListOrdersRequest)(nil), "poolrpc.ListOrdersRequest")
|
|
proto.RegisterType((*ListOrdersResponse)(nil), "poolrpc.ListOrdersResponse")
|
|
proto.RegisterType((*CancelOrderRequest)(nil), "poolrpc.CancelOrderRequest")
|
|
proto.RegisterType((*CancelOrderResponse)(nil), "poolrpc.CancelOrderResponse")
|
|
proto.RegisterType((*Order)(nil), "poolrpc.Order")
|
|
proto.RegisterType((*Bid)(nil), "poolrpc.Bid")
|
|
proto.RegisterType((*Ask)(nil), "poolrpc.Ask")
|
|
proto.RegisterType((*OrderEvent)(nil), "poolrpc.OrderEvent")
|
|
proto.RegisterType((*UpdatedEvent)(nil), "poolrpc.UpdatedEvent")
|
|
proto.RegisterType((*MatchEvent)(nil), "poolrpc.MatchEvent")
|
|
proto.RegisterType((*RecoverAccountsRequest)(nil), "poolrpc.RecoverAccountsRequest")
|
|
proto.RegisterType((*RecoverAccountsResponse)(nil), "poolrpc.RecoverAccountsResponse")
|
|
proto.RegisterType((*AuctionFeeRequest)(nil), "poolrpc.AuctionFeeRequest")
|
|
proto.RegisterType((*AuctionFeeResponse)(nil), "poolrpc.AuctionFeeResponse")
|
|
proto.RegisterType((*Lease)(nil), "poolrpc.Lease")
|
|
proto.RegisterType((*LeasesRequest)(nil), "poolrpc.LeasesRequest")
|
|
proto.RegisterType((*LeasesResponse)(nil), "poolrpc.LeasesResponse")
|
|
proto.RegisterType((*TokensRequest)(nil), "poolrpc.TokensRequest")
|
|
proto.RegisterType((*TokensResponse)(nil), "poolrpc.TokensResponse")
|
|
proto.RegisterType((*LsatToken)(nil), "poolrpc.LsatToken")
|
|
proto.RegisterType((*LeaseDurationRequest)(nil), "poolrpc.LeaseDurationRequest")
|
|
proto.RegisterType((*LeaseDurationResponse)(nil), "poolrpc.LeaseDurationResponse")
|
|
proto.RegisterMapType((map[uint32]bool)(nil), "poolrpc.LeaseDurationResponse.LeaseDurationsEntry")
|
|
proto.RegisterType((*NodeRatingRequest)(nil), "poolrpc.NodeRatingRequest")
|
|
proto.RegisterType((*NodeRatingResponse)(nil), "poolrpc.NodeRatingResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("trader.proto", fileDescriptor_b8f61804588c75fe) }
|
|
|
|
var fileDescriptor_b8f61804588c75fe = []byte{
|
|
// 2994 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4b, 0x73, 0x23, 0x49,
|
|
0xf1, 0x77, 0xfb, 0xed, 0xd4, 0xc3, 0x72, 0xc9, 0xaf, 0xd1, 0x8c, 0x77, 0x3c, 0xfd, 0xff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45, 0x1c, 0x62, 0x6b, 0xc4, 0xbb, 0x88, 0x78, 0x8b,
|
|
0x0c, 0xae, 0x63, 0x6c, 0xa2, 0xb7, 0x13, 0xb3, 0xff, 0x87, 0x50, 0x78, 0x8f, 0x8b, 0x7e, 0x23,
|
|
0x99, 0x90, 0xc1, 0x9f, 0x44, 0x99, 0x6e, 0xb5, 0xb2, 0x36, 0x42, 0x1f, 0x17, 0x0c, 0x9d, 0x84,
|
|
0x89, 0x6d, 0xd5, 0xa1, 0x12, 0x0a, 0xb3, 0xaa, 0x11, 0x4f, 0xed, 0x99, 0x69, 0xf2, 0x53, 0x7b,
|
|
0x66, 0x3b, 0xf6, 0x31, 0x01, 0xa6, 0x5b, 0x74, 0x0e, 0xb9, 0x41, 0xeb, 0x91, 0x8e, 0xe0, 0x91,
|
|
0xde, 0x27, 0x75, 0xe0, 0xa3, 0xfd, 0x8d, 0xbd, 0x81, 0x00, 0x6b, 0x64, 0xa5, 0x0f, 0x90, 0x6e,
|
|
0x77, 0x76, 0xbe, 0xf5, 0xd1, 0xab, 0xa7, 0xbe, 0x38, 0xeb, 0xb5, 0x1e, 0xb6, 0xa3, 0x60, 0xbb,
|
|
0xe3, 0x9f, 0x9e, 0x89, 0xd0, 0x0f, 0x4f, 0x3b, 0xac, 0x95, 0x28, 0x69, 0xbd, 0x75, 0x6b, 0x16,
|
|
0xff, 0xc2, 0xfe, 0xce, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x49, 0xe5, 0x32, 0x0b, 0x1f,
|
|
0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// TraderClient is the client API for Trader service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type TraderClient interface {
|
|
//
|
|
//QuoteAccount gets a fee quote to fund an account of the given size with the
|
|
//given confirmation target. If the connected lnd wallet doesn't have enough
|
|
//balance to fund an account of the requested size, an error is returned.
|
|
QuoteAccount(ctx context.Context, in *QuoteAccountRequest, opts ...grpc.CallOption) (*QuoteAccountResponse, error)
|
|
// pool: `accounts new`
|
|
//InitAccount creates a new account with the requested size and expiration,
|
|
//funding it from the wallet of the connected lnd node.
|
|
InitAccount(ctx context.Context, in *InitAccountRequest, opts ...grpc.CallOption) (*Account, error)
|
|
// pool: `accounts list`
|
|
//ListAccounts returns a list of all accounts known to the trader daemon and
|
|
//their current state.
|
|
ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
|
|
// pool: `accounts close`
|
|
//CloseAccount closes an account and returns the funds locked in that account
|
|
//to the connected lnd node's wallet.
|
|
CloseAccount(ctx context.Context, in *CloseAccountRequest, opts ...grpc.CallOption) (*CloseAccountResponse, error)
|
|
// pool: `accounts withdraw`
|
|
//WithdrawAccount splits off parts of the account balance into the specified
|
|
//outputs while recreating the account with a reduced balance.
|
|
WithdrawAccount(ctx context.Context, in *WithdrawAccountRequest, opts ...grpc.CallOption) (*WithdrawAccountResponse, error)
|
|
// pool: `accounts deposit`
|
|
//DepositAccount adds more funds from the connected lnd node's wallet to an
|
|
//account.
|
|
DepositAccount(ctx context.Context, in *DepositAccountRequest, opts ...grpc.CallOption) (*DepositAccountResponse, error)
|
|
// pool: `accounts bumpfee`
|
|
//BumpAccountFee attempts to bump the fee of an account's transaction through
|
|
//child-pays-for-parent (CPFP). Since the CPFP is performed through the
|
|
//backing lnd node, the account transaction must contain an output under its
|
|
//control for a successful bump. If a CPFP has already been performed for an
|
|
//account, and this RPC is invoked again, then a replacing transaction (RBF)
|
|
//of the child will be broadcast.
|
|
BumpAccountFee(ctx context.Context, in *BumpAccountFeeRequest, opts ...grpc.CallOption) (*BumpAccountFeeResponse, error)
|
|
// pool: `accounts recover`
|
|
//RecoverAccounts queries the auction server for this trader daemon's accounts
|
|
//in case we lost our local account database.
|
|
RecoverAccounts(ctx context.Context, in *RecoverAccountsRequest, opts ...grpc.CallOption) (*RecoverAccountsResponse, error)
|
|
// pool: `orders submit`
|
|
//SubmitOrder creates a new ask or bid order and submits for the given account
|
|
//and submits it to the auction server for matching.
|
|
SubmitOrder(ctx context.Context, in *SubmitOrderRequest, opts ...grpc.CallOption) (*SubmitOrderResponse, error)
|
|
// pool: `orders list`
|
|
//ListOrders returns a list of all active and archived orders that are
|
|
//currently known to the trader daemon.
|
|
ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error)
|
|
// pool: `orders cancel`
|
|
//CancelOrder cancels an active order with the auction server to remove it
|
|
//from future matching.
|
|
CancelOrder(ctx context.Context, in *CancelOrderRequest, opts ...grpc.CallOption) (*CancelOrderResponse, error)
|
|
// pool: `auction fee`
|
|
//AuctionFee returns the current auction order execution fee specified by the
|
|
//auction server.
|
|
AuctionFee(ctx context.Context, in *AuctionFeeRequest, opts ...grpc.CallOption) (*AuctionFeeResponse, error)
|
|
// pool: `auction leasedurations`
|
|
//LeaseDurations returns the current set of valid lease duration in the
|
|
//market as is, and also information w.r.t if the market is currently active.
|
|
LeaseDurations(ctx context.Context, in *LeaseDurationRequest, opts ...grpc.CallOption) (*LeaseDurationResponse, error)
|
|
// pool: `auction snapshot`
|
|
//BatchSnapshot returns the snapshot of a past batch identified by its ID.
|
|
BatchSnapshot(ctx context.Context, in *BatchSnapshotRequest, opts ...grpc.CallOption) (*BatchSnapshotResponse, error)
|
|
// pool: `listauth`
|
|
//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
|
|
GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error)
|
|
// pool: `auction leases`
|
|
//Leases returns the list of channels that were either purchased or sold by
|
|
//the trader within the auction.
|
|
Leases(ctx context.Context, in *LeasesRequest, opts ...grpc.CallOption) (*LeasesResponse, error)
|
|
// pool: `auction ratings`
|
|
//Returns the Node Tier information for this target Lightning node, and other
|
|
//related ranking information.
|
|
NodeRatings(ctx context.Context, in *NodeRatingRequest, opts ...grpc.CallOption) (*NodeRatingResponse, error)
|
|
}
|
|
|
|
type traderClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewTraderClient(cc *grpc.ClientConn) TraderClient {
|
|
return &traderClient{cc}
|
|
}
|
|
|
|
func (c *traderClient) QuoteAccount(ctx context.Context, in *QuoteAccountRequest, opts ...grpc.CallOption) (*QuoteAccountResponse, error) {
|
|
out := new(QuoteAccountResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/QuoteAccount", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) InitAccount(ctx context.Context, in *InitAccountRequest, opts ...grpc.CallOption) (*Account, error) {
|
|
out := new(Account)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/InitAccount", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
|
|
out := new(ListAccountsResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/ListAccounts", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) CloseAccount(ctx context.Context, in *CloseAccountRequest, opts ...grpc.CallOption) (*CloseAccountResponse, error) {
|
|
out := new(CloseAccountResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/CloseAccount", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) WithdrawAccount(ctx context.Context, in *WithdrawAccountRequest, opts ...grpc.CallOption) (*WithdrawAccountResponse, error) {
|
|
out := new(WithdrawAccountResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/WithdrawAccount", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) DepositAccount(ctx context.Context, in *DepositAccountRequest, opts ...grpc.CallOption) (*DepositAccountResponse, error) {
|
|
out := new(DepositAccountResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/DepositAccount", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) BumpAccountFee(ctx context.Context, in *BumpAccountFeeRequest, opts ...grpc.CallOption) (*BumpAccountFeeResponse, error) {
|
|
out := new(BumpAccountFeeResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/BumpAccountFee", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) RecoverAccounts(ctx context.Context, in *RecoverAccountsRequest, opts ...grpc.CallOption) (*RecoverAccountsResponse, error) {
|
|
out := new(RecoverAccountsResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/RecoverAccounts", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) SubmitOrder(ctx context.Context, in *SubmitOrderRequest, opts ...grpc.CallOption) (*SubmitOrderResponse, error) {
|
|
out := new(SubmitOrderResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/SubmitOrder", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersResponse, error) {
|
|
out := new(ListOrdersResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/ListOrders", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) CancelOrder(ctx context.Context, in *CancelOrderRequest, opts ...grpc.CallOption) (*CancelOrderResponse, error) {
|
|
out := new(CancelOrderResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/CancelOrder", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) AuctionFee(ctx context.Context, in *AuctionFeeRequest, opts ...grpc.CallOption) (*AuctionFeeResponse, error) {
|
|
out := new(AuctionFeeResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/AuctionFee", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) LeaseDurations(ctx context.Context, in *LeaseDurationRequest, opts ...grpc.CallOption) (*LeaseDurationResponse, error) {
|
|
out := new(LeaseDurationResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/LeaseDurations", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) BatchSnapshot(ctx context.Context, in *BatchSnapshotRequest, opts ...grpc.CallOption) (*BatchSnapshotResponse, error) {
|
|
out := new(BatchSnapshotResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/BatchSnapshot", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error) {
|
|
out := new(TokensResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/GetLsatTokens", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) Leases(ctx context.Context, in *LeasesRequest, opts ...grpc.CallOption) (*LeasesResponse, error) {
|
|
out := new(LeasesResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/Leases", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *traderClient) NodeRatings(ctx context.Context, in *NodeRatingRequest, opts ...grpc.CallOption) (*NodeRatingResponse, error) {
|
|
out := new(NodeRatingResponse)
|
|
err := c.cc.Invoke(ctx, "/poolrpc.Trader/NodeRatings", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// TraderServer is the server API for Trader service.
|
|
type TraderServer interface {
|
|
//
|
|
//QuoteAccount gets a fee quote to fund an account of the given size with the
|
|
//given confirmation target. If the connected lnd wallet doesn't have enough
|
|
//balance to fund an account of the requested size, an error is returned.
|
|
QuoteAccount(context.Context, *QuoteAccountRequest) (*QuoteAccountResponse, error)
|
|
// pool: `accounts new`
|
|
//InitAccount creates a new account with the requested size and expiration,
|
|
//funding it from the wallet of the connected lnd node.
|
|
InitAccount(context.Context, *InitAccountRequest) (*Account, error)
|
|
// pool: `accounts list`
|
|
//ListAccounts returns a list of all accounts known to the trader daemon and
|
|
//their current state.
|
|
ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
|
|
// pool: `accounts close`
|
|
//CloseAccount closes an account and returns the funds locked in that account
|
|
//to the connected lnd node's wallet.
|
|
CloseAccount(context.Context, *CloseAccountRequest) (*CloseAccountResponse, error)
|
|
// pool: `accounts withdraw`
|
|
//WithdrawAccount splits off parts of the account balance into the specified
|
|
//outputs while recreating the account with a reduced balance.
|
|
WithdrawAccount(context.Context, *WithdrawAccountRequest) (*WithdrawAccountResponse, error)
|
|
// pool: `accounts deposit`
|
|
//DepositAccount adds more funds from the connected lnd node's wallet to an
|
|
//account.
|
|
DepositAccount(context.Context, *DepositAccountRequest) (*DepositAccountResponse, error)
|
|
// pool: `accounts bumpfee`
|
|
//BumpAccountFee attempts to bump the fee of an account's transaction through
|
|
//child-pays-for-parent (CPFP). Since the CPFP is performed through the
|
|
//backing lnd node, the account transaction must contain an output under its
|
|
//control for a successful bump. If a CPFP has already been performed for an
|
|
//account, and this RPC is invoked again, then a replacing transaction (RBF)
|
|
//of the child will be broadcast.
|
|
BumpAccountFee(context.Context, *BumpAccountFeeRequest) (*BumpAccountFeeResponse, error)
|
|
// pool: `accounts recover`
|
|
//RecoverAccounts queries the auction server for this trader daemon's accounts
|
|
//in case we lost our local account database.
|
|
RecoverAccounts(context.Context, *RecoverAccountsRequest) (*RecoverAccountsResponse, error)
|
|
// pool: `orders submit`
|
|
//SubmitOrder creates a new ask or bid order and submits for the given account
|
|
//and submits it to the auction server for matching.
|
|
SubmitOrder(context.Context, *SubmitOrderRequest) (*SubmitOrderResponse, error)
|
|
// pool: `orders list`
|
|
//ListOrders returns a list of all active and archived orders that are
|
|
//currently known to the trader daemon.
|
|
ListOrders(context.Context, *ListOrdersRequest) (*ListOrdersResponse, error)
|
|
// pool: `orders cancel`
|
|
//CancelOrder cancels an active order with the auction server to remove it
|
|
//from future matching.
|
|
CancelOrder(context.Context, *CancelOrderRequest) (*CancelOrderResponse, error)
|
|
// pool: `auction fee`
|
|
//AuctionFee returns the current auction order execution fee specified by the
|
|
//auction server.
|
|
AuctionFee(context.Context, *AuctionFeeRequest) (*AuctionFeeResponse, error)
|
|
// pool: `auction leasedurations`
|
|
//LeaseDurations returns the current set of valid lease duration in the
|
|
//market as is, and also information w.r.t if the market is currently active.
|
|
LeaseDurations(context.Context, *LeaseDurationRequest) (*LeaseDurationResponse, error)
|
|
// pool: `auction snapshot`
|
|
//BatchSnapshot returns the snapshot of a past batch identified by its ID.
|
|
BatchSnapshot(context.Context, *BatchSnapshotRequest) (*BatchSnapshotResponse, error)
|
|
// pool: `listauth`
|
|
//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
|
|
GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error)
|
|
// pool: `auction leases`
|
|
//Leases returns the list of channels that were either purchased or sold by
|
|
//the trader within the auction.
|
|
Leases(context.Context, *LeasesRequest) (*LeasesResponse, error)
|
|
// pool: `auction ratings`
|
|
//Returns the Node Tier information for this target Lightning node, and other
|
|
//related ranking information.
|
|
NodeRatings(context.Context, *NodeRatingRequest) (*NodeRatingResponse, error)
|
|
}
|
|
|
|
// UnimplementedTraderServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedTraderServer struct {
|
|
}
|
|
|
|
func (*UnimplementedTraderServer) QuoteAccount(ctx context.Context, req *QuoteAccountRequest) (*QuoteAccountResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method QuoteAccount not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) InitAccount(ctx context.Context, req *InitAccountRequest) (*Account, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InitAccount not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) CloseAccount(ctx context.Context, req *CloseAccountRequest) (*CloseAccountResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CloseAccount not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) WithdrawAccount(ctx context.Context, req *WithdrawAccountRequest) (*WithdrawAccountResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method WithdrawAccount not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) DepositAccount(ctx context.Context, req *DepositAccountRequest) (*DepositAccountResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DepositAccount not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) BumpAccountFee(ctx context.Context, req *BumpAccountFeeRequest) (*BumpAccountFeeResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method BumpAccountFee not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) RecoverAccounts(ctx context.Context, req *RecoverAccountsRequest) (*RecoverAccountsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RecoverAccounts not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) SubmitOrder(ctx context.Context, req *SubmitOrderRequest) (*SubmitOrderResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SubmitOrder not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) ListOrders(ctx context.Context, req *ListOrdersRequest) (*ListOrdersResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListOrders not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) CancelOrder(ctx context.Context, req *CancelOrderRequest) (*CancelOrderResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CancelOrder not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) AuctionFee(ctx context.Context, req *AuctionFeeRequest) (*AuctionFeeResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AuctionFee not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) LeaseDurations(ctx context.Context, req *LeaseDurationRequest) (*LeaseDurationResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method LeaseDurations not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) BatchSnapshot(ctx context.Context, req *BatchSnapshotRequest) (*BatchSnapshotResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method BatchSnapshot not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) GetLsatTokens(ctx context.Context, req *TokensRequest) (*TokensResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLsatTokens not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) Leases(ctx context.Context, req *LeasesRequest) (*LeasesResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Leases not implemented")
|
|
}
|
|
func (*UnimplementedTraderServer) NodeRatings(ctx context.Context, req *NodeRatingRequest) (*NodeRatingResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method NodeRatings not implemented")
|
|
}
|
|
|
|
func RegisterTraderServer(s *grpc.Server, srv TraderServer) {
|
|
s.RegisterService(&_Trader_serviceDesc, srv)
|
|
}
|
|
|
|
func _Trader_QuoteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QuoteAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).QuoteAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/QuoteAccount",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).QuoteAccount(ctx, req.(*QuoteAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_InitAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).InitAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/InitAccount",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).InitAccount(ctx, req.(*InitAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListAccountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).ListAccounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/ListAccounts",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).ListAccounts(ctx, req.(*ListAccountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_CloseAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CloseAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).CloseAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/CloseAccount",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).CloseAccount(ctx, req.(*CloseAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_WithdrawAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WithdrawAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).WithdrawAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/WithdrawAccount",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).WithdrawAccount(ctx, req.(*WithdrawAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_DepositAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DepositAccountRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).DepositAccount(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/DepositAccount",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).DepositAccount(ctx, req.(*DepositAccountRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_BumpAccountFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(BumpAccountFeeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).BumpAccountFee(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/BumpAccountFee",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).BumpAccountFee(ctx, req.(*BumpAccountFeeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_RecoverAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RecoverAccountsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).RecoverAccounts(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/RecoverAccounts",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).RecoverAccounts(ctx, req.(*RecoverAccountsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_SubmitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SubmitOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).SubmitOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/SubmitOrder",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).SubmitOrder(ctx, req.(*SubmitOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_ListOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListOrdersRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).ListOrders(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/ListOrders",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).ListOrders(ctx, req.(*ListOrdersRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_CancelOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).CancelOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/CancelOrder",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).CancelOrder(ctx, req.(*CancelOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_AuctionFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AuctionFeeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).AuctionFee(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/AuctionFee",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).AuctionFee(ctx, req.(*AuctionFeeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_LeaseDurations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LeaseDurationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).LeaseDurations(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/LeaseDurations",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).LeaseDurations(ctx, req.(*LeaseDurationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_BatchSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(BatchSnapshotRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).BatchSnapshot(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/BatchSnapshot",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).BatchSnapshot(ctx, req.(*BatchSnapshotRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_GetLsatTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(TokensRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).GetLsatTokens(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/GetLsatTokens",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).GetLsatTokens(ctx, req.(*TokensRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_Leases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LeasesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).Leases(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/Leases",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).Leases(ctx, req.(*LeasesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trader_NodeRatings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NodeRatingRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(TraderServer).NodeRatings(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/poolrpc.Trader/NodeRatings",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TraderServer).NodeRatings(ctx, req.(*NodeRatingRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Trader_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "poolrpc.Trader",
|
|
HandlerType: (*TraderServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "QuoteAccount",
|
|
Handler: _Trader_QuoteAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "InitAccount",
|
|
Handler: _Trader_InitAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListAccounts",
|
|
Handler: _Trader_ListAccounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "CloseAccount",
|
|
Handler: _Trader_CloseAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "WithdrawAccount",
|
|
Handler: _Trader_WithdrawAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "DepositAccount",
|
|
Handler: _Trader_DepositAccount_Handler,
|
|
},
|
|
{
|
|
MethodName: "BumpAccountFee",
|
|
Handler: _Trader_BumpAccountFee_Handler,
|
|
},
|
|
{
|
|
MethodName: "RecoverAccounts",
|
|
Handler: _Trader_RecoverAccounts_Handler,
|
|
},
|
|
{
|
|
MethodName: "SubmitOrder",
|
|
Handler: _Trader_SubmitOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListOrders",
|
|
Handler: _Trader_ListOrders_Handler,
|
|
},
|
|
{
|
|
MethodName: "CancelOrder",
|
|
Handler: _Trader_CancelOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "AuctionFee",
|
|
Handler: _Trader_AuctionFee_Handler,
|
|
},
|
|
{
|
|
MethodName: "LeaseDurations",
|
|
Handler: _Trader_LeaseDurations_Handler,
|
|
},
|
|
{
|
|
MethodName: "BatchSnapshot",
|
|
Handler: _Trader_BatchSnapshot_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetLsatTokens",
|
|
Handler: _Trader_GetLsatTokens_Handler,
|
|
},
|
|
{
|
|
MethodName: "Leases",
|
|
Handler: _Trader_Leases_Handler,
|
|
},
|
|
{
|
|
MethodName: "NodeRatings",
|
|
Handler: _Trader_NodeRatings_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "trader.proto",
|
|
}
|