@dfns/sdk 0.5.6-alpha.7 → 0.5.6-alpha.9
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/auth/types.d.ts +2 -2
- package/generated/exchanges/client.d.ts +1 -0
- package/generated/exchanges/client.js +11 -0
- package/generated/exchanges/delegatedClient.d.ts +1 -0
- package/generated/exchanges/delegatedClient.js +11 -0
- package/generated/exchanges/types.d.ts +69 -31
- package/generated/networks/types.d.ts +3 -3
- package/generated/policies/types.d.ts +114 -45
- package/generated/wallets/types.d.ts +123 -34
- package/package.json +1 -1
|
@@ -1954,7 +1954,7 @@ export type RegisterEndUserBody = {
|
|
|
1954
1954
|
encryptedPrivateKey?: string | undefined;
|
|
1955
1955
|
} | undefined;
|
|
1956
1956
|
wallets: {
|
|
1957
|
-
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";
|
|
1957
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1958
1958
|
name?: string | undefined;
|
|
1959
1959
|
}[];
|
|
1960
1960
|
};
|
|
@@ -1974,7 +1974,7 @@ export type RegisterEndUserResponse = {
|
|
|
1974
1974
|
};
|
|
1975
1975
|
wallets: {
|
|
1976
1976
|
id: string;
|
|
1977
|
-
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" | "
|
|
1977
|
+
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" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
1978
1978
|
address?: string | undefined;
|
|
1979
1979
|
signingKey: {
|
|
1980
1980
|
scheme: "ECDSA" | "EdDSA";
|
|
@@ -10,5 +10,6 @@ export declare class ExchangesClient {
|
|
|
10
10
|
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
11
11
|
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
12
12
|
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
13
|
+
listAssetWithdrawalNetworks(request: T.ListAssetWithdrawalNetworksRequest): Promise<T.ListAssetWithdrawalNetworksResponse>;
|
|
13
14
|
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
14
15
|
}
|
|
@@ -89,6 +89,17 @@ class ExchangesClient {
|
|
|
89
89
|
});
|
|
90
90
|
return response.json();
|
|
91
91
|
}
|
|
92
|
+
async listAssetWithdrawalNetworks(request) {
|
|
93
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets/:asset/withdrawal-networks', {
|
|
94
|
+
path: request ?? {},
|
|
95
|
+
query: {},
|
|
96
|
+
});
|
|
97
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
98
|
+
method: 'GET',
|
|
99
|
+
apiOptions: this.apiOptions,
|
|
100
|
+
});
|
|
101
|
+
return response.json();
|
|
102
|
+
}
|
|
92
103
|
async listExchanges(request) {
|
|
93
104
|
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
94
105
|
path: request ?? {},
|
|
@@ -15,5 +15,6 @@ export declare class DelegatedExchangesClient {
|
|
|
15
15
|
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
16
16
|
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
17
17
|
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
18
|
+
listAssetWithdrawalNetworks(request: T.ListAssetWithdrawalNetworksRequest): Promise<T.ListAssetWithdrawalNetworksResponse>;
|
|
18
19
|
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
19
20
|
}
|
|
@@ -149,6 +149,17 @@ class DelegatedExchangesClient {
|
|
|
149
149
|
});
|
|
150
150
|
return response.json();
|
|
151
151
|
}
|
|
152
|
+
async listAssetWithdrawalNetworks(request) {
|
|
153
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets/:asset/withdrawal-networks', {
|
|
154
|
+
path: request ?? {},
|
|
155
|
+
query: {},
|
|
156
|
+
});
|
|
157
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
158
|
+
method: 'GET',
|
|
159
|
+
apiOptions: this.apiOptions,
|
|
160
|
+
});
|
|
161
|
+
return response.json();
|
|
162
|
+
}
|
|
152
163
|
async listExchanges(request) {
|
|
153
164
|
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
154
165
|
path: request ?? {},
|
|
@@ -2,6 +2,7 @@ export type CreateDepositBody = {
|
|
|
2
2
|
kind: "Native";
|
|
3
3
|
amount: string;
|
|
4
4
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
5
|
+
externalId?: string | undefined;
|
|
5
6
|
walletId: string;
|
|
6
7
|
otp?: string | undefined;
|
|
7
8
|
} | {
|
|
@@ -9,24 +10,28 @@ export type CreateDepositBody = {
|
|
|
9
10
|
contract: string;
|
|
10
11
|
amount: string;
|
|
11
12
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
13
|
+
externalId?: string | undefined;
|
|
12
14
|
walletId: string;
|
|
13
15
|
otp?: string | undefined;
|
|
14
16
|
} | {
|
|
15
17
|
kind: "Trc10";
|
|
16
18
|
tokenId: string;
|
|
17
19
|
amount: string;
|
|
20
|
+
externalId?: string | undefined;
|
|
18
21
|
walletId: string;
|
|
19
22
|
otp?: string | undefined;
|
|
20
23
|
} | {
|
|
21
24
|
kind: "Trc20";
|
|
22
25
|
contract: string;
|
|
23
26
|
amount: string;
|
|
27
|
+
externalId?: string | undefined;
|
|
24
28
|
walletId: string;
|
|
25
29
|
otp?: string | undefined;
|
|
26
30
|
} | {
|
|
27
31
|
kind: "Asa";
|
|
28
32
|
assetId: string;
|
|
29
33
|
amount: string;
|
|
34
|
+
externalId?: string | undefined;
|
|
30
35
|
walletId: string;
|
|
31
36
|
otp?: string | undefined;
|
|
32
37
|
} | {
|
|
@@ -34,6 +39,7 @@ export type CreateDepositBody = {
|
|
|
34
39
|
issuer: string;
|
|
35
40
|
assetCode: string;
|
|
36
41
|
amount: string;
|
|
42
|
+
externalId?: string | undefined;
|
|
37
43
|
walletId: string;
|
|
38
44
|
otp?: string | undefined;
|
|
39
45
|
} | {
|
|
@@ -41,12 +47,14 @@ export type CreateDepositBody = {
|
|
|
41
47
|
amount: string;
|
|
42
48
|
mint: string;
|
|
43
49
|
createDestinationAccount?: boolean | undefined;
|
|
50
|
+
externalId?: string | undefined;
|
|
44
51
|
walletId: string;
|
|
45
52
|
otp?: string | undefined;
|
|
46
53
|
} | {
|
|
47
54
|
kind: "Tep74";
|
|
48
55
|
master: string;
|
|
49
56
|
amount: string;
|
|
57
|
+
externalId?: string | undefined;
|
|
50
58
|
walletId: string;
|
|
51
59
|
otp?: string | undefined;
|
|
52
60
|
};
|
|
@@ -58,8 +66,8 @@ export type CreateDepositResponse = {
|
|
|
58
66
|
id: string;
|
|
59
67
|
exchangeId: string;
|
|
60
68
|
accountId: string;
|
|
61
|
-
externalId?: string | undefined;
|
|
62
69
|
transferId?: string | undefined;
|
|
70
|
+
exchangeReference?: string | undefined;
|
|
63
71
|
kind: "Withdrawal" | "Deposit";
|
|
64
72
|
walletId: string;
|
|
65
73
|
requester: {
|
|
@@ -71,6 +79,7 @@ export type CreateDepositResponse = {
|
|
|
71
79
|
kind: "Native";
|
|
72
80
|
amount: string;
|
|
73
81
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
82
|
+
externalId?: string | undefined;
|
|
74
83
|
walletId: string;
|
|
75
84
|
otp?: string | undefined;
|
|
76
85
|
} | {
|
|
@@ -78,24 +87,28 @@ export type CreateDepositResponse = {
|
|
|
78
87
|
contract: string;
|
|
79
88
|
amount: string;
|
|
80
89
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
90
|
+
externalId?: string | undefined;
|
|
81
91
|
walletId: string;
|
|
82
92
|
otp?: string | undefined;
|
|
83
93
|
} | {
|
|
84
94
|
kind: "Trc10";
|
|
85
95
|
tokenId: string;
|
|
86
96
|
amount: string;
|
|
97
|
+
externalId?: string | undefined;
|
|
87
98
|
walletId: string;
|
|
88
99
|
otp?: string | undefined;
|
|
89
100
|
} | {
|
|
90
101
|
kind: "Trc20";
|
|
91
102
|
contract: string;
|
|
92
103
|
amount: string;
|
|
104
|
+
externalId?: string | undefined;
|
|
93
105
|
walletId: string;
|
|
94
106
|
otp?: string | undefined;
|
|
95
107
|
} | {
|
|
96
108
|
kind: "Asa";
|
|
97
109
|
assetId: string;
|
|
98
110
|
amount: string;
|
|
111
|
+
externalId?: string | undefined;
|
|
99
112
|
walletId: string;
|
|
100
113
|
otp?: string | undefined;
|
|
101
114
|
} | {
|
|
@@ -103,6 +116,7 @@ export type CreateDepositResponse = {
|
|
|
103
116
|
issuer: string;
|
|
104
117
|
assetCode: string;
|
|
105
118
|
amount: string;
|
|
119
|
+
externalId?: string | undefined;
|
|
106
120
|
walletId: string;
|
|
107
121
|
otp?: string | undefined;
|
|
108
122
|
} | {
|
|
@@ -110,12 +124,14 @@ export type CreateDepositResponse = {
|
|
|
110
124
|
amount: string;
|
|
111
125
|
mint: string;
|
|
112
126
|
createDestinationAccount?: boolean | undefined;
|
|
127
|
+
externalId?: string | undefined;
|
|
113
128
|
walletId: string;
|
|
114
129
|
otp?: string | undefined;
|
|
115
130
|
} | {
|
|
116
131
|
kind: "Tep74";
|
|
117
132
|
master: string;
|
|
118
133
|
amount: string;
|
|
134
|
+
externalId?: string | undefined;
|
|
119
135
|
walletId: string;
|
|
120
136
|
otp?: string | undefined;
|
|
121
137
|
};
|
|
@@ -126,7 +142,7 @@ export type CreateDepositRequest = CreateDepositParams & {
|
|
|
126
142
|
};
|
|
127
143
|
export type CreateExchangeBody = {
|
|
128
144
|
name?: string | undefined;
|
|
129
|
-
kind: "Binance" | "Kraken" | "
|
|
145
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
130
146
|
readConfiguration: {
|
|
131
147
|
publicApiKey: string;
|
|
132
148
|
privateApiKey: string;
|
|
@@ -143,7 +159,7 @@ export type CreateExchangeBody = {
|
|
|
143
159
|
export type CreateExchangeResponse = {
|
|
144
160
|
id: string;
|
|
145
161
|
name?: string | undefined;
|
|
146
|
-
kind: "Binance" | "Kraken" | "
|
|
162
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
147
163
|
dateCreated: string;
|
|
148
164
|
};
|
|
149
165
|
export type CreateExchangeRequest = {
|
|
@@ -153,6 +169,7 @@ export type CreateWithdrawalBody = {
|
|
|
153
169
|
kind: "Native";
|
|
154
170
|
amount: string;
|
|
155
171
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
172
|
+
externalId?: string | undefined;
|
|
156
173
|
walletId: string;
|
|
157
174
|
otp?: string | undefined;
|
|
158
175
|
} | {
|
|
@@ -160,24 +177,28 @@ export type CreateWithdrawalBody = {
|
|
|
160
177
|
contract: string;
|
|
161
178
|
amount: string;
|
|
162
179
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
180
|
+
externalId?: string | undefined;
|
|
163
181
|
walletId: string;
|
|
164
182
|
otp?: string | undefined;
|
|
165
183
|
} | {
|
|
166
184
|
kind: "Trc10";
|
|
167
185
|
tokenId: string;
|
|
168
186
|
amount: string;
|
|
187
|
+
externalId?: string | undefined;
|
|
169
188
|
walletId: string;
|
|
170
189
|
otp?: string | undefined;
|
|
171
190
|
} | {
|
|
172
191
|
kind: "Trc20";
|
|
173
192
|
contract: string;
|
|
174
193
|
amount: string;
|
|
194
|
+
externalId?: string | undefined;
|
|
175
195
|
walletId: string;
|
|
176
196
|
otp?: string | undefined;
|
|
177
197
|
} | {
|
|
178
198
|
kind: "Asa";
|
|
179
199
|
assetId: string;
|
|
180
200
|
amount: string;
|
|
201
|
+
externalId?: string | undefined;
|
|
181
202
|
walletId: string;
|
|
182
203
|
otp?: string | undefined;
|
|
183
204
|
} | {
|
|
@@ -185,6 +206,7 @@ export type CreateWithdrawalBody = {
|
|
|
185
206
|
issuer: string;
|
|
186
207
|
assetCode: string;
|
|
187
208
|
amount: string;
|
|
209
|
+
externalId?: string | undefined;
|
|
188
210
|
walletId: string;
|
|
189
211
|
otp?: string | undefined;
|
|
190
212
|
} | {
|
|
@@ -192,12 +214,14 @@ export type CreateWithdrawalBody = {
|
|
|
192
214
|
amount: string;
|
|
193
215
|
mint: string;
|
|
194
216
|
createDestinationAccount?: boolean | undefined;
|
|
217
|
+
externalId?: string | undefined;
|
|
195
218
|
walletId: string;
|
|
196
219
|
otp?: string | undefined;
|
|
197
220
|
} | {
|
|
198
221
|
kind: "Tep74";
|
|
199
222
|
master: string;
|
|
200
223
|
amount: string;
|
|
224
|
+
externalId?: string | undefined;
|
|
201
225
|
walletId: string;
|
|
202
226
|
otp?: string | undefined;
|
|
203
227
|
};
|
|
@@ -209,8 +233,8 @@ export type CreateWithdrawalResponse = {
|
|
|
209
233
|
id: string;
|
|
210
234
|
exchangeId: string;
|
|
211
235
|
accountId: string;
|
|
212
|
-
externalId?: string | undefined;
|
|
213
236
|
transferId?: string | undefined;
|
|
237
|
+
exchangeReference?: string | undefined;
|
|
214
238
|
kind: "Withdrawal" | "Deposit";
|
|
215
239
|
walletId: string;
|
|
216
240
|
requester: {
|
|
@@ -222,6 +246,7 @@ export type CreateWithdrawalResponse = {
|
|
|
222
246
|
kind: "Native";
|
|
223
247
|
amount: string;
|
|
224
248
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
249
|
+
externalId?: string | undefined;
|
|
225
250
|
walletId: string;
|
|
226
251
|
otp?: string | undefined;
|
|
227
252
|
} | {
|
|
@@ -229,24 +254,28 @@ export type CreateWithdrawalResponse = {
|
|
|
229
254
|
contract: string;
|
|
230
255
|
amount: string;
|
|
231
256
|
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
257
|
+
externalId?: string | undefined;
|
|
232
258
|
walletId: string;
|
|
233
259
|
otp?: string | undefined;
|
|
234
260
|
} | {
|
|
235
261
|
kind: "Trc10";
|
|
236
262
|
tokenId: string;
|
|
237
263
|
amount: string;
|
|
264
|
+
externalId?: string | undefined;
|
|
238
265
|
walletId: string;
|
|
239
266
|
otp?: string | undefined;
|
|
240
267
|
} | {
|
|
241
268
|
kind: "Trc20";
|
|
242
269
|
contract: string;
|
|
243
270
|
amount: string;
|
|
271
|
+
externalId?: string | undefined;
|
|
244
272
|
walletId: string;
|
|
245
273
|
otp?: string | undefined;
|
|
246
274
|
} | {
|
|
247
275
|
kind: "Asa";
|
|
248
276
|
assetId: string;
|
|
249
277
|
amount: string;
|
|
278
|
+
externalId?: string | undefined;
|
|
250
279
|
walletId: string;
|
|
251
280
|
otp?: string | undefined;
|
|
252
281
|
} | {
|
|
@@ -254,6 +283,7 @@ export type CreateWithdrawalResponse = {
|
|
|
254
283
|
issuer: string;
|
|
255
284
|
assetCode: string;
|
|
256
285
|
amount: string;
|
|
286
|
+
externalId?: string | undefined;
|
|
257
287
|
walletId: string;
|
|
258
288
|
otp?: string | undefined;
|
|
259
289
|
} | {
|
|
@@ -261,12 +291,14 @@ export type CreateWithdrawalResponse = {
|
|
|
261
291
|
amount: string;
|
|
262
292
|
mint: string;
|
|
263
293
|
createDestinationAccount?: boolean | undefined;
|
|
294
|
+
externalId?: string | undefined;
|
|
264
295
|
walletId: string;
|
|
265
296
|
otp?: string | undefined;
|
|
266
297
|
} | {
|
|
267
298
|
kind: "Tep74";
|
|
268
299
|
master: string;
|
|
269
300
|
amount: string;
|
|
301
|
+
externalId?: string | undefined;
|
|
270
302
|
walletId: string;
|
|
271
303
|
otp?: string | undefined;
|
|
272
304
|
};
|
|
@@ -288,7 +320,7 @@ export type GetExchangeParams = {
|
|
|
288
320
|
export type GetExchangeResponse = {
|
|
289
321
|
id: string;
|
|
290
322
|
name?: string | undefined;
|
|
291
|
-
kind: "Binance" | "Kraken" | "
|
|
323
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
292
324
|
dateCreated: string;
|
|
293
325
|
};
|
|
294
326
|
export type GetExchangeRequest = GetExchangeParams;
|
|
@@ -304,31 +336,6 @@ export type ListAccountAssetsResponse = {
|
|
|
304
336
|
items: {
|
|
305
337
|
symbol: string;
|
|
306
338
|
balance: string;
|
|
307
|
-
networks: (({
|
|
308
|
-
kind: "Native";
|
|
309
|
-
} | {
|
|
310
|
-
kind: "Asa";
|
|
311
|
-
assetId: string;
|
|
312
|
-
} | {
|
|
313
|
-
kind: "Erc20" | "Trc20";
|
|
314
|
-
contract: string;
|
|
315
|
-
} | {
|
|
316
|
-
kind: "Sep41";
|
|
317
|
-
issuer: string;
|
|
318
|
-
assetCode: string;
|
|
319
|
-
} | {
|
|
320
|
-
kind: "Trc10";
|
|
321
|
-
tokenId: string;
|
|
322
|
-
} | {
|
|
323
|
-
kind: "Spl" | "Spl2022";
|
|
324
|
-
mint: string;
|
|
325
|
-
} | {
|
|
326
|
-
kind: "Tep74";
|
|
327
|
-
master: string;
|
|
328
|
-
}) & {
|
|
329
|
-
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";
|
|
330
|
-
decimals: number;
|
|
331
|
-
})[];
|
|
332
339
|
}[];
|
|
333
340
|
nextPageToken?: string | undefined;
|
|
334
341
|
};
|
|
@@ -354,6 +361,37 @@ export type ListAccountsResponse = {
|
|
|
354
361
|
export type ListAccountsRequest = ListAccountsParams & {
|
|
355
362
|
query?: ListAccountsQuery;
|
|
356
363
|
};
|
|
364
|
+
export type ListAssetWithdrawalNetworksParams = {
|
|
365
|
+
exchangeId: string;
|
|
366
|
+
accountId: string;
|
|
367
|
+
asset: string;
|
|
368
|
+
};
|
|
369
|
+
export type ListAssetWithdrawalNetworksResponse = (({
|
|
370
|
+
kind: "Native";
|
|
371
|
+
} | {
|
|
372
|
+
kind: "Asa";
|
|
373
|
+
assetId: string;
|
|
374
|
+
} | {
|
|
375
|
+
kind: "Erc20" | "Trc20";
|
|
376
|
+
contract: string;
|
|
377
|
+
} | {
|
|
378
|
+
kind: "Sep41";
|
|
379
|
+
issuer: string;
|
|
380
|
+
assetCode: string;
|
|
381
|
+
} | {
|
|
382
|
+
kind: "Trc10";
|
|
383
|
+
tokenId: string;
|
|
384
|
+
} | {
|
|
385
|
+
kind: "Spl" | "Spl2022";
|
|
386
|
+
mint: string;
|
|
387
|
+
} | {
|
|
388
|
+
kind: "Tep74";
|
|
389
|
+
master: string;
|
|
390
|
+
}) & {
|
|
391
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kaspa" | "KaspaTestnet11" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
392
|
+
decimals: number;
|
|
393
|
+
})[];
|
|
394
|
+
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|
|
357
395
|
export type ListExchangesQuery = {
|
|
358
396
|
limit?: number | undefined;
|
|
359
397
|
paginationToken?: string | undefined;
|
|
@@ -362,7 +400,7 @@ export type ListExchangesResponse = {
|
|
|
362
400
|
items: {
|
|
363
401
|
id: string;
|
|
364
402
|
name?: string | undefined;
|
|
365
|
-
kind: "Binance" | "Kraken" | "
|
|
403
|
+
kind: "Binance" | "Kraken" | "CoinbaseApp";
|
|
366
404
|
dateCreated: string;
|
|
367
405
|
}[];
|
|
368
406
|
nextPageToken?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type GetFeesQuery = {
|
|
2
|
-
network: ("Bitcoin" | "BitcoinTestnet3" | "Litecoin" | "LitecoinTestnet") | ("ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai") | ("Solana" | "SolanaDevnet");
|
|
2
|
+
network: ("Bitcoin" | "BitcoinTestnet3" | "Litecoin" | "LitecoinTestnet") | ("ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia") | ("Solana" | "SolanaDevnet");
|
|
3
3
|
};
|
|
4
4
|
export type GetFeesResponse = {
|
|
5
5
|
kind: "Bitcoin";
|
|
@@ -16,7 +16,7 @@ export type GetFeesResponse = {
|
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
kind: "Eip1559";
|
|
19
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai";
|
|
19
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
20
20
|
blockNumber: number;
|
|
21
21
|
slow: {
|
|
22
22
|
maxPriorityFeePerGas: string;
|
|
@@ -50,7 +50,7 @@ export type GetFeesRequest = {
|
|
|
50
50
|
};
|
|
51
51
|
export type ReadContractBody = {
|
|
52
52
|
kind: "Evm";
|
|
53
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai";
|
|
53
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
54
54
|
contract: string;
|
|
55
55
|
data: string;
|
|
56
56
|
};
|