ypricemagic 4.7.3.dev0__tar.gz → 4.8.1.dev0__tar.gz

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 (190) hide show
  1. {ypricemagic-4.7.3.dev0/ypricemagic.egg-info → ypricemagic-4.8.1.dev0}/PKG-INFO +1 -1
  2. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/classes/common.py +1 -0
  3. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/constants.py +20 -0
  4. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/networks.py +7 -0
  5. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/chainlink.py +5 -0
  6. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/v3.py +8 -0
  7. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/multicall.py +1 -0
  8. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0/ypricemagic.egg-info}/PKG-INFO +1 -1
  9. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.env.sample +0 -0
  10. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/ISSUE_TEMPLATE/add_a_chain.yml +0 -0
  11. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/black.yaml +0 -0
  12. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/codeql-analysis.yml +0 -0
  13. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/compile.yaml +0 -0
  14. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/deploy-docs.yml +0 -0
  15. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/mypy.yaml +0 -0
  16. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/pytest.yaml +0 -0
  17. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.github/workflows/release.yaml +0 -0
  18. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/.gitignore +0 -0
  19. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/CONTRIBUTING.md +0 -0
  20. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/FUNDING.json +0 -0
  21. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/LICENSE.txt +0 -0
  22. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/Makefile +0 -0
  23. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/README.md +0 -0
  24. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/brownie-config.yaml +0 -0
  25. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/Makefile +0 -0
  26. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/alabaster.css +0 -0
  27. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/basic.css +0 -0
  28. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/custom.css +0 -0
  29. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/doctools.js +0 -0
  30. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/documentation_options.js +0 -0
  31. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/file.png +0 -0
  32. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/language_data.js +0 -0
  33. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/minus.png +0 -0
  34. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/plus.png +0 -0
  35. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/pygments.css +0 -0
  36. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/searchtools.js +0 -0
  37. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/_build/html/_static/sphinx_highlight.js +0 -0
  38. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/caching.rst +0 -0
  39. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/cli.rst +0 -0
  40. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/conf.py +0 -0
  41. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/environment.rst +0 -0
  42. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/index.rst +0 -0
  43. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/docs/make.bat +0 -0
  44. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/pyproject.toml +0 -0
  45. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/renovate.json +0 -0
  46. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/requirements-dev.txt +0 -0
  47. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/requirements.txt +0 -0
  48. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/scripts/debug-curve.py +0 -0
  49. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/scripts/debug-price.py +0 -0
  50. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/setup.cfg +0 -0
  51. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/setup.py +0 -0
  52. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/__init__.py +0 -0
  53. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/classes/test_erc20.py +0 -0
  54. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/classes/test_singleton.py +0 -0
  55. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/conftest.py +0 -0
  56. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/fixtures.py +0 -0
  57. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/__init__.py +0 -0
  58. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/dex/__init__.py +0 -0
  59. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/dex/test_balancer.py +0 -0
  60. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/dex/test_uniswap.py +0 -0
  61. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/dex/test_velodrome.py +0 -0
  62. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/lending/__init__.py +0 -0
  63. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/lending/test_aave.py +0 -0
  64. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/lending/test_compound.py +0 -0
  65. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/stable_swap/test_curve.py +0 -0
  66. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_chainlink.py +0 -0
  67. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_gearbox.py +0 -0
  68. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_magic.py +0 -0
  69. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_popsicle.py +0 -0
  70. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_synthetix.py +0 -0
  71. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/test_yearn.py +0 -0
  72. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/tokenized_fund/test_piedao.py +0 -0
  73. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/prices/utils/test_buckets.py +0 -0
  74. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/tests/test_constants.py +0 -0
  75. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/ENVIRONMENT_VARIABLES.py +0 -0
  76. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/__init__.py +0 -0
  77. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/__init__.py +0 -0
  78. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/brownie.py +0 -0
  79. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/common.py +0 -0
  80. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/config.py +0 -0
  81. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/decorators.py +0 -0
  82. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/entities.py +0 -0
  83. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/exceptions.py +0 -0
  84. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/log.py +0 -0
  85. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/structs.py +0 -0
  86. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/__init__.py +0 -0
  87. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/_ep.py +0 -0
  88. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/bulk.py +0 -0
  89. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/contract.py +0 -0
  90. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/logs.py +0 -0
  91. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/price.py +0 -0
  92. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/stringify.py +0 -0
  93. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/token.py +0 -0
  94. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/traces.py +0 -0
  95. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_db/utils/utils.py +0 -0
  96. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/_decorators.py +0 -0
  97. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/classes/__init__.py +0 -0
  98. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/classes/_abc.py +0 -0
  99. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/classes/singleton.py +0 -0
  100. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/cli.py +0 -0
  101. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/contracts.py +0 -0
  102. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/convert.py +0 -0
  103. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/datatypes.py +0 -0
  104. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/exceptions.py +0 -0
  105. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/ERC20.py +0 -0
  106. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/__init__.py +0 -0
  107. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/balancer/WeightedPool.py +0 -0
  108. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/balancer/__init__.py +0 -0
  109. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/compound/__init__.py +0 -0
  110. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/compound/unitroller.py +0 -0
  111. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/curve/CurveRegistry.py +0 -0
  112. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/curve/__init__.py +0 -0
  113. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/multicall2.py +0 -0
  114. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/uniswap/__init__.py +0 -0
  115. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/uniswap/factoryv2.py +0 -0
  116. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/uniswap/quoterv3.py +0 -0
  117. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/interfaces/uniswap/velov2.py +0 -0
  118. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/monkey_patches.py +0 -0
  119. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/__init__.py +0 -0
  120. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/band.py +0 -0
  121. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/convex.py +0 -0
  122. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/__init__.py +0 -0
  123. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/balancer/__init__.py +0 -0
  124. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/balancer/_abc.py +0 -0
  125. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/balancer/balancer.py +0 -0
  126. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/balancer/v1.py +0 -0
  127. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/balancer/v2.py +0 -0
  128. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/genericamm.py +0 -0
  129. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/mooniswap.py +0 -0
  130. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/solidly.py +0 -0
  131. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/__init__.py +0 -0
  132. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/uniswap.py +0 -0
  133. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/v1.py +0 -0
  134. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/v2.py +0 -0
  135. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/uniswap/v2_forks.py +0 -0
  136. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/dex/velodrome.py +0 -0
  137. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/eth_derivs/__init__.py +0 -0
  138. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/eth_derivs/creth.py +0 -0
  139. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/eth_derivs/wsteth.py +0 -0
  140. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/gearbox.py +0 -0
  141. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/lending/__init__.py +0 -0
  142. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/lending/aave.py +0 -0
  143. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/lending/compound.py +0 -0
  144. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/lending/ib.py +0 -0
  145. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/magic.py +0 -0
  146. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/one_to_one.py +0 -0
  147. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/pendle.py +0 -0
  148. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/popsicle.py +0 -0
  149. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/rkp3r.py +0 -0
  150. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/solidex.py +0 -0
  151. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/__init__.py +0 -0
  152. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/belt.py +0 -0
  153. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/curve.py +0 -0
  154. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/ellipsis.py +0 -0
  155. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/froyo.py +0 -0
  156. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/mstablefeederpool.py +0 -0
  157. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/stable_swap/saddle.py +0 -0
  158. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/synthetix.py +0 -0
  159. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/__init__.py +0 -0
  160. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/basketdao.py +0 -0
  161. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/gelato.py +0 -0
  162. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/piedao.py +0 -0
  163. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/reserve.py +0 -0
  164. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/tokenized_fund/tokensets.py +0 -0
  165. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/utils/__init__.py +0 -0
  166. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/utils/buckets.py +0 -0
  167. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/utils/debug.py +0 -0
  168. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/utils/sense_check.py +0 -0
  169. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/utils/ypriceapi.py +0 -0
  170. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/prices/yearn.py +0 -0
  171. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/py.typed +0 -0
  172. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/time.py +0 -0
  173. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/__init__.py +0 -0
  174. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/_erc20.py +0 -0
  175. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/cache.py +0 -0
  176. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/checks.py +0 -0
  177. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/client.py +0 -0
  178. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/dank_mids.py +0 -0
  179. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/events.py +0 -0
  180. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/fakes.py +0 -0
  181. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/gather.py +0 -0
  182. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/logging.py +0 -0
  183. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/middleware.py +0 -0
  184. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/y/utils/raw_calls.py +0 -0
  185. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/SOURCES.txt +0 -0
  186. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/dependency_links.txt +0 -0
  187. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/entry_points.txt +0 -0
  188. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/not-zip-safe +0 -0
  189. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/requires.txt +0 -0
  190. {ypricemagic-4.7.3.dev0 → ypricemagic-4.8.1.dev0}/ypricemagic.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ypricemagic
