@avalabs/glacier-sdk 2.8.0-canary.ca01c76.0 → 2.8.0-canary.cfb38f5.0

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/dist/index.d.ts +770 -344
  2. package/dist/index.js +299 -71
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +30 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/request.js +14 -31
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  9. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  10. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  11. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  12. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  13. package/esm/generated/models/ChainInfo.d.ts +1 -0
  14. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  15. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  16. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  17. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  18. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  19. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  20. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  21. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  22. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  23. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  24. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  25. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  26. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  27. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  28. package/esm/generated/models/EventType.d.ts +5 -0
  29. package/esm/generated/models/EventType.js +6 -0
  30. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  31. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  32. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  33. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  34. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  35. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  36. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  37. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  38. package/esm/generated/models/PChainTransactionType.js +1 -0
  39. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  40. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  41. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  42. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  43. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  44. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  45. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  46. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  47. package/esm/generated/models/RewardType.d.ts +2 -1
  48. package/esm/generated/models/RewardType.js +1 -0
  49. package/esm/generated/models/Rewards.d.ts +2 -0
  50. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  51. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  52. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  53. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  54. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  55. package/esm/generated/models/WebhookStatus.js +7 -0
  56. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  57. package/esm/generated/models/WebhookStatusType.js +7 -0
  58. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  59. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  60. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  61. package/esm/generated/models/XChainTransactionType.js +11 -0
  62. package/esm/generated/services/DefaultService.d.ts +67 -0
  63. package/esm/generated/services/DefaultService.js +55 -0
  64. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  65. package/esm/generated/services/EvmContractsService.js +36 -0
  66. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  67. package/esm/generated/services/EvmTransactionsService.js +1 -1
  68. package/esm/generated/services/NfTsService.d.ts +20 -13
  69. package/esm/generated/services/NfTsService.js +15 -9
  70. package/esm/generated/services/OperationsService.d.ts +11 -11
  71. package/esm/generated/services/OperationsService.js +10 -10
  72. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  73. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  74. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
  75. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  76. package/esm/index.d.ts +19 -0
  77. package/esm/index.js +16 -0
  78. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,6 +7,11 @@ class BaseHttpRequest {
7
7
  }
8
8
 
