@avalabs/glacier-sdk 2.8.0-alpha.13 → 2.8.0-alpha.130

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 (253) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3703 -3
  3. package/dist/index.js +1815 -155
  4. package/esm/generated/Glacier.d.ts +38 -0
  5. package/esm/generated/Glacier.js +62 -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 +15 -0
  19. package/esm/generated/models/ActiveValidatorDetails.d.ts +20 -0
  20. package/esm/generated/models/Asset.d.ts +28 -0
  21. package/esm/generated/models/Blockchain.d.ts +10 -0
  22. package/esm/generated/models/BlockchainId.d.ts +12 -0
  23. package/esm/generated/models/BlockchainId.js +13 -0
  24. package/esm/generated/models/BlockchainIds.d.ts +9 -0
  25. package/esm/generated/models/BlockchainIds.js +10 -0
  26. package/esm/generated/models/BlockchainInfo.d.ts +5 -0
  27. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  28. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  29. package/esm/generated/models/CChainExportTransaction.js +8 -0
  30. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  31. package/esm/generated/models/CChainImportTransaction.js +8 -0
  32. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  33. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  34. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  35. package/esm/generated/models/ChainInfo.d.ts +27 -0
  36. package/esm/generated/models/ChainStatus.d.ts +6 -0
  37. package/esm/generated/models/ChainStatus.js +7 -0
  38. package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
  39. package/esm/generated/models/CompletedValidatorDetails.d.ts +15 -0
  40. package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
  41. package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
  42. package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
  43. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
  44. package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
  45. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  46. package/esm/generated/models/CurrencyCode.js +19 -0
  47. package/esm/generated/models/DelegationStatusType.d.ts +7 -0
  48. package/esm/generated/models/DelegationStatusType.js +8 -0
  49. package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
  50. package/esm/generated/models/EVMInput.d.ts +19 -0
  51. package/esm/generated/models/EVMOutput.d.ts +14 -0
  52. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  53. package/esm/generated/models/Erc1155Contract.js +8 -0
  54. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  55. package/esm/generated/models/Erc1155Token.js +8 -0
  56. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  57. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  58. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  59. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  60. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  61. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  62. package/esm/generated/models/Erc20Contract.js +8 -0
  63. package/esm/generated/models/Erc20Token.d.ts +36 -0
  64. package/esm/generated/models/Erc20Token.js +8 -0
  65. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  66. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  67. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  68. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  69. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  70. package/esm/generated/models/Erc721Contract.js +8 -0
  71. package/esm/generated/models/Erc721Token.d.ts +31 -0
  72. package/esm/generated/models/Erc721Token.js +8 -0
  73. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  74. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  75. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  76. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  77. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  78. package/esm/generated/models/EvmBlock.d.ts +45 -0
  79. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  80. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  81. package/esm/generated/models/GetChainResponse.d.ts +27 -0
  82. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  83. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  84. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  85. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
  86. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  87. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  88. package/esm/generated/models/ImageAsset.d.ts +9 -0
  89. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  90. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  91. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  92. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  93. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  95. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  96. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  97. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  98. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  99. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  100. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  101. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  102. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  103. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  104. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  105. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  106. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  107. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  108. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  109. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  110. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  111. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  112. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  113. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  114. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  115. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  116. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  117. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  118. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  119. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
  120. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  121. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  122. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  123. package/esm/generated/models/Method.d.ts +18 -0
  124. package/esm/generated/models/Money.d.ts +14 -0
  125. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  126. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  127. package/esm/generated/models/Network.d.ts +6 -0
  128. package/esm/generated/models/Network.js +7 -0
  129. package/esm/generated/models/NetworkToken.d.ts +21 -0
  130. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  131. package/esm/generated/models/NetworkType.d.ts +6 -0
  132. package/esm/generated/models/NetworkType.js +7 -0
  133. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  134. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  135. package/esm/generated/models/OperationStatus.d.ts +8 -0
  136. package/esm/generated/models/OperationStatus.js +9 -0
  137. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  138. package/esm/generated/models/OperationStatusCode.js +8 -0
  139. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  140. package/esm/generated/models/OperationType.d.ts +6 -0
  141. package/esm/generated/models/OperationType.js +7 -0
  142. package/esm/generated/models/PChainAsset.d.ts +6 -0
  143. package/esm/generated/models/PChainBalance.d.ts +39 -0
  144. package/esm/generated/models/PChainId.d.ts +6 -0
  145. package/esm/generated/models/PChainId.js +7 -0
  146. package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
  147. package/esm/generated/models/PChainTransaction.d.ts +71 -0
  148. package/esm/generated/models/PChainTransactionType.d.ts +16 -0
  149. package/esm/generated/models/PChainTransactionType.js +17 -0
  150. package/esm/generated/models/PChainUtxo.d.ts +31 -0
  151. package/esm/generated/models/PendingDelegatorDetails.d.ts +15 -0
  152. package/esm/generated/models/PendingReward.d.ts +22 -0
  153. package/esm/generated/models/PendingValidatorDetails.d.ts +12 -0
  154. package/esm/generated/models/PricingProviders.d.ts +5 -0
  155. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  156. package/esm/generated/models/PrimaryNetwork.js +7 -0
  157. package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
  158. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  159. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  160. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  161. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  162. package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
  163. package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
  164. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  165. package/esm/generated/models/ResourceLink.d.ts +8 -0
  166. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  167. package/esm/generated/models/ResourceLinkType.js +23 -0
  168. package/esm/generated/models/RewardType.d.ts +6 -0
  169. package/esm/generated/models/RewardType.js +7 -0
  170. package/esm/generated/models/Rewards.d.ts +6 -0
  171. package/esm/generated/models/RichAddress.d.ts +24 -0
  172. package/esm/generated/models/SortOrder.d.ts +6 -0
  173. package/esm/generated/models/SortOrder.js +7 -0
  174. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  175. package/esm/generated/models/Subnet.d.ts +13 -0
  176. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  177. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  178. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  179. package/esm/generated/models/TransactionMethodType.js +8 -0
  180. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  181. package/esm/generated/models/TransactionStatus.js +7 -0
  182. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  183. package/esm/generated/models/UnknownContract.d.ts +31 -0
  184. package/esm/generated/models/UnknownContract.js +8 -0
  185. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  186. package/esm/generated/models/Utxo.d.ts +68 -0
  187. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  188. package/esm/generated/models/UtxoType.d.ts +6 -0
  189. package/esm/generated/models/UtxoType.js +7 -0
  190. package/esm/generated/models/ValidationStatusType.d.ts +7 -0
  191. package/esm/generated/models/ValidationStatusType.js +8 -0
  192. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  193. package/esm/generated/models/VmName.d.ts +7 -0
  194. package/esm/generated/models/VmName.js +8 -0
  195. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  196. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  197. package/esm/generated/models/XChainBalances.d.ts +17 -0
  198. package/esm/generated/models/XChainId.d.ts +7 -0
  199. package/esm/generated/models/XChainId.js +8 -0
  200. package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
  201. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  202. package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
  203. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  204. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  205. package/esm/generated/models/XChainVertex.d.ts +12 -0
  206. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  207. package/esm/generated/services/EvmBalancesService.js +116 -0
  208. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  209. package/esm/generated/services/EvmBlocksService.js +37 -0
  210. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  211. package/esm/generated/services/EvmChainsService.js +29 -0
  212. package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
  213. package/esm/generated/services/EvmTransactionsService.js +251 -0
  214. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  215. package/esm/generated/services/HealthCheckService.js +16 -0
  216. package/esm/generated/services/NfTsService.d.ts +69 -0
  217. package/esm/generated/services/NfTsService.js +50 -0
  218. package/esm/generated/services/OperationsService.d.ts +35 -0
  219. package/esm/generated/services/OperationsService.js +28 -0
  220. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  221. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  222. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  223. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  224. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
  225. package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
  226. package/esm/generated/services/PrimaryNetworkService.d.ts +221 -0
  227. package/esm/generated/services/PrimaryNetworkService.js +159 -0
  228. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  229. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  230. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  231. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  232. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  233. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  234. package/esm/index.d.ts +165 -0
  235. package/esm/index.js +61 -0
  236. package/package.json +11 -20
  237. package/CHANGELOG.md +0 -240
  238. package/__tests__/glacier-sdk.test.js +0 -7
  239. package/dist/index.d.ts.map +0 -1
  240. package/dist/index.js.map +0 -1
  241. package/dist/src/generated/models.d.ts +0 -385
  242. package/dist/src/generated/models.d.ts.map +0 -1
  243. package/dist/src/glacierClient.d.ts +0 -93
  244. package/dist/src/glacierClient.d.ts.map +0 -1
  245. package/dist/src/types.d.ts +0 -13
  246. package/dist/src/types.d.ts.map +0 -1
  247. package/index.ts +0 -2
  248. package/rollup.config.js +0 -33
  249. package/src/generated/models.ts +0 -460
  250. package/src/glacierClient.ts +0 -190
  251. package/src/types.ts +0 -6
  252. package/swagger/generateModels.js +0 -40
  253. package/tsconfig.json +0 -7
