@0xsquid/ui 3.0.2 → 3.2.0

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 (121) hide show
  1. package/dist/cjs/index.js +18432 -718
  2. package/dist/cjs/types/components/badges/Drip.d.ts +13 -0
  3. package/dist/cjs/types/components/badges/index.d.ts +1 -0
  4. package/dist/cjs/types/components/buttons/CopyButton.d.ts +7 -0
  5. package/dist/cjs/types/components/buttons/LinkButton.d.ts +5 -0
  6. package/dist/cjs/types/components/buttons/index.d.ts +0 -1
  7. package/dist/cjs/types/components/feedback/LoadingSkeleton.d.ts +2 -1
  8. package/dist/cjs/types/components/icons/Arrow.d.ts +8 -0
  9. package/dist/cjs/types/components/icons/Generic.d.ts +4 -0
  10. package/dist/cjs/types/components/icons/ThumbsUp.d.ts +2 -1
  11. package/dist/cjs/types/components/icons/Timeline.d.ts +1 -1
  12. package/dist/cjs/types/components/layout/AnimationWrapper.d.ts +7 -3
  13. package/dist/cjs/types/components/layout/Card.d.ts +8 -0
  14. package/dist/cjs/types/components/layout/Collapse.d.ts +3 -1
  15. package/dist/cjs/types/components/layout/HashLink.d.ts +2 -2
  16. package/dist/cjs/types/components/layout/PipeSeparator.d.ts +6 -2
  17. package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -6
  18. package/dist/cjs/types/components/layout/TransactionProperties/TransactionProperties.d.ts +4 -8
  19. package/dist/cjs/types/components/layout/index.d.ts +1 -11
  20. package/dist/cjs/types/components/lists/TransactionAction/FeesAction.d.ts +4 -3
  21. package/dist/cjs/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
  22. package/dist/cjs/types/components/lists/TransactionAction/TransactionAction.d.ts +1 -1
  23. package/dist/cjs/types/components/lists/TransactionItem.d.ts +35 -20
  24. package/dist/cjs/types/components/lists/TransactionItemSkeleton.d.ts +1 -0
  25. package/dist/cjs/types/components/lists/index.d.ts +1 -0
  26. package/dist/cjs/types/components/views/SwapProgressView.d.ts +2 -1
  27. package/dist/cjs/types/components/views/TransactionNotFoundView.d.ts +1 -0
  28. package/dist/cjs/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +23 -3
  29. package/dist/cjs/types/components/views/TransactionView/BridgeTransactionView.d.ts +20 -5
  30. package/dist/cjs/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +9 -11
  31. package/dist/cjs/types/components/views/TransactionView/InteractionTransactionView.d.ts +10 -5
  32. package/dist/cjs/types/components/views/TransactionView/SwapTransactionView.d.ts +10 -3
  33. package/dist/cjs/types/components/views/TransactionView/TransactionView.d.ts +11 -6
  34. package/dist/cjs/types/components/views/index.d.ts +1 -0
  35. package/dist/cjs/types/core/utils.d.ts +1 -0
  36. package/dist/cjs/types/stories/badges/Drip.stories.d.ts +7 -0
  37. package/dist/cjs/types/stories/data/actions.d.ts +5 -0
  38. package/dist/cjs/types/stories/data/network.d.ts +2 -0
  39. package/dist/cjs/types/stories/layout/Card.stories.d.ts +6 -0
  40. package/dist/cjs/types/stories/lists/TransactionItem.stories.d.ts +182 -12
  41. package/dist/cjs/types/stories/lists/TransactionItemSkeleton.stories.d.ts +6 -0
  42. package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  43. package/dist/cjs/types/stories/views/TransactionNotFoundView.stories.d.ts +6 -0
  44. package/dist/cjs/types/stories/views/TransactionView.stories.d.ts +640 -7
  45. package/dist/cjs/types/types/components.d.ts +1 -0
  46. package/dist/esm/index.js +18181 -463
  47. package/dist/esm/types/components/badges/Drip.d.ts +13 -0
  48. package/dist/esm/types/components/badges/index.d.ts +1 -0
  49. package/dist/esm/types/components/buttons/CopyButton.d.ts +7 -0
  50. package/dist/esm/types/components/buttons/LinkButton.d.ts +5 -0
  51. package/dist/esm/types/components/buttons/index.d.ts +0 -1
  52. package/dist/esm/types/components/feedback/LoadingSkeleton.d.ts +2 -1
  53. package/dist/esm/types/components/icons/Arrow.d.ts +8 -0
  54. package/dist/esm/types/components/icons/Generic.d.ts +4 -0
  55. package/dist/esm/types/components/icons/ThumbsUp.d.ts +2 -1
  56. package/dist/esm/types/components/icons/Timeline.d.ts +1 -1
  57. package/dist/esm/types/components/layout/AnimationWrapper.d.ts +7 -3
  58. package/dist/esm/types/components/layout/Card.d.ts +8 -0
  59. package/dist/esm/types/components/layout/Collapse.d.ts +3 -1
  60. package/dist/esm/types/components/layout/HashLink.d.ts +2 -2
  61. package/dist/esm/types/components/layout/PipeSeparator.d.ts +6 -2
  62. package/dist/esm/types/components/layout/TransactionHeader/TransactionHeaderLayout.d.ts +10 -6
  63. package/dist/esm/types/components/layout/TransactionProperties/TransactionProperties.d.ts +4 -8
  64. package/dist/esm/types/components/layout/index.d.ts +1 -11
  65. package/dist/esm/types/components/lists/TransactionAction/FeesAction.d.ts +4 -3
  66. package/dist/esm/types/components/lists/TransactionAction/SuccessAction.d.ts +1 -1
  67. package/dist/esm/types/components/lists/TransactionAction/TransactionAction.d.ts +1 -1
  68. package/dist/esm/types/components/lists/TransactionItem.d.ts +35 -20
  69. package/dist/esm/types/components/lists/TransactionItemSkeleton.d.ts +1 -0
  70. package/dist/esm/types/components/lists/index.d.ts +1 -0
  71. package/dist/esm/types/components/views/SwapProgressView.d.ts +2 -1
  72. package/dist/esm/types/components/views/TransactionNotFoundView.d.ts +1 -0
  73. package/dist/esm/types/components/views/TransactionView/BaseTransactionViewProps.d.ts +23 -3
  74. package/dist/esm/types/components/views/TransactionView/BridgeTransactionView.d.ts +20 -5
  75. package/dist/esm/types/components/views/TransactionView/BuyNFTTransactionView.d.ts +9 -11
  76. package/dist/esm/types/components/views/TransactionView/InteractionTransactionView.d.ts +10 -5
  77. package/dist/esm/types/components/views/TransactionView/SwapTransactionView.d.ts +10 -3
  78. package/dist/esm/types/components/views/TransactionView/TransactionView.d.ts +11 -6
  79. package/dist/esm/types/components/views/index.d.ts +1 -0
  80. package/dist/esm/types/core/utils.d.ts +1 -0
  81. package/dist/esm/types/stories/badges/Drip.stories.d.ts +7 -0
  82. package/dist/esm/types/stories/data/actions.d.ts +5 -0
  83. package/dist/esm/types/stories/data/network.d.ts +2 -0
  84. package/dist/esm/types/stories/layout/Card.stories.d.ts +6 -0
  85. package/dist/esm/types/stories/lists/TransactionItem.stories.d.ts +182 -12
  86. package/dist/esm/types/stories/lists/TransactionItemSkeleton.stories.d.ts +6 -0
  87. package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  88. package/dist/esm/types/stories/views/TransactionNotFoundView.stories.d.ts +6 -0
  89. package/dist/esm/types/stories/views/TransactionView.stories.d.ts +640 -7
  90. package/dist/esm/types/types/components.d.ts +1 -0
  91. package/dist/index.css +1 -1
  92. package/dist/index.d.ts +179 -248
  93. package/package.json +3 -3
  94. package/dist/cjs/types/components/layout/TransactionHeader/BridgeHeader.d.ts +0 -11
  95. package/dist/cjs/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +0 -10
  96. package/dist/cjs/types/components/layout/TransactionHeader/InteractionHeader.d.ts +0 -11
  97. package/dist/cjs/types/components/layout/TransactionHeader/ProfileHeader.d.ts +0 -11
  98. package/dist/cjs/types/components/layout/TransactionHeader/SwapHeader.d.ts +0 -16
  99. package/dist/cjs/types/components/layout/TransactionHeader/TransactionHeader.d.ts +0 -23
  100. package/dist/cjs/types/components/layout/TransactionHeader/index.d.ts +0 -1
  101. package/dist/cjs/types/components/layout/TransactionProperties/BridgeProperties.d.ts +0 -21
  102. package/dist/cjs/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +0 -33
  103. package/dist/cjs/types/components/layout/TransactionProperties/InteractionProperties.d.ts +0 -11
  104. package/dist/cjs/types/components/layout/TransactionProperties/SwapProperties.d.ts +0 -28
  105. package/dist/cjs/types/components/layout/TransactionProperties/index.d.ts +0 -6
  106. package/dist/cjs/types/stories/layout/TransactionHeader.stories.d.ts +0 -10
  107. package/dist/cjs/types/stories/layout/TransactionProperties.stories.d.ts +0 -9
  108. package/dist/esm/types/components/layout/TransactionHeader/BridgeHeader.d.ts +0 -11
  109. package/dist/esm/types/components/layout/TransactionHeader/BuyNFTHeader.d.ts +0 -10
  110. package/dist/esm/types/components/layout/TransactionHeader/InteractionHeader.d.ts +0 -11
  111. package/dist/esm/types/components/layout/TransactionHeader/ProfileHeader.d.ts +0 -11
  112. package/dist/esm/types/components/layout/TransactionHeader/SwapHeader.d.ts +0 -16
  113. package/dist/esm/types/components/layout/TransactionHeader/TransactionHeader.d.ts +0 -23
  114. package/dist/esm/types/components/layout/TransactionHeader/index.d.ts +0 -1
  115. package/dist/esm/types/components/layout/TransactionProperties/BridgeProperties.d.ts +0 -21
  116. package/dist/esm/types/components/layout/TransactionProperties/BuyNFTProperties.d.ts +0 -33
  117. package/dist/esm/types/components/layout/TransactionProperties/InteractionProperties.d.ts +0 -11
  118. package/dist/esm/types/components/layout/TransactionProperties/SwapProperties.d.ts +0 -28
  119. package/dist/esm/types/components/layout/TransactionProperties/index.d.ts +0 -6
  120. package/dist/esm/types/stories/layout/TransactionHeader.stories.d.ts +0 -10
  121. package/dist/esm/types/stories/layout/TransactionProperties.stories.d.ts +0 -9
