@avalabs/glacier-sdk 2.8.0-canary.f195b3d.0 → 2.8.0-canary.f2340be.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 +260 -185
  2. package/dist/index.js +66 -26
  3. package/esm/generated/models/AddressActivityMetadata.d.ts +8 -0
  4. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  5. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  7. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  8. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  9. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
  10. package/esm/generated/models/ChainInfo.d.ts +1 -3
  11. package/esm/generated/models/ChainStatus.d.ts +3 -0
  12. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  13. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  14. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +5 -2
  16. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +5 -2
  17. package/esm/generated/models/EVMInput.d.ts +3 -3
  18. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  19. package/esm/generated/models/EVMOperationType.js +6 -0
  20. package/esm/generated/models/EVMOutput.d.ts +3 -3
  21. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  22. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  23. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  24. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  25. package/esm/generated/models/GlacierApiFeature.js +6 -0
  26. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  27. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  28. package/esm/generated/models/Method.d.ts +0 -3
  29. package/esm/generated/models/Money.d.ts +0 -3
  30. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  31. package/esm/generated/models/OperationType.d.ts +4 -2
  32. package/esm/generated/models/OperationType.js +3 -1
  33. package/esm/generated/models/PChainBalance.d.ts +15 -15
  34. package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
  35. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  36. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  37. package/esm/generated/models/PChainTransactionType.js +2 -0
  38. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  39. package/esm/generated/models/PendingReward.d.ts +3 -3
  40. package/esm/generated/models/PendingTeleporterMessage.d.ts +5 -2
  41. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  42. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  43. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  44. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  45. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  46. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  47. package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -3
  48. package/esm/generated/models/Subnet.d.ts +17 -0
  49. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  50. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  51. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  52. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  53. package/esm/generated/models/Utxo.d.ts +2 -2
  54. package/esm/generated/models/WebhookResponse.d.ts +2 -0
  55. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  56. package/esm/generated/models/XChainBalances.d.ts +3 -3
  57. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  58. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  59. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  60. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  61. package/esm/generated/services/DefaultService.d.ts +33 -0
  62. package/esm/generated/services/DefaultService.js +32 -1
  63. package/esm/generated/services/EvmBalancesService.d.ts +5 -5
  64. package/esm/generated/services/EvmBlocksService.d.ts +2 -2
  65. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  66. package/esm/generated/services/EvmChainsService.js +4 -2
  67. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  68. package/esm/generated/services/EvmTransactionsService.d.ts +12 -12
  69. package/esm/generated/services/NfTsService.d.ts +3 -3
  70. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +2 -2
  71. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  72. package/esm/generated/services/TeleporterService.d.ts +9 -17
  73. package/esm/generated/services/TeleporterService.js +2 -6
  74. package/esm/index.d.ts +8 -2
  75. package/esm/index.js +3 -2
  76. package/package.json +2 -2
  77. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  78. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
package/dist/index.js CHANGED
@@ -380,6 +380,17 @@ class DefaultService {
380
380
  }
381
381
  });
382
382
  }
383
+ getWebhook({
384
+ id
385
+ }) {
386
+ return this.httpRequest.request({
387
+ method: "GET",
388
+ url: "/v1/webhooks/{id}",
389
+ path: {
390
+ "id": id
391
+ }
392
+ });
393
+ }
383
394
  deactivateWebhook({
384
395
  id
385
396
  }) {
@@ -391,10 +402,30 @@ class DefaultService {
391
402
  }
392
403
  });
393
404
  }
405
+ updateWebhook({
406
+ id,
407
+ requestBody
408
+ }) {
409
+ return this.httpRequest.request({
410
+ method: "PATCH",
411
+ url: "/v1/webhooks/{id}",
412
+ path: {
413
+ "id": id
414
+ },
415
+ body: requestBody,
416
+ mediaType: "application/json"
417
+ });
418
+ }
394
419
  generateSharedSecret() {
395
420
  return this.httpRequest.request({
396
421
  method: "POST",
397
- url: "/v1/webhooks:generateSharedSecret"
422
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
423
+ });
424
+ }
425
+ getSharedSecret() {
426
+ return this.httpRequest.request({
427
+ method: "GET",
428
+ url: "/v1/webhooks:getSharedSecret"
398
429
  });
399
430
  }
