looprpc

package
v0.8.0-beta Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 14 Imported by: 7

Documentation

Overview

Package looprpc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var FailureReason_name = map[int32]string{
	0: "FAILURE_REASON_NONE",
	1: "FAILURE_REASON_OFFCHAIN",
	2: "FAILURE_REASON_TIMEOUT",
	3: "FAILURE_REASON_SWEEP_TIMEOUT",
	4: "FAILURE_REASON_INSUFFICIENT_VALUE",
	5: "FAILURE_REASON_TEMPORARY",
	6: "FAILURE_REASON_INCORRECT_AMOUNT",
}
View Source
var FailureReason_value = map[string]int32{
	"FAILURE_REASON_NONE":               0,
	"FAILURE_REASON_OFFCHAIN":           1,
	"FAILURE_REASON_TIMEOUT":            2,
	"FAILURE_REASON_SWEEP_TIMEOUT":      3,
	"FAILURE_REASON_INSUFFICIENT_VALUE": 4,
	"FAILURE_REASON_TEMPORARY":          5,
	"FAILURE_REASON_INCORRECT_AMOUNT":   6,
}
View Source
var ProtocolVersion_name = map[int32]string{
	0: "LEGACY",
	1: "MULTI_LOOP_OUT",
	2: "NATIVE_SEGWIT_LOOP_IN",
	3: "PREIMAGE_PUSH_LOOP_OUT",
	4: "USER_EXPIRY_LOOP_OUT",
}
View Source
var ProtocolVersion_value = map[string]int32{
	"LEGACY":                 0,
	"MULTI_LOOP_OUT":         1,
	"NATIVE_SEGWIT_LOOP_IN":  2,
	"PREIMAGE_PUSH_LOOP_OUT": 3,
	"USER_EXPIRY_LOOP_OUT":   4,
}
View Source
var ServerSwapState_name = map[int32]string{
	0:  "INITIATED",
	1:  "HTLC_PUBLISHED",
	2:  "SUCCESS",
	3:  "FAILED_UNKNOWN",
	4:  "FAILED_NO_HTLC",
	5:  "FAILED_INVALID_HTLC_AMOUNT",
	6:  "FAILED_OFF_CHAIN_TIMEOUT",
	7:  "FAILED_TIMEOUT",
	8:  "FAILED_SWAP_DEADLINE",
	9:  "FAILED_HTLC_PUBLICATION",
	10: "TIMEOUT_PUBLISHED",
	11: "UNEXPECTED_FAILURE",
	12: "HTLC_CONFIRMED",
}
View Source
var ServerSwapState_value = map[string]int32{
	"INITIATED":                  0,
	"HTLC_PUBLISHED":             1,
	"SUCCESS":                    2,
	"FAILED_UNKNOWN":             3,
	"FAILED_NO_HTLC":             4,
	"FAILED_INVALID_HTLC_AMOUNT": 5,
	"FAILED_OFF_CHAIN_TIMEOUT":   6,
	"FAILED_TIMEOUT":             7,
	"FAILED_SWAP_DEADLINE":       8,
	"FAILED_HTLC_PUBLICATION":    9,
	"TIMEOUT_PUBLISHED":          10,
	"UNEXPECTED_FAILURE":         11,
	"HTLC_CONFIRMED":             12,
}
View Source
var SwapState_name = map[int32]string{
	0: "INITIATED",
	1: "PREIMAGE_REVEALED",
	2: "HTLC_PUBLISHED",
	3: "SUCCESS",
	4: "FAILED",
	5: "INVOICE_SETTLED",
}
View Source
var SwapState_value = map[string]int32{
	"INITIATED":         0,
	"PREIMAGE_REVEALED": 1,
	"HTLC_PUBLISHED":    2,
	"SUCCESS":           3,
	"FAILED":            4,
	"INVOICE_SETTLED":   5,
}
View Source
var SwapType_name = map[int32]string{
	0: "LOOP_OUT",
	1: "LOOP_IN",
}
View Source
var SwapType_value = map[string]int32{
	"LOOP_OUT": 0,
	"LOOP_IN":  1,
}

Functions

func RegisterSwapClientHandler

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

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

func RegisterSwapClientHandlerClient

func RegisterSwapClientHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SwapClientClient) error

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

func RegisterSwapClientHandlerFromEndpoint

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

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

func RegisterSwapClientHandlerServer

func RegisterSwapClientHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SwapClientServer) error

RegisterSwapClientHandlerServer registers the http handlers for service SwapClient to "mux". UnaryRPC :call SwapClientServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterSwapClientServer

func RegisterSwapClientServer(s *grpc.Server, srv SwapClientServer)

func RegisterSwapServerServer

func RegisterSwapServerServer(s *grpc.Server, srv SwapServerServer)

Types

type FailureReason

type FailureReason int32
const (
	//
	//FAILURE_REASON_NONE is set when the swap did not fail, it is either in
	//progress or succeeded.
	FailureReason_FAILURE_REASON_NONE FailureReason = 0
	//
	//FAILURE_REASON_OFFCHAIN indicates that a loop out failed because it wasn't
	//possible to find a route for one or both off chain payments that met the fee
	//and timelock limits required.
	FailureReason_FAILURE_REASON_OFFCHAIN FailureReason = 1
	//
	//FAILURE_REASON_TIMEOUT indicates that the swap failed because on chain htlc
	//did not confirm before its expiry, or it confirmed too late for us to reveal
	//our preimage and claim.
	FailureReason_FAILURE_REASON_TIMEOUT FailureReason = 2
	//
	//FAILURE_REASON_SWEEP_TIMEOUT indicates that a loop out permanently failed
	//because the on chain htlc wasn't swept before the server revoked the
	//htlc.
	FailureReason_FAILURE_REASON_SWEEP_TIMEOUT FailureReason = 3
	//
	//FAILURE_REASON_INSUFFICIENT_VALUE indicates that a loop out has failed
	//because the on chain htlc had a lower value than requested.
	FailureReason_FAILURE_REASON_INSUFFICIENT_VALUE FailureReason = 4
	//
	//FAILURE_REASON_TEMPORARY indicates that a swap cannot continue due to an
	//internal error. Manual intervention such as a restart is required.
	FailureReason_FAILURE_REASON_TEMPORARY FailureReason = 5
	//
	//FAILURE_REASON_INCORRECT_AMOUNT indicates that a loop in permanently failed
	//because the amount extended by an external loop in htlc is insufficient.
	FailureReason_FAILURE_REASON_INCORRECT_AMOUNT FailureReason = 6
)

func (FailureReason) EnumDescriptor

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

func (FailureReason) String

func (x FailureReason) String() string

type InQuoteResponse

type InQuoteResponse struct {
	//*
	//The fee that the swap server is charging for the swap.
	SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"`
	//
	//An estimate of the on-chain fee that needs to be paid to publish the HTLC
	//If a miner fee of 0 is returned, it means the external_htlc flag was set for
	//a loop in and the fee estimation was skipped. If a miner fee of -1 is
	//returned, it means lnd's wallet tried to estimate the fee but was unable to
	//create a sample estimation transaction because not enough funds are
	//available. An information message should be shown to the user in this case.
	HtlcPublishFeeSat int64 `protobuf:"varint,3,opt,name=htlc_publish_fee_sat,json=htlcPublishFeeSat,proto3" json:"htlc_publish_fee_sat,omitempty"`
	//*
	//On-chain cltv expiry delta
	CltvDelta            int32    `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InQuoteResponse) Descriptor

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

func (*InQuoteResponse) GetCltvDelta

func (m *InQuoteResponse) GetCltvDelta() int32

func (*InQuoteResponse) GetHtlcPublishFeeSat

func (m *InQuoteResponse) GetHtlcPublishFeeSat() int64

func (*InQuoteResponse) GetSwapFeeSat

func (m *InQuoteResponse) GetSwapFeeSat() int64

func (*InQuoteResponse) ProtoMessage

func (*InQuoteResponse) ProtoMessage()

func (*InQuoteResponse) Reset

func (m *InQuoteResponse) Reset()

func (*InQuoteResponse) String

func (m *InQuoteResponse) String() string

func (*InQuoteResponse) XXX_DiscardUnknown

func (m *InQuoteResponse) XXX_DiscardUnknown()

func (*InQuoteResponse) XXX_Marshal

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

func (*InQuoteResponse) XXX_Merge

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

func (*InQuoteResponse) XXX_Size

func (m *InQuoteResponse) XXX_Size() int

func (*InQuoteResponse) XXX_Unmarshal

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

type InTermsResponse

type InTermsResponse struct {
	//*
	//Minimum swap amount (sat)
	MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	//*
	//Maximum swap amount (sat)
	MaxSwapAmount        int64    `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InTermsResponse) Descriptor

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

func (*InTermsResponse) GetMaxSwapAmount

func (m *InTermsResponse) GetMaxSwapAmount() int64

func (*InTermsResponse) GetMinSwapAmount

func (m *InTermsResponse) GetMinSwapAmount() int64

func (*InTermsResponse) ProtoMessage

func (*InTermsResponse) ProtoMessage()

func (*InTermsResponse) Reset

func (m *InTermsResponse) Reset()

func (*InTermsResponse) String

func (m *InTermsResponse) String() string

func (*InTermsResponse) XXX_DiscardUnknown

func (m *InTermsResponse) XXX_DiscardUnknown()

func (*InTermsResponse) XXX_Marshal

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

func (*InTermsResponse) XXX_Merge

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

func (*InTermsResponse) XXX_Size

func (m *InTermsResponse) XXX_Size() int

func (*InTermsResponse) XXX_Unmarshal

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

type ListSwapsRequest

type ListSwapsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListSwapsRequest) Descriptor

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

func (*ListSwapsRequest) ProtoMessage

func (*ListSwapsRequest) ProtoMessage()

func (*ListSwapsRequest) Reset

func (m *ListSwapsRequest) Reset()

func (*ListSwapsRequest) String

func (m *ListSwapsRequest) String() string

func (*ListSwapsRequest) XXX_DiscardUnknown

func (m *ListSwapsRequest) XXX_DiscardUnknown()

func (*ListSwapsRequest) XXX_Marshal

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

func (*ListSwapsRequest) XXX_Merge

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

func (*ListSwapsRequest) XXX_Size

func (m *ListSwapsRequest) XXX_Size() int

func (*ListSwapsRequest) XXX_Unmarshal

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

