@avalabs/glacier-sdk 2.8.0-canary.aeb3588.0 → 2.8.0-canary.b05020f.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 (89) hide show
  1. package/dist/index.d.ts +762 -140
  2. package/dist/index.js +275 -22
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -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 +12 -0
  8. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  9. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -1
  10. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  11. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  12. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  13. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  14. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  15. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  16. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  17. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  18. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  19. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  20. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  21. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  22. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  23. package/esm/generated/models/EventType.d.ts +5 -0
  24. package/esm/generated/models/EventType.js +6 -0
  25. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  26. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  27. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  28. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  29. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  30. package/esm/generated/models/NextPageToken.d.ts +8 -0
  31. package/esm/generated/models/PChainBalance.d.ts +7 -7
  32. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  33. package/esm/generated/models/PChainTransaction.d.ts +5 -4
  34. package/esm/generated/models/PChainTransactionType.d.ts +6 -4
  35. package/esm/generated/models/PChainTransactionType.js +6 -4
  36. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  37. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  38. package/esm/generated/models/PendingReward.d.ts +2 -2
  39. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  40. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  41. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -1
  42. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  43. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
  44. package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
  45. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  46. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  47. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  48. package/esm/generated/models/RewardType.d.ts +2 -1
  49. package/esm/generated/models/RewardType.js +1 -0
  50. package/esm/generated/models/Rewards.d.ts +2 -0
  51. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  52. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  53. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  54. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  55. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  56. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  57. package/esm/generated/models/Utxo.d.ts +28 -28
  58. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  59. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  60. package/esm/generated/models/ValidationStatusType.js +1 -0
  61. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  62. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  63. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  64. package/esm/generated/models/WebhookStatus.js +7 -0
  65. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  66. package/esm/generated/models/WebhookStatusType.js +7 -0
  67. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  68. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  69. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  70. package/esm/generated/models/XChainTransactionType.js +11 -0
  71. package/esm/generated/services/DefaultService.d.ts +67 -0
  72. package/esm/generated/services/DefaultService.js +55 -0
  73. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  74. package/esm/generated/services/EvmContractsService.js +16 -0
  75. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  76. package/esm/generated/services/NfTsService.d.ts +25 -0
  77. package/esm/generated/services/NfTsService.js +19 -0
  78. package/esm/generated/services/OperationsService.d.ts +11 -11
  79. package/esm/generated/services/OperationsService.js +10 -10
  80. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +12 -4
  81. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  82. package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
  83. package/esm/generated/services/PrimaryNetworkService.js +16 -4
  84. package/esm/generated/services/TeleporterService.d.ts +65 -0
  85. package/esm/generated/services/TeleporterService.js +43 -0
  86. package/esm/index.d.ts +27 -1
  87. package/esm/index.js +15 -0
  88. package/package.json +2 -2
  89. package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.js CHANGED
@@ -345,6 +345,60 @@ 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
+ generateSharedSecret() {
395
+ return this.httpRequest.request({
396
+ method: "POST",
397
+ url: "/v1/webhooks:generateSharedSecret"
398
+ });
399
+ }
400
+ }
401
+
348
402
  class EvmBalancesService {
349
403
  constructor(httpRequest) {
350
404
  this.httpRequest = httpRequest;
@@ -541,6 +595,22 @@ class EvmContractsService {
541
595
  }
542
596
  });
543
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
+ }
544
614
  }
545
615
 
546
616
  class EvmTransactionsService {
@@ -827,6 +897,25 @@ class NfTsService {
827
897
  }
828
898
  });
829
899
  }
