@avalabs/glacier-sdk 3.1.0-canary.d324cd1.0 → 3.1.0-canary.d762cf9.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
  };
@@ -1162,6 +1167,18 @@ declare class EvmChainsService {
1162
1167
  */
1163
1168
  chainId: string;
1164
1169
  }): CancelablePromise<GetChainResponse>;
1170
+ /**
1171
+ * Get chains for address
1172
+ * Gets the list of chains an address has interacted with.
1173
+ * @returns ListAddressChainsResponse Successful response
1174
+ * @throws ApiError
1175
+ */
1176
+ getAddressChains({ address, }: {
1177
+ /**
1178
+ * A wallet address.
1179
+ */
1180
+ address: string;
1181
+ }): CancelablePromise<ListAddressChainsResponse>;
1165
1182
  }
1166
1183
 
1167
1184
  type ImageAsset = {
@@ -3244,12 +3261,6 @@ type CChainAtomicBalances = {
3244
3261
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3245
3262
  };
3246
3263
 
3247
- declare enum PrimaryNetwork {
3248
- MAINNET = "mainnet",
3249
- FUJI = "fuji",
3250
- DEVNET = "devnet"
3251
- }
3252
-
3253
3264
  declare enum PrimaryNetworkChainName {
3254
3265
  P_CHAIN = "p-chain",
3255
3266
  X_CHAIN = "x-chain",
@@ -3258,7 +3269,7 @@ declare enum PrimaryNetworkChainName {
3258
3269
 
3259
3270
  type PrimaryNetworkChainInfo = {
3260
3271
  chainName: PrimaryNetworkChainName;
3261
- network: PrimaryNetwork;
3272
+ network: Network;
3262
3273
  };
3263
3274
 
3264
3275
  type ListCChainAtomicBalancesResponse = {
@@ -3967,6 +3978,11 @@ declare enum PChainTransactionType {
3967
3978
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3968
3979
  BASE_TX = "BaseTx",
3969
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",
3970
3986
  UNKNOWN = "UNKNOWN"
3971
3987
  }
3972
3988
 
@@ -4021,6 +4037,11 @@ type PChainUtxo = {
4021
4037
  utxoType: UtxoType;
4022
4038
  };
4023
4039
 
4040
+ type SubnetValidatorManagerDetails = {
4041
+ blockchainId: string;
4042
+ evmContractAddress: string;
4043
+ };
4044
+
4024
4045
  type PChainTransaction = {
4025
4046
  /**
4026
4047
  * A P-Chain transaction hash.
@@ -4055,6 +4076,10 @@ type PChainTransaction = {
4055
4076
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4056
4077
  */
4057
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>;
4058
4083
  /**
4059
4084
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4060
4085
  */
@@ -4075,6 +4100,14 @@ type PChainTransaction = {
4075
4100
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4076
4101
  */
4077
4102
  subnetId?: string;
4103
+ /**
4104
+ * Present for ConvertSubnetTx
4105
+ */
4106
+ subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
4107
+ /**
4108
+ * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
4109
+ */
4110
+ subnetOnlyValidatorDetails?: Array<string>;
4078
4111
  /**
4079
4112
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4080
4113
  */
@@ -4276,6 +4309,11 @@ declare enum PrimaryNetworkTxType {
4276
4309
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4277
4310
  BASE_TX = "BaseTx",
4278
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",
4279
4317
  UNKNOWN = "UNKNOWN",
4280
4318
  CREATE_ASSET_TX = "CreateAssetTx",
4281
4319
  OPERATION_TX = "OperationTx"
@@ -4602,49 +4640,6 @@ declare class PrimaryNetworkVerticesService {
4602
4640
  }): CancelablePromise<ListXChainVerticesResponse>;
4603
4641
  }
4604
4642
 
4605
- type RpcErrorDto = {
4606
- code: number;
4607
- message: string;
4608
- data?: Record<string, any>;
4609
- };
4610
-
4611
- type RpcErrorResponseDto = {
4612
- jsonrpc: string;
4613
- id?: (string | number);
4614
- error: RpcErrorDto;
4615
- };
4616
-
4617
- type RpcRequestBodyDto = {
4618
- method: string;
4619
- params?: Record<string, any>;
4620
- id?: (string | number);
4621
- jsonrpc?: string;
4622
- };
4623
-
4624
- type RpcSuccessResponseDto = {
4625
- jsonrpc: string;
4626
- id?: (string | number);
4627
- result: Record<string, any>;
4628
- };
4629
-
4630
- declare class RpcService {
4631
- readonly httpRequest: BaseHttpRequest;
4632
- constructor(httpRequest: BaseHttpRequest);
4633
- /**
4634
- * Calls JSON-RPC method
4635
- * Calls JSON-RPC method.
4636
- * @returns any Successful response
4637
- * @throws ApiError
4638
- */
4639
- rpc({ chainId, requestBody, }: {
4640
- /**
4641
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4642
- */
4643
- chainId: string;
4644
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4645
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4646
- }
4647
-
4648
4643
  type SignatureAggregationResponse = {
4649
4644
  signedMessage: string;
4650
4645
  };
@@ -5140,7 +5135,6 @@ declare class Glacier {
5140
5135
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5141
5136
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5142
5137
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5143
- readonly rpc: RpcService;
5144
5138
  readonly signatureAggregator: SignatureAggregatorService;
5145
5139
  readonly teleporter: TeleporterService;
5146
5140
  readonly webhooks: WebhooksService;
@@ -5296,4 +5290,4 @@ type Unauthorized = {
5296
5290
  error: string;
5297
5291
  };
5298
5292
 
5299
- 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, PrimaryNetwork, 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 };