type ListSwapsResponse

type ListSwapsResponse struct {
	//*
	//The list of all currently known swaps and their status.
	Swaps                []*SwapStatus `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ListSwapsResponse) Descriptor

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

func (*ListSwapsResponse) GetSwaps

func (m *ListSwapsResponse) GetSwaps() []*SwapStatus

func (*ListSwapsResponse) ProtoMessage

func (*ListSwapsResponse) ProtoMessage()

func (*ListSwapsResponse) Reset

func (m *ListSwapsResponse) Reset()

func (*ListSwapsResponse) String

func (m *ListSwapsResponse) String() string

func (*ListSwapsResponse) XXX_DiscardUnknown

func (m *ListSwapsResponse) XXX_DiscardUnknown()

func (*ListSwapsResponse) XXX_Marshal

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

func (*ListSwapsResponse) XXX_Merge

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

func (*ListSwapsResponse) XXX_Size

func (m *ListSwapsResponse) XXX_Size() int

func (*ListSwapsResponse) XXX_Unmarshal

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

type LoopInRequest

type LoopInRequest struct {
	//*
	//Requested swap amount in sat. This does not include the swap and miner
	//fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//*
	//Maximum we are willing to pay the server for the swap. This value is not
	//disclosed in the swap initiation call, but if the server asks for a
	//higher fee, we abort the swap. Typically this value is taken from the
	//response of the GetQuote call.
	MaxSwapFee int64 `protobuf:"varint,2,opt,name=max_swap_fee,json=maxSwapFee,proto3" json:"max_swap_fee,omitempty"`
	//*
	//Maximum in on-chain fees that we are willing to spend. If we want to
	//publish the on-chain htlc and the fee estimate turns out higher than this
	//value, we cancel the swap.
	//
	//max_miner_fee is typically taken from the response of the GetQuote call.
	MaxMinerFee int64 `protobuf:"varint,3,opt,name=max_miner_fee,json=maxMinerFee,proto3" json:"max_miner_fee,omitempty"`
	//*
	//The last hop to use for the loop in swap. If empty, the last hop is selected
	//based on the lowest routing fee for the swap payment from the server.
	LastHop []byte `protobuf:"bytes,4,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	//*
	//If external_htlc is true, we expect the htlc to be published by an external
	//actor.
	ExternalHtlc bool `protobuf:"varint,5,opt,name=external_htlc,json=externalHtlc,proto3" json:"external_htlc,omitempty"`
	//*
	//The number of blocks that the on chain htlc should confirm within.
	HtlcConfTarget int32 `protobuf:"varint,6,opt,name=htlc_conf_target,json=htlcConfTarget,proto3" json:"htlc_conf_target,omitempty"`
	//
	//An optional label for this swap. This field is limited to 500 characters
	//and may not be one of the reserved values in loop/labels Reserved list.
	Label                string   `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoopInRequest) Descriptor

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

func (*LoopInRequest) GetAmt

func (m *LoopInRequest) GetAmt() int64

func (*LoopInRequest) GetExternalHtlc

func (m *LoopInRequest) GetExternalHtlc() bool

func (*LoopInRequest) GetHtlcConfTarget

func (m *LoopInRequest) GetHtlcConfTarget() int32

func (*LoopInRequest) GetLabel

func (m *LoopInRequest) GetLabel() string

func (*LoopInRequest) GetLastHop

func (m *LoopInRequest) GetLastHop() []byte

func (*LoopInRequest) GetMaxMinerFee

func (m *LoopInRequest) GetMaxMinerFee() int64

func (*LoopInRequest) GetMaxSwapFee

func (m *LoopInRequest) GetMaxSwapFee() int64

func (*LoopInRequest) ProtoMessage

func (*LoopInRequest) ProtoMessage()

func (*LoopInRequest) Reset

func (m *LoopInRequest) Reset()

func (*LoopInRequest) String

func (m *LoopInRequest) String() string

func (*LoopInRequest) XXX_DiscardUnknown

func (m *LoopInRequest) XXX_DiscardUnknown()

func (*LoopInRequest) XXX_Marshal

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

func (*LoopInRequest) XXX_Merge

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

func (*LoopInRequest) XXX_Size

func (m *LoopInRequest) XXX_Size() int

func (*LoopInRequest) XXX_Unmarshal

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

type LoopOutRequest

type LoopOutRequest struct {
	//*
	//Requested swap amount in sat. This does not include the swap and miner fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//*
	//Base58 encoded destination address for the swap.
	Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"`
	//*
	//Maximum off-chain fee in sat that may be paid for swap payment to the server.
	//This limit is applied during path finding. Typically this value is taken
	//from the response of the GetQuote call.
	MaxSwapRoutingFee int64 `protobuf:"varint,3,opt,name=max_swap_routing_fee,json=maxSwapRoutingFee,proto3" json:"max_swap_routing_fee,omitempty"`
	//*
	//Maximum off-chain fee in sat that may be paid for the prepay to the server.
	//This limit is applied during path finding. Typically this value is taken
	//from the response of the GetQuote call.
	MaxPrepayRoutingFee int64 `protobuf:"varint,4,opt,name=max_prepay_routing_fee,json=maxPrepayRoutingFee,proto3" json:"max_prepay_routing_fee,omitempty"`
	//*
	//Maximum we are willing to pay the server for the swap. This value is not
	//disclosed in the swap initiation call, but if the server asks for a
	//higher fee, we abort the swap. Typically this value is taken from the
	//response of the GetQuote call. It includes the prepay amount.
	MaxSwapFee int64 `protobuf:"varint,5,opt,name=max_swap_fee,json=maxSwapFee,proto3" json:"max_swap_fee,omitempty"`
	//*
	//Maximum amount of the swap fee that may be charged as a prepayment.
	MaxPrepayAmt int64 `protobuf:"varint,6,opt,name=max_prepay_amt,json=maxPrepayAmt,proto3" json:"max_prepay_amt,omitempty"`
	//*
	//Maximum in on-chain fees that we are willing to spend. If we want to
	//sweep the on-chain htlc and the fee estimate turns out higher than this
	//value, we cancel the swap. If the fee estimate is lower, we publish the
	//sweep tx.
	//
	//If the sweep tx is not confirmed, we are forced to ratchet up fees until it
	//is swept. Possibly even exceeding max_miner_fee if we get close to the htlc
	//timeout. Because the initial publication revealed the preimage, we have no
	//other choice. The server may already have pulled the off-chain htlc. Only
	//when the fee becomes higher than the swap amount, we can only wait for fees
	//to come down and hope - if we are past the timeout - that the server is not
	//publishing the revocation.
	//
	//max_miner_fee is typically taken from the response of the GetQuote call.
	MaxMinerFee int64 `protobuf:"varint,7,opt,name=max_miner_fee,json=maxMinerFee,proto3" json:"max_miner_fee,omitempty"`
	//*
	//Deprecated, use outgoing_chan_set. The channel to loop out, the channel
	//to loop out is selected based on the lowest routing fee for the swap
	//payment to the server.
	LoopOutChannel uint64 `protobuf:"varint,8,opt,name=loop_out_channel,json=loopOutChannel,proto3" json:"loop_out_channel,omitempty"` // Deprecated: Do not use.
	//*
	//A restriction on the channel set that may be used to loop out. The actual
	//channel(s) that will be used are selected based on the lowest routing fee
	//for the swap payment to the server.
	OutgoingChanSet []uint64 `protobuf:"varint,11,rep,packed,name=outgoing_chan_set,json=outgoingChanSet,proto3" json:"outgoing_chan_set,omitempty"`
	//*
	//The number of blocks from the on-chain HTLC's confirmation height that it
	//should be swept within.
	SweepConfTarget int32 `protobuf:"varint,9,opt,name=sweep_conf_target,json=sweepConfTarget,proto3" json:"sweep_conf_target,omitempty"`
	//
	//The number of confirmations that we require for the on chain htlc that will
	//be published by the server before we reveal the preimage.
	HtlcConfirmations int32 `protobuf:"varint,13,opt,name=htlc_confirmations,json=htlcConfirmations,proto3" json:"htlc_confirmations,omitempty"`
	//*
	//The latest time (in unix seconds) we allow the server to wait before
	//publishing the HTLC on chain. Setting this to a larger value will give the
	//server the opportunity to batch multiple swaps together, and wait for
	//low-fee periods before publishing the HTLC, potentially resulting in a
	//lower total swap fee.
	SwapPublicationDeadline uint64 `` /* 134-byte string literal not displayed */
	//
	//An optional label for this swap. This field is limited to 500 characters
	//and may not start with the prefix [reserved], which is used to tag labels
	//produced by the daemon.
	Label                string   `protobuf:"bytes,12,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoopOutRequest) Descriptor

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

func (*LoopOutRequest) GetAmt

func (m *LoopOutRequest) GetAmt() int64

func (*LoopOutRequest) GetDest

func (m *LoopOutRequest) GetDest() string

func (*LoopOutRequest) GetHtlcConfirmations

func (m *LoopOutRequest) GetHtlcConfirmations() int32

func (*LoopOutRequest) GetLabel

func (m *LoopOutRequest) GetLabel() string

func (*LoopOutRequest) GetLoopOutChannel deprecated

func (m *LoopOutRequest) GetLoopOutChannel() uint64

Deprecated: Do not use.

func (*LoopOutRequest) GetMaxMinerFee

func (m *LoopOutRequest) GetMaxMinerFee() int64

func (*LoopOutRequest) GetMaxPrepayAmt

func (m *LoopOutRequest) GetMaxPrepayAmt() int64

func (*LoopOutRequest) GetMaxPrepayRoutingFee

func (m *LoopOutRequest) GetMaxPrepayRoutingFee() int64

func (*LoopOutRequest) GetMaxSwapFee

func (m *LoopOutRequest) GetMaxSwapFee() int64

func (*LoopOutRequest) GetMaxSwapRoutingFee

func (m *LoopOutRequest) GetMaxSwapRoutingFee() int64

func (*LoopOutRequest) GetOutgoingChanSet

func (m *LoopOutRequest) GetOutgoingChanSet() []uint64

func (*LoopOutRequest) GetSwapPublicationDeadline

func (m *LoopOutRequest) GetSwapPublicationDeadline() uint64

func (*LoopOutRequest) GetSweepConfTarget

func (m *LoopOutRequest) GetSweepConfTarget() int32

func (*LoopOutRequest) ProtoMessage

func (*LoopOutRequest) ProtoMessage()

func (*LoopOutRequest) Reset

func (m *LoopOutRequest) Reset()

func (*LoopOutRequest) String

func (m *LoopOutRequest) String() string

func (*LoopOutRequest) XXX_DiscardUnknown

func (m *LoopOutRequest) XXX_DiscardUnknown()

func (*LoopOutRequest) XXX_Marshal

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

func (*LoopOutRequest) XXX_Merge

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

func (*LoopOutRequest) XXX_Size

func (m *LoopOutRequest) XXX_Size() int

func (*LoopOutRequest) XXX_Unmarshal

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

type LsatToken

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 (*LsatToken) Descriptor

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

func (*LsatToken) GetAmountPaidMsat

func (m *LsatToken) GetAmountPaidMsat() int64

func (*LsatToken) GetBaseMacaroon

func (m *LsatToken) GetBaseMacaroon() []byte

func (*LsatToken) GetExpired

func (m *LsatToken) GetExpired() bool

func (*LsatToken) GetPaymentHash

func (m *LsatToken) GetPaymentHash() []byte

func (*LsatToken) GetPaymentPreimage

func (m *LsatToken) GetPaymentPreimage() []byte

func (*LsatToken) GetRoutingFeePaidMsat

func (m *LsatToken) GetRoutingFeePaidMsat() int64

func (*LsatToken) GetStorageName

func (m *LsatToken) GetStorageName() string

func (*LsatToken) GetTimeCreated

func (m *LsatToken) GetTimeCreated() int64

func (*LsatToken) ProtoMessage

func (*LsatToken) ProtoMessage()

func (*LsatToken) Reset

func (m *LsatToken) Reset()

func (*LsatToken) String

func (m *LsatToken) String() string

func (*LsatToken) XXX_DiscardUnknown

func (m *LsatToken) XXX_DiscardUnknown()

func (*LsatToken) XXX_Marshal

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

func (*LsatToken) XXX_Merge

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

func (*LsatToken) XXX_Size

func (m *LsatToken) XXX_Size() int

func (*LsatToken) XXX_Unmarshal

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

type MonitorRequest

type MonitorRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MonitorRequest) Descriptor

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

func (*MonitorRequest) ProtoMessage

func (*MonitorRequest) ProtoMessage()

func (*MonitorRequest) Reset

func (m *MonitorRequest) Reset()

func (*MonitorRequest) String

func (m *MonitorRequest) String() string

func (*MonitorRequest) XXX_DiscardUnknown

func (m *MonitorRequest) XXX_DiscardUnknown()

func (*MonitorRequest) XXX_Marshal

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

func (*MonitorRequest) XXX_Merge

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

func (*MonitorRequest) XXX_Size

func (m *MonitorRequest) XXX_Size() int

func (*MonitorRequest) XXX_Unmarshal

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

type OutQuoteResponse

type OutQuoteResponse struct {
	//*
	//The fee that the swap server is charging for the swap.
	SwapFeeSat int64 `protobuf:"varint,1,opt,name=swap_fee_sat,json=swapFeeSat,proto3" json:"swap_fee_sat,omitempty"`
	//*
	//The part of the swap fee that is requested as a prepayment.
	PrepayAmtSat int64 `protobuf:"varint,2,opt,name=prepay_amt_sat,json=prepayAmtSat,proto3" json:"prepay_amt_sat,omitempty"`
	//*
	//An estimate of the on-chain fee that needs to be paid to sweep the HTLC for
	//a loop out.
	HtlcSweepFeeSat int64 `protobuf:"varint,3,opt,name=htlc_sweep_fee_sat,json=htlcSweepFeeSat,proto3" json:"htlc_sweep_fee_sat,omitempty"`
	//*
	//The node pubkey where the swap payment needs to be paid
	//to. This can be used to test connectivity before initiating the swap.
	SwapPaymentDest []byte `protobuf:"bytes,4,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
	//*
	//On-chain cltv expiry delta
	CltvDelta            int32    `protobuf:"varint,5,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutQuoteResponse) Descriptor

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

func (*OutQuoteResponse) GetCltvDelta

func (m *OutQuoteResponse) GetCltvDelta() int32

func (*OutQuoteResponse) GetHtlcSweepFeeSat

func (m *OutQuoteResponse) GetHtlcSweepFeeSat() int64

func (*OutQuoteResponse) GetPrepayAmtSat

func (m *OutQuoteResponse) GetPrepayAmtSat() int64

func (*OutQuoteResponse) GetSwapFeeSat

func (m *OutQuoteResponse) GetSwapFeeSat() int64

func (*OutQuoteResponse) GetSwapPaymentDest

func (m *OutQuoteResponse) GetSwapPaymentDest() []byte

func (*OutQuoteResponse) ProtoMessage

func (*OutQuoteResponse) ProtoMessage()

func (*OutQuoteResponse) Reset

func (m *OutQuoteResponse) Reset()

func (*OutQuoteResponse) String

func (m *OutQuoteResponse) String() string

func (*OutQuoteResponse) XXX_DiscardUnknown

func (m *OutQuoteResponse) XXX_DiscardUnknown()

func (*OutQuoteResponse) XXX_Marshal

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

func (*OutQuoteResponse) XXX_Merge

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

func (*OutQuoteResponse) XXX_Size

func (m *OutQuoteResponse) XXX_Size() int

func (*OutQuoteResponse) XXX_Unmarshal

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

type OutTermsResponse

type OutTermsResponse struct {
	//*
	//Minimum swap amount (sat)
	MinSwapAmount int64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	//*
	//Maximum swap amount (sat)
	MaxSwapAmount int64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// The minimally accepted cltv delta of the on-chain htlc.
	MinCltvDelta int32 `protobuf:"varint,8,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
	// The maximally accepted cltv delta of the on-chain htlc.
	MaxCltvDelta         int32    `protobuf:"varint,9,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OutTermsResponse) Descriptor

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

func (*OutTermsResponse) GetMaxCltvDelta

func (m *OutTermsResponse) GetMaxCltvDelta() int32

func (*OutTermsResponse) GetMaxSwapAmount

func (m *OutTermsResponse) GetMaxSwapAmount() int64

func (*OutTermsResponse) GetMinCltvDelta

func (m *OutTermsResponse) GetMinCltvDelta() int32

func (*OutTermsResponse) GetMinSwapAmount

func (m *OutTermsResponse) GetMinSwapAmount() int64

func (*OutTermsResponse) ProtoMessage

func (*OutTermsResponse) ProtoMessage()

func (*OutTermsResponse) Reset

func (m *OutTermsResponse) Reset()

func (*OutTermsResponse) String

func (m *OutTermsResponse) String() string

func (*OutTermsResponse) XXX_DiscardUnknown

func (m *OutTermsResponse) XXX_DiscardUnknown()

func (*OutTermsResponse) XXX_Marshal

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

func (*OutTermsResponse) XXX_Merge

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

func (*OutTermsResponse) XXX_Size

func (m *OutTermsResponse) XXX_Size() int

func (*OutTermsResponse) XXX_Unmarshal

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

type ProtocolVersion

type ProtocolVersion int32

* This enum defines the protocol versions that clients may adhere to. Note that this is not a flagged enum. If a particular protocol version adds a feature, then in general all the preceding features are also supported. Exception to this is when features get deprecated.

const (
	/// No protocol version reported at all.
	ProtocolVersion_LEGACY ProtocolVersion = 0
	/// Client may attempt to send the loop out payment in multiple parts.
	ProtocolVersion_MULTI_LOOP_OUT ProtocolVersion = 1
	//*
	//Loop will use native segwit (P2WSH) htlcs by default, while externally
	//published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
	ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2
	//
	//Once the on chain loop out htlc is confirmed, the client can push the swap
	//preimage to the server to speed up claim of their off chain htlc (acquiring
	//incoming liquidity more quickly than if the server waited for the on chain
	//claim tx).
	ProtocolVersion_PREIMAGE_PUSH_LOOP_OUT ProtocolVersion = 3
	// The client will propose a cltv expiry height for loop out.
	ProtocolVersion_USER_EXPIRY_LOOP_OUT ProtocolVersion = 4
)

func (ProtocolVersion) EnumDescriptor

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

func (ProtocolVersion) String

func (x ProtocolVersion) String() string

type QuoteRequest

type QuoteRequest struct {
	//*
	//The amount to swap in satoshis.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//*
	//The confirmation target that should be used either for the sweep of the
	//on-chain HTLC broadcast by the swap server in the case of a Loop Out, or for
	//the confirmation of the on-chain HTLC broadcast by the swap client in the
	//case of a Loop In.
	ConfTarget int32 `protobuf:"varint,2,opt,name=conf_target,json=confTarget,proto3" json:"conf_target,omitempty"`
	//*
	//If external_htlc is true, we expect the htlc to be published by an external
	//actor.
	ExternalHtlc bool `protobuf:"varint,3,opt,name=external_htlc,json=externalHtlc,proto3" json:"external_htlc,omitempty"`
	//*
	//The latest time (in unix seconds) we allow the server to wait before
	//publishing the HTLC on chain. Setting this to a larger value will give the
	//server the opportunity to batch multiple swaps together, and wait for
	//low-fee periods before publishing the HTLC, potentially resulting in a
	//lower total swap fee. This only has an effect on loop out quotes.
	SwapPublicationDeadline uint64   `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
	XXX_unrecognized        []byte   `json:"-"`
	XXX_sizecache           int32    `json:"-"`
}