900
+ listTokens({
901
+ chainId,
902
+ address,
903
+ pageSize = 10,
904
+ pageToken
905
+ }) {
906
+ return this.httpRequest.request({
907
+ method: "GET",
908
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
909
+ path: {
910
+ "chainId": chainId,
911
+ "address": address
912
+ },
913
+ query: {
914
+ "pageSize": pageSize,
915
+ "pageToken": pageToken
916
+ }
917
+ });
918
+ }
830
919
  getTokenDetails({
831
920
  chainId,
832
921
  address,
@@ -848,16 +937,6 @@ class OperationsService {
848
937
  constructor(httpRequest) {
849
938
  this.httpRequest = httpRequest;
850
939
  }
851
- postTransactionExportJob({
852
- requestBody
853
- }) {
854
- return this.httpRequest.request({
855
- method: "POST",
856
- url: "/v1/operations/transactions:export",
857
- body: requestBody,
858
- mediaType: "application/json"
859
- });
860
- }
861
940
  getOperationResult({
862
941
  operationId
863
942
  }) {
@@ -869,6 +948,16 @@ class OperationsService {
869
948
  }
870
949
  });
871
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
+ }
872
961
  }
873
962
 
874
963
  class PrimaryNetworkService {
@@ -961,7 +1050,13 @@ class PrimaryNetworkService {
961
1050
  nodeIds,
962
1051
  sortOrder,
963
1052
  validationStatus,
964
- minDelegationCapacity
1053
+ minDelegationCapacity,
1054
+ maxDelegationCapacity,
1055
+ minTimeRemaining,
1056
+ maxTimeRemaining,
1057
+ minFeePercentage,
1058
+ maxFeePercentage,
1059
+ subnetId
965
1060
  }) {
966
1061
  return this.httpRequest.request({
967
1062
  method: "GET",
@@ -975,7 +1070,13 @@ class PrimaryNetworkService {
975
1070
  "nodeIds": nodeIds,
976
1071
  "sortOrder": sortOrder,
977
1072
  "validationStatus": validationStatus,
978
- "minDelegationCapacity": minDelegationCapacity
1073
+ "minDelegationCapacity": minDelegationCapacity,
1074
+ "maxDelegationCapacity": maxDelegationCapacity,
1075
+ "minTimeRemaining": minTimeRemaining,
1076
+ "maxTimeRemaining": maxTimeRemaining,
1077
+ "minFeePercentage": minFeePercentage,
1078
+ "maxFeePercentage": maxFeePercentage,
1079
+ "subnetId": subnetId
979
1080
  }
980
1081
  });
981
1082
  }
