@avalabs/glacier-sdk 2.8.0-alpha.16 → 2.8.0-alpha.160

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 (303) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +4363 -3
  3. package/dist/index.js +2119 -155
  4. package/esm/generated/Glacier.d.ts +44 -0
  5. package/esm/generated/Glacier.js +71 -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 +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/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
  65. package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
  66. package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
  67. package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
  68. package/esm/generated/models/EVMInput.d.ts +19 -0
  69. package/esm/generated/models/EVMOutput.d.ts +14 -0
  70. package/esm/generated/models/Erc1155Contract.d.ts +37 -0
  71. package/esm/generated/models/Erc1155Contract.js +8 -0
  72. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  73. package/esm/generated/models/Erc1155Token.js +8 -0
  74. package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
  75. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  76. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  77. package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
  78. package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
  79. package/esm/generated/models/Erc20Contract.d.ts +41 -0
  80. package/esm/generated/models/Erc20Contract.js +8 -0
  81. package/esm/generated/models/Erc20Token.d.ts +36 -0
  82. package/esm/generated/models/Erc20Token.js +8 -0
  83. package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
  84. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  85. package/esm/generated/models/Erc20Transfer.d.ts +28 -0
  86. package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
  87. package/esm/generated/models/Erc721Contract.d.ts +35 -0
  88. package/esm/generated/models/Erc721Contract.js +8 -0
  89. package/esm/generated/models/Erc721Token.d.ts +31 -0
  90. package/esm/generated/models/Erc721Token.js +8 -0
  91. package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
  92. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  93. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  94. package/esm/generated/models/Erc721Transfer.d.ts +27 -0
  95. package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
  96. package/esm/generated/models/EventType.d.ts +5 -0
  97. package/esm/generated/models/EventType.js +6 -0
  98. package/esm/generated/models/EvmBlock.d.ts +45 -0
  99. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  100. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  101. package/esm/generated/models/GetChainResponse.d.ts +28 -0
  102. package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
  103. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  104. package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
  105. package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +16 -0
  106. package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
  107. package/esm/generated/models/HistoricalReward.d.ts +24 -0
  108. package/esm/generated/models/ImageAsset.d.ts +9 -0
  109. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  110. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  111. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  112. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  113. package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
  114. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
  115. package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
  116. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  117. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
  118. package/esm/generated/models/ListContractsResponse.d.ts +14 -0
  119. package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
  120. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  121. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  122. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  123. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  124. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  125. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  126. package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
  127. package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
  128. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  129. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  130. package/esm/generated/models/ListNftTokens.d.ts +12 -0
  131. package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
  132. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
  133. package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
  134. package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
  135. package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
  136. package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
  137. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  138. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  139. package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
  140. package/esm/generated/models/ListValidatorDetailsResponse.d.ts +17 -0
  141. package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
  142. package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
  143. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
  144. package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
  145. package/esm/generated/models/Method.d.ts +18 -0
  146. package/esm/generated/models/Money.d.ts +14 -0
  147. package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
  148. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  149. package/esm/generated/models/Network.d.ts +6 -0
  150. package/esm/generated/models/Network.js +7 -0
  151. package/esm/generated/models/NetworkToken.d.ts +21 -0
  152. package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
  153. package/esm/generated/models/NetworkType.d.ts +6 -0
  154. package/esm/generated/models/NetworkType.js +7 -0
  155. package/esm/generated/models/NextPageToken.d.ts +8 -0
  156. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  157. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  158. package/esm/generated/models/OperationStatus.d.ts +8 -0
  159. package/esm/generated/models/OperationStatus.js +9 -0
  160. package/esm/generated/models/OperationStatusCode.d.ts +7 -0
  161. package/esm/generated/models/OperationStatusCode.js +8 -0
  162. package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
  163. package/esm/generated/models/OperationType.d.ts +6 -0
  164. package/esm/generated/models/OperationType.js +7 -0
  165. package/esm/generated/models/PChainBalance.d.ts +39 -0
  166. package/esm/generated/models/PChainId.d.ts +6 -0
  167. package/esm/generated/models/PChainId.js +7 -0
  168. package/esm/generated/models/PChainSharedAsset.d.ts +30 -0
  169. package/esm/generated/models/PChainTransaction.d.ts +72 -0
  170. package/esm/generated/models/PChainTransactionType.d.ts +18 -0
  171. package/esm/generated/models/PChainTransactionType.js +19 -0
  172. package/esm/generated/models/PChainUtxo.d.ts +51 -0
  173. package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
  174. package/esm/generated/models/PendingDelegatorDetails.js +8 -0
  175. package/esm/generated/models/PendingReward.d.ts +22 -0
  176. package/esm/generated/models/PendingTeleporterMessage.d.ts +24 -0
  177. package/esm/generated/models/PendingTeleporterMessage.js +8 -0
  178. package/esm/generated/models/PendingValidatorDetails.d.ts +17 -0
  179. package/esm/generated/models/PendingValidatorDetails.js +8 -0
  180. package/esm/generated/models/PricingProviders.d.ts +5 -0
  181. package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
  182. package/esm/generated/models/PrimaryNetwork.js +7 -0
  183. package/esm/generated/models/PrimaryNetworkBlock.d.ts +16 -0
  184. package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
  185. package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
  186. package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
  187. package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
  188. package/esm/generated/models/PrimaryNetworkTxType.d.ts +21 -0
  189. package/esm/generated/models/PrimaryNetworkTxType.js +22 -0
  190. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  191. package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -0
  192. package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
  193. package/esm/generated/models/RemovedValidatorDetails.js +8 -0
  194. package/esm/generated/models/ResourceLink.d.ts +8 -0
  195. package/esm/generated/models/ResourceLinkType.d.ts +22 -0
  196. package/esm/generated/models/ResourceLinkType.js +23 -0
  197. package/esm/generated/models/RewardType.d.ts +7 -0
  198. package/esm/generated/models/RewardType.js +8 -0
  199. package/esm/generated/models/Rewards.d.ts +8 -0
  200. package/esm/generated/models/RichAddress.d.ts +24 -0
  201. package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
  202. package/esm/generated/models/SortOrder.d.ts +6 -0
  203. package/esm/generated/models/SortOrder.js +7 -0
  204. package/esm/generated/models/StakingDistribution.d.ts +7 -0
  205. package/esm/generated/models/Subnet.d.ts +13 -0
  206. package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
  207. package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
  208. package/esm/generated/models/TeleporterRewardDetails.js +8 -0
  209. package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
  210. package/esm/generated/models/TransactionDetails.d.ts +30 -0
  211. package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
  212. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  213. package/esm/generated/models/TransactionMethodType.js +8 -0
  214. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  215. package/esm/generated/models/TransactionStatus.js +7 -0
  216. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  217. package/esm/generated/models/UnknownContract.d.ts +31 -0
  218. package/esm/generated/models/UnknownContract.js +8 -0
  219. package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
  220. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  221. package/esm/generated/models/Utxo.d.ts +68 -0
  222. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  223. package/esm/generated/models/UtxoType.d.ts +6 -0
  224. package/esm/generated/models/UtxoType.js +7 -0
  225. package/esm/generated/models/ValidationStatusType.d.ts +8 -0
  226. package/esm/generated/models/ValidationStatusType.js +9 -0
  227. package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
  228. package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
  229. package/esm/generated/models/VmName.d.ts +7 -0
  230. package/esm/generated/models/VmName.js +8 -0
  231. package/esm/generated/models/WebhookResponse.d.ts +15 -0
  232. package/esm/generated/models/WebhookStatus.d.ts +6 -0
  233. package/esm/generated/models/WebhookStatus.js +7 -0
  234. package/esm/generated/models/WebhookStatusType.d.ts +6 -0
  235. package/esm/generated/models/WebhookStatusType.js +7 -0
  236. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  237. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  238. package/esm/generated/models/XChainBalances.d.ts +17 -0
  239. package/esm/generated/models/XChainId.d.ts +7 -0
  240. package/esm/generated/models/XChainId.js +8 -0
  241. package/esm/generated/models/XChainLinearTransaction.d.ts +68 -0
  242. package/esm/generated/models/XChainLinearTransaction.js +9 -0
  243. package/esm/generated/models/XChainNonLinearTransaction.d.ts +65 -0
  244. package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
  245. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  246. package/esm/generated/models/XChainTransactionType.d.ts +10 -0
  247. package/esm/generated/models/XChainTransactionType.js +11 -0
  248. package/esm/generated/models/XChainVertex.d.ts +12 -0
  249. package/esm/generated/services/DefaultService.d.ts +67 -0
  250. package/esm/generated/services/DefaultService.js +55 -0
  251. package/esm/generated/services/EvmBalancesService.d.ts +177 -0
  252. package/esm/generated/services/EvmBalancesService.js +116 -0
  253. package/esm/generated/services/EvmBlocksService.d.ts +47 -0
  254. package/esm/generated/services/EvmBlocksService.js +37 -0
  255. package/esm/generated/services/EvmChainsService.d.ts +36 -0
  256. package/esm/generated/services/EvmChainsService.js +29 -0
  257. package/esm/generated/services/EvmContractsService.d.ts +48 -0
  258. package/esm/generated/services/EvmContractsService.js +36 -0
  259. package/esm/generated/services/EvmTransactionsService.d.ts +353 -0
  260. package/esm/generated/services/EvmTransactionsService.js +251 -0
  261. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  262. package/esm/generated/services/HealthCheckService.js +16 -0
  263. package/esm/generated/services/NfTsService.d.ts +76 -0
  264. package/esm/generated/services/NfTsService.js +56 -0
  265. package/esm/generated/services/OperationsService.d.ts +35 -0
  266. package/esm/generated/services/OperationsService.js +28 -0
  267. package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
  268. package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
  269. package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
  270. package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
  271. package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +77 -0
  272. package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
  273. package/esm/generated/services/PrimaryNetworkService.d.ts +245 -0
  274. package/esm/generated/services/PrimaryNetworkService.js +171 -0
  275. package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
  276. package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
  277. package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
  278. package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
  279. package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
  280. package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
  281. package/esm/generated/services/TeleporterService.d.ts +65 -0
  282. package/esm/generated/services/TeleporterService.js +43 -0
  283. package/esm/index.d.ts +192 -0
  284. package/esm/index.js +83 -0
  285. package/package.json +11 -20
  286. package/.eslintrc.js +0 -3
  287. package/CHANGELOG.md +0 -256
  288. package/__tests__/glacier-sdk.test.js +0 -7
  289. package/dist/index.d.ts.map +0 -1
  290. package/dist/index.js.map +0 -1
  291. package/dist/src/generated/models.d.ts +0 -385
  292. package/dist/src/generated/models.d.ts.map +0 -1
  293. package/dist/src/glacierClient.d.ts +0 -93
  294. package/dist/src/glacierClient.d.ts.map +0 -1
  295. package/dist/src/types.d.ts +0 -13
  296. package/dist/src/types.d.ts.map +0 -1
  297. package/index.ts +0 -2
  298. package/rollup.config.js +0 -33
  299. package/src/generated/models.ts +0 -460
  300. package/src/glacierClient.ts +0 -190
  301. package/src/types.ts +0 -6
  302. package/swagger/generateModels.js +0 -40
  303. package/tsconfig.json +0 -7
