@avalabs/glacier-sdk 2.8.0-alpha.134 → 2.8.0-alpha.136

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.
Files changed (28) hide show
  1. package/dist/index.d.ts +83 -37
  2. package/dist/index.js +24 -20
  3. package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
  4. package/esm/generated/models/ActiveValidatorDetails.d.ts +7 -4
  5. package/esm/generated/models/ChainInfo.d.ts +1 -0
  6. package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
  7. package/esm/generated/models/CompletedValidatorDetails.d.ts +2 -1
  8. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  9. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  10. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  11. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  12. package/esm/generated/models/PChainTransactionType.js +1 -0
  13. package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
  14. package/esm/generated/models/PendingValidatorDetails.d.ts +2 -1
  15. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  16. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  17. package/esm/generated/models/RewardType.d.ts +2 -1
  18. package/esm/generated/models/RewardType.js +1 -0
  19. package/esm/generated/models/Rewards.d.ts +2 -0
  20. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  21. package/esm/generated/services/EvmTransactionsService.d.ts +0 -20
  22. package/esm/generated/services/EvmTransactionsService.js +1 -14
  23. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  24. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  25. package/esm/generated/services/PrimaryNetworkService.d.ts +30 -10
  26. package/esm/generated/services/PrimaryNetworkService.js +16 -6
  27. package/esm/index.d.ts +1 -0
  28. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -680,6 +680,7 @@ type GetChainResponse = {
680
680
  utilityAddresses?: UtilityAddresses;
681
681
  networkToken: NetworkToken;
682
682
  chainLogoUri?: string;
683
+ private?: boolean;
683
684
  };
684
685
 
685
686
  type ChainInfo = {
@@ -701,6 +702,7 @@ type ChainInfo = {
701
702
  utilityAddresses?: UtilityAddresses;
702
703
  networkToken: NetworkToken;
703
704
  chainLogoUri?: string;
705
+ private?: boolean;
704
706
  };
705
707
 
706
708
  type ListChainsResponse = {
@@ -1487,22 +1489,6 @@ declare class EvmTransactionsService {
1487
1489
  */
1488
1490
  pageToken?: string;
1489
1491
  }): CancelablePromise<ListContractsResponse>;
1490
- /**
1491
- * Get contract metadata
1492
- * Gets metadata about the contract at the given address.
1493
- * @returns any
1494
- * @throws ApiError
1495
- */
1496
- getContractMetadata({ chainId, address, }: {
1497
- /**
1498
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
1499
- */
1500
- chainId: string;
1501
- /**
1502
- * Contract address on the relevant chain.
1503
- */
1504
- address: string;
1505
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
1506
1492
  /**
1507
1493
  * List ERC transfers
1508
1494
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
@@ -1997,6 +1983,7 @@ type ListBlockchainsResponse = {
1997
1983
 
1998
1984
  type ActiveDelegatorDetails = {
1999
1985
  txHash: string;
1986
+ nodeId: string;
2000
1987
  rewardAddresses: Array<string>;
2001
1988
  amountDelegated: string;
2002
1989
  delegationFee: string;
@@ -2014,6 +2001,7 @@ declare namespace ActiveDelegatorDetails {
2014
2001
 
2015
2002
  type CompletedDelegatorDetails = {
2016
2003
  txHash: string;
2004
+ nodeId: string;
2017
2005
  rewardAddresses: Array<string>;
2018
2006
  amountDelegated: string;
2019
2007
  delegationFee: string;
@@ -2031,6 +2019,7 @@ declare namespace CompletedDelegatorDetails {
2031
2019
 
2032
2020
  type PendingDelegatorDetails = {
2033
2021
  txHash: string;
2022
+ nodeId: string;
2034
2023
  rewardAddresses: Array<string>;
2035
2024
  amountDelegated: string;
2036
2025
  delegationFee: string;
@@ -2082,22 +2071,45 @@ type ListSubnetsResponse = {
2082
2071
  type Rewards = {
2083
2072
  validationRewardAmount: string;
2084
2073
  delegationRewardAmount: string;
2074
+ rewardAddresses?: Array<string>;
2075
+ rewardTxHash?: string;
2076
+ };
2077
+
2078
+ type ValidatorHealthDetails = {
2079
+ /**
2080
+ * Percent of requests responded to in last polling.
2081
+ */
2082
+ reachabilityPercent: number;
2083
+ /**
2084
+ * Percent of requests benched on the P-Chain in last polling.
2085
+ */
2086
+ benchedPChainRequestsPercent: number;
2087
+ /**
2088
+ * Percentage of requests benched on the X-Chain in last polling.
2089
+ */
2090
+ benchedXChainRequestsPercent: number;
2091
+ /**
2092
+ * Percentage of requests benched on the C-Chain in last polling.
2093
+ */
2094
+ benchedCChainRequestsPercent: number;
2085
2095
  };
2086
2096
 
2087
2097
  type ActiveValidatorDetails = {
2088
2098
  nodeId: string;
2099
+ subnetId: string;
2089
2100
  amountStaked: string;
2090
- delegationFee: string;
2101
+ delegationFee?: string;
2091
2102
  startTimestamp: number;
2092
2103
  endTimestamp: number;
2093
2104
  stakePercentage: number;
2094
2105
  delegatorCount: number;
2095
- amountDelegated: string;
2106
+ amountDelegated?: string;
2096
2107
  uptimePerformance: number;
2097
- avalancheGoVersion: string;
2098
- delegationCapacity: string;
2108
+ avalancheGoVersion?: string;
2109
+ delegationCapacity?: string;
2099
2110
  potentialRewards: Rewards;
2100
2111
  validationStatus: ActiveValidatorDetails.validationStatus;
2112
+ validatorHealth: ValidatorHealthDetails;
2101
2113
  };
2102
2114
  declare namespace ActiveValidatorDetails {
2103
2115
  enum validationStatus {
@@ -2107,8 +2119,9 @@ declare namespace ActiveValidatorDetails {
2107
2119
 
2108
2120
  type CompletedValidatorDetails = {
2109
2121
  nodeId: string;
2122
+ subnetId: string;
2110
2123
  amountStaked: string;
2111
- delegationFee: string;
2124
+ delegationFee?: string;
2112
2125
  startTimestamp: number;
2113
2126
  endTimestamp: number;
2114
2127
  delegatorCount: number;
@@ -2123,8 +2136,9 @@ declare namespace CompletedValidatorDetails {
2123
2136
 
2124
2137
  type PendingValidatorDetails = {
2125
2138
  nodeId: string;
2139
+ subnetId: string;
2126
2140
  amountStaked: string;
2127
- delegationFee: string;
2141
+ delegationFee?: string;
2128
2142
  startTimestamp: number;
2129
2143
  endTimestamp: number;
2130
2144
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -2141,7 +2155,7 @@ type ListValidatorDetailsResponse = {
2141
2155
  */
2142
2156
  nextPageToken?: string;
2143
2157
  /**
2144
- * The list of Validator Details.
2158
+ * The list of validator Details.
2145
2159
  */
2146
2160
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
2147
2161
  };
@@ -2299,7 +2313,7 @@ declare class PrimaryNetworkService {
2299
2313
  * @returns ListValidatorDetailsResponse
2300
2314
  * @throws ApiError
2301
2315
  */
2302
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
2316
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
2303
2317
  /**
2304
2318
  * Either mainnet or a testnet.
2305
2319
  */
@@ -2312,6 +2326,30 @@ declare class PrimaryNetworkService {
2312
2326
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2313
2327
  */
2314
2328
  pageToken?: string;
2329
+ /**
2330
+ * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2331
+ */
2332
+ minTimeRemaining?: any;
2333
+ /**
2334
+ * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2335
+ */
2336
+ maxTimeRemaining?: any;
2337
+ /**
2338
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
2339
+ */
2340
+ minDelegationCapacity?: number;
2341
+ /**
2342
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
2343
+ */
2344
+ maxDelegationCapacity?: number;
2345
+ /**
2346
+ * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
2347
+ */
2348
+ minFeePercentage?: any;
2349
+ /**
2350
+ * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
2351
+ */
2352
+ maxFeePercentage?: any;
2315
2353
  /**
2316
2354
  * A comma separated list of node ids to filter by.
2317
2355
  */
@@ -2324,10 +2362,6 @@ declare class PrimaryNetworkService {
2324
2362
  * Validation status of the node.
2325
2363
  */
2326
2364
  validationStatus?: ValidationStatusType;
2327
- /**
2328
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
2329
- */
2330
- minDelegationCapacity?: any;
2331
2365
  }): CancelablePromise<ListValidatorDetailsResponse>;
2332
2366
  /**
2333
2367
  * Get single validator details
@@ -2367,7 +2401,7 @@ declare class PrimaryNetworkService {
2367
2401
  * @returns ListDelegatorDetailsResponse
2368
2402
  * @throws ApiError
2369
2403
  */
2370
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
2404
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
2371
2405
  /**
2372
2406
  * Either mainnet or a testnet.
2373
2407
  */
@@ -2380,6 +2414,10 @@ declare class PrimaryNetworkService {
2380
2414
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2381
2415
  */
2382
2416
  pageToken?: string;
2417
+ /**
2418
+ * A comma separated list of reward addresses to filter by.
2419
+ */
2420
+ rewardAddresses?: string;
2383
2421
  /**
2384
2422
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2385
2423
  */
@@ -2388,10 +2426,6 @@ declare class PrimaryNetworkService {
2388
2426
  * Delegation status of the node.
2389
2427
  */
2390
2428
  delegationStatus?: DelegationStatusType;
2391
- /**
2392
- * A comma separated list of reward addresses to filter by.
2393
- */
2394
- rewardAddresses?: string;
2395
2429
  /**
2396
2430
  * A comma separated list of node ids to filter by.
2397
2431
  */
@@ -2743,7 +2777,8 @@ declare class PrimaryNetworkBlocksService {
2743
2777
 
2744
2778
  declare enum RewardType {
2745
2779
  VALIDATOR = "VALIDATOR",
2746
- DELEGATOR = "DELEGATOR"
2780
+ DELEGATOR = "DELEGATOR",
2781
+ VALIDATOR_FEE = "VALIDATOR_FEE"
2747
2782
  }
2748
2783
 
2749
2784
  type HistoricalReward = {
@@ -2809,7 +2844,7 @@ declare class PrimaryNetworkRewardsService {
2809
2844
  * @returns ListPendingRewardsResponse
2810
2845
  * @throws ApiError
2811
2846
  */
2812
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2847
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2813
2848
  /**
2814
2849
  * Either mainnet or a testnet.
2815
2850
  */
@@ -2826,6 +2861,10 @@ declare class PrimaryNetworkRewardsService {
2826
2861
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2827
2862
  */
2828
2863
  pageToken?: string;
2864
+ /**
2865
+ * A comma separated list of node ids to filter by.
2866
+ */
2867
+ nodeIds?: string;
2829
2868
  /**
2830
2869
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2831
2870
  */
@@ -2837,7 +2876,7 @@ declare class PrimaryNetworkRewardsService {
2837
2876
  * @returns ListHistoricalRewardsResponse
2838
2877
  * @throws ApiError
2839
2878
  */
2840
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
2879
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
2841
2880
  /**
2842
2881
  * Either mainnet or a testnet.
2843
2882
  */
@@ -2854,6 +2893,10 @@ declare class PrimaryNetworkRewardsService {
2854
2893
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2855
2894
  */
2856
2895
  pageToken?: string;
2896
+ /**
2897
+ * A comma separated list of node ids to filter by.
2898
+ */
2899
+ nodeIds?: string;
2857
2900
  /**
2858
2901
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
2859
2902
  */
@@ -3108,6 +3151,7 @@ declare enum PChainTransactionType {
3108
3151
  ADD_VALIDATOR_TX = "AddValidatorTx",
3109
3152
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3110
3153
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3154
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3111
3155
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3112
3156
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3113
3157
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3210,6 +3254,7 @@ type PChainTransaction = {
3210
3254
  */
3211
3255
  estimatedReward?: string;
3212
3256
  rewardTxHash?: string;
3257
+ rewardAddresses?: Array<string>;
3213
3258
  memo?: string;
3214
3259
  /**
3215
3260
  * Present for RewardValidatorTx
@@ -3379,6 +3424,7 @@ declare enum PrimaryNetworkTxType {
3379
3424
  ADD_VALIDATOR_TX = "AddValidatorTx",
3380
3425
  ADD_DELEGATOR_TX = "AddDelegatorTx",
3381
3426
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
3427
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
3382
3428
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
3383
3429
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
3384
3430
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -3752,4 +3798,4 @@ declare class ApiError extends Error {
3752
3798
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3753
3799
  }
3754
3800
 
3755
- export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
3801
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainAsset, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
package/dist/index.js CHANGED
@@ -572,7 +572,7 @@ class EvmTransactionsService {
572
572
  }) {
573
573
  return this.httpRequest.request({
574
574
  method: "GET",
575
- url: "/v1/chains/{chainId}/addresses/{address}/deployments",
575
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
576
576
  path: {
577
577
  "chainId": chainId,
578
578
  "address": address
@@ -583,19 +583,6 @@ class EvmTransactionsService {
583
583
  }
584
584
  });
585
585
  }
586
- getContractMetadata({
587
- chainId,
588
- address
589
- }) {
590
- return this.httpRequest.request({
591
- method: "GET",
592
- url: "/v1/chains/{chainId}/addresses/{address}",
593
- path: {
594
- "chainId": chainId,
595
- "address": address
596
- }
597
- });
598
- }
599
586
  listTransfers({
600
587
  chainId,
601
588
  address,
@@ -971,10 +958,15 @@ class PrimaryNetworkService {
971
958
  network,
972
959
  pageSize = 10,
973
960
  pageToken,
961
+ minTimeRemaining,
962
+ maxTimeRemaining,
963
+ minDelegationCapacity,
964
+ maxDelegationCapacity,
965
+ minFeePercentage,
966
+ maxFeePercentage,
974
967
  nodeIds,
975
968
  sortOrder,
976
- validationStatus,
977
- minDelegationCapacity
969
+ validationStatus
978
970
  }) {
979
971
  return this.httpRequest.request({
980
972
  method: "GET",
@@ -985,10 +977,15 @@ class PrimaryNetworkService {
985
977
  query: {
986
978
  "pageSize": pageSize,
987
979
  "pageToken": pageToken,
980
+ "minTimeRemaining": minTimeRemaining,
981
+ "maxTimeRemaining": maxTimeRemaining,
982
+ "minDelegationCapacity": minDelegationCapacity,
983
+ "maxDelegationCapacity": maxDelegationCapacity,
984
+ "minFeePercentage": minFeePercentage,
985
+ "maxFeePercentage": maxFeePercentage,
988
986
  "nodeIds": nodeIds,
989
987
  "sortOrder": sortOrder,
990
- "validationStatus": validationStatus,
991
- "minDelegationCapacity": minDelegationCapacity
988
+ "validationStatus": validationStatus
992
989
  }
993
990
  });
994
991
  }
@@ -1019,9 +1016,9 @@ class PrimaryNetworkService {
1019
1016
  network,
1020
1017
  pageSize = 10,
1021
1018
  pageToken,
1019
+ rewardAddresses,
1022
1020
  sortOrder,
1023
1021
  delegationStatus,
1024
- rewardAddresses,
1025
1022
  nodeIds
1026
1023
  }) {
1027
1024
  return this.httpRequest.request({
@@ -1033,9 +1030,9 @@ class PrimaryNetworkService {
1033
1030
  query: {
1034
1031
  "pageSize": pageSize,
1035
1032
  "pageToken": pageToken,
1033
+ "rewardAddresses": rewardAddresses,
1036
1034
  "sortOrder": sortOrder,
1037
1035
  "delegationStatus": delegationStatus,
1038
- "rewardAddresses": rewardAddresses,
1039
1036
  "nodeIds": nodeIds
1040
1037
  }
1041
1038
  });
@@ -1137,6 +1134,7 @@ class PrimaryNetworkRewardsService {
1137
1134
  addresses,
1138
1135
  pageSize = 10,
1139
1136
  pageToken,
1137
+ nodeIds,
1140
1138
  sortOrder
1141
1139
  }) {
1142
1140
  return this.httpRequest.request({
@@ -1149,6 +1147,7 @@ class PrimaryNetworkRewardsService {
1149
1147
  "addresses": addresses,
1150
1148
  "pageSize": pageSize,
1151
1149
  "pageToken": pageToken,
1150
+ "nodeIds": nodeIds,
1152
1151
  "sortOrder": sortOrder
1153
1152
  }
1154
1153
  });
@@ -1158,6 +1157,7 @@ class PrimaryNetworkRewardsService {
1158
1157
  addresses,
1159
1158
  pageSize = 10,
1160
1159
  pageToken,
1160
+ nodeIds,
1161
1161
  sortOrder
1162
1162
  }) {
1163
1163
  return this.httpRequest.request({
@@ -1170,6 +1170,7 @@ class PrimaryNetworkRewardsService {
1170
1170
  "addresses": addresses,
1171
1171
  "pageSize": pageSize,
1172
1172
  "pageToken": pageToken,
1173
+ "nodeIds": nodeIds,
1173
1174
  "sortOrder": sortOrder
1174
1175
  }
1175
1176
  });
@@ -1677,6 +1678,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
1677
1678
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1678
1679
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1679
1680
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1681
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1680
1682
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1681
1683
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1682
1684
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1720,6 +1722,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
1720
1722
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
1721
1723
  PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
1722
1724
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
1725
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
1723
1726
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
1724
1727
  PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
1725
1728
  PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1760,6 +1763,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
1760
1763
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
1761
1764
  RewardType2["VALIDATOR"] = "VALIDATOR";
1762
1765
  RewardType2["DELEGATOR"] = "DELEGATOR";
1766
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
1763
1767
  return RewardType2;
1764
1768
  })(RewardType || {});
1765
1769
 
@@ -1,5 +1,6 @@
1
1
  type ActiveDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,19 +1,22 @@
1
1
  import { Rewards } from './Rewards.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
2
3
 
3
4
  type ActiveValidatorDetails = {
4
5
  nodeId: string;
6
+ subnetId: string;
5
7
  amountStaked: string;
6
- delegationFee: string;
8
+ delegationFee?: string;
7
9
  startTimestamp: number;
8
10
  endTimestamp: number;
9
11
  stakePercentage: number;
10
12
  delegatorCount: number;
11
- amountDelegated: string;
13
+ amountDelegated?: string;
12
14
  uptimePerformance: number;
13
- avalancheGoVersion: string;
14
- delegationCapacity: string;
15
+ avalancheGoVersion?: string;
16
+ delegationCapacity?: string;
15
17
  potentialRewards: Rewards;
16
18
  validationStatus: ActiveValidatorDetails.validationStatus;
19
+ validatorHealth: ValidatorHealthDetails;
17
20
  };
18
21
  declare namespace ActiveValidatorDetails {
19
22
  enum validationStatus {
@@ -22,6 +22,7 @@ type ChainInfo = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { ChainInfo };
@@ -1,5 +1,6 @@
1
1
  type CompletedDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -2,8 +2,9 @@ import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
4
  nodeId: string;
5
+ subnetId: string;
5
6
  amountStaked: string;
6
- delegationFee: string;
7
+ delegationFee?: string;
7
8
  startTimestamp: number;
8
9
  endTimestamp: number;
9
10
  delegatorCount: number;
@@ -22,6 +22,7 @@ type GetChainResponse = {
22
22
  utilityAddresses?: UtilityAddresses;
23
23
  networkToken: NetworkToken;
24
24
  chainLogoUri?: string;
25
+ private?: boolean;
25
26
  };
26
27
 
27
28
  export { GetChainResponse };
@@ -8,7 +8,7 @@ type ListValidatorDetailsResponse = {
8
8
  */
9
9
  nextPageToken?: string;
10
10
  /**
11
- * The list of Validator Details.
11
+ * The list of validator Details.
12
12
  */
13
13
  validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
14
14
  };
@@ -61,6 +61,7 @@ type PChainTransaction = {
61
61
  */
62
62
  estimatedReward?: string;
63
63
  rewardTxHash?: string;
64
+ rewardAddresses?: Array<string>;
64
65
  memo?: string;
65
66
  /**
66
67
  * Present for RewardValidatorTx
@@ -2,6 +2,7 @@ declare enum PChainTransactionType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
3
  ADD_DELEGATOR_TX = "AddDelegatorTx",
4
4
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
5
6
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
7
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
8
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -2,6 +2,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
2
  PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
3
  PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
4
  PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
5
6
  PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
7
  PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
8
  PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1,5 +1,6 @@
1
1
  type PendingDelegatorDetails = {
2
2
  txHash: string;
3
+ nodeId: string;
3
4
  rewardAddresses: Array<string>;
4
5
  amountDelegated: string;
5
6
  delegationFee: string;
@@ -1,7 +1,8 @@
1
1
  type PendingValidatorDetails = {
2
2
  nodeId: string;
3
+ subnetId: string;
3
4
  amountStaked: string;
4
- delegationFee: string;
5
+ delegationFee?: string;
5
6
  startTimestamp: number;
6
7
  endTimestamp: number;
7
8
  validationStatus: PendingValidatorDetails.validationStatus;
@@ -2,6 +2,7 @@ declare enum PrimaryNetworkTxType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
3
  ADD_DELEGATOR_TX = "AddDelegatorTx",
4
4
  ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
5
6
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
7
  REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
8
  REWARD_VALIDATOR_TX = "RewardValidatorTx",
@@ -2,6 +2,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
2
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
3
  PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
4
  PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
5
6
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
7
  PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
8
  PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
@@ -1,6 +1,7 @@
1
1
  declare enum RewardType {
2
2
  VALIDATOR = "VALIDATOR",
3
- DELEGATOR = "DELEGATOR"
3
+ DELEGATOR = "DELEGATOR",
4
+ VALIDATOR_FEE = "VALIDATOR_FEE"
4
5
  }
5
6
 
6
7
  export { RewardType };
@@ -1,6 +1,7 @@
1
1
  var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
2
  RewardType2["VALIDATOR"] = "VALIDATOR";
3
3
  RewardType2["DELEGATOR"] = "DELEGATOR";
4
+ RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
4
5
  return RewardType2;
5
6
  })(RewardType || {});
6
7
 
@@ -1,6 +1,8 @@
1
1
  type Rewards = {
2
2
  validationRewardAmount: string;
3
3
  delegationRewardAmount: string;
4
+ rewardAddresses?: Array<string>;
5
+ rewardTxHash?: string;
4
6
  };
5
7
 
6
8
  export { Rewards };
@@ -0,0 +1,20 @@
1
+ type ValidatorHealthDetails = {
2
+ /**
3
+ * Percent of requests responded to in last polling.
4
+ */
5
+ reachabilityPercent: number;
6
+ /**
7
+ * Percent of requests benched on the P-Chain in last polling.
8
+ */
9
+ benchedPChainRequestsPercent: number;
10
+ /**
11
+ * Percentage of requests benched on the X-Chain in last polling.
12
+ */
13
+ benchedXChainRequestsPercent: number;
14
+ /**
15
+ * Percentage of requests benched on the C-Chain in last polling.
16
+ */
17
+ benchedCChainRequestsPercent: number;
18
+ };
19
+
20
+ export { ValidatorHealthDetails };
@@ -1,7 +1,4 @@
1
1
  import { CurrencyCode } from '../models/CurrencyCode.js';
2
- import { Erc1155Contract } from '../models/Erc1155Contract.js';
3
- import { Erc20Contract } from '../models/Erc20Contract.js';
4
- import { Erc721Contract } from '../models/Erc721Contract.js';
5
2
  import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
6
3
  import { ListContractsResponse } from '../models/ListContractsResponse.js';
7
4
  import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
@@ -13,7 +10,6 @@ import { ListTransactionDetailsResponse } from '../models/ListTransactionDetails
13
10
  import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
14
11
  import { SortOrder } from '../models/SortOrder.js';
15
12
  import { TransactionStatus } from '../models/TransactionStatus.js';
16
- import { UnknownContract } from '../models/UnknownContract.js';
17
13
  import { CancelablePromise } from '../core/CancelablePromise.js';
18
14
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
19
15
 
@@ -64,22 +60,6 @@ declare class EvmTransactionsService {
64
60
  */
65
61
  pageToken?: string;
66
62
  }): CancelablePromise<ListContractsResponse>;
67
- /**
68
- * Get contract metadata
69
- * Gets metadata about the contract at the given address.
70
- * @returns any
71
- * @throws ApiError
72
- */
73
- getContractMetadata({ chainId, address, }: {
74
- /**
75
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
76
- */
77
- chainId: string;
78
- /**
79
- * Contract address on the relevant chain.
80
- */
81
- address: string;
82
- }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
83
63
  /**
84
64
  * List ERC transfers
85
65
  * Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
@@ -27,7 +27,7 @@ class EvmTransactionsService {
27
27
  }) {
28
28
  return this.httpRequest.request({
29
29
  method: "GET",
30
- url: "/v1/chains/{chainId}/addresses/{address}/deployments",
30
+ url: "/v1/chains/{chainId}/contracts/{address}/deployments",
31
31
  path: {
32
32
  "chainId": chainId,
33
33
  "address": address
@@ -38,19 +38,6 @@ class EvmTransactionsService {
38
38
  }
39
39
  });
40
40
  }
41
- getContractMetadata({
42
- chainId,
43
- address
44
- }) {
45
- return this.httpRequest.request({
46
- method: "GET",
47
- url: "/v1/chains/{chainId}/addresses/{address}",
48
- path: {
49
- "chainId": chainId,
50
- "address": address
51
- }
52
- });
53
- }
54
41
  listTransfers({
55
42
  chainId,
56
43
  address,
@@ -14,7 +14,7 @@ declare class PrimaryNetworkRewardsService {
14
14
  * @returns ListPendingRewardsResponse
15
15
  * @throws ApiError
16
16
  */
17
- listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
17
+ listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
18
18
  /**
19
19
  * Either mainnet or a testnet.
20
20
  */
@@ -31,6 +31,10 @@ declare class PrimaryNetworkRewardsService {
31
31
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
32
32
  */
33
33
  pageToken?: string;
34
+ /**
35
+ * A comma separated list of node ids to filter by.
36
+ */
37
+ nodeIds?: string;
34
38
  /**
35
39
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
36
40
  */
@@ -42,7 +46,7 @@ declare class PrimaryNetworkRewardsService {
42
46
  * @returns ListHistoricalRewardsResponse
43
47
  * @throws ApiError
44
48
  */
45
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
49
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
46
50
  /**
47
51
  * Either mainnet or a testnet.
48
52
  */
@@ -59,6 +63,10 @@ declare class PrimaryNetworkRewardsService {
59
63
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
60
64
  */
61
65
  pageToken?: string;
66
+ /**
67
+ * A comma separated list of node ids to filter by.
68
+ */
69
+ nodeIds?: string;
62
70
  /**
63
71
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
64
72
  */
@@ -7,6 +7,7 @@ class PrimaryNetworkRewardsService {
7
7
  addresses,
8
8
  pageSize = 10,
9
9
  pageToken,
10
+ nodeIds,
10
11
  sortOrder
11
12
  }) {
12
13
  return this.httpRequest.request({
@@ -19,6 +20,7 @@ class PrimaryNetworkRewardsService {
19
20
  "addresses": addresses,
20
21
  "pageSize": pageSize,
21
22
  "pageToken": pageToken,
23
+ "nodeIds": nodeIds,
22
24
  "sortOrder": sortOrder
23
25
  }
24
26
  });
@@ -28,6 +30,7 @@ class PrimaryNetworkRewardsService {
28
30
  addresses,
29
31
  pageSize = 10,
30
32
  pageToken,
33
+ nodeIds,
31
34
  sortOrder
32
35
  }) {
33
36
  return this.httpRequest.request({
@@ -40,6 +43,7 @@ class PrimaryNetworkRewardsService {
40
43
  "addresses": addresses,
41
44
  "pageSize": pageSize,
42
45
  "pageToken": pageToken,
46
+ "nodeIds": nodeIds,
43
47
  "sortOrder": sortOrder
44
48
  }
45
49
  });
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
118
118
  * @returns ListValidatorDetailsResponse
119
119
  * @throws ApiError
120
120
  */
121
- listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
121
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
122
122
  /**
123
123
  * Either mainnet or a testnet.
124
124
  */
@@ -131,6 +131,30 @@ declare class PrimaryNetworkService {
131
131
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
132
132
  */
133
133
  pageToken?: string;
134
+ /**
135
+ * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
136
+ */
137
+ minTimeRemaining?: any;
138
+ /**
139
+ * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
140
+ */
141
+ maxTimeRemaining?: any;
142
+ /**
143
+ * The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
144
+ */
145
+ minDelegationCapacity?: number;
146
+ /**
147
+ * The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
148
+ */
149
+ maxDelegationCapacity?: number;
150
+ /**
151
+ * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
152
+ */
153
+ minFeePercentage?: any;
154
+ /**
155
+ * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
156
+ */
157
+ maxFeePercentage?: any;
134
158
  /**
135
159
  * A comma separated list of node ids to filter by.
136
160
  */
@@ -143,10 +167,6 @@ declare class PrimaryNetworkService {
143
167
  * Validation status of the node.
144
168
  */
145
169
  validationStatus?: ValidationStatusType;
146
- /**
147
- * The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
148
- */
149
- minDelegationCapacity?: any;
150
170
  }): CancelablePromise<ListValidatorDetailsResponse>;
151
171
  /**
152
172
  * Get single validator details
@@ -186,7 +206,7 @@ declare class PrimaryNetworkService {
186
206
  * @returns ListDelegatorDetailsResponse
187
207
  * @throws ApiError
188
208
  */
189
- listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
209
+ listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
190
210
  /**
191
211
  * Either mainnet or a testnet.
192
212
  */
@@ -199,6 +219,10 @@ declare class PrimaryNetworkService {
199
219
  * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
200
220
  */
201
221
  pageToken?: string;
222
+ /**
223
+ * A comma separated list of reward addresses to filter by.
224
+ */
225
+ rewardAddresses?: string;
202
226
  /**
203
227
  * The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
204
228
  */
@@ -207,10 +231,6 @@ declare class PrimaryNetworkService {
207
231
  * Delegation status of the node.
208
232
  */
209
233
  delegationStatus?: DelegationStatusType;
210
- /**
211
- * A comma separated list of reward addresses to filter by.
212
- */
213
- rewardAddresses?: string;
214
234
  /**
215
235
  * A comma separated list of node ids to filter by.
216
236
  */
@@ -85,10 +85,15 @@ class PrimaryNetworkService {
85
85
  network,
86
86
  pageSize = 10,
87
87
  pageToken,
88
+ minTimeRemaining,
89
+ maxTimeRemaining,
90
+ minDelegationCapacity,
91
+ maxDelegationCapacity,
92
+ minFeePercentage,
93
+ maxFeePercentage,
88
94
  nodeIds,
89
95
  sortOrder,
90
- validationStatus,
91
- minDelegationCapacity
96
+ validationStatus
92
97
  }) {
93
98
  return this.httpRequest.request({
94
99
  method: "GET",
@@ -99,10 +104,15 @@ class PrimaryNetworkService {
99
104
  query: {
100
105
  "pageSize": pageSize,
101
106
  "pageToken": pageToken,
107
+ "minTimeRemaining": minTimeRemaining,
108
+ "maxTimeRemaining": maxTimeRemaining,
109
+ "minDelegationCapacity": minDelegationCapacity,
110
+ "maxDelegationCapacity": maxDelegationCapacity,
111
+ "minFeePercentage": minFeePercentage,
112
+ "maxFeePercentage": maxFeePercentage,
102
113
  "nodeIds": nodeIds,
103
114
  "sortOrder": sortOrder,
104
- "validationStatus": validationStatus,
105
- "minDelegationCapacity": minDelegationCapacity
115
+ "validationStatus": validationStatus
106
116
  }
107
117
  });
108
118
  }
@@ -133,9 +143,9 @@ class PrimaryNetworkService {
133
143
  network,
134
144
  pageSize = 10,
135
145
  pageToken,
146
+ rewardAddresses,
136
147
  sortOrder,
137
148
  delegationStatus,
138
- rewardAddresses,
139
149
  nodeIds
140
150
  }) {
141
151
  return this.httpRequest.request({
@@ -147,9 +157,9 @@ class PrimaryNetworkService {
147
157
  query: {
148
158
  "pageSize": pageSize,
149
159
  "pageToken": pageToken,
160
+ "rewardAddresses": rewardAddresses,
150
161
  "sortOrder": sortOrder,
151
162
  "delegationStatus": delegationStatus,
152
- "rewardAddresses": rewardAddresses,
153
163
  "nodeIds": nodeIds
154
164
  }
155
165
  });
package/esm/index.d.ts CHANGED
@@ -139,6 +139,7 @@ export { Utxo } from './generated/models/Utxo.js';
139
139
  export { UtxoCredential } from './generated/models/UtxoCredential.js';
140
140
  export { UtxoType } from './generated/models/UtxoType.js';
141
141
  export { ValidationStatusType } from './generated/models/ValidationStatusType.js';
142
+ export { ValidatorHealthDetails } from './generated/models/ValidatorHealthDetails.js';
142
143
  export { ValidatorsDetails } from './generated/models/ValidatorsDetails.js';
143
144
  export { VmName } from './generated/models/VmName.js';
144
145
  export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.134",
3
+ "version": "2.8.0-alpha.136",
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": "ca579f2a03d516fbcbc9499a55af29c4864e49a6"
32
+ "gitHead": "928e61d624062c55d2cc81b184d86e3a2cb92546"
33
33
  }