@gearbox-protocol/sdk 3.0.0-next.103 → 3.0.0-next.105

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 (343) hide show
  1. package/lib/core/creditAccount.js +3 -0
  2. package/lib/core/creditAccount.spec.js +1 -1
  3. package/lib/core/creditManager.d.ts +1 -0
  4. package/lib/core/creditManager.js +5 -0
  5. package/lib/index.d.ts +1 -3
  6. package/lib/index.js +1 -3
  7. package/lib/parsers/ERC20Parser.js +1 -1
  8. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +7 -0
  9. package/lib/parsers/aaveV2LendingPoolAdapterParser.js +21 -0
  10. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +7 -0
  11. package/lib/parsers/aaveV2WrappedATokenAdapterParser.js +21 -0
  12. package/lib/parsers/abstractParser.d.ts +7 -5
  13. package/lib/parsers/abstractParser.js +3 -0
  14. package/lib/parsers/addressProviderParser.js +1 -1
  15. package/lib/parsers/balancerV2VaultParser.d.ts +7 -0
  16. package/lib/parsers/balancerV2VaultParser.js +34 -0
  17. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +7 -0
  18. package/lib/parsers/compoundV2CTokenAdapterParser.js +21 -0
  19. package/lib/parsers/convexBaseRewardPoolAdapterParser.js +1 -1
  20. package/lib/parsers/convexBoosterAdapterParser.js +1 -1
  21. package/lib/parsers/convextRewardPoolParser.js +1 -1
  22. package/lib/parsers/creditFacadeParser.js +1 -1
  23. package/lib/parsers/creditManagerParser.js +1 -1
  24. package/lib/parsers/curveAdapterParser.js +1 -1
  25. package/lib/parsers/erc626AdapterParser.d.ts +7 -0
  26. package/lib/parsers/erc626AdapterParser.js +21 -0
  27. package/lib/parsers/lidoAdapterParser.js +1 -1
  28. package/lib/parsers/lidoSTETHParser.js +1 -1
  29. package/lib/parsers/poolParser.js +1 -1
  30. package/lib/parsers/priceOracleParser.js +1 -1
  31. package/lib/parsers/txParser.d.ts +17 -11
  32. package/lib/parsers/txParser.js +36 -5
  33. package/lib/parsers/uniV2AdapterParser.js +1 -1
  34. package/lib/parsers/uniV3AdapterParser.js +1 -1
  35. package/lib/parsers/wstETHAdapterParser.js +1 -1
  36. package/lib/parsers/yearnV2AdapterParser.js +1 -1
  37. package/lib/pathfinder/index.d.ts +4 -0
  38. package/lib/pathfinder/index.js +20 -0
  39. package/lib/pathfinder/utils.d.ts +35 -0
  40. package/lib/pathfinder/utils.js +182 -0
  41. package/lib/types/contracts/index.d.ts +2 -0
  42. package/lib/types/contracts/interfaces/IGasPricer.d.ts +44 -0
  43. package/lib/types/contracts/interfaces/IGasPricer.js +2 -0
  44. package/lib/types/contracts/interfaces/index.d.ts +1 -0
  45. package/lib/types/contracts/interfaces/index.js +2 -0
  46. package/lib/types/factories/AddressProvider__factory.d.ts +111 -111
  47. package/lib/types/factories/AddressProvider__factory.js +119 -119
  48. package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +3 -3
  49. package/lib/types/factories/Balances.sol/BalanceOps__factory.js +3 -3
  50. package/lib/types/factories/CalldataExtractor__factory.d.ts +34 -34
  51. package/lib/types/factories/CalldataExtractor__factory.js +37 -37
  52. package/lib/types/factories/Claimable__factory.d.ts +28 -28
  53. package/lib/types/factories/Claimable__factory.js +32 -32
  54. package/lib/types/factories/ERC20__factory.d.ts +89 -89
  55. package/lib/types/factories/ERC20__factory.js +99 -99
  56. package/lib/types/factories/Errors__factory.d.ts +99 -99
  57. package/lib/types/factories/Errors__factory.js +99 -99
  58. package/lib/types/factories/FarmAccounting__factory.d.ts +6 -6
  59. package/lib/types/factories/FarmAccounting__factory.js +6 -6
  60. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +42 -42
  61. package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +42 -42
  62. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +70 -70
  63. package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +70 -70
  64. package/lib/types/factories/IAdapter__factory.d.ts +15 -15
  65. package/lib/types/factories/IAdapter__factory.js +15 -15
  66. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +7 -7
  67. package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +7 -7
  68. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +48 -48
  69. package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +52 -52
  70. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +9 -9
  71. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +9 -9
  72. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +37 -37
  73. package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +42 -42
  74. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +25 -25
  75. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +25 -25
  76. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +71 -71
  77. package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +85 -85
  78. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +19 -19
  79. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +19 -19
  80. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +106 -106
  81. package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +106 -106
  82. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +7 -7
  83. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +7 -7
  84. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +2 -2
  85. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +2 -2
  86. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +161 -161
  87. package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +166 -166
  88. package/lib/types/factories/IBaseRewardPool__factory.d.ts +114 -114
  89. package/lib/types/factories/IBaseRewardPool__factory.js +114 -114
  90. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +38 -38
  91. package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +43 -43
  92. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +152 -152
  93. package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +170 -170
  94. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +60 -60
  95. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +63 -63
  96. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +3 -3
  97. package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +3 -3
  98. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +10 -10
  99. package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +10 -10
  100. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +51 -51
  101. package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +57 -57
  102. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +30 -30
  103. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +30 -30
  104. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +165 -165
  105. package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +182 -182
  106. package/lib/types/factories/IConvexToken__factory.d.ts +86 -86
  107. package/lib/types/factories/IConvexToken__factory.js +96 -96
  108. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +80 -80
  109. package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +80 -80
  110. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +7 -7
  111. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +7 -7
  112. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +62 -62
  113. package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +66 -66
  114. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +121 -121
  115. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +127 -127
  116. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +18 -18
  117. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +18 -18
  118. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +376 -376
  119. package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +417 -417
  120. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +118 -118
  121. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +127 -127
  122. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +395 -395
  123. package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +420 -420
  124. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +107 -107
  125. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +118 -118
  126. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +65 -65
  127. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +65 -65
  128. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +23 -23
  129. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +23 -23
  130. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +5 -5
  131. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +5 -5
  132. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +601 -601
  133. package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +749 -749
  134. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +72 -72
  135. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +80 -80
  136. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +288 -288
  137. package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +397 -397
  138. package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +59 -59
  139. package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +59 -59
  140. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +11 -11
  141. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +12 -12
  142. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +26 -26
  143. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +26 -26
  144. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +252 -252
  145. package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +272 -272
  146. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +5 -5
  147. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +5 -5
  148. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +294 -294
  149. package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +297 -297
  150. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +191 -191
  151. package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +191 -191
  152. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +191 -191
  153. package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +191 -191
  154. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +191 -191
  155. package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +191 -191
  156. package/lib/types/factories/ICurvePool__factory.d.ts +159 -159
  157. package/lib/types/factories/ICurvePool__factory.js +159 -159
  158. package/lib/types/factories/ICurveV1Adapter__factory.d.ts +169 -169
  159. package/lib/types/factories/ICurveV1Adapter__factory.js +169 -169
  160. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +187 -187
  161. package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +187 -187
  162. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +187 -187
  163. package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +187 -187
  164. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +187 -187
  165. package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +187 -187
  166. package/lib/types/factories/IDaiLikePermit__factory.d.ts +10 -10
  167. package/lib/types/factories/IDaiLikePermit__factory.js +10 -10
  168. package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +334 -334
  169. package/lib/types/factories/IDataCompressorV2_10__factory.js +334 -334
  170. package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +454 -454
  171. package/lib/types/factories/IDataCompressorV3_00__factory.js +454 -454
  172. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +14 -14
  173. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +14 -14
  174. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +43 -43
  175. package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +51 -51
  176. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +15 -15
  177. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +15 -15
  178. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +8 -8
  179. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +8 -8
  180. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +180 -180
  181. package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +208 -208
  182. package/lib/types/factories/IERC165__factory.d.ts +4 -4
  183. package/lib/types/factories/IERC165__factory.js +4 -4
  184. package/lib/types/factories/IERC20Metadata__factory.d.ts +76 -76
  185. package/lib/types/factories/IERC20Metadata__factory.js +86 -86
  186. package/lib/types/factories/IERC20Permit__factory.d.ts +16 -16
  187. package/lib/types/factories/IERC20Permit__factory.js +16 -16
  188. package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +30 -30
  189. package/lib/types/factories/IERC20ZapperDeposits__factory.js +30 -30
  190. package/lib/types/factories/IERC20__factory.d.ts +67 -67
  191. package/lib/types/factories/IERC20__factory.js +77 -77
  192. package/lib/types/factories/IERC4626Adapter__factory.d.ts +60 -60
  193. package/lib/types/factories/IERC4626Adapter__factory.js +60 -60
  194. package/lib/types/factories/IERC4626__factory.d.ts +198 -198
  195. package/lib/types/factories/IERC4626__factory.js +221 -221
  196. package/lib/types/factories/IERC721Metadata__factory.d.ts +114 -114
  197. package/lib/types/factories/IERC721Metadata__factory.js +129 -129
  198. package/lib/types/factories/IERC721__factory.d.ts +104 -104
  199. package/lib/types/factories/IERC721__factory.js +119 -119
  200. package/lib/types/factories/IETHZapperDeposits__factory.d.ts +9 -9
  201. package/lib/types/factories/IETHZapperDeposits__factory.js +9 -9
  202. package/lib/types/factories/IFarmingPool__factory.d.ts +134 -134
  203. package/lib/types/factories/IFarmingPool__factory.js +152 -152
  204. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +46 -46
  205. package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +50 -50
  206. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +172 -172
  207. package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +200 -200
  208. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +48 -48
  209. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +49 -49
  210. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +225 -225
  211. package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +253 -253
  212. package/lib/types/factories/IInterestRateModel__factory.d.ts +8 -8
  213. package/lib/types/factories/IInterestRateModel__factory.js +8 -8
  214. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +11 -11
  215. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +12 -12
  216. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +10 -10
  217. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +10 -10
  218. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +107 -107
  219. package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +119 -119
  220. package/lib/types/factories/ILidoV1Adapter__factory.d.ts +40 -40
  221. package/lib/types/factories/ILidoV1Adapter__factory.js +40 -40
  222. package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +25 -25
  223. package/lib/types/factories/ILinearInterestRateModelV3__factory.js +25 -25
  224. package/lib/types/factories/IOffchainOracle__factory.d.ts +11 -11
  225. package/lib/types/factories/IOffchainOracle__factory.js +11 -11
  226. package/lib/types/factories/IPermit2__factory.d.ts +33 -33
  227. package/lib/types/factories/IPermit2__factory.js +33 -33
  228. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +44 -44
  229. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +45 -45
  230. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +190 -190
  231. package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +216 -216
  232. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +66 -66
  233. package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +72 -72
  234. package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +235 -235
  235. package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +286 -286
  236. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +65 -65
  237. package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +68 -68
  238. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +574 -574
  239. package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +696 -696
  240. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +22 -22
  241. package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +22 -22
  242. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +28 -28
  243. package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +28 -28
  244. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +6 -6
  245. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +7 -7
  246. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +6 -6
  247. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +6 -6
  248. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +71 -71
  249. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +78 -78
  250. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +68 -68
  251. package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +75 -75
  252. package/lib/types/factories/IPriceOracleBase__factory.d.ts +27 -27
  253. package/lib/types/factories/IPriceOracleBase__factory.js +27 -27
  254. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +28 -28
  255. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +31 -31
  256. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +139 -139
  257. package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +156 -156
  258. package/lib/types/factories/IRouterV3__factory.d.ts +178 -178
  259. package/lib/types/factories/IRouterV3__factory.js +191 -191
  260. package/lib/types/factories/IRouter__factory.d.ts +159 -159
  261. package/lib/types/factories/IRouter__factory.js +172 -172
  262. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +8 -8
  263. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +9 -9
  264. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +2 -2
  265. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +2 -2
  266. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +78 -78
  267. package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +84 -84
  268. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +50 -50
  269. package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +50 -50
  270. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +10 -10
  271. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +11 -11
  272. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +2 -2
  273. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +2 -2
  274. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +138 -138
  275. package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +145 -145
  276. package/lib/types/factories/IVersion__factory.d.ts +3 -3
  277. package/lib/types/factories/IVersion__factory.js +3 -3
  278. package/lib/types/factories/IVotingContractV3__factory.d.ts +10 -10
  279. package/lib/types/factories/IVotingContractV3__factory.js +10 -10
  280. package/lib/types/factories/IWETHGateway__factory.d.ts +14 -14
  281. package/lib/types/factories/IWETHGateway__factory.js +14 -14
  282. package/lib/types/factories/IWETH__factory.d.ts +102 -102
  283. package/lib/types/factories/IWETH__factory.js +120 -120
  284. package/lib/types/factories/IYVault__factory.d.ts +112 -112
  285. package/lib/types/factories/IYVault__factory.js +122 -122
  286. package/lib/types/factories/IYearnV2Adapter__factory.d.ts +63 -63
  287. package/lib/types/factories/IYearnV2Adapter__factory.js +63 -63
  288. package/lib/types/factories/IZapperRegister__factory.d.ts +20 -20
  289. package/lib/types/factories/IZapperRegister__factory.js +22 -22
  290. package/lib/types/factories/IZapper__factory.d.ts +34 -34
  291. package/lib/types/factories/IZapper__factory.js +34 -34
  292. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +97 -97
  293. package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +107 -107
  294. package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +101 -101
  295. package/lib/types/factories/IstETH.sol/IstETH__factory.js +111 -111
  296. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +93 -93
  297. package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +103 -103
  298. package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +101 -101
  299. package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +111 -111
  300. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +14 -14
  301. package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +15 -15
  302. package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +44 -44
  303. package/lib/types/factories/IwstETHV1Adapter__factory.js +44 -44
  304. package/lib/types/factories/NumericArrayLib__factory.d.ts +2 -2
  305. package/lib/types/factories/NumericArrayLib__factory.js +2 -2
  306. package/lib/types/factories/Ownable__factory.d.ts +23 -23
  307. package/lib/types/factories/Ownable__factory.js +27 -27
  308. package/lib/types/factories/RedstoneConstants__factory.d.ts +19 -19
  309. package/lib/types/factories/RedstoneConstants__factory.js +19 -19
  310. package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +101 -101
  311. package/lib/types/factories/RedstoneConsumerBase__factory.js +123 -123
  312. package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +101 -101
  313. package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +123 -123
  314. package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +8 -8
  315. package/lib/types/factories/RedstoneDefaultsLib__factory.js +8 -8
  316. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +5 -5
  317. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +5 -5
  318. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +10 -10
  319. package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +10 -10
  320. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +193 -193
  321. package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +220 -220
  322. package/lib/types/factories/SafeERC20__factory.d.ts +14 -14
  323. package/lib/types/factories/SafeERC20__factory.js +14 -14
  324. package/lib/types/factories/contracts/index.d.ts +1 -0
  325. package/lib/types/factories/contracts/index.js +30 -0
  326. package/lib/types/factories/contracts/interfaces/IGasPricer__factory.d.ts +22 -0
  327. package/lib/types/factories/contracts/interfaces/index.d.ts +1 -0
  328. package/lib/types/factories/contracts/interfaces/index.js +8 -0
  329. package/lib/types/factories/index.d.ts +2 -1
  330. package/lib/types/factories/index.js +4 -4
  331. package/lib/types/factories/{IGasPricer__factory.d.ts → interfaces/IGasPricer__factory.d.ts} +5 -5
  332. package/lib/types/factories/interfaces/IGasPricer__factory.js +38 -0
  333. package/lib/types/factories/interfaces/index.d.ts +1 -0
  334. package/lib/types/factories/interfaces/index.js +8 -0
  335. package/lib/types/index.d.ts +18 -14
  336. package/lib/types/index.js +25 -25
  337. package/lib/types/{IGasPricer.d.ts → interfaces/IGasPricer.d.ts} +1 -1
  338. package/lib/types/interfaces/IGasPricer.js +2 -0
  339. package/lib/types/interfaces/index.d.ts +1 -0
  340. package/lib/types/interfaces/index.js +2 -0
  341. package/package.json +4 -4
  342. package/lib/types/{IGasPricer.js → contracts/index.js} +0 -0
  343. package/lib/types/factories/{IGasPricer__factory.js → contracts/interfaces/IGasPricer__factory.js} +4 -4
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PathFinderUtils = exports.BALANCER_VAULT_INTERFACE = exports.BALANCER_VAULT_ABI = void 0;
4
+ const sdk_gov_1 = require("@gearbox-protocol/sdk-gov");
5
+ const ethers_1 = require("ethers");
6
+ const utils_1 = require("ethers/lib/utils");
7
+ const balancerV2VaultParser_1 = require("../parsers/balancerV2VaultParser");
8
+ const curveAdapterParser_1 = require("../parsers/curveAdapterParser");
9
+ const lidoAdapterParser_1 = require("../parsers/lidoAdapterParser");
10
+ const txParser_1 = require("../parsers/txParser");
11
+ const uniV2AdapterParser_1 = require("../parsers/uniV2AdapterParser");
12
+ const uniV3AdapterParser_1 = require("../parsers/uniV3AdapterParser");
13
+ const types_1 = require("../types");
14
+ const CURVE_FEE_DECIMALS = 100000000n;
15
+ const BALANCER_FEE_DECIMALS = 10000000000000000n;
16
+ exports.BALANCER_VAULT_ABI = [
17
+ {
18
+ inputs: [],
19
+ name: "getSwapFeePercentage",
20
+ outputs: [
21
+ {
22
+ internalType: "uint256",
23
+ name: "",
24
+ type: "uint256",
25
+ },
26
+ ],
27
+ stateMutability: "view",
28
+ type: "function",
29
+ },
30
+ ];
31
+ exports.BALANCER_VAULT_INTERFACE = new utils_1.Interface(exports.BALANCER_VAULT_ABI);
32
+ class PathFinderUtils {
33
+ static async findPathFees({ calls, provider, contractsByAdapter, }) {
34
+ const pathObjects = txParser_1.TxParser.parseToObjectMultiCall(calls);
35
+ const { simpleFees, curve, balancer } = pathObjects.reduce((acc, pathSegment) => {
36
+ if (!pathSegment)
37
+ return acc;
38
+ const { callObject, parser } = pathSegment;
39
+ switch (true) {
40
+ case parser instanceof uniV2AdapterParser_1.UniswapV2AdapterParser: {
41
+ const f = this.getUniswapV2Fee(callObject);
42
+ if (f)
43
+ acc.simpleFees.push(f);
44
+ break;
45
+ }
46
+ case parser instanceof uniV3AdapterParser_1.UniswapV3AdapterParser: {
47
+ const f = this.getUniswapV3Fee(callObject);
48
+ if (f)
49
+ acc.simpleFees.push(f);
50
+ break;
51
+ }
52
+ case parser instanceof lidoAdapterParser_1.LidoAdapterParser: {
53
+ const f = this.getLidoFee();
54
+ if (f)
55
+ acc.simpleFees.push(f);
56
+ break;
57
+ }
58
+ case parser instanceof curveAdapterParser_1.CurveAdapterParser: {
59
+ const call = this.getCurveFeeCall(callObject, contractsByAdapter);
60
+ if (call)
61
+ acc.curve.push(call);
62
+ break;
63
+ }
64
+ case parser instanceof balancerV2VaultParser_1.BalancerV2VaultParser: {
65
+ const call = this.getBalancerFeeCall(callObject);
66
+ if (call)
67
+ acc.balancer.push(call);
68
+ break;
69
+ }
70
+ }
71
+ return acc;
72
+ }, {
73
+ simpleFees: [],
74
+ curve: [],
75
+ balancer: [],
76
+ });
77
+ const response = await (0, sdk_gov_1.safeMulticall)([...curve, ...balancer], provider);
78
+ const curveEnds = curve.length;
79
+ const curveResponse = response.slice(0, curveEnds);
80
+ const balancerEnds = balancer.length;
81
+ const balancerResponse = response.slice(curveEnds, balancerEnds);
82
+ const curveFees = curveResponse.map(r => this.getCurveFee(r));
83
+ const balancerFees = balancerResponse.map(r => this.getBalancerFee(r));
84
+ const fees = [...simpleFees, ...curveFees, ...balancerFees];
85
+ return fees;
86
+ }
87
+ static getUniswapV2Fee(callObject) {
88
+ const { name } = callObject.functionFragment;
89
+ switch (name) {
90
+ case "swapExactTokensForTokens":
91
+ case "swapTokensForExactTokens":
92
+ case "swapDiffTokensForTokens": {
93
+ // 0.3%
94
+ return {
95
+ type: "uniswap_v2",
96
+ value: 3000n,
97
+ };
98
+ }
99
+ default:
100
+ return null;
101
+ }
102
+ }
103
+ static getUniswapV3Fee(callObject) {
104
+ const { name } = callObject.functionFragment;
105
+ switch (name) {
106
+ case "exactInputSingle":
107
+ case "exactDiffInputSingle":
108
+ case "exactOutputSingle": {
109
+ const { params } = callObject.args || {};
110
+ const { fee = 0 } = params || {};
111
+ return {
112
+ type: "uniswap_v3",
113
+ value: (0, sdk_gov_1.toBigInt)(fee),
114
+ };
115
+ }
116
+ default:
117
+ return null;
118
+ }
119
+ }
120
+ static getCurveFeeCall(callObject, contractsByAdapter) {
121
+ const { name } = callObject.functionFragment;
122
+ switch (name) {
123
+ case "exchange":
124
+ case "exchange_underlying":
125
+ case "exchange_diff":
126
+ case "exchange_diff_underlying": {
127
+ const adapter = (callObject.address || "").toLowerCase();
128
+ const contract = contractsByAdapter[adapter];
129
+ return contract
130
+ ? {
131
+ address: contract,
132
+ interface: types_1.ICurvePool__factory.createInterface(),
133
+ method: "fee()",
134
+ }
135
+ : null;
136
+ }
137
+ default:
138
+ return null;
139
+ }
140
+ }
141
+ static getCurveFee({ value }) {
142
+ const feeOriginal = (0, sdk_gov_1.toBigInt)(value || 0n);
143
+ return {
144
+ type: "curve",
145
+ value: (feeOriginal * sdk_gov_1.PERCENTAGE_FACTOR) / CURVE_FEE_DECIMALS,
146
+ };
147
+ }
148
+ static getBalancerFeeCall(callObject) {
149
+ const { name } = callObject.functionFragment;
150
+ switch (name) {
151
+ case "swapDiff":
152
+ case "swap": {
153
+ const { poolId = "" } = callObject.args?.[0] || {};
154
+ // !&
155
+ const [contract] = ethers_1.utils.defaultAbiCoder.decode(["address", "unit16"], poolId);
156
+ return contract
157
+ ? {
158
+ address: contract,
159
+ interface: exports.BALANCER_VAULT_INTERFACE,
160
+ method: "getSwapFeePercentage()",
161
+ }
162
+ : null;
163
+ }
164
+ default:
165
+ return null;
166
+ }
167
+ }
168
+ static getBalancerFee({ value }) {
169
+ const feeOriginal = (0, sdk_gov_1.toBigInt)(value || 0n);
170
+ return {
171
+ type: "balancer",
172
+ value: (feeOriginal * sdk_gov_1.PERCENTAGE_FACTOR) / BALANCER_FEE_DECIMALS,
173
+ };
174
+ }
175
+ static getLidoFee() {
176
+ return {
177
+ type: "lido",
178
+ value: 0n,
179
+ };
180
+ }
181
+ }
182
+ exports.PathFinderUtils = PathFinderUtils;
@@ -0,0 +1,2 @@
1
+ import type * as interfaces from "./interfaces";
2
+ export type { interfaces };
@@ -0,0 +1,44 @@
1
+ import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
5
+ export interface IGasPricerInterface extends utils.Interface {
6
+ functions: {
7
+ "getGasPriceTokenOutRAY(address)": FunctionFragment;
8
+ };
9
+ getFunction(nameOrSignatureOrTopic: "getGasPriceTokenOutRAY"): FunctionFragment;
10
+ encodeFunctionData(functionFragment: "getGasPriceTokenOutRAY", values: [PromiseOrValue<string>]): string;
11
+ decodeFunctionResult(functionFragment: "getGasPriceTokenOutRAY", data: BytesLike): Result;
12
+ events: {};
13
+ }
14
+ export interface IGasPricer extends BaseContract {
15
+ connect(signerOrProvider: Signer | Provider | string): this;
16
+ attach(addressOrName: string): this;
17
+ deployed(): Promise<this>;
18
+ interface: IGasPricerInterface;
19
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
20
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
21
+ listeners(eventName?: string): Array<Listener>;
22
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
23
+ removeAllListeners(eventName?: string): this;
24
+ off: OnEvent<this>;
25
+ on: OnEvent<this>;
26
+ once: OnEvent<this>;
27
+ removeListener: OnEvent<this>;
28
+ functions: {
29
+ getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber] & {
30
+ gasPrice: BigNumber;
31
+ }>;
32
+ };
33
+ getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
34
+ callStatic: {
35
+ getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
36
+ };
37
+ filters: {};
38
+ estimateGas: {
39
+ getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
40
+ };
41
+ populateTransaction: {
42
+ getGasPriceTokenOutRAY(token: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
43
+ };
44
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { IGasPricer } from "./IGasPricer";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,305 +15,305 @@ export declare class AddressProvider__factory extends ContractFactory {
15
15
  connect(signer: Signer): AddressProvider__factory;
16
16
  static readonly bytecode = "0x608060405234801561001057600080fd5b5061001a3361005f565b60405130906f20a2222922a9a9afa82927ab24a222a960811b907fb37614c7d254ea8d16eb81fa11dddaeb266aa8ba4917980859c7740aff30c69190600090a36100af565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c4c806100be6000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c806377532ed9116100f9578063bcaead9811610097578063ce3c4ae411610071578063ce3c4ae414610350578063e30c397814610363578063f2fde38b14610383578063fca513a81461039657600080fd5b8063bcaead9814610322578063c5120b3914610335578063c513c9bb1461034857600080fd5b80638da5cb5b116100d35780638da5cb5b146102e15780639068a868146102ff578063addc1a7614610307578063affd92431461031a57600080fd5b806377532ed9146102b35780637b6757ff146102bb57806386e09c08146102ce57600080fd5b80634c252f911161016657806354fd4d501161014057806354fd4d5014610253578063699f200f14610262578063715018a61461029857806376aad605146102a057600080fd5b80634c252f91146102305780634e71e0c814610238578063530e784f1461024057600080fd5b806321da58371161019757806321da58371461020d57806326c74fc31461022057806344b885631461022857600080fd5b8063060678c2146101be57806308737695146101f05780631ed65110146101f8575b600080fd5b6101c661039e565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101c66103ce565b61020b610206366004610b54565b6103f9565b005b61020b61021b366004610b54565b61042e565b6101c6610460565b6101c661048b565b6101c66104b6565b61020b6104e1565b61020b61024e366004610b54565b6105d9565b604051600281526020016101e7565b6101c6610270366004610b91565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61020b61060b565b61020b6102ae366004610b54565b61061f565b6101c6610651565b61020b6102c9366004610b54565b61067c565b61020b6102dc366004610b54565b6106ae565b60005473ffffffffffffffffffffffffffffffffffffffff166101c6565b6101c66106e0565b61020b610315366004610b54565b61070b565b6101c661073d565b61020b610330366004610b54565b610768565b61020b610343366004610b54565b61079a565b6101c66107cc565b61020b61035e366004610b54565b6107f7565b6001546101c69073ffffffffffffffffffffffffffffffffffffffff1681565b61020b610391366004610b54565b610829565b6101c661091b565b60006103c97f444154415f434f4d50524553534f520000000000000000000000000000000000610942565b905090565b60006103c97f41434c0000000000000000000000000000000000000000000000000000000000610942565b6104016109e0565b61042b7f54524541535552595f434f4e545241435400000000000000000000000000000082610a61565b50565b6104366109e0565b61042b7f574554485f47415445574159000000000000000000000000000000000000000082610a61565b60006103c97f54524541535552595f434f4e5452414354000000000000000000000000000000610942565b60006103c97f4c45564552414745445f414354494f4e53000000000000000000000000000000610942565b60006103c97f574554485f544f4b454e00000000000000000000000000000000000000000000610942565b60015473ffffffffffffffffffffffffffffffffffffffff16331461058d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f436c61696d61626c653a2053656e646572206973206e6f742070656e64696e6760448201527f206f776e6572000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6001546105af9073ffffffffffffffffffffffffffffffffffffffff16610adf565b600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6105e16109e0565b61042b7f50524943455f4f5241434c45000000000000000000000000000000000000000082610a61565b6106136109e0565b61061d6000610adf565b565b6106276109e0565b61042b7f41434c000000000000000000000000000000000000000000000000000000000082610a61565b60006103c97f574554485f474154455741590000000000000000000000000000000000000000610942565b6106846109e0565b61042b7f4c45564552414745445f414354494f4e5300000000000000000000000000000082610a61565b6106b66109e0565b61042b7f574554485f544f4b454e0000000000000000000000000000000000000000000082610a61565b60006103c97f4143434f554e545f464143544f52590000000000000000000000000000000000610942565b6107136109e0565b61042b7f4143434f554e545f464143544f5259000000000000000000000000000000000082610a61565b60006103c97f474541525f544f4b454e00000000000000000000000000000000000000000000610942565b6107706109e0565b61042b7f474541525f544f4b454e0000000000000000000000000000000000000000000082610a61565b6107a26109e0565b61042b7f444154415f434f4d50524553534f52000000000000000000000000000000000082610a61565b60006103c97f434f4e5452414354535f52454749535445520000000000000000000000000000610942565b6107ff6109e0565b61042b7f434f4e5452414354535f5245474953544552000000000000000000000000000082610a61565b6108316109e0565b73ffffffffffffffffffffffffffffffffffffffff81166108d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f436c61696d61626c653a206e6577206f776e657220697320746865207a65726f60448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610584565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60006103c97f50524943455f4f5241434c4500000000000000000000000000000000000000005b6000818152600260209081526040808320548151808301909252600382527f41503100000000000000000000000000000000000000000000000000000000009282019290925273ffffffffffffffffffffffffffffffffffffffff90911690816109d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105849190610baa565b5092915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461061d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610584565b60008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85169081179091559051909184917fb37614c7d254ea8d16eb81fa11dddaeb266aa8ba4917980859c7740aff30c6919190a35050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610b6657600080fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610b8a57600080fd5b9392505050565b600060208284031215610ba357600080fd5b5035919050565b600060208083528351808285015260005b81811015610bd757858101830151858201604001528201610bbb565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea264697066735822122050e5bd0955b746fdbe42b0e6f3ba8a4adbddba34b84470550d4b571a677e5f1264736f6c63430008110033";
17
17
  static readonly abi: readonly [{
18
+ readonly type: "constructor";
18
19
  readonly inputs: readonly [];
19
20
  readonly stateMutability: "nonpayable";
20
- readonly type: "constructor";
21
- }, {
22
- readonly anonymous: false;
23
- readonly inputs: readonly [{
24
- readonly indexed: true;
25
- readonly internalType: "bytes32";
26
- readonly name: "service";
27
- readonly type: "bytes32";
28
- }, {
29
- readonly indexed: true;
30
- readonly internalType: "address";
31
- readonly name: "newAddress";
32
- readonly type: "address";
33
- }];
34
- readonly name: "AddressSet";
35
- readonly type: "event";
36
- }, {
37
- readonly anonymous: false;
38
- readonly inputs: readonly [{
39
- readonly indexed: true;
40
- readonly internalType: "address";
41
- readonly name: "previousOwner";
42
- readonly type: "address";
43
- }, {
44
- readonly indexed: true;
45
- readonly internalType: "address";
46
- readonly name: "newOwner";
47
- readonly type: "address";
48
- }];
49
- readonly name: "OwnershipTransferred";
50
- readonly type: "event";
51
21
  }, {
22
+ readonly type: "function";
23
+ readonly name: "addresses";
52
24
  readonly inputs: readonly [{
53
- readonly internalType: "bytes32";
54
25
  readonly name: "";
55
26
  readonly type: "bytes32";
27
+ readonly internalType: "bytes32";
56
28
  }];
57
- readonly name: "addresses";
58
29
  readonly outputs: readonly [{
59
- readonly internalType: "address";
60
30
  readonly name: "";
61
31
  readonly type: "address";
32
+ readonly internalType: "address";
62
33
  }];
63
34
  readonly stateMutability: "view";
64
- readonly type: "function";
65
35
  }, {
66
- readonly inputs: readonly [];
36
+ readonly type: "function";
67
37
  readonly name: "claimOwnership";
38
+ readonly inputs: readonly [];
68
39
  readonly outputs: readonly [];
69
40
  readonly stateMutability: "nonpayable";
70
- readonly type: "function";
71
41
  }, {
72
- readonly inputs: readonly [];
42
+ readonly type: "function";
73
43
  readonly name: "getACL";
44
+ readonly inputs: readonly [];
74
45
  readonly outputs: readonly [{
75
- readonly internalType: "address";
76
46
  readonly name: "";
77
47
  readonly type: "address";
48
+ readonly internalType: "address";
78
49
  }];
79
50
  readonly stateMutability: "view";
80
- readonly type: "function";
81
51
  }, {
82
- readonly inputs: readonly [];
52
+ readonly type: "function";
83
53
  readonly name: "getAccountFactory";
54
+ readonly inputs: readonly [];
84
55
  readonly outputs: readonly [{
85
- readonly internalType: "address";
86
56
  readonly name: "";
87
57
  readonly type: "address";
58
+ readonly internalType: "address";
88
59
  }];
89
60
  readonly stateMutability: "view";
90
- readonly type: "function";
91
61
  }, {
92
- readonly inputs: readonly [];
62
+ readonly type: "function";
93
63
  readonly name: "getContractsRegister";
64
+ readonly inputs: readonly [];
94
65
  readonly outputs: readonly [{
95
- readonly internalType: "address";
96
66
  readonly name: "";
97
67
  readonly type: "address";
68
+ readonly internalType: "address";
98
69
  }];
99
70
  readonly stateMutability: "view";
100
- readonly type: "function";
101
71
  }, {
102
- readonly inputs: readonly [];
72
+ readonly type: "function";
103
73
  readonly name: "getDataCompressor";
74
+ readonly inputs: readonly [];
104
75
  readonly outputs: readonly [{
105
- readonly internalType: "address";
106
76
  readonly name: "";
107
77
  readonly type: "address";
78
+ readonly internalType: "address";
108
79
  }];
109
80
  readonly stateMutability: "view";
110
- readonly type: "function";
111
81
  }, {
112
- readonly inputs: readonly [];
82
+ readonly type: "function";
113
83
  readonly name: "getGearToken";
84
+ readonly inputs: readonly [];
114
85
  readonly outputs: readonly [{
115
- readonly internalType: "address";
116
86
  readonly name: "";
117
87
  readonly type: "address";
88
+ readonly internalType: "address";
118
89
  }];
119
90
  readonly stateMutability: "view";
120
- readonly type: "function";
121
91
  }, {
122
- readonly inputs: readonly [];
92
+ readonly type: "function";
123
93
  readonly name: "getLeveragedActions";
94
+ readonly inputs: readonly [];
124
95
  readonly outputs: readonly [{
125
- readonly internalType: "address";
126
96
  readonly name: "";
127
97
  readonly type: "address";
98
+ readonly internalType: "address";
128
99
  }];
129
100
  readonly stateMutability: "view";
130
- readonly type: "function";
131
101
  }, {
132
- readonly inputs: readonly [];
102
+ readonly type: "function";
133
103
  readonly name: "getPriceOracle";
104
+ readonly inputs: readonly [];
134
105
  readonly outputs: readonly [{
135
- readonly internalType: "address";
136
106
  readonly name: "";
137
107
  readonly type: "address";
108
+ readonly internalType: "address";
138
109
  }];
139
110
  readonly stateMutability: "view";
140
- readonly type: "function";
141
111
  }, {
142
- readonly inputs: readonly [];
112
+ readonly type: "function";
143
113
  readonly name: "getTreasuryContract";
114
+ readonly inputs: readonly [];
144
115
  readonly outputs: readonly [{
145
- readonly internalType: "address";
146
116
  readonly name: "";
147
117
  readonly type: "address";
118
+ readonly internalType: "address";
148
119
  }];
149
120
  readonly stateMutability: "view";
150
- readonly type: "function";
151
121
  }, {
152
- readonly inputs: readonly [];
122
+ readonly type: "function";
153
123
  readonly name: "getWETHGateway";
124
+ readonly inputs: readonly [];
154
125
  readonly outputs: readonly [{
155
- readonly internalType: "address";
156
126
  readonly name: "";
157
127
  readonly type: "address";
128
+ readonly internalType: "address";
158
129
  }];
159
130
  readonly stateMutability: "view";
160
- readonly type: "function";
161
131
  }, {
162
- readonly inputs: readonly [];
132
+ readonly type: "function";
163
133
  readonly name: "getWethToken";
134
+ readonly inputs: readonly [];
164
135
  readonly outputs: readonly [{
165
- readonly internalType: "address";
166
136
  readonly name: "";
167
137
  readonly type: "address";
138
+ readonly internalType: "address";
168
139
  }];
169
140
  readonly stateMutability: "view";
170
- readonly type: "function";
171
141
  }, {
172
- readonly inputs: readonly [];
142
+ readonly type: "function";
173
143
  readonly name: "owner";
144
+ readonly inputs: readonly [];
174
145
  readonly outputs: readonly [{
175
- readonly internalType: "address";
176
146
  readonly name: "";
177
147
  readonly type: "address";
148
+ readonly internalType: "address";
178
149
  }];
179
150
  readonly stateMutability: "view";
180
- readonly type: "function";
181
151
  }, {
182
- readonly inputs: readonly [];
152
+ readonly type: "function";
183
153
  readonly name: "pendingOwner";
154
+ readonly inputs: readonly [];
184
155
  readonly outputs: readonly [{
185
- readonly internalType: "address";
186
156
  readonly name: "";
187
157
  readonly type: "address";
158
+ readonly internalType: "address";
188
159
  }];
189
160
  readonly stateMutability: "view";
190
- readonly type: "function";
191
161
  }, {
192
- readonly inputs: readonly [];
162
+ readonly type: "function";
193
163
  readonly name: "renounceOwnership";
164
+ readonly inputs: readonly [];
194
165
  readonly outputs: readonly [];
195
166
  readonly stateMutability: "nonpayable";
196
- readonly type: "function";
197
167
  }, {
168
+ readonly type: "function";
169
+ readonly name: "setACL";
198
170
  readonly inputs: readonly [{
199
- readonly internalType: "address";
200
171
  readonly name: "_address";
201
172
  readonly type: "address";
173
+ readonly internalType: "address";
202
174
  }];
203
- readonly name: "setACL";
204
175
  readonly outputs: readonly [];
205
176
  readonly stateMutability: "nonpayable";
206
- readonly type: "function";
207
177
  }, {
178
+ readonly type: "function";
179
+ readonly name: "setAccountFactory";
208
180
  readonly inputs: readonly [{
209
- readonly internalType: "address";
210
181
  readonly name: "_address";
211
182
  readonly type: "address";
183
+ readonly internalType: "address";
212
184
  }];
213
- readonly name: "setAccountFactory";
214
185
  readonly outputs: readonly [];
215
186
  readonly stateMutability: "nonpayable";
216
- readonly type: "function";
217
187
  }, {
188
+ readonly type: "function";
189
+ readonly name: "setContractsRegister";
218
190
  readonly inputs: readonly [{
219
- readonly internalType: "address";
220
191
  readonly name: "_address";
221
192
  readonly type: "address";
193
+ readonly internalType: "address";
222
194
  }];
223
- readonly name: "setContractsRegister";
224
195
  readonly outputs: readonly [];
225
196
  readonly stateMutability: "nonpayable";
226
- readonly type: "function";
227
197
  }, {
198
+ readonly type: "function";
199
+ readonly name: "setDataCompressor";
228
200
  readonly inputs: readonly [{
229
- readonly internalType: "address";
230
201
  readonly name: "_address";
231
202
  readonly type: "address";
203
+ readonly internalType: "address";
232
204
  }];
233
- readonly name: "setDataCompressor";
234
205
  readonly outputs: readonly [];
235
206
  readonly stateMutability: "nonpayable";
236
- readonly type: "function";
237
207
  }, {
208
+ readonly type: "function";
209
+ readonly name: "setGearToken";
238
210
  readonly inputs: readonly [{
239
- readonly internalType: "address";
240
211
  readonly name: "_address";
241
212
  readonly type: "address";
213
+ readonly internalType: "address";
242
214
  }];
243
- readonly name: "setGearToken";
244
215
  readonly outputs: readonly [];
245
216
  readonly stateMutability: "nonpayable";
246
- readonly type: "function";
247
217
  }, {
218
+ readonly type: "function";
219
+ readonly name: "setLeveragedActions";
248
220
  readonly inputs: readonly [{
249
- readonly internalType: "address";
250
221
  readonly name: "_address";
251
222
  readonly type: "address";
223
+ readonly internalType: "address";
252
224
  }];
253
- readonly name: "setLeveragedActions";
254
225
  readonly outputs: readonly [];
255
226
  readonly stateMutability: "nonpayable";
256
- readonly type: "function";
257
227
  }, {
228
+ readonly type: "function";
229
+ readonly name: "setPriceOracle";
258
230
  readonly inputs: readonly [{
259
- readonly internalType: "address";
260
231
  readonly name: "_address";
261
232
  readonly type: "address";
233
+ readonly internalType: "address";
262
234
  }];
263
- readonly name: "setPriceOracle";
264
235
  readonly outputs: readonly [];
265
236
  readonly stateMutability: "nonpayable";
266
- readonly type: "function";
267
237
  }, {
238
+ readonly type: "function";
239
+ readonly name: "setTreasuryContract";
268
240
  readonly inputs: readonly [{
269
- readonly internalType: "address";
270
241
  readonly name: "_address";
271
242
  readonly type: "address";
243
+ readonly internalType: "address";
272
244
  }];
273
- readonly name: "setTreasuryContract";
274
245
  readonly outputs: readonly [];
275
246
  readonly stateMutability: "nonpayable";
276
- readonly type: "function";
277
247
  }, {
248
+ readonly type: "function";
249
+ readonly name: "setWETHGateway";
278
250
  readonly inputs: readonly [{
279
- readonly internalType: "address";
280
251
  readonly name: "_address";
281
252
  readonly type: "address";
253
+ readonly internalType: "address";
282
254
  }];
283
- readonly name: "setWETHGateway";
284
255
  readonly outputs: readonly [];
285
256
  readonly stateMutability: "nonpayable";
286
- readonly type: "function";
287
257
  }, {
258
+ readonly type: "function";
259
+ readonly name: "setWethToken";
288
260
  readonly inputs: readonly [{
289
- readonly internalType: "address";
290
261
  readonly name: "_address";
291
262
  readonly type: "address";
263
+ readonly internalType: "address";
292
264
  }];
293
- readonly name: "setWethToken";
294
265
  readonly outputs: readonly [];
295
266
  readonly stateMutability: "nonpayable";
296
- readonly type: "function";
297
267
  }, {
268
+ readonly type: "function";
269
+ readonly name: "transferOwnership";
298
270
  readonly inputs: readonly [{
299
- readonly internalType: "address";
300
271
  readonly name: "newOwner";
301
272
  readonly type: "address";
273
+ readonly internalType: "address";
302
274
  }];
303
- readonly name: "transferOwnership";
304
275
  readonly outputs: readonly [];
305
276
  readonly stateMutability: "nonpayable";
306
- readonly type: "function";
307
277
  }, {
308
- readonly inputs: readonly [];
278
+ readonly type: "function";
309
279
  readonly name: "version";
280
+ readonly inputs: readonly [];
310
281
  readonly outputs: readonly [{
311
- readonly internalType: "uint256";
312
282
  readonly name: "";
313
283
  readonly type: "uint256";
284
+ readonly internalType: "uint256";
314
285
  }];
315
286
  readonly stateMutability: "view";
316
- readonly type: "function";
287
+ }, {
288
+ readonly type: "event";
289
+ readonly name: "AddressSet";
290
+ readonly inputs: readonly [{
291
+ readonly name: "service";
292
+ readonly type: "bytes32";
293
+ readonly indexed: true;
294
+ readonly internalType: "bytes32";
295
+ }, {
296
+ readonly name: "newAddress";
297
+ readonly type: "address";
298
+ readonly indexed: true;
299
+ readonly internalType: "address";
300
+ }];
301
+ readonly anonymous: false;
302
+ }, {
303
+ readonly type: "event";
304
+ readonly name: "OwnershipTransferred";
305
+ readonly inputs: readonly [{
306
+ readonly name: "previousOwner";
307
+ readonly type: "address";
308
+ readonly indexed: true;
309
+ readonly internalType: "address";
310
+ }, {
311
+ readonly name: "newOwner";
312
+ readonly type: "address";
313
+ readonly indexed: true;
314
+ readonly internalType: "address";
315
+ }];
316
+ readonly anonymous: false;
317
317
  }];
318
318
  static createInterface(): AddressProviderInterface;
319
319
  static connect(address: string, signerOrProvider: Signer | Provider): AddressProvider;