@avalabs/glacier-sdk 2.8.0-canary.cde943d.0 → 2.8.0-canary.cf01dde.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 (47) hide show
  1. package/dist/index.d.ts +401 -124
  2. package/dist/index.js +113 -22
  3. package/esm/generated/Glacier.d.ts +2 -0
  4. package/esm/generated/Glacier.js +3 -0
  5. package/esm/generated/models/AddressActivityMetadata.d.ts +4 -1
  6. package/esm/generated/models/AssetWithPriceInfo.d.ts +34 -0
  7. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  8. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  9. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  10. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  11. package/esm/generated/models/HistoricalReward.d.ts +2 -5
  12. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
  13. package/esm/generated/models/NextPageToken.d.ts +8 -0
  14. package/esm/generated/models/PChainBalance.d.ts +7 -7
  15. package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
  16. package/esm/generated/models/PChainTransaction.d.ts +4 -4
  17. package/esm/generated/models/PChainTransactionType.d.ts +6 -5
  18. package/esm/generated/models/PChainTransactionType.js +6 -5
  19. package/esm/generated/models/PChainUtxo.d.ts +34 -14
  20. package/esm/generated/models/PendingReward.d.ts +2 -2
  21. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  22. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  23. package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
  24. package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
  25. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  26. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  27. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  28. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  29. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  30. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  31. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  32. package/esm/generated/models/Utxo.d.ts +28 -28
  33. package/esm/generated/models/UtxoCredential.d.ts +2 -2
  34. package/esm/generated/models/ValidationStatusType.d.ts +2 -1
  35. package/esm/generated/models/ValidationStatusType.js +1 -0
  36. package/esm/generated/services/DefaultService.d.ts +8 -0
  37. package/esm/generated/services/DefaultService.js +6 -0
  38. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +10 -5
  39. package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -2
  40. package/esm/generated/services/PrimaryNetworkService.d.ts +19 -19
  41. package/esm/generated/services/PrimaryNetworkService.js +10 -10
  42. package/esm/generated/services/TeleporterService.d.ts +65 -0
  43. package/esm/generated/services/TeleporterService.js +43 -0
  44. package/esm/index.d.ts +11 -1
  45. package/esm/index.js +6 -0
  46. package/package.json +2 -2
  47. package/esm/generated/models/PChainAsset.d.ts +0 -6
@@ -1,31 +1,51 @@
1
+ import { Asset } from './Asset.js';
1
2
  import { RewardType } from './RewardType.js';
2
3
  import { UtxoType } from './UtxoType.js';
3
4
 
4
5
  type PChainUtxo = {
5
6
  /**
6
- * An array of P-Chain wallet addresses.
7
+ * Addresses that are eligible to sign the consumption of this output.
7
8
  */
8
9
  addresses: Array<string>;
10
+ asset: Asset;
11
+ /**
12
+ * Blockchain ID on which this output is consumed on.
13
+ */
14
+ consumedOnChainId: string;
15
+ /**
16
+ * Transaction ID that consumed this output.
17
+ */
18
+ consumingTxHash?: string;
19
+ /**
20
+ * Blockchain ID on which this output is created on.
21
+ */
22
+ createdOnChainId: string;
23
+ /**
24
+ * UTXO ID for this output.
25
+ */
9
26
  utxoId: string;
10
- txHash: string;
11
- outputIndex: number;
27
+ /**
28
+ * @deprecated
29
+ */
30
+ amount: string;
31
+ /**
32
+ * @deprecated
33
+ */
34
+ assetId: string;
12
35
  blockNumber: string;
13
36
  blockTimestamp: number;
14
- consumingTxHash?: string;
15
- consumingBlockTimestamp?: number;
16
37
  consumingBlockNumber?: string;
17
- assetId: string;
18
- utxoType: UtxoType;
19
- amount: string;
20
- stakeableLocktime?: number;
38
+ consumingBlockTimestamp?: number;
21
39
  platformLocktime?: number;
22
- threshold?: number;
23
- createdOnChainId: string;
24
- consumedOnChainId: string;
40
+ outputIndex: number;
41
+ rewardType?: RewardType;
42
+ stakeableLocktime?: number;
25
43
  staked?: boolean;
26
- utxoStartTimestamp?: number;
44
+ threshold?: number;
45
+ txHash: string;
27
46
  utxoEndTimestamp?: number;
28
- rewardType?: RewardType;
47
+ utxoStartTimestamp?: number;
48
+ utxoType: UtxoType;
29
49
  };
30
50
 
31
51
  export { PChainUtxo };