func (*QuoteRequest) Descriptor

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

func (*QuoteRequest) GetAmt

func (m *QuoteRequest) GetAmt() int64

func (*QuoteRequest) GetConfTarget

func (m *QuoteRequest) GetConfTarget() int32

func (*QuoteRequest) GetExternalHtlc

func (m *QuoteRequest) GetExternalHtlc() bool

func (*QuoteRequest) GetSwapPublicationDeadline

func (m *QuoteRequest) GetSwapPublicationDeadline() uint64

func (*QuoteRequest) ProtoMessage

func (*QuoteRequest) ProtoMessage()

func (*QuoteRequest) Reset

func (m *QuoteRequest) Reset()

func (*QuoteRequest) String

func (m *QuoteRequest) String() string

func (*QuoteRequest) XXX_DiscardUnknown

func (m *QuoteRequest) XXX_DiscardUnknown()

func (*QuoteRequest) XXX_Marshal

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

func (*QuoteRequest) XXX_Merge

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

func (*QuoteRequest) XXX_Size

func (m *QuoteRequest) XXX_Size() int

func (*QuoteRequest) XXX_Unmarshal

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

type ServerLoopInQuoteRequest

type ServerLoopInQuoteRequest struct {
	/// The swap amount. If zero, a quote for a maximum amt swap will be given.
	Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	/// The protocol version that the client adheres to.
	ProtocolVersion      ProtocolVersion `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ServerLoopInQuoteRequest) Descriptor

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

func (*ServerLoopInQuoteRequest) GetAmt

func (m *ServerLoopInQuoteRequest) GetAmt() uint64

func (*ServerLoopInQuoteRequest) GetProtocolVersion

func (m *ServerLoopInQuoteRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInQuoteRequest) ProtoMessage

func (*ServerLoopInQuoteRequest) ProtoMessage()

func (*ServerLoopInQuoteRequest) Reset

func (m *ServerLoopInQuoteRequest) Reset()

func (*ServerLoopInQuoteRequest) String

func (m *ServerLoopInQuoteRequest) String() string

func (*ServerLoopInQuoteRequest) XXX_DiscardUnknown

func (m *ServerLoopInQuoteRequest) XXX_DiscardUnknown()

func (*ServerLoopInQuoteRequest) XXX_Marshal

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

func (*ServerLoopInQuoteRequest) XXX_Merge

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

func (*ServerLoopInQuoteRequest) XXX_Size

func (m *ServerLoopInQuoteRequest) XXX_Size() int

func (*ServerLoopInQuoteRequest) XXX_Unmarshal

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

type ServerLoopInQuoteResponse

type ServerLoopInQuoteResponse struct {
	SwapFee              int64    `protobuf:"varint,1,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
	SwapFeeRate          int64    `protobuf:"varint,2,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"`       // Deprecated: Do not use.
	MinSwapAmount        uint64   `protobuf:"varint,4,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use.
	MaxSwapAmount        uint64   `protobuf:"varint,5,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use.
	CltvDelta            int32    `protobuf:"varint,6,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopInQuoteResponse) Descriptor

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

func (*ServerLoopInQuoteResponse) GetCltvDelta

func (m *ServerLoopInQuoteResponse) GetCltvDelta() int32

func (*ServerLoopInQuoteResponse) GetMaxSwapAmount deprecated

func (m *ServerLoopInQuoteResponse) GetMaxSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopInQuoteResponse) GetMinSwapAmount deprecated

func (m *ServerLoopInQuoteResponse) GetMinSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopInQuoteResponse) GetSwapFee

func (m *ServerLoopInQuoteResponse) GetSwapFee() int64

func (*ServerLoopInQuoteResponse) GetSwapFeeRate deprecated

func (m *ServerLoopInQuoteResponse) GetSwapFeeRate() int64

Deprecated: Do not use.

func (*ServerLoopInQuoteResponse) ProtoMessage

func (*ServerLoopInQuoteResponse) ProtoMessage()

func (*ServerLoopInQuoteResponse) Reset

func (m *ServerLoopInQuoteResponse) Reset()

func (*ServerLoopInQuoteResponse) String

func (m *ServerLoopInQuoteResponse) String() string

func (*ServerLoopInQuoteResponse) XXX_DiscardUnknown

func (m *ServerLoopInQuoteResponse) XXX_DiscardUnknown()

func (*ServerLoopInQuoteResponse) XXX_Marshal

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

func (*ServerLoopInQuoteResponse) XXX_Merge

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

func (*ServerLoopInQuoteResponse) XXX_Size

func (m *ServerLoopInQuoteResponse) XXX_Size() int

func (*ServerLoopInQuoteResponse) XXX_Unmarshal

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

type ServerLoopInRequest

type ServerLoopInRequest struct {
	SenderKey   []byte `protobuf:"bytes,1,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
	SwapHash    []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	Amt         uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
	SwapInvoice string `protobuf:"bytes,4,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
	LastHop     []byte `protobuf:"bytes,5,opt,name=last_hop,json=lastHop,proto3" json:"last_hop,omitempty"`
	/// The protocol version that the client adheres to.
	ProtocolVersion      ProtocolVersion `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ServerLoopInRequest) Descriptor

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

