@avalabs/glacier-sdk 3.1.0-canary.c3683ee.0 → 3.1.0-canary.c4f6e67.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 +584 -45
- package/dist/index.js +1 -1
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -1
- package/esm/generated/models/AccessRequest.d.ts +12 -0
- 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/Erc20TokenBalance.d.ts +3 -3
- package/esm/generated/models/HealthCheckResultDto.d.ts +17 -0
- package/esm/generated/models/HealthCheckResultDto.js +1 -0
- package/esm/generated/models/HealthIndicatorResultDto.d.ts +17 -0
- package/esm/generated/models/HealthIndicatorResultDto.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/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/NotificationsResponse.d.ts +5 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- 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 +1 -0
- package/esm/generated/models/PrimaryNetworkRpcMetricsGroupByEnum.js +1 -1
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.d.ts +8 -0
- package/esm/generated/models/PrimaryNetworkRpcTimeIntervalGranularity.js +1 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.d.ts +27 -0
- package/esm/generated/models/PrimaryNetworkRpcUsageMetricsResponseDTO.js +1 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +9 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/models/StakingDistribution.d.ts +9 -0
- package/esm/generated/models/SubscribeRequest.d.ts +16 -0
- package/esm/generated/models/SubscriptionsRequest.d.ts +8 -0
- package/esm/generated/models/SubscriptionsResponse.d.ts +14 -0
- package/esm/generated/models/UnsubscribeRequest.d.ts +12 -0
- 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 +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- package/esm/generated/services/EvmChainsService.d.ts +2 -2
- package/esm/generated/services/HealthCheckService.d.ts +4 -7
- package/esm/generated/services/HealthCheckService.js +1 -1
- package/esm/generated/services/InterchainMessagingService.d.ts +90 -0
- package/esm/generated/services/InterchainMessagingService.js +1 -0
- package/esm/generated/services/NotificationsService.d.ts +51 -0
- package/esm/generated/services/NotificationsService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +12 -6
- package/esm/generated/services/WebhooksService.d.ts +3 -3
- package/esm/generated/services/WebhooksService.js +1 -1
- package/esm/index.d.ts +20 -0
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ declare enum Network {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
159
|
+
RPC_METHOD = "rpcMethod",
|
|
159
160
|
REQUEST_PATH = "requestPath",
|
|
160
161
|
RESPONSE_CODE = "responseCode",
|
|
161
162
|
COUNTRY = "country",
|
|
@@ -163,13 +164,7 @@ declare enum PrimaryNetworkRpcMetricsGroupByEnum {
|
|
|
163
164
|
USER_AGENT = "userAgent"
|
|
164
165
|
}
|
|
165
166
|
|
|
166
|
-
declare enum
|
|
167
|
-
RPC_METHOD = "rpcMethod",
|
|
168
|
-
RESPONSE_CODE = "responseCode",
|
|
169
|
-
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
declare enum SubnetRpcTimeIntervalGranularity {
|
|
167
|
+
declare enum PrimaryNetworkRpcTimeIntervalGranularity {
|
|
173
168
|
HOURLY = "hourly",
|
|
174
169
|
DAILY = "daily",
|
|
175
170
|
WEEKLY = "weekly",
|
|
@@ -222,6 +217,10 @@ declare namespace RpcUsageMetricsValueAggregated {
|
|
|
222
217
|
RPC_METHOD = "rpcMethod",
|
|
223
218
|
RESPONSE_CODE = "responseCode",
|
|
224
219
|
RL_BYPASS_TOKEN = "rlBypassToken",
|
|
220
|
+
REQUEST_PATH = "requestPath",
|
|
221
|
+
COUNTRY = "country",
|
|
222
|
+
CONTINENT = "continent",
|
|
223
|
+
USER_AGENT = "userAgent",
|
|
225
224
|
NONE = "None"
|
|
226
225
|
}
|
|
227
226
|
}
|
|
@@ -237,6 +236,43 @@ type RpcMetrics = {
|
|
|
237
236
|
values: Array<RpcUsageMetricsValueAggregated>;
|
|
238
237
|
};
|
|
239
238
|
|
|
239
|
+
type PrimaryNetworkRpcUsageMetricsResponseDTO = {
|
|
240
|
+
/**
|
|
241
|
+
* Duration in which the metrics value is aggregated
|
|
242
|
+
*/
|
|
243
|
+
aggregateDuration: string;
|
|
244
|
+
/**
|
|
245
|
+
* Metrics values
|
|
246
|
+
*/
|
|
247
|
+
metrics: Array<RpcMetrics>;
|
|
248
|
+
/**
|
|
249
|
+
* Network type for which the metrics are aggregated
|
|
250
|
+
*/
|
|
251
|
+
network: PrimaryNetworkRpcUsageMetricsResponseDTO.network;
|
|
252
|
+
};
|
|
253
|
+
declare namespace PrimaryNetworkRpcUsageMetricsResponseDTO {
|
|
254
|
+
/**
|
|
255
|
+
* Network type for which the metrics are aggregated
|
|
256
|
+
*/
|
|
257
|
+
enum network {
|
|
258
|
+
MAINNET = "mainnet",
|
|
259
|
+
TESTNET = "testnet"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare enum RpcUsageMetricsGroupByEnum {
|
|
264
|
+
RPC_METHOD = "rpcMethod",
|
|
265
|
+
RESPONSE_CODE = "responseCode",
|
|
266
|
+
RL_BYPASS_TOKEN = "rlBypassToken"
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
declare enum SubnetRpcTimeIntervalGranularity {
|
|
270
|
+
HOURLY = "hourly",
|
|
271
|
+
DAILY = "daily",
|
|
272
|
+
WEEKLY = "weekly",
|
|
273
|
+
MONTHLY = "monthly"
|
|
274
|
+
}
|
|
275
|
+
|
|
240
276
|
type SubnetRpcUsageMetricsResponseDTO = {
|
|
241
277
|
/**
|
|
242
278
|
* Duration in which the metrics value is aggregated
|
|
@@ -451,6 +487,49 @@ declare class DataApiUsageMetricsService {
|
|
|
451
487
|
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
452
488
|
* @throws ApiError
|
|
453
489
|
*/
|
|
490
|
+
getSubnetRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
491
|
+
/**
|
|
492
|
+
* Time interval granularity for data aggregation for subnet
|
|
493
|
+
* rpc metrics
|
|
494
|
+
*/
|
|
495
|
+
timeInterval?: SubnetRpcTimeIntervalGranularity;
|
|
496
|
+
/**
|
|
497
|
+
* 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.
|
|
498
|
+
*/
|
|
499
|
+
startTimestamp?: number;
|
|
500
|
+
/**
|
|
501
|
+
* 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.
|
|
502
|
+
*/
|
|
503
|
+
endTimestamp?: number;
|
|
504
|
+
/**
|
|
505
|
+
* Query param for the criterion used for grouping metrics
|
|
506
|
+
*/
|
|
507
|
+
groupBy?: RpcUsageMetricsGroupByEnum;
|
|
508
|
+
/**
|
|
509
|
+
* Filter data by chain ID.
|
|
510
|
+
*/
|
|
511
|
+
chainId?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Filter data by response status code.
|
|
514
|
+
*/
|
|
515
|
+
responseCode?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Filter data by RPC method.
|
|
518
|
+
*/
|
|
519
|
+
rpcMethod?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Filter data by Rl Bypass API Token.
|
|
522
|
+
*/
|
|
523
|
+
rlBypassApiToken?: string;
|
|
524
|
+
}): CancelablePromise<SubnetRpcUsageMetricsResponseDTO>;
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated
|
|
527
|
+
* **[Deprecated]** Gets metrics for public Subnet RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
528
|
+
*
|
|
529
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/subnetRpcUsageMetrics endpoint instead**.
|
|
530
|
+
* @returns SubnetRpcUsageMetricsResponseDTO Successful response
|
|
531
|
+
* @throws ApiError
|
|
532
|
+
*/
|
|
454
533
|
getRpcUsageMetrics({ timeInterval, startTimestamp, endTimestamp, groupBy, chainId, responseCode, rpcMethod, rlBypassApiToken, }: {
|
|
455
534
|
/**
|
|
456
535
|
* Time interval granularity for data aggregation for subnet
|
|
@@ -489,10 +568,10 @@ declare class DataApiUsageMetricsService {
|
|
|
489
568
|
/**
|
|
490
569
|
* Get usage metrics for the Primary Network RPC
|
|
491
570
|
* Gets metrics for public Primary Network RPC usage over a specified time interval aggregated at the specified time-duration granularity.
|
|
492
|
-
* @returns
|
|
571
|
+
* @returns PrimaryNetworkRpcUsageMetricsResponseDTO Successful response
|
|
493
572
|
* @throws ApiError
|
|
494
573
|
*/
|
|
495
|
-
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, }: {
|
|
574
|
+
getPrimaryNetworkRpcUsageMetrics({ network, timeInterval, startTimestamp, endTimestamp, groupBy, responseCode, requestPath, country, continent, userAgent, rpcMethod, }: {
|
|
496
575
|
/**
|
|
497
576
|
* Either mainnet or testnet/fuji.
|
|
498
577
|
*/
|
|
@@ -501,7 +580,7 @@ declare class DataApiUsageMetricsService {
|
|
|
501
580
|
* Time interval granularity for data aggregation for subnet
|
|
502
581
|
* rpc metrics
|
|
503
582
|
*/
|
|
504
|
-
timeInterval?:
|
|
583
|
+
timeInterval?: PrimaryNetworkRpcTimeIntervalGranularity;
|
|
505
584
|
/**
|
|
506
585
|
* 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
586
|
*/
|
|
@@ -523,18 +602,22 @@ declare class DataApiUsageMetricsService {
|
|
|
523
602
|
*/
|
|
524
603
|
requestPath?: string;
|
|
525
604
|
/**
|
|
526
|
-
* Filter data by Country.
|
|
605
|
+
* Filter data by Country. Input must be a valid ISO 3166-1 alpha-2 country code. "XX" - Represents clients without country code data. "T1" - Represents clients using the Tor network.
|
|
527
606
|
*/
|
|
528
607
|
country?: string;
|
|
529
608
|
/**
|
|
530
|
-
* Filter data by Continent.
|
|
609
|
+
* Filter data by Continent. Input must be a valid ISO 3166-1 alpha-2 continent code.
|
|
531
610
|
*/
|
|
532
611
|
continent?: string;
|
|
533
612
|
/**
|
|
534
613
|
* Filter data by User Agent.
|
|
535
614
|
*/
|
|
536
615
|
userAgent?: string;
|
|
537
|
-
|
|
616
|
+
/**
|
|
617
|
+
* Filter data by RPC method.
|
|
618
|
+
*/
|
|
619
|
+
rpcMethod?: string;
|
|
620
|
+
}): CancelablePromise<PrimaryNetworkRpcUsageMetricsResponseDTO>;
|
|
538
621
|
}
|
|
539
622
|
|
|
540
623
|
declare class DefaultService {
|
|
@@ -782,16 +865,16 @@ type Erc20TokenBalance = {
|
|
|
782
865
|
*/
|
|
783
866
|
balanceValue?: Money;
|
|
784
867
|
/**
|
|
785
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
868
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
786
869
|
*/
|
|
787
|
-
tokenReputation: Erc20TokenBalance.tokenReputation
|
|
870
|
+
tokenReputation: Erc20TokenBalance.tokenReputation;
|
|
788
871
|
};
|
|
789
872
|
declare namespace Erc20TokenBalance {
|
|
790
873
|
enum ercType {
|
|
791
874
|
ERC_20 = "ERC-20"
|
|
792
875
|
}
|
|
793
876
|
/**
|
|
794
|
-
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious'
|
|
877
|
+
* Indicates the reputation of the token based on a security analysis. 'Benign' suggests the token is likely safe, while 'Malicious' indicates potential security risks. This field is nullable and is only populated for tokens on the C-Chain. Possible values are 'Benign', 'Malicious', or null if the reputation is unknown.
|
|
795
878
|
*/
|
|
796
879
|
enum tokenReputation {
|
|
797
880
|
MALICIOUS = "Malicious",
|
|
@@ -1387,7 +1470,7 @@ declare class EvmChainsService {
|
|
|
1387
1470
|
}): CancelablePromise<ListAddressChainsResponse>;
|
|
1388
1471
|
/**
|
|
1389
1472
|
* List chains
|
|
1390
|
-
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
1473
|
+
* Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
|
|
1391
1474
|
* @returns ListChainsResponse Successful response
|
|
1392
1475
|
* @throws ApiError
|
|
1393
1476
|
*/
|
|
@@ -1403,7 +1486,7 @@ declare class EvmChainsService {
|
|
|
1403
1486
|
}): CancelablePromise<ListChainsResponse>;
|
|
1404
1487
|
/**
|
|
1405
1488
|
* Get chain information
|
|
1406
|
-
* Gets chain information for the EVM-compatible chain if supported by
|
|
1489
|
+
* Gets chain information for the EVM-compatible chain if supported by AvaCloud.
|
|
1407
1490
|
* @returns GetChainResponse Successful response
|
|
1408
1491
|
* @throws ApiError
|
|
1409
1492
|
*/
|
|
@@ -2586,20 +2669,261 @@ declare class EvmTransactionsService {
|
|
|
2586
2669
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
2587
2670
|
}
|
|
2588
2671
|
|
|
2672
|
+
type HealthIndicatorResultDto = {
|
|
2673
|
+
/**
|
|
2674
|
+
* Status of the health indicator.
|
|
2675
|
+
*/
|
|
2676
|
+
status?: HealthIndicatorResultDto.status;
|
|
2677
|
+
};
|
|
2678
|
+
declare namespace HealthIndicatorResultDto {
|
|
2679
|
+
/**
|
|
2680
|
+
* Status of the health indicator.
|
|
2681
|
+
*/
|
|
2682
|
+
enum status {
|
|
2683
|
+
UP = "up",
|
|
2684
|
+
DOWN = "down"
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
type HealthCheckResultDto = {
|
|
2689
|
+
status?: HealthCheckResultDto.status;
|
|
2690
|
+
info?: any | null;
|
|
2691
|
+
error?: any | null;
|
|
2692
|
+
details?: Record<string, HealthIndicatorResultDto>;
|
|
2693
|
+
};
|
|
2694
|
+
declare namespace HealthCheckResultDto {
|
|
2695
|
+
enum status {
|
|
2696
|
+
ERROR = "error",
|
|
2697
|
+
OK = "ok",
|
|
2698
|
+
SHUTTING_DOWN = "shutting_down"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2589
2702
|
declare class HealthCheckService {
|
|
2590
2703
|
readonly httpRequest: BaseHttpRequest;
|
|
2591
2704
|
constructor(httpRequest: BaseHttpRequest);
|
|
2592
2705
|
/**
|
|
2593
2706
|
* Get the health of the service
|
|
2594
|
-
*
|
|
2707
|
+
* Check the health of the service.
|
|
2708
|
+
* @returns HealthCheckResultDto The health of the service
|
|
2595
2709
|
* @throws ApiError
|
|
2596
2710
|
*/
|
|
2597
|
-
dataHealthCheck(): CancelablePromise<
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2711
|
+
dataHealthCheck(): CancelablePromise<HealthCheckResultDto>;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
type IcmDestinationTransaction = {
|
|
2715
|
+
txHash: string;
|
|
2716
|
+
timestamp: number;
|
|
2717
|
+
gasSpent: string;
|
|
2718
|
+
rewardRedeemer: string;
|
|
2719
|
+
delivererAddress: string;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2722
|
+
type IcmReceipt = {
|
|
2723
|
+
receivedMessageNonce: string;
|
|
2724
|
+
relayerRewardAddress: string;
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
type IcmRewardDetails = {
|
|
2728
|
+
/**
|
|
2729
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
2730
|
+
*/
|
|
2731
|
+
address: string;
|
|
2732
|
+
/**
|
|
2733
|
+
* The contract name.
|
|
2734
|
+
*/
|
|
2735
|
+
name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* The contract symbol.
|
|
2738
|
+
*/
|
|
2739
|
+
symbol: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
2742
|
+
*/
|
|
2743
|
+
decimals: number;
|
|
2744
|
+
/**
|
|
2745
|
+
* The logo uri for the address.
|
|
2746
|
+
*/
|
|
2747
|
+
logoUri?: string;
|
|
2748
|
+
ercType: IcmRewardDetails.ercType;
|
|
2749
|
+
/**
|
|
2750
|
+
* The token price, if available.
|
|
2751
|
+
*/
|
|
2752
|
+
price?: Money;
|
|
2753
|
+
value: string;
|
|
2754
|
+
};
|
|
2755
|
+
declare namespace IcmRewardDetails {
|
|
2756
|
+
enum ercType {
|
|
2757
|
+
ERC_20 = "ERC-20"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2761
|
+
type IcmSourceTransaction = {
|
|
2762
|
+
txHash: string;
|
|
2763
|
+
timestamp: number;
|
|
2764
|
+
gasSpent: string;
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
type DeliveredIcmMessage = {
|
|
2768
|
+
messageId: string;
|
|
2769
|
+
icmContractAddress: string;
|
|
2770
|
+
sourceBlockchainId: string;
|
|
2771
|
+
destinationBlockchainId: string;
|
|
2772
|
+
sourceEvmChainId: string;
|
|
2773
|
+
destinationEvmChainId: string;
|
|
2774
|
+
messageNonce: string;
|
|
2775
|
+
from: string;
|
|
2776
|
+
to: string;
|
|
2777
|
+
data?: string;
|
|
2778
|
+
messageExecuted: boolean;
|
|
2779
|
+
receipts: Array<IcmReceipt>;
|
|
2780
|
+
receiptDelivered: boolean;
|
|
2781
|
+
rewardDetails: IcmRewardDetails;
|
|
2782
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2783
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2784
|
+
status: DeliveredIcmMessage.status;
|
|
2785
|
+
};
|
|
2786
|
+
declare namespace DeliveredIcmMessage {
|
|
2787
|
+
enum status {
|
|
2788
|
+
DELIVERED = "delivered"
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
|
|
2792
|
+
type DeliveredSourceNotIndexedIcmMessage = {
|
|
2793
|
+
messageId: string;
|
|
2794
|
+
icmContractAddress: string;
|
|
2795
|
+
sourceBlockchainId: string;
|
|
2796
|
+
destinationBlockchainId: string;
|
|
2797
|
+
sourceEvmChainId: string;
|
|
2798
|
+
destinationEvmChainId: string;
|
|
2799
|
+
messageNonce: string;
|
|
2800
|
+
from: string;
|
|
2801
|
+
to: string;
|
|
2802
|
+
data?: string;
|
|
2803
|
+
messageExecuted: boolean;
|
|
2804
|
+
receipts: Array<IcmReceipt>;
|
|
2805
|
+
receiptDelivered: boolean;
|
|
2806
|
+
rewardDetails: IcmRewardDetails;
|
|
2807
|
+
destinationTransaction: IcmDestinationTransaction;
|
|
2808
|
+
status: DeliveredSourceNotIndexedIcmMessage.status;
|
|
2809
|
+
};
|
|
2810
|
+
declare namespace DeliveredSourceNotIndexedIcmMessage {
|
|
2811
|
+
enum status {
|
|
2812
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
type PendingIcmMessage = {
|
|
2817
|
+
messageId: string;
|
|
2818
|
+
icmContractAddress: string;
|
|
2819
|
+
sourceBlockchainId: string;
|
|
2820
|
+
destinationBlockchainId: string;
|
|
2821
|
+
sourceEvmChainId: string;
|
|
2822
|
+
destinationEvmChainId: string;
|
|
2823
|
+
messageNonce: string;
|
|
2824
|
+
from: string;
|
|
2825
|
+
to: string;
|
|
2826
|
+
data?: string;
|
|
2827
|
+
messageExecuted: boolean;
|
|
2828
|
+
receipts: Array<IcmReceipt>;
|
|
2829
|
+
receiptDelivered: boolean;
|
|
2830
|
+
rewardDetails: IcmRewardDetails;
|
|
2831
|
+
sourceTransaction: IcmSourceTransaction;
|
|
2832
|
+
status: PendingIcmMessage.status;
|
|
2833
|
+
};
|
|
2834
|
+
declare namespace PendingIcmMessage {
|
|
2835
|
+
enum status {
|
|
2836
|
+
PENDING = "pending"
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
type ListIcmMessagesResponse = {
|
|
2841
|
+
/**
|
|
2842
|
+
* 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.
|
|
2843
|
+
*/
|
|
2844
|
+
nextPageToken?: string;
|
|
2845
|
+
messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
declare class InterchainMessagingService {
|
|
2849
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2850
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2851
|
+
/**
|
|
2852
|
+
* Get an ICM message
|
|
2853
|
+
* Gets an ICM message by message ID.
|
|
2854
|
+
* @returns any Successful response
|
|
2855
|
+
* @throws ApiError
|
|
2856
|
+
*/
|
|
2857
|
+
getIcmMessage({ messageId, }: {
|
|
2858
|
+
/**
|
|
2859
|
+
* The message ID of the ICM message.
|
|
2860
|
+
*/
|
|
2861
|
+
messageId: string;
|
|
2862
|
+
}): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
|
|
2863
|
+
/**
|
|
2864
|
+
* List ICM messages
|
|
2865
|
+
* Lists ICM messages. Ordered by timestamp in descending order.
|
|
2866
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2867
|
+
* @throws ApiError
|
|
2868
|
+
*/
|
|
2869
|
+
listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
|
|
2870
|
+
/**
|
|
2871
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2872
|
+
*/
|
|
2873
|
+
pageToken?: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2876
|
+
*/
|
|
2877
|
+
pageSize?: number;
|
|
2878
|
+
/**
|
|
2879
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
|
|
2880
|
+
*/
|
|
2881
|
+
sourceBlockchainId?: string;
|
|
2882
|
+
/**
|
|
2883
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
|
|
2884
|
+
*/
|
|
2885
|
+
destinationBlockchainId?: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
|
|
2888
|
+
*/
|
|
2889
|
+
blockchainId?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* The address of the recipient of the ICM message.
|
|
2892
|
+
*/
|
|
2893
|
+
to?: string;
|
|
2894
|
+
/**
|
|
2895
|
+
* The address of the sender of the ICM message.
|
|
2896
|
+
*/
|
|
2897
|
+
from?: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* Either mainnet or testnet/fuji.
|
|
2900
|
+
*/
|
|
2901
|
+
network?: Network;
|
|
2902
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2903
|
+
/**
|
|
2904
|
+
* List ICM messages by address
|
|
2905
|
+
* Lists ICM messages by address. Ordered by timestamp in descending order.
|
|
2906
|
+
* @returns ListIcmMessagesResponse Successful response
|
|
2907
|
+
* @throws ApiError
|
|
2908
|
+
*/
|
|
2909
|
+
listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
|
|
2910
|
+
/**
|
|
2911
|
+
* An EVM address.
|
|
2912
|
+
*/
|
|
2913
|
+
address: string;
|
|
2914
|
+
/**
|
|
2915
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2916
|
+
*/
|
|
2917
|
+
pageToken?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2920
|
+
*/
|
|
2921
|
+
pageSize?: number;
|
|
2922
|
+
/**
|
|
2923
|
+
* Either mainnet or testnet/fuji.
|
|
2924
|
+
*/
|
|
2925
|
+
network?: Network;
|
|
2926
|
+
}): CancelablePromise<ListIcmMessagesResponse>;
|
|
2603
2927
|
}
|
|
2604
2928
|
|
|
2605
2929
|
type ListNftTokens = {
|
|
@@ -2679,6 +3003,108 @@ declare class NfTsService {
|
|
|
2679
3003
|
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2680
3004
|
}
|
|
2681
3005
|
|
|
3006
|
+
type AccessRequest = {
|
|
3007
|
+
/**
|
|
3008
|
+
* The email address to send the access token to
|
|
3009
|
+
*/
|
|
3010
|
+
email: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* The captcha to verify the user
|
|
3013
|
+
*/
|
|
3014
|
+
captcha: string;
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
type NotificationsResponse = {
|
|
3018
|
+
message: string;
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
type SubscribeRequest = {
|
|
3022
|
+
/**
|
|
3023
|
+
* The access token to use for authentication
|
|
3024
|
+
*/
|
|
3025
|
+
accessToken: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* The node ID to subscribe to
|
|
3028
|
+
*/
|
|
3029
|
+
nodeId: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The notification types to subscribe to. If not provided, all notification types will be subscribed to
|
|
3032
|
+
*/
|
|
3033
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
type SubscriptionsRequest = {
|
|
3037
|
+
/**
|
|
3038
|
+
* The access token to use for authentication
|
|
3039
|
+
*/
|
|
3040
|
+
accessToken: string;
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
type SubscriptionsResponse = {
|
|
3044
|
+
/**
|
|
3045
|
+
* The email address of the user
|
|
3046
|
+
*/
|
|
3047
|
+
email: string;
|
|
3048
|
+
/**
|
|
3049
|
+
* The subscriptions of the user
|
|
3050
|
+
*/
|
|
3051
|
+
subscriptions: Record<string, {
|
|
3052
|
+
notifications?: Array<'connectivity' | 'ports' | 'version'>;
|
|
3053
|
+
}>;
|
|
3054
|
+
};
|
|
3055
|
+
|
|
3056
|
+
type UnsubscribeRequest = {
|
|
3057
|
+
/**
|
|
3058
|
+
* The access token to use for authentication
|
|
3059
|
+
*/
|
|
3060
|
+
accessToken: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The node ID to subscribe to
|
|
3063
|
+
*/
|
|
3064
|
+
nodeId: string;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare class NotificationsService {
|
|
3068
|
+
readonly httpRequest: BaseHttpRequest;
|
|
3069
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
3070
|
+
/**
|
|
3071
|
+
* Access Notifications
|
|
3072
|
+
* Access notifications.
|
|
3073
|
+
* @returns NotificationsResponse Successful response
|
|
3074
|
+
* @throws ApiError
|
|
3075
|
+
*/
|
|
3076
|
+
access({ requestBody, }: {
|
|
3077
|
+
requestBody: AccessRequest;
|
|
3078
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3079
|
+
/**
|
|
3080
|
+
* Subscribe to Notifications
|
|
3081
|
+
* Subscribe to receive notifications.
|
|
3082
|
+
* @returns NotificationsResponse Successful response
|
|
3083
|
+
* @throws ApiError
|
|
3084
|
+
*/
|
|
3085
|
+
subscribe({ requestBody, }: {
|
|
3086
|
+
requestBody: SubscribeRequest;
|
|
3087
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Unsubscribe from Notifications
|
|
3090
|
+
* Unsubscribe from receiving notifications.
|
|
3091
|
+
* @returns NotificationsResponse Successful response
|
|
3092
|
+
* @throws ApiError
|
|
3093
|
+
*/
|
|
3094
|
+
unsubscribe({ requestBody, }: {
|
|
3095
|
+
requestBody: UnsubscribeRequest;
|
|
3096
|
+
}): CancelablePromise<NotificationsResponse>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Get Subscriptions
|
|
3099
|
+
* Get subscriptions.
|
|
3100
|
+
* @returns SubscriptionsResponse Successful response
|
|
3101
|
+
* @throws ApiError
|
|
3102
|
+
*/
|
|
3103
|
+
subscriptions({ requestBody, }: {
|
|
3104
|
+
requestBody: SubscriptionsRequest;
|
|
3105
|
+
}): CancelablePromise<SubscriptionsResponse>;
|
|
3106
|
+
}
|
|
3107
|
+
|
|
2682
3108
|
type EvmNetworkOptions = {
|
|
2683
3109
|
addresses: Array<string>;
|
|
2684
3110
|
includeChains: Array<string>;
|
|
@@ -2767,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2767
3193
|
operationType: OperationType;
|
|
2768
3194
|
operationStatus: OperationStatus;
|
|
2769
3195
|
message?: string;
|
|
2770
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2771
3197
|
createdAtTimestamp: number;
|
|
2772
3198
|
updatedAtTimestamp: number;
|
|
2773
3199
|
};
|
|
@@ -2831,16 +3257,31 @@ type DelegatorsDetails = {
|
|
|
2831
3257
|
};
|
|
2832
3258
|
|
|
2833
3259
|
type StakingDistribution = {
|
|
3260
|
+
/**
|
|
3261
|
+
* AvalancheGo version for the validator node.
|
|
3262
|
+
*/
|
|
2834
3263
|
version: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* The total amount staked by validators using this version.
|
|
3266
|
+
*/
|
|
2835
3267
|
amountStaked: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* The number of validators using this version.
|
|
3270
|
+
*/
|
|
2836
3271
|
validatorCount: number;
|
|
2837
3272
|
};
|
|
2838
3273
|
|
|
2839
3274
|
type ValidatorsDetails = {
|
|
2840
3275
|
validatorCount: number;
|
|
2841
3276
|
totalAmountStaked: string;
|
|
3277
|
+
/**
|
|
3278
|
+
* Total potential rewards from currently active validations and delegations.
|
|
3279
|
+
*/
|
|
2842
3280
|
estimatedAnnualStakingReward: string;
|
|
2843
3281
|
stakingDistributionByVersion: Array<StakingDistribution>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Ratio of total active stake amount to the current supply.
|
|
3284
|
+
*/
|
|
2844
3285
|
stakingRatio: string;
|
|
2845
3286
|
};
|
|
2846
3287
|
|
|
@@ -2892,7 +3333,13 @@ type CompletedDelegatorDetails = {
|
|
|
2892
3333
|
delegationFee: string;
|
|
2893
3334
|
startTimestamp: number;
|
|
2894
3335
|
endTimestamp: number;
|
|
3336
|
+
/**
|
|
3337
|
+
* Total rewards distributed for the successful delegation.
|
|
3338
|
+
*/
|
|
2895
3339
|
grossReward: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* Net rewards distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3342
|
+
*/
|
|
2896
3343
|
netReward: string;
|
|
2897
3344
|
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
2898
3345
|
};
|
|
@@ -2910,7 +3357,13 @@ type PendingDelegatorDetails = {
|
|
|
2910
3357
|
delegationFee: string;
|
|
2911
3358
|
startTimestamp: number;
|
|
2912
3359
|
endTimestamp: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* Estimated total rewards that will be distributed for the successful delegation.
|
|
3362
|
+
*/
|
|
2913
3363
|
estimatedGrossReward: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* Estimated net rewards that will be distributed to the delegator after deducting delegation fee from the gross reward for the successful delegation.
|
|
3366
|
+
*/
|
|
2914
3367
|
estimatedNetReward: string;
|
|
2915
3368
|
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2916
3369
|
};
|
|
@@ -3083,6 +3536,9 @@ type ActiveValidatorDetails = {
|
|
|
3083
3536
|
nodeId: string;
|
|
3084
3537
|
subnetId: string;
|
|
3085
3538
|
amountStaked: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3541
|
+
*/
|
|
3086
3542
|
delegationFee?: string;
|
|
3087
3543
|
startTimestamp: number;
|
|
3088
3544
|
endTimestamp: number;
|
|
@@ -3090,12 +3546,30 @@ type ActiveValidatorDetails = {
|
|
|
3090
3546
|
* Present for AddPermissionlessValidatorTx
|
|
3091
3547
|
*/
|
|
3092
3548
|
blsCredentials?: BlsCredentials;
|
|
3549
|
+
/**
|
|
3550
|
+
* The percentage of this validator's stake amount to the total active stake.
|
|
3551
|
+
*/
|
|
3093
3552
|
stakePercentage: number;
|
|
3553
|
+
/**
|
|
3554
|
+
* The number of delegators linked to the validator.
|
|
3555
|
+
*/
|
|
3094
3556
|
delegatorCount: number;
|
|
3557
|
+
/**
|
|
3558
|
+
* The total amount in nAVAX delegated to the validator.
|
|
3559
|
+
*/
|
|
3095
3560
|
amountDelegated?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* The validator's uptime percentage, as observed by our internal node and measured over time.
|
|
3563
|
+
*/
|
|
3096
3564
|
uptimePerformance: number;
|
|
3097
3565
|
avalancheGoVersion?: string;
|
|
3566
|
+
/**
|
|
3567
|
+
* The amount of stake in nAVAX that can be delegated to this validator.
|
|
3568
|
+
*/
|
|
3098
3569
|
delegationCapacity?: string;
|
|
3570
|
+
/**
|
|
3571
|
+
* Estimated rewards for the validator if the validation is successful.
|
|
3572
|
+
*/
|
|
3099
3573
|
potentialRewards: Rewards;
|
|
3100
3574
|
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
3101
3575
|
validatorHealth: ValidatorHealthDetails;
|
|
@@ -3111,6 +3585,9 @@ type CompletedValidatorDetails = {
|
|
|
3111
3585
|
nodeId: string;
|
|
3112
3586
|
subnetId: string;
|
|
3113
3587
|
amountStaked: string;
|
|
3588
|
+
/**
|
|
3589
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3590
|
+
*/
|
|
3114
3591
|
delegationFee?: string;
|
|
3115
3592
|
startTimestamp: number;
|
|
3116
3593
|
endTimestamp: number;
|
|
@@ -3134,6 +3611,9 @@ type PendingValidatorDetails = {
|
|
|
3134
3611
|
nodeId: string;
|
|
3135
3612
|
subnetId: string;
|
|
3136
3613
|
amountStaked: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3616
|
+
*/
|
|
3137
3617
|
delegationFee?: string;
|
|
3138
3618
|
startTimestamp: number;
|
|
3139
3619
|
endTimestamp: number;
|
|
@@ -3154,6 +3634,9 @@ type RemovedValidatorDetails = {
|
|
|
3154
3634
|
nodeId: string;
|
|
3155
3635
|
subnetId: string;
|
|
3156
3636
|
amountStaked: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations.
|
|
3639
|
+
*/
|
|
3157
3640
|
delegationFee?: string;
|
|
3158
3641
|
startTimestamp: number;
|
|
3159
3642
|
endTimestamp: number;
|
|
@@ -3161,7 +3644,13 @@ type RemovedValidatorDetails = {
|
|
|
3161
3644
|
* Present for AddPermissionlessValidatorTx
|
|
3162
3645
|
*/
|
|
3163
3646
|
blsCredentials?: BlsCredentials;
|
|
3647
|
+
/**
|
|
3648
|
+
* The transaction hash that removed the permissioned subnet validator.
|
|
3649
|
+
*/
|
|
3164
3650
|
removeTxHash: string;
|
|
3651
|
+
/**
|
|
3652
|
+
* The timestamp of the transaction that removed the permissioned subnet validator.
|
|
3653
|
+
*/
|
|
3165
3654
|
removeTimestamp: number;
|
|
3166
3655
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
3167
3656
|
};
|
|
@@ -4318,7 +4807,7 @@ type L1ValidatorDetailsTransaction = {
|
|
|
4318
4807
|
*/
|
|
4319
4808
|
remainingBalance: number;
|
|
4320
4809
|
/**
|
|
4321
|
-
* 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
|
|
4810
|
+
* 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
|
|
4322
4811
|
*/
|
|
4323
4812
|
balanceChange?: number;
|
|
4324
4813
|
blsCredentials?: Record<string, any>;
|
|
@@ -4348,6 +4837,9 @@ declare enum PChainTransactionType {
|
|
|
4348
4837
|
UNKNOWN = "UNKNOWN"
|
|
4349
4838
|
}
|
|
4350
4839
|
|
|
4840
|
+
/**
|
|
4841
|
+
* Indicates whether the UTXO is staked or transferable
|
|
4842
|
+
*/
|
|
4351
4843
|
declare enum UtxoType {
|
|
4352
4844
|
STAKE = "STAKE",
|
|
4353
4845
|
TRANSFER = "TRANSFER"
|
|
@@ -4385,16 +4877,43 @@ type PChainUtxo = {
|
|
|
4385
4877
|
assetId: string;
|
|
4386
4878
|
blockNumber: string;
|
|
4387
4879
|
blockTimestamp: number;
|
|
4880
|
+
/**
|
|
4881
|
+
* Block height in which the transaction consuming this UTXO was included
|
|
4882
|
+
*/
|
|
4388
4883
|
consumingBlockNumber?: string;
|
|
4884
|
+
/**
|
|
4885
|
+
* Timestamp in seconds at which this UTXO is used in a consuming transaction
|
|
4886
|
+
*/
|
|
4389
4887
|
consumingBlockTimestamp?: number;
|
|
4888
|
+
/**
|
|
4889
|
+
* Timestamp in seconds after which this UTXO can be consumed
|
|
4890
|
+
*/
|
|
4390
4891
|
platformLocktime?: number;
|
|
4892
|
+
/**
|
|
4893
|
+
* The index of the UTXO in the transaction
|
|
4894
|
+
*/
|
|
4391
4895
|
outputIndex: number;
|
|
4392
4896
|
rewardType?: RewardType;
|
|
4897
|
+
/**
|
|
4898
|
+
* Timestamp in seconds before which a UTXO can only be used for staking transactions. After stakeable locktime, a UTXO can be used for anything
|
|
4899
|
+
*/
|
|
4393
4900
|
stakeableLocktime?: number;
|
|
4394
4901
|
staked?: boolean;
|
|
4902
|
+
/**
|
|
4903
|
+
* The minimum number of signatures required to spend this UTXO
|
|
4904
|
+
*/
|
|
4395
4905
|
threshold?: number;
|
|
4906
|
+
/**
|
|
4907
|
+
* The hash of the transaction that created this UTXO
|
|
4908
|
+
*/
|
|
4396
4909
|
txHash: string;
|
|
4910
|
+
/**
|
|
4911
|
+
* Timestamp in seconds after which the staked UTXO will be unlocked.
|
|
4912
|
+
*/
|
|
4397
4913
|
utxoEndTimestamp?: number;
|
|
4914
|
+
/**
|
|
4915
|
+
* Timestamp in seconds at which the staked UTXO was locked.
|
|
4916
|
+
*/
|
|
4398
4917
|
utxoStartTimestamp?: number;
|
|
4399
4918
|
utxoType: UtxoType;
|
|
4400
4919
|
};
|
|
@@ -4409,9 +4928,18 @@ type PChainTransaction = {
|
|
|
4409
4928
|
* The block finality timestamp.
|
|
4410
4929
|
*/
|
|
4411
4930
|
blockTimestamp: number;
|
|
4931
|
+
/**
|
|
4932
|
+
* The height of the block in which the transaction was included
|
|
4933
|
+
*/
|
|
4412
4934
|
blockNumber: string;
|
|
4413
4935
|
blockHash: string;
|
|
4936
|
+
/**
|
|
4937
|
+
* The consumed UTXOs of the transaction
|
|
4938
|
+
*/
|
|
4414
4939
|
consumedUtxos: Array<PChainUtxo>;
|
|
4940
|
+
/**
|
|
4941
|
+
* The newly created UTXOs of the transaction
|
|
4942
|
+
*/
|
|
4415
4943
|
emittedUtxos: Array<PChainUtxo>;
|
|
4416
4944
|
/**
|
|
4417
4945
|
* Source chain for an atomic transaction.
|
|
@@ -4422,11 +4950,11 @@ type PChainTransaction = {
|
|
|
4422
4950
|
*/
|
|
4423
4951
|
destinationChain?: string;
|
|
4424
4952
|
/**
|
|
4425
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4953
|
+
* 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
|
|
4426
4954
|
*/
|
|
4427
4955
|
value: Array<AssetAmount>;
|
|
4428
4956
|
/**
|
|
4429
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4957
|
+
* 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
|
|
4430
4958
|
*/
|
|
4431
4959
|
amountBurned: Array<AssetAmount>;
|
|
4432
4960
|
/**
|
|
@@ -4434,7 +4962,7 @@ type PChainTransaction = {
|
|
|
4434
4962
|
*/
|
|
4435
4963
|
amountStaked: Array<AssetAmount>;
|
|
4436
4964
|
/**
|
|
4437
|
-
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
4965
|
+
* 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.
|
|
4438
4966
|
*/
|
|
4439
4967
|
amountL1ValidatorBalanceBurned: Array<AssetAmount>;
|
|
4440
4968
|
/**
|
|
@@ -4446,11 +4974,11 @@ type PChainTransaction = {
|
|
|
4446
4974
|
*/
|
|
4447
4975
|
endTimestamp?: number;
|
|
4448
4976
|
/**
|
|
4449
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4977
|
+
* The percentage of total estimated delegator rewards allocated to validator nodes for supporting delegations. Present for AddValidatorTx, AddPermissionlessValidatorTx
|
|
4450
4978
|
*/
|
|
4451
4979
|
delegationFeePercent?: string;
|
|
4452
4980
|
/**
|
|
4453
|
-
* Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4981
|
+
* The NodeID of the validator node linked to the stake transaction. Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4454
4982
|
*/
|
|
4455
4983
|
nodeId?: string;
|
|
4456
4984
|
/**
|
|
@@ -4466,14 +4994,17 @@ type PChainTransaction = {
|
|
|
4466
4994
|
*/
|
|
4467
4995
|
l1ValidatorDetails?: Array<L1ValidatorDetailsTransaction>;
|
|
4468
4996
|
/**
|
|
4469
|
-
* Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4997
|
+
* Estimated reward from the staking transaction, if successful. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
4470
4998
|
*/
|
|
4471
4999
|
estimatedReward?: string;
|
|
5000
|
+
/**
|
|
5001
|
+
* Reward transaction hash for the completed validations or delegations
|
|
5002
|
+
*/
|
|
4472
5003
|
rewardTxHash?: string;
|
|
4473
5004
|
rewardAddresses?: Array<string>;
|
|
4474
5005
|
memo?: string;
|
|
4475
5006
|
/**
|
|
4476
|
-
*
|
|
5007
|
+
* Staking transaction corresponding to the RewardValidatorTx
|
|
4477
5008
|
*/
|
|
4478
5009
|
stakingTxHash?: string;
|
|
4479
5010
|
/**
|
|
@@ -4481,7 +5012,7 @@ type PChainTransaction = {
|
|
|
4481
5012
|
*/
|
|
4482
5013
|
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
4483
5014
|
/**
|
|
4484
|
-
* Present for AddPermissionlessValidatorTx
|
|
5015
|
+
* Public Key and PoP of new validator registrations. Present for AddPermissionlessValidatorTx
|
|
4485
5016
|
*/
|
|
4486
5017
|
blsCredentials?: BlsCredentials;
|
|
4487
5018
|
};
|
|
@@ -5167,8 +5698,10 @@ declare class TeleporterService {
|
|
|
5167
5698
|
readonly httpRequest: BaseHttpRequest;
|
|
5168
5699
|
constructor(httpRequest: BaseHttpRequest);
|
|
5169
5700
|
/**
|
|
5170
|
-
*
|
|
5171
|
-
* Gets a teleporter message by message ID.
|
|
5701
|
+
* @deprecated
|
|
5702
|
+
* **[Deprecated]** Gets a teleporter message by message ID.
|
|
5703
|
+
*
|
|
5704
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
|
|
5172
5705
|
* @returns any Successful response
|
|
5173
5706
|
* @throws ApiError
|
|
5174
5707
|
*/
|
|
@@ -5179,8 +5712,10 @@ declare class TeleporterService {
|
|
|
5179
5712
|
messageId: string;
|
|
5180
5713
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5181
5714
|
/**
|
|
5182
|
-
*
|
|
5183
|
-
* Lists teleporter messages. Ordered by timestamp in
|
|
5715
|
+
* @deprecated
|
|
5716
|
+
* **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
|
|
5717
|
+
*
|
|
5718
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
|
|
5184
5719
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5185
5720
|
* @throws ApiError
|
|
5186
5721
|
*/
|
|
@@ -5219,8 +5754,10 @@ declare class TeleporterService {
|
|
|
5219
5754
|
network?: Network;
|
|
5220
5755
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5221
5756
|
/**
|
|
5222
|
-
*
|
|
5223
|
-
* Lists teleporter messages by address. Ordered by
|
|
5757
|
+
* @deprecated
|
|
5758
|
+
* **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
|
|
5759
|
+
*
|
|
5760
|
+
* ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
|
|
5224
5761
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5225
5762
|
* @throws ApiError
|
|
5226
5763
|
*/
|
|
@@ -5416,12 +5953,12 @@ declare class WebhooksService {
|
|
|
5416
5953
|
requestBody: UpdateWebhookRequest;
|
|
5417
5954
|
}): CancelablePromise<WebhookResponse>;
|
|
5418
5955
|
/**
|
|
5419
|
-
* Generate a shared secret
|
|
5420
|
-
* Generates a new shared secret.
|
|
5956
|
+
* Generate or rotate a shared secret
|
|
5957
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5421
5958
|
* @returns SharedSecretsResponse Successful response
|
|
5422
5959
|
* @throws ApiError
|
|
5423
5960
|
*/
|
|
5424
|
-
|
|
5961
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5425
5962
|
/**
|
|
5426
5963
|
* Get a shared secret
|
|
5427
5964
|
* Get a previously generated shared secret.
|
|
@@ -5487,7 +6024,9 @@ declare class Glacier {
|
|
|
5487
6024
|
readonly evmContracts: EvmContractsService;
|
|
5488
6025
|
readonly evmTransactions: EvmTransactionsService;
|
|
5489
6026
|
readonly healthCheck: HealthCheckService;
|
|
6027
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5490
6028
|
readonly nfTs: NfTsService;
|
|
6029
|
+
readonly notifications: NotificationsService;
|
|
5491
6030
|
readonly operations: OperationsService;
|
|
5492
6031
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
5493
6032
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -5651,4 +6190,4 @@ type Unauthorized = {
|
|
|
5651
6190
|
error: string;
|
|
5652
6191
|
};
|
|
5653
6192
|
|
|
5654
|
-
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, 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 };
|
|
6193
|
+
export { AccessRequest, 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, HealthCheckResultDto, HealthCheckService, HealthIndicatorResultDto, 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, NotificationsResponse, NotificationsService, 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, PrimaryNetworkRpcTimeIntervalGranularity, PrimaryNetworkRpcUsageMetricsResponseDTO, 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, SubscribeRequest, SubscriptionsRequest, SubscriptionsResponse, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UnsubscribeRequest, 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 };
|