@avalabs/glacier-sdk 2.8.0-canary.d0bce16.0 → 2.8.0-canary.dbdabf5.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 (112) hide show
  1. package/dist/index.d.ts +757 -430
  2. package/dist/index.js +294 -148
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +6 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  6. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  7. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  8. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  9. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  10. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  11. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  12. package/esm/generated/models/ChainInfo.d.ts +1 -3
  13. package/esm/generated/models/ChainStatus.d.ts +3 -0
  14. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  15. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  16. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  17. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  18. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  19. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  20. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  21. package/esm/generated/models/EVMInput.d.ts +3 -3
  22. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  23. package/esm/generated/models/EVMOperationType.js +6 -0
  24. package/esm/generated/models/EVMOutput.d.ts +3 -3
  25. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  26. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  27. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  28. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  29. package/esm/generated/models/GlacierApiFeature.js +6 -0
  30. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  31. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  32. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  33. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  34. package/esm/generated/models/Method.d.ts +0 -3
  35. package/esm/generated/models/Money.d.ts +0 -3
  36. package/esm/generated/models/NextPageToken.d.ts +8 -0
  37. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  38. package/esm/generated/models/OperationType.d.ts +4 -2
  39. package/esm/generated/models/OperationType.js +3 -1
  40. package/esm/generated/models/PChainBalance.d.ts +15 -15
  41. package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
  42. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  43. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  44. package/esm/generated/models/PChainTransactionType.js +2 -0
  45. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  46. package/esm/generated/models/PendingReward.d.ts +3 -3
  47. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  48. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  49. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  50. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  51. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  52. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  53. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  54. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  55. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  56. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  57. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  58. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  59. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  60. package/esm/generated/models/Subnet.d.ts +17 -0
  61. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  62. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  63. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  64. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  65. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  66. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  67. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  68. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  69. package/esm/generated/models/Utxo.d.ts +2 -2
  70. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  71. package/esm/generated/models/ValidationStatusType.js +1 -0
  72. package/esm/generated/models/WebhookResponse.d.ts +10 -0
  73. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  74. package/esm/generated/models/XChainBalances.d.ts +3 -3
  75. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  76. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  77. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  78. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  79. package/esm/generated/services/DefaultService.d.ts +0 -53
  80. package/esm/generated/services/DefaultService.js +0 -42
  81. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  82. package/esm/generated/services/EvmBalancesService.js +8 -8
  83. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  84. package/esm/generated/services/EvmBlocksService.js +4 -4
  85. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  86. package/esm/generated/services/EvmChainsService.js +4 -2
  87. package/esm/generated/services/EvmContractsService.d.ts +2 -2
  88. package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
  89. package/esm/generated/services/EvmTransactionsService.js +32 -32
  90. package/esm/generated/services/NfTsService.d.ts +8 -8
  91. package/esm/generated/services/NfTsService.js +4 -4
  92. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  93. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  94. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
  95. package/esm/generated/services/PrimaryNetworkRewardsService.js +8 -6
  96. package/esm/generated/services/PrimaryNetworkService.d.ts +32 -32
  97. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  98. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  99. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  100. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  101. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  102. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  103. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  104. package/esm/generated/services/TeleporterService.d.ts +57 -0
  105. package/esm/generated/services/TeleporterService.js +39 -0
  106. package/esm/generated/services/WebhooksService.d.ts +95 -0
  107. package/esm/generated/services/WebhooksService.js +80 -0
  108. package/esm/index.d.ts +21 -2
  109. package/esm/index.js +12 -2
  110. package/package.json +2 -2
  111. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  112. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -16,6 +16,8 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
16
16
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
17
17
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
18
18
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
19
+ import { TeleporterService } from './services/TeleporterService.js';
20
+ import { WebhooksService } from './services/WebhooksService.js';
19
21
 
