@avalabs/glacier-sdk 2.8.0-alpha.15 → 2.8.0-alpha.151

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 (288) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +4118 -3
  3. package/dist/index.js +2030 -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 +9 -0
  23. package/esm/generated/models/Asset.d.ts +28 -0
  24. package/esm/generated/models/Blockchain.d.ts +10 -0
  25. package/esm/generated/models/BlockchainId.d.ts +12 -0
  26. package/esm/generated/models/BlockchainId.js +13 -0
  27. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  28. package/esm/generated/models/BlockchainIds.js +10 -0
  29. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  30. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  31. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  32. package/esm/generated/models/CChainExportTransaction.js +8 -0
  33. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  34. package/esm/generated/models/CChainImportTransaction.js +8 -0
  35. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  36. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  37. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  38. package/esm/generated/models/ChainInfo.d.ts +28 -0
  39. package/esm/generated/models/ChainStatus.d.ts +6 -0
  40. package/esm/generated/models/ChainStatus.js +7 -0
  41. package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
  42. package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
  43. package/esm/generated/models/CompletedValidatorDetails.d.ts +21 -0
  44. package/esm/generated/models/CompletedValidatorDetails.js +8 -0
  45. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  46. package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
  47. package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
  48. package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
  49. package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
  50. package/esm/generated/models/ContractSubmissionErc20.js +8 -0
  51. package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
  52. package/esm/generated/models/ContractSubmissionErc721.js +8 -0
  53. package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
  54. package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
  55. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  56. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  57. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  58. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  59. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  60. package/esm/generated/models/CurrencyCode.js +19 -0
  61. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  62. package/esm/generated/models/DelegationStatusType.js +8 -0
  63. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  64. package/esm/generated/models/EVMInput.d.ts +19 -0
  65. package/esm/generated/models/EVMOutput.d.ts +14 -0
  66. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  67. package/esm/generated/models/Erc1155Contract.js +8 -0
  68. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  69. package/esm/generated/models/Erc1155Token.js +8 -0
  70. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  71. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  72. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  73. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  74. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  75. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  76. package/esm/generated/models/Erc20Contract.js +8 -0
  77. package/esm/generated/models/Erc20Token.d.ts +36 -0
  78. package/esm/generated/models/Erc20Token.js +8 -0
  79. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  80. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  81. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  82. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  83. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  84. package/esm/generated/models/Erc721Contract.js +8 -0
  85. package/esm/generated/models/Erc721Token.d.ts +31 -0
  86. package/esm/generated/models/Erc721Token.js +8 -0
  87. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  88. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  89. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  90. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  91. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  92. package/esm/generated/models/EventType.d.ts +5 -0
  93. package/esm/generated/models/EventType.js +6 -0
  94. package/esm/generated/models/EvmBlock.d.ts +45 -0
  95. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  96. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  97. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  98. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  99. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  100. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  101. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
  102. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  103. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  104. package/esm/generated/models/ImageAsset.d.ts +9 -0
  105. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  106. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  107. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  108. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  109. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  110. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  111. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  112. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  113. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  114. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  115. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  116. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  117. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  118. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  119. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  120. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  121. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  122. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  123. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  124. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  125. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  126. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  127. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  128. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  129. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  130. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  131. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  132. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  133. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  134. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  135. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  136. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  137. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  138. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  139. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  140. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  141. package/esm/generated/models/Method.d.ts +18 -0
  142. package/esm/generated/models/Money.d.ts +14 -0
  143. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  144. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  145. package/esm/generated/models/Network.d.ts +6 -0
  146. package/esm/generated/models/Network.js +7 -0
  147. package/esm/generated/models/NetworkToken.d.ts +21 -0
  148. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  149. package/esm/generated/models/NetworkType.d.ts +6 -0
  150. package/esm/generated/models/NetworkType.js +7 -0
  151. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  152. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  153. package/esm/generated/models/OperationStatus.d.ts +8 -0
  154. package/esm/generated/models/OperationStatus.js +9 -0
  155. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  156. package/esm/generated/models/OperationStatusCode.js +8 -0
  157. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  158. package/esm/generated/models/OperationType.d.ts +6 -0
  159. package/esm/generated/models/OperationType.js +7 -0
  160. package/esm/generated/models/PChainAsset.d.ts +6 -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 +8 -0
  165. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  166. package/esm/generated/models/PChainTransactionType.d.ts +17 -0
  167. package/esm/generated/models/PChainTransactionType.js +18 -0
  168. package/esm/generated/models/PChainUtxo.d.ts +31 -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/PrimaryNetworkBlock.d.ts +16 -0
  178. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  179. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  180. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  181. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  182. package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
  183. package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
  184. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  185. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  186. package/esm/generated/models/ResourceLink.d.ts +8 -0
  187. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  188. package/esm/generated/models/ResourceLinkType.js +23 -0
  189. package/esm/generated/models/RewardType.d.ts +7 -0
  190. package/esm/generated/models/RewardType.js +8 -0
  191. package/esm/generated/models/Rewards.d.ts +8 -0
  192. package/esm/generated/models/RichAddress.d.ts +24 -0
  193. package/esm/generated/models/SortOrder.d.ts +6 -0
  194. package/esm/generated/models/SortOrder.js +7 -0
  195. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  196. package/esm/generated/models/Subnet.d.ts +13 -0
  197. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  198. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  199. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  200. package/esm/generated/models/TransactionMethodType.js +8 -0
  201. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  202. package/esm/generated/models/TransactionStatus.js +7 -0
  203. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  204. package/esm/generated/models/UnknownContract.d.ts +31 -0
  205. package/esm/generated/models/UnknownContract.js +8 -0
  206. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  207. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  208. package/esm/generated/models/Utxo.d.ts +68 -0
  209. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  210. package/esm/generated/models/UtxoType.d.ts +6 -0
  211. package/esm/generated/models/UtxoType.js +7 -0
  212. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  213. package/esm/generated/models/ValidationStatusType.js +8 -0
  214. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  215. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  216. package/esm/generated/models/VmName.d.ts +7 -0
  217. package/esm/generated/models/VmName.js +8 -0
  218. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  219. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  220. package/esm/generated/models/WebhookStatus.js +7 -0
  221. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  222. package/esm/generated/models/WebhookStatusType.js +7 -0
  223. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  224. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  225. package/esm/generated/models/XChainBalances.d.ts +17 -0
  226. package/esm/generated/models/XChainId.d.ts +7 -0
  227. package/esm/generated/models/XChainId.js +8 -0
  228. package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
  229. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  230. package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
  231. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  232. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  233. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  234. package/esm/generated/models/XChainTransactionType.js +11 -0
  235. package/esm/generated/models/XChainVertex.d.ts +12 -0
  236. package/esm/generated/services/DefaultService.d.ts +59 -0
  237. package/esm/generated/services/DefaultService.js +49 -0
  238. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  239. package/esm/generated/services/EvmBalancesService.js +116 -0
  240. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  241. package/esm/generated/services/EvmBlocksService.js +37 -0
  242. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  243. package/esm/generated/services/EvmChainsService.js +29 -0
  244. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  245. package/esm/generated/services/EvmContractsService.js +36 -0
  246. package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
  247. package/esm/generated/services/EvmTransactionsService.js +251 -0
  248. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  249. package/esm/generated/services/HealthCheckService.js +16 -0
  250. package/esm/generated/services/NfTsService.d.ts +76 -0
  251. package/esm/generated/services/NfTsService.js +56 -0
  252. package/esm/generated/services/OperationsService.d.ts +35 -0
  253. package/esm/generated/services/OperationsService.js +28 -0
  254. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  255. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  256. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  257. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  258. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  259. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  260. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  261. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  262. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  263. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  264. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  265. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  266. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  267. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  268. package/esm/index.d.ts +183 -0
  269. package/esm/index.js +77 -0
  270. package/package.json +11 -20
  271. package/.eslintrc.js +0 -3
  272. package/CHANGELOG.md +0 -250
  273. package/__tests__/glacier-sdk.test.js +0 -7
  274. package/dist/index.d.ts.map +0 -1
  275. package/dist/index.js.map +0 -1
  276. package/dist/src/generated/models.d.ts +0 -385
  277. package/dist/src/generated/models.d.ts.map +0 -1
  278. package/dist/src/glacierClient.d.ts +0 -93
  279. package/dist/src/glacierClient.d.ts.map +0 -1
  280. package/dist/src/types.d.ts +0 -13
  281. package/dist/src/types.d.ts.map +0 -1
  282. package/index.ts +0 -2
  283. package/rollup.config.js +0 -33
  284. package/src/generated/models.ts +0 -460
  285. package/src/glacierClient.ts +0 -190
  286. package/src/types.ts +0 -6
  287. package/swagger/generateModels.js +0 -40
  288. package/tsconfig.json +0 -7
