@avalabs/glacier-sdk 3.1.0-canary.ad98ed7.0 → 3.1.0-canary.b074965.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 (149) hide show
  1. package/dist/index.cjs +1 -0
  2. package/dist/index.d.ts +1737 -341
  3. package/esm/generated/Glacier.d.ts +4 -0
  4. package/esm/generated/Glacier.js +1 -1
  5. package/esm/generated/models/AccessListData.d.ts +12 -0
  6. package/esm/generated/models/AccessRequest.d.ts +12 -0
  7. package/esm/generated/models/ActiveValidatorDetails.d.ts +26 -0
  8. package/esm/generated/models/BalanceOwner.d.ts +6 -0
  9. package/esm/generated/models/CommonBalanceType.d.ts +17 -0
  10. package/esm/generated/models/CommonBalanceType.js +1 -0
  11. package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
  12. package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
  13. package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
  14. package/esm/generated/models/DeliveredIcmMessage.js +1 -0
  15. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
  16. package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
  17. package/esm/generated/models/ERCToken.d.ts +24 -0
  18. package/esm/generated/models/ERCTransfer.d.ts +50 -0
  19. package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
  20. package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
  21. package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
  22. package/esm/generated/models/Erc1155Contract.d.ts +1 -1
  23. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  24. package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
  25. package/esm/generated/models/Erc20TokenBalance.js +1 -1
  26. package/esm/generated/models/Erc721Contract.d.ts +1 -1
  27. package/esm/generated/models/EventType.d.ts +3 -1
  28. package/esm/generated/models/EventType.js +1 -1
  29. package/esm/generated/models/EvmBlock.d.ts +4 -0
  30. package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
  31. package/esm/generated/models/Geolocation.d.ts +24 -0
  32. package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
  33. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -0
  34. package/esm/generated/models/GetTransactionResponse.d.ts +1 -1
  35. package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
  36. package/esm/generated/models/HealthCheckResultDto.js +1 -0
  37. package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
  38. package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
  39. package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
  40. package/esm/generated/models/IcmReceipt.d.ts +6 -0
  41. package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
  42. package/esm/generated/models/IcmRewardDetails.js +1 -0
  43. package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
  44. package/esm/generated/models/InternalTransaction.d.ts +15 -16
  45. package/esm/generated/models/InternalTransactionOpCall.d.ts +1 -0
  46. package/esm/generated/models/InternalTransactionOpCall.js +1 -1
  47. package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
  48. package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -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/ListWebhooksResponse.d.ts +3 -2
  57. package/esm/generated/models/Log.d.ts +40 -0
  58. package/esm/generated/models/NativeTransaction.d.ts +4 -0
  59. package/esm/generated/models/Network.d.ts +1 -2
  60. package/esm/generated/models/Network.js +1 -1
  61. package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
  62. package/esm/generated/models/NotificationsResponse.d.ts +5 -0
  63. package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
  64. package/esm/generated/models/PChainTransaction.d.ts +27 -14
  65. package/esm/generated/models/PChainTransactionType.d.ts +5 -5
  66. package/esm/generated/models/PChainTransactionType.js +1 -1
  67. package/esm/generated/models/PChainUtxo.d.ts +27 -0
  68. package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
  69. package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
  70. package/esm/generated/models/PendingIcmMessage.js +1 -0
  71. package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
  72. package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
  73. package/esm/generated/models/PlatformActivityKeyType.js +1 -0
  74. package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
  75. package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
  76. package/esm/generated/models/PlatformActivityRequest.js +1 -0
  77. package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
  78. package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
  79. package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
  80. package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
  81. package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
  82. package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -0
  83. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
  84. package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
  85. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
  86. package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
  87. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
  88. package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
  89. package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
  90. package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
  91. package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
  92. package/esm/generated/models/PrimaryNetworkType.js +1 -0
  93. package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
  94. package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
  95. package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
  96. package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
  97. package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
  98. package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
  99. package/esm/generated/models/StakingDistribution.d.ts +9 -0
  100. package/esm/generated/models/Subnet.d.ts +15 -2
  101. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
  102. package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
  103. package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
  104. package/esm/generated/models/SubscribeRequest.d.ts +16 -0
  105. package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
  106. package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
  107. package/esm/generated/models/Transaction.d.ts +121 -0
  108. package/esm/generated/models/TransactionDetails.d.ts +1 -1
  109. package/esm/generated/models/TransactionEvent.d.ts +15 -0
  110. package/esm/generated/models/UnknownContract.d.ts +1 -1
  111. package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
  112. package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
  113. package/esm/generated/models/UtxoType.d.ts +3 -0
  114. package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
  115. package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
  116. package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
  117. package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
  118. package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
  119. package/esm/generated/services/EvmBalancesService.d.ts +4 -4
  120. package/esm/generated/services/EvmBlocksService.d.ts +21 -0
  121. package/esm/generated/services/EvmBlocksService.js +1 -1
  122. package/esm/generated/services/EvmChainsService.d.ts +72 -6
  123. package/esm/generated/services/EvmChainsService.js +1 -1
  124. package/esm/generated/services/EvmTransactionsService.d.ts +35 -2
  125. package/esm/generated/services/EvmTransactionsService.js +1 -1
  126. package/esm/generated/services/HealthCheckService.d.ts +4 -7
  127. package/esm/generated/services/HealthCheckService.js +1 -1
  128. package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
  129. package/esm/generated/services/InterchainMessagingService.js +1 -0
  130. package/esm/generated/services/NotificationsService.d.ts +51 -0
  131. package/esm/generated/services/NotificationsService.js +1 -0
  132. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
  133. package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
  134. package/esm/generated/services/PrimaryNetworkService.d.ts +51 -0
  135. package/esm/generated/services/PrimaryNetworkService.js +1 -1
  136. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
  137. package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
  138. package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
  139. package/esm/generated/services/SignatureAggregatorService.js +1 -1
  140. package/esm/generated/services/TeleporterService.d.ts +12 -6
  141. package/esm/generated/services/WebhooksService.d.ts +26 -24
  142. package/esm/generated/services/WebhooksService.js +1 -1
  143. package/esm/index.d.ts +50 -5
  144. package/esm/index.js +1 -1
  145. package/package.json +13 -4
  146. package/dist/index.js +0 -1
  147. package/esm/generated/models/BlockchainInfo.d.ts +0 -5
  148. package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
  149. package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
