@aptos-labs/js-pro 0.1.0-experimental.50 → 0.1.0

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 (466) hide show
  1. package/CHANGELOG.md +134 -0
  2. package/LICENSE +201 -0
  3. package/README.md +6 -42
  4. package/dist/client.d.ts +136 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/constants/endpoints.d.ts +0 -2
  7. package/dist/constants/endpoints.d.ts.map +1 -1
  8. package/dist/errors/base.d.ts.map +1 -1
  9. package/dist/errors/clients.d.ts +10 -0
  10. package/dist/errors/clients.d.ts.map +1 -0
  11. package/dist/errors/index.d.ts +3 -2
  12. package/dist/errors/index.d.ts.map +1 -1
  13. package/dist/errors/transactions.d.ts +6 -0
  14. package/dist/errors/transactions.d.ts.map +1 -0
  15. package/dist/index.d.ts +7 -8
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +180 -145
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +414 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/mutations/buildTransaction.d.ts +12 -0
  22. package/dist/mutations/buildTransaction.d.ts.map +1 -0
  23. package/dist/mutations/index.d.ts +6 -9
  24. package/dist/mutations/index.d.ts.map +1 -1
  25. package/dist/mutations/signAndSubmitTransaction.d.ts +13 -0
  26. package/dist/mutations/signAndSubmitTransaction.d.ts.map +1 -0
  27. package/dist/mutations/signTransaction.d.ts +16 -0
  28. package/dist/mutations/signTransaction.d.ts.map +1 -0
  29. package/dist/mutations/simulateTransaction.d.ts +10 -0
  30. package/dist/mutations/simulateTransaction.d.ts.map +1 -0
  31. package/dist/mutations/submitTransaction.d.ts +11 -0
  32. package/dist/mutations/submitTransaction.d.ts.map +1 -0
  33. package/dist/mutations/waitForTransaction.d.ts +9 -0
  34. package/dist/mutations/waitForTransaction.d.ts.map +1 -0
  35. package/dist/operations/generated/operations.d.ts +403 -89
  36. package/dist/operations/generated/operations.d.ts.map +1 -1
  37. package/dist/operations/generated/sdk.d.ts +50 -45
  38. package/dist/operations/generated/sdk.d.ts.map +1 -1
  39. package/dist/operations/generated/types.d.ts +402 -8
  40. package/dist/operations/generated/types.d.ts.map +1 -1
  41. package/dist/operations/index.d.ts +21 -22
  42. package/dist/operations/index.d.ts.map +1 -1
  43. package/dist/operations/scalars.d.ts +6 -0
  44. package/dist/operations/scalars.d.ts.map +1 -1
  45. package/dist/queries/fetchAccountCoins.d.ts +25 -0
  46. package/dist/queries/fetchAccountCoins.d.ts.map +1 -0
  47. package/dist/queries/fetchAccountCollections.d.ts +25 -0
  48. package/dist/queries/fetchAccountCollections.d.ts.map +1 -0
  49. package/dist/queries/fetchAccountTokens.d.ts +29 -0
  50. package/dist/queries/fetchAccountTokens.d.ts.map +1 -0
  51. package/dist/queries/fetchAccountTransactions.d.ts +41 -0
  52. package/dist/queries/fetchAccountTransactions.d.ts.map +1 -0
  53. package/dist/queries/fetchAddressFromName.d.ts +13 -0
  54. package/dist/queries/fetchAddressFromName.d.ts.map +1 -0
  55. package/dist/queries/fetchAptBalance.d.ts +12 -0
  56. package/dist/queries/fetchAptBalance.d.ts.map +1 -0
  57. package/dist/queries/fetchBalance.d.ts +16 -0
  58. package/dist/queries/fetchBalance.d.ts.map +1 -0
  59. package/dist/queries/fetchEstimatedGasPrice.d.ts +10 -0
  60. package/dist/queries/fetchEstimatedGasPrice.d.ts.map +1 -0
  61. package/dist/queries/fetchEvents.d.ts +7 -0
  62. package/dist/queries/fetchEvents.d.ts.map +1 -0
  63. package/dist/queries/fetchFungibleAssetMetadata.d.ts +9 -0
  64. package/dist/queries/fetchFungibleAssetMetadata.d.ts.map +1 -0
  65. package/dist/queries/fetchLedgerInfo.d.ts +17 -0
  66. package/dist/queries/fetchLedgerInfo.d.ts.map +1 -0
  67. package/dist/queries/fetchNameFromAddress.d.ts +13 -0
  68. package/dist/queries/fetchNameFromAddress.d.ts.map +1 -0
  69. package/dist/queries/fetchProcessorStatus.d.ts +12 -0
  70. package/dist/queries/fetchProcessorStatus.d.ts.map +1 -0
  71. package/dist/queries/fetchResourceType.d.ts +34 -0
  72. package/dist/queries/fetchResourceType.d.ts.map +1 -0
  73. package/dist/queries/fetchResources.d.ts +7 -0
  74. package/dist/queries/fetchResources.d.ts.map +1 -0
  75. package/dist/queries/fetchTokenData.d.ts +12 -0
  76. package/dist/queries/fetchTokenData.d.ts.map +1 -0
  77. package/dist/queries/fetchTransaction.d.ts +11 -0
  78. package/dist/queries/fetchTransaction.d.ts.map +1 -0
  79. package/dist/queries/fetchUserTransactions.d.ts +14 -0
  80. package/dist/queries/fetchUserTransactions.d.ts.map +1 -0
  81. package/dist/queries/fetchViewModule.d.ts +7 -0
  82. package/dist/queries/fetchViewModule.d.ts.map +1 -0
  83. package/dist/queries/getClients.d.ts +15 -0
  84. package/dist/queries/getClients.d.ts.map +1 -0
  85. package/dist/queries/index.d.ts +20 -29
  86. package/dist/queries/index.d.ts.map +1 -1
  87. package/dist/types/accounts.d.ts +3 -5
  88. package/dist/types/accounts.d.ts.map +1 -1
  89. package/dist/types/activities.d.ts +45 -0
  90. package/dist/types/activities.d.ts.map +1 -0
  91. package/dist/types/build.d.ts +12 -0
  92. package/dist/types/build.d.ts.map +1 -0
  93. package/dist/types/{coins.d.ts → fungibleAssets.d.ts} +3 -4
  94. package/dist/types/fungibleAssets.d.ts.map +1 -0
  95. package/dist/types/index.d.ts +8 -13
  96. package/dist/types/index.d.ts.map +1 -1
  97. package/dist/types/networks.d.ts +9 -13
  98. package/dist/types/networks.d.ts.map +1 -1
  99. package/dist/types/parameters.d.ts +8 -0
  100. package/dist/types/parameters.d.ts.map +1 -0
  101. package/dist/types/parsers.d.ts +33 -0
  102. package/dist/types/parsers.d.ts.map +1 -0
  103. package/dist/types/resources.d.ts +51 -0
  104. package/dist/types/resources.d.ts.map +1 -0
  105. package/dist/types/signers.d.ts +44 -0
  106. package/dist/types/signers.d.ts.map +1 -0
  107. package/dist/types/tokens.d.ts +19 -54
  108. package/dist/types/tokens.d.ts.map +1 -1
  109. package/dist/types/transactions.d.ts +22 -66
  110. package/dist/types/transactions.d.ts.map +1 -1
  111. package/dist/utils/convert.d.ts +2 -2
  112. package/dist/utils/convert.d.ts.map +1 -1
  113. package/dist/utils/explorer.d.ts +7 -0
  114. package/dist/utils/explorer.d.ts.map +1 -0
  115. package/dist/utils/{fungibleAsset.d.ts → fungibleAssets.d.ts} +1 -1
  116. package/dist/utils/fungibleAssets.d.ts.map +1 -0
  117. package/dist/utils/index.d.ts +7 -19
  118. package/dist/utils/index.d.ts.map +1 -1
  119. package/dist/utils/lib.d.ts +7 -0
  120. package/dist/utils/lib.d.ts.map +1 -0
  121. package/dist/utils/normalize.d.ts +28 -0
  122. package/dist/utils/normalize.d.ts.map +1 -0
  123. package/dist/utils/{object.d.ts → objects.d.ts} +2 -2
  124. package/dist/utils/objects.d.ts.map +1 -0
  125. package/dist/utils/pagination.d.ts +14 -0
  126. package/dist/utils/pagination.d.ts.map +1 -1
  127. package/dist/utils/tokens.d.ts +0 -5
  128. package/dist/utils/tokens.d.ts.map +1 -1
  129. package/dist/utils/transactions/TransactionParser.d.ts +57 -0
  130. package/dist/utils/transactions/TransactionParser.d.ts.map +1 -0
  131. package/dist/utils/transactions/index.d.ts +7 -0
  132. package/dist/utils/transactions/index.d.ts.map +1 -0
  133. package/dist/utils/transactions/parsers/CoinEventParser.d.ts +28 -0
  134. package/dist/utils/transactions/parsers/CoinEventParser.d.ts.map +1 -0
  135. package/dist/utils/transactions/parsers/CoinStoreWritesetParser.d.ts +24 -0
  136. package/dist/utils/transactions/parsers/CoinStoreWritesetParser.d.ts.map +1 -0
  137. package/dist/utils/transactions/parsers/FungibleAssetEventParser.d.ts +22 -0
  138. package/dist/utils/transactions/parsers/FungibleAssetEventParser.d.ts.map +1 -0
  139. package/dist/utils/transactions/parsers/FungibleAssetStoreWritesetParser.d.ts +18 -0
  140. package/dist/utils/transactions/parsers/FungibleAssetStoreWritesetParser.d.ts.map +1 -0
  141. package/dist/utils/transactions/parsers/ObjectOwnersWritesetParser.d.ts +14 -0
  142. package/dist/utils/transactions/parsers/ObjectOwnersWritesetParser.d.ts.map +1 -0
  143. package/dist/utils/transactions/shared.d.ts +15 -0
  144. package/dist/utils/transactions/shared.d.ts.map +1 -0
  145. package/dist/utils/units.d.ts.map +1 -1
  146. package/package.json +48 -45
  147. package/src/client.ts +344 -0
  148. package/src/constants/endpoints.ts +3 -0
  149. package/src/errors/base.ts +23 -0
  150. package/src/errors/clients.ts +26 -0
  151. package/src/errors/index.ts +6 -0
  152. package/src/errors/transactions.ts +12 -0
  153. package/src/index.ts +10 -0
  154. package/src/mutations/buildTransaction.ts +80 -0
  155. package/src/mutations/index.ts +9 -0
  156. package/src/mutations/signAndSubmitTransaction.ts +56 -0
  157. package/src/mutations/signTransaction.ts +36 -0
  158. package/src/mutations/simulateTransaction.ts +43 -0
  159. package/src/mutations/submitTransaction.ts +56 -0
  160. package/src/mutations/waitForTransaction.ts +34 -0
  161. package/src/operations/generated/operations.ts +165 -0
  162. package/src/operations/generated/sdk.ts +505 -0
  163. package/src/operations/generated/types.ts +11226 -0
  164. package/src/operations/index.ts +17 -0
  165. package/src/operations/scalars.ts +18 -0
  166. package/src/operations/schemas/account.gql +408 -0
  167. package/src/operations/schemas/staking.gql +53 -0
  168. package/src/queries/fetchAccountCoins.ts +90 -0
  169. package/src/queries/fetchAccountCollections.ts +90 -0
  170. package/src/queries/fetchAccountTokens.ts +106 -0
  171. package/src/queries/fetchAccountTransactions.ts +104 -0
  172. package/src/queries/fetchAddressFromName.ts +31 -0
  173. package/src/queries/fetchAptBalance.ts +29 -0
  174. package/src/queries/fetchBalance.ts +40 -0
  175. package/src/queries/fetchEstimatedGasPrice.ts +28 -0
  176. package/src/queries/fetchEvents.ts +23 -0
  177. package/src/queries/fetchFungibleAssetMetadata.ts +35 -0
  178. package/src/queries/fetchLedgerInfo.ts +41 -0
  179. package/src/queries/fetchNameFromAddress.ts +31 -0
  180. package/src/queries/fetchProcessorStatus.ts +29 -0
  181. package/src/queries/fetchResourceType.ts +81 -0
  182. package/src/queries/fetchResources.ts +27 -0
  183. package/src/queries/fetchTokenData.ts +43 -0
  184. package/src/queries/fetchTransaction.ts +34 -0
  185. package/src/queries/fetchUserTransactions.ts +57 -0
  186. package/src/queries/fetchViewModule.ts +23 -0
  187. package/src/queries/getClients.ts +38 -0
  188. package/src/queries/index.ts +23 -0
  189. package/src/types/accounts.ts +9 -0
  190. package/src/types/activities.ts +51 -0
  191. package/src/types/build.ts +17 -0
  192. package/src/types/fungibleAssets.ts +31 -0
  193. package/src/types/index.ts +11 -0
  194. package/src/types/networks.ts +21 -0
  195. package/src/types/parameters.ts +11 -0
  196. package/src/types/parsers.ts +90 -0
  197. package/src/types/resources.ts +34 -0
  198. package/src/types/signers.ts +65 -0
  199. package/src/types/tokens.ts +48 -0
  200. package/src/types/transactions.ts +33 -0
  201. package/src/utils/convert.ts +32 -0
  202. package/src/utils/explorer.ts +18 -0
  203. package/src/utils/fungibleAssets.ts +32 -0
  204. package/src/utils/index.ts +10 -0
  205. package/src/utils/lib.ts +34 -0
  206. package/src/utils/names.ts +51 -0
  207. package/src/utils/normalize.ts +274 -0
  208. package/src/utils/objects.ts +35 -0
  209. package/src/utils/pagination.ts +93 -0
  210. package/src/utils/tokens.ts +13 -0
  211. package/src/utils/transactions/TransactionParser.ts +172 -0
  212. package/src/utils/transactions/index.ts +8 -0
  213. package/src/utils/transactions/parsers/CoinEventParser.ts +94 -0
  214. package/src/utils/transactions/parsers/CoinStoreWritesetParser.ts +62 -0
  215. package/src/utils/transactions/parsers/FungibleAssetEventParser.ts +76 -0
  216. package/src/utils/transactions/parsers/FungibleAssetStoreWritesetParser.ts +38 -0
  217. package/src/utils/transactions/parsers/ObjectOwnersWritesetParser.ts +30 -0
  218. package/src/utils/transactions/shared.ts +36 -0
  219. package/src/utils/units.ts +86 -0
  220. package/dist/client/client.d.ts +0 -196
  221. package/dist/client/client.d.ts.map +0 -1
  222. package/dist/client/index.d.ts +0 -2
  223. package/dist/client/index.d.ts.map +0 -1
  224. package/dist/constants/coins.d.ts +0 -32
  225. package/dist/constants/coins.d.ts.map +0 -1
  226. package/dist/constants/contracts.d.ts +0 -10
  227. package/dist/constants/contracts.d.ts.map +0 -1
  228. package/dist/constants/fragments.d.ts +0 -3
  229. package/dist/constants/fragments.d.ts.map +0 -1
  230. package/dist/constants/index.d.ts +0 -12
  231. package/dist/constants/index.d.ts.map +0 -1
  232. package/dist/constants/lists/devnetList.d.ts +0 -4
  233. package/dist/constants/lists/devnetList.d.ts.map +0 -1
  234. package/dist/constants/lists/mainnetList.d.ts +0 -4
  235. package/dist/constants/lists/mainnetList.d.ts.map +0 -1
  236. package/dist/constants/lists/testnetList.d.ts +0 -4
  237. package/dist/constants/lists/testnetList.d.ts.map +0 -1
  238. package/dist/constants/metadata.d.ts +0 -2
  239. package/dist/constants/metadata.d.ts.map +0 -1
  240. package/dist/constants/networks.d.ts +0 -64
  241. package/dist/constants/networks.d.ts.map +0 -1
  242. package/dist/constants/numbers.d.ts +0 -5
  243. package/dist/constants/numbers.d.ts.map +0 -1
  244. package/dist/constants/time.d.ts +0 -11
  245. package/dist/constants/time.d.ts.map +0 -1
  246. package/dist/constants/units.d.ts +0 -4
  247. package/dist/constants/units.d.ts.map +0 -1
  248. package/dist/errors/common.d.ts +0 -50
  249. package/dist/errors/common.d.ts.map +0 -1
  250. package/dist/index.cjs +0 -379
  251. package/dist/index.cjs.map +0 -1
  252. package/dist/mutations/buildTransaction/buildTransaction.d.ts +0 -19
  253. package/dist/mutations/buildTransaction/buildTransaction.d.ts.map +0 -1
  254. package/dist/mutations/buildTransaction/index.d.ts +0 -2
  255. package/dist/mutations/buildTransaction/index.d.ts.map +0 -1
  256. package/dist/mutations/fundAccount/fundAccount.d.ts +0 -9
  257. package/dist/mutations/fundAccount/fundAccount.d.ts.map +0 -1
  258. package/dist/mutations/fundAccount/index.d.ts +0 -2
  259. package/dist/mutations/fundAccount/index.d.ts.map +0 -1
  260. package/dist/mutations/signAndSubmitRawTransaction/index.d.ts +0 -2
  261. package/dist/mutations/signAndSubmitRawTransaction/index.d.ts.map +0 -1
  262. package/dist/mutations/signAndSubmitRawTransaction/signAndSubmitRawTransaction.d.ts +0 -17
  263. package/dist/mutations/signAndSubmitRawTransaction/signAndSubmitRawTransaction.d.ts.map +0 -1
  264. package/dist/mutations/signAndSubmitTransaction/index.d.ts +0 -2
  265. package/dist/mutations/signAndSubmitTransaction/index.d.ts.map +0 -1
  266. package/dist/mutations/signAndSubmitTransaction/signAndSubmitTransaction.d.ts +0 -18
  267. package/dist/mutations/signAndSubmitTransaction/signAndSubmitTransaction.d.ts.map +0 -1
  268. package/dist/mutations/signBuffer/index.d.ts +0 -2
  269. package/dist/mutations/signBuffer/index.d.ts.map +0 -1
  270. package/dist/mutations/signBuffer/signBuffer.d.ts +0 -16
  271. package/dist/mutations/signBuffer/signBuffer.d.ts.map +0 -1
  272. package/dist/mutations/signMessage/index.d.ts +0 -2
  273. package/dist/mutations/signMessage/index.d.ts.map +0 -1
  274. package/dist/mutations/signMessage/signMessage.d.ts +0 -15
  275. package/dist/mutations/signMessage/signMessage.d.ts.map +0 -1
  276. package/dist/mutations/signTransaction/index.d.ts +0 -2
  277. package/dist/mutations/signTransaction/index.d.ts.map +0 -1
  278. package/dist/mutations/signTransaction/signTransaction.d.ts +0 -17
  279. package/dist/mutations/signTransaction/signTransaction.d.ts.map +0 -1
  280. package/dist/mutations/simulateTransaction/index.d.ts +0 -2
  281. package/dist/mutations/simulateTransaction/index.d.ts.map +0 -1
  282. package/dist/mutations/simulateTransaction/simulateTransaction.d.ts +0 -10
  283. package/dist/mutations/simulateTransaction/simulateTransaction.d.ts.map +0 -1
  284. package/dist/mutations/submitTransaction/index.d.ts +0 -2
  285. package/dist/mutations/submitTransaction/index.d.ts.map +0 -1
  286. package/dist/mutations/submitTransaction/submitTransaction.d.ts +0 -15
  287. package/dist/mutations/submitTransaction/submitTransaction.d.ts.map +0 -1
  288. package/dist/queries/fetchAccountActivities/fetchAccountActivities.d.ts +0 -13
  289. package/dist/queries/fetchAccountActivities/fetchAccountActivities.d.ts.map +0 -1
  290. package/dist/queries/fetchAccountActivities/index.d.ts +0 -2
  291. package/dist/queries/fetchAccountActivities/index.d.ts.map +0 -1
  292. package/dist/queries/fetchAccountActivities/mockData.d.ts +0 -140
  293. package/dist/queries/fetchAccountActivities/mockData.d.ts.map +0 -1
  294. package/dist/queries/fetchAccountCoins/fetchAccountCoins.d.ts +0 -16
  295. package/dist/queries/fetchAccountCoins/fetchAccountCoins.d.ts.map +0 -1
  296. package/dist/queries/fetchAccountCoins/index.d.ts +0 -2
  297. package/dist/queries/fetchAccountCoins/index.d.ts.map +0 -1
  298. package/dist/queries/fetchAccountCollections/fetchAccountCollections.d.ts +0 -14
  299. package/dist/queries/fetchAccountCollections/fetchAccountCollections.d.ts.map +0 -1
  300. package/dist/queries/fetchAccountCollections/index.d.ts +0 -2
  301. package/dist/queries/fetchAccountCollections/index.d.ts.map +0 -1
  302. package/dist/queries/fetchAccountTokens/fetchAccountTokens.d.ts +0 -17
  303. package/dist/queries/fetchAccountTokens/fetchAccountTokens.d.ts.map +0 -1
  304. package/dist/queries/fetchAccountTokens/index.d.ts +0 -2
  305. package/dist/queries/fetchAccountTokens/index.d.ts.map +0 -1
  306. package/dist/queries/fetchAccountTotalTokens/fetchAccountTotalTokens.d.ts +0 -7
  307. package/dist/queries/fetchAccountTotalTokens/fetchAccountTotalTokens.d.ts.map +0 -1
  308. package/dist/queries/fetchAccountTotalTokens/index.d.ts +0 -2
  309. package/dist/queries/fetchAccountTotalTokens/index.d.ts.map +0 -1
  310. package/dist/queries/fetchAccountTransactions/fetchAccountTransactions.d.ts +0 -13
  311. package/dist/queries/fetchAccountTransactions/fetchAccountTransactions.d.ts.map +0 -1
  312. package/dist/queries/fetchAccountTransactions/index.d.ts +0 -2
  313. package/dist/queries/fetchAccountTransactions/index.d.ts.map +0 -1
  314. package/dist/queries/fetchAccountTransactions/mockData.d.ts +0 -10
  315. package/dist/queries/fetchAccountTransactions/mockData.d.ts.map +0 -1
  316. package/dist/queries/fetchAddressFromName/fetchAddressFromName.d.ts +0 -26
  317. package/dist/queries/fetchAddressFromName/fetchAddressFromName.d.ts.map +0 -1
  318. package/dist/queries/fetchAddressFromName/index.d.ts +0 -2
  319. package/dist/queries/fetchAddressFromName/index.d.ts.map +0 -1
  320. package/dist/queries/fetchAptBalance/fetchAptBalance.d.ts +0 -6
  321. package/dist/queries/fetchAptBalance/fetchAptBalance.d.ts.map +0 -1
  322. package/dist/queries/fetchAptBalance/index.d.ts +0 -2
  323. package/dist/queries/fetchAptBalance/index.d.ts.map +0 -1
  324. package/dist/queries/fetchCoinInfo/fetchCoinInfo.d.ts +0 -11
  325. package/dist/queries/fetchCoinInfo/fetchCoinInfo.d.ts.map +0 -1
  326. package/dist/queries/fetchCoinInfo/index.d.ts +0 -2
  327. package/dist/queries/fetchCoinInfo/index.d.ts.map +0 -1
  328. package/dist/queries/fetchEvents/fetchEvents.d.ts +0 -9
  329. package/dist/queries/fetchEvents/fetchEvents.d.ts.map +0 -1
  330. package/dist/queries/fetchEvents/index.d.ts +0 -2
  331. package/dist/queries/fetchEvents/index.d.ts.map +0 -1
  332. package/dist/queries/fetchFaucetStatus/fetchFaucetStatus.d.ts +0 -10
  333. package/dist/queries/fetchFaucetStatus/fetchFaucetStatus.d.ts.map +0 -1
  334. package/dist/queries/fetchFaucetStatus/index.d.ts +0 -2
  335. package/dist/queries/fetchFaucetStatus/index.d.ts.map +0 -1
  336. package/dist/queries/fetchFungibleAssetMetadata/fetchFungibleAssetMetadata.d.ts +0 -9
  337. package/dist/queries/fetchFungibleAssetMetadata/fetchFungibleAssetMetadata.d.ts.map +0 -1
  338. package/dist/queries/fetchFungibleAssetMetadata/index.d.ts +0 -2
  339. package/dist/queries/fetchFungibleAssetMetadata/index.d.ts.map +0 -1
  340. package/dist/queries/fetchGasPrice/fetchGasPrice.d.ts +0 -7
  341. package/dist/queries/fetchGasPrice/fetchGasPrice.d.ts.map +0 -1
  342. package/dist/queries/fetchGasPrice/index.d.ts +0 -2
  343. package/dist/queries/fetchGasPrice/index.d.ts.map +0 -1
  344. package/dist/queries/fetchIndexedTokenData/fetchIndexedTokenData.d.ts +0 -17
  345. package/dist/queries/fetchIndexedTokenData/fetchIndexedTokenData.d.ts.map +0 -1
  346. package/dist/queries/fetchIndexedTokenData/index.d.ts +0 -2
  347. package/dist/queries/fetchIndexedTokenData/index.d.ts.map +0 -1
  348. package/dist/queries/fetchIndexerProcessorAvailability/fetchIndexerProcessorAvailability.d.ts +0 -17
  349. package/dist/queries/fetchIndexerProcessorAvailability/fetchIndexerProcessorAvailability.d.ts.map +0 -1
  350. package/dist/queries/fetchIndexerProcessorAvailability/index.d.ts +0 -2
  351. package/dist/queries/fetchIndexerProcessorAvailability/index.d.ts.map +0 -1
  352. package/dist/queries/fetchIsValidMetadata/fetchIsValidMetadata.d.ts +0 -9
  353. package/dist/queries/fetchIsValidMetadata/fetchIsValidMetadata.d.ts.map +0 -1
  354. package/dist/queries/fetchIsValidMetadata/index.d.ts +0 -2
  355. package/dist/queries/fetchIsValidMetadata/index.d.ts.map +0 -1
  356. package/dist/queries/fetchNodeStatus/fetchNodeStatus.d.ts +0 -11
  357. package/dist/queries/fetchNodeStatus/fetchNodeStatus.d.ts.map +0 -1
  358. package/dist/queries/fetchNodeStatus/index.d.ts +0 -2
  359. package/dist/queries/fetchNodeStatus/index.d.ts.map +0 -1
  360. package/dist/queries/fetchOwnedDigitalAssets/fetchOwnedDigitalAssets.d.ts +0 -74
  361. package/dist/queries/fetchOwnedDigitalAssets/fetchOwnedDigitalAssets.d.ts.map +0 -1
  362. package/dist/queries/fetchOwnedDigitalAssets/index.d.ts +0 -2
  363. package/dist/queries/fetchOwnedDigitalAssets/index.d.ts.map +0 -1
  364. package/dist/queries/fetchResources/fetchResources.d.ts +0 -21
  365. package/dist/queries/fetchResources/fetchResources.d.ts.map +0 -1
  366. package/dist/queries/fetchResources/index.d.ts +0 -2
  367. package/dist/queries/fetchResources/index.d.ts.map +0 -1
  368. package/dist/queries/fetchTokenAcquiredDate/fetchTokenAcquiredDate.d.ts +0 -12
  369. package/dist/queries/fetchTokenAcquiredDate/fetchTokenAcquiredDate.d.ts.map +0 -1
  370. package/dist/queries/fetchTokenAcquiredDate/index.d.ts +0 -2
  371. package/dist/queries/fetchTokenAcquiredDate/index.d.ts.map +0 -1
  372. package/dist/queries/fetchTokenActivities/fetchTokenActivities.d.ts +0 -17
  373. package/dist/queries/fetchTokenActivities/fetchTokenActivities.d.ts.map +0 -1
  374. package/dist/queries/fetchTokenActivities/index.d.ts +0 -2
  375. package/dist/queries/fetchTokenActivities/index.d.ts.map +0 -1
  376. package/dist/queries/fetchTokenActivities/mockData.d.ts +0 -30
  377. package/dist/queries/fetchTokenActivities/mockData.d.ts.map +0 -1
  378. package/dist/queries/fetchTokenDataWithAddress/fetchTokenDataWithAddress.d.ts +0 -18
  379. package/dist/queries/fetchTokenDataWithAddress/fetchTokenDataWithAddress.d.ts.map +0 -1
  380. package/dist/queries/fetchTokenDataWithAddress/index.d.ts +0 -2
  381. package/dist/queries/fetchTokenDataWithAddress/index.d.ts.map +0 -1
  382. package/dist/queries/fetchTokenMetadata/fetchTokenMetadata.d.ts +0 -9
  383. package/dist/queries/fetchTokenMetadata/fetchTokenMetadata.d.ts.map +0 -1
  384. package/dist/queries/fetchTokenMetadata/index.d.ts +0 -2
  385. package/dist/queries/fetchTokenMetadata/index.d.ts.map +0 -1
  386. package/dist/queries/fetchTopPriceChanges/fetchTopPriceChanges.d.ts +0 -15
  387. package/dist/queries/fetchTopPriceChanges/fetchTopPriceChanges.d.ts.map +0 -1
  388. package/dist/queries/fetchTopPriceChanges/index.d.ts +0 -2
  389. package/dist/queries/fetchTopPriceChanges/index.d.ts.map +0 -1
  390. package/dist/queries/fetchTransaction/fetchTransaction.d.ts +0 -10
  391. package/dist/queries/fetchTransaction/fetchTransaction.d.ts.map +0 -1
  392. package/dist/queries/fetchTransaction/index.d.ts +0 -2
  393. package/dist/queries/fetchTransaction/index.d.ts.map +0 -1
  394. package/dist/queries/fetchWaitForTransaction/fetchWaitForTransaction.d.ts +0 -11
  395. package/dist/queries/fetchWaitForTransaction/fetchWaitForTransaction.d.ts.map +0 -1
  396. package/dist/queries/fetchWaitForTransaction/index.d.ts +0 -2
  397. package/dist/queries/fetchWaitForTransaction/index.d.ts.map +0 -1
  398. package/dist/queries/getClients/getClients.d.ts +0 -18
  399. package/dist/queries/getClients/getClients.d.ts.map +0 -1
  400. package/dist/queries/getClients/index.d.ts +0 -2
  401. package/dist/queries/getClients/index.d.ts.map +0 -1
  402. package/dist/queries/getCoinList/getCoinList.d.ts +0 -17
  403. package/dist/queries/getCoinList/getCoinList.d.ts.map +0 -1
  404. package/dist/queries/getCoinList/index.d.ts +0 -2
  405. package/dist/queries/getCoinList/index.d.ts.map +0 -1
  406. package/dist/queries/getExplorerUrl/getExplorerUrl.d.ts +0 -7
  407. package/dist/queries/getExplorerUrl/getExplorerUrl.d.ts.map +0 -1
  408. package/dist/queries/getExplorerUrl/index.d.ts +0 -2
  409. package/dist/queries/getExplorerUrl/index.d.ts.map +0 -1
  410. package/dist/types/activity.d.ts +0 -171
  411. package/dist/types/activity.d.ts.map +0 -1
  412. package/dist/types/coins.d.ts.map +0 -1
  413. package/dist/types/event.d.ts +0 -55
  414. package/dist/types/event.d.ts.map +0 -1
  415. package/dist/types/resource.d.ts +0 -222
  416. package/dist/types/resource.d.ts.map +0 -1
  417. package/dist/types/serialization.d.ts +0 -19
  418. package/dist/types/serialization.d.ts.map +0 -1
  419. package/dist/types/signer.d.ts +0 -34
  420. package/dist/types/signer.d.ts.map +0 -1
  421. package/dist/types/staking.d.ts +0 -48
  422. package/dist/types/staking.d.ts.map +0 -1
  423. package/dist/types/swaps.d.ts +0 -49
  424. package/dist/types/swaps.d.ts.map +0 -1
  425. package/dist/types/tokenMetadata.d.ts +0 -47
  426. package/dist/types/tokenMetadata.d.ts.map +0 -1
  427. package/dist/utils/accounts.d.ts +0 -4
  428. package/dist/utils/accounts.d.ts.map +0 -1
  429. package/dist/utils/activity/index.d.ts +0 -2
  430. package/dist/utils/activity/index.d.ts.map +0 -1
  431. package/dist/utils/activity/transform.d.ts +0 -26
  432. package/dist/utils/activity/transform.d.ts.map +0 -1
  433. package/dist/utils/apt.d.ts +0 -5
  434. package/dist/utils/apt.d.ts.map +0 -1
  435. package/dist/utils/cache.d.ts +0 -2
  436. package/dist/utils/cache.d.ts.map +0 -1
  437. package/dist/utils/dates.d.ts +0 -2
  438. package/dist/utils/dates.d.ts.map +0 -1
  439. package/dist/utils/fungibleAsset.d.ts.map +0 -1
  440. package/dist/utils/ipfs.d.ts +0 -98
  441. package/dist/utils/ipfs.d.ts.map +0 -1
  442. package/dist/utils/move/abort.d.ts +0 -84
  443. package/dist/utils/move/abort.d.ts.map +0 -1
  444. package/dist/utils/move/error.d.ts +0 -50
  445. package/dist/utils/move/error.d.ts.map +0 -1
  446. package/dist/utils/move/index.d.ts +0 -4
  447. package/dist/utils/move/index.d.ts.map +0 -1
  448. package/dist/utils/move/status.d.ts +0 -12
  449. package/dist/utils/move/status.d.ts.map +0 -1
  450. package/dist/utils/numbers.d.ts +0 -19
  451. package/dist/utils/numbers.d.ts.map +0 -1
  452. package/dist/utils/object.d.ts.map +0 -1
  453. package/dist/utils/parsers.d.ts +0 -20
  454. package/dist/utils/parsers.d.ts.map +0 -1
  455. package/dist/utils/payloads/buildCoinTransferPayload.d.ts +0 -8
  456. package/dist/utils/payloads/buildCoinTransferPayload.d.ts.map +0 -1
  457. package/dist/utils/payloads/buildFungibleAssetTransferPayload.d.ts +0 -8
  458. package/dist/utils/payloads/buildFungibleAssetTransferPayload.d.ts.map +0 -1
  459. package/dist/utils/payloads/buildNaturalCoinTransferPayload.d.ts +0 -11
  460. package/dist/utils/payloads/buildNaturalCoinTransferPayload.d.ts.map +0 -1
  461. package/dist/utils/payloads/index.d.ts +0 -4
  462. package/dist/utils/payloads/index.d.ts.map +0 -1
  463. package/dist/utils/resource.d.ts +0 -49
  464. package/dist/utils/resource.d.ts.map +0 -1
  465. package/dist/utils/transactions/utils.d.ts +0 -14
  466. package/dist/utils/transactions/utils.d.ts.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,134 @@
