@avalabs/glacier-sdk 2.8.0-canary.2de3663.0 → 2.8.0-canary.430ff95.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 (66) hide show
  1. package/dist/index.d.ts +423 -60
  2. package/dist/index.js +179 -28
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +8 -4
  7. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  8. package/esm/generated/models/ChainInfo.d.ts +1 -0
  9. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  10. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  11. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  12. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  13. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  14. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  15. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  16. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  17. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  18. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  19. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  20. package/esm/generated/models/EventType.d.ts +5 -0
  21. package/esm/generated/models/EventType.js +6 -0
  22. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  23. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  24. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  25. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  26. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  27. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  28. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  29. package/esm/generated/models/PChainTransactionType.js +1 -0
  30. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  31. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  32. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  33. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  34. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  35. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  36. package/esm/generated/models/RewardType.d.ts +2 -1
  37. package/esm/generated/models/RewardType.js +1 -0
  38. package/esm/generated/models/Rewards.d.ts +2 -0
  39. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  40. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  41. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  42. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  43. package/esm/generated/models/WebhookStatus.js +7 -0
  44. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  45. package/esm/generated/models/WebhookStatusType.js +7 -0
  46. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  47. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  48. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  49. package/esm/generated/models/XChainTransactionType.js +11 -0
  50. package/esm/generated/services/DefaultService.d.ts +59 -0
  51. package/esm/generated/services/DefaultService.js +49 -0
  52. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  53. package/esm/generated/services/EvmContractsService.js +16 -0
  54. package/esm/generated/services/EvmTransactionsService.d.ts +42 -20
  55. package/esm/generated/services/EvmTransactionsService.js +1 -14
  56. package/esm/generated/services/NfTsService.d.ts +25 -0
  57. package/esm/generated/services/NfTsService.js +19 -0
  58. package/esm/generated/services/OperationsService.d.ts +11 -11
  59. package/esm/generated/services/OperationsService.js +10 -10
  60. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  61. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  62. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -8
  63. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  64. package/esm/index.d.ts +17 -0
  65. package/esm/index.js +9 -0
  66. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -345,6 +345,54 @@ class FetchHttpRequest extends BaseHttpRequest {
345
345
  }
346
346
  }
347
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
+ }
395
+
348
396
  class EvmBalancesService {
349
397
  constructor(httpRequest) {
350
398
  this.httpRequest = httpRequest;
@@ -541,6 +589,22 @@ class EvmContractsService {
541
589
  }
542
590
  });
543
591
  }
592
+ updateContractInfo({
593
+ chainId,
594
+ address,
595
+ requestBody
596
+ }) {
597
+ return this.httpRequest.request({
598
+ method: "PATCH",
599
+ url: "/v1/chains/{chainId}/contracts/{address}",
600
+ path: {
601
+ "chainId": chainId,
602
+ "address": address
603
+ },
604
+ body: requestBody,
605
+ mediaType: "application/json"
606
+ });
607
+ }
544
608
  }
545
609
 
546
610
  class EvmTransactionsService {
@@ -572,7 +636,7 @@ class EvmTransactionsService {
572
636
  }) {
573
637
  return this.httpRequest.request({
574
638
  method: "GET",
575
- url: "/v1/chains/{chainId}/addresses/{address}/deployments",
639
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
576
640
  path: {
577
641
  "chainId": chainId,
578
642
  "address": address
@@ -583,19 +647,6 @@ class EvmTransactionsService {
583
647
  }
584
648
  });
585
649
  }
586
- getContractMetadata({
587
- chainId,
588
- address
589
- }) {
590
- return this.httpRequest.request({
591
- method: "GET",
592
- url: "/v1/chains/{chainId}/addresses/{address}",
593
- path: {
594
- "chainId": chainId,
595
- "address": address
596
- }
597
- });
598
- }
599
650
  listTransfers({
600
651
  chainId,
601
652
  address,
@@ -840,6 +891,25 @@ class NfTsService {
840
891
  }
841
892
  });
842
893
  }
