@avalabs/glacier-sdk 2.8.0-alpha.80 → 2.8.0-alpha.82

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.
Files changed (190) hide show
  1. package/dist/index.d.ts +2614 -1012
  2. package/dist/index.js +1428 -207
  3. package/esm/generated/Glacier.d.ts +18 -0
  4. package/esm/generated/Glacier.js +28 -0
  5. package/esm/generated/core/ApiError.d.ts +13 -0
  6. package/esm/generated/core/ApiError.js +13 -0
  7. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  8. package/esm/generated/core/ApiResult.d.ts +9 -0
  9. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  10. package/esm/generated/core/BaseHttpRequest.js +7 -0
  11. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  12. package/esm/generated/core/CancelablePromise.js +86 -0
  13. package/esm/generated/core/FetchHttpRequest.js +13 -0
  14. package/esm/generated/core/OpenAPI.d.ts +18 -0
  15. package/esm/generated/core/OpenAPI.js +13 -0
  16. package/esm/generated/core/request.js +244 -0
  17. package/esm/generated/models/Address.d.ts +8 -0
  18. package/esm/generated/models/Asset.d.ts +28 -0
  19. package/esm/generated/models/AssetType.d.ts +8 -0
  20. package/esm/generated/models/AssetType.js +9 -0
  21. package/esm/generated/models/Block.d.ts +15 -0
  22. package/esm/generated/models/BlockchainId.d.ts +9 -0
  23. package/esm/generated/models/BlockchainId.js +10 -0
  24. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  25. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  26. package/esm/generated/models/CChainExportTransaction.js +8 -0
  27. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  28. package/esm/generated/models/CChainImportTransaction.js +8 -0
  29. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  30. package/esm/generated/models/CPBlockchainId.d.ts +7 -0
  31. package/esm/generated/models/CPBlockchainId.js +8 -0
  32. package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
  33. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  34. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  35. package/esm/generated/models/ChainInfo.d.ts +22 -0
  36. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  37. package/esm/generated/models/CollectionMetrics.d.ts +40 -0
  38. package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
  39. package/esm/generated/models/CollectionSortByOption.js +9 -0
  40. package/esm/generated/models/ContractType.d.ts +7 -0
  41. package/esm/generated/models/ContractType.js +8 -0
  42. package/esm/generated/models/CreateTransactionExportRequest.d.ts +11 -0
  43. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  44. package/esm/generated/models/CurrencyCode.js +19 -0
  45. package/esm/generated/models/EVMInput.d.ts +14 -0
  46. package/esm/generated/models/EVMOutput.d.ts +14 -0
  47. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  48. package/esm/generated/models/Erc1155Token.js +8 -0
  49. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  50. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  51. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  52. package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
  53. package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
  54. package/esm/generated/models/Erc20Token.d.ts +38 -0
  55. package/esm/generated/models/Erc20Token.js +8 -0
  56. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  57. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  58. package/esm/generated/models/Erc20Transfer.d.ts +27 -0
  59. package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
  60. package/esm/generated/models/Erc721Token.d.ts +27 -0
  61. package/esm/generated/models/Erc721Token.js +8 -0
  62. package/esm/generated/models/Erc721TokenBalance.d.ts +31 -0
  63. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  64. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  65. package/esm/generated/models/Erc721Transfer.d.ts +26 -0
  66. package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
  67. package/esm/generated/models/ErcType.d.ts +8 -0
  68. package/esm/generated/models/ErcType.js +9 -0
  69. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  70. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  71. package/esm/generated/models/GetBlockResponse.d.ts +49 -0
  72. package/esm/generated/models/GetChainResponse.d.ts +22 -0
  73. package/esm/generated/models/GetContractInformationResponse.d.ts +58 -0
  74. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  75. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  76. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  77. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  78. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  79. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  80. package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
  81. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
  82. package/esm/generated/models/ListCChainExportTxsResponse.d.ts +11 -0
  83. package/esm/generated/models/ListCChainImportTxsResponse.d.ts +11 -0
  84. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  85. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  86. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  87. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  88. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  89. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  90. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  91. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  92. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  96. package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
  97. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
  98. package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
  99. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  100. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  101. package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
  102. package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
  103. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +11 -0
  104. package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
  105. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  106. package/esm/generated/models/ListingCurrencyType.js +7 -0
  107. package/esm/generated/models/ListingEventType.d.ts +8 -0
  108. package/esm/generated/models/ListingEventType.js +9 -0
  109. package/esm/generated/models/ListingResponse.d.ts +19 -0
  110. package/esm/generated/models/ListingType.d.ts +6 -0
  111. package/esm/generated/models/ListingType.js +7 -0
  112. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  113. package/esm/generated/models/ListingsSortByOption.js +6 -0
  114. package/esm/generated/models/Method.d.ts +24 -0
  115. package/esm/generated/models/Money.d.ts +14 -0
  116. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  117. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  118. package/esm/generated/models/Network.d.ts +6 -0
  119. package/esm/generated/models/Network.js +7 -0
  120. package/esm/generated/models/NetworkToken.d.ts +23 -0
  121. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  122. package/esm/generated/models/NftCollection.d.ts +22 -0
  123. package/esm/generated/models/NftCollectionWithMetrics.d.ts +24 -0
  124. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  125. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  126. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  127. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  128. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  129. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  130. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  131. package/esm/generated/models/OperationMetadata.d.ts +3 -0
  132. package/esm/generated/models/OperationStatusResponse.d.ts +14 -0
  133. package/esm/generated/models/PChainAsset.d.ts +6 -0
  134. package/esm/generated/models/PChainBalance.d.ts +30 -0
  135. package/esm/generated/models/PChainConsumedUtxo.d.ts +9 -0
  136. package/esm/generated/models/PChainEmittedUtxo.d.ts +13 -0
  137. package/esm/generated/models/PChainId.d.ts +6 -0
  138. package/esm/generated/models/PChainId.js +7 -0
  139. package/esm/generated/models/PChainTransaction.d.ts +45 -0
  140. package/esm/generated/models/PChainUtxo.d.ts +20 -0
  141. package/esm/generated/models/PaginationParams.d.ts +13 -0
  142. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  143. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  144. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  145. package/esm/generated/models/ResourceLink.d.ts +8 -0
  146. package/esm/generated/models/ResourceLinkType.d.ts +18 -0
  147. package/esm/generated/models/ResourceLinkType.js +19 -0
  148. package/esm/generated/models/ReviewStatus.d.ts +6 -0
  149. package/esm/generated/models/ReviewStatus.js +7 -0
  150. package/esm/generated/models/RichAddress.d.ts +26 -0
  151. package/esm/generated/models/SortOrder.d.ts +6 -0
  152. package/esm/generated/models/SortOrder.js +7 -0
  153. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  154. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  155. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  156. package/esm/generated/models/TransactionMethodType.js +8 -0
  157. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  158. package/esm/generated/models/TransactionStatus.js +7 -0
  159. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  160. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  161. package/esm/generated/models/TrendingTimeframe.js +8 -0
  162. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  163. package/esm/generated/models/Utxo.d.ts +60 -0
  164. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  165. package/esm/generated/models/VmName.d.ts +7 -0
  166. package/esm/generated/models/VmName.js +8 -0
  167. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  168. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  169. package/esm/generated/models/XChainBalances.d.ts +17 -0
  170. package/esm/generated/models/XChainId.d.ts +6 -0
  171. package/esm/generated/models/XChainId.js +7 -0
  172. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  173. package/esm/generated/models/XChainTransaction.d.ts +51 -0
  174. package/esm/generated/models/XChainVertex.d.ts +12 -0
  175. package/esm/generated/services/EvmService.d.ts +734 -0
  176. package/esm/generated/services/EvmService.js +518 -0
  177. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  178. package/esm/generated/services/HealthCheckService.js +16 -0
  179. package/esm/generated/services/OperationsService.d.ts +30 -0
  180. package/esm/generated/services/OperationsService.js +28 -0
  181. package/esm/generated/services/PrimaryNetworkService.d.ts +359 -0
  182. package/esm/generated/services/PrimaryNetworkService.js +252 -0
  183. package/esm/index.d.ts +135 -2
  184. package/esm/index.js +41 -2
  185. package/package.json +6 -6
  186. package/esm/generated/models.d.ts +0 -1351
  187. package/esm/generated/models.js +0 -148
  188. package/esm/glacierClient.d.ts +0 -128
  189. package/esm/glacierClient.js +0 -94
  190. package/esm/types.d.ts +0 -14