@@ -1006,9 +1107,9 @@ class PrimaryNetworkService {
1006
1107
  network,
1007
1108
  pageSize = 10,
1008
1109
  pageToken,
1110
+ rewardAddresses,
1009
1111
  sortOrder,
1010
1112
  delegationStatus,
1011
- rewardAddresses,
1012
1113
  nodeIds
1013
1114
  }) {
1014
1115
  return this.httpRequest.request({
@@ -1020,9 +1121,9 @@ class PrimaryNetworkService {
1020
1121
  query: {
1021
1122
  "pageSize": pageSize,
1022
1123
  "pageToken": pageToken,
1124
+ "rewardAddresses": rewardAddresses,
1023
1125
  "sortOrder": sortOrder,
1024
1126
  "delegationStatus": delegationStatus,
1025
- "rewardAddresses": rewardAddresses,
1026
1127
  "nodeIds": nodeIds
1027
1128
  }
1028
1129
  });
@@ -1124,6 +1225,7 @@ class PrimaryNetworkRewardsService {
1124
1225
  addresses,
1125
1226
  pageSize = 10,
1126
1227
  pageToken,
1228
+ nodeIds,
1127
1229
  sortOrder
1128
1230
  }) {
1129
1231
  return this.httpRequest.request({
@@ -1136,6 +1238,7 @@ class PrimaryNetworkRewardsService {
1136
1238
  "addresses": addresses,
1137
1239
  "pageSize": pageSize,
1138
1240
  "pageToken": pageToken,
1241
+ "nodeIds": nodeIds,
1139
1242
  "sortOrder": sortOrder
1140
1243
  }
1141
1244
  });
@@ -1145,6 +1248,7 @@ class PrimaryNetworkRewardsService {
1145
1248
  addresses,
1146
1249
  pageSize = 10,
1147
1250
  pageToken,
1251
+ nodeIds,
1148
1252
  sortOrder
1149
1253
  }) {
1150
1254
  return this.httpRequest.request({
@@ -1157,6 +1261,7 @@ class PrimaryNetworkRewardsService {
1157
1261
  "addresses": addresses,
1158
1262
  "pageSize": pageSize,
1159
1263
  "pageToken": pageToken,
1264
+ "nodeIds": nodeIds,
1160
1265
  "sortOrder": sortOrder
1161
1266
  }
1162
1267
  });
@@ -1365,7 +1470,50 @@ class PrimaryNetworkVerticesService {
1365
1470
  }
1366
1471
  }
1367
1472
 
1473
+ class TeleporterService {
1474
+ constructor(httpRequest) {
1475
+ this.httpRequest = httpRequest;
1476
+ }
1477
+ getTeleporterMessage({
1478
+ sourceBlockchainId,
1479
+ destinationBlockchainId,
1480
+ messageId
1481
+ }) {
1482
+ return this.httpRequest.request({
1483
+ method: "GET",
1484
+ url: "/v1/teleporter/messages:getMessage",
1485
+ query: {
1486
+ "sourceBlockchainId": sourceBlockchainId,
1487
+ "destinationBlockchainId": destinationBlockchainId,
1488
+ "messageId": messageId
1489
+ }
1490
+ });
1491
+ }
1492
+ listTeleporterMessages({
1493
+ pageSize = 10,
1494
+ pageToken,
1495
+ sourceBlockchainId,
1496
+ destinationBlockchainId,
1497
+ to,
1498
+ from
1499
+ }) {
1500
+ return this.httpRequest.request({
1501
+ method: "GET",
1502
+ url: "/v1/teleporter/messages",
1503
+ query: {
1504
+ "pageSize": pageSize,
1505
+ "pageToken": pageToken,
1506
+ "sourceBlockchainId": sourceBlockchainId,
1507
+ "destinationBlockchainId": destinationBlockchainId,
1508
+ "to": to,
1509
+ "from": from
1510
+ }
1511
+ });
1512
+ }
1513
+ }
1514
+
1368
1515
  class Glacier {
1516
+ default;
1369
1517
  evmBalances;
1370
1518
  evmBlocks;
1371
1519
  evmChains;
@@ -1381,6 +1529,7 @@ class Glacier {
1381
1529
  primaryNetworkTransactions;
1382
1530
  primaryNetworkUtxOs;
1383
1531
  primaryNetworkVertices;
1532
+ teleporter;
1384
1533
  request;
1385
1534
  constructor(config, HttpRequest = FetchHttpRequest) {
1386
1535
  this.request = new HttpRequest({
@@ -1394,6 +1543,7 @@ class Glacier {
1394
1543
  HEADERS: config?.HEADERS,
1395
1544
  ENCODE_PATH: config?.ENCODE_PATH
1396
1545
  });
1546
+ this.default = new DefaultService(this.request);
1397
1547
  this.evmBalances = new EvmBalancesService(this.request);
1398
1548
  this.evmBlocks = new EvmBlocksService(this.request);
1399
1549
  this.evmChains = new EvmChainsService(this.request);
@@ -1409,6 +1559,7 @@ class Glacier {
1409
1559
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
1410
1560
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
1411
1561
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
1562
+ this.teleporter = new TeleporterService(this.request);
1412
1563
  }
1413
1564
  }
1414
1565
 
@@ -1493,6 +1644,34 @@ exports.CompletedValidatorDetails = void 0;
1493
1644
  })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1494
1645
  })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1495
1646
 
