@ -39,18 +39,26 @@ const (
//Loop will use native segwit (P2WSH) htlcs by default, while externally
//Loop will use native segwit (P2WSH) htlcs by default, while externally
//published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
//published htlcs may use native (P2WSH) or nested (NP2WSH) segwit as well.
ProtocolVersion_NATIVE_SEGWIT_LOOP_IN ProtocolVersion = 2
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
)
)
var ProtocolVersion_name = map [ int32 ] string {
var ProtocolVersion_name = map [ int32 ] string {
0 : "LEGACY" ,
0 : "LEGACY" ,
1 : "MULTI_LOOP_OUT" ,
1 : "MULTI_LOOP_OUT" ,
2 : "NATIVE_SEGWIT_LOOP_IN" ,
2 : "NATIVE_SEGWIT_LOOP_IN" ,
3 : "PREIMAGE_PUSH_LOOP_OUT" ,
}
}
var ProtocolVersion_value = map [ string ] int32 {
var ProtocolVersion_value = map [ string ] int32 {
"LEGACY" : 0 ,
"LEGACY" : 0 ,
"MULTI_LOOP_OUT" : 1 ,
"MULTI_LOOP_OUT" : 1 ,
"NATIVE_SEGWIT_LOOP_IN" : 2 ,
"NATIVE_SEGWIT_LOOP_IN" : 2 ,
"PREIMAGE_PUSH_LOOP_OUT" : 3 ,
}
}
func ( x ProtocolVersion ) String ( ) string {
func ( x ProtocolVersion ) String ( ) string {
@ -771,6 +779,91 @@ func (m *ServerLoopInTerms) GetMaxSwapAmount() uint64 {
return 0
return 0
}
}
// 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.
type ServerLoopOutPushPreimageRequest struct {
// The protocol version that the client adheres to.
ProtocolVersion ProtocolVersion ` protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3,enum=looprpc.ProtocolVersion" json:"protocol_version,omitempty" `
//
//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:"-" `
}
func ( m * ServerLoopOutPushPreimageRequest ) Reset ( ) { * m = ServerLoopOutPushPreimageRequest { } }
func ( m * ServerLoopOutPushPreimageRequest ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ServerLoopOutPushPreimageRequest ) ProtoMessage ( ) { }
func ( * ServerLoopOutPushPreimageRequest ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_ad098daeda4239f7 , [ ] int { 12 }
}
func ( m * ServerLoopOutPushPreimageRequest ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_ServerLoopOutPushPreimageRequest . Unmarshal ( m , b )
}
func ( m * ServerLoopOutPushPreimageRequest ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_ServerLoopOutPushPreimageRequest . Marshal ( b , m , deterministic )
}
func ( m * ServerLoopOutPushPreimageRequest ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ServerLoopOutPushPreimageRequest . Merge ( m , src )
}
func ( m * ServerLoopOutPushPreimageRequest ) XXX_Size ( ) int {
return xxx_messageInfo_ServerLoopOutPushPreimageRequest . Size ( m )
}
func ( m * ServerLoopOutPushPreimageRequest ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ServerLoopOutPushPreimageRequest . DiscardUnknown ( m )
}
var xxx_messageInfo_ServerLoopOutPushPreimageRequest proto . InternalMessageInfo
func ( m * ServerLoopOutPushPreimageRequest ) GetProtocolVersion ( ) ProtocolVersion {
if m != nil {
return m . ProtocolVersion
}
return ProtocolVersion_LEGACY
}
func ( m * ServerLoopOutPushPreimageRequest ) GetPreimage ( ) [ ] byte {
if m != nil {
return m . Preimage
}
return nil
}
type ServerLoopOutPushPreimageResponse struct {
XXX_NoUnkeyedLiteral struct { } ` json:"-" `
XXX_unrecognized [ ] byte ` json:"-" `
XXX_sizecache int32 ` json:"-" `
}
func ( m * ServerLoopOutPushPreimageResponse ) Reset ( ) { * m = ServerLoopOutPushPreimageResponse { } }
func ( m * ServerLoopOutPushPreimageResponse ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ServerLoopOutPushPreimageResponse ) ProtoMessage ( ) { }
func ( * ServerLoopOutPushPreimageResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_ad098daeda4239f7 , [ ] int { 13 }
}
func ( m * ServerLoopOutPushPreimageResponse ) XXX_Unmarshal ( b [ ] byte ) error {
return xxx_messageInfo_ServerLoopOutPushPreimageResponse . Unmarshal ( m , b )
}
func ( m * ServerLoopOutPushPreimageResponse ) XXX_Marshal ( b [ ] byte , deterministic bool ) ( [ ] byte , error ) {
return xxx_messageInfo_ServerLoopOutPushPreimageResponse . Marshal ( b , m , deterministic )
}
func ( m * ServerLoopOutPushPreimageResponse ) XXX_Merge ( src proto . Message ) {
xxx_messageInfo_ServerLoopOutPushPreimageResponse . Merge ( m , src )
}
func ( m * ServerLoopOutPushPreimageResponse ) XXX_Size ( ) int {
return xxx_messageInfo_ServerLoopOutPushPreimageResponse . Size ( m )
}
func ( m * ServerLoopOutPushPreimageResponse ) XXX_DiscardUnknown ( ) {
xxx_messageInfo_ServerLoopOutPushPreimageResponse . DiscardUnknown ( m )
}
var xxx_messageInfo_ServerLoopOutPushPreimageResponse proto . InternalMessageInfo
func init ( ) {
func init ( ) {
proto . RegisterEnum ( "looprpc.ProtocolVersion" , ProtocolVersion_name , ProtocolVersion_value )
proto . RegisterEnum ( "looprpc.ProtocolVersion" , ProtocolVersion_name , ProtocolVersion_value )
proto . RegisterType ( ( * ServerLoopOutRequest ) ( nil ) , "looprpc.ServerLoopOutRequest" )
proto . RegisterType ( ( * ServerLoopOutRequest ) ( nil ) , "looprpc.ServerLoopOutRequest" )
@ -785,63 +878,70 @@ func init() {
proto . RegisterType ( ( * ServerLoopInQuoteResponse ) ( nil ) , "looprpc.ServerLoopInQuoteResponse" )
proto . RegisterType ( ( * ServerLoopInQuoteResponse ) ( nil ) , "looprpc.ServerLoopInQuoteResponse" )
proto . RegisterType ( ( * ServerLoopInTermsRequest ) ( nil ) , "looprpc.ServerLoopInTermsRequest" )
proto . RegisterType ( ( * ServerLoopInTermsRequest ) ( nil ) , "looprpc.ServerLoopInTermsRequest" )
proto . RegisterType ( ( * ServerLoopInTerms ) ( nil ) , "looprpc.ServerLoopInTerms" )
proto . RegisterType ( ( * ServerLoopInTerms ) ( nil ) , "looprpc.ServerLoopInTerms" )
proto . RegisterType ( ( * ServerLoopOutPushPreimageRequest ) ( nil ) , "looprpc.ServerLoopOutPushPreimageRequest" )
proto . RegisterType ( ( * ServerLoopOutPushPreimageResponse ) ( nil ) , "looprpc.ServerLoopOutPushPreimageResponse" )
}
}
func init ( ) { proto . RegisterFile ( "server.proto" , fileDescriptor_ad098daeda4239f7 ) }
func init ( ) { proto . RegisterFile ( "server.proto" , fileDescriptor_ad098daeda4239f7 ) }
var fileDescriptor_ad098daeda4239f7 = [ ] byte {
var fileDescriptor_ad098daeda4239f7 = [ ] byte {
// 810 bytes of a gzipped FileDescriptorProto
// 884 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0xac , 0x55 , 0xdd , 0x52 , 0xe2 , 0x48 ,
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0xac , 0x55 , 0x41 , 0x73 , 0xda , 0x46 ,
0x14 , 0xde , 0x04 , 0x04 , 0x39 , 0xf2 , 0x67 , 0xef , 0xba , 0x1b , 0x50 , 0xb6 , 0x90 , 0xaa , 0xb5 , 0x28 ,
0x14 , 0xae , 0x04 , 0xc6 , 0xe6 , 0x19 , 0xdb , 0x64 , 0xd3 , 0xa4 , 0x82 , 0xc4 , 0x1d , 0x4c , 0xa7 , 0x1e ,
0x2f , 0xb4 , 0xca , 0xbd , 0xdb , 0x3b , 0xd6 , 0x5f , 0x6a , 0x59 , 0xd1 , 0x88 , 0x6e , 0xed , 0x55 , 0xa6 ,
0xd7 , 0x07 , 0x67 , 0x26 , 0xbd , 0xf5 , 0x46 , 0x63 , 0x62 , 0x33 , 0x25 , 0x86 , 0x08 , 0x9c , 0x4e , 0x4f ,
0x85 , 0x1e , 0x49 , 0x4d , 0x48 , 0xc7 , 0xa4 , 0x41 , 0x79 , 0x93 , 0x99 , 0x97 , 0x98 , 0xb7 , 0x99 , 0x57 ,
0xea , 0x06 , 0x5e , 0x8d , 0xa6 , 0x42 , 0xbb , 0x91 , 0x16 , 0x6c , 0xce , 0xfd , 0x13 , 0xed , 0x9f , 0xe8 ,
0x98 , 0xaa , 0xb9 , 0x9c , 0x37 , 0x98 , 0xea , 0xee , 0x44 , 0x92 , 0x10 , 0x54 , 0xaa , 0xbc , 0x33 , 0xe7 ,
0xbf , 0xe9 , 0xb9 , 0xb7 , 0xce , 0xf4 , 0x5f , 0x64 , 0xb4 , 0xbb , 0x32 , 0x48 , 0x08 , 0xdb , 0xcc , 0xf8 ,
0x7c , 0x76 , 0x7f , 0xdf , 0x77 , 0xce , 0xd7 , 0x40 , 0xde , 0x23 , 0xee , 0x84 , 0xb8 , 0x7b , 0x8e , 0x4b ,
0xc6 , 0xbe , 0xf7 , 0xe9 , 0xed , 0xfb , 0xbe , 0xb7 , 0xdf , 0x03 , 0x4a , 0x21 , 0x06 , 0x53 , 0x0c , 0x4e ,
0x19 , 0x45 , 0x59 , 0x8b , 0x52 , 0xc7 , 0x75 , 0xfa , 0xd5 , 0xad , 0x3b , 0x4a , 0xef , 0x2c , 0xb2 , 0x8f ,
0x78 , 0xc0 , 0x04 , 0x23 , 0x9b , 0x1e , 0x63 , 0x3c , 0xe0 , 0x83 , 0xea , 0xcb , 0x2b , 0xc6 , 0xae , 0x3c ,
0x1d , 0x73 , 0x1f , 0xdb , 0x36 , 0x65 , 0x98 , 0x99 , 0xd4 , 0xf6 , 0x24 , 0xac , 0xf1 , 0x4d , 0x81 , 0x5f ,
0x7c , 0x45 , 0xb9 , 0xfb , 0x8a , 0xfa , 0x3e , 0x13 , 0x54 , 0xb8 , 0xcc , 0x0f , 0x15 , 0xac , 0xfe , 0xbf ,
0xae , 0xc4 , 0xff , 0x75 , 0x28 , 0x75 , 0xba , 0x63 , 0xa6 , 0x93 , 0xfb , 0x31 , 0xf1 , 0x18 , 0xda , 0x86 ,
0x01 , 0x5f , 0xf6 , 0xe4 , 0x77 , 0x6d , 0xc6 , 0x78 , 0x67 , 0x22 , 0x6c , 0xfc , 0x34 , 0xc1 , 0x50 , 0x90 ,
0xbc , 0x4b , 0xfa , 0xc4 , 0x9c , 0x10 , 0xd7 , 0xf8 , 0x40 , 0xa6 , 0x9a , 0x52 , 0x57 , 0x9a , 0x79 , 0x7d ,
0x03 , 0x28 , 0x05 , 0x38 , 0x40 , 0x77 , 0x8a , 0x81 , 0xf3 , 0x3b , 0xce , 0x2c , 0xa3 , 0x66 , 0x1c , 0x95 ,
0x2d , 0xa8 , 0xfd , 0x43 , 0xa6 , 0x68 , 0x13 , 0x72 , 0xde , 0x03 , 0x76 , 0x8c , 0x21 , 0xf6 , 0x86 , 0x9a ,
0xec , 0xed , 0x38 , 0xf6 , 0x13 , 0xce , 0xc8 , 0x0b , 0x28 , 0x86 , 0xd7 , 0x94 , 0x3b , 0x23 , 0x1a , 0x8e ,
0x2a , 0xfa , 0xab , 0xbc , 0x70 , 0x86 , 0xbd , 0x21 , 0x2a , 0x43 , 0x0a , 0x8f , 0x98 , 0x96 , 0xaa , 0x2b ,
0x2c , 0x53 , 0xe6 , 0xb7 , 0xa2 , 0xc0 , 0x39 , 0x0d , 0x47 , 0xa4 , 0x0c , 0x39 , 0x3a , 0x16 , 0x56 , 0xae ,
0xcd , 0xb4 , 0xce , 0xff , 0x44 , 0x7f , 0x41 , 0x45 , 0xc0 , 0x9d , 0xf1 , 0xad , 0x65 , 0xf6 , 0x05 , 0x0b ,
0x66 , 0x1c , 0xe5 , 0xed , 0xe8 , 0x27 , 0xf9 , 0x01 , 0x2a , 0x12 , 0xce , 0x27 , 0x1f , 0x3d , 0x77 , 0x20 ,
0x63 , 0x40 , 0xf0 , 0xc0 , 0x32 , 0x6d , 0xa2 , 0xa5 , 0xeb , 0x4a , 0x33 , 0xa5 , 0xff , 0xc6 , 0x01 , 0x17 ,
0xbb , 0x70 , 0x86 , 0x48 , 0x87 , 0x9e , 0xeb , 0xa3 , 0x95 , 0xaf , 0x19 , 0x47 , 0x39 , 0xfb , 0xab , 0x08 ,
0xb3 , 0xfe , 0x91 , 0xdf , 0x46 , 0x87 , 0x50 , 0x16 , 0x7c , 0xfb , 0xd4 , 0x32 , 0x26 , 0xc4 , 0xf5 , 0x4c ,
0xd0 , 0x9d , 0xe7 , 0x4f , 0x75 , 0x9a , 0xbc , 0x81 , 0xb2 , 0xec , 0x77 , 0xc0 , 0x3c , 0x67 , 0x8a , 0x41 ,
0x6a , 0x6b , 0x2b , 0x75 , 0xa5 , 0x59 , 0x3c , 0xd0 , 0xf6 , 0x7c , 0xa1 , 0x7b , 0x17 , 0x3e , 0xe0 , 0x46 ,
0xe8 , 0x32 , 0xdf , 0xda , 0xa8 , 0x19 , 0x47 , 0xbb , 0xaf , 0xad , 0x13 , 0x4d , 0xf4 , 0xa4 , 0xab , 0x01 ,
0xf6 , 0xf5 , 0x92 , 0x13 , 0x2d , 0x34 , 0x3e , 0x2a , 0xb0 , 0x11 , 0xd3 , 0xea , 0x39 , 0xd4 , 0xf6 , 0x08 ,
0x1f , 0x54 , 0xde , 0xde , 0xe3 , 0xc9 , 0x40 , 0xfd , 0x4f , 0x03 , 0x9e , 0xa5 , 0xb8 , 0x86 , 0x9c , 0xf9 ,
0x17 , 0x2b , 0xa8 , 0x99 , 0xf6 , 0x84 , 0x9a , 0x7d , 0x22 , 0xc4 , 0xe6 , 0xf4 , 0x35 , 0x5e , 0x6b , 0xcb ,
0x21 , 0x46 , 0x64 , 0x65 , 0x6b , 0xae , 0x3f , 0x65 , 0xee , 0x00 , 0x25 , 0xd9 , 0xa2 , 0xbd , 0x1d , 0xc5 ,
0x12 , 0xfa , 0x03 , 0x8a , 0x8e , 0x4b , 0x1c , 0x3c , 0x7d , 0x02 , 0xa9 , 0x02 , 0x54 , 0x90 , 0xd5 , 0x00 ,
0x5a , 0x2a , 0x44 , 0xbe , 0x85 , 0x5d , 0x1e , 0x20 , 0xa7 , 0xb3 , 0x5b , 0x90 , 0x29 , 0x41 , 0x3b , 0x2a ,
0x56 , 0x03 , 0xf0 , 0x88 , 0x3d , 0xf0 , 0x4d , 0x4b , 0x09 , 0x53 , 0x72 , 0xb2 , 0xc2 , 0x2d , 0xfb , 0x15 ,
0x1a , 0xc3 , 0xf6 , 0x01 , 0x42 , 0xf4 , 0x87 , 0x5a , 0xb4 , 0x9c , 0x14 , 0xa5 , 0xa8 , 0x22 , 0x91 , 0x64 ,
0x32 , 0xe4 , 0xd1 , 0x31 , 0xdd , 0xa9 , 0x10 , 0xbc , 0xa2 , 0xfb , 0x5f , 0x8d , 0xcf , 0x0a , 0x54 , 0x22 ,
0xcf , 0xa1 , 0x80 , 0x37 , 0xdc , 0x0d , 0x66 , 0x92 , 0xf0 , 0x86 , 0xad , 0x4f , 0xf5 , 0xbf , 0x0d , 0xa8 ,
0xd4 , 0x2e , 0xc7 , 0x94 , 0x91 , 0x60 , 0x16 , 0xbe , 0x97 , 0xca , 0x2b , 0xbd , 0x54 , 0x97 , 0xf7 , 0x32 ,
0x24 , 0x5a , 0x7b , 0x3f , 0x61 , 0x02 , 0xe3 , 0x59 , 0x68 , 0x2d , 0x8d , 0x07 , 0x6a , 0x69 , 0xae , 0xaf ,
0xb5 , 0xac , 0x97 , 0x9f , 0x54 , 0x40 , 0xf3 , 0x84 , 0xd1 , 0x2e , 0xac , 0x4b , 0x5e , 0x78 , 0x3a , 0x22 ,
0x65 , 0x6e , 0x5d , 0x2d , 0xff , 0x32 , 0x81 , 0x2c , 0x37 , 0x4c , 0x8e , 0xe1 , 0x89 , 0xea , 0x8b , 0xce ,
0x36 , 0x33 , 0x06 , 0xc4 , 0x63 , 0xbe , 0x9b , 0x25 , 0xc1 , 0x47 , 0xd6 , 0x8f , 0xb8 , 0xaa , 0x0a , 0x88 ,
0xc6 , 0xe8 , 0x0b , 0x67 , 0x88 , 0xa1 , 0xd0 , 0x6a , 0xee , 0xc9 , 0x7e , 0x54 , 0xfc , 0x34 , 0x62 , 0x55 ,
0x6d , 0x31 , 0xde , 0x93 , 0x80 , 0x72 , 0x96 , 0x7f , 0x9f , 0x10 , 0x82 , 0x76 , 0xa0 , 0x10 , 0xb4 , 0x0c ,
0x01 , 0xf9 , 0x5a , 0x9c , 0xdf , 0x30 , 0x6e , 0x79 , 0x33 , 0x3a , 0xbf , 0x45 , 0x24 , 0x87 , 0xb0 , 0x13 ,
0x17 , 0x33 , 0x22 , 0xf8 , 0xa5 , 0xfe , 0x56 , 0x35 , 0x45 , 0x0e , 0xe5 , 0x84 , 0x10 , 0x1d , 0x33 , 0xe1 ,
0xa7 , 0x9c , 0x80 , 0x0a , 0x94 , 0xfd , 0xe5 , 0x7e , 0x34 , 0x2d , 0x43 , 0x0d , 0xe5 , 0x2d , 0xa2 , 0x4d ,
0xb6 , 0x3f , 0x14 , 0xee , 0x4f , 0x5a , 0xf8 , 0x93 , 0x93 , 0x95 , 0xd6 , 0x88 , 0xa1 , 0x5d , 0x28 , 0x8d ,
0x85 , 0x54 , 0x5b , 0x0f , 0x25 , 0xd2 , 0x27 , 0x2f , 0xf5 , 0x29 , 0xaa , 0x48 , 0x63 , 0x2c , 0xc8 , 0x31 ,
0x4c , 0xdb , 0x10 , 0x47 , 0xe1 , 0x11 , 0x1d , 0xdb , 0x4c , 0x2c , 0x4d , 0x5a , 0x1c , 0x54 , 0x18 , 0x99 ,
0xec , 0x8d , 0x5d , 0xdf , 0x91 , 0xa5 , 0xe8 , 0x98 , 0x4d , 0x7c , 0x21 , 0x1f , 0x4d , 0x5e , 0x16 , 0xda ,
0xf6 , 0xd5 , 0x03 , 0x76 , 0x5a , 0xa2 , 0x21 , 0xb0 , 0xf8 , 0x31 , 0x82 , 0xcd , 0x84 , 0xb0 , 0xf8 , 0x31 ,
0x19 , 0xbb , 0x7e , 0xef , 0x9a , 0xf2 , 0x86 , 0x4c , 0x48 , 0x2c , 0xbd , 0x49 , 0x60 , 0x0b , 0x0b , 0x58 ,
0x84 , 0xad , 0x01 , 0xf4 , 0x2d , 0x36 , 0x31 , 0x06 , 0xc4 , 0x62 , 0x58 , 0xcb , 0x8a , 0x49 , 0xe6 , 0x78 ,
0x7a , 0xb3 , 0x80 , 0xdd , 0x07 , 0x18 , 0x78 , 0x62 , 0xea , 0x0c , 0xd1 , 0x13 , 0xd4 , 0xda , 0x94 , 0x93 ,
0xe5 , 0x88 , 0x17 , 0x1a , 0xef , 0x62 , 0xb3 , 0xec , 0x11 , 0x77 , 0xe4 , 0x05 , 0xb3 , 0x4c , 0x72 , 0x5f ,
0x2c , 0x46 , 0x91 , 0xd3 , 0x28 , 0x50 , 0xff , 0x35 , 0x35 , 0xcb , 0x3e , 0x06 , 0xe3 , 0x30 , 0x9e , 0x65 ,
0x59 , 0xd6 , 0xfd , 0x41 , 0xcc , 0x7c , 0x71 , 0x03 , 0xda , 0x99 , 0x97 , 0x2b , 0x57 , 0x26 , 0x26 , 0x75 ,
0x96 , 0xfa , 0xc6 , 0xba , 0xea , 0x0f , 0x53 , 0xe2 , 0xcb , 0x1b , 0xc8 , 0xe1 , 0x32 , 0x5d , 0xf5 , 0x64 ,
0x67 , 0x5e , 0xaa , 0xea , 0xe3 , 0xc2 , 0x32 , 0x1b , 0x5f , 0x15 , 0xf8 , 0x79 , 0x76 , 0x4d , 0xdb , 0x0e ,
0x52 , 0x54 , 0x0f , 0x97 , 0xa9 , 0x9a , 0x1a , 0xb7 , 0x48 , 0xb3 , 0xfe , 0x9f , 0x01 , 0x4f , 0xe7 , 0xd7 ,
0x24 , 0x44 , 0x77 , 0x5c , 0x89 , 0xef , 0xf8 , 0x92 , 0xcf , 0x42 , 0x3c , 0x7b , 0xe9 , 0xf9 , 0xec , 0x55 ,
0xb4 , 0xfc , 0x98 , 0x42 , 0xf2 , 0x8d , 0x1b , 0xe9 , 0x37 , 0xbe , 0xe6 , 0x5a , 0x48 , 0x7b , 0x2f , 0xbf ,
0x60 , 0xd5 , 0xc2 , 0x1e , 0x33 , 0x86 , 0xd4 , 0x11 , 0x03 , 0xcc , 0xeb , 0x59 , 0xfe , 0x7d , 0x46 , 0x9d ,
0xec , 0xbd , 0x0a , 0x6c , 0x79 , 0x34 , 0x14 , 0xce , 0x88 , 0x71 , 0x39 , 0xc0 , 0x92 , 0xbd , 0x19 , 0x9d ,
0x44 , 0x3b , 0x33 , 0xcb , 0xda , 0x79 , 0x19 , 0x7e , 0x03 , 0xb9 , 0xce , 0xd9 , 0xb3 , 0xf0 , 0xd2 , 0x1b ,
0xcf , 0x19 , 0xcf , 0x94 , 0xb3 , 0xb0 , 0xae , 0x9c , 0xef , 0x17 , 0x77 , 0x60 , 0xc4 , 0x73 , 0xbe , 0x16 ,
0x38 , 0x0b , 0xb4 , 0x1a , 0x09 , 0xf4 , 0x3d , 0x68 , 0xe1 , 0x23 , 0x5f , 0x88 , 0x73 , 0x92 , 0x0a , 0x75 ,
0xee , 0xdb , 0x81 , 0x73 , 0x43 , 0x9b , 0x09 , 0x43 , 0x7f , 0x02 , 0x6b , 0xb1 , 0xe4 , 0x3d , 0x76 , 0xce ,
0x59 , 0x15 , 0x5f , 0x22 , 0x6f , 0xc8 , 0xd3 , 0x9d , 0xbe , 0x96 , 0x70 , 0xda , 0x94 , 0x17 , 0xd2 , 0xa6 ,
0x62 , 0x61 , 0xae , 0xcb , 0xe2 , 0x9f , 0xc4 , 0x0e , 0xb9 , 0xbd , 0x53 , 0x73 , 0x59 , 0x74 , 0x9b , 0x71 ,
0x26 , 0xa7 , 0x2d , 0x21 , 0x4e , 0xe9 , 0x25 , 0xe2 , 0xb4 , 0xf2 , 0xba , 0x38 , 0x65 , 0xe2 , 0x71 , 0x32 ,
0x8f , 0xdb , 0xcc , 0x6c , 0xb7 , 0x65 , 0xd8 , 0x29 , 0xbf , 0x86 , 0x9d , 0x36 , 0x1e , 0x66 , 0xa7 , 0x42 ,
0xa2 , 0x56 , 0xbe , 0x7d , 0x9a , 0xfa , 0xb0 , 0x3e , 0x77 , 0xc1 , 0x5b , 0x87 , 0x69 , 0xb7 , 0x03 , 0xa5 ,
0xda , 0x4e , 0x4e , 0x52 , 0xca , 0xc7 , 0x77 , 0xd3 , 0x00 , 0x9e , 0x2c , 0x5d , 0xf0 , 0xe8 , 0x66 , 0xfa ,
0x18 , 0x11 , 0x04 , 0x90 , 0xe9 , 0x1c , 0x9f , 0xb6 , 0x0e , 0xff , 0x2f , 0xff , 0x84 , 0x10 , 0x14 , 0xff ,
0xc3 , 0x80 , 0x5a , 0xc2 , 0xb3 , 0xdd , 0x49 , 0x38 , 0xea , 0x06 , 0xe8 , 0x8e , 0xe9 , 0x15 , 0x3e , 0x26 ,
0xbd , 0xee , 0xf4 , 0xda , 0x46 , 0xa7 , 0xdb , 0xbd , 0x30 , 0xba , 0xd7 , 0xbd , 0xb2 , 0x82 , 0x2a , 0xb0 ,
0x1d , 0x52 , 0x85 , 0x2d , 0xae , 0xeb , 0xc6 , 0xf6 , 0x8b , 0xcf , 0xf5 , 0x6f , 0xe0 , 0xe0 , 0x8e , 0x26 ,
0x71 , 0xde , 0xea , 0xb5 , 0x6f , 0x8e , 0x8d , 0xab , 0xe3 , 0xd3 , 0xff , 0xda , 0x3d , 0xd9 , 0x6b , 0x9f ,
0xd4 , 0x53 , 0x39 , 0x1e , 0xc1 , 0x5e , 0xea , 0x12 , 0x02 , 0x50 , 0x68 , 0x37 , 0xcf , 0x1a , 0x6f , 0x7e ,
0x97 , 0xd5 , 0x83 , 0xef , 0x29 , 0x00 , 0x7e , 0xb8 , 0xe4 , 0x8d , 0xba , 0x90 , 0x8f , 0xbc , 0x04 , 0x8d ,
0x29 , 0x7f , 0x41 , 0x08 , 0xec , 0xbe , 0xbb , 0x6c , 0xf7 , 0x5b , 0x4e , 0xbb , 0xd3 , 0xe9 , 0x3a , 0x9d ,
0x27 , 0xf1 , 0x0b , 0x1f , 0xa2 , 0xea , 0xe6 , 0x33 , 0x18 , 0xd4 , 0x85 , 0xe2 , 0x39 , 0x79 , 0xf0 , 0x4b ,
0xcb , 0x7e , 0xd9 , 0x20 , 0x15 , 0x78 , 0x76 , 0xd1 , 0xe8 , 0xb7 , 0x3e , 0x34 , 0x9d , 0x5e , 0xf3 , 0xec ,
0xfc , 0x22 , 0x54 , 0x4b , 0x86 , 0x07 , 0xa7 , 0xfd , 0xbe , 0xa8 , 0xed , 0xaf , 0xdf , 0x8c , 0xa1 , 0xfc ,
0xe7 , 0x56 , 0x5f , 0xe5 , 0x5a , 0x17 , 0x65 , 0x93 , 0x54 , 0xe1 , 0x79 , 0xd7 , 0x6e , 0xb6 , 0xde , 0x35 ,
0xa1 , 0x58 , 0xc0 , 0x30 , 0x9c , 0x93 , 0x45 , 0x0c , 0xe5 , 0x01 , 0x1d , 0x58 , 0x0b , 0x8f , 0x6b , 0x3b ,
0xce , 0x9a , 0x4e , 0xf7 , 0xb2 , 0x77 , 0x3e , 0xff , 0x2c , 0xf7 , 0xfa , 0xdf , 0x3c , 0x40 , 0xa4 , 0x91 ,
0x01 , 0x1b , 0xdd , 0x95 , 0x6a , 0x75 , 0x31 , 0x04 , 0x75 , 0xa0 , 0xe0 , 0xeb , 0x6d , 0x8b , 0xe1 , 0xa2 ,
0xea , 0x89 , 0x74 , 0xa0 , 0x94 , 0x58 , 0x68 , 0xf5 , 0x5b , 0xd2 , 0x2b , 0xf7 , 0x69 , 0xf5 , 0xc5 , 0x1d ,
0xad , 0x44 , 0x70 , 0x70 , 0x54 , 0x6d , 0x41 , 0xd7 , 0x17 , 0xdb , 0x0b , 0xb8 , 0x49 , 0xaa , 0xc9 , 0xdc ,
0x18 , 0xd2 , 0x81 , 0xdd , 0x0b , 0xbc , 0xd6 , 0xa1 , 0xe8 , 0x22 , 0xb2 , 0x9f , 0x0d , 0x8f , 0xab , 0x7d ,
0x22 , 0x52 , 0x1b , 0xcf , 0x41 , 0xe4 , 0xa9 , 0xb7 , 0x19 , 0xb1 , 0xb7 , 0x7f , 0xfe , 0x08 , 0x00 , 0x00 ,
0xbd , 0x2a , 0xad , 0x5d , 0xe4 , 0xc1 , 0xd3 , 0x0c , 0xe5 , 0xc8 , 0x77 , 0xd9 , 0x9f , 0x65 , 0x8c , 0xb8 ,
0xff , 0xff , 0xd3 , 0x5d , 0x9c , 0x31 , 0xe8 , 0x09 , 0x00 , 0x00 ,
0x7a , 0xfc , 0x10 , 0xa8 , 0xbe , 0x6d , 0xae , 0x87 , 0xfa , 0x77 , 0x5d , 0xa1 , 0xc7 , 0xe2 , 0x72 , 0x59 ,
0xa5 , 0x87 , 0x2a , 0xd0 , 0x86 , 0xed , 0xc5 , 0x37 , 0x7e , 0x90 , 0x81 , 0x4d , 0x1a , 0xac , 0x5a , 0x5d ,
0x0d , 0x21 , 0x6d , 0xd8 , 0xd1 , 0xea , 0xb6 , 0xa4 , 0x23 , 0xc8 , 0xcb , 0x4c , 0x70 , 0x5c , 0x6a , 0x7f ,
0x45 , 0x56 , 0x93 , 0xed , 0xc7 , 0xbd , 0xa9 , 0x56 , 0xb3 , 0x7b , 0x4b , 0x50 , 0xad , 0xdf , 0x05 , 0x51 ,
0x55 , 0x3f , 0x16 , 0xa4 , 0x3b , 0xbe , 0xff , 0x1c , 0x00 , 0x00 , 0xff , 0xff , 0x76 , 0xc4 , 0xb9 , 0x29 ,
0x1d , 0x0b , 0x00 , 0x00 ,
}
}
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
@ -858,6 +958,7 @@ const _ = grpc.SupportPackageIsVersion4
type SwapServerClient interface {
type SwapServerClient interface {
LoopOutTerms ( ctx context . Context , in * ServerLoopOutTermsRequest , opts ... grpc . CallOption ) ( * ServerLoopOutTerms , error )
LoopOutTerms ( ctx context . Context , in * ServerLoopOutTermsRequest , opts ... grpc . CallOption ) ( * ServerLoopOutTerms , error )
NewLoopOutSwap ( ctx context . Context , in * ServerLoopOutRequest , opts ... grpc . CallOption ) ( * ServerLoopOutResponse , error )
NewLoopOutSwap ( ctx context . Context , in * ServerLoopOutRequest , opts ... grpc . CallOption ) ( * ServerLoopOutResponse , error )
LoopOutPushPreimage ( ctx context . Context , in * ServerLoopOutPushPreimageRequest , opts ... grpc . CallOption ) ( * ServerLoopOutPushPreimageResponse , error )
LoopOutQuote ( ctx context . Context , in * ServerLoopOutQuoteRequest , opts ... grpc . CallOption ) ( * ServerLoopOutQuote , error )
LoopOutQuote ( ctx context . Context , in * ServerLoopOutQuoteRequest , opts ... grpc . CallOption ) ( * ServerLoopOutQuote , error )
LoopInTerms ( ctx context . Context , in * ServerLoopInTermsRequest , opts ... grpc . CallOption ) ( * ServerLoopInTerms , error )
LoopInTerms ( ctx context . Context , in * ServerLoopInTermsRequest , opts ... grpc . CallOption ) ( * ServerLoopInTerms , error )
NewLoopInSwap ( ctx context . Context , in * ServerLoopInRequest , opts ... grpc . CallOption ) ( * ServerLoopInResponse , error )
NewLoopInSwap ( ctx context . Context , in * ServerLoopInRequest , opts ... grpc . CallOption ) ( * ServerLoopInResponse , error )
@ -890,6 +991,15 @@ func (c *swapServerClient) NewLoopOutSwap(ctx context.Context, in *ServerLoopOut
return out , nil
return out , nil
}
}
func ( c * swapServerClient ) LoopOutPushPreimage ( ctx context . Context , in * ServerLoopOutPushPreimageRequest , opts ... grpc . CallOption ) ( * ServerLoopOutPushPreimageResponse , error ) {
out := new ( ServerLoopOutPushPreimageResponse )
err := c . cc . Invoke ( ctx , "/looprpc.SwapServer/LoopOutPushPreimage" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * swapServerClient ) LoopOutQuote ( ctx context . Context , in * ServerLoopOutQuoteRequest , opts ... grpc . CallOption ) ( * ServerLoopOutQuote , error ) {
func ( c * swapServerClient ) LoopOutQuote ( ctx context . Context , in * ServerLoopOutQuoteRequest , opts ... grpc . CallOption ) ( * ServerLoopOutQuote , error ) {
out := new ( ServerLoopOutQuote )
out := new ( ServerLoopOutQuote )
err := c . cc . Invoke ( ctx , "/looprpc.SwapServer/LoopOutQuote" , in , out , opts ... )
err := c . cc . Invoke ( ctx , "/looprpc.SwapServer/LoopOutQuote" , in , out , opts ... )
@ -930,6 +1040,7 @@ func (c *swapServerClient) LoopInQuote(ctx context.Context, in *ServerLoopInQuot
type SwapServerServer interface {
type SwapServerServer interface {
LoopOutTerms ( context . Context , * ServerLoopOutTermsRequest ) ( * ServerLoopOutTerms , error )
LoopOutTerms ( context . Context , * ServerLoopOutTermsRequest ) ( * ServerLoopOutTerms , error )
NewLoopOutSwap ( context . Context , * ServerLoopOutRequest ) ( * ServerLoopOutResponse , error )
NewLoopOutSwap ( context . Context , * ServerLoopOutRequest ) ( * ServerLoopOutResponse , error )
LoopOutPushPreimage ( context . Context , * ServerLoopOutPushPreimageRequest ) ( * ServerLoopOutPushPreimageResponse , error )
LoopOutQuote ( context . Context , * ServerLoopOutQuoteRequest ) ( * ServerLoopOutQuote , error )
LoopOutQuote ( context . Context , * ServerLoopOutQuoteRequest ) ( * ServerLoopOutQuote , error )
LoopInTerms ( context . Context , * ServerLoopInTermsRequest ) ( * ServerLoopInTerms , error )
LoopInTerms ( context . Context , * ServerLoopInTermsRequest ) ( * ServerLoopInTerms , error )
NewLoopInSwap ( context . Context , * ServerLoopInRequest ) ( * ServerLoopInResponse , error )
NewLoopInSwap ( context . Context , * ServerLoopInRequest ) ( * ServerLoopInResponse , error )
@ -976,6 +1087,24 @@ func _SwapServer_NewLoopOutSwap_Handler(srv interface{}, ctx context.Context, de
return interceptor ( ctx , in , info , handler )
return interceptor ( ctx , in , info , handler )
}
}
func _SwapServer_LoopOutPushPreimage_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ServerLoopOutPushPreimageRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( SwapServerServer ) . LoopOutPushPreimage ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/looprpc.SwapServer/LoopOutPushPreimage" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( SwapServerServer ) . LoopOutPushPreimage ( ctx , req . ( * ServerLoopOutPushPreimageRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _SwapServer_LoopOutQuote_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
func _SwapServer_LoopOutQuote_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ServerLoopOutQuoteRequest )
in := new ( ServerLoopOutQuoteRequest )
if err := dec ( in ) ; err != nil {
if err := dec ( in ) ; err != nil {
@ -1060,6 +1189,10 @@ var _SwapServer_serviceDesc = grpc.ServiceDesc{
MethodName : "NewLoopOutSwap" ,
MethodName : "NewLoopOutSwap" ,
Handler : _SwapServer_NewLoopOutSwap_Handler ,
Handler : _SwapServer_NewLoopOutSwap_Handler ,
} ,
} ,
{
MethodName : "LoopOutPushPreimage" ,
Handler : _SwapServer_LoopOutPushPreimage_Handler ,
} ,
{
{
MethodName : "LoopOutQuote" ,
MethodName : "LoopOutQuote" ,
Handler : _SwapServer_LoopOutQuote_Handler ,
Handler : _SwapServer_LoopOutQuote_Handler ,