1
+ # @aptos-labs/js-pro
2
+
3
+ ## 0.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 3ab379b: Fix `useAddressFromName` and `useNameFromAddress` resolving to `undefined` instead of `null`
8
+ - 47c56ba: Add default empty objects to js-pro queries
9
+ - b6c39c8: Allow network specific API keys
10
+ - ff32dd0: Fix missing query keys for useSimulateTransaction
11
+ - 7ebca81: Fix explorer url to accept pathname
12
+ - 1335293: Add README.md
13
+ - ad3bbe0: Export TransactionParser
14
+ - 4fb9cb5: Default queries/mutations to use empty object if possible
15
+ - f57c51a: `useAccountTransactions` will now provide the entryFunction
16
+ - e0374e3: Fix `convertWalletADapterNetworkToNetworkInfo` to use latest URLs for localnet if not provided
17
+ - bcfa4c8: ANS resolution hooks now accept `undefined` `address` or `name`
18
+ - 1b533f3: Add sender to useSimulateTransaction and added more resource types
19
+ - a370ae3: Add TransactionParser to parse UserTransactionResponse's for balance changes
20
+ - 64f547a: Export TransactionParser default
21
+ - 66f17ec: Update dependencies
22
+ - bec94ce: Change default values for queries from undefined to null
23
+ - 66f17ec: Move connectors to separate entry point
24
+ - 364ad41: Add `useEvents` hook
25
+ - e457314: Add new AdapterSignerClient
26
+ - fd5339d: Add paginated fetchUserTransactions query and allow useClients to specify network
27
+ - a6503db: Fix useClients to allow empty objects
28
+
29
+ ## 0.1.0-beta.18
30
+
31
+ ### Patch Changes
32
+
33
+ - 1335293: Add README.md
34
+
35
+ ## 0.1.0-beta.17
36
+
37
+ ### Patch Changes
38
+
39
+ - 66f17ec: Update dependencies
40
+ - 66f17ec: Move connectors to separate entry point
41
+
42
+ ## 0.1.0-beta.16
43
+
44
+ ### Patch Changes
45
+
46
+ - 47c56ba: Add default empty objects to js-pro queries
47
+
48
+ ## 0.1.0-beta.15
49
+
50
+ ### Patch Changes
51
+
52
+ - 64f547a: Export TransactionParser default
53
+
54
+ ## 0.1.0-beta.14
55
+
56
+ ### Patch Changes
57
+
58
+ - ad3bbe0: Export TransactionParser
59
+
60
+ ## 0.1.0-beta.13
61
+
62
+ ### Patch Changes
63
+
64
+ - a370ae3: Add TransactionParser to parse UserTransactionResponse's for balance changes
65
+
66
+ ## 0.1.0-beta.12
67
+
68
+ ### Patch Changes
69
+
70
+ - bec94ce: Change default values for queries from undefined to null
71
+
72
+ ## 0.1.0-beta.11
73
+
74
+ ### Patch Changes
75
+
76
+ - a6503db: Fix useClients to allow empty objects
77
+
78
+ ## 0.1.0-beta.10
79
+
80
+ ### Patch Changes
81
+
82
+ - fd5339d: Add paginated fetchUserTransactions query and allow useClients to specify network
83
+
84
+ ## 0.1.0-beta.9
85
+
86
+ ### Patch Changes
87
+
88
+ - e457314: Add new AdapterSignerClient
89
+
90
+ ## 0.1.0-beta.8
91
+
92
+ ### Patch Changes
93
+
94
+ - 3ab379b: Fix `useAddressFromName` and `useNameFromAddress` resolving to `undefined` instead of `null`
95
+ - b6c39c8: Allow network specific API keys
96
+
97
+ ## 0.1.0-beta.7
98
+
99
+ ### Patch Changes
100
+
101
+ - bcfa4c8: ANS resolution hooks now accept `undefined` `address` or `name`
102
+
103
+ ## 0.1.0-beta.6
104
+
105
+ ### Patch Changes
106
+
107
+ - ff32dd0: Fix missing query keys for useSimulateTransaction
108
+
109
+ ## 0.1.0-beta.5
110
+
111
+ ### Patch Changes
112
+
113
+ - 1b533f3: Add sender to useSimulateTransaction and added more resource types
114
+
115
+ ## 0.1.0-beta.4
116
+
117
+ ### Patch Changes
118
+
119
+ - 7ebca81: Fix explorer url to accept pathname
120
+ - 364ad41: Add `useEvents` hook
121
+
122
+ ## 0.1.0-beta.3
123
+
124
+ ### Patch Changes
125
+
126
+ - f57c51a: `useAccountTransactions` will now provide the entryFunction
127
+
128
+ ## 0.1.0-beta.2
129
+
130
+ ## 0.1.0-beta.1
131
+
132
+ ### Patch Changes
133
+
134
+ - 4fb9cb5: Default queries/mutations to use empty object if possible
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Licensed under the Apache License, Version 2.0 (the "License");
190
+ you may not use this file except in compliance with the License.
191
+ You may obtain a copy of the License at
192
+
193
+ http://www.apache.org/licenses/LICENSE-2.0
194
+
195
+ Copyright 2023 Aptos Foundation
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,49 +1,13 @@
1
- # Aptos JS Pro
1
+ # Aptos JS-Pro
2
2
 