@@ -1,4 +1,4 @@
1
- import { PChainAsset } from './PChainAsset.js';
1
+ import { Asset } from './Asset.js';
2
2
  import { RewardType } from './RewardType.js';
3
3
 
4
4
  type PendingReward = {
@@ -16,7 +16,7 @@ type PendingReward = {
16
16
  /**
17
17
  * An object containing P-chain Asset ID and the amount of that Asset ID.
18
18
  */
19
- estimatedReward: PChainAsset;
19
+ estimatedReward: Asset;
20
20
  };
21
21
 
22
22
  export { PendingReward };
@@ -0,0 +1,24 @@
1
+ import { TeleporterRewardDetails } from './TeleporterRewardDetails.js';
2
+ import { TeleporterSourceTransaction } from './TeleporterSourceTransaction.js';
3
+
4
+ type PendingTeleporterMessage = {
5
+ sourceBlockchainId: string;
6
+ destinationBlockchainId: string;
7
+ messageId: string;
8
+ from: string;
9
+ to: string;
10
+ data?: string;
11
+ messageExecuted: boolean;
12
+ receipts: Array<string>;
13
+ receiptDelivered: boolean;
14
+ rewardDetails: TeleporterRewardDetails;
15
+ sourceTransaction: TeleporterSourceTransaction;
16
+ status: PendingTeleporterMessage.status;
17
+ };
18
+ declare namespace PendingTeleporterMessage {
19
+ enum status {
20
+ PENDING = "pending"
21
+ }
22
+ }
23
+
24
+ export { PendingTeleporterMessage };
@@ -0,0 +1,8 @@
1
+ var PendingTeleporterMessage;
2
+ ((PendingTeleporterMessage2) => {
3
+ ((status2) => {
4
+ status2["PENDING"] = "pending";
5
+ })(PendingTeleporterMessage2.status || (PendingTeleporterMessage2.status = {}));
6
+ })(PendingTeleporterMessage || (PendingTeleporterMessage = {}));
7
+
8
+ export { PendingTeleporterMessage };
@@ -1,16 +1,17 @@
1
1
  declare enum PrimaryNetworkTxType {
2
2
  ADD_VALIDATOR_TX = "AddValidatorTx",
3
- ADD_DELEGATOR_TX = "AddDelegatorTx",
4
- ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
- ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
6
3
  ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
7
- REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
8
- REWARD_VALIDATOR_TX = "RewardValidatorTx",
4
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
9
5
  CREATE_CHAIN_TX = "CreateChainTx",
10
6
  CREATE_SUBNET_TX = "CreateSubnetTx",
11
7
  IMPORT_TX = "ImportTx",
12
8
  EXPORT_TX = "ExportTx",
13
9
  ADVANCE_TIME_TX = "AdvanceTimeTx",
10
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
11
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
12
+ TRANSFORM_SUBNET_TX = "TransformSubnetTx",
13
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
14
+ ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
14
15
  UNKNOWN = "UNKNOWN",
15
16
  BASE_TX = "BaseTx",
16
17
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,16 +1,17 @@
1
1
  var PrimaryNetworkTxType = /* @__PURE__ */ ((PrimaryNetworkTxType2) => {
2
2
  PrimaryNetworkTxType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
- PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
- PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
6
3
  PrimaryNetworkTxType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
7
- PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
8
- PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
4
+ PrimaryNetworkTxType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
9
5
  PrimaryNetworkTxType2["CREATE_CHAIN_TX"] = "CreateChainTx";
10
6
  PrimaryNetworkTxType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
11
7
  PrimaryNetworkTxType2["IMPORT_TX"] = "ImportTx";
12
8
  PrimaryNetworkTxType2["EXPORT_TX"] = "ExportTx";
13
9
  PrimaryNetworkTxType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
10
+ PrimaryNetworkTxType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
11
+ PrimaryNetworkTxType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
12
+ PrimaryNetworkTxType2["TRANSFORM_SUBNET_TX"] = "TransformSubnetTx";
13
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
14
+ PrimaryNetworkTxType2["ADD_PERMISSIONLESS_DELEGATOR_TX"] = "AddPermissionlessDelegatorTx";
14
15
  PrimaryNetworkTxType2["UNKNOWN"] = "UNKNOWN";
15
16
  PrimaryNetworkTxType2["BASE_TX"] = "BaseTx";
16
17
  PrimaryNetworkTxType2["CREATE_ASSET_TX"] = "CreateAssetTx";
@@ -0,0 +1,19 @@
1
+ type RemovedValidatorDetails = {
2
+ txHash: string;
3
+ nodeId: string;
4
+ subnetId: string;
5
+ amountStaked: string;
6
+ delegationFee?: string;
7
+ startTimestamp: number;
8
+ endTimestamp: number;
9
+ removeTxHash: string;
10
+ removeTimestamp: number;
11
+ validationStatus: RemovedValidatorDetails.validationStatus;
12
+ };
13
+ declare namespace RemovedValidatorDetails {
14
+ enum validationStatus {
15
+ REMOVED = "removed"
16
+ }
17
+ }
18
+
19
+ export { RemovedValidatorDetails };
@@ -0,0 +1,8 @@
1
+ var RemovedValidatorDetails;
2
+ ((RemovedValidatorDetails2) => {
3
+ ((validationStatus2) => {
4
+ validationStatus2["REMOVED"] = "removed";
5
+ })(RemovedValidatorDetails2.validationStatus || (RemovedValidatorDetails2.validationStatus = {}));
6
+ })(RemovedValidatorDetails || (RemovedValidatorDetails = {}));
7
+
8
+ export { RemovedValidatorDetails };
@@ -0,0 +1,5 @@
1
+ type SharedSecretsResponse = {
2
+ secret: string;
3
+ };
4
+
5
+ export { SharedSecretsResponse };
@@ -0,0 +1,9 @@
1
+ type TeleporterDestinationTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ rewardRedeemer: string;
6
+ delivererAddress: string;
7
+ };
8
+
9
+ export { TeleporterDestinationTransaction };
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TeleporterRewardDetails = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: TeleporterRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace TeleporterRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { TeleporterRewardDetails };
@@ -0,0 +1,8 @@
1
+ var TeleporterRewardDetails;
2
+ ((TeleporterRewardDetails2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
6
+ })(TeleporterRewardDetails || (TeleporterRewardDetails = {}));
7
+
8
+ export { TeleporterRewardDetails };
@@ -0,0 +1,7 @@
1
+ type TeleporterSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { TeleporterSourceTransaction };
@@ -3,66 +3,66 @@ import { UtxoCredential } from './UtxoCredential.js';
3
3
 
4
4
  type Utxo = {
5
5
  /**
6
- * UTXO ID for this output.
6
+ * Addresses that are eligible to sign the consumption of this output.
7
7
  */
8
- utxoId: string;
8
+ addresses: Array<string>;
9
9
  asset: Asset;
10
10
  /**
11
- * Type of output.
11
+ * Blockchain ID on which this output is consumed on.
12
12
  */
13
- utxoType: string;
13
+ consumedOnChainId: string;
14
14
  /**
15
- * Blockchain ID on which this output is created on.
15
+ * Transaction ID that consumed this output.
16
16
  */
17
- createdOnChainId: string;
17
+ consumingTxHash?: string;
18
18
  /**
19
- * Blockchain ID on which this output is consumed on.
19
+ * Blockchain ID on which this output is created on.
20
20
  */
21
- consumedOnChainId: string;
21
+ createdOnChainId: string;
22
22
  /**
23
- * Transaction ID that created this output.
23
+ * UTXO ID for this output.
24
24
  */
25
- creationTxHash: string;
25
+ utxoId: string;
26
26
  /**
27
- * Transaction ID that consumed this output.
27
+ * Unix timestamp in seconds at which this output was consumed.
28
28
  */
29
- consumingTxHash?: string;
29
+ consumingTxTimestamp?: number;
30
30
  /**
31
- * Timestamp in seconds this output is consumed.
31
+ * Transaction ID that created this output.
32
32
  */
33
- consumingTxTimestamp?: number;
33
+ creationTxHash: string;
34
34
  /**
35
- * Postion of this output in a list of lexiographically sorted outputs of a transaction.
35
+ * Credentials that signed the transaction to consume this utxo
36
36
  */
37
- outputIndex: string;
37
+ credentials?: Array<UtxoCredential>;
38
38
  /**
39
- * Timestamp in seconds this outptut is created on.
39
+ * Index representing the minting set for the NFT mint output.
40
40
  */
41
- timestamp: number;
41
+ groupId?: number;
42
42
  /**
43
43
  * Locktime in seconds after which this output can be consumed.
44
44
  */
45
45
  locktime: number;
46
46
  /**
47
- * Minimum number of signatures required to consume this output.
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
48
  */
49
- threshold: number;
49
+ outputIndex: string;
50
50
  /**
51
- * Addresses that are eligible to sign the consumption of this output.
51
+ * Hex encoded data for NFT assets.
52
52
  */
53
- addresses: Array<string>;
53
+ payload?: string;
54
54
  /**
55
- * Hex encoded data for NFT assets
55
+ * Minimum number of signatures required to consume this output.
56
56
  */
57
- payload?: string;
57
+ threshold: number;
58
58
  /**
59
- * Index representing the minting set for the NFT mint output
59
+ * Unix timestamp in seconds at which this outptut was created.
60
60
  */
61
- groupId?: number;
61
+ timestamp: number;
62
62
  /**
63
- * Credentials that signed the transaction to consume this utxo
63
+ * Type of output.
64
64
  */
65
- credentials?: Array<UtxoCredential>;
65
+ utxoType: string;
66
66
  };
67
67
 
68
68
  export { Utxo };
@@ -1,10 +1,10 @@
1
1
  type UtxoCredential = {
2
2
  /**
3
- * Signature provided to consume the output
3
+ * Signature provided to consume the output.
4
4
  */
5
5
  signature?: string;
6
6
  /**
7
- * Public key associated with the signature
7
+ * Public key associated with the signature.
8
8
  */
9
9
  publicKey?: string;
10
10
  };
@@ -1,7 +1,8 @@
1
1
  declare enum ValidationStatusType {
2
2
  COMPLETED = "completed",
3
3
  ACTIVE = "active",
4
- PENDING = "pending"
4
+ PENDING = "pending",
5
+ REMOVED = "removed"
5
6
  }
6
7
 
7
8
  export { ValidationStatusType };
@@ -2,6 +2,7 @@ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
2
  ValidationStatusType2["COMPLETED"] = "completed";
3
3
  ValidationStatusType2["ACTIVE"] = "active";
4
4
  ValidationStatusType2["PENDING"] = "pending";
5
+ ValidationStatusType2["REMOVED"] = "removed";
5
6
  return ValidationStatusType2;
6
7
  })(ValidationStatusType || {});
7
8
 
@@ -1,5 +1,6 @@
1
1
  import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
2
  import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
3
4
  import { WebhookResponse } from '../models/WebhookResponse.js';
4
5
  import { WebhookStatus } from '../models/WebhookStatus.js';
5
6
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -54,6 +55,13 @@ declare class DefaultService {
54
55
  */
55
56
  id: string;
56
57
  }): CancelablePromise<WebhookResponse>;