894
+ listTokens({
895
+ chainId,
896
+ address,
897
+ pageSize = 10,
898
+ pageToken
899
+ }) {
900
+ return this.httpRequest.request({
901
+ method: "GET",
902
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
903
+ path: {
904
+ "chainId": chainId,
905
+ "address": address
906
+ },
907
+ query: {
908
+ "pageSize": pageSize,
909
+ "pageToken": pageToken
910
+ }
911
+ });
912
+ }
843
913
  getTokenDetails({
844
914
  chainId,
845
915
  address,
@@ -861,16 +931,6 @@ class OperationsService {
861
931
  constructor(httpRequest) {
862
932
  this.httpRequest = httpRequest;
863
933
  }
864
- postTransactionExportJob({
865
- requestBody
866
- }) {
867
- return this.httpRequest.request({
868
- method: "POST",
869
- url: "/v1/operations/transactions:export",
870
- body: requestBody,
871
- mediaType: "application/json"
872
- });
873
- }
874
934
  getOperationResult({
875
935
  operationId
876
936
  }) {
@@ -882,6 +942,16 @@ class OperationsService {
882
942
  }
883
943
  });
884
944
  }
945
+ postTransactionExportJob({
946
+ requestBody
947
+ }) {
948
+ return this.httpRequest.request({
949
+ method: "POST",
950
+ url: "/v1/operations/transactions:export",
951
+ body: requestBody,
952
+ mediaType: "application/json"
953
+ });
954
+ }
885
955
  }
886
956
 
887
957
  class PrimaryNetworkService {
@@ -971,10 +1041,16 @@ class PrimaryNetworkService {
971
1041
  network,
972
1042
  pageSize = 10,
973
1043
  pageToken,
1044
+ minTimeRemaining,
1045
+ maxTimeRemaining,
1046
+ minDelegationCapacity,
1047
+ maxDelegationCapacity,
1048
+ minFeePercentage,
1049
+ maxFeePercentage,
974
1050
  nodeIds,
975
1051
  sortOrder,
976
1052
  validationStatus,
977
- minDelegationCapacity
1053
+ subnetId
978
1054
  }) {
979
1055
  return this.httpRequest.request({
980
1056
  method: "GET",
@@ -985,10 +1061,16 @@ class PrimaryNetworkService {
985
1061
  query: {
986
1062
  "pageSize": pageSize,
987
1063
  "pageToken": pageToken,
1064
+ "minTimeRemaining": minTimeRemaining,
1065
+ "maxTimeRemaining": maxTimeRemaining,
1066
+ "minDelegationCapacity": minDelegationCapacity,
1067
+ "maxDelegationCapacity": maxDelegationCapacity,
1068
+ "minFeePercentage": minFeePercentage,
1069
+ "maxFeePercentage": maxFeePercentage,
988
1070
  "nodeIds": nodeIds,
989
1071
  "sortOrder": sortOrder,
990
1072
  "validationStatus": validationStatus,
991
- "minDelegationCapacity": minDelegationCapacity
1073
+ "subnetId": subnetId
992
1074
  }
993
1075
  });
994
1076
  }
@@ -1019,9 +1101,9 @@ class PrimaryNetworkService {
1019
1101
  network,
1020
1102
  pageSize = 10,
1021
1103
  pageToken,
1104
+ rewardAddresses,
1022
1105
  sortOrder,
1023
1106
  delegationStatus,
1024
- rewardAddresses,
1025
1107
  nodeIds
1026
1108
  }) {
1027
1109
  return this.httpRequest.request({
@@ -1033,9 +1115,9 @@ class PrimaryNetworkService {
1033
1115
  query: {
1034
1116
  "pageSize": pageSize,
1035
1117
  "pageToken": pageToken,
1118
+ "rewardAddresses": rewardAddresses,
1036
1119
  "sortOrder": sortOrder,
1037
1120
  "delegationStatus": delegationStatus,
1038
- "rewardAddresses": rewardAddresses,
1039
1121
  "nodeIds": nodeIds
1040
1122
  }
1041
1123
  });
@@ -1137,6 +1219,7 @@ class PrimaryNetworkRewardsService {
1137
1219
  addresses,
1138
1220
  pageSize = 10,
1139
1221
  pageToken,
1222
+ nodeIds,
1140
1223
  sortOrder
1141
1224
  }) {
1142
1225
  return this.httpRequest.request({
@@ -1149,6 +1232,7 @@ class PrimaryNetworkRewardsService {
1149
1232
  "addresses": addresses,
1150
1233
  "pageSize": pageSize,
1151
1234
  "pageToken": pageToken,
1235
+ "nodeIds": nodeIds,
1152
1236
  "sortOrder": sortOrder
1153
1237
  }
1154
1238
  });
@@ -1158,6 +1242,7 @@ class PrimaryNetworkRewardsService {
1158
1242
  addresses,
1159
1243
  pageSize = 10,
1160
1244
  pageToken,
1245
+ nodeIds,
1161
1246
  sortOrder
1162
1247
  }) {
1163
1248
  return this.httpRequest.request({
@@ -1170,6 +1255,7 @@ class PrimaryNetworkRewardsService {
1170
1255
  "addresses": addresses,
1171
1256
  "pageSize": pageSize,
1172
1257
  "pageToken": pageToken,
1258
+ "nodeIds": nodeIds,
1173
1259
  "sortOrder": sortOrder
1174
1260
  }
1175
1261
  });
@@ -1379,6 +1465,7 @@ class PrimaryNetworkVerticesService {
1379
1465
  }
1380
1466
 
1381
1467
  class Glacier {
1468
+ default;
1382
1469
  evmBalances;
1383
1470
  evmBlocks;
1384
1471
  evmChains;
@@ -1407,6 +1494,7 @@ class Glacier {
1407
1494
  HEADERS: config?.HEADERS,
1408
1495
  ENCODE_PATH: config?.ENCODE_PATH
1409
1496
  });
1497
+ this.default = new DefaultService(this.request);
1410
1498
  this.evmBalances = new EvmBalancesService(this.request);
1411
1499
  this.evmBlocks = new EvmBlocksService(this.request);
1412
1500
  this.evmChains = new EvmChainsService(this.request);
@@ -1506,6 +1594,34 @@ exports.CompletedValidatorDetails = void 0;
1506
1594
  })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1507
