@avalabs/glacier-sdk 3.1.0-canary.2a667a0.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 = {
@@ -3256,12 +3261,6 @@ type CChainAtomicBalances = {
3256
3261
  atomicMemoryLocked: Array<CChainSharedAssetBalance>;
3257
3262
  };
3258
3263
 
3259
- declare enum PrimaryNetwork {
3260
- MAINNET = "mainnet",
3261
- FUJI = "fuji",
3262
- DEVNET = "devnet"
3263
- }
3264
-
3265
3264
  declare enum PrimaryNetworkChainName {
3266
3265
  P_CHAIN = "p-chain",
3267
3266
  X_CHAIN = "x-chain",
@@ -3270,7 +3269,7 @@ declare enum PrimaryNetworkChainName {
3270
3269
 
3271
3270
  type PrimaryNetworkChainInfo = {
3272
3271
  chainName: PrimaryNetworkChainName;
3273
- network: PrimaryNetwork;
3272
+ network: Network;
3274
3273
  };
3275
3274
 
3276
3275
  type ListCChainAtomicBalancesResponse = {
@@ -3979,6 +3978,11 @@ declare enum PChainTransactionType {
3979
3978
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3980
3979
  BASE_TX = "BaseTx",
3981
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",
3982
3986
  UNKNOWN = "UNKNOWN"
3983
3987
  }
3984
3988
 
@@ -4033,6 +4037,11 @@ type PChainUtxo = {
4033
4037
  utxoType: UtxoType;
4034
4038
  };
4035
4039
 
4040
+ type SubnetValidatorManagerDetails = {
4041
+ blockchainId: string;
4042
+ evmContractAddress: string;
4043
+ };
4044
+
4036
4045
  type PChainTransaction = {
4037
4046
  /**
4038
4047
  * A P-Chain transaction hash.
@@ -4067,6 +4076,10 @@ type PChainTransaction = {
4067
4076
  * A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4068
4077
  */
4069
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>;
4070
4083
  /**
4071
4084
  * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4072
4085
  */
@@ -4087,6 +4100,14 @@ type PChainTransaction = {
4087
4100
  * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
4088
4101
  */
4089
4102
  subnetId?: string;
4103
+ /**
4104
+ * Present for ConvertSubnetTx
4105
+ */
4106
+ subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
4107
+ /**
4108
+ * Present for ConvertSubnetTx, RegisterSubnetValidatorTx
4109
+ */
4110
+ subnetOnlyValidatorDetails?: Array<string>;
4090
4111
  /**
4091
4112
  * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
4092
4113
  */
@@ -4288,6 +4309,11 @@ declare enum PrimaryNetworkTxType {
4288
4309
  ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
4289
4310
  BASE_TX = "BaseTx",
4290
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",
4291
4317
  UNKNOWN = "UNKNOWN",
4292
4318
  CREATE_ASSET_TX = "CreateAssetTx",
4293
4319
  OPERATION_TX = "OperationTx"
@@ -4614,49 +4640,6 @@ declare class PrimaryNetworkVerticesService {
4614
4640
  }): CancelablePromise<ListXChainVerticesResponse>;
4615
4641
  }
4616
4642
 
4617
- type RpcErrorDto = {
4618
- code: number;
4619
- message: string;
4620
- data?: Record<string, any>;
4621
- };
4622
-
4623
- type RpcErrorResponseDto = {
4624
- jsonrpc: string;
4625
- id?: (string | number);
4626
- error: RpcErrorDto;
4627
- };
4628
-
4629
- type RpcRequestBodyDto = {
4630
- method: string;
4631
- params?: Record<string, any>;
4632
- id?: (string | number);
4633
- jsonrpc?: string;
4634
- };
4635
-
4636
- type RpcSuccessResponseDto = {
4637
- jsonrpc: string;
4638
- id?: (string | number);
4639
- result: Record<string, any>;
4640
- };
4641
-
4642
- declare class RpcService {
4643
- readonly httpRequest: BaseHttpRequest;
4644
- constructor(httpRequest: BaseHttpRequest);
4645
- /**
4646
- * Calls JSON-RPC method
4647
- * Calls JSON-RPC method.
4648
- * @returns any Successful response
4649
- * @throws ApiError
4650
- */
4651
- rpc({ chainId, requestBody, }: {
4652
- /**
4653
- * A supported evm chain id or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
4654
- */
4655
- chainId: string;
4656
- requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
4657
- }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
4658
- }
4659
-
4660
4643
  type SignatureAggregationResponse = {
4661
4644
  signedMessage: string;
4662
4645
  };
@@ -5152,7 +5135,6 @@ declare class Glacier {
5152
5135
  readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
5153
5136
  readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
5154
5137
  readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
5155
- readonly rpc: RpcService;
5156
5138
  readonly signatureAggregator: SignatureAggregatorService;
5157
5139
  readonly teleporter: TeleporterService;
5158
5140
  readonly webhooks: WebhooksService;
@@ -5308,4 +5290,4 @@ type Unauthorized = {
5308
5290
  error: string;
5309
5291
  };
5310
5292
 
5311
- 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 };