@@ -1,33 +1,32 @@
1
- import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
2
- import { RichAddress } from './RichAddress.js';
3
-
4
1
  type InternalTransaction = {
5
2
  /**
6
- * The block number on the chain.
3
+ * Sender address
7
4
  */
8
- blockNumber: string;
5
+ from: string;
9
6
  /**
10
- * The block finality timestamp.
7
+ * Recipient address
11
8
  */
12
- blockTimestamp: number;
9
+ to: string;
13
10
  /**
14
- * The block hash identifier.
11
+ * Internal transaction type
15
12
  */
16
- blockHash: string;
13
+ internalTxType: string;
17
14
  /**
18
- * The transaction hash identifier.
15
+ * Value transferred
19
16
  */
20
- txHash: string;
21
- from: RichAddress;
22
- to: RichAddress;
23
- internalTxType: InternalTransactionOpCall;
24
17
  value: string;
25
18
  /**
26
- * True if the internal transaction was reverted.
19
+ * Gas used
27
20
  */
28
- isReverted: boolean;
29
21
  gasUsed: string;
22
+ /**
23
+ * Gas limit
24
+ */
30
25
  gasLimit: string;
26
+ /**
27
+ * Transaction hash
28
+ */
29
+ transactionHash: string;
31
30
  };
32
31
 
33
32
  export { InternalTransaction };
