@loafmarkets/shared-types 1.0.24 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/proto/trading.proto +25 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loafmarkets/shared-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Shared contracts for Loaf Markets frontend, backend, and matching engine.",
5
5
  "type": "module",
6
6
  "private": false,
@@ -18,6 +18,9 @@ message Order {
18
18
  string wallet_address = 12;
19
19
  string nonce = 13;
20
20
  int64 created_at = 14;
21
+ int64 maker_fee = 15;
22
+ int64 taker_fee = 16;
23
+
21
24
  }
22
25
 
23
26
  enum OrderSide {
@@ -55,25 +58,26 @@ message TradeExecution {
55
58
  string property_token_address = 5;
56
59
  double price = 6;
57
60
  double quantity = 7;
58
- double fee_amount = 8;
59
- string buyer_wallet = 9;
60
- string seller_wallet = 10;
61
- OrderSide side = 11;
62
- int64 timestamp = 12;
63
- int64 deadline = 13;
64
- string buyer_nonce = 14;
65
- string seller_nonce = 15;
66
- string buyer_signature = 16;
67
- string seller_signature = 17;
68
- string cpp_signature = 18;
69
- uint64 buy_price = 19;
70
- uint32 buy_quantity = 20;
71
- uint32 buy_quantity_remaining = 21;
72
- int64 buy_deadline = 22;
73
- uint64 sell_price = 23;
74
- uint32 sell_quantity = 24;
75
- uint32 sell_quantity_remaining = 25;
76
- int64 sell_deadline = 26;
61
+ double buyer_fee = 8;
62
+ double seller_fee = 9;
63
+ string buyer_wallet = 10;
64
+ string seller_wallet = 11;
65
+ OrderSide side = 12;
66
+ int64 timestamp = 13;
67
+ int64 deadline = 14;
68
+ string buyer_nonce = 15;
69
+ string seller_nonce = 16;
70
+ string buyer_signature = 17;
71
+ string seller_signature = 18;
72
+ string cpp_signature = 19;
73
+ uint64 buy_price = 20;
74
+ uint32 buy_quantity = 21;
75
+ uint32 buy_quantity_remaining = 22;
76
+ int64 buy_deadline = 23;
77
+ uint64 sell_price = 24;
78
+ uint32 sell_quantity = 25;
79
+ uint32 sell_quantity_remaining = 26;
80
+ int64 sell_deadline = 27;
77
81
  }
78
82
 
79
83
  // Order book
@@ -127,6 +131,8 @@ message SubmitOrderRequest {
127
131
  string signature = 10;
128
132
  string wallet_address = 11;
129
133
  string nonce = 12;
134
+ int64 maker_fee = 13;
135
+ int64 taker_fee = 14;
130
136
  }
131
137
 
132
138
  message SubmitOrderResponse {