@0xtorch/core 0.0.17 → 0.0.18

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 (95) hide show
  1. package/_cjs/actions/index.js +3 -6
  2. package/_cjs/actions/index.js.map +1 -1
  3. package/_cjs/actions/parsers/action.js +0 -8
  4. package/_cjs/actions/parsers/action.js.map +1 -1
  5. package/_cjs/actions/parsers/borrow/index.js +1 -3
  6. package/_cjs/actions/parsers/borrow/index.js.map +1 -1
  7. package/_cjs/actions/parsers/index.js +1 -2
  8. package/_cjs/actions/parsers/index.js.map +1 -1
  9. package/_cjs/actions/schemas/action.js +0 -3
  10. package/_cjs/actions/schemas/action.js.map +1 -1
  11. package/_cjs/actions/schemas/borrow/index.js +1 -4
  12. package/_cjs/actions/schemas/borrow/index.js.map +1 -1
  13. package/_cjs/actions/schemas/default/unions.js +0 -2
  14. package/_cjs/actions/schemas/default/unions.js.map +1 -1
  15. package/_cjs/actions/schemas/index.js +3 -5
  16. package/_cjs/actions/schemas/index.js.map +1 -1
  17. package/_cjs/actions/utils.js +0 -38
  18. package/_cjs/actions/utils.js.map +1 -1
  19. package/_cjs/index.js +3 -5
  20. package/_cjs/index.js.map +1 -1
  21. package/_esm/actions/index.js +2 -2
  22. package/_esm/actions/index.js.map +1 -1
  23. package/_esm/actions/parsers/action.js +1 -9
  24. package/_esm/actions/parsers/action.js.map +1 -1
  25. package/_esm/actions/parsers/borrow/index.js +0 -1
  26. package/_esm/actions/parsers/borrow/index.js.map +1 -1
  27. package/_esm/actions/parsers/index.js +1 -1
  28. package/_esm/actions/parsers/index.js.map +1 -1
  29. package/_esm/actions/schemas/action.js +1 -4
  30. package/_esm/actions/schemas/action.js.map +1 -1
  31. package/_esm/actions/schemas/borrow/index.js +0 -1
  32. package/_esm/actions/schemas/borrow/index.js.map +1 -1
  33. package/_esm/actions/schemas/default/unions.js +0 -2
  34. package/_esm/actions/schemas/default/unions.js.map +1 -1
  35. package/_esm/actions/schemas/index.js +1 -1
  36. package/_esm/actions/schemas/index.js.map +1 -1
  37. package/_esm/actions/utils.js +0 -42
  38. package/_esm/actions/utils.js.map +1 -1
  39. package/_esm/index.js +1 -1
  40. package/_esm/index.js.map +1 -1
  41. package/_types/actions/index.d.ts +3 -3
  42. package/_types/actions/index.d.ts.map +1 -1
  43. package/_types/actions/parsers/action.d.ts.map +1 -1
  44. package/_types/actions/parsers/borrow/index.d.ts +0 -1
  45. package/_types/actions/parsers/borrow/index.d.ts.map +1 -1
  46. package/_types/actions/parsers/index.d.ts +1 -1
  47. package/_types/actions/parsers/index.d.ts.map +1 -1
  48. package/_types/actions/schemas/action.d.ts +8818 -11544
  49. package/_types/actions/schemas/action.d.ts.map +1 -1
  50. package/_types/actions/schemas/borrow/index.d.ts +0 -1
  51. package/_types/actions/schemas/borrow/index.d.ts.map +1 -1
  52. package/_types/actions/schemas/default/accountAction.d.ts +9 -9
  53. package/_types/actions/schemas/default/normalAction.d.ts +9 -9
  54. package/_types/actions/schemas/default/unions.d.ts +2 -2
  55. package/_types/actions/schemas/default/unions.d.ts.map +1 -1
  56. package/_types/actions/schemas/index.d.ts +1 -1
  57. package/_types/actions/schemas/index.d.ts.map +1 -1
  58. package/_types/actions/types/index.d.ts +0 -1
  59. package/_types/actions/types/index.d.ts.map +1 -1
  60. package/_types/actions/utils.d.ts.map +1 -1
  61. package/_types/index.d.ts +2 -2
  62. package/_types/index.d.ts.map +1 -1
  63. package/actions/index.ts +0 -5
  64. package/actions/parsers/action.ts +1 -12
  65. package/actions/parsers/borrow/index.ts +0 -1
  66. package/actions/parsers/index.ts +1 -4
  67. package/actions/schemas/action.ts +1 -9
  68. package/actions/schemas/borrow/index.ts +0 -4
  69. package/actions/schemas/default/unions.ts +0 -2
  70. package/actions/schemas/index.ts +1 -6
  71. package/actions/types/index.ts +0 -4
  72. package/actions/utils.ts +0 -62
  73. package/index.ts +0 -4
  74. package/package.json +1 -1
  75. package/_cjs/actions/parsers/borrow/borrowWithDebt.js +0 -23
  76. package/_cjs/actions/parsers/borrow/borrowWithDebt.js.map +0 -1
  77. package/_cjs/actions/schemas/borrow/borrowWithDebt.js +0 -36
  78. package/_cjs/actions/schemas/borrow/borrowWithDebt.js.map +0 -1
  79. package/_cjs/actions/types/borrowWithDebt.js +0 -3
  80. package/_cjs/actions/types/borrowWithDebt.js.map +0 -1
  81. package/_esm/actions/parsers/borrow/borrowWithDebt.js +0 -19
  82. package/_esm/actions/parsers/borrow/borrowWithDebt.js.map +0 -1
  83. package/_esm/actions/schemas/borrow/borrowWithDebt.js +0 -33
  84. package/_esm/actions/schemas/borrow/borrowWithDebt.js.map +0 -1
  85. package/_esm/actions/types/borrowWithDebt.js +0 -2
  86. package/_esm/actions/types/borrowWithDebt.js.map +0 -1
  87. package/_types/actions/parsers/borrow/borrowWithDebt.d.ts +0 -4
  88. package/_types/actions/parsers/borrow/borrowWithDebt.d.ts.map +0 -1
  89. package/_types/actions/schemas/borrow/borrowWithDebt.d.ts +0 -2730
  90. package/_types/actions/schemas/borrow/borrowWithDebt.d.ts.map +0 -1
  91. package/_types/actions/types/borrowWithDebt.d.ts +0 -5
  92. package/_types/actions/types/borrowWithDebt.d.ts.map +0 -1
  93. package/actions/parsers/borrow/borrowWithDebt.ts +0 -47
  94. package/actions/schemas/borrow/borrowWithDebt.ts +0 -45
  95. package/actions/types/borrowWithDebt.ts +0 -13
