@arbiwallet/contracts 1.0.45 → 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 CHANGED
@@ -163,7 +163,7 @@ export interface RegisterWithdrawalResponse {
163
163
  withdrawalId: string;
164
164
  /** Текущий статус (enum строкой, см. реализацию). */
165
165
  status: string;
166
- /** id строки ленты (WITHDRAWAL_CREATED), как в GetTransactionFeed.items[].id. */
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 {
@@ -228,7 +230,14 @@ export interface UpdateWithdrawalStatusRequest {
228
230
  | string
229
231
  | undefined;
230
232
  /** Сырой JSON от custody/webhook для аудита. */
231
- rawPayloadJson?: string | undefined;
233
+ rawPayloadJson?:
234
+ | string
235
+ | undefined;
236
+ /**
237
+ * Тот же request_id, что при RegisterWithdrawal (UUID заявки). Нужен, если в Ledger
238
+ * external_withdrawal_id = request_id от withdrawal_service, а custody шлёт BitGo transfer id.
239
+ */
240
+ withdrawRequestId?: string | undefined;
232
241
  }
233
242
 
234
243
  export interface UpdateWithdrawalStatusResponse {
@@ -320,7 +329,11 @@ export interface GetTransactionFeedRequest {
320
329
  * Фильтр по «типу» операции для UI: "withdrawal" | "deposit" | "internal_transfer".
321
330
  * deposit включает записи reference_type deposit и deposit_hold.
322
331
  */
323
- referenceKind?: string | undefined;
332
+ referenceKind?:
333
+ | string
334
+ | undefined;
335
+ /** true: все события по выводу (RESERVED, WITHDRAWAL_STATUS, FINALIZED, …). По умолчанию — одна строка на вывод (последнее событие). */
336
+ expandWithdrawalTimeline?: boolean | undefined;
324
337
  }
325
338
 
326
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.45",
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
  },
@@ -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; // id строки ленты (WITHDRAWAL_CREATED), как в GetTransactionFeed.items[].id.
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 {
@@ -204,6 +206,9 @@ message UpdateWithdrawalStatusRequest {
204
206
  string new_status = 3; // Целевой статус (строка enum Prisma/ledger).
205
207
  optional string tx_hash = 4;
206
208
  optional string raw_payload_json = 5; // Сырой JSON от custody/webhook для аудита.
209
+ // Тот же request_id, что при RegisterWithdrawal (UUID заявки). Нужен, если в Ledger
210
+ // external_withdrawal_id = request_id от withdrawal_service, а custody шлёт BitGo transfer id.
211
+ optional string withdraw_request_id = 6;
207
212
  }
208
213
 
209
214
  message UpdateWithdrawalStatusResponse {
@@ -281,6 +286,8 @@ message GetTransactionFeedRequest {
281
286
  // Фильтр по «типу» операции для UI: "withdrawal" | "deposit" | "internal_transfer".
282
287
  // deposit включает записи reference_type deposit и deposit_hold.
283
288
  optional string reference_kind = 7;
289
+ // true: все события по выводу (RESERVED, WITHDRAWAL_STATUS, FINALIZED, …). По умолчанию — одна строка на вывод (последнее событие).
290
+ optional bool expand_withdrawal_timeline = 8;
284
291
  }
285
292
 
286
293
  message GetTransactionFeedResponse {