3
- Aptos JS Pro is a framework agnostic library of queries and mutations related to the Aptos ecosystem.
3
+ A library of opinionated utilities built on top of the `@aptos-labs/ts-sdk`. This library is focused on an opinionated tools based off of internal usecases derived from Aptos Labs products such as Petra and Aptos Connect.
4
4
 
5
- # Getting Started
6
-
7
- 1. Install the package
8
-
9
- ```bash
10
- pnpm add @aptos-labs/js-pro
11
- ```
12
-
13
- 2. Initialize the AptosJSPro client
14
-
15
- ```ts
16
- const core = new AptosJSProClient({ account, network, signer });
17
- ```
18
-
19
- 3. You now have access to all of the queries and mutations in the library!
20
-
21
- ```ts
22
- const address = await core.fetchAddressFromName({ name: 'kent.apt' });
23
-
24
- const signedTxn = await core.signTransaction({ rawTxn });
25
- ```
26
-
27
- # Maintainers
28
-
29
- In order to see changes reflected in apps locally, the package needs to be built and bundled. To do this, run the following command from the project:
5
+ ## Installation
30
6
 
31
7
  ```bash
32
- pnpm build
8
+ pnpm install @aptos-labs/ts-sdk @aptos-labs/js-pro
33
9
  ```