1595
  })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1508
1596
 
1597
+ exports.ContractSubmissionErc1155 = void 0;
1598
+ ((ContractSubmissionErc11552) => {
1599
+ ((ercType2) => {
1600
+ ercType2["ERC_1155"] = "ERC-1155";
1601
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
1602
+ })(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
1603
+
1604
+ exports.ContractSubmissionErc20 = void 0;
1605
+ ((ContractSubmissionErc202) => {
1606
+ ((ercType2) => {
1607
+ ercType2["ERC_20"] = "ERC-20";
1608
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
1609
+ })(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
1610
+
1611
+ exports.ContractSubmissionErc721 = void 0;
1612
+ ((ContractSubmissionErc7212) => {
1613
+ ((ercType2) => {
1614
+ ercType2["ERC_721"] = "ERC-721";
1615
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
1616
+ })(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
1617
+
1618
+ exports.ContractSubmissionUnknown = void 0;
1619
+ ((ContractSubmissionUnknown2) => {
1620
+ ((ercType2) => {
1621
+ ercType2["UNKNOWN"] = "UNKNOWN";
1622
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
1623
+ })(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
1624
+
1509
1625
  exports.CreateEvmTransactionExportRequest = void 0;
1510
1626
  ((CreateEvmTransactionExportRequest2) => {
1511
1627
  ((type2) => {
@@ -1608,6 +1724,11 @@ exports.Erc721TokenBalance = void 0;
1608
1724
  })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
1609
1725
  })(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
1610
1726
 
1727
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1728
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
1729
+ return EventType2;
1730
+ })(EventType || {});
1731
+
1611
1732
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1612
1733
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1613
1734
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1677,6 +1798,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1677
1798
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1678
1799
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1679
1800
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1801
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1680
1802
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1681
1803
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1682
1804
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1720,6 +1842,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1720
1842
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1721
1843
  PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1722
1844
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1845
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1723
1846
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1724
1847
  PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1725
1848
  PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1760,6 +1883,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1760
1883
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
1761
1884
  RewardType2["VALIDATOR"] = "VALIDATOR";
1762
1885
  RewardType2["DELEGATOR"] = "DELEGATOR";
1886
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
1763
1887
  return RewardType2;
1764
1888
  })(RewardType || {});
1765
1889
 
@@ -1809,6 +1933,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1809
1933
  return VmName2;
1810
1934
  })(VmName || {});
1811
1935
 
1936
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
1937
+ WebhookStatus2["ACTIVE"] = "active";
1938
+ WebhookStatus2["INACTIVE"] = "inactive";
1939
+ return WebhookStatus2;
1940
+ })(WebhookStatus || {});
1941
+
1942
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
1943
+ WebhookStatusType2["ACTIVE"] = "active";
1944
+ WebhookStatusType2["INACTIVE"] = "inactive";
1945
+ return WebhookStatusType2;
1946
+ })(WebhookStatusType || {});
1947
+
1812
1948
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1813
1949
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1814
1950
  XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
@@ -1832,6 +1968,16 @@ exports.XChainNonLinearTransaction = void 0;
1832
1968
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1833
1969
  })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1834
1970
 
1971
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
1972
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
1973
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1974
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
1975
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
1976
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
1977
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1978
+ return XChainTransactionType2;
1979
+ })(XChainTransactionType || {});
1980
+
1835
1981
  exports.ApiError = ApiError;
