@avalabs/glacier-sdk 3.1.0-canary.af996c4.0 → 3.1.0-canary.bc778fa.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 +32 -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/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
|
/**
|
|
@@ -3256,12 +3256,6 @@ type CChainAtomicBalances = {
|
|
|
3256
3256
|
atomicMemoryLocked: Array<CChainSharedAssetBalance>;
|
|
3257
3257
|
};
|
|
3258
3258
|
|
|
3259
|
-
declare enum PrimaryNetwork {
|
|
3260
|
-
MAINNET = "mainnet",
|
|
3261
|
-
FUJI = "fuji",
|
|
3262
|
-
DEVNET = "devnet"
|
|
3263
|
-
}
|
|
3264
|
-
|
|
3265
3259
|
declare enum PrimaryNetworkChainName {
|
|
3266
3260
|
P_CHAIN = "p-chain",
|
|
3267
3261
|
X_CHAIN = "x-chain",
|
|
@@ -3270,7 +3264,7 @@ declare enum PrimaryNetworkChainName {
|
|
|
3270
3264
|
|
|
3271
3265
|
type PrimaryNetworkChainInfo = {
|
|
3272
3266
|
chainName: PrimaryNetworkChainName;
|
|
3273
|
-
network:
|
|
3267
|
+
network: Network;
|
|
3274
3268
|
};
|
|
3275
3269
|
|
|
3276
3270
|
type ListCChainAtomicBalancesResponse = {
|
|
@@ -3979,6 +3973,11 @@ declare enum PChainTransactionType {
|
|
|
3979
3973
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3980
3974
|
BASE_TX = "BaseTx",
|
|
3981
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",
|
|
3982
3981
|
UNKNOWN = "UNKNOWN"
|
|
3983
3982
|
}
|
|
3984
3983
|
|
|
@@ -4033,6 +4032,11 @@ type PChainUtxo = {
|
|
|
4033
4032
|
utxoType: UtxoType;
|
|
4034
4033
|
};
|
|
4035
4034
|
|
|
4035
|
+
type SubnetValidatorManagerDetails = {
|
|
4036
|
+
blockchainId: string;
|
|
4037
|
+
evmContractAddress: string;
|
|
4038
|
+
};
|
|
4039
|
+
|
|
4036
4040
|
type PChainTransaction = {
|
|
4037
4041
|
/**
|
|
4038
4042
|
* A P-Chain transaction hash.
|
|
@@ -4067,6 +4071,10 @@ type PChainTransaction = {
|
|
|
4067
4071
|
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4068
4072
|
*/
|
|
4069
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>;
|
|
4070
4078
|
/**
|
|
4071
4079
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4072
4080
|
*/
|
|
@@ -4087,6 +4095,14 @@ type PChainTransaction = {
|
|
|
4087
4095
|
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
|
|
4088
4096
|
*/
|
|
4089
4097
|
subnetId?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* Present for ConvertSubnetTx
|
|
4100
|
+
*/
|
|
4101
|
+
subnetValidatorManagerDetails?: SubnetValidatorManagerDetails;
|
|
4102
|
+
/**
|
|
4103
|
+
* Present for ConvertSubnetTx, RegisterSubnetValidatorTx
|
|
4104
|
+
*/
|
|
4105
|
+
subnetOnlyValidatorDetails?: Array<string>;
|
|
4090
4106
|
/**
|
|
4091
4107
|
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4092
4108
|
*/
|
|
@@ -4288,6 +4304,11 @@ declare enum PrimaryNetworkTxType {
|
|
|
4288
4304
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
4289
4305
|
BASE_TX = "BaseTx",
|
|
4290
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",
|
|
4291
4312
|
UNKNOWN = "UNKNOWN",
|
|
4292
4313
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
4293
4314
|
OPERATION_TX = "OperationTx"
|
|
@@ -4614,49 +4635,6 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4614
4635
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4615
4636
|
}
|
|
4616
4637
|
|
|
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
4638
|
type SignatureAggregationResponse = {
|
|
4661
4639
|
signedMessage: string;
|
|
4662
4640
|
};
|
|
@@ -5152,7 +5130,6 @@ declare class Glacier {
|
|
|
5152
5130
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
5153
5131
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
5154
5132
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
5155
|
-
readonly rpc: RpcService;
|
|
5156
5133
|
readonly signatureAggregator: SignatureAggregatorService;
|
|
5157
5134
|
readonly teleporter: TeleporterService;
|
|
5158
5135
|
readonly webhooks: WebhooksService;
|
|
@@ -5308,4 +5285,4 @@ type Unauthorized = {
|
|
|
5308
5285
|
error: string;
|
|
5309
5286
|
};
|
|
5310
5287
|
|
|
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,
|
|
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 };
|