@avalabs/glacier-sdk 3.1.0-canary.0be52fe.0 → 3.1.0-canary.0bf7de8.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 (177) hide show
  1. package/dist/index.d.ts +2201 -690
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +8 -2
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessRequest.d.ts +12 -0
  6. package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
  7. package/esm/generated/models/AddressesChangeRequest.d.ts +1 -1
  8. package/esm/generated/models/ApiFeature.d.ts +7 -0
  9. package/esm/generated/models/ApiFeature.js +1 -0
  10. package/esm/generated/models/BadGateway.d.ts +16 -0
  11. package/esm/generated/models/BadRequest.d.ts +16 -0
  12. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  13. package/esm/generated/models/BlockchainId.d.ts +2 -0
  14. package/esm/generated/models/BlockchainId.js +1 -1
  15. package/esm/generated/models/BlockchainIds.d.ts +3 -1
  16. package/esm/generated/models/BlockchainIds.js +1 -1
  17. package/esm/generated/models/ChainInfo.d.ts +1 -1
  18. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  19. package/esm/generated/models/CompletedValidatorDetails.d.ts +4 -0
  20. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +4 -4
  21. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +4 -4
  22. package/esm/generated/models/CreateWebhookRequest.d.ts +1 -1
  23. package/esm/generated/models/DataListChainsResponse.d.ts +7 -0
  24. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  25. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  26. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  27. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  28. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  29. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  30. package/esm/generated/models/EvmBlock.d.ts +4 -0
  31. package/esm/generated/models/Forbidden.d.ts +16 -0
  32. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  33. package/esm/generated/models/GetChainResponse.d.ts +1 -1
  34. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  35. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  36. package/esm/generated/models/GetTransactionResponse.d.ts +5 -0
  37. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  38. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  39. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  40. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  41. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  42. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  43. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  44. package/esm/generated/models/IcmRewardDetails.js +1 -0
  45. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  46. package/esm/generated/models/InternalServerError.d.ts +16 -0
  47. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +33 -0
  48. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +23 -0
  49. package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
  50. package/esm/generated/models/ListAddressChainsResponse.d.ts +8 -0
  51. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  52. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  53. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  54. package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
  55. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +14 -0
  56. package/esm/generated/models/LogsFormat.d.ts +60 -0
  57. package/esm/generated/models/LogsFormatMetadata.d.ts +16 -0
  58. package/esm/generated/models/LogsResponseDTO.d.ts +18 -0
  59. package/esm/generated/models/Metric.d.ts +14 -0
  60. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  61. package/esm/generated/models/Network.d.ts +3 -1
  62. package/esm/generated/models/Network.js +1 -1
  63. package/esm/generated/models/NotFound.d.ts +16 -0
  64. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  65. package/esm/generated/models/PChainTransaction.d.ts +33 -7
  66. package/esm/generated/models/PChainTransactionType.d.ts +5 -0
  67. package/esm/generated/models/PChainTransactionType.js +1 -1
  68. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  69. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  70. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  71. package/esm/generated/models/PendingIcmMessage.js +1 -0
  72. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  73. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  74. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
  75. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  76. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  77. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  78. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  79. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  80. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  81. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  82. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
  83. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  84. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  85. package/esm/generated/models/RequestType.d.ts +9 -0
  86. package/esm/generated/models/RequestType.js +1 -0
  87. package/esm/generated/models/RpcMetrics.d.ts +14 -0
  88. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  89. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  90. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +55 -0
  91. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -0
  92. package/esm/generated/models/ServiceUnavailable.d.ts +16 -0
  93. package/esm/generated/models/SignatureAggregationResponse.d.ts +5 -0
  94. package/esm/generated/models/SignatureAggregatorRequest.d.ts +8 -0
  95. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  96. package/esm/generated/models/Subnet.d.ts +13 -0
  97. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  98. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  99. package/esm/generated/models/SubnetRpcUsageMetricsResponseDTO.d.ts +18 -0
  100. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  101. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  102. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  103. package/esm/generated/models/TeleporterMessageInfo.d.ts +16 -0
  104. package/esm/generated/models/TimeIntervalGranularityExtended.d.ts +9 -0
  105. package/esm/generated/models/TimeIntervalGranularityExtended.js +1 -0
  106. package/esm/generated/models/TooManyRequests.d.ts +16 -0
  107. package/esm/generated/models/TransactionDirectionType.d.ts +6 -0
  108. package/esm/generated/models/TransactionDirectionType.js +1 -0
  109. package/esm/generated/models/Unauthorized.d.ts +16 -0
  110. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  111. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  112. package/esm/generated/models/UsageMetricsGroupByEnum.d.ts +9 -0
  113. package/esm/generated/models/UsageMetricsGroupByEnum.js +1 -0
  114. package/esm/generated/models/UsageMetricsResponseDTO.d.ts +18 -0
  115. package/esm/generated/models/UsageMetricsValueDTO.d.ts +53 -0
  116. package/esm/generated/models/UsageMetricsValueDTO.js +1 -0
  117. package/esm/generated/models/UtxoType.d.ts +3 -0
  118. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  119. package/esm/generated/models/XChainId.d.ts +1 -0
  120. package/esm/generated/models/XChainId.js +1 -1
  121. package/esm/generated/services/DataApiUsageMetricsService.d.ts +253 -0
  122. package/esm/generated/services/DataApiUsageMetricsService.js +1 -0
  123. package/esm/generated/services/EvmBalancesService.d.ts +10 -10
  124. package/esm/generated/services/EvmBalancesService.js +1 -1
  125. package/esm/generated/services/EvmBlocksService.d.ts +25 -4
  126. package/esm/generated/services/EvmBlocksService.js +1 -1
  127. package/esm/generated/services/EvmChainsService.d.ts +88 -10
  128. package/esm/generated/services/EvmChainsService.js +1 -1
  129. package/esm/generated/services/EvmContractsService.d.ts +4 -4
  130. package/esm/generated/services/EvmContractsService.js +1 -1
  131. package/esm/generated/services/EvmTransactionsService.d.ts +58 -25
  132. package/esm/generated/services/EvmTransactionsService.js +1 -1
  133. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  134. package/esm/generated/services/HealthCheckService.js +1 -1
  135. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  136. package/esm/generated/services/InterchainMessagingService.js +1 -0
  137. package/esm/generated/services/NfTsService.d.ts +6 -6
  138. package/esm/generated/services/NfTsService.js +1 -1
  139. package/esm/generated/services/NotificationsService.d.ts +51 -0
  140. package/esm/generated/services/NotificationsService.js +1 -0
  141. package/esm/generated/services/OperationsService.d.ts +2 -2
  142. package/esm/generated/services/OperationsService.js +1 -1
  143. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +2 -2
  144. package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -1
  145. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +24 -8
  146. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  147. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
  148. package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -1
  149. package/esm/generated/services/PrimaryNetworkService.d.ts +52 -18
  150. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  151. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +13 -10
  152. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  153. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +2 -2
  154. package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -1
  155. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +6 -6
  156. package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -1
  157. package/esm/generated/services/SignatureAggregatorService.d.ts +25 -0
  158. package/esm/generated/services/SignatureAggregatorService.js +1 -0
  159. package/esm/generated/services/TeleporterService.d.ts +44 -10
  160. package/esm/generated/services/TeleporterService.js +1 -1
  161. package/esm/generated/services/WebhooksService.d.ts +13 -13
  162. package/esm/generated/services/WebhooksService.js +1 -1
  163. package/esm/index.d.ts +57 -8
  164. package/esm/index.js +1 -1
  165. package/package.json +2 -2
  166. package/esm/generated/models/GlacierApiFeature.d.ts +0 -6
  167. package/esm/generated/models/GlacierApiFeature.js +0 -1
  168. package/esm/generated/models/NetworkType.d.ts +0 -6
  169. package/esm/generated/models/NetworkType.js +0 -1
  170. package/esm/generated/models/PrimaryNetwork.d.ts +0 -6
  171. package/esm/generated/models/PrimaryNetwork.js +0 -1
  172. package/esm/generated/models/RpcErrorDto.d.ts +0 -7
  173. package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
  174. package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
  175. package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
  176. package/esm/generated/services/RpcService.d.ts +0 -25
  177. package/esm/generated/services/RpcService.js +0 -1