1647
+ exports.ContractSubmissionErc1155 = void 0;
1648
+ ((ContractSubmissionErc11552) => {
1649
+ ((ercType2) => {
1650
+ ercType2["ERC_1155"] = "ERC-1155";
1651
+ })(ContractSubmissionErc11552.ercType || (ContractSubmissionErc11552.ercType = {}));
1652
+ })(exports.ContractSubmissionErc1155 || (exports.ContractSubmissionErc1155 = {}));
1653
+
1654
+ exports.ContractSubmissionErc20 = void 0;
1655
+ ((ContractSubmissionErc202) => {
1656
+ ((ercType2) => {
1657
+ ercType2["ERC_20"] = "ERC-20";
1658
+ })(ContractSubmissionErc202.ercType || (ContractSubmissionErc202.ercType = {}));
1659
+ })(exports.ContractSubmissionErc20 || (exports.ContractSubmissionErc20 = {}));
1660
+
1661
+ exports.ContractSubmissionErc721 = void 0;
1662
+ ((ContractSubmissionErc7212) => {
1663
+ ((ercType2) => {
1664
+ ercType2["ERC_721"] = "ERC-721";
1665
+ })(ContractSubmissionErc7212.ercType || (ContractSubmissionErc7212.ercType = {}));
1666
+ })(exports.ContractSubmissionErc721 || (exports.ContractSubmissionErc721 = {}));
1667
+
1668
+ exports.ContractSubmissionUnknown = void 0;
1669
+ ((ContractSubmissionUnknown2) => {
1670
+ ((ercType2) => {
1671
+ ercType2["UNKNOWN"] = "UNKNOWN";
1672
+ })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
1673
+ })(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
1674
+
1496
1675
  exports.CreateEvmTransactionExportRequest = void 0;
1497
1676
  ((CreateEvmTransactionExportRequest2) => {
1498
1677
  ((type2) => {
@@ -1532,6 +1711,20 @@ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
1532
1711
  return DelegationStatusType2;
1533
1712
  })(DelegationStatusType || {});
1534
1713
 
1714
+ exports.DeliveredSourceNotIndexedTeleporterMessage = void 0;
1715
+ ((DeliveredSourceNotIndexedTeleporterMessage2) => {
1716
+ ((status2) => {
1717
+ status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
1718
+ })(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
1719
+ })(exports.DeliveredSourceNotIndexedTeleporterMessage || (exports.DeliveredSourceNotIndexedTeleporterMessage = {}));
1720
+
1721
+ exports.DeliveredTeleporterMessage = void 0;
1722
+ ((DeliveredTeleporterMessage2) => {
1723
+ ((status2) => {
1724
+ status2["DELIVERED"] = "delivered";
1725
+ })(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
1726
+ })(exports.DeliveredTeleporterMessage || (exports.DeliveredTeleporterMessage = {}));
1727
+
1535
1728
  exports.Erc1155Contract = void 0;
1536
1729
  ((Erc1155Contract2) => {
1537
1730
  ((ercType2) => {
@@ -1595,6 +1788,11 @@ exports.Erc721TokenBalance = void 0;
1595
1788
  })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
1596
1789
  })(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
1597
1790
 
1791
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1792
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
1793
+ return EventType2;
1794
+ })(EventType || {});
1795
+
1598
1796
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1599
1797
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1600
1798
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1662,16 +1860,18 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
1662
1860
 
1663
1861
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1664
1862
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1665
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1666
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1667
1863
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1668
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1669
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1864
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1670
1865
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1671
1866
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1672
1867
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
1673
1868
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
1674
1869
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1870
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1871
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1872
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1873
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1874
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1675
1875
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1676
1876
  return PChainTransactionType2;
1677
1877
  })(PChainTransactionType || {});
@@ -1683,6 +1883,13 @@ exports.PendingDelegatorDetails = void 0;
1683
1883
  })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
1684
1884
  })(exports.PendingDelegatorDetails || (exports.PendingDelegatorDetails = {}));
1685
1885
 
