@console-wallet/dapp-sdk 0.0.17 → 0.0.19

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.
Files changed (78) hide show
  1. package/README.md +16 -10
  2. package/dist/cjs/api/generated-indexer-api.d.ts +8094 -0
  3. package/dist/cjs/api/generated-indexer-api.js +1719 -0
  4. package/dist/cjs/api/generated-indexer-api.js.map +1 -0
  5. package/dist/cjs/api/index.d.ts +2 -0
  6. package/dist/cjs/api/index.js +7 -0
  7. package/dist/cjs/api/index.js.map +1 -0
  8. package/dist/cjs/helpers/handleResponce.helper.d.ts +1 -1
  9. package/dist/cjs/index.d.ts +4 -0
  10. package/dist/cjs/index.js +1 -0
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/requests/getActiveAccount.d.ts +2 -0
  13. package/dist/cjs/requests/getActiveAccount.js +23 -0
  14. package/dist/cjs/requests/getActiveAccount.js.map +1 -0
  15. package/dist/cjs/requests/getActiveNetwork.d.ts +2 -0
  16. package/dist/cjs/requests/getActiveNetwork.js +23 -0
  17. package/dist/cjs/requests/getActiveNetwork.js.map +1 -0
  18. package/dist/cjs/requests/getBalance.d.ts +2 -0
  19. package/dist/cjs/requests/getBalance.js +24 -0
  20. package/dist/cjs/requests/getBalance.js.map +1 -0
  21. package/dist/cjs/requests/index.d.ts +3 -0
  22. package/dist/cjs/requests/index.js +3 -0
  23. package/dist/cjs/requests/index.js.map +1 -1
  24. package/dist/cjs/types/account.type.d.ts +3 -0
  25. package/dist/cjs/types/communication.types.d.ts +3 -1
  26. package/dist/cjs/types/communication.types.js +3 -1
  27. package/dist/cjs/types/communication.types.js.map +1 -1
  28. package/dist/cjs/types/helpers.types.d.ts +3 -0
  29. package/dist/cjs/types/helpers.types.js +3 -0
  30. package/dist/cjs/types/helpers.types.js.map +1 -0
  31. package/dist/cjs/types/index.d.ts +2 -0
  32. package/dist/cjs/types/index.js +2 -0
  33. package/dist/cjs/types/index.js.map +1 -1
  34. package/dist/cjs/types/signed.type.d.ts +7 -2
  35. package/dist/cjs/types/signed.type.js +3 -0
  36. package/dist/cjs/types/signed.type.js.map +1 -1
  37. package/dist/cjs/types/token.types.d.ts +36 -0
  38. package/dist/cjs/types/token.types.js +10 -0
  39. package/dist/cjs/types/token.types.js.map +1 -0
  40. package/dist/esm/api/generated-indexer-api.d.ts +8094 -0
  41. package/dist/esm/api/generated-indexer-api.js +1713 -0
  42. package/dist/esm/api/generated-indexer-api.js.map +1 -0
  43. package/dist/esm/api/index.d.ts +2 -0
  44. package/dist/esm/api/index.js +3 -0
  45. package/dist/esm/api/index.js.map +1 -0
  46. package/dist/esm/helpers/handleResponce.helper.d.ts +1 -1
  47. package/dist/esm/index.d.ts +4 -0
  48. package/dist/esm/index.js +1 -0
  49. package/dist/esm/index.js.map +1 -1
  50. package/dist/esm/requests/getActiveAccount.d.ts +2 -0
  51. package/dist/esm/requests/getActiveAccount.js +19 -0
  52. package/dist/esm/requests/getActiveAccount.js.map +1 -0
  53. package/dist/esm/requests/getActiveNetwork.d.ts +2 -0
  54. package/dist/esm/requests/getActiveNetwork.js +19 -0
  55. package/dist/esm/requests/getActiveNetwork.js.map +1 -0
  56. package/dist/esm/requests/getBalance.d.ts +2 -0
  57. package/dist/esm/requests/getBalance.js +20 -0
  58. package/dist/esm/requests/getBalance.js.map +1 -0
  59. package/dist/esm/requests/index.d.ts +3 -0
  60. package/dist/esm/requests/index.js +3 -0
  61. package/dist/esm/requests/index.js.map +1 -1
  62. package/dist/esm/types/account.type.d.ts +3 -0
  63. package/dist/esm/types/communication.types.d.ts +3 -1
  64. package/dist/esm/types/communication.types.js +3 -1
  65. package/dist/esm/types/communication.types.js.map +1 -1
  66. package/dist/esm/types/helpers.types.d.ts +3 -0
  67. package/dist/esm/types/helpers.types.js +2 -0
  68. package/dist/esm/types/helpers.types.js.map +1 -0
  69. package/dist/esm/types/index.d.ts +2 -0
  70. package/dist/esm/types/index.js +2 -0
  71. package/dist/esm/types/index.js.map +1 -1
  72. package/dist/esm/types/signed.type.d.ts +7 -2
  73. package/dist/esm/types/signed.type.js +2 -1
  74. package/dist/esm/types/signed.type.js.map +1 -1
  75. package/dist/esm/types/token.types.d.ts +36 -0
  76. package/dist/esm/types/token.types.js +7 -0
  77. package/dist/esm/types/token.types.js.map +1 -0
  78. package/package.json +8 -2
