@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c8536ea.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 (156) hide show
  1. package/dist/index.d.ts +1465 -674
  2. package/dist/index.js +501 -132
  3. package/esm/generated/Glacier.d.ts +8 -0
  4. package/esm/generated/Glacier.js +12 -0
  5. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  6. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
  8. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  9. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  10. package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
  11. package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
  16. package/esm/generated/models/ChainInfo.d.ts +2 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  19. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  20. package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
  21. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  22. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  23. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  24. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  25. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  26. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  27. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  28. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  29. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  30. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  31. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  32. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  33. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  34. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
  35. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  36. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
  37. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  38. package/esm/generated/models/EVMInput.d.ts +3 -3
  39. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  40. package/esm/generated/models/EVMOperationType.js +6 -0
  41. package/esm/generated/models/EVMOutput.d.ts +3 -3
  42. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  43. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  44. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  45. package/esm/generated/models/EventType.d.ts +5 -0
  46. package/esm/generated/models/EventType.js +6 -0
  47. package/esm/generated/models/GetChainResponse.d.ts +2 -3
  48. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
  49. package/esm/generated/models/GlacierApiFeature.d.ts +5 -0
  50. package/esm/generated/models/GlacierApiFeature.js +6 -0
  51. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  52. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  53. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  54. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  55. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
  56. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  57. package/esm/generated/models/Method.d.ts +0 -3
  58. package/esm/generated/models/Money.d.ts +0 -3
  59. package/esm/generated/models/NextPageToken.d.ts +8 -0
  60. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  61. package/esm/generated/models/OperationType.d.ts +4 -2
  62. package/esm/generated/models/OperationType.js +3 -1
  63. package/esm/generated/models/PChainBalance.d.ts +15 -15
  64. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  65. package/esm/generated/models/PChainTransaction.d.ts +13 -7
  66. package/esm/generated/models/PChainTransactionType.d.ts +8 -4
  67. package/esm/generated/models/PChainTransactionType.js +8 -4
  68. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  69. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  70. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  71. package/esm/generated/models/PendingReward.d.ts +3 -3
  72. package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
  73. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  74. package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
  75. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  76. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
  77. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  78. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
  79. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  80. package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
  81. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  82. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  83. package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
  84. package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
  85. package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
  86. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  87. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  88. package/esm/generated/models/RewardType.d.ts +2 -1
  89. package/esm/generated/models/RewardType.js +1 -0
  90. package/esm/generated/models/Rewards.d.ts +2 -0
  91. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  92. package/esm/generated/models/Subnet.d.ts +17 -0
  93. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  94. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  95. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  96. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  97. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  98. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  99. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  100. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  101. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  102. package/esm/generated/models/Utxo.d.ts +30 -30
  103. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  104. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  105. package/esm/generated/models/ValidationStatusType.js +1 -0
  106. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  107. package/esm/generated/models/WebhookResponse.d.ts +25 -0
  108. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  109. package/esm/generated/models/WebhookStatus.js +7 -0
  110. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  111. package/esm/generated/models/WebhookStatusType.js +7 -0
  112. package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
  113. package/esm/generated/models/XChainBalances.d.ts +3 -3
  114. package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
  115. package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
  116. package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
  117. package/esm/generated/models/XChainTransactionType.d.ts +13 -0
  118. package/esm/generated/models/XChainTransactionType.js +11 -0
  119. package/esm/generated/services/DefaultService.d.ts +14 -0
  120. package/esm/generated/services/DefaultService.js +13 -0
  121. package/esm/generated/services/EvmBalancesService.d.ts +25 -25
  122. package/esm/generated/services/EvmBalancesService.js +8 -8
  123. package/esm/generated/services/EvmBlocksService.d.ts +7 -7
  124. package/esm/generated/services/EvmBlocksService.js +4 -4
  125. package/esm/generated/services/EvmChainsService.d.ts +7 -2
  126. package/esm/generated/services/EvmChainsService.js +4 -2
  127. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  128. package/esm/generated/services/EvmContractsService.js +36 -0
  129. package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
  130. package/esm/generated/services/EvmTransactionsService.js +33 -33
  131. package/esm/generated/services/NfTsService.d.ts +23 -16
  132. package/esm/generated/services/NfTsService.js +15 -9
  133. package/esm/generated/services/OperationsService.d.ts +11 -11
  134. package/esm/generated/services/OperationsService.js +10 -10
  135. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
  136. package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
  137. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
  138. package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
  139. package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
  140. package/esm/generated/services/PrimaryNetworkService.js +26 -14
  141. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
  142. package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
  143. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
  144. package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
  145. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
  146. package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
  147. package/esm/generated/services/TeleporterService.d.ts +57 -0
  148. package/esm/generated/services/TeleporterService.js +39 -0
  149. package/esm/generated/services/WebhooksService.d.ts +95 -0
  150. package/esm/generated/services/WebhooksService.js +80 -0
  151. package/esm/index.d.ts +40 -3
  152. package/esm/index.js +28 -2
  153. package/package.json +2 -2
  154. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  155. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
  156. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -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;
