@avalabs/glacier-sdk 2.8.0-canary.ca01c76.0 → 2.8.0-canary.ec0cd0f.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.
Files changed (45) hide show
  1. package/dist/index.d.ts +319 -221
  2. package/dist/index.js +142 -67
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +27 -10
  5. package/esm/generated/core/ApiError.js +5 -0
  6. package/esm/generated/core/CancelablePromise.js +11 -6
  7. package/esm/generated/core/request.js +14 -31
  8. package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
  9. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  10. package/esm/generated/models/ActiveValidatorDetails.d.ts +13 -6
  11. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  12. package/esm/generated/models/ChainInfo.d.ts +1 -0
  13. package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
  14. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  15. package/esm/generated/models/CompletedValidatorDetails.d.ts +8 -3
  16. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  17. package/esm/generated/models/Erc20Contract.d.ts +1 -1
  18. package/esm/generated/models/GetChainResponse.d.ts +1 -0
  19. package/esm/generated/models/ListContractsResponse.d.ts +1 -1
  20. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +1 -1
  21. package/esm/generated/models/PChainTransaction.d.ts +1 -0
  22. package/esm/generated/models/PChainTransactionType.d.ts +1 -0
  23. package/esm/generated/models/PChainTransactionType.js +1 -0
  24. package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
  25. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  26. package/esm/generated/models/PendingValidatorDetails.d.ts +8 -4
  27. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  28. package/esm/generated/models/PrimaryNetworkTxType.d.ts +1 -0
  29. package/esm/generated/models/PrimaryNetworkTxType.js +1 -0
  30. package/esm/generated/models/RewardType.d.ts +2 -1
  31. package/esm/generated/models/RewardType.js +1 -0
  32. package/esm/generated/models/Rewards.d.ts +2 -0
  33. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  34. package/esm/generated/services/EvmContractsService.d.ts +29 -0
  35. package/esm/generated/services/EvmContractsService.js +20 -0
  36. package/esm/generated/services/EvmTransactionsService.js +1 -1
  37. package/esm/generated/services/NfTsService.d.ts +0 -18
  38. package/esm/generated/services/NfTsService.js +0 -13
  39. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -2
  40. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
  41. package/esm/generated/services/PrimaryNetworkService.d.ts +30 -10
  42. package/esm/generated/services/PrimaryNetworkService.js +16 -6
  43. package/esm/index.d.ts +2 -0
  44. package/esm/index.js +7 -0
  45. package/package.json +2 -2
@@ -1,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type ActiveDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: ActiveDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace ActiveDelegatorDetails {
14
+ enum delegationStatus {
15
+ ACTIVE = "active"
16
+ }
17
+ }
14
18
 
15
19
  export { ActiveDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveDelegatorDetails;
2
+ ((ActiveDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["ACTIVE"] = "active";
5
+ })(ActiveDelegatorDetails2.delegationStatus || (ActiveDelegatorDetails2.delegationStatus = {}));
6
+ })(ActiveDelegatorDetails || (ActiveDelegatorDetails = {}));
7
+
8
+ export { ActiveDelegatorDetails };
@@ -1,20 +1,27 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
2
+ import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
5
  nodeId: string;
6
+ subnetId: string;
6
7
  amountStaked: string;
7
- delegationFee: string;
8
+ delegationFee?: string;
8
9
  startTimestamp: number;
9
10
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
11
  stakePercentage: number;
12
12
  delegatorCount: number;
13
- amountDelegated: string;
13
+ amountDelegated?: string;
14
14
  uptimePerformance: number;
15
- avalancheGoVersion: string;
16
- delegationCapacity: string;
15
+ avalancheGoVersion?: string;
16
+ delegationCapacity?: string;
17
17
  potentialRewards: Rewards;
18
+ validationStatus: ActiveValidatorDetails.validationStatus;
19
+ validatorHealth: ValidatorHealthDetails;
18
20
  };
21
+ declare namespace ActiveValidatorDetails {
22
+ enum validationStatus {
23
+ ACTIVE = "active"
24
+ }
25
+ }
19
26
 