20
22
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
21
23
  declare class Glacier {
@@ -35,6 +37,8 @@ declare class Glacier {
35
37
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
36
38
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
37
39
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
40
+ readonly teleporter: TeleporterService;
41
+ readonly webhooks: WebhooksService;
38
42
  readonly request: BaseHttpRequest;
39
43
  constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
40
44
  }
@@ -15,6 +15,8 @@ import { PrimaryNetworkRewardsService } from './services/PrimaryNetworkRewardsSe
15
15
  import { PrimaryNetworkTransactionsService } from './services/PrimaryNetworkTransactionsService.js';
16
16
  import { PrimaryNetworkUtxOsService } from './services/PrimaryNetworkUtxOsService.js';
17
17
  import { PrimaryNetworkVerticesService } from './services/PrimaryNetworkVerticesService.js';
18
+ import { TeleporterService } from './services/TeleporterService.js';
19
+ import { WebhooksService } from './services/WebhooksService.js';
18
20
 
19
21
  class Glacier {
20
22
  default;
@@ -33,6 +35,8 @@ class Glacier {
33
35
  primaryNetworkTransactions;
34
36
  primaryNetworkUtxOs;
35
37
  primaryNetworkVertices;
38
+ teleporter;
39
+ webhooks;
36
40
  request;
37
41
  constructor(config, HttpRequest = FetchHttpRequest) {
38
42
  this.request = new HttpRequest({
@@ -62,6 +66,8 @@ class Glacier {
62
66
  this.primaryNetworkTransactions = new PrimaryNetworkTransactionsService(this.request);
63
67
  this.primaryNetworkUtxOs = new PrimaryNetworkUtxOsService(this.request);
64
68
  this.primaryNetworkVertices = new PrimaryNetworkVerticesService(this.request);
69
+ this.teleporter = new TeleporterService(this.request);
70
+ this.webhooks = new WebhooksService(this.request);
65
71
  }
66
72
  }
67
73
 
@@ -3,7 +3,10 @@ type AddressActivityMetadata = {
3
3
  * Ethereum address for the address_activity event type
4
4
  */
5
5
  address: string;
6
- topic0?: string;
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
7
10
  };
8
11
 
9
12
  export { AddressActivityMetadata };
@@ -1,4 +1,6 @@
1
- type XChainAssetBalance = {
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type AggregatedAssetAmount = {
2
4
  /**
3
5
  * Unique ID for an asset.
4
6
  */
@@ -15,10 +17,7 @@ type XChainAssetBalance = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
@@ -26,4 +25,4 @@ type XChainAssetBalance = {
26
25
  utxoCount: number;
27
26
  };
28
27
 
29
- export { XChainAssetBalance };
28
+ export { AggregatedAssetAmount };
@@ -1,4 +1,6 @@
1
- type Asset = {
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type AssetAmount = {
2
4
  /**
3
5
  * Unique ID for an asset.
4
6
  */
@@ -15,14 +17,11 @@ type Asset = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
25
24
  amount: string;
26
25
  };
27
26
 
28
- export { Asset };
27
+ export { AssetAmount };
@@ -0,0 +1,32 @@
1
+ import { Money } from './Money.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
4
+ type AssetWithPriceInfo = {
5
+ /**
6
+ * Unique ID for an asset.
7
+ */
8
+ assetId: string;
9
+ /**
10
+ * Name of this asset.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Symbol for this asset (max 4 characters).
15
+ */
16
+ symbol: string;
17
+ /**
18
+ * Denomination of this asset to represent fungibility.
19
+ */
20
+ denomination: number;
21
+ type: PrimaryNetworkAssetType;
22
+ /**
23
+ * Amount of the asset.
24
+ */
25
+ amount: string;
26
+ /**
27
+ * The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
28
+ */
29
+ historicalPrice?: Money;
30
+ };
31
+
32
+ export { AssetWithPriceInfo };
@@ -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
  */
@@ -1,3 +1,5 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type CChainSharedAssetBalance = {
2
4
  /**
3
5
  * Unique ID for an asset.
@@ -15,10 +17,7 @@ type CChainSharedAssetBalance = {
15
17
  * Denomination of this asset to represent fungibility.
16
18
  */
17
19
  denomination: number;
18
- /**
19
- * Type of asset like SECP256K1 or NFT.
20
- */
21
- type: string;
20
+ type: PrimaryNetworkAssetType;
22
21
  /**
23
22
  * Amount of the asset.
24
23
  */
@@ -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",
@@ -0,0 +1,27 @@
1
+ import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
3
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
4
+
5
+ type DeliveredSourceNotIndexedTeleporterMessage = {
6
+ messageId: string;
7
+ teleporterContractAddress: string;
8
+ sourceBlockchainId: string;
9
+ destinationBlockchainId: string;
10
+ messageNonce: string;
11
+ from: string;
12
+ to: string;
13
+ data?: string;
14
+ messageExecuted: boolean;
15
+ receipts: Array<TeleporterReceipt>;
16
+ receiptDelivered: boolean;
17
+ rewardDetails: TeleporterRewardDetails;
18
+ destinationTransaction: TeleporterDestinationTransaction;
19
+ status: DeliveredSourceNotIndexedTeleporterMessage.status;
20
+ };
21
+ declare namespace DeliveredSourceNotIndexedTeleporterMessage {
22
+ enum status {
23
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
24
+ }
25
+ }
26
+
27
+ export { DeliveredSourceNotIndexedTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var DeliveredSourceNotIndexedTeleporterMessage;
2
+ ((DeliveredSourceNotIndexedTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["DELIVERED_SOURCE_NOT_INDEXED"] = "delivered_source_not_indexed";
5
+ })(DeliveredSourceNotIndexedTeleporterMessage2.status || (DeliveredSourceNotIndexedTeleporterMessage2.status = {}));
6
+ })(DeliveredSourceNotIndexedTeleporterMessage || (DeliveredSourceNotIndexedTeleporterMessage = {}));
7
+
8
+ export { DeliveredSourceNotIndexedTeleporterMessage };
@@ -0,0 +1,29 @@
1
+ import { TeleporterDestinationTransaction } from './TeleporterDestinationTransaction.js';
2
+ import { TeleporterReceipt } from './TeleporterReceipt.js';
3
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
4
+ import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
5
+
6
+ type DeliveredTeleporterMessage = {
7
+ messageId: string;
8
+ teleporterContractAddress: string;
9
+ sourceBlockchainId: string;
10
+ destinationBlockchainId: string;
11
+ messageNonce: string;
12
+ from: string;
13
+ to: string;
14
+ data?: string;
15
+ messageExecuted: boolean;
16
+ receipts: Array<TeleporterReceipt>;
17
+ receiptDelivered: boolean;
18
+ rewardDetails: TeleporterRewardDetails;
19
+ sourceTransaction: TeleporterSourceTransaction;
20
+ destinationTransaction: TeleporterDestinationTransaction;
21
+ status: DeliveredTeleporterMessage.status;
22
+ };
23
+ declare namespace DeliveredTeleporterMessage {
24
+ enum status {
25
+ DELIVERED = "delivered"
26
+ }
27
+ }
28
+
29
+ export { DeliveredTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var DeliveredTeleporterMessage;
2
+ ((DeliveredTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["DELIVERED"] = "delivered";
5
+ })(DeliveredTeleporterMessage2.status || (DeliveredTeleporterMessage2.status = {}));
6
+ })(DeliveredTeleporterMessage || (DeliveredTeleporterMessage = {}));
7
+
8
+ export { DeliveredTeleporterMessage };
@@ -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 };
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetWithPriceInfo } from './AssetWithPriceInfo.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type HistoricalReward = {
@@ -14,10 +14,7 @@ type HistoricalReward = {
14
14
  rewardType: RewardType;
15
15
  utxoId: string;
16
16
  outputIndex: number;
17
- /**
18
- * An object containing P-chain Asset ID and the amount of that Asset ID.
19
- */
20
- reward: Asset;
17
+ reward: AssetWithPriceInfo;
21
18
  rewardTxHash: string;
22
19
  };
23
20
 
@@ -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,6 +1,7 @@
1
1
  import { ActiveValidatorDetails } from './ActiveValidatorDetails.js';
2
2
  import { CompletedValidatorDetails } from './CompletedValidatorDetails.js';
3
3
  import { PendingValidatorDetails } from './PendingValidatorDetails.js';
4
+ import { RemovedValidatorDetails } from './RemovedValidatorDetails.js';
4
5
 
5
6
  type ListValidatorDetailsResponse = {
6
7
  /**
@@ -10,7 +11,7 @@ type ListValidatorDetailsResponse = {
10
11
  /**
11
12
  * The list of validator Details.
12
13
  */
13
- validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
14
+ validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
14
15
  };
15
16
 
16
17
  export { ListValidatorDetailsResponse };
@@ -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.
@@ -0,0 +1,8 @@
1
+ type NextPageToken = {
2
+ /**
3
+ * 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.
4
+ */
5
+ nextPageToken?: string;
6
+ };
7
+
8
+ export { NextPageToken };
@@ -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
 
@@ -1,37 +1,37 @@
1
- import { Asset } from './Asset.js';
1
+ import { AggregatedAssetAmount } from './AggregatedAssetAmount.js';
2
2
  import { PChainSharedAsset } from './PChainSharedAsset.js';
3
3
 
4
4
  type PChainBalance = {
5
5
  /**
6
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
6
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
7
7
  */
8
- unlockedUnstaked: Array<Asset>;
8
+ unlockedUnstaked: Array<AggregatedAssetAmount>;
9
9
  /**
10
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
10
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
11
11
  */
12
- unlockedStaked: Array<Asset>;
12
+ unlockedStaked: Array<AggregatedAssetAmount>;
13
13
  /**
14
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
14
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
15
15
  */
16
- lockedPlatform: Array<Asset>;
16
+ lockedPlatform: Array<AggregatedAssetAmount>;
17
17
  /**
18
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
18
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
19
19
  */
20
- lockedStakeable: Array<Asset>;
20
+ lockedStakeable: Array<AggregatedAssetAmount>;
21
21
  /**
22
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
22
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
23
23
  */
24
- lockedStaked: Array<Asset>;
24
+ lockedStaked: Array<AggregatedAssetAmount>;
25
25
  /**
26
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
26
+ * A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
27
27
  */
28
- pendingStaked: Array<Asset>;
28
+ pendingStaked: Array<AggregatedAssetAmount>;
29
29
  /**
30
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
30
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
31
31
  */
32
32
  atomicMemoryUnlocked: Array<PChainSharedAsset>;
33
33
  /**
34
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
34
+ * A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
35
35
  */
36
36
  atomicMemoryLocked: Array<PChainSharedAsset>;
37
37
  };