@avalabs/glacier-sdk 2.8.0-canary.fe6d2a3.0 → 2.8.0-canary.fedc8b0.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 (102) hide show
  1. package/dist/index.d.ts +671 -272
  2. package/dist/index.js +320 -109
  3. package/esm/generated/Glacier.d.ts +6 -0
  4. package/esm/generated/Glacier.js +9 -0
  5. package/esm/generated/core/CancelablePromise.d.ts +2 -8
  6. package/esm/generated/core/CancelablePromise.js +38 -36
  7. package/esm/generated/core/request.js +3 -2
  8. package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
  9. package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
  10. package/esm/generated/models/{Asset.d.ts → AggregatedAssetAmount.d.ts} +3 -5
  11. package/esm/generated/models/{XChainAssetBalance.d.ts → AssetAmount.d.ts} +2 -6
  12. package/esm/generated/models/AssetWithPriceInfo.d.ts +0 -3
  13. package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
  14. package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
  15. package/esm/generated/models/CChainSharedAssetBalance.d.ts +0 -3
  16. package/esm/generated/models/ChainInfo.d.ts +1 -3
  17. package/esm/generated/models/ChainStatus.d.ts +3 -0
  18. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
  19. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
  20. package/esm/generated/models/CurrencyCode.d.ts +3 -0
  21. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
  22. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  23. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
  24. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  25. package/esm/generated/models/EVMInput.d.ts +3 -3
  26. package/esm/generated/models/EVMOperationType.d.ts +5 -0
  27. package/esm/generated/models/EVMOperationType.js +6 -0
  28. package/esm/generated/models/EVMOutput.d.ts +3 -3
  29. package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
  30. package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
  31. package/esm/generated/models/GetChainResponse.d.ts +1 -3
  32. package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
  33. package/esm/generated/models/GlacierApiFeature.js +7 -0
  34. package/esm/generated/models/ListNftTokens.d.ts +1 -1
  35. package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
  36. package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
  37. package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
  38. package/esm/generated/models/Method.d.ts +0 -3
  39. package/esm/generated/models/Money.d.ts +0 -3
  40. package/esm/generated/models/NextPageToken.d.ts +8 -0
  41. package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
  42. package/esm/generated/models/OperationType.d.ts +4 -2
  43. package/esm/generated/models/OperationType.js +3 -1
  44. package/esm/generated/models/PChainBalance.d.ts +15 -15
  45. package/esm/generated/models/PChainSharedAsset.d.ts +1 -3
  46. package/esm/generated/models/PChainTransaction.d.ts +12 -7
  47. package/esm/generated/models/PChainTransactionType.d.ts +2 -0
  48. package/esm/generated/models/PChainTransactionType.js +2 -0
  49. package/esm/generated/models/PChainUtxo.d.ts +2 -2
  50. package/esm/generated/models/PendingReward.d.ts +3 -3
  51. package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
  52. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  53. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +3 -0
  54. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +3 -0
  55. package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
  56. package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
  57. package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
  58. package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
  59. package/esm/generated/models/PrimaryNetworkTxType.js +2 -1
  60. package/esm/generated/models/RegisterWebhookRequest.d.ts +8 -3
  61. package/esm/generated/models/RpcErrorDto.d.ts +7 -0
  62. package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
  63. package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
  64. package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
  65. package/esm/generated/models/SortByOption.d.ts +9 -0
  66. package/esm/generated/models/SortByOption.js +10 -0
  67. package/esm/generated/models/Subnet.d.ts +17 -0
  68. package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
  69. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  70. package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
  71. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  72. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  73. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  74. package/esm/generated/models/TransactionMethodType.d.ts +3 -0
  75. package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
  76. package/esm/generated/models/Utxo.d.ts +2 -2
  77. package/esm/generated/models/WebhookResponse.d.ts +8 -0
  78. package/esm/generated/models/XChainAssetDetails.d.ts +0 -6
  79. package/esm/generated/models/XChainBalances.d.ts +3 -3
  80. package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
  81. package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
  82. package/esm/generated/models/XChainSharedAssetBalance.d.ts +0 -3
  83. package/esm/generated/models/XChainTransactionType.d.ts +3 -0
  84. package/esm/generated/services/DefaultService.d.ts +0 -60
  85. package/esm/generated/services/DefaultService.js +0 -48
  86. package/esm/generated/services/EvmBalancesService.d.ts +5 -1
  87. package/esm/generated/services/EvmBalancesService.js +2 -0
  88. package/esm/generated/services/EvmChainsService.d.ts +6 -1
  89. package/esm/generated/services/EvmChainsService.js +4 -2
  90. package/esm/generated/services/PrimaryNetworkService.d.ts +24 -9
  91. package/esm/generated/services/PrimaryNetworkService.js +11 -5
  92. package/esm/generated/services/RpcService.d.ts +25 -0
  93. package/esm/generated/services/RpcService.js +24 -0
  94. package/esm/generated/services/TeleporterService.d.ts +62 -0
  95. package/esm/generated/services/TeleporterService.js +41 -0
  96. package/esm/generated/services/WebhooksService.d.ts +143 -0
  97. package/esm/generated/services/WebhooksService.js +125 -0
  98. package/esm/index.d.ts +26 -2
  99. package/esm/index.js +11 -2
  100. package/package.json +3 -3
  101. package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
  102. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { Utxo } from './Utxo.js';
