@avalabs/glacier-sdk 2.8.0-alpha.11 → 2.8.0-alpha.111

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 (222) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3376 -3
  3. package/dist/index.js +1591 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Address.d.ts +8 -0
  19. package/esm/generated/models/Asset.d.ts +28 -0
  20. package/esm/generated/models/BlockchainId.d.ts +9 -0
  21. package/esm/generated/models/BlockchainId.js +10 -0
  22. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  23. package/esm/generated/models/BlockchainIds.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/CancelListingEventResponse.d.ts +5 -0
  31. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  32. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  33. package/esm/generated/models/ChainInfo.d.ts +30 -0
  34. package/esm/generated/models/ChainStatus.d.ts +6 -0
  35. package/esm/generated/models/ChainStatus.js +7 -0
  36. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  37. package/esm/generated/models/CollectionMetrics.d.ts +41 -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/CreateEvmTransactionExportRequest.d.ts +15 -0
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  42. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +15 -0
  43. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  44. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  45. package/esm/generated/models/CurrencyCode.js +19 -0
  46. package/esm/generated/models/EVMInput.d.ts +19 -0
  47. package/esm/generated/models/EVMOutput.d.ts +14 -0
  48. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  49. package/esm/generated/models/Erc1155Token.js +8 -0
  50. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  51. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  52. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  53. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  54. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  55. package/esm/generated/models/Erc20Token.d.ts +38 -0
  56. package/esm/generated/models/Erc20Token.js +8 -0
  57. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  58. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  59. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  60. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  61. package/esm/generated/models/Erc721Token.d.ts +31 -0
  62. package/esm/generated/models/Erc721Token.js +8 -0
  63. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  64. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  65. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  66. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  67. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  68. package/esm/generated/models/ErcType.d.ts +8 -0
  69. package/esm/generated/models/ErcType.js +9 -0
  70. package/esm/generated/models/EvmBlock.d.ts +45 -0
  71. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  72. package/esm/generated/models/FloorPrice.d.ts +8 -0
  73. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  74. package/esm/generated/models/GetChainResponse.d.ts +30 -0
  75. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  76. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  77. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  78. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  79. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  80. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  81. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  82. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  83. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  84. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  85. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  86. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  87. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  88. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  89. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  90. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  91. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  92. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  94. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  96. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  98. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  99. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  100. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  101. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  102. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  103. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  104. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  105. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  106. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  107. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  108. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  109. package/esm/generated/models/ListingCurrencyType.js +7 -0
  110. package/esm/generated/models/ListingEventType.d.ts +8 -0
  111. package/esm/generated/models/ListingEventType.js +9 -0
  112. package/esm/generated/models/ListingResponse.d.ts +19 -0
  113. package/esm/generated/models/ListingType.d.ts +6 -0
  114. package/esm/generated/models/ListingType.js +7 -0
  115. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  116. package/esm/generated/models/ListingsSortByOption.js +6 -0
  117. package/esm/generated/models/Method.d.ts +24 -0
  118. package/esm/generated/models/Money.d.ts +14 -0
  119. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  120. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  121. package/esm/generated/models/Network.d.ts +6 -0
  122. package/esm/generated/models/Network.js +7 -0
  123. package/esm/generated/models/NetworkToken.d.ts +23 -0
  124. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  125. package/esm/generated/models/NftCollection.d.ts +24 -0
  126. package/esm/generated/models/NftCollectionWithMetrics.d.ts +26 -0
  127. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  128. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  129. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  130. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  131. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  132. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  133. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  134. package/esm/generated/models/OperationStatus.d.ts +8 -0
  135. package/esm/generated/models/OperationStatus.js +9 -0
  136. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  137. package/esm/generated/models/OperationStatusCode.js +8 -0
  138. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  139. package/esm/generated/models/OperationType.d.ts +6 -0
  140. package/esm/generated/models/OperationType.js +7 -0
  141. package/esm/generated/models/PChainAsset.d.ts +6 -0
  142. package/esm/generated/models/PChainBalance.d.ts +30 -0
  143. package/esm/generated/models/PChainId.d.ts +6 -0
  144. package/esm/generated/models/PChainId.js +7 -0
  145. package/esm/generated/models/PChainTransaction.d.ts +76 -0
  146. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  147. package/esm/generated/models/PChainTransactionType.js +17 -0
  148. package/esm/generated/models/PChainUtxo.d.ts +41 -0
  149. package/esm/generated/models/PaginationParams.d.ts +13 -0
  150. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  151. package/esm/generated/models/PrimaryNetwork.js +7 -0
  152. package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
  153. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  154. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  155. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  156. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  157. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  158. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  159. package/esm/generated/models/ResourceLink.d.ts +8 -0
  160. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  161. package/esm/generated/models/ResourceLinkType.js +23 -0
  162. package/esm/generated/models/RewardType.d.ts +6 -0
  163. package/esm/generated/models/RewardType.js +7 -0
  164. package/esm/generated/models/RichAddress.d.ts +26 -0
  165. package/esm/generated/models/SortOrder.d.ts +6 -0
  166. package/esm/generated/models/SortOrder.js +7 -0
  167. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  168. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  169. package/esm/generated/models/TransactionExportMetadata.d.ts +18 -0
  170. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  171. package/esm/generated/models/TransactionMethodType.js +8 -0
  172. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  173. package/esm/generated/models/TransactionStatus.js +7 -0
  174. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  175. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  176. package/esm/generated/models/TrendingTimeframe.js +8 -0
  177. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  178. package/esm/generated/models/Utxo.d.ts +68 -0
  179. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  180. package/esm/generated/models/UtxoType.d.ts +6 -0
  181. package/esm/generated/models/UtxoType.js +7 -0
  182. package/esm/generated/models/VmName.d.ts +7 -0
  183. package/esm/generated/models/VmName.js +8 -0
  184. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  185. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  186. package/esm/generated/models/XChainBalances.d.ts +17 -0
  187. package/esm/generated/models/XChainId.d.ts +6 -0
  188. package/esm/generated/models/XChainId.js +7 -0
  189. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  190. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  191. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  192. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  193. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  194. package/esm/generated/models/XChainVertex.d.ts +12 -0
  195. package/esm/generated/services/EvmService.d.ts +742 -0
  196. package/esm/generated/services/EvmService.js +517 -0
  197. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  198. package/esm/generated/services/HealthCheckService.js +16 -0
  199. package/esm/generated/services/OperationsService.d.ts +31 -0
  200. package/esm/generated/services/OperationsService.js +28 -0
  201. package/esm/generated/services/PrimaryNetworkService.d.ts +392 -0
  202. package/esm/generated/services/PrimaryNetworkService.js +275 -0
  203. package/esm/index.d.ts +144 -0
  204. package/esm/index.js +51 -0
  205. package/package.json +11 -20
  206. package/CHANGELOG.md +0 -230
  207. package/__tests__/glacier-sdk.test.js +0 -7
  208. package/dist/index.d.ts.map +0 -1
  209. package/dist/index.js.map +0 -1
  210. package/dist/src/generated/models.d.ts +0 -385
  211. package/dist/src/generated/models.d.ts.map +0 -1
  212. package/dist/src/glacierClient.d.ts +0 -93
  213. package/dist/src/glacierClient.d.ts.map +0 -1
  214. package/dist/src/types.d.ts +0 -13
  215. package/dist/src/types.d.ts.map +0 -1
  216. package/index.ts +0 -2
  217. package/rollup.config.js +0 -33
  218. package/src/generated/models.ts +0 -460
  219. package/src/glacierClient.ts +0 -190
  220. package/src/types.ts +0 -6
  221. package/swagger/generateModels.js +0 -40
  222. package/tsconfig.json +0 -7
@@ -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,8 @@
1
+ declare enum OperationStatus {
2
+ RUNNING = "RUNNING",
3
+ COMPLETED = "COMPLETED",
4
+ COMPLETED_WITH_WARNING = "COMPLETED_WITH_WARNING",
5
+ FAILED = "FAILED"
6
+ }
7
+
8
+ export { OperationStatus };
@@ -0,0 +1,9 @@
1
+ var OperationStatus = /* @__PURE__ */ ((OperationStatus2) => {
2
+ OperationStatus2["RUNNING"] = "RUNNING";
3
+ OperationStatus2["COMPLETED"] = "COMPLETED";
4
+ OperationStatus2["COMPLETED_WITH_WARNING"] = "COMPLETED_WITH_WARNING";
5
+ OperationStatus2["FAILED"] = "FAILED";
6
+ return OperationStatus2;
7
+ })(OperationStatus || {});
8
+
9
+ export { OperationStatus };
@@ -0,0 +1,7 @@
1
+ declare enum OperationStatusCode {
2
+ ERR_INVALID_REQUEST = "ErrInvalidRequest",
3
+ ERR_INTERNAL = "ErrInternal",
4
+ WARN_TRUNCATED_EXPORT = "WarnTruncatedExport"
5
+ }
6
+
7
+ export { OperationStatusCode };
@@ -0,0 +1,8 @@
1
+ var OperationStatusCode = /* @__PURE__ */ ((OperationStatusCode2) => {
2
+ OperationStatusCode2["ERR_INVALID_REQUEST"] = "ErrInvalidRequest";
3
+ OperationStatusCode2["ERR_INTERNAL"] = "ErrInternal";
4
+ OperationStatusCode2["WARN_TRUNCATED_EXPORT"] = "WarnTruncatedExport";
5
+ return OperationStatusCode2;
6
+ })(OperationStatusCode || {});
7
+
8
+ export { OperationStatusCode };
@@ -0,0 +1,15 @@
1
+ import { OperationStatus } from './OperationStatus.js';
2
+ import { OperationType } from './OperationType.js';
3
+ import { TransactionExportMetadata } from './TransactionExportMetadata.js';
4
+
5
+ type OperationStatusResponse = {
6
+ operationId: string;
7
+ operationType: OperationType;
8
+ operationStatus: OperationStatus;
9
+ message?: string;
10
+ metadata: TransactionExportMetadata;
11
+ createdAtTimestamp: number;
12
+ updatedAtTimestamp: number;
13
+ };
14
+
15
+ export { OperationStatusResponse };
@@ -0,0 +1,6 @@
1
+ declare enum OperationType {
2
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM",
3
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
4
+ }
5
+
6
+ export { OperationType };
@@ -0,0 +1,7 @@
1
+ var OperationType = /* @__PURE__ */ ((OperationType2) => {
2
+ OperationType2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
3
+ OperationType2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
4
+ return OperationType2;
5
+ })(OperationType || {});
6
+
7
+ export { OperationType };
@@ -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,6 @@
1
+ declare enum PChainId {
2
+ P_CHAIN = "p-chain",
3
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY"
4
+ }
5
+
6
+ export { PChainId };
@@ -0,0 +1,7 @@
1
+ var PChainId = /* @__PURE__ */ ((PChainId2) => {
2
+ PChainId2["P_CHAIN"] = "p-chain";
3
+ PChainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
4
+ return PChainId2;
5
+ })(PChainId || {});
6
+
7
+ export { PChainId };
@@ -0,0 +1,76 @@
1
+ import { PChainAsset } from './PChainAsset.js';
2
+ import { PChainTransactionType } from './PChainTransactionType.js';
3
+ import { PChainUtxo } from './PChainUtxo.js';
4
+
5
+ type PChainTransaction = {
6
+ /**
7
+ * A P-Chain transaction hash.
8
+ */
9
+ txHash: string;
10
+ txType: PChainTransactionType;
11
+ /**
12
+ * The block finality timestamp.
13
+ */
14
+ blockTimestamp: number;
15
+ blockNumber: string;
16
+ blockHash: string;
17
+ consumedUtxos: Array<PChainUtxo>;
18
+ emittedUtxos: Array<PChainUtxo>;
19
+ /**
20
+ * Source chain for an atomic transaction.
21
+ */
22
+ sourceChain?: string;
23
+ /**
24
+ * Destination chain for an atomic transaction.
25
+ */
26
+ destinationChain?: string;
27
+ /**
28
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
29
+ */
30
+ value: Array<PChainAsset>;
31
+ /**
32
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID.
33
+ */
34
+ amountBurned: Array<PChainAsset>;
35
+ /**
36
+ * A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
37
+ */
38
+ amountStaked: Array<PChainAsset>;
39
+ /**
40
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
41
+ */
42
+ startTimestamp?: number;
43
+ /**
44
+ * Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
45
+ */
46
+ endTimestamp?: number;
47
+ /**
48
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx
49
+ */
50
+ delegationFeePercent?: string;
51
+ /**
52
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
53
+ */
54
+ nodeId?: string;
55
+ /**
56
+ * Present for AddValidatorTx, AddSubnetValidatorTx, RemoveSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx, CreateChainTx, CreateSubnetTx
57
+ */
58
+ subnetId?: string;
59
+ /**
60
+ * Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
61
+ */
62
+ estimatedReward?: string;
63
+ rewardTxHash?: string;
64
+ /**
65
+ * To be deprecated
66
+ * @deprecated
67
+ */
68
+ rewardTx?: string;
69
+ memo?: string;
70
+ /**
71
+ * Present for RewardValidatorTx
72
+ */
73
+ stakingTxHash?: string;
74
+ };
75
+
76
+ export { PChainTransaction };
@@ -0,0 +1,16 @@
1
+ declare enum PChainTransactionType {
2
+ ADD_VALIDATOR_TX = "AddValidatorTx",
3
+ ADD_DELEGATOR_TX = "AddDelegatorTx",
4
+ ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
5
+ ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
6
+ REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
7
+ REWARD_VALIDATOR_TX = "RewardValidatorTx",
8
+ CREATE_CHAIN_TX = "CreateChainTx",
9
+ CREATE_SUBNET_TX = "CreateSubnetTx",
10
+ IMPORT_TX = "ImportTx",
11
+ EXPORT_TX = "ExportTx",
12
+ ADVANCE_TIME_TX = "AdvanceTimeTx",
13
+ UNKNOWN = "UNKNOWN"
14
+ }
15
+
16
+ export { PChainTransactionType };
@@ -0,0 +1,17 @@
1
+ var PChainTransactionType = /* @__PURE__ */ ((PChainTransactionType2) => {
2
+ PChainTransactionType2["ADD_VALIDATOR_TX"] = "AddValidatorTx";
3
+ PChainTransactionType2["ADD_DELEGATOR_TX"] = "AddDelegatorTx";
4
+ PChainTransactionType2["ADD_PERMISSIONLESS_VALIDATOR_TX"] = "AddPermissionlessValidatorTx";
5
+ PChainTransactionType2["ADD_SUBNET_VALIDATOR_TX"] = "AddSubnetValidatorTx";
6
+ PChainTransactionType2["REMOVE_SUBNET_VALIDATOR_TX"] = "RemoveSubnetValidatorTx";
7
+ PChainTransactionType2["REWARD_VALIDATOR_TX"] = "RewardValidatorTx";
8
+ PChainTransactionType2["CREATE_CHAIN_TX"] = "CreateChainTx";
9
+ PChainTransactionType2["CREATE_SUBNET_TX"] = "CreateSubnetTx";
10
+ PChainTransactionType2["IMPORT_TX"] = "ImportTx";
11
+ PChainTransactionType2["EXPORT_TX"] = "ExportTx";
12
+ PChainTransactionType2["ADVANCE_TIME_TX"] = "AdvanceTimeTx";
13
+ PChainTransactionType2["UNKNOWN"] = "UNKNOWN";
14
+ return PChainTransactionType2;
15
+ })(PChainTransactionType || {});
16
+
17
+ export { PChainTransactionType };
@@ -0,0 +1,41 @@
1
+ import { RewardType } from './RewardType.js';
2
+ import { UtxoType } from './UtxoType.js';
3
+
4
+ type PChainUtxo = {
5
+ /**
6
+ * An array of P-Chain wallet addresses.
7
+ */
8
+ addresses: Array<string>;
9
+ utxoId: string;
10
+ txHash: string;
11
+ outputIndex: number;
12
+ blockNumber: string;
13
+ blockTimestamp: number;
14
+ consumingTxHash?: string;
15
+ consumingBlockTimestamp?: number;
16
+ consumingBlockNumber?: string;
17
+ assetId: string;
18
+ utxoType: UtxoType;
19
+ amount: string;
20
+ stakeableLocktime?: number;
21
+ platformLocktime?: number;
22
+ threshold?: number;
23
+ createdOnChainId: string;
24
+ consumedOnChainId: string;
25
+ staked?: boolean;
26
+ utxoStartTimestamp?: number;
27
+ utxoEndTimestamp?: number;
28
+ rewardType?: RewardType;
29
+ /**
30
+ * To be deprecated
31
+ * @deprecated
32
+ */
33
+ fromTx?: string;
34
+ /**
35
+ * To be deprecated
36
+ * @deprecated
37
+ */
38
+ toTx?: string;
39
+ };
40
+
41
+ export { PChainUtxo };
@@ -0,0 +1,13 @@
1
+ type PaginationParams = {
2
+ /**
3
+ * The maximum number of items to return.
4
+ */
5
+ pageSize?: number;
6
+ /**
7
+ * A page token, received from a previous list call.
8
+ * Provide this to retrieve the subsequent page.
9
+ */
10
+ pageToken?: string;
11
+ };
12
+
13
+ export { PaginationParams };
@@ -0,0 +1,6 @@
1
+ declare enum PrimaryNetwork {
2
+ MAINNET = "mainnet",
3
+ FUJI = "fuji"
4
+ }
5
+
6
+ export { PrimaryNetwork };
@@ -0,0 +1,7 @@
1
+ var PrimaryNetwork = /* @__PURE__ */ ((PrimaryNetwork2) => {
2
+ PrimaryNetwork2["MAINNET"] = "mainnet";
3
+ PrimaryNetwork2["FUJI"] = "fuji";
4
+ return PrimaryNetwork2;
5
+ })(PrimaryNetwork || {});
6
+
7
+ export { PrimaryNetwork };
@@ -0,0 +1,15 @@
1
+ import { ProposerDetails } from './ProposerDetails.js';
2
+
3
+ type PrimaryNetworkBlock = {
4
+ blockNumber: string;
5
+ blockHash: string;
6
+ parentHash: string;
7
+ blockTimestamp: number;
8
+ blockType: string;
9
+ txCount: number;
10
+ transactions: Array<string>;
11
+ blockSizeBytes: number;
12
+ proposerDetails?: ProposerDetails;
13
+ };
14
+
15
+ export { PrimaryNetworkBlock };
@@ -0,0 +1,9 @@
1
+ import { PrimaryNetwork } from './PrimaryNetwork.js';
2
+ import { PrimaryNetworkChainName } from './PrimaryNetworkChainName.js';
3
+
4
+ type PrimaryNetworkChainInfo = {
5
+ chainName: PrimaryNetworkChainName;
6
+ network: PrimaryNetwork;
7
+ };
8
+
9
+ export { PrimaryNetworkChainInfo };
@@ -0,0 +1,7 @@
1
+ declare enum PrimaryNetworkChainName {
2
+ X_CHAIN = "x-chain",
3
+ P_CHAIN = "p-chain",
4
+ C_CHAIN = "c-chain"
5
+ }
6
+
7
+ export { PrimaryNetworkChainName };
@@ -0,0 +1,8 @@
1
+ var PrimaryNetworkChainName = /* @__PURE__ */ ((PrimaryNetworkChainName2) => {
2
+ PrimaryNetworkChainName2["X_CHAIN"] = "x-chain";
3
+ PrimaryNetworkChainName2["P_CHAIN"] = "p-chain";
4
+ PrimaryNetworkChainName2["C_CHAIN"] = "c-chain";
5
+ return PrimaryNetworkChainName2;
6
+ })(PrimaryNetworkChainName || {});
7
+
8
+ export { PrimaryNetworkChainName };
@@ -0,0 +1,6 @@
1
+ type PrimaryNetworkOptions = {
2
+ addresses: Array<string>;
3
+ includeChains: Array<'p-chain' | 'x-chain' | 'c-chain' | '11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM'>;
4
+ };
5
+
6
+ export { PrimaryNetworkOptions };
@@ -0,0 +1,9 @@
1
+ type ProposerDetails = {
2
+ proposerId?: string;
3
+ proposerParentId?: string;
4
+ proposerNodeId?: string;
5
+ proposerPChainHeight?: number;
6
+ proposerTimestamp?: number;
7
+ };
8
+
9
+ export { ProposerDetails };
@@ -0,0 +1,17 @@
1
+ import { Address } from './Address.js';
2
+ import { ListingCurrencyType } from './ListingCurrencyType.js';
3
+ import { TokenWithPrice } from './TokenWithPrice.js';
4
+
5
+ type PurchaseListingEventResponse = {
6
+ eventTimestamp: number;
7
+ listingPrice: string;
8
+ listingCurrencyType: ListingCurrencyType;
9
+ listingCurrencyInfo: TokenWithPrice;
10
+ sellerAddress: Address;
11
+ salePrice: string;
12
+ buyerAddress: Address;
13
+ saleTimestamp: number;
14
+ purchaseTxHash?: string;
15
+ };
16
+
17
+ export { PurchaseListingEventResponse };
@@ -0,0 +1,8 @@
1
+ import { ResourceLinkType } from './ResourceLinkType.js';
2
+
3
+ type ResourceLink = {
4
+ type: ResourceLinkType;
5
+ url: string;
6
+ };
7
+
8
+ export { ResourceLink };
@@ -0,0 +1,22 @@
1
+ declare enum ResourceLinkType {
2
+ BLOG = "Blog",
3
+ COIN_GECKO = "CoinGecko",
4
+ COIN_MARKET_CAP = "CoinMarketCap",
5
+ DISCORD = "Discord",
6
+ DOCUMENTATION = "Documentation",
7
+ FACEBOOK = "Facebook",
8
+ GITHUB = "Github",
9
+ INSTAGRAM = "Instagram",
10
+ LINKED_IN = "LinkedIn",
11
+ MEDIUM = "Medium",
12
+ REDDIT = "Reddit",
13
+ SUPPORT = "Support",
14
+ TELEGRAM = "Telegram",
15
+ TIK_TOK = "TikTok",
16
+ TWITTER = "Twitter",
17
+ WEBSITE = "Website",
18
+ WHITEPAPER = "Whitepaper",
19
+ YOUTUBE = "Youtube"
20
+ }
21
+
22
+ export { ResourceLinkType };
@@ -0,0 +1,23 @@
1
+ var ResourceLinkType = /* @__PURE__ */ ((ResourceLinkType2) => {
2
+ ResourceLinkType2["BLOG"] = "Blog";
3
+ ResourceLinkType2["COIN_GECKO"] = "CoinGecko";
4
+ ResourceLinkType2["COIN_MARKET_CAP"] = "CoinMarketCap";
5
+ ResourceLinkType2["DISCORD"] = "Discord";
6
+ ResourceLinkType2["DOCUMENTATION"] = "Documentation";
7
+ ResourceLinkType2["FACEBOOK"] = "Facebook";
8
+ ResourceLinkType2["GITHUB"] = "Github";
9
+ ResourceLinkType2["INSTAGRAM"] = "Instagram";
10
+ ResourceLinkType2["LINKED_IN"] = "LinkedIn";
11
+ ResourceLinkType2["MEDIUM"] = "Medium";
12
+ ResourceLinkType2["REDDIT"] = "Reddit";
13
+ ResourceLinkType2["SUPPORT"] = "Support";
14
+ ResourceLinkType2["TELEGRAM"] = "Telegram";
15
+ ResourceLinkType2["TIK_TOK"] = "TikTok";
16
+ ResourceLinkType2["TWITTER"] = "Twitter";
17
+ ResourceLinkType2["WEBSITE"] = "Website";
18
+ ResourceLinkType2["WHITEPAPER"] = "Whitepaper";
19
+ ResourceLinkType2["YOUTUBE"] = "Youtube";
20
+ return ResourceLinkType2;
21
+ })(ResourceLinkType || {});
22
+
23
+ export { ResourceLinkType };
@@ -0,0 +1,6 @@
1
+ declare enum RewardType {
2
+ VALIDATOR = "VALIDATOR",
3
+ DELEGATOR = "DELEGATOR"
4
+ }
5
+
6
+ export { RewardType };
@@ -0,0 +1,7 @@
1
+ var RewardType = /* @__PURE__ */ ((RewardType2) => {
2
+ RewardType2["VALIDATOR"] = "VALIDATOR";
3
+ RewardType2["DELEGATOR"] = "DELEGATOR";
4
+ return RewardType2;
5
+ })(RewardType || {});
6
+
7
+ export { RewardType };
@@ -0,0 +1,26 @@
1
+ type RichAddress = {
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
+ /**
21
+ * A wallet or contract address in mixed-case checksum encoding.
22
+ */
23
+ address: string;
24
+ };
25
+
26
+ export { RichAddress };
@@ -0,0 +1,6 @@
1
+ declare enum SortOrder {
2
+ ASC = "asc",
3
+ DESC = "desc"
4
+ }
5
+
6
+ export { SortOrder };
@@ -0,0 +1,7 @@
1
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2
+ SortOrder2["ASC"] = "asc";
3
+ SortOrder2["DESC"] = "desc";
4
+ return SortOrder2;
5
+ })(SortOrder || {});
6
+
7
+ export { SortOrder };
@@ -0,0 +1,28 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TokenWithPrice = {
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
+ /**
17
+ * The number of decimals the token uses. For example `6`,
18
+ * means to divide the token amount by `1000000` to get its user
19
+ * representation.
20
+ */
21
+ decimals: number;
22
+ /**
23
+ * The token price, if available.
24
+ */
25
+ price?: Money;
26
+ };
27
+
28
+ export { TokenWithPrice };
@@ -0,0 +1,36 @@
1
+ import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
2
+ import { Erc20TransferDetails } from './Erc20TransferDetails.js';
3
+ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
+ import { InternalTransactionDetails } from './InternalTransactionDetails.js';
5
+ import { NativeTransaction } from './NativeTransaction.js';
6
+
7
+ type TransactionDetails = {
8
+ /**
9
+ * The native (top-level) transaction details.
10
+ */
11
+ nativeTransaction: NativeTransaction;
12
+ /**
13
+ * The list of ERC-20 transfers.
14
+ */
15
+ erc20Transfers?: Array<Erc20TransferDetails>;
16
+ /**
17
+ * The list of ERC-721 transfers.
18
+ */
19
+ erc721Transfers?: Array<Erc721TransferDetails>;
20
+ /**
21
+ * The list of ERC-1155 transfers.
22
+ */
23
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
24
+ /**
25
+ * The list of internal transactions. Note that this list only
26
+ * includes CALL and
27
+ * CALLCODE internal transactions that had a
28
+ * non-zero value and
29
+ * CREATE/CREATE2
30
+ * calls. Use a client provider to recieve a full debug trace of the
31
+ * transaction.
32
+ */
33
+ internalTransactions?: Array<InternalTransactionDetails>;
34
+ };
35
+
36
+ export { TransactionDetails };
@@ -0,0 +1,18 @@
1
+ import { OperationStatusCode } from './OperationStatusCode.js';
2
+
3
+ type TransactionExportMetadata = {
4
+ code?: OperationStatusCode;
5
+ /**
6
+ * File download URL. Provided only for COMPLETED and COMPLETED_WITH_WARNING operations.
7
+ */
8
+ downloadUrl?: string;
9
+ /**
10
+ * The next date to use as the startDate in follow up requests
11
+ * if a request results in a transaction history exceeding the max size and
12
+ * has been reported as COMPLETED_WITH_WARNING with the warning
13
+ * WarnTruncatedExport.
14
+ */
15
+ nextDate?: string;
16
+ };
17
+
18
+ export { TransactionExportMetadata };
@@ -0,0 +1,7 @@
1
+ declare enum TransactionMethodType {
2
+ NATIVE_TRANSFER = "NATIVE_TRANSFER",
3
+ CONTRACT_CALL = "CONTRACT_CALL",
4
+ CONTRACT_CREATION = "CONTRACT_CREATION"
5
+ }
6
+
7
+ export { TransactionMethodType };
@@ -0,0 +1,8 @@
1
+ var TransactionMethodType = /* @__PURE__ */ ((TransactionMethodType2) => {
2
+ TransactionMethodType2["NATIVE_TRANSFER"] = "NATIVE_TRANSFER";
3
+ TransactionMethodType2["CONTRACT_CALL"] = "CONTRACT_CALL";
4
+ TransactionMethodType2["CONTRACT_CREATION"] = "CONTRACT_CREATION";
5
+ return TransactionMethodType2;
6
+ })(TransactionMethodType || {});
7
+
8
+ export { TransactionMethodType };
@@ -0,0 +1,6 @@
1
+ declare enum TransactionStatus {
2
+ FAILED = "failed",
3
+ SUCCESS = "success"
4
+ }
5
+
6
+ export { TransactionStatus };
@@ -0,0 +1,7 @@
1
+ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
2
+ TransactionStatus2["FAILED"] = "failed";
3
+ TransactionStatus2["SUCCESS"] = "success";
4
+ return TransactionStatus2;
5
+ })(TransactionStatus || {});
6
+
7
+ export { TransactionStatus };