@@ -0,0 +1,13 @@
1
+ var BlockchainId = /* @__PURE__ */ ((BlockchainId2) => {
2
+ BlockchainId2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ BlockchainId2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
+ BlockchainId2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainId2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
+ BlockchainId2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
7
+ BlockchainId2["P_CHAIN"] = "p-chain";
8
+ BlockchainId2["X_CHAIN"] = "x-chain";
9
+ BlockchainId2["C_CHAIN"] = "c-chain";
10
+ return BlockchainId2;
11
+ })(BlockchainId || {});
12
+
13
+ export { BlockchainId };
@@ -0,0 +1,9 @@
1
+ declare enum BlockchainIds {
2
+ _11111111111111111111111111111111LPO_YY = "11111111111111111111111111111111LpoYY",
3
+ _2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM",
4
+ _2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm",
5
+ _2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5 = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5",
6
+ Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp"
7
+ }
8
+
9
+ export { BlockchainIds };
@@ -0,0 +1,10 @@
1
+ var BlockchainIds = /* @__PURE__ */ ((BlockchainIds2) => {
2
+ BlockchainIds2["_11111111111111111111111111111111LPO_YY"] = "11111111111111111111111111111111LpoYY";
3
+ BlockchainIds2["_2O_YMBNV4E_NHYQK2FJJ_V5N_VQLDBTM_NJZQ5S3QS3LO6FTN_C6FBY_M"] = "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM";
4
+ BlockchainIds2["_2JVSBOINJ9C2J33VNTVZ_YT_VJNZD_N2NKIWW_KJCUM_HUWEB5DB_BRM"] = "2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm";
5
+ BlockchainIds2["_2Q9E4R6MU3U68N_U1F_YJGB_R6JVWR_RX36COHP_AX5UQXSE55X1Q5"] = "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5";
6
+ BlockchainIds2["Y_H8D7TH_NJKXMTKUV2JG_BA4P1RN3QPR4P_PR7QYNFCDO_S6K6HWP"] = "yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp";
7
+ return BlockchainIds2;
8
+ })(BlockchainIds || {});
9
+
10
+ export { BlockchainIds };
@@ -0,0 +1,5 @@
1
+ type BlockchainInfo = {
2
+ blockchainId: string;
3
+ };
4
+
5
+ export { BlockchainInfo };
@@ -0,0 +1,8 @@
1
+ import { CChainSharedAssetBalance } from './CChainSharedAssetBalance.js';
2
+
3
+ type CChainAtomicBalances = {
4
+ atomicMemoryUnlocked: Array<CChainSharedAssetBalance>;
5
+ atomicMemoryLocked: Array<CChainSharedAssetBalance>;
6
+ };
7
+
8
+ export { CChainAtomicBalances };
@@ -0,0 +1,58 @@
1
+ import { Asset } from './Asset.js';
2
+ import { EVMInput } from './EVMInput.js';
3
+ import { Utxo } from './Utxo.js';
4
+
5
+ type CChainExportTransaction = {
6
+ /**
7
+ * Unique ID for this transaction.
8
+ */
9
+ txHash: string;
10
+ /**
11
+ * Height of the block this transaction belongs to.
12
+ */
13
+ blockHeight: number;
14
+ /**
15
+ * Hash of the block this transaction belongs to.
16
+ */
17
+ blockHash: string;
18
+ /**
19
+ * Latest timestamp in seconds this transaction was accepted.
20
+ */
21
+ timestamp: number;
22
+ /**
23
+ * Hex encoded memo bytes for this transaction.
24
+ */
25
+ memo: string;
26
+ /**
27
+ * Assets unlocked by inputs of this transaction.
28
+ */
29
+ amountUnlocked: Array<Asset>;
30
+ /**
31
+ * Assets created by outputs of this transaction.
32
+ */
33
+ amountCreated: Array<Asset>;
34
+ /**
35
+ * Source chain for an atomic transaction.
36
+ */
37
+ sourceChain: string;
38
+ /**
39
+ * Destination chain for an atomic transaction.
40
+ */
41
+ destinationChain: string;
42
+ /**
43
+ * Type of transaction.
44
+ */
45
+ txType: CChainExportTransaction.txType;
46
+ evmInputs: Array<EVMInput>;
47
+ emittedUtxos: Array<Utxo>;
48
+ };
49
+ declare namespace CChainExportTransaction {
50
+ /**
51
+ * Type of transaction.
52
+ */
53
+ enum txType {
54
+ EXPORT_TX = "ExportTx"
55
+ }
56
+ }
57
+
58
+ export { CChainExportTransaction };
@@ -0,0 +1,8 @@
1
+ var CChainExportTransaction;
2
+ ((CChainExportTransaction2) => {
3
+ ((txType2) => {
4
+ txType2["EXPORT_TX"] = "ExportTx";
5
+ })(CChainExportTransaction2.txType || (CChainExportTransaction2.txType = {}));
6
+ })(CChainExportTransaction || (CChainExportTransaction = {}));
7
+
8
+ export { CChainExportTransaction };
@@ -0,0 +1,58 @@
1
+ import { Asset } from './Asset.js';
2
+ import { EVMOutput } from './EVMOutput.js';
3
+ import { Utxo } from './Utxo.js';
4
+
5
+ type CChainImportTransaction = {
6
+ /**
7
+ * Unique ID for this transaction.
8
+ */
9
+ txHash: string;
10
+ /**
11
+ * Height of the block this transaction belongs to.
12
+ */
13
+ blockHeight: number;
14
+ /**
15
+ * Hash of the block this transaction belongs to.
16
+ */
17
+ blockHash: string;
18
+ /**
19
+ * Latest timestamp in seconds this transaction was accepted.
20
+ */
21
+ timestamp: number;
22
+ /**
23
+ * Hex encoded memo bytes for this transaction.
24
+ */
25
+ memo: string;
26
+ /**
27
+ * Assets unlocked by inputs of this transaction.
28
+ */
29
+ amountUnlocked: Array<Asset>;
30
+ /**
31
+ * Assets created by outputs of this transaction.
32
+ */
33
+ amountCreated: Array<Asset>;
34
+ /**
35
+ * Source chain for an atomic transaction.
36
+ */
37
+ sourceChain: string;
38
+ /**
39
+ * Destination chain for an atomic transaction.
40
+ */
41
+ destinationChain: string;
42
+ /**
43
+ * Type of transaction.
44
+ */
45
+ txType: CChainImportTransaction.txType;
46
+ evmOutputs: Array<EVMOutput>;
47
+ consumedUtxos: Array<Utxo>;
48
+ };
49
+ declare namespace CChainImportTransaction {
50
+ /**
51
+ * Type of transaction.
52
+ */
53
+ enum txType {
54
+ IMPORT_TX = "ImportTx"
55
+ }
56
+ }
57
+
58
+ export { CChainImportTransaction };
@@ -0,0 +1,8 @@
1
+ var CChainImportTransaction;
2
+ ((CChainImportTransaction2) => {
3
+ ((txType2) => {
4
+ txType2["IMPORT_TX"] = "ImportTx";
5
+ })(CChainImportTransaction2.txType || (CChainImportTransaction2.txType = {}));
6
+ })(CChainImportTransaction || (CChainImportTransaction = {}));
7
+
8
+ export { CChainImportTransaction };
@@ -0,0 +1,30 @@
1
+ type CChainSharedAssetBalance = {
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 { CChainSharedAssetBalance };
@@ -0,0 +1,8 @@
1
+ import { BlockchainIds } from './BlockchainIds.js';
2
+
3
+ type ChainAddressChainIdMap = {
4
+ address: string;
5
+ blockchainIds: Array<BlockchainIds>;
6
+ };
7
+
8
+ export { ChainAddressChainIdMap };
@@ -0,0 +1,7 @@
1
+ import { ChainAddressChainIdMap } from './ChainAddressChainIdMap.js';
2
+
3
+ type ChainAddressChainIdMapListResponse = {
4
+ addresses: Array<ChainAddressChainIdMap>;
5
+ };
6
+
7
+ export { ChainAddressChainIdMapListResponse };
@@ -0,0 +1,27 @@
1
+ import { ChainStatus } from './ChainStatus.js';
2
+ import { NetworkToken } from './NetworkToken.js';
3
+ import { UtilityAddresses } from './UtilityAddresses.js';
4
+ import { VmName } from './VmName.js';
5
+
6
+ type ChainInfo = {
7
+ chainId: string;
8
+ /**
9
+ * Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
10
+ */
11
+ status: ChainStatus;
12
+ chainName: string;
13
+ description: string;
14
+ platformChainId?: string;
15
+ subnetId?: string;
16
+ vmId?: string;
17
+ vmName: VmName;
18
+ explorerUrl?: string;
19
+ rpcUrl: string;
20
+ wsUrl?: string;
21
+ isTestnet: boolean;
22
+ utilityAddresses?: UtilityAddresses;
23
+ networkToken: NetworkToken;
24
+ chainLogoUri?: string;
25
+ };
26
+
27
+ export { ChainInfo };
@@ -0,0 +1,6 @@
1
+ declare enum ChainStatus {
2
+ OK = "OK",
3
+ UNAVAILABLE = "UNAVAILABLE"
4
+ }
5
+
6
+ export { ChainStatus };
@@ -0,0 +1,7 @@
1
+ var ChainStatus = /* @__PURE__ */ ((ChainStatus2) => {
2
+ ChainStatus2["OK"] = "OK";
3
+ ChainStatus2["UNAVAILABLE"] = "UNAVAILABLE";
4
+ return ChainStatus2;
5
+ })(ChainStatus || {});
6
+
7
+ export { ChainStatus };
@@ -0,0 +1,15 @@
1
+ import { DelegationStatusType } from './DelegationStatusType.js';
2
+
3
+ type CompletedDelegatorDetails = {
4
+ txHash: string;
5
+ rewardAddresses: Array<string>;
6
+ amountDelegated: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ delegationStatus: DelegationStatusType;
11
+ grossReward: string;
12
+ netReward: string;
13
+ };
14
+
15
+ export { CompletedDelegatorDetails };
@@ -0,0 +1,15 @@
1
+ import { Rewards } from './Rewards.js';
2
+ import { ValidationStatusType } from './ValidationStatusType.js';
3
+
4
+ type CompletedValidatorDetails = {
5
+ nodeId: string;
6
+ amountStaked: string;
7
+ delegationFee: string;
8
+ startTimestamp: number;
9
+ endTimestamp: number;
10
+ validationStatus: ValidationStatusType;
11
+ delegatorCount: number;
12
+ rewards: Rewards;
13
+ };
14
+
15
+ export { CompletedValidatorDetails };
@@ -0,0 +1,13 @@
1
+ type ContractDeploymentDetails = {
2
+ txHash: string;
3
+ /**
4
+ * The address that initiated the transaction which deployed this contract.
5
+ */
6
+ deployerAddress: string;
7
+ /**
8
+ * The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
9
+ */
10
+ deployerContractAddress?: string;
11
+ };
12
+
13
+ export { ContractDeploymentDetails };
@@ -0,0 +1,23 @@
1
+ import { EvmNetworkOptions } from './EvmNetworkOptions.js';
2
+
3
+ type CreateEvmTransactionExportRequest = {
4
+ type: CreateEvmTransactionExportRequest.type;
5
+ firstDate: string;
6
+ lastDate: string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ startDate: string;
11
+ /**
12
+ * @deprecated
13
+ */
14
+ endDate: string;
15
+ options: EvmNetworkOptions;
16
+ };
17
+ declare namespace CreateEvmTransactionExportRequest {
18
+ enum type {
19
+ TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
20
+ }
21
+ }
22
+
23
+ export { CreateEvmTransactionExportRequest };
@@ -0,0 +1,8 @@
1
+ var CreateEvmTransactionExportRequest;
2
+ ((CreateEvmTransactionExportRequest2) => {
3
+ ((type2) => {
4
+ type2["TRANSACTION_EXPORT_EVM"] = "TRANSACTION_EXPORT_EVM";
5
+ })(CreateEvmTransactionExportRequest2.type || (CreateEvmTransactionExportRequest2.type = {}));
6
+ })(CreateEvmTransactionExportRequest || (CreateEvmTransactionExportRequest = {}));
7
+
8
+ export { CreateEvmTransactionExportRequest };
@@ -0,0 +1,23 @@
1
+ import { PrimaryNetworkOptions } from './PrimaryNetworkOptions.js';
2
+
3
+ type CreatePrimaryNetworkTransactionExportRequest = {
4
+ type: CreatePrimaryNetworkTransactionExportRequest.type;
5
+ firstDate: string;
6
+ lastDate: string;
7
+ /**
8
+ * @deprecated
9
+ */
10
+ startDate: string;
11
+ /**
12
+ * @deprecated
13
+ */
14
+ endDate: string;
15
+ options: PrimaryNetworkOptions;
16
+ };
17
+ declare namespace CreatePrimaryNetworkTransactionExportRequest {
18
+ enum type {
19
+ TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
20
+ }
21
+ }
22
+
23
+ export { CreatePrimaryNetworkTransactionExportRequest };
@@ -0,0 +1,8 @@
1
+ var CreatePrimaryNetworkTransactionExportRequest;
2
+ ((CreatePrimaryNetworkTransactionExportRequest2) => {
3
+ ((type2) => {
4
+ type2["TRANSACTION_EXPORT_PRIMARY_NETWORK"] = "TRANSACTION_EXPORT_PRIMARY_NETWORK";
5
+ })(CreatePrimaryNetworkTransactionExportRequest2.type || (CreatePrimaryNetworkTransactionExportRequest2.type = {}));
6
+ })(CreatePrimaryNetworkTransactionExportRequest || (CreatePrimaryNetworkTransactionExportRequest = {}));
7
+
8
+ export { CreatePrimaryNetworkTransactionExportRequest };
@@ -0,0 +1,18 @@
1
+ declare enum CurrencyCode {
2
+ USD = "usd",
3
+ EUR = "eur",
4
+ AUD = "aud",
5
+ CAD = "cad",
6
+ CHF = "chf",
7
+ CLP = "clp",
8
+ CNY = "cny",
9
+ CZK = "czk",
10
+ DKK = "dkk",
11
+ GBP = "gbp",
12
+ HKD = "hkd",
13
+ HUF = "huf",
14
+ JPY = "jpy",
15
+ NZD = "nzd"
16
+ }
17
+
18
+ export { CurrencyCode };
@@ -0,0 +1,19 @@
1
+ var CurrencyCode = /* @__PURE__ */ ((CurrencyCode2) => {
2
+ CurrencyCode2["USD"] = "usd";
3
+ CurrencyCode2["EUR"] = "eur";
4
+ CurrencyCode2["AUD"] = "aud";
5
+ CurrencyCode2["CAD"] = "cad";
6
+ CurrencyCode2["CHF"] = "chf";
7
+ CurrencyCode2["CLP"] = "clp";
8
+ CurrencyCode2["CNY"] = "cny";
9
+ CurrencyCode2["CZK"] = "czk";
10
+ CurrencyCode2["DKK"] = "dkk";
11
+ CurrencyCode2["GBP"] = "gbp";
12
+ CurrencyCode2["HKD"] = "hkd";
13
+ CurrencyCode2["HUF"] = "huf";
14
+ CurrencyCode2["JPY"] = "jpy";
15
+ CurrencyCode2["NZD"] = "nzd";
16
+ return CurrencyCode2;
17
+ })(CurrencyCode || {});
18
+
19
+ export { CurrencyCode };
@@ -0,0 +1,7 @@
1
+ declare enum DelegationStatusType {
2
+ COMPLETED = "completed",
3
+ ACTIVE = "active",
4
+ PENDING = "pending"
5
+ }
6
+
7
+ export { DelegationStatusType };
@@ -0,0 +1,8 @@
1
+ var DelegationStatusType = /* @__PURE__ */ ((DelegationStatusType2) => {
2
+ DelegationStatusType2["COMPLETED"] = "completed";
3
+ DelegationStatusType2["ACTIVE"] = "active";
4
+ DelegationStatusType2["PENDING"] = "pending";
5
+ return DelegationStatusType2;
6
+ })(DelegationStatusType || {});
7
+
8
+ export { DelegationStatusType };
@@ -0,0 +1,6 @@
1
+ type DelegatorsDetails = {
2
+ delegatorCount: number;
3
+ totalAmountStaked: string;
4
+ };
5
+
6
+ export { DelegatorsDetails };
@@ -0,0 +1,19 @@
1
+ import { Asset } from './Asset.js';
2
+ import { UtxoCredential } from './UtxoCredential.js';
3
+
4
+ type EVMInput = {
5
+ /**
6
+ * EVM address from which the asset is exported in ExportTx.
7
+ */
8
+ fromAddress: string;
9
+ /**
10
+ * Asset details for the asset being transferred.
11
+ */
12
+ asset: Asset;
13
+ /**
14
+ * Credentials that signed this transaction.
15
+ */
16
+ credentials: Array<UtxoCredential>;
17
+ };
18
+
19
+ export { EVMInput };
@@ -0,0 +1,14 @@
1
+ import { Asset } from './Asset.js';
2
+
3
+ type EVMOutput = {
4
+ /**
5
+ * EVM address to which the asset is imported in ImportTx
6
+ */
7
+ toAddress: string;
8
+ /**
9
+ * Asset details for the asset being transferred.
10
+ */
11
+ asset: Asset;
12
+ };
13
+
14
+ export { EVMOutput };
@@ -0,0 +1,37 @@
1
+ import { ContractDeploymentDetails } from './ContractDeploymentDetails.js';
2
+ import { ImageAsset } from './ImageAsset.js';
3
+ import { PricingProviders } from './PricingProviders.js';
4
+ import { ResourceLink } from './ResourceLink.js';
5
+
6
+ type Erc1155Contract = {
7
+ /**
8
+ * The contract name.
9
+ */
10
+ name?: string;
11
+ description?: string;
12
+ officialSite?: string;
13
+ email?: string;
14
+ logoAsset?: ImageAsset;
15
+ bannerAsset?: ImageAsset;
16
+ color?: string;
17
+ resourceLinks?: Array<ResourceLink>;
18
+ tags?: Array<string>;
19
+ /**
20
+ * A wallet or contract address in mixed-case checksum encoding.
21
+ */
22
+ address: string;
23
+ deploymentDetails: ContractDeploymentDetails;
24
+ ercType: Erc1155Contract.ercType;
25
+ /**
26
+ * The contract symbol.
27
+ */
28
+ symbol?: string;
29
+ pricingProviders?: PricingProviders;
30
+ };
31
+ declare namespace Erc1155Contract {
32
+ enum ercType {
33
+ ERC_1155 = "ERC-1155"
34
+ }
35
+ }
36
+
37
+ export { Erc1155Contract };
@@ -0,0 +1,8 @@
1
+ var Erc1155Contract;
2
+ ((Erc1155Contract2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(Erc1155Contract2.ercType || (Erc1155Contract2.ercType = {}));
6
+ })(Erc1155Contract || (Erc1155Contract = {}));
7
+
8
+ export { Erc1155Contract };
@@ -0,0 +1,19 @@
1
+ import { Erc1155TokenMetadata } from './Erc1155TokenMetadata.js';
2
+
3
+ type Erc1155Token = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ ercType: Erc1155Token.ercType;
9
+ tokenId: string;
10
+ tokenUri: string;
11
+ metadata: Erc1155TokenMetadata;
12
+ };
13
+ declare namespace Erc1155Token {
14
+ enum ercType {
15
+ ERC_1155 = "ERC-1155"
16
+ }
17
+ }
18
+
19
+ export { Erc1155Token };
@@ -0,0 +1,8 @@
1
+ var Erc1155Token;
2
+ ((Erc1155Token2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(Erc1155Token2.ercType || (Erc1155Token2.ercType = {}));
6
+ })(Erc1155Token || (Erc1155Token = {}));
7
+
8
+ export { Erc1155Token };
@@ -0,0 +1,27 @@
1
+ import { Erc1155TokenMetadata } from './Erc1155TokenMetadata.js';
2
+
3
+ type Erc1155TokenBalance = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ ercType: Erc1155TokenBalance.ercType;
9
+ tokenId: string;
10
+ tokenUri: string;
11
+ metadata: Erc1155TokenMetadata;
12
+ /**
13
+ * The evm chain id.
14
+ */
15
+ chainId: string;
16
+ /**
17
+ * The address balance for the token, in units specified by the `decimals` value for the contract.
18
+ */
19
+ balance: string;
20
+ };
21
+ declare namespace Erc1155TokenBalance {
22
+ enum ercType {
23
+ ERC_1155 = "ERC-1155"
24
+ }
25
+ }
26
+
27
+ export { Erc1155TokenBalance };
@@ -0,0 +1,8 @@
1
+ var Erc1155TokenBalance;
2
+ ((Erc1155TokenBalance2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_1155"] = "ERC-1155";
5
+ })(Erc1155TokenBalance2.ercType || (Erc1155TokenBalance2.ercType = {}));
6
+ })(Erc1155TokenBalance || (Erc1155TokenBalance = {}));
7
+
8
+ export { Erc1155TokenBalance };
@@ -0,0 +1,20 @@
1
+ import { NftTokenMetadataStatus } from './NftTokenMetadataStatus.js';
2
+
3
+ type Erc1155TokenMetadata = {
4
+ /**
5
+ * The metadata indexing status of the nft.
6
+ */
7
+ indexStatus: NftTokenMetadataStatus;
8
+ metadataLastUpdatedTimestamp?: number;
9
+ name?: string;
10
+ symbol?: string;
11
+ imageUri?: string;
12
+ description?: string;
13
+ animationUri?: string;
14
+ externalUrl?: string;
15
+ background?: string;
16
+ decimals?: number;
17
+ properties?: string;
18
+ };
19
+
20
+ export { Erc1155TokenMetadata };