3
- Version: 4.7.3.dev0
3
+ Version: 4.8.1.dev0
4
4
  Summary: Use this tool to extract historical on-chain price data from an archive node. Shoutout to @bantg and @nymmrx for their awesome work on yearn-exporter that made this library possible.
5
5
  Home-page: https://github.com/BobTheBuidler/ypricemagic
6
6
  Author: BobTheBuidler
@@ -253,6 +253,7 @@ class ERC20(ContractBase):
253
253
  Network.Arbitrum: "ETH",
254
254
  Network.Optimism: "ETH",
255
255
  Network.Base: "ETH",
256
+ Network.Katana: "ETH",
256
257
  Network.Berachain: "BERA",
257
258
  }.get(chain.id, "ETH")
258
259
  import y._db.utils.token as db
@@ -285,6 +285,22 @@ elif CHAINID == Network.Base:
285
285
  This is a temporary placeholder and may not represent the actual WBTC contract on Base.
286
286
  """
287
287
 
288
+ elif CHAINID == Network.Katana:
289
+
290
+ weth = Contract("0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62")
291
+ """Wrapped Ether (WETH) contract on Katana."""
292
+
293
+ usdc = Contract("0x203A662b0BD271A6ed5a60EdFbd04bFce608FD36") # usdbc
294
+ """USD Coin (USDC) contract on Katana."""
295
+
296
+ usdt = Contract("0x2DCa96907fde857dd3D816880A0df407eeB2D2F2")
297
+ """Tether USD (USDT) contract on Katana."""
298
+
299
+ wbtc = Contract("0x0913DA6Da4b42f538B445599b46Bb4622342Cf52")
300
+ """Wrapped Bitcoin (WBTC) contract on Katana."""
301
+
302
+ dai = None
303
+
288
304
  elif CHAINID == Network.Berachain:
289
305
 
290
306
  weth = Contract("0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590")
@@ -369,6 +385,9 @@ _STABLECOINS: Final[Dict[Network, Dict[ChecksumAddress, str]]] = {
369
385
  "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA": "usdbc",
370
386
  "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": "usdc",
371
387
  },
388
+ Network.Katana: {
389
+ "0x203A662b0BD271A6ed5a60EdFbd04bFce608FD36": "usdc",
390
+ },
372
391
  Network.Berachain: {
373
392
  "0x549943e04f40284185054145c6E4e9568C1D3241": "usdc",
374
393
  },
@@ -400,6 +419,7 @@ WRAPPED_GAS_COINS: Final[Dict[Network, ChecksumAddress]] = {
400
419
  Network.Cronos: "0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23",
401
420
  Network.Optimism: "0x4200000000000000000000000000000000000006",
402
421
  Network.Base: "0x4200000000000000000000000000000000000006",
422
+ Network.Katana: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62",
403
423
  Network.Berachain: "0x6969696969696969696969696969696969696969",
404
424
  }
405
425
 
@@ -76,6 +76,9 @@ class Network(IntEnum):
76
76
  Aurora = 1313161554
77
77
  """The Chain ID for Aurora"""
78
78
 
79
+ Katana = 747474
80
+ """The Chain ID for Katana"""
81
+
79
82
  Berachain = 80094
80
83
  """The Chain ID for Berachain"""
81
84
 
@@ -131,6 +134,8 @@ class Network(IntEnum):
131
134
  return "OPTI"
132
135
  elif chain_id == Network.Base:
133
136
  return "BASE"
137
+ elif chain_id == Network.Katana:
138
+ return "KATANA"
134
139
  elif chain_id == Network.Berachain:
135
140
  return "BERA"
136
141
 
@@ -186,6 +191,8 @@ class Network(IntEnum):
186
191
  return "Optimism"
187
192
  elif chain_id == Network.Base:
188
193
  return "Base"
194
+ elif chain_id == Network.Katana:
195
+ return "Katana"
189
196
  elif chain_id == Network.Berachain:
190
197
  return "Berachain"
191
198
 
@@ -175,6 +175,11 @@ FEEDS = {
175
175
  "0x4200000000000000000000000000000000000006": "0x71041dddad3595F9CEd3DcCFBe3D1F4b0a16Bb70", # weth -> ETH
176
176
  "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb": "0x591e79239a7d679378eC8c847e5038150364C78F", # dai -> DAI
177
177
  },
178
+ Network.Katana: {
179
+ # https://docs.chain.link/data-feeds/price-feeds/addresses?page=1&network=katana&testnetPage=1&search=
180
+ "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62": "0x7BdBDB772f4a073BadD676A567C6ED82049a8eEE", # WETH -> ETH
181
+ "0x0913DA6Da4b42f538B445599b46Bb4622342Cf52": "0x41DdB7F8F5e1b2bD28193B84C1C36Be698dEd162", # WBTC -> BTC
182
+ },
178
183
  }.get(CHAINID, {})
179
184
 
180
185
  ONE_DAY = 24 * 60 * 60
@@ -101,6 +101,14 @@ forked_deployments: Final = {
101
101
  "fee_tiers": (3000, 500, 10_000, 20_000),
102
102
  },
103
103
  ],
104
+ Network.Katana: [
105
+ {
106
+ # sushiswap
107
+ "factory": "0x203e8740894c8955cB8950759876d7E7E45E04c1",
108
+ "quoter": "0x92dea23ED1C683940fF1a2f8fE23FE98C5d3041c",
109
+ "fee_tiers": (3000, 500, 10_000, 100),
110
+ },
111
+ ],
104
112
  }
105
113
 
106
114
  _FEE_DENOMINATOR: Final = Decimal(1_000_000)
@@ -36,6 +36,7 @@ MULTICALL2 = {
36
36
  Network.Cronos: "0x5e954f5972EC6BFc7dECd75779F10d848230345F",
37
37
  Network.Optimism: "0xcA11bde05977b3631167028862bE2a173976CA11", # Multicall 3
38
38
  Network.Base: "0xcA11bde05977b3631167028862bE2a173976CA11", # mc3
39
+ Network.Katana: "0xcA11bde05977b3631167028862bE2a173976CA11",
39
40
  Network.Berachain: "0xcA11bde05977b3631167028862bE2a173976CA11",
40
41
  }.get(brownie.chain.id)
41
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ypricemagic
3
- Version: 4.7.3.dev0
3
+ Version: 4.8.1.dev0
4
4
  Summary: Use this tool to extract historical on-chain price data from an archive node. Shoutout to @bantg and @nymmrx for their awesome work on yearn-exporter that made this library possible.
5
5
  Home-page: https://github.com/BobTheBuidler/ypricemagic
6
6
  Author: BobTheBuidler