@@ -0,0 +1,68 @@
1
+ import { Asset } from './Asset.js';
2
+ import { UtxoCredential } from './UtxoCredential.js';
3
+
4
+ type Utxo = {
5
+ /**
6
+ * UTXO ID for this output.
7
+ */
8
+ utxoId: string;
9
+ asset: Asset;
10
+ /**
11
+ * Type of output.
12
+ */
13
+ utxoType: string;
14
+ /**
15
+ * Blockchain ID on which this output is created on.
16
+ */
17
+ createdOnChainId: string;
18
+ /**
19
+ * Blockchain ID on which this output is consumed on.
20
+ */
21
+ consumedOnChainId: string;
22
+ /**
23
+ * Transaction ID that created this output.
24
+ */
25
+ creationTxHash: string;
26
+ /**
27
+ * Transaction ID that consumed this output.
28
+ */
29
+ consumingTxHash?: string;
30
+ /**
31
+ * Timestamp in seconds this output is consumed.
32
+ */
33
+ consumingTxTimestamp?: number;
34
+ /**
35
+ * Postion of this output in a list of lexiographically sorted outputs of a transaction.
36
+ */
37
+ outputIndex: string;
38
+ /**
39
+ * Timestamp in seconds this outptut is created on.
40
+ */
41
+ timestamp: number;
42
+ /**
43
+ * Locktime in seconds after which this output can be consumed.
44
+ */
45
+ locktime: number;
46
+ /**
47
+ * Minimum number of signatures required to consume this output.
48
+ */
49
+ threshold: number;
50
+ /**
51
+ * Addresses that are eligible to sign the consumption of this output.
52
+ */
53
+ addresses: Array<string>;
54
+ /**
55
+ * Hex encoded data for NFT assets
56
+ */
57
+ payload?: string;
58
+ /**
59
+ * Index representing the minting set for the NFT mint output
60
+ */
61
+ groupId?: number;
62
+ /**
63
+ * Credentials that signed the transaction to consume this utxo
64
+ */
65
+ credentials?: Array<UtxoCredential>;
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,7 @@
1
+ declare enum ValidationStatusType {
2
+ COMPLETED = "completed",
3
+ ACTIVE = "active",
4
+ PENDING = "pending"
5
+ }
6
+
7
+ export { ValidationStatusType };
@@ -0,0 +1,8 @@
1
+ var ValidationStatusType = /* @__PURE__ */ ((ValidationStatusType2) => {
2
+ ValidationStatusType2["COMPLETED"] = "completed";
3
+ ValidationStatusType2["ACTIVE"] = "active";
4
+ ValidationStatusType2["PENDING"] = "pending";
5
+ return ValidationStatusType2;
6
+ })(ValidationStatusType || {});
7
+
8
+ 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,15 @@
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
+ };
14
+
15
+ 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,29 @@
1
+ type XChainAssetBalance = {
2
+ /**
3
+ * Unique ID for an asset.
4
+ */
5
+ assetId: string;
6
+ /**
7
+ * Name of this asset.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Symbol for this asset (max 4 characters).
12
+ */
13
+ symbol: string;
14
+ /**
15
+ * Denomination of this asset to represent fungibility.
16
+ */
17
+ denomination: number;
18
+ /**
19
+ * Type of asset like SECP256K1 or NFT.
20
+ */
21
+ type: string;
22
+ /**
23
+ * Amount of the asset.
24
+ */
25
+ amount: string;
26
+ utxoCount: number;
27
+ };
28
+
29
+ export { XChainAssetBalance };
@@ -0,0 +1,32 @@
1
+ type XChainAssetDetails = {
2
+ /**
3
+ * Unique ID for an asset.
4
+ */
5
+ assetId: string;
6
+ /**
7
+ * Name of this asset.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Symbol for this asset (max 4 characters).
12
+ */
13
+ symbol: string;
14
+ /**
15
+ * Denomination of this asset to represent fungibility.
16
+ */
17
+ denomination: number;
18
+ /**
19
+ * Type of asset like SECP256K1 or NFT.
20
+ */
21
+ type: string;
22
+ /**
23
+ * Timestamp in seconds this asset was created on.
24
+ */
25
+ createdAtTimestamp: number;
26
+ /**
27
+ * Cap represents if an asset can be or is fixed cap.
28
+ */
29
+ cap: string;
30
+ };
31
+
32
+ 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,30 @@
1
+ type XChainSharedAssetBalance = {
2
+ /**
3
+ * Unique ID for an asset.
4
+ */
5
+ assetId: string;
6
+ /**
7
+ * Name of this asset.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Symbol for this asset (max 4 characters).
12
+ */
13
+ symbol: string;
14
+ /**
15
+ * Denomination of this asset to represent fungibility.
16
+ */
17
+ denomination: number;
18
+ /**
19
+ * Type of asset like SECP256K1 or NFT.
20
+ */
21
+ type: string;
22
+ /**
23
+ * Amount of the asset.
24
+ */
25
+ amount: string;
26
+ utxoCount: number;
27
+ sharedWithChainId: string;
28
+ };
29
+
30
+ 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 };
@@ -0,0 +1,11 @@
1
+ var XChainTransactionType = /* @__PURE__ */ ((XChainTransactionType2) => {
2
+ XChainTransactionType2["BASE_TX"] = "BaseTx";
3
+ XChainTransactionType2["CREATE_ASSET_TX"] = "CreateAssetTx";
4
+ XChainTransactionType2["OPERATION_TX"] = "OperationTx";
5
+ XChainTransactionType2["IMPORT_TX"] = "ImportTx";
6
+ XChainTransactionType2["EXPORT_TX"] = "ExportTx";
7
+ XChainTransactionType2["UNKNOWN"] = "UNKNOWN";
8
+ return XChainTransactionType2;
9
+ })(XChainTransactionType || {});
10
+
11
+ export { XChainTransactionType };
@@ -0,0 +1,12 @@
1
+ type XChainVertex = {
2
+ vertexHash: string;
3
+ parentHashes: Array<string>;
4
+ vertexHeight: number;
5
+ vertexIndex: number;
6
+ vertexTimestamp: number;
7
+ txCount: number;
8
+ transactions: Array<string>;
9
+ vertexSizeBytes: number;
10
+ };
11
+
12
+ export { XChainVertex };
@@ -0,0 +1,59 @@
1
+ import { ListWebhooksResponse } from '../models/ListWebhooksResponse.js';
2
+ import { RegisterWebhookRequest } from '../models/RegisterWebhookRequest.js';
3
+ import { WebhookResponse } from '../models/WebhookResponse.js';
4
+ import { WebhookStatus } from '../models/WebhookStatus.js';
5
+ import { CancelablePromise } from '../core/CancelablePromise.js';
6
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
7
+
8
+ declare class DefaultService {
9
+ readonly httpRequest: BaseHttpRequest;
10
+ constructor(httpRequest: BaseHttpRequest);
11
+ /**
12
+ * @returns any
13
+ * @throws ApiError
14
+ */
15
+ mediaControllerUploadImage(): CancelablePromise<any>;
16
+ /**
17
+ * Register a webhook
18
+ * Registers a new webhook.
19
+ * @returns WebhookResponse
20
+ * @throws ApiError
21
+ */
22
+ registerWebhook({ requestBody, }: {
23
+ requestBody: RegisterWebhookRequest;
24
+ }): CancelablePromise<WebhookResponse>;
25
+ /**
26
+ * List webhooks
27
+ * Lists webhooks for the user.
28
+ * @returns ListWebhooksResponse
29
+ * @throws ApiError
30
+ */
31
+ listWebhooks({ pageSize, pageToken, status, }: {
32
+ /**
33
+ * The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
34
+ */
35
+ pageSize?: number;
36
+ /**
37
+ * A page token, received from a previous list call. Provide this to retrieve the subsequent page.
38
+ */
39
+ pageToken?: string;
40
+ /**
41
+ * Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
42
+ */
43
+ status?: WebhookStatus;
44
+ }): CancelablePromise<ListWebhooksResponse>;
45
+ /**
46
+ * Deactivate a webhook
47
+ * Deactivates a webhook by ID.
48
+ * @returns WebhookResponse
49
+ * @throws ApiError
50
+ */
51
+ deactivateWebhook({ id, }: {
52
+ /**
53
+ * The webhook identifier.
54
+ */
55
+ id: string;
56
+ }): CancelablePromise<WebhookResponse>;
57
+ }
58
+
59
+ export { DefaultService };
@@ -0,0 +1,49 @@
1
+ class DefaultService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ mediaControllerUploadImage() {
6
+ return this.httpRequest.request({
7
+ method: "POST",
8
+ url: "/v1/media/uploadImage"
9
+ });
10
+ }
11
+ registerWebhook({
12
+ requestBody
13
+ }) {
14
+ return this.httpRequest.request({
15
+ method: "POST",
16
+ url: "/v1/webhooks",
17
+ body: requestBody,
18
+ mediaType: "application/json"
19
+ });
20
+ }
21
+ listWebhooks({
22
+ pageSize = 10,
23
+ pageToken,
24
+ status
25
+ }) {
26
+ return this.httpRequest.request({
27
+ method: "GET",
28
+ url: "/v1/webhooks",
29
+ query: {
30
+ "pageSize": pageSize,
31
+ "pageToken": pageToken,
32
+ "status": status
33
+ }
34
+ });
35
+ }
36
+ deactivateWebhook({
37
+ id
38
+ }) {
39
+ return this.httpRequest.request({
40
+ method: "DELETE",
41
+ url: "/v1/webhooks/{id}",
42
+ path: {
43
+ "id": id
44
+ }
45
+ });
46
+ }
47
+ }
48
+
49
+ export { DefaultService };