@avalabs/glacier-sdk 3.1.0-canary.d896622.0 → 3.1.0-canary.dab255e.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 +90 -11
- package/dist/index.js +1 -1
- package/esm/generated/models/BalanceOwner.d.ts +6 -0
- package/esm/generated/models/L1ValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/models/ListSubnetOnlyValidatorsResponse.d.ts +14 -0
- package/esm/generated/models/PChainTransaction.d.ts +6 -5
- package/esm/generated/models/SoVDetailsTransaction.d.ts +23 -0
- package/esm/generated/models/SovDetailsFull.d.ts +33 -0
- package/esm/generated/models/Subnet.d.ts +9 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +3 -2
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +4 -1
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -1
- package/esm/index.d.ts +5 -1
- package/package.json +2 -2
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -2707,10 +2707,61 @@ type ListDelegatorDetailsResponse = {
|
|
|
2707
2707
|
delegators: Array<(CompletedDelegatorDetails | ActiveDelegatorDetails | PendingDelegatorDetails)>;
|
|
2708
2708
|
};
|
|
2709
2709
|
|
|
2710
|
+
type BalanceOwner = {
|
|
2711
|
+
addresses: Array<string>;
|
|
2712
|
+
threshold: number;
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
type SovDetailsFull = {
|
|
2716
|
+
/**
|
|
2717
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
2718
|
+
*/
|
|
2719
|
+
validationId: string;
|
|
2720
|
+
nodeId: string;
|
|
2721
|
+
subnetId: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
2724
|
+
*/
|
|
2725
|
+
weight: number;
|
|
2726
|
+
/**
|
|
2727
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
2728
|
+
*/
|
|
2729
|
+
remainingBalance: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* The timestamp of the transaction which created this SoV
|
|
2732
|
+
*/
|
|
2733
|
+
creationTimestamp: number;
|
|
2734
|
+
blsCredentials: Record<string, any>;
|
|
2735
|
+
/**
|
|
2736
|
+
* The SoV owner's balance, returned after it's disabled or removed
|
|
2737
|
+
*/
|
|
2738
|
+
remainingBalanceOwner: BalanceOwner;
|
|
2739
|
+
/**
|
|
2740
|
+
* Owner ddresses details which can disable or remove the SoV
|
|
2741
|
+
*/
|
|
2742
|
+
deactivationOwner: BalanceOwner;
|
|
2743
|
+
};
|
|
2744
|
+
|
|
2745
|
+
type ListSubnetOnlyValidatorsResponse = {
|
|
2746
|
+
/**
|
|
2747
|
+
* 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.
|
|
2748
|
+
*/
|
|
2749
|
+
nextPageToken?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* The list of L1 validations for the given Subnet ID, NodeId or validationId
|
|
2752
|
+
*/
|
|
2753
|
+
validators: Array<SovDetailsFull>;
|
|
2754
|
+
};
|
|
2755
|
+
|
|
2710
2756
|
type BlockchainInfo = {
|
|
2711
2757
|
blockchainId: string;
|
|
2712
2758
|
};
|
|
2713
2759
|
|
|
2760
|
+
type L1ValidatorManagerDetails = {
|
|
2761
|
+
blockchainId: string;
|
|
2762
|
+
contractAddress: string;
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2714
2765
|
type SubnetOwnershipInfo = {
|
|
2715
2766
|
/**
|
|
2716
2767
|
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
@@ -2749,6 +2800,14 @@ type Subnet = {
|
|
|
2749
2800
|
* Latest subnet owner details for this Subnet.
|
|
2750
2801
|
*/
|
|
2751
2802
|
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2803
|
+
/**
|
|
2804
|
+
* Whether the subnet is an L1 or not.
|
|
2805
|
+
*/
|
|
2806
|
+
isL1: boolean;
|
|
2807
|
+
/**
|
|
2808
|
+
* L1 validator manager details.
|
|
2809
|
+
*/
|
|
2810
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
2752
2811
|
blockchains: Array<BlockchainInfo>;
|
|
2753
2812
|
};
|
|
2754
2813
|
|
|
@@ -3218,7 +3277,7 @@ declare class PrimaryNetworkService {
|
|
|
3218
3277
|
/**
|
|
3219
3278
|
* List subnet-only validators
|
|
3220
3279
|
* Lists details for subnet only validators. By default, returns details for all active subnet only validators. Filterable by validator node ids, subnet id, and validation id.
|
|
3221
|
-
* @returns
|
|
3280
|
+
* @returns ListSubnetOnlyValidatorsResponse Successful response
|
|
3222
3281
|
* @throws ApiError
|
|
3223
3282
|
*/
|
|
3224
3283
|
listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
|
|
@@ -3247,7 +3306,7 @@ declare class PrimaryNetworkService {
|
|
|
3247
3306
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
3248
3307
|
*/
|
|
3249
3308
|
subnetId?: any;
|
|
3250
|
-
}): CancelablePromise<
|
|
3309
|
+
}): CancelablePromise<ListSubnetOnlyValidatorsResponse>;
|
|
3251
3310
|
}
|
|
3252
3311
|
|
|
3253
3312
|
declare enum BlockchainId {
|
|
@@ -4074,9 +4133,26 @@ type PChainUtxo = {
|
|
|
4074
4133
|
utxoType: UtxoType;
|
|
4075
4134
|
};
|
|
4076
4135
|
|
|
4077
|
-
type
|
|
4078
|
-
|
|
4079
|
-
|
|
4136
|
+
type SoVDetailsTransaction = {
|
|
4137
|
+
/**
|
|
4138
|
+
* Unique SoV ID used network-wide to identify subnet-only validation until its weight is reduced to 0 i.e. removed.
|
|
4139
|
+
*/
|
|
4140
|
+
validationId: string;
|
|
4141
|
+
nodeId: string;
|
|
4142
|
+
subnetId: string;
|
|
4143
|
+
/**
|
|
4144
|
+
* Weight of the SoV used while sampling validators within the L1. A zero-weight SoV means it has been removed from the L1, and the validationID is no longer valid
|
|
4145
|
+
*/
|
|
4146
|
+
weight: number;
|
|
4147
|
+
/**
|
|
4148
|
+
* Remaining SoV balance in nAVAX until inactive. It can rejoin subnet sampling by increasing balance with IncreaseBalanceTx
|
|
4149
|
+
*/
|
|
4150
|
+
remainingBalance: number;
|
|
4151
|
+
/**
|
|
4152
|
+
* The increase in SoV balance in the current transaction. When the balance is returned after the SoV is disabled or removed, this value is negative
|
|
4153
|
+
*/
|
|
4154
|
+
balanceChange?: number;
|
|
4155
|
+
blsCredentials?: Record<string, any>;
|
|
4080
4156
|
};
|
|
4081
4157
|
|
|
4082
4158
|
type PChainTransaction = {
|
|
@@ -4138,13 +4214,13 @@ type PChainTransaction = {
|
|
|
4138
4214
|
*/
|
|
4139
4215
|
subnetId?: string;
|
|
4140
4216
|
/**
|
|
4141
|
-
* Present for ConvertSubnetTx
|
|
4217
|
+
* Details of the L1's validator manager contract and blockchain. Present for the ConvertSubnetTx which transforms a subnet into L1
|
|
4142
4218
|
*/
|
|
4143
|
-
|
|
4219
|
+
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
4144
4220
|
/**
|
|
4145
|
-
*
|
|
4221
|
+
* Details of Subnet-only-Validators registered or changed in the current transaction. The details reflect the state at the time of the transaction, not in real-time
|
|
4146
4222
|
*/
|
|
4147
|
-
|
|
4223
|
+
l1ValidatorDetails?: Array<SoVDetailsTransaction>;
|
|
4148
4224
|
/**
|
|
4149
4225
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4150
4226
|
*/
|
|
@@ -4385,11 +4461,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4385
4461
|
*
|
|
4386
4462
|
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
4387
4463
|
*
|
|
4464
|
+
* For P-Chain, you can fetch all the Subnet-only-Validator (SoV) related transactions like ConvertSubnetTx, IncreaseBalanceTx etc. using the unique SoV validation ID. These transactions are further filterable by txTypes and timestamps as well.
|
|
4465
|
+
*
|
|
4388
4466
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
4389
4467
|
* @returns any Successful response
|
|
4390
4468
|
* @throws ApiError
|
|
4391
4469
|
*/
|
|
4392
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4470
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, sovValidationId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
4393
4471
|
/**
|
|
4394
4472
|
* A primary network blockchain id or alias.
|
|
4395
4473
|
*/
|
|
@@ -4402,6 +4480,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4402
4480
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Also accepts EVM formatted addresses starting with "0x" for C-Chain-related atomic transaction lookups.
|
|
4403
4481
|
*/
|
|
4404
4482
|
addresses?: string;
|
|
4483
|
+
sovValidationId?: string;
|
|
4405
4484
|
/**
|
|
4406
4485
|
* Query param for filtering items based on transaction types.
|
|
4407
4486
|
*/
|
|
@@ -5327,4 +5406,4 @@ type Unauthorized = {
|
|
|
5327
5406
|
error: string;
|
|
5328
5407
|
};
|
|
5329
5408
|
|
|
5330
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo,
|
|
5409
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetOnlyValidatorsResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SoVDetailsTransaction, SortByOption, SortOrder, SovDetailsFull, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|