@dfns/sdk 0.8.21 → 0.8.24
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/generated/agreements/types.d.ts +9 -0
- package/generated/allocations/types.d.ts +409 -24
- package/generated/auth/client.d.ts +3 -0
- package/generated/auth/client.js +36 -0
- package/generated/auth/delegatedClient.d.ts +5 -0
- package/generated/auth/delegatedClient.js +66 -0
- package/generated/auth/types.d.ts +1021 -39
- package/generated/exchanges/types.d.ts +1 -1
- package/generated/feeSponsors/types.d.ts +6 -6
- package/generated/keys/types.d.ts +60 -60
- package/generated/networks/types.d.ts +38 -2
- package/generated/payouts/types.d.ts +8 -8
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +903 -162
- package/generated/signers/client.d.ts +5 -0
- package/generated/signers/client.js +25 -0
- package/generated/signers/delegatedClient.d.ts +2 -0
- package/generated/signers/delegatedClient.js +27 -0
- package/generated/signers/types.d.ts +113 -4
- package/generated/staking/types.d.ts +451 -5
- package/generated/swaps/types.d.ts +641 -43
- package/generated/wallets/types.d.ts +536 -110
- package/generated/webhooks/types.d.ts +9 -9
- package/package.json +1 -1
|
@@ -14,6 +14,14 @@ export type CreateStakeBody = ({
|
|
|
14
14
|
/** Transaction amount denominated in min units */
|
|
15
15
|
amount: string;
|
|
16
16
|
lockedIotas?: string[] | undefined;
|
|
17
|
+
} | {
|
|
18
|
+
protocol: "Xdc";
|
|
19
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
20
|
+
walletId: string;
|
|
21
|
+
/** Coinbase address of the XDC masternode to register */
|
|
22
|
+
candidate: string;
|
|
23
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
24
|
+
amount: string;
|
|
17
25
|
}) & {
|
|
18
26
|
externalId?: string | undefined;
|
|
19
27
|
};
|
|
@@ -67,6 +75,14 @@ export type CreateStakeResponse = ({
|
|
|
67
75
|
/** Transaction amount denominated in min units */
|
|
68
76
|
amount: string;
|
|
69
77
|
lockedIotas?: string[] | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
protocol: "Xdc";
|
|
80
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
81
|
+
walletId: string;
|
|
82
|
+
/** Coinbase address of the XDC masternode to register */
|
|
83
|
+
candidate: string;
|
|
84
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
85
|
+
amount: string;
|
|
70
86
|
}) & {
|
|
71
87
|
externalId?: string | undefined;
|
|
72
88
|
};
|
|
@@ -130,6 +146,14 @@ export type CreateStakeResponse = ({
|
|
|
130
146
|
/** Transaction amount denominated in min units */
|
|
131
147
|
amount: string;
|
|
132
148
|
lockedIotas?: string[] | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
protocol: "Xdc";
|
|
151
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
152
|
+
walletId: string;
|
|
153
|
+
/** Coinbase address of the XDC masternode to register */
|
|
154
|
+
candidate: string;
|
|
155
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
156
|
+
amount: string;
|
|
133
157
|
}) & {
|
|
134
158
|
externalId?: string | undefined;
|
|
135
159
|
};
|
|
@@ -195,6 +219,14 @@ export type CreateStakeResponse = ({
|
|
|
195
219
|
/** Transaction amount denominated in min units */
|
|
196
220
|
amount: string;
|
|
197
221
|
lockedIotas?: string[] | undefined;
|
|
222
|
+
} | {
|
|
223
|
+
protocol: "Xdc";
|
|
224
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
225
|
+
walletId: string;
|
|
226
|
+
/** Coinbase address of the XDC masternode to register */
|
|
227
|
+
candidate: string;
|
|
228
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
229
|
+
amount: string;
|
|
198
230
|
}) & {
|
|
199
231
|
externalId?: string | undefined;
|
|
200
232
|
};
|
|
@@ -206,6 +238,76 @@ export type CreateStakeResponse = ({
|
|
|
206
238
|
withdrawalAddress: string;
|
|
207
239
|
};
|
|
208
240
|
} | null;
|
|
241
|
+
} | {
|
|
242
|
+
id: string;
|
|
243
|
+
/** The staking infrastructure provider used to manage the stake. */
|
|
244
|
+
provider?: ("Figment") | undefined;
|
|
245
|
+
/** Wallet id. */
|
|
246
|
+
walletId: string;
|
|
247
|
+
/** Status of the stake position.
|
|
248
|
+
|
|
249
|
+
| Status | Definition |
|
|
250
|
+
| --- | --- |
|
|
251
|
+
| `Staking` | The stake is being created and funds are being delegated to the validator. |
|
|
252
|
+
| `Active` | The stake is active and earning rewards. |
|
|
253
|
+
| `Unbonding` | The stake is in the process of being unbonded (cooldown period). |
|
|
254
|
+
| `Unbond` | The stake has been unbonded and is ready for withdrawal. |
|
|
255
|
+
| `Withdrawing` | The staked funds are in the process of being withdrawn. |
|
|
256
|
+
| `Withdrawn` | The staked funds have been fully withdrawn. |
|
|
257
|
+
| `Failed` | The staking operation failed. | */
|
|
258
|
+
status: "Active" | "Failed" | "Staking" | "Unbonding" | "Unbond" | "Withdrawing" | "Withdrawn";
|
|
259
|
+
/** The user who initiated the request. */
|
|
260
|
+
requester: {
|
|
261
|
+
/** User id. */
|
|
262
|
+
userId: string;
|
|
263
|
+
/** Token id. */
|
|
264
|
+
tokenId?: string | undefined;
|
|
265
|
+
};
|
|
266
|
+
requestBody: ({
|
|
267
|
+
protocol: "Babylon";
|
|
268
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
269
|
+
walletId: string;
|
|
270
|
+
/** Staking Provider */
|
|
271
|
+
provider: "Figment";
|
|
272
|
+
/** Transaction amount denominated in min units */
|
|
273
|
+
amount: string;
|
|
274
|
+
duration: number;
|
|
275
|
+
} | {
|
|
276
|
+
protocol: "Ethereum";
|
|
277
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
278
|
+
walletId: string;
|
|
279
|
+
/** Staking Provider */
|
|
280
|
+
provider: "Figment";
|
|
281
|
+
/** Transaction amount denominated in min units */
|
|
282
|
+
amount: string;
|
|
283
|
+
} | {
|
|
284
|
+
protocol: "Iota";
|
|
285
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
286
|
+
walletId: string;
|
|
287
|
+
validator: string;
|
|
288
|
+
/** Transaction amount denominated in min units */
|
|
289
|
+
amount: string;
|
|
290
|
+
lockedIotas?: string[] | undefined;
|
|
291
|
+
} | {
|
|
292
|
+
protocol: "Xdc";
|
|
293
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
294
|
+
walletId: string;
|
|
295
|
+
/** Coinbase address of the XDC masternode to register */
|
|
296
|
+
candidate: string;
|
|
297
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
298
|
+
amount: string;
|
|
299
|
+
}) & {
|
|
300
|
+
externalId?: string | undefined;
|
|
301
|
+
};
|
|
302
|
+
dateCreated: string;
|
|
303
|
+
protocol: "Xdc";
|
|
304
|
+
data: {
|
|
305
|
+
candidate: string;
|
|
306
|
+
amount: string;
|
|
307
|
+
proposeBlockNumber?: string | undefined;
|
|
308
|
+
withdrawBlockNumber?: string | undefined;
|
|
309
|
+
withdrawIndex?: string | undefined;
|
|
310
|
+
};
|
|
209
311
|
}) & {
|
|
210
312
|
actions: {
|
|
211
313
|
id: string;
|
|
@@ -267,6 +369,14 @@ export type CreateStakeResponse = ({
|
|
|
267
369
|
/** Transaction amount denominated in min units */
|
|
268
370
|
amount: string;
|
|
269
371
|
lockedIotas?: string[] | undefined;
|
|
372
|
+
} | {
|
|
373
|
+
protocol: "Xdc";
|
|
374
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
375
|
+
walletId: string;
|
|
376
|
+
/** Coinbase address of the XDC masternode to register */
|
|
377
|
+
candidate: string;
|
|
378
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
379
|
+
amount: string;
|
|
270
380
|
}) & {
|
|
271
381
|
externalId?: string | undefined;
|
|
272
382
|
}) | ((({
|
|
@@ -281,7 +391,13 @@ export type CreateStakeResponse = ({
|
|
|
281
391
|
}) | {
|
|
282
392
|
protocol: "Ethereum";
|
|
283
393
|
kind: "Withdraw";
|
|
284
|
-
}
|
|
394
|
+
} | ({
|
|
395
|
+
protocol: "Xdc";
|
|
396
|
+
kind: "Withdraw";
|
|
397
|
+
} | {
|
|
398
|
+
protocol: "Xdc";
|
|
399
|
+
kind: "Unbond";
|
|
400
|
+
})) & {
|
|
285
401
|
externalId?: string | undefined;
|
|
286
402
|
});
|
|
287
403
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
@@ -304,7 +420,13 @@ export type CreateStakeActionBody = (({
|
|
|
304
420
|
}) | {
|
|
305
421
|
protocol: "Ethereum";
|
|
306
422
|
kind: "Withdraw";
|
|
307
|
-
}
|
|
423
|
+
} | ({
|
|
424
|
+
protocol: "Xdc";
|
|
425
|
+
kind: "Withdraw";
|
|
426
|
+
} | {
|
|
427
|
+
protocol: "Xdc";
|
|
428
|
+
kind: "Unbond";
|
|
429
|
+
})) & {
|
|
308
430
|
externalId?: string | undefined;
|
|
309
431
|
};
|
|
310
432
|
export type CreateStakeActionParams = {
|
|
@@ -360,6 +482,14 @@ export type CreateStakeActionResponse = ({
|
|
|
360
482
|
/** Transaction amount denominated in min units */
|
|
361
483
|
amount: string;
|
|
362
484
|
lockedIotas?: string[] | undefined;
|
|
485
|
+
} | {
|
|
486
|
+
protocol: "Xdc";
|
|
487
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
488
|
+
walletId: string;
|
|
489
|
+
/** Coinbase address of the XDC masternode to register */
|
|
490
|
+
candidate: string;
|
|
491
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
492
|
+
amount: string;
|
|
363
493
|
}) & {
|
|
364
494
|
externalId?: string | undefined;
|
|
365
495
|
};
|
|
@@ -423,6 +553,14 @@ export type CreateStakeActionResponse = ({
|
|
|
423
553
|
/** Transaction amount denominated in min units */
|
|
424
554
|
amount: string;
|
|
425
555
|
lockedIotas?: string[] | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
protocol: "Xdc";
|
|
558
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
559
|
+
walletId: string;
|
|
560
|
+
/** Coinbase address of the XDC masternode to register */
|
|
561
|
+
candidate: string;
|
|
562
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
563
|
+
amount: string;
|
|
426
564
|
}) & {
|
|
427
565
|
externalId?: string | undefined;
|
|
428
566
|
};
|
|
@@ -488,6 +626,14 @@ export type CreateStakeActionResponse = ({
|
|
|
488
626
|
/** Transaction amount denominated in min units */
|
|
489
627
|
amount: string;
|
|
490
628
|
lockedIotas?: string[] | undefined;
|
|
629
|
+
} | {
|
|
630
|
+
protocol: "Xdc";
|
|
631
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
632
|
+
walletId: string;
|
|
633
|
+
/** Coinbase address of the XDC masternode to register */
|
|
634
|
+
candidate: string;
|
|
635
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
636
|
+
amount: string;
|
|
491
637
|
}) & {
|
|
492
638
|
externalId?: string | undefined;
|
|
493
639
|
};
|
|
@@ -499,6 +645,76 @@ export type CreateStakeActionResponse = ({
|
|
|
499
645
|
withdrawalAddress: string;
|
|
500
646
|
};
|
|
501
647
|
} | null;
|
|
648
|
+
} | {
|
|
649
|
+
id: string;
|
|
650
|
+
/** The staking infrastructure provider used to manage the stake. */
|
|
651
|
+
provider?: ("Figment") | undefined;
|
|
652
|
+
/** Wallet id. */
|
|
653
|
+
walletId: string;
|
|
654
|
+
/** Status of the stake position.
|
|
655
|
+
|
|
656
|
+
| Status | Definition |
|
|
657
|
+
| --- | --- |
|
|
658
|
+
| `Staking` | The stake is being created and funds are being delegated to the validator. |
|
|
659
|
+
| `Active` | The stake is active and earning rewards. |
|
|
660
|
+
| `Unbonding` | The stake is in the process of being unbonded (cooldown period). |
|
|
661
|
+
| `Unbond` | The stake has been unbonded and is ready for withdrawal. |
|
|
662
|
+
| `Withdrawing` | The staked funds are in the process of being withdrawn. |
|
|
663
|
+
| `Withdrawn` | The staked funds have been fully withdrawn. |
|
|
664
|
+
| `Failed` | The staking operation failed. | */
|
|
665
|
+
status: "Active" | "Failed" | "Staking" | "Unbonding" | "Unbond" | "Withdrawing" | "Withdrawn";
|
|
666
|
+
/** The user who initiated the request. */
|
|
667
|
+
requester: {
|
|
668
|
+
/** User id. */
|
|
669
|
+
userId: string;
|
|
670
|
+
/** Token id. */
|
|
671
|
+
tokenId?: string | undefined;
|
|
672
|
+
};
|
|
673
|
+
requestBody: ({
|
|
674
|
+
protocol: "Babylon";
|
|
675
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
676
|
+
walletId: string;
|
|
677
|
+
/** Staking Provider */
|
|
678
|
+
provider: "Figment";
|
|
679
|
+
/** Transaction amount denominated in min units */
|
|
680
|
+
amount: string;
|
|
681
|
+
duration: number;
|
|
682
|
+
} | {
|
|
683
|
+
protocol: "Ethereum";
|
|
684
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
685
|
+
walletId: string;
|
|
686
|
+
/** Staking Provider */
|
|
687
|
+
provider: "Figment";
|
|
688
|
+
/** Transaction amount denominated in min units */
|
|
689
|
+
amount: string;
|
|
690
|
+
} | {
|
|
691
|
+
protocol: "Iota";
|
|
692
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
693
|
+
walletId: string;
|
|
694
|
+
validator: string;
|
|
695
|
+
/** Transaction amount denominated in min units */
|
|
696
|
+
amount: string;
|
|
697
|
+
lockedIotas?: string[] | undefined;
|
|
698
|
+
} | {
|
|
699
|
+
protocol: "Xdc";
|
|
700
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
701
|
+
walletId: string;
|
|
702
|
+
/** Coinbase address of the XDC masternode to register */
|
|
703
|
+
candidate: string;
|
|
704
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
705
|
+
amount: string;
|
|
706
|
+
}) & {
|
|
707
|
+
externalId?: string | undefined;
|
|
708
|
+
};
|
|
709
|
+
dateCreated: string;
|
|
710
|
+
protocol: "Xdc";
|
|
711
|
+
data: {
|
|
712
|
+
candidate: string;
|
|
713
|
+
amount: string;
|
|
714
|
+
proposeBlockNumber?: string | undefined;
|
|
715
|
+
withdrawBlockNumber?: string | undefined;
|
|
716
|
+
withdrawIndex?: string | undefined;
|
|
717
|
+
};
|
|
502
718
|
}) & {
|
|
503
719
|
actions: {
|
|
504
720
|
id: string;
|
|
@@ -560,6 +776,14 @@ export type CreateStakeActionResponse = ({
|
|
|
560
776
|
/** Transaction amount denominated in min units */
|
|
561
777
|
amount: string;
|
|
562
778
|
lockedIotas?: string[] | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
protocol: "Xdc";
|
|
781
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
782
|
+
walletId: string;
|
|
783
|
+
/** Coinbase address of the XDC masternode to register */
|
|
784
|
+
candidate: string;
|
|
785
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
786
|
+
amount: string;
|
|
563
787
|
}) & {
|
|
564
788
|
externalId?: string | undefined;
|
|
565
789
|
}) | ((({
|
|
@@ -574,7 +798,13 @@ export type CreateStakeActionResponse = ({
|
|
|
574
798
|
}) | {
|
|
575
799
|
protocol: "Ethereum";
|
|
576
800
|
kind: "Withdraw";
|
|
577
|
-
}
|
|
801
|
+
} | ({
|
|
802
|
+
protocol: "Xdc";
|
|
803
|
+
kind: "Withdraw";
|
|
804
|
+
} | {
|
|
805
|
+
protocol: "Xdc";
|
|
806
|
+
kind: "Unbond";
|
|
807
|
+
})) & {
|
|
578
808
|
externalId?: string | undefined;
|
|
579
809
|
});
|
|
580
810
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
@@ -652,6 +882,14 @@ export type GetStakesResponse = ({
|
|
|
652
882
|
/** Transaction amount denominated in min units */
|
|
653
883
|
amount: string;
|
|
654
884
|
lockedIotas?: string[] | undefined;
|
|
885
|
+
} | {
|
|
886
|
+
protocol: "Xdc";
|
|
887
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
888
|
+
walletId: string;
|
|
889
|
+
/** Coinbase address of the XDC masternode to register */
|
|
890
|
+
candidate: string;
|
|
891
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
892
|
+
amount: string;
|
|
655
893
|
}) & {
|
|
656
894
|
externalId?: string | undefined;
|
|
657
895
|
};
|
|
@@ -715,6 +953,14 @@ export type GetStakesResponse = ({
|
|
|
715
953
|
/** Transaction amount denominated in min units */
|
|
716
954
|
amount: string;
|
|
717
955
|
lockedIotas?: string[] | undefined;
|
|
956
|
+
} | {
|
|
957
|
+
protocol: "Xdc";
|
|
958
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
959
|
+
walletId: string;
|
|
960
|
+
/** Coinbase address of the XDC masternode to register */
|
|
961
|
+
candidate: string;
|
|
962
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
963
|
+
amount: string;
|
|
718
964
|
}) & {
|
|
719
965
|
externalId?: string | undefined;
|
|
720
966
|
};
|
|
@@ -780,6 +1026,14 @@ export type GetStakesResponse = ({
|
|
|
780
1026
|
/** Transaction amount denominated in min units */
|
|
781
1027
|
amount: string;
|
|
782
1028
|
lockedIotas?: string[] | undefined;
|
|
1029
|
+
} | {
|
|
1030
|
+
protocol: "Xdc";
|
|
1031
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1032
|
+
walletId: string;
|
|
1033
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1034
|
+
candidate: string;
|
|
1035
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1036
|
+
amount: string;
|
|
783
1037
|
}) & {
|
|
784
1038
|
externalId?: string | undefined;
|
|
785
1039
|
};
|
|
@@ -791,6 +1045,76 @@ export type GetStakesResponse = ({
|
|
|
791
1045
|
withdrawalAddress: string;
|
|
792
1046
|
};
|
|
793
1047
|
} | null;
|
|
1048
|
+
} | {
|
|
1049
|
+
id: string;
|
|
1050
|
+
/** The staking infrastructure provider used to manage the stake. */
|
|
1051
|
+
provider?: ("Figment") | undefined;
|
|
1052
|
+
/** Wallet id. */
|
|
1053
|
+
walletId: string;
|
|
1054
|
+
/** Status of the stake position.
|
|
1055
|
+
|
|
1056
|
+
| Status | Definition |
|
|
1057
|
+
| --- | --- |
|
|
1058
|
+
| `Staking` | The stake is being created and funds are being delegated to the validator. |
|
|
1059
|
+
| `Active` | The stake is active and earning rewards. |
|
|
1060
|
+
| `Unbonding` | The stake is in the process of being unbonded (cooldown period). |
|
|
1061
|
+
| `Unbond` | The stake has been unbonded and is ready for withdrawal. |
|
|
1062
|
+
| `Withdrawing` | The staked funds are in the process of being withdrawn. |
|
|
1063
|
+
| `Withdrawn` | The staked funds have been fully withdrawn. |
|
|
1064
|
+
| `Failed` | The staking operation failed. | */
|
|
1065
|
+
status: "Active" | "Failed" | "Staking" | "Unbonding" | "Unbond" | "Withdrawing" | "Withdrawn";
|
|
1066
|
+
/** The user who initiated the request. */
|
|
1067
|
+
requester: {
|
|
1068
|
+
/** User id. */
|
|
1069
|
+
userId: string;
|
|
1070
|
+
/** Token id. */
|
|
1071
|
+
tokenId?: string | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
requestBody: ({
|
|
1074
|
+
protocol: "Babylon";
|
|
1075
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1076
|
+
walletId: string;
|
|
1077
|
+
/** Staking Provider */
|
|
1078
|
+
provider: "Figment";
|
|
1079
|
+
/** Transaction amount denominated in min units */
|
|
1080
|
+
amount: string;
|
|
1081
|
+
duration: number;
|
|
1082
|
+
} | {
|
|
1083
|
+
protocol: "Ethereum";
|
|
1084
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1085
|
+
walletId: string;
|
|
1086
|
+
/** Staking Provider */
|
|
1087
|
+
provider: "Figment";
|
|
1088
|
+
/** Transaction amount denominated in min units */
|
|
1089
|
+
amount: string;
|
|
1090
|
+
} | {
|
|
1091
|
+
protocol: "Iota";
|
|
1092
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1093
|
+
walletId: string;
|
|
1094
|
+
validator: string;
|
|
1095
|
+
/** Transaction amount denominated in min units */
|
|
1096
|
+
amount: string;
|
|
1097
|
+
lockedIotas?: string[] | undefined;
|
|
1098
|
+
} | {
|
|
1099
|
+
protocol: "Xdc";
|
|
1100
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1101
|
+
walletId: string;
|
|
1102
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1103
|
+
candidate: string;
|
|
1104
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1105
|
+
amount: string;
|
|
1106
|
+
}) & {
|
|
1107
|
+
externalId?: string | undefined;
|
|
1108
|
+
};
|
|
1109
|
+
dateCreated: string;
|
|
1110
|
+
protocol: "Xdc";
|
|
1111
|
+
data: {
|
|
1112
|
+
candidate: string;
|
|
1113
|
+
amount: string;
|
|
1114
|
+
proposeBlockNumber?: string | undefined;
|
|
1115
|
+
withdrawBlockNumber?: string | undefined;
|
|
1116
|
+
withdrawIndex?: string | undefined;
|
|
1117
|
+
};
|
|
794
1118
|
}) & {
|
|
795
1119
|
actions: {
|
|
796
1120
|
id: string;
|
|
@@ -852,6 +1176,14 @@ export type GetStakesResponse = ({
|
|
|
852
1176
|
/** Transaction amount denominated in min units */
|
|
853
1177
|
amount: string;
|
|
854
1178
|
lockedIotas?: string[] | undefined;
|
|
1179
|
+
} | {
|
|
1180
|
+
protocol: "Xdc";
|
|
1181
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1182
|
+
walletId: string;
|
|
1183
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1184
|
+
candidate: string;
|
|
1185
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1186
|
+
amount: string;
|
|
855
1187
|
}) & {
|
|
856
1188
|
externalId?: string | undefined;
|
|
857
1189
|
}) | ((({
|
|
@@ -866,7 +1198,13 @@ export type GetStakesResponse = ({
|
|
|
866
1198
|
}) | {
|
|
867
1199
|
protocol: "Ethereum";
|
|
868
1200
|
kind: "Withdraw";
|
|
869
|
-
}
|
|
1201
|
+
} | ({
|
|
1202
|
+
protocol: "Xdc";
|
|
1203
|
+
kind: "Withdraw";
|
|
1204
|
+
} | {
|
|
1205
|
+
protocol: "Xdc";
|
|
1206
|
+
kind: "Unbond";
|
|
1207
|
+
})) & {
|
|
870
1208
|
externalId?: string | undefined;
|
|
871
1209
|
});
|
|
872
1210
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
@@ -948,6 +1286,14 @@ export type ListStakeActionsResponse = {
|
|
|
948
1286
|
/** Transaction amount denominated in min units */
|
|
949
1287
|
amount: string;
|
|
950
1288
|
lockedIotas?: string[] | undefined;
|
|
1289
|
+
} | {
|
|
1290
|
+
protocol: "Xdc";
|
|
1291
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1292
|
+
walletId: string;
|
|
1293
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1294
|
+
candidate: string;
|
|
1295
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1296
|
+
amount: string;
|
|
951
1297
|
}) & {
|
|
952
1298
|
externalId?: string | undefined;
|
|
953
1299
|
}) | ((({
|
|
@@ -962,7 +1308,13 @@ export type ListStakeActionsResponse = {
|
|
|
962
1308
|
}) | {
|
|
963
1309
|
protocol: "Ethereum";
|
|
964
1310
|
kind: "Withdraw";
|
|
965
|
-
}
|
|
1311
|
+
} | ({
|
|
1312
|
+
protocol: "Xdc";
|
|
1313
|
+
kind: "Withdraw";
|
|
1314
|
+
} | {
|
|
1315
|
+
protocol: "Xdc";
|
|
1316
|
+
kind: "Unbond";
|
|
1317
|
+
})) & {
|
|
966
1318
|
externalId?: string | undefined;
|
|
967
1319
|
});
|
|
968
1320
|
/** The failure reason, if any. Only present when status is Failed. */
|
|
@@ -1033,6 +1385,14 @@ export type ListStakesResponse = {
|
|
|
1033
1385
|
/** Transaction amount denominated in min units */
|
|
1034
1386
|
amount: string;
|
|
1035
1387
|
lockedIotas?: string[] | undefined;
|
|
1388
|
+
} | {
|
|
1389
|
+
protocol: "Xdc";
|
|
1390
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1391
|
+
walletId: string;
|
|
1392
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1393
|
+
candidate: string;
|
|
1394
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1395
|
+
amount: string;
|
|
1036
1396
|
}) & {
|
|
1037
1397
|
externalId?: string | undefined;
|
|
1038
1398
|
};
|
|
@@ -1096,6 +1456,14 @@ export type ListStakesResponse = {
|
|
|
1096
1456
|
/** Transaction amount denominated in min units */
|
|
1097
1457
|
amount: string;
|
|
1098
1458
|
lockedIotas?: string[] | undefined;
|
|
1459
|
+
} | {
|
|
1460
|
+
protocol: "Xdc";
|
|
1461
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1462
|
+
walletId: string;
|
|
1463
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1464
|
+
candidate: string;
|
|
1465
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1466
|
+
amount: string;
|
|
1099
1467
|
}) & {
|
|
1100
1468
|
externalId?: string | undefined;
|
|
1101
1469
|
};
|
|
@@ -1161,6 +1529,14 @@ export type ListStakesResponse = {
|
|
|
1161
1529
|
/** Transaction amount denominated in min units */
|
|
1162
1530
|
amount: string;
|
|
1163
1531
|
lockedIotas?: string[] | undefined;
|
|
1532
|
+
} | {
|
|
1533
|
+
protocol: "Xdc";
|
|
1534
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1535
|
+
walletId: string;
|
|
1536
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1537
|
+
candidate: string;
|
|
1538
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1539
|
+
amount: string;
|
|
1164
1540
|
}) & {
|
|
1165
1541
|
externalId?: string | undefined;
|
|
1166
1542
|
};
|
|
@@ -1172,6 +1548,76 @@ export type ListStakesResponse = {
|
|
|
1172
1548
|
withdrawalAddress: string;
|
|
1173
1549
|
};
|
|
1174
1550
|
} | null;
|
|
1551
|
+
} | {
|
|
1552
|
+
id: string;
|
|
1553
|
+
/** The staking infrastructure provider used to manage the stake. */
|
|
1554
|
+
provider?: ("Figment") | undefined;
|
|
1555
|
+
/** Wallet id. */
|
|
1556
|
+
walletId: string;
|
|
1557
|
+
/** Status of the stake position.
|
|
1558
|
+
|
|
1559
|
+
| Status | Definition |
|
|
1560
|
+
| --- | --- |
|
|
1561
|
+
| `Staking` | The stake is being created and funds are being delegated to the validator. |
|
|
1562
|
+
| `Active` | The stake is active and earning rewards. |
|
|
1563
|
+
| `Unbonding` | The stake is in the process of being unbonded (cooldown period). |
|
|
1564
|
+
| `Unbond` | The stake has been unbonded and is ready for withdrawal. |
|
|
1565
|
+
| `Withdrawing` | The staked funds are in the process of being withdrawn. |
|
|
1566
|
+
| `Withdrawn` | The staked funds have been fully withdrawn. |
|
|
1567
|
+
| `Failed` | The staking operation failed. | */
|
|
1568
|
+
status: "Active" | "Failed" | "Staking" | "Unbonding" | "Unbond" | "Withdrawing" | "Withdrawn";
|
|
1569
|
+
/** The user who initiated the request. */
|
|
1570
|
+
requester: {
|
|
1571
|
+
/** User id. */
|
|
1572
|
+
userId: string;
|
|
1573
|
+
/** Token id. */
|
|
1574
|
+
tokenId?: string | undefined;
|
|
1575
|
+
};
|
|
1576
|
+
requestBody: ({
|
|
1577
|
+
protocol: "Babylon";
|
|
1578
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1579
|
+
walletId: string;
|
|
1580
|
+
/** Staking Provider */
|
|
1581
|
+
provider: "Figment";
|
|
1582
|
+
/** Transaction amount denominated in min units */
|
|
1583
|
+
amount: string;
|
|
1584
|
+
duration: number;
|
|
1585
|
+
} | {
|
|
1586
|
+
protocol: "Ethereum";
|
|
1587
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1588
|
+
walletId: string;
|
|
1589
|
+
/** Staking Provider */
|
|
1590
|
+
provider: "Figment";
|
|
1591
|
+
/** Transaction amount denominated in min units */
|
|
1592
|
+
amount: string;
|
|
1593
|
+
} | {
|
|
1594
|
+
protocol: "Iota";
|
|
1595
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1596
|
+
walletId: string;
|
|
1597
|
+
validator: string;
|
|
1598
|
+
/** Transaction amount denominated in min units */
|
|
1599
|
+
amount: string;
|
|
1600
|
+
lockedIotas?: string[] | undefined;
|
|
1601
|
+
} | {
|
|
1602
|
+
protocol: "Xdc";
|
|
1603
|
+
/** Id of the Dfns wallet making the deposit. */
|
|
1604
|
+
walletId: string;
|
|
1605
|
+
/** Coinbase address of the XDC masternode to register */
|
|
1606
|
+
candidate: string;
|
|
1607
|
+
/** Transaction amount denominated in wei (min 10,000,000 XDC) */
|
|
1608
|
+
amount: string;
|
|
1609
|
+
}) & {
|
|
1610
|
+
externalId?: string | undefined;
|
|
1611
|
+
};
|
|
1612
|
+
dateCreated: string;
|
|
1613
|
+
protocol: "Xdc";
|
|
1614
|
+
data: {
|
|
1615
|
+
candidate: string;
|
|
1616
|
+
amount: string;
|
|
1617
|
+
proposeBlockNumber?: string | undefined;
|
|
1618
|
+
withdrawBlockNumber?: string | undefined;
|
|
1619
|
+
withdrawIndex?: string | undefined;
|
|
1620
|
+
};
|
|
1175
1621
|
})[];
|
|
1176
1622
|
/** token to use as `paginationToken` to request the next page. */
|
|
1177
1623
|
nextPageToken?: string | undefined;
|