@@ -0,0 +1,37 @@
1
+ import { Money } from './Money.js';
2
+
3
+ type TeleporterRewardDetails = {
4
+ /**
5
+ * A wallet or contract address in mixed-case checksum encoding.
6
+ */
7
+ address: string;
8
+ /**
9
+ * The contract name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The contract symbol.
14
+ */
15
+ symbol: string;
16
+ /**
17
+ * The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
18
+ */
19
+ decimals: number;
20
+ /**
21
+ * The logo uri for the address.
22
+ */
23
+ logoUri?: string;
24
+ ercType: TeleporterRewardDetails.ercType;
25
+ /**
26
+ * The token price, if available.
27
+ */
28
+ price?: Money;
29
+ value: string;
30
+ };
31
+ declare namespace TeleporterRewardDetails {
32
+ enum ercType {
33
+ ERC_20 = "ERC-20"
34
+ }
35
+ }
36
+
37
+ export { TeleporterRewardDetails };
@@ -0,0 +1,8 @@
1
+ var TeleporterRewardDetails;
2
+ ((TeleporterRewardDetails2) => {
3
+ ((ercType2) => {
4
+ ercType2["ERC_20"] = "ERC-20";
5
+ })(TeleporterRewardDetails2.ercType || (TeleporterRewardDetails2.ercType = {}));
6
+ })(TeleporterRewardDetails || (TeleporterRewardDetails = {}));
7
+
8
+ export { TeleporterRewardDetails };
@@ -0,0 +1,7 @@
1
+ type TeleporterSourceTransaction = {
2
+ txHash: string;
3
+ timestamp: number;
4
+ gasSpent: string;
5
+ };
6
+
7
+ export { TeleporterSourceTransaction };
@@ -0,0 +1,30 @@
1
+ import { Erc1155TransferDetails } from './Erc1155TransferDetails.js';
2
+ import { Erc20TransferDetails } from './Erc20TransferDetails.js';
3
+ import { Erc721TransferDetails } from './Erc721TransferDetails.js';
4
+ import { InternalTransactionDetails } from './InternalTransactionDetails.js';
5
+ import { NativeTransaction } from './NativeTransaction.js';
6
+
7
+ type TransactionDetails = {
8
+ /**
9
+ * The native (top-level) transaction details.
10
+ */
11
+ nativeTransaction: NativeTransaction;
12
+ /**
13
+ * The list of ERC-20 transfers.
14
+ */
15
+ erc20Transfers?: Array<Erc20TransferDetails>;
16
+ /**
17
+ * The list of ERC-721 transfers.
18
+ */
19
+ erc721Transfers?: Array<Erc721TransferDetails>;
20
+ /**
21
+ * The list of ERC-1155 transfers.
22
+ */
23
+ erc1155Transfers?: Array<Erc1155TransferDetails>;
24
+ /**
25
+ * The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
26
+ */
27
+ internalTransactions?: Array<InternalTransactionDetails>;
28
+ };
29
+
30
+ export { TransactionDetails };
@@ -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,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 };