@avalabs/glacier-sdk 2.8.0-canary.b80d643.0 → 2.8.0-canary.bf2dc9b.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 (62) hide show
  1. package/dist/index.d.ts +502 -136
  2. package/dist/index.js +185 -30
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
  6. package/esm/generated/models/AddressActivityMetadata.d.ts +9 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -0
  8. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  9. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  10. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  11. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  12. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  13. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  14. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  15. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  16. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  17. package/esm/generated/models/EventType.d.ts +5 -0
  18. package/esm/generated/models/EventType.js +6 -0
  19. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  20. package/esm/generated/models/HistoricalReward.d.ts +2 -2
  21. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  22. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  23. package/esm/generated/models/PChainBalance.d.ts +7 -7
  24. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  25. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  26. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  27. package/esm/generated/models/PChainTransactionType.js +6 -5
  28. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  29. package/esm/generated/models/PendingReward.d.ts +2 -2
  30. package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
  31. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  32. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  33. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  34. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  35. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  36. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  37. package/esm/generated/models/Utxo.d.ts +28 -28
  38. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  39. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  40. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  41. package/esm/generated/models/WebhookStatus.js +7 -0
  42. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  43. package/esm/generated/models/WebhookStatusType.js +7 -0
  44. package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
  45. package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
  46. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  47. package/esm/generated/models/XChainTransactionType.js +11 -0
  48. package/esm/generated/services/DefaultService.d.ts +67 -0
  49. package/esm/generated/services/DefaultService.js +55 -0
  50. package/esm/generated/services/EvmContractsService.d.ts +19 -0
  51. package/esm/generated/services/EvmContractsService.js +16 -0
  52. package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
  53. package/esm/generated/services/NfTsService.d.ts +25 -0
  54. package/esm/generated/services/NfTsService.js +19 -0
  55. package/esm/generated/services/OperationsService.d.ts +11 -11
  56. package/esm/generated/services/OperationsService.js +10 -10
  57. package/esm/generated/services/PrimaryNetworkService.d.ts +21 -17
  58. package/esm/generated/services/PrimaryNetworkService.js +12 -10
  59. package/esm/index.d.ts +17 -1
  60. package/esm/index.js +9 -0
  61. package/package.json +2 -2
  62. 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 {
@@ -958,15 +1047,16 @@ class PrimaryNetworkService {
958
1047
  network,
959
1048
  pageSize = 10,
960
1049
  pageToken,
961
- minTimeRemaining,
962
- maxTimeRemaining,
1050
+ nodeIds,
1051
+ sortOrder,
1052
+ validationStatus,
963
1053
  minDelegationCapacity,
964
1054
  maxDelegationCapacity,
1055
+ minTimeRemaining,
1056
+ maxTimeRemaining,
965
1057
  minFeePercentage,
966
1058
  maxFeePercentage,
967
- nodeIds,
968
- sortOrder,
969
- validationStatus
1059
+ subnetId
970
1060
  }) {
971
1061
  return this.httpRequest.request({
972
1062
  method: "GET",
@@ -977,15 +1067,16 @@ class PrimaryNetworkService {
977
1067
  query: {
978
1068
  "pageSize": pageSize,
979
1069
  "pageToken": pageToken,
980
- "minTimeRemaining": minTimeRemaining,
981
- "maxTimeRemaining": maxTimeRemaining,
1070
+ "nodeIds": nodeIds,
1071
+ "sortOrder": sortOrder,
1072
+ "validationStatus": validationStatus,
982
1073
  "minDelegationCapacity": minDelegationCapacity,
983
1074
  "maxDelegationCapacity": maxDelegationCapacity,
1075
+ "minTimeRemaining": minTimeRemaining,
1076
+ "maxTimeRemaining": maxTimeRemaining,
984
1077
  "minFeePercentage": minFeePercentage,
985
1078
  "maxFeePercentage": maxFeePercentage,
986
- "nodeIds": nodeIds,
987
- "sortOrder": sortOrder,
988
- "validationStatus": validationStatus
1079
+ "subnetId": subnetId
989
1080
  }
990
1081
  });
991
1082
  }
@@ -1380,6 +1471,7 @@ class PrimaryNetworkVerticesService {
1380
1471
  }
1381
1472
 
1382
1473
  class Glacier {
1474
+ default;
1383
1475
  evmBalances;
1384
1476
  evmBlocks;
1385
1477
  evmChains;
@@ -1408,6 +1500,7 @@ class Glacier {
1408
1500
  HEADERS: config?.HEADERS,
1409
1501
  ENCODE_PATH: config?.ENCODE_PATH
1410
1502
  });
1503
+ this.default = new DefaultService(this.request);
1411
1504
  this.evmBalances = new EvmBalancesService(this.request);
1412
1505
  this.evmBlocks = new EvmBlocksService(this.request);
1413
1506
  this.evmChains = new EvmChainsService(this.request);
@@ -1507,6 +1600,34 @@ exports.CompletedValidatorDetails = void 0;
1507
1600
  })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
1508
1601
  })(exports.CompletedValidatorDetails || (exports.CompletedValidatorDetails = {}));
1509
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
+
1510
1631
  exports.CreateEvmTransactionExportRequest = void 0;
1511
1632
  ((CreateEvmTransactionExportRequest2) => {
1512
1633
  ((type2) => {
@@ -1609,6 +1730,11 @@ exports.Erc721TokenBalance = void 0;
1609
1730
  })(Erc721TokenBalance2.ercType || (Erc721TokenBalance2.ercType = {}));
1610
1731
  })(exports.Erc721TokenBalance || (exports.Erc721TokenBalance = {}));