func (*ServerLoopInRequest) GetAmt

func (m *ServerLoopInRequest) GetAmt() uint64

func (*ServerLoopInRequest) GetLastHop

func (m *ServerLoopInRequest) GetLastHop() []byte

func (*ServerLoopInRequest) GetProtocolVersion

func (m *ServerLoopInRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInRequest) GetSenderKey

func (m *ServerLoopInRequest) GetSenderKey() []byte

func (*ServerLoopInRequest) GetSwapHash

func (m *ServerLoopInRequest) GetSwapHash() []byte

func (*ServerLoopInRequest) GetSwapInvoice

func (m *ServerLoopInRequest) GetSwapInvoice() string

func (*ServerLoopInRequest) ProtoMessage

func (*ServerLoopInRequest) ProtoMessage()

func (*ServerLoopInRequest) Reset

func (m *ServerLoopInRequest) Reset()

func (*ServerLoopInRequest) String

func (m *ServerLoopInRequest) String() string

func (*ServerLoopInRequest) XXX_DiscardUnknown

func (m *ServerLoopInRequest) XXX_DiscardUnknown()

func (*ServerLoopInRequest) XXX_Marshal

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

func (*ServerLoopInRequest) XXX_Merge

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

func (*ServerLoopInRequest) XXX_Size

func (m *ServerLoopInRequest) XXX_Size() int

func (*ServerLoopInRequest) XXX_Unmarshal

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

type ServerLoopInResponse

type ServerLoopInResponse struct {
	ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
	Expiry      int32  `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// A human-readable message from the loop server.
	ServerMessage        string   `protobuf:"bytes,3,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopInResponse) Descriptor

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

func (*ServerLoopInResponse) GetExpiry

func (m *ServerLoopInResponse) GetExpiry() int32

func (*ServerLoopInResponse) GetReceiverKey

func (m *ServerLoopInResponse) GetReceiverKey() []byte

func (*ServerLoopInResponse) GetServerMessage

func (m *ServerLoopInResponse) GetServerMessage() string

func (*ServerLoopInResponse) ProtoMessage

func (*ServerLoopInResponse) ProtoMessage()

func (*ServerLoopInResponse) Reset

func (m *ServerLoopInResponse) Reset()

func (*ServerLoopInResponse) String

func (m *ServerLoopInResponse) String() string

func (*ServerLoopInResponse) XXX_DiscardUnknown

func (m *ServerLoopInResponse) XXX_DiscardUnknown()

func (*ServerLoopInResponse) XXX_Marshal

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

func (*ServerLoopInResponse) XXX_Merge

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

func (*ServerLoopInResponse) XXX_Size

func (m *ServerLoopInResponse) XXX_Size() int

func (*ServerLoopInResponse) XXX_Unmarshal

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

type ServerLoopInTerms

type ServerLoopInTerms struct {
	MinSwapAmount        uint64   `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	MaxSwapAmount        uint64   `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopInTerms) Descriptor

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

func (*ServerLoopInTerms) GetMaxSwapAmount

func (m *ServerLoopInTerms) GetMaxSwapAmount() uint64

func (*ServerLoopInTerms) GetMinSwapAmount

func (m *ServerLoopInTerms) GetMinSwapAmount() uint64

func (*ServerLoopInTerms) ProtoMessage

func (*ServerLoopInTerms) ProtoMessage()

func (*ServerLoopInTerms) Reset

func (m *ServerLoopInTerms) Reset()

func (*ServerLoopInTerms) String

func (m *ServerLoopInTerms) String() string

func (*ServerLoopInTerms) XXX_DiscardUnknown

func (m *ServerLoopInTerms) XXX_DiscardUnknown()

func (*ServerLoopInTerms) XXX_Marshal

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

func (*ServerLoopInTerms) XXX_Merge

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

func (*ServerLoopInTerms) XXX_Size

func (m *ServerLoopInTerms) XXX_Size() int

func (*ServerLoopInTerms) XXX_Unmarshal

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

type ServerLoopInTermsRequest

type ServerLoopInTermsRequest struct {
	/// The protocol version that the client adheres to.
	ProtocolVersion      ProtocolVersion `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ServerLoopInTermsRequest) Descriptor

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

func (*ServerLoopInTermsRequest) GetProtocolVersion

func (m *ServerLoopInTermsRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopInTermsRequest) ProtoMessage

func (*ServerLoopInTermsRequest) ProtoMessage()

func (*ServerLoopInTermsRequest) Reset

func (m *ServerLoopInTermsRequest) Reset()

func (*ServerLoopInTermsRequest) String

func (m *ServerLoopInTermsRequest) String() string

func (*ServerLoopInTermsRequest) XXX_DiscardUnknown

func (m *ServerLoopInTermsRequest) XXX_DiscardUnknown()

func (*ServerLoopInTermsRequest) XXX_Marshal

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

func (*ServerLoopInTermsRequest) XXX_Merge

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

func (*ServerLoopInTermsRequest) XXX_Size

func (m *ServerLoopInTermsRequest) XXX_Size() int

func (*ServerLoopInTermsRequest) XXX_Unmarshal

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

type ServerLoopOutPushPreimageRequest

type ServerLoopOutPushPreimageRequest struct {
	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	//
	//Preimage is the preimage of the loop out swap that we wish to push to the
	//server to speed up off-chain claim once the on-chain htlc has confirmed.
	Preimage             []byte   `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ServerLoopOutPushPreimageRequest pushes a preimage to the server. Note that this call returns with no error after the server acknowledges the preimage and does not block until the invoice is settled.

func (*ServerLoopOutPushPreimageRequest) Descriptor

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

func (*ServerLoopOutPushPreimageRequest) GetPreimage

func (m *ServerLoopOutPushPreimageRequest) GetPreimage() []byte

func (*ServerLoopOutPushPreimageRequest) GetProtocolVersion

func (m *ServerLoopOutPushPreimageRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutPushPreimageRequest) ProtoMessage

func (*ServerLoopOutPushPreimageRequest) ProtoMessage()

func (*ServerLoopOutPushPreimageRequest) Reset

func (*ServerLoopOutPushPreimageRequest) String

func (*ServerLoopOutPushPreimageRequest) XXX_DiscardUnknown

func (m *ServerLoopOutPushPreimageRequest) XXX_DiscardUnknown()

func (*ServerLoopOutPushPreimageRequest) XXX_Marshal

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

func (*ServerLoopOutPushPreimageRequest) XXX_Merge

func (*ServerLoopOutPushPreimageRequest) XXX_Size

func (m *ServerLoopOutPushPreimageRequest) XXX_Size() int

func (*ServerLoopOutPushPreimageRequest) XXX_Unmarshal

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

type ServerLoopOutPushPreimageResponse

type ServerLoopOutPushPreimageResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutPushPreimageResponse) Descriptor

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

func (*ServerLoopOutPushPreimageResponse) ProtoMessage

func (*ServerLoopOutPushPreimageResponse) ProtoMessage()

func (*ServerLoopOutPushPreimageResponse) Reset

func (*ServerLoopOutPushPreimageResponse) String

func (*ServerLoopOutPushPreimageResponse) XXX_DiscardUnknown

func (m *ServerLoopOutPushPreimageResponse) XXX_DiscardUnknown()

func (*ServerLoopOutPushPreimageResponse) XXX_Marshal

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

func (*ServerLoopOutPushPreimageResponse) XXX_Merge

func (*ServerLoopOutPushPreimageResponse) XXX_Size

func (m *ServerLoopOutPushPreimageResponse) XXX_Size() int

func (*ServerLoopOutPushPreimageResponse) XXX_Unmarshal

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

type ServerLoopOutQuote

type ServerLoopOutQuote struct {
	SwapPaymentDest string `protobuf:"bytes,1,opt,name=swap_payment_dest,json=swapPaymentDest,proto3" json:"swap_payment_dest,omitempty"`
	/// The total estimated swap fee given the quote amt.
	SwapFee int64 `protobuf:"varint,2,opt,name=swap_fee,json=swapFee,proto3" json:"swap_fee,omitempty"`
	/// Deprecated, total swap fee given quote amt is calculated in swap_fee.
	SwapFeeRate   int64  `protobuf:"varint,3,opt,name=swap_fee_rate,json=swapFeeRate,proto3" json:"swap_fee_rate,omitempty"` // Deprecated: Do not use.
	PrepayAmt     uint64 `protobuf:"varint,4,opt,name=prepay_amt,json=prepayAmt,proto3" json:"prepay_amt,omitempty"`
	MinSwapAmount uint64 `protobuf:"varint,5,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"` // Deprecated: Do not use.
	MaxSwapAmount uint64 `protobuf:"varint,6,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"` // Deprecated: Do not use.
	// The server-proposed cltv delta of the on-chain htlc. Deprecated because
	// the field is already specified in the request.
	CltvDelta            int32    `protobuf:"varint,7,opt,name=cltv_delta,json=cltvDelta,proto3" json:"cltv_delta,omitempty"` // Deprecated: Do not use.
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutQuote) Descriptor

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

func (*ServerLoopOutQuote) GetCltvDelta deprecated

func (m *ServerLoopOutQuote) GetCltvDelta() int32

Deprecated: Do not use.

func (*ServerLoopOutQuote) GetMaxSwapAmount deprecated

func (m *ServerLoopOutQuote) GetMaxSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopOutQuote) GetMinSwapAmount deprecated