400
431
  }
@@ -555,13 +586,15 @@ class EvmChainsService {
555
586
  this.httpRequest = httpRequest;
556
587
  }
557
588
  supportedChains({
558
- network
589
+ network,
590
+ feature
559
591
  }) {
560
592
  return this.httpRequest.request({
561
593
  method: "GET",
562
594
  url: "/v1/chains",
563
595
  query: {
564
- "network": network
596
+ "network": network,
597
+ "feature": feature
565
598
  }
566
599
  });
567
600
  }
@@ -1053,7 +1086,7 @@ class PrimaryNetworkService {
1053
1086
  minDelegationCapacity,
1054
1087
  maxDelegationCapacity,
1055
1088
  minTimeRemaining,
1056
- maxTimeRemaining = 2147483647,
1089
+ maxTimeRemaining,
1057
1090
  minFeePercentage,
1058
1091
  maxFeePercentage,
1059
1092
  subnetId
@@ -1477,16 +1510,12 @@ class TeleporterService {
1477
1510
  this.httpRequest = httpRequest;
1478
1511
  }
1479
1512
  getTeleporterMessage({
1480
- sourceBlockchainId,
1481
- destinationBlockchainId,
1482
1513
  messageId
1483
1514
  }) {
1484
1515
  return this.httpRequest.request({
1485
1516
  method: "GET",
1486
- url: "/v1/teleporter/messages:getMessage",
1487
- query: {
1488
- "sourceBlockchainId": sourceBlockchainId,
1489
- "destinationBlockchainId": destinationBlockchainId,
1517
+ url: "/v1/teleporter/messages/{messageId}",
1518
+ path: {
1490
1519
  "messageId": messageId
1491
1520
  }
1492
1521
  });
@@ -1674,20 +1703,6 @@ exports.ContractSubmissionUnknown = void 0;
1674
1703
  })(ContractSubmissionUnknown2.ercType || (ContractSubmissionUnknown2.ercType = {}));
1675
1704
  })(exports.ContractSubmissionUnknown || (exports.ContractSubmissionUnknown = {}));
1676
1705
 
1677
- exports.CreateEvmTransactionExportRequest = void 0;
1678
- ((CreateEvmTransactionExportRequest2) => {
1679
- ((type2) => {
1680
- type2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
1681
- })(CreateEvmTransactionExportRequest2.type || (CreateEvmTransactionExportRequest2.type = {}));
1682
- })(exports.CreateEvmTransactionExportRequest || (exports.CreateEvmTransactionExportRequest = {}));
1683
-
1684
- exports.CreatePrimaryNetworkTransactionExportRequest = void 0;
1685
- ((CreatePrimaryNetworkTransactionExportRequest2) => {
1686
- ((type2) => {
1687
- type2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
1688
- })(CreatePrimaryNetworkTransactionExportRequest2.type || (CreatePrimaryNetworkTransactionExportRequest2.type = {}));
1689
- })(exports.CreatePrimaryNetworkTransactionExportRequest || (exports.CreatePrimaryNetworkTransactionExportRequest = {}));
1690
-
1691
1706
  var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
1692
1707
  CurrencyCode2["USD"] = "usd";
1693
1708
  CurrencyCode2["EUR"] = "eur";
@@ -1795,6 +1810,16 @@ var EventType = /* @__PURE__ */ ((EventType2) => {
1795
1810
  return EventType2;
1796
1811
  })(EventType || {});
1797
1812
 