58
+ /**
59
+ * Generate a shared secret
60
+ * Generates a new shared secret.
61
+ * @returns SharedSecretsResponse
62
+ * @throws ApiError
63
+ */
64
+ generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
57
65
  }
58
66
 
59
67
  export { DefaultService };
@@ -44,6 +44,12 @@ class DefaultService {
44
44
  }
45
45
  });
46
46
  }
47
+ generateSharedSecret() {
48
+ return this.httpRequest.request({
49
+ method: "POST",
50
+ url: "/v1/webhooks:generateSharedSecret"
51
+ });
52
+ }
47
53
  }
48
54
 
49
55
  export { DefaultService };
@@ -1,3 +1,4 @@
1
+ import { CurrencyCode } from '../models/CurrencyCode.js';
1
2
  import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
2
3
  import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
3
4
  import { Network } from '../models/Network.js';
@@ -20,7 +21,7 @@ declare class PrimaryNetworkRewardsService {
20
21
  */
21
22
  network: Network;
22
23
  /**
23
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
24
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
24
25
  */
25
26
  addresses?: string;
26
27
  /**
@@ -32,7 +33,7 @@ declare class PrimaryNetworkRewardsService {
32
33
  */
33
34
  pageToken?: string;
34
35
  /**
35
- * A comma separated list of node ids to filter by.
36
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
36
37
  */
37
38
  nodeIds?: string;
38
39
  /**
@@ -46,13 +47,13 @@ declare class PrimaryNetworkRewardsService {
46
47
  * @returns ListHistoricalRewardsResponse
47
48
  * @throws ApiError
48
49
  */
49
- listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
50
+ listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, currency, }: {
50
51
  /**
51
52
  * Either mainnet or a testnet.
52
53
  */
53
54
  network: Network;
54
55
  /**
55
- * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
56
+ * A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
56
57
  */
57
58
  addresses?: string;
58
59
  /**
@@ -64,13 +65,17 @@ declare class PrimaryNetworkRewardsService {
64
65
  */
65
66
  pageToken?: string;
66
67
  /**
67
- * A comma separated list of node ids to filter by.
68
+ * A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
68
69
  */
69
70
  nodeIds?: string;
70
71
  /**
71
72
  * 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.
72
73
  */
73
74
  sortOrder?: SortOrder;
75
+ /**
76
+ * The currency that return values should use. Defaults to USD.
77
+ */
78
+ currency?: CurrencyCode;
74
79
  }): CancelablePromise<ListHistoricalRewardsResponse>;
