@avalabs/glacier-sdk 3.1.0-canary.801d1a5.0 → 3.1.0-canary.85a0322.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 CHANGED
@@ -2602,6 +2602,221 @@ declare class HealthCheckService {
2602
2602
  }>;
2603
2603
  }
2604
2604
 
2605
+ type IcmDestinationTransaction = {
2606
+ txHash: string;
2607
+ timestamp: number;
2608
+ gasSpent: string;
2609
+ rewardRedeemer: string;
2610
+ delivererAddress: string;
2611
+ };
2612
+
2613
+ type IcmReceipt = {
2614
+ receivedMessageNonce: string;
2615
+ relayerRewardAddress: string;
2616
+ };
2617
+
2618
+ type IcmRewardDetails = {
2619
+ /**
2620
+ * A wallet or contract address in mixed-case checksum encoding.
2621
+ */
2622
+ address: string;
2623
+ /**
2624
+ * The contract name.
2625
+ */
2626
+ name: string;
2627
+ /**
2628
+ * The contract symbol.
2629
+ */
2630
+ symbol: string;
2631
+ /**
2632
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
2633
+ */
2634
+ decimals: number;
2635
+ /**
2636
+ * The logo uri for the address.
2637
+ */
2638
+ logoUri?: string;
2639
+ ercType: IcmRewardDetails.ercType;
2640
+ /**
2641
+ * The token price, if available.
2642
+ */
2643
+ price?: Money;
2644
+ value: string;
2645
+ };
2646
+ declare namespace IcmRewardDetails {
2647
+ enum ercType {
2648
+ ERC_20 = "ERC-20"
2649
+ }
2650
+ }
2651
+
2652
+ type IcmSourceTransaction = {
2653
+ txHash: string;
2654
+ timestamp: number;
2655
+ gasSpent: string;
2656
+ };
2657
+
2658
+ type DeliveredIcmMessage = {
2659
+ messageId: string;
2660
+ icmContractAddress: string;
2661
+ sourceBlockchainId: string;
2662
+ destinationBlockchainId: string;
2663
+ sourceEvmChainId: string;
2664
+ destinationEvmChainId: string;
2665
+ messageNonce: string;
2666
+ from: string;
2667
+ to: string;
2668
+ data?: string;
2669
+ messageExecuted: boolean;
2670
+ receipts: Array<IcmReceipt>;
2671
+ receiptDelivered: boolean;
2672
+ rewardDetails: IcmRewardDetails;
2673
+ sourceTransaction: IcmSourceTransaction;
2674
+ destinationTransaction: IcmDestinationTransaction;
2675
+ status: DeliveredIcmMessage.status;
2676
+ };
2677
+ declare namespace DeliveredIcmMessage {
2678
+ enum status {
2679
+ DELIVERED = "delivered"
2680
+ }
2681
+ }
2682
+
2683
+ type DeliveredSourceNotIndexedIcmMessage = {
2684
+ messageId: string;
2685
+ icmContractAddress: string;
2686
+ sourceBlockchainId: string;
2687
+ destinationBlockchainId: string;
2688
+ sourceEvmChainId: string;
2689
+ destinationEvmChainId: string;
2690
+ messageNonce: string;
2691
+ from: string;
2692
+ to: string;
2693
+ data?: string;
2694
+ messageExecuted: boolean;
2695
+ receipts: Array<IcmReceipt>;
2696
+ receiptDelivered: boolean;
2697
+ rewardDetails: IcmRewardDetails;
2698
+ destinationTransaction: IcmDestinationTransaction;
2699
+ status: DeliveredSourceNotIndexedIcmMessage.status;
2700
+ };
2701
+ declare namespace DeliveredSourceNotIndexedIcmMessage {
2702
+ enum status {
2703
+ DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
2704
+ }
2705
+ }
2706
+
2707
+ type PendingIcmMessage = {
2708
+ messageId: string;
2709
+ icmContractAddress: string;
2710
+ sourceBlockchainId: string;
2711
+ destinationBlockchainId: string;
2712
+ sourceEvmChainId: string;
2713
+ destinationEvmChainId: string;
2714
+ messageNonce: string;
2715
+ from: string;
2716
+ to: string;
2717
+ data?: string;
2718
+ messageExecuted: boolean;
2719
+ receipts: Array<IcmReceipt>;
2720
+ receiptDelivered: boolean;
2721
+ rewardDetails: IcmRewardDetails;
2722
+ sourceTransaction: IcmSourceTransaction;
2723
+ status: PendingIcmMessage.status;
2724
+ };
2725
+ declare namespace PendingIcmMessage {
2726
+ enum status {
2727
+ PENDING = "pending"
2728
+ }
2729
+ }
2730
+
2731
+ type ListIcmMessagesResponse = {
2732
+ /**
2733
+ * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2734
+ */
2735
+ nextPageToken?: string;
2736
+ messages: Array<(PendingIcmMessage | DeliveredIcmMessage)>;
2737
+ };
2738
+
2739
+ declare class InterchainMessagingService {
2740
+ readonly httpRequest: BaseHttpRequest;
2741
+ constructor(httpRequest: BaseHttpRequest);
2742
+ /**
2743
+ * Get an ICM message
2744
+ * Gets an ICM message by message ID.
2745
+ * @returns any Successful response
2746
+ * @throws ApiError
2747
+ */
2748
+ getIcmMessage({ messageId, }: {
2749
+ /**
2750
+ * The message ID of the ICM message.
2751
+ */
2752
+ messageId: string;
2753
+ }): CancelablePromise<(PendingIcmMessage | DeliveredIcmMessage | DeliveredSourceNotIndexedIcmMessage)>;
2754
+ /**
2755
+ * List ICM messages
2756
+ * Lists ICM messages. Ordered by timestamp in descending order.
2757
+ * @returns ListIcmMessagesResponse Successful response
2758
+ * @throws ApiError
2759
+ */
2760
+ listIcmMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, blockchainId, to, from, network, }: {
2761
+ /**
2762
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2763
+ */
2764
+ pageToken?: string;
2765
+ /**
2766
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2767
+ */
2768
+ pageSize?: number;
2769
+ /**
2770
+ * The base58 encoded blockchain ID or evm chain ID of the source chain that the ICM message was sent from.
2771
+ */
2772
+ sourceBlockchainId?: string;
2773
+ /**
2774
+ * The base58 encoded blockchain ID or evm chain ID of the destination chain that the ICM message was sent to.
2775
+ */
2776
+ destinationBlockchainId?: string;
2777
+ /**
2778
+ * The base58 encoded blockchain ID of either source or destination chain that one ICM message interacts with.
2779
+ */
2780
+ blockchainId?: string;
2781
+ /**
2782
+ * The address of the recipient of the ICM message.
2783
+ */
2784
+ to?: string;
2785
+ /**
2786
+ * The address of the sender of the ICM message.
2787
+ */
2788
+ from?: string;
2789
+ /**
2790
+ * Either mainnet or testnet/fuji.
2791
+ */
2792
+ network?: Network;
2793
+ }): CancelablePromise<ListIcmMessagesResponse>;
2794
+ /**
2795
+ * List ICM messages by address
2796
+ * Lists ICM messages by address. Ordered by timestamp in descending order.
2797
+ * @returns ListIcmMessagesResponse Successful response
2798
+ * @throws ApiError
2799
+ */
2800
+ listIcmMessagesByAddress({ address, pageToken, pageSize, network, }: {
2801
+ /**
2802
+ * An EVM address.
2803
+ */
2804
+ address: string;
2805
+ /**
2806
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
2807
+ */
2808
+ pageToken?: string;
2809
+ /**
2810
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
2811
+ */
2812
+ pageSize?: number;
2813
+ /**
2814
+ * Either mainnet or testnet/fuji.
2815
+ */
2816
+ network?: Network;
2817
+ }): CancelablePromise<ListIcmMessagesResponse>;
2818
+ }
2819
+
2605
2820
  type ListNftTokens = {
2606
2821
  /**
2607
2822
  * A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
@@ -5272,8 +5487,10 @@ declare class TeleporterService {
5272
5487
  readonly httpRequest: BaseHttpRequest;
5273
5488
  constructor(httpRequest: BaseHttpRequest);
5274
5489
  /**
5275
- * Get a teleporter message
5276
- * Gets a teleporter message by message ID.
5490
+ * @deprecated
5491
+ * **[Deprecated]** Gets a teleporter message by message ID.
5492
+ *
5493
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages/:messageId endpoint instead** .
5277
5494
  * @returns any Successful response
5278
5495
  * @throws ApiError
5279
5496
  */
@@ -5284,8 +5501,10 @@ declare class TeleporterService {
5284
5501
  messageId: string;
5285
5502
  }): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