20
27
  export { ActiveValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var ActiveValidatorDetails;
2
+ ((ActiveValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["ACTIVE"] = "active";
5
+ })(ActiveValidatorDetails2.validationStatus || (ActiveValidatorDetails2.validationStatus = {}));
6
+ })(ActiveValidatorDetails || (ActiveValidatorDetails = {}));
7
+
8
+ export { ActiveValidatorDetails };
@@ -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,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type CompletedDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  grossReward: string;
12
10
  netReward: string;
11
+ delegationStatus: CompletedDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace CompletedDelegatorDetails {
14
+ enum delegationStatus {
15
+ COMPLETED = "completed"
16
+ }
17
+ }
14
18
 
15
19
  export { CompletedDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedDelegatorDetails;
2
+ ((CompletedDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedDelegatorDetails2.delegationStatus || (CompletedDelegatorDetails2.delegationStatus = {}));
6
+ })(CompletedDelegatorDetails || (CompletedDelegatorDetails = {}));
7
+
8
+ export { CompletedDelegatorDetails };
@@ -1,15 +1,20 @@
1
1
  import { Rewards } from './Rewards.js';
2
- import { ValidationStatusType } from './ValidationStatusType.js';
3
2
 
4
3
  type CompletedValidatorDetails = {
5
4
  nodeId: string;
5
+ subnetId: string;
6
6
  amountStaked: string;
7
- delegationFee: string;
7
+ delegationFee?: string;
8
8
  startTimestamp: number;
9
9
  endTimestamp: number;
10
- validationStatus: ValidationStatusType;
11
10
  delegatorCount: number;
12
11
  rewards: Rewards;
12
+ validationStatus: CompletedValidatorDetails.validationStatus;
13
13
  };
14
+ declare namespace CompletedValidatorDetails {
15
+ enum validationStatus {
16
+ COMPLETED = "completed"
17
+ }
18
+ }
14
19
 
15
20
  export { CompletedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var CompletedValidatorDetails;
2
+ ((CompletedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["COMPLETED"] = "completed";
5
+ })(CompletedValidatorDetails2.validationStatus || (CompletedValidatorDetails2.validationStatus = {}));
6
+ })(CompletedValidatorDetails || (CompletedValidatorDetails = {}));
7
+
8
+ export { CompletedValidatorDetails };
@@ -30,7 +30,7 @@ type Erc20Contract = {
30
30
  * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
31
31
  */
32
32
  decimals: number;
33
- pricingProviders: PricingProviders;
33
+ pricingProviders?: PricingProviders;
34
34
  };
