@console-wallet/dapp-sdk 2.1.0 → 2.1.2
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/CHANGELOG.md +28 -0
- package/README.md +2 -0
- package/dist/cjs/api/client.api.d.ts +16 -5
- package/dist/cjs/api/generated-wallet-api.d.ts +157 -112
- package/dist/cjs/api/generated-wallet-api.js +165 -163
- package/dist/cjs/api/generated-wallet-api.js.map +1 -1
- package/dist/cjs/helpers/handleResponse.helper.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/openapi.json +55 -4
- package/dist/cjs/requests/connect.js +1 -1
- package/dist/cjs/requests/connect.js.map +1 -1
- package/dist/cjs/requests/getContracts.d.ts +17 -0
- package/dist/cjs/requests/getContracts.js +88 -0
- package/dist/cjs/requests/getContracts.js.map +1 -0
- package/dist/cjs/requests/index.d.ts +1 -0
- package/dist/cjs/requests/index.js +1 -0
- package/dist/cjs/requests/index.js.map +1 -1
- package/dist/cjs/types/communication.types.d.ts +2 -1
- package/dist/cjs/types/communication.types.js +1 -0
- package/dist/cjs/types/communication.types.js.map +1 -1
- package/dist/cjs/types/contracts.types.d.ts +8 -0
- package/dist/cjs/types/contracts.types.js +3 -0
- package/dist/cjs/types/contracts.types.js.map +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/esm/api/client.api.d.ts +16 -5
- package/dist/esm/api/generated-wallet-api.d.ts +157 -112
- package/dist/esm/api/generated-wallet-api.js +166 -164
- package/dist/esm/api/generated-wallet-api.js.map +1 -1
- package/dist/esm/helpers/handleResponse.helper.d.ts +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/openapi.json +55 -4
- package/dist/esm/requests/connect.js +1 -1
- package/dist/esm/requests/connect.js.map +1 -1
- package/dist/esm/requests/getContracts.d.ts +17 -0
- package/dist/esm/requests/getContracts.js +84 -0
- package/dist/esm/requests/getContracts.js.map +1 -0
- package/dist/esm/requests/index.d.ts +1 -0
- package/dist/esm/requests/index.js +1 -0
- package/dist/esm/requests/index.js.map +1 -1
- package/dist/esm/types/communication.types.d.ts +2 -1
- package/dist/esm/types/communication.types.js +1 -0
- package/dist/esm/types/communication.types.js.map +1 -1
- package/dist/esm/types/contracts.types.d.ts +8 -0
- package/dist/esm/types/contracts.types.js +2 -0
- package/dist/esm/types/contracts.types.js.map +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/index.js.map +1 -1
- package/package.json +1 -3
|
@@ -26,7 +26,7 @@ export var VERDICT_TYPE;
|
|
|
26
26
|
VERDICT_TYPE["Cbtc"] = "cbtc";
|
|
27
27
|
VERDICT_TYPE["Usdcx"] = "usdcx";
|
|
28
28
|
})(VERDICT_TYPE || (VERDICT_TYPE = {}));
|
|
29
|
-
import axios from
|
|
29
|
+
import axios from "axios";
|
|
30
30
|
export var ContentType;
|
|
31
31
|
(function (ContentType) {
|
|
32
32
|
ContentType["Json"] = "application/json";
|
|
@@ -44,7 +44,7 @@ export class HttpClient {
|
|
|
44
44
|
constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
|
|
45
45
|
this.instance = axios.create({
|
|
46
46
|
...axiosConfig,
|
|
47
|
-
baseURL: axiosConfig.baseURL ||
|
|
47
|
+
baseURL: axiosConfig.baseURL || "",
|
|
48
48
|
});
|
|
49
49
|
this.secure = secure;
|
|
50
50
|
this.format = format;
|
|
@@ -69,7 +69,7 @@ export class HttpClient {
|
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
stringifyFormItem(formItem) {
|
|
72
|
-
if (typeof formItem ===
|
|
72
|
+
if (typeof formItem === "object" && formItem !== null) {
|
|
73
73
|
return JSON.stringify(formItem);
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
@@ -91,16 +91,22 @@ export class HttpClient {
|
|
|
91
91
|
}, new FormData());
|
|
92
92
|
}
|
|
93
93
|
request = async ({ secure, path, type, query, format, body, ...params }) => {
|
|
94
|
-
const secureParams = ((typeof secure ===
|
|
94
|
+
const secureParams = ((typeof secure === "boolean" ? secure : this.secure) &&
|
|
95
95
|
this.securityWorker &&
|
|
96
96
|
(await this.securityWorker(this.securityData))) ||
|
|
97
97
|
{};
|
|
98
98
|
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
99
99
|
const responseFormat = format || this.format || undefined;
|
|
100
|
-
if (type === ContentType.FormData &&
|
|
100
|
+
if (type === ContentType.FormData &&
|
|
101
|
+
body &&
|
|
102
|
+
body !== null &&
|
|
103
|
+
typeof body === "object") {
|
|
101
104
|
body = this.createFormData(body);
|
|
102
105
|
}
|
|
103
|
-
if (type === ContentType.Text &&
|
|
106
|
+
if (type === ContentType.Text &&
|
|
107
|
+
body &&
|
|
108
|
+
body !== null &&
|
|
109
|
+
typeof body !== "string") {
|
|
104
110
|
body = JSON.stringify(body);
|
|
105
111
|
}
|
|
106
112
|
return this.instance
|
|
@@ -108,7 +114,7 @@ export class HttpClient {
|
|
|
108
114
|
...requestParams,
|
|
109
115
|
headers: {
|
|
110
116
|
...(requestParams.headers || {}),
|
|
111
|
-
...(type ? {
|
|
117
|
+
...(type ? { "Content-Type": type } : {}),
|
|
112
118
|
},
|
|
113
119
|
params: query,
|
|
114
120
|
responseType: responseFormat,
|
|
@@ -134,11 +140,39 @@ export class WalletApi extends HttpClient {
|
|
|
134
140
|
*/
|
|
135
141
|
authControllerCreateSessionToken: (data, params = {}) => this.request({
|
|
136
142
|
path: `/api/v1/auth/session`,
|
|
137
|
-
method:
|
|
143
|
+
method: "POST",
|
|
138
144
|
body: data,
|
|
139
145
|
type: ContentType.Json,
|
|
140
146
|
...params,
|
|
141
147
|
}),
|
|
148
|
+
/**
|
|
149
|
+
* No description
|
|
150
|
+
*
|
|
151
|
+
* @tags auth
|
|
152
|
+
* @name AuthControllerGetAllDeviceTypes
|
|
153
|
+
* @request GET:/api/v1/auth/all-device-types
|
|
154
|
+
*/
|
|
155
|
+
authControllerGetAllDeviceTypes: (query, params = {}) => this.request({
|
|
156
|
+
path: `/api/v1/auth/all-device-types`,
|
|
157
|
+
method: "GET",
|
|
158
|
+
query: query,
|
|
159
|
+
format: "json",
|
|
160
|
+
...params,
|
|
161
|
+
}),
|
|
162
|
+
/**
|
|
163
|
+
* No description
|
|
164
|
+
*
|
|
165
|
+
* @tags auth
|
|
166
|
+
* @name AuthControllerGetIsParticipatedInChainActivities
|
|
167
|
+
* @request GET:/api/v1/auth/is-participated-in-chain
|
|
168
|
+
*/
|
|
169
|
+
authControllerGetIsParticipatedInChainActivities: (query, params = {}) => this.request({
|
|
170
|
+
path: `/api/v1/auth/is-participated-in-chain`,
|
|
171
|
+
method: "GET",
|
|
172
|
+
query: query,
|
|
173
|
+
format: "json",
|
|
174
|
+
...params,
|
|
175
|
+
}),
|
|
142
176
|
/**
|
|
143
177
|
* No description
|
|
144
178
|
*
|
|
@@ -148,10 +182,10 @@ export class WalletApi extends HttpClient {
|
|
|
148
182
|
*/
|
|
149
183
|
cbtcBridgeControllerExecuteDeposit: (data, params = {}) => this.request({
|
|
150
184
|
path: `/api/v1/cbtc/deposits/execute`,
|
|
151
|
-
method:
|
|
185
|
+
method: "POST",
|
|
152
186
|
body: data,
|
|
153
187
|
type: ContentType.Json,
|
|
154
|
-
format:
|
|
188
|
+
format: "json",
|
|
155
189
|
...params,
|
|
156
190
|
}),
|
|
157
191
|
/**
|
|
@@ -163,10 +197,10 @@ export class WalletApi extends HttpClient {
|
|
|
163
197
|
*/
|
|
164
198
|
cbtcBridgeControllerExecuteWithdrawInit: (data, params = {}) => this.request({
|
|
165
199
|
path: `/api/v1/cbtc/withdrawals/accounts/execute`,
|
|
166
|
-
method:
|
|
200
|
+
method: "POST",
|
|
167
201
|
body: data,
|
|
168
202
|
type: ContentType.Json,
|
|
169
|
-
format:
|
|
203
|
+
format: "json",
|
|
170
204
|
...params,
|
|
171
205
|
}),
|
|
172
206
|
/**
|
|
@@ -178,10 +212,10 @@ export class WalletApi extends HttpClient {
|
|
|
178
212
|
*/
|
|
179
213
|
cbtcBridgeControllerExecuteWithdrawRequest: (data, params = {}) => this.request({
|
|
180
214
|
path: `/api/v1/cbtc/withdrawals/execute`,
|
|
181
|
-
method:
|
|
215
|
+
method: "POST",
|
|
182
216
|
body: data,
|
|
183
217
|
type: ContentType.Json,
|
|
184
|
-
format:
|
|
218
|
+
format: "json",
|
|
185
219
|
...params,
|
|
186
220
|
}),
|
|
187
221
|
/**
|
|
@@ -193,9 +227,23 @@ export class WalletApi extends HttpClient {
|
|
|
193
227
|
*/
|
|
194
228
|
cbtcBridgeControllerGetDepositAccounts: (query, params = {}) => this.request({
|
|
195
229
|
path: `/api/v1/cbtc/accounts/deposits`,
|
|
196
|
-
method:
|
|
230
|
+
method: "GET",
|
|
197
231
|
query: query,
|
|
198
|
-
format:
|
|
232
|
+
format: "json",
|
|
233
|
+
...params,
|
|
234
|
+
}),
|
|
235
|
+
/**
|
|
236
|
+
* No description
|
|
237
|
+
*
|
|
238
|
+
* @tags cbtc
|
|
239
|
+
* @name CbtcBridgeControllerGetDepositHistory
|
|
240
|
+
* @request GET:/api/v1/cbtc/deposits/history
|
|
241
|
+
*/
|
|
242
|
+
cbtcBridgeControllerGetDepositHistory: (query, params = {}) => this.request({
|
|
243
|
+
path: `/api/v1/cbtc/deposits/history`,
|
|
244
|
+
method: "GET",
|
|
245
|
+
query: query,
|
|
246
|
+
format: "json",
|
|
199
247
|
...params,
|
|
200
248
|
}),
|
|
201
249
|
/**
|
|
@@ -207,9 +255,9 @@ export class WalletApi extends HttpClient {
|
|
|
207
255
|
*/
|
|
208
256
|
cbtcBridgeControllerGetHoldings: (query, params = {}) => this.request({
|
|
209
257
|
path: `/api/v1/cbtc/holdings`,
|
|
210
|
-
method:
|
|
258
|
+
method: "GET",
|
|
211
259
|
query: query,
|
|
212
|
-
format:
|
|
260
|
+
format: "json",
|
|
213
261
|
...params,
|
|
214
262
|
}),
|
|
215
263
|
/**
|
|
@@ -221,9 +269,9 @@ export class WalletApi extends HttpClient {
|
|
|
221
269
|
*/
|
|
222
270
|
cbtcBridgeControllerGetWithdrawAccounts: (query, params = {}) => this.request({
|
|
223
271
|
path: `/api/v1/cbtc/accounts/withdrawals`,
|
|
224
|
-
method:
|
|
272
|
+
method: "GET",
|
|
225
273
|
query: query,
|
|
226
|
-
format:
|
|
274
|
+
format: "json",
|
|
227
275
|
...params,
|
|
228
276
|
}),
|
|
229
277
|
/**
|
|
@@ -235,9 +283,9 @@ export class WalletApi extends HttpClient {
|
|
|
235
283
|
*/
|
|
236
284
|
cbtcBridgeControllerGetWithdrawalHistory: (query, params = {}) => this.request({
|
|
237
285
|
path: `/api/v1/cbtc/withdrawals/history`,
|
|
238
|
-
method:
|
|
286
|
+
method: "GET",
|
|
239
287
|
query: query,
|
|
240
|
-
format:
|
|
288
|
+
format: "json",
|
|
241
289
|
...params,
|
|
242
290
|
}),
|
|
243
291
|
/**
|
|
@@ -249,9 +297,9 @@ export class WalletApi extends HttpClient {
|
|
|
249
297
|
*/
|
|
250
298
|
cbtcBridgeControllerGetWithdrawRequests: (query, params = {}) => this.request({
|
|
251
299
|
path: `/api/v1/cbtc/withdrawals/requests`,
|
|
252
|
-
method:
|
|
300
|
+
method: "GET",
|
|
253
301
|
query: query,
|
|
254
|
-
format:
|
|
302
|
+
format: "json",
|
|
255
303
|
...params,
|
|
256
304
|
}),
|
|
257
305
|
/**
|
|
@@ -263,10 +311,10 @@ export class WalletApi extends HttpClient {
|
|
|
263
311
|
*/
|
|
264
312
|
cbtcBridgeControllerPrepareDeposit: (data, params = {}) => this.request({
|
|
265
313
|
path: `/api/v1/cbtc/deposits/prepare`,
|
|
266
|
-
method:
|
|
314
|
+
method: "POST",
|
|
267
315
|
body: data,
|
|
268
316
|
type: ContentType.Json,
|
|
269
|
-
format:
|
|
317
|
+
format: "json",
|
|
270
318
|
...params,
|
|
271
319
|
}),
|
|
272
320
|
/**
|
|
@@ -278,10 +326,10 @@ export class WalletApi extends HttpClient {
|
|
|
278
326
|
*/
|
|
279
327
|
cbtcBridgeControllerPrepareWithdrawInit: (data, params = {}) => this.request({
|
|
280
328
|
path: `/api/v1/cbtc/withdrawals/accounts/prepare`,
|
|
281
|
-
method:
|
|
329
|
+
method: "POST",
|
|
282
330
|
body: data,
|
|
283
331
|
type: ContentType.Json,
|
|
284
|
-
format:
|
|
332
|
+
format: "json",
|
|
285
333
|
...params,
|
|
286
334
|
}),
|
|
287
335
|
/**
|
|
@@ -293,10 +341,10 @@ export class WalletApi extends HttpClient {
|
|
|
293
341
|
*/
|
|
294
342
|
cbtcBridgeControllerPrepareWithdrawRequest: (data, params = {}) => this.request({
|
|
295
343
|
path: `/api/v1/cbtc/withdrawals/prepare`,
|
|
296
|
-
method:
|
|
344
|
+
method: "POST",
|
|
297
345
|
body: data,
|
|
298
346
|
type: ContentType.Json,
|
|
299
|
-
format:
|
|
347
|
+
format: "json",
|
|
300
348
|
...params,
|
|
301
349
|
}),
|
|
302
350
|
/**
|
|
@@ -309,11 +357,11 @@ export class WalletApi extends HttpClient {
|
|
|
309
357
|
*/
|
|
310
358
|
evmControllerAddUserEvmWalletAddress: (partyId, data, params = {}) => this.request({
|
|
311
359
|
path: `/api/v1/evm/${partyId}/address`,
|
|
312
|
-
method:
|
|
360
|
+
method: "POST",
|
|
313
361
|
body: data,
|
|
314
362
|
secure: true,
|
|
315
363
|
type: ContentType.Json,
|
|
316
|
-
format:
|
|
364
|
+
format: "json",
|
|
317
365
|
...params,
|
|
318
366
|
}),
|
|
319
367
|
/**
|
|
@@ -326,11 +374,11 @@ export class WalletApi extends HttpClient {
|
|
|
326
374
|
*/
|
|
327
375
|
evmControllerAddUserEvmWalletAddresses: (partyId, data, params = {}) => this.request({
|
|
328
376
|
path: `/api/v1/evm/${partyId}/address/bulk`,
|
|
329
|
-
method:
|
|
377
|
+
method: "POST",
|
|
330
378
|
body: data,
|
|
331
379
|
secure: true,
|
|
332
380
|
type: ContentType.Json,
|
|
333
|
-
format:
|
|
381
|
+
format: "json",
|
|
334
382
|
...params,
|
|
335
383
|
}),
|
|
336
384
|
/**
|
|
@@ -342,9 +390,9 @@ export class WalletApi extends HttpClient {
|
|
|
342
390
|
*/
|
|
343
391
|
externalPartyControllerGetPartyByFingerprint: (query, params = {}) => this.request({
|
|
344
392
|
path: `/api/v1/external-party/by-fingerprint`,
|
|
345
|
-
method:
|
|
393
|
+
method: "GET",
|
|
346
394
|
query: query,
|
|
347
|
-
format:
|
|
395
|
+
format: "json",
|
|
348
396
|
...params,
|
|
349
397
|
}),
|
|
350
398
|
/**
|
|
@@ -356,10 +404,10 @@ export class WalletApi extends HttpClient {
|
|
|
356
404
|
*/
|
|
357
405
|
externalPartyControllerPrepareExternalParty: (data, params = {}) => this.request({
|
|
358
406
|
path: `/api/v1/external-party/prepare`,
|
|
359
|
-
method:
|
|
407
|
+
method: "POST",
|
|
360
408
|
body: data,
|
|
361
409
|
type: ContentType.Json,
|
|
362
|
-
format:
|
|
410
|
+
format: "json",
|
|
363
411
|
...params,
|
|
364
412
|
}),
|
|
365
413
|
/**
|
|
@@ -371,10 +419,10 @@ export class WalletApi extends HttpClient {
|
|
|
371
419
|
*/
|
|
372
420
|
externalPartyControllerSubmitExternalParty: (data, params = {}) => this.request({
|
|
373
421
|
path: `/api/v1/external-party/submit`,
|
|
374
|
-
method:
|
|
422
|
+
method: "POST",
|
|
375
423
|
body: data,
|
|
376
424
|
type: ContentType.Json,
|
|
377
|
-
format:
|
|
425
|
+
format: "json",
|
|
378
426
|
...params,
|
|
379
427
|
}),
|
|
380
428
|
/**
|
|
@@ -386,10 +434,10 @@ export class WalletApi extends HttpClient {
|
|
|
386
434
|
*/
|
|
387
435
|
invitationsControllerRequestInvitation: (data, params = {}) => this.request({
|
|
388
436
|
path: `/api/v1/invitations/request`,
|
|
389
|
-
method:
|
|
437
|
+
method: "POST",
|
|
390
438
|
body: data,
|
|
391
439
|
type: ContentType.Json,
|
|
392
|
-
format:
|
|
440
|
+
format: "json",
|
|
393
441
|
...params,
|
|
394
442
|
}),
|
|
395
443
|
/**
|
|
@@ -401,10 +449,10 @@ export class WalletApi extends HttpClient {
|
|
|
401
449
|
*/
|
|
402
450
|
invitationsControllerVerifyInvitation: (data, params = {}) => this.request({
|
|
403
451
|
path: `/api/v1/invitations/verification`,
|
|
404
|
-
method:
|
|
452
|
+
method: "POST",
|
|
405
453
|
body: data,
|
|
406
454
|
type: ContentType.Json,
|
|
407
|
-
format:
|
|
455
|
+
format: "json",
|
|
408
456
|
...params,
|
|
409
457
|
}),
|
|
410
458
|
/**
|
|
@@ -416,9 +464,9 @@ export class WalletApi extends HttpClient {
|
|
|
416
464
|
*/
|
|
417
465
|
mergeDelegationControllerGetMergeUtxosStatus: (query, params = {}) => this.request({
|
|
418
466
|
path: `/api/v1/token-standard/merge-delegation/status`,
|
|
419
|
-
method:
|
|
467
|
+
method: "GET",
|
|
420
468
|
query: query,
|
|
421
|
-
format:
|
|
469
|
+
format: "json",
|
|
422
470
|
...params,
|
|
423
471
|
}),
|
|
424
472
|
/**
|
|
@@ -431,11 +479,11 @@ export class WalletApi extends HttpClient {
|
|
|
431
479
|
*/
|
|
432
480
|
mergeDelegationControllerPrepareMergeDelegation: (data, params = {}) => this.request({
|
|
433
481
|
path: `/api/v1/token-standard/merge-delegation/prepare`,
|
|
434
|
-
method:
|
|
482
|
+
method: "POST",
|
|
435
483
|
body: data,
|
|
436
484
|
secure: true,
|
|
437
485
|
type: ContentType.Json,
|
|
438
|
-
format:
|
|
486
|
+
format: "json",
|
|
439
487
|
...params,
|
|
440
488
|
}),
|
|
441
489
|
/**
|
|
@@ -448,11 +496,11 @@ export class WalletApi extends HttpClient {
|
|
|
448
496
|
*/
|
|
449
497
|
mergeDelegationControllerSubmitMergeDelegation: (data, params = {}) => this.request({
|
|
450
498
|
path: `/api/v1/token-standard/merge-delegation/submit`,
|
|
451
|
-
method:
|
|
499
|
+
method: "POST",
|
|
452
500
|
body: data,
|
|
453
501
|
secure: true,
|
|
454
502
|
type: ContentType.Json,
|
|
455
|
-
format:
|
|
503
|
+
format: "json",
|
|
456
504
|
...params,
|
|
457
505
|
}),
|
|
458
506
|
/**
|
|
@@ -465,8 +513,8 @@ export class WalletApi extends HttpClient {
|
|
|
465
513
|
*/
|
|
466
514
|
proxyCcviewUserApiControllerGetDevice: (deviceId, params = {}) => this.request({
|
|
467
515
|
path: `/api/v1/proxy/ccview-user-api/mobile/notifications/devices/${deviceId}`,
|
|
468
|
-
method:
|
|
469
|
-
format:
|
|
516
|
+
method: "GET",
|
|
517
|
+
format: "json",
|
|
470
518
|
...params,
|
|
471
519
|
}),
|
|
472
520
|
/**
|
|
@@ -479,10 +527,10 @@ export class WalletApi extends HttpClient {
|
|
|
479
527
|
*/
|
|
480
528
|
proxyCcviewUserApiControllerSubscribe: (data, params = {}) => this.request({
|
|
481
529
|
path: `/api/v1/proxy/ccview-user-api/mobile/notifications/subscribe`,
|
|
482
|
-
method:
|
|
530
|
+
method: "POST",
|
|
483
531
|
body: data,
|
|
484
532
|
type: ContentType.Json,
|
|
485
|
-
format:
|
|
533
|
+
format: "json",
|
|
486
534
|
...params,
|
|
487
535
|
}),
|
|
488
536
|
/**
|
|
@@ -495,10 +543,10 @@ export class WalletApi extends HttpClient {
|
|
|
495
543
|
*/
|
|
496
544
|
proxyCcviewUserApiControllerUnsubscribe: (data, params = {}) => this.request({
|
|
497
545
|
path: `/api/v1/proxy/ccview-user-api/mobile/notifications/unsubscribe`,
|
|
498
|
-
method:
|
|
546
|
+
method: "DELETE",
|
|
499
547
|
body: data,
|
|
500
548
|
type: ContentType.Json,
|
|
501
|
-
format:
|
|
549
|
+
format: "json",
|
|
502
550
|
...params,
|
|
503
551
|
}),
|
|
504
552
|
/**
|
|
@@ -510,10 +558,10 @@ export class WalletApi extends HttpClient {
|
|
|
510
558
|
*/
|
|
511
559
|
proxyIndexerControllerProxyLegacy: (data, params = {}) => this.request({
|
|
512
560
|
path: `/api/v1/proxy/indexer`,
|
|
513
|
-
method:
|
|
561
|
+
method: "POST",
|
|
514
562
|
body: data,
|
|
515
563
|
type: ContentType.Json,
|
|
516
|
-
format:
|
|
564
|
+
format: "json",
|
|
517
565
|
...params,
|
|
518
566
|
}),
|
|
519
567
|
/**
|
|
@@ -525,10 +573,10 @@ export class WalletApi extends HttpClient {
|
|
|
525
573
|
*/
|
|
526
574
|
proxyIndexerControllerProxyMapped: (data, params = {}) => this.request({
|
|
527
575
|
path: `/api/v1/proxy/indexer/mapped`,
|
|
528
|
-
method:
|
|
576
|
+
method: "POST",
|
|
529
577
|
body: data,
|
|
530
578
|
type: ContentType.Json,
|
|
531
|
-
format:
|
|
579
|
+
format: "json",
|
|
532
580
|
...params,
|
|
533
581
|
}),
|
|
534
582
|
/**
|
|
@@ -540,10 +588,10 @@ export class WalletApi extends HttpClient {
|
|
|
540
588
|
*/
|
|
541
589
|
proxyPriceApiControllerProxy: (data, params = {}) => this.request({
|
|
542
590
|
path: `/api/v1/proxy/price`,
|
|
543
|
-
method:
|
|
591
|
+
method: "POST",
|
|
544
592
|
body: data,
|
|
545
593
|
type: ContentType.Json,
|
|
546
|
-
format:
|
|
594
|
+
format: "json",
|
|
547
595
|
...params,
|
|
548
596
|
}),
|
|
549
597
|
/**
|
|
@@ -555,10 +603,10 @@ export class WalletApi extends HttpClient {
|
|
|
555
603
|
*/
|
|
556
604
|
proxyW3AControllerProxy: (data, params = {}) => this.request({
|
|
557
605
|
path: `/api/v1/proxy/phishing`,
|
|
558
|
-
method:
|
|
606
|
+
method: "POST",
|
|
559
607
|
body: data,
|
|
560
608
|
type: ContentType.Json,
|
|
561
|
-
format:
|
|
609
|
+
format: "json",
|
|
562
610
|
...params,
|
|
563
611
|
}),
|
|
564
612
|
/**
|
|
@@ -570,85 +618,39 @@ export class WalletApi extends HttpClient {
|
|
|
570
618
|
*/
|
|
571
619
|
sdkLedgerProxyControllerProxyRequest: (data, params = {}) => this.request({
|
|
572
620
|
path: `/api/v1/proxy/sdk`,
|
|
573
|
-
method:
|
|
621
|
+
method: "POST",
|
|
574
622
|
body: data,
|
|
575
623
|
type: ContentType.Json,
|
|
576
|
-
format:
|
|
624
|
+
format: "json",
|
|
577
625
|
...params,
|
|
578
626
|
}),
|
|
579
627
|
/**
|
|
580
628
|
* No description
|
|
581
629
|
*
|
|
582
|
-
* @tags
|
|
583
|
-
* @name
|
|
584
|
-
* @request POST:/api/v1/
|
|
585
|
-
* @secure
|
|
586
|
-
*/
|
|
587
|
-
settingControllerCreateSetting: (data, params = {}) => this.request({
|
|
588
|
-
path: `/api/v1/settings`,
|
|
589
|
-
method: 'POST',
|
|
590
|
-
body: data,
|
|
591
|
-
secure: true,
|
|
592
|
-
type: ContentType.Json,
|
|
593
|
-
format: 'json',
|
|
594
|
-
...params,
|
|
595
|
-
}),
|
|
596
|
-
/**
|
|
597
|
-
* No description
|
|
598
|
-
*
|
|
599
|
-
* @tags settings
|
|
600
|
-
* @name SettingControllerDeleteSetting
|
|
601
|
-
* @request DELETE:/api/v1/settings/{id}
|
|
602
|
-
* @secure
|
|
603
|
-
*/
|
|
604
|
-
settingControllerDeleteSetting: (id, params = {}) => this.request({
|
|
605
|
-
path: `/api/v1/settings/${id}`,
|
|
606
|
-
method: 'DELETE',
|
|
607
|
-
secure: true,
|
|
608
|
-
...params,
|
|
609
|
-
}),
|
|
610
|
-
/**
|
|
611
|
-
* No description
|
|
612
|
-
*
|
|
613
|
-
* @tags settings
|
|
614
|
-
* @name SettingControllerGetSettings
|
|
615
|
-
* @request GET:/api/v1/settings
|
|
616
|
-
*/
|
|
617
|
-
settingControllerGetSettings: (params = {}) => this.request({
|
|
618
|
-
path: `/api/v1/settings`,
|
|
619
|
-
method: 'GET',
|
|
620
|
-
format: 'json',
|
|
621
|
-
...params,
|
|
622
|
-
}),
|
|
623
|
-
/**
|
|
624
|
-
* No description
|
|
625
|
-
*
|
|
626
|
-
* @tags settings
|
|
627
|
-
* @name SettingControllerUpdateSetting
|
|
628
|
-
* @request PUT:/api/v1/settings/{id}
|
|
629
|
-
* @secure
|
|
630
|
+
* @tags token-standard
|
|
631
|
+
* @name TokenStandardControllerCreateTap
|
|
632
|
+
* @request POST:/api/v1/token-standard/tap
|
|
630
633
|
*/
|
|
631
|
-
|
|
632
|
-
path: `/api/v1/
|
|
633
|
-
method:
|
|
634
|
+
tokenStandardControllerCreateTap: (data, params = {}) => this.request({
|
|
635
|
+
path: `/api/v1/token-standard/tap`,
|
|
636
|
+
method: "POST",
|
|
634
637
|
body: data,
|
|
635
|
-
secure: true,
|
|
636
638
|
type: ContentType.Json,
|
|
637
|
-
format: 'json',
|
|
638
639
|
...params,
|
|
639
640
|
}),
|
|
640
641
|
/**
|
|
641
642
|
* No description
|
|
642
643
|
*
|
|
643
644
|
* @tags token-standard
|
|
644
|
-
* @name
|
|
645
|
-
* @request POST:/api/v1/token-standard/
|
|
645
|
+
* @name TokenStandardControllerGetActiveContracts
|
|
646
|
+
* @request POST:/api/v1/token-standard/active-contracts/get
|
|
646
647
|
*/
|
|
647
|
-
|
|
648
|
-
path: `/api/v1/token-standard/
|
|
649
|
-
method:
|
|
648
|
+
tokenStandardControllerGetActiveContracts: (data, params = {}) => this.request({
|
|
649
|
+
path: `/api/v1/token-standard/active-contracts/get`,
|
|
650
|
+
method: "POST",
|
|
650
651
|
body: data,
|
|
651
652
|
type: ContentType.Json,
|
|
653
|
+
format: "json",
|
|
652
654
|
...params,
|
|
653
655
|
}),
|
|
654
656
|
/**
|
|
@@ -660,9 +662,9 @@ export class WalletApi extends HttpClient {
|
|
|
660
662
|
*/
|
|
661
663
|
tokenStandardControllerGetBalances: (query, params = {}) => this.request({
|
|
662
664
|
path: `/api/v1/token-standard/balances`,
|
|
663
|
-
method:
|
|
665
|
+
method: "GET",
|
|
664
666
|
query: query,
|
|
665
|
-
format:
|
|
667
|
+
format: "json",
|
|
666
668
|
...params,
|
|
667
669
|
}),
|
|
668
670
|
/**
|
|
@@ -674,9 +676,9 @@ export class WalletApi extends HttpClient {
|
|
|
674
676
|
*/
|
|
675
677
|
tokenStandardControllerGetPendingTransactions: (query, params = {}) => this.request({
|
|
676
678
|
path: `/api/v1/token-standard/transactions/pending`,
|
|
677
|
-
method:
|
|
679
|
+
method: "GET",
|
|
678
680
|
query: query,
|
|
679
|
-
format:
|
|
681
|
+
format: "json",
|
|
680
682
|
...params,
|
|
681
683
|
}),
|
|
682
684
|
/**
|
|
@@ -688,9 +690,9 @@ export class WalletApi extends HttpClient {
|
|
|
688
690
|
*/
|
|
689
691
|
tokenStandardControllerGetPendingTransactionsFull: (query, params = {}) => this.request({
|
|
690
692
|
path: `/api/v1/token-standard/transactions/pending/full`,
|
|
691
|
-
method:
|
|
693
|
+
method: "GET",
|
|
692
694
|
query: query,
|
|
693
|
-
format:
|
|
695
|
+
format: "json",
|
|
694
696
|
...params,
|
|
695
697
|
}),
|
|
696
698
|
/**
|
|
@@ -702,9 +704,9 @@ export class WalletApi extends HttpClient {
|
|
|
702
704
|
*/
|
|
703
705
|
tokenStandardControllerListUtxoHoldings: (query, params = {}) => this.request({
|
|
704
706
|
path: `/api/v1/token-standard/utxo-holdings`,
|
|
705
|
-
method:
|
|
707
|
+
method: "GET",
|
|
706
708
|
query: query,
|
|
707
|
-
format:
|
|
709
|
+
format: "json",
|
|
708
710
|
...params,
|
|
709
711
|
}),
|
|
710
712
|
/**
|
|
@@ -716,9 +718,9 @@ export class WalletApi extends HttpClient {
|
|
|
716
718
|
*/
|
|
717
719
|
transferControllerGetTransferPreApprovalOrFail: (query, params = {}) => this.request({
|
|
718
720
|
path: `/api/v1/token-standard/transfer/pre-approval`,
|
|
719
|
-
method:
|
|
721
|
+
method: "GET",
|
|
720
722
|
query: query,
|
|
721
|
-
format:
|
|
723
|
+
format: "json",
|
|
722
724
|
...params,
|
|
723
725
|
}),
|
|
724
726
|
/**
|
|
@@ -730,10 +732,10 @@ export class WalletApi extends HttpClient {
|
|
|
730
732
|
*/
|
|
731
733
|
transferControllerGetTransferPreApprovals: (data, params = {}) => this.request({
|
|
732
734
|
path: `/api/v1/token-standard/transfer/pre-approval/batch/get`,
|
|
733
|
-
method:
|
|
735
|
+
method: "POST",
|
|
734
736
|
body: data,
|
|
735
737
|
type: ContentType.Json,
|
|
736
|
-
format:
|
|
738
|
+
format: "json",
|
|
737
739
|
...params,
|
|
738
740
|
}),
|
|
739
741
|
/**
|
|
@@ -746,11 +748,11 @@ export class WalletApi extends HttpClient {
|
|
|
746
748
|
*/
|
|
747
749
|
transferControllerPrepareBatchTransfer: (data, params = {}) => this.request({
|
|
748
750
|
path: `/api/v1/token-standard/transfer/batch/prepare`,
|
|
749
|
-
method:
|
|
751
|
+
method: "POST",
|
|
750
752
|
body: data,
|
|
751
753
|
secure: true,
|
|
752
754
|
type: ContentType.Json,
|
|
753
|
-
format:
|
|
755
|
+
format: "json",
|
|
754
756
|
...params,
|
|
755
757
|
}),
|
|
756
758
|
/**
|
|
@@ -763,11 +765,11 @@ export class WalletApi extends HttpClient {
|
|
|
763
765
|
*/
|
|
764
766
|
transferControllerPrepareResolveTransfer: (data, params = {}) => this.request({
|
|
765
767
|
path: `/api/v1/token-standard/transfer/resolve/prepare`,
|
|
766
|
-
method:
|
|
768
|
+
method: "POST",
|
|
767
769
|
body: data,
|
|
768
770
|
secure: true,
|
|
769
771
|
type: ContentType.Json,
|
|
770
|
-
format:
|
|
772
|
+
format: "json",
|
|
771
773
|
...params,
|
|
772
774
|
}),
|
|
773
775
|
/**
|
|
@@ -780,11 +782,11 @@ export class WalletApi extends HttpClient {
|
|
|
780
782
|
*/
|
|
781
783
|
transferControllerPrepareTransfer: (data, params = {}) => this.request({
|
|
782
784
|
path: `/api/v1/token-standard/transfer/prepare`,
|
|
783
|
-
method:
|
|
785
|
+
method: "POST",
|
|
784
786
|
body: data,
|
|
785
787
|
secure: true,
|
|
786
788
|
type: ContentType.Json,
|
|
787
|
-
format:
|
|
789
|
+
format: "json",
|
|
788
790
|
...params,
|
|
789
791
|
}),
|
|
790
792
|
/**
|
|
@@ -797,11 +799,11 @@ export class WalletApi extends HttpClient {
|
|
|
797
799
|
*/
|
|
798
800
|
transferControllerSubmitBatchTransfer: (data, params = {}) => this.request({
|
|
799
801
|
path: `/api/v1/token-standard/transfer/batch/submit`,
|
|
800
|
-
method:
|
|
802
|
+
method: "POST",
|
|
801
803
|
body: data,
|
|
802
804
|
secure: true,
|
|
803
805
|
type: ContentType.Json,
|
|
804
|
-
format:
|
|
806
|
+
format: "json",
|
|
805
807
|
...params,
|
|
806
808
|
}),
|
|
807
809
|
/**
|
|
@@ -814,11 +816,11 @@ export class WalletApi extends HttpClient {
|
|
|
814
816
|
*/
|
|
815
817
|
transferControllerSubmitResolveTransfer: (data, params = {}) => this.request({
|
|
816
818
|
path: `/api/v1/token-standard/transfer/resolve/submit`,
|
|
817
|
-
method:
|
|
819
|
+
method: "POST",
|
|
818
820
|
body: data,
|
|
819
821
|
secure: true,
|
|
820
822
|
type: ContentType.Json,
|
|
821
|
-
format:
|
|
823
|
+
format: "json",
|
|
822
824
|
...params,
|
|
823
825
|
}),
|
|
824
826
|
/**
|
|
@@ -831,11 +833,11 @@ export class WalletApi extends HttpClient {
|
|
|
831
833
|
*/
|
|
832
834
|
transferControllerSubmitTransfer: (data, params = {}) => this.request({
|
|
833
835
|
path: `/api/v1/token-standard/transfer/submit`,
|
|
834
|
-
method:
|
|
836
|
+
method: "POST",
|
|
835
837
|
body: data,
|
|
836
838
|
secure: true,
|
|
837
839
|
type: ContentType.Json,
|
|
838
|
-
format:
|
|
840
|
+
format: "json",
|
|
839
841
|
...params,
|
|
840
842
|
}),
|
|
841
843
|
/**
|
|
@@ -847,9 +849,9 @@ export class WalletApi extends HttpClient {
|
|
|
847
849
|
*/
|
|
848
850
|
transferControllerWaitForTxCompletion: (query, params = {}) => this.request({
|
|
849
851
|
path: `/api/v1/token-standard/transfer/completion/wait`,
|
|
850
|
-
method:
|
|
852
|
+
method: "GET",
|
|
851
853
|
query: query,
|
|
852
|
-
format:
|
|
854
|
+
format: "json",
|
|
853
855
|
...params,
|
|
854
856
|
}),
|
|
855
857
|
/**
|
|
@@ -861,8 +863,8 @@ export class WalletApi extends HttpClient {
|
|
|
861
863
|
*/
|
|
862
864
|
transferHistoryControllerGetTransfer: (id, params = {}) => this.request({
|
|
863
865
|
path: `/api/v1/token-standard/transfer/history/${id}`,
|
|
864
|
-
method:
|
|
865
|
-
format:
|
|
866
|
+
method: "GET",
|
|
867
|
+
format: "json",
|
|
866
868
|
...params,
|
|
867
869
|
}),
|
|
868
870
|
/**
|
|
@@ -874,9 +876,9 @@ export class WalletApi extends HttpClient {
|
|
|
874
876
|
*/
|
|
875
877
|
transferHistoryControllerGetTransfers: (query, params = {}) => this.request({
|
|
876
878
|
path: `/api/v1/token-standard/transfer/history`,
|
|
877
|
-
method:
|
|
879
|
+
method: "GET",
|
|
878
880
|
query: query,
|
|
879
|
-
format:
|
|
881
|
+
format: "json",
|
|
880
882
|
...params,
|
|
881
883
|
}),
|
|
882
884
|
/**
|
|
@@ -889,11 +891,11 @@ export class WalletApi extends HttpClient {
|
|
|
889
891
|
*/
|
|
890
892
|
transferPreapprovalControllerPrepareCancelTransferPreapproval: (data, params = {}) => this.request({
|
|
891
893
|
path: `/api/v1/token-standard/transfer/preapproval/cancel/prepare`,
|
|
892
|
-
method:
|
|
894
|
+
method: "POST",
|
|
893
895
|
body: data,
|
|
894
896
|
secure: true,
|
|
895
897
|
type: ContentType.Json,
|
|
896
|
-
format:
|
|
898
|
+
format: "json",
|
|
897
899
|
...params,
|
|
898
900
|
}),
|
|
899
901
|
/**
|
|
@@ -906,11 +908,11 @@ export class WalletApi extends HttpClient {
|
|
|
906
908
|
*/
|
|
907
909
|
transferPreapprovalControllerPrepareCreateTransferPreapproval: (data, params = {}) => this.request({
|
|
908
910
|
path: `/api/v1/token-standard/transfer/preapproval/create/prepare`,
|
|
909
|
-
method:
|
|
911
|
+
method: "POST",
|
|
910
912
|
body: data,
|
|
911
913
|
secure: true,
|
|
912
914
|
type: ContentType.Json,
|
|
913
|
-
format:
|
|
915
|
+
format: "json",
|
|
914
916
|
...params,
|
|
915
917
|
}),
|
|
916
918
|
/**
|
|
@@ -923,11 +925,11 @@ export class WalletApi extends HttpClient {
|
|
|
923
925
|
*/
|
|
924
926
|
transferPreapprovalControllerSubmitCancelTransferPreapproval: (data, params = {}) => this.request({
|
|
925
927
|
path: `/api/v1/token-standard/transfer/preapproval/cancel/submit`,
|
|
926
|
-
method:
|
|
928
|
+
method: "POST",
|
|
927
929
|
body: data,
|
|
928
930
|
secure: true,
|
|
929
931
|
type: ContentType.Json,
|
|
930
|
-
format:
|
|
932
|
+
format: "json",
|
|
931
933
|
...params,
|
|
932
934
|
}),
|
|
933
935
|
/**
|
|
@@ -940,11 +942,11 @@ export class WalletApi extends HttpClient {
|
|
|
940
942
|
*/
|
|
941
943
|
transferPreapprovalControllerSubmitCreateTransferPreapproval: (data, params = {}) => this.request({
|
|
942
944
|
path: `/api/v1/token-standard/transfer/preapproval/create/submit`,
|
|
943
|
-
method:
|
|
945
|
+
method: "POST",
|
|
944
946
|
body: data,
|
|
945
947
|
secure: true,
|
|
946
948
|
type: ContentType.Json,
|
|
947
|
-
format:
|
|
949
|
+
format: "json",
|
|
948
950
|
...params,
|
|
949
951
|
}),
|
|
950
952
|
/**
|
|
@@ -957,10 +959,10 @@ export class WalletApi extends HttpClient {
|
|
|
957
959
|
*/
|
|
958
960
|
userControllerGetUserWithInfo: (partyId, query, params = {}) => this.request({
|
|
959
961
|
path: `/api/v1/user/${partyId}/info-with-addresses`,
|
|
960
|
-
method:
|
|
962
|
+
method: "GET",
|
|
961
963
|
query: query,
|
|
962
964
|
secure: true,
|
|
963
|
-
format:
|
|
965
|
+
format: "json",
|
|
964
966
|
...params,
|
|
965
967
|
}),
|
|
966
968
|
};
|