@@ -1,9 +1,642 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { TransactionView, TransactionViewProps } from "../../components/views/TransactionView";
1
+ import type { Meta } from "@storybook/react";
2
+ import { TransactionView } from "../../components/views/TransactionView";
3
3
  declare const meta: Meta<typeof TransactionView>;
4
4
  export default meta;
5
- type Story = StoryObj<TransactionViewProps>;
6
- export declare const Swap: Story;
7
- export declare const BuyNFT: Story;
8
- export declare const Interaction: Story;
9
- export declare const Bridge: Story;
5
+ export declare const Swap: {
6
+ args: {
7
+ type: string;
8
+ data: {
9
+ title: string;
10
+ hash: string;
11
+ status: string;
12
+ url: string;
13
+ fromAmount: string;
14
+ toAmount: string;
15
+ fromToken: {
16
+ logoURI: string;
17
+ bgColor: string;
18
+ symbol: string;
19
+ };
20
+ toToken: {
21
+ logoURI: string;
22
+ bgColor: string;
23
+ symbol: string;
24
+ };
25
+ fromChain: {
26
+ logoURI: string;
27
+ name: string;
28
+ bgColor: string;
29
+ };
30
+ toChain: {
31
+ logoURI: string;
32
+ name: string;
33
+ bgColor: string;
34
+ };
35
+ fromAddress: string;
36
+ toAddress: string;
37
+ fromLink: string;
38
+ toLink: string;
39
+ exchangeRate: string;
40
+ timeToComplete: string;
41
+ actions: ({
42
+ type: "success";
43
+ props: {
44
+ status: "success";
45
+ timestamp: number;
46
+ hash: string;
47
+ url: string;
48
+ };
49
+ } | {
50
+ type: "receive_tokens";
51
+ props: {
52
+ status: "executed";
53
+ amount: string;
54
+ token: {
55
+ logoURI: string;
56
+ bgColor: string;
57
+ symbol: string;
58
+ };
59
+ chain: {
60
+ logoURI: string;
61
+ name: string;
62
+ bgColor: string;
63
+ };
64
+ wallet: {
65
+ imageURI: string;
66
+ address: string;
67
+ url: string;
68
+ };
69
+ timestamp: number;
70
+ hash: string;
71
+ url: string;
72
+ };
73
+ } | {
74
+ type: "send_tokens";
75
+ props: {
76
+ status: "executed";
77
+ amount: string;
78
+ token: {
79
+ logoURI: string;
80
+ bgColor: string;
81
+ symbol: string;
82
+ };
83
+ chain: {
84
+ logoURI: string;
85
+ name: string;
86
+ bgColor: string;
87
+ };
88
+ wallet: {
89
+ imageURI: string;
90
+ address: string;
91
+ url: string;
92
+ };
93
+ timestamp: number;
94
+ hash: string;
95
+ url: string;
96
+ };
97
+ } | {
98
+ type: "swap";
99
+ props: {
100
+ status: "executed";
101
+ fromToken: {
102
+ logoURI: string;
103
+ bgColor: string;
104
+ symbol: string;
105
+ };
106
+ toToken: {
107
+ logoURI: string;
108
+ bgColor: string;
109
+ symbol: string;
110
+ };
111
+ provider: {
112
+ logoURI: string;
113
+ name: string;
114
+ };
115
+ timestamp: number;
116
+ hash: string;
117
+ url: string;
118
+ };
119
+ } | {
120
+ type: "bridge";
121
+ props: {
122
+ status: "executed";
123
+ token: {
124
+ logoURI: string;
125
+ bgColor: string;
126
+ symbol: string;
127
+ };
128
+ chain: {
129
+ logoURI: string;
130
+ name: string;
131
+ bgColor: string;
132
+ };
133
+ provider: {
134
+ logoURI: string;
135
+ name: string;
136
+ };
137
+ timestamp: number;
138
+ hash: string;
139
+ url: string;
140
+ };
141
+ } | {
142
+ type: "start";
143
+ props: {
144
+ status: "executed";
145
+ timestamp: number;
146
+ hash: string;
147
+ url: string;
148
+ };
149
+ })[];
150
+ fees: {
151
+ status: "executed";
152
+ total: {
153
+ label: string;
154
+ usd: number;
155
+ amount: number;
156
+ symbol: string;
157
+ };
158
+ lines: {
159
+ label: string;
160
+ usd: number;
161
+ amount: number;
162
+ symbol: string;
163
+ }[];
164
+ };
165
+ };
166
+ };
167
+ };
168
+ export declare const BuyNFT: {
169
+ args: {
170
+ type: string;
171
+ data: {
172
+ title: string;
173
+ hash: string;
174
+ status: string;
175
+ fromChain: {
176
+ logoURI: string;
177
+ name: string;
178
+ bgColor: string;
179
+ };
180
+ toChain: {
181
+ logoURI: string;
182
+ name: string;
183
+ bgColor: string;
184
+ };
185
+ fromAmount: string;
186
+ fromToken: {
187
+ logoURI: string;
188
+ bgColor: string;
189
+ symbol: string;
190
+ };
191
+ toAmount: string;
192
+ toToken: {
193
+ symbol: string;
194
+ };
195
+ timestamp: number;
196
+ token: {
197
+ logoURI: string;
198
+ bgColor: string;
199
+ symbol: string;
200
+ };
201
+ price: number;
202
+ nft: {
203
+ name: string;
204
+ imageURI: string;
205
+ collection: {
206
+ name: string;
207
+ imageURI: string;
208
+ };
209
+ tokenID: string;
210
+ nftType: string;
211
+ };
212
+ marketplace: {
213
+ name: string;
214
+ logoURI: string;
215
+ };
216
+ fromAddress: string;
217
+ toAddress: string;
218
+ timeToComplete: string;
219
+ actions: ({
220
+ type: "success";
221
+ props: {
222
+ status: "success";
223
+ timestamp: number;
224
+ hash: string;
225
+ url: string;
226
+ };
227
+ } | {
228
+ type: "receive_nft";
229
+ props: {
230
+ status: "executed";
231
+ nft: {
232
+ imageURI: string;
233
+ name: string;
234
+ };
235
+ chain: {
236
+ logoURI: string;
237
+ name: string;
238
+ bgColor: string;
239
+ };
240
+ wallet: {
241
+ imageURI: string;
242
+ address: string;
243
+ url: string;
244
+ };
245
+ timestamp: number;
246
+ hash: string;
247
+ url: string;
248
+ };
249
+ } | {
250
+ type: "send_tokens";
251
+ props: {
252
+ status: "executed";
253
+ amount: string;
254
+ token: {
255
+ logoURI: string;
256
+ bgColor: string;
257
+ symbol: string;
258
+ };
259
+ chain: {
260
+ logoURI: string;
261
+ name: string;
262
+ bgColor: string;
263
+ };
264
+ wallet: {
265
+ imageURI: string;
266
+ address: string;
267
+ url: string;
268
+ };
269
+ timestamp: number;
270
+ hash: string;
271
+ url: string;
272
+ };
273
+ } | {
274
+ type: "swap";
275
+ props: {
276
+ status: "executed";
277
+ fromToken: {
278
+ logoURI: string;
279
+ bgColor: string;
280
+ symbol: string;
281
+ };
282
+ toToken: {
283
+ logoURI: string;
284
+ bgColor: string;
285
+ symbol: string;
286
+ };
287
+ provider: {
288
+ logoURI: string;
289
+ name: string;
290
+ };
291
+ timestamp: number;
292
+ hash: string;
293
+ url: string;
294
+ };
295
+ } | {
296
+ type: "bridge";
297
+ props: {
298
+ status: "executed";
299
+ token: {
300
+ logoURI: string;
301
+ bgColor: string;
302
+ symbol: string;
303
+ };
304
+ chain: {
305
+ logoURI: string;
306
+ name: string;
307
+ bgColor: string;
308
+ };
309
+ provider: {
310
+ logoURI: string;
311
+ name: string;
312
+ };
313
+ timestamp: number;
314
+ hash: string;
315
+ url: string;
316
+ };
317
+ } | {
318
+ type: "start";
319
+ props: {
320
+ status: "executed";
321
+ timestamp: number;
322
+ hash: string;
323
+ url: string;
324
+ };
325
+ })[];
326
+ fees: {
327
+ status: "executed";
328
+ total: {
329
+ label: string;
330
+ usd: number;
331
+ amount: number;
332
+ symbol: string;
333
+ };
334
+ lines: {
335
+ label: string;
336
+ usd: number;
337
+ amount: number;
338
+ symbol: string;
339
+ }[];
340
+ };
341
+ };
342
+ };
343
+ };
344
+ export declare const Interaction: {
345
+ args: {
346
+ type: string;
347
+ data: {
348
+ title: string;
349
+ hash: string;
350
+ status: string;
351
+ url: string;
352
+ chain: {
353
+ logoURI: string;
354
+ name: string;
355
+ bgColor: string;
356
+ };
357
+ address: string;
358
+ timeToComplete: string;
359
+ actions: ({
360
+ type: "success";
361
+ props: {
362
+ status: "success";
363
+ timestamp: number;
364
+ hash: string;
365
+ url: string;
366
+ };
367
+ } | {
368
+ type: "receive_nft";
369
+ props: {
370
+ status: "executed";
371
+ nft: {
372
+ imageURI: string;
373
+ name: string;
374
+ };
375
+ chain: {
376
+ logoURI: string;
377
+ name: string;
378
+ bgColor: string;
379
+ };
380
+ wallet: {
381
+ imageURI: string;
382
+ address: string;
383
+ url: string;
384
+ };
385
+ timestamp: number;
386
+ hash: string;
387
+ url: string;
388
+ };
389
+ } | {
390
+ type: "send_tokens";
391
+ props: {
392
+ status: "executed";
393
+ amount: string;
394
+ token: {
395
+ logoURI: string;
396
+ bgColor: string;
397
+ symbol: string;
398
+ };
399
+ chain: {
400
+ logoURI: string;
401
+ name: string;
402
+ bgColor: string;
403
+ };
404
+ wallet: {
405
+ imageURI: string;
406
+ address: string;
407
+ url: string;
408
+ };
409
+ timestamp: number;
410
+ hash: string;
411
+ url: string;
412
+ };
413
+ } | {
414
+ type: "swap";
415
+ props: {
416
+ status: "executed";
417
+ fromToken: {
418
+ logoURI: string;
419
+ bgColor: string;
420
+ symbol: string;
421
+ };
422
+ toToken: {
423
+ logoURI: string;
424
+ bgColor: string;
425
+ symbol: string;
426
+ };
427
+ provider: {
428
+ logoURI: string;
429
+ name: string;
430
+ };
431
+ timestamp: number;
432
+ hash: string;
433
+ url: string;
434
+ };
435
+ } | {
436
+ type: "bridge";
437
+ props: {
438
+ status: "executed";
439
+ token: {
440
+ logoURI: string;
441
+ bgColor: string;
442
+ symbol: string;
443
+ };
444
+ chain: {
445
+ logoURI: string;
446
+ name: string;
447
+ bgColor: string;
448
+ };
449
+ provider: {
450
+ logoURI: string;
451
+ name: string;
452
+ };
453
+ timestamp: number;
454
+ hash: string;
455
+ url: string;
456
+ };
457
+ } | {
458
+ type: "start";
459
+ props: {
460
+ status: "executed";
461
+ timestamp: number;
462
+ hash: string;
463
+ url: string;
464
+ };
465
+ })[];
466
+ fees: {
467
+ status: "executed";
468
+ total: {
469
+ label: string;
470
+ usd: number;
471
+ amount: number;
472
+ symbol: string;
473
+ };
474
+ lines: {
475
+ label: string;
476
+ usd: number;
477
+ amount: number;
478
+ symbol: string;
479
+ }[];
480
+ };
481
+ };
482
+ };
483
+ };
484
+ export declare const Bridge: {
485
+ args: {
486
+ type: string;
487
+ data: {
488
+ title: string;
489
+ hash: string;
490
+ url: string;
491
+ status: string;
492
+ fromAmount: string;
493
+ toAmount: string;
494
+ toToken: {
495
+ logoURI: string;
496
+ bgColor: string;
497
+ symbol: string;
498
+ };
499
+ fromToken: {
500
+ logoURI: string;
501
+ bgColor: string;
502
+ symbol: string;
503
+ };
504
+ fromLink: string;
505
+ toLink: string;
506
+ fromChain: {
507
+ logoURI: string;
508
+ name: string;
509
+ bgColor: string;
510
+ };
511
+ toChain: {
512
+ logoURI: string;
513
+ name: string;
514
+ bgColor: string;
515
+ };
516
+ address: string;
517
+ timeToComplete: string;
518
+ actions: ({
519
+ type: "success";
520
+ props: {
521
+ status: "success";
522
+ timestamp: number;
523
+ hash: string;
524
+ url: string;
525
+ };
526
+ } | {
527
+ type: "receive_nft";
528
+ props: {
529
+ status: "executed";
530
+ nft: {
531
+ imageURI: string;
532
+ name: string;
533
+ };
534
+ chain: {
535
+ logoURI: string;
536
+ name: string;
537
+ bgColor: string;
538
+ };
539
+ wallet: {
540
+ imageURI: string;
541
+ address: string;
542
+ url: string;
543
+ };
544
+ timestamp: number;
545
+ hash: string;
546
+ url: string;
547
+ };
548
+ } | {
549
+ type: "send_tokens";
550
+ props: {
551
+ status: "executed";
552
+ amount: string;
553
+ token: {
554
+ logoURI: string;
555
+ bgColor: string;
556
+ symbol: string;
557
+ };
558
+ chain: {
559
+ logoURI: string;
560
+ name: string;
561
+ bgColor: string;
562
+ };
563
+ wallet: {
564
+ imageURI: string;
565
+ address: string;
566
+ url: string;
567
+ };
568
+ timestamp: number;
569
+ hash: string;
570
+ url: string;
571
+ };
572
+ } | {
573
+ type: "swap";
574
+ props: {
575
+ status: "executed";
576
+ fromToken: {
577
+ logoURI: string;
578
+ bgColor: string;
579
+ symbol: string;
580
+ };
581
+ toToken: {
582
+ logoURI: string;
583
+ bgColor: string;
584
+ symbol: string;
585
+ };
586
+ provider: {
587
+ logoURI: string;
588
+ name: string;
589
+ };
590
+ timestamp: number;
591
+ hash: string;
592
+ url: string;
593
+ };
594
+ } | {
595
+ type: "bridge";
596
+ props: {
597
+ status: "executed";
598
+ token: {
599
+ logoURI: string;
600
+ bgColor: string;
601
+ symbol: string;
602
+ };
603
+ chain: {
604
+ logoURI: string;
605
+ name: string;
606
+ bgColor: string;
607
+ };
608
+ provider: {
609
+ logoURI: string;
610
+ name: string;
611
+ };
612
+ timestamp: number;
613
+ hash: string;
614
+ url: string;
615
+ };
616
+ } | {
617
+ type: "start";
618
+ props: {
619
+ status: "executed";
620
+ timestamp: number;
621
+ hash: string;
622
+ url: string;
623
+ };
624
+ })[];
625
+ fees: {
626
+ status: "executed";
627
+ total: {
628
+ label: string;
629
+ usd: number;
630
+ amount: number;
631
+ symbol: string;
632
+ };
633
+ lines: {
634
+ label: string;
635
+ usd: number;
636
+ amount: number;
637
+ symbol: string;
638
+ }[];
639
+ };
640
+ };
641
+ };
642
+ };
@@ -32,6 +32,7 @@ export type ThemeType = "light" | "dark";
32
32
  export type ActionStatus = "pending" | "waiting" | "ongoing" | "executed" | "success" | "error" | "warning";
33
33
  export type InputMode = "token" | "price";
34
34
  export type TransactionStateVariant = "full" | "compact" | "small";
35
+ export type TransactionType = "swap" | "buy_nft" | "interaction" | "bridge";
35
36
  export type TokenPairVariant = "horizontal" | "vertical";
36
37
  export type TokenPairSize = "small" | "medium";
37
38
  export type ImageSize = "small" | "medium" | "large" | "xlarge" | "xxlarge";