35
35
  declare namespace Erc20Contract {
36
36
  enum ercType {
@@ -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 ListContractsResponse = {
8
8
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
9
9
  */
10
10
  nextPageToken?: string;
11
- contracts: Array<(UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract)>;
11
+ contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
12
12
  };
13
13
 
14
14
  export { ListContractsResponse };
@@ -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,15 +1,19 @@
1
- import { DelegationStatusType } from './DelegationStatusType.js';
2
-
3
1
  type PendingDelegatorDetails = {
4
2
  txHash: string;
3
+ nodeId: string;
5
4
  rewardAddresses: Array<string>;
6
5
  amountDelegated: string;
7
6
  delegationFee: string;
8
7
  startTimestamp: number;
9
8
  endTimestamp: number;
10
- delegationStatus: DelegationStatusType;
11
9
  estimatedGrossReward: string;
12
10
  estimatedNetReward: string;
11
+ delegationStatus: PendingDelegatorDetails.delegationStatus;
13
12
  };
13
+ declare namespace PendingDelegatorDetails {
14
+ enum delegationStatus {
15
+ PENDING = "pending"
16
+ }
17
+ }
14
18
 
15
19
  export { PendingDelegatorDetails };
@@ -0,0 +1,8 @@
1
+ var PendingDelegatorDetails;
2
+ ((PendingDelegatorDetails2) => {
3
+ ((delegationStatus2) => {
4
+ delegationStatus2["PENDING"] = "pending";
5
+ })(PendingDelegatorDetails2.delegationStatus || (PendingDelegatorDetails2.delegationStatus = {}));
6
+ })(PendingDelegatorDetails || (PendingDelegatorDetails = {}));
7
+
8
+ export { PendingDelegatorDetails };
@@ -1,12 +1,16 @@
1
- import { ValidationStatusType } from './ValidationStatusType.js';
2
-
3
1
  type PendingValidatorDetails = {
4
2
  nodeId: string;
3
+ subnetId: string;
5
4
  amountStaked: string;
6
- delegationFee: string;
5
+ delegationFee?: string;
7
6
  startTimestamp: number;
8
7
  endTimestamp: number;
9
- validationStatus: ValidationStatusType;
8
+ validationStatus: PendingValidatorDetails.validationStatus;
10
9
  };
10
+ declare namespace PendingValidatorDetails {
11
+ enum validationStatus {
12
+ PENDING = "pending"
13
+ }
14
+ }
11
15
 
12
16
  export { PendingValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var PendingValidatorDetails;
2
+ ((PendingValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["PENDING"] = "pending";
5
+ })(PendingValidatorDetails2.validationStatus || (PendingValidatorDetails2.validationStatus = {}));
6
+ })(PendingValidatorDetails || (PendingValidatorDetails = {}));
7
+
8
+ export { PendingValidatorDetails };
@@ -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 };
@@ -0,0 +1,29 @@
1
+ import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
+ import { Erc20Contract } from '../models/Erc20Contract.js';
3
+ import { Erc721Contract } from '../models/Erc721Contract.js';
4
+ import { UnknownContract } from '../models/UnknownContract.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class EvmContractsService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * Get contract metadata
13
+ * Gets metadata about the contract at the given address.
14
+ * @returns any
15
+ * @throws ApiError
16
+ */
17
+ getContractMetadata({ chainId, address, }: {
18
+ /**
19
+ * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
20
+ */
21
+ chainId: string;
22
+ /**
23
+ * Contract address on the relevant chain.
24
+ */
25
+ address: string;
26
+ }): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
27
+ }
28
+
29
+ export { EvmContractsService };
@@ -0,0 +1,20 @@
1
+ class EvmContractsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getContractMetadata({
6
+ chainId,
7
+ address
8
+ }) {
9
+ return this.httpRequest.request({
10
+ method: "GET",
11
+ url: "/v1/chains/{chainId}/addresses/{address}",
12
+ path: {
13
+ "chainId": chainId,
14
+ "address": address
15
+ }
16
+ });
17
+ }
18
+ }
19
+
20
+ export { EvmContractsService };
@@ -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
@@ -1,6 +1,4 @@
1
- import { Erc1155Contract } from '../models/Erc1155Contract.js';
2
1
  import { Erc1155Token } from '../models/Erc1155Token.js';
3
- import { Erc721Contract } from '../models/Erc721Contract.js';
4
2
  import { Erc721Token } from '../models/Erc721Token.js';
5
3
  import { CancelablePromise } from '../core/CancelablePromise.js';
6
4
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
@@ -48,22 +46,6 @@ declare class NfTsService {
48
46
  */
49
47
  tokenId: string;
50
48
  }): CancelablePromise<(Erc721Token | Erc1155Token)>;
51
- /**
52
- * Get collection details
53
- * Gets collection details for a NFT contract.
54
- * @returns any
55
- * @throws ApiError
56
- */
57
- getCollection({ chainId, address, }: {
58
- /**
59
- * A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
60
- */
61
- chainId: string;
62
- /**
63
- * Contract address on the relevant chain.
64
- */
65
- address: string;
66
- }): CancelablePromise<(Erc721Contract | Erc1155Contract)>;
67
49
  }
68
50
 
69
51
  export { NfTsService };
@@ -32,19 +32,6 @@ class NfTsService {
32
32
  }
33
33
  });
34
34
  }
35
- getCollection({
36
- chainId,
37
- address
38
- }) {
39
- return this.httpRequest.request({
40
- method: "GET",
41
- url: "/v1/chains/{chainId}/nfts/collections/{address}",
42
- path: {
43
- "chainId": chainId,
44
- "address": address
45
- }
46
- });
47
- }
48
35
  }
49
36
 
50
37
  export { NfTsService };
@@ -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
  */