@avalabs/glacier-sdk 2.8.0-alpha.110 → 2.8.0-alpha.112

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
@@ -60,7 +60,41 @@ declare abstract class BaseHttpRequest {
60
60
  abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
61
61
  }
62
62
 
63
+ type StakingDistribution = {
64
+ version: string;
65
+ stakedAmount: string;
66
+ };
67
+
68
+ type GetCurrentValidatorsStatsResponse = {
69
+ validatorCount: number;
70
+ totalStakedAmount: string;
71
+ estimatedAnnualStakingReward: string;
72
+ stakingDistributionByVersion: Array<StakingDistribution>;
73
+ };
74
+
75
+ declare enum Network {
76
+ MAINNET = "mainnet",
77
+ FUJI = "fuji"
78
+ }
79
+
80
+ declare class DefaultService {
81
+ readonly httpRequest: BaseHttpRequest;
82
+ constructor(httpRequest: BaseHttpRequest);
83
+ /**
84
+ * Get current validator stats for a given network
85
+ * @returns GetCurrentValidatorsStatsResponse
86
+ * @throws ApiError
87
+ */
88
+ getCurrentValidatorStats({ network, }: {
89
+ /**
90
+ * Either mainnet or a testnet.
91
+ */
92
+ network: Network;
93
+ }): CancelablePromise<GetCurrentValidatorsStatsResponse>;
94
+ }
95
+
63
96
  declare enum CollectionSortByOption {
97
+ COLLECTION_ADDRESS = "collectionAddress",
64
98
  SALE_TIMESTAMP = "saleTimestamp",
65
99
  VOLUME = "volume",
66
100
  VOLUME_CHANGE = "volumeChange",
@@ -2054,7 +2088,7 @@ declare namespace CreateEvmTransactionExportRequest {
2054
2088
 
2055
2089
  type PrimaryNetworkOptions = {
2056
2090
  addresses: Array<string>;
2057
- includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
2091
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
2058
2092
  };
2059
2093
 
2060
2094
  type CreatePrimaryNetworkTransactionExportRequest = {
@@ -2094,9 +2128,9 @@ type TransactionExportMetadata = {
2094
2128
  */
2095
2129
  downloadUrl?: string;
2096
2130
  /**
2097
- * The next date to use as the startDate in follow up requests
2098
- * if a request results in a transaction history exceeding the max size and
2099
- * has been reported as COMPLETED_WITH_WARNING with the warning
2131
+ * The next date (YYYY-MM-DD) to use as the startDate in follow
2132
+ * up requests if a request results in a transaction history exceeding the
2133
+ * max size and has been reported as COMPLETED_WITH_WARNING with the warning
2100
2134
  * WarnTruncatedExport.
2101
2135
  */
2102
2136
  nextDate?: string;
@@ -2137,11 +2171,14 @@ declare class OperationsService {
2137
2171
  }
2138
2172
 
2139
2173
  declare enum BlockchainId {
2174
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2175
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2176
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2177
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2178
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2140
2179
  P_CHAIN = "p-chain",
2141
2180
  X_CHAIN = "x-chain",
2142
- C_CHAIN = "c-chain",
2143
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2144
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
2181
+ C_CHAIN = "c-chain"
2145
2182
  }
2146
2183
 
2147
2184
  type Asset = {
@@ -2381,8 +2418,8 @@ declare namespace CChainImportTransaction {
2381
2418
  declare enum BlockchainIds {
2382
2419
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
2383
2420
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
2384
- _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2385
2421
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
2422
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
2386
2423
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
2387
2424
  }
2388
2425
 
@@ -2455,8 +2492,8 @@ declare enum PrimaryNetwork {
2455
2492
  }
2456
2493
 
2457
2494
  declare enum PrimaryNetworkChainName {
2458
- X_CHAIN = "x-chain",
2459
2495
  P_CHAIN = "p-chain",
2496
+ X_CHAIN = "x-chain",
2460
2497
  C_CHAIN = "c-chain"
2461
2498
  }
2462
2499
 
@@ -2967,19 +3004,15 @@ type ListXChainVerticesResponse = {
2967
3004
  chainInfo: PrimaryNetworkChainInfo;
2968
3005
  };
2969
3006
 
2970
- declare enum Network {
2971
- MAINNET = "mainnet",
2972
- FUJI = "fuji"
2973
- }
2974
-
2975
3007
  declare enum PChainId {
2976
- P_CHAIN = "p-chain",
2977
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
3008
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3009
+ P_CHAIN = "p-chain"
2978
3010
  }
2979
3011
 
2980
3012
  declare enum XChainId {
2981
- X_CHAIN = "x-chain",
2982
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
3013
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3014
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
3015
+ X_CHAIN = "x-chain"
2983
3016
  }
2984
3017
 
2985
3018
  declare class PrimaryNetworkService {
@@ -2992,7 +3025,7 @@ declare class PrimaryNetworkService {
2992
3025
  */
2993
3026
  getTxByHash({ blockchainId, network, txHash, }: {
2994
3027
  /**
2995
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3028
+ * A primary network blockchain id or alias.
2996
3029
  */
2997
3030
  blockchainId: BlockchainId;
2998
3031
  /**
@@ -3011,7 +3044,7 @@ declare class PrimaryNetworkService {
3011
3044
  */
3012
3045
  listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
3013
3046
  /**
3014
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3047
+ * A primary network blockchain id or alias.
3015
3048
  */
3016
3049
  blockchainId: BlockchainId;
3017
3050
  /**
@@ -3045,7 +3078,7 @@ declare class PrimaryNetworkService {
3045
3078
  */
3046
3079
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
3047
3080
  /**
3048
- * A supported chain name for P-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain instead!
3081
+ * A primary network blockchain id or alias.
3049
3082
  */
3050
3083
  blockchainId: PChainId;
3051
3084
  /**
@@ -3079,7 +3112,7 @@ declare class PrimaryNetworkService {
3079
3112
  */
3080
3113
  getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, sortOrder, }: {
3081
3114
  /**
3082
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3115
+ * A primary network blockchain id or alias.
3083
3116
  */
3084
3117
  blockchainId: BlockchainId;
3085
3118
  /**
@@ -3117,7 +3150,7 @@ declare class PrimaryNetworkService {
3117
3150
  */
3118
3151
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
3119
3152
  /**
3120
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3153
+ * A primary network blockchain id or alias.
3121
3154
  */
3122
3155
  blockchainId: BlockchainId;
3123
3156
  /**
@@ -3141,7 +3174,7 @@ declare class PrimaryNetworkService {
3141
3174
  */
3142
3175
  getBlockById({ blockchainId, network, blockId, }: {
3143
3176
  /**
3144
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3177
+ * A primary network blockchain id or alias.
3145
3178
  */
3146
3179
  blockchainId: BlockchainId;
3147
3180
  /**
@@ -3160,7 +3193,7 @@ declare class PrimaryNetworkService {
3160
3193
  */
3161
3194
  listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
3162
3195
  /**
3163
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3196
+ * A primary network blockchain id or alias.
3164
3197
  */
3165
3198
  blockchainId: BlockchainId;
3166
3199
  /**
@@ -3188,7 +3221,7 @@ declare class PrimaryNetworkService {
3188
3221
  */
3189
3222
  listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
3190
3223
  /**
3191
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
3224
+ * A primary network blockchain id or alias.
3192
3225
  */
3193
3226
  blockchainId: BlockchainId;
3194
3227
  /**
@@ -3212,7 +3245,7 @@ declare class PrimaryNetworkService {
3212
3245
  */
3213
3246
  listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
3214
3247
  /**
3215
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3248
+ * A primary network blockchain id or alias.
3216
3249
  */
3217
3250
  blockchainId: XChainId;
3218
3251
  /**
@@ -3240,7 +3273,7 @@ declare class PrimaryNetworkService {
3240
3273
  */
3241
3274
  vertexHash: string;
3242
3275
  /**
3243
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3276
+ * A primary network blockchain id or alias.
3244
3277
  */
3245
3278
  blockchainId: XChainId;
3246
3279
  /**
@@ -3259,7 +3292,7 @@ declare class PrimaryNetworkService {
3259
3292
  */
3260
3293
  vertexHeight: number;
3261
3294
  /**
3262
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3295
+ * A primary network blockchain id or alias.
3263
3296
  */
3264
3297
  blockchainId: XChainId;
3265
3298
  /**
@@ -3289,7 +3322,7 @@ declare class PrimaryNetworkService {
3289
3322
  */
3290
3323
  getAssetDetails({ blockchainId, network, assetId, }: {
3291
3324
  /**
3292
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3325
+ * A primary network blockchain id or alias.
3293
3326
  */
3294
3327
  blockchainId: XChainId;
3295
3328
  /**
@@ -3308,7 +3341,7 @@ declare class PrimaryNetworkService {
3308
3341
  */
3309
3342
  getAssetTransactions({ blockchainId, network, assetId, pageSize, pageToken, }: {
3310
3343
  /**
3311
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
3344
+ * A primary network blockchain id or alias.
3312
3345
  */
3313
3346
  blockchainId: XChainId;
3314
3347
  /**
@@ -3348,6 +3381,7 @@ declare class PrimaryNetworkService {
3348
3381
 
3349
3382
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
3350
3383
  declare class Glacier {
3384
+ readonly default: DefaultService;
3351
3385
  readonly evm: EvmService;
3352
3386
  readonly healthCheck: HealthCheckService;
3353
3387
  readonly operations: OperationsService;
@@ -3373,4 +3407,4 @@ declare class ApiError extends Error {
3373
3407
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3374
3408
  }
3375
3409
 
3376
- export { Address, ApiError, Asset, BaseHttpRequest, BlockchainId, BlockchainIds, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmBlock, EvmNetworkOptions, EvmService, FloorPrice, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPrimaryNetworkBlocksResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainTransaction, PChainTransactionType, PChainUtxo, PaginationParams, PrimaryNetwork, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, RewardType, RichAddress, SortOrder, TokenWithPrice, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, UtxoType, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
3410
+ export { Address, ApiError, Asset, BaseHttpRequest, BlockchainId, BlockchainIds, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DefaultService, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmBlock, EvmNetworkOptions, EvmService, FloorPrice, FullNativeTransactionDetails, GetChainResponse, GetCurrentValidatorsStatsResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPrimaryNetworkBlocksResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainTransaction, PChainTransactionType, PChainUtxo, PaginationParams, PrimaryNetwork, PrimaryNetworkBlock, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, RewardType, RichAddress, SortOrder, StakingDistribution, TokenWithPrice, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, UtxoType, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
package/dist/index.js CHANGED
@@ -352,6 +352,23 @@ class FetchHttpRequest extends BaseHttpRequest {
352
352
  }
353
353
  }
354
354
 
355
+ class DefaultService {
356
+ constructor(httpRequest) {
357
+ this.httpRequest = httpRequest;
358
+ }
359
+ getCurrentValidatorStats({
360
+ network
361
+ }) {
362
+ return this.httpRequest.request({
363
+ method: "GET",
364
+ url: "/v1/networks/{network}/validators:currentStats",
365
+ path: {
366
+ "network": network
367
+ }
368
+ });
369
+ }
370
+ }
371
+
355
372
  class EvmService {
356
373
  constructor(httpRequest) {
357
374
  this.httpRequest = httpRequest;
@@ -1198,6 +1215,7 @@ class Glacier {
1198
1215
  HEADERS: config == null ? void 0 : config.HEADERS,
1199
1216
  ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
1200
1217
  });
1218
+ this.default = new DefaultService(this.request);
1201
1219
  this.evm = new EvmService(this.request);
1202
1220
  this.healthCheck = new HealthCheckService(this.request);
1203
1221
  this.operations = new OperationsService(this.request);
@@ -1218,19 +1236,22 @@ const OpenAPI = {
1218
1236
  };
1219
1237
 
1220
1238
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
1239
+ BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1240
+ BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1241
+ BlockchainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
1242
+ BlockchainId2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
1243
+ BlockchainId2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
1221
1244
  BlockchainId2["P_CHAIN"] = "p-chain";
1222
1245
  BlockchainId2["X_CHAIN"] = "x-chain";
1223
1246
  BlockchainId2["C_CHAIN"] = "c-chain";
1224
- BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1225
- BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1226
1247
  return BlockchainId2;
1227
1248
  })(BlockchainId || {});
1228
1249
 
1229
1250
  var BlockchainIds = /* @__PURE__ */ ((BlockchainIds2) => {
1230
1251
  BlockchainIds2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1231
1252
  BlockchainIds2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1232
- BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
1233
1253
  BlockchainIds2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
1254
+ BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
1234
1255
  BlockchainIds2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
1235
1256
  return BlockchainIds2;
1236
1257
  })(BlockchainIds || {});
@@ -1256,6 +1277,7 @@ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
1256
1277
  })(ChainStatus || {});
1257
1278
 
1258
1279
  var CollectionSortByOption = /* @__PURE__ */ ((CollectionSortByOption2) => {
1280
+ CollectionSortByOption2["COLLECTION_ADDRESS"] = "collectionAddress";
1259
1281
  CollectionSortByOption2["SALE_TIMESTAMP"] = "saleTimestamp";
1260
1282
  CollectionSortByOption2["VOLUME"] = "volume";
1261
1283
  CollectionSortByOption2["VOLUME_CHANGE"] = "volumeChange";
@@ -1430,8 +1452,8 @@ var OperationType = /* @__PURE__ */ ((OperationType2) => {
1430
1452
  })(OperationType || {});
1431
1453
 
1432
1454
  var PChainId = /* @__PURE__ */ ((PChainId2) => {
1433
- PChainId2["P_CHAIN"] = "p-chain";
1434
1455
  PChainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1456
+ PChainId2["P_CHAIN"] = "p-chain";
1435
1457
  return PChainId2;
1436
1458
  })(PChainId || {});
1437
1459
 
@@ -1458,8 +1480,8 @@ var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
1458
1480
  })(PrimaryNetwork || {});
1459
1481
 
1460
1482
  var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
1461
- PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
1462
1483
  PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
1484
+ PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
1463
1485
  PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
1464
1486
  return PrimaryNetworkChainName2;
1465
1487
  })(PrimaryNetworkChainName || {});
@@ -1532,8 +1554,9 @@ var VmName = /* @__PURE__ */ ((VmName2) => {
1532
1554
  })(VmName || {});
1533
1555
 
1534
1556
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
1535
- XChainId2["X_CHAIN"] = "x-chain";
1536
1557
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
1558
+ XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
1559
+ XChainId2["X_CHAIN"] = "x-chain";
1537
1560
  return XChainId2;
1538
1561
  })(XChainId || {});
1539
1562
 
@@ -1562,6 +1585,7 @@ exports.CancelablePromise = CancelablePromise;
1562
1585
  exports.ChainStatus = ChainStatus;
1563
1586
  exports.CollectionSortByOption = CollectionSortByOption;
1564
1587
  exports.CurrencyCode = CurrencyCode;
1588
+ exports.DefaultService = DefaultService;
1565
1589
  exports.ErcType = ErcType;
1566
1590
  exports.EvmService = EvmService;
1567
1591
  exports.Glacier = Glacier;
@@ -1,5 +1,6 @@
1
1
  import { BaseHttpRequest } from './core/BaseHttpRequest.js';
2
2
  import { OpenAPIConfig } from './core/OpenAPI.js';
3
+ import { DefaultService } from './services/DefaultService.js';
3
4
  import { EvmService } from './services/EvmService.js';
4
5
  import { HealthCheckService } from './services/HealthCheckService.js';
5
6
  import { OperationsService } from './services/OperationsService.js';
@@ -7,6 +8,7 @@ import { PrimaryNetworkService } from './services/PrimaryNetworkService.js';
7
8
 
8
9
  type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
9
10
  declare class Glacier {
11
+ readonly default: DefaultService;
10
12
  readonly evm: EvmService;
11
13
  readonly healthCheck: HealthCheckService;
12
14
  readonly operations: OperationsService;
@@ -1,4 +1,5 @@
1
1
  import { FetchHttpRequest } from './core/FetchHttpRequest.js';
2
+ import { DefaultService } from './services/DefaultService.js';
2
3
  import { EvmService } from './services/EvmService.js';
3
4
  import { HealthCheckService } from './services/HealthCheckService.js';
4
5
  import { OperationsService } from './services/OperationsService.js';
@@ -18,6 +19,7 @@ class Glacier {
18
19
  HEADERS: config == null ? void 0 : config.HEADERS,
19
20
  ENCODE_PATH: config == null ? void 0 : config.ENCODE_PATH
20
21
  });
22
+ this.default = new DefaultService(this.request);
21
23
  this.evm = new EvmService(this.request);
22
24
  this.healthCheck = new HealthCheckService(this.request);
23
25
  this.operations = new OperationsService(this.request);
@@ -1,9 +1,12 @@
1
1
  declare enum BlockchainId {
2
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp",
2
7
  P_CHAIN = "p-chain",
3
8
  X_CHAIN = "x-chain",
4
- C_CHAIN = "c-chain",
5
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
6
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
9
+ C_CHAIN = "c-chain"
7
10
  }
8
11
 
9
12
  export { BlockchainId };
@@ -1,9 +1,12 @@
1
1
  var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
2
+ BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
+ BlockchainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainId2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
+ BlockchainId2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
2
7
  BlockchainId2["P_CHAIN"] = "p-chain";
3
8
  BlockchainId2["X_CHAIN"] = "x-chain";
4
9
  BlockchainId2["C_CHAIN"] = "c-chain";
5
- BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
6
- BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
7
10
  return BlockchainId2;
8
11
  })(BlockchainId || {});
9
12
 
@@ -1,8 +1,8 @@
1
1
  declare enum BlockchainIds {
2
2
  _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
3
  _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
- _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
5
4
  _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
6
  Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
7
7
  }
8
8
 
@@ -1,8 +1,8 @@
1
1
  var BlockchainIds = /* @__PURE__ */ ((BlockchainIds2) => {
2
2
  BlockchainIds2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
3
  BlockchainIds2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
- BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
5
4
  BlockchainIds2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
6
  BlockchainIds2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
7
7
  return BlockchainIds2;
8
8
  })(BlockchainIds || {});
@@ -1,4 +1,5 @@
1
1
  declare enum CollectionSortByOption {
2
+ COLLECTION_ADDRESS = "collectionAddress",
2
3
  SALE_TIMESTAMP = "saleTimestamp",
3
4
  VOLUME = "volume",
4
5
  VOLUME_CHANGE = "volumeChange",
@@ -1,4 +1,5 @@
1
1
  var CollectionSortByOption = /* @__PURE__ */ ((CollectionSortByOption2) => {
2
+ CollectionSortByOption2["COLLECTION_ADDRESS"] = "collectionAddress";
2
3
  CollectionSortByOption2["SALE_TIMESTAMP"] = "saleTimestamp";
3
4
  CollectionSortByOption2["VOLUME"] = "volume";
4
5
  CollectionSortByOption2["VOLUME_CHANGE"] = "volumeChange";
@@ -0,0 +1,10 @@
1
+ import { StakingDistribution } from './StakingDistribution.js';
2
+
3
+ type GetCurrentValidatorsStatsResponse = {
4
+ validatorCount: number;
5
+ totalStakedAmount: string;
6
+ estimatedAnnualStakingReward: string;
7
+ stakingDistributionByVersion: Array<StakingDistribution>;
8
+ };
9
+
10
+ export { GetCurrentValidatorsStatsResponse };
@@ -1,6 +1,6 @@
1
1
  declare enum PChainId {
2
- P_CHAIN = "p-chain",
3
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
2
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
+ P_CHAIN = "p-chain"
4
4
  }
5
5
 
6
6
  export { PChainId };
@@ -1,6 +1,6 @@
1
1
  var PChainId = /* @__PURE__ */ ((PChainId2) => {
2
- PChainId2["P_CHAIN"] = "p-chain";
3
2
  PChainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ PChainId2["P_CHAIN"] = "p-chain";
4
4
  return PChainId2;
5
5
  })(PChainId || {});
6
6
 
@@ -1,6 +1,6 @@
1
1
  declare enum PrimaryNetworkChainName {
2
- X_CHAIN = "x-chain",
3
2
  P_CHAIN = "p-chain",
3
+ X_CHAIN = "x-chain",
4
4
  C_CHAIN = "c-chain"
5
5
  }
6
6
 
@@ -1,6 +1,6 @@
1
1
  var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
2
- PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
3
2
  PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
3
+ PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
4
4
  PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
5
5
  return PrimaryNetworkChainName2;
6
6
  })(PrimaryNetworkChainName || {});
@@ -1,6 +1,6 @@
1
1
  type PrimaryNetworkOptions = {
2
2
  addresses: Array<string>;
3
- includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
3
+ includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
4
4
  };
5
5
 
6
6
  export { PrimaryNetworkOptions };
@@ -0,0 +1,6 @@
1
+ type StakingDistribution = {
2
+ version: string;
3
+ stakedAmount: string;
4
+ };
5
+
6
+ export { StakingDistribution };
@@ -7,9 +7,9 @@ type TransactionExportMetadata = {
7
7
  */
8
8
  downloadUrl?: string;
9
9
  /**
10
- * The next date to use as the startDate in follow up requests
11
- * if a request results in a transaction history exceeding the max size and
12
- * has been reported as COMPLETED_WITH_WARNING with the warning
10
+ * The next date (YYYY-MM-DD) to use as the startDate in follow
11
+ * up requests if a request results in a transaction history exceeding the
12
+ * max size and has been reported as COMPLETED_WITH_WARNING with the warning
13
13
  * WarnTruncatedExport.
14
14
  */
15
15
  nextDate?: string;
@@ -1,6 +1,7 @@
1
1
  declare enum XChainId {
2
- X_CHAIN = "x-chain",
3
- _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
2
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4
+ X_CHAIN = "x-chain"
4
5
  }
5
6
 
6
7
  export { XChainId };
@@ -1,6 +1,7 @@
1
1
  var XChainId = /* @__PURE__ */ ((XChainId2) => {
2
- XChainId2["X_CHAIN"] = "x-chain";
3
2
  XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
3
+ XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
4
+ XChainId2["X_CHAIN"] = "x-chain";
4
5
  return XChainId2;
5
6
  })(XChainId || {});
6
7
 
@@ -0,0 +1,22 @@
1
+ import { GetCurrentValidatorsStatsResponse } from '../models/GetCurrentValidatorsStatsResponse.js';
2
+ import { Network } from '../models/Network.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class DefaultService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Get current validator stats for a given network
11
+ * @returns GetCurrentValidatorsStatsResponse
12
+ * @throws ApiError
13
+ */
14
+ getCurrentValidatorStats({ network, }: {
15
+ /**
16
+ * Either mainnet or a testnet.
17
+ */
18
+ network: Network;
19
+ }): CancelablePromise<GetCurrentValidatorsStatsResponse>;
20
+ }
21
+
22
+ export { DefaultService };
@@ -0,0 +1,18 @@
1
+ class DefaultService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getCurrentValidatorStats({
6
+ network
7
+ }) {
8
+ return this.httpRequest.request({
9
+ method: "GET",
10
+ url: "/v1/networks/{network}/validators:currentStats",
11
+ path: {
12
+ "network": network
13
+ }
14
+ });
15
+ }
16
+ }
17
+
18
+ export { DefaultService };
@@ -35,7 +35,7 @@ declare class PrimaryNetworkService {
35
35
  */
36
36
  getTxByHash({ blockchainId, network, txHash, }: {
37
37
  /**
38
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
38
+ * A primary network blockchain id or alias.
39
39
  */
40
40
  blockchainId: BlockchainId;
41
41
  /**
@@ -54,7 +54,7 @@ declare class PrimaryNetworkService {
54
54
  */
55
55
  listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
56
56
  /**
57
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
57
+ * A primary network blockchain id or alias.
58
58
  */
59
59
  blockchainId: BlockchainId;
60
60
  /**
@@ -88,7 +88,7 @@ declare class PrimaryNetworkService {
88
88
  */
89
89
  listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, pageSize, pageToken, sortOrder, }: {
90
90
  /**
91
- * A supported chain name for P-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain instead!
91
+ * A primary network blockchain id or alias.
92
92
  */
93
93
  blockchainId: PChainId;
94
94
  /**
@@ -122,7 +122,7 @@ declare class PrimaryNetworkService {
122
122
  */
123
123
  getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, sortOrder, }: {
124
124
  /**
125
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
125
+ * A primary network blockchain id or alias.
126
126
  */
127
127
  blockchainId: BlockchainId;
128
128
  /**
@@ -160,7 +160,7 @@ declare class PrimaryNetworkService {
160
160
  */
161
161
  getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
162
162
  /**
163
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
163
+ * A primary network blockchain id or alias.
164
164
  */
165
165
  blockchainId: BlockchainId;
166
166
  /**
@@ -184,7 +184,7 @@ declare class PrimaryNetworkService {
184
184
  */
185
185
  getBlockById({ blockchainId, network, blockId, }: {
186
186
  /**
187
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
187
+ * A primary network blockchain id or alias.
188
188
  */
189
189
  blockchainId: BlockchainId;
190
190
  /**
@@ -203,7 +203,7 @@ declare class PrimaryNetworkService {
203
203
  */
204
204
  listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
205
205
  /**
206
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
206
+ * A primary network blockchain id or alias.
207
207
  */
208
208
  blockchainId: BlockchainId;
209
209
  /**
@@ -231,7 +231,7 @@ declare class PrimaryNetworkService {
231
231
  */
232
232
  listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
233
233
  /**
234
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
234
+ * A primary network blockchain id or alias.
235
235
  */
236
236
  blockchainId: BlockchainId;
237
237
  /**
@@ -255,7 +255,7 @@ declare class PrimaryNetworkService {
255
255
  */
256
256
  listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
257
257
  /**
258
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
258
+ * A primary network blockchain id or alias.
259
259
  */
260
260
  blockchainId: XChainId;
261
261
  /**
@@ -283,7 +283,7 @@ declare class PrimaryNetworkService {
283
283
  */
284
284
  vertexHash: string;
285
285
  /**
286
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
286
+ * A primary network blockchain id or alias.
287
287
  */
288
288
  blockchainId: XChainId;
289
289
  /**
@@ -302,7 +302,7 @@ declare class PrimaryNetworkService {
302
302
  */
303
303
  vertexHeight: number;
304
304
  /**
305
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
305
+ * A primary network blockchain id or alias.
306
306
  */
307
307
  blockchainId: XChainId;
308
308
  /**
@@ -332,7 +332,7 @@ declare class PrimaryNetworkService {
332
332
  */
333
333
  getAssetDetails({ blockchainId, network, assetId, }: {
334
334
  /**
335
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
335
+ * A primary network blockchain id or alias.
336
336
  */
337
337
  blockchainId: XChainId;
338
338
  /**
@@ -351,7 +351,7 @@ declare class PrimaryNetworkService {
351
351
  */
352
352
  getAssetTransactions({ blockchainId, network, assetId, pageSize, pageToken, }: {
353
353
  /**
354
- * A supported chain name for X-Chain. BlockchainId values will be deprecated in a future release. Please use chain names like x-chain instead!
354
+ * A primary network blockchain id or alias.
355
355
  */
356
356
  blockchainId: XChainId;
357
357
  /**
package/esm/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export { EVMOutput } from './generated/models/EVMOutput.js';
44
44
  export { FloorPrice } from './generated/models/FloorPrice.js';
45
45
  export { FullNativeTransactionDetails } from './generated/models/FullNativeTransactionDetails.js';
46
46
  export { GetChainResponse } from './generated/models/GetChainResponse.js';
47
+ export { GetCurrentValidatorsStatsResponse } from './generated/models/GetCurrentValidatorsStatsResponse.js';
47
48
  export { GetEvmBlockResponse } from './generated/models/GetEvmBlockResponse.js';
48
49
  export { GetNativeBalanceResponse } from './generated/models/GetNativeBalanceResponse.js';
49
50
  export { GetPrimaryNetworkBlockResponse } from './generated/models/GetPrimaryNetworkBlockResponse.js';
@@ -118,6 +119,7 @@ export { ResourceLinkType } from './generated/models/ResourceLinkType.js';
118
119
  export { RewardType } from './generated/models/RewardType.js';
119
120
  export { RichAddress } from './generated/models/RichAddress.js';
120
121
  export { SortOrder } from './generated/models/SortOrder.js';
122
+ export { StakingDistribution } from './generated/models/StakingDistribution.js';
121
123
  export { TokenWithPrice } from './generated/models/TokenWithPrice.js';
122
124
  export { TransactionDetails } from './generated/models/TransactionDetails.js';
123
125
  export { TransactionExportMetadata } from './generated/models/TransactionExportMetadata.js';
@@ -138,6 +140,7 @@ export { XChainLinearTransaction } from './generated/models/XChainLinearTransact
138
140
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
139
141
  export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
140
142
  export { XChainVertex } from './generated/models/XChainVertex.js';
143
+ export { DefaultService } from './generated/services/DefaultService.js';
141
144
  export { EvmService } from './generated/services/EvmService.js';
142
145
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
143
146
  export { OperationsService } from './generated/services/OperationsService.js';
package/esm/index.js CHANGED
@@ -45,6 +45,7 @@ export { VmName } from './generated/models/VmName.js';
45
45
  export { XChainId } from './generated/models/XChainId.js';
46
46
  export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
47
47
  export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
48
+ export { DefaultService } from './generated/services/DefaultService.js';
48
49
  export { EvmService } from './generated/services/EvmService.js';
49
50
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
50
51
  export { OperationsService } from './generated/services/OperationsService.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.110",
3
+ "version": "2.8.0-alpha.112",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "f6e6525e13030a63e0a4e0e4f957138d0887f778"
32
+ "gitHead": "e51642c8551f4861854c10343dc2b8fcf4476de7"
33
33
  }