@@ -0,0 +1,23 @@
1
+ type L1ValidatorDetailsTransaction = {
2
+ /**
3
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4
+ */
5
+ validationId: string;
6
+ nodeId: string;
7
+ subnetId: string;
8
+ /**
9
+ * Weight of the L1 validator used while sampling validators within the L1. A zero-weight L1 validator means it has been removed from the L1, and the validationID is no longer valid
10
+ */
11
+ weight: number;
12
+ /**
13
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
14
+ */
15
+ remainingBalance: number;
16
+ /**
17
+ * The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
18
+ */
19
+ balanceChange?: number;
20
+ blsCredentials?: Record<string, any>;
21
+ };
22
+
23
+ export { L1ValidatorDetailsTransaction };
@@ -0,0 +1,6 @@
1
+ type L1ValidatorManagerDetails = {
2
+ blockchainId: string;
3
+ contractAddress: string;
4
+ };
5
+
6
+ export { L1ValidatorManagerDetails };
@@ -0,0 +1,8 @@
1
+ import { ChainInfo } from './ChainInfo.js';
2
+
3
+ type ListAddressChainsResponse = {
4
+ indexedChains?: Array<ChainInfo>;
5
+ unindexedChains?: Array<string>;
6
+ };
7
+
8
+ export { ListAddressChainsResponse };
@@ -1,10 +1,15 @@
1
1
  import { Erc1155TokenBalance } from './Erc1155TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc1155BalancesResponse = {