@@ -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};
@@ -0,0 +1,37 @@
1
+ import { BalanceOwner } from './BalanceOwner.js';
2
+
3
+ type L1ValidatorDetailsFull = {
4
+ /**
5
+ * Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
6
+ */
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;
12
+ nodeId: string;
13
+ subnetId: string;
14
+ /**
15
+ * 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
16
+ */
17
+ weight: number;
18
+ /**
19
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
20
+ */
21
+ remainingBalance: number;
22
+ /**
23
+ * The timestamp of the transaction which created this L1 validator
24
+ */
25
+ creationTimestamp: number;
26
+ blsCredentials: Record<string, any>;
27
+ /**
28
+ * The L1 validator owner's balance, returned after it's disabled or removed
29
+ */
30
+ remainingBalanceOwner: BalanceOwner;
31
+ /**
32
+ * Owner ddresses details which can disable or remove the L1 validator
33
+ */
34
+ deactivationOwner: BalanceOwner;
35
+ };
36
+
37
+ export { L1ValidatorDetailsFull };
@@ -0,0 +1,27 @@
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
+ /**
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;
10
+ nodeId: string;
11
+ subnetId: string;
12
+ /**
13
+ * 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
14
+ */
15
+ weight: number;
16
+ /**
17
+ * Remaining L1 validator balance in nAVAX until inactive. It can rejoin L1 sampling by increasing balance with IncreaseL1ValidatorBalanceTx
18
+ */
19
+ remainingBalance: number;
20
+ /**
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
22
+ */
23
+ balanceChange?: number;
24
+ blsCredentials?: Record<string, any>;
25
+ };
26
+
27
+ 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 };
@@ -1,11 +1,12 @@
1
- import { WebhookResponse } from './WebhookResponse.js';
1
+ import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
2
+ import { PlatformActivityResponse } from './PlatformActivityResponse.js';
2
3
 
3
4
  type ListWebhooksResponse = {
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;
8
- webhooks: Array<WebhookResponse>;
9
+ webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
9
10
  };
10
11
 
11
12
  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,9 +1,10 @@
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';
6
- import { SubnetValidatorManagerDetails } from './SubnetValidatorManagerDetails.js';
7
8
 
8
9
  type PChainTransaction = {
9
10
  /**
@@ -15,9 +16,18 @@ type PChainTransaction = {
15
16
  * The block finality timestamp.
16
17
  */
17
18
  blockTimestamp: number;
19
+ /**
20
+ * The height of the block in which the transaction was included
21
+ */
18
22
  blockNumber: string;
19
23
  blockHash: string;
24
+ /**
25
+ * The consumed UTXOs of the transaction
26
+ */
20
27
  consumedUtxos: Array<PChainUtxo>;
28
+ /**
29
+ * The newly created UTXOs of the transaction
30
+ */
21
31
  emittedUtxos: Array<PChainUtxo>;
22
32
  /**
23
33
  * Source chain for an atomic transaction.
@@ -28,11 +38,11 @@ type PChainTransaction = {
28
38
  */
29
39
  destinationChain?: string;
30
40
  /**
31
- * 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
32
42
  */
33
43
  value: Array<AssetAmount>;
34
44
  /**
35
- * 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
36
46
  */
37
47
  amountBurned: Array<AssetAmount>;
38
48
  /**
@@ -40,9 +50,9 @@ type PChainTransaction = {
40
50
  */
41
51
  amountStaked: Array<AssetAmount>;
42
52
  /**
43
- * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
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.
44
54
  */
45
- amountSovBalanceBurned: Array<AssetAmount>;
55
+ amountL1ValidatorBalanceBurned: Array<AssetAmount>;
46
56
  /**
47
57
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
48
58
  */
@@ -52,11 +62,11 @@ type PChainTransaction = {
52
62
  */
53
63
  endTimestamp?: number;
54
64
  /**
55
- * Present for AddValidatorTx, AddPermissionlessValidatorTx
65
+ * The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
56
66
  */
57
67
  delegationFeePercent?: string;
58
68
  /**
59
- * 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
60
70
  */
61
71
  nodeId?: string;
62
72
  /**
@@ -64,22 +74,25 @@ type PChainTransaction = {
64
74
  */
65
75
  subnetId?: string;
66
76
  /**
67
- * Present for ConvertSubnetTx
77
+ * Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
68
78
  */
69
- subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
79
+ l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
70
80
  /**
71
- * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
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
72
82
  */
73
- subnetOnlyValidatorDetails?: Array<string>;
83
+ l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
74
84
  /**
75
- * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
85
+ * Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
76
86
  */
77
87
  estimatedReward?: string;
88
+ /**
89
+ * Reward transaction hash for the completed validations or delegations
90
+ */
78
91
  rewardTxHash?: string;
79
92
  rewardAddresses?: Array<string>;
80
93
  memo?: string;
81
94
  /**
82
- * Present for RewardValidatorTx
95
+ * Staking transaction corresponding to the RewardValidatorTx
83
96
  */
84
97
  stakingTxHash?: string;
85
98
  /**
@@ -87,7 +100,7 @@ type PChainTransaction = {
87
100
  */
88
101
  subnetOwnershipInfo?: SubnetOwnershipInfo;
89
102
  /**
90
- * Present for AddPermissionlessValidatorTx
103
+ * Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
91
104
  */
92
105
  blsCredentials?: BlsCredentials;
93
106
  };
@@ -14,11 +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_TX = "ConvertSubnetTx",
18
- REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
19
- SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
20
- DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
21
- INCREASE_BALANCE_TX = "IncreaseBalanceTx",
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",
22
22
  UNKNOWN = "UNKNOWN"
23
23
  }
