From 33c1cc1abfa2d77fb6bc1c07a6f99e87532c3a04 Mon Sep 17 00:00:00 2001 From: Charles-Edouard de la Vergne Date: Mon, 18 Nov 2024 17:50:19 +0100 Subject: [PATCH] Update protobuf to support addresses up to 150B --- src/proto/protocol.options | 10 +++++----- src/proto/protocol.pb.c | 2 +- src/proto/protocol.pb.h | 18 +++++++++--------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/proto/protocol.options b/src/proto/protocol.options index eb0be592..668a0275 100644 --- a/src/proto/protocol.options +++ b/src/proto/protocol.options @@ -1,9 +1,9 @@ -ledger_swap.NewTransactionResponse.payin_address max_size:63; +ledger_swap.NewTransactionResponse.payin_address max_size:150; ledger_swap.NewTransactionResponse.payin_extra_id max_size:20; ledger_swap.NewTransactionResponse.payin_extra_data max_size:33; -ledger_swap.NewTransactionResponse.refund_address max_size:63; +ledger_swap.NewTransactionResponse.refund_address max_size:150; ledger_swap.NewTransactionResponse.refund_extra_id max_size:20; -ledger_swap.NewTransactionResponse.payout_address max_size:63; +ledger_swap.NewTransactionResponse.payout_address max_size:150; ledger_swap.NewTransactionResponse.payout_extra_id max_size:20; ledger_swap.NewTransactionResponse.currency_from max_size:10; ledger_swap.NewTransactionResponse.currency_to max_size:10; @@ -15,7 +15,7 @@ ledger_swap.NewTransactionResponse.device_transaction_id_ng max_size:32; ledger_swap.NewSellResponse.trader_email max_size:50; ledger_swap.NewSellResponse.in_currency max_size:10; ledger_swap.NewSellResponse.in_amount max_size:16; -ledger_swap.NewSellResponse.in_address max_size:63; +ledger_swap.NewSellResponse.in_address max_size:150; ledger_swap.NewSellResponse.out_currency max_size:10; ledger_swap.NewSellResponse.device_transaction_id max_size:32; @@ -23,7 +23,7 @@ ledger_swap.NewFundResponse.user_id max_size:50; ledger_swap.NewFundResponse.account_name max_size:50; ledger_swap.NewFundResponse.in_currency max_size:10; ledger_swap.NewFundResponse.in_amount max_size:16; -ledger_swap.NewFundResponse.in_address max_size:63; +ledger_swap.NewFundResponse.in_address max_size:150; ledger_swap.NewFundResponse.device_transaction_id max_size:32; ledger_swap.UDecimal.coefficient max_size:16; diff --git a/src/proto/protocol.pb.c b/src/proto/protocol.pb.c index 4bea6dcf..43ffac3b 100644 --- a/src/proto/protocol.pb.c +++ b/src/proto/protocol.pb.c @@ -1,5 +1,5 @@ /* Automatically generated nanopb constant definitions */ -/* Generated by nanopb-0.3.9 at Mon Jun 24 15:05:18 2024. */ +/* Generated by nanopb-0.3.9 at Mon Nov 18 08:50:16 2024. */ #include "protocol.pb.h" diff --git a/src/proto/protocol.pb.h b/src/proto/protocol.pb.h index 1bb13cf1..cce138a2 100644 --- a/src/proto/protocol.pb.h +++ b/src/proto/protocol.pb.h @@ -1,5 +1,5 @@ /* Automatically generated nanopb header */ -/* Generated by nanopb-0.3.9 at Mon Jun 24 15:05:18 2024. */ +/* Generated by nanopb-0.3.9 at Mon Nov 18 08:50:16 2024. */ #ifndef PB_LEDGER_SWAP_PROTOCOL_PB_H_INCLUDED #define PB_LEDGER_SWAP_PROTOCOL_PB_H_INCLUDED @@ -22,7 +22,7 @@ typedef struct _ledger_swap_NewFundResponse { char account_name[50]; char in_currency[10]; ledger_swap_NewFundResponse_in_amount_t in_amount; - char in_address[63]; + char in_address[150]; ledger_swap_NewFundResponse_device_transaction_id_t device_transaction_id; /* @@protoc_insertion_point(struct:ledger_swap_NewFundResponse) */ } ledger_swap_NewFundResponse; @@ -32,11 +32,11 @@ typedef PB_BYTES_ARRAY_T(16) ledger_swap_NewTransactionResponse_amount_to_provid typedef PB_BYTES_ARRAY_T(16) ledger_swap_NewTransactionResponse_amount_to_wallet_t; typedef PB_BYTES_ARRAY_T(32) ledger_swap_NewTransactionResponse_device_transaction_id_ng_t; typedef struct _ledger_swap_NewTransactionResponse { - char payin_address[63]; + char payin_address[150]; char payin_extra_id[20]; - char refund_address[63]; + char refund_address[150]; char refund_extra_id[20]; - char payout_address[63]; + char payout_address[150]; char payout_extra_id[20]; char currency_from[10]; char currency_to[10]; @@ -61,7 +61,7 @@ typedef struct _ledger_swap_NewSellResponse { char trader_email[50]; char in_currency[10]; ledger_swap_NewSellResponse_in_amount_t in_amount; - char in_address[63]; + char in_address[150]; char out_currency[10]; ledger_swap_UDecimal out_amount; ledger_swap_NewSellResponse_device_transaction_id_t device_transaction_id; @@ -117,10 +117,10 @@ extern const pb_field_t ledger_swap_NewSellResponse_fields[8]; extern const pb_field_t ledger_swap_NewFundResponse_fields[7]; /* Maximum encoded size of messages (where known) */ -#define ledger_swap_NewTransactionResponse_size 403 +#define ledger_swap_NewTransactionResponse_size 667 #define ledger_swap_UDecimal_size 24 -#define ledger_swap_NewSellResponse_size 219 -#define ledger_swap_NewFundResponse_size 233 +#define ledger_swap_NewSellResponse_size 307 +#define ledger_swap_NewFundResponse_size 321 /* Message IDs (where set with "msgid" option) */ #ifdef PB_MSGID