@@ -30,7 +30,7 @@ type Erc20Contract = {
30
30
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
31
31
  */
32
32
  decimals: number;
33
- pricingProviders: PricingProviders;
33
+ pricingProviders?: PricingProviders;
34
34
  };
35
35
  declare namespace Erc20Contract {
36
36
  enum ercType {
@@ -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;
@@ -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 };
@@ -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;
@@ -22,6 +19,8 @@ type GetChainResponse = {
22
19
  utilityAddresses?: UtilityAddresses;
23
20
  networkToken: NetworkToken;
24
21
  chainLogoUri?: string;
22
+ private?: boolean;
23
+ enabledFeatures?: Array<'nftIndexing'>;
25
24
  };
26
25
 
27
26
  export { GetChainResponse };
@@ -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
 
@@ -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 { PChainAsset } from './PChainAsset.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: PChainAsset;
17
+ reward: AssetWithPriceInfo;
21
18
  rewardTxHash: string;
22
19
  };
23
20
 
@@ -8,7 +8,7 @@ type ListContractsResponse = {
8
8
  * 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.
9
9
  */
10
10
  nextPageToken?: string;
11
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
11
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
12
12
  };
13
13
 
14
14
  export { ListContractsResponse };
@@ -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 | Erc1155Token)>;
10
+ };
11
+
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
  /**
@@ -8,9 +9,9 @@ type ListValidatorDetailsResponse = {
8
9
  */
9
10
  nextPageToken?: string;
10
11
  /**
11
- * The list of Validator Details.
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 };
@@ -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 };
@@ -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 { PChainAsset } from './PChainAsset.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<PChainAsset>;
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<PChainAsset>;
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<PChainAsset>;
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<PChainAsset>;
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<PChainAsset>;
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<PChainAsset>;
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
  };
@@ -1,6 +1,28 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
1
3
  type PChainSharedAsset = {
4
+ /**
5
+ * Unique ID for an asset.
6
+ */
2
7
  assetId: string;
8
+ /**
9
+ * Name of this asset.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Symbol for this asset (max 4 characters).
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * Denomination of this asset to represent fungibility.
18
+ */
19
+ denomination: number;
20
+ type: PrimaryNetworkAssetType;
21
+ /**
22
+ * Amount of the asset.
23
+ */
3
24
  amount: string;
25
+ utxoCount: number;
4
26
  sharedWithChainId: string;
5
27
  status: string;
6
28
  };
@@ -1,6 +1,7 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { PChainTransactionType } from './PChainTransactionType.js';
3
3
  import { PChainUtxo } from './PChainUtxo.js';
4
+ import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
4
5
 
