@avalabs/glacier-sdk 3.1.0-canary.e4000e6.0 → 3.1.0-canary.e7064cc.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 +512 -46
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/ActiveValidatorDetails.d.ts +21 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +3 -0
- package/esm/generated/models/DeliveredIcmMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredIcmMessage.js +1 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedIcmMessage.js +1 -0
- package/esm/generated/models/IcmDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/IcmReceipt.d.ts +6 -0
- package/esm/generated/models/IcmRewardDetails.d.ts +37 -0
- package/esm/generated/models/IcmRewardDetails.js +1 -0
- package/esm/generated/models/IcmSourceTransaction.d.ts +7 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +1 -1
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +5 -0
- package/esm/generated/models/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/PChainTransaction.d.ts +20 -8
- package/esm/generated/models/PChainUtxo.d.ts +27 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +3 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/Subnet.d.ts +4 -0
- package/esm/generated/models/{RpcUsageMetricsResponseDTO.d.ts → SubnetRpcUsageMetricsResponseDTO.d.ts} +6 -6
- package/esm/generated/models/UtxoType.d.ts +3 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +6 -0
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +54 -3
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmBlocksService.d.ts +21 -0
- package/esm/generated/services/EvmBlocksService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +26 -8
- package/esm/generated/services/EvmChainsService.js +1 -1
- package/esm/generated/services/EvmTransactionsService.d.ts +25 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/SignatureAggregatorService.d.ts +6 -1
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/index.d.ts +11 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -148,12 +148,34 @@ type LogsResponseDTO = {
|
|
|
148
148
|
logs: Array<LogsFormat>;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
declare enum Network {
|
|
152
|
+
MAINNET = "mainnet",
|
|
153
|
+
FUJI = "fuji",
|
|
154
|
+
TESTNET = "testnet",
|
|
155
|
+
DEVNET = "devnet"
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
REQUEST_PATH = "requestPath",
|
|
160
|
+
RESPONSE_CODE = "responseCode",
|
|
161
|
+
COUNTRY = "country",
|
|
162
|
+
CONTINENT = "continent",
|
|
163
|
+
USER_AGENT = "userAgent"
|
|
164
|
+
}
|
|
165
|
+
|
|
151
166
|
declare enum RpcUsageMetricsGroupByEnum {
|
|
152
167
|
RPC_METHOD = "rpcMethod",
|
|
153
168
|
RESPONSE_CODE = "responseCode",
|
|
154
169
|
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
155
170
|
}
|
|
156
171
|
|
|
172
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
173
|
+
HOURLY = "hourly",
|
|
174
|
+
DAILY = "daily",
|
|
175
|
+
WEEKLY = "weekly",
|
|
176
|
+
MONTHLY = "monthly"
|
|
177
|
+
}
|
|
178
|
+
|
|
157
179
|
type RpcUsageMetricsValueAggregated = {
|
|
158
180
|
/**
|
|
159
181
|
* The total number of requests
|
|
@@ -215,28 +237,21 @@ type RpcMetrics = {
|
|
|
215
237
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
216
238
|
};
|
|
217
239
|
|
|
218
|
-
type
|
|
240
|
+
type SubnetRpcUsageMetricsResponseDTO = {
|
|
219
241
|
/**
|
|
220
242
|
* Duration in which the metrics value is aggregated
|
|
221
243
|
*/
|
|
222
244
|
aggregateDuration: string;
|
|
223
|
-
/**
|
|
224
|
-
* ChainId for which the metrics are aggregated
|
|
225
|
-
*/
|
|
226
|
-
chainId: string;
|
|
227
245
|
/**
|
|
228
246
|
* Metrics values
|
|
229
247
|
*/
|
|
230
248
|
metrics: Array<RpcMetrics>;
|
|
249
|
+
/**
|
|
250
|
+
* ChainId for which the metrics are aggregated
|
|
251
|
+
*/
|
|
252
|
+
chainId: string;
|
|
231
253
|
};
|
|
232
254
|
|
|
233
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
234
|
-
HOURLY = "hourly",
|
|
235
|
-
DAILY = "daily",
|
|
236
|
-
WEEKLY = "weekly",
|
|
237
|
-
MONTHLY = "monthly"
|
|
238
|
-
}
|
|
239
|
-
|
|
240
255
|
declare enum TimeIntervalGranularityExtended {
|
|
241
256
|
MINUTE = "minute",
|
|
242
257
|
HOURLY = "hourly",
|
|
@@ -433,7 +448,7 @@ declare class DataApiUsageMetricsService {
|
|
|
433
448
|
/**
|
|
434
449
|
* Get usage metrics for the Subnet RPC
|
|
435
450
|
* Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
436
|
-
* @returns
|
|
451
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
437
452
|
* @throws ApiError
|
|
438
453
|
*/
|
|
439
454
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
@@ -470,7 +485,56 @@ declare class DataApiUsageMetricsService {
|
|
|
470
485
|
* Filter data by Rl Bypass API Token.
|
|
471
486
|
*/
|
|
472
487
|
rlBypassApiToken?: string;
|
|
473
|
-
}): CancelablePromise<
|
|
488
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
489
|
+
/**
|
|
490
|
+
* Get usage metrics for the Primary Network RPC
|
|
491
|
+
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
493
|
+
* @throws ApiError
|
|
494
|
+
*/
|
|
495
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
496
|
+
/**
|
|
497
|
+
* Either mainnet or testnet/fuji.
|
|
498
|
+
*/
|
|
499
|
+
network: Network;
|
|
500
|
+
/**
|
|
501
|
+
* Time interval granularity for data aggregation for subnet
|
|
502
|
+
* rpc metrics
|
|
503
|
+
*/
|
|
504
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
505
|
+
/**
|
|
506
|
+
* The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day.
|
|
507
|
+
*/
|
|
508
|
+
startTimestamp?: number;
|
|
509
|
+
/**
|
|
510
|
+
* The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day.
|
|
511
|
+
*/
|
|
512
|
+
endTimestamp?: number;
|
|
513
|
+
/**
|
|
514
|
+
* Query param for the criterion used for grouping metrics
|
|
515
|
+
*/
|
|
516
|
+
groupBy?: PrimaryNetworkRpcMetricsGroupByEnum;
|
|
517
|
+
/**
|
|
518
|
+
* Filter data by response status code.
|
|
519
|
+
*/
|
|
520
|
+
responseCode?: string;
|
|
521
|
+
/**
|
|
522
|
+
* Filter data by request path.
|
|
523
|
+
*/
|
|
524
|
+
requestPath?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Filter data by Country.
|
|
527
|
+
*/
|
|
528
|
+
country?: string;
|
|
529
|
+
/**
|
|
530
|
+
* Filter data by Continent.
|
|
531
|
+
*/
|
|
532
|
+
continent?: string;
|
|
533
|
+
/**
|
|
534
|
+
* Filter data by User Agent.
|
|
535
|
+
*/
|
|
536
|
+
userAgent?: string;
|
|
537
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
474
538
|
}
|
|
475
539
|
|
|
476
540
|
declare class DefaultService {
|
|
@@ -669,6 +733,10 @@ type ListErc1155BalancesResponse = {
|
|
|
669
733
|
* 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.
|
|
670
734
|
*/
|
|
671
735
|
nextPageToken?: string;
|
|
736
|
+
/**
|
|
737
|
+
* The native token balance for the address.
|
|
738
|
+
*/
|
|
739
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
672
740
|
/**
|
|
673
741
|
* The list of ERC-1155 token balances for the address.
|
|
674
742
|
*/
|
|
@@ -736,6 +804,10 @@ type ListErc20BalancesResponse = {
|
|
|
736
804
|
* 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.
|
|
737
805
|
*/
|
|
738
806
|
nextPageToken?: string;
|
|
807
|
+
/**
|
|
808
|
+
* The native token balance for the address.
|
|
809
|
+
*/
|
|
810
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
739
811
|
/**
|
|
740
812
|
* The list of ERC-20 token balances for the address.
|
|
741
813
|
*/
|
|
@@ -747,6 +819,10 @@ type ListErc721BalancesResponse = {
|
|
|
747
819
|
* 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.
|
|
748
820
|
*/
|
|
749
821
|
nextPageToken?: string;
|
|
822
|
+
/**
|
|
823
|
+
* The native token balance for the address.
|
|
824
|
+
*/
|
|
825
|
+
nativeTokenBalance: NativeTokenBalance;
|
|
750
826
|
/**
|
|
751
827
|
* The list of ERC-721 token balances for the address.
|
|
752
828
|
*/
|
|
@@ -1031,6 +1107,26 @@ type ListEvmBlocksResponse = {
|
|
|
1031
1107
|
declare class EvmBlocksService {
|
|
1032
1108
|
readonly httpRequest: BaseHttpRequest;
|
|
1033
1109
|
constructor(httpRequest: BaseHttpRequest);
|
|
1110
|
+
/**
|
|
1111
|
+
* List latest blocks across all supported EVM chains
|
|
1112
|
+
* Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
|
|
1113
|
+
* @returns ListEvmBlocksResponse Successful response
|
|
1114
|
+
* @throws ApiError
|
|
1115
|
+
*/
|
|
1116
|
+
listLatestBlocksAllChains({ pageToken, pageSize, network, }: {
|
|
1117
|
+
/**
|
|
1118
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1119
|
+
*/
|
|
1120
|
+
pageToken?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1123
|
+
*/
|
|
1124
|
+
pageSize?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Either mainnet or testnet/fuji.
|
|
1127
|
+
*/
|
|
1128
|
+
network?: Network;
|
|
1129
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
1034
1130
|
/**
|
|
1035
1131
|
* List latest blocks
|
|
1036
1132
|
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
@@ -1269,13 +1365,6 @@ type ListNativeTransactionsResponse = {
|
|
|
1269
1365
|
transactions: Array<NativeTransaction>;
|
|
1270
1366
|
};
|
|
1271
1367
|
|
|
1272
|
-
declare enum Network {
|
|
1273
|
-
MAINNET = "mainnet",
|
|
1274
|
-
FUJI = "fuji",
|
|
1275
|
-
TESTNET = "testnet",
|
|
1276
|
-
DEVNET = "devnet"
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1368
|
declare enum TransactionStatus {
|
|
1280
1369
|
FAILED = "failed",
|
|
1281
1370
|
SUCCESS = "success"
|
|
@@ -1284,9 +1373,21 @@ declare enum TransactionStatus {
|
|
|
1284
1373
|
declare class EvmChainsService {
|
|
1285
1374
|
readonly httpRequest: BaseHttpRequest;
|
|
1286
1375
|
constructor(httpRequest: BaseHttpRequest);
|
|
1376
|
+
/**
|
|
1377
|
+
* List all chains associated with a given address
|
|
1378
|
+
* Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
|
|
1379
|
+
* @returns ListAddressChainsResponse Successful response
|
|
1380
|
+
* @throws ApiError
|
|
1381
|
+
*/
|
|
1382
|
+
listAddressChains({ address, }: {
|
|
1383
|
+
/**
|
|
1384
|
+
* A wallet address.
|
|
1385
|
+
*/
|
|
1386
|
+
address: string;
|
|
1387
|
+
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1287
1388
|
/**
|
|
1288
1389
|
* List chains
|
|
1289
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1390
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1290
1391
|
* @returns ListChainsResponse Successful response
|
|
1291
1392
|
* @throws ApiError
|
|
1292
1393
|
*/
|
|
@@ -1302,7 +1403,7 @@ declare class EvmChainsService {
|
|
|
1302
1403
|
}): CancelablePromise<ListChainsResponse>;
|
|
1303
1404
|
/**
|
|
1304
1405
|
* Get chain information
|
|
1305
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1406
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1306
1407
|
* @returns GetChainResponse Successful response
|
|
1307
1408
|
* @throws ApiError
|
|
1308
1409
|
*/
|
|
@@ -1313,8 +1414,10 @@ declare class EvmChainsService {
|
|
|
1313
1414
|
chainId: string;
|
|
1314
1415
|
}): CancelablePromise<GetChainResponse>;
|
|
1315
1416
|
/**
|
|
1316
|
-
*
|
|
1317
|
-
* Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1417
|
+
* @deprecated
|
|
1418
|
+
* **[Deprecated]** Gets a list of all chains where the address was either a sender or receiver in a transaction or ERC transfer. The list is currently updated every 15 minutes.
|
|
1419
|
+
*
|
|
1420
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/address/:address/chains endpoint instead** .
|
|
1318
1421
|
* @returns ListAddressChainsResponse Successful response
|
|
1319
1422
|
* @throws ApiError
|
|
1320
1423
|
*/
|
|
@@ -1325,8 +1428,10 @@ declare class EvmChainsService {
|
|
|
1325
1428
|
address: string;
|
|
1326
1429
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1327
1430
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
* Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1431
|
+
* @deprecated
|
|
1432
|
+
* **[Deprecated]** Lists the latest transactions for all supported EVM chains. Filterable by status.
|
|
1433
|
+
*
|
|
1434
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/transactions endpoint instead** .
|
|
1330
1435
|
* @returns ListNativeTransactionsResponse Successful response
|
|
1331
1436
|
* @throws ApiError
|
|
1332
1437
|
*/
|
|
@@ -1349,8 +1454,10 @@ declare class EvmChainsService {
|
|
|
1349
1454
|
status?: TransactionStatus;
|
|
1350
1455
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1351
1456
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
* Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1457
|
+
* @deprecated
|
|
1458
|
+
* **[Deprecated]** Lists the latest blocks for all supported EVM chains. Filterable by network.
|
|
1459
|
+
*
|
|
1460
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/blocks endpoint instead** .
|
|
1354
1461
|
* @returns ListEvmBlocksResponse Successful response
|
|
1355
1462
|
* @throws ApiError
|
|
1356
1463
|
*/
|
|
@@ -2113,6 +2220,30 @@ declare enum SortOrder {
|
|
|
2113
2220
|
declare class EvmTransactionsService {
|
|
2114
2221
|
readonly httpRequest: BaseHttpRequest;
|
|
2115
2222
|
constructor(httpRequest: BaseHttpRequest);
|
|
2223
|
+
/**
|
|
2224
|
+
* List the latest transactions across all supported EVM chains
|
|
2225
|
+
* Lists the most recent transactions from all supported EVM-compatible chains. The results can be filtered based on transaction status.
|
|
2226
|
+
* @returns ListNativeTransactionsResponse Successful response
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
listLatestTransactionsAllChains({ pageToken, pageSize, network, status, }: {
|
|
2230
|
+
/**
|
|
2231
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2232
|
+
*/
|
|
2233
|
+
pageToken?: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2236
|
+
*/
|
|
2237
|
+
pageSize?: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* Either mainnet or testnet/fuji.
|
|
2240
|
+
*/
|
|
2241
|
+
network?: Network;
|
|
2242
|
+
/**
|
|
2243
|
+
* A status filter for listed transactions.
|
|
2244
|
+
*/
|
|
2245
|
+
status?: TransactionStatus;
|
|
2246
|
+
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2116
2247
|
/**
|
|
2117
2248
|
* Get deployment transaction
|
|
2118
2249
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -2471,6 +2602,221 @@ declare class HealthCheckService {
|
|
|
2471
2602
|
}>;
|
|
2472
2603
|
}
|
|
2473
2604
|
|
|
2605
|
+
type IcmDestinationTransaction = {
|
|
2606
|
+
txHash: string;
|
|
2607
|
+
timestamp: number;
|
|
2608
|
+
gasSpent: string;
|
|
2609
|
+
rewardRedeemer: string;
|
|
2610
|
+
delivererAddress: string;
|
|
2611
|
+
};
|
|
2612
|
+
|
|
2613
|
+
type IcmReceipt = {
|
|
2614
|
+
receivedMessageNonce: string;
|
|
2615
|
+
relayerRewardAddress: string;
|
|
2616
|
+
};
|
|
2617
|
+
|
|
2618
|
+
type IcmRewardDetails = {
|
|
2619
|
+
/**
|
|
2620
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2621
|
+
*/
|
|
2622
|
+
address: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* The contract name.
|
|
2625
|
+
*/
|
|
2626
|
+
name: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* The contract symbol.
|
|
2629
|
+
*/
|
|
2630
|
+
symbol: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2633
|
+
*/
|
|
2634
|
+
decimals: number;
|
|
2635
|
+
/**
|
|
2636
|
+
* The logo uri for the address.
|
|
2637
|
+
*/
|
|
2638
|
+
logoUri?: string;
|
|
2639
|
+
ercType: IcmRewardDetails.ercType;
|
|
2640
|
+
/**
|
|
2641
|
+
* The token price, if available.
|
|
2642
|
+
*/
|
|
2643
|
+
price?: Money;
|
|
2644
|
+
value: string;
|
|
2645
|
+
};
|
|
2646
|
+
declare namespace IcmRewardDetails {
|
|
2647
|
+
enum ercType {
|
|
2648
|
+
ERC_20 = "ERC-20"
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
type IcmSourceTransaction = {
|
|
2653
|
+
txHash: string;
|
|
2654
|
+
timestamp: number;
|
|
2655
|
+
gasSpent: string;
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
type DeliveredIcmMessage = {
|
|
2659
|
+
messageId: string;
|
|
2660
|
+
icmContractAddress: string;
|
|
2661
|
+
sourceBlockchainId: string;
|
|
2662
|
+
destinationBlockchainId: string;
|
|
2663
|
+
sourceEvmChainId: string;
|
|
2664
|
+
destinationEvmChainId: string;
|
|
2665
|
+
messageNonce: string;
|
|
2666
|
+
from: string;
|
|
2667
|
+
to: string;
|
|
2668
|
+
data?: string;
|
|
2669
|
+
messageExecuted: boolean;
|
|
2670
|
+
receipts: Array<IcmReceipt>;
|
|
2671
|
+
receiptDelivered: boolean;
|
|
2672
|
+
rewardDetails: IcmRewardDetails;
|
|
2673
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2674
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2675
|
+
status: DeliveredIcmMessage.status;
|
|
2676
|
+
};
|
|
2677
|
+
declare namespace DeliveredIcmMessage {
|
|
2678
|
+
enum status {
|
|
2679
|
+
DELIVERED = "delivered"
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2684
|
+
messageId: string;
|
|
2685
|
+
icmContractAddress: string;
|
|
2686
|
+
sourceBlockchainId: string;
|
|
2687
|
+
destinationBlockchainId: string;
|
|
2688
|
+
sourceEvmChainId: string;
|
|
2689
|
+
destinationEvmChainId: string;
|
|
2690
|
+
messageNonce: string;
|
|
2691
|
+
from: string;
|
|
2692
|
+
to: string;
|
|
2693
|
+
data?: string;
|
|
2694
|
+
messageExecuted: boolean;
|
|
2695
|
+
receipts: Array<IcmReceipt>;
|
|
2696
|
+
receiptDelivered: boolean;
|
|
2697
|
+
rewardDetails: IcmRewardDetails;
|
|
2698
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2699
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2700
|
+
};
|
|
2701
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2702
|
+
enum status {
|
|
2703
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
type PendingIcmMessage = {
|
|
2708
|
+
messageId: string;
|
|
2709
|
+
icmContractAddress: string;
|
|
2710
|
+
sourceBlockchainId: string;
|
|
2711
|
+
destinationBlockchainId: string;
|
|
2712
|
+
sourceEvmChainId: string;
|
|
2713
|
+
destinationEvmChainId: string;
|
|
2714
|
+
messageNonce: string;
|
|
2715
|
+
from: string;
|
|
2716
|
+
to: string;
|
|
2717
|
+
data?: string;
|
|
2718
|
+
messageExecuted: boolean;
|
|
2719
|
+
receipts: Array<IcmReceipt>;
|
|
2720
|
+
receiptDelivered: boolean;
|
|
2721
|
+
rewardDetails: IcmRewardDetails;
|
|
2722
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2723
|
+
status: PendingIcmMessage.status;
|
|
2724
|
+
};
|
|
2725
|
+
declare namespace PendingIcmMessage {
|
|
2726
|
+
enum status {
|
|
2727
|
+
PENDING = "pending"
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
type ListIcmMessagesResponse = {
|
|
2732
|
+
/**
|
|
2733
|
+
* 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.
|
|
2734
|
+
*/
|
|
2735
|
+
nextPageToken?: string;
|
|
2736
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
declare class InterchainMessagingService {
|
|
2740
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2741
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2742
|
+
/**
|
|
2743
|
+
* Get an ICM message
|
|
2744
|
+
* Gets an ICM message by message ID.
|
|
2745
|
+
* @returns any Successful response
|
|
2746
|
+
* @throws ApiError
|
|
2747
|
+
*/
|
|
2748
|
+
getIcmMessage({ messageId, }: {
|
|
2749
|
+
/**
|
|
2750
|
+
* The message ID of the ICM message.
|
|
2751
|
+
*/
|
|
2752
|
+
messageId: string;
|
|
2753
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2754
|
+
/**
|
|
2755
|
+
* List ICM messages
|
|
2756
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2757
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2758
|
+
* @throws ApiError
|
|
2759
|
+
*/
|
|
2760
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2761
|
+
/**
|
|
2762
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2763
|
+
*/
|
|
2764
|
+
pageToken?: string;
|
|
2765
|
+
/**
|
|
2766
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2767
|
+
*/
|
|
2768
|
+
pageSize?: number;
|
|
2769
|
+
/**
|
|
2770
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2771
|
+
*/
|
|
2772
|
+
sourceBlockchainId?: string;
|
|
2773
|
+
/**
|
|
2774
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2775
|
+
*/
|
|
2776
|
+
destinationBlockchainId?: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2779
|
+
*/
|
|
2780
|
+
blockchainId?: string;
|
|
2781
|
+
/**
|
|
2782
|
+
* The address of the recipient of the ICM message.
|
|
2783
|
+
*/
|
|
2784
|
+
to?: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* The address of the sender of the ICM message.
|
|
2787
|
+
*/
|
|
2788
|
+
from?: string;
|
|
2789
|
+
/**
|
|
2790
|
+
* Either mainnet or testnet/fuji.
|
|
2791
|
+
*/
|
|
2792
|
+
network?: Network;
|
|
2793
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2794
|
+
/**
|
|
2795
|
+
* List ICM messages by address
|
|
2796
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2797
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2798
|
+
* @throws ApiError
|
|
2799
|
+
*/
|
|
2800
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2801
|
+
/**
|
|
2802
|
+
* An EVM address.
|
|
2803
|
+
*/
|
|
2804
|
+
address: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2807
|
+
*/
|
|
2808
|
+
pageToken?: string;
|
|
2809
|
+
/**
|
|
2810
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2811
|
+
*/
|
|
2812
|
+
pageSize?: number;
|
|
2813
|
+
/**
|
|
2814
|
+
* Either mainnet or testnet/fuji.
|
|
2815
|
+
*/
|
|
2816
|
+
network?: Network;
|
|
2817
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2474
2820
|
type ListNftTokens = {
|
|
2475
2821
|
/**
|
|
2476
2822
|
* 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.
|
|
@@ -2700,16 +3046,31 @@ type DelegatorsDetails = {
|
|
|
2700
3046
|
};
|
|
2701
3047
|
|
|
2702
3048
|
type StakingDistribution = {
|
|
3049
|
+
/**
|
|
3050
|
+
* AvalancheGo version for the validator node.
|
|
3051
|
+
*/
|
|
2703
3052
|
version: string;
|
|
3053
|
+
/**
|
|
3054
|
+
* The total amount staked by validators using this version.
|
|
3055
|
+
*/
|
|
2704
3056
|
amountStaked: string;
|
|
3057
|
+
/**
|
|
3058
|
+
* The number of validators using this version.
|
|
3059
|
+
*/
|
|
2705
3060
|
validatorCount: number;
|
|
2706
3061
|
};
|
|
2707
3062
|
|
|
2708
3063
|
type ValidatorsDetails = {
|
|
2709
3064
|
validatorCount: number;
|
|
2710
3065
|
totalAmountStaked: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3068
|
+
*/
|
|
2711
3069
|
estimatedAnnualStakingReward: string;
|
|
2712
3070
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3071
|
+
/**
|
|
3072
|
+
* Ratio of total active stake amount to the current supply.
|
|
3073
|
+
*/
|
|
2713
3074
|
stakingRatio: string;
|
|
2714
3075
|
};
|
|
2715
3076
|
|
|
@@ -2761,7 +3122,13 @@ type CompletedDelegatorDetails = {
|
|
|
2761
3122
|
delegationFee: string;
|
|
2762
3123
|
startTimestamp: number;
|
|
2763
3124
|
endTimestamp: number;
|
|
3125
|
+
/**
|
|
3126
|
+
* Total rewards distributed for the successful delegation.
|
|
3127
|
+
*/
|
|
2764
3128
|
grossReward: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3131
|
+
*/
|
|
2765
3132
|
netReward: string;
|
|
2766
3133
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2767
3134
|
};
|
|
@@ -2779,7 +3146,13 @@ type PendingDelegatorDetails = {
|
|
|
2779
3146
|
delegationFee: string;
|
|
2780
3147
|
startTimestamp: number;
|
|
2781
3148
|
endTimestamp: number;
|
|
3149
|
+
/**
|
|
3150
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3151
|
+
*/
|
|
2782
3152
|
estimatedGrossReward: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3155
|
+
*/
|
|
2783
3156
|
estimatedNetReward: string;
|
|
2784
3157
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2785
3158
|
};
|
|
@@ -2897,6 +3270,10 @@ type Subnet = {
|
|
|
2897
3270
|
* Whether the subnet is an L1 or not.
|
|
2898
3271
|
*/
|
|
2899
3272
|
isL1: boolean;
|
|
3273
|
+
/**
|
|
3274
|
+
* Transaction hash of ConvertSubnetToL1Tx which converted this Subnet to L1.
|
|
3275
|
+
*/
|
|
3276
|
+
l1ConversionTransactionHash?: string;
|
|
2900
3277
|
/**
|
|
2901
3278
|
* L1 validator manager details.
|
|
2902
3279
|
*/
|
|
@@ -2948,6 +3325,9 @@ type ActiveValidatorDetails = {
|
|
|
2948
3325
|
nodeId: string;
|
|
2949
3326
|
subnetId: string;
|
|
2950
3327
|
amountStaked: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3330
|
+
*/
|
|
2951
3331
|
delegationFee?: string;
|
|
2952
3332
|
startTimestamp: number;
|
|
2953
3333
|
endTimestamp: number;
|
|
@@ -2955,12 +3335,30 @@ type ActiveValidatorDetails = {
|
|
|
2955
3335
|
* Present for AddPermissionlessValidatorTx
|
|
2956
3336
|
*/
|
|
2957
3337
|
blsCredentials?: BlsCredentials;
|
|
3338
|
+
/**
|
|
3339
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3340
|
+
*/
|
|
2958
3341
|
stakePercentage: number;
|
|
3342
|
+
/**
|
|
3343
|
+
* The number of delegators linked to the validator.
|
|
3344
|
+
*/
|
|
2959
3345
|
delegatorCount: number;
|
|
3346
|
+
/**
|
|
3347
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3348
|
+
*/
|
|
2960
3349
|
amountDelegated?: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3352
|
+
*/
|
|
2961
3353
|
uptimePerformance: number;
|
|
2962
3354
|
avalancheGoVersion?: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3357
|
+
*/
|
|
2963
3358
|
delegationCapacity?: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3361
|
+
*/
|
|
2964
3362
|
potentialRewards: Rewards;
|
|
2965
3363
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2966
3364
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -2976,6 +3374,9 @@ type CompletedValidatorDetails = {
|
|
|
2976
3374
|
nodeId: string;
|
|
2977
3375
|
subnetId: string;
|
|
2978
3376
|
amountStaked: string;
|
|
3377
|
+
/**
|
|
3378
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3379
|
+
*/
|
|
2979
3380
|
delegationFee?: string;
|
|
2980
3381
|
startTimestamp: number;
|
|
2981
3382
|
endTimestamp: number;
|
|
@@ -2999,6 +3400,9 @@ type PendingValidatorDetails = {
|
|
|
2999
3400
|
nodeId: string;
|
|
3000
3401
|
subnetId: string;
|
|
3001
3402
|
amountStaked: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3405
|
+
*/
|
|
3002
3406
|
delegationFee?: string;
|
|
3003
3407
|
startTimestamp: number;
|
|
3004
3408
|
endTimestamp: number;
|
|
@@ -3019,6 +3423,9 @@ type RemovedValidatorDetails = {
|
|
|
3019
3423
|
nodeId: string;
|
|
3020
3424
|
subnetId: string;
|
|
3021
3425
|
amountStaked: string;
|
|
3426
|
+
/**
|
|
3427
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3428
|
+
*/
|
|
3022
3429
|
delegationFee?: string;
|
|
3023
3430
|
startTimestamp: number;
|
|
3024
3431
|
endTimestamp: number;
|
|
@@ -3026,7 +3433,13 @@ type RemovedValidatorDetails = {
|
|
|
3026
3433
|
* Present for AddPermissionlessValidatorTx
|
|
3027
3434
|
*/
|
|
3028
3435
|
blsCredentials?: BlsCredentials;
|
|
3436
|
+
/**
|
|
3437
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3438
|
+
*/
|
|
3029
3439
|
removeTxHash: string;
|
|
3440
|
+
/**
|
|
3441
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3442
|
+
*/
|
|
3030
3443
|
removeTimestamp: number;
|
|
3031
3444
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
3032
3445
|
};
|
|
@@ -4183,7 +4596,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4183
4596
|
*/
|
|
4184
4597
|
remainingBalance: number;
|
|
4185
4598
|
/**
|
|
4186
|
-
* The increase in L1 validator balance in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4599
|
+
* The increase in L1 validator balance (nAVAX) in the current transaction. When the balance is returned after the L1 validator is disabled or removed, this value is negative
|
|
4187
4600
|
*/
|
|
4188
4601
|
balanceChange?: number;
|
|
4189
4602
|
blsCredentials?: Record<string, any>;
|
|
@@ -4213,6 +4626,9 @@ declare enum PChainTransactionType {
|
|
|
4213
4626
|
UNKNOWN = "UNKNOWN"
|
|
4214
4627
|
}
|
|
4215
4628
|
|
|
4629
|
+
/**
|
|
4630
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4631
|
+
*/
|
|
4216
4632
|
declare enum UtxoType {
|
|
4217
4633
|
STAKE = "STAKE",
|
|
4218
4634
|
TRANSFER = "TRANSFER"
|
|
@@ -4250,16 +4666,43 @@ type PChainUtxo = {
|
|
|
4250
4666
|
assetId: string;
|
|
4251
4667
|
blockNumber: string;
|
|
4252
4668
|
blockTimestamp: number;
|
|
4669
|
+
/**
|
|
4670
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4671
|
+
*/
|
|
4253
4672
|
consumingBlockNumber?: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4675
|
+
*/
|
|
4254
4676
|
consumingBlockTimestamp?: number;
|
|
4677
|
+
/**
|
|
4678
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4679
|
+
*/
|
|
4255
4680
|
platformLocktime?: number;
|
|
4681
|
+
/**
|
|
4682
|
+
* The index of the UTXO in the transaction
|
|
4683
|
+
*/
|
|
4256
4684
|
outputIndex: number;
|
|
4257
4685
|
rewardType?: RewardType;
|
|
4686
|
+
/**
|
|
4687
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4688
|
+
*/
|
|
4258
4689
|
stakeableLocktime?: number;
|
|
4259
4690
|
staked?: boolean;
|
|
4691
|
+
/**
|
|
4692
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4693
|
+
*/
|
|
4260
4694
|
threshold?: number;
|
|
4695
|
+
/**
|
|
4696
|
+
* The hash of the transaction that created this UTXO
|
|
4697
|
+
*/
|
|
4261
4698
|
txHash: string;
|
|
4699
|
+
/**
|
|
4700
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4701
|
+
*/
|
|
4262
4702
|
utxoEndTimestamp?: number;
|
|
4703
|
+
/**
|
|
4704
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4705
|
+
*/
|
|
4263
4706
|
utxoStartTimestamp?: number;
|
|
4264
4707
|
utxoType: UtxoType;
|
|
4265
4708
|
};
|
|
@@ -4274,9 +4717,18 @@ type PChainTransaction = {
|
|
|
4274
4717
|
* The block finality timestamp.
|
|
4275
4718
|
*/
|
|
4276
4719
|
blockTimestamp: number;
|
|
4720
|
+
/**
|
|
4721
|
+
* The height of the block in which the transaction was included
|
|
4722
|
+
*/
|
|
4277
4723
|
blockNumber: string;
|
|
4278
4724
|
blockHash: string;
|
|
4725
|
+
/**
|
|
4726
|
+
* The consumed UTXOs of the transaction
|
|
4727
|
+
*/
|
|
4279
4728
|
consumedUtxos: Array<PChainUtxo>;
|
|
4729
|
+
/**
|
|
4730
|
+
* The newly created UTXOs of the transaction
|
|
4731
|
+
*/
|
|
4280
4732
|
emittedUtxos: Array<PChainUtxo>;
|
|
4281
4733
|
/**
|
|
4282
4734
|
* Source chain for an atomic transaction.
|
|
@@ -4287,11 +4739,11 @@ type PChainTransaction = {
|
|
|
4287
4739
|
*/
|
|
4288
4740
|
destinationChain?: string;
|
|
4289
4741
|
/**
|
|
4290
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4742
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX present in the newly created UTXOs of the transaction
|
|
4291
4743
|
*/
|
|
4292
4744
|
value: Array<AssetAmount>;
|
|
4293
4745
|
/**
|
|
4294
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4746
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The nAVAX amount burned in a transaction, partially or fully contributing to the transaction fee
|
|
4295
4747
|
*/
|
|
4296
4748
|
amountBurned: Array<AssetAmount>;
|
|
4297
4749
|
/**
|
|
@@ -4299,7 +4751,7 @@ type PChainTransaction = {
|
|
|
4299
4751
|
*/
|
|
4300
4752
|
amountStaked: Array<AssetAmount>;
|
|
4301
4753
|
/**
|
|
4302
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4754
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. The amount of nAVAX locked for pay-as-you-go continuous fees to sustain L1 validation.
|
|
4303
4755
|
*/
|
|
4304
4756
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4305
4757
|
/**
|
|
@@ -4311,11 +4763,11 @@ type PChainTransaction = {
|
|
|
4311
4763
|
*/
|
|
4312
4764
|
endTimestamp?: number;
|
|
4313
4765
|
/**
|
|
4314
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4766
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4315
4767
|
*/
|
|
4316
4768
|
delegationFeePercent?: string;
|
|
4317
4769
|
/**
|
|
4318
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4770
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4319
4771
|
*/
|
|
4320
4772
|
nodeId?: string;
|
|
4321
4773
|
/**
|
|
@@ -4331,14 +4783,17 @@ type PChainTransaction = {
|
|
|
4331
4783
|
*/
|
|
4332
4784
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4333
4785
|
/**
|
|
4334
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4786
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4335
4787
|
*/
|
|
4336
4788
|
estimatedReward?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Reward transaction hash for the completed validations or delegations
|
|
4791
|
+
*/
|
|
4337
4792
|
rewardTxHash?: string;
|
|
4338
4793
|
rewardAddresses?: Array<string>;
|
|
4339
4794
|
memo?: string;
|
|
4340
4795
|
/**
|
|
4341
|
-
*
|
|
4796
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4342
4797
|
*/
|
|
4343
4798
|
stakingTxHash?: string;
|
|
4344
4799
|
/**
|
|
@@ -4346,7 +4801,7 @@ type PChainTransaction = {
|
|
|
4346
4801
|
*/
|
|
4347
4802
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4348
4803
|
/**
|
|
4349
|
-
* Present for AddPermissionlessValidatorTx
|
|
4804
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4350
4805
|
*/
|
|
4351
4806
|
blsCredentials?: BlsCredentials;
|
|
4352
4807
|
};
|
|
@@ -4885,7 +5340,11 @@ declare class SignatureAggregatorService {
|
|
|
4885
5340
|
* @returns SignatureAggregationResponse Successful response
|
|
4886
5341
|
* @throws ApiError
|
|
4887
5342
|
*/
|
|
4888
|
-
aggregateSignatures({ requestBody, }: {
|
|
5343
|
+
aggregateSignatures({ network, requestBody, }: {
|
|
5344
|
+
/**
|
|
5345
|
+
* Either mainnet or testnet/fuji.
|
|
5346
|
+
*/
|
|
5347
|
+
network: Network;
|
|
4889
5348
|
requestBody: SignatureAggregatorRequest;
|
|
4890
5349
|
}): CancelablePromise<SignatureAggregationResponse>;
|
|
4891
5350
|
}
|
|
@@ -5028,8 +5487,10 @@ declare class TeleporterService {
|
|
|
5028
5487
|
readonly httpRequest: BaseHttpRequest;
|
|
5029
5488
|
constructor(httpRequest: BaseHttpRequest);
|
|
5030
5489
|
/**
|
|
5031
|
-
*
|
|
5032
|
-
* Gets a teleporter message by message ID.
|
|
5490
|
+
* @deprecated
|
|
5491
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5492
|
+
*
|
|
5493
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5033
5494
|
* @returns any Successful response
|
|
5034
5495
|
* @throws ApiError
|
|
5035
5496
|
*/
|
|
@@ -5040,8 +5501,10 @@ declare class TeleporterService {
|
|
|
5040
5501
|
messageId: string;
|
|
5041
5502
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5042
5503
|
/**
|
|
5043
|
-
*
|
|
5044
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5504
|
+
* @deprecated
|
|
5505
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5506
|
+
*
|
|
5507
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5045
5508
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5046
5509
|
* @throws ApiError
|
|
5047
5510
|
*/
|
|
@@ -5080,8 +5543,10 @@ declare class TeleporterService {
|
|
|
5080
5543
|
network?: Network;
|
|
5081
5544
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5082
5545
|
/**
|
|
5083
|
-
*
|
|
5084
|
-
* Lists teleporter messages by address. Ordered by
|
|
5546
|
+
* @deprecated
|
|
5547
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5548
|
+
*
|
|
5549
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5085
5550
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5086
5551
|
* @throws ApiError
|
|
5087
5552
|
*/
|
|
@@ -5348,6 +5813,7 @@ declare class Glacier {
|
|
|
5348
5813
|
readonly evmContracts: EvmContractsService;
|
|
5349
5814
|
readonly evmTransactions: EvmTransactionsService;
|
|
5350
5815
|
readonly healthCheck: HealthCheckService;
|
|
5816
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5351
5817
|
readonly nfTs: NfTsService;
|
|
5352
5818
|
readonly operations: OperationsService;
|
|
5353
5819
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
@@ -5512,4 +5978,4 @@ type Unauthorized = {
|
|
|
5512
5978
|
error: string;
|
|
5513
5979
|
};
|
|
5514
5980
|
|
|
5515
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum,
|
|
5981
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|