4
5
  /**
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.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-1155 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc20TokenBalance } from './Erc20TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc20BalancesResponse = {
4
5
  /**
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.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-20 token balances for the address.
10
15
  */
@@ -1,10 +1,15 @@
1
1
  import { Erc721TokenBalance } from './Erc721TokenBalance.js';
2
+ import { NativeTokenBalance } from './NativeTokenBalance.js';
2
3
 
3
4
  type ListErc721BalancesResponse = {
4
5
  /**
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.
6
7
  */
7
8
  nextPageToken?: string;
9
+ /**
10
+ * The native token balance for the address.
11
+ */
12
+ nativeTokenBalance: NativeTokenBalance;
8
13
  /**
9
14
  * The list of ERC-721 token balances for the address.
10
15
  */
@@ -0,0 +1,12 @@
1
+ import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
2
+ import { PendingIcmMessage } from './PendingIcmMessage.js';
3
+
4
+ type ListIcmMessagesResponse = {
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
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
10
+ };
11
+
12
+ export { ListIcmMessagesResponse };
@@ -0,0 +1,14 @@
1
+ import { L1ValidatorDetailsFull } from './L1ValidatorDetailsFull.js';
2
+
3
+ type ListL1ValidatorsResponse = {
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
+ /**
9
+ * The list of L1 validations for the given Subnet ID, NodeId or validationId
10
+ */
11
+ validators: Array<L1ValidatorDetailsFull>;
12
+ };
13
+
14
+ export { ListL1ValidatorsResponse };
@@ -0,0 +1,60 @@
1
+ import { LogsFormatMetadata } from './LogsFormatMetadata.js';
2
+ import { RequestType } from './RequestType.js';
3
+
4
+ type LogsFormat = {
5
+ /**
6
+ * The organization id of the request.
7
+ */
8
+ orgId: string;
9
+ /**
10
+ * The unique log id of the request.
11
+ */
12
+ logId: string;
13
+ /**
14
+ * The timestamp of the request.
15
+ */
16
+ eventTimestamp: number;
17
+ /**
18
+ * The apiKey used to make the request.
19
+ */
20
+ apiKeyId: string;
21
+ /**
22
+ * The alias of the apiKey used to make the request.
23
+ */
24
+ apiKeyAlias: string;
25
+ /**
26
+ * The region of the host for the request made by the client.
27
+ */
28
+ hostRegion: string;
29
+ requestType: RequestType;
30
+ /**
31
+ * The path of the request made by the client.
32
+ */
33
+ requestPath: string;
34
+ /**
35
+ * The number of API credits consumed by the request.
36
+ */
37
+ apiCreditsConsumed: number;
38
+ /**
39
+ * The duration of the request in milliseconds.
40
+ */
41
+ requestDurationMsecs: number;
42
+ /**
43
+ * The response code of the request.
44
+ */
45
+ responseCode: number;
46
+ /**
47
+ * The chain id of the request.
48
+ */
49
+ chainId?: string;
50
+ /**
51
+ * The rpc method of the request.
52
+ */
53
+ rpcMethod?: string;
54
+ /**
55
+ * The metadata of the request.
56
+ */
57
+ metadata: LogsFormatMetadata;
58
+ };
59
+
60
+ export { LogsFormat };
@@ -0,0 +1,16 @@
1
+ type LogsFormatMetadata = {
2
+ /**
3
+ * The IP address of the client that made the request.
4
+ */
5
+ ipAddress: string;
6
+ /**
7
+ * The host for the request made by the client.
8
+ */
9
+ host: string;
10
+ /**
11
+ * The user agent of the client that made the request.
12
+ */
13
+ userAgent: string;
14
+ };
15
+
16
+ export { LogsFormatMetadata };
@@ -0,0 +1,18 @@
1
+ import { LogsFormat } from './LogsFormat.js';
2
+
3
+ type LogsResponseDTO = {
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
+ /**
9
+ * The organization id of the request.
10
+ */
11
+ orgId: string;
12
+ /**
13
+ * An array of logs representing the requests made by clients.
14
+ */
15
+ logs: Array<LogsFormat>;
16
+ };
17
+
18
+ export { LogsResponseDTO };
@@ -0,0 +1,14 @@
1
+ import { UsageMetricsValueDTO } from './UsageMetricsValueDTO.js';
2
+
3
+ type Metric = {
4
+ /**
5
+ * The timestamp of the metrics value
6
+ */
7
+ timestamp: number;
8
+ /**
9
+ * The metrics values for the timestamp
10
+ */
11
+ values: Array<UsageMetricsValueDTO>;
12
+ };
13
+
14
+ export { Metric };
@@ -14,6 +14,10 @@ type NativeTransaction = {
14
14
  * The block hash identifier.
15
15
  */
16
16
  blockHash: string;
17
+ /**
18
+ * The EVM chain ID on which the transaction occured.
19
+ */
20
+ chainId: string;
17
21
  /**
18
22
  * The index at which the transaction occured in the block (0-indexed).
19
23
  */
@@ -1,6 +1,8 @@
1
1
  declare enum Network {
2
2
  MAINNET = "mainnet",
3
- FUJI = "fuji"
3
+ FUJI = "fuji",
4
+ TESTNET = "testnet",
5
+ DEVNET = "devnet"
4
6
  }
5
7
 
6
8
  export { Network };
@@ -1 +1 @@
1
- var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as Network};
1
+ var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(e||{});export{e as Network};
@@ -0,0 +1,16 @@
1
+ type NotFound = {
2
+ /**
3
+ * The error message describing the reason for the exception
4
+ */
5
+ message: (string | Array<string>);
6
+ /**
7
+ * The HTTP status code of the response
8
+ */
9
+ statusCode: number;
10
+ /**
11
+ * The type of error
12
+ */
13
+ error: string;
14
+ };
15
+
16
+ export { NotFound };
@@ -0,0 +1,5 @@
1
+ type NotificationsResponse = {
2
+ message: string;
3
+ };
4
+
5
+ export { NotificationsResponse };
@@ -1,5 +1,7 @@
1
1
  import { AssetAmount } from './AssetAmount.js';
2
2
  import { BlsCredentials } from './BlsCredentials.js';
3
+ import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
4
+ import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
3
5
  import { PChainTransactionType } from './PChainTransactionType.js';
4
6
  import { PChainUtxo } from './PChainUtxo.js';
5
7
  import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
@@ -14,9 +16,18 @@ type PChainTransaction = {
14
16
  * The block finality timestamp.
15
17
  */
16
18
  blockTimestamp: number;
19
+ /**
20
+ * The height of the block in which the transaction was included
21
+ */
17
22
  blockNumber: string;
18
23
  blockHash: string;
24
+ /**
25
+ * The consumed UTXOs of the transaction
26
+ */
19
27
  consumedUtxos: Array<PChainUtxo>;
28
+ /**
29
+ * The newly created UTXOs of the transaction
30
+ */
20
31
  emittedUtxos: Array<PChainUtxo>;
21
32
  /**
22
33
  * Source chain for an atomic transaction.
@@ -27,17 +38,21 @@ type PChainTransaction = {
27
38
  */
28
39
  destinationChain?: string;
29
40
  /**
30
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
41
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
31
42
  */
32
43
  value: Array<AssetAmount>;
33
44
  /**
34
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
45
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
35
46
  */
36
47
  amountBurned: Array<AssetAmount>;
37
48
  /**
38
49
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
39
50
  */
40
51
  amountStaked: Array<AssetAmount>;
52
+ /**
53
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
54
+ */
55
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
41
56
  /**
42
57
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
43
58
  */
@@ -47,11 +62,11 @@ type PChainTransaction = {
47
62
  */
48
63
  endTimestamp?: number;
49
64
  /**
50
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
65
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
51
66
  */
52
67
  delegationFeePercent?: string;
53
68
  /**
54
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
69
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
55
70
  */
56
71
  nodeId?: string;
57
72
  /**
@@ -59,14 +74,25 @@ type PChainTransaction = {
59
74
  */
60
75
  subnetId?: string;
61
76
  /**
62
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
77
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
78
+ */
79
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
80
+ /**
81
+ * Details of L1 validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
82
+ */
83
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
84
+ /**
85
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
63
86
  */
64
87
  estimatedReward?: string;
88
+ /**
89
+ * Reward transaction hash for the completed validations or delegations
90
+ */
65
91
  rewardTxHash?: string;
66
92
  rewardAddresses?: Array<string>;
67
93
  memo?: string;
68
94
  /**
69
- * Present for RewardValidatorTx
95
+ * Staking transaction corresponding to the RewardValidatorTx
70
96
  */
71
97
  stakingTxHash?: string;
72
98
  /**
@@ -74,7 +100,7 @@ type PChainTransaction = {
74
100
  */
75
101
  subnetOwnershipInfo?: SubnetOwnershipInfo;
76
102
  /**
77
- * Present for AddPermissionlessValidatorTx
103
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
78
104
  */
79
105
  blsCredentials?: BlsCredentials;
80
106
  };
@@ -14,6 +14,11 @@ declare enum PChainTransactionType {
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
15
  BASE_TX = "BaseTx",
16
16
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
18
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
19
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
20
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
21
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
17
22
  UNKNOWN = "UNKNOWN"
18
23
  }
19
24
 
@@ -1 +1 @@
1
- var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
1
+ var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TO_L1TX="ConvertSubnetToL1Tx",T.REGISTER_L1VALIDATOR_TX="RegisterL1ValidatorTx",T.SET_L1VALIDATOR_WEIGHT_TX="SetL1ValidatorWeightTx",T.DISABLE_L1VALIDATOR_TX="DisableL1ValidatorTx",T.INCREASE_L1VALIDATOR_BALANCE_TX="IncreaseL1ValidatorBalanceTx",T.UNKNOWN="UNKNOWN",T))(T||{});export{T as PChainTransactionType};
@@ -34,16 +34,43 @@ type PChainUtxo = {
34
34
  assetId: string;
35
35
  blockNumber: string;
36
36
  blockTimestamp: number;
37
+ /**
38
+ * Block height in which the transaction consuming this UTXO was included
39
+ */
37
40
  consumingBlockNumber?: string;
41
+ /**
42
+ * Timestamp in seconds at which this UTXO is used in a consuming transaction
43
+ */
38
44
  consumingBlockTimestamp?: number;
45
+ /**
46
+ * Timestamp in seconds after which this UTXO can be consumed
47
+ */
39
48
  platformLocktime?: number;
49
+ /**
50
+ * The index of the UTXO in the transaction
51
+ */
40
52
  outputIndex: number;
41
53
  rewardType?: RewardType;
54
+ /**
55
+ * Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
56
+ */
42
57
  stakeableLocktime?: number;
43
58
  staked?: boolean;
59
+ /**
60
+ * The minimum number of signatures required to spend this UTXO
61
+ */
44
62
  threshold?: number;
63
+ /**
64
+ * The hash of the transaction that created this UTXO
65
+ */
45
66
  txHash: string;
67
+ /**
68
+ * Timestamp in seconds after which the staked UTXO will be unlocked.
69
+ */
46
70
  utxoEndTimestamp?: number;
71
+ /**
72
+ * Timestamp in seconds at which the staked UTXO was locked.
73
+ */
47
74
  utxoStartTimestamp?: number;
48
75
  utxoType: UtxoType;
49
76
  };
