@avalabs/glacier-sdk 3.1.0-canary.ff4ef69.0 → 3.1.1-canary.b873d0d.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 (159) hide show
  1. package/dist/index.d.ts +1719 -329
  2. package/dist/index.js +1 -1
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/core/OpenAPI.js +1 -1
  6. package/esm/generated/models/AccessListData.d.ts +12 -0
  7. package/esm/generated/models/AccessRequest.d.ts +12 -0
  8. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  9. package/esm/generated/models/AddressActivityEventType.d.ts +5 -0
  10. package/esm/generated/models/{EventType.js → AddressActivityEventType.js} +1 -1
  11. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -4
  12. package/esm/generated/models/Blockchain.d.ts +8 -0
  13. package/esm/generated/models/BlockchainId.d.ts +0 -2
  14. package/esm/generated/models/BlockchainId.js +1 -1
  15. package/esm/generated/models/BlockchainIds.d.ts +1 -3
  16. package/esm/generated/models/BlockchainIds.js +1 -1
  17. package/esm/generated/models/BlockchainInfo.d.ts +6 -1
  18. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  19. package/esm/generated/models/CommonBalanceType.js +1 -0
  20. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  21. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  22. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  23. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  24. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  25. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  26. package/esm/generated/models/ERCToken.d.ts +24 -0
  27. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  28. package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +10 -6
  29. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  30. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +10 -10
  31. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  32. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  33. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  34. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  35. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  36. package/esm/generated/models/EvmBlock.d.ts +4 -0
  37. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  38. package/esm/generated/models/Geolocation.d.ts +24 -0
  39. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  40. package/esm/generated/models/GetTransactionResponse.d.ts +1 -1
  41. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  42. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  43. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  44. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  45. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  46. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  47. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  48. package/esm/generated/models/IcmRewardDetails.js +1 -0
  49. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  50. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  51. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  52. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
  53. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +5 -1
  54. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
  55. package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
  56. package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
  57. package/esm/generated/models/ListIcmMessagesResponse.d.ts +13 -0
  58. package/esm/generated/models/ListL1ValidatorsResponse.d.ts +4 -0
  59. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +2 -1
  60. package/esm/generated/models/ListWebhooksResponse.d.ts +4 -2
  61. package/esm/generated/models/Log.d.ts +40 -0
  62. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  63. package/esm/generated/models/Network.d.ts +1 -2
  64. package/esm/generated/models/Network.js +1 -1
  65. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  66. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  67. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  68. package/esm/generated/models/PChainTransaction.d.ts +25 -8
  69. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  70. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  71. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  72. package/esm/generated/models/PendingIcmMessage.js +1 -0
  73. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  74. package/esm/generated/models/PlatformAddressActivityKeyType.d.ts +8 -0
  75. package/esm/generated/models/PlatformAddressActivityKeyType.js +1 -0
  76. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.d.ts +5 -0
  77. package/esm/generated/models/PrimaryNetworkAddressActivityEventType.js +1 -0
  78. package/esm/generated/models/PrimaryNetworkAddressActivityMetadata.d.ts +25 -0
  79. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.d.ts +22 -0
  80. package/esm/generated/models/PrimaryNetworkAddressActivityRequest.js +1 -0
  81. package/esm/generated/models/PrimaryNetworkAddressActivityResponse.d.ts +17 -0
  82. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.d.ts +10 -0
  83. package/esm/generated/models/PrimaryNetworkAddressActivitySubEventType.js +1 -0
  84. package/esm/generated/models/PrimaryNetworkAddressActivitySubEvents.d.ts +7 -0
  85. package/esm/generated/models/PrimaryNetworkBalanceThresholdFilter.d.ts +11 -0
  86. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  87. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  88. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  89. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  90. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  91. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  92. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  93. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  94. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  95. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  96. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  97. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  98. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  99. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  100. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  101. package/esm/generated/models/Subnet.d.ts +6 -2
  102. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  103. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  104. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  105. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  106. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  107. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  108. package/esm/generated/models/TeleporterMessageInfo.d.ts +2 -2
  109. package/esm/generated/models/Transaction.d.ts +121 -0
  110. package/esm/generated/models/TransactionDetails.d.ts +1 -1
  111. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  112. package/esm/generated/models/UnknownContract.d.ts +1 -1
  113. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  114. package/esm/generated/models/UtxoType.d.ts +3 -0
  115. package/esm/generated/models/ValidatorActivityEventType.d.ts +5 -0
  116. package/esm/generated/models/ValidatorActivityEventType.js +1 -0
  117. package/esm/generated/models/ValidatorActivityKeyType.d.ts +9 -0
  118. package/esm/generated/models/ValidatorActivityKeyType.js +1 -0
  119. package/esm/generated/models/ValidatorActivityMetadata.d.ts +32 -0
  120. package/esm/generated/models/ValidatorActivityRequest.d.ts +21 -0
  121. package/esm/generated/models/ValidatorActivityRequest.js +1 -0
  122. package/esm/generated/models/ValidatorActivityResponse.d.ts +17 -0
  123. package/esm/generated/models/ValidatorActivitySubEvents.d.ts +8 -0
  124. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  125. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  126. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  127. package/esm/generated/models/WebhookInternalTransaction.d.ts +32 -0
  128. package/esm/generated/models/XChainId.d.ts +0 -1
  129. package/esm/generated/models/XChainId.js +1 -1
  130. package/esm/generated/services/AvaxSupplyService.d.ts +16 -0
  131. package/esm/generated/services/AvaxSupplyService.js +1 -0
  132. package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
  133. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  134. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  135. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  136. package/esm/generated/services/EvmBlocksService.js +1 -1
  137. package/esm/generated/services/EvmChainsService.d.ts +69 -4
  138. package/esm/generated/services/EvmChainsService.js +1 -1
  139. package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
  140. package/esm/generated/services/EvmTransactionsService.js +1 -1
  141. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  142. package/esm/generated/services/HealthCheckService.js +1 -1
  143. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  144. package/esm/generated/services/InterchainMessagingService.js +1 -0
  145. package/esm/generated/services/NotificationsService.d.ts +51 -0
  146. package/esm/generated/services/NotificationsService.js +1 -0
  147. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  148. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  149. package/esm/generated/services/PrimaryNetworkService.d.ts +22 -5
  150. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  151. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  152. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  153. package/esm/generated/services/TeleporterService.d.ts +12 -6
  154. package/esm/generated/services/WebhooksService.d.ts +28 -24
  155. package/esm/generated/services/WebhooksService.js +1 -1
  156. package/esm/index.d.ts +54 -4
  157. package/esm/index.js +1 -1
  158. package/package.json +2 -2
  159. package/esm/generated/models/EventType.d.ts +0 -5
