@dfns/sdk 0.7.12-rc.1 → 0.7.13-rc.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.
- package/dfnsError.d.ts +2 -2
- package/generated/auth/client.d.ts +1 -0
- package/generated/auth/client.js +12 -0
- package/generated/auth/delegatedClient.d.ts +1 -0
- package/generated/auth/delegatedClient.js +12 -0
- package/generated/auth/types.d.ts +115 -61
- package/generated/exchanges/types.d.ts +188 -36
- package/generated/keys/types.d.ts +300 -0
- package/generated/networks/types.d.ts +44 -21
- package/generated/policies/types.d.ts +903 -51
- package/generated/staking/types.d.ts +136 -0
- package/generated/swaps/types.d.ts +110 -10
- package/generated/wallets/types.d.ts +845 -84
- package/package.json +3 -3
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
export type CreateStakeBody = ({
|
|
2
2
|
protocol: "Babylon";
|
|
3
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
3
4
|
walletId: string;
|
|
5
|
+
/** Staking Provider */
|
|
4
6
|
provider: "Figment";
|
|
7
|
+
/** Transaction amount denominated in min units */
|
|
5
8
|
amount: string;
|
|
6
9
|
duration: number;
|
|
7
10
|
} | {
|
|
8
11
|
protocol: "Ethereum";
|
|
12
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
9
13
|
walletId: string;
|
|
14
|
+
/** Staking Provider */
|
|
10
15
|
provider: "Figment";
|
|
16
|
+
/** Transaction amount denominated in min units */
|
|
11
17
|
amount: string;
|
|
12
18
|
} | {
|
|
13
19
|
protocol: "Iota";
|
|
20
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
14
21
|
walletId: string;
|
|
15
22
|
validator: string;
|
|
23
|
+
/** Transaction amount denominated in min units */
|
|
16
24
|
amount: string;
|
|
17
25
|
lockedIotas?: string[] | undefined;
|
|
18
26
|
}) & {
|
|
@@ -29,19 +37,27 @@ export type CreateStakeResponse = ({
|
|
|
29
37
|
};
|
|
30
38
|
requestBody: ({
|
|
31
39
|
protocol: "Babylon";
|
|
40
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
32
41
|
walletId: string;
|
|
42
|
+
/** Staking Provider */
|
|
33
43
|
provider: "Figment";
|
|
44
|
+
/** Transaction amount denominated in min units */
|
|
34
45
|
amount: string;
|
|
35
46
|
duration: number;
|
|
36
47
|
} | {
|
|
37
48
|
protocol: "Ethereum";
|
|
49
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
38
50
|
walletId: string;
|
|
51
|
+
/** Staking Provider */
|
|
39
52
|
provider: "Figment";
|
|
53
|
+
/** Transaction amount denominated in min units */
|
|
40
54
|
amount: string;
|
|
41
55
|
} | {
|
|
42
56
|
protocol: "Iota";
|
|
57
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
43
58
|
walletId: string;
|
|
44
59
|
validator: string;
|
|
60
|
+
/** Transaction amount denominated in min units */
|
|
45
61
|
amount: string;
|
|
46
62
|
lockedIotas?: string[] | undefined;
|
|
47
63
|
}) & {
|
|
@@ -68,19 +84,27 @@ export type CreateStakeResponse = ({
|
|
|
68
84
|
};
|
|
69
85
|
requestBody: ({
|
|
70
86
|
protocol: "Babylon";
|
|
87
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
71
88
|
walletId: string;
|
|
89
|
+
/** Staking Provider */
|
|
72
90
|
provider: "Figment";
|
|
91
|
+
/** Transaction amount denominated in min units */
|
|
73
92
|
amount: string;
|
|
74
93
|
duration: number;
|
|
75
94
|
} | {
|
|
76
95
|
protocol: "Ethereum";
|
|
96
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
77
97
|
walletId: string;
|
|
98
|
+
/** Staking Provider */
|
|
78
99
|
provider: "Figment";
|
|
100
|
+
/** Transaction amount denominated in min units */
|
|
79
101
|
amount: string;
|
|
80
102
|
} | {
|
|
81
103
|
protocol: "Iota";
|
|
104
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
82
105
|
walletId: string;
|
|
83
106
|
validator: string;
|
|
107
|
+
/** Transaction amount denominated in min units */
|
|
84
108
|
amount: string;
|
|
85
109
|
lockedIotas?: string[] | undefined;
|
|
86
110
|
}) & {
|
|
@@ -109,19 +133,27 @@ export type CreateStakeResponse = ({
|
|
|
109
133
|
};
|
|
110
134
|
requestBody: ({
|
|
111
135
|
protocol: "Babylon";
|
|
136
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
112
137
|
walletId: string;
|
|
138
|
+
/** Staking Provider */
|
|
113
139
|
provider: "Figment";
|
|
140
|
+
/** Transaction amount denominated in min units */
|
|
114
141
|
amount: string;
|
|
115
142
|
duration: number;
|
|
116
143
|
} | {
|
|
117
144
|
protocol: "Ethereum";
|
|
145
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
118
146
|
walletId: string;
|
|
147
|
+
/** Staking Provider */
|
|
119
148
|
provider: "Figment";
|
|
149
|
+
/** Transaction amount denominated in min units */
|
|
120
150
|
amount: string;
|
|
121
151
|
} | {
|
|
122
152
|
protocol: "Iota";
|
|
153
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
123
154
|
walletId: string;
|
|
124
155
|
validator: string;
|
|
156
|
+
/** Transaction amount denominated in min units */
|
|
125
157
|
amount: string;
|
|
126
158
|
lockedIotas?: string[] | undefined;
|
|
127
159
|
}) & {
|
|
@@ -149,19 +181,27 @@ export type CreateStakeResponse = ({
|
|
|
149
181
|
};
|
|
150
182
|
requestBody: (({
|
|
151
183
|
protocol: "Babylon";
|
|
184
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
152
185
|
walletId: string;
|
|
186
|
+
/** Staking Provider */
|
|
153
187
|
provider: "Figment";
|
|
188
|
+
/** Transaction amount denominated in min units */
|
|
154
189
|
amount: string;
|
|
155
190
|
duration: number;
|
|
156
191
|
} | {
|
|
157
192
|
protocol: "Ethereum";
|
|
193
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
158
194
|
walletId: string;
|
|
195
|
+
/** Staking Provider */
|
|
159
196
|
provider: "Figment";
|
|
197
|
+
/** Transaction amount denominated in min units */
|
|
160
198
|
amount: string;
|
|
161
199
|
} | {
|
|
162
200
|
protocol: "Iota";
|
|
201
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
163
202
|
walletId: string;
|
|
164
203
|
validator: string;
|
|
204
|
+
/** Transaction amount denominated in min units */
|
|
165
205
|
amount: string;
|
|
166
206
|
lockedIotas?: string[] | undefined;
|
|
167
207
|
}) & {
|
|
@@ -228,19 +268,27 @@ export type CreateStakeActionResponse = ({
|
|
|
228
268
|
};
|
|
229
269
|
requestBody: ({
|
|
230
270
|
protocol: "Babylon";
|
|
271
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
231
272
|
walletId: string;
|
|
273
|
+
/** Staking Provider */
|
|
232
274
|
provider: "Figment";
|
|
275
|
+
/** Transaction amount denominated in min units */
|
|
233
276
|
amount: string;
|
|
234
277
|
duration: number;
|
|
235
278
|
} | {
|
|
236
279
|
protocol: "Ethereum";
|
|
280
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
237
281
|
walletId: string;
|
|
282
|
+
/** Staking Provider */
|
|
238
283
|
provider: "Figment";
|
|
284
|
+
/** Transaction amount denominated in min units */
|
|
239
285
|
amount: string;
|
|
240
286
|
} | {
|
|
241
287
|
protocol: "Iota";
|
|
288
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
242
289
|
walletId: string;
|
|
243
290
|
validator: string;
|
|
291
|
+
/** Transaction amount denominated in min units */
|
|
244
292
|
amount: string;
|
|
245
293
|
lockedIotas?: string[] | undefined;
|
|
246
294
|
}) & {
|
|
@@ -267,19 +315,27 @@ export type CreateStakeActionResponse = ({
|
|
|
267
315
|
};
|
|
268
316
|
requestBody: ({
|
|
269
317
|
protocol: "Babylon";
|
|
318
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
270
319
|
walletId: string;
|
|
320
|
+
/** Staking Provider */
|
|
271
321
|
provider: "Figment";
|
|
322
|
+
/** Transaction amount denominated in min units */
|
|
272
323
|
amount: string;
|
|
273
324
|
duration: number;
|
|
274
325
|
} | {
|
|
275
326
|
protocol: "Ethereum";
|
|
327
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
276
328
|
walletId: string;
|
|
329
|
+
/** Staking Provider */
|
|
277
330
|
provider: "Figment";
|
|
331
|
+
/** Transaction amount denominated in min units */
|
|
278
332
|
amount: string;
|
|
279
333
|
} | {
|
|
280
334
|
protocol: "Iota";
|
|
335
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
281
336
|
walletId: string;
|
|
282
337
|
validator: string;
|
|
338
|
+
/** Transaction amount denominated in min units */
|
|
283
339
|
amount: string;
|
|
284
340
|
lockedIotas?: string[] | undefined;
|
|
285
341
|
}) & {
|
|
@@ -308,19 +364,27 @@ export type CreateStakeActionResponse = ({
|
|
|
308
364
|
};
|
|
309
365
|
requestBody: ({
|
|
310
366
|
protocol: "Babylon";
|
|
367
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
311
368
|
walletId: string;
|
|
369
|
+
/** Staking Provider */
|
|
312
370
|
provider: "Figment";
|
|
371
|
+
/** Transaction amount denominated in min units */
|
|
313
372
|
amount: string;
|
|
314
373
|
duration: number;
|
|
315
374
|
} | {
|
|
316
375
|
protocol: "Ethereum";
|
|
376
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
317
377
|
walletId: string;
|
|
378
|
+
/** Staking Provider */
|
|
318
379
|
provider: "Figment";
|
|
380
|
+
/** Transaction amount denominated in min units */
|
|
319
381
|
amount: string;
|
|
320
382
|
} | {
|
|
321
383
|
protocol: "Iota";
|
|
384
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
322
385
|
walletId: string;
|
|
323
386
|
validator: string;
|
|
387
|
+
/** Transaction amount denominated in min units */
|
|
324
388
|
amount: string;
|
|
325
389
|
lockedIotas?: string[] | undefined;
|
|
326
390
|
}) & {
|
|
@@ -348,19 +412,27 @@ export type CreateStakeActionResponse = ({
|
|
|
348
412
|
};
|
|
349
413
|
requestBody: (({
|
|
350
414
|
protocol: "Babylon";
|
|
415
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
351
416
|
walletId: string;
|
|
417
|
+
/** Staking Provider */
|
|
352
418
|
provider: "Figment";
|
|
419
|
+
/** Transaction amount denominated in min units */
|
|
353
420
|
amount: string;
|
|
354
421
|
duration: number;
|
|
355
422
|
} | {
|
|
356
423
|
protocol: "Ethereum";
|
|
424
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
357
425
|
walletId: string;
|
|
426
|
+
/** Staking Provider */
|
|
358
427
|
provider: "Figment";
|
|
428
|
+
/** Transaction amount denominated in min units */
|
|
359
429
|
amount: string;
|
|
360
430
|
} | {
|
|
361
431
|
protocol: "Iota";
|
|
432
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
362
433
|
walletId: string;
|
|
363
434
|
validator: string;
|
|
435
|
+
/** Transaction amount denominated in min units */
|
|
364
436
|
amount: string;
|
|
365
437
|
lockedIotas?: string[] | undefined;
|
|
366
438
|
}) & {
|
|
@@ -418,19 +490,27 @@ export type GetStakesResponse = ({
|
|
|
418
490
|
};
|
|
419
491
|
requestBody: ({
|
|
420
492
|
protocol: "Babylon";
|
|
493
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
421
494
|
walletId: string;
|
|
495
|
+
/** Staking Provider */
|
|
422
496
|
provider: "Figment";
|
|
497
|
+
/** Transaction amount denominated in min units */
|
|
423
498
|
amount: string;
|
|
424
499
|
duration: number;
|
|
425
500
|
} | {
|
|
426
501
|
protocol: "Ethereum";
|
|
502
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
427
503
|
walletId: string;
|
|
504
|
+
/** Staking Provider */
|
|
428
505
|
provider: "Figment";
|
|
506
|
+
/** Transaction amount denominated in min units */
|
|
429
507
|
amount: string;
|
|
430
508
|
} | {
|
|
431
509
|
protocol: "Iota";
|
|
510
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
432
511
|
walletId: string;
|
|
433
512
|
validator: string;
|
|
513
|
+
/** Transaction amount denominated in min units */
|
|
434
514
|
amount: string;
|
|
435
515
|
lockedIotas?: string[] | undefined;
|
|
436
516
|
}) & {
|
|
@@ -457,19 +537,27 @@ export type GetStakesResponse = ({
|
|
|
457
537
|
};
|
|
458
538
|
requestBody: ({
|
|
459
539
|
protocol: "Babylon";
|
|
540
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
460
541
|
walletId: string;
|
|
542
|
+
/** Staking Provider */
|
|
461
543
|
provider: "Figment";
|
|
544
|
+
/** Transaction amount denominated in min units */
|
|
462
545
|
amount: string;
|
|
463
546
|
duration: number;
|
|
464
547
|
} | {
|
|
465
548
|
protocol: "Ethereum";
|
|
549
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
466
550
|
walletId: string;
|
|
551
|
+
/** Staking Provider */
|
|
467
552
|
provider: "Figment";
|
|
553
|
+
/** Transaction amount denominated in min units */
|
|
468
554
|
amount: string;
|
|
469
555
|
} | {
|
|
470
556
|
protocol: "Iota";
|
|
557
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
471
558
|
walletId: string;
|
|
472
559
|
validator: string;
|
|
560
|
+
/** Transaction amount denominated in min units */
|
|
473
561
|
amount: string;
|
|
474
562
|
lockedIotas?: string[] | undefined;
|
|
475
563
|
}) & {
|
|
@@ -498,19 +586,27 @@ export type GetStakesResponse = ({
|
|
|
498
586
|
};
|
|
499
587
|
requestBody: ({
|
|
500
588
|
protocol: "Babylon";
|
|
589
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
501
590
|
walletId: string;
|
|
591
|
+
/** Staking Provider */
|
|
502
592
|
provider: "Figment";
|
|
593
|
+
/** Transaction amount denominated in min units */
|
|
503
594
|
amount: string;
|
|
504
595
|
duration: number;
|
|
505
596
|
} | {
|
|
506
597
|
protocol: "Ethereum";
|
|
598
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
507
599
|
walletId: string;
|
|
600
|
+
/** Staking Provider */
|
|
508
601
|
provider: "Figment";
|
|
602
|
+
/** Transaction amount denominated in min units */
|
|
509
603
|
amount: string;
|
|
510
604
|
} | {
|
|
511
605
|
protocol: "Iota";
|
|
606
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
512
607
|
walletId: string;
|
|
513
608
|
validator: string;
|
|
609
|
+
/** Transaction amount denominated in min units */
|
|
514
610
|
amount: string;
|
|
515
611
|
lockedIotas?: string[] | undefined;
|
|
516
612
|
}) & {
|
|
@@ -538,19 +634,27 @@ export type GetStakesResponse = ({
|
|
|
538
634
|
};
|
|
539
635
|
requestBody: (({
|
|
540
636
|
protocol: "Babylon";
|
|
637
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
541
638
|
walletId: string;
|
|
639
|
+
/** Staking Provider */
|
|
542
640
|
provider: "Figment";
|
|
641
|
+
/** Transaction amount denominated in min units */
|
|
543
642
|
amount: string;
|
|
544
643
|
duration: number;
|
|
545
644
|
} | {
|
|
546
645
|
protocol: "Ethereum";
|
|
646
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
547
647
|
walletId: string;
|
|
648
|
+
/** Staking Provider */
|
|
548
649
|
provider: "Figment";
|
|
650
|
+
/** Transaction amount denominated in min units */
|
|
549
651
|
amount: string;
|
|
550
652
|
} | {
|
|
551
653
|
protocol: "Iota";
|
|
654
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
552
655
|
walletId: string;
|
|
553
656
|
validator: string;
|
|
657
|
+
/** Transaction amount denominated in min units */
|
|
554
658
|
amount: string;
|
|
555
659
|
lockedIotas?: string[] | undefined;
|
|
556
660
|
}) & {
|
|
@@ -603,19 +707,27 @@ export type ListStakeActionsResponse = {
|
|
|
603
707
|
};
|
|
604
708
|
requestBody: (({
|
|
605
709
|
protocol: "Babylon";
|
|
710
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
606
711
|
walletId: string;
|
|
712
|
+
/** Staking Provider */
|
|
607
713
|
provider: "Figment";
|
|
714
|
+
/** Transaction amount denominated in min units */
|
|
608
715
|
amount: string;
|
|
609
716
|
duration: number;
|
|
610
717
|
} | {
|
|
611
718
|
protocol: "Ethereum";
|
|
719
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
612
720
|
walletId: string;
|
|
721
|
+
/** Staking Provider */
|
|
613
722
|
provider: "Figment";
|
|
723
|
+
/** Transaction amount denominated in min units */
|
|
614
724
|
amount: string;
|
|
615
725
|
} | {
|
|
616
726
|
protocol: "Iota";
|
|
727
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
617
728
|
walletId: string;
|
|
618
729
|
validator: string;
|
|
730
|
+
/** Transaction amount denominated in min units */
|
|
619
731
|
amount: string;
|
|
620
732
|
lockedIotas?: string[] | undefined;
|
|
621
733
|
}) & {
|
|
@@ -664,19 +776,27 @@ export type ListStakesResponse = {
|
|
|
664
776
|
};
|
|
665
777
|
requestBody: ({
|
|
666
778
|
protocol: "Babylon";
|
|
779
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
667
780
|
walletId: string;
|
|
781
|
+
/** Staking Provider */
|
|
668
782
|
provider: "Figment";
|
|
783
|
+
/** Transaction amount denominated in min units */
|
|
669
784
|
amount: string;
|
|
670
785
|
duration: number;
|
|
671
786
|
} | {
|
|
672
787
|
protocol: "Ethereum";
|
|
788
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
673
789
|
walletId: string;
|
|
790
|
+
/** Staking Provider */
|
|
674
791
|
provider: "Figment";
|
|
792
|
+
/** Transaction amount denominated in min units */
|
|
675
793
|
amount: string;
|
|
676
794
|
} | {
|
|
677
795
|
protocol: "Iota";
|
|
796
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
678
797
|
walletId: string;
|
|
679
798
|
validator: string;
|
|
799
|
+
/** Transaction amount denominated in min units */
|
|
680
800
|
amount: string;
|
|
681
801
|
lockedIotas?: string[] | undefined;
|
|
682
802
|
}) & {
|
|
@@ -703,19 +823,27 @@ export type ListStakesResponse = {
|
|
|
703
823
|
};
|
|
704
824
|
requestBody: ({
|
|
705
825
|
protocol: "Babylon";
|
|
826
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
706
827
|
walletId: string;
|
|
828
|
+
/** Staking Provider */
|
|
707
829
|
provider: "Figment";
|
|
830
|
+
/** Transaction amount denominated in min units */
|
|
708
831
|
amount: string;
|
|
709
832
|
duration: number;
|
|
710
833
|
} | {
|
|
711
834
|
protocol: "Ethereum";
|
|
835
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
712
836
|
walletId: string;
|
|
837
|
+
/** Staking Provider */
|
|
713
838
|
provider: "Figment";
|
|
839
|
+
/** Transaction amount denominated in min units */
|
|
714
840
|
amount: string;
|
|
715
841
|
} | {
|
|
716
842
|
protocol: "Iota";
|
|
843
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
717
844
|
walletId: string;
|
|
718
845
|
validator: string;
|
|
846
|
+
/** Transaction amount denominated in min units */
|
|
719
847
|
amount: string;
|
|
720
848
|
lockedIotas?: string[] | undefined;
|
|
721
849
|
}) & {
|
|
@@ -744,19 +872,27 @@ export type ListStakesResponse = {
|
|
|
744
872
|
};
|
|
745
873
|
requestBody: ({
|
|
746
874
|
protocol: "Babylon";
|
|
875
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
747
876
|
walletId: string;
|
|
877
|
+
/** Staking Provider */
|
|
748
878
|
provider: "Figment";
|
|
879
|
+
/** Transaction amount denominated in min units */
|
|
749
880
|
amount: string;
|
|
750
881
|
duration: number;
|
|
751
882
|
} | {
|
|
752
883
|
protocol: "Ethereum";
|
|
884
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
753
885
|
walletId: string;
|
|
886
|
+
/** Staking Provider */
|
|
754
887
|
provider: "Figment";
|
|
888
|
+
/** Transaction amount denominated in min units */
|
|
755
889
|
amount: string;
|
|
756
890
|
} | {
|
|
757
891
|
protocol: "Iota";
|
|
892
|
+
/** Id of the Dfns wallet making the deposit (`wa-...`). */
|
|
758
893
|
walletId: string;
|
|
759
894
|
validator: string;
|
|
895
|
+
/** Transaction amount denominated in min units */
|
|
760
896
|
amount: string;
|
|
761
897
|
lockedIotas?: string[] | undefined;
|
|
762
898
|
}) & {
|
|
@@ -1,13 +1,35 @@
|
|
|
1
1
|
export type CreateSwapBody = {
|
|
2
|
-
sourceWalletId: string;
|
|
3
2
|
quoteId: string;
|
|
4
3
|
reference?: string | undefined;
|
|
4
|
+
provider?: ("UniswapX" | "UniswapClassic") | undefined;
|
|
5
|
+
sourceWalletId?: string | undefined;
|
|
6
|
+
walletId?: string | undefined;
|
|
7
|
+
targetWalletId?: string | undefined;
|
|
8
|
+
slippageToleranceInBps?: number | undefined;
|
|
9
|
+
slippageBps?: number | undefined;
|
|
10
|
+
sourceAsset?: ({
|
|
11
|
+
kind: "Native";
|
|
12
|
+
amount: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "Erc20";
|
|
15
|
+
contract: string;
|
|
16
|
+
amount: string;
|
|
17
|
+
}) | undefined;
|
|
18
|
+
targetAsset?: ({
|
|
19
|
+
kind: "Native";
|
|
20
|
+
amount: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "Erc20";
|
|
23
|
+
contract: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
}) | undefined;
|
|
5
26
|
};
|
|
6
27
|
export type CreateSwapResponse = {
|
|
7
28
|
id: string;
|
|
8
29
|
quoteId: string;
|
|
9
30
|
reference: string | null;
|
|
10
31
|
sourceWalletId: string;
|
|
32
|
+
walletId: string;
|
|
11
33
|
targetWalletId: string;
|
|
12
34
|
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
|
|
13
35
|
provider: "UniswapX" | "UniswapClassic";
|
|
@@ -44,11 +66,33 @@ export type CreateSwapResponse = {
|
|
|
44
66
|
};
|
|
45
67
|
};
|
|
46
68
|
slippageToleranceInBps: number;
|
|
69
|
+
slippageBps: number;
|
|
47
70
|
dateCreated: string;
|
|
48
71
|
requestBody: {
|
|
49
|
-
sourceWalletId: string;
|
|
50
72
|
quoteId: string;
|
|
51
73
|
reference?: string | undefined;
|
|
74
|
+
provider?: ("UniswapX" | "UniswapClassic") | undefined;
|
|
75
|
+
sourceWalletId?: string | undefined;
|
|
76
|
+
walletId?: string | undefined;
|
|
77
|
+
targetWalletId?: string | undefined;
|
|
78
|
+
slippageToleranceInBps?: number | undefined;
|
|
79
|
+
slippageBps?: number | undefined;
|
|
80
|
+
sourceAsset?: ({
|
|
81
|
+
kind: "Native";
|
|
82
|
+
amount: string;
|
|
83
|
+
} | {
|
|
84
|
+
kind: "Erc20";
|
|
85
|
+
contract: string;
|
|
86
|
+
amount: string;
|
|
87
|
+
}) | undefined;
|
|
88
|
+
targetAsset?: ({
|
|
89
|
+
kind: "Native";
|
|
90
|
+
amount: string;
|
|
91
|
+
} | {
|
|
92
|
+
kind: "Erc20";
|
|
93
|
+
contract: string;
|
|
94
|
+
amount: string;
|
|
95
|
+
}) | undefined;
|
|
52
96
|
};
|
|
53
97
|
requester: {
|
|
54
98
|
userId: string;
|
|
@@ -60,7 +104,8 @@ export type CreateSwapRequest = {
|
|
|
60
104
|
};
|
|
61
105
|
export type CreateSwapQuoteBody = {
|
|
62
106
|
provider: "UniswapX" | "UniswapClassic";
|
|
63
|
-
sourceWalletId
|
|
107
|
+
sourceWalletId?: string | undefined;
|
|
108
|
+
walletId?: string | undefined;
|
|
64
109
|
targetWalletId: string;
|
|
65
110
|
sourceAsset: {
|
|
66
111
|
kind: "Native";
|
|
@@ -76,11 +121,13 @@ export type CreateSwapQuoteBody = {
|
|
|
76
121
|
kind: "Erc20";
|
|
77
122
|
contract: string;
|
|
78
123
|
};
|
|
79
|
-
slippageToleranceInBps
|
|
124
|
+
slippageToleranceInBps?: number | undefined;
|
|
125
|
+
slippageBps?: number | undefined;
|
|
80
126
|
};
|
|
81
127
|
export type CreateSwapQuoteResponse = {
|
|
82
128
|
id: string;
|
|
83
129
|
sourceWalletId: string;
|
|
130
|
+
walletId: string;
|
|
84
131
|
targetWalletId: string;
|
|
85
132
|
provider: "UniswapX" | "UniswapClassic";
|
|
86
133
|
sourceAsset: ({
|
|
@@ -116,10 +163,12 @@ export type CreateSwapQuoteResponse = {
|
|
|
116
163
|
};
|
|
117
164
|
};
|
|
118
165
|
slippageToleranceInBps: number;
|
|
166
|
+
slippageBps: number;
|
|
119
167
|
dateCreated: string;
|
|
120
168
|
requestBody: {
|
|
121
169
|
provider: "UniswapX" | "UniswapClassic";
|
|
122
|
-
sourceWalletId
|
|
170
|
+
sourceWalletId?: string | undefined;
|
|
171
|
+
walletId?: string | undefined;
|
|
123
172
|
targetWalletId: string;
|
|
124
173
|
sourceAsset: {
|
|
125
174
|
kind: "Native";
|
|
@@ -135,7 +184,8 @@ export type CreateSwapQuoteResponse = {
|
|
|
135
184
|
kind: "Erc20";
|
|
136
185
|
contract: string;
|
|
137
186
|
};
|
|
138
|
-
slippageToleranceInBps
|
|
187
|
+
slippageToleranceInBps?: number | undefined;
|
|
188
|
+
slippageBps?: number | undefined;
|
|
139
189
|
};
|
|
140
190
|
requester: {
|
|
141
191
|
userId: string;
|
|
@@ -153,6 +203,7 @@ export type GetSwapResponse = {
|
|
|
153
203
|
quoteId: string;
|
|
154
204
|
reference: string | null;
|
|
155
205
|
sourceWalletId: string;
|
|
206
|
+
walletId: string;
|
|
156
207
|
targetWalletId: string;
|
|
157
208
|
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
|
|
158
209
|
provider: "UniswapX" | "UniswapClassic";
|
|
@@ -189,11 +240,33 @@ export type GetSwapResponse = {
|
|
|
189
240
|
};
|
|
190
241
|
};
|
|
191
242
|
slippageToleranceInBps: number;
|
|
243
|
+
slippageBps: number;
|
|
192
244
|
dateCreated: string;
|
|
193
245
|
requestBody: {
|
|
194
|
-
sourceWalletId: string;
|
|
195
246
|
quoteId: string;
|
|
196
247
|
reference?: string | undefined;
|
|
248
|
+
provider?: ("UniswapX" | "UniswapClassic") | undefined;
|
|
249
|
+
sourceWalletId?: string | undefined;
|
|
250
|
+
walletId?: string | undefined;
|
|
251
|
+
targetWalletId?: string | undefined;
|
|
252
|
+
slippageToleranceInBps?: number | undefined;
|
|
253
|
+
slippageBps?: number | undefined;
|
|
254
|
+
sourceAsset?: ({
|
|
255
|
+
kind: "Native";
|
|
256
|
+
amount: string;
|
|
257
|
+
} | {
|
|
258
|
+
kind: "Erc20";
|
|
259
|
+
contract: string;
|
|
260
|
+
amount: string;
|
|
261
|
+
}) | undefined;
|
|
262
|
+
targetAsset?: ({
|
|
263
|
+
kind: "Native";
|
|
264
|
+
amount: string;
|
|
265
|
+
} | {
|
|
266
|
+
kind: "Erc20";
|
|
267
|
+
contract: string;
|
|
268
|
+
amount: string;
|
|
269
|
+
}) | undefined;
|
|
197
270
|
};
|
|
198
271
|
requester: {
|
|
199
272
|
userId: string;
|
|
@@ -207,6 +280,7 @@ export type GetSwapQuoteParams = {
|
|
|
207
280
|
export type GetSwapQuoteResponse = {
|
|
208
281
|
id: string;
|
|
209
282
|
sourceWalletId: string;
|
|
283
|
+
walletId: string;
|
|
210
284
|
targetWalletId: string;
|
|
211
285
|
provider: "UniswapX" | "UniswapClassic";
|
|
212
286
|
sourceAsset: ({
|
|
@@ -242,10 +316,12 @@ export type GetSwapQuoteResponse = {
|
|
|
242
316
|
};
|
|
243
317
|
};
|
|
244
318
|
slippageToleranceInBps: number;
|
|
319
|
+
slippageBps: number;
|
|
245
320
|
dateCreated: string;
|
|
246
321
|
requestBody: {
|
|
247
322
|
provider: "UniswapX" | "UniswapClassic";
|
|
248
|
-
sourceWalletId
|
|
323
|
+
sourceWalletId?: string | undefined;
|
|
324
|
+
walletId?: string | undefined;
|
|
249
325
|
targetWalletId: string;
|
|
250
326
|
sourceAsset: {
|
|
251
327
|
kind: "Native";
|
|
@@ -261,7 +337,8 @@ export type GetSwapQuoteResponse = {
|
|
|
261
337
|
kind: "Erc20";
|
|
262
338
|
contract: string;
|
|
263
339
|
};
|
|
264
|
-
slippageToleranceInBps
|
|
340
|
+
slippageToleranceInBps?: number | undefined;
|
|
341
|
+
slippageBps?: number | undefined;
|
|
265
342
|
};
|
|
266
343
|
requester: {
|
|
267
344
|
userId: string;
|
|
@@ -279,6 +356,7 @@ export type ListSwapsResponse = {
|
|
|
279
356
|
quoteId: string;
|
|
280
357
|
reference: string | null;
|
|
281
358
|
sourceWalletId: string;
|
|
359
|
+
walletId: string;
|
|
282
360
|
targetWalletId: string;
|
|
283
361
|
status: "PendingPolicyApproval" | "InProgress" | "Completed" | "Failed" | "Rejected";
|
|
284
362
|
provider: "UniswapX" | "UniswapClassic";
|
|
@@ -315,11 +393,33 @@ export type ListSwapsResponse = {
|
|
|
315
393
|
};
|
|
316
394
|
};
|
|
317
395
|
slippageToleranceInBps: number;
|
|
396
|
+
slippageBps: number;
|
|
318
397
|
dateCreated: string;
|
|
319
398
|
requestBody: {
|
|
320
|
-
sourceWalletId: string;
|
|
321
399
|
quoteId: string;
|
|
322
400
|
reference?: string | undefined;
|
|
401
|
+
provider?: ("UniswapX" | "UniswapClassic") | undefined;
|
|
402
|
+
sourceWalletId?: string | undefined;
|
|
403
|
+
walletId?: string | undefined;
|
|
404
|
+
targetWalletId?: string | undefined;
|
|
405
|
+
slippageToleranceInBps?: number | undefined;
|
|
406
|
+
slippageBps?: number | undefined;
|
|
407
|
+
sourceAsset?: ({
|
|
408
|
+
kind: "Native";
|
|
409
|
+
amount: string;
|
|
410
|
+
} | {
|
|
411
|
+
kind: "Erc20";
|
|
412
|
+
contract: string;
|
|
413
|
+
amount: string;
|
|
414
|
+
}) | undefined;
|
|
415
|
+
targetAsset?: ({
|
|
416
|
+
kind: "Native";
|
|
417
|
+
amount: string;
|
|
418
|
+
} | {
|
|
419
|
+
kind: "Erc20";
|
|
420
|
+
contract: string;
|
|
421
|
+
amount: string;
|
|
422
|
+
}) | undefined;
|
|
323
423
|
};
|
|
324
424
|
requester: {
|
|
325
425
|
userId: string;
|