5
6
  type PChainTransaction = {
6
7
  /**
@@ -25,17 +26,17 @@ type PChainTransaction = {
25
26
  */
26
27
  destinationChain?: string;
27
28
  /**
28
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
29
30
  */
30
- value: Array<PChainAsset>;
31
+ value: Array<AssetAmount>;
31
32
  /**
32
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
33
34
  */
34
- amountBurned: Array<PChainAsset>;
35
+ amountBurned: Array<AssetAmount>;
35
36
  /**
36
- * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
38
  */
38
- amountStaked: Array<PChainAsset>;
39
+ amountStaked: Array<AssetAmount>;
39
40
  /**
40
41
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
42
  */
@@ -61,11 +62,16 @@ type PChainTransaction = {
61
62
  */
62
63
  estimatedReward?: string;
63
64
  rewardTxHash?: string;
65
+ rewardAddresses?: Array<string>;
64
66
  memo?: string;
65
67
  /**
66
68
  * Present for RewardValidatorTx
67
69
  */
68
70
  stakingTxHash?: string;
71
+ /**
72
+ * Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
73
+ */
74
+ subnetOwnershipInfo?: SubnetOwnershipInfo;
69
75
  };
70
76
 
71
77
  export { PChainTransaction };
@@ -1,15 +1,19 @@
1
1
  declare enum PChainTransactionType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
3
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
4
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
8
5
  CREATE_CHAIN_TX = "CreateChainTx",
9
6
  CREATE_SUBNET_TX = "CreateSubnetTx",
10
7
  IMPORT_TX = "ImportTx",
11
8
  EXPORT_TX = "ExportTx",
12
9
  ADVANCE_TIME_TX = "AdvanceTimeTx",
10
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
11
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
12
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
+ BASE_TX = "BaseTx",
16
+ TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
13
17
  UNKNOWN = "UNKNOWN"
14
18
  }
15
19
 
@@ -1,15 +1,19 @@
1
1
  var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
2
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
3
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
- PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
- PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
8
5
  PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
9
6
  PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
10
7
  PChainTransactionType2["IMPORT_TX"] = "ImportTx";
11
8
  PChainTransactionType2["EXPORT_TX"] = "ExportTx";
12
9
  PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PChainTransactionType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
15
+ PChainTransactionType2["BASE_TX"] = "BaseTx";
16
+ PChainTransactionType2["TRANSFER_SUBNET_OWNERSHIP_TX"] = "TransferSubnetOwnershipTx";
13
17
  PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
14
18
  return PChainTransactionType2;
15
19
  })(PChainTransactionType || {});
@@ -1,31 +1,51 @@
1
+ import { AssetAmount } from './AssetAmount.js';
1
2
  import { RewardType } from './RewardType.js';
2
3
  import { UtxoType } from './UtxoType.js';
3
4
 
4
5
  type PChainUtxo = {
5
6
  /**
6
- * An array of P-Chain wallet addresses.
7
+ * Addresses that are eligible to sign the consumption of this output.
7
8
  */
8
9
  addresses: Array<string>;
10
+ asset: AssetAmount;
11
+ /**
12
+ * Blockchain ID on which this output is consumed on.
13
+ */
14
+ consumedOnChainId: string;
15
+ /**
16
+ * Transaction ID that consumed this output.
17
+ */
18
+ consumingTxHash?: string;
19
+ /**
20
+ * Blockchain ID on which this output is created on.
21
+ */
22
+ createdOnChainId: string;
23
+ /**
24
+ * UTXO ID for this output.
25
+ */
9
26
  utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
27
+ /**
28
+ * @deprecated
29
+ */
30
+ amount: string;
31
+ /**
32
+ * @deprecated
33
+ */
34
+ assetId: string;
12
35
  blockNumber: string;
13
36
  blockTimestamp: number;
14
- consumingTxHash?: string;
15
- consumingBlockTimestamp?: number;
16
37
  consumingBlockNumber?: string;
17
- assetId: string;
18
- utxoType: UtxoType;
19
- amount: string;
20
- stakeableLocktime?: number;
38
+ consumingBlockTimestamp?: number;
21
39
  platformLocktime?: number;
22
- threshold?: number;
23
- createdOnChainId: string;
24
- consumedOnChainId: string;
40
+ outputIndex: number;
41
+ rewardType?: RewardType;
42
+ stakeableLocktime?: number;
25
43
  staked?: boolean;
26
- utxoStartTimestamp?: number;
44
+ threshold?: number;
45
+ txHash: string;
27
46
  utxoEndTimestamp?: number;
28
- rewardType?: RewardType;
47
+ utxoStartTimestamp?: number;
48
+ utxoType: UtxoType;
29
49
  };
30
50
 
31
51
  export { PChainUtxo };
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type PendingDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace PendingDelegatorDetails {
14
+ enum delegationStatus {
15
+ PENDING = "pending"
16
+ }
17
+ }
14
18
 
15
19
  export { PendingDelegatorDetails };