1886
+ exports.PendingTeleporterMessage = void 0;
1887
+ ((PendingTeleporterMessage2) => {
1888
+ ((status2) => {
1889
+ status2["PENDING"] = "pending";
1890
+ })(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
1891
+ })(exports.PendingTeleporterMessage || (exports.PendingTeleporterMessage = {}));
1892
+
1686
1893
  exports.PendingValidatorDetails = void 0;
1687
1894
  ((PendingValidatorDetails2) => {
1688
1895
  ((validationStatus2) => {
@@ -1705,16 +1912,18 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1705
1912
 
1706
1913
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1707
1914
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1708
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1709
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1710
1915
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1711
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1712
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1916
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1713
1917
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1714
1918
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1715
1919
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
1716
1920
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
1717
1921
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1922
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1923
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1924
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1925
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1926
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1718
1927
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1719
1928
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1720
1929
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -1722,6 +1931,13 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1722
1931
  return PrimaryNetworkTxType2;
1723
1932
  })(PrimaryNetworkTxType || {});
1724
1933
 
1934
+ exports.RemovedValidatorDetails = void 0;
1935
+ ((RemovedValidatorDetails2) => {
1936
+ ((validationStatus2) => {
1937
+ validationStatus2["REMOVED"] = "removed";
1938
+ })(RemovedValidatorDetails2.validationStatus || (RemovedValidatorDetails2.validationStatus = {}));
1939
+ })(exports.RemovedValidatorDetails || (exports.RemovedValidatorDetails = {}));
1940
+
1725
1941
  var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1726
1942
  ResourceLinkType2["BLOG"] = "Blog";
1727
1943
  ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
@@ -1747,6 +1963,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1747
1963
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
1748
1964
  RewardType2["VALIDATOR"] = "VALIDATOR";
1749
1965
  RewardType2["DELEGATOR"] = "DELEGATOR";
1966
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
1750
1967
  return RewardType2;
1751
1968
  })(RewardType || {});
1752
1969
 
@@ -1756,6 +1973,13 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1756
1973
  return SortOrder2;
1757
1974
  })(SortOrder || {});
1758
1975
 
1976
+ exports.TeleporterRewardDetails = void 0;
1977
+ ((TeleporterRewardDetails2) => {
1978
+ ((ercType2) => {
1979
+ ercType2["ERC_20"] = "ERC-20";
1980
+ })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
1981
+ })(exports.TeleporterRewardDetails || (exports.TeleporterRewardDetails = {}));
1982
+
1759
1983
  var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
1760
1984
  TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
1761
1985
  TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
@@ -1786,6 +2010,7 @@ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
1786
2010
  ValidationStatusType2["COMPLETED"] = "completed";
1787
2011
  ValidationStatusType2["ACTIVE"] = "active";
1788
2012
  ValidationStatusType2["PENDING"] = "pending";
2013
+ ValidationStatusType2["REMOVED"] = "removed";
1789
2014
  return ValidationStatusType2;
1790
2015
  })(ValidationStatusType || {});
1791
2016
 
@@ -1796,6 +2021,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1796
2021
  return VmName2;
1797
2022
  })(VmName || {});
1798
2023
 
2024
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2025
+ WebhookStatus2["ACTIVE"] = "active";
2026
+ WebhookStatus2["INACTIVE"] = "inactive";
2027
+ return WebhookStatus2;
2028
+ })(WebhookStatus || {});
2029
+
2030
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2031
+ WebhookStatusType2["ACTIVE"] = "active";
2032
+ WebhookStatusType2["INACTIVE"] = "inactive";
2033
+ return WebhookStatusType2;
2034
+ })(WebhookStatusType || {});
2035
+
1799
2036
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1800
2037
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1801
2038
  XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
@@ -1819,6 +2056,16 @@ exports.XChainNonLinearTransaction = void 0;
1819
2056
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1820
2057
  })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1821
2058
 
2059
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2060
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
2061
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
2062
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
2063
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
2064
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
2065
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
2066
+ return XChainTransactionType2;
2067
+ })(XChainTransactionType || {});
2068
+
1822
2069
  exports.ApiError = ApiError;
