Skip to content

Commit

Permalink
Update protobuf to support addresses up to 150B
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Nov 19, 2024
1 parent b7c7f1a commit 33c1cc1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/proto/protocol.options
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -15,15 +15,15 @@ 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;

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;
2 changes: 1 addition & 1 deletion src/proto/protocol.pb.c
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
18 changes: 9 additions & 9 deletions src/proto/protocol.pb.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand All @@ -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];
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33c1cc1

Please sign in to comment.