@avalabs/glacier-sdk 3.1.0-canary.b86a6f6.0 → 3.1.0-canary.bac8d3c.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.
- package/dist/index.d.ts +1619 -372
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/EVMAddressActivityRequest.d.ts +27 -0
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/Erc20TokenBalance.d.ts +11 -0
- package/esm/generated/models/Erc20TokenBalance.js +1 -1
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/EvmBlock.d.ts +4 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +4 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +4 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +2 -2
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/InternalTransaction.d.ts +15 -16
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +37 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +27 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts} +4 -4
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/NativeTransaction.d.ts +4 -0
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +25 -13
- package/esm/generated/models/PChainTransactionType.d.ts +5 -5
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +10 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.d.ts +7 -0
- package/esm/generated/models/RpcUsageMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +8 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/SignatureAggregatorRequest.d.ts +1 -7
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +6 -2
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/SubnetRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +3 -0
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +119 -20
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +69 -4
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +34 -1
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +18 -2
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -1
- package/esm/generated/services/PrimaryNetworkService.d.ts +26 -9
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +3 -3
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +22 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +26 -24
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +46 -7
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
- package/esm/generated/models/CreateWebhookRequest.d.ts +0 -21
- package/esm/generated/models/SoVDetailsTransaction.d.ts +0 -23
- package/esm/generated/models/SovDetailsFull.d.ts +0 -33
|
@@ -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 };
|
|
@@ -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 };
|
package/esm/generated/models/{ListSubnetOnlyValidatorsResponse.d.ts → ListL1ValidatorsResponse.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L1ValidatorDetailsFull } from './L1ValidatorDetailsFull.js';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type ListL1ValidatorsResponse = {
|
|
4
4
|
/**
|
|
5
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
6
|
*/
|
|
@@ -8,7 +8,7 @@ type ListSubnetOnlyValidatorsResponse = {
|
|
|
8
8
|
/**
|
|
9
9
|
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
10
10
|
*/
|
|
11
|
-
validators: Array<
|
|
11
|
+
validators: Array<L1ValidatorDetailsFull>;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export {
|
|
14
|
+
export { ListL1ValidatorsResponse };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
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 +1 @@
|
|
|
1
|
-
var
|
|
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 };
|
|
@@ -7,7 +7,7 @@ type OperationStatusResponse = {
|
|
|
7
7
|
operationType: OperationType;
|
|
8
8
|
operationStatus: OperationStatus;
|
|
9
9
|
message?: string;
|
|
10
|
-
metadata
|
|
10
|
+
metadata?: TransactionExportMetadata;
|
|
11
11
|
createdAtTimestamp: number;
|
|
12
12
|
updatedAtTimestamp: number;
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AssetAmount } from './AssetAmount.js';
|
|
2
2
|
import { BlsCredentials } from './BlsCredentials.js';
|
|
3
|
+
import { L1ValidatorDetailsTransaction } from './L1ValidatorDetailsTransaction.js';
|
|
3
4
|
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
4
5
|
import { PChainTransactionType } from './PChainTransactionType.js';
|
|
5
6
|
import { PChainUtxo } from './PChainUtxo.js';
|
|
6
|
-
import { SoVDetailsTransaction } from './SoVDetailsTransaction.js';
|
|
7
7
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
8
8
|
|
|
9
9
|
type PChainTransaction = {
|
|
@@ -16,9 +16,18 @@ type PChainTransaction = {
|
|
|
16
16
|
* The block finality timestamp.
|
|
17
17
|
*/
|
|
18
18
|
blockTimestamp: number;
|
|
19
|
+
/**
|
|
20
|
+
* The height of the block in which the transaction was included
|
|
21
|
+
*/
|
|
19
22
|
blockNumber: string;
|
|
20
23
|
blockHash: string;
|
|
24
|
+
/**
|
|
25
|
+
* The consumed UTXOs of the transaction
|
|
26
|
+
*/
|
|
21
27
|
consumedUtxos: Array<PChainUtxo>;
|
|
28
|
+
/**
|
|
29
|
+
* The newly created UTXOs of the transaction
|
|
30
|
+
*/
|
|
22
31
|
emittedUtxos: Array<PChainUtxo>;
|
|
23
32
|
/**
|
|
24
33
|
* Source chain for an atomic transaction.
|
|
@@ -29,11 +38,11 @@ type PChainTransaction = {
|
|
|
29
38
|
*/
|
|
30
39
|
destinationChain?: string;
|
|
31
40
|
/**
|
|
32
|
-
* 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
|
|
33
42
|
*/
|
|
34
43
|
value: Array<AssetAmount>;
|
|
35
44
|
/**
|
|
36
|
-
* 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
|
|
37
46
|
*/
|
|
38
47
|
amountBurned: Array<AssetAmount>;
|
|
39
48
|
/**
|
|
@@ -41,9 +50,9 @@ type PChainTransaction = {
|
|
|
41
50
|
*/
|
|
42
51
|
amountStaked: Array<AssetAmount>;
|
|
43
52
|
/**
|
|
44
|
-
* 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.
|
|
45
54
|
*/
|
|
46
|
-
|
|
55
|
+
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
47
56
|
/**
|
|
48
57
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
49
58
|
*/
|
|
@@ -53,11 +62,11 @@ type PChainTransaction = {
|
|
|
53
62
|
*/
|
|
54
63
|
endTimestamp?: number;
|
|
55
64
|
/**
|
|
56
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
65
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
57
66
|
*/
|
|
58
67
|
delegationFeePercent?: string;
|
|
59
68
|
/**
|
|
60
|
-
* 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
|
|
61
70
|
*/
|
|
62
71
|
nodeId?: string;
|
|
63
72
|
/**
|
|
@@ -65,22 +74,25 @@ type PChainTransaction = {
|
|
|
65
74
|
*/
|
|
66
75
|
subnetId?: string;
|
|
67
76
|
/**
|
|
68
|
-
* Details of the L1's validator manager contract and blockchain. Present for the
|
|
77
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetToL1Tx which transforms a subnet into L1
|
|
69
78
|
*/
|
|
70
79
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
71
80
|
/**
|
|
72
|
-
* Details of
|
|
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
|
|
73
82
|
*/
|
|
74
|
-
l1ValidatorDetails?: Array<
|
|
83
|
+
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
75
84
|
/**
|
|
76
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
85
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
77
86
|
*/
|
|
78
87
|
estimatedReward?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Reward transaction hash for the completed validations or delegations
|
|
90
|
+
*/
|
|
79
91
|
rewardTxHash?: string;
|
|
80
92
|
rewardAddresses?: Array<string>;
|
|
81
93
|
memo?: string;
|
|
82
94
|
/**
|
|
83
|
-
*
|
|
95
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
84
96
|
*/
|
|
85
97
|
stakingTxHash?: string;
|
|
86
98
|
/**
|
|
@@ -88,7 +100,7 @@ type PChainTransaction = {
|
|
|
88
100
|
*/
|
|
89
101
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
90
102
|
/**
|
|
91
|
-
* Present for AddPermissionlessValidatorTx
|
|
103
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
92
104
|
*/
|
|
93
105
|
blsCredentials?: BlsCredentials;
|
|
94
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
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 @@
|
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
2
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
|
+
|
|
4
|
+
type PlatformActivityRequest = {
|
|
5
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6
|
+
url: string;
|
|
7
|
+
chainId: string;
|
|
8
|
+
network?: PrimaryNetworkType;
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
13
|
+
*/
|
|
14
|
+
includeInternalTxs?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to include logs in the webhook payload.
|
|
17
|
+
*/
|
|
18
|
+
includeLogs?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Metadata for platform activity
|
|
21
|
+
*/
|
|
22
|
+
metadata: PlatformActivityMetadata;
|
|
23
|
+
};
|
|
24
|
+
declare namespace PlatformActivityRequest {
|
|
25
|
+
enum eventType {
|
|
26
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
27
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { PlatformActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e,T;e=t||(t={}),(T=e.eventType||(e.eventType={})).PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",T.VALIDATOR_ACTIVITY="validator_activity";export{t as PlatformActivityRequest};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventType } from './EventType.js';
|
|
2
|
+
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type PlatformActivityResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
eventType: EventType;
|
|
8
|
+
url: string;
|
|
9
|
+
chainId: string;
|
|
10
|
+
status: WebhookStatusType;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
metadata: PlatformActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { PlatformActivityResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlatformAddressActivitySubEventType } from './PlatformAddressActivitySubEventType.js';
|
|
2
|
+
|
|
3
|
+
type PlatformActivitySubEvents = {
|
|
4
|
+
/**
|
|
5
|
+
* Array of validator activity sub-event types
|
|
6
|
+
*/
|
|
7
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
8
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PlatformActivitySubEvents };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of address activity sub-event types
|
|
3
|
+
*/
|
|
4
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
6
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
7
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { PlatformAddressActivitySubEventType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=(_=>(_.BALANCE_CHANGE_PLATFORM="balance_change_platform",_.BALANCE_THRESHOLD_PLATFORM="balance_threshold_platform",_.REWARD_DISTRIBUTION="reward_distribution",_))(_||{});export{_ as PlatformAddressActivitySubEventType};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommonBalanceType } from './CommonBalanceType.js';
|
|
2
|
+
|
|
3
|
+
type PlatformBalanceThresholdFilter = {
|
|
4
|
+
balanceType: CommonBalanceType;
|
|
5
|
+
/**
|
|
6
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
7
|
+
*/
|
|
8
|
+
balanceThreshold: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PlatformBalanceThresholdFilter };
|
|
@@ -9,8 +9,8 @@ type PrimaryNetworkBlock = {
|
|
|
9
9
|
txCount: number;
|
|
10
10
|
transactions: Array<string>;
|
|
11
11
|
blockSizeBytes: number;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
l1ValidatorsAccruedFees?: number;
|
|
13
|
+
activeL1Validators?: number;
|
|
14
14
|
currentSupply?: string;
|
|
15
15
|
proposerDetails?: ProposerDetails;
|
|
16
16
|
};
|
|
@@ -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};
|