@alphafi/alphafi-sdk 0.0.10 → 0.0.11

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 (131) hide show
  1. package/.envrc +1 -0
  2. package/.eslintrc.json +21 -0
  3. package/.github/workflows/static.yml +51 -0
  4. package/.prettierrc.json +27 -0
  5. package/.prettierrc.json~ +30 -0
  6. package/__tests__/getAprs.test.ts~ +9 -0
  7. package/__tests__/getRebalanceHistory.test.ts~ +19 -0
  8. package/apr.org +11 -0
  9. package/babel.config.json +11 -0
  10. package/dist/index.js +1 -1
  11. package/dist/index.js.LICENSE.txt +42 -22
  12. package/dist/index.js.map +1 -1
  13. package/docs/.nojekyll +1 -0
  14. package/docs/assets/highlight.css +78 -0
  15. package/docs/assets/icons.js +18 -0
  16. package/docs/assets/icons.svg +1 -0
  17. package/docs/assets/main.js +60 -0
  18. package/docs/assets/navigation.js +1 -0
  19. package/docs/assets/search.js +1 -0
  20. package/docs/assets/style.css +1448 -0
  21. package/docs/functions/alphaLpBreakdown.html +1 -0
  22. package/docs/functions/cetusLpBreakdown.html +1 -0
  23. package/docs/functions/collectRewards.html +1 -0
  24. package/docs/functions/deposit.html +1 -0
  25. package/docs/functions/fetchAutoCompoundingEventsGql.html +1 -0
  26. package/docs/functions/fetchCetusPools.html +1 -0
  27. package/docs/functions/fetchChainIdentifier.html +1 -0
  28. package/docs/functions/fetchNftHolders.html +1 -0
  29. package/docs/functions/fetchPools.html +1 -0
  30. package/docs/functions/fetchPortfolioData.html +1 -0
  31. package/docs/functions/fetchProtocolData.html +1 -0
  32. package/docs/functions/fetchUserVaultBalances.html +1 -0
  33. package/docs/functions/fetchUserVaults.html +1 -0
  34. package/docs/functions/fetchUserWalletData.html +1 -0
  35. package/docs/functions/getAirdropShare.html +1 -0
  36. package/docs/functions/getAllDoubleAssetVaults.html +1 -0
  37. package/docs/functions/getAllSingleAssetVaults.html +1 -0
  38. package/docs/functions/getAllVaults.html +1 -0
  39. package/docs/functions/getAlphaVaultBalance.html +1 -0
  40. package/docs/functions/getApr.html +1 -0
  41. package/docs/functions/getAprs.html +1 -0
  42. package/docs/functions/getApy.html +1 -0
  43. package/docs/functions/getApys.html +1 -0
  44. package/docs/functions/getDoubleAssetVaultBalance.html +1 -0
  45. package/docs/functions/getDoubleAssetVaults.html +1 -0
  46. package/docs/functions/getRebalanceHistories.html +1 -0
  47. package/docs/functions/getRebalanceHistory.html +1 -0
  48. package/docs/functions/getSingleAssetVaultBalance.html +1 -0
  49. package/docs/functions/getSingleAssetVaults.html +1 -0
  50. package/docs/functions/getVaultBalance.html +1 -0
  51. package/docs/functions/getVaults.html +1 -0
  52. package/docs/functions/lastAutocompoundTime.html +1 -0
  53. package/docs/functions/parseUserWalletData.html +1 -0
  54. package/docs/functions/withdraw.html +1 -0
  55. package/docs/index.html +40 -0
  56. package/docs/interfaces/Coin.html +5 -0
  57. package/docs/interfaces/CoinPair.html +3 -0
  58. package/docs/interfaces/RebalanceHistoryType.html +5 -0
  59. package/docs/modules.html +66 -0
  60. package/docs/types/AlphaFiDoubleAssetVault.html +1 -0
  61. package/docs/types/AlphaFiSingleAssetVault.html +1 -0
  62. package/docs/types/AlphaFiVault.html +1 -0
  63. package/docs/types/AlphaFiVaultBalance.html +1 -0
  64. package/docs/types/AlphaPoolType.html +1 -0
  65. package/docs/types/AlphaReceipt.html +1 -0
  66. package/docs/types/AlphaVaultBalance.html +1 -0
  67. package/docs/types/AutoCompoundingEventNode.html +1 -0
  68. package/docs/types/CetusInvestor.html +1 -0
  69. package/docs/types/CetusPoolType.html +1 -0
  70. package/docs/types/CetusSwapOptions.html +1 -0
  71. package/docs/types/CoinAmounts.html +1 -0
  72. package/docs/types/CoinName.html +1 -0
  73. package/docs/types/CoinType.html +1 -0
  74. package/docs/types/CreatePoolOptions.html +1 -0
  75. package/docs/types/DoubleAssetVaultBalance.html +1 -0
  76. package/docs/types/Icon.html +1 -0
  77. package/docs/types/LpBreakdownType.html +1 -0
  78. package/docs/types/ParentProtocolName.html +1 -0
  79. package/docs/types/PoolName.html +1 -0
  80. package/docs/types/PoolReceipt.html +1 -0
  81. package/docs/types/PoolType.html +1 -0
  82. package/docs/types/Receipt.html +1 -0
  83. package/docs/types/SingleAssetVaultBalance.html +1 -0
  84. package/docs/types/SuiNetwork.html +1 -0
  85. package/docs/types/SwapOptions.html +1 -0
  86. package/docs/types/TickSpacing.html +1 -0
  87. package/docs/types/TransactionBlockType.html +1 -0
  88. package/events.csv +61 -0
  89. package/events.csv~ +71 -0
  90. package/jest.config.js +5 -0
  91. package/package.json +30 -29
  92. package/package.json~ +56 -0
  93. package/tsconfig.json~ +16 -0
  94. package/tsconfig.test.json~ +17 -0
  95. package/typedoc.json +8 -0
  96. package/webpack.config.cjs~ +63 -0
  97. package/webpack.config.js +54 -0
  98. package/webpack.config.js~ +50 -0
  99. package/webpack.config.ts~ +64 -0
  100. package/dist/common/alphaTypes.d.ts +0 -110
  101. package/dist/common/alphaTypes.d.ts.map +0 -1
  102. package/dist/common/cetus_mainnet_config.d.ts +0 -3
  103. package/dist/common/cetus_mainnet_config.d.ts.map +0 -1
  104. package/dist/common/coins.d.ts +0 -5
  105. package/dist/common/coins.d.ts.map +0 -1
  106. package/dist/common/constants.d.ts +0 -294
  107. package/dist/common/constants.d.ts.map +0 -1
  108. package/dist/common/maps.d.ts +0 -32
  109. package/dist/common/maps.d.ts.map +0 -1
  110. package/dist/common/pyth.d.ts +0 -7
  111. package/dist/common/pyth.d.ts.map +0 -1
  112. package/dist/common/types.d.ts +0 -391
  113. package/dist/common/types.d.ts.map +0 -1
  114. package/dist/functions.d.ts +0 -26
  115. package/dist/functions.d.ts.map +0 -1
  116. package/dist/getAirdropShare.d.ts +0 -5
  117. package/dist/getAirdropShare.d.ts.map +0 -1
  118. package/dist/getAllVaults.d.ts +0 -4
  119. package/dist/getAllVaults.d.ts.map +0 -1
  120. package/dist/getVaultBalances.d.ts +0 -5
  121. package/dist/getVaultBalances.d.ts.map +0 -1
  122. package/dist/getVaults.d.ts +0 -5
  123. package/dist/getVaults.d.ts.map +0 -1
  124. package/dist/index.d.ts +0 -7
  125. package/dist/index.d.ts.map +0 -1
  126. package/dist/portfolioAmount.d.ts +0 -36
  127. package/dist/portfolioAmount.d.ts.map +0 -1
  128. package/dist/price.d.ts +0 -19
  129. package/dist/price.d.ts.map +0 -1
  130. package/dist/vaultFunctions.d.ts +0 -15
  131. package/dist/vaultFunctions.d.ts.map +0 -1