9
9
  class ApiError extends Error {
10
+ url;
11
+ status;
12
+ statusText;
13
+ body;
14
+ request;
10
15
  constructor(request, response, message) {
11
16
  super(message);
12
17
  this.name = "ApiError";
@@ -28,6 +33,14 @@ class CancelError extends Error {
28
33
  }
29
34
  }
30
35
  class CancelablePromise {
36
+ [Symbol.toStringTag];
37
+ _isResolved;
38
+ _isRejected;
39
+ _isCancelled;
40
+ _cancelHandlers;
41
+ _promise;
42
+ _resolve;
43
+ _reject;
31
44
  constructor(executor) {
32
45
  this._isResolved = false;
33
46
  this._isRejected = false;
@@ -37,20 +50,18 @@ class CancelablePromise {
37
50
  this._resolve = resolve;
38
51
  this._reject = reject;
39
52
  const onResolve = (value) => {
40
- var _a;
41
53
  if (this._isResolved || this._isRejected || this._isCancelled) {
42
54
  return;
43
55
  }
44
56
  this._isResolved = true;
45
- (_a = this._resolve) == null ? void 0 : _a.call(this, value);
57
+ this._resolve?.(value);
46
58
  };
47
59
  const onReject = (reason) => {
48
- var _a;
49
60
  if (this._isResolved || this._isRejected || this._isCancelled) {
50
61
  return;
51
62
  }
52
63
  this._isRejected = true;
53
- (_a = this._reject) == null ? void 0 : _a.call(this, reason);
64
+ this._reject?.(reason);
54
65
  };
55
66
  const onCancel = (cancelHandler) => {
56
67
  if (this._isResolved || this._isRejected || this._isCancelled) {
@@ -80,7 +91,6 @@ class CancelablePromise {
80
91
  return this._promise.finally(onFinally);
81
92
  }
82
93
  cancel() {
83
- var _a;
84
94
  if (this._isResolved || this._isRejected || this._isCancelled) {
85
95
  return;
86
96
  }
@@ -96,32 +106,13 @@ class CancelablePromise {
96
106
  }
97
107
  }
98
108
  this._cancelHandlers.length = 0;
99
- (_a = this._reject) == null ? void 0 : _a.call(this, new CancelError("Request aborted"));
109
+ this._reject?.(new CancelError("Request aborted"));
100
110
  }
101
111
  get isCancelled() {
102
112
  return this._isCancelled;
103
113
  }
104
114
  }
105
115
 
106
- var __defProp = Object.defineProperty;
107
- var __defProps = Object.defineProperties;
108
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
109
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
110
- var __hasOwnProp = Object.prototype.hasOwnProperty;
111
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
112
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
113
- var __spreadValues = (a, b) => {
114
- for (var prop in b || (b = {}))
115
- if (__hasOwnProp.call(b, prop))
116
- __defNormalProp(a, prop, b[prop]);
117
- if (__getOwnPropSymbols)
118
- for (var prop of __getOwnPropSymbols(b)) {
119
- if (__propIsEnum.call(b, prop))
120
- __defNormalProp(a, prop, b[prop]);
121
- }
122
- return a;
123
- };
124
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
125
116
  const isDefined = (value) => {
126
117
  return value !== void 0 && value !== null;
127
118
  };
@@ -175,8 +166,7 @@ const getQueryString = (params) => {
175
166
  const getUrl = (config, options) => {
176
167
  const encoder = config.ENCODE_PATH || encodeURI;
177
168
  const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
178
- var _a;
179
- if ((_a = options.path) == null ? void 0 : _a.hasOwnProperty(group)) {
169
+ if (options.path?.hasOwnProperty(group)) {
180
170
  return encoder(String(options.path[group]));
181
171
  }
182
172
  return substring;
@@ -219,9 +209,12 @@ const getHeaders = async (config, options) => {
219
209
  const username = await resolve(options, config.USERNAME);
220
210
  const password = await resolve(options, config.PASSWORD);
221
211
  const additionalHeaders = await resolve(options, config.HEADERS);
222
- const headers = Object.entries(__spreadValues(__spreadValues({
223
- Accept: "application/json"
224
- }, additionalHeaders), options.headers)).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => __spreadProps(__spreadValues({}, headers2), {
212
+ const headers = Object.entries({
213
+ Accept: "application/json",
214
+ ...additionalHeaders,
215
+ ...options.headers
216
+ }).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => ({
217
+ ...headers2,
225
218
  [key]: String(value)
226
219
  }), {});
227
220
  if (isStringWithValue(token)) {
@@ -245,9 +238,8 @@ const getHeaders = async (config, options) => {
245
238
  return new Headers(headers);
246
239
  };
247
240
  const getRequestBody = (options) => {
248
- var _a;
249
241
  if (options.body) {
250
- if ((_a = options.mediaType) == null ? void 0 : _a.includes("/json")) {
242
+ if (options.mediaType?.includes("/json")) {
251
243
  return JSON.stringify(options.body);
252
244
  } else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
253
245
  return options.body;
@@ -261,7 +253,7 @@ const sendRequest = async (config, options, url, body, formData, headers, onCanc
261
253
  const controller = new AbortController();
262
254
  const request2 = {
263
255
  headers,
264
- body: body != null ? body : formData,
256
+ body: body ?? formData,
265
257
  method: options.method,
266
258
  signal: controller.signal
267
259
  };
@@ -299,15 +291,16 @@ const getResponseBody = async (response) => {
299
291
  return void 0;
300
292
  };
301
293
  const catchErrorCodes = (options, result) => {
302
- const errors = __spreadValues({
294
+ const errors = {
303
295
  400: "Bad Request",
304
296
  401: "Unauthorized",
305
297
  403: "Forbidden",
306
298
  404: "Not Found",
307
299
  500: "Internal Server Error",
308
300
  502: "Bad Gateway",
309
- 503: "Service Unavailable"
310
- }, options.errors);
301
+ 503: "Service Unavailable",
302
+ ...options.errors
303
+ };
311
304
  const error = errors[result.status];
312
305
  if (error) {
313
306
  throw new ApiError(options, result, error);
@@ -332,7 +325,7 @@ const request = (config, options) => {
332
325
  ok: response.ok,
333
326
  status: response.status,
334
327
  statusText: response.statusText,
335
- body: responseHeader != null ? responseHeader : responseBody
328
+ body: responseHeader ?? responseBody
336
329
  };
337
330
  catchErrorCodes(options, result);
338
331
  resolve2(result.body);
@@ -352,6 +345,60 @@ class FetchHttpRequest extends BaseHttpRequest {
352
345
  }
353
346
  }
354
347
 
348
+ class DefaultService {
349
+ constructor(httpRequest) {
350
+ this.httpRequest = httpRequest;
351
+ }
352
+ mediaControllerUploadImage() {
353
+ return this.httpRequest.request({
354
+ method: "POST",
355
+ url: "/v1/media/uploadImage"
356
+ });
357
+ }
358
+ registerWebhook({
359
+ requestBody
360
+ }) {
361
+ return this.httpRequest.request({
362
+ method: "POST",
363
+ url: "/v1/webhooks",
364
+ body: requestBody,
365
+ mediaType: "application/json"
366
+ });
367
+ }
368
+ listWebhooks({
369
+ pageSize = 10,
370
+ pageToken,
371
+ status
372
+ }) {
373
+ return this.httpRequest.request({
374
+ method: "GET",
375
+ url: "/v1/webhooks",
376
+ query: {
377
+ "pageSize": pageSize,
378
+ "pageToken": pageToken,
379
+ "status": status
380
+ }
381
+ });
382
+ }
383
+ deactivateWebhook({
384
+ id
385
+ }) {
386
+ return this.httpRequest.request({
387
+ method: "DELETE",
388
+ url: "/v1/webhooks/{id}",
389
+ path: {
390
+ "id": id
391
+ }
392
+ });
393
+ }
394
+ generateSharedSecret() {
395
+ return this.httpRequest.request({
396
+ method: "POST",
397
+ url: "/v1/webhooks:generateSharedSecret"
398
+ });
399
+ }
400
+ }
401
+
355
402
  class EvmBalancesService {
356
403
  constructor(httpRequest) {
357
404
  this.httpRequest = httpRequest;
@@ -531,6 +578,41 @@ class EvmChainsService {
531
578
  }
532
579
  }
533
580
 
581
+ class EvmContractsService {
582
+ constructor(httpRequest) {
583
+ this.httpRequest = httpRequest;
584
+ }
585
+ getContractMetadata({
586
+ chainId,
587
+ address
588
+ }) {
589
+ return this.httpRequest.request({
590
+ method: "GET",
591
+ url: "/v1/chains/{chainId}/addresses/{address}",
592
+ path: {
593
+ "chainId": chainId,
594
+ "address": address
595
+ }
596
+ });
597
+ }
598
+ updateContractInfo({
599
+ chainId,
600
+ address,
601
+ requestBody
602
+ }) {
603
+ return this.httpRequest.request({
604
+ method: "PATCH",
605
+ url: "/v1/chains/{chainId}/contracts/{address}",
606
+ path: {
607
+ "chainId": chainId,
608
+ "address": address
609
+ },
610
+ body: requestBody,
611
+ mediaType: "application/json"
612
+ });
613
+ }
614
+ }
615
+
534
616
  class EvmTransactionsService {
535
617
  constructor(httpRequest) {
536
618
  this.httpRequest = httpRequest;
@@ -560,7 +642,7 @@ class EvmTransactionsService {
560
642
  }) {
561
643
  return this.httpRequest.request({
562
644
  method: "GET",
563
- url: "/v1/chains/{chainId}/addresses/{address}/deployments",
645
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
564
646
  path: {
565
647
  "chainId": chainId,
566
648
  "address": address
@@ -815,31 +897,37 @@ class NfTsService {
815
897
  }
816
898
  });
817
899
  }
818
- getTokenDetails({
900
+ listTokens({
819
901
  chainId,
820
902
  address,
821
- tokenId
903
+ pageSize = 10,
904
+ pageToken
822
905
  }) {
823
906
  return this.httpRequest.request({
824
907
  method: "GET",
825
- url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
908
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
826
909
  path: {
827
910
  "chainId": chainId,
828
- "address": address,
829
- "tokenId": tokenId
911
+ "address": address
912
+ },
913
+ query: {
914
+ "pageSize": pageSize,
915
+ "pageToken": pageToken
830
916
  }
831
917
  });
832
918
  }
833
- getCollection({
919
+ getTokenDetails({
834
920
  chainId,
835
- address
921
+ address,
922
+ tokenId
836
923
  }) {
837
924
  return this.httpRequest.request({
838
925
  method: "GET",
839
- url: "/v1/chains/{chainId}/nfts/collections/{address}",
926
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
840
927
  path: {
841
928
  "chainId": chainId,
842
- "address": address
929
+ "address": address,
930
+ "tokenId": tokenId
843
931
  }
844
932
  });
845
933
  }
@@ -849,16 +937,6 @@ class OperationsService {
849
937
  constructor(httpRequest) {
850
938
  this.httpRequest = httpRequest;
851
939
  }
852
- postTransactionExportJob({
853
- requestBody
854
- }) {
855
- return this.httpRequest.request({
856
- method: "POST",
857
- url: "/v1/operations/transactions:export",
858
- body: requestBody,
859
- mediaType: "application/json"
860
- });
861
- }
862
940
  getOperationResult({
863
941
  operationId
864
942
  }) {
@@ -870,6 +948,16 @@ class OperationsService {
870
948
  }
871
949
  });
872
950
  }
951
+ postTransactionExportJob({
952
+ requestBody
953
+ }) {
954
+ return this.httpRequest.request({
955
+ method: "POST",
956
+ url: "/v1/operations/transactions:export",
957
+ body: requestBody,
958
+ mediaType: "application/json"
959
+ });
960
+ }
873
961
  }
874
962
 
875
963
  class PrimaryNetworkService {
@@ -959,10 +1047,16 @@ class PrimaryNetworkService {
959
1047
  network,
960
1048
  pageSize = 10,
961
1049
  pageToken,
1050
+ minTimeRemaining,
1051
+ maxTimeRemaining,
1052
+ minDelegationCapacity,
1053
+ maxDelegationCapacity,
1054
+ minFeePercentage,
1055
+ maxFeePercentage,
962
1056
  nodeIds,
963
1057
  sortOrder,
964
1058
  validationStatus,
965
- minDelegationCapacity
1059
+ subnetId
966
1060
  }) {
967
1061
  return this.httpRequest.request({
968
1062
  method: "GET",
@@ -973,10 +1067,16 @@ class PrimaryNetworkService {
973
1067
  query: {
974
1068
  "pageSize": pageSize,
975
1069
  "pageToken": pageToken,
1070
+ "minTimeRemaining": minTimeRemaining,
1071
+ "maxTimeRemaining": maxTimeRemaining,
1072
+ "minDelegationCapacity": minDelegationCapacity,
1073
+ "maxDelegationCapacity": maxDelegationCapacity,
1074
+ "minFeePercentage": minFeePercentage,
1075
+ "maxFeePercentage": maxFeePercentage,
976
1076
  "nodeIds": nodeIds,
977
1077
  "sortOrder": sortOrder,
978
1078
  "validationStatus": validationStatus,
979
- "minDelegationCapacity": minDelegationCapacity
1079
+ "subnetId": subnetId
980
1080
  }
981
1081
  });
982
1082
  }
@@ -1007,9 +1107,9 @@ class PrimaryNetworkService {
1007
1107
  network,
1008
1108
  pageSize = 10,
1009
1109
  pageToken,
1110
+ rewardAddresses,
1010
1111
  sortOrder,
1011
1112
  delegationStatus,
1012
- rewardAddresses,
1013
1113
  nodeIds
1014
1114
  }) {
1015
1115
  return this.httpRequest.request({
@@ -1021,9 +1121,9 @@ class PrimaryNetworkService {
1021
1121
  query: {
1022
1122
  "pageSize": pageSize,
1023
1123
  "pageToken": pageToken,
1124
+ "rewardAddresses": rewardAddresses,
1024
1125
  "sortOrder": sortOrder,
1025
1126
  "delegationStatus": delegationStatus,
1026
- "rewardAddresses": rewardAddresses,
1027
1127
  "nodeIds": nodeIds
1028
1128
  }
1029
1129
  });
@@ -1125,6 +1225,7 @@ class PrimaryNetworkRewardsService {
1125
1225
  addresses,
1126
1226
  pageSize = 10,
1127
1227
  pageToken,
1228
+ nodeIds,
1128
1229
  sortOrder
1129
1230
  }) {
1130
1231
  return this.httpRequest.request({
@@ -1137,6 +1238,7 @@ class PrimaryNetworkRewardsService {
1137
1238
  "addresses": addresses,
1138
1239
  "pageSize": pageSize,
1139
1240
  "pageToken": pageToken,
1241
+ "nodeIds": nodeIds,
1140
1242
  "sortOrder": sortOrder
1141
1243
  }
1142
1244
  });
@@ -1146,6 +1248,7 @@ class PrimaryNetworkRewardsService {
1146
1248
  addresses,
1147
1249
  pageSize = 10,
1148
1250
  pageToken,
1251
+ nodeIds,
1149
1252
  sortOrder
1150
1253
  }) {
1151
1254
  return this.httpRequest.request({
@@ -1158,6 +1261,7 @@ class PrimaryNetworkRewardsService {
1158
1261
  "addresses": addresses,
1159
1262
  "pageSize": pageSize,
1160
1263
  "pageToken": pageToken,
1264
+ "nodeIds": nodeIds,
1161
1265
  "sortOrder": sortOrder
1162
1266
  }
1163
1267
  });
@@ -1367,22 +1471,40 @@ class PrimaryNetworkVerticesService {
1367
1471
  }
1368
1472
 
1369
1473
  class Glacier {
1474
+ default;
1475
+ evmBalances;
1476
+ evmBlocks;
1477
+ evmChains;
1478
+ evmContracts;
1479
+ evmTransactions;
1480
+ healthCheck;
1481
+ nfTs;
1482
+ operations;
1483
+ primaryNetwork;
1484
+ primaryNetworkBalances;
1485
+ primaryNetworkBlocks;
1486
+ primaryNetworkRewards;
1487
+ primaryNetworkTransactions;
1488
+ primaryNetworkUtxOs;
1489
+ primaryNetworkVertices;
1490
+ request;
1370
1491
  constructor(config, HttpRequest = FetchHttpRequest) {
1371
- var _a, _b, _c, _d;
1372
1492
  this.request = new HttpRequest({
1373
- BASE: (_a = config == null ? void 0 : config.BASE) != null ? _a : "https://glacier-api-dev.avax.network",
1374
- VERSION: (_b = config == null ? void 0 : config.VERSION) != null ? _b : "Beta",
1375
- WITH_CREDENTIALS: (_c = config == null ? void 0 : config.WITH_CREDENTIALS) != null ? _c : false,
1376
- CREDENTIALS: (_d = config == null ? void 0 : config.CREDENTIALS) != null ? _d : "include",
1377
- TOKEN: config == null ? void 0 : config.TOKEN,
1378
- USERNAME: config == null ? void 0 : config.USERNAME,
1379
- PASSWORD: config == null ? void 0 : config.PASSWORD,
1380
- HEADERS: config == null ? void 0 : config.HEADERS,
1381
- ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
1493
+ BASE: config?.BASE ?? "https://glacier-api-dev.avax.network",
1494
+ VERSION: config?.VERSION ?? "Beta",
1495
+ WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
1496
+ CREDENTIALS: config?.CREDENTIALS ?? "include",
1497
+ TOKEN: config?.TOKEN,
1498
+ USERNAME: config?.USERNAME,
1499
+ PASSWORD: config?.PASSWORD,
1500
+ HEADERS: config?.HEADERS,
1501
+ ENCODE_PATH: config?.ENCODE_PATH
1382
1502
  });
1503
+ this.default = new DefaultService(this.request);
1383
1504
  this.evmBalances = new EvmBalancesService(this.request);
1384
1505
  this.evmBlocks = new EvmBlocksService(this.request);
1385
1506
  this.evmChains = new EvmChainsService(this.request);
1507
+ this.evmContracts = new EvmContractsService(this.request);
1386
1508
  this.evmTransactions = new EvmTransactionsService(this.request);
1387
1509
  this.healthCheck = new HealthCheckService(this.request);
1388
1510
  this.nfTs = new NfTsService(this.request);
@@ -1409,6 +1531,20 @@ const OpenAPI = {
1409
1531
  ENCODE_PATH: void 0
1410
1532
  };
1411
1533
 
1534
+ exports.ActiveDelegatorDetails = void 0;
1535
+ ((ActiveDelegatorDetails2) => {
1536
+ ((delegationStatus2) => {
1537
+ delegationStatus2["ACTIVE"] = "active";
1538
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
1539
+ })(exports.ActiveDelegatorDetails || (exports.ActiveDelegatorDetails = {}));
1540
+
1541
+ exports.ActiveValidatorDetails = void 0;
1542
+ ((ActiveValidatorDetails2) => {
1543
+ ((validationStatus2) => {
1544
+ validationStatus2["ACTIVE"] = "active";
1545
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
1546
+ })(exports.ActiveValidatorDetails || (exports.ActiveValidatorDetails = {}));
1547
+
1412
1548
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
1413
1549
  BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1414
1550
  BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
@@ -1450,6 +1586,48 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
1450
1586
  return ChainStatus2;
1451
1587
  })(ChainStatus || {});
1452
1588
 
1589
+ exports.CompletedDelegatorDetails = void 0;
1590
+ ((CompletedDelegatorDetails2) => {
1591
+ ((delegationStatus2) => {
1592
+ delegationStatus2["COMPLETED"] = "completed";
1593
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
1594
+ })(exports.CompletedDelegatorDetails || (exports.CompletedDelegatorDetails = {}));
1595
+
1596
+ exports.CompletedValidatorDetails = void 0;
1597
+ ((CompletedValidatorDetails2) => {
1598
+ ((validationStatus2) => {
1599
+ validationStatus2["COMPLETED"] = "completed";
1600
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1601
+ })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1602
+
1603
+ exports.ContractSubmissionErc1155 = void 0;
1604
+ ((ContractSubmissionErc11552) => {
1605
+ ((ercType2) => {
1606
+ ercType2["ERC_1155"] = "ERC-1155";
1607
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
1608
+ })(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
1609
+
1610
+ exports.ContractSubmissionErc20 = void 0;
1611
+ ((ContractSubmissionErc202) => {
1612
+ ((ercType2) => {
1613
+ ercType2["ERC_20"] = "ERC-20";
1614
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
1615
+ })(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
1616
+
1617
+ exports.ContractSubmissionErc721 = void 0;
1618
+ ((ContractSubmissionErc7212) => {
1619
+ ((ercType2) => {
1620
+ ercType2["ERC_721"] = "ERC-721";
1621
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
1622
+ })(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
1623
+
1624
+ exports.ContractSubmissionUnknown = void 0;
1625
+ ((ContractSubmissionUnknown2) => {
1626
+ ((ercType2) => {
1627
+ ercType2["UNKNOWN"] = "UNKNOWN";
1628
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
1629
+ })(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
1630
+
1453
1631
  exports.CreateEvmTransactionExportRequest = void 0;
1454
1632
  ((CreateEvmTransactionExportRequest2) => {
1455
1633
  ((type2) => {
@@ -1552,6 +1730,11 @@ exports.Erc721TokenBalance = void 0;
1552
1730
  })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
1553
1731
  })(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
1554
1732
 
1733
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1734
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
1735
+ return EventType2;
1736
+ })(EventType || {});
1737
+
1555
1738
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1556
1739
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1557
1740
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1621,6 +1804,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1621
1804
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1622
1805
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1623
1806
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1807
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1624
1808
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1625
1809
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1626
1810
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1633,6 +1817,20 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1633
1817
  return PChainTransactionType2;
1634
1818
  })(PChainTransactionType || {});
1635
1819
 
1820
+ exports.PendingDelegatorDetails = void 0;
1821
+ ((PendingDelegatorDetails2) => {
1822
+ ((delegationStatus2) => {
1823
+ delegationStatus2["PENDING"] = "pending";
1824
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1825
+ })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1826
+
1827
+ exports.PendingValidatorDetails = void 0;
1828
+ ((PendingValidatorDetails2) => {
1829
+ ((validationStatus2) => {
1830
+ validationStatus2["PENDING"] = "pending";
1831
+ })(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
1832
+ })(exports.PendingValidatorDetails || (exports.PendingValidatorDetails = {}));
1833
+
1636
1834
  var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
1637
1835
  PrimaryNetwork2["MAINNET"] = "mainnet";
1638
1836
  PrimaryNetwork2["FUJI"] = "fuji";
@@ -1650,6 +1848,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1650
1848
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1651
1849
  PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1652
1850
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1851
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1653
1852
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1654
1853
  PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1655
1854
  PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1690,6 +1889,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1690
1889
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
1691
1890
  RewardType2["VALIDATOR"] = "VALIDATOR";
1692
1891
  RewardType2["DELEGATOR"] = "DELEGATOR";
1892
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
1693
1893
  return RewardType2;
1694
1894
  })(RewardType || {});
1695
1895
 
@@ -1739,6 +1939,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1739
1939
  return VmName2;
1740
1940
  })(VmName || {});
1741
1941
 
1942
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
1943
+ WebhookStatus2["ACTIVE"] = "active";
1944
+ WebhookStatus2["INACTIVE"] = "inactive";
1945
+ return WebhookStatus2;
1946
+ })(WebhookStatus || {});
1947
+
1948
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
1949
+ WebhookStatusType2["ACTIVE"] = "active";
1950
+ WebhookStatusType2["INACTIVE"] = "inactive";
1951
+ return WebhookStatusType2;
1952
+ })(WebhookStatusType || {});
1953
+
1742
1954
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1743
1955
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1744
1956
  XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
@@ -1762,6 +1974,16 @@ exports.XChainNonLinearTransaction = void 0;
1762
1974
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1763
1975
  })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1764
1976
 
1977
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
1978
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
1979
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1980
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
1981
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
1982
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
1983
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1984
+ return XChainTransactionType2;
1985
+ })(XChainTransactionType || {});
1986
+
1765
1987
  exports.ApiError = ApiError;
1766
1988
  exports.BaseHttpRequest = BaseHttpRequest;
1767
1989
  exports.BlockchainId = BlockchainId;
@@ -1770,10 +1992,13 @@ exports.CancelError = CancelError;
1770
1992
  exports.CancelablePromise = CancelablePromise;
1771
1993
  exports.ChainStatus = ChainStatus;
1772
1994
  exports.CurrencyCode = CurrencyCode;
1995
+ exports.DefaultService = DefaultService;
1773
1996
  exports.DelegationStatusType = DelegationStatusType;
1997
+ exports.EventType = EventType;
1774
1998
  exports.EvmBalancesService = EvmBalancesService;
1775
1999
  exports.EvmBlocksService = EvmBlocksService;
1776
2000
  exports.EvmChainsService = EvmChainsService;
2001
+ exports.EvmContractsService = EvmContractsService;
1777
2002
  exports.EvmTransactionsService = EvmTransactionsService;
1778
2003
  exports.Glacier = Glacier;
1779
2004
  exports.HealthCheckService = HealthCheckService;
@@ -1807,4 +2032,7 @@ exports.TransactionStatus = TransactionStatus;
1807
2032
  exports.UtxoType = UtxoType;
1808
2033
  exports.ValidationStatusType = ValidationStatusType;
1809
2034
  exports.VmName = VmName;
2035
+ exports.WebhookStatus = WebhookStatus;
2036
+ exports.WebhookStatusType = WebhookStatusType;
1810
2037
  exports.XChainId = XChainId;
2038
+ exports.XChainTransactionType = XChainTransactionType;
@@ -1,8 +1,10 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DefaultService } from './services/DefaultService.js';
3
4
  import { EvmBalancesService } from './services/EvmBalancesService.js';
4
5
  import { EvmBlocksService } from './services/EvmBlocksService.js';
5
6
  import { EvmChainsService } from './services/EvmChainsService.js';
7
+ import { EvmContractsService } from './services/EvmContractsService.js';
6
8
  import { EvmTransactionsService } from './services/EvmTransactionsService.js';
7
9
  import { HealthCheckService } from './services/HealthCheckService.js';
8
10
  import { NfTsService } from './services/NfTsService.js';
@@ -17,9 +19,11 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
17
19
 
18
20
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
19
21
  declare class Glacier {
22
+ readonly default: DefaultService;
20
23
  readonly evmBalances: EvmBalancesService;
21
24
  readonly evmBlocks: EvmBlocksService;
22
25
  readonly evmChains: EvmChainsService;
26
+ readonly evmContracts: EvmContractsService;
23
27
  readonly evmTransactions: EvmTransactionsService;
24
28
  readonly healthCheck: HealthCheckService;
25
29
  readonly nfTs: NfTsService;