@@ -0,0 +1,11 @@
1
+ import { ListingResponse } from './ListingResponse.js';
2
+
3
+ type ListListingsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ listings: Array<ListingResponse>;
9
+ };
10
+
11
+ export { ListListingsResponse };
@@ -0,0 +1,11 @@
1
+ import { NativeTransaction } from './NativeTransaction.js';
2
+
3
+ type ListNativeTransactionsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ transactions: Array<NativeTransaction>;
9
+ };
10
+
11
+ export { ListNativeTransactionsResponse };
@@ -0,0 +1,11 @@
1
+ import { NftCollectionWithMetrics } from './NftCollectionWithMetrics.js';
2
+
3
+ type ListNftCollectionWithMetricsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ collections: Array<NftCollectionWithMetrics>;
9
+ };
10
+
11
+ export { ListNftCollectionWithMetricsResponse };
@@ -0,0 +1,7 @@
1
+ import { PChainBalance } from './PChainBalance.js';
2
+
3
+ type ListPChainBalancesResponse = {
4
+ balances: PChainBalance;
5
+ };
6
+
7
+ export { ListPChainBalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { PChainTransaction } from './PChainTransaction.js';
2
+
3
+ type ListPChainTransactionsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ transactions: Array<PChainTransaction>;
9
+ };
10
+
11
+ export { ListPChainTransactionsResponse };
@@ -0,0 +1,11 @@
1
+ import { PChainUtxo } from './PChainUtxo.js';
2
+
3
+ type ListPChainUtxosResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ utxos: Array<PChainUtxo>;
9
+ };
10
+
11
+ export { ListPChainUtxosResponse };
@@ -0,0 +1,11 @@
1
+ import { TransactionDetails } from './TransactionDetails.js';
2
+
3
+ type ListTransactionDetailsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ transactions: Array<TransactionDetails>;
9
+ };
10
+
11
+ export { ListTransactionDetailsResponse };
@@ -0,0 +1,13 @@
1
+ import { Erc1155Transfer } from './Erc1155Transfer.js';
2
+ import { Erc20Transfer } from './Erc20Transfer.js';
3
+ import { Erc721Transfer } from './Erc721Transfer.js';
4
+
5
+ type ListTransfersResponse = {
6
+ /**
7
+ * 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.
8
+ */
9
+ nextPageToken?: string;
10
+ transfers: (Array<Erc20Transfer> | Array<Erc721Transfer> | Array<Erc1155Transfer>);
11
+ };
12
+
13
+ export { ListTransfersResponse };
@@ -0,0 +1,11 @@
1
+ import { Utxo } from './Utxo.js';
2
+
3
+ type ListUtxosResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ utxos: Array<Utxo>;
9
+ };
10
+
11
+ export { ListUtxosResponse };
@@ -0,0 +1,7 @@
1
+ import { XChainBalances } from './XChainBalances.js';
2
+
3
+ type ListXChainBalancesResponse = {
4
+ balances: XChainBalances;
5
+ };
6
+
7
+ export { ListXChainBalancesResponse };
@@ -0,0 +1,11 @@
1
+ import { XChainTransaction } from './XChainTransaction.js';
2
+
3
+ type ListXChainTransactionsResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ transactions: Array<XChainTransaction>;
9
+ };
10
+
11
+ export { ListXChainTransactionsResponse };
@@ -0,0 +1,11 @@
1
+ import { XChainVertex } from './XChainVertex.js';
2
+
3
+ type ListXChainVerticesResponse = {
4
+ /**
5
+ * 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
+ nextPageToken?: string;
8
+ vertices: Array<XChainVertex>;
9
+ };
10
+
11
+ export { ListXChainVerticesResponse };
@@ -0,0 +1,6 @@
1
+ declare enum ListingCurrencyType {
2
+ NATIVE = "NATIVE",
3
+ ERC20 = "ERC20"
4
+ }
5
+
6
+ export { ListingCurrencyType };
@@ -0,0 +1,7 @@
1
+ var ListingCurrencyType = /* @__PURE__ */ ((ListingCurrencyType2) => {
2
+ ListingCurrencyType2["NATIVE"] = "NATIVE";
3
+ ListingCurrencyType2["ERC20"] = "ERC20";
4
+ return ListingCurrencyType2;
5
+ })(ListingCurrencyType || {});
6
+
7
+ export { ListingCurrencyType };
@@ -0,0 +1,8 @@
1
+ declare enum ListingEventType {
2
+ OPEN_LISTING = "OPEN_LISTING",
3
+ CANCEL_LISTING = "CANCEL_LISTING",
4
+ PURCHASE_LISTING = "PURCHASE_LISTING",
5
+ CLOSE_AUCTION = "CLOSE_AUCTION"
6
+ }
7
+
8
+ export { ListingEventType };
@@ -0,0 +1,9 @@
1
+ var ListingEventType = /* @__PURE__ */ ((ListingEventType2) => {
2
+ ListingEventType2["OPEN_LISTING"] = "OPEN_LISTING";
3
+ ListingEventType2["CANCEL_LISTING"] = "CANCEL_LISTING";
4
+ ListingEventType2["PURCHASE_LISTING"] = "PURCHASE_LISTING";
5
+ ListingEventType2["CLOSE_AUCTION"] = "CLOSE_AUCTION";
6
+ return ListingEventType2;
7
+ })(ListingEventType || {});
8
+
9
+ export { ListingEventType };
@@ -0,0 +1,19 @@
1
+ import { CancelListingEventResponse } from './CancelListingEventResponse.js';
2
+ import { CloseAuctionEventResponse } from './CloseAuctionEventResponse.js';
3
+ import { NftCollection } from './NftCollection.js';
4
+ import { OpenListingEventResponse } from './OpenListingEventResponse.js';
5
+ import { PurchaseListingEventResponse } from './PurchaseListingEventResponse.js';
6
+
7
+ type ListingResponse = {
8
+ marketplaceName: string;
9
+ chainId: string;
10
+ collection: NftCollection;
11
+ token: any;
12
+ listingId: string;
13
+ openListingEvents?: Array<OpenListingEventResponse>;
14
+ cancelListingEvents?: Array<CancelListingEventResponse>;
15
+ purchaseListingEvents?: Array<PurchaseListingEventResponse>;
16
+ closeAuctionEvents?: Array<CloseAuctionEventResponse>;
17
+ };
18
+
19
+ export { ListingResponse };
@@ -0,0 +1,6 @@
1
+ declare enum ListingType {
2
+ SALE = "SALE",
3
+ AUCTION = "AUCTION"
4
+ }
5
+
6
+ export { ListingType };
@@ -0,0 +1,7 @@
1
+ var ListingType = /* @__PURE__ */ ((ListingType2) => {
2
+ ListingType2["SALE"] = "SALE";
3
+ ListingType2["AUCTION"] = "AUCTION";
4
+ return ListingType2;
5
+ })(ListingType || {});
6
+
7
+ export { ListingType };
@@ -0,0 +1,5 @@
1
+ declare enum ListingsSortByOption {
2
+ LAST_EVENT_TIMESTAMP = "lastEventTimestamp"
3
+ }
4
+
5
+ export { ListingsSortByOption };
@@ -0,0 +1,6 @@
1
+ var ListingsSortByOption = /* @__PURE__ */ ((ListingsSortByOption2) => {
2
+ ListingsSortByOption2["LAST_EVENT_TIMESTAMP"] = "lastEventTimestamp";
3
+ return ListingsSortByOption2;
4
+ })(ListingsSortByOption || {});
5
+
6
+ export { ListingsSortByOption };
@@ -0,0 +1,24 @@
1
+ import { TransactionMethodType } from './TransactionMethodType.js';
2
+
3
+ type Method = {
4
+ /**
5
+ * The contract call type.
6
+ * NATIVE_TRANSFER indicates a transfer of the
7
+ * native token without any smart-contract interaction.
8
+ * CONTRACT_CALL indicates a smart-contract
9
+ * interaction.
10
+ * CONTRACT_CREATION indicates a smart-contract
11
+ * creation.
12
+ */
13
+ callType: TransactionMethodType;
14
+ /**
15
+ * The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
16
+ */
17
+ methodHash: string;
18
+ /**
19
+ * The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
20
+ */
21
+ methodName?: string;
22
+ };
23
+
24
+ export { Method };
@@ -0,0 +1,14 @@
1
+ import { CurrencyCode } from './CurrencyCode.js';
2
+
3
+ type Money = {
4
+ /**
5
+ * ISO 4217 currency code.
6
+ */
7
+ currencyCode: CurrencyCode;
8
+ /**
9
+ * Monetary value in base 10 decimals.
10
+ */
11
+ value: number;
12
+ };
13
+
14
+ export { Money };
@@ -0,0 +1,41 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type NativeTokenBalance = {
4
+ /**
5
+ * The contract name.
6
+ */
7
+ name: string;
8
+ /**
9
+ * The contract symbol.
10
+ */
11
+ symbol: string;
12
+ /**
13
+ * The number of decimals the token uses. For example `6`,
14
+ * means to divide the token amount by `1000000` to get its user
15
+ * representation.
16
+ */
17
+ decimals: number;
18
+ /**
19
+ * The logo uri for the address.
20
+ */
21
+ logoUri?: string;
22
+ /**
23
+ * The evm chain id.
24
+ */
25
+ chainId: string;
26
+ /**
27
+ * The token price, if available.
28
+ */
29
+ price?: Money;
30
+ /**
31
+ * The address balance for the token, in units specified by the
32
+ * `decimals` value for the contract.
33
+ */
34
+ balance: string;
35
+ /**
36
+ * The monetary value of the balance, if a price is available for the token.
37
+ */
38
+ balanceValue?: Money;
39
+ };
40
+
41
+ export { NativeTokenBalance };
@@ -0,0 +1,55 @@
1
+ import { Method } from './Method.js';
2
+ import { RichAddress } from './RichAddress.js';
3
+
4
+ type NativeTransaction = {
5
+ /**
6
+ * The block number on the chain.
7
+ */
8
+ blockNumber: string;
9
+ /**
10
+ * The block finality timestamp.
11
+ */
12
+ blockTimestamp: number;
13
+ /**
14
+ * The block hash identifier.
15
+ */
16
+ blockHash: string;
17
+ /**
18
+ * The index at which the transaction occured in the block (0-indexed).
19
+ */
20
+ blockIndex: number;
21
+ /**
22
+ * The transaction hash identifier.
23
+ */
24
+ txHash: string;
25
+ /**
26
+ * The transaction status, which is either 0 (failed) or 1 (successful).
27
+ */
28
+ txStatus: string;
29
+ /**
30
+ * The transaction type.
31
+ */
32
+ txType: number;
33
+ /**
34
+ * The gas limit set for the transaction.
35
+ */
36
+ gasLimit: string;
37
+ /**
38
+ * The amount of gas used.
39
+ */
40
+ gasUsed: string;
41
+ /**
42
+ * The gas price denominated by the number of decimals of the native token.
43
+ */
44
+ gasPrice: string;
45
+ /**
46
+ * The nonce used by the sender of the transaction.
47
+ */
48
+ nonce: string;
49
+ from: RichAddress;
50
+ to: RichAddress;
51
+ method?: Method;
52
+ value: string;
53
+ };
54
+
55
+ export { NativeTransaction };
@@ -0,0 +1,6 @@
1
+ declare enum Network {
2
+ MAINNET = "mainnet",
3
+ FUJI = "fuji"
4
+ }
5
+
6
+ export { Network };
@@ -0,0 +1,7 @@
1
+ var Network = /* @__PURE__ */ ((Network2) => {
2
+ Network2["MAINNET"] = "mainnet";
3
+ Network2["FUJI"] = "fuji";
4
+ return Network2;
5
+ })(Network || {});
6
+
7
+ export { Network };
@@ -0,0 +1,23 @@
1
+ type NetworkToken = {
2
+ /**
3
+ * The contract name.
4
+ */
5
+ name: string;
6
+ /**
7
+ * The contract symbol.
8
+ */
9
+ symbol: string;
10
+ /**
11
+ * The number of decimals the token uses. For example `6`,
12
+ * means to divide the token amount by `1000000` to get its user
13
+ * representation.
14
+ */
15
+ decimals: number;
16
+ /**
17
+ * The logo uri for the address.
18
+ */
19
+ logoUri?: string;
20
+ description?: string;
21
+ };
22
+
23
+ export { NetworkToken };
@@ -0,0 +1,18 @@
1
+ import { Money } from './Money.js';
2
+ import { NetworkToken } from './NetworkToken.js';
3
+
4
+ type NetworkTokenDetails = {
5
+ networkToken: NetworkToken;
6
+ /**
7
+ * The current token price, if available.
8
+ */
9
+ currentPrice?: Money;
10
+ /**
11
+ * The historical token price at the time the transaction
12
+ * occured, if available. Note, this is only provided if the transaction
13
+ * occured more than 24 hours ago.
14
+ */
15
+ historicalPrice?: Money;
16
+ };
17
+
18
+ export { NetworkTokenDetails };
@@ -0,0 +1,22 @@
1
+ import { ErcType } from './ErcType.js';
2
+
3
+ type NftCollection = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ ercType: ErcType;
17
+ bannerUri?: string;
18
+ logoUri?: string;
19
+ description?: string;
20
+ };
21
+
22
+ export { NftCollection };
@@ -0,0 +1,24 @@
1
+ import { CollectionMetrics } from './CollectionMetrics.js';
2
+ import { ErcType } from './ErcType.js';
3
+
4
+ type NftCollectionWithMetrics = {
5
+ /**
6
+ * A wallet or contract address in mixed-case checksum encoding.
7
+ */
8
+ address: string;
9
+ /**
10
+ * The contract name.
11
+ */
12
+ name: string;
13
+ /**
14
+ * The contract symbol.
15
+ */
16
+ symbol: string;
17
+ ercType: ErcType;
18
+ bannerUri?: string;
19
+ logoUri?: string;
20
+ description?: string;
21
+ metrics: CollectionMetrics;
22
+ };
23
+
24
+ export { NftCollectionWithMetrics };
@@ -0,0 +1,10 @@
1
+ import { NftSearchResultTypeOption } from './NftSearchResultTypeOption.js';
2
+
3
+ type NftFilterOptionsProperty = {
4
+ /**
5
+ * Filters search results by collection or token.
6
+ */
7
+ resultType: NftSearchResultTypeOption;
8
+ };
9
+
10
+ export { NftFilterOptionsProperty };
@@ -0,0 +1,10 @@
1
+ import { NftFilterOptionsProperty } from './NftFilterOptionsProperty.js';
2
+ import { PaginationParams } from './PaginationParams.js';
3
+
4
+ type NftSearchBody = {
5
+ searchQuery: string;
6
+ paginationParams?: PaginationParams;
7
+ filterOptions: NftFilterOptionsProperty;
8
+ };
9
+
10
+ export { NftSearchBody };
@@ -0,0 +1,6 @@
1
+ declare enum NftSearchResultTypeOption {
2
+ TOKEN = "token",
3
+ COLLECTION = "collection"
4
+ }
5
+
6
+ export { NftSearchResultTypeOption };
@@ -0,0 +1,7 @@
1
+ var NftSearchResultTypeOption = /* @__PURE__ */ ((NftSearchResultTypeOption2) => {
2
+ NftSearchResultTypeOption2["TOKEN"] = "token";
3
+ NftSearchResultTypeOption2["COLLECTION"] = "collection";
4
+ return NftSearchResultTypeOption2;
5
+ })(NftSearchResultTypeOption || {});
6
+
7
+ export { NftSearchResultTypeOption };
@@ -0,0 +1,15 @@
1
+ declare enum NftTokenMetadataStatus {
2
+ UNKNOWN = "UNKNOWN",
3
+ MISSING_TOKEN = "MISSING_TOKEN",
4
+ INVALID_TOKEN_URI = "INVALID_TOKEN_URI",
5
+ INVALID_TOKEN_URI_SCHEME = "INVALID_TOKEN_URI_SCHEME",
6
+ UNREACHABLE_TOKEN_URI = "UNREACHABLE_TOKEN_URI",
7
+ THROTTLED_TOKEN_URI = "THROTTLED_TOKEN_URI",
8
+ METADATA_CONTENT_TOO_LARGE = "METADATA_CONTENT_TOO_LARGE",
9
+ INVALID_METADATA = "INVALID_METADATA",
10
+ INVALID_METADATA_JSON = "INVALID_METADATA_JSON",
11
+ INDEXED = "INDEXED",
12
+ UNINDEXED = "UNINDEXED"
13
+ }
14
+
15
+ export { NftTokenMetadataStatus };
@@ -0,0 +1,16 @@
1
+ var NftTokenMetadataStatus = /* @__PURE__ */ ((NftTokenMetadataStatus2) => {
2
+ NftTokenMetadataStatus2["UNKNOWN"] = "UNKNOWN";
3
+ NftTokenMetadataStatus2["MISSING_TOKEN"] = "MISSING_TOKEN";
4
+ NftTokenMetadataStatus2["INVALID_TOKEN_URI"] = "INVALID_TOKEN_URI";
5
+ NftTokenMetadataStatus2["INVALID_TOKEN_URI_SCHEME"] = "INVALID_TOKEN_URI_SCHEME";
6
+ NftTokenMetadataStatus2["UNREACHABLE_TOKEN_URI"] = "UNREACHABLE_TOKEN_URI";
7
+ NftTokenMetadataStatus2["THROTTLED_TOKEN_URI"] = "THROTTLED_TOKEN_URI";
8
+ NftTokenMetadataStatus2["METADATA_CONTENT_TOO_LARGE"] = "METADATA_CONTENT_TOO_LARGE";
9
+ NftTokenMetadataStatus2["INVALID_METADATA"] = "INVALID_METADATA";
10
+ NftTokenMetadataStatus2["INVALID_METADATA_JSON"] = "INVALID_METADATA_JSON";
11
+ NftTokenMetadataStatus2["INDEXED"] = "INDEXED";
12
+ NftTokenMetadataStatus2["UNINDEXED"] = "UNINDEXED";
13
+ return NftTokenMetadataStatus2;
14
+ })(NftTokenMetadataStatus || {});
15
+
16
+ export { NftTokenMetadataStatus };
@@ -0,0 +1,17 @@
1
+ import { Address } from './Address.js';
2
+ import { ListingCurrencyType } from './ListingCurrencyType.js';
3
+ import { ListingType } from './ListingType.js';
4
+ import { TokenWithPrice } from './TokenWithPrice.js';
5
+
6
+ type OpenListingEventResponse = {
7
+ eventTimestamp: number;
8
+ listingType: ListingType;
9
+ listingPrice?: string;
10
+ listingCurrencyType: ListingCurrencyType;
11
+ listingCurrencyInfo: TokenWithPrice;
12
+ sellerAddress: Address;
13
+ startingPrice?: string;
14
+ auctionCloseTimestamp?: number;
15
+ };
16
+
17
+ export { OpenListingEventResponse };
@@ -0,0 +1,3 @@
1
+ type OperationMetadata = {};
2
+
3
+ export { OperationMetadata };
@@ -0,0 +1,14 @@
1
+ import { OperationMetadata } from './OperationMetadata.js';
2
+
3
+ type OperationStatusResponse = {
4
+ operationId: string;
5
+ operationType: string;
6
+ operationStatus: string;
7
+ downloadUrl?: string;
8
+ message?: string;
9
+ metadata?: OperationMetadata;
10
+ createdAtTimestamp: number;
11
+ updatedAtTimestamp: number;
12
+ };
13
+
14
+ export { OperationStatusResponse };
@@ -0,0 +1,6 @@
1
+ type PChainAsset = {
2
+ assetId: string;
3
+ amount: string;
4
+ };
5
+
6
+ export { PChainAsset };
@@ -0,0 +1,30 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+
3
+ type PChainBalance = {
4
+ /**
5
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
6
+ */
7
+ unlockedUnstaked?: Array<PChainAsset>;
8
+ /**
9
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
10
+ */
11
+ unlockedStaked?: Array<PChainAsset>;
12
+ /**
13
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
14
+ */
15
+ lockedPlatform?: Array<PChainAsset>;
16
+ /**
17
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
18
+ */
19
+ lockedStakeable?: Array<PChainAsset>;
20
+ /**
21
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
22
+ */
23
+ lockedStaked?: Array<PChainAsset>;
24
+ /**
25
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked. Sum of lockedPlatform and lockedStakeable. TO BE DEPRECATED.
26
+ */
27
+ lockedUnstaked?: Array<PChainAsset>;
28
+ };
29
+
30
+ export { PChainBalance };
@@ -0,0 +1,9 @@
1
+ type PChainConsumedUtxo = {
2
+ addresses: Array<string>;
3
+ amount: string;
4
+ assetId: string;
5
+ utxoId: string;
6
+ fromTx: string;
7
+ };
8
+
9
+ export { PChainConsumedUtxo };