@@ -0,0 +1,17 @@
1
+ type HealthIndicatorResultDto = {
2
+ /**
3
+ * Status of the health indicator.
4
+ */
5
+ status?: HealthIndicatorResultDto.status;
6
+ };
7
+ declare namespace HealthIndicatorResultDto {
8
+ /**
9
+ * Status of the health indicator.
10
+ */
11
+ enum status {
12
+ UP = "up",
13
+ DOWN = "down"
14
+ }
15
+ }
16
+
17
+ export { HealthIndicatorResultDto };
@@ -0,0 +1 @@
1
+ var t,s,a;s=t||(t={}),(a=s.status||(s.status={})).UP="up",a.DOWN="down";export{t as HealthIndicatorResultDto};
@@ -0,0 +1,9 @@
1
+ type IcmDestinationTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ rewardRedeemer: string;
6
+ delivererAddress: string;
7
+ };
8
+
9
+ export { IcmDestinationTransaction };
@@ -0,0 +1,6 @@
1
+ type IcmReceipt = {
2
+ receivedMessageNonce: string;
3
+ relayerRewardAddress: string;
4
+ };
5
+
6
+ export { IcmReceipt };
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type IcmRewardDetails = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: IcmRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace IcmRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { IcmRewardDetails };
@@ -0,0 +1 @@
1
+ var e,r;((r=e||(e={})).ercType||(r.ercType={})).ERC_20="ERC-20";export{e as IcmRewardDetails};
@@ -0,0 +1,7 @@
1
+ type IcmSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { IcmSourceTransaction };
@@ -3,6 +3,7 @@ declare enum InternalTransactionOpCall {
3
3
  CALL = "CALL",
4
4
  CREATE = "CREATE",
5
5
  CREATE2 = "CREATE2",
6
+ CREATE3 = "CREATE3",
6
7
  CALLCODE = "CALLCODE",
7
8
  DELEGATECALL = "DELEGATECALL",
8
9
  STATICCALL = "STATICCALL"
@@ -1 +1 @@
1
- var L=(L=>(L.UNKNOWN="UNKNOWN",L.CALL="CALL",L.CREATE="CREATE",L.CREATE2="CREATE2",L.CALLCODE="CALLCODE",L.DELEGATECALL="DELEGATECALL",L.STATICCALL="STATICCALL",L))(L||{});export{L as InternalTransactionOpCall};
1
+ var E=(E=>(E.UNKNOWN="UNKNOWN",E.CALL="CALL",E.CREATE="CREATE",E.CREATE2="CREATE2",E.CREATE3="CREATE3",E.CALLCODE="CALLCODE",E.DELEGATECALL="DELEGATECALL",E.STATICCALL="STATICCALL",E))(E||{});export{E as InternalTransactionOpCall};
@@ -5,6 +5,10 @@ type L1ValidatorDetailsFull = {
5
5
  * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
6
6
  */
7
7
  validationId: string;
8
+ /**
9
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
10
+ */
11
+ validationIdHex: string;
8
12
  nodeId: string;
9
13
  subnetId: string;
10
14
  /**
@@ -3,6 +3,10 @@ type L1ValidatorDetailsTransaction = {
3
3
  * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
4
4
  */
5
5
  validationId: string;
6
+ /**
7
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
8
+ */
9
+ validationIdHex: string;
6
10
  nodeId: string;
7
11
  subnetId: string;
8
12
  /**
@@ -14,7 +18,7 @@ type L1ValidatorDetailsTransaction = {
14
18
  */
15
19
  remainingBalance: number;
16
20
  /**
17
- * The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
21
+ * 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
22
  */
19
23
  balanceChange?: number;
20
24
  blsCredentials?: Record<string, any>;
@@ -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,13 @@
1
+ import { DeliveredIcmMessage } from './DeliveredIcmMessage.js';
2
+ import { DeliveredSourceNotIndexedIcmMessage } from './DeliveredSourceNotIndexedIcmMessage.js';
3
+ import { PendingIcmMessage } from './PendingIcmMessage.js';
4
+
5
+ type ListIcmMessagesResponse = {
6
+ /**
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
+ */
9
+ nextPageToken?: string;
10
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
11
+ };
12
+
13
+ export { ListIcmMessagesResponse };
@@ -9,6 +9,10 @@ type ListL1ValidatorsResponse = {
9
9
  * The list of L1 validations for the given Subnet ID, NodeId or validationId
10
10
  */
11
11
  validators: Array<L1ValidatorDetailsFull>;
12
+ /**
13
+ * Block height at which the L1 validator's remaining balance is calculated
14
+ */
15
+ blockHeight: string;
12
16
  };
13
17
 
14
18
  export { ListL1ValidatorsResponse };
@@ -1,3 +1,4 @@
1
+ import { DeliveredSourceNotIndexedIcmMessage } from './DeliveredSourceNotIndexedIcmMessage.js';
1
2
  import { DeliveredTeleporterMessage } from './DeliveredTeleporterMessage.js';
2
3
  import { PendingTeleporterMessage } from './PendingTeleporterMessage.js';
3
4
 
@@ -6,7 +7,7 @@ type ListTeleporterMessagesResponse = {
6
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.
7
8
  */
8
9
  nextPageToken?: string;
9
- messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
10
+ messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedIcmMessage)>;
10
11
  };
11
12
 
12
13
  export { ListTeleporterMessagesResponse };
@@ -1,11 +1,13 @@
1
- import { WebhookResponse } from './WebhookResponse.js';
1
+ import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
2
+ import { PrimaryNetworkAddressActivityResponse } from './PrimaryNetworkAddressActivityResponse.js';
3
+ import { ValidatorActivityResponse } from './ValidatorActivityResponse.js';
2
4
 
3
5
  type ListWebhooksResponse = {
4
6
  /**
5
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.
6
8
  */
7
9
  nextPageToken?: string;
8
- webhooks: Array<WebhookResponse>;
10
+ webhooks: Array<(EVMAddressActivityResponse | PrimaryNetworkAddressActivityResponse | ValidatorActivityResponse)>;
9
11
  };
10
12
 
11
13
  export { ListWebhooksResponse };
@@ -0,0 +1,40 @@
1
+ type Log = {
2
+ /**
3
+ * Contract address
4
+ */
5
+ address: string;
6
+ /**
7
+ * First topic
8
+ */
9
+ topic0: string;
10
+ /**
11
+ * Second topic (optional)
12
+ */
13
+ topic1?: string;
14
+ /**
15
+ * Third topic (optional)
16
+ */
17
+ topic2?: string;
18
+ /**
19
+ * Fourth topic (optional)
20
+ */
21
+ topic3?: string;
22
+ /**
23
+ * Event data
24
+ */
25
+ data: string;
26
+ /**
27
+ * Transaction index
28
+ */
29
+ transactionIndex: number;
30
+ /**
31
+ * Log index
32
+ */
33
+ logIndex: number;
34
+ /**
35
+ * Indicates if the log was removed
36
+ */
37
+ removed: boolean;
38
+ };
39
+
40
+ export { Log };
@@ -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,8 +1,7 @@
1
1
  declare enum Network {
2
2
  MAINNET = "mainnet",
3
3
  FUJI = "fuji",
4
- TESTNET = "testnet",
5
- DEVNET = "devnet"
4
+ TESTNET = "testnet"
6
5
  }
7
6
 
8
7
  export { Network };
@@ -1 +1 @@
1
- var e=(e=>(e.MAINNET="mainnet",e.FUJI="fuji",e.TESTNET="testnet",e.DEVNET="devnet",e))(e||{});export{e as Network};
1
+ var t=(t=>(t.MAINNET="mainnet",t.FUJI="fuji",t.TESTNET="testnet",t))(t||{});export{t as Network};
@@ -0,0 +1,20 @@
1
+ type NetworkTokenInfo = {
2
+ /**
3
+ * Token name
4
+ */
5
+ tokenName?: string;
6
+ /**
7
+ * Token symbol
8
+ */
9
+ tokenSymbol?: string;
10
+ /**
11
+ * Token decimals
12
+ */
13
+ tokenDecimals?: number;
14
+ /**
15
+ * Value including decimals
16
+ */
17
+ valueWithDecimals?: string;
18
+ };
19
+
20
+ export { NetworkTokenInfo };
@@ -0,0 +1,5 @@
1
+ type NotificationsResponse = {
2
+ message: string;
3
+ };
4
+
5
+ export { NotificationsResponse };
@@ -7,7 +7,7 @@ type OperationStatusResponse = {
7
7
  operationType: OperationType;
8
8
  operationStatus: OperationStatus;
9
9
  message?: string;
10
- metadata: TransactionExportMetadata;
10
+ metadata?: TransactionExportMetadata;
11
11
  createdAtTimestamp: number;
12
12
  updatedAtTimestamp: number;
13
13
  };
@@ -1,4 +1,5 @@
1
1
  import { AssetAmount } from './AssetAmount.js';
2
+ import { BlockchainInfo } from './BlockchainInfo.js';
2
3
  import { BlsCredentials } from './BlsCredentials.js';
3
4
  import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
4
5
  import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
@@ -16,9 +17,18 @@ type PChainTransaction = {
16
17
  * The block finality timestamp.
17
18
  */
18
19
  blockTimestamp: number;
20
+ /**
21
+ * The height of the block in which the transaction was included
22
+ */
19
23
  blockNumber: string;
20
24
  blockHash: string;
25
+ /**
26
+ * The consumed UTXOs of the transaction
27
+ */
21
28
  consumedUtxos: Array<PChainUtxo>;
29
+ /**
30
+ * The newly created UTXOs of the transaction
31
+ */
22
32
  emittedUtxos: Array<PChainUtxo>;
23
33
  /**
24
34
  * Source chain for an atomic transaction.
@@ -29,11 +39,11 @@ type PChainTransaction = {
29
39
  */
30
40
  destinationChain?: string;
31
41
  /**
32
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
42
+ * 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
33
43
  */
34
44
  value: Array<AssetAmount>;
35
45
  /**
36
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
46
+ * 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
37
47
  */
38
48
  amountBurned: Array<AssetAmount>;
39
49
  /**
@@ -41,7 +51,7 @@ type PChainTransaction = {
41
51
  */
42
52
  amountStaked: Array<AssetAmount>;
43
53
  /**
44
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
54
+ * 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.
45
55
  */
46
56
  amountL1ValidatorBalanceBurned: Array<AssetAmount>;
47
57
  /**
@@ -53,11 +63,11 @@ type PChainTransaction = {
53
63
  */
54
64
  endTimestamp?: number;
55
65
  /**
56
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
66
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
57
67
  */
58
68
  delegationFeePercent?: string;
59
69
  /**
60
- * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
70
+ * The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
61
71
  */
62
72
  nodeId?: string;
63
73
  /**
@@ -73,14 +83,17 @@ type PChainTransaction = {
73
83
  */
74
84
  l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
75
85
  /**
76
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
86
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
77
87
  */
78
88
  estimatedReward?: string;
89
+ /**
90
+ * Reward transaction hash for the completed validations or delegations
91
+ */
79
92
  rewardTxHash?: string;
80
93
  rewardAddresses?: Array<string>;
81
94
  memo?: string;
82
95
  /**
83
- * Present for RewardValidatorTx
96
+ * Staking transaction corresponding to the RewardValidatorTx
84
97
  */
85
98
  stakingTxHash?: string;
86
99
  /**
@@ -88,9 +101,13 @@ type PChainTransaction = {
88
101
  */
89
102
  subnetOwnershipInfo?: SubnetOwnershipInfo;
90
103
  /**
91
- * Present for AddPermissionlessValidatorTx
104
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
92
105
  */
93
106
  blsCredentials?: BlsCredentials;
107
+ /**
108
+ * Details of the blockchain that was created in the CreateChainTx
109
+ */
110
+ blockchainInfo?: BlockchainInfo;
94
111
  };
95
112
 
96
113
  export { PChainTransaction };
@@ -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;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The type of key to monitor for the address activity event type.
3
+ */
4
+ declare enum PlatformAddressActivityKeyType {
5
+ ADDRESSES = "addresses"
6
+ }
7
+
8
+ export { PlatformAddressActivityKeyType };
@@ -0,0 +1 @@
1
+ var e=(e=>(e.ADDRESSES="addresses",e))(e||{});export{e as PlatformAddressActivityKeyType};
@@ -0,0 +1,5 @@
1
+ declare enum PrimaryNetworkAddressActivityEventType {
2
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
3
+ }
4
+
5
+ export { PrimaryNetworkAddressActivityEventType };
@@ -0,0 +1 @@
1
+ var r=(r=>(r.PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity",r))(r||{});export{r as PrimaryNetworkAddressActivityEventType};
@@ -0,0 +1,25 @@
1
+ import { PlatformAddressActivityKeyType } from './PlatformAddressActivityKeyType.js';
2
+ import { PrimaryNetworkAddressActivitySubEvents } from './PrimaryNetworkAddressActivitySubEvents.js';
3
+ import { PrimaryNetworkBalanceThresholdFilter } from './PrimaryNetworkBalanceThresholdFilter.js';
4
+
5
+ type PrimaryNetworkAddressActivityMetadata = {
6
+ /**
7
+ * Array of hexadecimal strings of the event signatures.
8
+ */
9
+ eventSignatures?: Array<string>;
10
+ keyType: PlatformAddressActivityKeyType;
11
+ /**
12
+ * Array of keys like addresses corresponding to the keyType being monitored. For PrimaryNetworkAddressActivity event, an array of multiple addresses can be provided. The maximum number of 'addresses' you can track depends on the Data API plan you are subscribed to.
13
+ */
14
+ keys: Array<string>;
15
+ /**
16
+ * Sub-events to monitor
17
+ */
18
+ subEvents: PrimaryNetworkAddressActivitySubEvents;
19
+ /**
20
+ * Balance threshold filter
21
+ */
22
+ balanceThresholdFilter?: PrimaryNetworkBalanceThresholdFilter;
23
+ };
24
+
25
+ export { PrimaryNetworkAddressActivityMetadata };
@@ -0,0 +1,22 @@
1
+ import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
2
+ import { PrimaryNetworkType } from './PrimaryNetworkType.js';
3
+
4
+ type PrimaryNetworkAddressActivityRequest = {
5
+ eventType: PrimaryNetworkAddressActivityRequest.eventType;
6
+ url: string;
7
+ name?: string;
8
+ description?: string;
9
+ network: PrimaryNetworkType;
10
+ chainId: string;
11
+ /**
12
+ * Metadata for platform address activity event
13
+ */
14
+ metadata: PrimaryNetworkAddressActivityMetadata;
15
+ };
16
+ declare namespace PrimaryNetworkAddressActivityRequest {
17
+ enum eventType {
18
+ PRIMARY_NETWORK_ADDRESS_ACTIVITY = "primary_network_address_activity"
19
+ }
20
+ }
21
+
22
+ export { PrimaryNetworkAddressActivityRequest };
@@ -0,0 +1 @@
1
+ var e,r;((r=e||(e={})).eventType||(r.eventType={})).PRIMARY_NETWORK_ADDRESS_ACTIVITY="primary_network_address_activity";export{e as PrimaryNetworkAddressActivityRequest};
@@ -0,0 +1,17 @@
1
+ import { PrimaryNetworkAddressActivityEventType } from './PrimaryNetworkAddressActivityEventType.js';
2
+ import { PrimaryNetworkAddressActivityMetadata } from './PrimaryNetworkAddressActivityMetadata.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type PrimaryNetworkAddressActivityResponse = {
6
+ id: string;
7
+ url: string;
8
+ chainId: string;
9
+ status: WebhookStatusType;
10
+ createdAt: number;
11
+ name: string;
12
+ description: string;
13
+ eventType: PrimaryNetworkAddressActivityEventType;
14
+ metadata: PrimaryNetworkAddressActivityMetadata;
15
+ };
16
+
17
+ export { PrimaryNetworkAddressActivityResponse };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Array of address activity sub-event types
3
+ */
4
+ declare enum PrimaryNetworkAddressActivitySubEventType {
5
+ BALANCE_CHANGE = "balance_change",
6
+ BALANCE_THRESHOLD = "balance_threshold",
7
+ REWARD_DISTRIBUTION = "reward_distribution"
8
+ }
9
+
10
+ export { PrimaryNetworkAddressActivitySubEventType };