1836
1982
  exports.BaseHttpRequest = BaseHttpRequest;
1837
1983
  exports.BlockchainId = BlockchainId;
@@ -1840,7 +1986,9 @@ exports.CancelError = CancelError;
1840
1986
  exports.CancelablePromise = CancelablePromise;
1841
1987
  exports.ChainStatus = ChainStatus;
1842
1988
  exports.CurrencyCode = CurrencyCode;
1989
+ exports.DefaultService = DefaultService;
1843
1990
  exports.DelegationStatusType = DelegationStatusType;
1991
+ exports.EventType = EventType;
1844
1992
  exports.EvmBalancesService = EvmBalancesService;
1845
1993
  exports.EvmBlocksService = EvmBlocksService;
1846
1994
  exports.EvmChainsService = EvmChainsService;
@@ -1878,4 +2026,7 @@ exports.TransactionStatus = TransactionStatus;
1878
2026
  exports.UtxoType = UtxoType;
1879
2027
  exports.ValidationStatusType = ValidationStatusType;
1880
2028
  exports.VmName = VmName;
2029
+ exports.WebhookStatus = WebhookStatus;
2030
+ exports.WebhookStatusType = WebhookStatusType;
1881
2031
  exports.XChainId = XChainId;
2032
+ exports.XChainTransactionType = XChainTransactionType;
@@ -1,5 +1,6 @@
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';
@@ -18,6 +19,7 @@ import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVertices
18
19
 
19
20
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
20
21
  declare class Glacier {
22
+ readonly default: DefaultService;
21
23
  readonly evmBalances: EvmBalancesService;
22
24
  readonly evmBlocks: EvmBlocksService;
23
25
  readonly evmChains: EvmChainsService;
@@ -1,4 +1,5 @@
1
1
  import { FetchHttpRequest } from './core/FetchHttpRequest.js';
2
+ import { DefaultService } from './services/DefaultService.js';
2
3
  import { EvmBalancesService } from './services/EvmBalancesService.js';
3
4
  import { EvmBlocksService } from './services/EvmBlocksService.js';
4
5
  import { EvmChainsService } from './services/EvmChainsService.js';
@@ -16,6 +17,7 @@ import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsServic
16
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
17
18
 
18
19
  class Glacier {
20
+ default;
19
21
  evmBalances;
20
22
  evmBlocks;
21
23
  evmChains;
@@ -44,6 +46,7 @@ class Glacier {
44
46
  HEADERS: config?.HEADERS,
45
47
  ENCODE_PATH: config?.ENCODE_PATH
46
48
  });
49
+ this.default = new DefaultService(this.request);
47
50
  this.evmBalances = new EvmBalancesService(this.request);
48
51
  this.evmBlocks = new EvmBlocksService(this.request);
49
52
  this.evmChains = new EvmChainsService(this.request);
@@ -1,5 +1,6 @@
1
1
  type ActiveDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,19 +1,23 @@
1
1
  import { Rewards } from './Rewards.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
2
3
 
3
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
4
6
  nodeId: string;
7
+ subnetId: string;
5
8
  amountStaked: string;
6
- delegationFee: string;
9
+ delegationFee?: string;
7
10
  startTimestamp: number;
8
11
  endTimestamp: number;
9
12
  stakePercentage: number;
10
13
  delegatorCount: number;
11
- amountDelegated: string;
14
+ amountDelegated?: string;
12
15
  uptimePerformance: number;
13
- avalancheGoVersion: string;
14
- delegationCapacity: string;
16
+ avalancheGoVersion?: string;
17
+ delegationCapacity?: string;
15
18
  potentialRewards: Rewards;
16
19
  validationStatus: ActiveValidatorDetails.validationStatus;
20
+ validatorHealth: ValidatorHealthDetails;
17
21
  };