@@ -1,2730 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const normalActionBorrowWithDebtSchema: z.ZodEffects<z.ZodObject<{
3
- type: z.ZodLiteral<"LoanNormalAction">;
4
- timestamp: z.ZodNumber;
5
- evidence: z.ZodUnion<[z.ZodLiteral<"contract">, z.ZodLiteral<"system-rule">, z.ZodLiteral<"user-rule">, z.ZodLiteral<"manual-check">, z.ZodLiteral<"none">]>;
6
- comment: z.ZodOptional<z.ZodString>;
7
- app: z.ZodOptional<z.ZodEffects<z.ZodObject<{
8
- id: z.ZodString;
9
- categories: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"bridge">, z.ZodLiteral<"cex">, z.ZodLiteral<"cross-chain">, z.ZodLiteral<"dex">, z.ZodLiteral<"gaming">, z.ZodLiteral<"lending">, z.ZodLiteral<"nft-marketplace">, z.ZodLiteral<"other">]>, "many">;
10
- name: z.ZodString;
11
- description: z.ZodOptional<z.ZodString>;
12
- website: z.ZodOptional<z.ZodString>;
13
- icon: z.ZodOptional<z.ZodString>;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- name: string;
17
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
18
- description?: string | undefined;
19
- website?: string | undefined;
20
- icon?: string | undefined;
21
- }, {
22
- id: string;
23
- name: string;
24
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
25
- description?: string | undefined;
26
- website?: string | undefined;
27
- icon?: string | undefined;
28
- }>, {
29
- description: string | undefined;
30
- website: string | undefined;
31
- icon: string | undefined;
32
- id: string;
33
- name: string;
34
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
35
- }, {
36
- id: string;
37
- name: string;
38
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
39
- description?: string | undefined;
40
- website?: string | undefined;
41
- icon?: string | undefined;
42
- }>>;
43
- loanId: z.ZodString;
44
- action: z.ZodLiteral<"borrow-with-debt">;
45
- transfers: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
46
- price: z.ZodOptional<z.ZodObject<{
47
- cryptoCurrencyId: z.ZodString;
48
- fiatCurrencyId: z.ZodString;
49
- price: z.ZodObject<{
50
- value: z.ZodBigInt;
51
- decimals: z.ZodNumber;
52
- }, "strip", z.ZodTypeAny, {
53
- value: bigint;
54
- decimals: number;
55
- }, {
56
- value: bigint;
57
- decimals: number;
58
- }>;
59
- timestamp: z.ZodNumber;
60
- }, "strip", z.ZodTypeAny, {
61
- cryptoCurrencyId: string;
62
- fiatCurrencyId: string;
63
- price: {
64
- value: bigint;
65
- decimals: number;
66
- };
67
- timestamp: number;
68
- }, {
69
- cryptoCurrencyId: string;
70
- fiatCurrencyId: string;
71
- price: {
72
- value: bigint;
73
- decimals: number;
74
- };
75
- timestamp: number;
76
- }>>;
77
- from: z.ZodOptional<z.ZodString>;
78
- to: z.ZodOptional<z.ZodString>;
79
- amount: z.ZodObject<{
80
- value: z.ZodBigInt;
81
- decimals: z.ZodNumber;
82
- }, "strip", z.ZodTypeAny, {
83
- value: bigint;
84
- decimals: number;
85
- }, {
86
- value: bigint;
87
- decimals: number;
88
- }>;
89
- direction: z.ZodLiteral<"in">;
90
- asset: z.ZodEffects<z.ZodObject<{
91
- type: z.ZodLiteral<"CryptoCurrency">;
92
- id: z.ZodString;
93
- name: z.ZodString;
94
- symbol: z.ZodString;
95
- icon: z.ZodOptional<z.ZodString>;
96
- market: z.ZodEffects<z.ZodObject<{
97
- coingeckoId: z.ZodOptional<z.ZodString>;
98
- marketCapUsd: z.ZodOptional<z.ZodObject<{
99
- value: z.ZodBigInt;
100
- decimals: z.ZodNumber;
101
- }, "strip", z.ZodTypeAny, {
102
- value: bigint;
103
- decimals: number;
104
- }, {
105
- value: bigint;
106
- decimals: number;
107
- }>>;
108
- }, "strip", z.ZodTypeAny, {
109
- coingeckoId?: string | undefined;
110
- marketCapUsd?: {
111
- value: bigint;
112
- decimals: number;
113
- } | undefined;
114
- }, {
115
- coingeckoId?: string | undefined;
116
- marketCapUsd?: {
117
- value: bigint;
118
- decimals: number;
119
- } | undefined;
120
- }>, {
121
- coingeckoId: string | undefined;
122
- marketCapUsd: {
123
- value: bigint;
124
- decimals: number;
125
- } | undefined;
126
- }, {
127
- coingeckoId?: string | undefined;
128
- marketCapUsd?: {
129
- value: bigint;
130
- decimals: number;
131
- } | undefined;
132
- }>;
133
- updatedAt: z.ZodNumber;
134
- }, "strip", z.ZodTypeAny, {
135
- symbol: string;
136
- type: "CryptoCurrency";
137
- id: string;
138
- name: string;
139
- market: {
140
- coingeckoId: string | undefined;
141
- marketCapUsd: {
142
- value: bigint;
143
- decimals: number;
144
- } | undefined;
145
- };
146
- updatedAt: number;
147
- icon?: string | undefined;
148
- }, {
149
- symbol: string;
150
- type: "CryptoCurrency";
151
- id: string;
152
- name: string;
153
- market: {
154
- coingeckoId?: string | undefined;
155
- marketCapUsd?: {
156
- value: bigint;
157
- decimals: number;
158
- } | undefined;
159
- };
160
- updatedAt: number;
161
- icon?: string | undefined;
162
- }>, {
163
- icon: string | undefined;
164
- symbol: string;
165
- type: "CryptoCurrency";
166
- id: string;
167
- name: string;
168
- market: {
169
- coingeckoId: string | undefined;
170
- marketCapUsd: {
171
- value: bigint;
172
- decimals: number;
173
- } | undefined;
174
- };
175
- updatedAt: number;
176
- }, {
177
- symbol: string;
178
- type: "CryptoCurrency";
179
- id: string;
180
- name: string;
181
- market: {
182
- coingeckoId?: string | undefined;
183
- marketCapUsd?: {
184
- value: bigint;
185
- decimals: number;
186
- } | undefined;
187
- };
188
- updatedAt: number;
189
- icon?: string | undefined;
190
- }>;
191
- }, "strip", z.ZodTypeAny, {
192
- asset: {
193
- icon: string | undefined;
194
- symbol: string;
195
- type: "CryptoCurrency";
196
- id: string;
197
- name: string;
198
- market: {
199
- coingeckoId: string | undefined;
200
- marketCapUsd: {
201
- value: bigint;
202
- decimals: number;
203
- } | undefined;
204
- };
205
- updatedAt: number;
206
- };
207
- amount: {
208
- value: bigint;
209
- decimals: number;
210
- };
211
- direction: "in";
212
- price?: {
213
- cryptoCurrencyId: string;
214
- fiatCurrencyId: string;
215
- price: {
216
- value: bigint;
217
- decimals: number;
218
- };
219
- timestamp: number;
220
- } | undefined;
221
- from?: string | undefined;
222
- to?: string | undefined;
223
- }, {
224
- asset: {
225
- symbol: string;
226
- type: "CryptoCurrency";
227
- id: string;
228
- name: string;
229
- market: {
230
- coingeckoId?: string | undefined;
231
- marketCapUsd?: {
232
- value: bigint;
233
- decimals: number;
234
- } | undefined;
235
- };
236
- updatedAt: number;
237
- icon?: string | undefined;
238
- };
239
- amount: {
240
- value: bigint;
241
- decimals: number;
242
- };
243
- direction: "in";
244
- price?: {
245
- cryptoCurrencyId: string;
246
- fiatCurrencyId: string;
247
- price: {
248
- value: bigint;
249
- decimals: number;
250
- };
251
- timestamp: number;
252
- } | undefined;
253
- from?: string | undefined;
254
- to?: string | undefined;
255
- }>, {
256
- from: string | undefined;
257
- to: string | undefined;
258
- price: {
259
- cryptoCurrencyId: string;
260
- fiatCurrencyId: string;
261
- price: {
262
- value: bigint;
263
- decimals: number;
264
- };
265
- timestamp: number;
266
- } | undefined;
267
- asset: {
268
- icon: string | undefined;
269
- symbol: string;
270
- type: "CryptoCurrency";
271
- id: string;
272
- name: string;
273
- market: {
274
- coingeckoId: string | undefined;
275
- marketCapUsd: {
276
- value: bigint;
277
- decimals: number;
278
- } | undefined;
279
- };
280
- updatedAt: number;
281
- };
282
- amount: {
283
- value: bigint;
284
- decimals: number;
285
- };
286
- direction: "in";
287
- }, {
288
- asset: {
289
- symbol: string;
290
- type: "CryptoCurrency";
291
- id: string;
292
- name: string;
293
- market: {
294
- coingeckoId?: string | undefined;
295
- marketCapUsd?: {
296
- value: bigint;
297
- decimals: number;
298
- } | undefined;
299
- };
300
- updatedAt: number;
301
- icon?: string | undefined;
302
- };
303
- amount: {
304
- value: bigint;
305
- decimals: number;
306
- };
307
- direction: "in";
308
- price?: {
309
- cryptoCurrencyId: string;
310
- fiatCurrencyId: string;
311
- price: {
312
- value: bigint;
313
- decimals: number;
314
- };
315
- timestamp: number;
316
- } | undefined;
317
- from?: string | undefined;
318
- to?: string | undefined;
319
- }>, z.ZodEffects<z.ZodObject<{
320
- price: z.ZodOptional<z.ZodObject<{
321
- cryptoCurrencyId: z.ZodString;
322
- fiatCurrencyId: z.ZodString;
323
- price: z.ZodObject<{
324
- value: z.ZodBigInt;
325
- decimals: z.ZodNumber;
326
- }, "strip", z.ZodTypeAny, {
327
- value: bigint;
328
- decimals: number;
329
- }, {
330
- value: bigint;
331
- decimals: number;
332
- }>;
333
- timestamp: z.ZodNumber;
334
- }, "strip", z.ZodTypeAny, {
335
- cryptoCurrencyId: string;
336
- fiatCurrencyId: string;
337
- price: {
338
- value: bigint;
339
- decimals: number;
340
- };
341
- timestamp: number;
342
- }, {
343
- cryptoCurrencyId: string;
344
- fiatCurrencyId: string;
345
- price: {
346
- value: bigint;
347
- decimals: number;
348
- };
349
- timestamp: number;
350
- }>>;
351
- from: z.ZodOptional<z.ZodString>;
352
- to: z.ZodOptional<z.ZodString>;
353
- amount: z.ZodObject<{
354
- value: z.ZodBigInt;
355
- decimals: z.ZodNumber;
356
- }, "strip", z.ZodTypeAny, {
357
- value: bigint;
358
- decimals: number;
359
- }, {
360
- value: bigint;
361
- decimals: number;
362
- }>;
363
- direction: z.ZodLiteral<"in">;
364
- asset: z.ZodObject<{
365
- type: z.ZodLiteral<"Nft">;
366
- id: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- type: "Nft";
369
- id: string;
370
- }, {
371
- type: "Nft";
372
- id: string;
373
- }>;
374
- }, "strip", z.ZodTypeAny, {
375
- asset: {
376
- type: "Nft";
377
- id: string;
378
- };
379
- amount: {
380
- value: bigint;
381
- decimals: number;
382
- };
383
- direction: "in";
384
- price?: {
385
- cryptoCurrencyId: string;
386
- fiatCurrencyId: string;
387
- price: {
388
- value: bigint;
389
- decimals: number;
390
- };
391
- timestamp: number;
392
- } | undefined;
393
- from?: string | undefined;
394
- to?: string | undefined;
395
- }, {
396
- asset: {
397
- type: "Nft";
398
- id: string;
399
- };
400
- amount: {
401
- value: bigint;
402
- decimals: number;
403
- };
404
- direction: "in";
405
- price?: {
406
- cryptoCurrencyId: string;
407
- fiatCurrencyId: string;
408
- price: {
409
- value: bigint;
410
- decimals: number;
411
- };
412
- timestamp: number;
413
- } | undefined;
414
- from?: string | undefined;
415
- to?: string | undefined;
416
- }>, {
417
- from: string | undefined;
418
- to: string | undefined;
419
- price: {
420
- cryptoCurrencyId: string;
421
- fiatCurrencyId: string;
422
- price: {
423
- value: bigint;
424
- decimals: number;
425
- };
426
- timestamp: number;
427
- } | undefined;
428
- asset: {
429
- type: "Nft";
430
- id: string;
431
- };
432
- amount: {
433
- value: bigint;
434
- decimals: number;
435
- };
436
- direction: "in";
437
- }, {
438
- asset: {
439
- type: "Nft";
440
- id: string;
441
- };
442
- amount: {
443
- value: bigint;
444
- decimals: number;
445
- };
446
- direction: "in";
447
- price?: {
448
- cryptoCurrencyId: string;
449
- fiatCurrencyId: string;
450
- price: {
451
- value: bigint;
452
- decimals: number;
453
- };
454
- timestamp: number;
455
- } | undefined;
456
- from?: string | undefined;
457
- to?: string | undefined;
458
- }>, z.ZodEffects<z.ZodObject<{
459
- price: z.ZodOptional<z.ZodObject<{
460
- cryptoCurrencyId: z.ZodString;
461
- fiatCurrencyId: z.ZodString;
462
- price: z.ZodObject<{
463
- value: z.ZodBigInt;
464
- decimals: z.ZodNumber;
465
- }, "strip", z.ZodTypeAny, {
466
- value: bigint;
467
- decimals: number;
468
- }, {
469
- value: bigint;
470
- decimals: number;
471
- }>;
472
- timestamp: z.ZodNumber;
473
- }, "strip", z.ZodTypeAny, {
474
- cryptoCurrencyId: string;
475
- fiatCurrencyId: string;
476
- price: {
477
- value: bigint;
478
- decimals: number;
479
- };
480
- timestamp: number;
481
- }, {
482
- cryptoCurrencyId: string;
483
- fiatCurrencyId: string;
484
- price: {
485
- value: bigint;
486
- decimals: number;
487
- };
488
- timestamp: number;
489
- }>>;
490
- from: z.ZodOptional<z.ZodString>;
491
- to: z.ZodOptional<z.ZodString>;
492
- amount: z.ZodObject<{
493
- value: z.ZodBigInt;
494
- decimals: z.ZodNumber;
495
- }, "strip", z.ZodTypeAny, {
496
- value: bigint;
497
- decimals: number;
498
- }, {
499
- value: bigint;
500
- decimals: number;
501
- }>;
502
- direction: z.ZodLiteral<"out">;
503
- asset: z.ZodEffects<z.ZodObject<{
504
- type: z.ZodLiteral<"CryptoCurrency">;
505
- id: z.ZodString;
506
- name: z.ZodString;
507
- symbol: z.ZodString;
508
- icon: z.ZodOptional<z.ZodString>;
509
- market: z.ZodEffects<z.ZodObject<{
510
- coingeckoId: z.ZodOptional<z.ZodString>;
511
- marketCapUsd: z.ZodOptional<z.ZodObject<{
512
- value: z.ZodBigInt;
513
- decimals: z.ZodNumber;
514
- }, "strip", z.ZodTypeAny, {
515
- value: bigint;
516
- decimals: number;
517
- }, {
518
- value: bigint;
519
- decimals: number;
520
- }>>;
521
- }, "strip", z.ZodTypeAny, {
522
- coingeckoId?: string | undefined;
523
- marketCapUsd?: {
524
- value: bigint;
525
- decimals: number;
526
- } | undefined;
527
- }, {
528
- coingeckoId?: string | undefined;
529
- marketCapUsd?: {
530
- value: bigint;
531
- decimals: number;
532
- } | undefined;
533
- }>, {
534
- coingeckoId: string | undefined;
535
- marketCapUsd: {
536
- value: bigint;
537
- decimals: number;
538
- } | undefined;
539
- }, {
540
- coingeckoId?: string | undefined;
541
- marketCapUsd?: {
542
- value: bigint;
543
- decimals: number;
544
- } | undefined;
545
- }>;
546
- updatedAt: z.ZodNumber;
547
- }, "strip", z.ZodTypeAny, {
548
- symbol: string;
549
- type: "CryptoCurrency";
550
- id: string;
551
- name: string;
552
- market: {
553
- coingeckoId: string | undefined;
554
- marketCapUsd: {
555
- value: bigint;
556
- decimals: number;
557
- } | undefined;
558
- };
559
- updatedAt: number;
560
- icon?: string | undefined;
561
- }, {
562
- symbol: string;
563
- type: "CryptoCurrency";
564
- id: string;
565
- name: string;
566
- market: {
567
- coingeckoId?: string | undefined;
568
- marketCapUsd?: {
569
- value: bigint;
570
- decimals: number;
571
- } | undefined;
572
- };
573
- updatedAt: number;
574
- icon?: string | undefined;
575
- }>, {
576
- icon: string | undefined;
577
- symbol: string;
578
- type: "CryptoCurrency";
579
- id: string;
580
- name: string;
581
- market: {
582
- coingeckoId: string | undefined;
583
- marketCapUsd: {
584
- value: bigint;
585
- decimals: number;
586
- } | undefined;
587
- };
588
- updatedAt: number;
589
- }, {
590
- symbol: string;
591
- type: "CryptoCurrency";
592
- id: string;
593
- name: string;
594
- market: {
595
- coingeckoId?: string | undefined;
596
- marketCapUsd?: {
597
- value: bigint;
598
- decimals: number;
599
- } | undefined;
600
- };
601
- updatedAt: number;
602
- icon?: string | undefined;
603
- }>;
604
- }, "strip", z.ZodTypeAny, {
605
- asset: {
606
- icon: string | undefined;
607
- symbol: string;
608
- type: "CryptoCurrency";
609
- id: string;
610
- name: string;
611
- market: {
612
- coingeckoId: string | undefined;
613
- marketCapUsd: {
614
- value: bigint;
615
- decimals: number;
616
- } | undefined;
617
- };
618
- updatedAt: number;
619
- };
620
- amount: {
621
- value: bigint;
622
- decimals: number;
623
- };
624
- direction: "out";
625
- price?: {
626
- cryptoCurrencyId: string;
627
- fiatCurrencyId: string;
628
- price: {
629
- value: bigint;
630
- decimals: number;
631
- };
632
- timestamp: number;
633
- } | undefined;
634
- from?: string | undefined;
635
- to?: string | undefined;
636
- }, {
637
- asset: {
638
- symbol: string;
639
- type: "CryptoCurrency";
640
- id: string;
641
- name: string;
642
- market: {
643
- coingeckoId?: string | undefined;
644
- marketCapUsd?: {
645
- value: bigint;
646
- decimals: number;
647
- } | undefined;
648
- };
649
- updatedAt: number;
650
- icon?: string | undefined;
651
- };
652
- amount: {
653
- value: bigint;
654
- decimals: number;
655
- };
656
- direction: "out";
657
- price?: {
658
- cryptoCurrencyId: string;
659
- fiatCurrencyId: string;
660
- price: {
661
- value: bigint;
662
- decimals: number;
663
- };
664
- timestamp: number;
665
- } | undefined;
666
- from?: string | undefined;
667
- to?: string | undefined;
668
- }>, {
669
- from: string | undefined;
670
- to: string | undefined;
671
- price: {
672
- cryptoCurrencyId: string;
673
- fiatCurrencyId: string;
674
- price: {
675
- value: bigint;
676
- decimals: number;
677
- };
678
- timestamp: number;
679
- } | undefined;
680
- asset: {
681
- icon: string | undefined;
682
- symbol: string;
683
- type: "CryptoCurrency";
684
- id: string;
685
- name: string;
686
- market: {
687
- coingeckoId: string | undefined;
688
- marketCapUsd: {
689
- value: bigint;
690
- decimals: number;
691
- } | undefined;
692
- };
693
- updatedAt: number;
694
- };
695
- amount: {
696
- value: bigint;
697
- decimals: number;
698
- };
699
- direction: "out";
700
- }, {
701
- asset: {
702
- symbol: string;
703
- type: "CryptoCurrency";
704
- id: string;
705
- name: string;
706
- market: {
707
- coingeckoId?: string | undefined;
708
- marketCapUsd?: {
709
- value: bigint;
710
- decimals: number;
711
- } | undefined;
712
- };
713
- updatedAt: number;
714
- icon?: string | undefined;
715
- };
716
- amount: {
717
- value: bigint;
718
- decimals: number;
719
- };
720
- direction: "out";
721
- price?: {
722
- cryptoCurrencyId: string;
723
- fiatCurrencyId: string;
724
- price: {
725
- value: bigint;
726
- decimals: number;
727
- };
728
- timestamp: number;
729
- } | undefined;
730
- from?: string | undefined;
731
- to?: string | undefined;
732
- }>, z.ZodEffects<z.ZodObject<{
733
- price: z.ZodOptional<z.ZodObject<{
734
- cryptoCurrencyId: z.ZodString;
735
- fiatCurrencyId: z.ZodString;
736
- price: z.ZodObject<{
737
- value: z.ZodBigInt;
738
- decimals: z.ZodNumber;
739
- }, "strip", z.ZodTypeAny, {
740
- value: bigint;
741
- decimals: number;
742
- }, {
743
- value: bigint;
744
- decimals: number;
745
- }>;
746
- timestamp: z.ZodNumber;
747
- }, "strip", z.ZodTypeAny, {
748
- cryptoCurrencyId: string;
749
- fiatCurrencyId: string;
750
- price: {
751
- value: bigint;
752
- decimals: number;
753
- };
754
- timestamp: number;
755
- }, {
756
- cryptoCurrencyId: string;
757
- fiatCurrencyId: string;
758
- price: {
759
- value: bigint;
760
- decimals: number;
761
- };
762
- timestamp: number;
763
- }>>;
764
- from: z.ZodOptional<z.ZodString>;
765
- to: z.ZodOptional<z.ZodString>;
766
- amount: z.ZodObject<{
767
- value: z.ZodBigInt;
768
- decimals: z.ZodNumber;
769
- }, "strip", z.ZodTypeAny, {
770
- value: bigint;
771
- decimals: number;
772
- }, {
773
- value: bigint;
774
- decimals: number;
775
- }>;
776
- direction: z.ZodLiteral<"out">;
777
- asset: z.ZodObject<{
778
- type: z.ZodLiteral<"Nft">;
779
- id: z.ZodString;
780
- }, "strip", z.ZodTypeAny, {
781
- type: "Nft";
782
- id: string;
783
- }, {
784
- type: "Nft";
785
- id: string;
786
- }>;
787
- }, "strip", z.ZodTypeAny, {
788
- asset: {
789
- type: "Nft";
790
- id: string;
791
- };
792
- amount: {
793
- value: bigint;
794
- decimals: number;
795
- };
796
- direction: "out";
797
- price?: {
798
- cryptoCurrencyId: string;
799
- fiatCurrencyId: string;
800
- price: {
801
- value: bigint;
802
- decimals: number;
803
- };
804
- timestamp: number;
805
- } | undefined;
806
- from?: string | undefined;
807
- to?: string | undefined;
808
- }, {
809
- asset: {
810
- type: "Nft";
811
- id: string;
812
- };
813
- amount: {
814
- value: bigint;
815
- decimals: number;
816
- };
817
- direction: "out";
818
- price?: {
819
- cryptoCurrencyId: string;
820
- fiatCurrencyId: string;
821
- price: {
822
- value: bigint;
823
- decimals: number;
824
- };
825
- timestamp: number;
826
- } | undefined;
827
- from?: string | undefined;
828
- to?: string | undefined;
829
- }>, {
830
- from: string | undefined;
831
- to: string | undefined;
832
- price: {
833
- cryptoCurrencyId: string;
834
- fiatCurrencyId: string;
835
- price: {
836
- value: bigint;
837
- decimals: number;
838
- };
839
- timestamp: number;
840
- } | undefined;
841
- asset: {
842
- type: "Nft";
843
- id: string;
844
- };
845
- amount: {
846
- value: bigint;
847
- decimals: number;
848
- };
849
- direction: "out";
850
- }, {
851
- asset: {
852
- type: "Nft";
853
- id: string;
854
- };
855
- amount: {
856
- value: bigint;
857
- decimals: number;
858
- };
859
- direction: "out";
860
- price?: {
861
- cryptoCurrencyId: string;
862
- fiatCurrencyId: string;
863
- price: {
864
- value: bigint;
865
- decimals: number;
866
- };
867
- timestamp: number;
868
- } | undefined;
869
- from?: string | undefined;
870
- to?: string | undefined;
871
- }>]>, "many">;
872
- }, "strip", z.ZodTypeAny, {
873
- type: "LoanNormalAction";
874
- timestamp: number;
875
- action: "borrow-with-debt";
876
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
877
- transfers: ({
878
- from: string | undefined;
879
- to: string | undefined;
880
- price: {
881
- cryptoCurrencyId: string;
882
- fiatCurrencyId: string;
883
- price: {
884
- value: bigint;
885
- decimals: number;
886
- };
887
- timestamp: number;
888
- } | undefined;
889
- asset: {
890
- icon: string | undefined;
891
- symbol: string;
892
- type: "CryptoCurrency";
893
- id: string;
894
- name: string;
895
- market: {
896
- coingeckoId: string | undefined;
897
- marketCapUsd: {
898
- value: bigint;
899
- decimals: number;
900
- } | undefined;
901
- };
902
- updatedAt: number;
903
- };
904
- amount: {
905
- value: bigint;
906
- decimals: number;
907
- };
908
- direction: "in";
909
- } | {
910
- from: string | undefined;
911
- to: string | undefined;
912
- price: {
913
- cryptoCurrencyId: string;
914
- fiatCurrencyId: string;
915
- price: {
916
- value: bigint;
917
- decimals: number;
918
- };
919
- timestamp: number;
920
- } | undefined;
921
- asset: {
922
- type: "Nft";
923
- id: string;
924
- };
925
- amount: {
926
- value: bigint;
927
- decimals: number;
928
- };
929
- direction: "in";
930
- } | {
931
- from: string | undefined;
932
- to: string | undefined;
933
- price: {
934
- cryptoCurrencyId: string;
935
- fiatCurrencyId: string;
936
- price: {
937
- value: bigint;
938
- decimals: number;
939
- };
940
- timestamp: number;
941
- } | undefined;
942
- asset: {
943
- icon: string | undefined;
944
- symbol: string;
945
- type: "CryptoCurrency";
946
- id: string;
947
- name: string;
948
- market: {
949
- coingeckoId: string | undefined;
950
- marketCapUsd: {
951
- value: bigint;
952
- decimals: number;
953
- } | undefined;
954
- };
955
- updatedAt: number;
956
- };
957
- amount: {
958
- value: bigint;
959
- decimals: number;
960
- };
961
- direction: "out";
962
- } | {
963
- from: string | undefined;
964
- to: string | undefined;
965
- price: {
966
- cryptoCurrencyId: string;
967
- fiatCurrencyId: string;
968
- price: {
969
- value: bigint;
970
- decimals: number;
971
- };
972
- timestamp: number;
973
- } | undefined;
974
- asset: {
975
- type: "Nft";
976
- id: string;
977
- };
978
- amount: {
979
- value: bigint;
980
- decimals: number;
981
- };
982
- direction: "out";
983
- })[];
984
- loanId: string;
985
- comment?: string | undefined;
986
- app?: {
987
- description: string | undefined;
988
- website: string | undefined;
989
- icon: string | undefined;
990
- id: string;
991
- name: string;
992
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
993
- } | undefined;
994
- }, {
995
- type: "LoanNormalAction";
996
- timestamp: number;
997
- action: "borrow-with-debt";
998
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
999
- transfers: ({
1000
- asset: {
1001
- symbol: string;
1002
- type: "CryptoCurrency";
1003
- id: string;
1004
- name: string;
1005
- market: {
1006
- coingeckoId?: string | undefined;
1007
- marketCapUsd?: {
1008
- value: bigint;
1009
- decimals: number;
1010
- } | undefined;
1011
- };
1012
- updatedAt: number;
1013
- icon?: string | undefined;
1014
- };
1015
- amount: {
1016
- value: bigint;
1017
- decimals: number;
1018
- };
1019
- direction: "in";
1020
- price?: {
1021
- cryptoCurrencyId: string;
1022
- fiatCurrencyId: string;
1023
- price: {
1024
- value: bigint;
1025
- decimals: number;
1026
- };
1027
- timestamp: number;
1028
- } | undefined;
1029
- from?: string | undefined;
1030
- to?: string | undefined;
1031
- } | {
1032
- asset: {
1033
- type: "Nft";
1034
- id: string;
1035
- };
1036
- amount: {
1037
- value: bigint;
1038
- decimals: number;
1039
- };
1040
- direction: "in";
1041
- price?: {
1042
- cryptoCurrencyId: string;
1043
- fiatCurrencyId: string;
1044
- price: {
1045
- value: bigint;
1046
- decimals: number;
1047
- };
1048
- timestamp: number;
1049
- } | undefined;
1050
- from?: string | undefined;
1051
- to?: string | undefined;
1052
- } | {
1053
- asset: {
1054
- symbol: string;
1055
- type: "CryptoCurrency";
1056
- id: string;
1057
- name: string;
1058
- market: {
1059
- coingeckoId?: string | undefined;
1060
- marketCapUsd?: {
1061
- value: bigint;
1062
- decimals: number;
1063
- } | undefined;
1064
- };
1065
- updatedAt: number;
1066
- icon?: string | undefined;
1067
- };
1068
- amount: {
1069
- value: bigint;
1070
- decimals: number;
1071
- };
1072
- direction: "out";
1073
- price?: {
1074
- cryptoCurrencyId: string;
1075
- fiatCurrencyId: string;
1076
- price: {
1077
- value: bigint;
1078
- decimals: number;
1079
- };
1080
- timestamp: number;
1081
- } | undefined;
1082
- from?: string | undefined;
1083
- to?: string | undefined;
1084
- } | {
1085
- asset: {
1086
- type: "Nft";
1087
- id: string;
1088
- };
1089
- amount: {
1090
- value: bigint;
1091
- decimals: number;
1092
- };
1093
- direction: "out";
1094
- price?: {
1095
- cryptoCurrencyId: string;
1096
- fiatCurrencyId: string;
1097
- price: {
1098
- value: bigint;
1099
- decimals: number;
1100
- };
1101
- timestamp: number;
1102
- } | undefined;
1103
- from?: string | undefined;
1104
- to?: string | undefined;
1105
- })[];
1106
- loanId: string;
1107
- comment?: string | undefined;
1108
- app?: {
1109
- id: string;
1110
- name: string;
1111
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1112
- description?: string | undefined;
1113
- website?: string | undefined;
1114
- icon?: string | undefined;
1115
- } | undefined;
1116
- }>, {
1117
- comment: string | undefined;
1118
- app: {
1119
- description: string | undefined;
1120
- website: string | undefined;
1121
- icon: string | undefined;
1122
- id: string;
1123
- name: string;
1124
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1125
- } | undefined;
1126
- type: "LoanNormalAction";
1127
- timestamp: number;
1128
- action: "borrow-with-debt";
1129
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
1130
- transfers: ({
1131
- from: string | undefined;
1132
- to: string | undefined;
1133
- price: {
1134
- cryptoCurrencyId: string;
1135
- fiatCurrencyId: string;
1136
- price: {
1137
- value: bigint;
1138
- decimals: number;
1139
- };
1140
- timestamp: number;
1141
- } | undefined;
1142
- asset: {
1143
- icon: string | undefined;
1144
- symbol: string;
1145
- type: "CryptoCurrency";
1146
- id: string;
1147
- name: string;
1148
- market: {
1149
- coingeckoId: string | undefined;
1150
- marketCapUsd: {
1151
- value: bigint;
1152
- decimals: number;
1153
- } | undefined;
1154
- };
1155
- updatedAt: number;
1156
- };
1157
- amount: {
1158
- value: bigint;
1159
- decimals: number;
1160
- };
1161
- direction: "in";
1162
- } | {
1163
- from: string | undefined;
1164
- to: string | undefined;
1165
- price: {
1166
- cryptoCurrencyId: string;
1167
- fiatCurrencyId: string;
1168
- price: {
1169
- value: bigint;
1170
- decimals: number;
1171
- };
1172
- timestamp: number;
1173
- } | undefined;
1174
- asset: {
1175
- type: "Nft";
1176
- id: string;
1177
- };
1178
- amount: {
1179
- value: bigint;
1180
- decimals: number;
1181
- };
1182
- direction: "in";
1183
- } | {
1184
- from: string | undefined;
1185
- to: string | undefined;
1186
- price: {
1187
- cryptoCurrencyId: string;
1188
- fiatCurrencyId: string;
1189
- price: {
1190
- value: bigint;
1191
- decimals: number;
1192
- };
1193
- timestamp: number;
1194
- } | undefined;
1195
- asset: {
1196
- icon: string | undefined;
1197
- symbol: string;
1198
- type: "CryptoCurrency";
1199
- id: string;
1200
- name: string;
1201
- market: {
1202
- coingeckoId: string | undefined;
1203
- marketCapUsd: {
1204
- value: bigint;
1205
- decimals: number;
1206
- } | undefined;
1207
- };
1208
- updatedAt: number;
1209
- };
1210
- amount: {
1211
- value: bigint;
1212
- decimals: number;
1213
- };
1214
- direction: "out";
1215
- } | {
1216
- from: string | undefined;
1217
- to: string | undefined;
1218
- price: {
1219
- cryptoCurrencyId: string;
1220
- fiatCurrencyId: string;
1221
- price: {
1222
- value: bigint;
1223
- decimals: number;
1224
- };
1225
- timestamp: number;
1226
- } | undefined;
1227
- asset: {
1228
- type: "Nft";
1229
- id: string;
1230
- };
1231
- amount: {
1232
- value: bigint;
1233
- decimals: number;
1234
- };
1235
- direction: "out";
1236
- })[];
1237
- loanId: string;
1238
- }, {
1239
- type: "LoanNormalAction";
1240
- timestamp: number;
1241
- action: "borrow-with-debt";
1242
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
1243
- transfers: ({
1244
- asset: {
1245
- symbol: string;
1246
- type: "CryptoCurrency";
1247
- id: string;
1248
- name: string;
1249
- market: {
1250
- coingeckoId?: string | undefined;
1251
- marketCapUsd?: {
1252
- value: bigint;
1253
- decimals: number;
1254
- } | undefined;
1255
- };
1256
- updatedAt: number;
1257
- icon?: string | undefined;
1258
- };
1259
- amount: {
1260
- value: bigint;
1261
- decimals: number;
1262
- };
1263
- direction: "in";
1264
- price?: {
1265
- cryptoCurrencyId: string;
1266
- fiatCurrencyId: string;
1267
- price: {
1268
- value: bigint;
1269
- decimals: number;
1270
- };
1271
- timestamp: number;
1272
- } | undefined;
1273
- from?: string | undefined;
1274
- to?: string | undefined;
1275
- } | {
1276
- asset: {
1277
- type: "Nft";
1278
- id: string;
1279
- };
1280
- amount: {
1281
- value: bigint;
1282
- decimals: number;
1283
- };
1284
- direction: "in";
1285
- price?: {
1286
- cryptoCurrencyId: string;
1287
- fiatCurrencyId: string;
1288
- price: {
1289
- value: bigint;
1290
- decimals: number;
1291
- };
1292
- timestamp: number;
1293
- } | undefined;
1294
- from?: string | undefined;
1295
- to?: string | undefined;
1296
- } | {
1297
- asset: {
1298
- symbol: string;
1299
- type: "CryptoCurrency";
1300
- id: string;
1301
- name: string;
1302
- market: {
1303
- coingeckoId?: string | undefined;
1304
- marketCapUsd?: {
1305
- value: bigint;
1306
- decimals: number;
1307
- } | undefined;
1308
- };
1309
- updatedAt: number;
1310
- icon?: string | undefined;
1311
- };
1312
- amount: {
1313
- value: bigint;
1314
- decimals: number;
1315
- };
1316
- direction: "out";
1317
- price?: {
1318
- cryptoCurrencyId: string;
1319
- fiatCurrencyId: string;
1320
- price: {
1321
- value: bigint;
1322
- decimals: number;
1323
- };
1324
- timestamp: number;
1325
- } | undefined;
1326
- from?: string | undefined;
1327
- to?: string | undefined;
1328
- } | {
1329
- asset: {
1330
- type: "Nft";
1331
- id: string;
1332
- };
1333
- amount: {
1334
- value: bigint;
1335
- decimals: number;
1336
- };
1337
- direction: "out";
1338
- price?: {
1339
- cryptoCurrencyId: string;
1340
- fiatCurrencyId: string;
1341
- price: {
1342
- value: bigint;
1343
- decimals: number;
1344
- };
1345
- timestamp: number;
1346
- } | undefined;
1347
- from?: string | undefined;
1348
- to?: string | undefined;
1349
- })[];
1350
- loanId: string;
1351
- comment?: string | undefined;
1352
- app?: {
1353
- id: string;
1354
- name: string;
1355
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1356
- description?: string | undefined;
1357
- website?: string | undefined;
1358
- icon?: string | undefined;
1359
- } | undefined;
1360
- }>;
1361
- export declare const accountActionBorrowWithDebtSchema: z.ZodEffects<z.ZodObject<{
1362
- type: z.ZodLiteral<"LoanAccountAction">;
1363
- timestamp: z.ZodNumber;
1364
- order: z.ZodNumber;
1365
- source: z.ZodString;
1366
- evidence: z.ZodUnion<[z.ZodLiteral<"contract">, z.ZodLiteral<"system-rule">, z.ZodLiteral<"user-rule">, z.ZodLiteral<"manual-check">, z.ZodLiteral<"none">]>;
1367
- comment: z.ZodOptional<z.ZodString>;
1368
- app: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1369
- id: z.ZodString;
1370
- categories: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"bridge">, z.ZodLiteral<"cex">, z.ZodLiteral<"cross-chain">, z.ZodLiteral<"dex">, z.ZodLiteral<"gaming">, z.ZodLiteral<"lending">, z.ZodLiteral<"nft-marketplace">, z.ZodLiteral<"other">]>, "many">;
1371
- name: z.ZodString;
1372
- description: z.ZodOptional<z.ZodString>;
1373
- website: z.ZodOptional<z.ZodString>;
1374
- icon: z.ZodOptional<z.ZodString>;
1375
- }, "strip", z.ZodTypeAny, {
1376
- id: string;
1377
- name: string;
1378
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1379
- description?: string | undefined;
1380
- website?: string | undefined;
1381
- icon?: string | undefined;
1382
- }, {
1383
- id: string;
1384
- name: string;
1385
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1386
- description?: string | undefined;
1387
- website?: string | undefined;
1388
- icon?: string | undefined;
1389
- }>, {
1390
- description: string | undefined;
1391
- website: string | undefined;
1392
- icon: string | undefined;
1393
- id: string;
1394
- name: string;
1395
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1396
- }, {
1397
- id: string;
1398
- name: string;
1399
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
1400
- description?: string | undefined;
1401
- website?: string | undefined;
1402
- icon?: string | undefined;
1403
- }>>;
1404
- loanId: z.ZodString;
1405
- action: z.ZodLiteral<"borrow-with-debt">;
1406
- transfers: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1407
- price: z.ZodOptional<z.ZodObject<{
1408
- cryptoCurrencyId: z.ZodString;
1409
- fiatCurrencyId: z.ZodString;
1410
- price: z.ZodObject<{
1411
- value: z.ZodBigInt;
1412
- decimals: z.ZodNumber;
1413
- }, "strip", z.ZodTypeAny, {
1414
- value: bigint;
1415
- decimals: number;
1416
- }, {
1417
- value: bigint;
1418
- decimals: number;
1419
- }>;
1420
- timestamp: z.ZodNumber;
1421
- }, "strip", z.ZodTypeAny, {
1422
- cryptoCurrencyId: string;
1423
- fiatCurrencyId: string;
1424
- price: {
1425
- value: bigint;
1426
- decimals: number;
1427
- };
1428
- timestamp: number;
1429
- }, {
1430
- cryptoCurrencyId: string;
1431
- fiatCurrencyId: string;
1432
- price: {
1433
- value: bigint;
1434
- decimals: number;
1435
- };
1436
- timestamp: number;
1437
- }>>;
1438
- from: z.ZodOptional<z.ZodString>;
1439
- to: z.ZodOptional<z.ZodString>;
1440
- amount: z.ZodObject<{
1441
- value: z.ZodBigInt;
1442
- decimals: z.ZodNumber;
1443
- }, "strip", z.ZodTypeAny, {
1444
- value: bigint;
1445
- decimals: number;
1446
- }, {
1447
- value: bigint;
1448
- decimals: number;
1449
- }>;
1450
- direction: z.ZodLiteral<"in">;
1451
- asset: z.ZodEffects<z.ZodObject<{
1452
- type: z.ZodLiteral<"CryptoCurrency">;
1453
- id: z.ZodString;
1454
- name: z.ZodString;
1455
- symbol: z.ZodString;
1456
- icon: z.ZodOptional<z.ZodString>;
1457
- market: z.ZodEffects<z.ZodObject<{
1458
- coingeckoId: z.ZodOptional<z.ZodString>;
1459
- marketCapUsd: z.ZodOptional<z.ZodObject<{
1460
- value: z.ZodBigInt;
1461
- decimals: z.ZodNumber;
1462
- }, "strip", z.ZodTypeAny, {
1463
- value: bigint;
1464
- decimals: number;
1465
- }, {
1466
- value: bigint;
1467
- decimals: number;
1468
- }>>;
1469
- }, "strip", z.ZodTypeAny, {
1470
- coingeckoId?: string | undefined;
1471
- marketCapUsd?: {
1472
- value: bigint;
1473
- decimals: number;
1474
- } | undefined;
1475
- }, {
1476
- coingeckoId?: string | undefined;
1477
- marketCapUsd?: {
1478
- value: bigint;
1479
- decimals: number;
1480
- } | undefined;
1481
- }>, {
1482
- coingeckoId: string | undefined;
1483
- marketCapUsd: {
1484
- value: bigint;
1485
- decimals: number;
1486
- } | undefined;
1487
- }, {
1488
- coingeckoId?: string | undefined;
1489
- marketCapUsd?: {
1490
- value: bigint;
1491
- decimals: number;
1492
- } | undefined;
1493
- }>;
1494
- updatedAt: z.ZodNumber;
1495
- }, "strip", z.ZodTypeAny, {
1496
- symbol: string;
1497
- type: "CryptoCurrency";
1498
- id: string;
1499
- name: string;
1500
- market: {
1501
- coingeckoId: string | undefined;
1502
- marketCapUsd: {
1503
- value: bigint;
1504
- decimals: number;
1505
- } | undefined;
1506
- };
1507
- updatedAt: number;
1508
- icon?: string | undefined;
1509
- }, {
1510
- symbol: string;
1511
- type: "CryptoCurrency";
1512
- id: string;
1513
- name: string;
1514
- market: {
1515
- coingeckoId?: string | undefined;
1516
- marketCapUsd?: {
1517
- value: bigint;
1518
- decimals: number;
1519
- } | undefined;
1520
- };
1521
- updatedAt: number;
1522
- icon?: string | undefined;
1523
- }>, {
1524
- icon: string | undefined;
1525
- symbol: string;
1526
- type: "CryptoCurrency";
1527
- id: string;
1528
- name: string;
1529
- market: {
1530
- coingeckoId: string | undefined;
1531
- marketCapUsd: {
1532
- value: bigint;
1533
- decimals: number;
1534
- } | undefined;
1535
- };
1536
- updatedAt: number;
1537
- }, {
1538
- symbol: string;
1539
- type: "CryptoCurrency";
1540
- id: string;
1541
- name: string;
1542
- market: {
1543
- coingeckoId?: string | undefined;
1544
- marketCapUsd?: {
1545
- value: bigint;
1546
- decimals: number;
1547
- } | undefined;
1548
- };
1549
- updatedAt: number;
1550
- icon?: string | undefined;
1551
- }>;
1552
- }, "strip", z.ZodTypeAny, {
1553
- asset: {
1554
- icon: string | undefined;
1555
- symbol: string;
1556
- type: "CryptoCurrency";
1557
- id: string;
1558
- name: string;
1559
- market: {
1560
- coingeckoId: string | undefined;
1561
- marketCapUsd: {
1562
- value: bigint;
1563
- decimals: number;
1564
- } | undefined;
1565
- };
1566
- updatedAt: number;
1567
- };
1568
- amount: {
1569
- value: bigint;
1570
- decimals: number;
1571
- };
1572
- direction: "in";
1573
- price?: {
1574
- cryptoCurrencyId: string;
1575
- fiatCurrencyId: string;
1576
- price: {
1577
- value: bigint;
1578
- decimals: number;
1579
- };
1580
- timestamp: number;
1581
- } | undefined;
1582
- from?: string | undefined;
1583
- to?: string | undefined;
1584
- }, {
1585
- asset: {
1586
- symbol: string;
1587
- type: "CryptoCurrency";
1588
- id: string;
1589
- name: string;
1590
- market: {
1591
- coingeckoId?: string | undefined;
1592
- marketCapUsd?: {
1593
- value: bigint;
1594
- decimals: number;
1595
- } | undefined;
1596
- };
1597
- updatedAt: number;
1598
- icon?: string | undefined;
1599
- };
1600
- amount: {
1601
- value: bigint;
1602
- decimals: number;
1603
- };
1604
- direction: "in";
1605
- price?: {
1606
- cryptoCurrencyId: string;
1607
- fiatCurrencyId: string;
1608
- price: {
1609
- value: bigint;
1610
- decimals: number;
1611
- };
1612
- timestamp: number;
1613
- } | undefined;
1614
- from?: string | undefined;
1615
- to?: string | undefined;
1616
- }>, {
1617
- from: string | undefined;
1618
- to: string | undefined;
1619
- price: {
1620
- cryptoCurrencyId: string;
1621
- fiatCurrencyId: string;
1622
- price: {
1623
- value: bigint;
1624
- decimals: number;
1625
- };
1626
- timestamp: number;
1627
- } | undefined;
1628
- asset: {
1629
- icon: string | undefined;
1630
- symbol: string;
1631
- type: "CryptoCurrency";
1632
- id: string;
1633
- name: string;
1634
- market: {
1635
- coingeckoId: string | undefined;
1636
- marketCapUsd: {
1637
- value: bigint;
1638
- decimals: number;
1639
- } | undefined;
1640
- };
1641
- updatedAt: number;
1642
- };
1643
- amount: {
1644
- value: bigint;
1645
- decimals: number;
1646
- };
1647
- direction: "in";
1648
- }, {
1649
- asset: {
1650
- symbol: string;
1651
- type: "CryptoCurrency";
1652
- id: string;
1653
- name: string;
1654
- market: {
1655
- coingeckoId?: string | undefined;
1656
- marketCapUsd?: {
1657
- value: bigint;
1658
- decimals: number;
1659
- } | undefined;
1660
- };
1661
- updatedAt: number;
1662
- icon?: string | undefined;
1663
- };
1664
- amount: {
1665
- value: bigint;
1666
- decimals: number;
1667
- };
1668
- direction: "in";
1669
- price?: {
1670
- cryptoCurrencyId: string;
1671
- fiatCurrencyId: string;
1672
- price: {
1673
- value: bigint;
1674
- decimals: number;
1675
- };
1676
- timestamp: number;
1677
- } | undefined;
1678
- from?: string | undefined;
1679
- to?: string | undefined;
1680
- }>, z.ZodEffects<z.ZodObject<{
1681
- price: z.ZodOptional<z.ZodObject<{
1682
- cryptoCurrencyId: z.ZodString;
1683
- fiatCurrencyId: z.ZodString;
1684
- price: z.ZodObject<{
1685
- value: z.ZodBigInt;
1686
- decimals: z.ZodNumber;
1687
- }, "strip", z.ZodTypeAny, {
1688
- value: bigint;
1689
- decimals: number;
1690
- }, {
1691
- value: bigint;
1692
- decimals: number;
1693
- }>;
1694
- timestamp: z.ZodNumber;
1695
- }, "strip", z.ZodTypeAny, {
1696
- cryptoCurrencyId: string;
1697
- fiatCurrencyId: string;
1698
- price: {
1699
- value: bigint;
1700
- decimals: number;
1701
- };
1702
- timestamp: number;
1703
- }, {
1704
- cryptoCurrencyId: string;
1705
- fiatCurrencyId: string;
1706
- price: {
1707
- value: bigint;
1708
- decimals: number;
1709
- };
1710
- timestamp: number;
1711
- }>>;
1712
- from: z.ZodOptional<z.ZodString>;
1713
- to: z.ZodOptional<z.ZodString>;
1714
- amount: z.ZodObject<{
1715
- value: z.ZodBigInt;
1716
- decimals: z.ZodNumber;
1717
- }, "strip", z.ZodTypeAny, {
1718
- value: bigint;
1719
- decimals: number;
1720
- }, {
1721
- value: bigint;
1722
- decimals: number;
1723
- }>;
1724
- direction: z.ZodLiteral<"in">;
1725
- asset: z.ZodObject<{
1726
- type: z.ZodLiteral<"Nft">;
1727
- id: z.ZodString;
1728
- }, "strip", z.ZodTypeAny, {
1729
- type: "Nft";
1730
- id: string;
1731
- }, {
1732
- type: "Nft";
1733
- id: string;
1734
- }>;
1735
- }, "strip", z.ZodTypeAny, {
1736
- asset: {
1737
- type: "Nft";
1738
- id: string;
1739
- };
1740
- amount: {
1741
- value: bigint;
1742
- decimals: number;
1743
- };
1744
- direction: "in";
1745
- price?: {
1746
- cryptoCurrencyId: string;
1747
- fiatCurrencyId: string;
1748
- price: {
1749
- value: bigint;
1750
- decimals: number;
1751
- };
1752
- timestamp: number;
1753
- } | undefined;
1754
- from?: string | undefined;
1755
- to?: string | undefined;
1756
- }, {
1757
- asset: {
1758
- type: "Nft";
1759
- id: string;
1760
- };
1761
- amount: {
1762
- value: bigint;
1763
- decimals: number;
1764
- };
1765
- direction: "in";
1766
- price?: {
1767
- cryptoCurrencyId: string;
1768
- fiatCurrencyId: string;
1769
- price: {
1770
- value: bigint;
1771
- decimals: number;
1772
- };
1773
- timestamp: number;
1774
- } | undefined;
1775
- from?: string | undefined;
1776
- to?: string | undefined;
1777
- }>, {
1778
- from: string | undefined;
1779
- to: string | undefined;
1780
- price: {
1781
- cryptoCurrencyId: string;
1782
- fiatCurrencyId: string;
1783
- price: {
1784
- value: bigint;
1785
- decimals: number;
1786
- };
1787
- timestamp: number;
1788
- } | undefined;
1789
- asset: {
1790
- type: "Nft";
1791
- id: string;
1792
- };
1793
- amount: {
1794
- value: bigint;
1795
- decimals: number;
1796
- };
1797
- direction: "in";
1798
- }, {
1799
- asset: {
1800
- type: "Nft";
1801
- id: string;
1802
- };
1803
- amount: {
1804
- value: bigint;
1805
- decimals: number;
1806
- };
1807
- direction: "in";
1808
- price?: {
1809
- cryptoCurrencyId: string;
1810
- fiatCurrencyId: string;
1811
- price: {
1812
- value: bigint;
1813
- decimals: number;
1814
- };
1815
- timestamp: number;
1816
- } | undefined;
1817
- from?: string | undefined;
1818
- to?: string | undefined;
1819
- }>, z.ZodEffects<z.ZodObject<{
1820
- price: z.ZodOptional<z.ZodObject<{
1821
- cryptoCurrencyId: z.ZodString;
1822
- fiatCurrencyId: z.ZodString;
1823
- price: z.ZodObject<{
1824
- value: z.ZodBigInt;
1825
- decimals: z.ZodNumber;
1826
- }, "strip", z.ZodTypeAny, {
1827
- value: bigint;
1828
- decimals: number;
1829
- }, {
1830
- value: bigint;
1831
- decimals: number;
1832
- }>;
1833
- timestamp: z.ZodNumber;
1834
- }, "strip", z.ZodTypeAny, {
1835
- cryptoCurrencyId: string;
1836
- fiatCurrencyId: string;
1837
- price: {
1838
- value: bigint;
1839
- decimals: number;
1840
- };
1841
- timestamp: number;
1842
- }, {
1843
- cryptoCurrencyId: string;
1844
- fiatCurrencyId: string;
1845
- price: {
1846
- value: bigint;
1847
- decimals: number;
1848
- };
1849
- timestamp: number;
1850
- }>>;
1851
- from: z.ZodOptional<z.ZodString>;
1852
- to: z.ZodOptional<z.ZodString>;
1853
- amount: z.ZodObject<{
1854
- value: z.ZodBigInt;
1855
- decimals: z.ZodNumber;
1856
- }, "strip", z.ZodTypeAny, {
1857
- value: bigint;
1858
- decimals: number;
1859
- }, {
1860
- value: bigint;
1861
- decimals: number;
1862
- }>;
1863
- direction: z.ZodLiteral<"out">;
1864
- asset: z.ZodEffects<z.ZodObject<{
1865
- type: z.ZodLiteral<"CryptoCurrency">;
1866
- id: z.ZodString;
1867
- name: z.ZodString;
1868
- symbol: z.ZodString;
1869
- icon: z.ZodOptional<z.ZodString>;
1870
- market: z.ZodEffects<z.ZodObject<{
1871
- coingeckoId: z.ZodOptional<z.ZodString>;
1872
- marketCapUsd: z.ZodOptional<z.ZodObject<{
1873
- value: z.ZodBigInt;
1874
- decimals: z.ZodNumber;
1875
- }, "strip", z.ZodTypeAny, {
1876
- value: bigint;
1877
- decimals: number;
1878
- }, {
1879
- value: bigint;
1880
- decimals: number;
1881
- }>>;
1882
- }, "strip", z.ZodTypeAny, {
1883
- coingeckoId?: string | undefined;
1884
- marketCapUsd?: {
1885
- value: bigint;
1886
- decimals: number;
1887
- } | undefined;
1888
- }, {
1889
- coingeckoId?: string | undefined;
1890
- marketCapUsd?: {
1891
- value: bigint;
1892
- decimals: number;
1893
- } | undefined;
1894
- }>, {
1895
- coingeckoId: string | undefined;
1896
- marketCapUsd: {
1897
- value: bigint;
1898
- decimals: number;
1899
- } | undefined;
1900
- }, {
1901
- coingeckoId?: string | undefined;
1902
- marketCapUsd?: {
1903
- value: bigint;
1904
- decimals: number;
1905
- } | undefined;
1906
- }>;
1907
- updatedAt: z.ZodNumber;
1908
- }, "strip", z.ZodTypeAny, {
1909
- symbol: string;
1910
- type: "CryptoCurrency";
1911
- id: string;
1912
- name: string;
1913
- market: {
1914
- coingeckoId: string | undefined;
1915
- marketCapUsd: {
1916
- value: bigint;
1917
- decimals: number;
1918
- } | undefined;
1919
- };
1920
- updatedAt: number;
1921
- icon?: string | undefined;
1922
- }, {
1923
- symbol: string;
1924
- type: "CryptoCurrency";
1925
- id: string;
1926
- name: string;
1927
- market: {
1928
- coingeckoId?: string | undefined;
1929
- marketCapUsd?: {
1930
- value: bigint;
1931
- decimals: number;
1932
- } | undefined;
1933
- };
1934
- updatedAt: number;
1935
- icon?: string | undefined;
1936
- }>, {
1937
- icon: string | undefined;
1938
- symbol: string;
1939
- type: "CryptoCurrency";
1940
- id: string;
1941
- name: string;
1942
- market: {
1943
- coingeckoId: string | undefined;
1944
- marketCapUsd: {
1945
- value: bigint;
1946
- decimals: number;
1947
- } | undefined;
1948
- };
1949
- updatedAt: number;
1950
- }, {
1951
- symbol: string;
1952
- type: "CryptoCurrency";
1953
- id: string;
1954
- name: string;
1955
- market: {
1956
- coingeckoId?: string | undefined;
1957
- marketCapUsd?: {
1958
- value: bigint;
1959
- decimals: number;
1960
- } | undefined;
1961
- };
1962
- updatedAt: number;
1963
- icon?: string | undefined;
1964
- }>;
1965
- }, "strip", z.ZodTypeAny, {
1966
- asset: {
1967
- icon: string | undefined;
1968
- symbol: string;
1969
- type: "CryptoCurrency";
1970
- id: string;
1971
- name: string;
1972
- market: {
1973
- coingeckoId: string | undefined;
1974
- marketCapUsd: {
1975
- value: bigint;
1976
- decimals: number;
1977
- } | undefined;
1978
- };
1979
- updatedAt: number;
1980
- };
1981
- amount: {
1982
- value: bigint;
1983
- decimals: number;
1984
- };
1985
- direction: "out";
1986
- price?: {
1987
- cryptoCurrencyId: string;
1988
- fiatCurrencyId: string;
1989
- price: {
1990
- value: bigint;
1991
- decimals: number;
1992
- };
1993
- timestamp: number;
1994
- } | undefined;
1995
- from?: string | undefined;
1996
- to?: string | undefined;
1997
- }, {
1998
- asset: {
1999
- symbol: string;
2000
- type: "CryptoCurrency";
2001
- id: string;
2002
- name: string;
2003
- market: {
2004
- coingeckoId?: string | undefined;
2005
- marketCapUsd?: {
2006
- value: bigint;
2007
- decimals: number;
2008
- } | undefined;
2009
- };
2010
- updatedAt: number;
2011
- icon?: string | undefined;
2012
- };
2013
- amount: {
2014
- value: bigint;
2015
- decimals: number;
2016
- };
2017
- direction: "out";
2018
- price?: {
2019
- cryptoCurrencyId: string;
2020
- fiatCurrencyId: string;
2021
- price: {
2022
- value: bigint;
2023
- decimals: number;
2024
- };
2025
- timestamp: number;
2026
- } | undefined;
2027
- from?: string | undefined;
2028
- to?: string | undefined;
2029
- }>, {
2030
- from: string | undefined;
2031
- to: string | undefined;
2032
- price: {
2033
- cryptoCurrencyId: string;
2034
- fiatCurrencyId: string;
2035
- price: {
2036
- value: bigint;
2037
- decimals: number;
2038
- };
2039
- timestamp: number;
2040
- } | undefined;
2041
- asset: {
2042
- icon: string | undefined;
2043
- symbol: string;
2044
- type: "CryptoCurrency";
2045
- id: string;
2046
- name: string;
2047
- market: {
2048
- coingeckoId: string | undefined;
2049
- marketCapUsd: {
2050
- value: bigint;
2051
- decimals: number;
2052
- } | undefined;
2053
- };
2054
- updatedAt: number;
2055
- };
2056
- amount: {
2057
- value: bigint;
2058
- decimals: number;
2059
- };
2060
- direction: "out";
2061
- }, {
2062
- asset: {
2063
- symbol: string;
2064
- type: "CryptoCurrency";
2065
- id: string;
2066
- name: string;
2067
- market: {
2068
- coingeckoId?: string | undefined;
2069
- marketCapUsd?: {
2070
- value: bigint;
2071
- decimals: number;
2072
- } | undefined;
2073
- };
2074
- updatedAt: number;
2075
- icon?: string | undefined;
2076
- };
2077
- amount: {
2078
- value: bigint;
2079
- decimals: number;
2080
- };
2081
- direction: "out";
2082
- price?: {
2083
- cryptoCurrencyId: string;
2084
- fiatCurrencyId: string;
2085
- price: {
2086
- value: bigint;
2087
- decimals: number;
2088
- };
2089
- timestamp: number;
2090
- } | undefined;
2091
- from?: string | undefined;
2092
- to?: string | undefined;
2093
- }>, z.ZodEffects<z.ZodObject<{
2094
- price: z.ZodOptional<z.ZodObject<{
2095
- cryptoCurrencyId: z.ZodString;
2096
- fiatCurrencyId: z.ZodString;
2097
- price: z.ZodObject<{
2098
- value: z.ZodBigInt;
2099
- decimals: z.ZodNumber;
2100
- }, "strip", z.ZodTypeAny, {
2101
- value: bigint;
2102
- decimals: number;
2103
- }, {
2104
- value: bigint;
2105
- decimals: number;
2106
- }>;
2107
- timestamp: z.ZodNumber;
2108
- }, "strip", z.ZodTypeAny, {
2109
- cryptoCurrencyId: string;
2110
- fiatCurrencyId: string;
2111
- price: {
2112
- value: bigint;
2113
- decimals: number;
2114
- };
2115
- timestamp: number;
2116
- }, {
2117
- cryptoCurrencyId: string;
2118
- fiatCurrencyId: string;
2119
- price: {
2120
- value: bigint;
2121
- decimals: number;
2122
- };
2123
- timestamp: number;
2124
- }>>;
2125
- from: z.ZodOptional<z.ZodString>;
2126
- to: z.ZodOptional<z.ZodString>;
2127
- amount: z.ZodObject<{
2128
- value: z.ZodBigInt;
2129
- decimals: z.ZodNumber;
2130
- }, "strip", z.ZodTypeAny, {
2131
- value: bigint;
2132
- decimals: number;
2133
- }, {
2134
- value: bigint;
2135
- decimals: number;
2136
- }>;
2137
- direction: z.ZodLiteral<"out">;
2138
- asset: z.ZodObject<{
2139
- type: z.ZodLiteral<"Nft">;
2140
- id: z.ZodString;
2141
- }, "strip", z.ZodTypeAny, {
2142
- type: "Nft";
2143
- id: string;
2144
- }, {
2145
- type: "Nft";
2146
- id: string;
2147
- }>;
2148
- }, "strip", z.ZodTypeAny, {
2149
- asset: {
2150
- type: "Nft";
2151
- id: string;
2152
- };
2153
- amount: {
2154
- value: bigint;
2155
- decimals: number;
2156
- };
2157
- direction: "out";
2158
- price?: {
2159
- cryptoCurrencyId: string;
2160
- fiatCurrencyId: string;
2161
- price: {
2162
- value: bigint;
2163
- decimals: number;
2164
- };
2165
- timestamp: number;
2166
- } | undefined;
2167
- from?: string | undefined;
2168
- to?: string | undefined;
2169
- }, {
2170
- asset: {
2171
- type: "Nft";
2172
- id: string;
2173
- };
2174
- amount: {
2175
- value: bigint;
2176
- decimals: number;
2177
- };
2178
- direction: "out";
2179
- price?: {
2180
- cryptoCurrencyId: string;
2181
- fiatCurrencyId: string;
2182
- price: {
2183
- value: bigint;
2184
- decimals: number;
2185
- };
2186
- timestamp: number;
2187
- } | undefined;
2188
- from?: string | undefined;
2189
- to?: string | undefined;
2190
- }>, {
2191
- from: string | undefined;
2192
- to: string | undefined;
2193
- price: {
2194
- cryptoCurrencyId: string;
2195
- fiatCurrencyId: string;
2196
- price: {
2197
- value: bigint;
2198
- decimals: number;
2199
- };
2200
- timestamp: number;
2201
- } | undefined;
2202
- asset: {
2203
- type: "Nft";
2204
- id: string;
2205
- };
2206
- amount: {
2207
- value: bigint;
2208
- decimals: number;
2209
- };
2210
- direction: "out";
2211
- }, {
2212
- asset: {
2213
- type: "Nft";
2214
- id: string;
2215
- };
2216
- amount: {
2217
- value: bigint;
2218
- decimals: number;
2219
- };
2220
- direction: "out";
2221
- price?: {
2222
- cryptoCurrencyId: string;
2223
- fiatCurrencyId: string;
2224
- price: {
2225
- value: bigint;
2226
- decimals: number;
2227
- };
2228
- timestamp: number;
2229
- } | undefined;
2230
- from?: string | undefined;
2231
- to?: string | undefined;
2232
- }>]>, "many">;
2233
- }, "strip", z.ZodTypeAny, {
2234
- type: "LoanAccountAction";
2235
- timestamp: number;
2236
- order: number;
2237
- action: "borrow-with-debt";
2238
- source: string;
2239
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
2240
- transfers: ({
2241
- from: string | undefined;
2242
- to: string | undefined;
2243
- price: {
2244
- cryptoCurrencyId: string;
2245
- fiatCurrencyId: string;
2246
- price: {
2247
- value: bigint;
2248
- decimals: number;
2249
- };
2250
- timestamp: number;
2251
- } | undefined;
2252
- asset: {
2253
- icon: string | undefined;
2254
- symbol: string;
2255
- type: "CryptoCurrency";
2256
- id: string;
2257
- name: string;
2258
- market: {
2259
- coingeckoId: string | undefined;
2260
- marketCapUsd: {
2261
- value: bigint;
2262
- decimals: number;
2263
- } | undefined;
2264
- };
2265
- updatedAt: number;
2266
- };
2267
- amount: {
2268
- value: bigint;
2269
- decimals: number;
2270
- };
2271
- direction: "in";
2272
- } | {
2273
- from: string | undefined;
2274
- to: string | undefined;
2275
- price: {
2276
- cryptoCurrencyId: string;
2277
- fiatCurrencyId: string;
2278
- price: {
2279
- value: bigint;
2280
- decimals: number;
2281
- };
2282
- timestamp: number;
2283
- } | undefined;
2284
- asset: {
2285
- type: "Nft";
2286
- id: string;
2287
- };
2288
- amount: {
2289
- value: bigint;
2290
- decimals: number;
2291
- };
2292
- direction: "in";
2293
- } | {
2294
- from: string | undefined;
2295
- to: string | undefined;
2296
- price: {
2297
- cryptoCurrencyId: string;
2298
- fiatCurrencyId: string;
2299
- price: {
2300
- value: bigint;
2301
- decimals: number;
2302
- };
2303
- timestamp: number;
2304
- } | undefined;
2305
- asset: {
2306
- icon: string | undefined;
2307
- symbol: string;
2308
- type: "CryptoCurrency";
2309
- id: string;
2310
- name: string;
2311
- market: {
2312
- coingeckoId: string | undefined;
2313
- marketCapUsd: {
2314
- value: bigint;
2315
- decimals: number;
2316
- } | undefined;
2317
- };
2318
- updatedAt: number;
2319
- };
2320
- amount: {
2321
- value: bigint;
2322
- decimals: number;
2323
- };
2324
- direction: "out";
2325
- } | {
2326
- from: string | undefined;
2327
- to: string | undefined;
2328
- price: {
2329
- cryptoCurrencyId: string;
2330
- fiatCurrencyId: string;
2331
- price: {
2332
- value: bigint;
2333
- decimals: number;
2334
- };
2335
- timestamp: number;
2336
- } | undefined;
2337
- asset: {
2338
- type: "Nft";
2339
- id: string;
2340
- };
2341
- amount: {
2342
- value: bigint;
2343
- decimals: number;
2344
- };
2345
- direction: "out";
2346
- })[];
2347
- loanId: string;
2348
- comment?: string | undefined;
2349
- app?: {
2350
- description: string | undefined;
2351
- website: string | undefined;
2352
- icon: string | undefined;
2353
- id: string;
2354
- name: string;
2355
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
2356
- } | undefined;
2357
- }, {
2358
- type: "LoanAccountAction";
2359
- timestamp: number;
2360
- order: number;
2361
- action: "borrow-with-debt";
2362
- source: string;
2363
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
2364
- transfers: ({
2365
- asset: {
2366
- symbol: string;
2367
- type: "CryptoCurrency";
2368
- id: string;
2369
- name: string;
2370
- market: {
2371
- coingeckoId?: string | undefined;
2372
- marketCapUsd?: {
2373
- value: bigint;
2374
- decimals: number;
2375
- } | undefined;
2376
- };
2377
- updatedAt: number;
2378
- icon?: string | undefined;
2379
- };
2380
- amount: {
2381
- value: bigint;
2382
- decimals: number;
2383
- };
2384
- direction: "in";
2385
- price?: {
2386
- cryptoCurrencyId: string;
2387
- fiatCurrencyId: string;
2388
- price: {
2389
- value: bigint;
2390
- decimals: number;
2391
- };
2392
- timestamp: number;
2393
- } | undefined;
2394
- from?: string | undefined;
2395
- to?: string | undefined;
2396
- } | {
2397
- asset: {
2398
- type: "Nft";
2399
- id: string;
2400
- };
2401
- amount: {
2402
- value: bigint;
2403
- decimals: number;
2404
- };
2405
- direction: "in";
2406
- price?: {
2407
- cryptoCurrencyId: string;
2408
- fiatCurrencyId: string;
2409
- price: {
2410
- value: bigint;
2411
- decimals: number;
2412
- };
2413
- timestamp: number;
2414
- } | undefined;
2415
- from?: string | undefined;
2416
- to?: string | undefined;
2417
- } | {
2418
- asset: {
2419
- symbol: string;
2420
- type: "CryptoCurrency";
2421
- id: string;
2422
- name: string;
2423
- market: {
2424
- coingeckoId?: string | undefined;
2425
- marketCapUsd?: {
2426
- value: bigint;
2427
- decimals: number;
2428
- } | undefined;
2429
- };
2430
- updatedAt: number;
2431
- icon?: string | undefined;
2432
- };
2433
- amount: {
2434
- value: bigint;
2435
- decimals: number;
2436
- };
2437
- direction: "out";
2438
- price?: {
2439
- cryptoCurrencyId: string;
2440
- fiatCurrencyId: string;
2441
- price: {
2442
- value: bigint;
2443
- decimals: number;
2444
- };
2445
- timestamp: number;
2446
- } | undefined;
2447
- from?: string | undefined;
2448
- to?: string | undefined;
2449
- } | {
2450
- asset: {
2451
- type: "Nft";
2452
- id: string;
2453
- };
2454
- amount: {
2455
- value: bigint;
2456
- decimals: number;
2457
- };
2458
- direction: "out";
2459
- price?: {
2460
- cryptoCurrencyId: string;
2461
- fiatCurrencyId: string;
2462
- price: {
2463
- value: bigint;
2464
- decimals: number;
2465
- };
2466
- timestamp: number;
2467
- } | undefined;
2468
- from?: string | undefined;
2469
- to?: string | undefined;
2470
- })[];
2471
- loanId: string;
2472
- comment?: string | undefined;
2473
- app?: {
2474
- id: string;
2475
- name: string;
2476
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
2477
- description?: string | undefined;
2478
- website?: string | undefined;
2479
- icon?: string | undefined;
2480
- } | undefined;
2481
- }>, {
2482
- comment: string | undefined;
2483
- app: {
2484
- description: string | undefined;
2485
- website: string | undefined;
2486
- icon: string | undefined;
2487
- id: string;
2488
- name: string;
2489
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
2490
- } | undefined;
2491
- type: "LoanAccountAction";
2492
- timestamp: number;
2493
- order: number;
2494
- action: "borrow-with-debt";
2495
- source: string;
2496
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
2497
- transfers: ({
2498
- from: string | undefined;
2499
- to: string | undefined;
2500
- price: {
2501
- cryptoCurrencyId: string;
2502
- fiatCurrencyId: string;
2503
- price: {
2504
- value: bigint;
2505
- decimals: number;
2506
- };
2507
- timestamp: number;
2508
- } | undefined;
2509
- asset: {
2510
- icon: string | undefined;
2511
- symbol: string;
2512
- type: "CryptoCurrency";
2513
- id: string;
2514
- name: string;
2515
- market: {
2516
- coingeckoId: string | undefined;
2517
- marketCapUsd: {
2518
- value: bigint;
2519
- decimals: number;
2520
- } | undefined;
2521
- };
2522
- updatedAt: number;
2523
- };
2524
- amount: {
2525
- value: bigint;
2526
- decimals: number;
2527
- };
2528
- direction: "in";
2529
- } | {
2530
- from: string | undefined;
2531
- to: string | undefined;
2532
- price: {
2533
- cryptoCurrencyId: string;
2534
- fiatCurrencyId: string;
2535
- price: {
2536
- value: bigint;
2537
- decimals: number;
2538
- };
2539
- timestamp: number;
2540
- } | undefined;
2541
- asset: {
2542
- type: "Nft";
2543
- id: string;
2544
- };
2545
- amount: {
2546
- value: bigint;
2547
- decimals: number;
2548
- };
2549
- direction: "in";
2550
- } | {
2551
- from: string | undefined;
2552
- to: string | undefined;
2553
- price: {
2554
- cryptoCurrencyId: string;
2555
- fiatCurrencyId: string;
2556
- price: {
2557
- value: bigint;
2558
- decimals: number;
2559
- };
2560
- timestamp: number;
2561
- } | undefined;
2562
- asset: {
2563
- icon: string | undefined;
2564
- symbol: string;
2565
- type: "CryptoCurrency";
2566
- id: string;
2567
- name: string;
2568
- market: {
2569
- coingeckoId: string | undefined;
2570
- marketCapUsd: {
2571
- value: bigint;
2572
- decimals: number;
2573
- } | undefined;
2574
- };
2575
- updatedAt: number;
2576
- };
2577
- amount: {
2578
- value: bigint;
2579
- decimals: number;
2580
- };
2581
- direction: "out";
2582
- } | {
2583
- from: string | undefined;
2584
- to: string | undefined;
2585
- price: {
2586
- cryptoCurrencyId: string;
2587
- fiatCurrencyId: string;
2588
- price: {
2589
- value: bigint;
2590
- decimals: number;
2591
- };
2592
- timestamp: number;
2593
- } | undefined;
2594
- asset: {
2595
- type: "Nft";
2596
- id: string;
2597
- };
2598
- amount: {
2599
- value: bigint;
2600
- decimals: number;
2601
- };
2602
- direction: "out";
2603
- })[];
2604
- loanId: string;
2605
- }, {
2606
- type: "LoanAccountAction";
2607
- timestamp: number;
2608
- order: number;
2609
- action: "borrow-with-debt";
2610
- source: string;
2611
- evidence: "none" | "contract" | "system-rule" | "user-rule" | "manual-check";
2612
- transfers: ({
2613
- asset: {
2614
- symbol: string;
2615
- type: "CryptoCurrency";
2616
- id: string;
2617
- name: string;
2618
- market: {
2619
- coingeckoId?: string | undefined;
2620
- marketCapUsd?: {
2621
- value: bigint;
2622
- decimals: number;
2623
- } | undefined;
2624
- };
2625
- updatedAt: number;
2626
- icon?: string | undefined;
2627
- };
2628
- amount: {
2629
- value: bigint;
2630
- decimals: number;
2631
- };
2632
- direction: "in";
2633
- price?: {
2634
- cryptoCurrencyId: string;
2635
- fiatCurrencyId: string;
2636
- price: {
2637
- value: bigint;
2638
- decimals: number;
2639
- };
2640
- timestamp: number;
2641
- } | undefined;
2642
- from?: string | undefined;
2643
- to?: string | undefined;
2644
- } | {
2645
- asset: {
2646
- type: "Nft";
2647
- id: string;
2648
- };
2649
- amount: {
2650
- value: bigint;
2651
- decimals: number;
2652
- };
2653
- direction: "in";
2654
- price?: {
2655
- cryptoCurrencyId: string;
2656
- fiatCurrencyId: string;
2657
- price: {
2658
- value: bigint;
2659
- decimals: number;
2660
- };
2661
- timestamp: number;
2662
- } | undefined;
2663
- from?: string | undefined;
2664
- to?: string | undefined;
2665
- } | {
2666
- asset: {
2667
- symbol: string;
2668
- type: "CryptoCurrency";
2669
- id: string;
2670
- name: string;
2671
- market: {
2672
- coingeckoId?: string | undefined;
2673
- marketCapUsd?: {
2674
- value: bigint;
2675
- decimals: number;
2676
- } | undefined;
2677
- };
2678
- updatedAt: number;
2679
- icon?: string | undefined;
2680
- };
2681
- amount: {
2682
- value: bigint;
2683
- decimals: number;
2684
- };
2685
- direction: "out";
2686
- price?: {
2687
- cryptoCurrencyId: string;
2688
- fiatCurrencyId: string;
2689
- price: {
2690
- value: bigint;
2691
- decimals: number;
2692
- };
2693
- timestamp: number;
2694
- } | undefined;
2695
- from?: string | undefined;
2696
- to?: string | undefined;
2697
- } | {
2698
- asset: {
2699
- type: "Nft";
2700
- id: string;
2701
- };
2702
- amount: {
2703
- value: bigint;
2704
- decimals: number;
2705
- };
2706
- direction: "out";
2707
- price?: {
2708
- cryptoCurrencyId: string;
2709
- fiatCurrencyId: string;
2710
- price: {
2711
- value: bigint;
2712
- decimals: number;
2713
- };
2714
- timestamp: number;
2715
- } | undefined;
2716
- from?: string | undefined;
2717
- to?: string | undefined;
2718
- })[];
2719
- loanId: string;
2720
- comment?: string | undefined;
2721
- app?: {
2722
- id: string;
2723
- name: string;
2724
- categories: ("bridge" | "cex" | "cross-chain" | "dex" | "gaming" | "lending" | "nft-marketplace" | "other")[];
2725
- description?: string | undefined;
2726
- website?: string | undefined;
2727
- icon?: string | undefined;
2728
- } | undefined;
2729
- }>;
2730
- //# sourceMappingURL=borrowWithDebt.d.ts.map