75
80
  }
76
81
 
@@ -31,7 +31,8 @@ class PrimaryNetworkRewardsService {
31
31
  pageSize = 10,
32
32
  pageToken,
33
33
  nodeIds,
34
- sortOrder
34
+ sortOrder,
35
+ currency
35
36
  }) {
36
37
  return this.httpRequest.request({
37
38
  method: "GET",
@@ -44,7 +45,8 @@ class PrimaryNetworkRewardsService {
44
45
  "pageSize": pageSize,
45
46
  "pageToken": pageToken,
46
47
  "nodeIds": nodeIds,
47
- "sortOrder": sortOrder
48
+ "sortOrder": sortOrder,
49
+ "currency": currency
48
50
  }
49
51
  });
50
52
  }
@@ -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, subnetId, }: {
121
+ listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
122
122
  /**
123
123
  * Either mainnet or a testnet.
124
124
  */
@@ -132,41 +132,41 @@ declare class PrimaryNetworkService {
132
132
  */
133
133
  pageToken?: string;
134
134
  /**
135
- * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
135
+ * A comma separated list of node ids to filter by.
136
136
  */
137
- minTimeRemaining?: any;
137
+ nodeIds?: string;
138
138
  /**
139
- * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
139
+ * 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.
140
140
  */
141
- maxTimeRemaining?: any;
141
+ sortOrder?: SortOrder;
142
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
143
+ * Validation status of the node.
144
144
  */
145
- minDelegationCapacity?: number;
145
+ validationStatus?: ValidationStatusType;
146
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.
147
+ * 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
148
148
  */
149
- maxDelegationCapacity?: number;
149
+ minDelegationCapacity?: any;
150
150
  /**
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.
151
+ * 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.
152
152
  */
153
- minFeePercentage?: any;
153
+ maxDelegationCapacity?: any;
154
154
  /**
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.
155
+ * The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
156
156
  */
157
- maxFeePercentage?: any;
157
+ minTimeRemaining?: any;
158
158
  /**
159
- * A comma separated list of node ids to filter by.
159
+ * The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
160
160
  */
161
- nodeIds?: string;
161
+ maxTimeRemaining?: any;
162
162
  /**
163
- * 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.
163
+ * 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.
164
164
  */
165
- sortOrder?: SortOrder;
165
+ minFeePercentage?: any;
166
166
  /**
167
- * Validation status of the node.
167
+ * 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.
168
168
  */
169
- validationStatus?: ValidationStatusType;
169
+ maxFeePercentage?: any;
170
170
  /**
171
171
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
172
  */
@@ -85,15 +85,15 @@ class PrimaryNetworkService {
85
85
  network,
86
86
  pageSize = 10,
87
87
  pageToken,
88
- minTimeRemaining,
89
- maxTimeRemaining,
88
+ nodeIds,
89
+ sortOrder,
90
+ validationStatus,
90
91
  minDelegationCapacity,
91
92
  maxDelegationCapacity,
93
+ minTimeRemaining,
94
+ maxTimeRemaining,
92
95
  minFeePercentage,
93
96
  maxFeePercentage,
94
- nodeIds,
95
- sortOrder,
96
- validationStatus,
97
97
  subnetId
98
98
  }) {
99
99
  return this.httpRequest.request({
@@ -105,15 +105,15 @@ class PrimaryNetworkService {
105
105
  query: {
106
106
  "pageSize": pageSize,
107
107
  "pageToken": pageToken,
108
- "minTimeRemaining": minTimeRemaining,
109
- "maxTimeRemaining": maxTimeRemaining,
108
+ "nodeIds": nodeIds,
109
+ "sortOrder": sortOrder,
110
+ "validationStatus": validationStatus,
110
111
  "minDelegationCapacity": minDelegationCapacity,
111
112
  "maxDelegationCapacity": maxDelegationCapacity,
113
+ "minTimeRemaining": minTimeRemaining,
114
+ "maxTimeRemaining": maxTimeRemaining,
112
115
  "minFeePercentage": minFeePercentage,
113
116
  "maxFeePercentage": maxFeePercentage,
114
- "nodeIds": nodeIds,
115
- "sortOrder": sortOrder,
116
- "validationStatus": validationStatus,
117
117
  "subnetId": subnetId
118
118
  }
119
119
  });