1611
1732
 
1733
+ var EventType = /* @__PURE__ */ ((EventType2) => {
1734
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
1735
+ return EventType2;
1736
+ })(EventType || {});
1737
+
1612
1738
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1613
1739
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1614
1740
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1676,17 +1802,18 @@ var PChainId = /* @__PURE__ */ ((PChainId2) => {
1676
1802
 
1677
1803
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1678
1804
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1679
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1680
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1681
- PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1682
1805
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1683
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1684
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1806
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1685
1807
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1686
1808
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1687
1809
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
1688
1810
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
1689
1811
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1812
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1813
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1814
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1815
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1816
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1690
1817
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1691
1818
  return PChainTransactionType2;
1692
1819
  })(PChainTransactionType || {});
@@ -1720,17 +1847,18 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1720
1847
 
1721
1848
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1722
1849
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1723
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1724
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1725
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1726
1850
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1727
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1728
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1851
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1729
1852
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
1730
1853
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
1731
1854
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
1732
1855
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
1733
1856
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
1857
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
1858
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1859
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1860
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1861
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1734
1862
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1735
1863
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1736
1864
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -1813,6 +1941,18 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1813
1941
  return VmName2;
1814
1942
  })(VmName || {});
1815
1943
 
1944
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
1945
+ WebhookStatus2["ACTIVE"] = "active";
1946
+ WebhookStatus2["INACTIVE"] = "inactive";
1947
+ return WebhookStatus2;
1948
+ })(WebhookStatus || {});
1949
+
1950
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
1951
+ WebhookStatusType2["ACTIVE"] = "active";
1952
+ WebhookStatusType2["INACTIVE"] = "inactive";
1953
+ return WebhookStatusType2;
1954
+ })(WebhookStatusType || {});
1955
+
1816
1956
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1817
1957
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1818
1958
  XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
@@ -1836,6 +1976,16 @@ exports.XChainNonLinearTransaction = void 0;
1836
1976
  })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1837
1977
  })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1838
1978
 
1979
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
1980
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
1981
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1982
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
1983
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
1984
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
1985
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1986
+ return XChainTransactionType2;
1987
+ })(XChainTransactionType || {});
1988
+
1839
1989
  exports.ApiError = ApiError;
1840
1990
  exports.BaseHttpRequest = BaseHttpRequest;
1841
1991
  exports.BlockchainId = BlockchainId;
@@ -1844,7 +1994,9 @@ exports.CancelError = CancelError;
1844
1994
  exports.CancelablePromise = CancelablePromise;
1845
1995
  exports.ChainStatus = ChainStatus;
1846
1996
  exports.CurrencyCode = CurrencyCode;
1997
+ exports.DefaultService = DefaultService;
1847
1998
  exports.DelegationStatusType = DelegationStatusType;
1999
+ exports.EventType = EventType;
1848
2000
  exports.EvmBalancesService = EvmBalancesService;
1849
2001
  exports.EvmBlocksService = EvmBlocksService;
1850
2002
  exports.EvmChainsService = EvmChainsService;
@@ -1882,4 +2034,7 @@ exports.TransactionStatus = TransactionStatus;
1882
2034
  exports.UtxoType = UtxoType;
1883
2035
  exports.ValidationStatusType = ValidationStatusType;
1884
2036
  exports.VmName = VmName;
2037
+ exports.WebhookStatus = WebhookStatus;
2038
+ exports.WebhookStatusType = WebhookStatusType;
1885
2039
  exports.XChainId = XChainId;
2040
+ 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);
@@ -2,6 +2,7 @@ import { Rewards } from './Rewards.js';
2
2
  import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
5
6
  nodeId: string;
6
7
  subnetId: string;
7
8
  amountStaked: string;
@@ -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 };
@@ -1,6 +1,7 @@
1
1
  import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
4
5
  nodeId: string;
5
6
  subnetId: string;
6
7
  amountStaked: string;
@@ -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 };
@@ -0,0 +1,6 @@
1
+ var EventType = /* @__PURE__ */ ((EventType2) => {
2
+ EventType2["ADDRESS_ACTIVITY"] = "address_activity";
3
+ return EventType2;
4
+ })(EventType || {});
5
+
6
+ export { EventType };
@@ -9,6 +9,7 @@ type GetPrimaryNetworkBlockResponse = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ currentSupply?: string;
12
13
  proposerDetails?: ProposerDetails;
13
14
  };
14
15
 
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type HistoricalReward = {
@@ -17,7 +17,7 @@ type HistoricalReward = {
17
17
  /**
18
18
  * An object containing P-chain Asset ID and the amount of that Asset ID.
19
19
  */
20
- reward: PChainAsset;
20
+ reward: Asset;
21
21
  rewardTxHash: string;
22
22
  };
23
23
 
@@ -0,0 +1,12 @@
1
+ import { Erc1155Token } from './Erc1155Token.js';
2
+ import { Erc721Token } from './Erc721Token.js';
3
+
4
+ type ListNftTokens = {
5
+ /**
6
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
7
+ */
8
+ nextPageToken?: string;
9
+ tokens: (Array<Erc721Token> | Array<Erc1155Token>);
10
+ };
11
+
12
+ export { ListNftTokens };
@@ -0,0 +1,11 @@
1
+ import { WebhookResponse } from './WebhookResponse.js';
2
+
3
+ type ListWebhooksResponse = {
4
+ /**
5
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
6
+ */
7
+ nextPageToken?: string;
8
+ webhooks: Array<WebhookResponse>;
9
+ };
10
+
11
+ export { ListWebhooksResponse };