@avalabs/glacier-sdk 2.8.0-alpha.89 → 2.8.0-alpha.90

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
@@ -2380,12 +2380,6 @@ type ChainAddressChainIdMapListResponse = {
2380
2380
  addresses: Array<ChainAddressChainIdMap>;
2381
2381
  };
2382
2382
 
2383
- declare enum CPBlockchainId {
2384
- P_CHAIN = "p-chain",
2385
- C_CHAIN = "c-chain",
2386
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
2387
- }
2388
-
2389
2383
  type CChainSharedAssetBalance = {
2390
2384
  /**
2391
2385
  * Unique ID for an asset.
@@ -2687,21 +2681,6 @@ type ListXChainBalancesResponse = {
2687
2681
  balances: XChainBalances;
2688
2682
  };
2689
2683
 
2690
- type TransactionVertexDetail = {
2691
- /**
2692
- * Vertex ID of the vertex this transaction belongs to.
2693
- */
2694
- hash: string;
2695
- /**
2696
- * Vertex height of the vertex this transaction belongs to.
2697
- */
2698
- height: number;
2699
- /**
2700
- * Timestamp in seconds this vertex was accepted.
2701
- */
2702
- timestamp: number;
2703
- };
2704
-
2705
2684
  type XChainAssetDetails = {
2706
2685
  /**
2707
2686
  * Unique ID for an asset.
@@ -2733,15 +2712,15 @@ type XChainAssetDetails = {
2733
2712
  cap: string;
2734
2713
  };
2735
2714
 
2736
- type XChainTransaction = {
2715
+ type XChainLinearTransaction = {
2737
2716
  /**
2738
2717
  * Unique ID for this transaction.
2739
2718
  */
2740
2719
  txHash: string;
2741
2720
  /**
2742
- * A transaction on X-Chain can be accepted over multiple vertices.
2721
+ * Represents container format this transaction is included in.
2743
2722
  */
2744
- vertices: Array<TransactionVertexDetail>;
2723
+ chainFormat: XChainLinearTransaction.chainFormat;
2745
2724
  /**
2746
2725
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
2747
2726
  */
@@ -2776,14 +2755,104 @@ type XChainTransaction = {
2776
2755
  * Asset details of the asset created in CreateAssetTx
2777
2756
  */
2778
2757
  assetCreated?: XChainAssetDetails;
2758
+ /**
2759
+ * Height of the block this transaction belongs to.
2760
+ */
2761
+ blockHeight: number;
2762
+ /**
2763
+ * Hash of the block this transaction belongs to.
2764
+ */
2765
+ blockHash: string;
2779
2766
  };
2767
+ declare namespace XChainLinearTransaction {
2768
+ /**
2769
+ * Represents container format this transaction is included in.
2770
+ */
2771
+ enum chainFormat {
2772
+ LINEAR = "linear",
2773
+ NON_LINEAR = "non-linear"
2774
+ }
2775
+ }
2776
+
2777
+ type TransactionVertexDetail = {
2778
+ /**
2779
+ * Vertex ID of the vertex this transaction belongs to.
2780
+ */
2781
+ hash: string;
2782
+ /**
2783
+ * Vertex height of the vertex this transaction belongs to.
2784
+ */
2785
+ height: number;
2786
+ /**
2787
+ * Timestamp in seconds this vertex was accepted.
2788
+ */
2789
+ timestamp: number;
2790
+ };
2791
+
2792
+ type XChainNonLinearTransaction = {
2793
+ /**
2794
+ * Unique ID for this transaction.
2795
+ */
2796
+ txHash: string;
2797
+ /**
2798
+ * Represents container format this transaction is included in.
2799
+ */
2800
+ chainFormat: XChainNonLinearTransaction.chainFormat;
2801
+ /**
2802
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
2803
+ */
2804
+ timestamp: number;
2805
+ /**
2806
+ * Type of transaction.
2807
+ */
2808
+ txType: string;
2809
+ /**
2810
+ * Hex encoded memo bytes for this transaction.
2811
+ */
2812
+ memo: string;
2813
+ consumedUtxos: Array<Utxo>;
2814
+ emittedUtxos: Array<Utxo>;
2815
+ /**
2816
+ * Assets unlocked by inputs of this transaction.
2817
+ */
2818
+ amountUnlocked: Array<Asset>;
2819
+ /**
2820
+ * Assets created by outputs of this transaction.
2821
+ */
2822
+ amountCreated: Array<Asset>;
2823
+ /**
2824
+ * Source chain for an atomic transaction.
2825
+ */
2826
+ sourceChain?: string;
2827
+ /**
2828
+ * Destination chain for an atomic transaction.
2829
+ */
2830
+ destinationChain?: string;
2831
+ /**
2832
+ * Asset details of the asset created in CreateAssetTx
2833
+ */
2834
+ assetCreated?: XChainAssetDetails;
2835
+ /**
2836
+ * A transaction on X-Chain can be accepted over multiple vertices.
2837
+ */
2838
+ vertices: Array<TransactionVertexDetail>;
2839
+ };
2840
+ declare namespace XChainNonLinearTransaction {
2841
+ /**
2842
+ * Represents container format this transaction is included in.
2843
+ */
2844
+ enum chainFormat {
2845
+ LINEAR = "linear",
2846
+ NON_LINEAR = "non-linear"
2847
+ }
2848
+ }
2780
2849
 
2781
2850
  type ListXChainTransactionsResponse = {
2782
2851
  /**
2783
2852
  * 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.
2784
2853
  */
2785
2854
  nextPageToken?: string;
2786
- transactions: Array<XChainTransaction>;
2855
+ transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
2787
2856
  };
2788
2857
 
2789
2858
  type XChainVertex = {
@@ -2841,7 +2910,7 @@ declare class PrimaryNetworkService {
2841
2910
  * A primary network (P or X chain) transaction hash.
2842
2911
  */
2843
2912
  txHash: string;
2844
- }): CancelablePromise<(PChainTransaction | XChainTransaction | CChainExportTransaction | CChainImportTransaction)>;
2913
+ }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
2845
2914
  /**
2846
2915
  * Returns latest transactions. If addresses are supplied, returns transactions for those addresses.
2847
2916
  * @returns any
@@ -2968,15 +3037,15 @@ declare class PrimaryNetworkService {
2968
3037
  addresses?: string;
2969
3038
  }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
2970
3039
  /**
2971
- * Returns block by block_height or block_hash on P-Chain or C-Chain (hexadecimal for C-Chain).
3040
+ * Returns block by block_height or block_hash on P-Chain, X-Chain (Cortina), C-Chain (hexadecimal for C-Chain).
2972
3041
  * @returns ListBlocksResponse
2973
3042
  * @throws ApiError
2974
3043
  */