34
10
 
35
- This will build the package and place it in the `dist` folder. The package builds to CommonJS and ESM.
36
-
37
- ## Utilities
38
-
39
- Aptos core provides the client alongside the signer, network, and account. If you need access to clients such as the indexer client, or AptosClient, you can use the `getClients()` utility.
40
-
41
- ```ts
42
- // Access AptosClient via `provider.aptosClient`
43
- const { provider, indexerClient } = core.getClients();
44
-
45
- // Access to: core.account, core.network, core.signer
46
- core.account;
47
- ```
11
+ ## Documentation
48
12
 
49
- > The AptosClient can be found in the provider client as `provider.aptosClient` in `getClients()`
13
+ Please visit [js-pro.aptos.dev](https://js-pro.aptos.dev/typescript) for the latest documentation.
@@ -0,0 +1,136 @@
1
+ import { StoreApi } from "zustand/vanilla";
2
+ import { Aptos, AptosSettings, Network } from "@aptos-labs/ts-sdk";
3
+ import { GraphQLClient } from "graphql-request";
4
+ import { Sdk } from "./operations/index.js";
5
+ import { AccountInfo, NetworkInfo, SignerClient } from "./types/index.js";
6
+ import { getClients, fetchAccountCoins, fetchAptBalance, fetchBalance, fetchProcessorStatus, fetchAddressFromName, fetchNameFromAddress, fetchEstimatedGasPrice, fetchTransaction, fetchResources, fetchResourceType, fetchTokenData, fetchFungibleAssetMetadata, fetchAccountCollections, fetchViewModule, fetchLedgerInfo, fetchEvents, fetchAccountTransactions, fetchAccountTokens, fetchUserTransactions } from "./queries/index.js";
7
+ import { buildTransaction, signAndSubmitTransaction, signTransaction, simulateTransaction, submitTransaction, waitForTransaction } from "./mutations/index.js";
8
+ type IndexerClientOptions = ConstructorParameters<typeof GraphQLClient>[1];
9
+ export type ClientConfigs = {
10
+ /**
11
+ * This will be included as `Authorization: Bearer <apiKey>` in all requests to Aptos
12
+ * APIs. For the Aptos client this means settings AptosConfig.clientConfig.API_KEY.
13
+ * For the indexer client, we provide a custom header.
14
+ *
15
+ * This argument takes precedence over the relevant argument in the configs for
16
+ * `aptos` and `indexerClient`.
17
+ *
18
+ * It is okay to accept a single argument here because it is standard to use the same
19
+ * API key for both APIs (node and indexer APIs).
20
+ */
21
+ apiKey?: {
22
+ [network: string | Network]: string | undefined;
23
+ } | string;
24
+ /**
25
+ * Will override any Network settings if provided in this config.
26
+ */
27
+ aptos?: {
28
+ config: AptosSettings;
29
+ };
30
+ indexerClient?: {
31
+ options: IndexerClientOptions;
32
+ };
33
+ /**
34
+ * A function that returns the current server time in milliseconds.
35
+ *
36
+ * @default Date.now
37
+ * @returns The current server time in milliseconds
38
+ */
39
+ serverTime?: () => number;
40
+ };
41
+ export type AptosJSProClientParameters = {
42
+ account?: AccountInfo;
43
+ config?: ClientConfigs;
44
+ network: NetworkInfo;
45
+ signer?: SignerClient;
46
+ };
47
+ export type AptosJSProClientState = {
48
+ account?: AccountInfo;
49
+ config?: ClientConfigs;
50
+ network: NetworkInfo;
51
+ signer?: SignerClient;
52
+ };
53
+ export declare class AptosJSProClient {
54
+ #private;
55
+ constructor(params: AptosJSProClientParameters);
56
+ get state(): AptosJSProClientState;
57
+ get store(): Omit<StoreApi<AptosJSProClientState>, "subscribe"> & {
58
+ subscribe: {
59
+ (listener: (selectedState: AptosJSProClientState, previousSelectedState: AptosJSProClientState) => void): () => void;
60
+ <U>(selector: (state: AptosJSProClientState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
61
+ equalityFn?: ((a: U, b: U) => boolean) | undefined;
62
+ fireImmediately?: boolean;
63
+ } | undefined): () => void;
64
+ };
65
+ };
66
+ get signer(): SignerClient | undefined;
67
+ get account(): AccountInfo | undefined;
68
+ get network(): NetworkInfo;
69
+ get aptos(): Aptos;
70
+ get indexer(): {
71
+ getAccountTokensTotal(variables: import("./operations/index.js").GetAccountTokensTotalQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTokensTotalQuery>;
72
+ getAccountTokenOwnerships(variables: import("./operations/index.js").GetAccountTokenOwnershipsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTokenOwnershipsQuery>;
73
+ getCurrentTokenData(variables: import("./operations/index.js").GetCurrentTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetCurrentTokenDataQuery>;
74
+ getAccountCollections(variables: import("./operations/index.js").GetAccountCollectionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountCollectionsQuery>;
75
+ getTokenData(variables: import("./operations/index.js").GetTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenDataQuery>;
76
+ getActivitiesAggregate(variables: import("./operations/index.js").GetActivitiesAggregateQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetActivitiesAggregateQuery>;
77
+ getTokenActivities(variables: import("./operations/index.js").GetTokenActivitiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenActivitiesQuery>;
78
+ getTokenAcquisitionActivity(variables: import("./operations/index.js").GetTokenAcquisitionActivityQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetTokenAcquisitionActivityQuery>;
79
+ getAccountTransactions(variables: import("./operations/index.js").GetAccountTransactionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetAccountTransactionsQuery>;
80
+ getUserTransactions(variables: import("./operations/index.js").GetUserTransactionsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetUserTransactionsQuery>;
81
+ getFungibleAssetMetadata(variables: import("./operations/index.js").GetFungibleAssetMetadataQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetFungibleAssetMetadataQuery>;
82
+ getFungibleAssetBalances(variables?: import("./operations/index.js").GetFungibleAssetBalancesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetFungibleAssetBalancesQuery>;
83
+ getDelegatedStakingRoyalties(variables: import("./operations/index.js").GetDelegatedStakingRoyaltiesQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegatedStakingRoyaltiesQuery>;
84
+ getDelegatedStaking(variables: import("./operations/index.js").GetDelegatedStakingQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegatedStakingQuery>;
85
+ getDelegationPools(variables?: import("./operations/index.js").GetDelegationPoolsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetDelegationPoolsQuery>;
86
+ getNumberOfDelegators(variables?: import("./operations/index.js").GetNumberOfDelegatorsQueryVariables, requestHeaders?: HeadersInit | undefined, signal?: RequestInit["signal"]): Promise<import("./operations/index.js").GetNumberOfDelegatorsQuery>;
87
+ } | undefined;
88
+ getServerTime: () => number;
89
+ getServerDate: () => Date;
90
+ setAccount: (account: AccountInfo | undefined) => void;
91
+ setNetwork: (network: NetworkInfo) => void;
92
+ setSigner: (signer: SignerClient | undefined) => void;
93
+ setConfig: (config: ClientConfigs) => void;
94
+ onAccountChange: (callback: (account?: AccountInfo) => void) => () => void;
95
+ onNetworkChange: (callback: (network: NetworkInfo) => void) => () => void;
96
+ onSignerChange: (callback: (signer?: SignerClient) => void) => () => void;
97
+ onConfigChange: (callback: (config?: ClientConfigs) => void) => () => void;
98
+ onChange: (callback: (state: AptosJSProClientState) => void) => () => void;
99
+ createNetworkConfig: (network?: NetworkInfo) => AptosSettings;
100
+ /**
101
+ * To support V1 networks, we are case insensitive when matching the network name.
102
+ *
103
+ * @returns An Aptos instance
104
+ */
105
+ createAptos: (clientConfig?: AptosSettings, network?: NetworkInfo) => Aptos;
106
+ createIndexer: (clientConfig?: AptosSettings, network?: NetworkInfo) => Sdk | undefined;
107
+ private refreshClients;
108
+ getClients: typeof getClients;
109
+ fetchAccountTransactions: typeof fetchAccountTransactions;
110
+ fetchAccountCollections: typeof fetchAccountCollections;
111
+ fetchAccountCoins: typeof fetchAccountCoins;
112
+ fetchAccountTokens: typeof fetchAccountTokens;
113
+ fetchTransaction: typeof fetchTransaction;
114
+ fetchResources: typeof fetchResources;
115
+ fetchResourceType: typeof fetchResourceType;
116
+ fetchProcessorStatus: typeof fetchProcessorStatus;
117
+ fetchTokenData: typeof fetchTokenData;
118
+ fetchFungibleAssetMetadata: typeof fetchFungibleAssetMetadata;
119
+ fetchLedgerInfo: typeof fetchLedgerInfo;
120
+ fetchAddressFromName: typeof fetchAddressFromName;
121
+ fetchNameFromAddress: typeof fetchNameFromAddress;
122
+ fetchAptBalance: typeof fetchAptBalance;
123
+ fetchBalance: typeof fetchBalance;
124
+ fetchEstimatedGasPrice: typeof fetchEstimatedGasPrice;
125
+ fetchViewModule: typeof fetchViewModule;
126
+ fetchEvents: typeof fetchEvents;
127
+ fetchUserTransactions: typeof fetchUserTransactions;
128
+ submitTransaction: typeof submitTransaction;
129
+ waitForTransaction: typeof waitForTransaction;
130
+ simulateTransaction: typeof simulateTransaction;
131
+ signTransaction: typeof signTransaction;
132
+ signAndSubmitTransaction: typeof signAndSubmitTransaction;
133
+ buildTransaction: typeof buildTransaction;
134
+ }
135
+ export {};
136
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"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"}
@@ -1,4 +1,2 @@
1
1
  export declare const APTOS_NAMES_ENDPOINT = "https://www.aptosnames.com/api";
2
- export declare const COIN_GECKO_ENDPOINT = "https://api.coingecko.com/api";
3
- export declare const EXPLORER_BASE_PATH = "https://explorer.aptoslabs.com";
4
2
  //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AACrE,eAAO,MAAM,mBAAmB,kCAAkC,CAAC;AACnE,eAAO,MAAM,kBAAkB,mCAAmC,CAAC"}
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,mCAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,SAAqC;IAEvC,IAAI,SAAqB;gBAEtB,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAMlE"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,SAA+B;IAEjC,IAAI,SAAqB;gBAEtB,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAMlE"}
@@ -0,0 +1,10 @@
1
+ import { AptosBaseError } from "./base.js";
2
+ export declare class IndexerNotInitializedError extends AptosBaseError {
3
+ name: string;
4
+ constructor();
5
+ }
6
+ export declare class SignerNotFoundError extends AptosBaseError {
7
+ name: string;
8
+ constructor();
9
+ }
10
+ //# sourceMappingURL=clients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../src/errors/clients.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,0BAA2B,SAAQ,cAAc;IACnD,IAAI,SAAgC;;CAQ9C;AAED,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAQvC"}
@@ -1,3 +1,4 @@
1
- export * from './base';
2
- export * from './common';
1
+ export * from "./base.js";
2
+ export * from "./clients.js";
3
+ export * from "./transactions.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAEA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAGA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AptosBaseError } from "./base.js";
2
+ export declare class SenderNotFoundError extends AptosBaseError {
3
+ name: string;
4
+ constructor();
5
+ }
6
+ //# sourceMappingURL=transactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/errors/transactions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAKvC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- export * from './mutations';
2
- export * from './queries';
3
- export * from './errors';
4
- export * from './client';
5
- export * from './types';
6
- export * from './utils';
7
- export * from './operations';
8
- export * from './constants';
1
+ export * from "./client.js";
2
+ export * from "./operations/index.js";
3
+ export * from "./types/index.js";
4
+ export * from "./queries/index.js";
5
+ export * from "./utils/index.js";
6
+ export * from "./errors/index.js";
7
+ export * from "./mutations/index.js";
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}