@avalabs/glacier-sdk 3.1.0-canary.d324cd1.0 → 3.1.0-canary.d8363d2.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 +44 -55
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +0 -2
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +13 -0
- package/esm/generated/models/PChainTransactionType.d.ts +5 -0
- package/esm/generated/models/PChainTransactionType.js +1 -1
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +2 -2
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +5 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -1
- package/esm/generated/models/SubnetValidatorManagerDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +3 -3
- package/esm/generated/services/EvmChainsService.d.ts +12 -0
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/index.d.ts +1 -6
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/PrimaryNetwork.d.ts +0 -7
- package/esm/generated/models/PrimaryNetwork.js +0 -1
- package/esm/generated/models/RpcErrorDto.d.ts +0 -7
- package/esm/generated/models/RpcErrorResponseDto.d.ts +0 -9
- package/esm/generated/models/RpcRequestBodyDto.d.ts +0 -8
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +0 -7
- package/esm/generated/services/RpcService.d.ts +0 -25
- package/esm/generated/services/RpcService.js +0 -1
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.
|
|
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.
|
|
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.
|
|
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
|
/**
|
|
@@ -1162,6 +1162,18 @@ declare class EvmChainsService {
|
|
|
1162
1162
|
*/
|
|
1163
1163
|
chainId: string;
|
|
1164
1164
|
}): CancelablePromise<GetChainResponse>;
|
|
1165
|
+
/**
|
|
1166
|
+
* Get chains for address
|
|
1167
|
+
* Gets the list of chains an address has interacted with.
|
|
1168
|
+
* @returns ListChainsResponse Successful response
|
|
1169
|
+
* @throws ApiError
|
|
1170
|
+
*/
|
|
1171
|
+
getAddressChains({ address, }: {
|
|
1172
|
+
/**
|
|
1173
|
+
* A wallet address.
|
|
1174
|
+
*/
|
|
1175
|
+
address: string;
|
|
1176
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
1165
1177
|
}
|
|
1166
1178
|
|
|
1167
1179
|
type ImageAsset = {
|
|
@@ -3244,12 +3256,6 @@ type CChainAtomicBalances = {
|
|
|
3244
3256
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3245
3257
|
};
|
|
3246
3258
|
|
|
3247
|
-
declare enum PrimaryNetwork {
|
|
3248
|
-
MAINNET = "mainnet",
|
|
3249
|
-
FUJI = "fuji",
|
|
3250
|
-
DEVNET = "devnet"
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
3259
|
declare enum PrimaryNetworkChainName {
|
|
3254
3260
|
P_CHAIN = "p-chain",
|
|
3255
3261
|
X_CHAIN = "x-chain",
|
|
@@ -3258,7 +3264,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3258
3264
|
|
|
3259
3265
|
type PrimaryNetworkChainInfo = {
|
|
3260
3266
|
chainName: PrimaryNetworkChainName;
|
|
3261
|
-
network:
|
|
3267
|
+
network: Network;
|
|
3262
3268
|
};
|
|
3263
3269
|
|
|
3264
3270
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3967,6 +3973,11 @@ declare enum PChainTransactionType {
|
|
|
3967
3973
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3968
3974
|
BASE_TX = "BaseTx",
|
|
3969
3975
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3976
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
3977
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
3978
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
3979
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
3980
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
3970
3981
|
UNKNOWN = "UNKNOWN"
|
|
3971
3982
|
}
|
|
3972
3983
|
|
|
@@ -4021,6 +4032,11 @@ type PChainUtxo = {
|
|
|
4021
4032
|
utxoType: UtxoType;
|
|
4022
4033
|
};
|
|
4023
4034
|
|
|
4035
|
+
type SubnetValidatorManagerDetails = {
|
|
4036
|
+
blockchainId: string;
|
|
4037
|
+
evmContractAddress: string;
|
|
4038
|
+
};
|
|
4039
|
+
|
|
4024
4040
|
type PChainTransaction = {
|
|
4025
4041
|
/**
|
|
4026
4042
|
* A P-Chain transaction hash.
|
|
@@ -4055,6 +4071,10 @@ type PChainTransaction = {
|
|
|
4055
4071
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4056
4072
|
*/
|
|
4057
4073
|
amountStaked: Array<AssetAmount>;
|
|
4074
|
+
/**
|
|
4075
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4076
|
+
*/
|
|
4077
|
+
amountSovBalanceBurned: Array<AssetAmount>;
|
|
4058
4078
|
/**
|
|
4059
4079
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4060
4080
|
*/
|
|
@@ -4075,6 +4095,14 @@ type PChainTransaction = {
|
|
|
4075
4095
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
4076
4096
|
*/
|
|
4077
4097
|
subnetId?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* Present for ConvertSubnetTx
|
|
4100
|
+
*/
|
|
4101
|
+
subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
|
|
4102
|
+
/**
|
|
4103
|
+
* Present for ConvertSubnetTx, RegisterSubnetValidatorTx
|
|
4104
|
+
*/
|
|
4105
|
+
subnetOnlyValidatorDetails?: Array<string>;
|
|
4078
4106
|
/**
|
|
4079
4107
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4080
4108
|
*/
|
|
@@ -4276,6 +4304,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4276
4304
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4277
4305
|
BASE_TX = "BaseTx",
|
|
4278
4306
|
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
4307
|
+
CONVERT_SUBNET_TX = "ConvertSubnetTx",
|
|
4308
|
+
REGISTER_SUBNET_VALIDATOR_TX = "RegisterSubnetValidatorTx",
|
|
4309
|
+
SET_SUBNET_VALIDATOR_WEIGHT_TX = "SetSubnetValidatorWeightTx",
|
|
4310
|
+
DISABLE_SUBNET_VALIDATOR_TX = "DisableSubnetValidatorTx",
|
|
4311
|
+
INCREASE_BALANCE_TX = "IncreaseBalanceTx",
|
|
4279
4312
|
UNKNOWN = "UNKNOWN",
|
|
4280
4313
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4281
4314
|
OPERATION_TX = "OperationTx"
|
|
@@ -4602,49 +4635,6 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4602
4635
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4603
4636
|
}
|
|
4604
4637
|
|
|
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
4638
|
type SignatureAggregationResponse = {
|
|
4649
4639
|
signedMessage: string;
|
|
4650
4640
|
};
|
|
@@ -5140,7 +5130,6 @@ declare class Glacier {
|
|
|
5140
5130
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5141
5131
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5142
5132
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5143
|
-
readonly rpc: RpcService;
|
|
5144
5133
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5145
5134
|
readonly teleporter: TeleporterService;
|
|
5146
5135
|
readonly webhooks: WebhooksService;
|
|
@@ -5296,4 +5285,4 @@ type Unauthorized = {
|
|
|
5296
5285
|
error: string;
|
|
5297
5286
|
};
|
|
5298
5287
|
|
|
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,
|
|
5288
|
+
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, 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 };
|