@@ -0,0 +1,1713 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ // @ts-nocheck
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ export var AllocationStatus;
13
+ (function (AllocationStatus) {
14
+ AllocationStatus["Pending"] = "pending";
15
+ AllocationStatus["Completed"] = "completed";
16
+ AllocationStatus["Canceled"] = "canceled";
17
+ AllocationStatus["Withdrawn"] = "withdrawn";
18
+ AllocationStatus["Failed"] = "failed";
19
+ })(AllocationStatus || (AllocationStatus = {}));
20
+ export var CommandStatus;
21
+ (function (CommandStatus) {
22
+ CommandStatus["Pending"] = "pending";
23
+ CommandStatus["Completed"] = "completed";
24
+ CommandStatus["Expire"] = "expire";
25
+ CommandStatus["Withdrawn"] = "withdrawn";
26
+ CommandStatus["Failed"] = "failed";
27
+ })(CommandStatus || (CommandStatus = {}));
28
+ /**
29
+ * Type of Mining Round Config
30
+ * @default "open"
31
+ * @example "open"
32
+ */
33
+ export var MiningRoundConfig;
34
+ (function (MiningRoundConfig) {
35
+ MiningRoundConfig["Open"] = "open";
36
+ MiningRoundConfig["Closed"] = "closed";
37
+ MiningRoundConfig["Issuing"] = "issuing";
38
+ MiningRoundConfig["Summarizing"] = "summarizing";
39
+ })(MiningRoundConfig || (MiningRoundConfig = {}));
40
+ /**
41
+ * Type of a mining round.
42
+ * One of: open, closed, issuing, summarizing.
43
+ * @default "open"
44
+ * @example "open"
45
+ */
46
+ export var MiningRoundType;
47
+ (function (MiningRoundType) {
48
+ MiningRoundType["Open"] = "open";
49
+ MiningRoundType["Closed"] = "closed";
50
+ MiningRoundType["Issuing"] = "issuing";
51
+ MiningRoundType["Summarizing"] = "summarizing";
52
+ })(MiningRoundType || (MiningRoundType = {}));
53
+ /**
54
+ * Status of an Offer.
55
+ * One of: pending, completed, rejected, withdrawn, expire, failed.
56
+ * @default "pending"
57
+ * @example "pending"
58
+ */
59
+ export var OfferStatus;
60
+ (function (OfferStatus) {
61
+ OfferStatus["Pending"] = "pending";
62
+ OfferStatus["Completed"] = "completed";
63
+ OfferStatus["Rejected"] = "rejected";
64
+ OfferStatus["Withdrawn"] = "withdrawn";
65
+ OfferStatus["Failed"] = "failed";
66
+ OfferStatus["Expire"] = "expire";
67
+ })(OfferStatus || (OfferStatus = {}));
68
+ /**
69
+ * Type of an Offer.
70
+ * One of: allocation, instruction, command.
71
+ * @default "allocation"
72
+ * @example "allocation"
73
+ */
74
+ export var OfferType;
75
+ (function (OfferType) {
76
+ OfferType["Allocation"] = "allocation";
77
+ OfferType["Instruction"] = "instruction";
78
+ OfferType["Command"] = "command";
79
+ })(OfferType || (OfferType = {}));
80
+ /**
81
+ * Role type of Party in token transfer instruction
82
+ * One of: any, sender, receiver, provider
83
+ * @default "any"
84
+ * @example "sender"
85
+ */
86
+ export var PartyRoleType;
87
+ (function (PartyRoleType) {
88
+ PartyRoleType["Any"] = "any";
89
+ PartyRoleType["Sender"] = "sender";
90
+ PartyRoleType["Receiver"] = "receiver";
91
+ PartyRoleType["Provider"] = "provider";
92
+ })(PartyRoleType || (PartyRoleType = {}));
93
+ /**
94
+ * Type of rewards leader.
95
+ * One of: validator, super_validator, app, burn_fee.
96
+ * @default "validator"
97
+ * @example "validator"
98
+ */
99
+ export var RewardLeaderType;
100
+ (function (RewardLeaderType) {
101
+ RewardLeaderType["Validator"] = "validator";
102
+ RewardLeaderType["SuperValidator"] = "super_validator";
103
+ RewardLeaderType["App"] = "app";
104
+ RewardLeaderType["BurnFee"] = "burn_fee";
105
+ })(RewardLeaderType || (RewardLeaderType = {}));
106
+ /**
107
+ * Time interval enumeration for price history aggregation
108
+ *
109
+ * Defines the granularity at which historical price data is aggregated
110
+ * and returned.
111
+ */
112
+ export var TimeInterval;
113
+ (function (TimeInterval) {
114
+ TimeInterval["Hourly"] = "hourly";
115
+ TimeInterval["Daily"] = "daily";
116
+ TimeInterval["Weekly"] = "weekly";
117
+ TimeInterval["Monthly"] = "monthly";
118
+ TimeInterval["Yearly"] = "yearly";
119
+ })(TimeInterval || (TimeInterval = {}));
120
+ /**
121
+ * Status of a token transfer command.
122
+ * One of: pending, completed, rejected, expire, withdrawn, failed.
123
+ * @default "pending"
124
+ * @example "pending"
125
+ */
126
+ export var TokenTransferCommandStatus;
127
+ (function (TokenTransferCommandStatus) {
128
+ TokenTransferCommandStatus["Pending"] = "pending";
129
+ TokenTransferCommandStatus["Completed"] = "completed";
130
+ TokenTransferCommandStatus["Expire"] = "expire";
131
+ TokenTransferCommandStatus["Withdrawn"] = "withdrawn";
132
+ TokenTransferCommandStatus["Failed"] = "failed";
133
+ })(TokenTransferCommandStatus || (TokenTransferCommandStatus = {}));
134
+ /**
135
+ * Status of a token transfer instruction.
136
+ * One of: pending, completed, rejected, withdrawn, failed.
137
+ * @default "pending"
138
+ * @example "pending"
139
+ */
140
+ export var TokenTransferInstructionStatus;
141
+ (function (TokenTransferInstructionStatus) {
142
+ TokenTransferInstructionStatus["Pending"] = "pending";
143
+ TokenTransferInstructionStatus["Completed"] = "completed";
144
+ TokenTransferInstructionStatus["Rejected"] = "rejected";
145
+ TokenTransferInstructionStatus["Withdrawn"] = "withdrawn";
146
+ TokenTransferInstructionStatus["Failed"] = "failed";
147
+ })(TokenTransferInstructionStatus || (TokenTransferInstructionStatus = {}));
148
+ /**
149
+ * Type of Token Transfer.
150
+ * One of: allocation, command, instuction, other.
151
+ * @default "transfer"
152
+ * @example "allocation"
153
+ */
154
+ export var TokenTransferType;
155
+ (function (TokenTransferType) {
156
+ TokenTransferType["Allocation"] = "allocation";
157
+ TokenTransferType["Command"] = "command";
158
+ TokenTransferType["Instruction"] = "instruction";
159
+ TokenTransferType["Transfer"] = "transfer";
160
+ TokenTransferType["MergeSplit"] = "merge_split";
161
+ })(TokenTransferType || (TokenTransferType = {}));
162
+ /**
163
+ * Role type of Party in transfer preapproval
164
+ * One of: any, receiver, provider
165
+ * @default "any"
166
+ * @example "receiver"
167
+ */
168
+ export var TransferPreapprovalPartyRoleType;
169
+ (function (TransferPreapprovalPartyRoleType) {
170
+ TransferPreapprovalPartyRoleType["Any"] = "any";
171
+ TransferPreapprovalPartyRoleType["Receiver"] = "receiver";
172
+ TransferPreapprovalPartyRoleType["Provider"] = "provider";
173
+ })(TransferPreapprovalPartyRoleType || (TransferPreapprovalPartyRoleType = {}));
174
+ /**
175
+ * Type of Vote Status.
176
+ * One of: in-progress, executed, rejected, expired.
177
+ * @default "rejected"
178
+ * @example "pending"
179
+ */
180
+ export var VoteStatus;
181
+ (function (VoteStatus) {
182
+ VoteStatus["Accepted"] = "accepted";
183
+ VoteStatus["AcceptedActionFailed"] = "accepted-action-failed";
184
+ VoteStatus["Expired"] = "expired";
185
+ VoteStatus["Pending"] = "pending";
186
+ VoteStatus["Rejected"] = "rejected";
187
+ })(VoteStatus || (VoteStatus = {}));
188
+ /**
189
+ * Type of votes
190
+ * One of: any, active, completed
191
+ * @default "any"
192
+ * @example "active"
193
+ */
194
+ export var VotesFilter;
195
+ (function (VotesFilter) {
196
+ VotesFilter["Any"] = "any";
197
+ VotesFilter["Active"] = "active";
198
+ VotesFilter["Completed"] = "completed";
199
+ })(VotesFilter || (VotesFilter = {}));
200
+ import axios from "axios";
201
+ export var ContentType;
202
+ (function (ContentType) {
203
+ ContentType["Json"] = "application/json";
204
+ ContentType["JsonApi"] = "application/vnd.api+json";
205
+ ContentType["FormData"] = "multipart/form-data";
206
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
207
+ ContentType["Text"] = "text/plain";
208
+ })(ContentType || (ContentType = {}));
209
+ export class HttpClient {
210
+ instance;
211
+ securityData = null;
212
+ securityWorker;
213
+ secure;
214
+ format;
215
+ constructor({ securityWorker, secure, format, ...axiosConfig } = {}) {
216
+ this.instance = axios.create({
217
+ ...axiosConfig,
218
+ baseURL: axiosConfig.baseURL || "https://devnet.ccview.io",
219
+ });
220
+ this.secure = secure;
221
+ this.format = format;
222
+ this.securityWorker = securityWorker;
223
+ }
224
+ setSecurityData = (data) => {
225
+ this.securityData = data;
226
+ };
227
+ mergeRequestParams(params1, params2) {
228
+ const method = params1.method || (params2 && params2.method);
229
+ return {
230
+ ...this.instance.defaults,
231
+ ...params1,
232
+ ...(params2 || {}),
233
+ headers: {
234
+ ...((method &&
235
+ this.instance.defaults.headers[method.toLowerCase()]) ||
236
+ {}),
237
+ ...(params1.headers || {}),
238
+ ...((params2 && params2.headers) || {}),
239
+ },
240
+ };
241
+ }
242
+ stringifyFormItem(formItem) {
243
+ if (typeof formItem === "object" && formItem !== null) {
244
+ return JSON.stringify(formItem);
245
+ }
246
+ else {
247
+ return `${formItem}`;
248
+ }
249
+ }
250
+ createFormData(input) {
251
+ if (input instanceof FormData) {
252
+ return input;
253
+ }
254
+ return Object.keys(input || {}).reduce((formData, key) => {
255
+ const property = input[key];
256
+ const propertyContent = property instanceof Array ? property : [property];
257
+ for (const formItem of propertyContent) {
258
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
259
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
260
+ }
261
+ return formData;
262
+ }, new FormData());
263
+ }
264
+ request = async ({ secure, path, type, query, format, body, ...params }) => {
265
+ const secureParams = ((typeof secure === "boolean" ? secure : this.secure) &&
266
+ this.securityWorker &&
267
+ (await this.securityWorker(this.securityData))) ||
268
+ {};
269
+ const requestParams = this.mergeRequestParams(params, secureParams);
270
+ const responseFormat = format || this.format || undefined;
271
+ if (type === ContentType.FormData &&
272
+ body &&
273
+ body !== null &&
274
+ typeof body === "object") {
275
+ body = this.createFormData(body);
276
+ }
277
+ if (type === ContentType.Text &&
278
+ body &&
279
+ body !== null &&
280
+ typeof body !== "string") {
281
+ body = JSON.stringify(body);
282
+ }
283
+ return this.instance
284
+ .request({
285
+ ...requestParams,
286
+ headers: {
287
+ ...(requestParams.headers || {}),
288
+ ...(type ? { "Content-Type": type } : {}),
289
+ },
290
+ params: query,
291
+ responseType: responseFormat,
292
+ data: body,
293
+ url: path,
294
+ })
295
+ .then((response) => response.data);
296
+ };
297
+ }
298
+ /**
299
+ * @title CantonView API
300
+ * @version 0.0.1
301
+ * @license
302
+ * @baseUrl https://devnet.ccview.io
303
+ * @externalDocs https://swagger.io/resources/open-api/
304
+ * @contact API Maintainer <cantonview@pixelplex.io>
305
+ *
306
+ * API Server
307
+ */
308
+ export class IndexerApi extends HttpClient {
309
+ api = {
310
+ /**
311
+ * @description Obtain list of active governances
312
+ *
313
+ * @tags Governance
314
+ * @name ActiveGovernanceListPaged
315
+ * @summary List active
316
+ * @request GET:/api/v1/governances/active
317
+ * @secure
318
+ */
319
+ activeGovernanceListPaged: (query, params = {}) => this.request({
320
+ path: `/api/v1/governances/active`,
321
+ method: "GET",
322
+ query: query,
323
+ secure: true,
324
+ format: "json",
325
+ ...params,
326
+ }),
327
+ /**
328
+ * @description Obtain list of active mining rounds
329
+ *
330
+ * @tags Mining round
331
+ * @name ActiveRounds
332
+ * @summary List active mining rounds
333
+ * @request GET:/api/v1/mining-rounds/active
334
+ * @secure
335
+ */
336
+ activeRounds: (params = {}) => this.request({
337
+ path: `/api/v1/mining-rounds/active`,
338
+ method: "GET",
339
+ secure: true,
340
+ format: "json",
341
+ ...params,
342
+ }),
343
+ /**
344
+ * @description List rewards for Featured Apps
345
+ *
346
+ * @tags Rewards
347
+ * @name AppRewards
348
+ * @summary List Rewards of Featured Apps
349
+ * @request GET:/api/v1/rewards/app
350
+ * @secure
351
+ */
352
+ appRewards: (query, params = {}) => this.request({
353
+ path: `/api/v1/rewards/app`,
354
+ method: "GET",
355
+ query: query,
356
+ secure: true,
357
+ format: "json",
358
+ ...params,
359
+ }),
360
+ /**
361
+ * @description Coupons count for Featured Apps
362
+ *
363
+ * @tags Rewards
364
+ * @name AppRewardsCouponsCount
365
+ * @summary Coupons count for Featured Apps
366
+ * @request GET:/api/v1/rewards/app/coupons-count
367
+ * @secure
368
+ */
369
+ appRewardsCouponsCount: (params = {}) => this.request({
370
+ path: `/api/v1/rewards/app/coupons-count`,
371
+ method: "GET",
372
+ secure: true,
373
+ format: "json",
374
+ ...params,
375
+ }),
376
+ /**
377
+ * @description Stat rewards for Featured Apps
378
+ *
379
+ * @tags Rewards
380
+ * @name AppRewardsStat
381
+ * @summary Stat Rewards for Featured Apps
382
+ * @request GET:/api/v1/rewards/app/stat
383
+ * @secure
384
+ */
385
+ appRewardsStat: (params = {}) => this.request({
386
+ path: `/api/v1/rewards/app/stat`,
387
+ method: "GET",
388
+ secure: true,
389
+ format: "json",
390
+ ...params,
391
+ }),
392
+ /**
393
+ * @description Top Featured App beneficiary rewarded
394
+ *
395
+ * @tags Rewards
396
+ * @name AppRewardsTopBeneficiary
397
+ * @summary Top Featured App beneficiary
398
+ * @request GET:/api/v1/rewards/app/top-beneficiary
399
+ * @secure
400
+ */
401
+ appRewardsTopBeneficiary: (query, params = {}) => this.request({
402
+ path: `/api/v1/rewards/app/top-beneficiary`,
403
+ method: "GET",
404
+ query: query,
405
+ secure: true,
406
+ format: "json",
407
+ ...params,
408
+ }),
409
+ /**
410
+ * @description Top Featured App providers rewarded
411
+ *
412
+ * @tags Rewards
413
+ * @name AppRewardsTopProviders
414
+ * @summary Top Featured App providers
415
+ * @request GET:/api/v1/rewards/app/top-providers
416
+ * @secure
417
+ */
418
+ appRewardsTopProviders: (query, params = {}) => this.request({
419
+ path: `/api/v1/rewards/app/top-providers`,
420
+ method: "GET",
421
+ query: query,
422
+ secure: true,
423
+ format: "json",
424
+ ...params,
425
+ }),
426
+ /**
427
+ * @description Top Rounds rewards of Featured App
428
+ *
429
+ * @tags Rewards
430
+ * @name AppRewardsTopRounds
431
+ * @summary Top Rounds rewards of Featured App
432
+ * @request GET:/api/v1/rewards/app/top-rounds
433
+ * @secure
434
+ */
435
+ appRewardsTopRounds: (query, params = {}) => this.request({
436
+ path: `/api/v1/rewards/app/top-rounds`,
437
+ method: "GET",
438
+ query: query,
439
+ secure: true,
440
+ format: "json",
441
+ ...params,
442
+ }),
443
+ /**
444
+ * @description Statistics of rewards for Featured Apps
445
+ *
446
+ * @tags Rewards
447
+ * @name AppRewardsTotalSum
448
+ * @summary Rewards Stat for Featured Apps
449
+ * @request GET:/api/v1/rewards/app/total
450
+ * @secure
451
+ */
452
+ appRewardsTotalSum: (params = {}) => this.request({
453
+ path: `/api/v1/rewards/app/total`,
454
+ method: "GET",
455
+ secure: true,
456
+ format: "json",
457
+ ...params,
458
+ }),
459
+ /**
460
+ * @description Obtain list of completed governances.
461
+ *
462
+ * @tags Governance
463
+ * @name CompletedGovernanceListPaged
464
+ * @summary List completed
465
+ * @request GET:/api/v1/governances/completed
466
+ * @secure
467
+ */
468
+ completedGovernanceListPaged: (query, params = {}) => this.request({
469
+ path: `/api/v1/governances/completed`,
470
+ method: "GET",
471
+ query: query,
472
+ secure: true,
473
+ format: "json",
474
+ ...params,
475
+ }),
476
+ /**
477
+ * @description Get prices for current time, in beginning of today, one day before, one week ago. one month ago, one year ago.
478
+ *
479
+ * @tags Explore
480
+ * @name ExplorePrices
481
+ * @summary Token prices change summary for periods of time.
482
+ * @request GET:/api/v1/explore/prices
483
+ * @secure
484
+ */
485
+ explorePrices: (params = {}) => this.request({
486
+ path: `/api/v1/explore/prices`,
487
+ method: "GET",
488
+ secure: true,
489
+ format: "json",
490
+ ...params,
491
+ }),
492
+ /**
493
+ * @description Obtain a list of token prices for a specified range of time.
494
+ *
495
+ * @tags Explore
496
+ * @name ExplorePricesList
497
+ * @summary List of token prices for certain period of time.
498
+ * @request GET:/api/v1/explore/prices-list
499
+ * @secure
500
+ */
501
+ explorePricesList: (query, params = {}) => this.request({
502
+ path: `/api/v1/explore/prices-list`,
503
+ method: "GET",
504
+ query: query,
505
+ secure: true,
506
+ format: "json",
507
+ ...params,
508
+ }),
509
+ /**
510
+ * @description Obtain canton network statistics
511
+ *
512
+ * @tags Explore
513
+ * @name ExploreStats
514
+ * @summary Statistics
515
+ * @request GET:/api/v1/explore/stats
516
+ * @secure
517
+ */
518
+ exploreStats: (params = {}) => this.request({
519
+ path: `/api/v1/explore/stats`,
520
+ method: "GET",
521
+ secure: true,
522
+ format: "json",
523
+ ...params,
524
+ }),
525
+ /**
526
+ * @description List all featured apps
527
+ *
528
+ * @tags Featured Apps
529
+ * @name FeaturedAppsList
530
+ * @summary List apps
531
+ * @request GET:/api/v1/featured-apps
532
+ * @secure
533
+ */
534
+ featuredAppsList: (query, params = {}) => this.request({
535
+ path: `/api/v1/featured-apps`,
536
+ method: "GET",
537
+ query: query,
538
+ secure: true,
539
+ format: "json",
540
+ ...params,
541
+ }),
542
+ /**
543
+ * @description List all featured apps with extra info
544
+ *
545
+ * @tags Featured Apps
546
+ * @name FeaturedAppsListV2
547
+ * @summary List apps
548
+ * @request GET:/api/v2/featured-apps
549
+ * @secure
550
+ */
551
+ featuredAppsListV2: (query, params = {}) => this.request({
552
+ path: `/api/v2/featured-apps`,
553
+ method: "GET",
554
+ query: query,
555
+ secure: true,
556
+ format: "json",
557
+ ...params,
558
+ }),
559
+ /**
560
+ * @description Get fee statistics for a certain date range
561
+ *
562
+ * @tags Explore
563
+ * @name FeeStatHistory
564
+ * @summary Fee statistics for a date range
565
+ * @request GET:/api/v1/explore/fee-stat
566
+ * @secure
567
+ */
568
+ feeStatHistory: (query, params = {}) => this.request({
569
+ path: `/api/v1/explore/fee-stat`,
570
+ method: "GET",
571
+ query: query,
572
+ secure: true,
573
+ format: "json",
574
+ ...params,
575
+ }),
576
+ /**
577
+ * @description General Search on Canton Network by partial Party Id / full Update Id
578
+ *
579
+ * @tags General Search
580
+ * @name GeneralSearch
581
+ * @summary General Search
582
+ * @request GET:/api/v1/general-search
583
+ * @secure
584
+ */
585
+ generalSearch: (query, params = {}) => this.request({
586
+ path: `/api/v1/general-search`,
587
+ method: "GET",
588
+ query: query,
589
+ secure: true,
590
+ format: "json",
591
+ ...params,
592
+ }),
593
+ /**
594
+ * @description Obtain governance details
595
+ *
596
+ * @tags Governance
597
+ * @name GovernanceDetails
598
+ * @summary Details
599
+ * @request GET:/api/v1/governances/details/{tracking_cid}
600
+ * @secure
601
+ */
602
+ governanceDetails: (trackingCid, params = {}) => this.request({
603
+ path: `/api/v1/governances/details/${trackingCid}`,
604
+ method: "GET",
605
+ secure: true,
606
+ format: "json",
607
+ ...params,
608
+ }),
609
+ /**
610
+ * @description Retrieves a paginated list of Amulet price votes submitted by Super Validators, allowing filtering by a specific Super Validator Party ID and time-based cursor.
611
+ *
612
+ * @tags Governance
613
+ * @name GovernancePriceVotes
614
+ * @summary List Amulet Price Votes
615
+ * @request GET:/api/v1/governances/price-votes
616
+ * @secure
617
+ */
618
+ governancePriceVotes: (query, params = {}) => this.request({
619
+ path: `/api/v1/governances/price-votes`,
620
+ method: "GET",
621
+ query: query,
622
+ secure: true,
623
+ format: "json",
624
+ ...params,
625
+ }),
626
+ /**
627
+ * @description List governances by cursor and limit ordered by date in DESC order.
628
+ *
629
+ * @tags Governance
630
+ * @name GovernanceSearch
631
+ * @summary List governances
632
+ * @request GET:/api/v1/governances
633
+ * @secure
634
+ */
635
+ governanceSearch: (query, params = {}) => this.request({
636
+ path: `/api/v1/governances`,
637
+ method: "GET",
638
+ query: query,
639
+ secure: true,
640
+ format: "json",
641
+ ...params,
642
+ }),
643
+ /**
644
+ * @description Governance extended statistics summary
645
+ *
646
+ * @tags Governance
647
+ * @name GovernanceStatistics
648
+ * @summary Statistics
649
+ * @request GET:/api/v1/governances/statistics
650
+ * @secure
651
+ */
652
+ governanceStatistics: (params = {}) => this.request({
653
+ path: `/api/v1/governances/statistics`,
654
+ method: "GET",
655
+ secure: true,
656
+ format: "json",
657
+ ...params,
658
+ }),
659
+ /**
660
+ * No description
661
+ *
662
+ * @tags Health
663
+ * @name HealthCheck
664
+ * @request GET:/api/v1/health
665
+ */
666
+ healthCheck: (params = {}) => this.request({
667
+ path: `/api/v1/health`,
668
+ method: "GET",
669
+ ...params,
670
+ }),
671
+ /**
672
+ * @description Obtain hosted super validators list
673
+ *
674
+ * @tags Super Validator
675
+ * @name HostedSuperValidators
676
+ * @summary List hosted
677
+ * @request GET:/api/v1/super-validators/hosted
678
+ * @secure
679
+ */
680
+ hostedSuperValidators: (query, params = {}) => this.request({
681
+ path: `/api/v1/super-validators/hosted`,
682
+ method: "GET",
683
+ query: query,
684
+ secure: true,
685
+ format: "json",
686
+ ...params,
687
+ }),
688
+ /**
689
+ * @description Obtain statistic of lastest migration applied.
690
+ *
691
+ * @tags Migrations
692
+ * @name LastMigrationStatistic
693
+ * @summary Lastest migration statistic
694
+ * @request GET:/api/v1/migrations/lastest
695
+ * @secure
696
+ */
697
+ lastMigrationStatistic: (params = {}) => this.request({
698
+ path: `/api/v1/migrations/lastest`,
699
+ method: "GET",
700
+ secure: true,
701
+ format: "json",
702
+ ...params,
703
+ }),
704
+ /**
705
+ * @description Retrieves market capitalization and supply statistics for a specified date range. The aggregation level (daily, weekly, or monthly) is determined automatically based on the length of the requested date range.
706
+ *
707
+ * @tags Explore
708
+ * @name MarketcapSupplyStats
709
+ * @summary A list of supply, price, and market cap statistics per day (or week/month).
710
+ * @request GET:/api/v1/explore/supply-stats
711
+ * @secure
712
+ */
713
+ marketcapSupplyStats: (query, params = {}) => this.request({
714
+ path: `/api/v1/explore/supply-stats`,
715
+ method: "GET",
716
+ query: query,
717
+ secure: true,
718
+ format: "json",
719
+ ...params,
720
+ }),
721
+ /**
722
+ * @description Obtain migrations list by cursor and limit ordered by date in DESC order.
723
+ *
724
+ * @tags Migrations
725
+ * @name MigrationStatistics
726
+ * @summary List migrations
727
+ * @request GET:/api/v1/migrations
728
+ * @secure
729
+ */
730
+ migrationStatistics: (query, params = {}) => this.request({
731
+ path: `/api/v1/migrations`,
732
+ method: "GET",
733
+ query: query,
734
+ secure: true,
735
+ format: "json",
736
+ ...params,
737
+ }),
738
+ /**
739
+ * @description List Mining Rounds by cursor and limit ordered by date in DESC order.
740
+ *
741
+ * @tags Mining round
742
+ * @name MiningRoundsList
743
+ * @summary List Mining rounds
744
+ * @request GET:/api/v1/mining-rounds
745
+ * @secure
746
+ */
747
+ miningRoundsList: (query, params = {}) => this.request({
748
+ path: `/api/v1/mining-rounds`,
749
+ method: "GET",
750
+ query: query,
751
+ secure: true,
752
+ format: "json",
753
+ ...params,
754
+ }),
755
+ /**
756
+ * @description Search mining round by it's number / type
757
+ *
758
+ * @tags Mining round
759
+ * @name MiningRoundsSearch
760
+ * @summary Search mining round
761
+ * @request GET:/api/v1/mining-rounds/search
762
+ * @secure
763
+ */
764
+ miningRoundsSearch: (query, params = {}) => this.request({
765
+ path: `/api/v1/mining-rounds/search`,
766
+ method: "GET",
767
+ query: query,
768
+ secure: true,
769
+ format: "json",
770
+ ...params,
771
+ }),
772
+ /**
773
+ * @description Search by involved Party, result status, Party role
774
+ *
775
+ * @tags Offers
776
+ * @name OfferBySenderParty
777
+ * @summary Search offers
778
+ * @request GET:/api/v1/offers/search
779
+ * @secure
780
+ */
781
+ offerBySenderParty: (query, params = {}) => this.request({
782
+ path: `/api/v1/offers/search`,
783
+ method: "GET",
784
+ query: query,
785
+ secure: true,
786
+ format: "json",
787
+ ...params,
788
+ }),
789
+ /**
790
+ * @description Search by involved Party, result status, Party role
791
+ *
792
+ * @tags Offers
793
+ * @name OfferBySenderPartyV2
794
+ * @summary Search offers
795
+ * @request GET:/api/v2/offers/search
796
+ * @secure
797
+ */
798
+ offerBySenderPartyV2: (query, params = {}) => this.request({
799
+ path: `/api/v2/offers/search`,
800
+ method: "GET",
801
+ query: query,
802
+ secure: true,
803
+ format: "json",
804
+ ...params,
805
+ }),
806
+ /**
807
+ * @description Get Party Daily Balance Changes by Party Id, Start Date, End Date
808
+ *
809
+ * @tags Party
810
+ * @name PartyBalanceChanges
811
+ * @summary Party Balance Changes
812
+ * @request GET:/api/v1/parties/balance-changes
813
+ * @secure
814
+ */
815
+ partyBalanceChanges: (query, params = {}) => this.request({
816
+ path: `/api/v1/parties/balance-changes`,
817
+ method: "GET",
818
+ query: query,
819
+ secure: true,
820
+ format: "json",
821
+ ...params,
822
+ }),
823
+ /**
824
+ * @description Get Party Details by Party Id
825
+ *
826
+ * @tags Party
827
+ * @name PartyDetailsByPartyId
828
+ * @summary Party Details
829
+ * @request GET:/api/v1/parties/{party_id}
830
+ * @secure
831
+ */
832
+ partyDetailsByPartyId: (partyId, params = {}) => this.request({
833
+ path: `/api/v1/parties/${partyId}`,
834
+ method: "GET",
835
+ secure: true,
836
+ format: "json",
837
+ ...params,
838
+ }),
839
+ /**
840
+ * @description Get a party's daily or aggregated **Burn Fee Statistics** (from transfers and merges/splits) over a specified date range. The aggregation level is dynamically chosen unless the `strict` parameter is set to `true`.
841
+ *
842
+ * @tags Party
843
+ * @name PartyFeeStat
844
+ * @summary Retrieve Daily and Aggregated Burn Fee Statistics for a Party
845
+ * @request GET:/api/v1/parties/fee-stat-ranged
846
+ * @secure
847
+ */
848
+ partyFeeStat: (query, params = {}) => this.request({
849
+ path: `/api/v1/parties/fee-stat-ranged`,
850
+ method: "GET",
851
+ query: query,
852
+ secure: true,
853
+ format: "json",
854
+ ...params,
855
+ }),
856
+ /**
857
+ * @description Get a party's daily or aggregated **Transfer Statistics** (counts of transfers as sender, receiver, provider, and merge/splits) over a specified date range. The aggregation level is dynamically chosen unless the `strict` parameter is set to `true`.
858
+ *
859
+ * @tags Party
860
+ * @name PartyTransfersCountStat
861
+ * @summary Retrieve Daily and Aggregated Transfer Statistics for a Party
862
+ * @request GET:/api/v1/parties/transfers-count-stat-ranged
863
+ * @secure
864
+ */
865
+ partyTransfersCountStat: (query, params = {}) => this.request({
866
+ path: `/api/v1/parties/transfers-count-stat-ranged`,
867
+ method: "GET",
868
+ query: query,
869
+ secure: true,
870
+ format: "json",
871
+ ...params,
872
+ }),
873
+ /**
874
+ * @description Get a party's daily or aggregated **Update Statistics** over a specified date range. The aggregation level is dynamically chosen unless the `strict` parameter is set to `true`.
875
+ *
876
+ * @tags Party
877
+ * @name PartyUpdateStat
878
+ * @summary Retrieve Daily Update Statistics for a Party
879
+ * @request GET:/api/v1/parties/update-stat-ranged
880
+ * @secure
881
+ */
882
+ partyUpdateStat: (query, params = {}) => this.request({
883
+ path: `/api/v1/parties/update-stat-ranged`,
884
+ method: "GET",
885
+ query: query,
886
+ secure: true,
887
+ format: "json",
888
+ ...params,
889
+ }),
890
+ /**
891
+ * @description Get list of rewards received by cursor and limit ordered by date in DESC order.
892
+ *
893
+ * @tags Rewards
894
+ * @name RewardsHistory
895
+ * @summary List of rewards received
896
+ * @request GET:/api/v1/rewards/list
897
+ * @secure
898
+ */
899
+ rewardsHistory: (query, params = {}) => this.request({
900
+ path: `/api/v1/rewards/list`,
901
+ method: "GET",
902
+ query: query,
903
+ secure: true,
904
+ format: "json",
905
+ ...params,
906
+ }),
907
+ /**
908
+ * @description Rewards leaderboard for a whole time
909
+ *
910
+ * @tags Rewards
911
+ * @name RewardsLeaderboard
912
+ * @summary Rewards leaderboard top
913
+ * @request GET:/api/v1/rewards/leaderboard/top
914
+ * @secure
915
+ */
916
+ rewardsLeaderboard: (query, params = {}) => this.request({
917
+ path: `/api/v1/rewards/leaderboard/top`,
918
+ method: "GET",
919
+ query: query,
920
+ secure: true,
921
+ format: "json",
922
+ ...params,
923
+ }),
924
+ /**
925
+ * @description Rewards leaderboard statistic for a whole time
926
+ *
927
+ * @tags Rewards
928
+ * @name RewardsLeaderboardStat
929
+ * @summary Rewards leaderboard statistic
930
+ * @request GET:/api/v1/rewards/leaderboard/stat
931
+ * @secure
932
+ */
933
+ rewardsLeaderboardStat: (params = {}) => this.request({
934
+ path: `/api/v1/rewards/leaderboard/stat`,
935
+ method: "GET",
936
+ secure: true,
937
+ format: "json",
938
+ ...params,
939
+ }),
940
+ /**
941
+ * @description Rewards leader details
942
+ *
943
+ * @tags Rewards
944
+ * @name RewardsLeaderDetails
945
+ * @summary Rewards leader details
946
+ * @request GET:/api/v1/rewards/leaderboard/{party_id}
947
+ * @secure
948
+ */
949
+ rewardsLeaderDetails: (partyId, params = {}) => this.request({
950
+ path: `/api/v1/rewards/leaderboard/${partyId}`,
951
+ method: "GET",
952
+ secure: true,
953
+ format: "json",
954
+ ...params,
955
+ }),
956
+ /**
957
+ * @description Top leaders by amount for a certain date range
958
+ *
959
+ * @tags Rewards
960
+ * @name RewardsLeaderTopByAmount
961
+ * @summary Top leaders by amount
962
+ * @request GET:/api/v1/rewards/top-by-amount
963
+ * @secure
964
+ */
965
+ rewardsLeaderTopByAmount: (query, params = {}) => this.request({
966
+ path: `/api/v1/rewards/top-by-amount`,
967
+ method: "GET",
968
+ query: query,
969
+ secure: true,
970
+ format: "json",
971
+ ...params,
972
+ }),
973
+ /**
974
+ * @description Top leaders by amount for a certain date range
975
+ *
976
+ * @tags Rewards
977
+ * @name RewardsLeaderTopByAmountDaily
978
+ * @summary Top leaders by amount
979
+ * @request GET:/api/v1/rewards/top-by-amount-daily
980
+ * @secure
981
+ */
982
+ rewardsLeaderTopByAmountDaily: (query, params = {}) => this.request({
983
+ path: `/api/v1/rewards/top-by-amount-daily`,
984
+ method: "GET",
985
+ query: query,
986
+ secure: true,
987
+ format: "json",
988
+ ...params,
989
+ }),
990
+ /**
991
+ * @description Rewards statistics by party for a certain date range
992
+ *
993
+ * @tags Rewards
994
+ * @name RewardsStatistic
995
+ * @summary Rewards statistic
996
+ * @request GET:/api/v1/rewards/statistic
997
+ * @secure
998
+ */
999
+ rewardsStatistic: (query, params = {}) => this.request({
1000
+ path: `/api/v1/rewards/statistic`,
1001
+ method: "GET",
1002
+ query: query,
1003
+ secure: true,
1004
+ format: "json",
1005
+ ...params,
1006
+ }),
1007
+ /**
1008
+ * @description Rewards statistics for a certain date range
1009
+ *
1010
+ * @tags Rewards
1011
+ * @name RewardsStatisticDaily
1012
+ * @summary Rewards statistic daily
1013
+ * @request GET:/api/v1/rewards/daily_statistic
1014
+ * @secure
1015
+ */
1016
+ rewardsStatisticDaily: (query, params = {}) => this.request({
1017
+ path: `/api/v1/rewards/daily_statistic`,
1018
+ method: "GET",
1019
+ query: query,
1020
+ secure: true,
1021
+ format: "json",
1022
+ ...params,
1023
+ }),
1024
+ /**
1025
+ * @description Obtain standalone super validators list
1026
+ *
1027
+ * @tags Super Validator
1028
+ * @name StandaloneSuperValidators
1029
+ * @summary List standalone
1030
+ * @request GET:/api/v1/super-validators/standalone
1031
+ * @secure
1032
+ */
1033
+ standaloneSuperValidators: (query, params = {}) => this.request({
1034
+ path: `/api/v1/super-validators/standalone`,
1035
+ method: "GET",
1036
+ query: query,
1037
+ secure: true,
1038
+ format: "json",
1039
+ ...params,
1040
+ }),
1041
+ /**
1042
+ * @description Get statistics on the count of **active parties** for a specified date range. The data is automatically aggregated by day, week, or month based on the range duration.
1043
+ *
1044
+ * @tags Party
1045
+ * @name StatsActivePartiesRanged
1046
+ * @summary Retrieve active party statistics with dynamic daily, weekly, or monthly aggregation
1047
+ * @request GET:/api/v1/parties/stats/ranged
1048
+ * @secure
1049
+ */
1050
+ statsActivePartiesRanged: (query, params = {}) => this.request({
1051
+ path: `/api/v1/parties/stats/ranged`,
1052
+ method: "GET",
1053
+ query: query,
1054
+ secure: true,
1055
+ format: "json",
1056
+ ...params,
1057
+ }),
1058
+ /**
1059
+ * @description List rewards for Super Validators
1060
+ *
1061
+ * @tags Rewards
1062
+ * @name SuperValidatorRewardsList
1063
+ * @summary ListRewards for Super Validators
1064
+ * @request GET:/api/v1/rewards/super-validator
1065
+ * @secure
1066
+ */
1067
+ superValidatorRewardsList: (query, params = {}) => this.request({
1068
+ path: `/api/v1/rewards/super-validator`,
1069
+ method: "GET",
1070
+ query: query,
1071
+ secure: true,
1072
+ format: "json",
1073
+ ...params,
1074
+ }),
1075
+ /**
1076
+ * @description Stat rewards for Super Validator
1077
+ *
1078
+ * @tags Rewards
1079
+ * @name SuperValidatorRewardsStat
1080
+ * @summary Stat Rewards for Super Validator
1081
+ * @request GET:/api/v1/rewards/super-validator/stat
1082
+ * @secure
1083
+ */
1084
+ superValidatorRewardsStat: (params = {}) => this.request({
1085
+ path: `/api/v1/rewards/super-validator/stat`,
1086
+ method: "GET",
1087
+ secure: true,
1088
+ format: "json",
1089
+ ...params,
1090
+ }),
1091
+ /**
1092
+ * @description Top rounds of super validator rewards
1093
+ *
1094
+ * @tags Rewards
1095
+ * @name SuperValidatorRewardsTopRounds
1096
+ * @summary Top rounds of super validator rewards
1097
+ * @request GET:/api/v1/rewards/super-validator/top-rounds
1098
+ * @secure
1099
+ */
1100
+ superValidatorRewardsTopRounds: (query, params = {}) => this.request({
1101
+ path: `/api/v1/rewards/super-validator/top-rounds`,
1102
+ method: "GET",
1103
+ query: query,
1104
+ secure: true,
1105
+ format: "json",
1106
+ ...params,
1107
+ }),
1108
+ /**
1109
+ * @description Top weights super validators
1110
+ *
1111
+ * @tags Rewards
1112
+ * @name SuperValidatorRewardsTopWeight
1113
+ * @summary Top weights super validators
1114
+ * @request GET:/api/v1/rewards/super-validator/top-weight
1115
+ * @secure
1116
+ */
1117
+ superValidatorRewardsTopWeight: (query, params = {}) => this.request({
1118
+ path: `/api/v1/rewards/super-validator/top-weight`,
1119
+ method: "GET",
1120
+ query: query,
1121
+ secure: true,
1122
+ format: "json",
1123
+ ...params,
1124
+ }),
1125
+ /**
1126
+ * @description Top beneficiary rewarded
1127
+ *
1128
+ * @tags Rewards
1129
+ * @name SvRewardsTopBeneficiary
1130
+ * @summary Top beneficiary rewarded
1131
+ * @request GET:/api/v1/rewards/super-validator/top-beneficiary
1132
+ * @secure
1133
+ */
1134
+ svRewardsTopBeneficiary: (query, params = {}) => this.request({
1135
+ path: `/api/v1/rewards/super-validator/top-beneficiary`,
1136
+ method: "GET",
1137
+ query: query,
1138
+ secure: true,
1139
+ format: "json",
1140
+ ...params,
1141
+ }),
1142
+ /**
1143
+ * @description Obtain Token Transfer Allocation details by it's Event ID
1144
+ *
1145
+ * @tags Transfer Allocations
1146
+ * @name TokenTransferAllocationByEventId
1147
+ * @summary Details
1148
+ * @request GET:/api/v1/token-transfer-allocations/{event_id}
1149
+ * @secure
1150
+ */
1151
+ tokenTransferAllocationByEventId: (eventId, params = {}) => this.request({
1152
+ path: `/api/v1/token-transfer-allocations/${eventId}`,
1153
+ method: "GET",
1154
+ secure: true,
1155
+ format: "json",
1156
+ ...params,
1157
+ }),
1158
+ /**
1159
+ * @description Search by involved Party, result status, Party role
1160
+ *
1161
+ * @tags Transfer Allocations
1162
+ * @name TokenTransferAllocationBySenderParty
1163
+ * @summary Search token transfer allocations
1164
+ * @request GET:/api/v1/token-transfer-allocations/search
1165
+ * @secure
1166
+ */
1167
+ tokenTransferAllocationBySenderParty: (query, params = {}) => this.request({
1168
+ path: `/api/v1/token-transfer-allocations/search`,
1169
+ method: "GET",
1170
+ query: query,
1171
+ secure: true,
1172
+ format: "json",
1173
+ ...params,
1174
+ }),
1175
+ /**
1176
+ * @description Search by involved Party, result status, Party role
1177
+ *
1178
+ * @tags Transfer Allocations
1179
+ * @name TokenTransferAllocationBySenderPartyV2
1180
+ * @summary Search token transfer allocations
1181
+ * @request GET:/api/v2/token-transfer-allocations/search
1182
+ * @secure
1183
+ */
1184
+ tokenTransferAllocationBySenderPartyV2: (query, params = {}) => this.request({
1185
+ path: `/api/v2/token-transfer-allocations/search`,
1186
+ method: "GET",
1187
+ query: query,
1188
+ secure: true,
1189
+ format: "json",
1190
+ ...params,
1191
+ }),
1192
+ /**
1193
+ * @description Obtain token transfer details by it's Event ID
1194
+ *
1195
+ * @tags Transfers history
1196
+ * @name TokenTransferByEventId
1197
+ * @summary Transfer details
1198
+ * @request GET:/api/v1/token-transfers/{event_id}
1199
+ * @secure
1200
+ */
1201
+ tokenTransferByEventId: (eventId, params = {}) => this.request({
1202
+ path: `/api/v1/token-transfers/${eventId}`,
1203
+ method: "GET",
1204
+ secure: true,
1205
+ format: "json",
1206
+ ...params,
1207
+ }),
1208
+ /**
1209
+ * @description List token transfers with specified Party involved
1210
+ *
1211
+ * @tags Transfers history
1212
+ * @name TokenTransferByPartyId
1213
+ * @summary List token transfer for specified Party
1214
+ * @request GET:/api/v1/token-transfers/by-party
1215
+ * @secure
1216
+ */
1217
+ tokenTransferByPartyId: (query, params = {}) => this.request({
1218
+ path: `/api/v1/token-transfers/by-party`,
1219
+ method: "GET",
1220
+ query: query,
1221
+ secure: true,
1222
+ format: "json",
1223
+ ...params,
1224
+ }),
1225
+ /**
1226
+ * @description List token transfers with specified Party involved
1227
+ *
1228
+ * @tags Transfers history
1229
+ * @name TokenTransferByPartyIdV2
1230
+ * @summary List token transfer for specified Party
1231
+ * @request GET:/api/v2/token-transfers/by-party
1232
+ * @secure
1233
+ */
1234
+ tokenTransferByPartyIdV2: (query, params = {}) => this.request({
1235
+ path: `/api/v2/token-transfers/by-party`,
1236
+ method: "GET",
1237
+ query: query,
1238
+ secure: true,
1239
+ format: "json",
1240
+ ...params,
1241
+ }),
1242
+ /**
1243
+ * @description Obtain Token Transfer Command details by it's Event Id
1244
+ *
1245
+ * @tags Transfer Commands
1246
+ * @name TokenTransferCommandByEventId
1247
+ * @summary Transfer Command details
1248
+ * @request GET:/api/v1/token-transfer-commands/{event_id}
1249
+ * @secure
1250
+ */
1251
+ tokenTransferCommandByEventId: (eventId, params = {}) => this.request({
1252
+ path: `/api/v1/token-transfer-commands/${eventId}`,
1253
+ method: "GET",
1254
+ secure: true,
1255
+ format: "json",
1256
+ ...params,
1257
+ }),
1258
+ /**
1259
+ * @description Search by involved Party, result status, Party role
1260
+ *
1261
+ * @tags Transfer Commands
1262
+ * @name TokenTransferCommandBySenderParty
1263
+ * @summary Search token transfer commands
1264
+ * @request GET:/api/v1/token-transfer-commands/search
1265
+ * @secure
1266
+ */
1267
+ tokenTransferCommandBySenderParty: (query, params = {}) => this.request({
1268
+ path: `/api/v1/token-transfer-commands/search`,
1269
+ method: "GET",
1270
+ query: query,
1271
+ secure: true,
1272
+ format: "json",
1273
+ ...params,
1274
+ }),
1275
+ /**
1276
+ * @description Search by involved Party, result status, Party role
1277
+ *
1278
+ * @tags Transfer Commands
1279
+ * @name TokenTransferCommandBySenderPartyV2
1280
+ * @summary Search token transfer commands
1281
+ * @request GET:/api/v2/token-transfer-commands/search
1282
+ * @secure
1283
+ */
1284
+ tokenTransferCommandBySenderPartyV2: (query, params = {}) => this.request({
1285
+ path: `/api/v2/token-transfer-commands/search`,
1286
+ method: "GET",
1287
+ query: query,
1288
+ secure: true,
1289
+ format: "json",
1290
+ ...params,
1291
+ }),
1292
+ /**
1293
+ * @description Obtain Token Transfer Instruction details by it's Event ID
1294
+ *
1295
+ * @tags Transfer Instructions
1296
+ * @name TokenTransferInstructionByEventId
1297
+ * @summary Details
1298
+ * @request GET:/api/v1/token-transfer-instructions/{event_id}
1299
+ * @secure
1300
+ */
1301
+ tokenTransferInstructionByEventId: (eventId, params = {}) => this.request({
1302
+ path: `/api/v1/token-transfer-instructions/${eventId}`,
1303
+ method: "GET",
1304
+ secure: true,
1305
+ format: "json",
1306
+ ...params,
1307
+ }),
1308
+ /**
1309
+ * @description Search by involved Party, result status, Party role
1310
+ *
1311
+ * @tags Transfer Instructions
1312
+ * @name TokenTransferInstructionBySenderParty
1313
+ * @summary Search token transfer instructions
1314
+ * @request GET:/api/v1/token-transfer-instructions/search
1315
+ * @secure
1316
+ */
1317
+ tokenTransferInstructionBySenderParty: (query, params = {}) => this.request({
1318
+ path: `/api/v1/token-transfer-instructions/search`,
1319
+ method: "GET",
1320
+ query: query,
1321
+ secure: true,
1322
+ format: "json",
1323
+ ...params,
1324
+ }),
1325
+ /**
1326
+ * @description Search by involved Party, result status, Party role
1327
+ *
1328
+ * @tags Transfer Instructions
1329
+ * @name TokenTransferInstructionBySenderPartyV2
1330
+ * @summary Search token transfer instructions
1331
+ * @request GET:/api/v2/token-transfer-instructions/search
1332
+ * @secure
1333
+ */
1334
+ tokenTransferInstructionBySenderPartyV2: (query, params = {}) => this.request({
1335
+ path: `/api/v2/token-transfer-instructions/search`,
1336
+ method: "GET",
1337
+ query: query,
1338
+ secure: true,
1339
+ format: "json",
1340
+ ...params,
1341
+ }),
1342
+ /**
1343
+ * @description Get list of token transfers by cursor and limit ordered by date in DESC order.
1344
+ *
1345
+ * @tags Transfers history
1346
+ * @name TokenTransferList
1347
+ * @summary List of token transfers
1348
+ * @request GET:/api/v1/token-transfers
1349
+ * @secure
1350
+ */
1351
+ tokenTransferList: (query, params = {}) => this.request({
1352
+ path: `/api/v1/token-transfers`,
1353
+ method: "GET",
1354
+ query: query,
1355
+ secure: true,
1356
+ format: "json",
1357
+ ...params,
1358
+ }),
1359
+ /**
1360
+ * @description Get list of token transfers by cursor and limit ordered by date in DESC order.
1361
+ *
1362
+ * @tags Transfers history
1363
+ * @name TokenTransferListV2
1364
+ * @summary List of token transfers
1365
+ * @request GET:/api/v2/token-transfers
1366
+ * @secure
1367
+ */
1368
+ tokenTransferListV2: (query, params = {}) => this.request({
1369
+ path: `/api/v2/token-transfers`,
1370
+ method: "GET",
1371
+ query: query,
1372
+ secure: true,
1373
+ format: "json",
1374
+ ...params,
1375
+ }),
1376
+ /**
1377
+ * @description Search by involved Party, Party role
1378
+ *
1379
+ * @tags Transfer Preapprovals
1380
+ * @name TransferPreapprovalByParty
1381
+ * @summary Search transfer preapprovals
1382
+ * @request GET:/api/v1/transfer-preapprovals/search
1383
+ * @secure
1384
+ */
1385
+ transferPreapprovalByParty: (query, params = {}) => this.request({
1386
+ path: `/api/v1/transfer-preapprovals/search`,
1387
+ method: "GET",
1388
+ query: query,
1389
+ secure: true,
1390
+ format: "json",
1391
+ ...params,
1392
+ }),
1393
+ /**
1394
+ * @description Search by involved Party, Party role
1395
+ *
1396
+ * @tags Transfer Preapprovals
1397
+ * @name TransferPreapprovalByPartyV2
1398
+ * @summary Search transfer preapprovals
1399
+ * @request GET:/api/v2/transfer-preapprovals/search
1400
+ * @secure
1401
+ */
1402
+ transferPreapprovalByPartyV2: (query, params = {}) => this.request({
1403
+ path: `/api/v2/transfer-preapprovals/search`,
1404
+ method: "GET",
1405
+ query: query,
1406
+ secure: true,
1407
+ format: "json",
1408
+ ...params,
1409
+ }),
1410
+ /**
1411
+ * @description Obtain a list of transfers counts aggregated per minute over a specified range of time. The data is sampled to limit the number of data points for efficient charting.
1412
+ *
1413
+ * @tags Transfers history
1414
+ * @name TransfersPerMinute
1415
+ * @summary List of per-minute transfer count statistics for a certain period.
1416
+ * @request GET:/api/v1/token-transfers/chart-per-minute
1417
+ * @secure
1418
+ */
1419
+ transfersPerMinute: (query, params = {}) => this.request({
1420
+ path: `/api/v1/token-transfers/chart-per-minute`,
1421
+ method: "GET",
1422
+ query: query,
1423
+ secure: true,
1424
+ format: "json",
1425
+ ...params,
1426
+ }),
1427
+ /**
1428
+ * @description Get transfer statistics for a specified date range
1429
+ *
1430
+ * @tags Transfers history
1431
+ * @name TransferStat
1432
+ * @summary Retrieve transfer statistics with daily, weekly, or monthly aggregation
1433
+ * @request GET:/api/v1/token-transfers/stat
1434
+ * @secure
1435
+ */
1436
+ transferStat: (query, params = {}) => this.request({
1437
+ path: `/api/v1/token-transfers/stat`,
1438
+ method: "GET",
1439
+ query: query,
1440
+ secure: true,
1441
+ format: "json",
1442
+ ...params,
1443
+ }),
1444
+ /**
1445
+ * @description Get daily transfer statistic. If no day will be provided it will return last indexed day statistic
1446
+ *
1447
+ * @tags Explore
1448
+ * @name TransferStatPerDay
1449
+ * @summary Get daily transfer statistic
1450
+ * @request GET:/api/v1/explore/transfer-stat-per-day
1451
+ * @secure
1452
+ */
1453
+ transferStatPerDay: (query, params = {}) => this.request({
1454
+ path: `/api/v1/explore/transfer-stat-per-day`,
1455
+ method: "GET",
1456
+ query: query,
1457
+ secure: true,
1458
+ format: "json",
1459
+ ...params,
1460
+ }),
1461
+ /**
1462
+ * @description Obtain Update details by it's Update ID
1463
+ *
1464
+ * @tags Updates history
1465
+ * @name UpdateByEventId
1466
+ * @summary Details
1467
+ * @request GET:/api/v1/updates/{update_id}
1468
+ * @secure
1469
+ */
1470
+ updateByEventId: (updateId, params = {}) => this.request({
1471
+ path: `/api/v1/updates/${updateId}`,
1472
+ method: "GET",
1473
+ secure: true,
1474
+ format: "json",
1475
+ ...params,
1476
+ }),
1477
+ /**
1478
+ * @description Obtain a list of update counts and update sizes aggregated per minute over a specified range of time. The data is sampled to limit the number of data points for efficient charting.
1479
+ *
1480
+ * @tags Updates history
1481
+ * @name UpdateChart
1482
+ * @summary List of per-minute update statistics (count and size) for a certain period.
1483
+ * @request GET:/api/v1/updates/chart
1484
+ * @secure
1485
+ */
1486
+ updateChart: (query, params = {}) => this.request({
1487
+ path: `/api/v1/updates/chart`,
1488
+ method: "GET",
1489
+ query: query,
1490
+ secure: true,
1491
+ format: "json",
1492
+ ...params,
1493
+ }),
1494
+ /**
1495
+ * @description List Updates with specified Party involved
1496
+ *
1497
+ * @tags Updates history
1498
+ * @name UpdateHistoryByPartyId
1499
+ * @summary List Updates for specified Party
1500
+ * @request GET:/api/v1/updates/by-party
1501
+ * @secure
1502
+ */
1503
+ updateHistoryByPartyId: (query, params = {}) => this.request({
1504
+ path: `/api/v1/updates/by-party`,
1505
+ method: "GET",
1506
+ query: query,
1507
+ secure: true,
1508
+ format: "json",
1509
+ ...params,
1510
+ }),
1511
+ /**
1512
+ * @description Get list of updates by cursor and limit ordered by date in DESC order.
1513
+ *
1514
+ * @tags Updates history
1515
+ * @name UpdateHistoryByRecordTime
1516
+ * @summary List updates
1517
+ * @request GET:/api/v1/updates
1518
+ * @secure
1519
+ */
1520
+ updateHistoryByRecordTime: (query, params = {}) => this.request({
1521
+ path: `/api/v1/updates`,
1522
+ method: "GET",
1523
+ query: query,
1524
+ secure: true,
1525
+ format: "json",
1526
+ ...params,
1527
+ }),
1528
+ /**
1529
+ * @description Get stats per day to show on diagram
1530
+ *
1531
+ * @tags Updates history
1532
+ * @name UpdateHistoryPerDayByPartyId
1533
+ * @summary Get stats per day
1534
+ * @request GET:/api/v1/updates/stats/per-day
1535
+ * @secure
1536
+ */
1537
+ updateHistoryPerDayByPartyId: (query, params = {}) => this.request({
1538
+ path: `/api/v1/updates/stats/per-day`,
1539
+ method: "GET",
1540
+ query: query,
1541
+ secure: true,
1542
+ format: "json",
1543
+ ...params,
1544
+ }),
1545
+ /**
1546
+ * @description Get stats for a certain date range
1547
+ *
1548
+ * @tags Updates history
1549
+ * @name UpdateHistoryStatAbsolute
1550
+ * @summary Statistics for a date range
1551
+ * @request GET:/api/v1/updates/stats/ranged
1552
+ * @secure
1553
+ */
1554
+ updateHistoryStatAbsolute: (query, params = {}) => this.request({
1555
+ path: `/api/v1/updates/stats/ranged`,
1556
+ method: "GET",
1557
+ query: query,
1558
+ secure: true,
1559
+ format: "json",
1560
+ ...params,
1561
+ }),
1562
+ /**
1563
+ * @description Get top parties involved in updates for certain date range
1564
+ *
1565
+ * @tags Updates history
1566
+ * @name UpdateHistoryTopParties
1567
+ * @summary Top parties
1568
+ * @request GET:/api/v1/updates/stats/top-parties
1569
+ * @secure
1570
+ */
1571
+ updateHistoryTopParties: (query, params = {}) => this.request({
1572
+ path: `/api/v1/updates/stats/top-parties`,
1573
+ method: "GET",
1574
+ query: query,
1575
+ secure: true,
1576
+ format: "json",
1577
+ ...params,
1578
+ }),
1579
+ /**
1580
+ * @description Obtain general statistics by all raw updates
1581
+ *
1582
+ * @tags Updates history
1583
+ * @name UpdateStatistics
1584
+ * @summary General Statistics
1585
+ * @request GET:/api/v1/updates/stats
1586
+ * @secure
1587
+ */
1588
+ updateStatistics: (params = {}) => this.request({
1589
+ path: `/api/v1/updates/stats`,
1590
+ method: "GET",
1591
+ secure: true,
1592
+ format: "json",
1593
+ ...params,
1594
+ }),
1595
+ /**
1596
+ * @description Obtain validator details by its identifier
1597
+ *
1598
+ * @tags Validator
1599
+ * @name ValidatorDetails
1600
+ * @summary Validator details
1601
+ * @request GET:/api/v1/validators/{validator_id}
1602
+ * @secure
1603
+ */
1604
+ validatorDetails: (validatorId, params = {}) => this.request({
1605
+ path: `/api/v1/validators/${validatorId}`,
1606
+ method: "GET",
1607
+ secure: true,
1608
+ format: "json",
1609
+ ...params,
1610
+ }),
1611
+ /**
1612
+ * @description List rewards for Validators
1613
+ *
1614
+ * @tags Rewards
1615
+ * @name ValidatorRewardsList
1616
+ * @summary Rewards for Validators
1617
+ * @request GET:/api/v1/rewards/validator
1618
+ * @secure
1619
+ */
1620
+ validatorRewardsList: (query, params = {}) => this.request({
1621
+ path: `/api/v1/rewards/validator`,
1622
+ method: "GET",
1623
+ query: query,
1624
+ secure: true,
1625
+ format: "json",
1626
+ ...params,
1627
+ }),
1628
+ /**
1629
+ * @description Stat rewards for Validator
1630
+ *
1631
+ * @tags Rewards
1632
+ * @name ValidatorRewardsStat
1633
+ * @summary Stat Rewards for Validator
1634
+ * @request GET:/api/v1/rewards/validator/stat
1635
+ * @secure
1636
+ */
1637
+ validatorRewardsStat: (params = {}) => this.request({
1638
+ path: `/api/v1/rewards/validator/stat`,
1639
+ method: "GET",
1640
+ secure: true,
1641
+ format: "json",
1642
+ ...params,
1643
+ }),
1644
+ /**
1645
+ * @description Top rewarded validators
1646
+ *
1647
+ * @tags Rewards
1648
+ * @name ValidatorRewardsTopRewarded
1649
+ * @summary Top rewarded validators
1650
+ * @request GET:/api/v1/rewards/validator/top-rewarded
1651
+ * @secure
1652
+ */
1653
+ validatorRewardsTopRewarded: (query, params = {}) => this.request({
1654
+ path: `/api/v1/rewards/validator/top-rewarded`,
1655
+ method: "GET",
1656
+ query: query,
1657
+ secure: true,
1658
+ format: "json",
1659
+ ...params,
1660
+ }),
1661
+ /**
1662
+ * @description Top rounds of validator rewards
1663
+ *
1664
+ * @tags Rewards
1665
+ * @name ValidatorRewardsTopRounds
1666
+ * @summary Top rounds of validator rewards
1667
+ * @request GET:/api/v1/rewards/validator/top-rounds
1668
+ * @secure
1669
+ */
1670
+ validatorRewardsTopRounds: (query, params = {}) => this.request({
1671
+ path: `/api/v1/rewards/validator/top-rounds`,
1672
+ method: "GET",
1673
+ query: query,
1674
+ secure: true,
1675
+ format: "json",
1676
+ ...params,
1677
+ }),
1678
+ /**
1679
+ * @description List available validators
1680
+ *
1681
+ * @tags Validator
1682
+ * @name ValidatorsList
1683
+ * @summary List validators
1684
+ * @request GET:/api/v1/validators
1685
+ * @secure
1686
+ */
1687
+ validatorsList: (query, params = {}) => this.request({
1688
+ path: `/api/v1/validators`,
1689
+ method: "GET",
1690
+ query: query,
1691
+ secure: true,
1692
+ format: "json",
1693
+ ...params,
1694
+ }),
1695
+ /**
1696
+ * @description Obtain validators statistics
1697
+ *
1698
+ * @tags Validator
1699
+ * @name ValidatorStatistics
1700
+ * @summary Validator Statistics
1701
+ * @request GET:/api/v1/validators/statistics
1702
+ * @secure
1703
+ */
1704
+ validatorStatistics: (params = {}) => this.request({
1705
+ path: `/api/v1/validators/statistics`,
1706
+ method: "GET",
1707
+ secure: true,
1708
+ format: "json",
1709
+ ...params,
1710
+ }),
1711
+ };
1712
+ }
1713
+ //# sourceMappingURL=generated-indexer-api.js.map