@avalabs/glacier-sdk 3.1.0-canary.ddda6be.0 → 3.1.0-canary.ea981ee.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 CHANGED
@@ -333,7 +333,7 @@ declare class DataApiUsageMetricsService {
333
333
  */
334
334
  startTimestamp?: number;
335
335
  /**
336
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
336
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
337
337
  */
338
338
  endTimestamp?: number;
339
339
  /**
@@ -381,7 +381,7 @@ declare class DataApiUsageMetricsService {
381
381
  */
382
382
  startTimestamp?: number;
383
383
  /**
384
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
384
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
385
385
  */
386
386
  endTimestamp?: number;
387
387
  /**
@@ -429,7 +429,7 @@ declare class DataApiUsageMetricsService {
429
429
  */
430
430
  startTimestamp?: number;
431
431
  /**
432
- * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. `endTimestamp` must be no earlier than 0:00 UTC of the day after `startTimestamp`.
432
+ * The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
433
433
  */
434
434
  endTimestamp?: number;
435
435
  /**
@@ -1120,6 +1120,11 @@ type ChainInfo = {
1120
1120
  enabledFeatures?: Array<'nftIndexing' | 'webhooks' | 'teleporter'>;
1121
1121
  };
1122
1122
 
1123
+ type ListAddressChainsResponse = {
1124
+ indexedChains?: Array<ChainInfo>;
1125
+ unindexedChains?: Array<string>;
1126
+ };
1127
+
1123
1128
  type ListChainsResponse = {
1124
1129
  chains: Array<ChainInfo>;
1125
1130
  };
@@ -1165,7 +1170,7 @@ declare class EvmChainsService {
1165
1170
  /**
1166
1171
  * Get chains for address
1167
1172
  * Gets the list of chains an address has interacted with.
1168
- * @returns ListChainsResponse Successful response
1173
+ * @returns ListAddressChainsResponse Successful response
1169
1174
  * @throws ApiError
1170
1175
  */
1171
1176
  getAddressChains({ address, }: {
@@ -1173,7 +1178,7 @@ declare class EvmChainsService {
1173
1178
  * A wallet address.
1174
1179
  */
1175
1180
  address: string;
1176
- }): CancelablePromise<ListChainsResponse>;
1181
+ }): CancelablePromise<ListAddressChainsResponse>;
1177
1182
  }
1178
1183
 
1179
1184
  type ImageAsset = {
@@ -3210,6 +3215,39 @@ declare class PrimaryNetworkService {
3210
3215
  */
3211
3216
  nodeIds?: string;
3212
3217
  }): CancelablePromise<ListDelegatorDetailsResponse>;
3218
+ /**
3219
+ * List subnet-only validators
3220
+ * 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 ListValidatorDetailsResponse Successful response
3222
+ * @throws ApiError
3223
+ */
3224
+ listSubnetOnlyValidators({ network, pageToken, pageSize, sovValidationId, includeInactiveSovs, nodeId, subnetId, }: {
3225
+ /**
3226
+ * Either mainnet or testnet/fuji.
3227
+ */
3228
+ network: Network;
3229
+ /**
3230
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
3231
+ */
3232
+ pageToken?: string;
3233
+ /**
3234
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
3235
+ */
3236
+ pageSize?: number;
3237
+ /**
3238
+ * The Subnet-only-Validator validation ID to filter by. If not provided, then all Subnet-only-Validators will be returned.
3239
+ */
3240
+ sovValidationId?: any;
3241
+ includeInactiveSovs?: boolean;
3242
+ /**
3243
+ * A valid node ID in format 'NodeID-HASH'.
3244
+ */
3245
+ nodeId?: string;
3246
+ /**
3247
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
3248
+ */
3249
+ subnetId?: any;
3250
+ }): CancelablePromise<ListValidatorDetailsResponse>;
3213
3251
  }
3214
3252
 