func (m *ServerLoopOutQuote) GetMinSwapAmount() uint64

Deprecated: Do not use.

func (*ServerLoopOutQuote) GetPrepayAmt

func (m *ServerLoopOutQuote) GetPrepayAmt() uint64

func (*ServerLoopOutQuote) GetSwapFee

func (m *ServerLoopOutQuote) GetSwapFee() int64

func (*ServerLoopOutQuote) GetSwapFeeRate deprecated

func (m *ServerLoopOutQuote) GetSwapFeeRate() int64

Deprecated: Do not use.

func (*ServerLoopOutQuote) GetSwapPaymentDest

func (m *ServerLoopOutQuote) GetSwapPaymentDest() string

func (*ServerLoopOutQuote) ProtoMessage

func (*ServerLoopOutQuote) ProtoMessage()

func (*ServerLoopOutQuote) Reset

func (m *ServerLoopOutQuote) Reset()

func (*ServerLoopOutQuote) String

func (m *ServerLoopOutQuote) String() string

func (*ServerLoopOutQuote) XXX_DiscardUnknown

func (m *ServerLoopOutQuote) XXX_DiscardUnknown()

func (*ServerLoopOutQuote) XXX_Marshal

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

func (*ServerLoopOutQuote) XXX_Merge

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

func (*ServerLoopOutQuote) XXX_Size

func (m *ServerLoopOutQuote) XXX_Size() int

func (*ServerLoopOutQuote) XXX_Unmarshal

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

type ServerLoopOutQuoteRequest