2975
3044
  getBlockById({ blockchainId, network, blockId, }: {
2976
3045
  /**
2977
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain or c-chain instead!
3046
+ * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
2978
3047
  */
2979
- blockchainId: CPBlockchainId;
3048
+ blockchainId: BlockchainId;
2980
3049
  /**
2981
3050
  * Either mainnet or a testnet.
2982
3051
  */
@@ -3015,7 +3084,7 @@ declare class PrimaryNetworkService {
3015
3084
  pageToken?: string;
3016
3085
  }): CancelablePromise<ListBlocksResponse>;
3017
3086
  /**
3018
- * Returns latest blocks, up to user defined limit on P-Chain or C-Chain.
3087
+ * Returns latest blocks, up to user defined limit on P-Chain, X-Chain or C-Chain.
3019
3088
  * @returns ListBlocksResponse
3020
3089
  * @throws ApiError
3021
3090
  */
@@ -3206,4 +3275,4 @@ declare class ApiError extends Error {
3206
3275
  constructor(request: ApiRequestOptions, response: ApiResult, message: string);
3207
3276
  }
3208
3277
 
3209
- export { Address, ApiError, Asset, AssetType, BaseHttpRequest, Block, BlockchainId, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CPBlockchainId, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, ContractType, CreateTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmNetworkOptions, EvmService, FullNativeTransactionDetails, GetBlockResponse, GetChainResponse, GetContractInformationResponse, GetNativeBalanceResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlocksResponse, ListCChainAtomicBalancesResponse, ListCChainExportTxsResponse, ListCChainImportTxsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationTransactionExportMetadata, OperationType, OperationsService, PChainAsset, PChainBalance, PChainConsumedUtxo, PChainEmittedUtxo, PChainId, PChainTransaction, PChainUtxo, PaginationParams, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, ReviewStatus, RichAddress, SortOrder, TokenWithPrice, TransactionDetails, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainSharedAssetBalance, XChainTransaction, XChainVertex };
3278
+ export { Address, ApiError, Asset, AssetType, BaseHttpRequest, Block, BlockchainId, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelListingEventResponse, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CloseAuctionEventResponse, CollectionMetrics, CollectionSortByOption, ContractType, CreateTransactionExportRequest, CurrencyCode, EVMInput, EVMOutput, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, ErcType, EvmNetworkOptions, EvmService, FullNativeTransactionDetails, GetBlockResponse, GetChainResponse, GetContractInformationResponse, GetNativeBalanceResponse, GetTransactionResponse, Glacier, HealthCheckService, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlocksResponse, ListCChainAtomicBalancesResponse, ListCChainExportTxsResponse, ListCChainImportTxsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListInternalTransactionsResponse, ListListingsResponse, ListNativeTransactionsResponse, ListNftCollectionWithMetricsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, ListingCurrencyType, ListingEventType, ListingResponse, ListingType, ListingsSortByOption, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NftCollection, NftCollectionWithMetrics, NftFilterOptionsProperty, NftSearchBody, NftSearchResultTypeOption, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OpenListingEventResponse, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationTransactionExportMetadata, OperationType, OperationsService, PChainAsset, PChainBalance, PChainConsumedUtxo, PChainEmittedUtxo, PChainId, PChainTransaction, PChainUtxo, PaginationParams, PrimaryNetworkOptions, PrimaryNetworkService, ProposerDetails, PurchaseListingEventResponse, ResourceLink, ResourceLinkType, ReviewStatus, RichAddress, SortOrder, TokenWithPrice, TransactionDetails, TransactionMethodType, TransactionStatus, TransactionVertexDetail, TrendingTimeframe, UtilityAddresses, Utxo, UtxoCredential, VmName, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainVertex };
package/dist/index.js CHANGED
@@ -1268,13 +1268,6 @@ var ContractType = /* @__PURE__ */ ((ContractType2) => {
1268
1268
  return ContractType2;
1269
1269
  })(ContractType || {});
1270
1270
 
1271
- var CPBlockchainId = /* @__PURE__ */ ((CPBlockchainId2) => {
1272
- CPBlockchainId2["P_CHAIN"] = "p-chain";
1273
- CPBlockchainId2["C_CHAIN"] = "c-chain";
1274
- CPBlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
1275
- return CPBlockchainId2;
1276
- })(CPBlockchainId || {});
1277
-
1278
1271
  var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
1279
1272
  CurrencyCode2["USD"] = "usd";
1280
1273
  CurrencyCode2["EUR"] = "eur";
@@ -1495,11 +1488,26 @@ var XChainId = /* @__PURE__ */ ((XChainId2) => {
1495
1488
  return XChainId2;
1496
1489
  })(XChainId || {});
1497
1490
 
1491
+ exports.XChainLinearTransaction = void 0;
1492
+ ((XChainLinearTransaction2) => {
1493
+ ((chainFormat2) => {
1494
+ chainFormat2["LINEAR"] = "linear";
1495
+ chainFormat2["NON_LINEAR"] = "non-linear";
1496
+ })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
1497
+ })(exports.XChainLinearTransaction || (exports.XChainLinearTransaction = {}));
1498
+
1499
+ exports.XChainNonLinearTransaction = void 0;
1500
+ ((XChainNonLinearTransaction2) => {
1501
+ ((chainFormat2) => {
1502
+ chainFormat2["LINEAR"] = "linear";
1503
+ chainFormat2["NON_LINEAR"] = "non-linear";
1504
+ })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
1505
+ })(exports.XChainNonLinearTransaction || (exports.XChainNonLinearTransaction = {}));
1506
+
1498
1507
  exports.ApiError = ApiError;
1499
1508
  exports.AssetType = AssetType;
1500
1509
  exports.BaseHttpRequest = BaseHttpRequest;
1501
1510
  exports.BlockchainId = BlockchainId;
1502
- exports.CPBlockchainId = CPBlockchainId;
1503
1511
  exports.CancelError = CancelError;
1504
1512
  exports.CancelablePromise = CancelablePromise;
1505
1513
  exports.ChainStatus = ChainStatus;
@@ -1,11 +1,12 @@
1
- import { XChainTransaction } from './XChainTransaction.js';
1
+ import { XChainLinearTransaction } from './XChainLinearTransaction.js';
2
+ import { XChainNonLinearTransaction } from './XChainNonLinearTransaction.js';
2
3
 
3
4
  type ListXChainTransactionsResponse = {
4
5
  /**
5
6
  * 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.
6
7
  */
7
8
  nextPageToken?: string;
8
- transactions: Array<XChainTransaction>;
9
+ transactions: Array<(XChainNonLinearTransaction | XChainLinearTransaction)>;
9
10
  };
10
11
 
11
12
  export { ListXChainTransactionsResponse };
@@ -0,0 +1,67 @@
1
+ import { Asset } from './Asset.js';
2
+ import { Utxo } from './Utxo.js';
3
+ import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+
5
+ type XChainLinearTransaction = {
6
+ /**
7
+ * Unique ID for this transaction.
8
+ */
9
+ txHash: string;
10
+ /**
11
+ * Represents container format this transaction is included in.
12
+ */
13
+ chainFormat: XChainLinearTransaction.chainFormat;
14
+ /**
15
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
16
+ */
17
+ timestamp: number;
18
+ /**
19
+ * Type of transaction.
20
+ */
21
+ txType: string;
22
+ /**
23
+ * Hex encoded memo bytes for this transaction.
24
+ */
25
+ memo: string;
26
+ consumedUtxos: Array<Utxo>;
27
+ emittedUtxos: Array<Utxo>;
28
+ /**
29
+ * Assets unlocked by inputs of this transaction.
30
+ */
31
+ amountUnlocked: Array<Asset>;
32
+ /**
33
+ * Assets created by outputs of this transaction.
34
+ */
35
+ amountCreated: Array<Asset>;
36
+ /**
37
+ * Source chain for an atomic transaction.
38
+ */
39
+ sourceChain?: string;
40
+ /**
41
+ * Destination chain for an atomic transaction.
42
+ */
43
+ destinationChain?: string;
44
+ /**
45
+ * Asset details of the asset created in CreateAssetTx
46
+ */
47
+ assetCreated?: XChainAssetDetails;
48
+ /**
49
+ * Height of the block this transaction belongs to.
50
+ */
51
+ blockHeight: number;
52
+ /**
53
+ * Hash of the block this transaction belongs to.
54
+ */
55
+ blockHash: string;
56
+ };
57
+ declare namespace XChainLinearTransaction {
58
+ /**
59
+ * Represents container format this transaction is included in.
60
+ */
61
+ enum chainFormat {
62
+ LINEAR = "linear",
63
+ NON_LINEAR = "non-linear"
64
+ }
65
+ }
66
+
67
+ export { XChainLinearTransaction };
@@ -0,0 +1,9 @@
1
+ var XChainLinearTransaction;
2
+ ((XChainLinearTransaction2) => {
3
+ ((chainFormat2) => {
4
+ chainFormat2["LINEAR"] = "linear";
5
+ chainFormat2["NON_LINEAR"] = "non-linear";
6
+ })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
7
+ })(XChainLinearTransaction || (XChainLinearTransaction = {}));
8
+
9
+ export { XChainLinearTransaction };
@@ -3,15 +3,15 @@ import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
3
  import { Utxo } from './Utxo.js';
4
4
  import { XChainAssetDetails } from './XChainAssetDetails.js';
5
5
 
6
- type XChainTransaction = {
6
+ type XChainNonLinearTransaction = {
7
7
  /**
8
8
  * Unique ID for this transaction.
9
9
  */
10
10
  txHash: string;
11
11
  /**
12
- * A transaction on X-Chain can be accepted over multiple vertices.
12
+ * Represents container format this transaction is included in.
13
13
  */
14
- vertices: Array<TransactionVertexDetail>;
14
+ chainFormat: XChainNonLinearTransaction.chainFormat;
15
15
  /**
16
16
  * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
17
  */
@@ -46,6 +46,19 @@ type XChainTransaction = {
46
46
  * Asset details of the asset created in CreateAssetTx
47
47
  */
48
48
  assetCreated?: XChainAssetDetails;
49
+ /**
50
+ * A transaction on X-Chain can be accepted over multiple vertices.
51
+ */
52
+ vertices: Array<TransactionVertexDetail>;
49
53
  };
54
+ declare namespace XChainNonLinearTransaction {
55
+ /**
56
+ * Represents container format this transaction is included in.
57
+ */
58
+ enum chainFormat {
59
+ LINEAR = "linear",
60
+ NON_LINEAR = "non-linear"
61
+ }
62
+ }
50
63
 
51
- export { XChainTransaction };
64
+ export { XChainNonLinearTransaction };
@@ -0,0 +1,9 @@
1
+ var XChainNonLinearTransaction;
2
+ ((XChainNonLinearTransaction2) => {
3
+ ((chainFormat2) => {
4
+ chainFormat2["LINEAR"] = "linear";
5
+ chainFormat2["NON_LINEAR"] = "non-linear";
6
+ })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
7
+ })(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
8
+
9
+ export { XChainNonLinearTransaction };
@@ -2,7 +2,6 @@ import { BlockchainId } from '../models/BlockchainId.js';
2
2
  import { CChainExportTransaction } from '../models/CChainExportTransaction.js';
3
3
  import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
4
4
  import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
5
- import { CPBlockchainId } from '../models/CPBlockchainId.js';
6
5
  import { ListBlocksResponse } from '../models/ListBlocksResponse.js';
7
6
  import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
8
7
  import { ListCChainExportTxsResponse } from '../models/ListCChainExportTxsResponse.js';
@@ -20,7 +19,8 @@ import { PChainTransaction } from '../models/PChainTransaction.js';
20
19
  import { SortOrder } from '../models/SortOrder.js';
21
20
  import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
22
21
  import { XChainId } from '../models/XChainId.js';
23
- import { XChainTransaction } from '../models/XChainTransaction.js';
22
+ import { XChainLinearTransaction } from '../models/XChainLinearTransaction.js';
23
+ import { XChainNonLinearTransaction } from '../models/XChainNonLinearTransaction.js';
24
24
  import { XChainVertex } from '../models/XChainVertex.js';
25
25
  import { CancelablePromise } from '../core/CancelablePromise.js';
26
26
  import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
@@ -46,7 +46,7 @@ declare class PrimaryNetworkService {
46
46
  * A primary network (P or X chain) transaction hash.
47
47
  */
48
48
  txHash: string;
49
- }): CancelablePromise<(PChainTransaction | XChainTransaction | CChainExportTransaction | CChainImportTransaction)>;
49
+ }): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
50
50
  /**
51
51
  * Returns latest transactions. If addresses are supplied, returns transactions for those addresses.
52
52
  * @returns any
@@ -173,15 +173,15 @@ declare class PrimaryNetworkService {
173
173
  addresses?: string;
174
174
  }): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
175
175
  /**
176
- * Returns block by block_height or block_hash on P-Chain or C-Chain (hexadecimal for C-Chain).
176
+ * Returns block by block_height or block_hash on P-Chain, X-Chain (Cortina), C-Chain (hexadecimal for C-Chain).
177
177
  * @returns ListBlocksResponse
178
178
  * @throws ApiError
179
179
  */
180
180
  getBlockById({ blockchainId, network, blockId, }: {
181
181
  /**
182
- * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain or c-chain instead!
182
+ * A supported chain name. BlockchainId values will be deprecated in a future release. Please use chain names like p-chain, x-chain or c-chain instead!
183
183
  */
184
- blockchainId: CPBlockchainId;
184
+ blockchainId: BlockchainId;
185
185
  /**
186
186
  * Either mainnet or a testnet.
187
187
  */
@@ -220,7 +220,7 @@ declare class PrimaryNetworkService {
220
220
  pageToken?: string;
221
221
  }): CancelablePromise<ListBlocksResponse>;
222
222
  /**
223
- * Returns latest blocks, up to user defined limit on P-Chain or C-Chain.
223
+ * Returns latest blocks, up to user defined limit on P-Chain, X-Chain or C-Chain.
224
224
  * @returns ListBlocksResponse
225
225
  * @throws ApiError
226
226
  */
package/esm/index.d.ts CHANGED
@@ -21,7 +21,6 @@ export { CloseAuctionEventResponse } from './generated/models/CloseAuctionEventR
21
21
  export { CollectionMetrics } from './generated/models/CollectionMetrics.js';
22
22
  export { CollectionSortByOption } from './generated/models/CollectionSortByOption.js';
23
23
  export { ContractType } from './generated/models/ContractType.js';
24
- export { CPBlockchainId } from './generated/models/CPBlockchainId.js';
25
24
  export { CreateTransactionExportRequest } from './generated/models/CreateTransactionExportRequest.js';
26
25
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
27
26
  export { Erc1155Token } from './generated/models/Erc1155Token.js';
@@ -130,8 +129,9 @@ export { XChainAssetBalance } from './generated/models/XChainAssetBalance.js';
130
129
  export { XChainAssetDetails } from './generated/models/XChainAssetDetails.js';
131
130
  export { XChainBalances } from './generated/models/XChainBalances.js';
132
131
  export { XChainId } from './generated/models/XChainId.js';
132
+ export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
133
+ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
133
134
  export { XChainSharedAssetBalance } from './generated/models/XChainSharedAssetBalance.js';
134
- export { XChainTransaction } from './generated/models/XChainTransaction.js';
135
135
  export { XChainVertex } from './generated/models/XChainVertex.js';
136
136
  export { EvmService } from './generated/services/EvmService.js';
137
137
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
package/esm/index.js CHANGED
@@ -10,7 +10,6 @@ export { CChainImportTransaction } from './generated/models/CChainImportTransact
10
10
  export { ChainStatus } from './generated/models/ChainStatus.js';
11
11
  export { CollectionSortByOption } from './generated/models/CollectionSortByOption.js';
12
12
  export { ContractType } from './generated/models/ContractType.js';
13
- export { CPBlockchainId } from './generated/models/CPBlockchainId.js';
14
13
  export { CurrencyCode } from './generated/models/CurrencyCode.js';
15
14
  export { Erc1155Token } from './generated/models/Erc1155Token.js';
16
15
  export { Erc1155TokenBalance } from './generated/models/Erc1155TokenBalance.js';
@@ -39,6 +38,8 @@ export { TransactionStatus } from './generated/models/TransactionStatus.js';
39
38
  export { TrendingTimeframe } from './generated/models/TrendingTimeframe.js';
40
39
  export { VmName } from './generated/models/VmName.js';
41
40
  export { XChainId } from './generated/models/XChainId.js';
41
+ export { XChainLinearTransaction } from './generated/models/XChainLinearTransaction.js';
42
+ export { XChainNonLinearTransaction } from './generated/models/XChainNonLinearTransaction.js';
42
43
  export { EvmService } from './generated/services/EvmService.js';
43
44
  export { HealthCheckService } from './generated/services/HealthCheckService.js';
44
45
  export { OperationsService } from './generated/services/OperationsService.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.89",
3
+ "version": "2.8.0-alpha.90",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -33,7 +33,7 @@
33
33
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@avalabs/utils-sdk": "2.8.0-alpha.89"
36
+ "@avalabs/utils-sdk": "2.8.0-alpha.90"
37
37
  },
38
- "gitHead": "43bc24b5bd9dcdcceaf2d11aaea62e008b7d4ba9"
38
+ "gitHead": "402171ff786695b3a0c7ed68c9cb7dfb25aad244"
39
39
  }
@@ -1,7 +0,0 @@
1
- declare enum CPBlockchainId {
2
- P_CHAIN = "p-chain",
3
- C_CHAIN = "c-chain",
4
- _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
5
- }
6
-
7
- export { CPBlockchainId };
@@ -1,8 +0,0 @@
1
- var CPBlockchainId = /* @__PURE__ */ ((CPBlockchainId2) => {
2
- CPBlockchainId2["P_CHAIN"] = "p-chain";
3
- CPBlockchainId2["C_CHAIN"] = "c-chain";
4
- CPBlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
5
- return CPBlockchainId2;
6
- })(CPBlockchainId || {});
7
-
8
- export { CPBlockchainId };