24
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.CONVERT_SUBNET_TX="ConvertSubnetTx",T.REGISTER_SUBNET_VALIDATOR_TX="RegisterSubnetValidatorTx",T.SET_SUBNET_VALIDATOR_WEIGHT_TX="SetSubnetValidatorWeightTx",T.DISABLE_SUBNET_VALIDATOR_TX="DisableSubnetValidatorTx",T.INCREASE_BALANCE_TX="IncreaseBalanceTx",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;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The type of key for platform activity depending on the event type
3
+ */
4
+ declare enum PlatformActivityKeyType {
5
+ ADDRESSES = "addresses",
6
+ NODE_ID = "nodeId",
7
+ SUBNET_ID = "subnetId"
8
+ }
9
+
10
+ export { PlatformActivityKeyType };
@@ -0,0 +1 @@
1
+ var d=(d=>(d.ADDRESSES="addresses",d.NODE_ID="nodeId",d.SUBNET_ID="subnetId",d))(d||{});export{d as PlatformActivityKeyType};
@@ -0,0 +1,37 @@
1
+ import { PlatformActivityKeyType } from './PlatformActivityKeyType.js';
2
+ import { PlatformActivitySubEvents } from './PlatformActivitySubEvents.js';
3
+ import { PlatformBalanceThresholdFilter } from './PlatformBalanceThresholdFilter.js';
4
+
5
+ type PlatformActivityMetadata = {
6
+ keyType: PlatformActivityKeyType;
7
+ /**
8
+ * Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
9
+ */
10
+ keys: Array<string>;
11
+ /**
12
+ * Sub-events to monitor
13
+ */
14
+ subEvents?: PlatformActivitySubEvents;
15
+ /**
16
+ * Array of hexadecimal strings of the event signatures.
17
+ */
18
+ eventSignatures?: Array<string>;
19
+ /**
20
+ * Array of node IDs to filter the events
21
+ */
22
+ nodeIds?: Array<string>;
23
+ /**
24
+ * Array of subnet IDs to filter the events
25
+ */
26
+ subnetIds?: Array<string>;
27
+ /**
28
+ * Balance threshold filter
29
+ */
30
+ balanceThresholdFilter?: PlatformBalanceThresholdFilter;
31
+ /**
32
+ * L1 validator fee balance threshold in nAVAX
33
+ */
34
+ l1ValidatorFeeBalanceThreshold?: string;
35
+ };
36
+
37
+ export { PlatformActivityMetadata };