type ServerLoopOutQuoteRequest struct {
	/// The swap amount. If zero, a quote for a maximum amt swap will be given.
	Amt uint64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	/// The unix time in seconds we want the on-chain swap to be published by.
	SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
	/// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The requested absolute block height of the on-chain htlc. This is
	// subjected to min and max constraints as reported in the LoopOutTerms
	// response.
	Expiry               int32    `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutQuoteRequest) Descriptor

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

func (*ServerLoopOutQuoteRequest) GetAmt

func (m *ServerLoopOutQuoteRequest) GetAmt() uint64

func (*ServerLoopOutQuoteRequest) GetExpiry

func (m *ServerLoopOutQuoteRequest) GetExpiry() int32

func (*ServerLoopOutQuoteRequest) GetProtocolVersion

func (m *ServerLoopOutQuoteRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutQuoteRequest) GetSwapPublicationDeadline

func (m *ServerLoopOutQuoteRequest) GetSwapPublicationDeadline() int64

func (*ServerLoopOutQuoteRequest) ProtoMessage

func (*ServerLoopOutQuoteRequest) ProtoMessage()

func (*ServerLoopOutQuoteRequest) Reset

func (m *ServerLoopOutQuoteRequest) Reset()

func (*ServerLoopOutQuoteRequest) String

func (m *ServerLoopOutQuoteRequest) String() string

func (*ServerLoopOutQuoteRequest) XXX_DiscardUnknown

func (m *ServerLoopOutQuoteRequest) XXX_DiscardUnknown()

func (*ServerLoopOutQuoteRequest) XXX_Marshal

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

func (*ServerLoopOutQuoteRequest) XXX_Merge

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

func (*ServerLoopOutQuoteRequest) XXX_Size

func (m *ServerLoopOutQuoteRequest) XXX_Size() int

func (*ServerLoopOutQuoteRequest) XXX_Unmarshal

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

type ServerLoopOutRequest

type ServerLoopOutRequest struct {
	ReceiverKey []byte `protobuf:"bytes,1,opt,name=receiver_key,json=receiverKey,proto3" json:"receiver_key,omitempty"`
	SwapHash    []byte `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	Amt         uint64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
	/// The unix time in seconds we want the on-chain swap to be published by.
	SwapPublicationDeadline int64 `` /* 133-byte string literal not displayed */
	/// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// The requested absolute block height of the on-chain htlc. This is
	// subjected to min and max constraints as reported in the LoopOutTerms
	// response.
	Expiry               int32    `protobuf:"varint,6,opt,name=expiry,proto3" json:"expiry,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutRequest) Descriptor

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

func (*ServerLoopOutRequest) GetAmt

func (m *ServerLoopOutRequest) GetAmt() uint64

func (*ServerLoopOutRequest) GetExpiry

func (m *ServerLoopOutRequest) GetExpiry() int32

func (*ServerLoopOutRequest) GetProtocolVersion

func (m *ServerLoopOutRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutRequest) GetReceiverKey

func (m *ServerLoopOutRequest) GetReceiverKey() []byte

func (*ServerLoopOutRequest) GetSwapHash

func (m *ServerLoopOutRequest) GetSwapHash() []byte

func (*ServerLoopOutRequest) GetSwapPublicationDeadline

func (m *ServerLoopOutRequest) GetSwapPublicationDeadline() int64

func (*ServerLoopOutRequest) ProtoMessage

func (*ServerLoopOutRequest) ProtoMessage()

func (*ServerLoopOutRequest) Reset

func (m *ServerLoopOutRequest) Reset()

func (*ServerLoopOutRequest) String

func (m *ServerLoopOutRequest) String() string

func (*ServerLoopOutRequest) XXX_DiscardUnknown

func (m *ServerLoopOutRequest) XXX_DiscardUnknown()

func (*ServerLoopOutRequest) XXX_Marshal

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

func (*ServerLoopOutRequest) XXX_Merge

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

func (*ServerLoopOutRequest) XXX_Size

func (m *ServerLoopOutRequest) XXX_Size() int

func (*ServerLoopOutRequest) XXX_Unmarshal

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

type ServerLoopOutResponse

type ServerLoopOutResponse struct {
	SwapInvoice   string `protobuf:"bytes,1,opt,name=swap_invoice,json=swapInvoice,proto3" json:"swap_invoice,omitempty"`
	PrepayInvoice string `protobuf:"bytes,2,opt,name=prepay_invoice,json=prepayInvoice,proto3" json:"prepay_invoice,omitempty"`
	SenderKey     []byte `protobuf:"bytes,3,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"`
	// The height at which the on-chain htlc will expire. Deprecated because the
	// field is already specified in the request.
	Expiry int32 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"` // Deprecated: Do not use.
	// A human-readable message from the loop server.
	ServerMessage        string   `protobuf:"bytes,5,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutResponse) Descriptor

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

func (*ServerLoopOutResponse) GetExpiry deprecated

func (m *ServerLoopOutResponse) GetExpiry() int32

Deprecated: Do not use.

func (*ServerLoopOutResponse) GetPrepayInvoice

func (m *ServerLoopOutResponse) GetPrepayInvoice() string

func (*ServerLoopOutResponse) GetSenderKey

func (m *ServerLoopOutResponse) GetSenderKey() []byte

func (*ServerLoopOutResponse) GetServerMessage

func (m *ServerLoopOutResponse) GetServerMessage() string

func (*ServerLoopOutResponse) GetSwapInvoice

func (m *ServerLoopOutResponse) GetSwapInvoice() string

func (*ServerLoopOutResponse) ProtoMessage

func (*ServerLoopOutResponse) ProtoMessage()

func (*ServerLoopOutResponse) Reset

func (m *ServerLoopOutResponse) Reset()

func (*ServerLoopOutResponse) String

func (m *ServerLoopOutResponse) String() string

func (*ServerLoopOutResponse) XXX_DiscardUnknown

func (m *ServerLoopOutResponse) XXX_DiscardUnknown()

func (*ServerLoopOutResponse) XXX_Marshal

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

func (*ServerLoopOutResponse) XXX_Merge

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

func (*ServerLoopOutResponse) XXX_Size

func (m *ServerLoopOutResponse) XXX_Size() int

func (*ServerLoopOutResponse) XXX_Unmarshal

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

type ServerLoopOutTerms

type ServerLoopOutTerms struct {
	MinSwapAmount uint64 `protobuf:"varint,1,opt,name=min_swap_amount,json=minSwapAmount,proto3" json:"min_swap_amount,omitempty"`
	MaxSwapAmount uint64 `protobuf:"varint,2,opt,name=max_swap_amount,json=maxSwapAmount,proto3" json:"max_swap_amount,omitempty"`
	// The minimally accepted cltv delta of the on-chain htlc.
	MinCltvDelta int32 `protobuf:"varint,3,opt,name=min_cltv_delta,json=minCltvDelta,proto3" json:"min_cltv_delta,omitempty"`
	// The maximally accepted cltv delta of the on-chain htlc.
	MaxCltvDelta         int32    `protobuf:"varint,4,opt,name=max_cltv_delta,json=maxCltvDelta,proto3" json:"max_cltv_delta,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServerLoopOutTerms) Descriptor

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

func (*ServerLoopOutTerms) GetMaxCltvDelta

func (m *ServerLoopOutTerms) GetMaxCltvDelta() int32

func (*ServerLoopOutTerms) GetMaxSwapAmount

func (m *ServerLoopOutTerms) GetMaxSwapAmount() uint64

func (*ServerLoopOutTerms) GetMinCltvDelta

func (m *ServerLoopOutTerms) GetMinCltvDelta() int32

func (*ServerLoopOutTerms) GetMinSwapAmount

func (m *ServerLoopOutTerms) GetMinSwapAmount() uint64

func (*ServerLoopOutTerms) ProtoMessage

func (*ServerLoopOutTerms) ProtoMessage()

func (*ServerLoopOutTerms) Reset

func (m *ServerLoopOutTerms) Reset()

func (*ServerLoopOutTerms) String

func (m *ServerLoopOutTerms) String() string

func (*ServerLoopOutTerms) XXX_DiscardUnknown

func (m *ServerLoopOutTerms) XXX_DiscardUnknown()

func (*ServerLoopOutTerms) XXX_Marshal

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

func (*ServerLoopOutTerms) XXX_Merge

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

func (*ServerLoopOutTerms) XXX_Size

func (m *ServerLoopOutTerms) XXX_Size() int

func (*ServerLoopOutTerms) XXX_Unmarshal

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

type ServerLoopOutTermsRequest

type ServerLoopOutTermsRequest struct {
	/// The protocol version that the client adheres to.
	ProtocolVersion      ProtocolVersion `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ServerLoopOutTermsRequest) Descriptor

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

func (*ServerLoopOutTermsRequest) GetProtocolVersion

func (m *ServerLoopOutTermsRequest) GetProtocolVersion() ProtocolVersion

func (*ServerLoopOutTermsRequest) ProtoMessage

func (*ServerLoopOutTermsRequest) ProtoMessage()

func (*ServerLoopOutTermsRequest) Reset

func (m *ServerLoopOutTermsRequest) Reset()

func (*ServerLoopOutTermsRequest) String

func (m *ServerLoopOutTermsRequest) String() string

func (*ServerLoopOutTermsRequest) XXX_DiscardUnknown

func (m *ServerLoopOutTermsRequest) XXX_DiscardUnknown()

func (*ServerLoopOutTermsRequest) XXX_Marshal

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

func (*ServerLoopOutTermsRequest) XXX_Merge

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

func (*ServerLoopOutTermsRequest) XXX_Size

func (m *ServerLoopOutTermsRequest) XXX_Size() int

func (*ServerLoopOutTermsRequest) XXX_Unmarshal

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

type ServerSwapState

type ServerSwapState int32

ServerSwapState is an enum which represents all the states a swap may have from the server's perspective.

const (
	// The server has created the swap.
	ServerSwapState_INITIATED ServerSwapState = 0
	// The server has published the loop out on chain htlc.
	ServerSwapState_HTLC_PUBLISHED ServerSwapState = 1
	// The swap completed successfully.
	ServerSwapState_SUCCESS ServerSwapState = 2
	//
	//The swap failed for a reason that is unknown to the server, this is only
	//set for older swaps.
	ServerSwapState_FAILED_UNKNOWN ServerSwapState = 3
	// No htlc was confirmed in time for the loop in swap to complete.
	ServerSwapState_FAILED_NO_HTLC ServerSwapState = 4
	// A loop in htlc confirmed on chain, but it did not have the correct value.
	ServerSwapState_FAILED_INVALID_HTLC_AMOUNT ServerSwapState = 5
	//
	//We did not succeed in completing the loop in off chain payment before the
	//timeout.
	ServerSwapState_FAILED_OFF_CHAIN_TIMEOUT ServerSwapState = 6
	// The on chain timeout was claimed.
	ServerSwapState_FAILED_TIMEOUT ServerSwapState = 7
	//
	//The server could not publish the loop out on chain htlc before the deadline
	//provided.
	ServerSwapState_FAILED_SWAP_DEADLINE ServerSwapState = 8
	// The server could not publish the loop out on chain htlc.
	ServerSwapState_FAILED_HTLC_PUBLICATION ServerSwapState = 9
	// The server has published the loop out on chain timeout tx.
	ServerSwapState_TIMEOUT_PUBLISHED ServerSwapState = 10
	// The swap has failed for unknown reasons, it will not be completed.
	ServerSwapState_UNEXPECTED_FAILURE ServerSwapState = 11
	// The swap htlc has confirmed on chain.
	ServerSwapState_HTLC_CONFIRMED ServerSwapState = 12
)

func (ServerSwapState) EnumDescriptor

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

func (ServerSwapState) String

func (x ServerSwapState) String() string

type SubscribeLoopInUpdatesResponse

type SubscribeLoopInUpdatesResponse struct {
	// The unix timestamp in nanoseconds when the swap was updated.
	TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	// The swap's current state.
	State                ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SubscribeLoopInUpdatesResponse) Descriptor

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

func (*SubscribeLoopInUpdatesResponse) GetState

func (*SubscribeLoopInUpdatesResponse) GetTimestampNs

func (m *SubscribeLoopInUpdatesResponse) GetTimestampNs() int64

func (*SubscribeLoopInUpdatesResponse) ProtoMessage

func (*SubscribeLoopInUpdatesResponse) ProtoMessage()

func (*SubscribeLoopInUpdatesResponse) Reset

func (m *SubscribeLoopInUpdatesResponse) Reset()

func (*SubscribeLoopInUpdatesResponse) String

func (*SubscribeLoopInUpdatesResponse) XXX_DiscardUnknown

func (m *SubscribeLoopInUpdatesResponse) XXX_DiscardUnknown()

func (*SubscribeLoopInUpdatesResponse) XXX_Marshal

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

func (*SubscribeLoopInUpdatesResponse) XXX_Merge

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

func (*SubscribeLoopInUpdatesResponse) XXX_Size

func (m *SubscribeLoopInUpdatesResponse) XXX_Size() int

func (*SubscribeLoopInUpdatesResponse) XXX_Unmarshal

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

type SubscribeLoopOutUpdatesResponse

type SubscribeLoopOutUpdatesResponse struct {
	// The unix timestamp in nanoseconds when the swap was updated.
	TimestampNs int64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	// The swap's current state.
	State                ServerSwapState `protobuf:"varint,2,opt,name=state,proto3,enum=looprpc.ServerSwapState" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*SubscribeLoopOutUpdatesResponse) Descriptor

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

func (*SubscribeLoopOutUpdatesResponse) GetState

func (*SubscribeLoopOutUpdatesResponse) GetTimestampNs

func (m *SubscribeLoopOutUpdatesResponse) GetTimestampNs() int64

func (*SubscribeLoopOutUpdatesResponse) ProtoMessage

func (*SubscribeLoopOutUpdatesResponse) ProtoMessage()

func (*SubscribeLoopOutUpdatesResponse) Reset

func (*SubscribeLoopOutUpdatesResponse) String

func (*SubscribeLoopOutUpdatesResponse) XXX_DiscardUnknown

func (m *SubscribeLoopOutUpdatesResponse) XXX_DiscardUnknown()

func (*SubscribeLoopOutUpdatesResponse) XXX_Marshal

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

func (*SubscribeLoopOutUpdatesResponse) XXX_Merge

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

func (*SubscribeLoopOutUpdatesResponse) XXX_Size

func (m *SubscribeLoopOutUpdatesResponse) XXX_Size() int

func (*SubscribeLoopOutUpdatesResponse) XXX_Unmarshal

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

type SubscribeUpdatesRequest

type SubscribeUpdatesRequest struct {
	// The protocol version that the client adheres to.
	ProtocolVersion ProtocolVersion `` /* 136-byte string literal not displayed */
	// Swap hash is the hash of the swap to subscribe to updates for.
	SwapHash             []byte   `protobuf:"bytes,2,opt,name=swap_hash,json=swapHash,proto3" json:"swap_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SubscribeUpdatesRequest) Descriptor

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

func (*SubscribeUpdatesRequest) GetProtocolVersion

func (m *SubscribeUpdatesRequest) GetProtocolVersion() ProtocolVersion

func (*SubscribeUpdatesRequest) GetSwapHash

func (m *SubscribeUpdatesRequest) GetSwapHash() []byte

func (*SubscribeUpdatesRequest) ProtoMessage

func (*SubscribeUpdatesRequest) ProtoMessage()

func (*SubscribeUpdatesRequest) Reset

func (m *SubscribeUpdatesRequest) Reset()

func (*SubscribeUpdatesRequest) String

func (m *SubscribeUpdatesRequest) String() string

func (*SubscribeUpdatesRequest) XXX_DiscardUnknown

func (m *SubscribeUpdatesRequest) XXX_DiscardUnknown()

func (*SubscribeUpdatesRequest) XXX_Marshal

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

func (*SubscribeUpdatesRequest) XXX_Merge

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

func (*SubscribeUpdatesRequest) XXX_Size

func (m *SubscribeUpdatesRequest) XXX_Size() int

func (*SubscribeUpdatesRequest) XXX_Unmarshal

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

type SwapClientClient

type SwapClientClient interface {
	//* loop: `out`
	//LoopOut initiates an loop out swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream that is
	//returned from Monitor().
	LoopOut(ctx context.Context, in *LoopOutRequest, opts ...grpc.CallOption) (*SwapResponse, error)
	//* loop: `in`
	//LoopIn initiates a loop in swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream
	//that is returned from Monitor().
	LoopIn(ctx context.Context, in *LoopInRequest, opts ...grpc.CallOption) (*SwapResponse, error)
	//* loop: `monitor`
	//Monitor will return a stream of swap updates for currently active swaps.
	Monitor(ctx context.Context, in *MonitorRequest, opts ...grpc.CallOption) (SwapClient_MonitorClient, error)
	//* loop: `listswaps`
	//ListSwaps returns a list of all currently known swaps and their current
	//status.
	ListSwaps(ctx context.Context, in *ListSwapsRequest, opts ...grpc.CallOption) (*ListSwapsResponse, error)
	//* loop: `swapinfo`
	//SwapInfo returns all known details about a single swap.
	SwapInfo(ctx context.Context, in *SwapInfoRequest, opts ...grpc.CallOption) (*SwapStatus, error)
	//* loop: `terms`
	//LoopOutTerms returns the terms that the server enforces for a loop out swap.
	LoopOutTerms(ctx context.Context, in *TermsRequest, opts ...grpc.CallOption) (*OutTermsResponse, error)
	//* loop: `quote`
	//LoopOutQuote returns a quote for a loop out swap with the provided
	//parameters.
	LoopOutQuote(ctx context.Context, in *QuoteRequest, opts ...grpc.CallOption) (*OutQuoteResponse, error)
	//* loop: `terms`
	//GetTerms returns the terms that the server enforces for swaps.
	GetLoopInTerms(ctx context.Context, in *TermsRequest, opts ...grpc.CallOption) (*InTermsResponse, error)
	//* loop: `quote`
	//GetQuote returns a quote for a swap with the provided parameters.
	GetLoopInQuote(ctx context.Context, in *QuoteRequest, opts ...grpc.CallOption) (*InQuoteResponse, error)
	//* loop: `listauth`
	//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
	GetLsatTokens(ctx context.Context, in *TokensRequest, opts ...grpc.CallOption) (*TokensResponse, error)
}

SwapClientClient is the client API for SwapClient service.

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

func NewSwapClientClient

func NewSwapClientClient(cc *grpc.ClientConn) SwapClientClient

type SwapClientServer

type SwapClientServer interface {
	//* loop: `out`
	//LoopOut initiates an loop out swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream that is
	//returned from Monitor().
	LoopOut(context.Context, *LoopOutRequest) (*SwapResponse, error)
	//* loop: `in`
	//LoopIn initiates a loop in swap with the given parameters. The call
	//returns after the swap has been set up with the swap server. From that
	//point onwards, progress can be tracked via the SwapStatus stream
	//that is returned from Monitor().
	LoopIn(context.Context, *LoopInRequest) (*SwapResponse, error)
	//* loop: `monitor`
	//Monitor will return a stream of swap updates for currently active swaps.
	Monitor(*MonitorRequest, SwapClient_MonitorServer) error
	//* loop: `listswaps`
	//ListSwaps returns a list of all currently known swaps and their current
	//status.
	ListSwaps(context.Context, *ListSwapsRequest) (*ListSwapsResponse, error)
	//* loop: `swapinfo`
	//SwapInfo returns all known details about a single swap.
	SwapInfo(context.Context, *SwapInfoRequest) (*SwapStatus, error)
	//* loop: `terms`
	//LoopOutTerms returns the terms that the server enforces for a loop out swap.
	LoopOutTerms(context.Context, *TermsRequest) (*OutTermsResponse, error)
	//* loop: `quote`
	//LoopOutQuote returns a quote for a loop out swap with the provided
	//parameters.
	LoopOutQuote(context.Context, *QuoteRequest) (*OutQuoteResponse, error)
	//* loop: `terms`
	//GetTerms returns the terms that the server enforces for swaps.
	GetLoopInTerms(context.Context, *TermsRequest) (*InTermsResponse, error)
	//* loop: `quote`
	//GetQuote returns a quote for a swap with the provided parameters.
	GetLoopInQuote(context.Context, *QuoteRequest) (*InQuoteResponse, error)
	//* loop: `listauth`
	//GetLsatTokens returns all LSAT tokens the daemon ever paid for.
	GetLsatTokens(context.Context, *TokensRequest) (*TokensResponse, error)
}

SwapClientServer is the server API for SwapClient service.

type SwapClient_MonitorClient

type SwapClient_MonitorClient interface {
	Recv() (*SwapStatus, error)
	grpc.ClientStream
}

type SwapClient_MonitorServer

type SwapClient_MonitorServer interface {
	Send(*SwapStatus) error
	grpc.ServerStream
}

type SwapInfoRequest

type SwapInfoRequest struct {
	//*
	//The swap identifier which currently is the hash that locks the HTLCs. When
	//using REST, this field must be encoded as URL safe base64.
	Id                   []byte   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwapInfoRequest) Descriptor

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

func (*SwapInfoRequest) GetId

func (m *SwapInfoRequest) GetId() []byte

func (*SwapInfoRequest) ProtoMessage

func (*SwapInfoRequest) ProtoMessage()

func (*SwapInfoRequest) Reset

func (m *SwapInfoRequest) Reset()

func (*SwapInfoRequest) String

func (m *SwapInfoRequest) String() string

func (*SwapInfoRequest) XXX_DiscardUnknown

func (m *SwapInfoRequest) XXX_DiscardUnknown()

func (*SwapInfoRequest) XXX_Marshal

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

func (*SwapInfoRequest) XXX_Merge

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

func (*SwapInfoRequest) XXX_Size

func (m *SwapInfoRequest) XXX_Size() int

func (*SwapInfoRequest) XXX_Unmarshal

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

type SwapResponse

type SwapResponse struct {
	//*
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	//DEPRECATED: To make the API more consistent, this field is deprecated in
	//favor of id_bytes and will be removed in a future release.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use.
	//*
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	IdBytes []byte `protobuf:"bytes,3,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"`
	//*
	//DEPRECATED. This field stores the address of the onchain htlc, but
	//depending on the request, the semantics are different.
	//- For internal loop-in htlc_address contains the address of the
	//native segwit (P2WSH) htlc.
	//- For external loop-in htlc_address contains the address of the
	//nested segwit (NP2WSH) htlc.
	//- For loop-out htlc_address always contains the native segwit (P2WSH)
	//htlc address.
	HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // Deprecated: Do not use.
	//*
	//The nested segwit address of the on-chain htlc.
	//This field remains empty for loop-out.
	HtlcAddressNp2Wsh string `protobuf:"bytes,4,opt,name=htlc_address_np2wsh,json=htlcAddressNp2wsh,proto3" json:"htlc_address_np2wsh,omitempty"`
	//*
	//The native segwit address of the on-chain htlc.
	//Used for both loop-in and loop-out.
	HtlcAddressP2Wsh string `protobuf:"bytes,5,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"`
	// A human-readable message received from the loop server.
	ServerMessage        string   `protobuf:"bytes,6,opt,name=server_message,json=serverMessage,proto3" json:"server_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwapResponse) Descriptor

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

func (*SwapResponse) GetHtlcAddress deprecated

func (m *SwapResponse) GetHtlcAddress() string

Deprecated: Do not use.

func (*SwapResponse) GetHtlcAddressNp2Wsh

func (m *SwapResponse) GetHtlcAddressNp2Wsh() string

func (*SwapResponse) GetHtlcAddressP2Wsh

func (m *SwapResponse) GetHtlcAddressP2Wsh() string

func (*SwapResponse) GetId deprecated

func (m *SwapResponse) GetId() string

Deprecated: Do not use.

func (*SwapResponse) GetIdBytes

func (m *SwapResponse) GetIdBytes() []byte

func (*SwapResponse) GetServerMessage

func (m *SwapResponse) GetServerMessage() string

func (*SwapResponse) ProtoMessage

func (*SwapResponse) ProtoMessage()

func (*SwapResponse) Reset

func (m *SwapResponse) Reset()

func (*SwapResponse) String

func (m *SwapResponse) String() string

func (*SwapResponse) XXX_DiscardUnknown

func (m *SwapResponse) XXX_DiscardUnknown()

func (*SwapResponse) XXX_Marshal

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

func (*SwapResponse) XXX_Merge

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

func (*SwapResponse) XXX_Size

func (m *SwapResponse) XXX_Size() int

func (*SwapResponse) XXX_Unmarshal

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

type SwapServerClient

SwapServerClient is the client API for SwapServer service.

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

func NewSwapServerClient

func NewSwapServerClient(cc *grpc.ClientConn) SwapServerClient

type SwapServer_SubscribeLoopInUpdatesClient

type SwapServer_SubscribeLoopInUpdatesClient interface {
	Recv() (*SubscribeLoopInUpdatesResponse, error)
	grpc.ClientStream
}

type SwapServer_SubscribeLoopInUpdatesServer

type SwapServer_SubscribeLoopInUpdatesServer interface {
	Send(*SubscribeLoopInUpdatesResponse) error
	grpc.ServerStream
}

type SwapServer_SubscribeLoopOutUpdatesClient

type SwapServer_SubscribeLoopOutUpdatesClient interface {
	Recv() (*SubscribeLoopOutUpdatesResponse, error)
	grpc.ClientStream
}

type SwapServer_SubscribeLoopOutUpdatesServer

type SwapServer_SubscribeLoopOutUpdatesServer interface {
	Send(*SubscribeLoopOutUpdatesResponse) error
	grpc.ServerStream
}

type SwapState

type SwapState int32
const (
	//*
	//INITIATED is the initial state of a swap. At that point, the initiation
	//call to the server has been made and the payment process has been started
	//for the swap and prepayment invoices.
	SwapState_INITIATED SwapState = 0
	//*
	//PREIMAGE_REVEALED is reached when the sweep tx publication is first
	//attempted. From that point on, we should consider the preimage to no
	//longer be secret and we need to do all we can to get the sweep confirmed.
	//This state will mostly coalesce with StateHtlcConfirmed, except in the
	//case where we wait for fees to come down before we sweep.
	SwapState_PREIMAGE_REVEALED SwapState = 1
	//*
	//HTLC_PUBLISHED is reached when the htlc tx has been published in a loop in
	//swap.
	SwapState_HTLC_PUBLISHED SwapState = 2
	//*
	//SUCCESS is the final swap state that is reached when the sweep tx has
	//the required confirmation depth.
	SwapState_SUCCESS SwapState = 3
	//*
	//FAILED is the final swap state for a failed swap with or without loss of
	//the swap amount.
	SwapState_FAILED SwapState = 4
	//*
	//INVOICE_SETTLED is reached when the swap invoice in a loop in swap has been
	//paid, but we are still waiting for the htlc spend to confirm.
	SwapState_INVOICE_SETTLED SwapState = 5
)

func (SwapState) EnumDescriptor

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

func (SwapState) String

func (x SwapState) String() string

type SwapStatus

type SwapStatus struct {
	//*
	//Requested swap amount in sat. This does not include the swap and miner
	//fee.
	Amt int64 `protobuf:"varint,1,opt,name=amt,proto3" json:"amt,omitempty"`
	//*
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	//DEPRECATED: To make the API more consistent, this field is deprecated in
	//favor of id_bytes and will be removed in a future release.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Deprecated: Do not use.
	//*
	//Swap identifier to track status in the update stream that is returned from
	//the Start() call. Currently this is the hash that locks the htlcs.
	IdBytes []byte `protobuf:"bytes,11,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"`
	//*
	//Swap type
	Type SwapType `protobuf:"varint,3,opt,name=type,proto3,enum=looprpc.SwapType" json:"type,omitempty"`
	//*
	//State the swap is currently in, see State enum.
	State SwapState `protobuf:"varint,4,opt,name=state,proto3,enum=looprpc.SwapState" json:"state,omitempty"`
	//
	//A failure reason for the swap, only set if the swap has failed.
	FailureReason FailureReason `` /* 129-byte string literal not displayed */
	//*
	//Initiation time of the swap.
	InitiationTime int64 `protobuf:"varint,5,opt,name=initiation_time,json=initiationTime,proto3" json:"initiation_time,omitempty"`
	//*
	//Initiation time of the swap.
	LastUpdateTime int64 `protobuf:"varint,6,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
	//*
	//DEPRECATED:  This field stores the address of the onchain htlc.
	//- For internal loop-in htlc_address contains the address of the
	//native segwit (P2WSH) htlc.
	//- For external loop-in htlc_address contains the nested segwit (NP2WSH)
	//address.
	//- For loop-out htlc_address always contains the native segwit (P2WSH)
	//htlc address.
	HtlcAddress string `protobuf:"bytes,7,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"` // Deprecated: Do not use.
	// HTLC address (native segwit), used in loop-in and loop-out swaps.
	HtlcAddressP2Wsh string `protobuf:"bytes,12,opt,name=htlc_address_p2wsh,json=htlcAddressP2wsh,proto3" json:"htlc_address_p2wsh,omitempty"`
	// HTLC address (nested segwit), used in loop-in swaps only.
	HtlcAddressNp2Wsh string `protobuf:"bytes,13,opt,name=htlc_address_np2wsh,json=htlcAddressNp2wsh,proto3" json:"htlc_address_np2wsh,omitempty"`
	/// Swap server cost
	CostServer int64 `protobuf:"varint,8,opt,name=cost_server,json=costServer,proto3" json:"cost_server,omitempty"`
	// On-chain transaction cost
	CostOnchain int64 `protobuf:"varint,9,opt,name=cost_onchain,json=costOnchain,proto3" json:"cost_onchain,omitempty"`
	// Off-chain routing fees
	CostOffchain int64 `protobuf:"varint,10,opt,name=cost_offchain,json=costOffchain,proto3" json:"cost_offchain,omitempty"`
	// An optional label given to the swap on creation.
	Label                string   `protobuf:"bytes,15,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwapStatus) Descriptor

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

func (*SwapStatus) GetAmt

func (m *SwapStatus) GetAmt() int64

func (*SwapStatus) GetCostOffchain

func (m *SwapStatus) GetCostOffchain() int64

func (*SwapStatus) GetCostOnchain

func (m *SwapStatus) GetCostOnchain() int64

func (*SwapStatus) GetCostServer

func (m *SwapStatus) GetCostServer() int64

func (*SwapStatus) GetFailureReason

func (m *SwapStatus) GetFailureReason() FailureReason

func (*SwapStatus) GetHtlcAddress deprecated

func (m *SwapStatus) GetHtlcAddress() string

Deprecated: Do not use.

func (*SwapStatus) GetHtlcAddressNp2Wsh

func (m *SwapStatus) GetHtlcAddressNp2Wsh() string

func (*SwapStatus) GetHtlcAddressP2Wsh

func (m *SwapStatus) GetHtlcAddressP2Wsh() string

func (*SwapStatus) GetId deprecated

func (m *SwapStatus) GetId() string

Deprecated: Do not use.

func (*SwapStatus) GetIdBytes

func (m *SwapStatus) GetIdBytes() []byte

func (*SwapStatus) GetInitiationTime

func (m *SwapStatus) GetInitiationTime() int64

func (*SwapStatus) GetLabel

func (m *SwapStatus) GetLabel() string

func (*SwapStatus) GetLastUpdateTime

func (m *SwapStatus) GetLastUpdateTime() int64

func (*SwapStatus) GetState

func (m *SwapStatus) GetState() SwapState

func (*SwapStatus) GetType

func (m *SwapStatus) GetType() SwapType

func (*SwapStatus) ProtoMessage

func (*SwapStatus) ProtoMessage()

func (*SwapStatus) Reset

func (m *SwapStatus) Reset()

func (*SwapStatus) String

func (m *SwapStatus) String() string

func (*SwapStatus) XXX_DiscardUnknown

func (m *SwapStatus) XXX_DiscardUnknown()

func (*SwapStatus) XXX_Marshal

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

func (*SwapStatus) XXX_Merge

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

func (*SwapStatus) XXX_Size

func (m *SwapStatus) XXX_Size() int

func (*SwapStatus) XXX_Unmarshal

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

type SwapType

type SwapType int32
const (
	// LOOP_OUT indicates an loop out swap (off-chain to on-chain)
	SwapType_LOOP_OUT SwapType = 0
	// LOOP_IN indicates a loop in swap (on-chain to off-chain)
	SwapType_LOOP_IN SwapType = 1
)

func (SwapType) EnumDescriptor

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

func (SwapType) String

func (x SwapType) String() string

type TermsRequest

type TermsRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TermsRequest) Descriptor

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

func (*TermsRequest) ProtoMessage

func (*TermsRequest) ProtoMessage()

func (*TermsRequest) Reset

func (m *TermsRequest) Reset()

func (*TermsRequest) String

func (m *TermsRequest) String() string

func (*TermsRequest) XXX_DiscardUnknown

func (m *TermsRequest) XXX_DiscardUnknown()

func (*TermsRequest) XXX_Marshal

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

func (*TermsRequest) XXX_Merge

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

func (*TermsRequest) XXX_Size

func (m *TermsRequest) XXX_Size() int

func (*TermsRequest) XXX_Unmarshal

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

type TokensRequest

type TokensRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokensRequest) Descriptor

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

func (*TokensRequest) ProtoMessage

func (*TokensRequest) ProtoMessage()

func (*TokensRequest) Reset

func (m *TokensRequest) Reset()

func (*TokensRequest) String

func (m *TokensRequest) String() string

func (*TokensRequest) XXX_DiscardUnknown

func (m *TokensRequest) XXX_DiscardUnknown()

func (*TokensRequest) XXX_Marshal

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

func (*TokensRequest) XXX_Merge

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

func (*TokensRequest) XXX_Size

func (m *TokensRequest) XXX_Size() int

func (*TokensRequest) XXX_Unmarshal

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

type TokensResponse

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 (*TokensResponse) Descriptor

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

func (*TokensResponse) GetTokens

func (m *TokensResponse) GetTokens() []*LsatToken

func (*TokensResponse) ProtoMessage

func (*TokensResponse) ProtoMessage()

func (*TokensResponse) Reset

func (m *TokensResponse) Reset()

func (*TokensResponse) String

func (m *TokensResponse) String() string

func (*TokensResponse) XXX_DiscardUnknown

func (m *TokensResponse) XXX_DiscardUnknown()

func (*TokensResponse) XXX_Marshal

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

func (*TokensResponse) XXX_Merge

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

func (*TokensResponse) XXX_Size

func (m *TokensResponse) XXX_Size() int

func (*TokensResponse) XXX_Unmarshal

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

type UnimplementedSwapClientServer

type UnimplementedSwapClientServer struct {
}

UnimplementedSwapClientServer can be embedded to have forward compatible implementations.

func (*UnimplementedSwapClientServer) GetLoopInQuote

func (*UnimplementedSwapClientServer) GetLoopInTerms

func (*UnimplementedSwapClientServer) GetLsatTokens

func (*UnimplementedSwapClientServer) ListSwaps

func (*UnimplementedSwapClientServer) LoopIn

func (*UnimplementedSwapClientServer) LoopOut

func (*UnimplementedSwapClientServer) LoopOutQuote

func (*UnimplementedSwapClientServer) LoopOutTerms

func (*UnimplementedSwapClientServer) Monitor

func (*UnimplementedSwapClientServer) SwapInfo

type UnimplementedSwapServerServer

type UnimplementedSwapServerServer struct {
}

UnimplementedSwapServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedSwapServerServer) LoopInQuote

func (*UnimplementedSwapServerServer) LoopInTerms

func (*UnimplementedSwapServerServer) LoopOutPushPreimage

func (*UnimplementedSwapServerServer) LoopOutQuote

func (*UnimplementedSwapServerServer) LoopOutTerms

func (*UnimplementedSwapServerServer) NewLoopInSwap

func (*UnimplementedSwapServerServer) NewLoopOutSwap

func (*UnimplementedSwapServerServer) SubscribeLoopInUpdates

func (*UnimplementedSwapServerServer) SubscribeLoopOutUpdates

Jump to

Keyboard shortcuts

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