3215
3253
  declare enum BlockchainId {
@@ -3456,6 +3494,8 @@ type GetPrimaryNetworkBlockResponse = {
3456
3494
  txCount: number;
3457
3495
  transactions: Array<string>;
3458
3496
  blockSizeBytes: number;
3497
+ subnetOnlyValidatorsAccruedFees?: number;
3498
+ activeSubnetOnlyValidators?: number;
3459
3499
  currentSupply?: string;
3460
3500
  proposerDetails?: ProposerDetails;
3461
3501
  };
@@ -3469,6 +3509,8 @@ type PrimaryNetworkBlock = {
3469
3509
  txCount: number;
3470
3510
  transactions: Array<string>;
3471
3511
  blockSizeBytes: number;
3512
+ subnetOnlyValidatorsAccruedFees?: number;
3513
+ activeSubnetOnlyValidators?: number;
3472
3514
  currentSupply?: string;
3473
3515
  proposerDetails?: ProposerDetails;
3474
3516
  };
@@ -3973,6 +4015,11 @@ declare enum PChainTransactionType {
3973
4015
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3974
4016
  BASE_TX = "BaseTx",
3975
4017
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4018
+ CONVERT_SUBNET_TX = "ConvertSubnetTx",
4019
+ REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4020
+ SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4021
+ DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4022
+ INCREASE_BALANCE_TX = "IncreaseBalanceTx",
3976
4023
  UNKNOWN = "UNKNOWN"
3977
4024
  }
3978
4025
 
@@ -4027,6 +4074,11 @@ type PChainUtxo = {
4027
4074
  utxoType: UtxoType;
4028
4075
  };
4029
4076
 
4077
+ type SubnetValidatorManagerDetails = {
4078
+ blockchainId: string;
4079
+ evmContractAddress: string;
4080
+ };
4081
+
4030
4082
  type PChainTransaction = {
4031
4083
  /**
4032
4084
  * A P-Chain transaction hash.
@@ -4061,6 +4113,10 @@ type PChainTransaction = {
4061
4113
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4062
4114
  */
4063
4115
  amountStaked: Array<AssetAmount>;
4116
+ /**
4117
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4118
+ */
4119
+ amountSovBalanceBurned: Array<AssetAmount>;
4064
4120
  /**
4065
4121
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4066
4122
  */
@@ -4081,6 +4137,14 @@ type PChainTransaction = {
4081
4137
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4082
4138
  */
4083
4139
  subnetId?: string;
4140
+ /**
4141
+ * Present for ConvertSubnetTx
4142
+ */
4143
+ subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
4144
+ /**
4145
+ * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
4146
+ */
4147
+ subnetOnlyValidatorDetails?: Array<string>;
4084
4148
  /**
4085
4149
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4086
4150
  */
@@ -4282,6 +4346,11 @@ declare enum PrimaryNetworkTxType {
4282
4346
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4283
4347
  BASE_TX = "BaseTx",
4284
4348
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4349
+ CONVERT_SUBNET_TX = "ConvertSubnetTx",
4350
+ REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4351
+ SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4352
+ DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4353
+ INCREASE_BALANCE_TX = "IncreaseBalanceTx",
4285
4354
  UNKNOWN = "UNKNOWN",
4286
4355
  CREATE_ASSET_TX = "CreateAssetTx",
4287
4356
  OPERATION_TX = "OperationTx"
@@ -4608,49 +4677,6 @@ declare class PrimaryNetworkVerticesService {
4608
4677
  }): CancelablePromise<ListXChainVerticesResponse>;
4609
4678
  }
4610
4679
 
4611
- type RpcErrorDto = {
4612
- code: number;
4613
- message: string;
4614
- data?: Record<string, any>;
4615
- };
4616
-
4617
- type RpcErrorResponseDto = {
4618
- jsonrpc: string;
4619
- id?: (string | number);
4620
- error: RpcErrorDto;
4621
- };
4622
-
4623
- type RpcRequestBodyDto = {
4624
- method: string;
4625
- params?: Record<string, any>;
4626
- id?: (string | number);
4627
- jsonrpc?: string;
4628
- };
4629
-
4630
- type RpcSuccessResponseDto = {
4631
- jsonrpc: string;
4632
- id?: (string | number);
4633
- result: Record<string, any>;
4634
- };
4635
-
4636
- declare class RpcService {
4637
- readonly httpRequest: BaseHttpRequest;
4638
- constructor(httpRequest: BaseHttpRequest);
4639
- /**
4640
- * Calls JSON-RPC method
4641
- * Calls JSON-RPC method.
4642
- * @returns any Successful response
4643
- * @throws ApiError
4644
- */
4645
- rpc({ chainId, requestBody, }: {
4646
- /**
4647
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4648
- */
4649
- chainId: string;
4650
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4651
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4652
- }
4653
-
4654
4680
  type SignatureAggregationResponse = {
4655
4681
  signedMessage: string;
4656
4682
  };
@@ -5146,7 +5172,6 @@ declare class Glacier {
5146
5172
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5147
5173
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5148
5174
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5149
- readonly rpc: RpcService;
5150
5175
  readonly signatureAggregator: SignatureAggregatorService;
5151
5176
  readonly teleporter: TeleporterService;
5152
5177
  readonly webhooks: WebhooksService;
@@ -5302,4 +5327,4 @@ type Unauthorized = {
5302
5327
  error: string;
5303
5328
  };
5304
5329
 
5305
- 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, 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, RpcErrorDto, RpcErrorResponseDto, RpcMetrics, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, RpcUsageMetricsResponseDTO, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, 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 };
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, SubnetValidatorManagerDetails, 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 };