1823
2070
  exports.BaseHttpRequest = BaseHttpRequest;
1824
2071
  exports.BlockchainId = BlockchainId;
@@ -1827,7 +2074,9 @@ exports.CancelError = CancelError;
1827
2074
  exports.CancelablePromise = CancelablePromise;
1828
2075
  exports.ChainStatus = ChainStatus;
1829
2076
  exports.CurrencyCode = CurrencyCode;
2077
+ exports.DefaultService = DefaultService;
1830
2078
  exports.DelegationStatusType = DelegationStatusType;
2079
+ exports.EventType = EventType;
1831
2080
  exports.EvmBalancesService = EvmBalancesService;
1832
2081
  exports.EvmBlocksService = EvmBlocksService;
1833
2082
  exports.EvmChainsService = EvmChainsService;
@@ -1860,9 +2109,13 @@ exports.PrimaryNetworkVerticesService = PrimaryNetworkVerticesService;
1860
2109
  exports.ResourceLinkType = ResourceLinkType;
1861
2110
  exports.RewardType = RewardType;
1862
2111
  exports.SortOrder = SortOrder;
2112
+ exports.TeleporterService = TeleporterService;
1863
2113
  exports.TransactionMethodType = TransactionMethodType;
1864
2114
  exports.TransactionStatus = TransactionStatus;
1865
2115
  exports.UtxoType = UtxoType;
1866
2116
  exports.ValidationStatusType = ValidationStatusType;
1867
2117
  exports.VmName = VmName;
2118
+ exports.WebhookStatus = WebhookStatus;
2119
+ exports.WebhookStatusType = WebhookStatusType;
1868
2120
  exports.XChainId = XChainId;
2121
+ 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';
@@ -15,9 +16,11 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
15
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
16
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
17
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
+ import { TeleporterService } from './services/TeleporterService.js';
18
20
 
19
21
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
20
22
  declare class Glacier {
23
+ readonly default: DefaultService;
21
24
  readonly evmBalances: EvmBalancesService;
22
25
  readonly evmBlocks: EvmBlocksService;
23
26
  readonly evmChains: EvmChainsService;
@@ -33,6 +36,7 @@ declare class Glacier {
33
36
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
34
37
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
35
38
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
39
+ readonly teleporter: TeleporterService;
36
40
  readonly request: BaseHttpRequest;
37
41
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
38
42
  }
@@ -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';
@@ -14,8 +15,10 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
14
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
15
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
16
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
+ import { TeleporterService } from './services/TeleporterService.js';
17
19
 
18
20
  class Glacier {
21
+ default;
19
22
  evmBalances;
20
23
  evmBlocks;
21
24
  evmChains;
@@ -31,6 +34,7 @@ class Glacier {
31
34
  primaryNetworkTransactions;
32
35
  primaryNetworkUtxOs;
33
36
  primaryNetworkVertices;
37
+ teleporter;
34
38
  request;
35
39
  constructor(config, HttpRequest = FetchHttpRequest) {
36
40
  this.request = new HttpRequest({
@@ -44,6 +48,7 @@ class Glacier {
44
48
  HEADERS: config?.HEADERS,
45
49
  ENCODE_PATH: config?.ENCODE_PATH
46
50
  });
51
+ this.default = new DefaultService(this.request);
47
52
  this.evmBalances = new EvmBalancesService(this.request);
48
53
  this.evmBlocks = new EvmBlocksService(this.request);
49
54
  this.evmChains = new EvmChainsService(this.request);
@@ -59,6 +64,7 @@ class Glacier {
59
64
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
60
65
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
61
66
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
67
+ this.teleporter = new TeleporterService(this.request);
62
68
  }
63
69
  }
64
70
 
@@ -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,12 @@
1
+ type AddressActivityMetadata = {
2
+ /**
3
+ * Ethereum address for the address_activity event type
4
+ */
5
+ address: string;
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
10
+ };
11
+
12
+ export { AddressActivityMetadata };
@@ -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 };