@avalabs/glacier-sdk 3.1.0-canary.721d6e7.0 → 3.1.0-canary.755c414.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 +365 -34
- 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/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/ListIcmMessagesResponse.d.ts +12 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +1 -1
- package/esm/generated/models/PendingIcmMessage.d.ts +29 -0
- package/esm/generated/models/PendingIcmMessage.js +1 -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/RpcUsageMetricsValueAggregated.d.ts +4 -0
- package/esm/generated/models/RpcUsageMetricsValueAggregated.js +1 -1
- package/esm/generated/services/DataApiUsageMetricsService.d.ts +55 -6
- package/esm/generated/services/DataApiUsageMetricsService.js +1 -1
- 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/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 +13 -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",
|
|
@@ -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 = {
|
|
@@ -2869,7 +3193,7 @@ type OperationStatusResponse = {
|
|
|
2869
3193
|
operationType: OperationType;
|
|
2870
3194
|
operationStatus: OperationStatus;
|
|
2871
3195
|
message?: string;
|
|
2872
|
-
metadata
|
|
3196
|
+
metadata?: TransactionExportMetadata;
|
|
2873
3197
|
createdAtTimestamp: number;
|
|
2874
3198
|
updatedAtTimestamp: number;
|
|
2875
3199
|
};
|
|
@@ -5374,8 +5698,10 @@ declare class TeleporterService {
|
|
|
5374
5698
|
readonly httpRequest: BaseHttpRequest;
|
|
5375
5699
|
constructor(httpRequest: BaseHttpRequest);
|
|
5376
5700
|
/**
|
|
5377
|
-
*
|
|
5378
|
-
* 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** .
|
|
5379
5705
|
* @returns any Successful response
|
|
5380
5706
|
* @throws ApiError
|
|
5381
5707
|
*/
|
|
@@ -5386,8 +5712,10 @@ declare class TeleporterService {
|
|
|
5386
5712
|
messageId: string;
|
|
5387
5713
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
5388
5714
|
/**
|
|
5389
|
-
*
|
|
5390
|
-
* 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** .
|
|
5391
5719
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5392
5720
|
* @throws ApiError
|
|
5393
5721
|
*/
|
|
@@ -5426,8 +5754,10 @@ declare class TeleporterService {
|
|
|
5426
5754
|
network?: Network;
|
|
5427
5755
|
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
5428
5756
|
/**
|
|
5429
|
-
*
|
|
5430
|
-
* 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** .
|
|
5431
5761
|
* @returns ListTeleporterMessagesResponse Successful response
|
|
5432
5762
|
* @throws ApiError
|
|
5433
5763
|
*/
|
|
@@ -5623,12 +5953,12 @@ declare class WebhooksService {
|
|
|
5623
5953
|
requestBody: UpdateWebhookRequest;
|
|
5624
5954
|
}): CancelablePromise<WebhookResponse>;
|
|
5625
5955
|
/**
|
|
5626
|
-
* Generate a shared secret
|
|
5627
|
-
* Generates a new shared secret.
|
|
5956
|
+
* Generate or rotate a shared secret
|
|
5957
|
+
* Generates a new shared secret or rotate an existing one.
|
|
5628
5958
|
* @returns SharedSecretsResponse Successful response
|
|
5629
5959
|
* @throws ApiError
|
|
5630
5960
|
*/
|
|
5631
|
-
|
|
5961
|
+
generateOrRotateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
5632
5962
|
/**
|
|
5633
5963
|
* Get a shared secret
|
|
5634
5964
|
* Get a previously generated shared secret.
|
|
@@ -5694,6 +6024,7 @@ declare class Glacier {
|
|
|
5694
6024
|
readonly evmContracts: EvmContractsService;
|
|
5695
6025
|
readonly evmTransactions: EvmTransactionsService;
|
|
5696
6026
|
readonly healthCheck: HealthCheckService;
|
|
6027
|
+
readonly interchainMessaging: InterchainMessagingService;
|
|
5697
6028
|
readonly nfTs: NfTsService;
|
|
5698
6029
|
readonly notifications: NotificationsService;
|
|
5699
6030
|
readonly operations: OperationsService;
|
|
@@ -5859,4 +6190,4 @@ type Unauthorized = {
|
|
|
5859
6190
|
error: string;
|
|
5860
6191
|
};
|
|
5861
6192
|
|
|
5862
|
-
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, 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, NotificationsResponse, NotificationsService, 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, 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 };
|
|
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 };
|