1813
+ var EVMOperationType = /* @__PURE__ */ ((EVMOperationType2) => {
1814
+ EVMOperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
1815
+ return EVMOperationType2;
1816
+ })(EVMOperationType || {});
1817
+
1818
+ var GlacierApiFeature = /* @__PURE__ */ ((GlacierApiFeature2) => {
1819
+ GlacierApiFeature2["NFT_INDEXING"] = "nftIndexing";
1820
+ return GlacierApiFeature2;
1821
+ })(GlacierApiFeature || {});
1822
+
1798
1823
  var InternalTransactionOpCall = /* @__PURE__ */ ((InternalTransactionOpCall2) => {
1799
1824
  InternalTransactionOpCall2["UNKNOWN"] = "UNKNOWN";
1800
1825
  InternalTransactionOpCall2["CALL"] = "CALL";
@@ -1849,8 +1874,10 @@ var OperationStatusCode = /* @__PURE__ */ ((OperationStatusCode2) => {
1849
1874
  })(OperationStatusCode || {});
1850
1875
 
1851
1876
  var OperationType = /* @__PURE__ */ ((OperationType2) => {
1852
- OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
1853
1877
  OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
1878
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
1879
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
1880
+ OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
1854
1881
  return OperationType2;
1855
1882
  })(OperationType || {});
1856
1883
 
@@ -1874,6 +1901,8 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1874
1901
  PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1875
1902
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1876
1903
  PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1904
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
1905
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
1877
1906
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
1878
1907
  return PChainTransactionType2;
1879
1908
  })(PChainTransactionType || {});
@@ -1924,6 +1953,13 @@ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1924
1953
  return PrimaryNetworkChainName2;
1925
1954
  })(PrimaryNetworkChainName || {});
1926
1955
 
1956
+ var PrimaryNetworkOperationType = /* @__PURE__ */ ((PrimaryNetworkOperationType2) => {
1957
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
1958
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
1959
+ PrimaryNetworkOperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
1960
+ return PrimaryNetworkOperationType2;
1961
+ })(PrimaryNetworkOperationType || {});
1962
+
1927
1963
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1928
1964
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1929
1965
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
@@ -1938,8 +1974,9 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1938
1974
  PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
1939
1975
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1940
1976
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1941
- PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1942
1977
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
1978
+ PrimaryNetworkTxType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
1979
+ PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
1943
1980
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
1944
1981
  PrimaryNetworkTxType2["OPERATION_TX"] = "OperationTx";
1945
1982
  return PrimaryNetworkTxType2;
@@ -2090,6 +2127,7 @@ exports.ChainStatus = ChainStatus;
2090
2127
  exports.CurrencyCode = CurrencyCode;
2091
2128
  exports.DefaultService = DefaultService;
2092
2129
  exports.DelegationStatusType = DelegationStatusType;
2130
+ exports.EVMOperationType = EVMOperationType;
2093
2131
  exports.EventType = EventType;
2094
2132
  exports.EvmBalancesService = EvmBalancesService;
2095
2133
  exports.EvmBlocksService = EvmBlocksService;
@@ -2097,6 +2135,7 @@ exports.EvmChainsService = EvmChainsService;
2097
2135
  exports.EvmContractsService = EvmContractsService;
2098
2136
  exports.EvmTransactionsService = EvmTransactionsService;
2099
2137
  exports.Glacier = Glacier;
2138
+ exports.GlacierApiFeature = GlacierApiFeature;
2100
2139
  exports.HealthCheckService = HealthCheckService;
2101
2140
  exports.InternalTransactionOpCall = InternalTransactionOpCall;
2102
2141
  exports.Network = Network;
@@ -2116,6 +2155,7 @@ exports.PrimaryNetworkAssetType = PrimaryNetworkAssetType;
2116
2155
  exports.PrimaryNetworkBalancesService = PrimaryNetworkBalancesService;
2117
2156
  exports.PrimaryNetworkBlocksService = PrimaryNetworkBlocksService;
2118
2157
  exports.PrimaryNetworkChainName = PrimaryNetworkChainName;
2158
+ exports.PrimaryNetworkOperationType = PrimaryNetworkOperationType;
2119
2159
  exports.PrimaryNetworkRewardsService = PrimaryNetworkRewardsService;
2120
2160
  exports.PrimaryNetworkService = PrimaryNetworkService;
2121
2161
  exports.PrimaryNetworkTransactionsService = PrimaryNetworkTransactionsService;
@@ -7,6 +7,14 @@ type AddressActivityMetadata = {
7
7
  * Array of hexadecimal strings of the event signatures.
8
8
  */
9
9
  eventSignatures?: Array<string>;
10
+ /**
11
+ * Whether to include traces in the webhook payload.
12
+ */
13
+ includeTraces?: boolean;
14
+ /**
15
+ * Whether to include logs in the webhook payload.
16
+ */
17
+ includeLogs?: boolean;
10
18
  };