18
22
  declare namespace ActiveValidatorDetails {
19
23
  enum validationStatus {
@@ -0,0 +1,9 @@
1
+ type AddressActivityMetadata = {
2
+ /**
3
+ * Ethereum address for the address_activity event type
4
+ */
5
+ address: string;
6
+ topic0?: string;
7
+ };
8
+
9
+ export { AddressActivityMetadata };
@@ -22,6 +22,7 @@ type ChainInfo = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { ChainInfo };
@@ -1,5 +1,6 @@
1
1
  type CompletedDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,9 +1,11 @@
1
1
  import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
4
5
  nodeId: string;
6
+ subnetId: string;
5
7
  amountStaked: string;
6
- delegationFee: string;
8
+ delegationFee?: string;
7
9
  startTimestamp: number;
8
10
  endTimestamp: number;
9
11
  delegatorCount: number;
@@ -0,0 +1,10 @@
1
+ import { ContractSubmissionErc1155 } from './ContractSubmissionErc1155.js';
2
+ import { ContractSubmissionErc20 } from './ContractSubmissionErc20.js';
3
+ import { ContractSubmissionErc721 } from './ContractSubmissionErc721.js';
4
+ import { ContractSubmissionUnknown } from './ContractSubmissionUnknown.js';
5
+
6
+ type ContractSubmissionBody = {
7
+ contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
8
+ };
9
+
10
+ export { ContractSubmissionBody };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc1155 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc1155.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc1155 {
26
+ enum ercType {
27
+ ERC_1155 = "ERC-1155"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc1155;
2
+ ((ContractSubmissionErc11552) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
6
+ })(ContractSubmissionErc1155 || (ContractSubmissionErc1155 = {}));
7
+
8
+ export { ContractSubmissionErc1155 };
@@ -0,0 +1,31 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { PricingProviders } from './PricingProviders.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type ContractSubmissionErc20 = {
6
+ description?: string;
7
+ officialSite?: string;
8
+ email?: string;
9
+ logoAsset?: ImageAsset;
10
+ bannerAsset?: ImageAsset;
11
+ color?: string;
12
+ resourceLinks?: Array<ResourceLink>;
13
+ tags?: Array<string>;
14
+ /**
15
+ * The contract name.
16
+ */
17
+ name: string;
18
+ ercType: ContractSubmissionErc20.ercType;
19
+ /**
20
+ * The contract symbol.
21
+ */
22
+ symbol: string;
23
+ pricingProviders?: PricingProviders;
24
+ };
25
+ declare namespace ContractSubmissionErc20 {
26
+ enum ercType {
27
+ ERC_20 = "ERC-20"
28
+ }
29
+ }
30
+
31
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc20;
2
+ ((ContractSubmissionErc202) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
6
+ })(ContractSubmissionErc20 || (ContractSubmissionErc20 = {}));
7
+
8
+ export { ContractSubmissionErc20 };
@@ -0,0 +1,29 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionErc721 = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionErc721.ercType;
18
+ /**
19
+ * The contract symbol.
20
+ */
21
+ symbol: string;
22
+ };
23
+ declare namespace ContractSubmissionErc721 {
24
+ enum ercType {
25
+ ERC_721 = "ERC-721"
26
+ }
27
+ }
28
+
29
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionErc721;
2
+ ((ContractSubmissionErc7212) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_721"] = "ERC-721";
5
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
6
+ })(ContractSubmissionErc721 || (ContractSubmissionErc721 = {}));
7
+
8
+ export { ContractSubmissionErc721 };
@@ -0,0 +1,25 @@
1
+ import { ImageAsset } from './ImageAsset.js';
2
+ import { ResourceLink } from './ResourceLink.js';
3
+
4
+ type ContractSubmissionUnknown = {
5
+ description?: string;
6
+ officialSite?: string;
7
+ email?: string;
8
+ logoAsset?: ImageAsset;
9
+ bannerAsset?: ImageAsset;
10
+ color?: string;
11
+ resourceLinks?: Array<ResourceLink>;
12
+ tags?: Array<string>;
13
+ /**
14
+ * The contract name.
15
+ */
16
+ name: string;
17
+ ercType: ContractSubmissionUnknown.ercType;
18
+ };
19
+ declare namespace ContractSubmissionUnknown {
20
+ enum ercType {
21
+ UNKNOWN = "UNKNOWN"
22
+ }
23
+ }
24
+
25
+ export { ContractSubmissionUnknown };
@@ -0,0 +1,8 @@
1
+ var ContractSubmissionUnknown;
2
+ ((ContractSubmissionUnknown2) => {
3
+ ((ercType2) => {
4
+ ercType2["UNKNOWN"] = "UNKNOWN";
5
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
6
+ })(ContractSubmissionUnknown || (ContractSubmissionUnknown = {}));
7
+
8
+ export { ContractSubmissionUnknown };
@@ -0,0 +1,5 @@
1
+ declare enum EventType {
2
+ ADDRESS_ACTIVITY = "address_activity"
3
+ }
4
+
5
+ export { EventType };