walletrpc: add transaction label to PublishTransaction

This commit is contained in:
carla 2020-05-18 14:13:24 +02:00
parent 099161ed0b
commit 93a1b61218
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91
3 changed files with 120 additions and 83 deletions

@ -261,7 +261,10 @@ func (m *AddrResponse) GetAddr() string {
type Transaction struct { type Transaction struct {
// //
//The raw serialized transaction. //The raw serialized transaction.
TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"` TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
//
//An optional label to save with the transaction. Limited to 500 characters.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -299,6 +302,13 @@ func (m *Transaction) GetTxHex() []byte {
return nil return nil
} }
func (m *Transaction) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
type PublishResponse struct { type PublishResponse struct {
// //
//If blank, then no error occurred and the transaction was successfully //If blank, then no error occurred and the transaction was successfully
@ -351,10 +361,12 @@ type SendOutputsRequest struct {
SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"` SatPerKw int64 `protobuf:"varint,1,opt,name=sat_per_kw,json=satPerKw,proto3" json:"sat_per_kw,omitempty"`
// //
//A slice of the outputs that should be created in the transaction produced. //A slice of the outputs that should be created in the transaction produced.
Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` Outputs []*signrpc.TxOut `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` // An optional label for the transaction, limited to 500 characters.
XXX_unrecognized []byte `json:"-"` Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
XXX_sizecache int32 `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *SendOutputsRequest) Reset() { *m = SendOutputsRequest{} } func (m *SendOutputsRequest) Reset() { *m = SendOutputsRequest{} }
@ -396,6 +408,13 @@ func (m *SendOutputsRequest) GetOutputs() []*signrpc.TxOut {
return nil return nil
} }
func (m *SendOutputsRequest) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
type SendOutputsResponse struct { type SendOutputsResponse struct {
// //
//The serialized transaction sent out on the network. //The serialized transaction sent out on the network.
@ -1002,81 +1021,82 @@ func init() {
func init() { proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_6cc6942ac78249e5) } func init() { proto.RegisterFile("walletrpc/walletkit.proto", fileDescriptor_6cc6942ac78249e5) }
var fileDescriptor_6cc6942ac78249e5 = []byte{ var fileDescriptor_6cc6942ac78249e5 = []byte{
// 1178 bytes of a gzipped FileDescriptorProto // 1190 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x6d, 0x6f, 0xe2, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x6d, 0x6f, 0xda, 0xd6,
0x10, 0x3e, 0x42, 0x42, 0x60, 0x78, 0x09, 0x59, 0xf2, 0xe2, 0xe3, 0x72, 0x0d, 0x75, 0xdf, 0xa2, 0x17, 0x6f, 0x42, 0x20, 0x70, 0x78, 0x08, 0xb9, 0xe4, 0x81, 0xd2, 0xf4, 0x9f, 0xfc, 0x3d, 0x6d,
0xf6, 0x8e, 0xa8, 0x39, 0xb5, 0xea, 0xb5, 0x52, 0xd5, 0x04, 0x1c, 0x11, 0x41, 0x70, 0x6a, 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 0x4e, 0xc7, 0x8e, 0xe6, 0x87, 0x3f, 0xae, 0x26, 0x16, 0xbb, 0x9f, 0x8f, 0xea, 0x63, 0x67, 0x76, 0x35, 0xf5, 0xaf,
0x75, 0xca, 0x67, 0xe2, 0x69, 0xa2, 0x32, 0xc8, 0xf1, 0x7f, 0x12, 0x5f, 0xfd, 0x1b, 0x00, 0x00, 0xa0, 0x6d, 0xd9, 0x13, 0x9b, 0xb0, 0x85, 0x43, 0x1f, 0xae, 0xa6, 0xb6, 0x79, 0xc5, 0x77, 0xe2,
0xff, 0xff, 0x88, 0x6c, 0x32, 0x8c, 0x6d, 0x0a, 0x00, 0x00, 0x55, 0x6c, 0x65, 0x94, 0xe1, 0xff, 0x50, 0xbe, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0xde, 0x94,
0x5b, 0x29, 0x99, 0x0a, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

@ -129,6 +129,11 @@ message Transaction {
The raw serialized transaction. The raw serialized transaction.
*/ */
bytes tx_hex = 1; bytes tx_hex = 1;
/*
An optional label to save with the transaction. Limited to 500 characters.
*/
string label = 2;
} }
message PublishResponse { message PublishResponse {
/* /*
@ -152,6 +157,9 @@ message SendOutputsRequest {
A slice of the outputs that should be created in the transaction produced. A slice of the outputs that should be created in the transaction produced.
*/ */
repeated signrpc.TxOut outputs = 2; repeated signrpc.TxOut outputs = 2;
// An optional label for the transaction, limited to 500 characters.
string label = 3;
} }
message SendOutputsResponse { message SendOutputsResponse {
/* /*

@ -274,7 +274,12 @@ func (w *WalletKit) PublishTransaction(ctx context.Context,
return nil, err return nil, err
} }
err := w.cfg.Wallet.PublishTransaction(tx, labels.External) label, err := labels.ValidateAPI(req.Label)
if err != nil {
return nil, err
}
err = w.cfg.Wallet.PublishTransaction(tx, label)
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -307,11 +312,15 @@ func (w *WalletKit) SendOutputs(ctx context.Context,
}) })
} }
label, err := labels.ValidateAPI(req.Label)
if err != nil {
return nil, err
}
// Now that we have the outputs mapped, we can request that the wallet // Now that we have the outputs mapped, we can request that the wallet
// attempt to create this transaction. // attempt to create this transaction.
tx, err := w.cfg.Wallet.SendOutputs( tx, err := w.cfg.Wallet.SendOutputs(
outputsToCreate, chainfee.SatPerKWeight(req.SatPerKw), outputsToCreate, chainfee.SatPerKWeight(req.SatPerKw), label,
labels.External,
) )
if err != nil { if err != nil {
return nil, err return nil, err