@avalabs/glacier-sdk 3.1.0-canary.1b3648d.0 → 3.1.0-canary.39b63c9.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 = {
@@ -3973,6 +3978,11 @@ declare enum PChainTransactionType {
3973
3978
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3974
3979
  BASE_TX = "BaseTx",
3975
3980
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
3981
+ CONVERT_SUBNET_TX = "ConvertSubnetTx",
3982
+ REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
3983
+ SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
3984
+ DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
3985
+ INCREASE_BALANCE_TX = "IncreaseBalanceTx",
3976
3986
  UNKNOWN = "UNKNOWN"
3977
3987
  }
3978
3988
 
@@ -4027,6 +4037,11 @@ type PChainUtxo = {
4027
4037
  utxoType: UtxoType;
4028
4038
  };
4029
4039
 
4040
+ type SubnetValidatorManagerDetails = {
4041
+ blockchainId: string;
4042
+ evmContractAddress: string;
4043
+ };
4044
+
4030
4045
  type PChainTransaction = {
4031
4046
  /**
4032
4047
  * A P-Chain transaction hash.
@@ -4061,6 +4076,10 @@ type PChainTransaction = {
4061
4076
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4062
4077
  */
4063
4078
  amountStaked: Array<AssetAmount>;
4079
+ /**
4080
+ * A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
4081
+ */
4082
+ amountSovBalanceBurned: Array<AssetAmount>;
4064
4083
  /**
4065
4084
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4066
4085
  */
@@ -4081,6 +4100,14 @@ type PChainTransaction = {
4081
4100
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4082
4101
  */
4083
4102
  subnetId?: string;
4103
+ /**
4104
+ * Present for ConvertSubnetTx
4105
+ */
4106
+ subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
4107
+ /**
4108
+ * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
4109
+ */
4110
+ subnetOnlyValidatorDetails?: Array<string>;
4084
4111
  /**
4085
4112
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4086
4113
  */
@@ -4282,6 +4309,11 @@ declare enum PrimaryNetworkTxType {
4282
4309
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4283
4310
  BASE_TX = "BaseTx",
4284
4311
  TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
4312
+ CONVERT_SUBNET_TX = "ConvertSubnetTx",
4313
+ REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
4314
+ SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
4315
+ DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
4316
+ INCREASE_BALANCE_TX = "IncreaseBalanceTx",
4285
4317
  UNKNOWN = "UNKNOWN",
4286
4318
  CREATE_ASSET_TX = "CreateAssetTx",
4287
4319
  OPERATION_TX = "OperationTx"
@@ -4608,49 +4640,6 @@ declare class PrimaryNetworkVerticesService {
4608
4640
  }): CancelablePromise<ListXChainVerticesResponse>;
4609
4641
  }
4610
4642
 
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
4643
  type SignatureAggregationResponse = {
4655
4644
  signedMessage: string;
4656
4645
  };
@@ -5146,7 +5135,6 @@ declare class Glacier {
5146
5135
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5147
5136
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5148
5137
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5149
- readonly rpc: RpcService;
5150
5138
  readonly signatureAggregator: SignatureAggregatorService;
5151
5139
  readonly teleporter: TeleporterService;
5152
5140
  readonly webhooks: WebhooksService;
@@ -5302,4 +5290,4 @@ type Unauthorized = {
5302
5290
  error: string;
5303
5291
  };
5304
5292
 
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 };
5293
+ 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 };