From 7f4e7c1ab69cff2b23e749208c9c178e9b38840d Mon Sep 17 00:00:00 2001 From: giwaov Date: Sun, 28 Jun 2026 13:34:16 +0100 Subject: [PATCH] Use requestedAmount JSON tag for order messages --- fsm/message.pb.go | 4 ++-- lib/.proto/message.proto | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fsm/message.pb.go b/fsm/message.pb.go index af7d831e7d..b7565903c4 100644 --- a/fsm/message.pb.go +++ b/fsm/message.pb.go @@ -827,7 +827,7 @@ type MessageCreateOrder struct { // amount_for_sale: the amount of uCNPY listed for sale, transferred to escrow AmountForSale uint64 `protobuf:"varint,3,opt,name=AmountForSale,proto3" json:"amountForSale"` // @gotags: json:"amountForSale" // requested_amount: the amount of the 'counter asset' the buyer must send in order to complete a swap - RequestedAmount uint64 `protobuf:"varint,4,opt,name=RequestedAmount,proto3" json:"requestAmount"` // @gotags: json:"requestAmount" + RequestedAmount uint64 `protobuf:"varint,4,opt,name=RequestedAmount,proto3" json:"requestedAmount"` // @gotags: json:"requestedAmount" // sellers_receive_address: the address of the seller where the 'counter asset' will be received SellerReceiveAddress []byte `protobuf:"bytes,5,opt,name=SellerReceiveAddress,proto3" json:"sellerReceiveAddress"` // @gotags: json:"sellerReceiveAddress" // sellers_send_address: the Canopy address the seller is selling and signing from @@ -1077,7 +1077,7 @@ type MessageDexLimitOrder struct { // amount_for_sale: the amount of asset listed for sale, transferred to escrow AmountForSale uint64 `protobuf:"varint,2,opt,name=amount_for_sale,json=amountForSale,proto3" json:"amountForSale"` // @gotags: json:"amountForSale" // requested_amount: the minimum amount of the 'counter asset' the seller is willing to receive - RequestedAmount uint64 `protobuf:"varint,3,opt,name=requested_amount,json=requestedAmount,proto3" json:"requestAmount"` // @gotags: json:"requestAmount" + RequestedAmount uint64 `protobuf:"varint,3,opt,name=requested_amount,json=requestedAmount,proto3" json:"requestedAmount"` // @gotags: json:"requestedAmount" // sellers_send_address: the address the seller is selling and signing from Address []byte `protobuf:"bytes,4,opt,name=address,proto3" json:"sellersSendAddress"` // @gotags: json:"sellersSendAddress" // OrderId: auto-populated by the state machine to assign the unique bytes to the order diff --git a/lib/.proto/message.proto b/lib/.proto/message.proto index 6be646bcc7..fdb7e54a64 100644 --- a/lib/.proto/message.proto +++ b/lib/.proto/message.proto @@ -185,7 +185,7 @@ message MessageCreateOrder { // amount_for_sale: the amount of uCNPY listed for sale, transferred to escrow uint64 AmountForSale = 3; // @gotags: json:"amountForSale" // requested_amount: the amount of the 'counter asset' the buyer must send in order to complete a swap - uint64 RequestedAmount = 4; // @gotags: json:"requestAmount" + uint64 RequestedAmount = 4; // @gotags: json:"requestedAmount" // sellers_receive_address: the address of the seller where the 'counter asset' will be received bytes SellerReceiveAddress = 5; // @gotags: json:"sellerReceiveAddress" // sellers_send_address: the Canopy address the seller is selling and signing from @@ -231,7 +231,7 @@ message MessageDexLimitOrder { // amount_for_sale: the amount of asset listed for sale, transferred to escrow uint64 amount_for_sale = 2; // @gotags: json:"amountForSale" // requested_amount: the minimum amount of the 'counter asset' the seller is willing to receive - uint64 requested_amount = 3; // @gotags: json:"requestAmount" + uint64 requested_amount = 3; // @gotags: json:"requestedAmount" // sellers_send_address: the address the seller is selling and signing from bytes address = 4; // @gotags: json:"sellersSendAddress" // OrderId: auto-populated by the state machine to assign the unique bytes to the order