@avalabs/glacier-sdk 2.8.0-canary.9469caf.0 → 2.8.0-canary.9497cd7.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 CHANGED
@@ -2228,6 +2228,7 @@ type ValidatorHealthDetails = {
2228
2228
  };
2229
2229
 
2230
2230
  type ActiveValidatorDetails = {
2231
+ txHash: string;
2231
2232
  nodeId: string;
2232
2233
  subnetId: string;
2233
2234
  amountStaked: string;
@@ -2251,6 +2252,7 @@ declare namespace ActiveValidatorDetails {
2251
2252
  }
2252
2253
 
2253
2254
  type CompletedValidatorDetails = {
2255
+ txHash: string;
2254
2256
  nodeId: string;
2255
2257
  subnetId: string;
2256
2258
  amountStaked: string;
@@ -2268,6 +2270,7 @@ declare namespace CompletedValidatorDetails {
2268
2270
  }
2269
2271
 
2270
2272
  type PendingValidatorDetails = {
2273
+ txHash: string;
2271
2274
  nodeId: string;
2272
2275
  subnetId: string;
2273
2276
  amountStaked: string;
@@ -2446,7 +2449,7 @@ declare class PrimaryNetworkService {
2446
2449
  * @returns ListValidatorDetailsResponse
2447
2450
  * @throws ApiError
2448
2451
  */
2449
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
2452
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
2450
2453
  /**
2451
2454
  * Either mainnet or a testnet.
2452
2455
  */
@@ -2460,11 +2463,11 @@ declare class PrimaryNetworkService {
2460
2463
  */
2461
2464
  pageToken?: string;
2462
2465
  /**
2463
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2466
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
2464
2467
  */
2465
2468
  minTimeRemaining?: any;
2466
2469
  /**
2467
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
2470
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
2468
2471
  */
2469
2472
  maxTimeRemaining?: any;
2470
2473
  /**
@@ -2476,11 +2479,11 @@ declare class PrimaryNetworkService {
2476
2479
  */
2477
2480
  maxDelegationCapacity?: number;
2478
2481
  /**
2479
- * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
2482
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
2480
2483
  */
2481
2484
  minFeePercentage?: any;
2482
2485
  /**
2483
- * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
2486
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
2484
2487
  */
2485
2488
  maxFeePercentage?: any;
2486
2489
  /**
@@ -2495,6 +2498,10 @@ declare class PrimaryNetworkService {
2495
2498
  * Validation status of the node.
2496
2499
  */
2497
2500
  validationStatus?: ValidationStatusType;
2501
+ /**
2502
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
2503
+ */
2504
+ subnetId?: string;
2498
2505
  }): CancelablePromise<ListValidatorDetailsResponse>;
2499
2506
  /**
2500
2507
  * Get single validator details
package/dist/index.js CHANGED
@@ -994,7 +994,8 @@ class PrimaryNetworkService {
994
994
  maxFeePercentage,
995
995
  nodeIds,
996
996
  sortOrder,
997
- validationStatus
997
+ validationStatus,
998
+ subnetId
998
999
  }) {
999
1000
  return this.httpRequest.request({
1000
1001
  method: "GET",
@@ -1013,7 +1014,8 @@ class PrimaryNetworkService {
1013
1014
  "maxFeePercentage": maxFeePercentage,
1014
1015
  "nodeIds": nodeIds,
1015
1016
  "sortOrder": sortOrder,
1016
- "validationStatus": validationStatus
1017
+ "validationStatus": validationStatus,
1018
+ "subnetId": subnetId
1017
1019
  }
1018
1020
  });
1019
1021
  }
@@ -2,6 +2,7 @@ import { Rewards } from './Rewards.js';
2
2
  import { ValidatorHealthDetails } from './ValidatorHealthDetails.js';
3
3
 
4
4
  type ActiveValidatorDetails = {
5
+ txHash: string;
5
6
  nodeId: string;
6
7
  subnetId: string;
7
8
  amountStaked: string;
@@ -1,6 +1,7 @@
1
1
  import { Rewards } from './Rewards.js';
2
2
 
3
3
  type CompletedValidatorDetails = {
4
+ txHash: string;
4
5
  nodeId: string;
5
6
  subnetId: string;
6
7
  amountStaked: string;
@@ -1,4 +1,5 @@
1
1
  type PendingValidatorDetails = {
2
+ txHash: string;
2
3
  nodeId: string;
3
4
  subnetId: string;
4
5
  amountStaked: string;
@@ -118,7 +118,7 @@ declare class PrimaryNetworkService {
118
118
  * @returns ListValidatorDetailsResponse
119
119
  * @throws ApiError
120
120
  */
121
- listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, }: {
121
+ listValidators({ network, pageSize, pageToken, minTimeRemaining, maxTimeRemaining, minDelegationCapacity, maxDelegationCapacity, minFeePercentage, maxFeePercentage, nodeIds, sortOrder, validationStatus, subnetId, }: {
122
122
  /**
123
123
  * Either mainnet or a testnet.
124
124
  */
@@ -132,11 +132,11 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum delegation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
136
136
  */
137
137
  minTimeRemaining?: any;
138
138
  /**
139
- * The maximum delegation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
140
140
  */
141
141
  maxTimeRemaining?: any;
142
142
  /**
@@ -148,11 +148,11 @@ declare class PrimaryNetworkService {
148
148
  */
149
149
  maxDelegationCapacity?: number;
150
150
  /**
151
- * The minimum fee percentage, used to filter the set of nodes being returned. Default is 2, as per the Avalanche spec.
151
+ * The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
152
152
  */
153
153
  minFeePercentage?: any;
154
154
  /**
155
- * The maximum fee percentage, used to filter the set of nodes being returned. Default is 100.
155
+ * The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
156
156
  */
157
157
  maxFeePercentage?: any;
158
158
  /**
@@ -167,6 +167,10 @@ declare class PrimaryNetworkService {
167
167
  * Validation status of the node.
168
168
  */
169
169
  validationStatus?: ValidationStatusType;
170
+ /**
171
+ * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
+ */
173
+ subnetId?: string;
170
174
  }): CancelablePromise<ListValidatorDetailsResponse>;
171
175
  /**
172
176
  * Get single validator details
@@ -93,7 +93,8 @@ class PrimaryNetworkService {
93
93
  maxFeePercentage,
94
94
  nodeIds,
95
95
  sortOrder,
96
- validationStatus
96
+ validationStatus,
97
+ subnetId
97
98
  }) {
98
99
  return this.httpRequest.request({
99
100
  method: "GET",
@@ -112,7 +113,8 @@ class PrimaryNetworkService {
112
113
  "maxFeePercentage": maxFeePercentage,
113
114
  "nodeIds": nodeIds,
114
115
  "sortOrder": sortOrder,
115
- "validationStatus": validationStatus
116
+ "validationStatus": validationStatus,
117
+ "subnetId": subnetId
116
118
  }
117
119
  });
118
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-canary.9469caf.0+9469caf",
3
+ "version": "2.8.0-canary.9497cd7.0+9497cd7",
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": "9469caf7a511af0d32109e322cf99e06683fbada"
32
+ "gitHead": "9497cd7b8ccf9a6926664f3b4bc078a898f1f2c5"
33
33
  }