@paraswap/dex-lib 2.50.6-dexalot-arbitrum.0 → 2.50.6

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 (3029) hide show
  1. package/.env.example +6 -6
  2. package/.eslintrc.js +57 -57
  3. package/.github/workflows/ci.yaml +22 -22
  4. package/.husky/pre-commit +4 -4
  5. package/.prettierrc +10 -10
  6. package/.vscode/launch.json +53 -0
  7. package/.vscode/settings.json +2 -0
  8. package/.vscode/tasks.json +15 -0
  9. package/LICENSE +674 -674
  10. package/README.md +60 -60
  11. package/build/abi/AaveV1_lending_pool.json +27 -27
  12. package/build/abi/AaveV2_lending_pool.json +53 -53
  13. package/build/abi/AaveV3_lending_pool.json +1715 -1715
  14. package/build/abi/BProtocol.json +1155 -1155
  15. package/build/abi/BalancerCustomMulticall.json +26 -26
  16. package/build/abi/BalancerV1ExchangeProxy.json +377 -377
  17. package/build/abi/BalancerV1Pool.json +1630 -1630
  18. package/build/abi/Bancor.json +392 -392
  19. package/build/abi/Compound_CETH.json +12 -12
  20. package/build/abi/Curve.json +54 -54
  21. package/build/abi/CurveV2.json +700 -700
  22. package/build/abi/DirectSwap.json +1018 -1018
  23. package/build/abi/ERC1155.abi.json +459 -459
  24. package/build/abi/ERC1271.abi.json +25 -25
  25. package/build/abi/ERC20.abi.json +288 -288
  26. package/build/abi/ERC721.abi.json +165 -165
  27. package/build/abi/IParaswap.json +3059 -3059
  28. package/build/abi/Jarvis.json +1172 -1172
  29. package/build/abi/MStableAsset.json +1545 -1545
  30. package/build/abi/OneInchLp.json +1304 -1304
  31. package/build/abi/Onebit.json +736 -736
  32. package/build/abi/RamsesV2StateMulticall.abi.json +891 -891
  33. package/build/abi/Shell.json +1294 -1294
  34. package/build/abi/SimpleSwapHelperRouter.json +38 -38
  35. package/build/abi/Smoothy.json +1049 -1049
  36. package/build/abi/StablePool.json +1035 -1035
  37. package/build/abi/TraderJoeV21Router.json +1489 -1489
  38. package/build/abi/TraderJoeV2Router.json +50 -50
  39. package/build/abi/UniswapV2ExchangeRouter.json +84 -84
  40. package/build/abi/UniswapV3Router.json +274 -274
  41. package/build/abi/aave-v3-weth-gateway.json +290 -290
  42. package/build/abi/aave-weth-gateway-avalanche.json +242 -242
  43. package/build/abi/aave-weth-gateway-polygon.json +242 -242
  44. package/build/abi/aave-weth-gateway.json +38 -38
  45. package/build/abi/aerodrome/aerodrome-pool-factory.json +586 -586
  46. package/build/abi/algebra/AlgebraFactory-v1_1.abi.json +250 -250
  47. package/build/abi/algebra/AlgebraPool-v1_1.abi.json +727 -727
  48. package/build/abi/algebra/AlgebraPool-v1_9.abi.json +756 -756
  49. package/build/abi/algebra/AlgebraQuoter.abi.json +138 -138
  50. package/build/abi/algebra/AlgebraStateMulticall.abi.json +801 -801
  51. package/build/abi/algebra/SwapRouter.json +281 -281
  52. package/build/abi/api3-proxy.json +53 -53
  53. package/build/abi/api3-server-v1.json +463 -463
  54. package/build/abi/augustus.json +375 -375
  55. package/build/abi/balancer-v2/ComposableStable.json +1391 -1391
  56. package/build/abi/balancer-v2/gyro-e.abi.json +1595 -1595
  57. package/build/abi/balancer-v2/linearPoolAbi.json +1062 -1062
  58. package/build/abi/balancer-v2/meta-stable-pool.json +1437 -1437
  59. package/build/abi/balancer-v2/stable-pool.json +1053 -1053
  60. package/build/abi/balancer-v2/vault.json +918 -918
  61. package/build/abi/balancer-v2/weighted-pool.json +1142 -1142
  62. package/build/abi/benqi/staked-avax.json +954 -954
  63. package/build/abi/camelot/CamelotFactory.json +494 -494
  64. package/build/abi/camelot/CamelotPair.json +1027 -1027
  65. package/build/abi/chainlink.json +323 -323
  66. package/build/abi/curve-v1/StableSwap3Pool.json +838 -838
  67. package/build/abi/curve-v1/StableSwapBBTC.json +1017 -1017
  68. package/build/abi/curve-v1/StableSwapDUSD.json +1004 -1004
  69. package/build/abi/curve-v1/StableSwapEURS.json +868 -868
  70. package/build/abi/curve-v1/StableSwapGUSD.json +1004 -1004
  71. package/build/abi/curve-v1/StableSwapHBTC.json +838 -838
  72. package/build/abi/curve-v1/StableSwapHUSD.json +1004 -1004
  73. package/build/abi/curve-v1/StableSwapLinkUSD.json +1004 -1004
  74. package/build/abi/curve-v1/StableSwapMUSD.json +1004 -1004
  75. package/build/abi/curve-v1/StableSwapOBTC.json +1017 -1017
  76. package/build/abi/curve-v1/StableSwapPBTC.json +1017 -1017
  77. package/build/abi/curve-v1/StableSwapRSV.json +1004 -1004
  78. package/build/abi/curve-v1/StableSwapRen.json +851 -851
  79. package/build/abi/curve-v1/StableSwapSBTC.json +851 -851
  80. package/build/abi/curve-v1/StableSwapSETH.json +850 -850
  81. package/build/abi/curve-v1/StableSwapSLINK.json +899 -899
  82. package/build/abi/curve-v1/StableSwapSTETH.json +895 -895
  83. package/build/abi/curve-v1/StableSwapSUSD.json +760 -760
  84. package/build/abi/curve-v1/StableSwapTBTC.json +1017 -1017
  85. package/build/abi/curve-v1/StableSwapUSDK.json +1004 -1004
  86. package/build/abi/curve-v1/StableSwapUST.json +1017 -1017
  87. package/build/abi/curve-v1-factory/FactoryCurveV1.json +508 -508
  88. package/build/abi/curve-v1-factory/ThreePool.json +468 -468
  89. package/build/abi/curve-v2/GenericFactoryZap.json +233 -233
  90. package/build/abi/dexalot/DexalotMainnetRFQ.json +952 -952
  91. package/build/abi/dodo-v2-proxy.json +565 -565
  92. package/build/abi/erc20.json +308 -308
  93. package/build/abi/etherfi/eETHPool.json +9 -9
  94. package/build/abi/etherfi/weETH.json +20 -20
  95. package/build/abi/gmx/fast-price-events.json +70 -70
  96. package/build/abi/gmx/fast-price-feed.json +748 -748
  97. package/build/abi/gmx/reader.json +337 -337
  98. package/build/abi/gmx/vault-price-feed.json +477 -477
  99. package/build/abi/gmx/vault.json +2002 -2002
  100. package/build/abi/hashflow/HashflowRouter.abi.json +1539 -1539
  101. package/build/abi/jarvis/ChainlinkAccessControlledOffchainAggregator.json +1009 -1009
  102. package/build/abi/jarvis/SynthereumPriceFeed.json +381 -381
  103. package/build/abi/jarvis/jarvis-v6-pool.json +1041 -1041
  104. package/build/abi/kyberdmm/kyber-dmm-exchange-router.abi.json +1148 -1148
  105. package/build/abi/kyberdmm/kyber-dmm-factory.abi.json +335 -335
  106. package/build/abi/kyberdmm/kyber-dmm-pool.abi.json +803 -803
  107. package/build/abi/maker-psm/psm.json +243 -243
  108. package/build/abi/maker-psm/vat.json +363 -363
  109. package/build/abi/maverick-v1/pool-inspector.json +216 -216
  110. package/build/abi/maverick-v1/pool.json +1111 -1111
  111. package/build/abi/maverick-v1/router.json +389 -389
  112. package/build/abi/multi-v2.json +313 -313
  113. package/build/abi/nerve/axial-pool.json +693 -693
  114. package/build/abi/nerve/iron-v2-pool.json +785 -785
  115. package/build/abi/nerve/nerve-pool.json +1035 -1035
  116. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +773 -773
  117. package/build/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +781 -781
  118. package/build/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +300 -300
  119. package/build/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +1039 -1039
  120. package/build/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +285 -285
  121. package/build/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -583
  122. package/build/abi/paraswap-limit-orders/AugustusRFQ.abi.json +1081 -1081
  123. package/build/abi/permit/IERC20Permit.json +45 -45
  124. package/build/abi/permit/IERC20PermitLegacy.json +50 -50
  125. package/build/abi/platypus/asset.json +490 -490
  126. package/build/abi/platypus/avax-pool.json +820 -820
  127. package/build/abi/platypus/oracle.json +119 -119
  128. package/build/abi/platypus/pool.json +677 -677
  129. package/build/abi/polygon-migration/PolygonMigration.abi.json +364 -364
  130. package/build/abi/quick-perps/fast-price-events.json +70 -70
  131. package/build/abi/quick-perps/fast-price-feed.json +741 -741
  132. package/build/abi/quick-perps/reader.json +313 -313
  133. package/build/abi/quick-perps/vault-price-feed.json +323 -323
  134. package/build/abi/quick-perps/vault.json +1953 -1953
  135. package/build/abi/ramses-v2/RamsesV2Pool.abi.json +1599 -1599
  136. package/build/abi/smardex/all/smardex-router.json +648 -648
  137. package/build/abi/smardex/layer-1/smardex-factory.json +242 -242
  138. package/build/abi/smardex/layer-1/smardex-pool.json +506 -506
  139. package/build/abi/smardex/layer-2/smardex-factory.json +185 -185
  140. package/build/abi/smardex/layer-2/smardex-pool.json +578 -578
  141. package/build/abi/solidly/SolidlyFactory.json +147 -147
  142. package/build/abi/solidly/SolidlyPair.json +658 -658
  143. package/build/abi/solidly-v3/SolidlyV3Pool.abi.json +738 -738
  144. package/build/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +375 -375
  145. package/build/abi/stETH.json +735 -735
  146. package/build/abi/swETH.json +1086 -1086
  147. package/build/abi/swaap-v1/pool.json +1346 -1346
  148. package/build/abi/swaap-v2/vault.json +918 -918
  149. package/build/abi/synthetix/CombinedSynthetix.abi.json +422 -422
  150. package/build/abi/uniswap-v2/biswap-pool.json +501 -501
  151. package/build/abi/uniswap-v2/excalibur-pool.json +881 -881
  152. package/build/abi/uniswap-v2/mdex-factory.json +759 -759
  153. package/build/abi/uniswap-v2/uniswap-v2-factory.json +125 -125
  154. package/build/abi/uniswap-v2/uniswap-v2-pool.json +461 -461
  155. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  156. package/build/abi/uniswap-v3/UniswapMulti.abi.json +52 -52
  157. package/build/abi/uniswap-v3/UniswapV3Factory.abi.json +148 -148
  158. package/build/abi/uniswap-v3/UniswapV3Pool.abi.json +988 -988
  159. package/build/abi/uniswap-v3/UniswapV3QuoterV2.abi.json +155 -155
  160. package/build/abi/uniswap-v3/UniswapV3Router.abi.json +274 -274
  161. package/build/abi/uniswap-v3/UniswapV3StateMulticall.abi.json +781 -781
  162. package/build/abi/weth.abi.json +153 -153
  163. package/build/abi/wombat/asset.json +743 -743
  164. package/build/abi/wombat/bmw.json +1247 -1247
  165. package/build/abi/wombat/pool-v2.json +1289 -1289
  166. package/build/abi/wombat/pool-v3.json +2013 -2013
  167. package/build/abi/wombat/pool.json +1289 -0
  168. package/build/abi/woo-fi-v2/IntegrationHelper.abi.json +116 -116
  169. package/build/abi/woo-fi-v2/WooOracleV2.abi.json +358 -358
  170. package/build/abi/woo-fi-v2/WooPPV2.abi.json +580 -580
  171. package/build/abi/wstETH.json +252 -252
  172. package/build/abi/zrx.v2.json +1967 -1967
  173. package/build/abi/zrx.v3.json +3454 -3454
  174. package/build/abi/zrx.v4.json +2193 -2193
  175. package/build/bigint-constants.d.ts +11 -11
  176. package/build/bigint-constants.js +19 -19
  177. package/build/bignumber-constants.d.ts +10 -10
  178. package/build/bignumber-constants.js +24 -24
  179. package/build/calldata-gas-cost.d.ts +19 -19
  180. package/build/calldata-gas-cost.js +26 -26
  181. package/build/composed-event-subscriber.d.ts +26 -26
  182. package/build/composed-event-subscriber.js +71 -71
  183. package/build/config.d.ts +11 -11
  184. package/build/config.js +402 -404
  185. package/build/config.js.map +1 -1
  186. package/build/constants.d.ts +35 -35
  187. package/build/constants.js +47 -47
  188. package/build/dex/OneInchLp.d.ts +24 -24
  189. package/build/dex/OneInchLp.js +42 -42
  190. package/build/dex/aave-v1/aave-v1.d.ts +33 -33
  191. package/build/dex/aave-v1/aave-v1.js +157 -157
  192. package/build/dex/aave-v1/config.d.ts +11 -11
  193. package/build/dex/aave-v1/config.js +19 -19
  194. package/build/dex/aave-v1/tokens-mainnet.json +134 -134
  195. package/build/dex/aave-v1/tokens.d.ts +3 -3
  196. package/build/dex/aave-v1/tokens.js +49 -49
  197. package/build/dex/aave-v1/types.d.ts +12 -12
  198. package/build/dex/aave-v1/types.js +2 -2
  199. package/build/dex/aave-v2/aave-v2.d.ts +32 -32
  200. package/build/dex/aave-v2/aave-v2.js +228 -228
  201. package/build/dex/aave-v2/config.d.ts +14 -14
  202. package/build/dex/aave-v2/config.js +48 -48
  203. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  204. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  205. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  206. package/build/dex/aave-v2/tokens.d.ts +8 -8
  207. package/build/dex/aave-v2/tokens.js +62 -62
  208. package/build/dex/aave-v2/types.d.ts +33 -33
  209. package/build/dex/aave-v2/types.js +10 -10
  210. package/build/dex/aave-v3/aave-v3.d.ts +45 -45
  211. package/build/dex/aave-v3/aave-v3.js +165 -165
  212. package/build/dex/aave-v3/config.d.ts +11 -11
  213. package/build/dex/aave-v3/config.js +138 -138
  214. package/build/dex/aave-v3/tokens.d.ts +11 -11
  215. package/build/dex/aave-v3/tokens.js +50 -50
  216. package/build/dex/aave-v3/types.d.ts +37 -37
  217. package/build/dex/aave-v3/types.js +10 -10
  218. package/build/dex/aave-v3/utils.d.ts +7 -7
  219. package/build/dex/aave-v3/utils.js +84 -84
  220. package/build/dex/algebra/algebra-factory.d.ts +25 -25
  221. package/build/dex/algebra/algebra-factory.js +42 -42
  222. package/build/dex/algebra/algebra-pool-v1_1.d.ts +69 -69
  223. package/build/dex/algebra/algebra-pool-v1_1.js +509 -509
  224. package/build/dex/algebra/algebra-pool-v1_9.d.ts +54 -54
  225. package/build/dex/algebra/algebra-pool-v1_9.js +355 -355
  226. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.d.ts +16 -16
  227. package/build/dex/algebra/algebra-pool-v1_9_bidirectional_fee.js +25 -25
  228. package/build/dex/algebra/algebra.d.ts +64 -64
  229. package/build/dex/algebra/algebra.js +702 -702
  230. package/build/dex/algebra/config.d.ts +4 -4
  231. package/build/dex/algebra/config.js +101 -117
  232. package/build/dex/algebra/config.js.map +1 -1
  233. package/build/dex/algebra/constants.d.ts +5 -5
  234. package/build/dex/algebra/constants.js +14 -14
  235. package/build/dex/algebra/lib/AlgebraMath.d.ts +13 -13
  236. package/build/dex/algebra/lib/AlgebraMath.js +446 -446
  237. package/build/dex/algebra/lib/Constants.d.ts +5 -5
  238. package/build/dex/algebra/lib/Constants.js +9 -9
  239. package/build/dex/algebra/lib/TickManager.d.ts +4 -4
  240. package/build/dex/algebra/lib/TickManager.js +59 -59
  241. package/build/dex/algebra/lib/TickTable.d.ts +10 -10
  242. package/build/dex/algebra/lib/TickTable.js +159 -159
  243. package/build/dex/algebra/lib/yul-helper.d.ts +9 -9
  244. package/build/dex/algebra/lib/yul-helper.js +27 -27
  245. package/build/dex/algebra/scripts/validate-state.d.ts +1 -1
  246. package/build/dex/algebra/scripts/validate-state.js +194 -194
  247. package/build/dex/algebra/types.d.ts +126 -126
  248. package/build/dex/algebra/types.js +9 -9
  249. package/build/dex/algebra/utils.d.ts +7 -7
  250. package/build/dex/algebra/utils.js +171 -171
  251. package/build/dex/augustus-rfq.d.ts +54 -54
  252. package/build/dex/augustus-rfq.js +100 -100
  253. package/build/dex/bProtocol.d.ts +18 -18
  254. package/build/dex/bProtocol.js +38 -38
  255. package/build/dex/balancer-v1/balancer-v1-math.d.ts +2 -2
  256. package/build/dex/balancer-v1/balancer-v1-math.js +115 -115
  257. package/build/dex/balancer-v1/balancer-v1-pool.d.ts +50 -50
  258. package/build/dex/balancer-v1/balancer-v1-pool.js +149 -149
  259. package/build/dex/balancer-v1/balancer-v1.d.ts +45 -45
  260. package/build/dex/balancer-v1/balancer-v1.js +327 -327
  261. package/build/dex/balancer-v1/config.d.ts +9 -9
  262. package/build/dex/balancer-v1/config.js +25 -25
  263. package/build/dex/balancer-v1/optimizer.d.ts +2 -2
  264. package/build/dex/balancer-v1/optimizer.js +65 -65
  265. package/build/dex/balancer-v1/types.d.ts +84 -84
  266. package/build/dex/balancer-v1/types.js +12 -12
  267. package/build/dex/balancer-v1/utils.d.ts +3 -3
  268. package/build/dex/balancer-v1/utils.js +43 -43
  269. package/build/dex/balancer-v2/balancer-v2-math.d.ts +36 -36
  270. package/build/dex/balancer-v2/balancer-v2-math.js +477 -477
  271. package/build/dex/balancer-v2/balancer-v2.d.ts +100 -100
  272. package/build/dex/balancer-v2/balancer-v2.js +873 -873
  273. package/build/dex/balancer-v2/config.d.ts +4 -4
  274. package/build/dex/balancer-v2/config.js +76 -76
  275. package/build/dex/balancer-v2/constants.d.ts +7 -7
  276. package/build/dex/balancer-v2/constants.js +15 -15
  277. package/build/dex/balancer-v2/optimizer.d.ts +2 -2
  278. package/build/dex/balancer-v2/optimizer.js +56 -56
  279. package/build/dex/balancer-v2/pools/balancer-v2-pool.d.ts +25 -25
  280. package/build/dex/balancer-v2/pools/balancer-v2-pool.js +106 -106
  281. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.d.ts +32 -32
  282. package/build/dex/balancer-v2/pools/gyro/Gyro3Pool.js +148 -148
  283. package/build/dex/balancer-v2/pools/gyro/GyroEPool.d.ts +37 -37
  284. package/build/dex/balancer-v2/pools/gyro/GyroEPool.js +221 -221
  285. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.d.ts +2 -2
  286. package/build/dex/balancer-v2/pools/gyro/gyro-helpers.js +18 -18
  287. package/build/dex/balancer-v2/pools/linear/LinearMath.d.ts +20 -20
  288. package/build/dex/balancer-v2/pools/linear/LinearMath.js +178 -178
  289. package/build/dex/balancer-v2/pools/linear/LinearPool.d.ts +50 -50
  290. package/build/dex/balancer-v2/pools/linear/LinearPool.js +457 -457
  291. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.d.ts +10 -10
  292. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.js +313 -313
  293. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.d.ts +50 -50
  294. package/build/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.js +366 -366
  295. package/build/dex/balancer-v2/pools/stable/StableMath.d.ts +7 -7
  296. package/build/dex/balancer-v2/pools/stable/StableMath.js +109 -109
  297. package/build/dex/balancer-v2/pools/stable/StablePool.d.ts +30 -30
  298. package/build/dex/balancer-v2/pools/stable/StablePool.js +129 -129
  299. package/build/dex/balancer-v2/pools/weighted/WeightedMath.d.ts +6 -6
  300. package/build/dex/balancer-v2/pools/weighted/WeightedMath.js +60 -60
  301. package/build/dex/balancer-v2/pools/weighted/WeightedPool.d.ts +30 -30
  302. package/build/dex/balancer-v2/pools/weighted/WeightedPool.js +111 -111
  303. package/build/dex/balancer-v2/queryOnChain.d.ts +1 -1
  304. package/build/dex/balancer-v2/queryOnChain.js +39 -39
  305. package/build/dex/balancer-v2/types.d.ts +160 -160
  306. package/build/dex/balancer-v2/types.js +31 -31
  307. package/build/dex/balancer-v2/utils.d.ts +26 -26
  308. package/build/dex/balancer-v2/utils.js +144 -144
  309. package/build/dex/bancor.d.ts +26 -26
  310. package/build/dex/bancor.js +57 -57
  311. package/build/dex/camelot/camelot.d.ts +112 -112
  312. package/build/dex/camelot/camelot.js +543 -543
  313. package/build/dex/camelot/config.d.ts +4 -4
  314. package/build/dex/camelot/config.js +21 -21
  315. package/build/dex/camelot/types.d.ts +11 -11
  316. package/build/dex/camelot/types.js +2 -2
  317. package/build/dex/compound.d.ts +18 -18
  318. package/build/dex/compound.js +45 -45
  319. package/build/dex/curve-v1/config.d.ts +4 -4
  320. package/build/dex/curve-v1/config.js +1233 -1233
  321. package/build/dex/curve-v1/constants.d.ts +2 -2
  322. package/build/dex/curve-v1/constants.js +12 -12
  323. package/build/dex/curve-v1/curve-v1.d.ts +77 -77
  324. package/build/dex/curve-v1/curve-v1.js +797 -797
  325. package/build/dex/curve-v1/forks/curve-forks/config.d.ts +4 -4
  326. package/build/dex/curve-v1/forks/curve-forks/config.js +176 -176
  327. package/build/dex/curve-v1/forks/curve-forks/curve-forks.d.ts +13 -13
  328. package/build/dex/curve-v1/forks/curve-forks/curve-forks.js +52 -52
  329. package/build/dex/curve-v1/forks/swerve/config.d.ts +4 -4
  330. package/build/dex/curve-v1/forks/swerve/config.js +46 -46
  331. package/build/dex/curve-v1/forks/swerve/swerve.d.ts +16 -16
  332. package/build/dex/curve-v1/forks/swerve/swerve.js +45 -45
  333. package/build/dex/curve-v1/pools/3pool.d.ts +19 -19
  334. package/build/dex/curve-v1/pools/3pool.js +195 -195
  335. package/build/dex/curve-v1/pools/DUSDpool.d.ts +8 -8
  336. package/build/dex/curve-v1/pools/DUSDpool.js +27 -27
  337. package/build/dex/curve-v1/pools/EURSpool.d.ts +7 -7
  338. package/build/dex/curve-v1/pools/EURSpool.js +26 -26
  339. package/build/dex/curve-v1/pools/GUSDpool.d.ts +8 -8
  340. package/build/dex/curve-v1/pools/GUSDpool.js +27 -27
  341. package/build/dex/curve-v1/pools/HUSDpool.d.ts +8 -8
  342. package/build/dex/curve-v1/pools/HUSDpool.js +27 -27
  343. package/build/dex/curve-v1/pools/LinkUSDpool.d.ts +8 -8
  344. package/build/dex/curve-v1/pools/LinkUSDpool.js +27 -27
  345. package/build/dex/curve-v1/pools/MUSDpool.d.ts +8 -8
  346. package/build/dex/curve-v1/pools/MUSDpool.js +27 -27
  347. package/build/dex/curve-v1/pools/bBTCpool.d.ts +8 -8
  348. package/build/dex/curve-v1/pools/bBTCpool.js +27 -27
  349. package/build/dex/curve-v1/pools/curve-metapool.d.ts +76 -76
  350. package/build/dex/curve-v1/pools/curve-metapool.js +742 -742
  351. package/build/dex/curve-v1/pools/curve-pool.d.ts +57 -57
  352. package/build/dex/curve-v1/pools/curve-pool.js +367 -367
  353. package/build/dex/curve-v1/pools/getstate-multicall.d.ts +3 -3
  354. package/build/dex/curve-v1/pools/getstate-multicall.js +89 -89
  355. package/build/dex/curve-v1/pools/hBTCpool.d.ts +7 -7
  356. package/build/dex/curve-v1/pools/hBTCpool.js +26 -26
  357. package/build/dex/curve-v1/pools/oBTCpool.d.ts +8 -8
  358. package/build/dex/curve-v1/pools/oBTCpool.js +27 -27
  359. package/build/dex/curve-v1/pools/pBTCpool.d.ts +8 -8
  360. package/build/dex/curve-v1/pools/pBTCpool.js +27 -27
  361. package/build/dex/curve-v1/pools/renpool.d.ts +7 -7
  362. package/build/dex/curve-v1/pools/renpool.js +27 -27
  363. package/build/dex/curve-v1/pools/rsvpool.d.ts +8 -8
  364. package/build/dex/curve-v1/pools/rsvpool.js +27 -27
  365. package/build/dex/curve-v1/pools/sBTCpool.d.ts +7 -7
  366. package/build/dex/curve-v1/pools/sBTCpool.js +27 -27
  367. package/build/dex/curve-v1/pools/sETHpool.d.ts +11 -11
  368. package/build/dex/curve-v1/pools/sETHpool.js +38 -38
  369. package/build/dex/curve-v1/pools/sLinkpool.d.ts +7 -7
  370. package/build/dex/curve-v1/pools/sLinkpool.js +26 -26
  371. package/build/dex/curve-v1/pools/sUSDpool.d.ts +12 -12
  372. package/build/dex/curve-v1/pools/sUSDpool.js +82 -82
  373. package/build/dex/curve-v1/pools/stETHpool.d.ts +10 -10
  374. package/build/dex/curve-v1/pools/stETHpool.js +35 -35
  375. package/build/dex/curve-v1/pools/tBTCpool.d.ts +8 -8
  376. package/build/dex/curve-v1/pools/tBTCpool.js +27 -27
  377. package/build/dex/curve-v1/pools/usdkpool.d.ts +8 -8
  378. package/build/dex/curve-v1/pools/usdkpool.js +27 -27
  379. package/build/dex/curve-v1/pools/usdnpool.js +57 -57
  380. package/build/dex/curve-v1/pools/ustpool.d.ts +8 -8
  381. package/build/dex/curve-v1/pools/ustpool.js +27 -27
  382. package/build/dex/curve-v1/types.d.ts +63 -63
  383. package/build/dex/curve-v1/types.js +13 -13
  384. package/build/dex/curve-v1-factory/config.d.ts +5 -5
  385. package/build/dex/curve-v1-factory/config.js +991 -991
  386. package/build/dex/curve-v1-factory/constants.d.ts +14 -14
  387. package/build/dex/curve-v1-factory/constants.js +29 -29
  388. package/build/dex/curve-v1-factory/curve-v1-factory-node-cache.d.ts +3 -3
  389. package/build/dex/curve-v1-factory/curve-v1-factory-node-cache.js +14 -14
  390. package/build/dex/curve-v1-factory/curve-v1-factory.d.ts +61 -61
  391. package/build/dex/curve-v1-factory/curve-v1-factory.js +663 -663
  392. package/build/dex/curve-v1-factory/curve-v1-pool-manager.d.ts +33 -33
  393. package/build/dex/curve-v1-factory/curve-v1-pool-manager.js +269 -269
  394. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.d.ts +4 -4
  395. package/build/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.js +180 -180
  396. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.d.ts +4 -4
  397. package/build/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.js +67 -67
  398. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.d.ts +4 -4
  399. package/build/dex/curve-v1-factory/price-handlers/functions/_rates.js +80 -80
  400. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.d.ts +4 -4
  401. package/build/dex/curve-v1-factory/price-handlers/functions/_xp.js +84 -84
  402. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.d.ts +4 -4
  403. package/build/dex/curve-v1-factory/price-handlers/functions/_xp_mem.js +74 -74
  404. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.d.ts +4 -4
  405. package/build/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.js +175 -175
  406. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.d.ts +4 -4
  407. package/build/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.js +57 -57
  408. package/build/dex/curve-v1-factory/price-handlers/functions/constants.d.ts +3 -3
  409. package/build/dex/curve-v1-factory/price-handlers/functions/constants.js +483 -483
  410. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.d.ts +4 -4
  411. package/build/dex/curve-v1-factory/price-handlers/functions/get_D.js +256 -256
  412. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.d.ts +4 -4
  413. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_mem.js +82 -82
  414. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.d.ts +4 -4
  415. package/build/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.js +75 -75
  416. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.d.ts +4 -4
  417. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy.js +177 -177
  418. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.d.ts +4 -4
  419. package/build/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.js +190 -190
  420. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.d.ts +4 -4
  421. package/build/dex/curve-v1-factory/price-handlers/functions/get_y.js +208 -208
  422. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.d.ts +4 -4
  423. package/build/dex/curve-v1-factory/price-handlers/functions/get_y_D.js +138 -138
  424. package/build/dex/curve-v1-factory/price-handlers/functions/utils.d.ts +8 -8
  425. package/build/dex/curve-v1-factory/price-handlers/functions/utils.js +52 -52
  426. package/build/dex/curve-v1-factory/price-handlers/price-handler.d.ts +12 -12
  427. package/build/dex/curve-v1-factory/price-handlers/price-handler.js +85 -85
  428. package/build/dex/curve-v1-factory/price-handlers/types.d.ts +34 -34
  429. package/build/dex/curve-v1-factory/price-handlers/types.js +2 -2
  430. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.d.ts +27 -27
  431. package/build/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.js +208 -208
  432. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.d.ts +24 -24
  433. package/build/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.js +129 -129
  434. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.d.ts +10 -10
  435. package/build/dex/curve-v1-factory/state-polling-pools/polling-manager.js +142 -142
  436. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.d.ts +42 -42
  437. package/build/dex/curve-v1-factory/state-polling-pools/pool-polling-base.js +114 -114
  438. package/build/dex/curve-v1-factory/types.d.ts +209 -209
  439. package/build/dex/curve-v1-factory/types.js +73 -73
  440. package/build/dex/curve-v2.d.ts +58 -58
  441. package/build/dex/curve-v2.js +179 -179
  442. package/build/dex/dexalot/config.d.ts +4 -4
  443. package/build/dex/dexalot/config.js +17 -24
  444. package/build/dex/dexalot/config.js.map +1 -1
  445. package/build/dex/dexalot/constants.d.ts +16 -16
  446. package/build/dex/dexalot/constants.js +22 -22
  447. package/build/dex/dexalot/dexalot.d.ts +70 -70
  448. package/build/dex/dexalot/dexalot.js +667 -667
  449. package/build/dex/dexalot/rate-fetcher.d.ts +28 -28
  450. package/build/dex/dexalot/rate-fetcher.js +99 -99
  451. package/build/dex/dexalot/types.d.ts +114 -114
  452. package/build/dex/dexalot/types.js +11 -11
  453. package/build/dex/dexalot/validators.d.ts +5 -5
  454. package/build/dex/dexalot/validators.js +44 -44
  455. package/build/dex/dodo-v1.d.ts +33 -33
  456. package/build/dex/dodo-v1.js +62 -62
  457. package/build/dex/dodo-v2.d.ts +49 -49
  458. package/build/dex/dodo-v2.js +93 -93
  459. package/build/dex/etherfi.d.ts +26 -26
  460. package/build/dex/etherfi.js +95 -95
  461. package/build/dex/generic-rfq/e2e-test-config.d.ts +9 -9
  462. package/build/dex/generic-rfq/e2e-test-config.js +32 -32
  463. package/build/dex/generic-rfq/fetch-mm-api.d.ts +1 -1
  464. package/build/dex/generic-rfq/fetch-mm-api.js +195 -195
  465. package/build/dex/generic-rfq/generic-rfq.d.ts +34 -34
  466. package/build/dex/generic-rfq/generic-rfq.js +197 -197
  467. package/build/dex/generic-rfq/rate-fetcher.d.ts +39 -39
  468. package/build/dex/generic-rfq/rate-fetcher.js +281 -281
  469. package/build/dex/generic-rfq/security.d.ts +3 -3
  470. package/build/dex/generic-rfq/security.js +36 -36
  471. package/build/dex/generic-rfq/types.d.ts +87 -87
  472. package/build/dex/generic-rfq/types.js +9 -9
  473. package/build/dex/generic-rfq/utils.d.ts +6 -6
  474. package/build/dex/generic-rfq/utils.js +53 -53
  475. package/build/dex/generic-rfq/validators.d.ts +11 -11
  476. package/build/dex/generic-rfq/validators.js +173 -173
  477. package/build/dex/gmx/config.d.ts +11 -11
  478. package/build/dex/gmx/config.js +76 -76
  479. package/build/dex/gmx/fast-price-feed.d.ts +26 -26
  480. package/build/dex/gmx/fast-price-feed.js +175 -175
  481. package/build/dex/gmx/gmx.d.ts +52 -52
  482. package/build/dex/gmx/gmx.js +203 -203
  483. package/build/dex/gmx/pool.d.ts +21 -21
  484. package/build/dex/gmx/pool.js +207 -207
  485. package/build/dex/gmx/types.d.ts +100 -100
  486. package/build/dex/gmx/types.js +2 -2
  487. package/build/dex/gmx/usdg.d.ts +15 -15
  488. package/build/dex/gmx/usdg.js +60 -60
  489. package/build/dex/gmx/vault-price-feed.d.ts +47 -47
  490. package/build/dex/gmx/vault-price-feed.js +232 -232
  491. package/build/dex/gmx/vault-utils.d.ts +8 -8
  492. package/build/dex/gmx/vault-utils.js +40 -40
  493. package/build/dex/gmx/vault.d.ts +46 -46
  494. package/build/dex/gmx/vault.js +165 -165
  495. package/build/dex/hashflow/config.d.ts +4 -4
  496. package/build/dex/hashflow/config.js +52 -52
  497. package/build/dex/hashflow/constants.d.ts +38 -38
  498. package/build/dex/hashflow/constants.js +45 -45
  499. package/build/dex/hashflow/hashflow.d.ts +77 -77
  500. package/build/dex/hashflow/hashflow.js +657 -657
  501. package/build/dex/hashflow/rate-fetcher.d.ts +21 -21
  502. package/build/dex/hashflow/rate-fetcher.js +64 -64
  503. package/build/dex/hashflow/types.d.ts +68 -68
  504. package/build/dex/hashflow/types.js +23 -23
  505. package/build/dex/hashflow/validators.d.ts +4 -4
  506. package/build/dex/hashflow/validators.js +37 -37
  507. package/build/dex/idex.d.ts +49 -49
  508. package/build/dex/idex.js +2 -2
  509. package/build/dex/index.d.ts +38 -38
  510. package/build/dex/index.js +298 -298
  511. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.d.ts +15 -15
  512. package/build/dex/jarvis-v6/chainLinkpriceFeed-event.js +49 -49
  513. package/build/dex/jarvis-v6/config.d.ts +4 -4
  514. package/build/dex/jarvis-v6/config.js +243 -243
  515. package/build/dex/jarvis-v6/jarvis-v6-events.d.ts +27 -27
  516. package/build/dex/jarvis-v6/jarvis-v6-events.js +47 -47
  517. package/build/dex/jarvis-v6/jarvis-v6.d.ts +48 -48
  518. package/build/dex/jarvis-v6/jarvis-v6.js +277 -277
  519. package/build/dex/jarvis-v6/syntheteumPool-event.d.ts +15 -15
  520. package/build/dex/jarvis-v6/syntheteumPool-event.js +46 -46
  521. package/build/dex/jarvis-v6/types.d.ts +48 -48
  522. package/build/dex/jarvis-v6/types.js +8 -8
  523. package/build/dex/jarvis-v6/utils.d.ts +13 -13
  524. package/build/dex/jarvis-v6/utils.js +74 -74
  525. package/build/dex/jarvis.d.ts +55 -55
  526. package/build/dex/jarvis.js +104 -104
  527. package/build/dex/kyberdmm/config.d.ts +9 -9
  528. package/build/dex/kyberdmm/config.js +58 -58
  529. package/build/dex/kyberdmm/fee-formula.d.ts +15 -15
  530. package/build/dex/kyberdmm/fee-formula.js +87 -87
  531. package/build/dex/kyberdmm/kyberdmm.d.ts +54 -54
  532. package/build/dex/kyberdmm/kyberdmm.js +405 -405
  533. package/build/dex/kyberdmm/math-ext.d.ts +2 -2
  534. package/build/dex/kyberdmm/math-ext.js +26 -26
  535. package/build/dex/kyberdmm/pool.d.ts +50 -50
  536. package/build/dex/kyberdmm/pool.js +153 -153
  537. package/build/dex/kyberdmm/types.d.ts +81 -81
  538. package/build/dex/kyberdmm/types.js +8 -8
  539. package/build/dex/lido.d.ts +19 -19
  540. package/build/dex/lido.js +41 -41
  541. package/build/dex/limit-order-exchange.d.ts +10 -10
  542. package/build/dex/limit-order-exchange.js +19 -19
  543. package/build/dex/mStable.d.ts +44 -44
  544. package/build/dex/mStable.js +74 -74
  545. package/build/dex/maker-psm/config.d.ts +11 -11
  546. package/build/dex/maker-psm/config.js +52 -52
  547. package/build/dex/maker-psm/maker-psm.d.ts +93 -93
  548. package/build/dex/maker-psm/maker-psm.js +374 -374
  549. package/build/dex/maker-psm/types.d.ts +25 -25
  550. package/build/dex/maker-psm/types.js +2 -2
  551. package/build/dex/maverick-v1/config.d.ts +7 -7
  552. package/build/dex/maverick-v1/config.js +31 -31
  553. package/build/dex/maverick-v1/constants.d.ts +1 -1
  554. package/build/dex/maverick-v1/constants.js +4 -4
  555. package/build/dex/maverick-v1/maverick-math/maverick-basic-math.d.ts +21 -21
  556. package/build/dex/maverick-v1/maverick-math/maverick-basic-math.js +169 -169
  557. package/build/dex/maverick-v1/maverick-math/maverick-bin-map.d.ts +25 -25
  558. package/build/dex/maverick-v1/maverick-math/maverick-bin-map.js +167 -167
  559. package/build/dex/maverick-v1/maverick-math/maverick-pool-math.d.ts +42 -42
  560. package/build/dex/maverick-v1/maverick-math/maverick-pool-math.js +366 -366
  561. package/build/dex/maverick-v1/maverick-v1-pool.d.ts +59 -59
  562. package/build/dex/maverick-v1/maverick-v1-pool.js +289 -289
  563. package/build/dex/maverick-v1/maverick-v1.d.ts +45 -45
  564. package/build/dex/maverick-v1/maverick-v1.js +317 -317
  565. package/build/dex/maverick-v1/subgraph-queries.d.ts +2 -2
  566. package/build/dex/maverick-v1/subgraph-queries.js +62 -62
  567. package/build/dex/maverick-v1/types.d.ts +77 -77
  568. package/build/dex/maverick-v1/types.js +8 -8
  569. package/build/dex/nerve/config.d.ts +6 -6
  570. package/build/dex/nerve/config.js +1033 -1033
  571. package/build/dex/nerve/nerve-math.d.ts +32 -32
  572. package/build/dex/nerve/nerve-math.js +219 -219
  573. package/build/dex/nerve/nerve-metapool.js +184 -184
  574. package/build/dex/nerve/nerve-pool.d.ts +45 -45
  575. package/build/dex/nerve/nerve-pool.js +301 -301
  576. package/build/dex/nerve/nerve.d.ts +44 -44
  577. package/build/dex/nerve/nerve.js +276 -276
  578. package/build/dex/nerve/types.d.ts +53 -53
  579. package/build/dex/nerve/types.js +7 -7
  580. package/build/dex/nerve/utils.d.ts +9 -9
  581. package/build/dex/nerve/utils.js +37 -37
  582. package/build/dex/onebit.d.ts +25 -25
  583. package/build/dex/onebit.js +41 -41
  584. package/build/dex/pancakeswap-v3/config.d.ts +4 -4
  585. package/build/dex/pancakeswap-v3/config.js +111 -96
  586. package/build/dex/pancakeswap-v3/config.js.map +1 -1
  587. package/build/dex/pancakeswap-v3/constants.d.ts +24 -24
  588. package/build/dex/pancakeswap-v3/constants.js +29 -29
  589. package/build/dex/pancakeswap-v3/contract-math/BitMath.d.ts +4 -4
  590. package/build/dex/pancakeswap-v3/contract-math/BitMath.js +92 -92
  591. package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.d.ts +3 -3
  592. package/build/dex/pancakeswap-v3/contract-math/FixedPoint128.js +7 -7
  593. package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.d.ts +4 -4
  594. package/build/dex/pancakeswap-v3/contract-math/FixedPoint96.js +8 -8
  595. package/build/dex/pancakeswap-v3/contract-math/FullMath.d.ts +4 -4
  596. package/build/dex/pancakeswap-v3/contract-math/FullMath.js +18 -18
  597. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.d.ts +3 -3
  598. package/build/dex/pancakeswap-v3/contract-math/LiquidityMath.js +21 -21
  599. package/build/dex/pancakeswap-v3/contract-math/Oracle.d.ts +10 -10
  600. package/build/dex/pancakeswap-v3/contract-math/Oracle.js +132 -132
  601. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.d.ts +10 -10
  602. package/build/dex/pancakeswap-v3/contract-math/SqrtPriceMath.js +90 -90
  603. package/build/dex/pancakeswap-v3/contract-math/SwapMath.d.ts +8 -8
  604. package/build/dex/pancakeswap-v3/contract-math/SwapMath.js +69 -69
  605. package/build/dex/pancakeswap-v3/contract-math/Tick.d.ts +7 -7
  606. package/build/dex/pancakeswap-v3/contract-math/Tick.js +44 -44
  607. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.d.ts +8 -8
  608. package/build/dex/pancakeswap-v3/contract-math/TickBitMap.js +86 -86
  609. package/build/dex/pancakeswap-v3/contract-math/TickMath.d.ts +8 -8
  610. package/build/dex/pancakeswap-v3/contract-math/TickMath.js +161 -161
  611. package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.d.ts +3 -3
  612. package/build/dex/pancakeswap-v3/contract-math/UnsafeMath.js +9 -9
  613. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.d.ts +18 -18
  614. package/build/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.js +400 -400
  615. package/build/dex/pancakeswap-v3/contract-math/utils.d.ts +3 -3
  616. package/build/dex/pancakeswap-v3/contract-math/utils.js +15 -15
  617. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.d.ts +26 -26
  618. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js +43 -43
  619. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +50 -50
  620. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +318 -318
  621. package/build/dex/pancakeswap-v3/pancakeswap-v3.d.ts +58 -58
  622. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +659 -655
  623. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  624. package/build/dex/pancakeswap-v3/utils.d.ts +4 -4
  625. package/build/dex/pancakeswap-v3/utils.js +56 -56
  626. package/build/dex/paraswap-limit-orders/config.d.ts +4 -4
  627. package/build/dex/paraswap-limit-orders/config.js +66 -66
  628. package/build/dex/paraswap-limit-orders/constant.d.ts +5 -5
  629. package/build/dex/paraswap-limit-orders/constant.js +25 -25
  630. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.d.ts +43 -43
  631. package/build/dex/paraswap-limit-orders/paraswap-limit-orders.js +386 -386
  632. package/build/dex/paraswap-limit-orders/types.d.ts +69 -69
  633. package/build/dex/paraswap-limit-orders/types.js +2 -2
  634. package/build/dex/paraswap-limit-orders/utils.d.ts +27 -27
  635. package/build/dex/paraswap-limit-orders/utils.js +39 -39
  636. package/build/dex/platypus/asset.d.ts +14 -14
  637. package/build/dex/platypus/asset.js +96 -96
  638. package/build/dex/platypus/config.d.ts +11 -11
  639. package/build/dex/platypus/config.js +68 -68
  640. package/build/dex/platypus/platypus.d.ts +62 -62
  641. package/build/dex/platypus/platypus.js +441 -441
  642. package/build/dex/platypus/pool-avax.d.ts +8 -8
  643. package/build/dex/platypus/pool-avax.js +53 -53
  644. package/build/dex/platypus/pool-base.d.ts +19 -19
  645. package/build/dex/platypus/pool-base.js +85 -85
  646. package/build/dex/platypus/pool-pure.d.ts +8 -8
  647. package/build/dex/platypus/pool-pure.js +36 -36
  648. package/build/dex/platypus/pool-subscriber.d.ts +14 -14
  649. package/build/dex/platypus/pool-subscriber.js +166 -166
  650. package/build/dex/platypus/pool.d.ts +8 -8
  651. package/build/dex/platypus/pool.js +57 -57
  652. package/build/dex/platypus/types.d.ts +92 -92
  653. package/build/dex/platypus/types.js +9 -9
  654. package/build/dex/polygon-migrator/config.d.ts +11 -11
  655. package/build/dex/polygon-migrator/config.js +20 -20
  656. package/build/dex/polygon-migrator/constants.d.ts +1 -1
  657. package/build/dex/polygon-migrator/constants.js +4 -4
  658. package/build/dex/polygon-migrator/polygon-migrator.d.ts +48 -48
  659. package/build/dex/polygon-migrator/polygon-migrator.js +113 -113
  660. package/build/dex/polygon-migrator/types.d.ts +11 -11
  661. package/build/dex/polygon-migrator/types.js +8 -8
  662. package/build/dex/quick-perps/config.d.ts +11 -11
  663. package/build/dex/quick-perps/config.js +26 -26
  664. package/build/dex/quick-perps/fast-price-feed.d.ts +26 -26
  665. package/build/dex/quick-perps/fast-price-feed.js +175 -175
  666. package/build/dex/quick-perps/pool.d.ts +21 -21
  667. package/build/dex/quick-perps/pool.js +224 -224
  668. package/build/dex/quick-perps/quick-perps.d.ts +52 -52
  669. package/build/dex/quick-perps/quick-perps.js +210 -210
  670. package/build/dex/quick-perps/types.d.ts +98 -98
  671. package/build/dex/quick-perps/types.js +2 -2
  672. package/build/dex/quick-perps/usdq.d.ts +15 -15
  673. package/build/dex/quick-perps/usdq.js +60 -60
  674. package/build/dex/quick-perps/vault-price-feed.d.ts +43 -43
  675. package/build/dex/quick-perps/vault-price-feed.js +193 -193
  676. package/build/dex/quick-perps/vault-utils.d.ts +8 -8
  677. package/build/dex/quick-perps/vault-utils.js +40 -40
  678. package/build/dex/quick-perps/vault.d.ts +46 -46
  679. package/build/dex/quick-perps/vault.js +165 -165
  680. package/build/dex/quickswap/config.d.ts +3 -3
  681. package/build/dex/quickswap/config.js +23 -23
  682. package/build/dex/quickswap/quickswap-v3.d.ts +21 -21
  683. package/build/dex/quickswap/quickswap-v3.js +43 -43
  684. package/build/dex/quickswap/spiritswap-v3.d.ts +6 -6
  685. package/build/dex/quickswap/spiritswap-v3.js +18 -18
  686. package/build/dex/quickswap/thena-fusion.d.ts +6 -6
  687. package/build/dex/quickswap/thena-fusion.js +18 -18
  688. package/build/dex/quickswap/types.d.ts +5 -5
  689. package/build/dex/quickswap/types.js +2 -2
  690. package/build/dex/shell.d.ts +25 -25
  691. package/build/dex/shell.js +40 -40
  692. package/build/dex/simple-exchange.d.ts +30 -30
  693. package/build/dex/simple-exchange.js +114 -114
  694. package/build/dex/smardex/config.d.ts +4 -4
  695. package/build/dex/smardex/config.js +63 -63
  696. package/build/dex/smardex/constants.d.ts +18 -18
  697. package/build/dex/smardex/constants.js +32 -32
  698. package/build/dex/smardex/sdk/constants.d.ts +6 -6
  699. package/build/dex/smardex/sdk/constants.js +12 -12
  700. package/build/dex/smardex/sdk/core.d.ts +113 -113
  701. package/build/dex/smardex/sdk/core.js +498 -498
  702. package/build/dex/smardex/sdk/errors.d.ts +15 -15
  703. package/build/dex/smardex/sdk/errors.js +21 -21
  704. package/build/dex/smardex/sdk/types.d.ts +62 -62
  705. package/build/dex/smardex/sdk/types.js +2 -2
  706. package/build/dex/smardex/sdk/utils.d.ts +44 -44
  707. package/build/dex/smardex/sdk/utils.js +132 -132
  708. package/build/dex/smardex/smardex-event-pool.d.ts +28 -28
  709. package/build/dex/smardex/smardex-event-pool.js +118 -118
  710. package/build/dex/smardex/smardex.d.ts +65 -65
  711. package/build/dex/smardex/smardex.js +518 -518
  712. package/build/dex/smardex/types.d.ts +55 -55
  713. package/build/dex/smardex/types.js +2 -2
  714. package/build/dex/smoothy.d.ts +26 -26
  715. package/build/dex/smoothy.js +47 -47
  716. package/build/dex/solidly/config.d.ts +4 -4
  717. package/build/dex/solidly/config.js +228 -228
  718. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -14
  719. package/build/dex/solidly/forks-override/aerodrome.js +47 -47
  720. package/build/dex/solidly/forks-override/chronos.d.ts +23 -23
  721. package/build/dex/solidly/forks-override/chronos.js +138 -138
  722. package/build/dex/solidly/forks-override/cone.d.ts +22 -22
  723. package/build/dex/solidly/forks-override/cone.js +52 -52
  724. package/build/dex/solidly/forks-override/equalizer.d.ts +20 -20
  725. package/build/dex/solidly/forks-override/equalizer.js +45 -45
  726. package/build/dex/solidly/forks-override/pharaohV1.d.ts +8 -8
  727. package/build/dex/solidly/forks-override/pharaohV1.js +14 -14
  728. package/build/dex/solidly/forks-override/ramses.d.ts +44 -44
  729. package/build/dex/solidly/forks-override/ramses.js +143 -143
  730. package/build/dex/solidly/forks-override/solisnek.d.ts +8 -8
  731. package/build/dex/solidly/forks-override/solisnek.js +14 -14
  732. package/build/dex/solidly/forks-override/spiritSwapV2.d.ts +21 -21
  733. package/build/dex/solidly/forks-override/spiritSwapV2.js +48 -48
  734. package/build/dex/solidly/forks-override/thena.d.ts +20 -20
  735. package/build/dex/solidly/forks-override/thena.js +45 -45
  736. package/build/dex/solidly/forks-override/usdfi.d.ts +8 -8
  737. package/build/dex/solidly/forks-override/usdfi.js +14 -14
  738. package/build/dex/solidly/forks-override/velocimeter.d.ts +20 -20
  739. package/build/dex/solidly/forks-override/velocimeter.js +45 -45
  740. package/build/dex/solidly/forks-override/velodrome.d.ts +20 -20
  741. package/build/dex/solidly/forks-override/velodrome.js +45 -45
  742. package/build/dex/solidly/forks-override/velodromeV2.d.ts +20 -20
  743. package/build/dex/solidly/forks-override/velodromeV2.js +49 -49
  744. package/build/dex/solidly/solidly-ethereum.d.ts +22 -22
  745. package/build/dex/solidly/solidly-ethereum.js +44 -44
  746. package/build/dex/solidly/solidly-stable-pool.d.ts +4 -4
  747. package/build/dex/solidly/solidly-stable-pool.js +73 -73
  748. package/build/dex/solidly/solidly.d.ts +37 -37
  749. package/build/dex/solidly/solidly.js +436 -436
  750. package/build/dex/solidly/types.d.ts +25 -25
  751. package/build/dex/solidly/types.js +2 -2
  752. package/build/dex/solidly-v3/config.d.ts +9 -9
  753. package/build/dex/solidly-v3/config.js +69 -69
  754. package/build/dex/solidly-v3/constants.d.ts +27 -27
  755. package/build/dex/solidly-v3/constants.js +33 -33
  756. package/build/dex/solidly-v3/contract-math/BitMath.d.ts +4 -4
  757. package/build/dex/solidly-v3/contract-math/BitMath.js +92 -92
  758. package/build/dex/solidly-v3/contract-math/FixedPoint128.d.ts +3 -3
  759. package/build/dex/solidly-v3/contract-math/FixedPoint128.js +7 -7
  760. package/build/dex/solidly-v3/contract-math/FixedPoint96.d.ts +4 -4
  761. package/build/dex/solidly-v3/contract-math/FixedPoint96.js +8 -8
  762. package/build/dex/solidly-v3/contract-math/FullMath.d.ts +4 -4
  763. package/build/dex/solidly-v3/contract-math/FullMath.js +18 -18
  764. package/build/dex/solidly-v3/contract-math/LiquidityMath.d.ts +3 -3
  765. package/build/dex/solidly-v3/contract-math/LiquidityMath.js +21 -21
  766. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.d.ts +10 -10
  767. package/build/dex/solidly-v3/contract-math/SqrtPriceMath.js +90 -90
  768. package/build/dex/solidly-v3/contract-math/SwapMath.d.ts +8 -8
  769. package/build/dex/solidly-v3/contract-math/SwapMath.js +69 -69
  770. package/build/dex/solidly-v3/contract-math/Tick.d.ts +7 -7
  771. package/build/dex/solidly-v3/contract-math/Tick.js +35 -35
  772. package/build/dex/solidly-v3/contract-math/TickBitMap.d.ts +7 -7
  773. package/build/dex/solidly-v3/contract-math/TickBitMap.js +83 -83
  774. package/build/dex/solidly-v3/contract-math/TickMath.d.ts +8 -8
  775. package/build/dex/solidly-v3/contract-math/TickMath.js +161 -161
  776. package/build/dex/solidly-v3/contract-math/UnsafeMath.d.ts +3 -3
  777. package/build/dex/solidly-v3/contract-math/UnsafeMath.js +9 -9
  778. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.d.ts +31 -31
  779. package/build/dex/solidly-v3/contract-math/uniswap-v3-math.js +362 -362
  780. package/build/dex/solidly-v3/contract-math/utils.d.ts +7 -7
  781. package/build/dex/solidly-v3/contract-math/utils.js +38 -38
  782. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  783. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  784. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  785. package/build/dex/solidly-v3/solidly-v3-factory.d.ts +26 -26
  786. package/build/dex/solidly-v3/solidly-v3-factory.js +43 -43
  787. package/build/dex/solidly-v3/solidly-v3-pool.d.ts +49 -49
  788. package/build/dex/solidly-v3/solidly-v3-pool.js +304 -304
  789. package/build/dex/solidly-v3/solidly-v3.d.ts +66 -66
  790. package/build/dex/solidly-v3/solidly-v3.js +582 -582
  791. package/build/dex/solidly-v3/types.d.ts +131 -131
  792. package/build/dex/solidly-v3/types.js +8 -8
  793. package/build/dex/solidly-v3/utils.d.ts +6 -6
  794. package/build/dex/solidly-v3/utils.js +52 -52
  795. package/build/dex/stable-pool.d.ts +28 -28
  796. package/build/dex/stable-pool.js +61 -61
  797. package/build/dex/swaap-v1/config.d.ts +17 -17
  798. package/build/dex/swaap-v1/config.js +55 -55
  799. package/build/dex/swaap-v1/constants.d.ts +6 -6
  800. package/build/dex/swaap-v1/constants.js +16 -16
  801. package/build/dex/swaap-v1/libraries/ChainlinkUtils.d.ts +25 -25
  802. package/build/dex/swaap-v1/libraries/ChainlinkUtils.js +61 -61
  803. package/build/dex/swaap-v1/libraries/Const.d.ts +18 -18
  804. package/build/dex/swaap-v1/libraries/Const.js +25 -25
  805. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.d.ts +77 -77
  806. package/build/dex/swaap-v1/libraries/GeometricBrownianMotion.js +315 -315
  807. package/build/dex/swaap-v1/libraries/LogExpMath.d.ts +75 -75
  808. package/build/dex/swaap-v1/libraries/LogExpMath.js +417 -417
  809. package/build/dex/swaap-v1/libraries/MathMMM.d.ts +185 -185
  810. package/build/dex/swaap-v1/libraries/MathMMM.js +452 -452
  811. package/build/dex/swaap-v1/libraries/Num.d.ts +31 -31
  812. package/build/dex/swaap-v1/libraries/Num.js +166 -166
  813. package/build/dex/swaap-v1/libraries/PoolQuotations.d.ts +23 -23
  814. package/build/dex/swaap-v1/libraries/PoolQuotations.js +130 -130
  815. package/build/dex/swaap-v1/libraries/Struct.d.ts +56 -56
  816. package/build/dex/swaap-v1/libraries/Struct.js +2 -2
  817. package/build/dex/swaap-v1/swaap-v1-pool.d.ts +45 -45
  818. package/build/dex/swaap-v1/swaap-v1-pool.js +655 -655
  819. package/build/dex/swaap-v1/swaap-v1.d.ts +61 -61
  820. package/build/dex/swaap-v1/swaap-v1.js +368 -368
  821. package/build/dex/swaap-v1/types.d.ts +106 -106
  822. package/build/dex/swaap-v1/types.js +8 -8
  823. package/build/dex/swaap-v2/config.d.ts +4 -4
  824. package/build/dex/swaap-v2/config.js +25 -25
  825. package/build/dex/swaap-v2/constants.d.ts +26 -26
  826. package/build/dex/swaap-v2/constants.js +32 -32
  827. package/build/dex/swaap-v2/rate-fetcher.d.ts +22 -22
  828. package/build/dex/swaap-v2/rate-fetcher.js +149 -149
  829. package/build/dex/swaap-v2/stable-coins.d.ts +5 -5
  830. package/build/dex/swaap-v2/stable-coins.js +25 -25
  831. package/build/dex/swaap-v2/swaap-v2.d.ts +63 -63
  832. package/build/dex/swaap-v2/swaap-v2.js +642 -642
  833. package/build/dex/swaap-v2/types.d.ts +91 -91
  834. package/build/dex/swaap-v2/types.js +6 -6
  835. package/build/dex/swaap-v2/utils.d.ts +7 -7
  836. package/build/dex/swaap-v2/utils.js +33 -33
  837. package/build/dex/swaap-v2/validators.d.ts +7 -7
  838. package/build/dex/swaap-v2/validators.js +129 -129
  839. package/build/dex/swell/config.d.ts +14 -14
  840. package/build/dex/swell/config.js +21 -21
  841. package/build/dex/swell/swell.d.ts +60 -60
  842. package/build/dex/swell/swell.js +152 -152
  843. package/build/dex/swell/sweth-pool.d.ts +16 -16
  844. package/build/dex/swell/sweth-pool.js +37 -37
  845. package/build/dex/swell/type.d.ts +3 -3
  846. package/build/dex/swell/type.js +2 -2
  847. package/build/dex/swell/utils.d.ts +4 -4
  848. package/build/dex/swell/utils.js +21 -21
  849. package/build/dex/synthetix/config.d.ts +4 -4
  850. package/build/dex/synthetix/config.js +52 -52
  851. package/build/dex/synthetix/constants.d.ts +23 -23
  852. package/build/dex/synthetix/constants.js +31 -31
  853. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.d.ts +17 -17
  854. package/build/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.js +101 -101
  855. package/build/dex/synthetix/contract-math/ExchangeRates.d.ts +8 -8
  856. package/build/dex/synthetix/contract-math/ExchangeRates.js +76 -76
  857. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.d.ts +17 -17
  858. package/build/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.js +125 -125
  859. package/build/dex/synthetix/contract-math/FullMath.d.ts +3 -3
  860. package/build/dex/synthetix/contract-math/FullMath.js +13 -13
  861. package/build/dex/synthetix/contract-math/OracleLibrary.d.ts +8 -8
  862. package/build/dex/synthetix/contract-math/OracleLibrary.js +59 -59
  863. package/build/dex/synthetix/contract-math/SafeDecimalMath.d.ts +9 -9
  864. package/build/dex/synthetix/contract-math/SafeDecimalMath.js +40 -40
  865. package/build/dex/synthetix/contract-math/TickMath.d.ts +7 -7
  866. package/build/dex/synthetix/contract-math/TickMath.js +62 -62
  867. package/build/dex/synthetix/contract-math/synthetix-math.d.ts +17 -17
  868. package/build/dex/synthetix/contract-math/synthetix-math.js +126 -126
  869. package/build/dex/synthetix/synthetix-state.d.ts +36 -36
  870. package/build/dex/synthetix/synthetix-state.js +568 -568
  871. package/build/dex/synthetix/synthetix.d.ts +45 -45
  872. package/build/dex/synthetix/synthetix.js +249 -249
  873. package/build/dex/synthetix/types.d.ts +85 -85
  874. package/build/dex/synthetix/types.js +2 -2
  875. package/build/dex/synthetix/utils.d.ts +9 -9
  876. package/build/dex/synthetix/utils.js +86 -86
  877. package/build/dex/trader-joe-v2.1.d.ts +43 -43
  878. package/build/dex/trader-joe-v2.1.js +78 -78
  879. package/build/dex/trader-joe-v2.d.ts +40 -40
  880. package/build/dex/trader-joe-v2.js +73 -73
  881. package/build/dex/uniswap-v2/biswap.d.ts +24 -24
  882. package/build/dex/uniswap-v2/biswap.js +42 -42
  883. package/build/dex/uniswap-v2/config.d.ts +11 -11
  884. package/build/dex/uniswap-v2/config.js +707 -707
  885. package/build/dex/uniswap-v2/constants.d.ts +7 -7
  886. package/build/dex/uniswap-v2/constants.js +50 -50
  887. package/build/dex/uniswap-v2/dfyn.d.ts +17 -17
  888. package/build/dex/uniswap-v2/dfyn.js +45 -45
  889. package/build/dex/uniswap-v2/excalibur.d.ts +24 -24
  890. package/build/dex/uniswap-v2/excalibur.js +43 -43
  891. package/build/dex/uniswap-v2/mdex.d.ts +24 -24
  892. package/build/dex/uniswap-v2/mdex.js +46 -46
  893. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +24 -24
  894. package/build/dex/uniswap-v2/nomiswap-v2.js +43 -43
  895. package/build/dex/uniswap-v2/optimizer.d.ts +2 -2
  896. package/build/dex/uniswap-v2/optimizer.js +57 -57
  897. package/build/dex/uniswap-v2/types.d.ts +122 -122
  898. package/build/dex/uniswap-v2/types.js +16 -16
  899. package/build/dex/uniswap-v2/uniswap-v2-constant-product-pool.d.ts +5 -5
  900. package/build/dex/uniswap-v2/uniswap-v2-constant-product-pool.js +25 -25
  901. package/build/dex/uniswap-v2/uniswap-v2-factory.d.ts +25 -25
  902. package/build/dex/uniswap-v2/uniswap-v2-factory.js +42 -42
  903. package/build/dex/uniswap-v2/uniswap-v2.d.ts +115 -115
  904. package/build/dex/uniswap-v2/uniswap-v2.js +608 -608
  905. package/build/dex/uniswap-v3/config.d.ts +9 -9
  906. package/build/dex/uniswap-v3/config.js +372 -372
  907. package/build/dex/uniswap-v3/constants.d.ts +28 -28
  908. package/build/dex/uniswap-v3/constants.js +34 -34
  909. package/build/dex/uniswap-v3/contract-math/BitMath.d.ts +4 -4
  910. package/build/dex/uniswap-v3/contract-math/BitMath.js +92 -92
  911. package/build/dex/uniswap-v3/contract-math/FixedPoint128.d.ts +3 -3
  912. package/build/dex/uniswap-v3/contract-math/FixedPoint128.js +7 -7
  913. package/build/dex/uniswap-v3/contract-math/FixedPoint96.d.ts +4 -4
  914. package/build/dex/uniswap-v3/contract-math/FixedPoint96.js +8 -8
  915. package/build/dex/uniswap-v3/contract-math/FullMath.d.ts +4 -4
  916. package/build/dex/uniswap-v3/contract-math/FullMath.js +18 -18
  917. package/build/dex/uniswap-v3/contract-math/LiquidityMath.d.ts +3 -3
  918. package/build/dex/uniswap-v3/contract-math/LiquidityMath.js +21 -21
  919. package/build/dex/uniswap-v3/contract-math/Oracle.d.ts +10 -10
  920. package/build/dex/uniswap-v3/contract-math/Oracle.js +132 -132
  921. package/build/dex/uniswap-v3/contract-math/SqrtPriceMath.d.ts +10 -10
  922. package/build/dex/uniswap-v3/contract-math/SqrtPriceMath.js +90 -90
  923. package/build/dex/uniswap-v3/contract-math/SwapMath.d.ts +8 -8
  924. package/build/dex/uniswap-v3/contract-math/SwapMath.js +69 -69
  925. package/build/dex/uniswap-v3/contract-math/Tick.d.ts +7 -7
  926. package/build/dex/uniswap-v3/contract-math/Tick.js +44 -44
  927. package/build/dex/uniswap-v3/contract-math/TickBitMap.d.ts +7 -7
  928. package/build/dex/uniswap-v3/contract-math/TickBitMap.js +83 -83
  929. package/build/dex/uniswap-v3/contract-math/TickMath.d.ts +8 -8
  930. package/build/dex/uniswap-v3/contract-math/TickMath.js +161 -161
  931. package/build/dex/uniswap-v3/contract-math/UnsafeMath.d.ts +3 -3
  932. package/build/dex/uniswap-v3/contract-math/UnsafeMath.js +9 -9
  933. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.d.ts +37 -37
  934. package/build/dex/uniswap-v3/contract-math/uniswap-v3-math.js +392 -392
  935. package/build/dex/uniswap-v3/contract-math/utils.d.ts +7 -7
  936. package/build/dex/uniswap-v3/contract-math/utils.js +41 -41
  937. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  938. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  939. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  940. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  941. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  942. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  943. package/build/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.d.ts +19 -19
  944. package/build/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.js +98 -98
  945. package/build/dex/uniswap-v3/forks/ramses-v2/utils.d.ts +4 -4
  946. package/build/dex/uniswap-v3/forks/ramses-v2/utils.js +62 -62
  947. package/build/dex/uniswap-v3/scripts/check-pool-bitmap-ranges.js +239 -239
  948. package/build/dex/uniswap-v3/scripts/measure-calc-time.d.ts +1 -1
  949. package/build/dex/uniswap-v3/scripts/measure-calc-time.js +158 -158
  950. package/build/dex/uniswap-v3/types.d.ts +164 -164
  951. package/build/dex/uniswap-v3/types.js +8 -8
  952. package/build/dex/uniswap-v3/uniswap-v3-factory.d.ts +26 -26
  953. package/build/dex/uniswap-v3/uniswap-v3-factory.js +43 -43
  954. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +51 -51
  955. package/build/dex/uniswap-v3/uniswap-v3-pool.js +318 -318
  956. package/build/dex/uniswap-v3/uniswap-v3.d.ts +75 -75
  957. package/build/dex/uniswap-v3/uniswap-v3.js +763 -763
  958. package/build/dex/uniswap-v3/utils.d.ts +6 -6
  959. package/build/dex/uniswap-v3/utils.js +64 -64
  960. package/build/dex/uniswap-v3.d.ts +44 -44
  961. package/build/dex/uniswap-v3.js +96 -96
  962. package/build/dex/weth/config.d.ts +11 -11
  963. package/build/dex/weth/config.js +70 -70
  964. package/build/dex/weth/types.d.ts +22 -22
  965. package/build/dex/weth/types.js +9 -9
  966. package/build/dex/weth/weth.d.ts +44 -44
  967. package/build/dex/weth/weth.js +132 -132
  968. package/build/dex/wombat/config.d.ts +4 -4
  969. package/build/dex/wombat/config.js +76 -76
  970. package/build/dex/wombat/types.d.ts +33 -33
  971. package/build/dex/wombat/types.js +2 -2
  972. package/build/dex/wombat/utils.d.ts +10 -10
  973. package/build/dex/wombat/utils.js +78 -78
  974. package/build/dex/wombat/wombat-bmw.d.ts +40 -40
  975. package/build/dex/wombat/wombat-bmw.js +129 -129
  976. package/build/dex/wombat/wombat-pool.d.ts +56 -56
  977. package/build/dex/wombat/wombat-pool.js +449 -449
  978. package/build/dex/wombat/wombat-quoter.d.ts +16 -16
  979. package/build/dex/wombat/wombat-quoter.js +175 -175
  980. package/build/dex/wombat/wombat.d.ts +58 -58
  981. package/build/dex/wombat/wombat.js +301 -301
  982. package/build/dex/woo-fi-v2/config.d.ts +4 -4
  983. package/build/dex/woo-fi-v2/config.js +99 -99
  984. package/build/dex/woo-fi-v2/constants.d.ts +9 -9
  985. package/build/dex/woo-fi-v2/constants.js +20 -20
  986. package/build/dex/woo-fi-v2/decoders.d.ts +6 -6
  987. package/build/dex/woo-fi-v2/decoders.js +28 -28
  988. package/build/dex/woo-fi-v2/types.d.ts +41 -41
  989. package/build/dex/woo-fi-v2/types.js +2 -2
  990. package/build/dex/woo-fi-v2/utils.d.ts +2 -2
  991. package/build/dex/woo-fi-v2/utils.js +23 -23
  992. package/build/dex/woo-fi-v2/woo-fi-v2-math.d.ts +16 -16
  993. package/build/dex/woo-fi-v2/woo-fi-v2-math.js +136 -136
  994. package/build/dex/woo-fi-v2/woo-fi-v2-pool.d.ts +12 -12
  995. package/build/dex/woo-fi-v2/woo-fi-v2-pool.js +78 -78
  996. package/build/dex/woo-fi-v2/woo-fi-v2.d.ts +53 -53
  997. package/build/dex/woo-fi-v2/woo-fi-v2.js +319 -319
  998. package/build/dex/wsteth/config.d.ts +4 -4
  999. package/build/dex/wsteth/config.js +15 -15
  1000. package/build/dex/wsteth/types.d.ts +10 -10
  1001. package/build/dex/wsteth/types.js +2 -2
  1002. package/build/dex/wsteth/wsteth.d.ts +38 -38
  1003. package/build/dex/wsteth/wsteth.js +208 -208
  1004. package/build/dex/zerox/index.d.ts +44 -44
  1005. package/build/dex/zerox/index.js +216 -216
  1006. package/build/dex/zerox/order.d.ts +88 -88
  1007. package/build/dex/zerox/order.js +52 -52
  1008. package/build/dex/zerox/types.d.ts +44 -44
  1009. package/build/dex/zerox/types.js +13 -13
  1010. package/build/dex-helper/dummy-dex-helper.d.ts +33 -33
  1011. package/build/dex-helper/dummy-dex-helper.js +179 -179
  1012. package/build/dex-helper/dummy-limit-order-provider.d.ts +14 -14
  1013. package/build/dex-helper/dummy-limit-order-provider.js +32 -32
  1014. package/build/dex-helper/iblock-manager.d.ts +18 -18
  1015. package/build/dex-helper/iblock-manager.js +2 -2
  1016. package/build/dex-helper/icache.d.ts +23 -23
  1017. package/build/dex-helper/icache.js +2 -2
  1018. package/build/dex-helper/idex-helper.d.ts +24 -24
  1019. package/build/dex-helper/idex-helper.js +2 -2
  1020. package/build/dex-helper/ilimit-order-provider.d.ts +8 -8
  1021. package/build/dex-helper/ilimit-order-provider.js +2 -2
  1022. package/build/dex-helper/index.d.ts +6 -6
  1023. package/build/dex-helper/index.js +7 -7
  1024. package/build/dex-helper/irequest-wrapper.d.ts +27 -27
  1025. package/build/dex-helper/irequest-wrapper.js +2 -2
  1026. package/build/implementations/local-paraswap-sdk.d.ts +28 -28
  1027. package/build/implementations/local-paraswap-sdk.js +178 -178
  1028. package/build/index.d.ts +10 -10
  1029. package/build/index.js +17 -17
  1030. package/build/lens.d.ts +6 -6
  1031. package/build/lens.js +7 -7
  1032. package/build/lib/api3-feed.d.ts +30 -30
  1033. package/build/lib/api3-feed.js +99 -99
  1034. package/build/lib/benqi/staked-avax.d.ts +18 -18
  1035. package/build/lib/benqi/staked-avax.js +79 -79
  1036. package/build/lib/chainlink.d.ts +22 -22
  1037. package/build/lib/chainlink.js +55 -55
  1038. package/build/lib/decoders.d.ts +24 -24
  1039. package/build/lib/decoders.js +133 -133
  1040. package/build/lib/erc1271-utils.d.ts +10 -10
  1041. package/build/lib/erc1271-utils.js +11 -11
  1042. package/build/lib/fetcher/fetcher.d.ts +33 -33
  1043. package/build/lib/fetcher/fetcher.js +132 -132
  1044. package/build/lib/generics-events-subscribers/erc20-event-subscriber-factory.d.ts +3 -3
  1045. package/build/lib/generics-events-subscribers/erc20-event-subscriber-factory.js +16 -16
  1046. package/build/lib/generics-events-subscribers/erc20-event-subscriber.d.ts +22 -22
  1047. package/build/lib/generics-events-subscribers/erc20-event-subscriber.js +163 -163
  1048. package/build/lib/generics-events-subscribers/types.d.ts +33 -33
  1049. package/build/lib/generics-events-subscribers/types.js +15 -15
  1050. package/build/lib/generics-events-subscribers/utils.d.ts +6 -6
  1051. package/build/lib/generics-events-subscribers/utils.js +25 -25
  1052. package/build/lib/log-messages-suppressor.d.ts +30 -30
  1053. package/build/lib/log-messages-suppressor.js +111 -111
  1054. package/build/lib/log4js.d.ts +4 -4
  1055. package/build/lib/log4js.js +109 -109
  1056. package/build/lib/multi-wrapper.d.ts +21 -21
  1057. package/build/lib/multi-wrapper.js +67 -67
  1058. package/build/lib/promise-scheduler.d.ts +10 -10
  1059. package/build/lib/promise-scheduler.js +47 -47
  1060. package/build/lib/stateful-rpc-poller/state-polling-manager.d.ts +24 -24
  1061. package/build/lib/stateful-rpc-poller/state-polling-manager.js +192 -192
  1062. package/build/lib/stateful-rpc-poller/stateful-rpc-poller.d.ts +72 -72
  1063. package/build/lib/stateful-rpc-poller/stateful-rpc-poller.js +368 -368
  1064. package/build/lib/stateful-rpc-poller/types.d.ts +35 -35
  1065. package/build/lib/stateful-rpc-poller/types.js +9 -9
  1066. package/build/lib/stateful-rpc-poller/utils.d.ts +4 -4
  1067. package/build/lib/stateful-rpc-poller/utils.js +16 -16
  1068. package/build/lib/task-scheduler.d.ts +17 -17
  1069. package/build/lib/task-scheduler.js +54 -54
  1070. package/build/lib/token-transfer-fee.d.ts +2 -2
  1071. package/build/lib/token-transfer-fee.js +41 -41
  1072. package/build/lib/tokens/balancer-fetcher.d.ts +23 -23
  1073. package/build/lib/tokens/balancer-fetcher.js +221 -221
  1074. package/build/lib/tokens/types.d.ts +86 -86
  1075. package/build/lib/tokens/types.js +35 -35
  1076. package/build/lib/tokens/utils.d.ts +30 -30
  1077. package/build/lib/tokens/utils.js +127 -127
  1078. package/build/lib/utils-interfaces.d.ts +2 -2
  1079. package/build/lib/utils-interfaces.js +9 -9
  1080. package/build/lib/validators.d.ts +7 -7
  1081. package/build/lib/validators.js +26 -26
  1082. package/build/pools-helper.d.ts +12 -12
  1083. package/build/pools-helper.js +40 -40
  1084. package/build/pricing-helper.d.ts +23 -23
  1085. package/build/pricing-helper.js +201 -201
  1086. package/build/rebase-tokens.json +17 -17
  1087. package/build/router/buy.d.ts +15 -15
  1088. package/build/router/buy.js +62 -62
  1089. package/build/router/directswap.d.ts +10 -10
  1090. package/build/router/directswap.js +54 -54
  1091. package/build/router/index.d.ts +18 -18
  1092. package/build/router/index.js +38 -38
  1093. package/build/router/irouter.d.ts +6 -6
  1094. package/build/router/irouter.js +2 -2
  1095. package/build/router/megaswap.d.ts +15 -15
  1096. package/build/router/megaswap.js +56 -56
  1097. package/build/router/multiswap.d.ts +15 -15
  1098. package/build/router/multiswap.js +58 -58
  1099. package/build/router/payload-encoder.d.ts +31 -31
  1100. package/build/router/payload-encoder.js +193 -193
  1101. package/build/router/simpleswap.d.ts +38 -38
  1102. package/build/router/simpleswap.js +207 -207
  1103. package/build/router/simpleswapnft.d.ts +11 -11
  1104. package/build/router/simpleswapnft.js +92 -92
  1105. package/build/stateful-event-subscriber.d.ts +48 -48
  1106. package/build/stateful-event-subscriber.js +352 -352
  1107. package/build/transaction-builder.d.ts +25 -25
  1108. package/build/transaction-builder.js +34 -34
  1109. package/build/types.d.ts +261 -261
  1110. package/build/types.js +2 -2
  1111. package/build/utils.d.ts +69 -69
  1112. package/build/utils.js +315 -315
  1113. package/dex-template/__DexName__-e2e.test.ts.template +162 -162
  1114. package/dex-template/__DexName__-events.test.ts.template +110 -110
  1115. package/dex-template/__DexName__-integration.test.ts.template +251 -251
  1116. package/dex-template/__DexName__-pool.ts.template +91 -91
  1117. package/dex-template/__DexName__.ts.template +183 -183
  1118. package/dex-template/config.ts.template +15 -15
  1119. package/dex-template/types.ts.template +22 -22
  1120. package/jest.config.js +10 -10
  1121. package/main-config.ts +4484 -0
  1122. package/package.json +81 -81
  1123. package/scripts/dex-integration.ts +164 -164
  1124. package/scripts/fetch-event-blocknumber.ts +51 -51
  1125. package/scripts/generate-bytecode.ts +11 -11
  1126. package/scripts/run-dex-integration.ts +95 -95
  1127. package/src/abi/AaveV1_lending_pool.json +27 -27
  1128. package/src/abi/AaveV2_lending_pool.json +53 -53
  1129. package/src/abi/AaveV3_lending_pool.json +1715 -1715
  1130. package/src/abi/BProtocol.json +1155 -1155
  1131. package/src/abi/Balancer.json +257 -257
  1132. package/src/abi/BalancerCustomMulticall.json +26 -26
  1133. package/src/abi/BalancerV1ExchangeProxy.json +377 -377
  1134. package/src/abi/BalancerV1Pool.json +1630 -1630
  1135. package/src/abi/BalancerV2.json +1179 -1179
  1136. package/src/abi/Bancor.json +392 -392
  1137. package/src/abi/Compound_CETH.json +12 -12
  1138. package/src/abi/Curve.json +54 -54
  1139. package/src/abi/CurveV2.json +700 -700
  1140. package/src/abi/DirectSwap.json +1018 -1018
  1141. package/src/abi/ERC1155.abi.json +459 -459
  1142. package/src/abi/ERC1271.abi.json +25 -25
  1143. package/src/abi/ERC20.abi.json +288 -288
  1144. package/src/abi/ERC721.abi.json +165 -165
  1145. package/src/abi/IParaswap.json +3059 -3059
  1146. package/src/abi/Jarvis.json +1172 -1172
  1147. package/src/abi/MStableAsset.json +1545 -1545
  1148. package/src/abi/OneInchLp.json +1304 -1304
  1149. package/src/abi/Onebit.json +736 -736
  1150. package/src/abi/RamsesV2Pool.abi.json +1554 -1554
  1151. package/src/abi/RamsesV2Quoter.abi.json +274 -274
  1152. package/src/abi/RamsesV2StateMulticall.abi.json +891 -891
  1153. package/src/abi/Shell.json +1294 -1294
  1154. package/src/abi/SimpleSwapHelperRouter.json +38 -38
  1155. package/src/abi/Smoothy.json +1049 -1049
  1156. package/src/abi/StablePool.json +1035 -1035
  1157. package/src/abi/TraderJoeV21Router.json +1489 -1489
  1158. package/src/abi/TraderJoeV2Router.json +50 -50
  1159. package/src/abi/UniswapV2ExchangeRouter.json +84 -84
  1160. package/src/abi/UniswapV2Router.json +397 -397
  1161. package/src/abi/UniswapV3Router.json +274 -274
  1162. package/src/abi/aave-v3-weth-gateway.json +290 -290
  1163. package/src/abi/aave-weth-gateway-avalanche.json +242 -242
  1164. package/src/abi/aave-weth-gateway-polygon.json +242 -242
  1165. package/src/abi/aave-weth-gateway.json +38 -38
  1166. package/src/abi/aerodrome/aerodrome-pool-factory.json +586 -586
  1167. package/src/abi/algebra/AlgebraFactory-v1_1.abi.json +250 -250
  1168. package/src/abi/algebra/AlgebraPool-v1_1.abi.json +727 -727
  1169. package/src/abi/algebra/AlgebraPool-v1_9.abi.json +756 -756
  1170. package/src/abi/algebra/AlgebraQuoter.abi.json +138 -138
  1171. package/src/abi/algebra/AlgebraStateMulticall.abi.json +801 -801
  1172. package/src/abi/algebra/SwapRouter.json +281 -281
  1173. package/src/abi/api3-proxy.json +53 -53
  1174. package/src/abi/api3-server-v1.json +463 -463
  1175. package/src/abi/augustus.json +375 -375
  1176. package/src/abi/balancer-v2/ComposableStable.json +1391 -1391
  1177. package/src/abi/balancer-v2/gyro-e.abi.json +1595 -1595
  1178. package/src/abi/balancer-v2/linearPoolAbi.json +1062 -1062
  1179. package/src/abi/balancer-v2/meta-stable-pool.json +1437 -1437
  1180. package/src/abi/balancer-v2/stable-pool.json +1053 -1053
  1181. package/src/abi/balancer-v2/vault.json +918 -918
  1182. package/src/abi/balancer-v2/weighted-pool.json +1142 -1142
  1183. package/src/abi/benqi/staked-avax.json +954 -954
  1184. package/src/abi/camelot/CamelotFactory.json +494 -494
  1185. package/src/abi/camelot/CamelotPair.json +1027 -1027
  1186. package/src/abi/chainlink.json +323 -323
  1187. package/src/abi/curve-v1/CurveBUSDv2.abi.json +1356 -1356
  1188. package/src/abi/curve-v1/CurveTokenV1.json +305 -305
  1189. package/src/abi/curve-v1/CurveTokenV2.json +318 -318
  1190. package/src/abi/curve-v1/CurveV2Swap.json +700 -700
  1191. package/src/abi/curve-v1/FactoryCryptoRegistry.json +316 -316
  1192. package/src/abi/curve-v1/FactoryRegistry.json +508 -508
  1193. package/src/abi/curve-v1/StableSwap3Pool.json +838 -838
  1194. package/src/abi/curve-v1/StableSwapAave.json +1152 -1152
  1195. package/src/abi/curve-v1/StableSwapBBTC.json +1017 -1017
  1196. package/src/abi/curve-v1/StableSwapBUSD.json +814 -814
  1197. package/src/abi/curve-v1/StableSwapCompound.json +814 -814
  1198. package/src/abi/curve-v1/StableSwapDUSD.json +1004 -1004
  1199. package/src/abi/curve-v1/StableSwapEURS.json +868 -868
  1200. package/src/abi/curve-v1/StableSwapGUSD.json +1004 -1004
  1201. package/src/abi/curve-v1/StableSwapHBTC.json +838 -838
  1202. package/src/abi/curve-v1/StableSwapHUSD.json +1004 -1004
  1203. package/src/abi/curve-v1/StableSwapIDLE.json +1253 -1253
  1204. package/src/abi/curve-v1/StableSwapLinkUSD.json +1004 -1004
  1205. package/src/abi/curve-v1/StableSwapMUSD.json +1004 -1004
  1206. package/src/abi/curve-v1/StableSwapOBTC.json +1017 -1017
  1207. package/src/abi/curve-v1/StableSwapPBTC.json +1017 -1017
  1208. package/src/abi/curve-v1/StableSwapPax.json +865 -865
  1209. package/src/abi/curve-v1/StableSwapRSV.json +1004 -1004
  1210. package/src/abi/curve-v1/StableSwapRen.json +851 -851
  1211. package/src/abi/curve-v1/StableSwapSBTC.json +851 -851
  1212. package/src/abi/curve-v1/StableSwapSETH.json +850 -850
  1213. package/src/abi/curve-v1/StableSwapSLINK.json +899 -899
  1214. package/src/abi/curve-v1/StableSwapSTETH.json +895 -895
  1215. package/src/abi/curve-v1/StableSwapSUSD.json +760 -760
  1216. package/src/abi/curve-v1/StableSwapSnow.json +900 -900
  1217. package/src/abi/curve-v1/StableSwapTBTC.json +1017 -1017
  1218. package/src/abi/curve-v1/StableSwapUSDK.json +1004 -1004
  1219. package/src/abi/curve-v1/StableSwapUSDN.json +1004 -1004
  1220. package/src/abi/curve-v1/StableSwapUSDT.json +814 -814
  1221. package/src/abi/curve-v1/StableSwapUST.json +1017 -1017
  1222. package/src/abi/curve-v1/StableSwapY.json +814 -814
  1223. package/src/abi/curve-v1-factory/FactoryCurveV1.json +508 -508
  1224. package/src/abi/curve-v1-factory/ThreePool.json +468 -468
  1225. package/src/abi/curve-v2/GenericFactoryZap.json +233 -233
  1226. package/src/abi/dexalot/DexalotMainnetRFQ.json +952 -952
  1227. package/src/abi/dodo-v2-proxy.json +565 -565
  1228. package/src/abi/erc20.json +308 -308
  1229. package/src/abi/etherfi/eETHPool.json +9 -9
  1230. package/src/abi/etherfi/weETH.json +20 -20
  1231. package/src/abi/gmx/fast-price-events.json +70 -70
  1232. package/src/abi/gmx/fast-price-feed.json +748 -748
  1233. package/src/abi/gmx/reader.json +337 -337
  1234. package/src/abi/gmx/vault-price-feed.json +477 -477
  1235. package/src/abi/gmx/vault.json +2002 -2002
  1236. package/src/abi/hashflow/HashflowRouter.abi.json +1539 -1539
  1237. package/src/abi/jarvis/ChainlinkAccessControlledOffchainAggregator.json +1009 -1009
  1238. package/src/abi/jarvis/SynthereumPriceFeed.json +381 -381
  1239. package/src/abi/jarvis/jarvis-v6-pool.json +1041 -1041
  1240. package/src/abi/kyberdmm/kyber-dmm-exchange-router.abi.json +1148 -1148
  1241. package/src/abi/kyberdmm/kyber-dmm-factory.abi.json +335 -335
  1242. package/src/abi/kyberdmm/kyber-dmm-pool.abi.json +803 -803
  1243. package/src/abi/kyberdmm/kyber-storage.abi.json +824 -824
  1244. package/src/abi/kyberdmm.abi.json +1148 -1148
  1245. package/src/abi/maker-psm/psm.json +243 -243
  1246. package/src/abi/maker-psm/vat.json +363 -363
  1247. package/src/abi/maverick-v1/pool-inspector.json +216 -216
  1248. package/src/abi/maverick-v1/pool.json +1111 -1111
  1249. package/src/abi/maverick-v1/router.json +389 -389
  1250. package/src/abi/multi-v2.json +313 -313
  1251. package/src/abi/nerve/axial-pool.json +693 -693
  1252. package/src/abi/nerve/iron-v2-pool.json +785 -785
  1253. package/src/abi/nerve/nerve-metapool.json +790 -790
  1254. package/src/abi/nerve/nerve-pool.json +1035 -1035
  1255. package/src/abi/nomiswap-v2/nomiswap-v2-pool.json +773 -773
  1256. package/src/abi/pancakeswap-v3/PancakeV3StateMulticall.abi.json +781 -781
  1257. package/src/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +300 -300
  1258. package/src/abi/pancakeswap-v3/PancakeswapV3Pool.abi.json +1039 -1039
  1259. package/src/abi/pancakeswap-v3/PancakeswapV3Quoter.abi.json +285 -285
  1260. package/src/abi/pancakeswap-v3/PancakeswapV3Router.abi.json +583 -583
  1261. package/src/abi/paraswap-limit-orders/AugustusRFQ.abi.json +1081 -1081
  1262. package/src/abi/permit/IERC20Permit.json +45 -45
  1263. package/src/abi/permit/IERC20PermitLegacy.json +50 -50
  1264. package/src/abi/platypus/asset.json +490 -490
  1265. package/src/abi/platypus/avax-pool.json +820 -820
  1266. package/src/abi/platypus/oracle.json +119 -119
  1267. package/src/abi/platypus/pool.json +677 -677
  1268. package/src/abi/polygon-migration/PolygonMigration.abi.json +364 -364
  1269. package/src/abi/quick-perps/fast-price-events.json +70 -70
  1270. package/src/abi/quick-perps/fast-price-feed.json +741 -741
  1271. package/src/abi/quick-perps/reader.json +313 -313
  1272. package/src/abi/quick-perps/vault-price-feed.json +323 -323
  1273. package/src/abi/quick-perps/vault.json +1953 -1953
  1274. package/src/abi/ramses-v2/RamsesV2Pool.abi.json +1599 -1599
  1275. package/src/abi/smardex/all/smardex-router.json +648 -648
  1276. package/src/abi/smardex/layer-1/smardex-factory.json +242 -242
  1277. package/src/abi/smardex/layer-1/smardex-pool.json +506 -506
  1278. package/src/abi/smardex/layer-2/smardex-factory.json +185 -185
  1279. package/src/abi/smardex/layer-2/smardex-pool.json +578 -578
  1280. package/src/abi/solidly/SolidlyFactory.json +147 -147
  1281. package/src/abi/solidly/SolidlyPair.json +658 -658
  1282. package/src/abi/solidly-v3/SolidlyV3Pool.abi.json +738 -738
  1283. package/src/abi/solidly-v3/SolidlyV3StateMulticall.abi.json +375 -375
  1284. package/src/abi/stETH.json +735 -735
  1285. package/src/abi/swETH.json +1086 -1086
  1286. package/src/abi/swaap-v1/asset.json +490 -490
  1287. package/src/abi/swaap-v1/oracle.json +119 -119
  1288. package/src/abi/swaap-v1/pool.json +1346 -1346
  1289. package/src/abi/swaap-v2/vault.json +918 -918
  1290. package/src/abi/synthetix/CombinedSynthetix.abi.json +422 -422
  1291. package/src/abi/uniswap-v2/biswap-pool.json +501 -501
  1292. package/src/abi/uniswap-v2/excalibur-pool.json +881 -881
  1293. package/src/abi/uniswap-v2/mdex-factory.json +759 -759
  1294. package/src/abi/uniswap-v2/uniswap-v2-factory.json +125 -125
  1295. package/src/abi/uniswap-v2/uniswap-v2-pool.json +461 -461
  1296. package/src/abi/uniswap-v3/UniswapMulti.abi.json +52 -52
  1297. package/src/abi/uniswap-v3/UniswapV3Factory.abi.json +148 -148
  1298. package/src/abi/uniswap-v3/UniswapV3Pool.abi.json +988 -988
  1299. package/src/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -193
  1300. package/src/abi/uniswap-v3/UniswapV3QuoterV2.abi.json +155 -155
  1301. package/src/abi/uniswap-v3/UniswapV3Router.abi.json +274 -274
  1302. package/src/abi/uniswap-v3/UniswapV3StateMulticall.abi.json +781 -781
  1303. package/src/abi/weth.abi.json +153 -153
  1304. package/src/abi/wombat/asset.json +743 -743
  1305. package/src/abi/wombat/bmw.json +1247 -1247
  1306. package/src/abi/wombat/pool-v2.json +1289 -1289
  1307. package/src/abi/wombat/pool-v3.json +2013 -2013
  1308. package/src/abi/woo-fi-v2/IntegrationHelper.abi.json +116 -116
  1309. package/src/abi/woo-fi-v2/WooOracleV2.abi.json +358 -358
  1310. package/src/abi/woo-fi-v2/WooPPV2.abi.json +580 -580
  1311. package/src/abi/wstETH.json +252 -252
  1312. package/src/abi/zrx.v2.json +1967 -1967
  1313. package/src/abi/zrx.v3.json +3454 -3454
  1314. package/src/abi/zrx.v4.json +2193 -2193
  1315. package/src/bigint-constants.ts +20 -20
  1316. package/src/bignumber-constants.ts +20 -20
  1317. package/src/calldata-gas-cost.ts +26 -26
  1318. package/src/composed-event-subscriber.ts +131 -131
  1319. package/src/config.ts +469 -471
  1320. package/src/constants.ts +59 -59
  1321. package/src/dex/OneInchLp.ts +84 -84
  1322. package/src/dex/aave-v1/aave-v1-e2e.test.ts +109 -109
  1323. package/src/dex/aave-v1/aave-v1-integration.test.ts +100 -100
  1324. package/src/dex/aave-v1/aave-v1.ts +216 -216
  1325. package/src/dex/aave-v1/config.ts +22 -22
  1326. package/src/dex/aave-v1/tokens-mainnet.json +134 -134
  1327. package/src/dex/aave-v1/tokens.ts +58 -58
  1328. package/src/dex/aave-v1/types.ts +24 -24
  1329. package/src/dex/aave-v2/aave-v2-e2e.test.ts +284 -284
  1330. package/src/dex/aave-v2/aave-v2-integration.test.ts +100 -100
  1331. package/src/dex/aave-v2/aave-v2.ts +304 -304
  1332. package/src/dex/aave-v2/config.ts +56 -56
  1333. package/src/dex/aave-v2/tokens.ts +77 -77
  1334. package/src/dex/aave-v2/types.ts +43 -43
  1335. package/src/dex/aave-v3/aave-v3-e2e.test.ts +512 -512
  1336. package/src/dex/aave-v3/aave-v3-integration.test.ts +148 -148
  1337. package/src/dex/aave-v3/aave-v3.ts +256 -256
  1338. package/src/dex/aave-v3/config.ts +151 -151
  1339. package/src/dex/aave-v3/tokens.ts +68 -68
  1340. package/src/dex/aave-v3/types.ts +46 -46
  1341. package/src/dex/aave-v3/utils.ts +153 -153
  1342. package/src/dex/algebra/algebra-e2e.test.ts +321 -321
  1343. package/src/dex/algebra/algebra-events.test.ts +186 -186
  1344. package/src/dex/algebra/algebra-factory.ts +77 -77
  1345. package/src/dex/algebra/algebra-integration.test.ts +558 -558
  1346. package/src/dex/algebra/algebra-pool-v1_1.ts +853 -853
  1347. package/src/dex/algebra/algebra-pool-v1_9.ts +614 -614
  1348. package/src/dex/algebra/algebra-pool-v1_9_bidirectional_fee.ts +55 -55
  1349. package/src/dex/algebra/algebra.ts +1104 -1104
  1350. package/src/dex/algebra/config.ts +112 -130
  1351. package/src/dex/algebra/constants.ts +17 -17
  1352. package/src/dex/algebra/lib/AlgebraMath.ts +706 -706
  1353. package/src/dex/algebra/lib/Constants.ts +5 -5
  1354. package/src/dex/algebra/lib/TickManager.ts +91 -91
  1355. package/src/dex/algebra/lib/TickTable.ts +227 -227
  1356. package/src/dex/algebra/lib/yul-helper.ts +29 -29
  1357. package/src/dex/algebra/scripts/validate-state.ts +292 -292
  1358. package/src/dex/algebra/types.ts +146 -146
  1359. package/src/dex/algebra/utils.ts +217 -217
  1360. package/src/dex/augustus-rfq.ts +182 -182
  1361. package/src/dex/bProtocol.ts +74 -74
  1362. package/src/dex/balancer-v1/balancer-pools.json +33333 -33333
  1363. package/src/dex/balancer-v1/balancer-v1-e2e.test.ts +117 -117
  1364. package/src/dex/balancer-v1/balancer-v1-events.test.ts +83 -83
  1365. package/src/dex/balancer-v1/balancer-v1-integration.test.ts +307 -307
  1366. package/src/dex/balancer-v1/balancer-v1-math.ts +154 -154
  1367. package/src/dex/balancer-v1/balancer-v1-pool.ts +232 -232
  1368. package/src/dex/balancer-v1/balancer-v1.ts +461 -461
  1369. package/src/dex/balancer-v1/config.ts +29 -29
  1370. package/src/dex/balancer-v1/optimizer.ts +76 -76
  1371. package/src/dex/balancer-v1/types.ts +100 -100
  1372. package/src/dex/balancer-v1/utils.ts +57 -57
  1373. package/src/dex/balancer-v2/balancer-v2-e2e.test.ts +1663 -1663
  1374. package/src/dex/balancer-v2/balancer-v2-events.test.ts +132 -132
  1375. package/src/dex/balancer-v2/balancer-v2-gyro3.test.ts +268 -268
  1376. package/src/dex/balancer-v2/balancer-v2-gyroE.test.ts +401 -401
  1377. package/src/dex/balancer-v2/balancer-v2-integration.test.ts +774 -774
  1378. package/src/dex/balancer-v2/balancer-v2-math.ts +592 -592
  1379. package/src/dex/balancer-v2/balancer-v2.ts +1404 -1404
  1380. package/src/dex/balancer-v2/config.ts +84 -84
  1381. package/src/dex/balancer-v2/constants.ts +15 -15
  1382. package/src/dex/balancer-v2/optimizer.ts +70 -70
  1383. package/src/dex/balancer-v2/pools/balancer-v2-pool.ts +274 -274
  1384. package/src/dex/balancer-v2/pools/gyro/Gyro3Pool.ts +255 -255
  1385. package/src/dex/balancer-v2/pools/gyro/GyroEPool.ts +403 -403
  1386. package/src/dex/balancer-v2/pools/gyro/gyro-helpers.ts +15 -15
  1387. package/src/dex/balancer-v2/pools/linear/LinearMath.ts +286 -286
  1388. package/src/dex/balancer-v2/pools/linear/LinearPool.ts +639 -639
  1389. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStableMath.ts +494 -494
  1390. package/src/dex/balancer-v2/pools/phantom-stable/PhantomStablePool.ts +581 -581
  1391. package/src/dex/balancer-v2/pools/stable/StableMath.ts +203 -203
  1392. package/src/dex/balancer-v2/pools/stable/StablePool.ts +223 -223
  1393. package/src/dex/balancer-v2/pools/weighted/WeightedMath.ts +84 -84
  1394. package/src/dex/balancer-v2/pools/weighted/WeightedPool.ts +188 -188
  1395. package/src/dex/balancer-v2/queryOnChain.ts +48 -48
  1396. package/src/dex/balancer-v2/types.ts +184 -184
  1397. package/src/dex/balancer-v2/utils.ts +212 -212
  1398. package/src/dex/bancor.ts +107 -107
  1399. package/src/dex/camelot/camelot-e2e.test.ts +93 -93
  1400. package/src/dex/camelot/camelot-integration.test.ts +215 -215
  1401. package/src/dex/camelot/camelot-pool-discovery.test.ts +149 -149
  1402. package/src/dex/camelot/camelot.ts +822 -822
  1403. package/src/dex/camelot/config.ts +24 -24
  1404. package/src/dex/camelot/types.ts +15 -15
  1405. package/src/dex/compound.ts +84 -84
  1406. package/src/dex/curve-v1/config.ts +1235 -1235
  1407. package/src/dex/curve-v1/constants.ts +11 -11
  1408. package/src/dex/curve-v1/curve-v1-e2e.test.ts +498 -498
  1409. package/src/dex/curve-v1/curve-v1-events.test.ts +335 -335
  1410. package/src/dex/curve-v1/curve-v1-integration.test.ts +143 -143
  1411. package/src/dex/curve-v1/curve-v1.ts +1215 -1215
  1412. package/src/dex/curve-v1/forks/curve-forks/config.ts +177 -177
  1413. package/src/dex/curve-v1/forks/curve-forks/curve-forks.ts +73 -73
  1414. package/src/dex/curve-v1/forks/swerve/config.ts +47 -47
  1415. package/src/dex/curve-v1/forks/swerve/swerve.ts +68 -68
  1416. package/src/dex/curve-v1/pools/3pool.ts +313 -313
  1417. package/src/dex/curve-v1/pools/DUSDpool.ts +52 -52
  1418. package/src/dex/curve-v1/pools/EURSpool.ts +37 -37
  1419. package/src/dex/curve-v1/pools/GUSDpool.ts +52 -52
  1420. package/src/dex/curve-v1/pools/HUSDpool.ts +52 -52
  1421. package/src/dex/curve-v1/pools/LinkUSDpool.ts +52 -52
  1422. package/src/dex/curve-v1/pools/MUSDpool.ts +52 -52
  1423. package/src/dex/curve-v1/pools/bBTCpool.ts +52 -52
  1424. package/src/dex/curve-v1/pools/curve-metapool.ts +1113 -1113
  1425. package/src/dex/curve-v1/pools/curve-pool.ts +489 -489
  1426. package/src/dex/curve-v1/pools/getstate-multicall.ts +156 -156
  1427. package/src/dex/curve-v1/pools/hBTCpool.ts +37 -37
  1428. package/src/dex/curve-v1/pools/oBTCpool.ts +52 -52
  1429. package/src/dex/curve-v1/pools/pBTCpool.ts +52 -52
  1430. package/src/dex/curve-v1/pools/renpool.ts +38 -38
  1431. package/src/dex/curve-v1/pools/rsvpool.ts +52 -52
  1432. package/src/dex/curve-v1/pools/sBTCpool.ts +38 -38
  1433. package/src/dex/curve-v1/pools/sETHpool.ts +69 -69
  1434. package/src/dex/curve-v1/pools/sLinkpool.ts +37 -37
  1435. package/src/dex/curve-v1/pools/sUSDpool.ts +133 -133
  1436. package/src/dex/curve-v1/pools/stETHpool.ts +52 -52
  1437. package/src/dex/curve-v1/pools/tBTCpool.ts +52 -52
  1438. package/src/dex/curve-v1/pools/usdkpool.ts +52 -52
  1439. package/src/dex/curve-v1/pools/usdnpool.ts +59 -59
  1440. package/src/dex/curve-v1/pools/ustpool.ts +52 -52
  1441. package/src/dex/curve-v1/types.ts +70 -70
  1442. package/src/dex/curve-v1-factory/config.ts +1018 -1018
  1443. package/src/dex/curve-v1-factory/constants.ts +38 -38
  1444. package/src/dex/curve-v1-factory/curve-v1-factory-e2e.test.ts +440 -440
  1445. package/src/dex/curve-v1-factory/curve-v1-factory-integration.test.ts +1093 -1093
  1446. package/src/dex/curve-v1-factory/curve-v1-factory-node-cache.ts +10 -10
  1447. package/src/dex/curve-v1-factory/curve-v1-factory.ts +1181 -1181
  1448. package/src/dex/curve-v1-factory/curve-v1-pool-manager.ts +433 -433
  1449. package/src/dex/curve-v1-factory/price-handlers/functions/_calc_withdraw_one_coin.ts +292 -292
  1450. package/src/dex/curve-v1-factory/price-handlers/functions/_dynamic_fee.ts +103 -103
  1451. package/src/dex/curve-v1-factory/price-handlers/functions/_rates.ts +116 -116
  1452. package/src/dex/curve-v1-factory/price-handlers/functions/_xp.ts +114 -114
  1453. package/src/dex/curve-v1-factory/price-handlers/functions/_xp_mem.ts +103 -103
  1454. package/src/dex/curve-v1-factory/price-handlers/functions/calc_token_amount.ts +230 -230
  1455. package/src/dex/curve-v1-factory/price-handlers/functions/calc_withdraw_one_coin.ts +90 -90
  1456. package/src/dex/curve-v1-factory/price-handlers/functions/constants.ts +606 -606
  1457. package/src/dex/curve-v1-factory/price-handlers/functions/get_D.ts +386 -386
  1458. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_mem.ts +148 -148
  1459. package/src/dex/curve-v1-factory/price-handlers/functions/get_D_precisions.ts +120 -120
  1460. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy.ts +323 -323
  1461. package/src/dex/curve-v1-factory/price-handlers/functions/get_dy_underlying.ts +293 -293
  1462. package/src/dex/curve-v1-factory/price-handlers/functions/get_y.ts +262 -262
  1463. package/src/dex/curve-v1-factory/price-handlers/functions/get_y_D.ts +183 -183
  1464. package/src/dex/curve-v1-factory/price-handlers/functions/utils.ts +76 -76
  1465. package/src/dex/curve-v1-factory/price-handlers/price-handler.ts +115 -115
  1466. package/src/dex/curve-v1-factory/price-handlers/types.ts +133 -133
  1467. package/src/dex/curve-v1-factory/state-polling-pools/custom-pool-polling.ts +300 -300
  1468. package/src/dex/curve-v1-factory/state-polling-pools/factory-pool-polling.ts +226 -226
  1469. package/src/dex/curve-v1-factory/state-polling-pools/polling-manager.ts +255 -255
  1470. package/src/dex/curve-v1-factory/state-polling-pools/pool-polling-base.ts +160 -160
  1471. package/src/dex/curve-v1-factory/types.ts +236 -236
  1472. package/src/dex/curve-v2.ts +318 -318
  1473. package/src/dex/dexalot/config.ts +18 -25
  1474. package/src/dex/dexalot/constants.ts +32 -32
  1475. package/src/dex/dexalot/dexalot-e2e.test.ts +214 -236
  1476. package/src/dex/dexalot/dexalot-integration.test.ts +188 -309
  1477. package/src/dex/dexalot/dexalot.ts +1053 -1053
  1478. package/src/dex/dexalot/rate-fetcher.ts +197 -197
  1479. package/src/dex/dexalot/types.ts +131 -131
  1480. package/src/dex/dexalot/validators.ts +46 -46
  1481. package/src/dex/dodo-v1.ts +119 -119
  1482. package/src/dex/dodo-v2.ts +176 -176
  1483. package/src/dex/etherfi.ts +161 -161
  1484. package/src/dex/generic-rfq/e2e-test-config.ts +37 -37
  1485. package/src/dex/generic-rfq/example-api.test.ts +222 -222
  1486. package/src/dex/generic-rfq/fetch-mm-api.ts +286 -286
  1487. package/src/dex/generic-rfq/generic-rfq-e2e.test.ts +159 -159
  1488. package/src/dex/generic-rfq/generic-rfq-integration.test.ts +235 -235
  1489. package/src/dex/generic-rfq/generic-rfq-local-e2e.test.ts +121 -121
  1490. package/src/dex/generic-rfq/generic-rfq.ts +312 -312
  1491. package/src/dex/generic-rfq/rate-fetcher.ts +458 -458
  1492. package/src/dex/generic-rfq/security.ts +55 -55
  1493. package/src/dex/generic-rfq/types.ts +103 -103
  1494. package/src/dex/generic-rfq/utils.ts +80 -80
  1495. package/src/dex/generic-rfq/validators.test.ts +245 -245
  1496. package/src/dex/generic-rfq/validators.ts +192 -192
  1497. package/src/dex/gmx/config.ts +81 -81
  1498. package/src/dex/gmx/fast-price-feed.ts +279 -279
  1499. package/src/dex/gmx/gmx-e2e.test.ts +319 -319
  1500. package/src/dex/gmx/gmx-events.test.ts +114 -114
  1501. package/src/dex/gmx/gmx-integration.test.ts +211 -211
  1502. package/src/dex/gmx/gmx.ts +289 -289
  1503. package/src/dex/gmx/pool.ts +360 -360
  1504. package/src/dex/gmx/types.ts +94 -94
  1505. package/src/dex/gmx/usdg.ts +83 -83
  1506. package/src/dex/gmx/vault-price-feed.ts +384 -384
  1507. package/src/dex/gmx/vault-utils.ts +53 -53
  1508. package/src/dex/gmx/vault.ts +290 -290
  1509. package/src/dex/hashflow/config.ts +53 -53
  1510. package/src/dex/hashflow/constants.ts +54 -54
  1511. package/src/dex/hashflow/hashflow-e2e.test.ts +295 -295
  1512. package/src/dex/hashflow/hashflow-integration.test.ts +157 -157
  1513. package/src/dex/hashflow/hashflow.ts +1087 -1087
  1514. package/src/dex/hashflow/rate-fetcher.ts +118 -118
  1515. package/src/dex/hashflow/types.ts +83 -83
  1516. package/src/dex/hashflow/validators.ts +38 -38
  1517. package/src/dex/idex.ts +217 -217
  1518. package/src/dex/index.ts +348 -348
  1519. package/src/dex/jarvis-v6/chainLinkpriceFeed-event.ts +76 -76
  1520. package/src/dex/jarvis-v6/config.ts +261 -261
  1521. package/src/dex/jarvis-v6/jarvis-v6-e2e.test.ts +112 -112
  1522. package/src/dex/jarvis-v6/jarvis-v6-events.test.ts +67 -67
  1523. package/src/dex/jarvis-v6/jarvis-v6-events.ts +67 -67
  1524. package/src/dex/jarvis-v6/jarvis-v6-integration.test.ts +111 -111
  1525. package/src/dex/jarvis-v6/jarvis-v6.ts +471 -471
  1526. package/src/dex/jarvis-v6/syntheteumPool-event.ts +68 -68
  1527. package/src/dex/jarvis-v6/types.ts +59 -59
  1528. package/src/dex/jarvis-v6/utils.ts +127 -127
  1529. package/src/dex/jarvis.ts +181 -181
  1530. package/src/dex/kyberdmm/config.ts +65 -65
  1531. package/src/dex/kyberdmm/fee-formula.ts +113 -113
  1532. package/src/dex/kyberdmm/kyberdmm-e2e.test.ts +322 -322
  1533. package/src/dex/kyberdmm/kyberdmm-events.test.ts +123 -123
  1534. package/src/dex/kyberdmm/kyberdmm-integration.test.ts +93 -93
  1535. package/src/dex/kyberdmm/kyberdmm.ts +603 -603
  1536. package/src/dex/kyberdmm/math-ext.ts +29 -29
  1537. package/src/dex/kyberdmm/pool.ts +226 -226
  1538. package/src/dex/kyberdmm/types.ts +85 -85
  1539. package/src/dex/lido.ts +69 -69
  1540. package/src/dex/limit-order-exchange.ts +40 -40
  1541. package/src/dex/mStable.ts +147 -147
  1542. package/src/dex/maker-psm/config.ts +59 -59
  1543. package/src/dex/maker-psm/maker-psm-e2e.test.ts +78 -78
  1544. package/src/dex/maker-psm/maker-psm-events.test.ts +63 -63
  1545. package/src/dex/maker-psm/maker-psm-integration.test.ts +99 -99
  1546. package/src/dex/maker-psm/maker-psm.ts +539 -539
  1547. package/src/dex/maker-psm/types.ts +29 -29
  1548. package/src/dex/maverick-v1/config.ts +35 -35
  1549. package/src/dex/maverick-v1/constants.ts +1 -1
  1550. package/src/dex/maverick-v1/maverick-math/maverick-basic-math.ts +187 -187
  1551. package/src/dex/maverick-v1/maverick-math/maverick-bin-map.ts +182 -182
  1552. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.test.ts +680 -680
  1553. package/src/dex/maverick-v1/maverick-math/maverick-pool-math.ts +562 -562
  1554. package/src/dex/maverick-v1/maverick-v1-e2e.test.ts +238 -238
  1555. package/src/dex/maverick-v1/maverick-v1-events.test.ts +112 -112
  1556. package/src/dex/maverick-v1/maverick-v1-integration.test.ts +170 -170
  1557. package/src/dex/maverick-v1/maverick-v1-pool.ts +394 -394
  1558. package/src/dex/maverick-v1/maverick-v1.ts +477 -477
  1559. package/src/dex/maverick-v1/subgraph-queries.ts +60 -60
  1560. package/src/dex/maverick-v1/types.ts +83 -83
  1561. package/src/dex/nerve/config.ts +1035 -1035
  1562. package/src/dex/nerve/nerve-e2e.test.ts +1181 -1181
  1563. package/src/dex/nerve/nerve-events.test.ts +1179 -1179
  1564. package/src/dex/nerve/nerve-integration.test.ts +73 -73
  1565. package/src/dex/nerve/nerve-math.ts +304 -304
  1566. package/src/dex/nerve/nerve-metapool.ts +203 -203
  1567. package/src/dex/nerve/nerve-pool.ts +425 -425
  1568. package/src/dex/nerve/nerve.ts +423 -423
  1569. package/src/dex/nerve/types.ts +65 -65
  1570. package/src/dex/nerve/utils.ts +39 -39
  1571. package/src/dex/onebit.ts +83 -83
  1572. package/src/dex/pancakeswap-v3/config.ts +123 -107
  1573. package/src/dex/pancakeswap-v3/constants.ts +36 -36
  1574. package/src/dex/pancakeswap-v3/contract-math/BitMath.ts +90 -90
  1575. package/src/dex/pancakeswap-v3/contract-math/FixedPoint128.ts +3 -3
  1576. package/src/dex/pancakeswap-v3/contract-math/FixedPoint96.ts +4 -4
  1577. package/src/dex/pancakeswap-v3/contract-math/FullMath.ts +30 -30
  1578. package/src/dex/pancakeswap-v3/contract-math/LiquidityMath.ts +17 -17
  1579. package/src/dex/pancakeswap-v3/contract-math/Oracle.ts +226 -226
  1580. package/src/dex/pancakeswap-v3/contract-math/SqrtPriceMath.ts +226 -226
  1581. package/src/dex/pancakeswap-v3/contract-math/SwapMath.ts +139 -139
  1582. package/src/dex/pancakeswap-v3/contract-math/Tick.ts +82 -82
  1583. package/src/dex/pancakeswap-v3/contract-math/TickBitMap.ts +128 -128
  1584. package/src/dex/pancakeswap-v3/contract-math/TickMath.ts +211 -211
  1585. package/src/dex/pancakeswap-v3/contract-math/UnsafeMath.ts +5 -5
  1586. package/src/dex/pancakeswap-v3/contract-math/pancakeswap-v3-math.ts +687 -687
  1587. package/src/dex/pancakeswap-v3/contract-math/utils.ts +11 -11
  1588. package/src/dex/pancakeswap-v3/pancakeswap-v3-e2e.test.ts +445 -424
  1589. package/src/dex/pancakeswap-v3/pancakeswap-v3-events.test.ts +124 -124
  1590. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +80 -80
  1591. package/src/dex/pancakeswap-v3/pancakeswap-v3-integration.test.ts +529 -529
  1592. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +527 -527
  1593. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +1091 -1087
  1594. package/src/dex/pancakeswap-v3/utils.ts +65 -65
  1595. package/src/dex/paraswap-limit-orders/config.ts +67 -67
  1596. package/src/dex/paraswap-limit-orders/constant.ts +32 -32
  1597. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-e2e.test.ts +137 -137
  1598. package/src/dex/paraswap-limit-orders/paraswap-limit-orders-integration.test.ts +328 -328
  1599. package/src/dex/paraswap-limit-orders/paraswap-limit-orders.ts +596 -596
  1600. package/src/dex/paraswap-limit-orders/types.ts +83 -83
  1601. package/src/dex/paraswap-limit-orders/utils.ts +52 -52
  1602. package/src/dex/platypus/asset.ts +139 -139
  1603. package/src/dex/platypus/config.ts +72 -72
  1604. package/src/dex/platypus/platypus-e2e.test.ts +167 -167
  1605. package/src/dex/platypus/platypus-events.test.ts +167 -167
  1606. package/src/dex/platypus/platypus-integration.test.ts +256 -256
  1607. package/src/dex/platypus/platypus.ts +579 -579
  1608. package/src/dex/platypus/pool-avax.ts +92 -92
  1609. package/src/dex/platypus/pool-base.ts +155 -155
  1610. package/src/dex/platypus/pool-pure.ts +71 -71
  1611. package/src/dex/platypus/pool-subscriber.ts +239 -239
  1612. package/src/dex/platypus/pool.ts +99 -99
  1613. package/src/dex/platypus/types.ts +104 -104
  1614. package/src/dex/polygon-migrator/config.ts +25 -25
  1615. package/src/dex/polygon-migrator/constants.ts +1 -1
  1616. package/src/dex/polygon-migrator/polygon-migrator-e2e.test.ts +96 -96
  1617. package/src/dex/polygon-migrator/polygon-migrator-integration.test.ts +139 -139
  1618. package/src/dex/polygon-migrator/polygon-migrator.ts +167 -167
  1619. package/src/dex/polygon-migrator/types.ts +14 -14
  1620. package/src/dex/quick-perps/config.ts +31 -31
  1621. package/src/dex/quick-perps/fast-price-feed.ts +279 -279
  1622. package/src/dex/quick-perps/pool.ts +407 -407
  1623. package/src/dex/quick-perps/quick-perps-e2e.test.ts +65 -65
  1624. package/src/dex/quick-perps/quick-perps-events.test.ts +100 -100
  1625. package/src/dex/quick-perps/quick-perps-integration.test.ts +153 -153
  1626. package/src/dex/quick-perps/quick-perps.ts +302 -302
  1627. package/src/dex/quick-perps/types.ts +97 -97
  1628. package/src/dex/quick-perps/usdq.ts +83 -83
  1629. package/src/dex/quick-perps/vault-price-feed.ts +322 -322
  1630. package/src/dex/quick-perps/vault-utils.ts +53 -53
  1631. package/src/dex/quick-perps/vault.ts +290 -290
  1632. package/src/dex/quickswap/config.ts +25 -25
  1633. package/src/dex/quickswap/quickswap-e2e.test.ts +479 -479
  1634. package/src/dex/quickswap/quickswap-v3.ts +74 -74
  1635. package/src/dex/quickswap/spiritswap-v3.ts +19 -19
  1636. package/src/dex/quickswap/thena-fusion.ts +19 -19
  1637. package/src/dex/quickswap/types.ts +5 -5
  1638. package/src/dex/shell.ts +84 -84
  1639. package/src/dex/simple-exchange.ts +189 -189
  1640. package/src/dex/smardex/config.ts +67 -67
  1641. package/src/dex/smardex/constants.ts +35 -35
  1642. package/src/dex/smardex/sdk/constants.ts +10 -10
  1643. package/src/dex/smardex/sdk/core.ts +832 -832
  1644. package/src/dex/smardex/sdk/errors.ts +18 -18
  1645. package/src/dex/smardex/sdk/types.ts +68 -68
  1646. package/src/dex/smardex/sdk/utils.ts +156 -156
  1647. package/src/dex/smardex/smardex-e2e.test.ts +275 -275
  1648. package/src/dex/smardex/smardex-event-pool.ts +164 -164
  1649. package/src/dex/smardex/smardex-events.test.ts +297 -297
  1650. package/src/dex/smardex/smardex-integration.test.ts +258 -258
  1651. package/src/dex/smardex/smardex.ts +770 -770
  1652. package/src/dex/smardex/types.ts +69 -69
  1653. package/src/dex/smoothy.ts +99 -99
  1654. package/src/dex/solidly/config.ts +254 -254
  1655. package/src/dex/solidly/forks-override/aerodrome.ts +53 -53
  1656. package/src/dex/solidly/forks-override/chronos.ts +231 -231
  1657. package/src/dex/solidly/forks-override/cone.ts +67 -67
  1658. package/src/dex/solidly/forks-override/equalizer.ts +58 -58
  1659. package/src/dex/solidly/forks-override/pharaohV1.ts +10 -10
  1660. package/src/dex/solidly/forks-override/ramses.ts +253 -253
  1661. package/src/dex/solidly/forks-override/solisnek.ts +10 -10
  1662. package/src/dex/solidly/forks-override/spiritSwapV2.ts +61 -61
  1663. package/src/dex/solidly/forks-override/thena.ts +58 -58
  1664. package/src/dex/solidly/forks-override/usdfi.ts +10 -10
  1665. package/src/dex/solidly/forks-override/velocimeter.ts +58 -58
  1666. package/src/dex/solidly/forks-override/velodrome.ts +58 -58
  1667. package/src/dex/solidly/forks-override/velodromeV2.ts +63 -63
  1668. package/src/dex/solidly/solidly-e2e.test.ts +1579 -1579
  1669. package/src/dex/solidly/solidly-ethereum.ts +61 -61
  1670. package/src/dex/solidly/solidly-integration.test.ts +1888 -1888
  1671. package/src/dex/solidly/solidly-stable-pool.ts +91 -91
  1672. package/src/dex/solidly/solidly.ts +639 -639
  1673. package/src/dex/solidly/types.ts +35 -35
  1674. package/src/dex/solidly-v3/config.ts +78 -78
  1675. package/src/dex/solidly-v3/constants.ts +42 -42
  1676. package/src/dex/solidly-v3/contract-math/BitMath.ts +90 -90
  1677. package/src/dex/solidly-v3/contract-math/FixedPoint128.ts +3 -3
  1678. package/src/dex/solidly-v3/contract-math/FixedPoint96.ts +4 -4
  1679. package/src/dex/solidly-v3/contract-math/FullMath.ts +30 -30
  1680. package/src/dex/solidly-v3/contract-math/LiquidityMath.ts +17 -17
  1681. package/src/dex/solidly-v3/contract-math/SqrtPriceMath.ts +226 -226
  1682. package/src/dex/solidly-v3/contract-math/SwapMath.ts +139 -139
  1683. package/src/dex/solidly-v3/contract-math/Tick.ts +63 -63
  1684. package/src/dex/solidly-v3/contract-math/TickBitMap.ts +123 -123
  1685. package/src/dex/solidly-v3/contract-math/TickMath.ts +211 -211
  1686. package/src/dex/solidly-v3/contract-math/UnsafeMath.ts +5 -5
  1687. package/src/dex/solidly-v3/contract-math/uniswap-v3-math.ts +562 -562
  1688. package/src/dex/solidly-v3/contract-math/utils.ts +50 -50
  1689. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +157 -157
  1690. package/src/dex/solidly-v3/solidly-v3-events.test.ts +146 -146
  1691. package/src/dex/solidly-v3/solidly-v3-factory.ts +80 -80
  1692. package/src/dex/solidly-v3/solidly-v3-integration.test.ts +358 -358
  1693. package/src/dex/solidly-v3/solidly-v3-pool.ts +502 -502
  1694. package/src/dex/solidly-v3/solidly-v3.ts +980 -980
  1695. package/src/dex/solidly-v3/types.ts +157 -157
  1696. package/src/dex/solidly-v3/utils.ts +71 -71
  1697. package/src/dex/stable-pool.ts +115 -115
  1698. package/src/dex/swaap-v1/config.ts +62 -62
  1699. package/src/dex/swaap-v1/constants.ts +22 -22
  1700. package/src/dex/swaap-v1/libraries/ChainlinkUtils.ts +152 -152
  1701. package/src/dex/swaap-v1/libraries/Const.ts +29 -29
  1702. package/src/dex/swaap-v1/libraries/GeometricBrownianMotion.ts +433 -433
  1703. package/src/dex/swaap-v1/libraries/LogExpMath.ts +511 -511
  1704. package/src/dex/swaap-v1/libraries/MathMMM.ts +717 -717
  1705. package/src/dex/swaap-v1/libraries/Num.ts +184 -184
  1706. package/src/dex/swaap-v1/libraries/PoolQuotations.ts +322 -322
  1707. package/src/dex/swaap-v1/libraries/Struct.ts +66 -66
  1708. package/src/dex/swaap-v1/swaap-v1-e2e.test.ts +73 -73
  1709. package/src/dex/swaap-v1/swaap-v1-events.test.ts +138 -138
  1710. package/src/dex/swaap-v1/swaap-v1-integration.test.ts +232 -232
  1711. package/src/dex/swaap-v1/swaap-v1-pool.ts +919 -919
  1712. package/src/dex/swaap-v1/swaap-v1.ts +627 -627
  1713. package/src/dex/swaap-v1/types.ts +124 -124
  1714. package/src/dex/swaap-v2/config.ts +26 -26
  1715. package/src/dex/swaap-v2/constants.ts +52 -52
  1716. package/src/dex/swaap-v2/rate-fetcher.ts +264 -264
  1717. package/src/dex/swaap-v2/stable-coins.ts +25 -25
  1718. package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +302 -302
  1719. package/src/dex/swaap-v2/swaap-v2-integration.test.ts +142 -142
  1720. package/src/dex/swaap-v2/swaap-v2.ts +1009 -1009
  1721. package/src/dex/swaap-v2/types.ts +105 -105
  1722. package/src/dex/swaap-v2/utils.ts +46 -46
  1723. package/src/dex/swaap-v2/validators.ts +134 -134
  1724. package/src/dex/swell/config.ts +27 -27
  1725. package/src/dex/swell/swell-e2e.test.ts +53 -53
  1726. package/src/dex/swell/swell.ts +234 -234
  1727. package/src/dex/swell/sweth-pool.ts +58 -58
  1728. package/src/dex/swell/type.ts +3 -3
  1729. package/src/dex/swell/utils.ts +29 -29
  1730. package/src/dex/synthetix/config.ts +55 -55
  1731. package/src/dex/synthetix/constants.ts +36 -36
  1732. package/src/dex/synthetix/contract-math/DexPriceAggregatorUniswapV3.ts +276 -276
  1733. package/src/dex/synthetix/contract-math/ExchangeRates.ts +117 -117
  1734. package/src/dex/synthetix/contract-math/ExchangeRatesWithDexPricing.ts +278 -278
  1735. package/src/dex/synthetix/contract-math/FullMath.ts +17 -17
  1736. package/src/dex/synthetix/contract-math/OracleLibrary.ts +109 -109
  1737. package/src/dex/synthetix/contract-math/SafeDecimalMath.ts +49 -49
  1738. package/src/dex/synthetix/contract-math/TickMath.ts +72 -72
  1739. package/src/dex/synthetix/contract-math/synthetix-math.ts +266 -266
  1740. package/src/dex/synthetix/synthetix-e2e.test.ts +173 -173
  1741. package/src/dex/synthetix/synthetix-integration.test.ts +293 -293
  1742. package/src/dex/synthetix/synthetix-state.ts +970 -970
  1743. package/src/dex/synthetix/synthetix.ts +371 -371
  1744. package/src/dex/synthetix/types.ts +121 -121
  1745. package/src/dex/synthetix/utils.ts +125 -125
  1746. package/src/dex/trader-joe-v2.1.ts +156 -156
  1747. package/src/dex/trader-joe-v2.ts +148 -148
  1748. package/src/dex/uniswap-v2/biswap.ts +61 -61
  1749. package/src/dex/uniswap-v2/config.ts +822 -822
  1750. package/src/dex/uniswap-v2/constants.ts +60 -60
  1751. package/src/dex/uniswap-v2/dfyn.ts +87 -87
  1752. package/src/dex/uniswap-v2/excalibur.ts +63 -63
  1753. package/src/dex/uniswap-v2/mdex.ts +66 -66
  1754. package/src/dex/uniswap-v2/nomiswap-v2.ts +63 -63
  1755. package/src/dex/uniswap-v2/optimizer.ts +66 -66
  1756. package/src/dex/uniswap-v2/types.ts +141 -141
  1757. package/src/dex/uniswap-v2/uniswap-v2-constant-product-pool.ts +40 -40
  1758. package/src/dex/uniswap-v2/uniswap-v2-e2e-arbitrum.test.ts +438 -438
  1759. package/src/dex/uniswap-v2/uniswap-v2-e2e-avalanche.test.ts +1526 -1526
  1760. package/src/dex/uniswap-v2/uniswap-v2-e2e-base.test.ts +48 -48
  1761. package/src/dex/uniswap-v2/uniswap-v2-e2e-bsc.test.ts +1604 -1604
  1762. package/src/dex/uniswap-v2/uniswap-v2-e2e-fantom.test.ts +1428 -1428
  1763. package/src/dex/uniswap-v2/uniswap-v2-e2e-mainnet.test.ts +1590 -1590
  1764. package/src/dex/uniswap-v2/uniswap-v2-e2e-optimism.test.ts +282 -282
  1765. package/src/dex/uniswap-v2/uniswap-v2-e2e-polygon.test.ts +1185 -1185
  1766. package/src/dex/uniswap-v2/uniswap-v2-e2e-ropsten.test.ts +481 -481
  1767. package/src/dex/uniswap-v2/uniswap-v2-factory.ts +71 -71
  1768. package/src/dex/uniswap-v2/uniswap-v2-integration.test.ts +63 -63
  1769. package/src/dex/uniswap-v2/uniswap-v2.ts +901 -901
  1770. package/src/dex/uniswap-v3/config.ts +396 -396
  1771. package/src/dex/uniswap-v3/constants.ts +41 -41
  1772. package/src/dex/uniswap-v3/contract-math/BitMath.ts +90 -90
  1773. package/src/dex/uniswap-v3/contract-math/FixedPoint128.ts +3 -3
  1774. package/src/dex/uniswap-v3/contract-math/FixedPoint96.ts +4 -4
  1775. package/src/dex/uniswap-v3/contract-math/FullMath.ts +30 -30
  1776. package/src/dex/uniswap-v3/contract-math/LiquidityMath.ts +17 -17
  1777. package/src/dex/uniswap-v3/contract-math/Oracle.ts +226 -226
  1778. package/src/dex/uniswap-v3/contract-math/SqrtPriceMath.ts +226 -226
  1779. package/src/dex/uniswap-v3/contract-math/SwapMath.ts +139 -139
  1780. package/src/dex/uniswap-v3/contract-math/Tick.ts +82 -82
  1781. package/src/dex/uniswap-v3/contract-math/TickBitMap.ts +123 -123
  1782. package/src/dex/uniswap-v3/contract-math/TickMath.ts +211 -211
  1783. package/src/dex/uniswap-v3/contract-math/UnsafeMath.ts +5 -5
  1784. package/src/dex/uniswap-v3/contract-math/uniswap-v3-math.ts +666 -666
  1785. package/src/dex/uniswap-v3/contract-math/utils.ts +55 -55
  1786. package/src/dex/uniswap-v3/forks/ramses-v2/ramses-v2-pool.ts +156 -156
  1787. package/src/dex/uniswap-v3/forks/ramses-v2/utils.ts +72 -72
  1788. package/src/dex/uniswap-v3/scripts/check-pool-bitmap-ranges.ts +238 -238
  1789. package/src/dex/uniswap-v3/scripts/measure-calc-time.ts +172 -172
  1790. package/src/dex/uniswap-v3/types.ts +191 -191
  1791. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +1211 -1211
  1792. package/src/dex/uniswap-v3/uniswap-v3-events.test.ts +185 -185
  1793. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +80 -80
  1794. package/src/dex/uniswap-v3/uniswap-v3-integration.test.ts +2012 -2012
  1795. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +527 -527
  1796. package/src/dex/uniswap-v3/uniswap-v3.ts +1256 -1256
  1797. package/src/dex/uniswap-v3/utils.ts +83 -83
  1798. package/src/dex/uniswap-v3.ts +182 -182
  1799. package/src/dex/weth/config.ts +76 -76
  1800. package/src/dex/weth/types.ts +33 -33
  1801. package/src/dex/weth/weth-e2e.test.ts +845 -845
  1802. package/src/dex/weth/weth-integration.test.ts +80 -80
  1803. package/src/dex/weth/weth.ts +199 -199
  1804. package/src/dex/wombat/config.ts +77 -77
  1805. package/src/dex/wombat/types.ts +55 -55
  1806. package/src/dex/wombat/utils.ts +82 -82
  1807. package/src/dex/wombat/wombat-bmw.ts +186 -186
  1808. package/src/dex/wombat/wombat-e2e.test.ts +271 -271
  1809. package/src/dex/wombat/wombat-events.test.ts +147 -147
  1810. package/src/dex/wombat/wombat-integration.test.ts +217 -217
  1811. package/src/dex/wombat/wombat-pool.ts +688 -688
  1812. package/src/dex/wombat/wombat-quoter.ts +269 -269
  1813. package/src/dex/wombat/wombat.ts +427 -427
  1814. package/src/dex/woo-fi-v2/config.ts +100 -100
  1815. package/src/dex/woo-fi-v2/constants.ts +22 -22
  1816. package/src/dex/woo-fi-v2/decoders.ts +45 -45
  1817. package/src/dex/woo-fi-v2/types.ts +63 -63
  1818. package/src/dex/woo-fi-v2/utils.ts +19 -19
  1819. package/src/dex/woo-fi-v2/woo-fi-v2-e2e.test.ts +280 -280
  1820. package/src/dex/woo-fi-v2/woo-fi-v2-integration.test.ts +495 -495
  1821. package/src/dex/woo-fi-v2/woo-fi-v2-math.ts +195 -195
  1822. package/src/dex/woo-fi-v2/woo-fi-v2-pool.ts +112 -112
  1823. package/src/dex/woo-fi-v2/woo-fi-v2.ts +482 -482
  1824. package/src/dex/wsteth/config.ts +16 -16
  1825. package/src/dex/wsteth/types.ts +13 -13
  1826. package/src/dex/wsteth/wsteth-e2e.test.ts +95 -95
  1827. package/src/dex/wsteth/wsteth-integration.test.ts +201 -201
  1828. package/src/dex/wsteth/wsteth.ts +274 -274
  1829. package/src/dex/zerox/index.ts +331 -331
  1830. package/src/dex/zerox/order.ts +62 -62
  1831. package/src/dex/zerox/types.ts +48 -48
  1832. package/src/dex-helper/dummy-dex-helper.ts +293 -293
  1833. package/src/dex-helper/dummy-limit-order-provider.ts +74 -74
  1834. package/src/dex-helper/iblock-manager.ts +60 -60
  1835. package/src/dex-helper/icache.ts +75 -75
  1836. package/src/dex-helper/idex-helper.ts +25 -25
  1837. package/src/dex-helper/ilimit-order-provider.ts +27 -27
  1838. package/src/dex-helper/index.ts +16 -16
  1839. package/src/dex-helper/irequest-wrapper.ts +58 -58
  1840. package/src/implementations/local-paraswap-sdk.ts +279 -279
  1841. package/src/index.ts +37 -37
  1842. package/src/lens.ts +8 -8
  1843. package/src/lib/api3-feed.ts +175 -175
  1844. package/src/lib/benqi/staked-avax.ts +123 -123
  1845. package/src/lib/chainlink.ts +98 -98
  1846. package/src/lib/decoders.ts +199 -199
  1847. package/src/lib/erc1271-utils.ts +24 -24
  1848. package/src/lib/fetcher/fetcher.ts +183 -183
  1849. package/src/lib/generics-events-subscribers/erc20-event-subscriber-factory.ts +18 -18
  1850. package/src/lib/generics-events-subscribers/erc20-event-subscriber.test.ts +126 -126
  1851. package/src/lib/generics-events-subscribers/erc20-event-subscriber.ts +261 -261
  1852. package/src/lib/generics-events-subscribers/types.ts +41 -41
  1853. package/src/lib/generics-events-subscribers/utils.ts +37 -37
  1854. package/src/lib/log-messages-suppressor.ts +173 -173
  1855. package/src/lib/log4js.ts +88 -88
  1856. package/src/lib/multi-wrapper.ts +108 -108
  1857. package/src/lib/promise-scheduler.ts +55 -55
  1858. package/src/lib/stateful-rpc-poller/state-polling-manager.ts +320 -320
  1859. package/src/lib/stateful-rpc-poller/stateful-rpc-poller.ts +604 -604
  1860. package/src/lib/stateful-rpc-poller/types.ts +66 -66
  1861. package/src/lib/stateful-rpc-poller/utils.ts +23 -23
  1862. package/src/lib/task-scheduler.ts +64 -64
  1863. package/src/lib/token-transfer-fee.ts +42 -42
  1864. package/src/lib/tokens/balancer-fetcher.ts +283 -283
  1865. package/src/lib/tokens/types.ts +102 -102
  1866. package/src/lib/tokens/utils.ts +179 -179
  1867. package/src/lib/utils-interfaces.ts +4 -4
  1868. package/src/lib/validators.ts +34 -34
  1869. package/src/pools-helper.ts +58 -58
  1870. package/src/pricing-helper.ts +320 -320
  1871. package/src/rebase-tokens.json +17 -17
  1872. package/src/router/buy.ts +101 -101
  1873. package/src/router/directswap.ts +101 -101
  1874. package/src/router/index.ts +48 -48
  1875. package/src/router/irouter.ts +20 -20
  1876. package/src/router/megaswap.ts +88 -88
  1877. package/src/router/multiswap.ts +96 -96
  1878. package/src/router/payload-encoder.ts +293 -293
  1879. package/src/router/simpleswap.ts +360 -360
  1880. package/src/router/simpleswapnft.ts +138 -138
  1881. package/src/stateful-event-subscriber.ts +495 -495
  1882. package/src/transaction-builder.ts +85 -85
  1883. package/src/types.ts +307 -307
  1884. package/src/utils.ts +410 -410
  1885. package/tests/constants-e2e.ts +1371 -1371
  1886. package/tests/generate-new-limit-order.ts +107 -107
  1887. package/tests/payload-encoder.test.ts +49 -49
  1888. package/tests/smart-tokens.ts +111 -111
  1889. package/tests/tenderly-simulation.ts +172 -172
  1890. package/tests/transaction-builder.test.ts +234 -234
  1891. package/tests/utils-e2e.ts +730 -730
  1892. package/tests/utils-events.ts +186 -186
  1893. package/tests/utils.ts +127 -127
  1894. package/tsconfig.json +23 -23
  1895. package/.idea/codeStyles/Project.xml +0 -76
  1896. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  1897. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  1898. package/.idea/modules.xml +0 -8
  1899. package/.idea/paraswap-dex-lib.iml +0 -12
  1900. package/.idea/vcs.xml +0 -6
  1901. package/.yarn/cache/@0x-types-npm-2.4.3-b9261c898a-4e7d1b8873.zip +0 -0
  1902. package/.yarn/cache/@0x-typescript-typings-npm-4.3.0-e201555799-162ca209fb.zip +0 -0
  1903. package/.yarn/cache/@0x-utils-npm-4.5.2-81ca334d54-021a30b3e0.zip +0 -0
  1904. package/.yarn/cache/@adraffy-ens-normalize-npm-1.10.0-7dfdaa4813-af0540f963.zip +0 -0
  1905. package/.yarn/cache/@ampproject-remapping-npm-2.2.0-114878fa50-d74d170d06.zip +0 -0
  1906. package/.yarn/cache/@babel-code-frame-npm-7.18.6-25229a7e34-195e2be317.zip +0 -0
  1907. package/.yarn/cache/@babel-compat-data-npm-7.19.4-579e57594f-757fdaeb67.zip +0 -0
  1908. package/.yarn/cache/@babel-core-npm-7.19.6-dd0c1d6359-85c0bd38d0.zip +0 -0
  1909. package/.yarn/cache/@babel-generator-npm-7.19.6-9ce28207f1-734fcb1fbe.zip +0 -0
  1910. package/.yarn/cache/@babel-helper-compilation-targets-npm-7.19.3-ba5dbffed2-aafcb4490c.zip +0 -0
  1911. package/.yarn/cache/@babel-helper-environment-visitor-npm-7.18.9-9f5b3635a1-b25101f616.zip +0 -0
  1912. package/.yarn/cache/@babel-helper-function-name-npm-7.19.0-5bcf55236f-eac1f5db42.zip +0 -0
  1913. package/.yarn/cache/@babel-helper-hoist-variables-npm-7.18.6-6eb061f405-fd9c35bb43.zip +0 -0
  1914. package/.yarn/cache/@babel-helper-module-imports-npm-7.18.6-1031faa864-f393f8a3b3.zip +0 -0
  1915. package/.yarn/cache/@babel-helper-module-transforms-npm-7.19.6-c73ab63519-c28692b37d.zip +0 -0
  1916. package/.yarn/cache/@babel-helper-plugin-utils-npm-7.19.0-744ad0c26b-eedc996c63.zip +0 -0
  1917. package/.yarn/cache/@babel-helper-simple-access-npm-7.19.4-c02920b575-964cb1ec36.zip +0 -0
  1918. package/.yarn/cache/@babel-helper-split-export-declaration-npm-7.18.6-53ebf8ad4c-c6d3dede53.zip +0 -0
  1919. package/.yarn/cache/@babel-helper-string-parser-npm-7.19.4-0db110dc3a-b2f8a3920b.zip +0 -0
  1920. package/.yarn/cache/@babel-helper-string-parser-npm-7.24.1-0a40ece7f8-8404e865b0.zip +0 -0
  1921. package/.yarn/cache/@babel-helper-validator-identifier-npm-7.19.1-d84f19e1dc-0eca5e86a7.zip +0 -0
  1922. package/.yarn/cache/@babel-helper-validator-identifier-npm-7.24.5-d1938535fe-75d6f9f475.zip +0 -0
  1923. package/.yarn/cache/@babel-helper-validator-option-npm-7.18.6-cc7d1a3315-f9cc6eb7cc.zip +0 -0
  1924. package/.yarn/cache/@babel-helpers-npm-7.19.4-f9307ad863-e2684e9a79.zip +0 -0
  1925. package/.yarn/cache/@babel-highlight-npm-7.18.6-9d35ad2e27-92d8ee6154.zip +0 -0
  1926. package/.yarn/cache/@babel-parser-npm-7.19.6-889250e3f3-9a3dca4ee3.zip +0 -0
  1927. package/.yarn/cache/@babel-plugin-syntax-async-generators-npm-7.8.4-d10cf993c9-7ed1c1d9b9.zip +0 -0
  1928. package/.yarn/cache/@babel-plugin-syntax-bigint-npm-7.8.3-b05d971e6c-3a10849d83.zip +0 -0
  1929. package/.yarn/cache/@babel-plugin-syntax-class-properties-npm-7.12.13-002ee9d930-24f34b196d.zip +0 -0
  1930. package/.yarn/cache/@babel-plugin-syntax-import-meta-npm-7.10.4-4a0a0158bc-166ac1125d.zip +0 -0
  1931. package/.yarn/cache/@babel-plugin-syntax-json-strings-npm-7.8.3-6dc7848179-bf5aea1f31.zip +0 -0
  1932. package/.yarn/cache/@babel-plugin-syntax-jsx-npm-7.18.6-3e378d5f11-6d37ea9729.zip +0 -0
  1933. package/.yarn/cache/@babel-plugin-syntax-logical-assignment-operators-npm-7.10.4-72ae00fdf6-aff3357703.zip +0 -0
  1934. package/.yarn/cache/@babel-plugin-syntax-nullish-coalescing-operator-npm-7.8.3-8a723173b5-87aca49189.zip +0 -0
  1935. package/.yarn/cache/@babel-plugin-syntax-numeric-separator-npm-7.10.4-81444be605-01ec5547bd.zip +0 -0
  1936. package/.yarn/cache/@babel-plugin-syntax-object-rest-spread-npm-7.8.3-60bd05b6ae-fddcf581a5.zip +0 -0
  1937. package/.yarn/cache/@babel-plugin-syntax-optional-catch-binding-npm-7.8.3-ce337427d8-910d90e72b.zip +0 -0
  1938. package/.yarn/cache/@babel-plugin-syntax-optional-chaining-npm-7.8.3-f3f3c79579-eef94d53a1.zip +0 -0
  1939. package/.yarn/cache/@babel-plugin-syntax-top-level-await-npm-7.14.5-60a0a2e83b-bbd1a56b09.zip +0 -0
  1940. package/.yarn/cache/@babel-plugin-syntax-typescript-npm-7.18.6-4ad9dd7d2a-2cde73725e.zip +0 -0
  1941. package/.yarn/cache/@babel-template-npm-7.18.10-b6d6fdbaf8-93a6aa094a.zip +0 -0
  1942. package/.yarn/cache/@babel-traverse-npm-7.19.6-aede7c1d08-3fafa244f7.zip +0 -0
  1943. package/.yarn/cache/@babel-types-npm-7.19.4-9a7b64a650-4032f64070.zip +0 -0
  1944. package/.yarn/cache/@babel-types-npm-7.24.5-2710b35119-8eeeacd996.zip +0 -0
  1945. package/.yarn/cache/@balancer-labs-sor-npm-4.1.1-beta.4-d3efbf4c07-77a3e7ca7b.zip +0 -0
  1946. package/.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip +0 -0
  1947. package/.yarn/cache/@bgd-labs-aave-address-book-npm-2.21.1-15abe21a02-13a3cac9e0.zip +0 -0
  1948. package/.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-5718f26708.zip +0 -0
  1949. package/.yarn/cache/@eslint-eslintrc-npm-1.4.0-f3a03b15bc-73e39c833d.zip +0 -0
  1950. package/.yarn/cache/@eth-optimism-contracts-bedrock-npm-0.11.3-6c66276e35-8daec2908d.zip +0 -0
  1951. package/.yarn/cache/@eth-optimism-contracts-npm-0.5.40-91418f7802-11dde466c9.zip +0 -0
  1952. package/.yarn/cache/@eth-optimism-core-utils-npm-0.12.0-79e5c05a6c-1c820107c4.zip +0 -0
  1953. package/.yarn/cache/@eth-optimism-sdk-npm-1.10.1-802c6381c7-62301c987c.zip +0 -0
  1954. package/.yarn/cache/@ethereumjs-common-npm-2.6.5-3cdacd49c9-0143386f26.zip +0 -0
  1955. package/.yarn/cache/@ethereumjs-tx-npm-3.5.2-21a88306e6-a34a7228a6.zip +0 -0
  1956. package/.yarn/cache/@ethersproject-abi-npm-5.0.7-072aa9bb6b-47bce73278.zip +0 -0
  1957. package/.yarn/cache/@ethersproject-abi-npm-5.7.0-fdd80304df-bc6962bb6c.zip +0 -0
  1958. package/.yarn/cache/@ethersproject-abstract-provider-npm-5.7.0-f94be4e0b0-74cf469624.zip +0 -0
  1959. package/.yarn/cache/@ethersproject-abstract-signer-npm-5.7.0-f61d0a970e-a823dac9cf.zip +0 -0
  1960. package/.yarn/cache/@ethersproject-address-npm-5.7.0-d27f4f2b80-64ea5ebea9.zip +0 -0
  1961. package/.yarn/cache/@ethersproject-base64-npm-5.7.0-ddf99521e0-7dd5d734d6.zip +0 -0
  1962. package/.yarn/cache/@ethersproject-basex-npm-5.7.0-78ae312582-326087b7e1.zip +0 -0
  1963. package/.yarn/cache/@ethersproject-bignumber-npm-5.7.0-cd761880ac-8c9a134b76.zip +0 -0
  1964. package/.yarn/cache/@ethersproject-bytes-npm-5.7.0-4454fe4cb0-66ad365cea.zip +0 -0
  1965. package/.yarn/cache/@ethersproject-constants-npm-5.7.0-24294ccfde-6d4b135574.zip +0 -0
  1966. package/.yarn/cache/@ethersproject-contracts-npm-5.7.0-4d3730222f-6ccf1121cb.zip +0 -0
  1967. package/.yarn/cache/@ethersproject-hash-npm-5.7.0-7c00366b4e-6e9fa8d14e.zip +0 -0
  1968. package/.yarn/cache/@ethersproject-hdnode-npm-5.7.0-c6d5c6aa1c-bfe5ca2d89.zip +0 -0
  1969. package/.yarn/cache/@ethersproject-json-wallets-npm-5.7.0-f73c4734e5-f583458d22.zip +0 -0
  1970. package/.yarn/cache/@ethersproject-keccak256-npm-5.7.0-be838547c4-ff70950d82.zip +0 -0
  1971. package/.yarn/cache/@ethersproject-logger-npm-5.7.0-63fe9c3d29-075ab2f605.zip +0 -0
  1972. package/.yarn/cache/@ethersproject-networks-npm-5.7.1-eb06956095-0339f31230.zip +0 -0
  1973. package/.yarn/cache/@ethersproject-pbkdf2-npm-5.7.0-5b8e51d4b9-b895adb9e3.zip +0 -0
  1974. package/.yarn/cache/@ethersproject-properties-npm-5.7.0-00a99c747b-6ab0ccf0c3.zip +0 -0
  1975. package/.yarn/cache/@ethersproject-providers-npm-5.7.2-88293ff29f-1754c731a5.zip +0 -0
  1976. package/.yarn/cache/@ethersproject-random-npm-5.7.0-a0466f53f9-017829c91c.zip +0 -0
  1977. package/.yarn/cache/@ethersproject-rlp-npm-5.7.0-a6c9e763ff-bce165b0f7.zip +0 -0
  1978. package/.yarn/cache/@ethersproject-sha2-npm-5.7.0-569c8bdff0-09321057c0.zip +0 -0
  1979. package/.yarn/cache/@ethersproject-signing-key-npm-5.7.0-51cfa7708e-8f8de09b0a.zip +0 -0
  1980. package/.yarn/cache/@ethersproject-solidity-npm-5.7.0-75baa4e133-9a02f37f80.zip +0 -0
  1981. package/.yarn/cache/@ethersproject-strings-npm-5.7.0-efcb671e56-5ff78693ae.zip +0 -0
  1982. package/.yarn/cache/@ethersproject-transactions-npm-5.7.0-9a32c9e61a-a31b71996d.zip +0 -0
  1983. package/.yarn/cache/@ethersproject-units-npm-5.7.0-1c1f5ec7ca-304714f848.zip +0 -0
  1984. package/.yarn/cache/@ethersproject-wallet-npm-5.7.0-f553c726b7-a4009bf733.zip +0 -0
  1985. package/.yarn/cache/@ethersproject-web-npm-5.7.1-dabb653410-7028c47103.zip +0 -0
  1986. package/.yarn/cache/@ethersproject-wordlists-npm-5.7.0-00d314bfdb-30eb6eb073.zip +0 -0
  1987. package/.yarn/cache/@hapi-hoek-npm-9.3.0-447eb8d274-4771c7a776.zip +0 -0
  1988. package/.yarn/cache/@hapi-topo-npm-5.1.0-5e0b776809-604dfd5dde.zip +0 -0
  1989. package/.yarn/cache/@hashflow-contracts-evm-npm-2.0.10-0542e1ad29-705930daaf.zip +0 -0
  1990. package/.yarn/cache/@hashflow-contracts-evm-npm-2.0.8-85fbf2e6e0-06472eca62.zip +0 -0
  1991. package/.yarn/cache/@hashflow-governance-npm-1.0.4-af20232f5e-f55d03d8fb.zip +0 -0
  1992. package/.yarn/cache/@hashflow-hashverse-contracts-evm-npm-1.0.0-24cb9b3498-93c2f9b0a1.zip +0 -0
  1993. package/.yarn/cache/@hashflow-hashverse-contracts-npm-1.0.2-4a4d0b6600-264740ce0f.zip +0 -0
  1994. package/.yarn/cache/@hashflow-hashverse-contracts-npm-1.3.1-81d17767b4-fe80f7ccde.zip +0 -0
  1995. package/.yarn/cache/@hashflow-protocol-npm-1.0.3-4e7ed66df3-da0e817705.zip +0 -0
  1996. package/.yarn/cache/@hashflow-sdk-npm-1.2.4-5e605e1eb3-f57be42833.zip +0 -0
  1997. package/.yarn/cache/@hashflow-sdk-npm-2.2.1-86b19fcaf7-aa04572145.zip +0 -0
  1998. package/.yarn/cache/@hashflow-taker-js-npm-0.3.4-d3e0f3273e-07b717e778.zip +0 -0
  1999. package/.yarn/cache/@humanwhocodes-config-array-npm-0.11.8-7955bfecc2-0fd6b3c54f.zip +0 -0
  2000. package/.yarn/cache/@humanwhocodes-module-importer-npm-1.0.1-9d07ed2e4a-0fd22007db.zip +0 -0
  2001. package/.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip +0 -0
  2002. package/.yarn/cache/@isaacs-cliui-npm-8.0.2-f4364666d5-4a473b9b32.zip +0 -0
  2003. package/.yarn/cache/@istanbuljs-load-nyc-config-npm-1.1.0-42d17c9cb1-d578da5e2e.zip +0 -0
  2004. package/.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip +0 -0
  2005. package/.yarn/cache/@jest-console-npm-29.2.1-3ab9fdc9c3-b5f08dc60c.zip +0 -0
  2006. package/.yarn/cache/@jest-core-npm-29.2.1-ce2b44c12c-849f9287a0.zip +0 -0
  2007. package/.yarn/cache/@jest-environment-npm-29.2.1-ff40b93688-632d023c9e.zip +0 -0
  2008. package/.yarn/cache/@jest-expect-npm-29.2.1-2895175dd4-c64b939200.zip +0 -0
  2009. package/.yarn/cache/@jest-expect-utils-npm-29.2.1-d238dc1c64-7e6e156f45.zip +0 -0
  2010. package/.yarn/cache/@jest-fake-timers-npm-29.2.1-1d0070ff5e-e4f42a2677.zip +0 -0
  2011. package/.yarn/cache/@jest-globals-npm-29.2.1-92a70cfda6-4204669366.zip +0 -0
  2012. package/.yarn/cache/@jest-reporters-npm-29.2.1-2621c49b23-8f6419d67b.zip +0 -0
  2013. package/.yarn/cache/@jest-schemas-npm-29.0.0-5d6c90262d-41355c78f0.zip +0 -0
  2014. package/.yarn/cache/@jest-source-map-npm-29.2.0-cb038ff173-09f76ab63d.zip +0 -0
  2015. package/.yarn/cache/@jest-test-result-npm-29.2.1-79b07e69f2-8f5f069dcf.zip +0 -0
  2016. package/.yarn/cache/@jest-test-sequencer-npm-29.2.1-6e7aa8e35e-ff73ce30d5.zip +0 -0
  2017. package/.yarn/cache/@jest-transform-npm-29.2.1-5005852d43-bb50bfce34.zip +0 -0
  2018. package/.yarn/cache/@jest-types-npm-26.6.2-fca9877d98-a0bd3d2f22.zip +0 -0
  2019. package/.yarn/cache/@jest-types-npm-29.2.1-6fb73b9831-a83f207274.zip +0 -0
  2020. package/.yarn/cache/@jridgewell-gen-mapping-npm-0.1.1-3bad172ac6-3bcc21fe78.zip +0 -0
  2021. package/.yarn/cache/@jridgewell-gen-mapping-npm-0.3.2-c64eeb4a4e-1832707a1c.zip +0 -0
  2022. package/.yarn/cache/@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-b5ceaaf9a1.zip +0 -0
  2023. package/.yarn/cache/@jridgewell-set-array-npm-1.1.2-45b82d7fb6-69a84d5980.zip +0 -0
  2024. package/.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip +0 -0
  2025. package/.yarn/cache/@jridgewell-trace-mapping-npm-0.3.17-57578fd48c-9d703b859c.zip +0 -0
  2026. package/.yarn/cache/@jridgewell-trace-mapping-npm-0.3.9-91625cd7fb-d89597752f.zip +0 -0
  2027. package/.yarn/cache/@metamask-eth-sig-util-npm-4.0.1-27d55ec43e-740df4c92a.zip +0 -0
  2028. package/.yarn/cache/@noble-curves-npm-1.2.0-9b40ee1239-bb798d7a66.zip +0 -0
  2029. package/.yarn/cache/@noble-hashes-npm-1.1.2-dbc15bb44d-3c2a8cb7c2.zip +0 -0
  2030. package/.yarn/cache/@noble-hashes-npm-1.1.5-e8bd4ac236-de3f095a7a.zip +0 -0
  2031. package/.yarn/cache/@noble-hashes-npm-1.3.2-1e619f9da0-fe23536b43.zip +0 -0
  2032. package/.yarn/cache/@noble-secp256k1-npm-1.6.3-d06f711103-16eb324253.zip +0 -0
  2033. package/.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip +0 -0
  2034. package/.yarn/cache/@nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip +0 -0
  2035. package/.yarn/cache/@nodelib-fs.walk-npm-1.2.8-b4a89da548-190c643f15.zip +0 -0
  2036. package/.yarn/cache/@nomicfoundation-ethereumjs-block-npm-4.0.0-2250ae77f4-a57a33dda7.zip +0 -0
  2037. package/.yarn/cache/@nomicfoundation-ethereumjs-blockchain-npm-6.0.0-75e1d2def4-5605c1d249.zip +0 -0
  2038. package/.yarn/cache/@nomicfoundation-ethereumjs-common-npm-3.0.0-f573286e4f-6a62908e5c.zip +0 -0
  2039. package/.yarn/cache/@nomicfoundation-ethereumjs-ethash-npm-2.0.0-226553c58b-60133df2d4.zip +0 -0
  2040. package/.yarn/cache/@nomicfoundation-ethereumjs-evm-npm-1.0.0-6161f7f3a0-d1ffaa1a02.zip +0 -0
  2041. package/.yarn/cache/@nomicfoundation-ethereumjs-rlp-npm-4.0.0-f7c95bd5db-b358d239e5.zip +0 -0
  2042. package/.yarn/cache/@nomicfoundation-ethereumjs-statemanager-npm-1.0.0-a0c3142cae-fad02ea922.zip +0 -0
  2043. package/.yarn/cache/@nomicfoundation-ethereumjs-trie-npm-5.0.0-e71cd0360a-468de7ffe0.zip +0 -0
  2044. package/.yarn/cache/@nomicfoundation-ethereumjs-tx-npm-4.0.0-4c6c80449d-d2c0e3384a.zip +0 -0
  2045. package/.yarn/cache/@nomicfoundation-ethereumjs-util-npm-8.0.0-b24eb6cc50-a39be4c8d3.zip +0 -0
  2046. package/.yarn/cache/@nomicfoundation-ethereumjs-vm-npm-6.0.0-74b0744a09-3c0e10b377.zip +0 -0
  2047. package/.yarn/cache/@nomicfoundation-solidity-analyzer-npm-0.1.0-cb8d861385-42dc5ba40e.zip +0 -0
  2048. package/.yarn/cache/@nomicfoundation-solidity-analyzer-win32-x64-msvc-npm-0.1.0-571599cfc1-8.zip +0 -0
  2049. package/.yarn/cache/@npmcli-agent-npm-2.2.2-e2f559d6c0-67de7b88cc.zip +0 -0
  2050. package/.yarn/cache/@npmcli-fs-npm-3.1.1-c19bd09f3c-d960cab4b9.zip +0 -0
  2051. package/.yarn/cache/@openzeppelin-contracts-npm-4.7.3-c7d67da36c-18382fcacf.zip +0 -0
  2052. package/.yarn/cache/@openzeppelin-contracts-npm-4.8.1-1683cae58d-99acefde1a.zip +0 -0
  2053. package/.yarn/cache/@openzeppelin-contracts-npm-4.9.2-babe0162a9-0538b18fe2.zip +0 -0
  2054. package/.yarn/cache/@openzeppelin-contracts-upgradeable-npm-4.7.3-51e6d1a149-c9ffb40cb8.zip +0 -0
  2055. package/.yarn/cache/@openzeppelin-contracts-upgradeable-npm-4.8.1-2bbc3d45f4-6af2fbddf2.zip +0 -0
  2056. package/.yarn/cache/@openzeppelin-contracts-upgradeable-npm-4.9.2-1afd0c3d40-88df083e88.zip +0 -0
  2057. package/.yarn/cache/@paraswap-core-npm-2.0.0-f4d9d524d1-3334491c8c.zip +0 -0
  2058. package/.yarn/cache/@paraswap-sdk-npm-6.6.0-2edebaf0d5-83f63c188a.zip +0 -0
  2059. package/.yarn/cache/@pkgjs-parseargs-npm-0.11.0-cd2a3fe948-6ad6a00fc4.zip +0 -0
  2060. package/.yarn/cache/@scure-base-npm-1.1.1-67ec4c3f95-b4fc810b49.zip +0 -0
  2061. package/.yarn/cache/@scure-bip32-npm-1.1.0-99716ab8b2-e6102ab903.zip +0 -0
  2062. package/.yarn/cache/@scure-bip39-npm-1.1.0-b324fc574e-c4361406f0.zip +0 -0
  2063. package/.yarn/cache/@sentry-core-npm-5.30.0-eea572697f-8a2b22687e.zip +0 -0
  2064. package/.yarn/cache/@sentry-hub-npm-5.30.0-c704a1b0f7-09f778cc78.zip +0 -0
  2065. package/.yarn/cache/@sentry-minimal-npm-5.30.0-2d3c87c4cd-934650f698.zip +0 -0
  2066. package/.yarn/cache/@sentry-node-npm-5.30.0-e0febe6d16-5f0367cc52.zip +0 -0
  2067. package/.yarn/cache/@sentry-tracing-npm-5.30.0-4f6b83b5cf-720c07b111.zip +0 -0
  2068. package/.yarn/cache/@sentry-types-npm-5.30.0-2e38fc2f17-de7df77782.zip +0 -0
  2069. package/.yarn/cache/@sentry-utils-npm-5.30.0-5bb40a2852-27b259a136.zip +0 -0
  2070. package/.yarn/cache/@sideway-address-npm-4.1.4-32f94bc9f5-b9fca2a93a.zip +0 -0
  2071. package/.yarn/cache/@sideway-formula-npm-3.0.0-8688cb96b6-8ae26a0ed6.zip +0 -0
  2072. package/.yarn/cache/@sideway-pinpoint-npm-2.0.0-66d94e687e-0f4491e589.zip +0 -0
  2073. package/.yarn/cache/@sinclair-typebox-npm-0.24.47-16efbd32d9-0996569169.zip +0 -0
  2074. package/.yarn/cache/@sindresorhus-is-npm-0.14.0-9f906ea34b-971e0441dd.zip +0 -0
  2075. package/.yarn/cache/@sindresorhus-is-npm-4.6.0-7cad05c55e-83839f13da.zip +0 -0
  2076. package/.yarn/cache/@sinonjs-commons-npm-1.8.3-30cf78d93f-6159726db5.zip +0 -0
  2077. package/.yarn/cache/@sinonjs-fake-timers-npm-9.1.2-3ff37ab7fb-7d3aef54e1.zip +0 -0
  2078. package/.yarn/cache/@szmarczak-http-timer-npm-1.1.2-ea82ca2d55-4d9158061c.zip +0 -0
  2079. package/.yarn/cache/@szmarczak-http-timer-npm-4.0.6-6ace00d82d-c29df3bcec.zip +0 -0
  2080. package/.yarn/cache/@tsconfig-node10-npm-1.0.9-f2e2d20feb-a33ae4dc2a.zip +0 -0
  2081. package/.yarn/cache/@tsconfig-node12-npm-1.0.11-9710d1c61b-5ce29a41b1.zip +0 -0
  2082. package/.yarn/cache/@tsconfig-node14-npm-1.0.3-15321421d2-19275fe80c.zip +0 -0
  2083. package/.yarn/cache/@tsconfig-node16-npm-1.0.3-6a4a30eda2-3a8b657dd0.zip +0 -0
  2084. package/.yarn/cache/@types-async-eventemitter-npm-0.2.1-948dbf815e-36ba0a6f52.zip +0 -0
  2085. package/.yarn/cache/@types-async-npm-3.2.15-dfaa86b43e-c0d9dae6ca.zip +0 -0
  2086. package/.yarn/cache/@types-axios-npm-0.14.0-42f41917ea-12a230b940.zip +0 -0
  2087. package/.yarn/cache/@types-babel__core-npm-7.1.19-bd8ad53364-8c9fa87a1c.zip +0 -0
  2088. package/.yarn/cache/@types-babel__generator-npm-7.6.4-03e776f956-20effbbb5f.zip +0 -0
  2089. package/.yarn/cache/@types-babel__template-npm-7.4.1-fe1db49e53-649fe8b42c.zip +0 -0
  2090. package/.yarn/cache/@types-babel__traverse-npm-7.18.2-17d99e224e-05972775e2.zip +0 -0
  2091. package/.yarn/cache/@types-bn.js-npm-4.11.6-85f0d125f5-7f66f2c7b7.zip +0 -0
  2092. package/.yarn/cache/@types-bn.js-npm-5.1.1-346449981b-e50ed2dd3a.zip +0 -0
  2093. package/.yarn/cache/@types-body-parser-npm-1.19.2-f845b7b538-e17840c7d7.zip +0 -0
  2094. package/.yarn/cache/@types-cacheable-request-npm-6.0.2-894b6992d5-667d25808d.zip +0 -0
  2095. package/.yarn/cache/@types-connect-npm-3.4.35-7337eee0a3-fe81351470.zip +0 -0
  2096. package/.yarn/cache/@types-express-npm-4.17.14-076e1b4711-15c1af46d0.zip +0 -0
  2097. package/.yarn/cache/@types-express-serve-static-core-npm-4.17.31-846873f446-009bfbe107.zip +0 -0
  2098. package/.yarn/cache/@types-graceful-fs-npm-4.1.5-91d62e1050-d076bb61f4.zip +0 -0
  2099. package/.yarn/cache/@types-http-cache-semantics-npm-4.0.1-90863c7a3e-1048aacf62.zip +0 -0
  2100. package/.yarn/cache/@types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip +0 -0
  2101. package/.yarn/cache/@types-istanbul-lib-report-npm-3.0.0-50de3e6b3b-656398b62d.zip +0 -0
  2102. package/.yarn/cache/@types-istanbul-reports-npm-3.0.1-770e825002-f1ad54bc68.zip +0 -0
  2103. package/.yarn/cache/@types-jest-npm-26.0.24-47c570294f-ae39675412.zip +0 -0
  2104. package/.yarn/cache/@types-json-schema-npm-7.0.11-79462ae5ca-527bddfe62.zip +0 -0
  2105. package/.yarn/cache/@types-json5-npm-0.0.29-f63a7916bd-e60b153664.zip +0 -0
  2106. package/.yarn/cache/@types-keyv-npm-3.1.4-a8082ea56b-e009a2bfb5.zip +0 -0
  2107. package/.yarn/cache/@types-keyv-npm-4.2.0-82e1462555-8713da9382.zip +0 -0
  2108. package/.yarn/cache/@types-lodash-npm-4.14.178-5433b9ed68-a69a04a60b.zip +0 -0
  2109. package/.yarn/cache/@types-lru-cache-npm-5.1.1-46aaa305fe-e1d6c0085f.zip +0 -0
  2110. package/.yarn/cache/@types-mime-npm-3.0.1-dec03536dc-4040fac73f.zip +0 -0
  2111. package/.yarn/cache/@types-minimatch-npm-3.0.5-802bb0797f-c41d136f67.zip +0 -0
  2112. package/.yarn/cache/@types-node-npm-12.20.55-88487587a4-e4f86785f4.zip +0 -0
  2113. package/.yarn/cache/@types-node-npm-17.0.45-fdb38d1624-aa04366b91.zip +0 -0
  2114. package/.yarn/cache/@types-node-npm-18.11.3-0725b6dee6-3a2a9142d8.zip +0 -0
  2115. package/.yarn/cache/@types-node-npm-18.15.13-14d4d1b98f-79cc5a2b5f.zip +0 -0
  2116. package/.yarn/cache/@types-pbkdf2-npm-3.1.0-9fa74ff7fb-d15024b195.zip +0 -0
  2117. package/.yarn/cache/@types-prettier-npm-2.7.1-d46ada27e6-5e3f58e229.zip +0 -0
  2118. package/.yarn/cache/@types-prop-types-npm-15.7.5-2aa48aa177-5b43b8b154.zip +0 -0
  2119. package/.yarn/cache/@types-qs-npm-6.9.7-4a3e6ca0d0-7fd6f9c250.zip +0 -0
  2120. package/.yarn/cache/@types-range-parser-npm-1.2.4-23d797fbde-b7c0dfd508.zip +0 -0
  2121. package/.yarn/cache/@types-react-npm-18.0.21-e933f9864e-36c1a7c9d5.zip +0 -0
  2122. package/.yarn/cache/@types-responselike-npm-1.0.0-85dd08af42-e99fc7cc62.zip +0 -0
  2123. package/.yarn/cache/@types-scheduler-npm-0.16.2-ba3a7d8c68-b6b4dcfeae.zip +0 -0
  2124. package/.yarn/cache/@types-secp256k1-npm-4.0.3-945d1c398e-1bd10b9afa.zip +0 -0
  2125. package/.yarn/cache/@types-semver-npm-7.3.13-56212b60da-00c0724d54.zip +0 -0
  2126. package/.yarn/cache/@types-serve-static-npm-1.15.0-ec80a4ac87-b6ac93d471.zip +0 -0
  2127. package/.yarn/cache/@types-stack-utils-npm-2.0.1-867718ab70-205fdbe332.zip +0 -0
  2128. package/.yarn/cache/@types-uuid-npm-9.0.2-f2a5f65979-1754bcf344.zip +0 -0
  2129. package/.yarn/cache/@types-yargs-npm-15.0.14-07ba249dbb-8e358aeb8f.zip +0 -0
  2130. package/.yarn/cache/@types-yargs-npm-17.0.13-67226ed55b-0ab269abc2.zip +0 -0
  2131. package/.yarn/cache/@types-yargs-parser-npm-21.0.0-c8a3b32c52-b2f4c8d12a.zip +0 -0
  2132. package/.yarn/cache/@typescript-eslint-eslint-plugin-npm-5.47.0-777e22770f-fd867eb2b6.zip +0 -0
  2133. package/.yarn/cache/@typescript-eslint-parser-npm-5.47.0-5b98d28ddc-5c864ca74b.zip +0 -0
  2134. package/.yarn/cache/@typescript-eslint-scope-manager-npm-5.47.0-4c0e5e535c-f637268a4c.zip +0 -0
  2135. package/.yarn/cache/@typescript-eslint-type-utils-npm-5.47.0-e434bdc0f0-504b3e883a.zip +0 -0
  2136. package/.yarn/cache/@typescript-eslint-types-npm-5.47.0-e547b4cf4b-5a856e190c.zip +0 -0
  2137. package/.yarn/cache/@typescript-eslint-typescript-estree-npm-5.47.0-85e45a7397-a9adfe8955.zip +0 -0
  2138. package/.yarn/cache/@typescript-eslint-utils-npm-5.47.0-c839038696-f168920eec.zip +0 -0
  2139. package/.yarn/cache/@typescript-eslint-visitor-keys-npm-5.47.0-5d7861deb1-2191c07915.zip +0 -0
  2140. package/.yarn/cache/abbrev-npm-2.0.0-0eb38a17e5-0e994ad2aa.zip +0 -0
  2141. package/.yarn/cache/abort-controller-npm-3.0.0-2f3a9a2bcb-170bdba9b4.zip +0 -0
  2142. package/.yarn/cache/abortcontroller-polyfill-npm-1.7.5-d5260c03fd-daf4169f42.zip +0 -0
  2143. package/.yarn/cache/abstract-level-npm-1.0.3-7a868db447-70d61a3924.zip +0 -0
  2144. package/.yarn/cache/accepts-npm-1.3.8-9a812371c9-50c43d32e7.zip +0 -0
  2145. package/.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip +0 -0
  2146. package/.yarn/cache/acorn-npm-8.8.0-9ef399ab45-7270ca82b2.zip +0 -0
  2147. package/.yarn/cache/acorn-npm-8.8.1-20e4aea981-4079b67283.zip +0 -0
  2148. package/.yarn/cache/acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip +0 -0
  2149. package/.yarn/cache/adm-zip-npm-0.4.16-8a2fd28feb-5ea46664d8.zip +0 -0
  2150. package/.yarn/cache/aes-js-npm-3.0.0-fdf135c6be-251e26d533.zip +0 -0
  2151. package/.yarn/cache/aes-js-npm-4.0.0-beta.5-c70da65547-cc2ea969d7.zip +0 -0
  2152. package/.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip +0 -0
  2153. package/.yarn/cache/agent-base-npm-7.1.1-c9e1a4b59e-51c158769c.zip +0 -0
  2154. package/.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip +0 -0
  2155. package/.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip +0 -0
  2156. package/.yarn/cache/ansi-colors-npm-4.1.1-97ad42f223-138d04a510.zip +0 -0
  2157. package/.yarn/cache/ansi-colors-npm-4.1.3-8ffd0ae6c7-a9c2ec8420.zip +0 -0
  2158. package/.yarn/cache/ansi-escapes-npm-4.3.2-3ad173702f-93111c4218.zip +0 -0
  2159. package/.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip +0 -0
  2160. package/.yarn/cache/ansi-regex-npm-6.0.1-8d663a607d-1ff8b7667c.zip +0 -0
  2161. package/.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip +0 -0
  2162. package/.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip +0 -0
  2163. package/.yarn/cache/ansi-styles-npm-5.2.0-72fc7003e3-d7f4e97ce0.zip +0 -0
  2164. package/.yarn/cache/ansi-styles-npm-6.2.1-d43647018c-ef940f2f0c.zip +0 -0
  2165. package/.yarn/cache/anymatch-npm-3.1.2-1d5471acfa-985163db22.zip +0 -0
  2166. package/.yarn/cache/anymatch-npm-3.1.3-bc81d103b1-3e044fd6d1.zip +0 -0
  2167. package/.yarn/cache/arg-npm-4.1.3-1748b966a8-544af8dd3f.zip +0 -0
  2168. package/.yarn/cache/argparse-npm-1.0.10-528934e59d-7ca6e45583.zip +0 -0
  2169. package/.yarn/cache/argparse-npm-2.0.1-faff7999e6-83644b5649.zip +0 -0
  2170. package/.yarn/cache/array-differ-npm-3.0.0-ddc0d89007-117edd9df5.zip +0 -0
  2171. package/.yarn/cache/array-flatten-npm-1.1.1-9d94ad5f1d-a9925bf351.zip +0 -0
  2172. package/.yarn/cache/array-includes-npm-3.1.6-d0ff9d248b-f22f8cd8ba.zip +0 -0
  2173. package/.yarn/cache/array-union-npm-2.1.0-4e4852b221-5bee12395c.zip +0 -0
  2174. package/.yarn/cache/array.prototype.flat-npm-1.3.1-e9a9e389c0-5a8415949d.zip +0 -0
  2175. package/.yarn/cache/arrify-npm-2.0.1-38c408f77c-067c4c1afd.zip +0 -0
  2176. package/.yarn/cache/asn1-npm-0.2.6-bdd07356c4-39f2ae343b.zip +0 -0
  2177. package/.yarn/cache/asn1.js-npm-5.4.1-37c7edbcb0-3786a101ac.zip +0 -0
  2178. package/.yarn/cache/assert-plus-npm-1.0.0-cac95ef098-19b4340cb8.zip +0 -0
  2179. package/.yarn/cache/assertion-error-npm-1.1.0-66b893015e-fd9429d3a3.zip +0 -0
  2180. package/.yarn/cache/async-eventemitter-npm-0.2.4-0fec935369-b9e77e0f58.zip +0 -0
  2181. package/.yarn/cache/async-limiter-npm-1.0.1-7e6819bcdb-2b849695b4.zip +0 -0
  2182. package/.yarn/cache/async-npm-2.6.4-3155e80151-a52083fb32.zip +0 -0
  2183. package/.yarn/cache/async-npm-3.2.4-aba13508f9-43d07459a4.zip +0 -0
  2184. package/.yarn/cache/asynckit-npm-0.4.0-c718858525-7b78c451df.zip +0 -0
  2185. package/.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-20eb47b3ce.zip +0 -0
  2186. package/.yarn/cache/aws-sign2-npm-0.7.0-656c6cb84d-b148b0bb07.zip +0 -0
  2187. package/.yarn/cache/aws4-npm-1.11.0-283476ad94-5a00d045fd.zip +0 -0
  2188. package/.yarn/cache/axios-npm-0.26.0-ae9d5291c9-d7a8b898f4.zip +0 -0
  2189. package/.yarn/cache/axios-npm-0.27.2-dbe3a48aea-38cb754046.zip +0 -0
  2190. package/.yarn/cache/axios-npm-1.1.3-4b63965ac1-cab3b17bf6.zip +0 -0
  2191. package/.yarn/cache/babel-jest-npm-29.2.1-3f5ca9b26b-c340c10d8c.zip +0 -0
  2192. package/.yarn/cache/babel-plugin-istanbul-npm-6.1.1-df824055e4-cb4fd95738.zip +0 -0
  2193. package/.yarn/cache/babel-plugin-jest-hoist-npm-29.2.0-bad358f3a4-368d271cea.zip +0 -0
  2194. package/.yarn/cache/babel-preset-current-node-syntax-npm-1.0.1-849ec71e32-d118c27424.zip +0 -0
  2195. package/.yarn/cache/babel-preset-jest-npm-29.2.0-d765a77392-1b09a2db96.zip +0 -0
  2196. package/.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip +0 -0
  2197. package/.yarn/cache/base-x-npm-3.0.9-7b2588e106-957101d6fd.zip +0 -0
  2198. package/.yarn/cache/base64-js-npm-1.5.1-b2f7275641-669632eb37.zip +0 -0
  2199. package/.yarn/cache/bcrypt-pbkdf-npm-1.0.2-80db8b16ed-4edfc9fe7d.zip +0 -0
  2200. package/.yarn/cache/bech32-npm-1.1.4-87b69922f7-0e98db6191.zip +0 -0
  2201. package/.yarn/cache/bigint-crypto-utils-npm-3.1.8-1691be213a-deb004aacf.zip +0 -0
  2202. package/.yarn/cache/bigint-mod-arith-npm-3.1.2-c77f54df39-badddd745f.zip +0 -0
  2203. package/.yarn/cache/bignumber.js-npm-8.0.2-c9ba319196-bef57bc46f.zip +0 -0
  2204. package/.yarn/cache/bignumber.js-npm-9.1.0-4f54bd1083-52ec2bb5a3.zip +0 -0
  2205. package/.yarn/cache/bignumber.js-npm-9.1.1-5929e8d8dc-ad243b7e2f.zip +0 -0
  2206. package/.yarn/cache/binary-extensions-npm-2.2.0-180c33fec7-ccd267956c.zip +0 -0
  2207. package/.yarn/cache/blakejs-npm-1.2.1-b1ff783529-d699ba116c.zip +0 -0
  2208. package/.yarn/cache/bluebird-npm-3.7.2-6a54136ee3-869417503c.zip +0 -0
  2209. package/.yarn/cache/bn.js-npm-4.11.6-34a3bf8e02-db23047bf0.zip +0 -0
  2210. package/.yarn/cache/bn.js-npm-4.12.0-3ec6c884f6-39afb4f15f.zip +0 -0
  2211. package/.yarn/cache/bn.js-npm-5.2.1-dc952b1965-3dd8c8d380.zip +0 -0
  2212. package/.yarn/cache/body-parser-npm-1.20.1-759fd14db9-f1050dbac3.zip +0 -0
  2213. package/.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip +0 -0
  2214. package/.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip +0 -0
  2215. package/.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip +0 -0
  2216. package/.yarn/cache/brorand-npm-1.1.0-ea86634c4b-8a05c9f3c4.zip +0 -0
  2217. package/.yarn/cache/browser-level-npm-1.0.1-f0600225ae-67fbc77ce8.zip +0 -0
  2218. package/.yarn/cache/browser-stdout-npm-1.3.1-6b2376bf3f-b717b19b25.zip +0 -0
  2219. package/.yarn/cache/browserify-aes-npm-1.2.0-2ad4aeefbe-4a17c3eb55.zip +0 -0
  2220. package/.yarn/cache/browserify-cipher-npm-1.0.1-e00d75c093-2d8500acf1.zip +0 -0
  2221. package/.yarn/cache/browserify-des-npm-1.0.2-5d04e0cde2-b15a3e358a.zip +0 -0
  2222. package/.yarn/cache/browserify-rsa-npm-4.1.0-2a224a51bc-155f0c1358.zip +0 -0
  2223. package/.yarn/cache/browserify-sign-npm-4.2.1-9a8530ca87-0221f190e3.zip +0 -0
  2224. package/.yarn/cache/browserslist-npm-4.21.4-7d64a96afc-4af3793704.zip +0 -0
  2225. package/.yarn/cache/bs-logger-npm-0.2.6-7670f88b66-d34bdaf68c.zip +0 -0
  2226. package/.yarn/cache/bs58-npm-4.0.1-8d2a7822b1-b3c5365bb9.zip +0 -0
  2227. package/.yarn/cache/bs58check-npm-2.1.2-4e87e40195-43bdf08a5d.zip +0 -0
  2228. package/.yarn/cache/bser-npm-2.1.1-cc902055ce-9ba4dc58ce.zip +0 -0
  2229. package/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip +0 -0
  2230. package/.yarn/cache/buffer-npm-5.7.1-513ef8259e-e2cf8429e1.zip +0 -0
  2231. package/.yarn/cache/buffer-npm-6.0.3-cd90dfedfe-5ad23293d9.zip +0 -0
  2232. package/.yarn/cache/buffer-reverse-npm-1.0.1-2224e35393-e350872a89.zip +0 -0
  2233. package/.yarn/cache/buffer-to-arraybuffer-npm-0.0.5-338a5a371f-b2e6493a66.zip +0 -0
  2234. package/.yarn/cache/buffer-xor-npm-1.0.3-56bb81b0dd-10c520df29.zip +0 -0
  2235. package/.yarn/cache/bufferutil-npm-4.0.7-77a45bb7a3-f75aa87e3d.zip +0 -0
  2236. package/.yarn/cache/bufio-npm-1.2.0-a2d2f99a0f-c5cc000999.zip +0 -0
  2237. package/.yarn/cache/busboy-npm-1.6.0-ebb5cbb04b-32801e2c01.zip +0 -0
  2238. package/.yarn/cache/bytes-npm-3.1.2-28b8643004-e4bcd3948d.zip +0 -0
  2239. package/.yarn/cache/cacache-npm-18.0.3-7936f526c3-b717fd9b36.zip +0 -0
  2240. package/.yarn/cache/cacheable-lookup-npm-5.0.4-8f13e8b44b-763e02cf91.zip +0 -0
  2241. package/.yarn/cache/cacheable-request-npm-6.1.0-684b834873-b510b237b1.zip +0 -0
  2242. package/.yarn/cache/cacheable-request-npm-7.0.2-e64cc641fc-6152813982.zip +0 -0
  2243. package/.yarn/cache/call-bind-npm-1.0.2-c957124861-f8e31de9d1.zip +0 -0
  2244. package/.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip +0 -0
  2245. package/.yarn/cache/camel-case-npm-4.1.2-082bf67a9a-bcbd25cd25.zip +0 -0
  2246. package/.yarn/cache/camelcase-npm-5.3.1-5db8af62c5-e6effce26b.zip +0 -0
  2247. package/.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip +0 -0
  2248. package/.yarn/cache/caniuse-lite-npm-1.0.30001423-20d69c693b-fe443f323f.zip +0 -0
  2249. package/.yarn/cache/capital-case-npm-1.0.4-90f8a4641d-41fa8fa87f.zip +0 -0
  2250. package/.yarn/cache/caseless-npm-0.12.0-e83bc5df83-b43bd4c440.zip +0 -0
  2251. package/.yarn/cache/catering-npm-2.1.1-b116dcdfef-205daefa69.zip +0 -0
  2252. package/.yarn/cache/chai-npm-4.3.7-48fdcf2584-0bba7d2678.zip +0 -0
  2253. package/.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip +0 -0
  2254. package/.yarn/cache/chalk-npm-3.0.0-e813208025-8e3ddf3981.zip +0 -0
  2255. package/.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip +0 -0
  2256. package/.yarn/cache/change-case-npm-4.1.2-9c42f72b39-e4bc4a093a.zip +0 -0
  2257. package/.yarn/cache/char-regex-npm-1.0.2-ecade5f97f-b563e4b603.zip +0 -0
  2258. package/.yarn/cache/check-error-npm-1.0.2-00c540c6e9-d9d1065044.zip +0 -0
  2259. package/.yarn/cache/chokidar-npm-3.5.3-c5f9b0a56a-b49fcde401.zip +0 -0
  2260. package/.yarn/cache/chownr-npm-1.1.4-5bd400ab08-115648f8eb.zip +0 -0
  2261. package/.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip +0 -0
  2262. package/.yarn/cache/ci-info-npm-2.0.0-78012236a1-3b374666a8.zip +0 -0
  2263. package/.yarn/cache/ci-info-npm-3.5.0-9f42814be7-7def378970.zip +0 -0
  2264. package/.yarn/cache/cids-npm-0.7.5-53a4e1a34a-54aa031bef.zip +0 -0
  2265. package/.yarn/cache/cipher-base-npm-1.0.4-2e98b97140-47d3568dbc.zip +0 -0
  2266. package/.yarn/cache/cjs-module-lexer-npm-1.2.2-473ce063ea-977f3f042b.zip +0 -0
  2267. package/.yarn/cache/class-is-npm-1.1.0-061e25fa9f-49024de3b2.zip +0 -0
  2268. package/.yarn/cache/classic-level-npm-1.2.0-399f00877c-88ddd12f21.zip +0 -0
  2269. package/.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip +0 -0
  2270. package/.yarn/cache/cliui-npm-7.0.4-d6b8a9edb6-ce2e8f578a.zip +0 -0
  2271. package/.yarn/cache/cliui-npm-8.0.1-3b029092cf-79648b3b00.zip +0 -0
  2272. package/.yarn/cache/clone-npm-2.1.2-1d491c6629-aaf106e9bc.zip +0 -0
  2273. package/.yarn/cache/clone-response-npm-1.0.3-f71cb6aff5-4e671cac39.zip +0 -0
  2274. package/.yarn/cache/co-npm-4.6.0-03f2d1feb6-5210d92230.zip +0 -0
  2275. package/.yarn/cache/collect-v8-coverage-npm-1.0.1-39dec86bad-4efe0a1fcc.zip +0 -0
  2276. package/.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip +0 -0
  2277. package/.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip +0 -0
  2278. package/.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip +0 -0
  2279. package/.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip +0 -0
  2280. package/.yarn/cache/combined-stream-npm-1.0.8-dc14d4a63a-49fa4aeb49.zip +0 -0
  2281. package/.yarn/cache/command-exists-npm-1.2.9-cc51a1f78a-729ae3d88a.zip +0 -0
  2282. package/.yarn/cache/commander-npm-3.0.2-7c81f1ab98-6d14ad030d.zip +0 -0
  2283. package/.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip +0 -0
  2284. package/.yarn/cache/confusing-browser-globals-npm-1.0.11-b3ff8e9483-3afc635abd.zip +0 -0
  2285. package/.yarn/cache/constant-case-npm-3.0.4-118b472e28-6c3346d51a.zip +0 -0
  2286. package/.yarn/cache/content-disposition-npm-0.5.4-2d93678616-afb9d545e2.zip +0 -0
  2287. package/.yarn/cache/content-hash-npm-2.5.2-565fd04df3-31869e4d13.zip +0 -0
  2288. package/.yarn/cache/content-type-npm-1.0.4-3b1a5ca16b-3d93585fda.zip +0 -0
  2289. package/.yarn/cache/convert-source-map-npm-1.9.0-e294555f4b-dc55a1f28d.zip +0 -0
  2290. package/.yarn/cache/cookie-npm-0.4.2-7761894d5f-a00833c998.zip +0 -0
  2291. package/.yarn/cache/cookie-npm-0.5.0-e2d58a161a-1f4bd2ca57.zip +0 -0
  2292. package/.yarn/cache/cookie-signature-npm-1.0.6-93f325f7f0-f4e1b0a98a.zip +0 -0
  2293. package/.yarn/cache/cookiejar-npm-2.1.3-ec18b65dd0-88259983eb.zip +0 -0
  2294. package/.yarn/cache/core-util-is-npm-1.0.2-9fc2b94dc3-7a4c925b49.zip +0 -0
  2295. package/.yarn/cache/cors-npm-2.8.5-c9935a2d12-ced838404c.zip +0 -0
  2296. package/.yarn/cache/crc-32-npm-1.2.2-28bdc12bcc-ad2d0ad0cb.zip +0 -0
  2297. package/.yarn/cache/create-ecdh-npm-4.0.4-1048ce2035-0dd7fca971.zip +0 -0
  2298. package/.yarn/cache/create-hash-npm-1.2.0-afd048e1ce-02a6ae3bb9.zip +0 -0
  2299. package/.yarn/cache/create-hmac-npm-1.1.7-b4ef32668a-ba12bb2257.zip +0 -0
  2300. package/.yarn/cache/create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip +0 -0
  2301. package/.yarn/cache/cross-fetch-npm-3.1.5-e414995db9-f6b8c6ee3e.zip +0 -0
  2302. package/.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip +0 -0
  2303. package/.yarn/cache/crypto-browserify-npm-3.12.0-bed454fef0-c1609af826.zip +0 -0
  2304. package/.yarn/cache/crypto-js-npm-3.3.0-5b307000b5-193923143a.zip +0 -0
  2305. package/.yarn/cache/csstype-npm-3.1.1-3857baf48b-1f7b4f5fdd.zip +0 -0
  2306. package/.yarn/cache/d-npm-1.0.1-64afbbc689-49ca0639c7.zip +0 -0
  2307. package/.yarn/cache/dashdash-npm-1.14.1-be8f10a286-3634c24957.zip +0 -0
  2308. package/.yarn/cache/date-format-npm-4.0.14-50da5e5139-dfe5139df6.zip +0 -0
  2309. package/.yarn/cache/debug-npm-2.6.9-7d4cb597dc-d2f51589ca.zip +0 -0
  2310. package/.yarn/cache/debug-npm-3.2.7-754e818c7a-b3d8c59407.zip +0 -0
  2311. package/.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip +0 -0
  2312. package/.yarn/cache/decamelize-npm-4.0.0-12410e3409-b7d09b8265.zip +0 -0
  2313. package/.yarn/cache/decode-uri-component-npm-0.2.0-5bcc0f3597-f3749344ab.zip +0 -0
  2314. package/.yarn/cache/decompress-response-npm-3.3.0-6e7b6375c3-952552ac3b.zip +0 -0
  2315. package/.yarn/cache/decompress-response-npm-6.0.0-359de2878c-d377cf47e0.zip +0 -0
  2316. package/.yarn/cache/dedent-npm-0.7.0-2dbb45a4c5-87de191050.zip +0 -0
  2317. package/.yarn/cache/deep-eql-npm-4.1.3-020a64f862-7f6d30cb41.zip +0 -0
  2318. package/.yarn/cache/deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip +0 -0
  2319. package/.yarn/cache/deepmerge-npm-4.2.2-112165ced2-a8c43a1ed8.zip +0 -0
  2320. package/.yarn/cache/defer-to-connect-npm-1.1.3-5887885147-9491b301dc.zip +0 -0
  2321. package/.yarn/cache/defer-to-connect-npm-2.0.1-9005cc8c60-8a9b50d2f2.zip +0 -0
  2322. package/.yarn/cache/define-properties-npm-1.1.4-85ee575655-ce0aef3f9e.zip +0 -0
  2323. package/.yarn/cache/delayed-stream-npm-1.0.0-c5a4c4cc02-46fe6e83e2.zip +0 -0
  2324. package/.yarn/cache/depd-npm-2.0.0-b6c51a4b43-abbe19c768.zip +0 -0
  2325. package/.yarn/cache/des.js-npm-1.0.1-9f155eddb6-1ec2eedd7e.zip +0 -0
  2326. package/.yarn/cache/destroy-npm-1.2.0-6a511802e2-0acb300b74.zip +0 -0
  2327. package/.yarn/cache/detect-newline-npm-3.1.0-6d33fa8d37-ae6cd429c4.zip +0 -0
  2328. package/.yarn/cache/detect-node-npm-2.0.3-cd2ccb5126-9442cf28df.zip +0 -0
  2329. package/.yarn/cache/diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip +0 -0
  2330. package/.yarn/cache/diff-npm-5.0.0-ad6900db18-f19fe29284.zip +0 -0
  2331. package/.yarn/cache/diff-sequences-npm-26.6.2-fbf1967570-79af871776.zip +0 -0
  2332. package/.yarn/cache/diff-sequences-npm-29.2.0-a03dd6ddbd-e7b874cc7a.zip +0 -0
  2333. package/.yarn/cache/diffie-hellman-npm-5.0.3-cbef8f3171-0e620f3221.zip +0 -0
  2334. package/.yarn/cache/dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip +0 -0
  2335. package/.yarn/cache/doctrine-npm-2.1.0-ac15d049b7-a45e277f7f.zip +0 -0
  2336. package/.yarn/cache/doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip +0 -0
  2337. package/.yarn/cache/dom-walk-npm-0.1.2-7d20a1a8d8-19eb0ce9c6.zip +0 -0
  2338. package/.yarn/cache/dot-case-npm-3.0.4-09675b5521-a65e351941.zip +0 -0
  2339. package/.yarn/cache/dotenv-npm-16.0.0-ef4a5ccded-664cebb51f.zip +0 -0
  2340. package/.yarn/cache/duplexer3-npm-0.1.5-343d4ab7e3-e677cb4c48.zip +0 -0
  2341. package/.yarn/cache/eastasianwidth-npm-0.2.0-c37eb16bd1-7d00d7cd8e.zip +0 -0
  2342. package/.yarn/cache/ecc-jsbn-npm-0.1.2-85b7a7be89-22fef4b620.zip +0 -0
  2343. package/.yarn/cache/ee-first-npm-1.1.1-33f8535b39-1b4cac778d.zip +0 -0
  2344. package/.yarn/cache/electron-to-chromium-npm-1.4.284-2fb881a7ac-be496e9dca.zip +0 -0
  2345. package/.yarn/cache/elliptic-npm-6.5.4-0ca8204a86-d56d21fd04.zip +0 -0
  2346. package/.yarn/cache/emittery-npm-0.10.2-aac10498b5-ee3e21788b.zip +0 -0
  2347. package/.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip +0 -0
  2348. package/.yarn/cache/emoji-regex-npm-9.2.2-e6fac8d058-8487182da7.zip +0 -0
  2349. package/.yarn/cache/encodeurl-npm-1.0.2-f8c8454c41-e50e3d508c.zip +0 -0
  2350. package/.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip +0 -0
  2351. package/.yarn/cache/end-of-stream-npm-1.4.4-497fc6dee1-530a5a5a1e.zip +0 -0
  2352. package/.yarn/cache/enquirer-npm-2.3.6-7899175762-1c0911e14a.zip +0 -0
  2353. package/.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip +0 -0
  2354. package/.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip +0 -0
  2355. package/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip +0 -0
  2356. package/.yarn/cache/es-abstract-npm-1.20.4-543318afab-89297cc785.zip +0 -0
  2357. package/.yarn/cache/es-abstract-npm-1.20.5-48876743a4-00564779dd.zip +0 -0
  2358. package/.yarn/cache/es-shim-unscopables-npm-1.0.0-06186593f1-83e95cadbb.zip +0 -0
  2359. package/.yarn/cache/es-to-primitive-npm-1.2.1-b7a7eac6c5-4ead6671a2.zip +0 -0
  2360. package/.yarn/cache/es5-ext-npm-0.10.62-f20aca46cb-25f42f6068.zip +0 -0
  2361. package/.yarn/cache/es6-iterator-npm-2.0.3-4dadb0ccc1-6e48b1c2d9.zip +0 -0
  2362. package/.yarn/cache/es6-promise-npm-4.2.8-c9f5b11f66-95614a8887.zip +0 -0
  2363. package/.yarn/cache/es6-symbol-npm-3.1.3-34d72f2a23-cd49722c2a.zip +0 -0
  2364. package/.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip +0 -0
  2365. package/.yarn/cache/escape-html-npm-1.0.3-376c22ee74-6213ca9ae0.zip +0 -0
  2366. package/.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip +0 -0
  2367. package/.yarn/cache/escape-string-regexp-npm-2.0.0-aef69d2a25-9f8a2d5743.zip +0 -0
  2368. package/.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip +0 -0
  2369. package/.yarn/cache/eslint-config-airbnb-base-npm-15.0.0-802837dd26-38626bad2c.zip +0 -0
  2370. package/.yarn/cache/eslint-config-prettier-npm-8.5.0-a1dd58b6d8-0d0f5c32e7.zip +0 -0
  2371. package/.yarn/cache/eslint-import-resolver-node-npm-0.3.6-d9426786c6-6266733af1.zip +0 -0
  2372. package/.yarn/cache/eslint-module-utils-npm-2.7.4-a1640084cb-5da13645da.zip +0 -0
  2373. package/.yarn/cache/eslint-npm-8.30.0-833a1d8979-b7525bb465.zip +0 -0
  2374. package/.yarn/cache/eslint-plugin-import-npm-2.26.0-959fe14a01-0bf77ad803.zip +0 -0
  2375. package/.yarn/cache/eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip +0 -0
  2376. package/.yarn/cache/eslint-scope-npm-7.1.1-23935eb377-9f6e974ab2.zip +0 -0
  2377. package/.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip +0 -0
  2378. package/.yarn/cache/eslint-visitor-keys-npm-2.1.0-c31806b6b9-e3081d7dd2.zip +0 -0
  2379. package/.yarn/cache/eslint-visitor-keys-npm-3.3.0-d329af7c8c-d59e68a7c5.zip +0 -0
  2380. package/.yarn/cache/espree-npm-9.4.1-b88faf10bc-4d266b0cf8.zip +0 -0
  2381. package/.yarn/cache/esprima-npm-4.0.1-1084e98778-b45bc805a6.zip +0 -0
  2382. package/.yarn/cache/esquery-npm-1.4.0-f39408b1a7-a0807e17ab.zip +0 -0
  2383. package/.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip +0 -0
  2384. package/.yarn/cache/estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip +0 -0
  2385. package/.yarn/cache/estraverse-npm-5.3.0-03284f8f63-072780882d.zip +0 -0
  2386. package/.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip +0 -0
  2387. package/.yarn/cache/etag-npm-1.8.1-54a3b989d9-571aeb3dbe.zip +0 -0
  2388. package/.yarn/cache/eth-ens-namehash-npm-2.0.8-5db8adee60-40ce4aeeda.zip +0 -0
  2389. package/.yarn/cache/eth-lib-npm-0.1.29-f0336c8400-d1494fc0af.zip +0 -0
  2390. package/.yarn/cache/eth-lib-npm-0.2.8-3c025a63dd-be7efb0b08.zip +0 -0
  2391. package/.yarn/cache/ethereum-bloom-filters-npm-1.0.10-5a486457fa-4019cc6f92.zip +0 -0
  2392. package/.yarn/cache/ethereum-cryptography-npm-0.1.3-ab43fc624b-54bae7a4a9.zip +0 -0
  2393. package/.yarn/cache/ethereum-cryptography-npm-1.1.2-c16cfd7e8a-0ef55f141a.zip +0 -0
  2394. package/.yarn/cache/ethereum-types-npm-2.1.6-600ade96f4-e418e14b51.zip +0 -0
  2395. package/.yarn/cache/ethereumjs-abi-npm-0.6.8-c911e0a245-cede2a8ae7.zip +0 -0
  2396. package/.yarn/cache/ethereumjs-util-npm-5.2.1-72b39f4e7e-20db6c639d.zip +0 -0
  2397. package/.yarn/cache/ethereumjs-util-npm-6.2.1-581f80bb5a-e3cb4a2c03.zip +0 -0
  2398. package/.yarn/cache/ethereumjs-util-npm-7.1.5-5bb4d00000-27a3c79d6e.zip +0 -0
  2399. package/.yarn/cache/ethers-npm-4.0.49-8d849613e4-357115348a.zip +0 -0
  2400. package/.yarn/cache/ethers-npm-5.7.2-eba7d781ee-b7c08cf3e2.zip +0 -0
  2401. package/.yarn/cache/ethers-npm-6.9.0-62ae87444b-e7b3b912b9.zip +0 -0
  2402. package/.yarn/cache/ethjs-unit-npm-0.1.6-fb3575f27f-df6b4752ff.zip +0 -0
  2403. package/.yarn/cache/ethjs-util-npm-0.1.6-bd313edc1f-1f42959e78.zip +0 -0
  2404. package/.yarn/cache/event-target-shim-npm-5.0.1-cb48709025-1ffe3bb22a.zip +0 -0
  2405. package/.yarn/cache/eventemitter3-npm-4.0.4-46f999a6ee-7afb1cd851.zip +0 -0
  2406. package/.yarn/cache/evp_bytestokey-npm-1.0.3-4a2644aaea-ad4e1577f1.zip +0 -0
  2407. package/.yarn/cache/execa-npm-4.1.0-cc675b4189-e30d298934.zip +0 -0
  2408. package/.yarn/cache/execa-npm-5.1.1-191347acf5-fba9022c8c.zip +0 -0
  2409. package/.yarn/cache/exit-npm-0.1.2-ef3761a67d-abc407f07a.zip +0 -0
  2410. package/.yarn/cache/expect-npm-29.2.1-77e66f565d-0a1347b569.zip +0 -0
  2411. package/.yarn/cache/exponential-backoff-npm-3.1.1-04df458b30-3d21519a4f.zip +0 -0
  2412. package/.yarn/cache/express-npm-4.18.2-bb15ff679a-3c4b9b0768.zip +0 -0
  2413. package/.yarn/cache/ext-npm-1.7.0-580588ab93-ef481f9ef4.zip +0 -0
  2414. package/.yarn/cache/extend-npm-3.0.2-e1ca07ac54-a50a8309ca.zip +0 -0
  2415. package/.yarn/cache/extsprintf-npm-1.3.0-61a92b324c-cee7a4a1e3.zip +0 -0
  2416. package/.yarn/cache/extsprintf-npm-1.4.1-140b2f27ab-a2f29b2419.zip +0 -0
  2417. package/.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip +0 -0
  2418. package/.yarn/cache/fast-glob-npm-3.2.12-162763bbae-0b1990f6ce.zip +0 -0
  2419. package/.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip +0 -0
  2420. package/.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-92cfec0a8d.zip +0 -0
  2421. package/.yarn/cache/fastq-npm-1.14.0-7344c77718-da2c05ec14.zip +0 -0
  2422. package/.yarn/cache/fb-watchman-npm-2.0.2-bcb6f8f831-b15a124cef.zip +0 -0
  2423. package/.yarn/cache/file-entry-cache-npm-6.0.1-31965cf0af-f49701feaa.zip +0 -0
  2424. package/.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip +0 -0
  2425. package/.yarn/cache/finalhandler-npm-1.2.0-593d001463-92effbfd32.zip +0 -0
  2426. package/.yarn/cache/find-up-npm-2.1.0-9f6cb1765c-43284fe4da.zip +0 -0
  2427. package/.yarn/cache/find-up-npm-4.1.0-c3ccf8d855-4c172680e8.zip +0 -0
  2428. package/.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip +0 -0
  2429. package/.yarn/cache/flat-cache-npm-3.0.4-ee77e5911e-4fdd10ecbc.zip +0 -0
  2430. package/.yarn/cache/flat-npm-5.0.2-12748102a5-12a1536ac7.zip +0 -0
  2431. package/.yarn/cache/flatted-npm-3.2.7-0da10b7c56-427633049d.zip +0 -0
  2432. package/.yarn/cache/follow-redirects-npm-1.15.2-1ec1dd82be-faa66059b6.zip +0 -0
  2433. package/.yarn/cache/for-each-npm-0.3.3-0010ca8cdd-6c48ff2bc6.zip +0 -0
  2434. package/.yarn/cache/foreground-child-npm-3.1.1-77e78ed774-139d270bc8.zip +0 -0
  2435. package/.yarn/cache/forever-agent-npm-0.6.1-01dae53bf9-766ae6e220.zip +0 -0
  2436. package/.yarn/cache/form-data-npm-2.3.3-c016cc11c0-10c1780fa1.zip +0 -0
  2437. package/.yarn/cache/form-data-npm-4.0.0-916facec2d-01135bf867.zip +0 -0
  2438. package/.yarn/cache/forwarded-npm-0.2.0-6473dabe35-fd27e2394d.zip +0 -0
  2439. package/.yarn/cache/fp-ts-npm-1.19.3-dff3ad3fb5-eb0d4766ad.zip +0 -0
  2440. package/.yarn/cache/fp-ts-npm-1.19.5-24841190c4-67d2d9c385.zip +0 -0
  2441. package/.yarn/cache/fresh-npm-0.5.2-ad2bb4c0a2-13ea8b08f9.zip +0 -0
  2442. package/.yarn/cache/fs-extra-npm-0.30.0-897eeef4c3-6edfd65fc8.zip +0 -0
  2443. package/.yarn/cache/fs-extra-npm-4.0.3-2a1f6bc181-c5ae3c7043.zip +0 -0
  2444. package/.yarn/cache/fs-extra-npm-7.0.1-b33a5e53e9-141b9dccb2.zip +0 -0
  2445. package/.yarn/cache/fs-extra-npm-8.1.0-197473387f-bf44f0e6ce.zip +0 -0
  2446. package/.yarn/cache/fs-minipass-npm-1.2.7-0e18342ce1-40fd46a2b5.zip +0 -0
  2447. package/.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip +0 -0
  2448. package/.yarn/cache/fs-minipass-npm-3.0.3-d148d6ac19-8722a41109.zip +0 -0
  2449. package/.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip +0 -0
  2450. package/.yarn/cache/fsevents-npm-2.3.2-a881d6ac9f-97ade64e75.zip +0 -0
  2451. package/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip +0 -0
  2452. package/.yarn/cache/function.prototype.name-npm-1.1.5-e776a642bb-acd21d733a.zip +0 -0
  2453. package/.yarn/cache/functional-red-black-tree-npm-1.0.1-ccfe924dcd-ca6c170f37.zip +0 -0
  2454. package/.yarn/cache/functions-have-names-npm-1.2.3-e5cf1e2208-c3f1f5ba20.zip +0 -0
  2455. package/.yarn/cache/gensync-npm-1.0.0-beta.2-224666d72f-a7437e58c6.zip +0 -0
  2456. package/.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip +0 -0
  2457. package/.yarn/cache/get-func-name-npm-2.0.0-afbf363765-8d82e69f3e.zip +0 -0
  2458. package/.yarn/cache/get-intrinsic-npm-1.1.3-b6c7bd1010-152d79e872.zip +0 -0
  2459. package/.yarn/cache/get-package-type-npm-0.1.0-6c70cdc8ab-bba0811116.zip +0 -0
  2460. package/.yarn/cache/get-stream-npm-4.1.0-314d430a5d-443e191417.zip +0 -0
  2461. package/.yarn/cache/get-stream-npm-5.2.0-2cfd3b452b-8bc1a23174.zip +0 -0
  2462. package/.yarn/cache/get-stream-npm-6.0.1-83e51a4642-e04ecece32.zip +0 -0
  2463. package/.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-9ceff8fe96.zip +0 -0
  2464. package/.yarn/cache/getpass-npm-0.1.7-519164a3be-ab18d55661.zip +0 -0
  2465. package/.yarn/cache/glob-npm-10.3.12-f2e90133a0-2b0949d636.zip +0 -0
  2466. package/.yarn/cache/glob-npm-7.2.0-bb4644d239-78a8ea9423.zip +0 -0
  2467. package/.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip +0 -0
  2468. package/.yarn/cache/glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip +0 -0
  2469. package/.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip +0 -0
  2470. package/.yarn/cache/global-npm-4.4.0-888ee8033d-9c057557c8.zip +0 -0
  2471. package/.yarn/cache/globals-npm-11.12.0-1fa7f41a6c-67051a45ec.zip +0 -0
  2472. package/.yarn/cache/globals-npm-13.19.0-a63c75a2dd-a000dbd00b.zip +0 -0
  2473. package/.yarn/cache/globby-npm-11.1.0-bdcdf20c71-b4be8885e0.zip +0 -0
  2474. package/.yarn/cache/gopd-npm-1.0.1-10c1d0b534-a5ccfb8806.zip +0 -0
  2475. package/.yarn/cache/got-npm-11.8.5-787b5e3116-2de8a1bbda.zip +0 -0
  2476. package/.yarn/cache/got-npm-9.6.0-80edc15fd0-941807bd97.zip +0 -0
  2477. package/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip +0 -0
  2478. package/.yarn/cache/graceful-fs-npm-4.2.11-24bb648a68-ac85f94da9.zip +0 -0
  2479. package/.yarn/cache/grapheme-splitter-npm-1.0.4-648f2bf509-0c22ec54de.zip +0 -0
  2480. package/.yarn/cache/har-schema-npm-2.0.0-3a318c0ca5-d8946348f3.zip +0 -0
  2481. package/.yarn/cache/har-validator-npm-5.1.5-bd9ac162f5-b998a7269c.zip +0 -0
  2482. package/.yarn/cache/hardhat-npm-2.12.6-70f2bc424b-c97c5ed233.zip +0 -0
  2483. package/.yarn/cache/has-bigints-npm-1.0.2-52732e614d-390e31e7be.zip +0 -0
  2484. package/.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip +0 -0
  2485. package/.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip +0 -0
  2486. package/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip +0 -0
  2487. package/.yarn/cache/has-property-descriptors-npm-1.0.0-56289b918d-a6d3f0a266.zip +0 -0
  2488. package/.yarn/cache/has-symbols-npm-1.0.3-1986bff2c4-a054c40c63.zip +0 -0
  2489. package/.yarn/cache/has-tostringtag-npm-1.0.0-b1fcf3ab55-cc12eb28cb.zip +0 -0
  2490. package/.yarn/cache/hash-base-npm-3.1.0-26fc5711dd-26b7e97ac3.zip +0 -0
  2491. package/.yarn/cache/hash.js-npm-1.1.3-db96f2fb97-93de6f178b.zip +0 -0
  2492. package/.yarn/cache/hash.js-npm-1.1.7-f1ad187358-e350096e65.zip +0 -0
  2493. package/.yarn/cache/he-npm-1.2.0-3b73a2ff07-3d4d6babcc.zip +0 -0
  2494. package/.yarn/cache/header-case-npm-2.0.4-7d19e19e6d-571c83eeb2.zip +0 -0
  2495. package/.yarn/cache/hmac-drbg-npm-1.0.1-3499ad31cd-bd30b6a68d.zip +0 -0
  2496. package/.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip +0 -0
  2497. package/.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip +0 -0
  2498. package/.yarn/cache/http-cache-semantics-npm-4.1.1-1120131375-83ac0bc60b.zip +0 -0
  2499. package/.yarn/cache/http-errors-npm-2.0.0-3f1c503428-9b0a378266.zip +0 -0
  2500. package/.yarn/cache/http-https-npm-1.0.0-d2d5339bdb-82fc4d2e51.zip +0 -0
  2501. package/.yarn/cache/http-proxy-agent-npm-7.0.2-643ed7cc33-670858c8f8.zip +0 -0
  2502. package/.yarn/cache/http-signature-npm-1.2.0-ee92426f34-3324598712.zip +0 -0
  2503. package/.yarn/cache/http2-wrapper-npm-1.0.3-5b58ade1df-74160b862e.zip +0 -0
  2504. package/.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip +0 -0
  2505. package/.yarn/cache/https-proxy-agent-npm-7.0.4-a51e13f5dc-daaab857a9.zip +0 -0
  2506. package/.yarn/cache/human-signals-npm-1.1.1-616b2586c2-d587647c9e.zip +0 -0
  2507. package/.yarn/cache/human-signals-npm-2.1.0-f75815481d-b87fd89fce.zip +0 -0
  2508. package/.yarn/cache/husky-npm-8.0.2-46c70b41ed-e101656fcb.zip +0 -0
  2509. package/.yarn/cache/iconv-lite-npm-0.4.24-c5c4ac6695-bd9f120f5a.zip +0 -0
  2510. package/.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip +0 -0
  2511. package/.yarn/cache/idna-uts46-hx-npm-2.3.1-94935d7cfd-d434c3558d.zip +0 -0
  2512. package/.yarn/cache/ieee754-npm-1.2.1-fb63b3caeb-5144c0c981.zip +0 -0
  2513. package/.yarn/cache/ignore-npm-5.2.0-fc4b58a4f3-6b1f926792.zip +0 -0
  2514. package/.yarn/cache/ignore-npm-5.2.4-fbe6e989e5-3d4c309c60.zip +0 -0
  2515. package/.yarn/cache/immutable-npm-4.2.2-613ea9d8d9-4d6437ea93.zip +0 -0
  2516. package/.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip +0 -0
  2517. package/.yarn/cache/import-local-npm-3.1.0-8960af5e51-bfcdb63b5e.zip +0 -0
  2518. package/.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip +0 -0
  2519. package/.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip +0 -0
  2520. package/.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip +0 -0
  2521. package/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip +0 -0
  2522. package/.yarn/cache/internal-slot-npm-1.0.3-9e05eea002-1944f92e98.zip +0 -0
  2523. package/.yarn/cache/io-ts-npm-1.10.4-3648e14a10-6191340067.zip +0 -0
  2524. package/.yarn/cache/ip-address-npm-9.0.5-9fa024d42a-aa15f12cfd.zip +0 -0
  2525. package/.yarn/cache/ipaddr.js-npm-1.9.1-19ae7878b4-f88d382598.zip +0 -0
  2526. package/.yarn/cache/is-arguments-npm-1.1.1-eff4f6d4d7-7f02700ec2.zip +0 -0
  2527. package/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip +0 -0
  2528. package/.yarn/cache/is-bigint-npm-1.0.4-31c2eecbc9-c56edfe09b.zip +0 -0
  2529. package/.yarn/cache/is-binary-path-npm-2.1.0-e61d46f557-84192eb88c.zip +0 -0
  2530. package/.yarn/cache/is-boolean-object-npm-1.1.2-ecbd575e6a-c03b23dbaa.zip +0 -0
  2531. package/.yarn/cache/is-buffer-npm-2.0.5-17e563f277-764c9ad8b5.zip +0 -0
  2532. package/.yarn/cache/is-callable-npm-1.2.7-808a303e61-61fd57d03b.zip +0 -0
  2533. package/.yarn/cache/is-core-module-npm-2.11.0-70061e141a-f96fd490c6.zip +0 -0
  2534. package/.yarn/cache/is-date-object-npm-1.0.5-88f3d08b5e-baa9077cdf.zip +0 -0
  2535. package/.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip +0 -0
  2536. package/.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip +0 -0
  2537. package/.yarn/cache/is-function-npm-1.0.2-90ac01927b-7d564562e0.zip +0 -0
  2538. package/.yarn/cache/is-generator-fn-npm-2.1.0-37895c2d2b-a6ad5492cf.zip +0 -0
  2539. package/.yarn/cache/is-generator-function-npm-1.0.10-1d0f3809ef-d54644e7db.zip +0 -0
  2540. package/.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip +0 -0
  2541. package/.yarn/cache/is-hex-prefixed-npm-1.0.0-676e6251c7-5ac58e6e52.zip +0 -0
  2542. package/.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip +0 -0
  2543. package/.yarn/cache/is-negative-zero-npm-2.0.2-0adac91f15-f3232194c4.zip +0 -0
  2544. package/.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip +0 -0
  2545. package/.yarn/cache/is-number-object-npm-1.0.7-539d0e274d-d1e8d01bb0.zip +0 -0
  2546. package/.yarn/cache/is-path-inside-npm-3.0.3-2ea0ef44fd-abd50f0618.zip +0 -0
  2547. package/.yarn/cache/is-plain-obj-npm-2.1.0-8dffd7ae9c-cec9100678.zip +0 -0
  2548. package/.yarn/cache/is-regex-npm-1.1.4-cca193ef11-362399b335.zip +0 -0
  2549. package/.yarn/cache/is-shared-array-buffer-npm-1.0.2-32e4181fcd-9508929cf1.zip +0 -0
  2550. package/.yarn/cache/is-stream-npm-1.1.0-818ecbf6bb-063c6bec9d.zip +0 -0
  2551. package/.yarn/cache/is-stream-npm-2.0.1-c802db55e7-b8e05ccdf9.zip +0 -0
  2552. package/.yarn/cache/is-string-npm-1.0.7-9f7066daed-323b3d0462.zip +0 -0
  2553. package/.yarn/cache/is-symbol-npm-1.0.4-eb9baac703-92805812ef.zip +0 -0
  2554. package/.yarn/cache/is-typed-array-npm-1.1.9-c7c4ca7eec-11910f1e58.zip +0 -0
  2555. package/.yarn/cache/is-typedarray-npm-1.0.0-bbd99de5b6-3508c6cd0a.zip +0 -0
  2556. package/.yarn/cache/is-unicode-supported-npm-0.1.0-0833e1bbfb-a2aab86ee7.zip +0 -0
  2557. package/.yarn/cache/is-weakref-npm-1.0.2-ff80e8c314-95bd9a57cd.zip +0 -0
  2558. package/.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip +0 -0
  2559. package/.yarn/cache/isexe-npm-3.1.1-9c0061eead-7fe1931ee4.zip +0 -0
  2560. package/.yarn/cache/isomorphic-fetch-npm-2.2.1-46b4db5d7b-bb5daa7c37.zip +0 -0
  2561. package/.yarn/cache/isstream-npm-0.1.2-8581c75385-1eb2fe63a7.zip +0 -0
  2562. package/.yarn/cache/istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip +0 -0
  2563. package/.yarn/cache/istanbul-lib-instrument-npm-5.2.1-1b3ad719a9-bf16f1803b.zip +0 -0
  2564. package/.yarn/cache/istanbul-lib-report-npm-3.0.0-660f97340a-3f29eb3f53.zip +0 -0
  2565. package/.yarn/cache/istanbul-lib-source-maps-npm-4.0.1-af0f859df7-21ad3df45d.zip +0 -0
  2566. package/.yarn/cache/istanbul-reports-npm-3.1.5-fb11324e3e-7867228f83.zip +0 -0
  2567. package/.yarn/cache/jackspeak-npm-2.3.6-42e1233172-57d43ad11e.zip +0 -0
  2568. package/.yarn/cache/jest-changed-files-npm-29.2.0-e1a1846230-8ad8290324.zip +0 -0
  2569. package/.yarn/cache/jest-circus-npm-29.2.1-bb48de2990-3fe8bf27a4.zip +0 -0
  2570. package/.yarn/cache/jest-cli-npm-29.2.1-e13d8307f2-6f190450a6.zip +0 -0
  2571. package/.yarn/cache/jest-config-npm-29.2.1-af59d671b3-a2052eb47d.zip +0 -0
  2572. package/.yarn/cache/jest-diff-npm-26.6.2-06ca2a96ca-d00d297f31.zip +0 -0
  2573. package/.yarn/cache/jest-diff-npm-29.2.1-3d1e8ba84a-e3553e5bf5.zip +0 -0
  2574. package/.yarn/cache/jest-docblock-npm-29.2.0-61320ddd7c-b3f1227b7d.zip +0 -0
  2575. package/.yarn/cache/jest-each-npm-29.2.1-d12e75766e-877bd64a08.zip +0 -0
  2576. package/.yarn/cache/jest-environment-node-npm-29.2.1-e5f7ad4142-fc001e4292.zip +0 -0
  2577. package/.yarn/cache/jest-get-type-npm-26.3.0-a481f14d96-1cc6465ae4.zip +0 -0
  2578. package/.yarn/cache/jest-get-type-npm-29.2.0-47b45861f7-e396fd880a.zip +0 -0
  2579. package/.yarn/cache/jest-haste-map-npm-29.2.1-ad5b895784-1880e5dd12.zip +0 -0
  2580. package/.yarn/cache/jest-leak-detector-npm-29.2.1-71814af8e4-c30107ae58.zip +0 -0
  2581. package/.yarn/cache/jest-matcher-utils-npm-29.2.1-351cb7e187-d2a2f1ca83.zip +0 -0
  2582. package/.yarn/cache/jest-message-util-npm-29.2.1-611c868be8-1ec1341dea.zip +0 -0
  2583. package/.yarn/cache/jest-mock-npm-29.2.1-6b7fcc7ca7-fb28fc277e.zip +0 -0
  2584. package/.yarn/cache/jest-npm-29.2.1-157610b808-b19bf0b490.zip +0 -0
  2585. package/.yarn/cache/jest-pnp-resolver-npm-1.2.2-da20f8bdfe-bd85dcc0e7.zip +0 -0
  2586. package/.yarn/cache/jest-regex-util-npm-29.2.0-50cc574fb1-7c533e51c5.zip +0 -0
  2587. package/.yarn/cache/jest-resolve-dependencies-npm-29.2.1-b591286a1c-d299081952.zip +0 -0
  2588. package/.yarn/cache/jest-resolve-npm-29.2.1-62e10a2e31-d9ea07ccfa.zip +0 -0
  2589. package/.yarn/cache/jest-runner-npm-29.2.1-bd391c092d-5aaa04b80e.zip +0 -0
  2590. package/.yarn/cache/jest-runtime-npm-29.2.1-35c31724c8-bfd535ece2.zip +0 -0
  2591. package/.yarn/cache/jest-snapshot-npm-29.2.1-78130cb701-bb09952d13.zip +0 -0
  2592. package/.yarn/cache/jest-util-npm-29.2.1-9985a33765-781bd14a65.zip +0 -0
  2593. package/.yarn/cache/jest-validate-npm-29.2.1-870111abdb-33bf2671f9.zip +0 -0
  2594. package/.yarn/cache/jest-watcher-npm-29.2.1-1cdfae29af-c14224af26.zip +0 -0
  2595. package/.yarn/cache/jest-worker-npm-29.2.1-f152a67b79-10365612fa.zip +0 -0
  2596. package/.yarn/cache/joi-npm-17.7.0-24cbaab83c-767a847936.zip +0 -0
  2597. package/.yarn/cache/js-sdsl-npm-4.2.0-f34411d30f-2cd0885f72.zip +0 -0
  2598. package/.yarn/cache/js-sha3-npm-0.5.7-e4e4cb1ee3-973a28ea4b.zip +0 -0
  2599. package/.yarn/cache/js-sha3-npm-0.7.0-2becfae1ba-7a4bdd2ae0.zip +0 -0
  2600. package/.yarn/cache/js-sha3-npm-0.8.0-decf3ddcfa-75df77c1fc.zip +0 -0
  2601. package/.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip +0 -0
  2602. package/.yarn/cache/js-yaml-npm-3.14.1-b968c6095e-bef146085f.zip +0 -0
  2603. package/.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip +0 -0
  2604. package/.yarn/cache/jsbn-npm-0.1.1-0eb7132404-e5ff29c1b8.zip +0 -0
  2605. package/.yarn/cache/jsbn-npm-1.1.0-1da0181838-944f924f2b.zip +0 -0
  2606. package/.yarn/cache/jsesc-npm-2.5.2-c5acb78804-4dc1907711.zip +0 -0
  2607. package/.yarn/cache/json-buffer-npm-3.0.0-21c267a314-0cecacb802.zip +0 -0
  2608. package/.yarn/cache/json-buffer-npm-3.0.1-f8f6d20603-9026b03edc.zip +0 -0
  2609. package/.yarn/cache/json-parse-even-better-errors-npm-2.3.1-144d62256e-798ed4cf33.zip +0 -0
  2610. package/.yarn/cache/json-schema-npm-0.4.0-e776313070-66389434c3.zip +0 -0
  2611. package/.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip +0 -0
  2612. package/.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cff44156dd.zip +0 -0
  2613. package/.yarn/cache/json-stringify-safe-npm-5.0.1-064ddd6ab4-48ec0adad5.zip +0 -0
  2614. package/.yarn/cache/json5-npm-1.0.1-647fc8794b-e76ea23dbb.zip +0 -0
  2615. package/.yarn/cache/json5-npm-2.2.1-44675c859c-74b8a23b10.zip +0 -0
  2616. package/.yarn/cache/jsonfile-npm-2.4.0-5547489d6b-f5064aabbc.zip +0 -0
  2617. package/.yarn/cache/jsonfile-npm-4.0.0-10ce3aea15-6447d6224f.zip +0 -0
  2618. package/.yarn/cache/jsprim-npm-1.4.2-1ae6cade9a-2ad1b9fdcc.zip +0 -0
  2619. package/.yarn/cache/keccak-npm-3.0.2-6e9dec8765-39a7d6128b.zip +0 -0
  2620. package/.yarn/cache/keccak-npm-3.0.3-0a04b1d590-f08f04f5cc.zip +0 -0
  2621. package/.yarn/cache/keyv-npm-3.1.0-81c9ff4454-bb7e8f3acf.zip +0 -0
  2622. package/.yarn/cache/keyv-npm-4.5.0-57560bec53-d294873cf8.zip +0 -0
  2623. package/.yarn/cache/klaw-npm-1.3.1-0adc7be9ec-8f69e4797c.zip +0 -0
  2624. package/.yarn/cache/kleur-npm-3.0.3-f6f53649a4-df82cd1e17.zip +0 -0
  2625. package/.yarn/cache/lens.ts-npm-0.5.1-ac0ea51e8e-03af09e30c.zip +0 -0
  2626. package/.yarn/cache/level-npm-8.0.0-c35f5fe17a-13eb25bd71.zip +0 -0
  2627. package/.yarn/cache/level-supports-npm-4.0.1-78eaf0b919-d4552b42bb.zip +0 -0
  2628. package/.yarn/cache/level-transcoder-npm-1.0.1-8821d7bed1-304f08d802.zip +0 -0
  2629. package/.yarn/cache/leven-npm-3.1.0-b7697736a3-638401d534.zip +0 -0
  2630. package/.yarn/cache/levn-npm-0.4.1-d183b2d7bb-12c5021c85.zip +0 -0
  2631. package/.yarn/cache/lines-and-columns-npm-1.2.4-d6c7cc5799-0c37f9f7fa.zip +0 -0
  2632. package/.yarn/cache/locate-path-npm-2.0.0-673d28b0ea-02d581edbb.zip +0 -0
  2633. package/.yarn/cache/locate-path-npm-5.0.0-46580c43e4-83e51725e6.zip +0 -0
  2634. package/.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip +0 -0
  2635. package/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip +0 -0
  2636. package/.yarn/cache/lodash.memoize-npm-4.1.2-0e6250041f-9ff3942fee.zip +0 -0
  2637. package/.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-ad580b4bdb.zip +0 -0
  2638. package/.yarn/cache/log-symbols-npm-4.1.0-0a13492d8b-fce1497b31.zip +0 -0
  2639. package/.yarn/cache/log4js-npm-6.6.1-00e7698906-68f29e7b8b.zip +0 -0
  2640. package/.yarn/cache/loupe-npm-2.3.6-b8b37d55e7-cc83f1b124.zip +0 -0
  2641. package/.yarn/cache/lower-case-npm-2.0.2-151055f1c2-83a0a5f159.zip +0 -0
  2642. package/.yarn/cache/lowercase-keys-npm-1.0.1-0979e653b8-4d04502659.zip +0 -0
  2643. package/.yarn/cache/lowercase-keys-npm-2.0.0-1876065a32-24d7ebd56c.zip +0 -0
  2644. package/.yarn/cache/lru-cache-npm-10.2.2-c54b721fc3-98e8fc9369.zip +0 -0
  2645. package/.yarn/cache/lru-cache-npm-5.1.1-f475882a51-c154ae1cbb.zip +0 -0
  2646. package/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip +0 -0
  2647. package/.yarn/cache/lru_map-npm-0.3.3-a038bb3418-ca9dd43c65.zip +0 -0
  2648. package/.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip +0 -0
  2649. package/.yarn/cache/make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip +0 -0
  2650. package/.yarn/cache/make-fetch-happen-npm-13.0.1-4180f2aaa8-5c9fad6955.zip +0 -0
  2651. package/.yarn/cache/makeerror-npm-1.0.12-69abf085d7-b38a025a12.zip +0 -0
  2652. package/.yarn/cache/mcl-wasm-npm-0.7.9-adad1d76aa-6b6ed50841.zip +0 -0
  2653. package/.yarn/cache/md5.js-npm-1.3.5-130901125a-098494d885.zip +0 -0
  2654. package/.yarn/cache/media-typer-npm-0.3.0-8674f8f0f5-af1b38516c.zip +0 -0
  2655. package/.yarn/cache/memory-level-npm-1.0.0-7700adb8c7-80b1b7aeda.zip +0 -0
  2656. package/.yarn/cache/memorystream-npm-0.3.1-ae973f1d16-f18b42440d.zip +0 -0
  2657. package/.yarn/cache/merge-descriptors-npm-1.0.1-615287aaa8-5abc259d2a.zip +0 -0
  2658. package/.yarn/cache/merge-stream-npm-2.0.0-2ac83efea5-6fa4dcc8d8.zip +0 -0
  2659. package/.yarn/cache/merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip +0 -0
  2660. package/.yarn/cache/merkletreejs-npm-0.2.32-79a2b236fc-041b235add.zip +0 -0
  2661. package/.yarn/cache/methods-npm-1.1.2-92f6fdb39b-0917ff4041.zip +0 -0
  2662. package/.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-02a17b671c.zip +0 -0
  2663. package/.yarn/cache/miller-rabin-npm-4.0.1-3426ac0bf7-00cd1ab838.zip +0 -0
  2664. package/.yarn/cache/mime-db-npm-1.52.0-b5371d6fd2-0d99a03585.zip +0 -0
  2665. package/.yarn/cache/mime-npm-1.6.0-60ae95038a-fef25e3926.zip +0 -0
  2666. package/.yarn/cache/mime-types-npm-2.1.35-dd9ea9f3e2-89a5b7f1de.zip +0 -0
  2667. package/.yarn/cache/mimic-fn-npm-2.1.0-4fbeb3abb4-d2421a3444.zip +0 -0
  2668. package/.yarn/cache/mimic-response-npm-1.0.1-f6f85dde84-034c78753b.zip +0 -0
  2669. package/.yarn/cache/mimic-response-npm-3.1.0-a4a24b4e96-25739fee32.zip +0 -0
  2670. package/.yarn/cache/min-document-npm-2.19.0-458cdb3d84-da6437562e.zip +0 -0
  2671. package/.yarn/cache/minimalistic-assert-npm-1.0.1-dc8bb23d29-cc7974a926.zip +0 -0
  2672. package/.yarn/cache/minimalistic-crypto-utils-npm-1.0.1-e66b10822e-6e8a0422b3.zip +0 -0
  2673. package/.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip +0 -0
  2674. package/.yarn/cache/minimatch-npm-5.0.1-612724f6f0-b34b98463d.zip +0 -0
  2675. package/.yarn/cache/minimatch-npm-9.0.4-7be5a33efc-cf717f597e.zip +0 -0
  2676. package/.yarn/cache/minimist-npm-1.2.7-51d33b1371-7346574a10.zip +0 -0
  2677. package/.yarn/cache/minipass-collect-npm-2.0.1-73d3907e40-b251bceea6.zip +0 -0
  2678. package/.yarn/cache/minipass-fetch-npm-3.0.5-ed78529694-8047d27323.zip +0 -0
  2679. package/.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip +0 -0
  2680. package/.yarn/cache/minipass-npm-2.9.0-6335fbe4af-077b66f31b.zip +0 -0
  2681. package/.yarn/cache/minipass-npm-3.3.6-b8d93a945b-a30d083c80.zip +0 -0
  2682. package/.yarn/cache/minipass-npm-5.0.0-c64fb63c92-425dab2887.zip +0 -0
  2683. package/.yarn/cache/minipass-npm-7.1.0-e8c0e30e88-c057d4b1d7.zip +0 -0
  2684. package/.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip +0 -0
  2685. package/.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip +0 -0
  2686. package/.yarn/cache/minizlib-npm-1.3.3-b590e5bfb8-b0425c04d2.zip +0 -0
  2687. package/.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip +0 -0
  2688. package/.yarn/cache/mkdirp-npm-0.5.6-dcd5a6b97b-0c91b721bb.zip +0 -0
  2689. package/.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip +0 -0
  2690. package/.yarn/cache/mkdirp-promise-npm-5.0.1-b9705bf08a-31ddc94782.zip +0 -0
  2691. package/.yarn/cache/mnemonist-npm-0.38.5-3014297e32-66080afc16.zip +0 -0
  2692. package/.yarn/cache/mocha-npm-10.2.0-87db25c7c5-406c45eab1.zip +0 -0
  2693. package/.yarn/cache/mock-fs-npm-4.14.0-c51913d559-dccd976a8d.zip +0 -0
  2694. package/.yarn/cache/module-error-npm-1.0.2-4f8221ee3c-5d653e35bd.zip +0 -0
  2695. package/.yarn/cache/mri-npm-1.2.0-8ecee0357d-83f515abbc.zip +0 -0
  2696. package/.yarn/cache/ms-npm-2.0.0-9e1101a471-0e6a22b8b7.zip +0 -0
  2697. package/.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip +0 -0
  2698. package/.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip +0 -0
  2699. package/.yarn/cache/multibase-npm-0.6.1-61881fbece-0e25a978d2.zip +0 -0
  2700. package/.yarn/cache/multibase-npm-0.7.0-9e9562f6bb-3a520897d7.zip +0 -0
  2701. package/.yarn/cache/multicodec-npm-0.5.7-debf8ece85-5af1febc3b.zip +0 -0
  2702. package/.yarn/cache/multicodec-npm-1.0.4-fd6c9aa611-e6a2916fa7.zip +0 -0
  2703. package/.yarn/cache/multihashes-npm-0.4.21-073bb269b7-688731560c.zip +0 -0
  2704. package/.yarn/cache/multimatch-npm-4.0.0-8c467f035e-bdb6a98dad.zip +0 -0
  2705. package/.yarn/cache/nano-json-stream-parser-npm-0.1.2-1b11c4e9ae-5bfe146358.zip +0 -0
  2706. package/.yarn/cache/nanoid-npm-3.3.3-25d865be84-ada019402a.zip +0 -0
  2707. package/.yarn/cache/napi-macros-npm-2.0.0-f996ef3cad-3038481938.zip +0 -0
  2708. package/.yarn/cache/natural-compare-lite-npm-1.4.0-12b6b308ed-5222ac3986.zip +0 -0
  2709. package/.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip +0 -0
  2710. package/.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip +0 -0
  2711. package/.yarn/cache/next-tick-npm-1.1.0-e0eb60d6a4-83b5cf3602.zip +0 -0
  2712. package/.yarn/cache/no-case-npm-3.0.4-12884c3d98-0b2ebc113d.zip +0 -0
  2713. package/.yarn/cache/node-addon-api-npm-2.0.2-8c2c1e9782-31fb22d674.zip +0 -0
  2714. package/.yarn/cache/node-cache-npm-5.1.2-f65482660d-b0bdd81a6f.zip +0 -0
  2715. package/.yarn/cache/node-fetch-npm-1.7.3-eb8372f991-3bb0528c05.zip +0 -0
  2716. package/.yarn/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip +0 -0
  2717. package/.yarn/cache/node-gyp-build-npm-4.5.0-2538da6152-d888bae0fb.zip +0 -0
  2718. package/.yarn/cache/node-gyp-npm-10.1.0-bdea7d2ece-72e2ab4b23.zip +0 -0
  2719. package/.yarn/cache/node-int64-npm-0.4.0-0dc04ec3b2-d0b30b1ee6.zip +0 -0
  2720. package/.yarn/cache/node-releases-npm-2.0.6-8accb3fefb-e86a926dc9.zip +0 -0
  2721. package/.yarn/cache/nopt-npm-7.2.1-635b7da949-6fa729cc77.zip +0 -0
  2722. package/.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip +0 -0
  2723. package/.yarn/cache/normalize-url-npm-4.5.1-603d40bc18-9a9dee01df.zip +0 -0
  2724. package/.yarn/cache/normalize-url-npm-6.1.0-b95bc12ece-4a49446311.zip +0 -0
  2725. package/.yarn/cache/npm-run-path-npm-4.0.1-7aebd8bab3-5374c0cea4.zip +0 -0
  2726. package/.yarn/cache/number-to-bn-npm-1.7.0-dce8575cfb-5b8c9dbe7b.zip +0 -0
  2727. package/.yarn/cache/oauth-sign-npm-0.9.0-7aa9422221-8f5497a127.zip +0 -0
  2728. package/.yarn/cache/object-assign-npm-4.1.1-1004ad6dec-fcc6e4ea8c.zip +0 -0
  2729. package/.yarn/cache/object-inspect-npm-1.12.2-f125a822c0-a534fc1b85.zip +0 -0
  2730. package/.yarn/cache/object-keys-npm-1.1.1-1bf2f1be93-b363c5e764.zip +0 -0
  2731. package/.yarn/cache/object.assign-npm-4.1.4-fb3deb1c3a-76cab513a5.zip +0 -0
  2732. package/.yarn/cache/object.entries-npm-1.1.6-5f9ba14b46-0f8c47517e.zip +0 -0
  2733. package/.yarn/cache/object.values-npm-1.1.6-ab9b67ccd3-f6fff9fd81.zip +0 -0
  2734. package/.yarn/cache/obliterator-npm-2.0.4-b21b355294-f28ad35b6d.zip +0 -0
  2735. package/.yarn/cache/oboe-npm-2.1.5-b50d4a548b-e6171b3364.zip +0 -0
  2736. package/.yarn/cache/on-finished-npm-2.4.1-907af70f88-d20929a25e.zip +0 -0
  2737. package/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip +0 -0
  2738. package/.yarn/cache/onetime-npm-5.1.2-3ed148fa42-2478859ef8.zip +0 -0
  2739. package/.yarn/cache/optionator-npm-0.9.1-577e397aae-dbc6fa0656.zip +0 -0
  2740. package/.yarn/cache/os-tmpdir-npm-1.0.2-e305b0689b-5666560f7b.zip +0 -0
  2741. package/.yarn/cache/p-cancelable-npm-1.1.0-d147d5996f-2db3814fef.zip +0 -0
  2742. package/.yarn/cache/p-cancelable-npm-2.1.1-9388305f02-3dba12b4fb.zip +0 -0
  2743. package/.yarn/cache/p-limit-npm-1.3.0-fdb471d864-281c1c0b8c.zip +0 -0
  2744. package/.yarn/cache/p-limit-npm-2.3.0-94a0310039-84ff17f1a3.zip +0 -0
  2745. package/.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip +0 -0
  2746. package/.yarn/cache/p-locate-npm-2.0.0-3a2ee263dd-e2dceb9b49.zip +0 -0
  2747. package/.yarn/cache/p-locate-npm-4.1.0-eec6872537-513bd14a45.zip +0 -0
  2748. package/.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-1623088f36.zip +0 -0
  2749. package/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip +0 -0
  2750. package/.yarn/cache/p-try-npm-1.0.0-7373139e40-3b5303f77e.zip +0 -0
  2751. package/.yarn/cache/p-try-npm-2.2.0-e0390dbaf8-f8a8e9a769.zip +0 -0
  2752. package/.yarn/cache/param-case-npm-3.0.4-cfb242ad97-b34227fd0f.zip +0 -0
  2753. package/.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip +0 -0
  2754. package/.yarn/cache/parse-asn1-npm-5.1.6-6cc3a6eeae-9243311d1f.zip +0 -0
  2755. package/.yarn/cache/parse-headers-npm-2.0.5-c1f2d79179-3e97f01e4c.zip +0 -0
  2756. package/.yarn/cache/parse-json-npm-5.2.0-00a63b1199-62085b17d6.zip +0 -0
  2757. package/.yarn/cache/parseurl-npm-1.3.3-1542397e00-407cee8e0a.zip +0 -0
  2758. package/.yarn/cache/pascal-case-npm-3.1.2-35f5b9bff6-ba98bfd595.zip +0 -0
  2759. package/.yarn/cache/path-case-npm-3.0.4-5a1981bc0c-61de052622.zip +0 -0
  2760. package/.yarn/cache/path-exists-npm-3.0.0-e80371aa68-96e92643aa.zip +0 -0
  2761. package/.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip +0 -0
  2762. package/.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip +0 -0
  2763. package/.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip +0 -0
  2764. package/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip +0 -0
  2765. package/.yarn/cache/path-scurry-npm-1.10.2-676482c764-6739b4290f.zip +0 -0
  2766. package/.yarn/cache/path-to-regexp-npm-0.1.7-2605347373-69a14ea24d.zip +0 -0
  2767. package/.yarn/cache/path-type-npm-4.0.0-10d47fc86a-5b1e2daa24.zip +0 -0
  2768. package/.yarn/cache/pathval-npm-1.1.1-ce0311d7e0-090e314771.zip +0 -0
  2769. package/.yarn/cache/pbkdf2-npm-3.1.2-d67bbb584f-2c950a100b.zip +0 -0
  2770. package/.yarn/cache/performance-now-npm-2.1.0-45e3ce7e49-534e641aa8.zip +0 -0
  2771. package/.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip +0 -0
  2772. package/.yarn/cache/picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip +0 -0
  2773. package/.yarn/cache/pirates-npm-4.0.5-22f8e827ce-c9994e61b8.zip +0 -0
  2774. package/.yarn/cache/pkg-dir-npm-4.2.0-2b5d0a8d32-9863e3f351.zip +0 -0
  2775. package/.yarn/cache/popper.js-npm-1.14.3-e1a7afb8fb-c645f00299.zip +0 -0
  2776. package/.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-cd192ec0d0.zip +0 -0
  2777. package/.yarn/cache/prepend-http-npm-2.0.0-e1fc4332f2-7694a95254.zip +0 -0
  2778. package/.yarn/cache/prettier-npm-2.8.1-be60b51821-4f21a0f126.zip +0 -0
  2779. package/.yarn/cache/pretty-format-npm-26.6.2-6edfcf7149-e3b808404d.zip +0 -0
  2780. package/.yarn/cache/pretty-format-npm-29.2.1-b89d018340-d192cbd3de.zip +0 -0
  2781. package/.yarn/cache/pretty-quick-npm-3.1.3-b3fdb9cf9e-28bdc32571.zip +0 -0
  2782. package/.yarn/cache/proc-log-npm-3.0.0-a8c21c2f0f-02b64e1b39.zip +0 -0
  2783. package/.yarn/cache/proc-log-npm-4.2.0-4d65296a9d-98f6cd012d.zip +0 -0
  2784. package/.yarn/cache/process-npm-0.11.10-aeb3b641ae-bfcce49814.zip +0 -0
  2785. package/.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip +0 -0
  2786. package/.yarn/cache/prompts-npm-2.4.2-f5d25d5eea-d8fd1fe638.zip +0 -0
  2787. package/.yarn/cache/proxy-addr-npm-2.0.7-dae6552872-29c6990ce9.zip +0 -0
  2788. package/.yarn/cache/proxy-from-env-npm-1.1.0-c13d07f26b-ed7fcc2ba0.zip +0 -0
  2789. package/.yarn/cache/psl-npm-1.9.0-a546edad1a-20c4277f64.zip +0 -0
  2790. package/.yarn/cache/public-encrypt-npm-4.0.3-b25e19fada-215d446e43.zip +0 -0
  2791. package/.yarn/cache/pump-npm-3.0.0-0080bf6a7a-e42e9229fb.zip +0 -0
  2792. package/.yarn/cache/punycode-npm-2.1.0-57d3205f3e-d125d8f86c.zip +0 -0
  2793. package/.yarn/cache/punycode-npm-2.1.1-26eb3e15cf-823bf443c6.zip +0 -0
  2794. package/.yarn/cache/qs-npm-6.11.0-caf1bc9dea-6e1f29dd53.zip +0 -0
  2795. package/.yarn/cache/qs-npm-6.5.3-90b2635484-6f20bf08ca.zip +0 -0
  2796. package/.yarn/cache/query-string-npm-5.1.1-86edac70d6-4ac760d977.zip +0 -0
  2797. package/.yarn/cache/queue-microtask-npm-1.2.3-fcc98e4e2d-b676f8c040.zip +0 -0
  2798. package/.yarn/cache/quick-lru-npm-5.1.1-e38e0edce3-a516faa255.zip +0 -0
  2799. package/.yarn/cache/randombytes-npm-2.1.0-e3da76bccf-d779499376.zip +0 -0
  2800. package/.yarn/cache/randomfill-npm-1.0.4-a08651a679-33734bb578.zip +0 -0
  2801. package/.yarn/cache/range-parser-npm-1.2.1-1a470fa390-0a268d4fea.zip +0 -0
  2802. package/.yarn/cache/raw-body-npm-2.5.1-9dd1d9fff9-5362adff15.zip +0 -0
  2803. package/.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip +0 -0
  2804. package/.yarn/cache/react-is-npm-18.2.0-0cc5edb910-e72d0ba81b.zip +0 -0
  2805. package/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip +0 -0
  2806. package/.yarn/cache/readdirp-npm-3.6.0-f950cc74ab-1ced032e6e.zip +0 -0
  2807. package/.yarn/cache/regexp.prototype.flags-npm-1.4.3-df1c08b65d-51228bae73.zip +0 -0
  2808. package/.yarn/cache/regexpp-npm-3.2.0-2513f32cfc-a78dc5c715.zip +0 -0
  2809. package/.yarn/cache/request-npm-2.88.2-f4a57c72c4-4e112c087f.zip +0 -0
  2810. package/.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip +0 -0
  2811. package/.yarn/cache/require-from-string-npm-2.0.2-8557e0db12-a03ef68954.zip +0 -0
  2812. package/.yarn/cache/resolve-alpn-npm-1.2.1-af77edd28b-f558071fcb.zip +0 -0
  2813. package/.yarn/cache/resolve-cwd-npm-3.0.0-e6f4e296bf-546e081601.zip +0 -0
  2814. package/.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip +0 -0
  2815. package/.yarn/cache/resolve-from-npm-5.0.0-15c9db4d33-4ceeb9113e.zip +0 -0
  2816. package/.yarn/cache/resolve-npm-1.17.0-1c4c298f09-9ceaf83b34.zip +0 -0
  2817. package/.yarn/cache/resolve-npm-1.22.1-3980488690-07af5fc1e8.zip +0 -0
  2818. package/.yarn/cache/resolve-patch-0c52e0e4f7-5656f4d0be.zip +0 -0
  2819. package/.yarn/cache/resolve-patch-2a6955419f-6fd799f282.zip +0 -0
  2820. package/.yarn/cache/resolve.exports-npm-1.1.0-81756e03ba-52865af8ed.zip +0 -0
  2821. package/.yarn/cache/responselike-npm-1.0.2-d0bf50cde4-2e9e70f1dc.zip +0 -0
  2822. package/.yarn/cache/responselike-npm-2.0.1-7f64b6e122-b122535466.zip +0 -0
  2823. package/.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip +0 -0
  2824. package/.yarn/cache/reusify-npm-1.0.4-95ac4aec11-c3076ebcc2.zip +0 -0
  2825. package/.yarn/cache/rfdc-npm-1.3.0-272f288ad8-fb2ba8512e.zip +0 -0
  2826. package/.yarn/cache/rimraf-npm-2.7.1-9a71f3cc37-cdc7f6eacb.zip +0 -0
  2827. package/.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip +0 -0
  2828. package/.yarn/cache/ripemd160-npm-2.0.2-7b1fb8dc76-006accc405.zip +0 -0
  2829. package/.yarn/cache/rlp-npm-2.2.7-4cb283b8fe-3db4dfe5c7.zip +0 -0
  2830. package/.yarn/cache/run-parallel-limit-npm-1.1.0-ac1dfd4d1f-672c3b87e7.zip +0 -0
  2831. package/.yarn/cache/run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip +0 -0
  2832. package/.yarn/cache/rustbn.js-npm-0.2.0-ed57934f98-2148e7ba34.zip +0 -0
  2833. package/.yarn/cache/safe-buffer-npm-5.1.2-c27fedf6c4-f2f1f7943c.zip +0 -0
  2834. package/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip +0 -0
  2835. package/.yarn/cache/safe-regex-test-npm-1.0.0-e94a09b84e-bc566d8beb.zip +0 -0
  2836. package/.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip +0 -0
  2837. package/.yarn/cache/scrypt-js-npm-2.0.4-d3712b5675-679e894095.zip +0 -0
  2838. package/.yarn/cache/scrypt-js-npm-3.0.1-fd2d3fa606-b7c7d1a68d.zip +0 -0
  2839. package/.yarn/cache/secp256k1-npm-4.0.3-b4e9ce065b-21e219adc0.zip +0 -0
  2840. package/.yarn/cache/semver-npm-5.7.1-40bcea106b-57fd0acfd0.zip +0 -0
  2841. package/.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip +0 -0
  2842. package/.yarn/cache/semver-npm-7.3.8-25a996cb4f-ba9c7cbbf2.zip +0 -0
  2843. package/.yarn/cache/send-npm-0.18.0-faadf6353f-74fc07ebb5.zip +0 -0
  2844. package/.yarn/cache/sentence-case-npm-3.0.4-ed6888d0bc-3cfe6c0143.zip +0 -0
  2845. package/.yarn/cache/serialize-javascript-npm-6.0.0-0bb8a3c88d-56f90b562a.zip +0 -0
  2846. package/.yarn/cache/serve-static-npm-1.15.0-86c81879f5-af57fc13be.zip +0 -0
  2847. package/.yarn/cache/servify-npm-0.1.12-c952112302-f90e8f4e31.zip +0 -0
  2848. package/.yarn/cache/setimmediate-npm-1.0.4-48edecde5a-1d3726183a.zip +0 -0
  2849. package/.yarn/cache/setimmediate-npm-1.0.5-54587459b6-c9a6f2c5b5.zip +0 -0
  2850. package/.yarn/cache/setprototypeof-npm-1.2.0-0fedbdcd3a-be18cbbf70.zip +0 -0
  2851. package/.yarn/cache/sha.js-npm-2.4.11-14868df4ca-ebd3f59d4b.zip +0 -0
  2852. package/.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip +0 -0
  2853. package/.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip +0 -0
  2854. package/.yarn/cache/side-channel-npm-1.0.4-e1f38b9e06-351e41b947.zip +0 -0
  2855. package/.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip +0 -0
  2856. package/.yarn/cache/signal-exit-npm-4.1.0-61fb957687-64c757b498.zip +0 -0
  2857. package/.yarn/cache/simple-concat-npm-1.0.1-48df70de29-4d211042cc.zip +0 -0
  2858. package/.yarn/cache/simple-get-npm-2.8.2-1def2283e8-230bd931d3.zip +0 -0
  2859. package/.yarn/cache/sisteransi-npm-1.0.5-af60cc0cfa-aba6438f46.zip +0 -0
  2860. package/.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip +0 -0
  2861. package/.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip +0 -0
  2862. package/.yarn/cache/snake-case-npm-3.0.4-67f447c30d-0a7a79900b.zip +0 -0
  2863. package/.yarn/cache/socks-npm-2.8.3-3532b59899-7a6b7f6eed.zip +0 -0
  2864. package/.yarn/cache/socks-proxy-agent-npm-8.0.3-30471cff1b-8fab38821c.zip +0 -0
  2865. package/.yarn/cache/solc-npm-0.7.3-f57bb93e36-2d8eb16c6d.zip +0 -0
  2866. package/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip +0 -0
  2867. package/.yarn/cache/source-map-support-npm-0.5.13-377dfd7321-933550047b.zip +0 -0
  2868. package/.yarn/cache/source-map-support-npm-0.5.21-09ca99e250-43e98d700d.zip +0 -0
  2869. package/.yarn/cache/sprintf-js-npm-1.0.3-73f0a322fa-19d79aec21.zip +0 -0
  2870. package/.yarn/cache/sprintf-js-npm-1.1.3-b99efd75b2-a3fdac7b49.zip +0 -0
  2871. package/.yarn/cache/sshpk-npm-1.17.0-95f17f597f-ba109f65c8.zip +0 -0
  2872. package/.yarn/cache/ssri-npm-10.0.6-6b8eaec5ce-4603d53a05.zip +0 -0
  2873. package/.yarn/cache/stack-utils-npm-2.0.5-e0438f409a-76b69da0f5.zip +0 -0
  2874. package/.yarn/cache/stacktrace-parser-npm-0.1.10-36f3e571bd-f4fbddfc09.zip +0 -0
  2875. package/.yarn/cache/statuses-npm-2.0.1-81d2b97fee-18c7623fdb.zip +0 -0
  2876. package/.yarn/cache/streamroller-npm-3.1.3-ba7123ae0e-47a6699740.zip +0 -0
  2877. package/.yarn/cache/streamsearch-npm-1.1.0-fc3ad6536d-1cce16cea8.zip +0 -0
  2878. package/.yarn/cache/strict-uri-encode-npm-1.1.0-a79c6f7f24-9466d371f7.zip +0 -0
  2879. package/.yarn/cache/string-length-npm-4.0.2-675173c7a2-ce85533ef5.zip +0 -0
  2880. package/.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip +0 -0
  2881. package/.yarn/cache/string-width-npm-5.1.2-bf60531341-7369deaa29.zip +0 -0
  2882. package/.yarn/cache/string.prototype.trimend-npm-1.0.5-2b980efa37-d44f543833.zip +0 -0
  2883. package/.yarn/cache/string.prototype.trimend-npm-1.0.6-304246ecc1-0fdc34645a.zip +0 -0
  2884. package/.yarn/cache/string.prototype.trimstart-npm-1.0.5-9e62187810-a4857c5399.zip +0 -0
  2885. package/.yarn/cache/string.prototype.trimstart-npm-1.0.6-0926caea6c-89080feef4.zip +0 -0
  2886. package/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip +0 -0
  2887. package/.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip +0 -0
  2888. package/.yarn/cache/strip-ansi-npm-7.1.0-7453b80b79-859c73fcf2.zip +0 -0
  2889. package/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip +0 -0
  2890. package/.yarn/cache/strip-bom-npm-4.0.0-97d367a64d-9dbcfbaf50.zip +0 -0
  2891. package/.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip +0 -0
  2892. package/.yarn/cache/strip-hex-prefix-npm-1.0.0-bf941e622d-4cafe7caee.zip +0 -0
  2893. package/.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip +0 -0
  2894. package/.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip +0 -0
  2895. package/.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip +0 -0
  2896. package/.yarn/cache/supports-color-npm-8.1.1-289e937149-c052193a7e.zip +0 -0
  2897. package/.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip +0 -0
  2898. package/.yarn/cache/swarm-js-npm-0.1.42-6d7bd0ca6f-bbb54b8423.zip +0 -0
  2899. package/.yarn/cache/tar-npm-4.4.19-5f8e81b87e-423c8259b1.zip +0 -0
  2900. package/.yarn/cache/tar-npm-6.2.1-237800bb20-f1322768c9.zip +0 -0
  2901. package/.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip +0 -0
  2902. package/.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip +0 -0
  2903. package/.yarn/cache/timed-out-npm-4.0.1-1fe3eee142-98efc5d6fc.zip +0 -0
  2904. package/.yarn/cache/tmp-npm-0.0.33-bcbf65df2a-902d7aceb7.zip +0 -0
  2905. package/.yarn/cache/tmpl-npm-1.0.5-d399ba37e2-cd922d9b85.zip +0 -0
  2906. package/.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip +0 -0
  2907. package/.yarn/cache/to-readable-stream-npm-1.0.0-4fa4da8130-2bd7778490.zip +0 -0
  2908. package/.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip +0 -0
  2909. package/.yarn/cache/toidentifier-npm-1.0.1-f759712599-952c29e2a8.zip +0 -0
  2910. package/.yarn/cache/tough-cookie-npm-2.5.0-79a2fe43fe-16a8cd0902.zip +0 -0
  2911. package/.yarn/cache/tr46-npm-0.0.3-de53018915-726321c5ea.zip +0 -0
  2912. package/.yarn/cache/treeify-npm-1.1.0-abf9292333-aa00dded22.zip +0 -0
  2913. package/.yarn/cache/ts-essentials-npm-9.1.2-4b4f928639-3b14d85115.zip +0 -0
  2914. package/.yarn/cache/ts-essentials-npm-9.3.0-e70047bed2-fd001aff21.zip +0 -0
  2915. package/.yarn/cache/ts-jest-npm-29.0.3-c1e6bc8a8a-541e51776d.zip +0 -0
  2916. package/.yarn/cache/ts-node-npm-10.9.1-6c268be7f4-090adff130.zip +0 -0
  2917. package/.yarn/cache/tsconfig-paths-npm-3.14.1-17a815b5c5-8afa01c673.zip +0 -0
  2918. package/.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip +0 -0
  2919. package/.yarn/cache/tslib-npm-2.4.0-9cb6dc5030-8c4aa6a3c5.zip +0 -0
  2920. package/.yarn/cache/tsort-npm-0.0.1-940cbebb9c-581566c248.zip +0 -0
  2921. package/.yarn/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip +0 -0
  2922. package/.yarn/cache/tunnel-agent-npm-0.6.0-64345ab7eb-05f6510358.zip +0 -0
  2923. package/.yarn/cache/tweetnacl-npm-0.14.5-a3f766c0d1-6061daba17.zip +0 -0
  2924. package/.yarn/cache/tweetnacl-npm-1.0.3-b7eef04660-e4a57cac18.zip +0 -0
  2925. package/.yarn/cache/tweetnacl-util-npm-0.15.1-1a24bc512a-ae6aa8a52c.zip +0 -0
  2926. package/.yarn/cache/type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip +0 -0
  2927. package/.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip +0 -0
  2928. package/.yarn/cache/type-fest-npm-0.20.2-b36432617f-4fb3272df2.zip +0 -0
  2929. package/.yarn/cache/type-fest-npm-0.21.3-5ff2a9c6fd-e6b32a3b38.zip +0 -0
  2930. package/.yarn/cache/type-fest-npm-0.7.1-7b37912923-5b1b113529.zip +0 -0
  2931. package/.yarn/cache/type-is-npm-1.6.18-6dee4d4961-2c8e47675d.zip +0 -0
  2932. package/.yarn/cache/type-npm-1.2.0-e67311c4b2-dae8c64f82.zip +0 -0
  2933. package/.yarn/cache/type-npm-2.7.2-626963ea46-0f42379a8a.zip +0 -0
  2934. package/.yarn/cache/typedarray-to-buffer-npm-3.1.5-aadc11995e-99c11aaa8f.zip +0 -0
  2935. package/.yarn/cache/typescript-npm-4.6.4-114dfa5f7e-e7bfcc39cd.zip +0 -0
  2936. package/.yarn/cache/typescript-patch-9d18892098-1cb434fbc6.zip +0 -0
  2937. package/.yarn/cache/ultron-npm-1.1.1-193641dfec-aa7b5ebb1b.zip +0 -0
  2938. package/.yarn/cache/unbox-primitive-npm-1.0.2-cb56a05066-b7a1cf5862.zip +0 -0
  2939. package/.yarn/cache/underscore-npm-1.12.1-f5ca0889f5-ec327603aa.zip +0 -0
  2940. package/.yarn/cache/undici-npm-5.16.0-8b0d0ae418-bc22e797cb.zip +0 -0
  2941. package/.yarn/cache/unique-filename-npm-3.0.0-77d68e0a45-8e2f59b356.zip +0 -0
  2942. package/.yarn/cache/unique-slug-npm-4.0.0-e6b08f28aa-0884b58365.zip +0 -0
  2943. package/.yarn/cache/universalify-npm-0.1.2-9b22d31d2d-40cdc60f6e.zip +0 -0
  2944. package/.yarn/cache/unpipe-npm-1.0.0-2ed2a3c2bf-4fa18d8d8d.zip +0 -0
  2945. package/.yarn/cache/update-browserslist-db-npm-1.0.10-676baf0b9f-12db73b4f6.zip +0 -0
  2946. package/.yarn/cache/upper-case-first-npm-2.0.2-8e0c5a851a-4487db4701.zip +0 -0
  2947. package/.yarn/cache/upper-case-npm-2.0.2-6cf3bda96c-508723a2b0.zip +0 -0
  2948. package/.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip +0 -0
  2949. package/.yarn/cache/url-parse-lax-npm-3.0.0-92aa8effa0-1040e35775.zip +0 -0
  2950. package/.yarn/cache/url-set-query-npm-1.0.0-1980accc33-5ad73525e8.zip +0 -0
  2951. package/.yarn/cache/utf-8-validate-npm-5.0.10-93e9b6f750-5579350a02.zip +0 -0
  2952. package/.yarn/cache/utf8-npm-3.0.0-7c39b5994a-cb89a69ad9.zip +0 -0
  2953. package/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip +0 -0
  2954. package/.yarn/cache/util-npm-0.12.5-3668276f26-705e51f0de.zip +0 -0
  2955. package/.yarn/cache/utils-merge-npm-1.0.1-363bbdfbca-c810954932.zip +0 -0
  2956. package/.yarn/cache/uuid-npm-2.0.1-a78a0c30dd-e129e494e3.zip +0 -0
  2957. package/.yarn/cache/uuid-npm-3.3.2-62715051ac-8793629d27.zip +0 -0
  2958. package/.yarn/cache/uuid-npm-3.4.0-4fd8ef88ad-58de2feed6.zip +0 -0
  2959. package/.yarn/cache/uuid-npm-8.3.2-eca0baba53-5575a8a75c.zip +0 -0
  2960. package/.yarn/cache/uuid-npm-9.0.0-46c41e3e43-8dd2c83c43.zip +0 -0
  2961. package/.yarn/cache/v8-compile-cache-lib-npm-3.0.1-4886071ece-78089ad549.zip +0 -0
  2962. package/.yarn/cache/v8-to-istanbul-npm-9.0.1-58bbce7857-a49c34bf0a.zip +0 -0
  2963. package/.yarn/cache/varint-npm-5.0.2-fcb43e79c5-e1a66bf9a6.zip +0 -0
  2964. package/.yarn/cache/vary-npm-1.1.2-b49f70ae63-ae0123222c.zip +0 -0
  2965. package/.yarn/cache/verror-npm-1.10.0-c3f839c579-c431df0bed.zip +0 -0
  2966. package/.yarn/cache/walker-npm-1.0.8-b0a05b9478-ad7a257ea1.zip +0 -0
  2967. package/.yarn/cache/web3-bzz-npm-1.6.0-0379ad4d30-2e4e386d2c.zip +0 -0
  2968. package/.yarn/cache/web3-core-helpers-npm-1.6.0-ccb2f75fea-dfce9524e8.zip +0 -0
  2969. package/.yarn/cache/web3-core-method-npm-1.6.0-39b7ee99f4-9e87e83327.zip +0 -0
  2970. package/.yarn/cache/web3-core-npm-1.6.0-cd5724ff41-c9e2c4b7d3.zip +0 -0
  2971. package/.yarn/cache/web3-core-promievent-npm-1.6.0-8ace9d617f-edabd762ba.zip +0 -0
  2972. package/.yarn/cache/web3-core-requestmanager-npm-1.6.0-6a52d11e9f-443a27854a.zip +0 -0
  2973. package/.yarn/cache/web3-core-subscriptions-npm-1.6.0-a99f64493b-a07311f9e6.zip +0 -0
  2974. package/.yarn/cache/web3-eth-abi-npm-1.4.0-6799222198-e9bc1e7402.zip +0 -0
  2975. package/.yarn/cache/web3-eth-abi-npm-1.6.0-3bfbb5e269-a44f63feac.zip +0 -0
  2976. package/.yarn/cache/web3-eth-accounts-npm-1.6.0-2f4d951292-900f03b2ca.zip +0 -0
  2977. package/.yarn/cache/web3-eth-contract-npm-1.6.0-3397c566fa-374de3f4ba.zip +0 -0
  2978. package/.yarn/cache/web3-eth-ens-npm-1.6.0-4bc13e3ed8-b27fd4a6df.zip +0 -0
  2979. package/.yarn/cache/web3-eth-iban-npm-1.6.0-92fbb8fbfb-6bd59ce564.zip +0 -0
  2980. package/.yarn/cache/web3-eth-npm-1.6.0-e043e66126-c1ba383451.zip +0 -0
  2981. package/.yarn/cache/web3-eth-personal-npm-1.6.0-7a183bcbdd-d0b99072bd.zip +0 -0
  2982. package/.yarn/cache/web3-net-npm-1.6.0-69336db0cc-223a1e66aa.zip +0 -0
  2983. package/.yarn/cache/web3-npm-1.6.0-b6b3a37507-483c389191.zip +0 -0
  2984. package/.yarn/cache/web3-providers-http-npm-1.6.0-f422516706-7695c06ee2.zip +0 -0
  2985. package/.yarn/cache/web3-providers-ipc-npm-1.6.0-b610408e48-f5ba125490.zip +0 -0
  2986. package/.yarn/cache/web3-providers-ws-npm-1.6.0-27ce96b4f6-7e84d03bcf.zip +0 -0
  2987. package/.yarn/cache/web3-shh-npm-1.6.0-fa7d783a0d-2f70ab6c66.zip +0 -0
  2988. package/.yarn/cache/web3-utils-npm-1.4.0-d4a6a33375-060fcce2e1.zip +0 -0
  2989. package/.yarn/cache/web3-utils-npm-1.6.0-f6d206a6bf-7940be7145.zip +0 -0
  2990. package/.yarn/cache/web3-utils-npm-1.8.1-4f0bf057ee-08bb2df9cd.zip +0 -0
  2991. package/.yarn/cache/webidl-conversions-npm-3.0.1-60310f6a2b-c92a0a6ab9.zip +0 -0
  2992. package/.yarn/cache/websocket-npm-1.0.34-3aaa6c5dc0-8a0ce6d79c.zip +0 -0
  2993. package/.yarn/cache/whatwg-fetch-npm-3.6.2-4bdf324792-ee976b7249.zip +0 -0
  2994. package/.yarn/cache/whatwg-url-npm-5.0.0-374fb45e60-b8daed4ad3.zip +0 -0
  2995. package/.yarn/cache/which-boxed-primitive-npm-1.0.2-e214f9ae5a-53ce774c73.zip +0 -0
  2996. package/.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip +0 -0
  2997. package/.yarn/cache/which-npm-4.0.0-dd31cd4928-f17e84c042.zip +0 -0
  2998. package/.yarn/cache/which-typed-array-npm-1.1.8-49776a7691-bedf4d30a7.zip +0 -0
  2999. package/.yarn/cache/word-wrap-npm-1.2.3-7fb15ab002-30b48f91fc.zip +0 -0
  3000. package/.yarn/cache/workerpool-npm-6.2.1-1486cb2056-c2c6eebbc5.zip +0 -0
  3001. package/.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip +0 -0
  3002. package/.yarn/cache/wrap-ansi-npm-8.1.0-26a4e6ae28-371733296d.zip +0 -0
  3003. package/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip +0 -0
  3004. package/.yarn/cache/write-file-atomic-npm-4.0.2-661baae4aa-5da60bd4ee.zip +0 -0
  3005. package/.yarn/cache/ws-npm-3.3.3-30771aa150-20b7bf34bb.zip +0 -0
  3006. package/.yarn/cache/ws-npm-7.4.6-9c9a725604-3a990b32ed.zip +0 -0
  3007. package/.yarn/cache/ws-npm-7.5.9-26f12a5ed6-c3c100a181.zip +0 -0
  3008. package/.yarn/cache/ws-npm-8.5.0-8e99728c84-76f2f90e40.zip +0 -0
  3009. package/.yarn/cache/xhr-npm-2.6.0-c4a4d64db8-a1db277e37.zip +0 -0
  3010. package/.yarn/cache/xhr-request-npm-1.1.0-9bf1725e4f-fd8186f33e.zip +0 -0
  3011. package/.yarn/cache/xhr-request-promise-npm-0.1.3-2ec03e260c-2e127c0de0.zip +0 -0
  3012. package/.yarn/cache/xhr2-cookies-npm-1.1.0-3c53c13f2e-6a9fc45f34.zip +0 -0
  3013. package/.yarn/cache/xmlhttprequest-npm-1.8.0-7ac1c8e494-c891cf0d78.zip +0 -0
  3014. package/.yarn/cache/xtend-npm-4.0.2-7f2375736e-ac5dfa738b.zip +0 -0
  3015. package/.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip +0 -0
  3016. package/.yarn/cache/yaeti-npm-0.0.6-cffd01e35a-6db12c152f.zip +0 -0
  3017. package/.yarn/cache/yallist-npm-3.1.1-a568a556b4-48f7bb00dc.zip +0 -0
  3018. package/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip +0 -0
  3019. package/.yarn/cache/yargs-npm-16.2.0-547873d425-b14afbb51e.zip +0 -0
  3020. package/.yarn/cache/yargs-npm-17.6.0-6343ad1a2d-604bdb4a63.zip +0 -0
  3021. package/.yarn/cache/yargs-parser-npm-20.2.4-1de20916a6-d251998a37.zip +0 -0
  3022. package/.yarn/cache/yargs-parser-npm-20.2.9-a1d19e598d-8bb69015f2.zip +0 -0
  3023. package/.yarn/cache/yargs-parser-npm-21.1.1-8fdc003314-ed2d96a616.zip +0 -0
  3024. package/.yarn/cache/yargs-unparser-npm-2.0.0-930f3ff3f6-68f9a542c6.zip +0 -0
  3025. package/.yarn/cache/yn-npm-3.1.1-8ad4259784-2c487b0e14.zip +0 -0
  3026. package/.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip +0 -0
  3027. package/.yarn/install-state.gz +0 -0
  3028. package/.yarn/releases/yarn-1.22.19.cjs +0 -0
  3029. package/.yarnrc.yml +0 -3
@@ -1,717 +1,717 @@
1
- import { Const } from './Const';
2
- import { Num } from './Num';
3
- import { LogExpMath } from './LogExpMath';
4
- import * as Struct from './Struct';
5
- import { GeometricBrownianMotion } from './GeometricBrownianMotion';
6
- import { ChainLinkData } from '../types';
7
-
8
- export class MathMMM {
9
- /**********************************************************************************************
10
- // calcSpotPrice //
11
- // sP = spotPrice //
12
- // bI = tokenBalanceIn ( bI * w0 ) //
13
- // bO = tokenBalanceOut sP = ------------------------ //
14
- // wI = tokenWeightIn ( bO * wI ) * ( 1 - sF ) //
15
- // wO = tokenWeightOut //
16
- // sF = swapFee //
17
- **********************************************************************************************/
18
- static calcSpotPrice(
19
- tokenBalanceIn: bigint,
20
- tokenWeightIn: bigint,
21
- tokenBalanceOut: bigint,
22
- tokenWeightOut: bigint,
23
- swapFee: bigint,
24
- ): bigint {
25
- let numer = Num.mul(tokenBalanceIn, tokenWeightOut);
26
- let denom = Num.mul(
27
- Num.mul(tokenBalanceOut, tokenWeightIn),
28
- Const.ONE - swapFee,
29
- );
30
- return Num.div(numer, denom);
31
- }
32
-
33
- /**********************************************************************************************
34
- // calcOutGivenIn //
35
- // aO = tokenAmountOut //
36
- // bO = tokenBalanceOut //
37
- // bI = tokenBalanceIn / / bI \ (wI / wO) \ //
38
- // aI = tokenAmountIn aO = bO * | 1 - | -------------------------- | ^ | //
39
- // wI = tokenWeightIn \ \ ( bI + ( aI * ( 1 - sF )) / / //
40
- // wO = tokenWeightOut //
41
- // sF = swapFee //
42
- **********************************************************************************************/
43
- static calcOutGivenIn(
44
- tokenBalanceIn: bigint,
45
- tokenWeightIn: bigint,
46
- tokenBalanceOut: bigint,
47
- tokenWeightOut: bigint,
48
- tokenAmountIn: bigint,
49
- swapFee: bigint,
50
- ): bigint {
51
- const weightRatio = Num.div(tokenWeightIn, tokenWeightOut);
52
- let adjustedIn = Const.ONE - swapFee;
53
- adjustedIn = Num.mul(tokenAmountIn, adjustedIn);
54
- const y = Num.div(tokenBalanceIn, tokenBalanceIn + adjustedIn);
55
- const foo = Num.pow(y, weightRatio);
56
- const bar = Const.ONE - foo;
57
- const tokenAmountOut = Num.mul(tokenBalanceOut, bar);
58
- return tokenAmountOut;
59
- }
60
-
61
- /**********************************************************************************************
62
- // calcInGivenOut //
63
- // aI = tokenAmountIn //
64
- // bO = tokenBalanceOut / / bO \ (wO / wI) \ //
65
- // bI = tokenBalanceIn bI * | | ------------ | ^ - 1 | //
66
- // aO = tokenAmountOut aI = \ \ ( bO - aO ) / / //
67
- // wI = tokenWeightIn -------------------------------------------- //
68
- // wO = tokenWeightOut ( 1 - sF ) //
69
- // sF = swapFee //
70
- **********************************************************************************************/
71
- static calcInGivenOut(
72
- tokenBalanceIn: bigint,
73
- tokenWeightIn: bigint,
74
- tokenBalanceOut: bigint,
75
- tokenWeightOut: bigint,
76
- tokenAmountOut: bigint,
77
- swapFee: bigint,
78
- ): bigint {
79
- const weightRatio = Num.div(tokenWeightOut, tokenWeightIn);
80
- const diff = tokenBalanceOut - tokenAmountOut;
81
- const y = Num.div(tokenBalanceOut, diff);
82
- let foo = Num.pow(y, weightRatio);
83
- foo = foo - Const.ONE;
84
- let tokenAmountIn = Const.ONE - swapFee;
85
- tokenAmountIn = Num.div(Num.mul(tokenBalanceIn, foo), tokenAmountIn);
86
- return tokenAmountIn;
87
- }
88
-
89
- /**
90
- * @notice Computes the amount of tokenIn needed in order to receive a given amount of tokenOut
91
- * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
92
- * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
93
- * @param tokenGlobalIn The pool global information on tokenIn
94
- * @param tokenGlobalOut The pool global information on tokenOut
95
- * @param relativePrice The price of tokenOut in tokenIn terms
96
- * @param swapParameters Amount of token out and swap fee
97
- * @param gbmParameters The GBM forecast parameters (Z, horizon)
98
- * @param hpParameters The parameters for historical prices retrieval
99
- * @return swapResult The swap result (amount in, spread and tax base in)
100
- */
101
- static calcInGivenOutMMM(
102
- tokenGlobalIn: Struct.TokenGlobal,
103
- tokenGlobalOut: Struct.TokenGlobal,
104
- relativePrice: bigint,
105
- swapParameters: Struct.SwapParameters,
106
- gbmParameters: Struct.GBMParameters,
107
- hpParameters: Struct.HistoricalPricesParameters,
108
- historicalPricesIn: ChainLinkData,
109
- historicalPricesOut: ChainLinkData,
110
- currentTimestamp: bigint,
111
- ): Struct.SwapResult {
112
- // determines the balance of tokenOut at equilibrium (cf definitions)
113
- const balanceOutAtEquilibrium = MathMMM.getTokenBalanceAtEquilibrium(
114
- tokenGlobalOut.info.balance,
115
- tokenGlobalOut.info.weight,
116
- tokenGlobalIn.info.balance,
117
- tokenGlobalIn.info.weight,
118
- Num.div(Const.ONE, relativePrice),
119
- );
120
-
121
- // from abundance of tokenOut to abundance of tokenOut --> no spread
122
- if (
123
- tokenGlobalOut.info.balance > balanceOutAtEquilibrium &&
124
- swapParameters.amount <
125
- tokenGlobalOut.info.balance - balanceOutAtEquilibrium
126
- ) {
127
- return {
128
- amount: MathMMM._calcInGivenOutMMMAbundance(
129
- tokenGlobalIn,
130
- tokenGlobalOut,
131
- // relativePrice,
132
- swapParameters.amount,
133
- swapParameters.fee,
134
- // swapParameters.fallbackSpread,
135
- // currentTimestamp,
136
- ),
137
- spread: 0n,
138
- taxBaseIn: 0n,
139
- };
140
- }
141
-
142
- {
143
- const gbmEstimation = GeometricBrownianMotion.getParametersEstimation(
144
- tokenGlobalIn.latestRound,
145
- tokenGlobalOut.latestRound,
146
- hpParameters,
147
- historicalPricesIn,
148
- historicalPricesOut,
149
- );
150
-
151
- const [adjustedTokenOutWeight, spread] = MathMMM.getMMMWeight(
152
- true,
153
- swapParameters.fallbackSpread,
154
- tokenGlobalOut.info.weight,
155
- gbmEstimation,
156
- gbmParameters,
157
- );
158
-
159
- if (tokenGlobalOut.info.balance <= balanceOutAtEquilibrium) {
160
- // shortage to shortage
161
- return {
162
- amount: MathMMM.calcInGivenOut(
163
- tokenGlobalIn.info.balance,
164
- tokenGlobalIn.info.weight,
165
- tokenGlobalOut.info.balance,
166
- adjustedTokenOutWeight,
167
- swapParameters.amount,
168
- swapParameters.fee,
169
- ),
170
- spread: spread,
171
- taxBaseIn: swapParameters.amount,
172
- };
173
- } else {
174
- // abundance to shortage
175
- const [amount, taxBaseIn] = MathMMM._calcInGivenOutMMMMixed(
176
- tokenGlobalIn,
177
- tokenGlobalOut,
178
- swapParameters,
179
- relativePrice,
180
- adjustedTokenOutWeight,
181
- balanceOutAtEquilibrium,
182
- currentTimestamp,
183
- );
184
- return {
185
- amount: amount,
186
- spread: spread,
187
- taxBaseIn: taxBaseIn,
188
- };
189
- }
190
- }
191
- }
192
-
193
- /**
194
- * @notice Implements 'calcInGivenOutMMM' in the case of abundance of tokenOut
195
- * @dev Two cases to consider:
196
- * 1) amount of tokenIn won't drive the pool from abundance of tokenOut to shortage ==> 1 pricing (no spread)
197
- * 2) amount of tokenIn will drive the pool from abundance of tokenOut to shortage ==> 2 pricing, one for each phase
198
- * @param tokenGlobalIn The pool global information on tokenIn
199
- * @param tokenGlobalOut The pool global information on tokenOut
200
- * @param swapParameters The parameters of the swap
201
- * @param relativePrice The price of tokenOut in tokenIn terms
202
- * @param adjustedTokenWeightOut The spread-augmented tokenOut's weight
203
- * @return tokenAmountIn The total amount of tokenIn needed for the swap
204
- * @return taxBaseIn The amount of tokenIn swapped when in shortage of tokenOut
205
- */
206
- static _calcInGivenOutMMMMixed(
207
- tokenGlobalIn: Struct.TokenGlobal,
208
- tokenGlobalOut: Struct.TokenGlobal,
209
- swapParameters: Struct.SwapParameters,
210
- relativePrice: bigint,
211
- adjustedTokenWeightOut: bigint,
212
- balanceOutAtEquilibrium: bigint,
213
- currentTimestamp: bigint,
214
- ): [bigint, bigint] {
215
- const tokenOutBuyAmountForEquilibrium =
216
- tokenGlobalOut.info.balance - balanceOutAtEquilibrium;
217
-
218
- // 'abundance of tokenOut' phase --> no spread
219
- const tokenAmountInPart1 = MathMMM._calcInGivenOutMMMAbundance(
220
- tokenGlobalIn,
221
- tokenGlobalOut,
222
- // relativePrice,
223
- tokenOutBuyAmountForEquilibrium,
224
- swapParameters.fee,
225
- // swapParameters.fallbackSpread,
226
- //currentTimestamp,
227
- );
228
-
229
- // 'shortage of tokenOut phase' --> apply spread
230
- const tokenAmountInPart2 = MathMMM.calcInGivenOut(
231
- tokenGlobalIn.info.balance + tokenAmountInPart1,
232
- tokenGlobalIn.info.weight,
233
- tokenGlobalOut.info.balance - tokenOutBuyAmountForEquilibrium,
234
- adjustedTokenWeightOut,
235
- swapParameters.amount - tokenOutBuyAmountForEquilibrium, // tokenAmountOut > tokenOutBuyAmountForEquilibrium
236
- swapParameters.fee,
237
- );
238
-
239
- return [
240
- Num.add(tokenAmountInPart1, tokenAmountInPart2),
241
- tokenAmountInPart2,
242
- ];
243
- }
244
-
245
- /**
246
- * @notice Implements calcOutGivenInMMM in the case of abundance of tokenOut
247
- * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
248
- * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
249
- * @param tokenGlobalIn The pool global information on tokenIn
250
- * @param tokenGlobalOut The pool global information on tokenOut
251
- * @param relativePrice The price of tokenOut in tokenIn terms
252
- * @param tokenAmountOut The amount of tokenOut that will be received
253
- * @param baseFee The base fee
254
- * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
255
- * @return tokenAmountIn The amount of tokenIn needed for the swap
256
- */
257
- static _calcInGivenOutMMMAbundance(
258
- tokenGlobalIn: Struct.TokenGlobal,
259
- tokenGlobalOut: Struct.TokenGlobal,
260
- // relativePrice: bigint,
261
- tokenAmountOut: bigint,
262
- baseFee: bigint,
263
- // fallbackSpread: bigint,
264
- // currentTimestamp: bigint,
265
- ): bigint {
266
- const adaptiveFees = baseFee; /*MathMMM.getAdaptiveFees(
267
- tokenGlobalIn,
268
- Num.mul(tokenAmountOut, relativePrice),
269
- tokenGlobalOut,
270
- tokenAmountOut,
271
- relativePrice,
272
- baseFee,
273
- fallbackSpread,
274
- currentTimestamp,
275
- );*/
276
- return MathMMM.calcInGivenOut(
277
- tokenGlobalIn.info.balance,
278
- tokenGlobalIn.info.weight,
279
- tokenGlobalOut.info.balance,
280
- tokenGlobalOut.info.weight,
281
- tokenAmountOut,
282
- adaptiveFees,
283
- );
284
- }
285
-
286
- /**
287
- * @notice Computes the net value of a given tokenIn amount in tokenOut terms
288
- * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
289
- * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
290
- * @param tokenGlobalIn The pool global information on tokenIn
291
- * @param tokenGlobalOut The pool global information on tokenOut
292
- * @param relativePrice The price of tokenOut in tokenIn terms
293
- * @param swapParameters Amount of token in and swap fee
294
- * @param gbmParameters The GBM forecast parameters (Z, horizon)
295
- * @param hpParameters The parameters for historical prices retrieval
296
- * @return swapResult The swap result (amount out, spread and tax base in)
297
- */
298
- static calcOutGivenInMMM(
299
- tokenGlobalIn: Struct.TokenGlobal,
300
- tokenGlobalOut: Struct.TokenGlobal,
301
- relativePrice: bigint,
302
- swapParameters: Struct.SwapParameters,
303
- gbmParameters: Struct.GBMParameters,
304
- hpParameters: Struct.HistoricalPricesParameters,
305
- historicalPricesIn: ChainLinkData,
306
- historicalPricesOut: ChainLinkData,
307
- currentTimestamp: bigint,
308
- ): Struct.SwapResult {
309
- // determines the balance of tokenIn at equilibrium (cf definitions)
310
- const balanceInAtEquilibrium = MathMMM.getTokenBalanceAtEquilibrium(
311
- tokenGlobalIn.info.balance,
312
- tokenGlobalIn.info.weight,
313
- tokenGlobalOut.info.balance,
314
- tokenGlobalOut.info.weight,
315
- relativePrice,
316
- );
317
-
318
- // from abundance of tokenOut to abundance of tokenOut --> no spread
319
- {
320
- if (
321
- tokenGlobalIn.info.balance < balanceInAtEquilibrium &&
322
- swapParameters.amount <
323
- balanceInAtEquilibrium - tokenGlobalIn.info.balance
324
- ) {
325
- return {
326
- amount: MathMMM._calcOutGivenInMMMAbundance(
327
- tokenGlobalIn,
328
- tokenGlobalOut,
329
- relativePrice,
330
- swapParameters.amount,
331
- swapParameters.fee,
332
- swapParameters.fallbackSpread,
333
- currentTimestamp,
334
- ),
335
- spread: 0n,
336
- taxBaseIn: 0n,
337
- };
338
- }
339
- }
340
-
341
- {
342
- const gbmEstimation = GeometricBrownianMotion.getParametersEstimation(
343
- tokenGlobalIn.latestRound,
344
- tokenGlobalOut.latestRound,
345
- hpParameters,
346
- historicalPricesIn,
347
- historicalPricesOut,
348
- );
349
-
350
- const [adjustedTokenOutWeight, spread] = MathMMM.getMMMWeight(
351
- true,
352
- swapParameters.fallbackSpread,
353
- tokenGlobalOut.info.weight,
354
- gbmEstimation,
355
- gbmParameters,
356
- );
357
-
358
- if (tokenGlobalIn.info.balance >= balanceInAtEquilibrium) {
359
- // shortage to shortage
360
- return {
361
- amount: MathMMM.calcOutGivenIn(
362
- tokenGlobalIn.info.balance,
363
- tokenGlobalIn.info.weight,
364
- tokenGlobalOut.info.balance,
365
- adjustedTokenOutWeight,
366
- swapParameters.amount,
367
- swapParameters.fee,
368
- ),
369
- spread: spread,
370
- taxBaseIn: swapParameters.amount,
371
- };
372
- } else {
373
- // abundance to shortage
374
- const [amount, taxBaseIn] = MathMMM._calcOutGivenInMMMMixed(
375
- tokenGlobalIn,
376
- tokenGlobalOut,
377
- swapParameters,
378
- relativePrice,
379
- adjustedTokenOutWeight,
380
- balanceInAtEquilibrium,
381
- currentTimestamp,
382
- );
383
- return {
384
- amount: amount,
385
- spread: spread,
386
- taxBaseIn: taxBaseIn,
387
- };
388
- }
389
- }
390
- }
391
-
392
- /**
393
- * @notice Implements 'calcOutGivenInMMM' in the case of mixed regime of tokenOut (abundance then shortage)
394
- * @param tokenGlobalIn The pool global information on tokenIn
395
- * @param tokenGlobalOut The pool global information on tokenOut
396
- * @param swapParameters The parameters of the swap
397
- * @param relativePrice The price of tokenOut in tokenIn terms
398
- * @param adjustedTokenWeightOut The spread-augmented tokenOut's weight
399
- * @param balanceInAtEquilibrium TokenIn balance at equilibrium
400
- * @return tokenAmountOut The total amount of token out
401
- * @return taxBaseIn The amount of tokenIn swapped when in shortage of tokenOut
402
- */
403
- static _calcOutGivenInMMMMixed(
404
- tokenGlobalIn: Struct.TokenGlobal,
405
- tokenGlobalOut: Struct.TokenGlobal,
406
- swapParameters: Struct.SwapParameters,
407
- relativePrice: bigint,
408
- adjustedTokenWeightOut: bigint,
409
- balanceInAtEquilibrium: bigint,
410
- currentTimestamp: bigint,
411
- ): [bigint, bigint] {
412
- const tokenInSellAmountForEquilibrium =
413
- balanceInAtEquilibrium - tokenGlobalIn.info.balance;
414
- const taxBaseIn = swapParameters.amount - tokenInSellAmountForEquilibrium;
415
-
416
- // 'abundance of tokenOut' phase --> no spread
417
- const tokenAmountOutPart1 = MathMMM._calcOutGivenInMMMAbundance(
418
- tokenGlobalIn,
419
- tokenGlobalOut,
420
- relativePrice,
421
- tokenInSellAmountForEquilibrium,
422
- swapParameters.fee,
423
- swapParameters.fallbackSpread,
424
- currentTimestamp,
425
- );
426
-
427
- // 'shortage of tokenOut phase' --> apply spread
428
- const tokenAmountOutPart2 = MathMMM.calcOutGivenIn(
429
- Num.add(tokenGlobalIn.info.balance, tokenInSellAmountForEquilibrium),
430
- tokenGlobalIn.info.weight,
431
- Num.sub(tokenGlobalOut.info.balance, tokenAmountOutPart1),
432
- adjustedTokenWeightOut,
433
- taxBaseIn, // tokenAmountIn > tokenInSellAmountForEquilibrium
434
- swapParameters.fee,
435
- );
436
-
437
- return [Num.add(tokenAmountOutPart1, tokenAmountOutPart2), taxBaseIn];
438
- }
439
-
440
- /**
441
- * @notice Implements calcOutGivenInMMM in the case of abundance of tokenOut
442
- * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
443
- * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
444
- * @param tokenGlobalIn The pool global information on tokenIn
445
- * @param tokenGlobalOut The pool global information on tokenOut
446
- * @param relativePrice The price of tokenOut in tokenIn terms
447
- * @param tokenAmountIn The amount of tokenIn that will be swaped
448
- * @param baseFee The base fee
449
- * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
450
- * @return tokenAmountOut The tokenAmountOut when the tokenOut is in abundance
451
- */
452
- static _calcOutGivenInMMMAbundance(
453
- tokenGlobalIn: Struct.TokenGlobal,
454
- tokenGlobalOut: Struct.TokenGlobal,
455
- relativePrice: bigint,
456
- tokenAmountIn: bigint,
457
- baseFee: bigint,
458
- fallbackSpread: bigint,
459
- currentTimestamp: bigint,
460
- ): bigint {
461
- const adaptiveFees = baseFee; /*MathMMM.getAdaptiveFees(
462
- tokenGlobalIn,
463
- tokenAmountIn,
464
- tokenGlobalOut,
465
- Num.div(tokenAmountIn, relativePrice),
466
- relativePrice,
467
- baseFee,
468
- fallbackSpread,
469
- currentTimestamp,
470
- );*/
471
- return MathMMM.calcOutGivenIn(
472
- tokenGlobalIn.info.balance,
473
- tokenGlobalIn.info.weight,
474
- tokenGlobalOut.info.balance,
475
- tokenGlobalOut.info.weight,
476
- tokenAmountIn,
477
- adaptiveFees,
478
- );
479
- }
480
-
481
- /**
482
- * @notice Computes the log spread factor
483
- * @dev We define it as the log of the p-quantile of a GBM process (log-normal distribution),
484
- * which is given by the following:
485
- * mean * horizon + z * sqrt(2 * variance * horizon)
486
- * where z = ierf(2p - 1), with ierf being the inverse error function.
487
- * GBM: https://en.wikipedia.org/wiki/Geometric_Brownian_motion
488
- * Log-normal distribution: https://en.wikipedia.org/wiki/Log-normal_distribution
489
- * erf: https://en.wikipedia.org/wiki/Error_function
490
- * @param mean The percentage drift
491
- * @param variance The percentage volatility
492
- * @param horizon The GBM forecast horizon parameter
493
- * @param z The GBM forecast z parameter
494
- * @return x The log spread factor
495
- */
496
- static getLogSpreadFactor(
497
- mean: bigint,
498
- variance: bigint,
499
- horizon: bigint,
500
- z: bigint,
501
- ): bigint {
502
- if (mean == 0n && variance == 0n) {
503
- return 0n;
504
- }
505
-
506
- if (mean < 0) {
507
- mean = -Num.mul(-mean, horizon);
508
- } else {
509
- mean = Num.mul(mean, horizon);
510
- }
511
-
512
- let diffusion = 0n;
513
- if (variance > 0) {
514
- diffusion = Num.mul(
515
- z,
516
- LogExpMath.pow(Num.mul(variance, 2n * horizon), Const.ONE / 2n),
517
- );
518
- }
519
- return diffusion + mean;
520
- }
521
-
522
- /**
523
- * @notice Apply to the tokenWeight a 'spread' factor
524
- * @dev The spread factor is defined as the maximum between:
525
- a) the expected relative tokenOut increase in tokenIn terms
526
- b) 1
527
- * The function multiplies the tokenWeight by the spread factor if
528
- * the token is in shortage, or divides it by the spread factor if it is in abundance
529
- * @param shortage true when the token is in shortage, false if in abundance
530
- * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
531
- * @param tokenWeight The token's weight
532
- * @param gbmEstimation The GBM's 2 first moments estimation
533
- * @param gbmParameters The GBM forecast parameters (Z, horizon)
534
- * @return adjustedWeight The adjusted weight based on spread
535
- * @return spread The spread
536
- */
537
- static getMMMWeight(
538
- shortage: boolean,
539
- fallbackSpread: bigint,
540
- tokenWeight: bigint,
541
- gbmEstimation: Struct.GBMEstimation,
542
- gbmParameters: Struct.GBMParameters,
543
- ): [adjustedWeight: bigint, spread: bigint] {
544
- if (!gbmEstimation.success) {
545
- if (shortage) {
546
- return [
547
- Num.mul(tokenWeight, Const.ONE + fallbackSpread),
548
- fallbackSpread,
549
- ];
550
- } else {
551
- return [
552
- Num.div(tokenWeight, Const.ONE + fallbackSpread),
553
- fallbackSpread,
554
- ];
555
- }
556
- }
557
-
558
- if (gbmParameters.horizon == 0n) {
559
- return [tokenWeight, 0n];
560
- }
561
-
562
- const logSpreadFactor = MathMMM.getLogSpreadFactor(
563
- gbmEstimation.mean,
564
- gbmEstimation.variance,
565
- gbmParameters.horizon,
566
- gbmParameters.z,
567
- );
568
- if (logSpreadFactor <= 0) {
569
- return [tokenWeight, 0n];
570
- }
571
- const spreadFactor = LogExpMath.exp(logSpreadFactor);
572
- // if spread < 1 --> rounding error --> set to 1
573
- if (spreadFactor <= Const.ONE) {
574
- return [tokenWeight, 0n];
575
- }
576
-
577
- let spread = spreadFactor - Const.ONE;
578
-
579
- if (shortage) {
580
- return [Num.mul(tokenWeight, spreadFactor), spread];
581
- } else {
582
- return [Num.div(tokenWeight, spreadFactor), spread];
583
- }
584
- }
585
-
586
- /**
587
- * @notice Computes the fee amount that will ensure we maintain the pool's value, according to oracle prices.
588
- * @dev We apply this fee regime only if Out-In price increased in the same block as now.
589
- * @param tokenGlobalIn The pool global information on tokenIn
590
- * @param tokenAmountIn The swap desired amount for tokenIn
591
- * @param tokenGlobalOut The pool global information on tokenOut
592
- * @param tokenAmountOut The swap desired amount for tokenOut
593
- * @param relativePrice The price of tokenOut in tokenIn terms
594
- * @param baseFee The base fee amount
595
- * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
596
- * @return alpha The potentially augmented fee amount
597
- */
598
- /* static getAdaptiveFees(
599
- tokenGlobalIn: Struct.TokenGlobal,
600
- tokenAmountIn: bigint,
601
- tokenGlobalOut: Struct.TokenGlobal,
602
- tokenAmountOut: bigint,
603
- relativePrice: bigint,
604
- baseFee: bigint,
605
- fallbackSpread: bigint,
606
- currentTimestamp: bigint,
607
- ): bigint {
608
- let blockTimestamp = currentTimestamp;
609
-
610
- // we only consider same block as last price update
611
- if (
612
- blockTimestamp != tokenGlobalIn.latestRound.timestamp &&
613
- blockTimestamp != tokenGlobalOut.latestRound.timestamp
614
- ) {
615
- // no additional fees
616
- return baseFee;
617
- }
618
- let recentPriceUpperBound = ChainlinkUtils.getMaxRelativePriceInLastBlock(
619
- tokenGlobalIn.latestRound,
620
- tokenGlobalIn.info.decimals,
621
- tokenGlobalOut.latestRound,
622
- tokenGlobalOut.info.decimals,
623
- // historicalPricesIn,
624
- // historicalPricesOut
625
- );
626
- if (recentPriceUpperBound == 0n) {
627
- // we were not able to retrieve the previous price
628
- return fallbackSpread;
629
- } else if (recentPriceUpperBound <= relativePrice) {
630
- // no additional fees
631
- return baseFee;
632
- }
633
-
634
- return (
635
- // additional fees indexed on price increase and imbalance
636
- Num.min(
637
- Const.ONE,
638
- baseFee +
639
- MathMMM.calcAdaptiveFeeGivenInAndOut(
640
- tokenGlobalIn.info.balance,
641
- tokenAmountIn,
642
- tokenGlobalIn.info.weight,
643
- tokenGlobalOut.info.balance,
644
- tokenAmountOut,
645
- tokenGlobalOut.info.weight,
646
- ),
647
- )
648
- );
649
- }
650
- */
651
-
652
- /**
653
- * @notice Computes the balance of token1 the pool must have in order to have token1/token2 at equilibrium
654
- * while satisfying the pricing curve prod^k balance_k^w_k = K
655
- * @dev We only rely on the following equations:
656
- * a) priceTokenOutOutInTokenIn = balance_in / balance_out * w_out / w_in
657
- * b) tokenBalanceOut = (K / prod_k!=in balance_k^w_k)^(1/w_out) = (localInvariant / balance_in^w_in)^(1/w_out)
658
- * with localInvariant = balance_in^w_in * balance_out^w_out which can be computed with only In/Out
659
- * @param tokenBalance1 The balance of token1 initially
660
- * @param tokenWeight1 The weight of token1
661
- * @param tokenBalance2 The balance of token2 initially
662
- * @param tokenWeight2 The weight of token2
663
- * @param relativePrice The price of tokenOut in tokenIn terms
664
- * @return balance1AtEquilibrium The balance of token1 in order to have a token1/token2 at equilibrium
665
- */
666
- static getTokenBalanceAtEquilibrium(
667
- tokenBalance1: bigint,
668
- tokenWeight1: bigint,
669
- tokenBalance2: bigint,
670
- tokenWeight2: bigint,
671
- relativePrice: bigint,
672
- ): bigint {
673
- const weightSum = tokenWeight1 + tokenWeight2;
674
- // relativePrice * weight1/weight2
675
- let foo = Num.mul(relativePrice, Num.div(tokenWeight1, tokenWeight2));
676
- // relativePrice * balance2 * (weight1/weight2)
677
- foo = Num.mul(foo, tokenBalance2);
678
-
679
- const balance1AtEquilibrium = Num.mul(
680
- LogExpMath.pow(foo, Num.div(tokenWeight2, weightSum)),
681
- LogExpMath.pow(tokenBalance1, Num.div(tokenWeight1, weightSum)),
682
- );
683
-
684
- return balance1AtEquilibrium;
685
- }
686
-
687
- /**
688
- * @notice Computes the fee needed to maintain the pool's value constant
689
- * @dev We use oracle to evaluate pool's value
690
- * @param tokenBalanceIn The balance of tokenIn initially
691
- * @param tokenAmountIn The amount of tokenIn to be added
692
- * @param tokenWeightIn The weight of tokenIn
693
- * @param tokenBalanceOut The balance of tokenOut initially
694
- * @param tokenAmountOut The amount of tokenOut to be removed from the pool
695
- * @param tokenWeightOut The weight of tokenOut
696
- * @return adaptiveFee The computed adaptive fee to be added to the base fees
697
- */
698
- static calcAdaptiveFeeGivenInAndOut(
699
- tokenBalanceIn: bigint,
700
- tokenAmountIn: bigint,
701
- tokenWeightIn: bigint,
702
- tokenBalanceOut: bigint,
703
- tokenAmountOut: bigint,
704
- tokenWeightOut: bigint,
705
- ): bigint {
706
- const weightRatio = Num.div(tokenWeightOut, tokenWeightIn);
707
- const y = Num.div(tokenBalanceOut, tokenBalanceOut - tokenAmountOut);
708
- const foo = Num.mul(tokenBalanceIn, Num.pow(y, weightRatio));
709
-
710
- const afterSwapTokenInBalance = tokenBalanceIn + tokenAmountIn;
711
-
712
- if (foo > afterSwapTokenInBalance) {
713
- return 0n;
714
- }
715
- return Num.div(afterSwapTokenInBalance - foo, tokenAmountIn);
716
- }
717
- }
1
+ import { Const } from './Const';
2
+ import { Num } from './Num';
3
+ import { LogExpMath } from './LogExpMath';
4
+ import * as Struct from './Struct';
5
+ import { GeometricBrownianMotion } from './GeometricBrownianMotion';
6
+ import { ChainLinkData } from '../types';
7
+
8
+ export class MathMMM {
9
+ /**********************************************************************************************
10
+ // calcSpotPrice //
11
+ // sP = spotPrice //
12
+ // bI = tokenBalanceIn ( bI * w0 ) //
13
+ // bO = tokenBalanceOut sP = ------------------------ //
14
+ // wI = tokenWeightIn ( bO * wI ) * ( 1 - sF ) //
15
+ // wO = tokenWeightOut //
16
+ // sF = swapFee //
17
+ **********************************************************************************************/
18
+ static calcSpotPrice(
19
+ tokenBalanceIn: bigint,
20
+ tokenWeightIn: bigint,
21
+ tokenBalanceOut: bigint,
22
+ tokenWeightOut: bigint,
23
+ swapFee: bigint,
24
+ ): bigint {
25
+ let numer = Num.mul(tokenBalanceIn, tokenWeightOut);
26
+ let denom = Num.mul(
27
+ Num.mul(tokenBalanceOut, tokenWeightIn),
28
+ Const.ONE - swapFee,
29
+ );
30
+ return Num.div(numer, denom);
31
+ }
32
+
33
+ /**********************************************************************************************
34
+ // calcOutGivenIn //
35
+ // aO = tokenAmountOut //
36
+ // bO = tokenBalanceOut //
37
+ // bI = tokenBalanceIn / / bI \ (wI / wO) \ //
38
+ // aI = tokenAmountIn aO = bO * | 1 - | -------------------------- | ^ | //
39
+ // wI = tokenWeightIn \ \ ( bI + ( aI * ( 1 - sF )) / / //
40
+ // wO = tokenWeightOut //
41
+ // sF = swapFee //
42
+ **********************************************************************************************/
43
+ static calcOutGivenIn(
44
+ tokenBalanceIn: bigint,
45
+ tokenWeightIn: bigint,
46
+ tokenBalanceOut: bigint,
47
+ tokenWeightOut: bigint,
48
+ tokenAmountIn: bigint,
49
+ swapFee: bigint,
50
+ ): bigint {
51
+ const weightRatio = Num.div(tokenWeightIn, tokenWeightOut);
52
+ let adjustedIn = Const.ONE - swapFee;
53
+ adjustedIn = Num.mul(tokenAmountIn, adjustedIn);
54
+ const y = Num.div(tokenBalanceIn, tokenBalanceIn + adjustedIn);
55
+ const foo = Num.pow(y, weightRatio);
56
+ const bar = Const.ONE - foo;
57
+ const tokenAmountOut = Num.mul(tokenBalanceOut, bar);
58
+ return tokenAmountOut;
59
+ }
60
+
61
+ /**********************************************************************************************
62
+ // calcInGivenOut //
63
+ // aI = tokenAmountIn //
64
+ // bO = tokenBalanceOut / / bO \ (wO / wI) \ //
65
+ // bI = tokenBalanceIn bI * | | ------------ | ^ - 1 | //
66
+ // aO = tokenAmountOut aI = \ \ ( bO - aO ) / / //
67
+ // wI = tokenWeightIn -------------------------------------------- //
68
+ // wO = tokenWeightOut ( 1 - sF ) //
69
+ // sF = swapFee //
70
+ **********************************************************************************************/
71
+ static calcInGivenOut(
72
+ tokenBalanceIn: bigint,
73
+ tokenWeightIn: bigint,
74
+ tokenBalanceOut: bigint,
75
+ tokenWeightOut: bigint,
76
+ tokenAmountOut: bigint,
77
+ swapFee: bigint,
78
+ ): bigint {
79
+ const weightRatio = Num.div(tokenWeightOut, tokenWeightIn);
80
+ const diff = tokenBalanceOut - tokenAmountOut;
81
+ const y = Num.div(tokenBalanceOut, diff);
82
+ let foo = Num.pow(y, weightRatio);
83
+ foo = foo - Const.ONE;
84
+ let tokenAmountIn = Const.ONE - swapFee;
85
+ tokenAmountIn = Num.div(Num.mul(tokenBalanceIn, foo), tokenAmountIn);
86
+ return tokenAmountIn;
87
+ }
88
+
89
+ /**
90
+ * @notice Computes the amount of tokenIn needed in order to receive a given amount of tokenOut
91
+ * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
92
+ * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
93
+ * @param tokenGlobalIn The pool global information on tokenIn
94
+ * @param tokenGlobalOut The pool global information on tokenOut
95
+ * @param relativePrice The price of tokenOut in tokenIn terms
96
+ * @param swapParameters Amount of token out and swap fee
97
+ * @param gbmParameters The GBM forecast parameters (Z, horizon)
98
+ * @param hpParameters The parameters for historical prices retrieval
99
+ * @return swapResult The swap result (amount in, spread and tax base in)
100
+ */
101
+ static calcInGivenOutMMM(
102
+ tokenGlobalIn: Struct.TokenGlobal,
103
+ tokenGlobalOut: Struct.TokenGlobal,
104
+ relativePrice: bigint,
105
+ swapParameters: Struct.SwapParameters,
106
+ gbmParameters: Struct.GBMParameters,
107
+ hpParameters: Struct.HistoricalPricesParameters,
108
+ historicalPricesIn: ChainLinkData,
109
+ historicalPricesOut: ChainLinkData,
110
+ currentTimestamp: bigint,
111
+ ): Struct.SwapResult {
112
+ // determines the balance of tokenOut at equilibrium (cf definitions)
113
+ const balanceOutAtEquilibrium = MathMMM.getTokenBalanceAtEquilibrium(
114
+ tokenGlobalOut.info.balance,
115
+ tokenGlobalOut.info.weight,
116
+ tokenGlobalIn.info.balance,
117
+ tokenGlobalIn.info.weight,
118
+ Num.div(Const.ONE, relativePrice),
119
+ );
120
+
121
+ // from abundance of tokenOut to abundance of tokenOut --> no spread
122
+ if (
123
+ tokenGlobalOut.info.balance > balanceOutAtEquilibrium &&
124
+ swapParameters.amount <
125
+ tokenGlobalOut.info.balance - balanceOutAtEquilibrium
126
+ ) {
127
+ return {
128
+ amount: MathMMM._calcInGivenOutMMMAbundance(
129
+ tokenGlobalIn,
130
+ tokenGlobalOut,
131
+ // relativePrice,
132
+ swapParameters.amount,
133
+ swapParameters.fee,
134
+ // swapParameters.fallbackSpread,
135
+ // currentTimestamp,
136
+ ),
137
+ spread: 0n,
138
+ taxBaseIn: 0n,
139
+ };
140
+ }
141
+
142
+ {
143
+ const gbmEstimation = GeometricBrownianMotion.getParametersEstimation(
144
+ tokenGlobalIn.latestRound,
145
+ tokenGlobalOut.latestRound,
146
+ hpParameters,
147
+ historicalPricesIn,
148
+ historicalPricesOut,
149
+ );
150
+
151
+ const [adjustedTokenOutWeight, spread] = MathMMM.getMMMWeight(
152
+ true,
153
+ swapParameters.fallbackSpread,
154
+ tokenGlobalOut.info.weight,
155
+ gbmEstimation,
156
+ gbmParameters,
157
+ );
158
+
159
+ if (tokenGlobalOut.info.balance <= balanceOutAtEquilibrium) {
160
+ // shortage to shortage
161
+ return {
162
+ amount: MathMMM.calcInGivenOut(
163
+ tokenGlobalIn.info.balance,
164
+ tokenGlobalIn.info.weight,
165
+ tokenGlobalOut.info.balance,
166
+ adjustedTokenOutWeight,
167
+ swapParameters.amount,
168
+ swapParameters.fee,
169
+ ),
170
+ spread: spread,
171
+ taxBaseIn: swapParameters.amount,
172
+ };
173
+ } else {
174
+ // abundance to shortage
175
+ const [amount, taxBaseIn] = MathMMM._calcInGivenOutMMMMixed(
176
+ tokenGlobalIn,
177
+ tokenGlobalOut,
178
+ swapParameters,
179
+ relativePrice,
180
+ adjustedTokenOutWeight,
181
+ balanceOutAtEquilibrium,
182
+ currentTimestamp,
183
+ );
184
+ return {
185
+ amount: amount,
186
+ spread: spread,
187
+ taxBaseIn: taxBaseIn,
188
+ };
189
+ }
190
+ }
191
+ }
192
+
193
+ /**
194
+ * @notice Implements 'calcInGivenOutMMM' in the case of abundance of tokenOut
195
+ * @dev Two cases to consider:
196
+ * 1) amount of tokenIn won't drive the pool from abundance of tokenOut to shortage ==> 1 pricing (no spread)
197
+ * 2) amount of tokenIn will drive the pool from abundance of tokenOut to shortage ==> 2 pricing, one for each phase
198
+ * @param tokenGlobalIn The pool global information on tokenIn
199
+ * @param tokenGlobalOut The pool global information on tokenOut
200
+ * @param swapParameters The parameters of the swap
201
+ * @param relativePrice The price of tokenOut in tokenIn terms
202
+ * @param adjustedTokenWeightOut The spread-augmented tokenOut's weight
203
+ * @return tokenAmountIn The total amount of tokenIn needed for the swap
204
+ * @return taxBaseIn The amount of tokenIn swapped when in shortage of tokenOut
205
+ */
206
+ static _calcInGivenOutMMMMixed(
207
+ tokenGlobalIn: Struct.TokenGlobal,
208
+ tokenGlobalOut: Struct.TokenGlobal,
209
+ swapParameters: Struct.SwapParameters,
210
+ relativePrice: bigint,
211
+ adjustedTokenWeightOut: bigint,
212
+ balanceOutAtEquilibrium: bigint,
213
+ currentTimestamp: bigint,
214
+ ): [bigint, bigint] {
215
+ const tokenOutBuyAmountForEquilibrium =
216
+ tokenGlobalOut.info.balance - balanceOutAtEquilibrium;
217
+
218
+ // 'abundance of tokenOut' phase --> no spread
219
+ const tokenAmountInPart1 = MathMMM._calcInGivenOutMMMAbundance(
220
+ tokenGlobalIn,
221
+ tokenGlobalOut,
222
+ // relativePrice,
223
+ tokenOutBuyAmountForEquilibrium,
224
+ swapParameters.fee,
225
+ // swapParameters.fallbackSpread,
226
+ //currentTimestamp,
227
+ );
228
+
229
+ // 'shortage of tokenOut phase' --> apply spread
230
+ const tokenAmountInPart2 = MathMMM.calcInGivenOut(
231
+ tokenGlobalIn.info.balance + tokenAmountInPart1,
232
+ tokenGlobalIn.info.weight,
233
+ tokenGlobalOut.info.balance - tokenOutBuyAmountForEquilibrium,
234
+ adjustedTokenWeightOut,
235
+ swapParameters.amount - tokenOutBuyAmountForEquilibrium, // tokenAmountOut > tokenOutBuyAmountForEquilibrium
236
+ swapParameters.fee,
237
+ );
238
+
239
+ return [
240
+ Num.add(tokenAmountInPart1, tokenAmountInPart2),
241
+ tokenAmountInPart2,
242
+ ];
243
+ }
244
+
245
+ /**
246
+ * @notice Implements calcOutGivenInMMM in the case of abundance of tokenOut
247
+ * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
248
+ * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
249
+ * @param tokenGlobalIn The pool global information on tokenIn
250
+ * @param tokenGlobalOut The pool global information on tokenOut
251
+ * @param relativePrice The price of tokenOut in tokenIn terms
252
+ * @param tokenAmountOut The amount of tokenOut that will be received
253
+ * @param baseFee The base fee
254
+ * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
255
+ * @return tokenAmountIn The amount of tokenIn needed for the swap
256
+ */
257
+ static _calcInGivenOutMMMAbundance(
258
+ tokenGlobalIn: Struct.TokenGlobal,
259
+ tokenGlobalOut: Struct.TokenGlobal,
260
+ // relativePrice: bigint,
261
+ tokenAmountOut: bigint,
262
+ baseFee: bigint,
263
+ // fallbackSpread: bigint,
264
+ // currentTimestamp: bigint,
265
+ ): bigint {
266
+ const adaptiveFees = baseFee; /*MathMMM.getAdaptiveFees(
267
+ tokenGlobalIn,
268
+ Num.mul(tokenAmountOut, relativePrice),
269
+ tokenGlobalOut,
270
+ tokenAmountOut,
271
+ relativePrice,
272
+ baseFee,
273
+ fallbackSpread,
274
+ currentTimestamp,
275
+ );*/
276
+ return MathMMM.calcInGivenOut(
277
+ tokenGlobalIn.info.balance,
278
+ tokenGlobalIn.info.weight,
279
+ tokenGlobalOut.info.balance,
280
+ tokenGlobalOut.info.weight,
281
+ tokenAmountOut,
282
+ adaptiveFees,
283
+ );
284
+ }
285
+
286
+ /**
287
+ * @notice Computes the net value of a given tokenIn amount in tokenOut terms
288
+ * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
289
+ * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
290
+ * @param tokenGlobalIn The pool global information on tokenIn
291
+ * @param tokenGlobalOut The pool global information on tokenOut
292
+ * @param relativePrice The price of tokenOut in tokenIn terms
293
+ * @param swapParameters Amount of token in and swap fee
294
+ * @param gbmParameters The GBM forecast parameters (Z, horizon)
295
+ * @param hpParameters The parameters for historical prices retrieval
296
+ * @return swapResult The swap result (amount out, spread and tax base in)
297
+ */
298
+ static calcOutGivenInMMM(
299
+ tokenGlobalIn: Struct.TokenGlobal,
300
+ tokenGlobalOut: Struct.TokenGlobal,
301
+ relativePrice: bigint,
302
+ swapParameters: Struct.SwapParameters,
303
+ gbmParameters: Struct.GBMParameters,
304
+ hpParameters: Struct.HistoricalPricesParameters,
305
+ historicalPricesIn: ChainLinkData,
306
+ historicalPricesOut: ChainLinkData,
307
+ currentTimestamp: bigint,
308
+ ): Struct.SwapResult {
309
+ // determines the balance of tokenIn at equilibrium (cf definitions)
310
+ const balanceInAtEquilibrium = MathMMM.getTokenBalanceAtEquilibrium(
311
+ tokenGlobalIn.info.balance,
312
+ tokenGlobalIn.info.weight,
313
+ tokenGlobalOut.info.balance,
314
+ tokenGlobalOut.info.weight,
315
+ relativePrice,
316
+ );
317
+
318
+ // from abundance of tokenOut to abundance of tokenOut --> no spread
319
+ {
320
+ if (
321
+ tokenGlobalIn.info.balance < balanceInAtEquilibrium &&
322
+ swapParameters.amount <
323
+ balanceInAtEquilibrium - tokenGlobalIn.info.balance
324
+ ) {
325
+ return {
326
+ amount: MathMMM._calcOutGivenInMMMAbundance(
327
+ tokenGlobalIn,
328
+ tokenGlobalOut,
329
+ relativePrice,
330
+ swapParameters.amount,
331
+ swapParameters.fee,
332
+ swapParameters.fallbackSpread,
333
+ currentTimestamp,
334
+ ),
335
+ spread: 0n,
336
+ taxBaseIn: 0n,
337
+ };
338
+ }
339
+ }
340
+
341
+ {
342
+ const gbmEstimation = GeometricBrownianMotion.getParametersEstimation(
343
+ tokenGlobalIn.latestRound,
344
+ tokenGlobalOut.latestRound,
345
+ hpParameters,
346
+ historicalPricesIn,
347
+ historicalPricesOut,
348
+ );
349
+
350
+ const [adjustedTokenOutWeight, spread] = MathMMM.getMMMWeight(
351
+ true,
352
+ swapParameters.fallbackSpread,
353
+ tokenGlobalOut.info.weight,
354
+ gbmEstimation,
355
+ gbmParameters,
356
+ );
357
+
358
+ if (tokenGlobalIn.info.balance >= balanceInAtEquilibrium) {
359
+ // shortage to shortage
360
+ return {
361
+ amount: MathMMM.calcOutGivenIn(
362
+ tokenGlobalIn.info.balance,
363
+ tokenGlobalIn.info.weight,
364
+ tokenGlobalOut.info.balance,
365
+ adjustedTokenOutWeight,
366
+ swapParameters.amount,
367
+ swapParameters.fee,
368
+ ),
369
+ spread: spread,
370
+ taxBaseIn: swapParameters.amount,
371
+ };
372
+ } else {
373
+ // abundance to shortage
374
+ const [amount, taxBaseIn] = MathMMM._calcOutGivenInMMMMixed(
375
+ tokenGlobalIn,
376
+ tokenGlobalOut,
377
+ swapParameters,
378
+ relativePrice,
379
+ adjustedTokenOutWeight,
380
+ balanceInAtEquilibrium,
381
+ currentTimestamp,
382
+ );
383
+ return {
384
+ amount: amount,
385
+ spread: spread,
386
+ taxBaseIn: taxBaseIn,
387
+ };
388
+ }
389
+ }
390
+ }
391
+
392
+ /**
393
+ * @notice Implements 'calcOutGivenInMMM' in the case of mixed regime of tokenOut (abundance then shortage)
394
+ * @param tokenGlobalIn The pool global information on tokenIn
395
+ * @param tokenGlobalOut The pool global information on tokenOut
396
+ * @param swapParameters The parameters of the swap
397
+ * @param relativePrice The price of tokenOut in tokenIn terms
398
+ * @param adjustedTokenWeightOut The spread-augmented tokenOut's weight
399
+ * @param balanceInAtEquilibrium TokenIn balance at equilibrium
400
+ * @return tokenAmountOut The total amount of token out
401
+ * @return taxBaseIn The amount of tokenIn swapped when in shortage of tokenOut
402
+ */
403
+ static _calcOutGivenInMMMMixed(
404
+ tokenGlobalIn: Struct.TokenGlobal,
405
+ tokenGlobalOut: Struct.TokenGlobal,
406
+ swapParameters: Struct.SwapParameters,
407
+ relativePrice: bigint,
408
+ adjustedTokenWeightOut: bigint,
409
+ balanceInAtEquilibrium: bigint,
410
+ currentTimestamp: bigint,
411
+ ): [bigint, bigint] {
412
+ const tokenInSellAmountForEquilibrium =
413
+ balanceInAtEquilibrium - tokenGlobalIn.info.balance;
414
+ const taxBaseIn = swapParameters.amount - tokenInSellAmountForEquilibrium;
415
+
416
+ // 'abundance of tokenOut' phase --> no spread
417
+ const tokenAmountOutPart1 = MathMMM._calcOutGivenInMMMAbundance(
418
+ tokenGlobalIn,
419
+ tokenGlobalOut,
420
+ relativePrice,
421
+ tokenInSellAmountForEquilibrium,
422
+ swapParameters.fee,
423
+ swapParameters.fallbackSpread,
424
+ currentTimestamp,
425
+ );
426
+
427
+ // 'shortage of tokenOut phase' --> apply spread
428
+ const tokenAmountOutPart2 = MathMMM.calcOutGivenIn(
429
+ Num.add(tokenGlobalIn.info.balance, tokenInSellAmountForEquilibrium),
430
+ tokenGlobalIn.info.weight,
431
+ Num.sub(tokenGlobalOut.info.balance, tokenAmountOutPart1),
432
+ adjustedTokenWeightOut,
433
+ taxBaseIn, // tokenAmountIn > tokenInSellAmountForEquilibrium
434
+ swapParameters.fee,
435
+ );
436
+
437
+ return [Num.add(tokenAmountOutPart1, tokenAmountOutPart2), taxBaseIn];
438
+ }
439
+
440
+ /**
441
+ * @notice Implements calcOutGivenInMMM in the case of abundance of tokenOut
442
+ * @dev A spread is applied as soon as entering a "shortage of tokenOut" phase
443
+ * cf whitepaper: https://www.swaap.finance/whitepaper.pdf
444
+ * @param tokenGlobalIn The pool global information on tokenIn
445
+ * @param tokenGlobalOut The pool global information on tokenOut
446
+ * @param relativePrice The price of tokenOut in tokenIn terms
447
+ * @param tokenAmountIn The amount of tokenIn that will be swaped
448
+ * @param baseFee The base fee
449
+ * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
450
+ * @return tokenAmountOut The tokenAmountOut when the tokenOut is in abundance
451
+ */
452
+ static _calcOutGivenInMMMAbundance(
453
+ tokenGlobalIn: Struct.TokenGlobal,
454
+ tokenGlobalOut: Struct.TokenGlobal,
455
+ relativePrice: bigint,
456
+ tokenAmountIn: bigint,
457
+ baseFee: bigint,
458
+ fallbackSpread: bigint,
459
+ currentTimestamp: bigint,
460
+ ): bigint {
461
+ const adaptiveFees = baseFee; /*MathMMM.getAdaptiveFees(
462
+ tokenGlobalIn,
463
+ tokenAmountIn,
464
+ tokenGlobalOut,
465
+ Num.div(tokenAmountIn, relativePrice),
466
+ relativePrice,
467
+ baseFee,
468
+ fallbackSpread,
469
+ currentTimestamp,
470
+ );*/
471
+ return MathMMM.calcOutGivenIn(
472
+ tokenGlobalIn.info.balance,
473
+ tokenGlobalIn.info.weight,
474
+ tokenGlobalOut.info.balance,
475
+ tokenGlobalOut.info.weight,
476
+ tokenAmountIn,
477
+ adaptiveFees,
478
+ );
479
+ }
480
+
481
+ /**
482
+ * @notice Computes the log spread factor
483
+ * @dev We define it as the log of the p-quantile of a GBM process (log-normal distribution),
484
+ * which is given by the following:
485
+ * mean * horizon + z * sqrt(2 * variance * horizon)
486
+ * where z = ierf(2p - 1), with ierf being the inverse error function.
487
+ * GBM: https://en.wikipedia.org/wiki/Geometric_Brownian_motion
488
+ * Log-normal distribution: https://en.wikipedia.org/wiki/Log-normal_distribution
489
+ * erf: https://en.wikipedia.org/wiki/Error_function
490
+ * @param mean The percentage drift
491
+ * @param variance The percentage volatility
492
+ * @param horizon The GBM forecast horizon parameter
493
+ * @param z The GBM forecast z parameter
494
+ * @return x The log spread factor
495
+ */
496
+ static getLogSpreadFactor(
497
+ mean: bigint,
498
+ variance: bigint,
499
+ horizon: bigint,
500
+ z: bigint,
501
+ ): bigint {
502
+ if (mean == 0n && variance == 0n) {
503
+ return 0n;
504
+ }
505
+
506
+ if (mean < 0) {
507
+ mean = -Num.mul(-mean, horizon);
508
+ } else {
509
+ mean = Num.mul(mean, horizon);
510
+ }
511
+
512
+ let diffusion = 0n;
513
+ if (variance > 0) {
514
+ diffusion = Num.mul(
515
+ z,
516
+ LogExpMath.pow(Num.mul(variance, 2n * horizon), Const.ONE / 2n),
517
+ );
518
+ }
519
+ return diffusion + mean;
520
+ }
521
+
522
+ /**
523
+ * @notice Apply to the tokenWeight a 'spread' factor
524
+ * @dev The spread factor is defined as the maximum between:
525
+ a) the expected relative tokenOut increase in tokenIn terms
526
+ b) 1
527
+ * The function multiplies the tokenWeight by the spread factor if
528
+ * the token is in shortage, or divides it by the spread factor if it is in abundance
529
+ * @param shortage true when the token is in shortage, false if in abundance
530
+ * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
531
+ * @param tokenWeight The token's weight
532
+ * @param gbmEstimation The GBM's 2 first moments estimation
533
+ * @param gbmParameters The GBM forecast parameters (Z, horizon)
534
+ * @return adjustedWeight The adjusted weight based on spread
535
+ * @return spread The spread
536
+ */
537
+ static getMMMWeight(
538
+ shortage: boolean,
539
+ fallbackSpread: bigint,
540
+ tokenWeight: bigint,
541
+ gbmEstimation: Struct.GBMEstimation,
542
+ gbmParameters: Struct.GBMParameters,
543
+ ): [adjustedWeight: bigint, spread: bigint] {
544
+ if (!gbmEstimation.success) {
545
+ if (shortage) {
546
+ return [
547
+ Num.mul(tokenWeight, Const.ONE + fallbackSpread),
548
+ fallbackSpread,
549
+ ];
550
+ } else {
551
+ return [
552
+ Num.div(tokenWeight, Const.ONE + fallbackSpread),
553
+ fallbackSpread,
554
+ ];
555
+ }
556
+ }
557
+
558
+ if (gbmParameters.horizon == 0n) {
559
+ return [tokenWeight, 0n];
560
+ }
561
+
562
+ const logSpreadFactor = MathMMM.getLogSpreadFactor(
563
+ gbmEstimation.mean,
564
+ gbmEstimation.variance,
565
+ gbmParameters.horizon,
566
+ gbmParameters.z,
567
+ );
568
+ if (logSpreadFactor <= 0) {
569
+ return [tokenWeight, 0n];
570
+ }
571
+ const spreadFactor = LogExpMath.exp(logSpreadFactor);
572
+ // if spread < 1 --> rounding error --> set to 1
573
+ if (spreadFactor <= Const.ONE) {
574
+ return [tokenWeight, 0n];
575
+ }
576
+
577
+ let spread = spreadFactor - Const.ONE;
578
+
579
+ if (shortage) {
580
+ return [Num.mul(tokenWeight, spreadFactor), spread];
581
+ } else {
582
+ return [Num.div(tokenWeight, spreadFactor), spread];
583
+ }
584
+ }
585
+
586
+ /**
587
+ * @notice Computes the fee amount that will ensure we maintain the pool's value, according to oracle prices.
588
+ * @dev We apply this fee regime only if Out-In price increased in the same block as now.
589
+ * @param tokenGlobalIn The pool global information on tokenIn
590
+ * @param tokenAmountIn The swap desired amount for tokenIn
591
+ * @param tokenGlobalOut The pool global information on tokenOut
592
+ * @param tokenAmountOut The swap desired amount for tokenOut
593
+ * @param relativePrice The price of tokenOut in tokenIn terms
594
+ * @param baseFee The base fee amount
595
+ * @param fallbackSpread The default spread in case the it couldn't be calculated using oracle prices
596
+ * @return alpha The potentially augmented fee amount
597
+ */
598
+ /* static getAdaptiveFees(
599
+ tokenGlobalIn: Struct.TokenGlobal,
600
+ tokenAmountIn: bigint,
601
+ tokenGlobalOut: Struct.TokenGlobal,
602
+ tokenAmountOut: bigint,
603
+ relativePrice: bigint,
604
+ baseFee: bigint,
605
+ fallbackSpread: bigint,
606
+ currentTimestamp: bigint,
607
+ ): bigint {
608
+ let blockTimestamp = currentTimestamp;
609
+
610
+ // we only consider same block as last price update
611
+ if (
612
+ blockTimestamp != tokenGlobalIn.latestRound.timestamp &&
613
+ blockTimestamp != tokenGlobalOut.latestRound.timestamp
614
+ ) {
615
+ // no additional fees
616
+ return baseFee;
617
+ }
618
+ let recentPriceUpperBound = ChainlinkUtils.getMaxRelativePriceInLastBlock(
619
+ tokenGlobalIn.latestRound,
620
+ tokenGlobalIn.info.decimals,
621
+ tokenGlobalOut.latestRound,
622
+ tokenGlobalOut.info.decimals,
623
+ // historicalPricesIn,
624
+ // historicalPricesOut
625
+ );
626
+ if (recentPriceUpperBound == 0n) {
627
+ // we were not able to retrieve the previous price
628
+ return fallbackSpread;
629
+ } else if (recentPriceUpperBound <= relativePrice) {
630
+ // no additional fees
631
+ return baseFee;
632
+ }
633
+
634
+ return (
635
+ // additional fees indexed on price increase and imbalance
636
+ Num.min(
637
+ Const.ONE,
638
+ baseFee +
639
+ MathMMM.calcAdaptiveFeeGivenInAndOut(
640
+ tokenGlobalIn.info.balance,
641
+ tokenAmountIn,
642
+ tokenGlobalIn.info.weight,
643
+ tokenGlobalOut.info.balance,
644
+ tokenAmountOut,
645
+ tokenGlobalOut.info.weight,
646
+ ),
647
+ )
648
+ );
649
+ }
650
+ */
651
+
652
+ /**
653
+ * @notice Computes the balance of token1 the pool must have in order to have token1/token2 at equilibrium
654
+ * while satisfying the pricing curve prod^k balance_k^w_k = K
655
+ * @dev We only rely on the following equations:
656
+ * a) priceTokenOutOutInTokenIn = balance_in / balance_out * w_out / w_in
657
+ * b) tokenBalanceOut = (K / prod_k!=in balance_k^w_k)^(1/w_out) = (localInvariant / balance_in^w_in)^(1/w_out)
658
+ * with localInvariant = balance_in^w_in * balance_out^w_out which can be computed with only In/Out
659
+ * @param tokenBalance1 The balance of token1 initially
660
+ * @param tokenWeight1 The weight of token1
661
+ * @param tokenBalance2 The balance of token2 initially
662
+ * @param tokenWeight2 The weight of token2
663
+ * @param relativePrice The price of tokenOut in tokenIn terms
664
+ * @return balance1AtEquilibrium The balance of token1 in order to have a token1/token2 at equilibrium
665
+ */
666
+ static getTokenBalanceAtEquilibrium(
667
+ tokenBalance1: bigint,
668
+ tokenWeight1: bigint,
669
+ tokenBalance2: bigint,
670
+ tokenWeight2: bigint,
671
+ relativePrice: bigint,
672
+ ): bigint {
673
+ const weightSum = tokenWeight1 + tokenWeight2;
674
+ // relativePrice * weight1/weight2
675
+ let foo = Num.mul(relativePrice, Num.div(tokenWeight1, tokenWeight2));
676
+ // relativePrice * balance2 * (weight1/weight2)
677
+ foo = Num.mul(foo, tokenBalance2);
678
+
679
+ const balance1AtEquilibrium = Num.mul(
680
+ LogExpMath.pow(foo, Num.div(tokenWeight2, weightSum)),
681
+ LogExpMath.pow(tokenBalance1, Num.div(tokenWeight1, weightSum)),
682
+ );
683
+
684
+ return balance1AtEquilibrium;
685
+ }
686
+
687
+ /**
688
+ * @notice Computes the fee needed to maintain the pool's value constant
689
+ * @dev We use oracle to evaluate pool's value
690
+ * @param tokenBalanceIn The balance of tokenIn initially
691
+ * @param tokenAmountIn The amount of tokenIn to be added
692
+ * @param tokenWeightIn The weight of tokenIn
693
+ * @param tokenBalanceOut The balance of tokenOut initially
694
+ * @param tokenAmountOut The amount of tokenOut to be removed from the pool
695
+ * @param tokenWeightOut The weight of tokenOut
696
+ * @return adaptiveFee The computed adaptive fee to be added to the base fees
697
+ */
698
+ static calcAdaptiveFeeGivenInAndOut(
699
+ tokenBalanceIn: bigint,
700
+ tokenAmountIn: bigint,
701
+ tokenWeightIn: bigint,
702
+ tokenBalanceOut: bigint,
703
+ tokenAmountOut: bigint,
704
+ tokenWeightOut: bigint,
705
+ ): bigint {
706
+ const weightRatio = Num.div(tokenWeightOut, tokenWeightIn);
707
+ const y = Num.div(tokenBalanceOut, tokenBalanceOut - tokenAmountOut);
708
+ const foo = Num.mul(tokenBalanceIn, Num.pow(y, weightRatio));
709
+
710
+ const afterSwapTokenInBalance = tokenBalanceIn + tokenAmountIn;
711
+
712
+ if (foo > afterSwapTokenInBalance) {
713
+ return 0n;
714
+ }
715
+ return Num.div(afterSwapTokenInBalance - foo, tokenAmountIn);
716
+ }
717
+ }