@@ -6,7 +6,13 @@ type PendingDelegatorDetails = {
6
6
  delegationFee: string;
7
7
  startTimestamp: number;
8
8
  endTimestamp: number;
9
+ /**
10
+ * Estimated total rewards that will be distributed for the successful delegation.
11
+ */
9
12
  estimatedGrossReward: string;
13
+ /**
14
+ * Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
15
+ */
10
16
  estimatedNetReward: string;
11
17
  delegationStatus: PendingDelegatorDetails.delegationStatus;
12
18
  };
@@ -0,0 +1,29 @@
1
+ import { IcmReceipt } from './IcmReceipt.js';
2
+ import { IcmRewardDetails } from './IcmRewardDetails.js';
3
+ import { IcmSourceTransaction } from './IcmSourceTransaction.js';
4
+
5
+ type PendingIcmMessage = {
6
+ messageId: string;
7
+ icmContractAddress: string;
8
+ sourceBlockchainId: string;
9
+ destinationBlockchainId: string;
10
+ sourceEvmChainId: string;
11
+ destinationEvmChainId: string;
12
+ messageNonce: string;
13
+ from: string;
14
+ to: string;
15
+ data?: string;
16
+ messageExecuted: boolean;
17
+ receipts: Array<IcmReceipt>;
18
+ receiptDelivered: boolean;
19
+ rewardDetails: IcmRewardDetails;
20
+ sourceTransaction: IcmSourceTransaction;
21
+ status: PendingIcmMessage.status;
22
+ };
23
+ declare namespace PendingIcmMessage {
24
+ enum status {
25
+ PENDING = "pending"
26
+ }
27
+ }
28
+
29
+ export { PendingIcmMessage };
@@ -0,0 +1 @@
1
+ var t,s;((s=t||(t={})).status||(s.status={})).PENDING="pending";export{t as PendingIcmMessage};
@@ -5,6 +5,9 @@ type PendingValidatorDetails = {
5
5
  nodeId: string;
6
6
  subnetId: string;
7
7
  amountStaked: string;
8
+ /**
9
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
10
+ */
8
11
  delegationFee?: string;
9
12
  startTimestamp: number;
10
13
  endTimestamp: number;
@@ -9,6 +9,8 @@ type PrimaryNetworkBlock = {
9
9
  txCount: number;
10
10
  transactions: Array<string>;
11
11
  blockSizeBytes: number;
12
+ l1ValidatorsAccruedFees?: number;
13
+ activeL1Validators?: number;
12
14
  currentSupply?: string;
13
15
  proposerDetails?: ProposerDetails;
14
16
  };
@@ -1,9 +1,9 @@
1
- import { PrimaryNetwork } from './PrimaryNetwork.js';
1
+ import { Network } from './Network.js';
2
2
  import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
3
3
 
4
4
  type PrimaryNetworkChainInfo = {
5
5
  chainName: PrimaryNetworkChainName;
6
- network: PrimaryNetwork;
6
+ network: Network;
7
7
  };
8
8
 
9
9
  export { PrimaryNetworkChainInfo };
@@ -1,7 +1,7 @@
1
1
  type PrimaryNetworkOptions = {
2
2
  addresses?: Array<string>;
3
3
  cChainEvmAddresses?: Array<string>;
4
- includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
4
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2piQ2AVHCjnduiWXsSY15DtbVuwHE2cwMHYnEXHsLL73BBkdbV' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'vV3cui1DsEPC3nLCGH9rorwo8s6BYxM2Hz4QFE5gEYjwTqAu' | 'p-chain' | 'x-chain' | 'c-chain'>;
5
5
  };
6
6
 
7
7
  export { PrimaryNetworkOptions };
@@ -0,0 +1,10 @@
1
+ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
2
+ RPC_METHOD = "rpcMethod",
3
+ REQUEST_PATH = "requestPath",
4
+ RESPONSE_CODE = "responseCode",
5
+ COUNTRY = "country",
6
+ CONTINENT = "continent",
7
+ USER_AGENT = "userAgent"
8
+ }
9
+
10
+ export { PrimaryNetworkRpcMetricsGroupByEnum };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.RPC_METHOD="rpcMethod",e.REQUEST_PATH="requestPath",e.RESPONSE_CODE="responseCode",e.COUNTRY="country",e.CONTINENT="continent",e.USER_AGENT="userAgent",e))(e||{});export{e as PrimaryNetworkRpcMetricsGroupByEnum};
@@ -0,0 +1,8 @@
1
+ declare enum PrimaryNetworkRpcTimeIntervalGranularity {
2
+ HOURLY = "hourly",
3
+ DAILY = "daily",
4
+ WEEKLY = "weekly",
5
+ MONTHLY = "monthly"
6
+ }
7
+
8
+ export { PrimaryNetworkRpcTimeIntervalGranularity };
@@ -0,0 +1 @@
1
+ var l=(l=>(l.HOURLY="hourly",l.DAILY="daily",l.WEEKLY="weekly",l.MONTHLY="monthly",l))(l||{});export{l as PrimaryNetworkRpcTimeIntervalGranularity};
@@ -0,0 +1,27 @@
1
+ import { RpcMetrics } from './RpcMetrics.js';
2
+
3
+ type PrimaryNetworkRpcUsageMetricsResponseDTO = {
4
+ /**
5
+ * Duration in which the metrics value is aggregated
6
+ */
7
+ aggregateDuration: string;
8
+ /**
9
+ * Metrics values
10
+ */
11
+ metrics: Array<RpcMetrics>;
12
+ /**
13
+ * Network type for which the metrics are aggregated
14
+ */
15
+ network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
16
+ };
17
+ declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
18
+ /**
19
+ * Network type for which the metrics are aggregated
20
+ */
21
+ enum network {
22
+ MAINNET = "mainnet",
23
+ TESTNET = "testnet"
24
+ }
25
+ }
26
+
27
+ export { PrimaryNetworkRpcUsageMetricsResponseDTO };
@@ -0,0 +1 @@
1
+ var t,e,n;e=t||(t={}),(n=e.network||(e.network={})).MAINNET="mainnet",n.TESTNET="testnet";export{t as PrimaryNetworkRpcUsageMetricsResponseDTO};
@@ -14,6 +14,11 @@ declare enum PrimaryNetworkTxType {
14
14
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
15
15
  BASE_TX = "BaseTx",
16
16
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
17
+ CONVERT_SUBNET_TO_L1TX = "ConvertSubnetToL1Tx",
18
+ REGISTER_L1VALIDATOR_TX = "RegisterL1ValidatorTx",
19
+ SET_L1VALIDATOR_WEIGHT_TX = "SetL1ValidatorWeightTx",
20
+ DISABLE_L1VALIDATOR_TX = "DisableL1ValidatorTx",
21
+ INCREASE_L1VALIDATOR_BALANCE_TX = "IncreaseL1ValidatorBalanceTx",
17
22
  UNKNOWN = "UNKNOWN",
18
23
  CREATE_ASSET_TX = "CreateAssetTx",
19
24
  OPERATION_TX = "OperationTx"
@@ -1 +1 @@
1
- var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
1
+ var T=(T=>(T.ADD_VALIDATOR_TX="AddValidatorTx",T.ADD_SUBNET_VALIDATOR_TX="AddSubnetValidatorTx",T.ADD_DELEGATOR_TX="AddDelegatorTx",T.CREATE_CHAIN_TX="CreateChainTx",T.CREATE_SUBNET_TX="CreateSubnetTx",T.IMPORT_TX="ImportTx",T.EXPORT_TX="ExportTx",T.ADVANCE_TIME_TX="AdvanceTimeTx",T.REWARD_VALIDATOR_TX="RewardValidatorTx",T.REMOVE_SUBNET_VALIDATOR_TX="RemoveSubnetValidatorTx",T.TRANSFORM_SUBNET_TX="TransformSubnetTx",T.ADD_PERMISSIONLESS_VALIDATOR_TX="AddPermissionlessValidatorTx",T.ADD_PERMISSIONLESS_DELEGATOR_TX="AddPermissionlessDelegatorTx",T.BASE_TX="BaseTx",T.TRANSFER_SUBNET_OWNERSHIP_TX="TransferSubnetOwnershipTx",T.CONVERT_SUBNET_TO_L1TX="ConvertSubnetToL1Tx",T.REGISTER_L1VALIDATOR_TX="RegisterL1ValidatorTx",T.SET_L1VALIDATOR_WEIGHT_TX="SetL1ValidatorWeightTx",T.DISABLE_L1VALIDATOR_TX="DisableL1ValidatorTx",T.INCREASE_L1VALIDATOR_BALANCE_TX="IncreaseL1ValidatorBalanceTx",T.UNKNOWN="UNKNOWN",T.CREATE_ASSET_TX="CreateAssetTx",T.OPERATION_TX="OperationTx",T))(T||{});export{T as PrimaryNetworkTxType};
@@ -5,6 +5,9 @@ type RemovedValidatorDetails = {
5
5
  nodeId: string;
6
6
  subnetId: string;
7
7
  amountStaked: string;
8
+ /**
9
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
10
+ */
8
11
  delegationFee?: string;
9
12
  startTimestamp: number;
10
13
  endTimestamp: number;
@@ -12,7 +15,13 @@ type RemovedValidatorDetails = {
12
15
  * Present for AddPermissionlessValidatorTx
13
16
  */
14
17
  blsCredentials?: BlsCredentials;
18
+ /**
19
+ * The transaction hash that removed the permissioned subnet validator.
20
+ */
15
21
  removeTxHash: string;
22
+ /**
23
+ * The timestamp of the transaction that removed the permissioned subnet validator.
24
+ */
16
25
  removeTimestamp: number;
17
26
  validationStatus: RemovedValidatorDetails.validationStatus;
18
27
  };