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