looprpc+loopd: deprecate string ID

pull/140/head
Oliver Gugger 4 years ago
parent 26c0c17dbd
commit b694a76be0
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -99,6 +99,7 @@ func (s *swapClientServer) LoopOut(ctx context.Context,
return &looprpc.SwapResponse{
Id: hash.String(),
IdBytes: hash[:],
HtlcAddress: htlc.String(),
}, nil
}
@ -136,6 +137,7 @@ func (s *swapClientServer) marshallSwap(loopSwap *loop.SwapInfo) (
return &looprpc.SwapStatus{
Amt: int64(loopSwap.AmountRequested),
Id: loopSwap.SwapHash.String(),
IdBytes: loopSwap.SwapHash[:],
State: state,
InitiationTime: loopSwap.InitiationTime.UnixNano(),
LastUpdateTime: loopSwap.LastUpdate.UnixNano(),
@ -396,6 +398,7 @@ func (s *swapClientServer) LoopIn(ctx context.Context,
return &looprpc.SwapResponse{
Id: hash.String(),
IdBytes: hash[:],
HtlcAddress: htlc.String(),
}, nil
}

@ -363,7 +363,13 @@ 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.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
//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"`
//*
//The address of the on-chain htlc.
HtlcAddress string `protobuf:"bytes,2,opt,name=htlc_address,json=htlcAddress,proto3" json:"htlc_address,omitempty"`
@ -397,6 +403,7 @@ func (m *SwapResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_SwapResponse proto.InternalMessageInfo
// Deprecated: Do not use.
func (m *SwapResponse) GetId() string {
if m != nil {
return m.Id
@ -404,6 +411,13 @@ func (m *SwapResponse) GetId() string {
return ""
}
func (m *SwapResponse) GetIdBytes() []byte {
if m != nil {
return m.IdBytes
}
return nil
}
func (m *SwapResponse) GetHtlcAddress() string {
if m != nil {
return m.HtlcAddress
@ -450,7 +464,13 @@ type SwapStatus 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.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
//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"`
@ -509,6 +529,7 @@ func (m *SwapStatus) GetAmt() int64 {
return 0
}
// Deprecated: Do not use.
func (m *SwapStatus) GetId() string {
if m != nil {
return m.Id
@ -516,6 +537,13 @@ func (m *SwapStatus) GetId() string {
return ""
}
func (m *SwapStatus) GetIdBytes() []byte {
if m != nil {
return m.IdBytes
}
return nil
}
func (m *SwapStatus) GetType() SwapType {
if m != nil {
return m.Type
@ -1138,96 +1166,98 @@ func init() {
func init() { proto.RegisterFile("client.proto", fileDescriptor_014de31d7ac8c57c) }
var fileDescriptor_014de31d7ac8c57c = []byte{
// 1421 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x6e, 0xdb, 0xc6,
0x16, 0x8e, 0x24, 0xda, 0x92, 0x8e, 0x28, 0x8a, 0x1e, 0x27, 0xb6, 0xac, 0x7b, 0x83, 0x38, 0xbc,
0x37, 0xa9, 0xe3, 0x45, 0xd4, 0x38, 0xbb, 0xa0, 0x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b4, 0x3f, 0xd0, 0x40, 0x7c, 0x24, 0xaf, 0xc1, 0x7a, 0xc1,
0x84, 0x6a, 0x83, 0x2f, 0x8a, 0x7e, 0x03, 0x8f, 0x58, 0x25, 0x2b, 0xb9, 0xe6, 0xd0, 0xc1, 0xff,
0x90, 0xd3, 0xfe, 0xa2, 0xf0, 0xef, 0xa1, 0xf6, 0x06, 0x59, 0xcf, 0x6b, 0xe7, 0xa3, 0x7f, 0x05,
0x75, 0x79, 0x42, 0xea, 0x88, 0x3c, 0xd7, 0xd9, 0x73, 0xb6, 0xdb, 0x5a, 0x5f, 0xc0, 0xe7, 0xa7,
0x85, 0x34, 0xf0, 0x08, 0x4e, 0x45, 0x5b, 0x59, 0xed, 0x9b, 0x65, 0xfc, 0x4f, 0xe1, 0xe9, 0xbf,
0x01, 0x00, 0x00, 0xff, 0xff, 0x63, 0x64, 0x76, 0xf5, 0x60, 0x0c, 0x00, 0x00,
// 1446 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4d, 0x6e, 0xdb, 0x46,
0x18, 0x0d, 0x25, 0xda, 0x92, 0x3e, 0x51, 0x14, 0x3d, 0x4e, 0x6c, 0x59, 0x6d, 0x10, 0x87, 0x6d,
0x52, 0xc7, 0x8b, 0xa8, 0x71, 0x76, 0x41, 0x51, 0xc0, 0x91, 0x95, 0x58, 0x86, 0x7f, 0x54, 0x4a,
0x0e, 0x90, 0x6c, 0x98, 0xb1, 0x38, 0xb6, 0x89, 0x8a, 0x1c, 0x86, 0x33, 0x4a, 0x6c, 0x04, 0xd9,
0xf4, 0x00, 0xdd, 0x74, 0xd7, 0x65, 0x6f, 0x50, 0xa0, 0xbb, 0x1e, 0xa3, 0x57, 0xe8, 0x35, 0x0a,
0x14, 0xf3, 0x23, 0x8a, 0xb2, 0xec, 0x2c, 0xb2, 0x33, 0xdf, 0xbc, 0x79, 0xf3, 0xcd, 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xe5, 0xdf, 0x93,
0xda, 0x6b, 0x68, 0x35, 0xaf, 0x9d, 0xaf, 0xfe, 0x35, 0xd4, 0xc4, 0x0a, 0x93, 0x44, 0x64, 0x39,
0x67, 0xcf, 0xc4, 0x6e, 0x73, 0x75, 0x0e, 0x9f, 0xbd, 0x2d, 0xa8, 0x2e, 0x97, 0x60, 0x98, 0xb7,
0x54, 0xd4, 0x9e, 0x2c, 0xca, 0xff, 0x33, 0x9e, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x04, 0xc2,
0xbc, 0x71, 0x9e, 0x0c, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

@ -231,8 +231,16 @@ message SwapResponse {
/**
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.
*/
string id = 1;
string id = 1 [deprecated = true];
/**
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.
*/
bytes id_bytes = 3;
/**
The address of the on-chain htlc.
@ -250,11 +258,19 @@ message SwapStatus {
*/
int64 amt = 1;
/**
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.
*/
string id = 2 [deprecated = true];
/**
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.
*/
string id = 2;
bytes id_bytes = 11;
/**
Swap type

@ -460,6 +460,11 @@
"properties": {
"id": {
"type": "string",
"description": "*\nSwap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs.\nDEPRECATED: To make the API more consistent, this field is deprecated in\nfavor of id_bytes and will be removed in a future release."
},
"id_bytes": {
"type": "string",
"format": "byte",
"description": "*\nSwap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs."
},
"htlc_address": {
@ -491,6 +496,11 @@
},
"id": {
"type": "string",
"description": "*\nSwap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs.\nDEPRECATED: To make the API more consistent, this field is deprecated in\nfavor of id_bytes and will be removed in a future release."
},
"id_bytes": {
"type": "string",
"format": "byte",
"description": "*\nSwap identifier to track status in the update stream that is returned from\nthe Start() call. Currently this is the hash that locks the htlcs."
},
"type": {

Loading…
Cancel
Save