@arbiwallet/contracts 1.0.46 → 1.0.47
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.
- package/gen/ledger.ts +8 -2
- package/package.json +1 -1
- package/proto/ledger.proto +5 -1
package/gen/ledger.ts
CHANGED
|
@@ -163,7 +163,7 @@ export interface RegisterWithdrawalResponse {
|
|
|
163
163
|
withdrawalId: string;
|
|
164
164
|
/** Текущий статус (enum строкой, см. реализацию). */
|
|
165
165
|
status: string;
|
|
166
|
-
/**
|
|
166
|
+
/** Устар.; первая строка ленты — после ReserveFunds (WITHDRAWAL_RESERVED). */
|
|
167
167
|
transactionFeedItemId?: string | undefined;
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -182,6 +182,8 @@ export interface ReserveFundsResponse {
|
|
|
182
182
|
available: string;
|
|
183
183
|
reserved: string;
|
|
184
184
|
total: string;
|
|
185
|
+
/** id строки ленты (WITHDRAWAL_RESERVED), после RegisterWithdrawal без WITHDRAWAL_CREATED. */
|
|
186
|
+
transactionFeedItemId?: string | undefined;
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
export interface ReleaseFundsRequest {
|
|
@@ -327,7 +329,11 @@ export interface GetTransactionFeedRequest {
|
|
|
327
329
|
* Фильтр по «типу» операции для UI: "withdrawal" | "deposit" | "internal_transfer".
|
|
328
330
|
* deposit включает записи reference_type deposit и deposit_hold.
|
|
329
331
|
*/
|
|
330
|
-
referenceKind?:
|
|
332
|
+
referenceKind?:
|
|
333
|
+
| string
|
|
334
|
+
| undefined;
|
|
335
|
+
/** true: все события по выводу (RESERVED, WITHDRAWAL_STATUS, FINALIZED, …). По умолчанию — одна строка на вывод (последнее событие). */
|
|
336
|
+
expandWithdrawalTimeline?: boolean | undefined;
|
|
331
337
|
}
|
|
332
338
|
|
|
333
339
|
export interface GetTransactionFeedResponse {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbiwallet/contracts",
|
|
3
3
|
"descriptions": "Generate and manage smart contracts for ArbiWallet",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.47",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
package/proto/ledger.proto
CHANGED
|
@@ -150,7 +150,7 @@ message RegisterWithdrawalRequest {
|
|
|
150
150
|
message RegisterWithdrawalResponse {
|
|
151
151
|
string withdrawal_id = 1; // Внутренний id вывода в ledger.
|
|
152
152
|
string status = 2; // Текущий статус (enum строкой, см. реализацию).
|
|
153
|
-
optional string transaction_feed_item_id = 3; //
|
|
153
|
+
optional string transaction_feed_item_id = 3; // Устар.; первая строка ленты — после ReserveFunds (WITHDRAWAL_RESERVED).
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
message ReserveFundsRequest {
|
|
@@ -167,6 +167,8 @@ message ReserveFundsResponse {
|
|
|
167
167
|
string available = 2;
|
|
168
168
|
string reserved = 3;
|
|
169
169
|
string total = 4;
|
|
170
|
+
// id строки ленты (WITHDRAWAL_RESERVED), после RegisterWithdrawal без WITHDRAWAL_CREATED.
|
|
171
|
+
optional string transaction_feed_item_id = 5;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
message ReleaseFundsRequest {
|
|
@@ -284,6 +286,8 @@ message GetTransactionFeedRequest {
|
|
|
284
286
|
// Фильтр по «типу» операции для UI: "withdrawal" | "deposit" | "internal_transfer".
|
|
285
287
|
// deposit включает записи reference_type deposit и deposit_hold.
|
|
286
288
|
optional string reference_kind = 7;
|
|
289
|
+
// true: все события по выводу (RESERVED, WITHDRAWAL_STATUS, FINALIZED, …). По умолчанию — одна строка на вывод (последнее событие).
|
|
290
|
+
optional bool expand_withdrawal_timeline = 8;
|
|
287
291
|
}
|
|
288
292
|
|
|
289
293
|
message GetTransactionFeedResponse {
|