@@ -1,28 +1,48 @@
1
1
  /*!
2
- * mime-db
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
2
+ * decimal.js v10.4.3
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
7
8
 
8
9
  /*!
9
- * mime-types
10
- * Copyright(c) 2014 Jonathan Ong
11
- * Copyright(c) 2015 Douglas Christopher Wilson
12
- * MIT Licensed
10
+ * decimal.js v10.4.3
11
+ * An arbitrary-precision Decimal type for JavaScript.
12
+ * https://github.com/MikeMcl/decimal.js
13
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
14
+ * MIT Licence
13
15
  */
14
16
 
15
17
  /*! *****************************************************************************
16
- Copyright (c) Microsoft Corporation. All rights reserved.
17
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
18
- this file except in compliance with the License. You may obtain a copy of the
19
- License at http://www.apache.org/licenses/LICENSE-2.0
20
-
21
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
23
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
24
- MERCHANTABLITY OR NON-INFRINGEMENT.
25
-
26
- See the Apache Version 2.0 License for specific language governing permissions
27
- and limitations under the License.
28
- ***************************************************************************** */
18
+ Copyright (c) Microsoft Corporation. All rights reserved.
19
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
20
+ this file except in compliance with the License. You may obtain a copy of the
21
+ License at http://www.apache.org/licenses/LICENSE-2.0
22
+
23
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
25
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
26
+ MERCHANTABLITY OR NON-INFRINGEMENT.
27
+
28
+ See the Apache Version 2.0 License for specific language governing permissions
29
+ and limitations under the License.
30
+ ***************************************************************************** */
31
+
32
+ /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
33
+
34
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35
+
36
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
37
+
38
+ /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
39
+
40
+ /**
41
+ * @license React
42
+ * react.production.min.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */