@avalabs/glacier-sdk 2.8.0-alpha.17 → 2.8.0-alpha.170

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 (295) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +4240 -3
  3. package/dist/index.js +2068 -155
  4. package/esm/generated/Glacier.d.ts +42 -0
  5. package/esm/generated/Glacier.js +68 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +18 -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 +91 -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 +227 -0
  18. package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
  19. package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
  20. package/esm/generated/models/ActiveValidatorDetails.d.ts +28 -0
  21. package/esm/generated/models/ActiveValidatorDetails.js +8 -0
  22. package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
  23. package/esm/generated/models/Asset.d.ts +30 -0
  24. package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
  25. package/esm/generated/models/Blockchain.d.ts +10 -0
  26. package/esm/generated/models/BlockchainId.d.ts +12 -0
  27. package/esm/generated/models/BlockchainId.js +13 -0
  28. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  29. package/esm/generated/models/BlockchainIds.js +10 -0
  30. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  31. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  32. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  33. package/esm/generated/models/CChainExportTransaction.js +8 -0
  34. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  35. package/esm/generated/models/CChainImportTransaction.js +8 -0
  36. package/esm/generated/models/CChainSharedAssetBalance.d.ts +32 -0
  37. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  38. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  39. package/esm/generated/models/ChainInfo.d.ts +28 -0
  40. package/esm/generated/models/ChainStatus.d.ts +6 -0
  41. package/esm/generated/models/ChainStatus.js +7 -0
  42. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  43. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  44. package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
  45. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  46. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  47. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  48. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  49. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  50. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  51. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  52. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  53. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  54. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  55. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  56. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  57. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  58. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  59. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  60. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  61. package/esm/generated/models/CurrencyCode.js +19 -0
  62. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  63. package/esm/generated/models/DelegationStatusType.js +8 -0
  64. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  65. package/esm/generated/models/EVMInput.d.ts +19 -0
  66. package/esm/generated/models/EVMOutput.d.ts +14 -0
  67. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  68. package/esm/generated/models/Erc1155Contract.js +8 -0
  69. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  70. package/esm/generated/models/Erc1155Token.js +8 -0
  71. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  72. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  73. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  74. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  75. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  76. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  77. package/esm/generated/models/Erc20Contract.js +8 -0
  78. package/esm/generated/models/Erc20Token.d.ts +36 -0
  79. package/esm/generated/models/Erc20Token.js +8 -0
  80. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  81. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  82. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  83. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  84. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  85. package/esm/generated/models/Erc721Contract.js +8 -0
  86. package/esm/generated/models/Erc721Token.d.ts +31 -0
  87. package/esm/generated/models/Erc721Token.js +8 -0
  88. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  89. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  90. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  91. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  92. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  93. package/esm/generated/models/EventType.d.ts +5 -0
  94. package/esm/generated/models/EventType.js +6 -0
  95. package/esm/generated/models/EvmBlock.d.ts +45 -0
  96. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  97. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  98. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  99. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  100. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  101. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  102. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
  103. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  104. package/esm/generated/models/HistoricalReward.d.ts +21 -0
  105. package/esm/generated/models/ImageAsset.d.ts +9 -0
  106. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  107. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  108. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  109. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  110. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  111. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  112. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  113. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  114. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  115. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  116. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  117. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  118. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  119. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  120. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  121. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  122. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  123. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  124. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  125. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  126. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  127. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  128. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  129. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  130. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  131. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  132. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  133. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  134. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  135. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  136. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  137. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +17 -0
  138. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  139. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  140. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  141. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  142. package/esm/generated/models/Method.d.ts +18 -0
  143. package/esm/generated/models/Money.d.ts +14 -0
  144. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  145. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  146. package/esm/generated/models/Network.d.ts +6 -0
  147. package/esm/generated/models/Network.js +7 -0
  148. package/esm/generated/models/NetworkToken.d.ts +21 -0
  149. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  150. package/esm/generated/models/NetworkType.d.ts +6 -0
  151. package/esm/generated/models/NetworkType.js +7 -0
  152. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  153. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  154. package/esm/generated/models/OperationStatus.d.ts +8 -0
  155. package/esm/generated/models/OperationStatus.js +9 -0
  156. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  157. package/esm/generated/models/OperationStatusCode.js +8 -0
  158. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  159. package/esm/generated/models/OperationType.d.ts +6 -0
  160. package/esm/generated/models/OperationType.js +7 -0
  161. package/esm/generated/models/PChainBalance.d.ts +39 -0
  162. package/esm/generated/models/PChainId.d.ts +6 -0
  163. package/esm/generated/models/PChainId.js +7 -0
  164. package/esm/generated/models/PChainSharedAsset.d.ts +32 -0
  165. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  166. package/esm/generated/models/PChainTransactionType.d.ts +18 -0
  167. package/esm/generated/models/PChainTransactionType.js +19 -0
  168. package/esm/generated/models/PChainUtxo.d.ts +51 -0
  169. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  170. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  171. package/esm/generated/models/PendingReward.d.ts +22 -0
  172. package/esm/generated/models/PendingValidatorDetails.d.ts +17 -0
  173. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  174. package/esm/generated/models/PricingProviders.d.ts +5 -0
  175. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  176. package/esm/generated/models/PrimaryNetwork.js +7 -0
  177. package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
  178. package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
  179. package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
  180. package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
  181. package/esm/generated/models/PrimaryNetworkBlock.d.ts +16 -0
  182. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  183. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  184. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  185. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  186. package/esm/generated/models/PrimaryNetworkTxType.d.ts +21 -0
  187. package/esm/generated/models/PrimaryNetworkTxType.js +22 -0
  188. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  189. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  190. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  191. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  192. package/esm/generated/models/ResourceLink.d.ts +8 -0
  193. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  194. package/esm/generated/models/ResourceLinkType.js +23 -0
  195. package/esm/generated/models/RewardType.d.ts +7 -0
  196. package/esm/generated/models/RewardType.js +8 -0
  197. package/esm/generated/models/Rewards.d.ts +8 -0
  198. package/esm/generated/models/RichAddress.d.ts +24 -0
  199. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  200. package/esm/generated/models/SortOrder.d.ts +6 -0
  201. package/esm/generated/models/SortOrder.js +7 -0
  202. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  203. package/esm/generated/models/Subnet.d.ts +13 -0
  204. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  205. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  206. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  207. package/esm/generated/models/TransactionMethodType.js +8 -0
  208. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  209. package/esm/generated/models/TransactionStatus.js +7 -0
  210. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  211. package/esm/generated/models/UnknownContract.d.ts +31 -0
  212. package/esm/generated/models/UnknownContract.js +8 -0
  213. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  214. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  215. package/esm/generated/models/Utxo.d.ts +68 -0
  216. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  217. package/esm/generated/models/UtxoType.d.ts +6 -0
  218. package/esm/generated/models/UtxoType.js +7 -0
  219. package/esm/generated/models/ValidationStatusType.d.ts +8 -0
  220. package/esm/generated/models/ValidationStatusType.js +9 -0
  221. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  222. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  223. package/esm/generated/models/VmName.d.ts +7 -0
  224. package/esm/generated/models/VmName.js +8 -0
  225. package/esm/generated/models/WebhookResponse.d.ts +17 -0
  226. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  227. package/esm/generated/models/WebhookStatus.js +7 -0
  228. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  229. package/esm/generated/models/WebhookStatusType.js +7 -0
  230. package/esm/generated/models/XChainAssetBalance.d.ts +31 -0
  231. package/esm/generated/models/XChainAssetDetails.d.ts +35 -0
  232. package/esm/generated/models/XChainBalances.d.ts +17 -0
  233. package/esm/generated/models/XChainId.d.ts +7 -0
  234. package/esm/generated/models/XChainId.js +8 -0
  235. package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
  236. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  237. package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
  238. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  239. package/esm/generated/models/XChainSharedAssetBalance.d.ts +32 -0
  240. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  241. package/esm/generated/models/XChainTransactionType.js +11 -0
  242. package/esm/generated/models/XChainVertex.d.ts +12 -0
  243. package/esm/generated/services/DefaultService.d.ts +74 -0
  244. package/esm/generated/services/DefaultService.js +61 -0
  245. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  246. package/esm/generated/services/EvmBalancesService.js +116 -0
  247. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  248. package/esm/generated/services/EvmBlocksService.js +37 -0
  249. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  250. package/esm/generated/services/EvmChainsService.js +29 -0
  251. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  252. package/esm/generated/services/EvmContractsService.js +36 -0
  253. package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
  254. package/esm/generated/services/EvmTransactionsService.js +251 -0
  255. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  256. package/esm/generated/services/HealthCheckService.js +16 -0
  257. package/esm/generated/services/NfTsService.d.ts +76 -0
  258. package/esm/generated/services/NfTsService.js +56 -0
  259. package/esm/generated/services/OperationsService.d.ts +35 -0
  260. package/esm/generated/services/OperationsService.js +28 -0
  261. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  262. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  263. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  264. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  265. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +82 -0
  266. package/esm/generated/services/PrimaryNetworkRewardsService.js +55 -0
  267. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  268. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  269. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  270. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  271. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  272. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  273. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  274. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  275. package/esm/index.d.ts +187 -0
  276. package/esm/index.js +80 -0
  277. package/package.json +11 -20
  278. package/.eslintrc.js +0 -3
  279. package/CHANGELOG.md +0 -262
  280. package/__tests__/glacier-sdk.test.js +0 -7
  281. package/dist/index.d.ts.map +0 -1
  282. package/dist/index.js.map +0 -1
  283. package/dist/src/generated/models.d.ts +0 -385
  284. package/dist/src/generated/models.d.ts.map +0 -1
  285. package/dist/src/glacierClient.d.ts +0 -93
  286. package/dist/src/glacierClient.d.ts.map +0 -1
  287. package/dist/src/types.d.ts +0 -13
  288. package/dist/src/types.d.ts.map +0 -1
  289. package/index.ts +0 -2
  290. package/rollup.config.js +0 -33
  291. package/src/generated/models.ts +0 -460
  292. package/src/glacierClient.ts +0 -190
  293. package/src/types.ts +0 -6
  294. package/swagger/generateModels.js +0 -40
  295. package/tsconfig.json +0 -7
@@ -0,0 +1,15 @@
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 (YYYY-MM-DD) to use as the firstDate in follow up requests if a request results in a transaction history exceeding the max size and has been reported as `COMPLETED_WITH_WARNING` with the warning 'WarnTruncatedExport'.
11
+ */
12
+ nextDate?: string;
13
+ };
14
+
15
+ 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 };
@@ -0,0 +1,16 @@
1
+ type TransactionVertexDetail = {
2
+ /**
3
+ * Vertex ID of the vertex this transaction belongs to.
4
+ */
5
+ hash: string;
6
+ /**
7
+ * Vertex height of the vertex this transaction belongs to.
8
+ */
9
+ height: number;
10
+ /**
11
+ * Timestamp in seconds this vertex was accepted.
12
+ */
13
+ timestamp: number;
14
+ };
15
+
16
+ export { TransactionVertexDetail };
@@ -0,0 +1,31 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { ResourceLink } from './ResourceLink.js';
4
+
5
+ type UnknownContract = {
6
+ /**
7
+ * The contract name.
8
+ */
9
+ name?: string;
10
+ description?: string;
11
+ officialSite?: string;
12
+ email?: string;
13
+ logoAsset?: ImageAsset;
14
+ bannerAsset?: ImageAsset;
15
+ color?: string;
16
+ resourceLinks?: Array<ResourceLink>;
17
+ tags?: Array<string>;
18
+ /**
19
+ * A wallet or contract address in mixed-case checksum encoding.
20
+ */
21
+ address: string;
22
+ deploymentDetails: ContractDeploymentDetails;
23
+ ercType: UnknownContract.ercType;
24
+ };
25
+ declare namespace UnknownContract {
26
+ enum ercType {
27
+ UNKNOWN = "UNKNOWN"
28
+ }
29
+ }
30
+
31
+ export { UnknownContract };
@@ -0,0 +1,8 @@
1
+ var UnknownContract;
2
+ ((UnknownContract2) => {
3
+ ((ercType2) => {
4
+ ercType2["UNKNOWN"] = "UNKNOWN";
5
+ })(UnknownContract2.ercType || (UnknownContract2.ercType = {}));
6
+ })(UnknownContract || (UnknownContract = {}));
7
+
8
+ export { UnknownContract };
@@ -0,0 +1,10 @@
1
+ import { Erc1155Contract } from './Erc1155Contract.js';
2
+ import { Erc20Contract } from './Erc20Contract.js';
3
+ import { Erc721Contract } from './Erc721Contract.js';
4
+ import { UnknownContract } from './UnknownContract.js';
5
+
6
+ type UpdateContractResponse = {
7
+ contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
8
+ };
9
+
10
+ export { UpdateContractResponse };
@@ -0,0 +1,5 @@
1
+ type UtilityAddresses = {
2
+ multicall?: string;
3
+ };
4
+
5
+ export { UtilityAddresses };
@@ -0,0 +1,68 @@
1
+ import { Asset } from './Asset.js';
2
+ import { UtxoCredential } from './UtxoCredential.js';
3
+
4
+ type Utxo = {
5
+ /**
6
+ * Addresses that are eligible to sign the consumption of this output.
7
+ */
8
+ addresses: Array<string>;
9
+ asset: Asset;
10
+ /**
11
+ * Blockchain ID on which this output is consumed on.
12
+ */
13
+ consumedOnChainId: string;
14
+ /**
15
+ * Transaction ID that consumed this output.
16
+ */
17
+ consumingTxHash?: string;
18
+ /**
19
+ * Blockchain ID on which this output is created on.
20
+ */
21
+ createdOnChainId: string;
22
+ /**
23
+ * UTXO ID for this output.
24
+ */
25
+ utxoId: string;
26
+ /**
27
+ * Unix timestamp in seconds at which this output was consumed.
28
+ */
29
+ consumingTxTimestamp?: number;
30
+ /**
31
+ * Transaction ID that created this output.
32
+ */
33
+ creationTxHash: string;
34
+ /**
35
+ * Credentials that signed the transaction to consume this utxo
36
+ */
37
+ credentials?: Array<UtxoCredential>;
38
+ /**
39
+ * Index representing the minting set for the NFT mint output.
40
+ */
41
+ groupId?: number;
42
+ /**
43
+ * Locktime in seconds after which this output can be consumed.
44
+ */
45
+ locktime: number;
46
+ /**
47
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
48
+ */
49
+ outputIndex: string;
50
+ /**
51
+ * Hex encoded data for NFT assets.
52
+ */
53
+ payload?: string;
54
+ /**
55
+ * Minimum number of signatures required to consume this output.
56
+ */
57
+ threshold: number;
58
+ /**
59
+ * Unix timestamp in seconds at which this outptut was created.
60
+ */
61
+ timestamp: number;
62
+ /**
63
+ * Type of output.
64
+ */
65
+ utxoType: string;
66
+ };
67
+
68
+ export { Utxo };
@@ -0,0 +1,12 @@
1
+ type UtxoCredential = {
2
+ /**
3
+ * Signature provided to consume the output.
4
+ */
5
+ signature?: string;
6
+ /**
7
+ * Public key associated with the signature.
8
+ */
9
+ publicKey?: string;
10
+ };
11
+
12
+ export { UtxoCredential };
@@ -0,0 +1,6 @@
1
+ declare enum UtxoType {
2
+ STAKE = "STAKE",
3
+ TRANSFER = "TRANSFER"
4
+ }
5
+
6
+ export { UtxoType };
@@ -0,0 +1,7 @@
1
+ var UtxoType = /* @__PURE__ */ ((UtxoType2) => {
2
+ UtxoType2["STAKE"] = "STAKE";
3
+ UtxoType2["TRANSFER"] = "TRANSFER";
4
+ return UtxoType2;
5
+ })(UtxoType || {});
6
+
7
+ export { UtxoType };
@@ -0,0 +1,8 @@
1
+ declare enum ValidationStatusType {
2
+ COMPLETED = "completed",
3
+ ACTIVE = "active",
4
+ PENDING = "pending",
5
+ REMOVED = "removed"
6
+ }
7
+
8
+ export { ValidationStatusType };
@@ -0,0 +1,9 @@
1
+ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
+ ValidationStatusType2["COMPLETED"] = "completed";
3
+ ValidationStatusType2["ACTIVE"] = "active";
4
+ ValidationStatusType2["PENDING"] = "pending";
5
+ ValidationStatusType2["REMOVED"] = "removed";
6
+ return ValidationStatusType2;
7
+ })(ValidationStatusType || {});
8
+
9
+ export { ValidationStatusType };
@@ -0,0 +1,20 @@
1
+ type ValidatorHealthDetails = {
2
+ /**
3
+ * Percent of requests responded to in last polling.
4
+ */
5
+ reachabilityPercent: number;
6
+ /**
7
+ * Percent of requests benched on the P-Chain in last polling.
8
+ */
9
+ benchedPChainRequestsPercent: number;
10
+ /**
11
+ * Percentage of requests benched on the X-Chain in last polling.
12
+ */
13
+ benchedXChainRequestsPercent: number;
14
+ /**
15
+ * Percentage of requests benched on the C-Chain in last polling.
16
+ */
17
+ benchedCChainRequestsPercent: number;
18
+ };
19
+
20
+ export { ValidatorHealthDetails };
@@ -0,0 +1,11 @@
1
+ import { StakingDistribution } from './StakingDistribution.js';
2
+
3
+ type ValidatorsDetails = {
4
+ validatorCount: number;
5
+ totalAmountStaked: string;
6
+ estimatedAnnualStakingReward: string;
7
+ stakingDistributionByVersion: Array<StakingDistribution>;
8
+ stakingRatio: string;
9
+ };
10
+
11
+ export { ValidatorsDetails };
@@ -0,0 +1,7 @@
1
+ declare enum VmName {
2
+ EVM = "EVM",
3
+ BITCOIN = "BITCOIN",
4
+ ETHEREUM = "ETHEREUM"
5
+ }
6
+
7
+ export { VmName };
@@ -0,0 +1,8 @@
1
+ var VmName = /* @__PURE__ */ ((VmName2) => {
2
+ VmName2["EVM"] = "EVM";
3
+ VmName2["BITCOIN"] = "BITCOIN";
4
+ VmName2["ETHEREUM"] = "ETHEREUM";
5
+ return VmName2;
6
+ })(VmName || {});
7
+
8
+ export { VmName };
@@ -0,0 +1,17 @@
1
+ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
2
+ import { EventType } from './EventType.js';
3
+ import { WebhookStatusType } from './WebhookStatusType.js';
4
+
5
+ type WebhookResponse = {
6
+ id: string;
7
+ eventType: EventType;
8
+ metadata: AddressActivityMetadata;
9
+ url: string;
10
+ chainId: string;
11
+ status: WebhookStatusType;
12
+ createdAt: number;
13
+ name: string;
14
+ description: string;
15
+ };
16
+
17
+ export { WebhookResponse };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatus };
@@ -0,0 +1,7 @@
1
+ var WebhookStatus = /* @__PURE__ */ ((WebhookStatus2) => {
2
+ WebhookStatus2["ACTIVE"] = "active";
3
+ WebhookStatus2["INACTIVE"] = "inactive";
4
+ return WebhookStatus2;
5
+ })(WebhookStatus || {});
6
+
7
+ export { WebhookStatus };
@@ -0,0 +1,6 @@
1
+ declare enum WebhookStatusType {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive"
4
+ }
5
+
6
+ export { WebhookStatusType };
@@ -0,0 +1,7 @@
1
+ var WebhookStatusType = /* @__PURE__ */ ((WebhookStatusType2) => {
2
+ WebhookStatusType2["ACTIVE"] = "active";
3
+ WebhookStatusType2["INACTIVE"] = "inactive";
4
+ return WebhookStatusType2;
5
+ })(WebhookStatusType || {});
6
+
7
+ export { WebhookStatusType };
@@ -0,0 +1,31 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type XChainAssetBalance = {
4
+ /**
5
+ * Unique ID for an asset.
6
+ */
7
+ assetId: string;
8
+ /**
9
+ * Name of this asset.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Symbol for this asset (max 4 characters).
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * Denomination of this asset to represent fungibility.
18
+ */
19
+ denomination: number;
20
+ /**
21
+ * Type of asset like SECP256K1 or NFT.
22
+ */
23
+ type: PrimaryNetworkAssetType;
24
+ /**
25
+ * Amount of the asset.
26
+ */
27
+ amount: string;
28
+ utxoCount: number;
29
+ };
30
+
31
+ export { XChainAssetBalance };
@@ -0,0 +1,35 @@
1
+ import { PrimaryNetworkAssetCap } from './PrimaryNetworkAssetCap.js';
2
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
3
+
4
+ type XChainAssetDetails = {
5
+ /**
6
+ * Unique ID for an asset.
7
+ */
8
+ assetId: string;
9
+ /**
10
+ * Name of this asset.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Symbol for this asset (max 4 characters).
15
+ */
16
+ symbol: string;
17
+ /**
18
+ * Denomination of this asset to represent fungibility.
19
+ */
20
+ denomination: number;
21
+ /**
22
+ * Type of asset like SECP256K1 or NFT.
23
+ */
24
+ type: PrimaryNetworkAssetType;
25
+ /**
26
+ * Timestamp in seconds this asset was created on.
27
+ */
28
+ createdAtTimestamp: number;
29
+ /**
30
+ * Cap represents if an asset is a variable or fixed cap asset.
31
+ */
32
+ cap: PrimaryNetworkAssetCap;
33
+ };
34
+
35
+ export { XChainAssetDetails };
@@ -0,0 +1,17 @@
1
+ import { XChainAssetBalance } from './XChainAssetBalance.js';
2
+ import { XChainSharedAssetBalance } from './XChainSharedAssetBalance.js';
3
+
4
+ type XChainBalances = {
5
+ /**
6
+ * A list of objects containing X-chain Asset balance information.
7
+ */
8
+ locked: Array<XChainAssetBalance>;
9
+ /**
10
+ * A list of objects containing X-chain Asset balance information.
11
+ */
12
+ unlocked: Array<XChainAssetBalance>;
13
+ atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
14
+ atomicMemoryLocked: Array<XChainSharedAssetBalance>;
15
+ };
16
+
17
+ export { XChainBalances };
@@ -0,0 +1,7 @@
1
+ declare enum XChainId {
2
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
3
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
4
+ X_CHAIN = "x-chain"
5
+ }
6
+
7
+ export { XChainId };
@@ -0,0 +1,8 @@
1
+ var XChainId = /* @__PURE__ */ ((XChainId2) => {
2
+ XChainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
3
+ XChainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
4
+ XChainId2["X_CHAIN"] = "x-chain";
5
+ return XChainId2;
6
+ })(XChainId || {});
7
+
8
+ export { XChainId };
@@ -0,0 +1,68 @@
1
+ import { Asset } from './Asset.js';
2
+ import { Utxo } from './Utxo.js';
3
+ import { XChainAssetDetails } from './XChainAssetDetails.js';
4
+ import { XChainTransactionType } from './XChainTransactionType.js';
5
+
6
+ type XChainLinearTransaction = {
7
+ /**
8
+ * Unique ID for this transaction.
9
+ */
10
+ txHash: string;
11
+ /**
12
+ * Represents chain format this transaction is included in.
13
+ */
14
+ chainFormat: XChainLinearTransaction.chainFormat;
15
+ /**
16
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
17
+ */
18
+ timestamp: number;
19
+ /**
20
+ * Type of transaction.
21
+ */
22
+ txType: XChainTransactionType;
23
+ /**
24
+ * Hex encoded memo bytes for this transaction.
25
+ */
26
+ memo: string;
27
+ consumedUtxos: Array<Utxo>;
28
+ emittedUtxos: Array<Utxo>;
29
+ /**
30
+ * Assets unlocked by inputs of this transaction.
31
+ */
32
+ amountUnlocked: Array<Asset>;
33
+ /**
34
+ * Assets created by outputs of this transaction.
35
+ */
36
+ amountCreated: Array<Asset>;
37
+ /**
38
+ * Source chain for an atomic transaction.
39
+ */
40
+ sourceChain?: string;
41
+ /**
42
+ * Destination chain for an atomic transaction.
43
+ */
44
+ destinationChain?: string;
45
+ /**
46
+ * Asset details of the asset created in CreateAssetTx
47
+ */
48
+ assetCreated?: XChainAssetDetails;
49
+ /**
50
+ * Height of the block this transaction belongs to.
51
+ */
52
+ blockHeight: number;
53
+ /**
54
+ * Hash of the block this transaction belongs to.
55
+ */
56
+ blockHash: string;
57
+ };
58
+ declare namespace XChainLinearTransaction {
59
+ /**
60
+ * Represents chain format this transaction is included in.
61
+ */
62
+ enum chainFormat {
63
+ NON_LINEAR = "non-linear",
64
+ LINEAR = "linear"
65
+ }
66
+ }
67
+
68
+ export { XChainLinearTransaction };
@@ -0,0 +1,9 @@
1
+ var XChainLinearTransaction;
2
+ ((XChainLinearTransaction2) => {
3
+ ((chainFormat2) => {
4
+ chainFormat2["NON_LINEAR"] = "non-linear";
5
+ chainFormat2["LINEAR"] = "linear";
6
+ })(XChainLinearTransaction2.chainFormat || (XChainLinearTransaction2.chainFormat = {}));
7
+ })(XChainLinearTransaction || (XChainLinearTransaction = {}));
8
+
9
+ export { XChainLinearTransaction };
@@ -0,0 +1,65 @@
1
+ import { Asset } from './Asset.js';
2
+ import { TransactionVertexDetail } from './TransactionVertexDetail.js';
3
+ import { Utxo } from './Utxo.js';
4
+ import { XChainAssetDetails } from './XChainAssetDetails.js';
5
+ import { XChainTransactionType } from './XChainTransactionType.js';
6
+
7
+ type XChainNonLinearTransaction = {
8
+ /**
9
+ * Unique ID for this transaction.
10
+ */
11
+ txHash: string;
12
+ /**
13
+ * Represents chain format this transaction is included in.
14
+ */
15
+ chainFormat: XChainNonLinearTransaction.chainFormat;
16
+ /**
17
+ * Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
18
+ */
19
+ timestamp: number;
20
+ /**
21
+ * Type of transaction.
22
+ */
23
+ txType: XChainTransactionType;
24
+ /**
25
+ * Hex encoded memo bytes for this transaction.
26
+ */
27
+ memo: string;
28
+ consumedUtxos: Array<Utxo>;
29
+ emittedUtxos: Array<Utxo>;
30
+ /**
31
+ * Assets unlocked by inputs of this transaction.
32
+ */
33
+ amountUnlocked: Array<Asset>;
34
+ /**
35
+ * Assets created by outputs of this transaction.
36
+ */
37
+ amountCreated: Array<Asset>;
38
+ /**
39
+ * Source chain for an atomic transaction.
40
+ */
41
+ sourceChain?: string;
42
+ /**
43
+ * Destination chain for an atomic transaction.
44
+ */
45
+ destinationChain?: string;
46
+ /**
47
+ * Asset details of the asset created in CreateAssetTx
48
+ */
49
+ assetCreated?: XChainAssetDetails;
50
+ /**
51
+ * A transaction on X-Chain can be accepted over multiple vertices.
52
+ */
53
+ vertices: Array<TransactionVertexDetail>;
54
+ };
55
+ declare namespace XChainNonLinearTransaction {
56
+ /**
57
+ * Represents chain format this transaction is included in.
58
+ */
59
+ enum chainFormat {
60
+ NON_LINEAR = "non-linear",
61
+ LINEAR = "linear"
62
+ }
63
+ }
64
+
65
+ export { XChainNonLinearTransaction };
@@ -0,0 +1,9 @@
1
+ var XChainNonLinearTransaction;
2
+ ((XChainNonLinearTransaction2) => {
3
+ ((chainFormat2) => {
4
+ chainFormat2["NON_LINEAR"] = "non-linear";
5
+ chainFormat2["LINEAR"] = "linear";
6
+ })(XChainNonLinearTransaction2.chainFormat || (XChainNonLinearTransaction2.chainFormat = {}));
7
+ })(XChainNonLinearTransaction || (XChainNonLinearTransaction = {}));
8
+
9
+ export { XChainNonLinearTransaction };
@@ -0,0 +1,32 @@
1
+ import { PrimaryNetworkAssetType } from './PrimaryNetworkAssetType.js';
2
+
3
+ type XChainSharedAssetBalance = {
4
+ /**
5
+ * Unique ID for an asset.
6
+ */
7
+ assetId: string;
8
+ /**
9
+ * Name of this asset.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Symbol for this asset (max 4 characters).
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * Denomination of this asset to represent fungibility.
18
+ */
19
+ denomination: number;
20
+ /**
21
+ * Type of asset like SECP256K1 or NFT.
22
+ */
23
+ type: PrimaryNetworkAssetType;
24
+ /**
25
+ * Amount of the asset.
26
+ */
27
+ amount: string;
28
+ utxoCount: number;
29
+ sharedWithChainId: string;
30
+ };
31
+
32
+ export { XChainSharedAssetBalance };
@@ -0,0 +1,10 @@
1
+ declare enum XChainTransactionType {
2
+ BASE_TX = "BaseTx",
3
+ CREATE_ASSET_TX = "CreateAssetTx",
4
+ OPERATION_TX = "OperationTx",
5
+ IMPORT_TX = "ImportTx",
6
+ EXPORT_TX = "ExportTx",
7
+ UNKNOWN = "UNKNOWN"
8
+ }
9
+
10
+ export { XChainTransactionType };