3
3
  import { XChainAssetDetails } from './XChainAssetDetails.js';
4
4
  import { XChainTransactionType } from './XChainTransactionType.js';
@@ -16,9 +16,6 @@ type XChainLinearTransaction = {
16
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
17
  */
18
18
  timestamp: number;
19
- /**
20
- * Type of transaction.
21
- */
22
19
  txType: XChainTransactionType;
23
20
  /**
24
21
  * Hex encoded memo bytes for this transaction.
@@ -29,11 +26,11 @@ type XChainLinearTransaction = {
29
26
  /**
30
27
  * Assets unlocked by inputs of this transaction.
31
28
  */
32
- amountUnlocked: Array<Asset>;
29
+ amountUnlocked: Array<AssetAmount>;
33
30
  /**
34
31
  * Assets created by outputs of this transaction.
35
32
  */
36
- amountCreated: Array<Asset>;
33
+ amountCreated: Array<AssetAmount>;
37
34
  /**
38
35
  * Source chain for an atomic transaction.
39
36
  */
@@ -43,7 +40,7 @@ type XChainLinearTransaction = {
43
40
  */
44
41
  destinationChain?: string;
45
42
  /**
46
- * Asset details of the asset created in CreateAssetTx
43
+ * AssetAmount details of the asset created in CreateAssetTx
47
44
  */
48
45
  assetCreated?: XChainAssetDetails;
49
46
  /**
@@ -1,4 +1,4 @@
1
- import { Asset } from './Asset.js';
1
+ import { AssetAmount } from './AssetAmount.js';
2
2
  import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
@@ -17,9 +17,6 @@ type XChainNonLinearTransaction = {
17
17
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
18
18
  */
19
19
  timestamp: number;
20
- /**
21
- * Type of transaction.
22
- */
23
20
  txType: XChainTransactionType;
24
21
  /**
25
22
  * Hex encoded memo bytes for this transaction.
@@ -30,11 +27,11 @@ type XChainNonLinearTransaction = {
30
27
  /**
31
28
  * Assets unlocked by inputs of this transaction.
32
29
  */
33
- amountUnlocked: Array<Asset>;
30
+ amountUnlocked: Array<AssetAmount>;
34
31
  /**
35
32
  * Assets created by outputs of this transaction.
36
33
  */
37
- amountCreated: Array<Asset>;
34
+ amountCreated: Array<AssetAmount>;
38
35
  /**
39
36
  * Source chain for an atomic transaction.
40
37
  */
@@ -44,7 +41,7 @@ type XChainNonLinearTransaction = {
44
41
  */
45
42
  destinationChain?: string;
46
43
  /**
47
- * Asset details of the asset created in CreateAssetTx
44
+ * AssetAmount details of the asset created in CreateAssetTx
48
45
  */
49
46
  assetCreated?: XChainAssetDetails;
50
47
  /**
@@ -17,9 +17,6 @@ type XChainSharedAssetBalance = {
17
17
  * Denomination of this asset to represent fungibility.
18
18
  */
19
19
  denomination: number;
20
- /**
21
- * Type of asset like SECP256K1 or NFT.
22
- */
23
20
  type: PrimaryNetworkAssetType;
24
21
  /**
25
22
  * Amount of the asset.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Type of transaction.
3
+ */
1
4
  declare enum XChainTransactionType {
2
5
  BASE_TX = "BaseTx",
3
6
  CREATE_ASSET_TX = "CreateAssetTx",
@@ -1,8 +1,3 @@
1
- import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
- import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
- import { SharedSecretsResponse } from '../models/SharedSecretsResponse.js';
4
- import { WebhookResponse } from '../models/WebhookResponse.js';
5
- import { WebhookStatus } from '../models/WebhookStatus.js';
6
1
  import { CancelablePromise } from '../core/CancelablePromise.js';
7
2
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
3
 
@@ -14,61 +9,6 @@ declare class DefaultService {
14
9
  * @throws ApiError
15
10
  */
16
11
  mediaControllerUploadImage(): CancelablePromise<any>;
17
- /**
18
- * Register a webhook
19
- * Registers a new webhook.
20
- * @returns WebhookResponse
21
- * @throws ApiError
22
- */
23
- registerWebhook({ requestBody, }: {
24
- requestBody: RegisterWebhookRequest;
25
- }): CancelablePromise<WebhookResponse>;
26
- /**
27
- * List webhooks
28
- * Lists webhooks for the user.
29
- * @returns ListWebhooksResponse
30
- * @throws ApiError
31
- */
32
- listWebhooks({ pageToken, pageSize, status, }: {
33
- /**
34
- * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
35
- */
36
- pageToken?: string;
37
- /**
38
- * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
39
- */
40
- pageSize?: number;
41
- /**
42
- * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
43
- */
44
- status?: WebhookStatus;
45
- }): CancelablePromise<ListWebhooksResponse>;
46
- /**
47
- * Deactivate a webhook
48
- * Deactivates a webhook by ID.
49
- * @returns WebhookResponse
50
- * @throws ApiError
51
- */
52
- deactivateWebhook({ id, }: {
53
- /**
54
- * The webhook identifier.
55
- */
56
- id: string;
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>;
65
- /**
66
- * Get a shared secret
67
- * Get a previously generated shared secret.
68
- * @returns SharedSecretsResponse
69
- * @throws ApiError
70
- */
71
- getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
72
12
  }
73
13
 
74
14
  export { DefaultService };
@@ -8,54 +8,6 @@ class DefaultService {
8
8
  url: "/v1/media/uploadImage"
9
9
  });
10
10
  }
11
- registerWebhook({
12
- requestBody
13
- }) {
14
- return this.httpRequest.request({
15
- method: "POST",
16
- url: "/v1/webhooks",
17
- body: requestBody,
18
- mediaType: "application/json"
19
- });
20
- }
21
- listWebhooks({
22
- pageToken,
23
- pageSize = 10,
24
- status
25
- }) {
26
- return this.httpRequest.request({
27
- method: "GET",
28
- url: "/v1/webhooks",
29
- query: {
30
- "pageToken": pageToken,
31
- "pageSize": pageSize,
32
- "status": status
33
- }
34
- });
35
- }
36
- deactivateWebhook({
37
- id
38
- }) {
39
- return this.httpRequest.request({
40
- method: "DELETE",
41
- url: "/v1/webhooks/{id}",
42
- path: {
43
- "id": id
44
- }
45
- });
46
- }
47
- generateSharedSecret() {
48
- return this.httpRequest.request({
49
- method: "POST",
50
- url: "/v1/webhooks:generateOrRotateSharedSecret"
51
- });
52
- }
53
- getSharedSecret() {
54
- return this.httpRequest.request({
55
- method: "GET",
56
- url: "/v1/webhooks:getSharedSecret"
57
- });
58
- }
59
11
  }
60
12
 
61
13
  export { DefaultService };
@@ -46,7 +46,7 @@ declare class EvmBalancesService {
46
46
  * @returns ListErc20BalancesResponse
47
47
  * @throws ApiError
48
48
  */
49
- listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
49
+ listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
50
50
  /**
51
51
  * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
52
52
  */
@@ -67,6 +67,10 @@ declare class EvmBalancesService {
67
67
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
68
68
  */
69
69
  pageSize?: number;
70
+ /**
71
+ * whether to filter out spam tokens from the response. Default is true.
72
+ */
73
+ filterSpamTokens?: boolean;
70
74
  /**
71
75
  * A comma separated list of contract addresses to filter by.
72
76
  */
@@ -27,6 +27,7 @@ class EvmBalancesService {
27
27
  blockNumber,
28
28
  pageToken,
29
29
  pageSize = 10,
30
+ filterSpamTokens = true,
30
31
  contractAddresses,
31
32
  currency
32
33
  }) {
@@ -41,6 +42,7 @@ class EvmBalancesService {
41
42
  "blockNumber": blockNumber,
42
43
  "pageToken": pageToken,
43
44
  "pageSize": pageSize,
45
+ "filterSpamTokens": filterSpamTokens,
44
46
  "contractAddresses": contractAddresses,
45
47
  "currency": currency
46
48
  }
@@ -1,4 +1,5 @@
1
1
  import { GetChainResponse } from '../models/GetChainResponse.js';
2
+ import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
2
3
  import { ListChainsResponse } from '../models/ListChainsResponse.js';
3
4
  import { NetworkType } from '../models/NetworkType.js';
4
5
  import { CancelablePromise } from '../core/CancelablePromise.js';
@@ -13,11 +14,15 @@ declare class EvmChainsService {
13
14
  * @returns ListChainsResponse
14
15
  * @throws ApiError
15
16
  */
16
- supportedChains({ network, }: {
17
+ supportedChains({ network, feature, }: {
17
18
  /**
18
19
  * mainnet or testnet.
19
20
  */
20
21
  network?: NetworkType;
22
+ /**
23
+ * Filter by feature.
24
+ */
25
+ feature?: GlacierApiFeature;
21
26
  }): CancelablePromise<ListChainsResponse>;
22
27
  /**
23
28
  * Get chain information
@@ -3,13 +3,15 @@ class EvmChainsService {
3
3
  this.httpRequest = httpRequest;
4
4
  }
5
5
  supportedChains({
6
- network
6
+ network,
7
+ feature
7
8
  }) {
8
9
  return this.httpRequest.request({
9
10
  method: "GET",
10
11
  url: "/v1/chains",
11
12
  query: {
12
- "network": network
13
+ "network": network,
14
+ "feature": feature
13
15
  }
14
16
  });
15
17
  }
@@ -6,6 +6,7 @@ import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResp
6
6
  import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
7
7
  import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
8
8
  import { Network } from '../models/Network.js';
9
+ import { SortByOption } from '../models/SortByOption.js';
9
10
  import { SortOrder } from '../models/SortOrder.js';
10
11
  import { ValidationStatusType } from '../models/ValidationStatusType.js';
11
12
  import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
@@ -118,7 +119,7 @@ declare class PrimaryNetworkService {
118
119
  * @returns ListValidatorDetailsResponse
119
120
  * @throws ApiError
120
121
  */
121
- listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
122
+ listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
122
123
  /**
123
124
  * Either mainnet or a testnet.
124
125
  */
@@ -135,6 +136,12 @@ declare class PrimaryNetworkService {
135
136
  * A comma separated list of node ids to filter by.
136
137
  */
137
138
  nodeIds?: string;
139
+ /**
140
+ * Which property to sort by, in conjunction with sortOrder.
141
+ *
142
+ * Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
143
+ */
144
+ sortBy?: SortByOption;
138
145
  /**
139
146
  * 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
147
  */
@@ -160,17 +167,25 @@ declare class PrimaryNetworkService {
160
167
  */
161
168
  maxTimeRemaining?: number;
162
169
  /**
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.
170
+ * 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.0, as per the Avalanche spec.
164
171
  */
165
172
  minFeePercentage?: number;
166
173
  /**
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.
174
+ * 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.0.
168
175
  */
169
176
  maxFeePercentage?: number;
177
+ /**
178
+ * The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
179
+ */
180
+ minUptimePerformance?: number;
181
+ /**
182
+ * The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
183
+ */
184
+ maxUptimePerformance?: number;
170
185
  /**
171
186
  * The subnet ID to filter by. If not provided, then all subnets will be returned.
172
187
  */
173
- subnetId?: string;
188
+ subnetId?: any;
174
189
  }): CancelablePromise<ListValidatorDetailsResponse>;
175
190
  /**
176
191
  * Get single validator details
@@ -178,7 +193,7 @@ declare class PrimaryNetworkService {
178
193
  * @returns ListValidatorDetailsResponse
179
194
  * @throws ApiError
180
195
  */
181
- getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
196
+ getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
182
197
  /**
183
198
  * Either mainnet or a testnet.
184
199
  */
@@ -195,14 +210,14 @@ declare class PrimaryNetworkService {
195
210
  * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
196
211
  */
197
212
  pageSize?: number;
198
- /**
199
- * 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.
200
- */
201
- sortOrder?: SortOrder;
202
213
  /**
203
214
  * Validation status of the node.
204
215
  */
205
216
  validationStatus?: ValidationStatusType;
217
+ /**
218
+ * 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.
219
+ */
220
+ sortOrder?: SortOrder;
206
221
  }): CancelablePromise<ListValidatorDetailsResponse>;
207
222
  /**
208
223
  * List delegators
@@ -86,14 +86,17 @@ class PrimaryNetworkService {
86
86
  pageToken,
87
87
  pageSize = 10,
88
88
  nodeIds,
89
+ sortBy,
89
90
  sortOrder,
90
91
  validationStatus,
91
92
  minDelegationCapacity,
92
93
  maxDelegationCapacity,
93
94
  minTimeRemaining,
94
- maxTimeRemaining = 2147483647,
95
+ maxTimeRemaining,
95
96
  minFeePercentage,
96
97
  maxFeePercentage,
98
+ minUptimePerformance,
99
+ maxUptimePerformance,
97
100
  subnetId
98
101
  }) {
99
102
  return this.httpRequest.request({
@@ -106,6 +109,7 @@ class PrimaryNetworkService {
106
109
  "pageToken": pageToken,
107
110
  "pageSize": pageSize,
108
111
  "nodeIds": nodeIds,
112
+ "sortBy": sortBy,
109
113
  "sortOrder": sortOrder,
110
114
  "validationStatus": validationStatus,
111
115
  "minDelegationCapacity": minDelegationCapacity,
@@ -114,6 +118,8 @@ class PrimaryNetworkService {
114
118
  "maxTimeRemaining": maxTimeRemaining,
115
119
  "minFeePercentage": minFeePercentage,
116
120
  "maxFeePercentage": maxFeePercentage,
121
+ "minUptimePerformance": minUptimePerformance,
122
+ "maxUptimePerformance": maxUptimePerformance,
117
123
  "subnetId": subnetId
118
124
  }
119
125
  });
@@ -123,8 +129,8 @@ class PrimaryNetworkService {
123
129
  nodeId,
124
130
  pageToken,
125
131
  pageSize = 10,
126
- sortOrder,
127
- validationStatus
132
+ validationStatus,
133
+ sortOrder
128
134
  }) {
129
135
  return this.httpRequest.request({
130
136
  method: "GET",
@@ -136,8 +142,8 @@ class PrimaryNetworkService {
136
142
  query: {
137
143
  "pageToken": pageToken,
138
144
  "pageSize": pageSize,
139
- "sortOrder": sortOrder,
140
- "validationStatus": validationStatus
145
+ "validationStatus": validationStatus,
146
+ "sortOrder": sortOrder
141
147
  }
142
148
  });
143
149
  }
@@ -0,0 +1,25 @@
1
+ import { RpcErrorResponseDto } from '../models/RpcErrorResponseDto.js';
2
+ import { RpcRequestBodyDto } from '../models/RpcRequestBodyDto.js';
3
+ import { RpcSuccessResponseDto } from '../models/RpcSuccessResponseDto.js';
4
+ import { CancelablePromise } from '../core/CancelablePromise.js';
5
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
6
+
7
+ declare class RpcService {
8
+ readonly httpRequest: BaseHttpRequest;
9
+ constructor(httpRequest: BaseHttpRequest);
10
+ /**
11
+ * Calls JSON-RPC method
12
+ * Calls JSON-RPC method.
13
+ * @returns any
14
+ * @throws ApiError
15
+ */
16
+ rpc({ chainId, requestBody, }: {
17
+ /**
18
+ * A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
19
+ */
20
+ chainId: string;
21
+ requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
22
+ }): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
23
+ }
24
+
25
+ export { RpcService };
@@ -0,0 +1,24 @@
1
+ class RpcService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ rpc({
6
+ chainId,
7
+ requestBody
8
+ }) {
9
+ return this.httpRequest.request({
10
+ method: "POST",
11
+ url: "/v1/ext/bc/{chainId}/rpc",
12
+ path: {
13
+ "chainId": chainId
14
+ },
15
+ body: requestBody,
16
+ mediaType: "application/json",
17
+ errors: {
18
+ 504: `Request timed out`
19
+ }
20
+ });
21
+ }
22
+ }
23
+
24
+ export { RpcService };
@@ -0,0 +1,62 @@
1
+ import { DeliveredSourceNotIndexedTeleporterMessage } from '../models/DeliveredSourceNotIndexedTeleporterMessage.js';
2
+ import { DeliveredTeleporterMessage } from '../models/DeliveredTeleporterMessage.js';
3
+ import { ListTeleporterMessagesResponse } from '../models/ListTeleporterMessagesResponse.js';
4
+ import { NetworkType } from '../models/NetworkType.js';
5
+ import { PendingTeleporterMessage } from '../models/PendingTeleporterMessage.js';
6
+ import { CancelablePromise } from '../core/CancelablePromise.js';
7
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
8
+
9
+ declare class TeleporterService {
10
+ readonly httpRequest: BaseHttpRequest;
11
+ constructor(httpRequest: BaseHttpRequest);
12
+ /**
13
+ * Get a teleporter message
14
+ * Gets a teleporter message by message ID.
15
+ * @returns any
16
+ * @throws ApiError
17
+ */
18
+ getTeleporterMessage({ messageId, }: {
19
+ /**
20
+ * The message ID of the teleporter message.
21
+ */
22
+ messageId: string;
23
+ }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
24
+ /**
25
+ * List teleporter messages
26
+ * Lists teleporter messages. Ordered by timestamp in descending order.
27
+ * @returns ListTeleporterMessagesResponse
28
+ * @throws ApiError
29
+ */
30
+ listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
31
+ /**
32
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
33
+ */
34
+ pageToken?: string;
35
+ /**
36
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
37
+ */
38
+ pageSize?: number;
39
+ /**
40
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
41
+ */
42
+ sourceBlockchainId?: string;
43
+ /**
44
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
45
+ */
46
+ destinationBlockchainId?: string;
47
+ /**
48
+ * The address of the recipient of the teleporter message.
49
+ */
50
+ to?: string;
51
+ /**
52
+ * The address of the sender of the teleporter message.
53
+ */
54
+ from?: string;
55
+ /**
56
+ * mainnet or testnet.
57
+ */
58
+ network?: NetworkType;
59
+ }): CancelablePromise<ListTeleporterMessagesResponse>;
60
+ }
61
+
62
+ export { TeleporterService };
@@ -0,0 +1,41 @@
1
+ class TeleporterService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getTeleporterMessage({
6
+ messageId
7
+ }) {
8
+ return this.httpRequest.request({
9
+ method: "GET",
10
+ url: "/v1/teleporter/messages/{messageId}",
11
+ path: {
12
+ "messageId": messageId
13
+ }
14
+ });
15
+ }
16
+ listTeleporterMessages({
17
+ pageToken,
18
+ pageSize = 10,
19
+ sourceBlockchainId,
20
+ destinationBlockchainId,
21
+ to,
22
+ from,
23
+ network
24
+ }) {
25
+ return this.httpRequest.request({
26
+ method: "GET",
27
+ url: "/v1/teleporter/messages",
28
+ query: {
29
+ "pageToken": pageToken,
30
+ "pageSize": pageSize,
31
+ "sourceBlockchainId": sourceBlockchainId,
32
+ "destinationBlockchainId": destinationBlockchainId,
33
+ "to": to,
34
+ "from": from,
35
+ "network": network
36
+ }
37
+ });
38
+ }
39
+ }
40
+
41
+ export { TeleporterService };