5286
5503
  /**
5287
- * List teleporter messages
5288
- * Lists teleporter messages. Ordered by timestamp in descending order.
5504
+ * @deprecated
5505
+ * **[Deprecated]** Lists teleporter messages. Ordered by timestamp in descending order.
5506
+ *
5507
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/messages endpoint instead** .
5289
5508
  * @returns ListTeleporterMessagesResponse Successful response
5290
5509
  * @throws ApiError
5291
5510
  */
@@ -5324,8 +5543,10 @@ declare class TeleporterService {
5324
5543
  network?: Network;
5325
5544
  }): CancelablePromise<ListTeleporterMessagesResponse>;
5326
5545
  /**
5327
- * List teleporter messages by address
5328
- * Lists teleporter messages by address. Ordered by timestamp in descending order.
5546
+ * @deprecated
5547
+ * **[Deprecated]** Lists teleporter messages by address. Ordered by timestamp in descending order.
5548
+ *
5549
+ * ⚠️ **This operation will be removed in a future release. Please use /v1/icm/addresses/:address/messages endpoint instead** .
5329
5550
  * @returns ListTeleporterMessagesResponse Successful response
5330
5551
  * @throws ApiError
5331
5552
  */
@@ -5592,6 +5813,7 @@ declare class Glacier {
5592
5813
  readonly evmContracts: EvmContractsService;
5593
5814
  readonly evmTransactions: EvmTransactionsService;
5594
5815
  readonly healthCheck: HealthCheckService;
5816
+ readonly interchainMessaging: InterchainMessagingService;
5595
5817
  readonly nfTs: NfTsService;
5596
5818
  readonly operations: OperationsService;
5597
5819
  readonly primaryNetwork: PrimaryNetworkService;
@@ -5756,4 +5978,4 @@ type Unauthorized = {
5756
5978
  error: string;
5757
5979
  };
5758
5980
 
5759
- 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 };
5981
+ export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, ApiFeature, AssetAmount, AssetWithPriceInfo, BadGateway, BadRequest, BalanceOwner, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DataApiUsageMetricsService, DataListChainsResponse, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredIcmMessage, DeliveredSourceNotIndexedIcmMessage, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, Forbidden, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, IcmDestinationTransaction, IcmReceipt, IcmRewardDetails, IcmSourceTransaction, ImageAsset, InterchainMessagingService, InternalServerError, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, L1ValidatorDetailsFull, L1ValidatorDetailsTransaction, L1ValidatorManagerDetails, ListAddressChainsResponse, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListIcmMessagesResponse, ListInternalTransactionsResponse, ListL1ValidatorsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, LogsFormat, LogsFormatMetadata, LogsResponseDTO, Method, Metric, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NextPageToken, NfTsService, NftTokenMetadataStatus, NotFound, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingIcmMessage, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkRpcMetricsGroupByEnum, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, RequestType, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcMetrics, RpcUsageMetricsGroupByEnum, RpcUsageMetricsValueAggregated, ServiceUnavailable, SharedSecretsResponse, SignatureAggregationResponse, SignatureAggregatorRequest, SignatureAggregatorService, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, SubnetRpcTimeIntervalGranularity, SubnetRpcUsageMetricsResponseDTO, TeleporterDestinationTransaction, TeleporterMessageInfo, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TimeIntervalGranularityExtended, TooManyRequests, TransactionDetails, TransactionDirectionType, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, Unauthorized, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UsageMetricsGroupByEnum, UsageMetricsResponseDTO, UsageMetricsValueDTO, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };