@avalabs/glacier-sdk 2.8.0-canary.aeb3588.0 → 2.8.0-canary.c69ce41.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 +81 -21
- package/dist/index.js +23 -6
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +7 -4
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +2 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
- package/esm/generated/models/PChainTransaction.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.d.ts +1 -0
- package/esm/generated/models/PChainTransactionType.js +1 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +30 -10
- package/esm/generated/services/PrimaryNetworkService.js +16 -6
- package/esm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1983,6 +1983,7 @@ type ListBlockchainsResponse = {
|
|
|
1983
1983
|
|
|
1984
1984
|
type ActiveDelegatorDetails = {
|
|
1985
1985
|
txHash: string;
|
|
1986
|
+
nodeId: string;
|
|
1986
1987
|
rewardAddresses: Array<string>;
|
|
1987
1988
|
amountDelegated: string;
|
|
1988
1989
|
delegationFee: string;
|
|
@@ -2000,6 +2001,7 @@ declare namespace ActiveDelegatorDetails {
|
|
|
2000
2001
|
|
|
2001
2002
|
type CompletedDelegatorDetails = {
|
|
2002
2003
|
txHash: string;
|
|
2004
|
+
nodeId: string;
|
|
2003
2005
|
rewardAddresses: Array<string>;
|
|
2004
2006
|
amountDelegated: string;
|
|
2005
2007
|
delegationFee: string;
|
|
@@ -2017,6 +2019,7 @@ declare namespace CompletedDelegatorDetails {
|
|
|
2017
2019
|
|
|
2018
2020
|
type PendingDelegatorDetails = {
|
|
2019
2021
|
txHash: string;
|
|
2022
|
+
nodeId: string;
|
|
2020
2023
|
rewardAddresses: Array<string>;
|
|
2021
2024
|
amountDelegated: string;
|
|
2022
2025
|
delegationFee: string;
|
|
@@ -2068,22 +2071,45 @@ type ListSubnetsResponse = {
|
|
|
2068
2071
|
type Rewards = {
|
|
2069
2072
|
validationRewardAmount: string;
|
|
2070
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;
|
|
2071
2095
|
};
|
|
2072
2096
|
|
|
2073
2097
|
type ActiveValidatorDetails = {
|
|
2074
2098
|
nodeId: string;
|
|
2099
|
+
subnetId: string;
|
|
2075
2100
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2101
|
+
delegationFee?: string;
|
|
2077
2102
|
startTimestamp: number;
|
|
2078
2103
|
endTimestamp: number;
|
|
2079
2104
|
stakePercentage: number;
|
|
2080
2105
|
delegatorCount: number;
|
|
2081
|
-
amountDelegated
|
|
2106
|
+
amountDelegated?: string;
|
|
2082
2107
|
uptimePerformance: number;
|
|
2083
|
-
avalancheGoVersion
|
|
2084
|
-
delegationCapacity
|
|
2108
|
+
avalancheGoVersion?: string;
|
|
2109
|
+
delegationCapacity?: string;
|
|
2085
2110
|
potentialRewards: Rewards;
|
|
2086
2111
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2112
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2087
2113
|
};
|
|
2088
2114
|
declare namespace ActiveValidatorDetails {
|
|
2089
2115
|
enum validationStatus {
|
|
@@ -2093,8 +2119,9 @@ declare namespace ActiveValidatorDetails {
|
|
|
2093
2119
|
|
|
2094
2120
|
type CompletedValidatorDetails = {
|
|
2095
2121
|
nodeId: string;
|
|
2122
|
+
subnetId: string;
|
|
2096
2123
|
amountStaked: string;
|
|
2097
|
-
delegationFee
|
|
2124
|
+
delegationFee?: string;
|
|
2098
2125
|
startTimestamp: number;
|
|
2099
2126
|
endTimestamp: number;
|
|
2100
2127
|
delegatorCount: number;
|
|
@@ -2109,8 +2136,9 @@ declare namespace CompletedValidatorDetails {
|
|
|
2109
2136
|
|
|
2110
2137
|
type PendingValidatorDetails = {
|
|
2111
2138
|
nodeId: string;
|
|
2139
|
+
subnetId: string;
|
|
2112
2140
|
amountStaked: string;
|
|
2113
|
-
delegationFee
|
|
2141
|
+
delegationFee?: string;
|
|
2114
2142
|
startTimestamp: number;
|
|
2115
2143
|
endTimestamp: number;
|
|
2116
2144
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
@@ -2127,7 +2155,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2127
2155
|
*/
|
|
2128
2156
|
nextPageToken?: string;
|
|
2129
2157
|
/**
|
|
2130
|
-
* The list of
|
|
2158
|
+
* The list of validator Details.
|
|
2131
2159
|
*/
|
|
2132
2160
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2133
2161
|
};
|
|
@@ -2285,7 +2313,7 @@ declare class PrimaryNetworkService {
|
|
|
2285
2313
|
* @returns ListValidatorDetailsResponse
|
|
2286
2314
|
* @throws ApiError
|
|
2287
2315
|
*/
|
|
2288
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus,
|
|
2316
|
+
listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
|
|
2289
2317
|
/**
|
|
2290
2318
|
* Either mainnet or a testnet.
|
|
2291
2319
|
*/
|
|
@@ -2298,6 +2326,30 @@ declare class PrimaryNetworkService {
|
|
|
2298
2326
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2299
2327
|
*/
|
|
2300
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;
|
|
2301
2353
|
/**
|
|
2302
2354
|
* A comma separated list of node ids to filter by.
|
|
2303
2355
|
*/
|
|
@@ -2310,10 +2362,6 @@ declare class PrimaryNetworkService {
|
|
|
2310
2362
|
* Validation status of the node.
|
|
2311
2363
|
*/
|
|
2312
2364
|
validationStatus?: ValidationStatusType;
|
|
2313
|
-
/**
|
|
2314
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
|
|
2315
|
-
*/
|
|
2316
|
-
minDelegationCapacity?: any;
|
|
2317
2365
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2318
2366
|
/**
|
|
2319
2367
|
* Get single validator details
|
|
@@ -2353,7 +2401,7 @@ declare class PrimaryNetworkService {
|
|
|
2353
2401
|
* @returns ListDelegatorDetailsResponse
|
|
2354
2402
|
* @throws ApiError
|
|
2355
2403
|
*/
|
|
2356
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2404
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2357
2405
|
/**
|
|
2358
2406
|
* Either mainnet or a testnet.
|
|
2359
2407
|
*/
|
|
@@ -2366,6 +2414,10 @@ declare class PrimaryNetworkService {
|
|
|
2366
2414
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2367
2415
|
*/
|
|
2368
2416
|
pageToken?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* A comma separated list of reward addresses to filter by.
|
|
2419
|
+
*/
|
|
2420
|
+
rewardAddresses?: string;
|
|
2369
2421
|
/**
|
|
2370
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.
|
|
2371
2423
|
*/
|
|
@@ -2374,10 +2426,6 @@ declare class PrimaryNetworkService {
|
|
|
2374
2426
|
* Delegation status of the node.
|
|
2375
2427
|
*/
|
|
2376
2428
|
delegationStatus?: DelegationStatusType;
|
|
2377
|
-
/**
|
|
2378
|
-
* A comma separated list of reward addresses to filter by.
|
|
2379
|
-
*/
|
|
2380
|
-
rewardAddresses?: string;
|
|
2381
2429
|
/**
|
|
2382
2430
|
* A comma separated list of node ids to filter by.
|
|
2383
2431
|
*/
|
|
@@ -2729,7 +2777,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2729
2777
|
|
|
2730
2778
|
declare enum RewardType {
|
|
2731
2779
|
VALIDATOR = "VALIDATOR",
|
|
2732
|
-
DELEGATOR = "DELEGATOR"
|
|
2780
|
+
DELEGATOR = "DELEGATOR",
|
|
2781
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2733
2782
|
}
|
|
2734
2783
|
|
|
2735
2784
|
type HistoricalReward = {
|
|
@@ -2795,7 +2844,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2795
2844
|
* @returns ListPendingRewardsResponse
|
|
2796
2845
|
* @throws ApiError
|
|
2797
2846
|
*/
|
|
2798
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2847
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2799
2848
|
/**
|
|
2800
2849
|
* Either mainnet or a testnet.
|
|
2801
2850
|
*/
|
|
@@ -2812,6 +2861,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2812
2861
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2813
2862
|
*/
|
|
2814
2863
|
pageToken?: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* A comma separated list of node ids to filter by.
|
|
2866
|
+
*/
|
|
2867
|
+
nodeIds?: string;
|
|
2815
2868
|
/**
|
|
2816
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.
|
|
2817
2870
|
*/
|
|
@@ -2823,7 +2876,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2823
2876
|
* @returns ListHistoricalRewardsResponse
|
|
2824
2877
|
* @throws ApiError
|
|
2825
2878
|
*/
|
|
2826
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
2879
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2827
2880
|
/**
|
|
2828
2881
|
* Either mainnet or a testnet.
|
|
2829
2882
|
*/
|
|
@@ -2840,6 +2893,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2840
2893
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2841
2894
|
*/
|
|
2842
2895
|
pageToken?: string;
|
|
2896
|
+
/**
|
|
2897
|
+
* A comma separated list of node ids to filter by.
|
|
2898
|
+
*/
|
|
2899
|
+
nodeIds?: string;
|
|
2843
2900
|
/**
|
|
2844
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.
|
|
2845
2902
|
*/
|
|
@@ -3094,6 +3151,7 @@ declare enum PChainTransactionType {
|
|
|
3094
3151
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3095
3152
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3096
3153
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3154
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3097
3155
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3098
3156
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3099
3157
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3196,6 +3254,7 @@ type PChainTransaction = {
|
|
|
3196
3254
|
*/
|
|
3197
3255
|
estimatedReward?: string;
|
|
3198
3256
|
rewardTxHash?: string;
|
|
3257
|
+
rewardAddresses?: Array<string>;
|
|
3199
3258
|
memo?: string;
|
|
3200
3259
|
/**
|
|
3201
3260
|
* Present for RewardValidatorTx
|
|
@@ -3365,6 +3424,7 @@ declare enum PrimaryNetworkTxType {
|
|
|
3365
3424
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3366
3425
|
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3367
3426
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3427
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3368
3428
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3369
3429
|
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3370
3430
|
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
@@ -3738,4 +3798,4 @@ declare class ApiError extends Error {
|
|
|
3738
3798
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3739
3799
|
}
|
|
3740
3800
|
|
|
3741
|
-
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
|
@@ -958,10 +958,15 @@ class PrimaryNetworkService {
|
|
|
958
958
|
network,
|
|
959
959
|
pageSize = 10,
|
|
960
960
|
pageToken,
|
|
961
|
+
minTimeRemaining,
|
|
962
|
+
maxTimeRemaining,
|
|
963
|
+
minDelegationCapacity,
|
|
964
|
+
maxDelegationCapacity,
|
|
965
|
+
minFeePercentage,
|
|
966
|
+
maxFeePercentage,
|
|
961
967
|
nodeIds,
|
|
962
968
|
sortOrder,
|
|
963
|
-
validationStatus
|
|
964
|
-
minDelegationCapacity
|
|
969
|
+
validationStatus
|
|
965
970
|
}) {
|
|
966
971
|
return this.httpRequest.request({
|
|
967
972
|
method: "GET",
|
|
@@ -972,10 +977,15 @@ class PrimaryNetworkService {
|
|
|
972
977
|
query: {
|
|
973
978
|
"pageSize": pageSize,
|
|
974
979
|
"pageToken": pageToken,
|
|
980
|
+
"minTimeRemaining": minTimeRemaining,
|
|
981
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
982
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
983
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
984
|
+
"minFeePercentage": minFeePercentage,
|
|
985
|
+
"maxFeePercentage": maxFeePercentage,
|
|
975
986
|
"nodeIds": nodeIds,
|
|
976
987
|
"sortOrder": sortOrder,
|
|
977
|
-
"validationStatus": validationStatus
|
|
978
|
-
"minDelegationCapacity": minDelegationCapacity
|
|
988
|
+
"validationStatus": validationStatus
|
|
979
989
|
}
|
|
980
990
|
});
|
|
981
991
|
}
|
|
@@ -1006,9 +1016,9 @@ class PrimaryNetworkService {
|
|
|
1006
1016
|
network,
|
|
1007
1017
|
pageSize = 10,
|
|
1008
1018
|
pageToken,
|
|
1019
|
+
rewardAddresses,
|
|
1009
1020
|
sortOrder,
|
|
1010
1021
|
delegationStatus,
|
|
1011
|
-
rewardAddresses,
|
|
1012
1022
|
nodeIds
|
|
1013
1023
|
}) {
|
|
1014
1024
|
return this.httpRequest.request({
|
|
@@ -1020,9 +1030,9 @@ class PrimaryNetworkService {
|
|
|
1020
1030
|
query: {
|
|
1021
1031
|
"pageSize": pageSize,
|
|
1022
1032
|
"pageToken": pageToken,
|
|
1033
|
+
"rewardAddresses": rewardAddresses,
|
|
1023
1034
|
"sortOrder": sortOrder,
|
|
1024
1035
|
"delegationStatus": delegationStatus,
|
|
1025
|
-
"rewardAddresses": rewardAddresses,
|
|
1026
1036
|
"nodeIds": nodeIds
|
|
1027
1037
|
}
|
|
1028
1038
|
});
|
|
@@ -1124,6 +1134,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1124
1134
|
addresses,
|
|
1125
1135
|
pageSize = 10,
|
|
1126
1136
|
pageToken,
|
|
1137
|
+
nodeIds,
|
|
1127
1138
|
sortOrder
|
|
1128
1139
|
}) {
|
|
1129
1140
|
return this.httpRequest.request({
|
|
@@ -1136,6 +1147,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1136
1147
|
"addresses": addresses,
|
|
1137
1148
|
"pageSize": pageSize,
|
|
1138
1149
|
"pageToken": pageToken,
|
|
1150
|
+
"nodeIds": nodeIds,
|
|
1139
1151
|
"sortOrder": sortOrder
|
|
1140
1152
|
}
|
|
1141
1153
|
});
|
|
@@ -1145,6 +1157,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1145
1157
|
addresses,
|
|
1146
1158
|
pageSize = 10,
|
|
1147
1159
|
pageToken,
|
|
1160
|
+
nodeIds,
|
|
1148
1161
|
sortOrder
|
|
1149
1162
|
}) {
|
|
1150
1163
|
return this.httpRequest.request({
|
|
@@ -1157,6 +1170,7 @@ class PrimaryNetworkRewardsService {
|
|
|
1157
1170
|
"addresses": addresses,
|
|
1158
1171
|
"pageSize": pageSize,
|
|
1159
1172
|
"pageToken": pageToken,
|
|
1173
|
+
"nodeIds": nodeIds,
|
|
1160
1174
|
"sortOrder": sortOrder
|
|
1161
1175
|
}
|
|
1162
1176
|
});
|
|
@@ -1664,6 +1678,7 @@ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
|
|
|
1664
1678
|
PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1665
1679
|
PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1666
1680
|
PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1681
|
+
PChainTransactionType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1667
1682
|
PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1668
1683
|
PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1669
1684
|
PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1707,6 +1722,7 @@ var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
|
|
|
1707
1722
|
PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
|
|
1708
1723
|
PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
|
|
1709
1724
|
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
|
|
1725
|
+
PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
|
|
1710
1726
|
PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
|
|
1711
1727
|
PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
|
|
1712
1728
|
PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
|
|
@@ -1747,6 +1763,7 @@ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
|
|
|
1747
1763
|
var RewardType = /* @__PURE__ */ ((RewardType2) => {
|
|
1748
1764
|
RewardType2["VALIDATOR"] = "VALIDATOR";
|
|
1749
1765
|
RewardType2["DELEGATOR"] = "DELEGATOR";
|
|
1766
|
+
RewardType2["VALIDATOR_FEE"] = "VALIDATOR_FEE";
|
|
1750
1767
|
return RewardType2;
|
|
1751
1768
|
})(RewardType || {});
|
|
1752
1769
|
|
|
@@ -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
|
|
8
|
+
delegationFee?: string;
|
|
7
9
|
startTimestamp: number;
|
|
8
10
|
endTimestamp: number;
|
|
9
11
|
stakePercentage: number;
|
|
10
12
|
delegatorCount: number;
|
|
11
|
-
amountDelegated
|
|
13
|
+
amountDelegated?: string;
|
|
12
14
|
uptimePerformance: number;
|
|
13
|
-
avalancheGoVersion
|
|
14
|
-
delegationCapacity
|
|
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 {
|
|
@@ -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
|
|
7
|
+
delegationFee?: string;
|
|
7
8
|
startTimestamp: number;
|
|
8
9
|
endTimestamp: number;
|
|
9
10
|
delegatorCount: number;
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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 };
|
|
@@ -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,
|
|
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,
|
|
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-canary.
|
|
3
|
+
"version": "2.8.0-canary.c69ce41.0+c69ce41",
|
|
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": "
|
|
32
|
+
"gitHead": "c69ce41b8a1cd48ee018fdecfb5454dede2ae947"
|
|
33
33
|
}
|