@dfns/sdk 0.5.6-alpha.2 → 0.5.6-alpha.4
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.
|
@@ -2,66 +2,66 @@ export type CreateDepositBody = {
|
|
|
2
2
|
kind: "Native";
|
|
3
3
|
amount: string;
|
|
4
4
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
walletId: string;
|
|
6
|
+
otp?: string | undefined;
|
|
7
7
|
} | {
|
|
8
8
|
kind: "Erc20";
|
|
9
9
|
contract: string;
|
|
10
10
|
amount: string;
|
|
11
11
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
walletId: string;
|
|
13
|
+
otp?: string | undefined;
|
|
14
14
|
} | {
|
|
15
15
|
kind: "Erc721";
|
|
16
16
|
contract: string;
|
|
17
17
|
tokenId: string;
|
|
18
18
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
walletId: string;
|
|
20
|
+
otp?: string | undefined;
|
|
21
21
|
} | {
|
|
22
22
|
kind: "Trc10";
|
|
23
23
|
tokenId: string;
|
|
24
24
|
amount: string;
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
walletId: string;
|
|
26
|
+
otp?: string | undefined;
|
|
27
27
|
} | {
|
|
28
28
|
kind: "Trc20";
|
|
29
29
|
contract: string;
|
|
30
30
|
amount: string;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
walletId: string;
|
|
32
|
+
otp?: string | undefined;
|
|
33
33
|
} | {
|
|
34
34
|
kind: "Trc721";
|
|
35
35
|
contract: string;
|
|
36
36
|
tokenId: string;
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
walletId: string;
|
|
38
|
+
otp?: string | undefined;
|
|
39
39
|
} | {
|
|
40
40
|
kind: "Asa";
|
|
41
41
|
assetId: string;
|
|
42
42
|
amount: string;
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
walletId: string;
|
|
44
|
+
otp?: string | undefined;
|
|
45
45
|
} | {
|
|
46
46
|
kind: "Sep41";
|
|
47
47
|
issuer: string;
|
|
48
48
|
assetCode: string;
|
|
49
49
|
amount: string;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
walletId: string;
|
|
51
|
+
otp?: string | undefined;
|
|
52
52
|
} | {
|
|
53
53
|
kind: "Spl" | "Spl2022";
|
|
54
54
|
amount: string;
|
|
55
55
|
mint: string;
|
|
56
56
|
createDestinationAccount?: boolean | undefined;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
walletId: string;
|
|
58
|
+
otp?: string | undefined;
|
|
59
59
|
} | {
|
|
60
60
|
kind: "Tep74";
|
|
61
61
|
master: string;
|
|
62
62
|
amount: string;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
walletId: string;
|
|
64
|
+
otp?: string | undefined;
|
|
65
65
|
};
|
|
66
66
|
export type CreateDepositParams = {
|
|
67
67
|
exchangeId: string;
|
|
@@ -164,11 +164,13 @@ export type CreateExchangeBody = {
|
|
|
164
164
|
publicApiKey: string;
|
|
165
165
|
privateApiKey: string;
|
|
166
166
|
password?: string | undefined;
|
|
167
|
+
otp?: string | undefined;
|
|
167
168
|
};
|
|
168
169
|
writeConfiguration: {
|
|
169
170
|
publicApiKey: string;
|
|
170
171
|
privateApiKey: string;
|
|
171
172
|
password?: string | undefined;
|
|
173
|
+
otp?: string | undefined;
|
|
172
174
|
};
|
|
173
175
|
};
|
|
174
176
|
export type CreateExchangeResponse = {
|
|
@@ -185,65 +187,75 @@ export type CreateWithdrawalBody = {
|
|
|
185
187
|
to: string | string | string | string | string | string | string | string | string | string | string | string | string;
|
|
186
188
|
amount: string;
|
|
187
189
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
188
|
-
|
|
190
|
+
walletId: string;
|
|
191
|
+
otp?: string | undefined;
|
|
189
192
|
} | {
|
|
190
193
|
kind: "Erc20";
|
|
191
194
|
contract: string;
|
|
192
195
|
to: string;
|
|
193
196
|
amount: string;
|
|
194
197
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
195
|
-
|
|
198
|
+
walletId: string;
|
|
199
|
+
otp?: string | undefined;
|
|
196
200
|
} | {
|
|
197
201
|
kind: "Erc721";
|
|
198
202
|
contract: string;
|
|
199
203
|
to: string;
|
|
200
204
|
tokenId: string;
|
|
201
205
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
202
|
-
|
|
206
|
+
walletId: string;
|
|
207
|
+
otp?: string | undefined;
|
|
203
208
|
} | {
|
|
204
209
|
kind: "Trc10";
|
|
205
210
|
tokenId: string;
|
|
206
211
|
to: string;
|
|
207
212
|
amount: string;
|
|
208
|
-
|
|
213
|
+
walletId: string;
|
|
214
|
+
otp?: string | undefined;
|
|
209
215
|
} | {
|
|
210
216
|
kind: "Trc20";
|
|
211
217
|
contract: string;
|
|
212
218
|
to: string;
|
|
213
219
|
amount: string;
|
|
214
|
-
|
|
220
|
+
walletId: string;
|
|
221
|
+
otp?: string | undefined;
|
|
215
222
|
} | {
|
|
216
223
|
kind: "Trc721";
|
|
217
224
|
contract: string;
|
|
218
225
|
to: string;
|
|
219
226
|
tokenId: string;
|
|
220
|
-
|
|
227
|
+
walletId: string;
|
|
228
|
+
otp?: string | undefined;
|
|
221
229
|
} | {
|
|
222
230
|
kind: "Asa";
|
|
223
231
|
assetId: string;
|
|
224
232
|
to: string;
|
|
225
233
|
amount: string;
|
|
226
|
-
|
|
234
|
+
walletId: string;
|
|
235
|
+
otp?: string | undefined;
|
|
227
236
|
} | {
|
|
228
237
|
kind: "Sep41";
|
|
229
238
|
issuer: string;
|
|
230
239
|
assetCode: string;
|
|
231
240
|
to: string;
|
|
232
241
|
amount: string;
|
|
233
|
-
|
|
242
|
+
walletId: string;
|
|
243
|
+
otp?: string | undefined;
|
|
234
244
|
} | {
|
|
235
245
|
kind: "Spl" | "Spl2022";
|
|
236
246
|
to: string;
|
|
237
247
|
amount: string;
|
|
238
248
|
mint: string;
|
|
239
249
|
createDestinationAccount?: boolean | undefined;
|
|
240
|
-
|
|
250
|
+
walletId: string;
|
|
251
|
+
otp?: string | undefined;
|
|
241
252
|
} | {
|
|
242
253
|
kind: "Tep74";
|
|
243
254
|
to: string;
|
|
244
255
|
master: string;
|
|
245
256
|
amount: string;
|
|
246
|
-
|
|
257
|
+
walletId: string;
|
|
258
|
+
otp?: string | undefined;
|
|
247
259
|
};
|
|
248
260
|
export type CreateWithdrawalParams = {
|
|
249
261
|
exchangeId: string;
|
|
@@ -368,58 +380,30 @@ export type ListAccountAssetsResponse = {
|
|
|
368
380
|
items: {
|
|
369
381
|
symbol: string;
|
|
370
382
|
balance: string;
|
|
371
|
-
decimals: number;
|
|
372
383
|
networks: (({
|
|
373
384
|
kind: "Native";
|
|
374
|
-
symbol?: string | undefined;
|
|
375
|
-
decimals: number;
|
|
376
|
-
verified?: boolean | undefined;
|
|
377
|
-
balance: string;
|
|
378
385
|
} | {
|
|
379
386
|
kind: "Asa";
|
|
380
387
|
assetId: string;
|
|
381
|
-
symbol?: string | undefined;
|
|
382
|
-
decimals: number;
|
|
383
|
-
verified?: boolean | undefined;
|
|
384
|
-
balance: string;
|
|
385
388
|
} | {
|
|
386
389
|
kind: "Erc20" | "Trc20";
|
|
387
390
|
contract: string;
|
|
388
|
-
symbol?: string | undefined;
|
|
389
|
-
decimals: number;
|
|
390
|
-
verified?: boolean | undefined;
|
|
391
|
-
balance: string;
|
|
392
391
|
} | {
|
|
393
392
|
kind: "Sep41";
|
|
394
393
|
issuer: string;
|
|
395
394
|
assetCode: string;
|
|
396
|
-
symbol?: string | undefined;
|
|
397
|
-
decimals: number;
|
|
398
|
-
verified?: boolean | undefined;
|
|
399
|
-
balance: string;
|
|
400
395
|
} | {
|
|
401
396
|
kind: "Trc10";
|
|
402
397
|
tokenId: string;
|
|
403
|
-
symbol?: string | undefined;
|
|
404
|
-
decimals: number;
|
|
405
|
-
verified?: boolean | undefined;
|
|
406
|
-
balance: string;
|
|
407
398
|
} | {
|
|
408
399
|
kind: "Spl" | "Spl2022";
|
|
409
400
|
mint: string;
|
|
410
|
-
symbol?: string | undefined;
|
|
411
|
-
decimals: number;
|
|
412
|
-
verified?: boolean | undefined;
|
|
413
|
-
balance: string;
|
|
414
401
|
} | {
|
|
415
402
|
kind: "Tep74";
|
|
416
403
|
master: string;
|
|
417
|
-
symbol?: string | undefined;
|
|
418
|
-
decimals: number;
|
|
419
|
-
verified?: boolean | undefined;
|
|
420
|
-
balance: string;
|
|
421
404
|
}) & {
|
|
422
405
|
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
406
|
+
decimals: number;
|
|
423
407
|
})[];
|
|
424
408
|
}[];
|
|
425
409
|
nextPageToken?: string | undefined;
|
|
@@ -499,51 +499,28 @@ export type GetWalletAssetsParams = {
|
|
|
499
499
|
export type GetWalletAssetsResponse = {
|
|
500
500
|
walletId: string;
|
|
501
501
|
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "Ton" | "TonTestnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
502
|
-
assets: ({
|
|
502
|
+
assets: (({
|
|
503
503
|
kind: "Native";
|
|
504
|
-
symbol?: string | undefined;
|
|
505
|
-
decimals: number;
|
|
506
|
-
verified?: boolean | undefined;
|
|
507
|
-
balance: string;
|
|
508
504
|
} | {
|
|
509
505
|
kind: "Asa";
|
|
510
506
|
assetId: string;
|
|
511
|
-
symbol?: string | undefined;
|
|
512
|
-
decimals: number;
|
|
513
|
-
verified?: boolean | undefined;
|
|
514
|
-
balance: string;
|
|
515
507
|
} | {
|
|
516
508
|
kind: "Erc20" | "Trc20";
|
|
517
509
|
contract: string;
|
|
518
|
-
symbol?: string | undefined;
|
|
519
|
-
decimals: number;
|
|
520
|
-
verified?: boolean | undefined;
|
|
521
|
-
balance: string;
|
|
522
510
|
} | {
|
|
523
511
|
kind: "Sep41";
|
|
524
512
|
issuer: string;
|
|
525
513
|
assetCode: string;
|
|
526
|
-
symbol?: string | undefined;
|
|
527
|
-
decimals: number;
|
|
528
|
-
verified?: boolean | undefined;
|
|
529
|
-
balance: string;
|
|
530
514
|
} | {
|
|
531
515
|
kind: "Trc10";
|
|
532
516
|
tokenId: string;
|
|
533
|
-
symbol?: string | undefined;
|
|
534
|
-
decimals: number;
|
|
535
|
-
verified?: boolean | undefined;
|
|
536
|
-
balance: string;
|
|
537
517
|
} | {
|
|
538
518
|
kind: "Spl" | "Spl2022";
|
|
539
519
|
mint: string;
|
|
540
|
-
symbol?: string | undefined;
|
|
541
|
-
decimals: number;
|
|
542
|
-
verified?: boolean | undefined;
|
|
543
|
-
balance: string;
|
|
544
520
|
} | {
|
|
545
521
|
kind: "Tep74";
|
|
546
522
|
master: string;
|
|
523
|
+
}) & {
|
|
547
524
|
symbol?: string | undefined;
|
|
548
525
|
decimals: number;
|
|
549
526
|
verified?: boolean | undefined;
|