11
19
 
12
20
  export { AddressActivityMetadata };
@@ -1,6 +1,6 @@
1
1
  import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
2
 
3
- type Asset = {
3
+ type AggregatedAssetAmount = {
4
4
  /**
5
5
  * Unique ID for an asset.
6
6
  */
@@ -17,14 +17,12 @@ type Asset = {
17
17
  * Denomination of this asset to represent fungibility.
18
18
  */
19
19
  denomination: number;
20
- /**
21
- * Type of asset like SECP256K1 or NFT.
22
- */
23
20
  type: PrimaryNetworkAssetType;
24
21
  /**
25
22
  * Amount of the asset.
26
23
  */
27
24
  amount: string;
25
+ utxoCount: number;
28
26
  };
29
27
 
30
- export { Asset };
28
+ export { AggregatedAssetAmount };
@@ -1,6 +1,6 @@
1
1
  import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
2
 
3
- type XChainAssetBalance = {
3
+ type AssetAmount = {
4
4
  /**
5
5
  * Unique ID for an asset.
6
6
  */
@@ -17,15 +17,11 @@ type XChainAssetBalance = {
17
17
  * Denomination of this asset to represent fungibility.
18
18
  */
19
19
  denomination: number;
20
- /**
21
- * Type of asset like SECP256K1 or NFT.
22
- */
23
20
  type: PrimaryNetworkAssetType;
24
21
  /**
25
22
  * Amount of the asset.
26
23
  */
27
24
  amount: string;
28
- utxoCount: number;
29
25
  };
30
26
 
31
- export { XChainAssetBalance };
27
+ export { AssetAmount };
@@ -18,9 +18,6 @@ type AssetWithPriceInfo = {
18
18
  * Denomination of this asset to represent fungibility.
19
19
  */
20
20
  denomination: number;
21
- /**
22
- * Type of asset like SECP256K1 or NFT.
23
- */
24
21
  type: PrimaryNetworkAssetType;
25
22
  /**
26
23
  * Amount of the asset.
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { EVMInput } from './EVMInput.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
 
@@ -26,11 +26,11 @@ type CChainExportTransaction = {
26
26
  /**
27
27
  * Assets unlocked by inputs of this transaction.
28
28
  */
29
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
30
30
  /**
31
31
  * Assets created by outputs of this transaction.
32
32
  */
33
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
34
34
  /**
35
35
  * Source chain for an atomic transaction.
36
36
  */
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { EVMOutput } from './EVMOutput.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
 
@@ -26,11 +26,11 @@ type CChainImportTransaction = {
26
26
  /**
27
27
  * Assets unlocked by inputs of this transaction.
28
28
  */
29
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
30
30
  /**
31
31
  * Assets created by outputs of this transaction.
32
32
  */
33
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
34
34
  /**
35
35
  * Source chain for an atomic transaction.
36
36
  */
@@ -17,9 +17,6 @@ type CChainSharedAssetBalance = {
17
17
  * Denomination of this asset to represent fungibility.
18
18
  */
19
19
  denomination: number;
20
- /**
21
- * Type of asset like SECP256K1 or NFT.
22
- */
23
20
  type: PrimaryNetworkAssetType;
24
21
  /**
25
22
  * Amount of the asset.
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
5
5
 
6
6
  type ChainInfo = {
7
7
  chainId: string;
8
- /**
9
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
- */
11
8
  status: ChainStatus;
12
9
  chainName: string;
13
10
  description: string;
@@ -23,6 +20,7 @@ type ChainInfo = {
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
25
22
  private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
26
24
  };
27
25
 
28
26
  export { ChainInfo };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
3
+ */
1
4
  declare enum ChainStatus {
2
5
  OK = "OK",
3
6
  UNAVAILABLE = "UNAVAILABLE"
@@ -1,7 +1,8 @@
1
1
  import { EvmNetworkOptions } from './EvmNetworkOptions.js';
2
+ import { EVMOperationType } from './EVMOperationType.js';
2
3
 
3
4
  type CreateEvmTransactionExportRequest = {
4
- type: CreateEvmTransactionExportRequest.type;
5
+ type: EVMOperationType;
5
6
  firstDate: string;
6
7
  lastDate: string;
7
8
  /**
@@ -14,10 +15,5 @@ type CreateEvmTransactionExportRequest = {
14
15
  endDate: string;
15
16
  options: EvmNetworkOptions;
16
17
  };
17
- declare namespace CreateEvmTransactionExportRequest {
18
- enum type {
19
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
20
- }
21
- }
22
18
 
23
19
  export { CreateEvmTransactionExportRequest };
@@ -1,7 +1,8 @@
1
+ import { PrimaryNetworkOperationType } from './PrimaryNetworkOperationType.js';
1
2
  import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
2
3
 
3
4
  type CreatePrimaryNetworkTransactionExportRequest = {
4
- type: CreatePrimaryNetworkTransactionExportRequest.type;
5
+ type: PrimaryNetworkOperationType;
5
6
  firstDate: string;
6
7
  lastDate: string;
7
8
  /**
@@ -14,10 +15,5 @@ type CreatePrimaryNetworkTransactionExportRequest = {
14
15
  endDate: string;
15
16
  options: PrimaryNetworkOptions;
16
17
  };
17
- declare namespace CreatePrimaryNetworkTransactionExportRequest {
18
- enum type {
19
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
20
- }
21
- }
22
18
 
23
19
  export { CreatePrimaryNetworkTransactionExportRequest };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * ISO 4217 currency code.
3
+ */
1
4
  declare enum CurrencyCode {
2
5
  USD = "usd",
3
6
  EUR = "eur",
@@ -1,15 +1,18 @@
1
1
  import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
2
3
  import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
4
 
4
5
  type DeliveredSourceNotIndexedTeleporterMessage = {
6
+ messageId: string;
7
+ teleporterContractAddress: string;
5
8
  sourceBlockchainId: string;
6
9
  destinationBlockchainId: string;
7
- messageId: string;
10
+ messageNonce: string;
8
11
  from: string;
9
12
  to: string;
10
13
  data?: string;
11
14
  messageExecuted: boolean;
12
- receipts: Array<string>;
15
+ receipts: Array<TeleporterReceipt>;
13
16
  receiptDelivered: boolean;
14
17
  rewardDetails: TeleporterRewardDetails;
15
18
  destinationTransaction: TeleporterDestinationTransaction;
@@ -1,16 +1,19 @@
1
1
  import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
2
3
  import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
3
4
  import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
4
5
 
5
6
  type DeliveredTeleporterMessage = {
7
+ messageId: string;
8
+ teleporterContractAddress: string;
6
9
  sourceBlockchainId: string;
7
10
  destinationBlockchainId: string;
8
- messageId: string;
11
+ messageNonce: string;
9
12
  from: string;
10
13
  to: string;
11
14
  data?: string;
12
15
  messageExecuted: boolean;
13
- receipts: Array<string>;
16
+ receipts: Array<TeleporterReceipt>;
14
17
  receiptDelivered: boolean;
15
18
  rewardDetails: TeleporterRewardDetails;
16
19
  sourceTransaction: TeleporterSourceTransaction;
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type EVMInput = {
@@ -7,9 +7,9 @@ type EVMInput = {
7
7
  */
8
8
  fromAddress: string;
9
9
  /**
10
- * Asset details for the asset being transferred.
10
+ * AssetAmount details for the asset being transferred.
11
11
  */
12
- asset: Asset;
12
+ asset: AssetAmount;
13
13
  /**
14
14
  * Credentials that signed this transaction.
15
15
  */
@@ -0,0 +1,5 @@
1
+ declare enum EVMOperationType {
2
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
3
+ }
4
+
5
+ export { EVMOperationType };
@@ -0,0 +1,6 @@
1
+ var EVMOperationType = /* @__PURE__ */ ((EVMOperationType2) => {
2
+ EVMOperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
3
+ return EVMOperationType2;
4
+ })(EVMOperationType || {});
5
+
6
+ export { EVMOperationType };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
 
3
3
  type EVMOutput = {
4
4
  /**
@@ -6,9 +6,9 @@ type EVMOutput = {
6
6
  */
7
7
  toAddress: string;
8
8
  /**
9
- * Asset details for the asset being transferred.
9
+ * AssetAmount details for the asset being transferred.
10
10
  */
11
- asset: Asset;
11
+ asset: AssetAmount;
12
12
  };
13
13
 
14
14
  export { EVMOutput };
@@ -1,9 +1,6 @@
1
1
  import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
2
 
3
3
  type Erc1155TokenMetadata = {
4
- /**
5
- * The metadata indexing status of the nft.
6
- */
7
4
  indexStatus: NftTokenMetadataStatus;
8
5
  metadataLastUpdatedTimestamp?: number;
9
6
  name?: string;
@@ -1,9 +1,6 @@
1
1
  import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
2
 
3
3
  type Erc721TokenMetadata = {
4
- /**
5
- * The metadata indexing status of the nft.
6
- */
7
4
  indexStatus: NftTokenMetadataStatus;
8
5
  metadataLastUpdatedTimestamp?: number;
9
6
  name?: string;
@@ -5,9 +5,6 @@ import { VmName } from './VmName.js';
5
5
 
6
6
  type GetChainResponse = {
7
7
  chainId: string;
8
- /**
9
- * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
- */
11
8
  status: ChainStatus;
12
9
  chainName: string;
13
10
  description: string;
@@ -23,6 +20,7 @@ type GetChainResponse = {
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
25
22
  private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
26
24
  };
27
25
 
28
26
  export { GetChainResponse };
@@ -0,0 +1,5 @@
1
+ declare enum GlacierApiFeature {
2
+ NFT_INDEXING = "nftIndexing"
3
+ }
4
+
5
+ export { GlacierApiFeature };
@@ -0,0 +1,6 @@
1
+ var GlacierApiFeature = /* @__PURE__ */ ((GlacierApiFeature2) => {
2
+ GlacierApiFeature2["NFT_INDEXING"] = "nftIndexing";
3
+ return GlacierApiFeature2;
4
+ })(GlacierApiFeature || {});
5
+
6
+ export { GlacierApiFeature };
@@ -6,7 +6,7 @@ type ListNftTokens = {
6
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
7
  */
8
8
  nextPageToken?: string;
9
- tokens: (Array<Erc721Token> | Array<Erc1155Token>);
9
+ tokens: Array<(Erc721Token | Erc1155Token)>;
10
10
  };
11
11
 
12
12
  export { ListNftTokens };
@@ -7,7 +7,7 @@ type ListTransfersResponse = {
7
7
  * 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.
8
8
  */
9
9
  nextPageToken?: string;
10
- transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
10
+ transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
11
11
  };
12
12
 
13
13
  export { ListTransfersResponse };
@@ -1,9 +1,6 @@
1
1
  import { TransactionMethodType } from './TransactionMethodType.js';
2
2
 
3
3
  type Method = {
4
- /**
5
- * The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
6
- */
7
4
  callType: TransactionMethodType;
8
5
  /**
9
6
  * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
@@ -1,9 +1,6 @@
1
1
  import { CurrencyCode } from './CurrencyCode.js';
2
2
 
3
3
  type Money = {
4
- /**
5
- * ISO 4217 currency code.
6
- */
7
4
  currencyCode: CurrencyCode;
8
5
  /**
9
6
  * Monetary value in base 10 decimals.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * The metadata indexing status of the nft.
3
+ */
1
4
  declare enum NftTokenMetadataStatus {
2
5
  UNKNOWN = "UNKNOWN",
3
6
  MISSING_TOKEN = "MISSING_TOKEN",
@@ -1,6 +1,8 @@
1
1
  declare enum OperationType {
2
- TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
3
- TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
2
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
3
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
4
+ TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
5
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
4
6
  }
5
7
 
6
8
  export { OperationType };
@@ -1,6 +1,8 @@
1
1
  var OperationType = /* @__PURE__ */ ((OperationType2) => {
2
- OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
3
2
  OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
3
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING";
4
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE";
5
+ OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
4
6
  return OperationType2;
5
7
  })(OperationType || {});
6
8