@venusprotocol/protocol-reserve 1.5.0-dev.1 → 1.5.0-dev.3

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 (372) hide show
  1. package/dist/typechain/factories/AbstractTokenConverter__factory.d.ts +68 -0
  2. package/dist/typechain/factories/AbstractTokenConverter__factory.d.ts.map +1 -0
  3. package/dist/typechain/factories/AbstractTokenConverter__factory.js +1282 -0
  4. package/dist/typechain/factories/AbstractTokenConverter__factory.js.map +1 -0
  5. package/dist/typechain/factories/AccessControl__factory.d.ts +36 -0
  6. package/dist/typechain/factories/AccessControl__factory.d.ts.map +1 -0
  7. package/dist/typechain/factories/AccessControl__factory.js +221 -0
  8. package/dist/typechain/factories/AccessControl__factory.js.map +1 -0
  9. package/dist/typechain/factories/AccessControlledV8__factory.d.ts +54 -0
  10. package/dist/typechain/factories/AccessControlledV8__factory.d.ts.map +1 -0
  11. package/dist/typechain/factories/AccessControlledV8__factory.js +187 -0
  12. package/dist/typechain/factories/AccessControlledV8__factory.js.map +1 -0
  13. package/dist/typechain/factories/BeaconProxy__factory.d.ts +46 -0
  14. package/dist/typechain/factories/BeaconProxy__factory.d.ts.map +1 -0
  15. package/dist/typechain/factories/BeaconProxy__factory.js +108 -0
  16. package/dist/typechain/factories/BeaconProxy__factory.js.map +1 -0
  17. package/dist/typechain/factories/BoundValidatorInterface__factory.d.ts +23 -0
  18. package/dist/typechain/factories/BoundValidatorInterface__factory.d.ts.map +1 -0
  19. package/dist/typechain/factories/BoundValidatorInterface__factory.js +46 -0
  20. package/dist/typechain/factories/BoundValidatorInterface__factory.js.map +1 -0
  21. package/dist/typechain/factories/ContextUpgradeable__factory.d.ts +19 -0
  22. package/dist/typechain/factories/ContextUpgradeable__factory.d.ts.map +1 -0
  23. package/dist/typechain/factories/ContextUpgradeable__factory.js +30 -0
  24. package/dist/typechain/factories/ContextUpgradeable__factory.js.map +1 -0
  25. package/dist/typechain/factories/ConverterNetwork__factory.d.ts +64 -0
  26. package/dist/typechain/factories/ConverterNetwork__factory.d.ts.map +1 -0
  27. package/dist/typechain/factories/ConverterNetwork__factory.js +485 -0
  28. package/dist/typechain/factories/ConverterNetwork__factory.js.map +1 -0
  29. package/dist/typechain/factories/ERC165__factory.d.ts +23 -0
  30. package/dist/typechain/factories/ERC165__factory.d.ts.map +1 -0
  31. package/dist/typechain/factories/ERC165__factory.js +36 -0
  32. package/dist/typechain/factories/ERC165__factory.js.map +1 -0
  33. package/dist/typechain/factories/ERC1967Upgrade__factory.d.ts +19 -0
  34. package/dist/typechain/factories/ERC1967Upgrade__factory.d.ts.map +1 -0
  35. package/dist/typechain/factories/ERC1967Upgrade__factory.js +62 -0
  36. package/dist/typechain/factories/ERC1967Upgrade__factory.js.map +1 -0
  37. package/dist/typechain/factories/ERC20__factory.d.ts +57 -0
  38. package/dist/typechain/factories/ERC20__factory.d.ts.map +1 -0
  39. package/dist/typechain/factories/ERC20__factory.js +325 -0
  40. package/dist/typechain/factories/ERC20__factory.js.map +1 -0
  41. package/dist/typechain/factories/IAbstractTokenConverter__factory.d.ts +43 -0
  42. package/dist/typechain/factories/IAbstractTokenConverter__factory.d.ts.map +1 -0
  43. package/dist/typechain/factories/IAbstractTokenConverter__factory.js +452 -0
  44. package/dist/typechain/factories/IAbstractTokenConverter__factory.js.map +1 -0
  45. package/dist/typechain/factories/IAccessControlManagerV8__factory.d.ts +36 -0
  46. package/dist/typechain/factories/IAccessControlManagerV8__factory.d.ts.map +1 -0
  47. package/dist/typechain/factories/IAccessControlManagerV8__factory.js +288 -0
  48. package/dist/typechain/factories/IAccessControlManagerV8__factory.js.map +1 -0
  49. package/dist/typechain/factories/IAccessControl__factory.d.ts +36 -0
  50. package/dist/typechain/factories/IAccessControl__factory.d.ts.map +1 -0
  51. package/dist/typechain/factories/IAccessControl__factory.js +189 -0
  52. package/dist/typechain/factories/IAccessControl__factory.js.map +1 -0
  53. package/dist/typechain/factories/IBeacon__factory.d.ts +19 -0
  54. package/dist/typechain/factories/IBeacon__factory.d.ts.map +1 -0
  55. package/dist/typechain/factories/IBeacon__factory.js +30 -0
  56. package/dist/typechain/factories/IBeacon__factory.js.map +1 -0
  57. package/dist/typechain/factories/IComptroller__factory.d.ts +23 -0
  58. package/dist/typechain/factories/IComptroller__factory.d.ts.map +1 -0
  59. package/dist/typechain/factories/IComptroller__factory.js +62 -0
  60. package/dist/typechain/factories/IComptroller__factory.js.map +1 -0
  61. package/dist/typechain/factories/IConverterNetwork__factory.d.ts +23 -0
  62. package/dist/typechain/factories/IConverterNetwork__factory.d.ts.map +1 -0
  63. package/dist/typechain/factories/IConverterNetwork__factory.js +133 -0
  64. package/dist/typechain/factories/IConverterNetwork__factory.js.map +1 -0
  65. package/dist/typechain/factories/IERC165__factory.d.ts +23 -0
  66. package/dist/typechain/factories/IERC165__factory.d.ts.map +1 -0
  67. package/dist/typechain/factories/IERC165__factory.js +36 -0
  68. package/dist/typechain/factories/IERC165__factory.js.map +1 -0
  69. package/dist/typechain/factories/IERC1822Proxiable__factory.d.ts +19 -0
  70. package/dist/typechain/factories/IERC1822Proxiable__factory.d.ts.map +1 -0
  71. package/dist/typechain/factories/IERC1822Proxiable__factory.js +30 -0
  72. package/dist/typechain/factories/IERC1822Proxiable__factory.js.map +1 -0
  73. package/dist/typechain/factories/IERC1967__factory.d.ts +19 -0
  74. package/dist/typechain/factories/IERC1967__factory.d.ts.map +1 -0
  75. package/dist/typechain/factories/IERC1967__factory.js +62 -0
  76. package/dist/typechain/factories/IERC1967__factory.js.map +1 -0
  77. package/dist/typechain/factories/IERC20Metadata__factory.d.ts +36 -0
  78. package/dist/typechain/factories/IERC20Metadata__factory.d.ts.map +1 -0
  79. package/dist/typechain/factories/IERC20Metadata__factory.js +239 -0
  80. package/dist/typechain/factories/IERC20Metadata__factory.js.map +1 -0
  81. package/dist/typechain/factories/IERC20PermitUpgradeable__factory.d.ts +23 -0
  82. package/dist/typechain/factories/IERC20PermitUpgradeable__factory.d.ts.map +1 -0
  83. package/dist/typechain/factories/IERC20PermitUpgradeable__factory.js +92 -0
  84. package/dist/typechain/factories/IERC20PermitUpgradeable__factory.js.map +1 -0
  85. package/dist/typechain/factories/IERC20Upgradeable__factory.d.ts +36 -0
  86. package/dist/typechain/factories/IERC20Upgradeable__factory.d.ts.map +1 -0
  87. package/dist/typechain/factories/IERC20Upgradeable__factory.js +200 -0
  88. package/dist/typechain/factories/IERC20Upgradeable__factory.js.map +1 -0
  89. package/dist/typechain/factories/IERC20__factory.d.ts +36 -0
  90. package/dist/typechain/factories/IERC20__factory.d.ts.map +1 -0
  91. package/dist/typechain/factories/IERC20__factory.js +200 -0
  92. package/dist/typechain/factories/IERC20__factory.js.map +1 -0
  93. package/dist/typechain/factories/IIncomeDestination__factory.d.ts +19 -0
  94. package/dist/typechain/factories/IIncomeDestination__factory.d.ts.map +1 -0
  95. package/dist/typechain/factories/IIncomeDestination__factory.js +35 -0
  96. package/dist/typechain/factories/IIncomeDestination__factory.js.map +1 -0
  97. package/dist/typechain/factories/IPoolRegistry__factory.d.ts +23 -0
  98. package/dist/typechain/factories/IPoolRegistry__factory.d.ts.map +1 -0
  99. package/dist/typechain/factories/IPoolRegistry__factory.js +60 -0
  100. package/dist/typechain/factories/IPoolRegistry__factory.js.map +1 -0
  101. package/dist/typechain/factories/IProtocolShareReserve__factory.d.ts +19 -0
  102. package/dist/typechain/factories/IProtocolShareReserve__factory.d.ts.map +1 -0
  103. package/dist/typechain/factories/IProtocolShareReserve__factory.js +40 -0
  104. package/dist/typechain/factories/IProtocolShareReserve__factory.js.map +1 -0
  105. package/dist/typechain/factories/IRiskFundConverter__factory.d.ts +23 -0
  106. package/dist/typechain/factories/IRiskFundConverter__factory.d.ts.map +1 -0
  107. package/dist/typechain/factories/IRiskFundConverter__factory.js +54 -0
  108. package/dist/typechain/factories/IRiskFundConverter__factory.js.map +1 -0
  109. package/dist/typechain/factories/IRiskFundGetters__factory.d.ts +19 -0
  110. package/dist/typechain/factories/IRiskFundGetters__factory.d.ts.map +1 -0
  111. package/dist/typechain/factories/IRiskFundGetters__factory.js +30 -0
  112. package/dist/typechain/factories/IRiskFundGetters__factory.js.map +1 -0
  113. package/dist/typechain/factories/IRiskFund__factory.d.ts +23 -0
  114. package/dist/typechain/factories/IRiskFund__factory.d.ts.map +1 -0
  115. package/dist/typechain/factories/IRiskFund__factory.js +83 -0
  116. package/dist/typechain/factories/IRiskFund__factory.js.map +1 -0
  117. package/dist/typechain/factories/IShortfall__factory.d.ts +19 -0
  118. package/dist/typechain/factories/IShortfall__factory.d.ts.map +1 -0
  119. package/dist/typechain/factories/IShortfall__factory.js +30 -0
  120. package/dist/typechain/factories/IShortfall__factory.js.map +1 -0
  121. package/dist/typechain/factories/IVToken__factory.d.ts +19 -0
  122. package/dist/typechain/factories/IVToken__factory.d.ts.map +1 -0
  123. package/dist/typechain/factories/IVToken__factory.js +30 -0
  124. package/dist/typechain/factories/IVToken__factory.js.map +1 -0
  125. package/dist/typechain/factories/IXVSVault__factory.d.ts +19 -0
  126. package/dist/typechain/factories/IXVSVault__factory.d.ts.map +1 -0
  127. package/dist/typechain/factories/IXVSVault__factory.js +30 -0
  128. package/dist/typechain/factories/IXVSVault__factory.js.map +1 -0
  129. package/dist/typechain/factories/Initializable__factory.d.ts +19 -0
  130. package/dist/typechain/factories/Initializable__factory.d.ts.map +1 -0
  131. package/dist/typechain/factories/Initializable__factory.js +30 -0
  132. package/dist/typechain/factories/Initializable__factory.js.map +1 -0
  133. package/dist/typechain/factories/MaxLoopsLimitHelper__factory.d.ts +43 -0
  134. package/dist/typechain/factories/MaxLoopsLimitHelper__factory.d.ts.map +1 -0
  135. package/dist/typechain/factories/MaxLoopsLimitHelper__factory.js +65 -0
  136. package/dist/typechain/factories/MaxLoopsLimitHelper__factory.js.map +1 -0
  137. package/dist/typechain/factories/MaxLoopsLimitHelpersStorage__factory.d.ts +29 -0
  138. package/dist/typechain/factories/MaxLoopsLimitHelpersStorage__factory.d.ts.map +1 -0
  139. package/dist/typechain/factories/MaxLoopsLimitHelpersStorage__factory.js +52 -0
  140. package/dist/typechain/factories/MaxLoopsLimitHelpersStorage__factory.js.map +1 -0
  141. package/dist/typechain/factories/MockACM__factory.d.ts +53 -0
  142. package/dist/typechain/factories/MockACM__factory.d.ts.map +1 -0
  143. package/dist/typechain/factories/MockACM__factory.js +397 -0
  144. package/dist/typechain/factories/MockACM__factory.js.map +1 -0
  145. package/dist/typechain/factories/MockArraySorter__factory.d.ts +33 -0
  146. package/dist/typechain/factories/MockArraySorter__factory.d.ts.map +1 -0
  147. package/dist/typechain/factories/MockArraySorter__factory.js +68 -0
  148. package/dist/typechain/factories/MockArraySorter__factory.js.map +1 -0
  149. package/dist/typechain/factories/MockConverter__factory.d.ts +78 -0
  150. package/dist/typechain/factories/MockConverter__factory.d.ts.map +1 -0
  151. package/dist/typechain/factories/MockConverter__factory.js +1423 -0
  152. package/dist/typechain/factories/MockConverter__factory.js.map +1 -0
  153. package/dist/typechain/factories/MockDeflatingToken__factory.d.ts +57 -0
  154. package/dist/typechain/factories/MockDeflatingToken__factory.d.ts.map +1 -0
  155. package/dist/typechain/factories/MockDeflatingToken__factory.js +360 -0
  156. package/dist/typechain/factories/MockDeflatingToken__factory.js.map +1 -0
  157. package/dist/typechain/factories/MockRiskFundConverter__factory.d.ts +89 -0
  158. package/dist/typechain/factories/MockRiskFundConverter__factory.d.ts.map +1 -0
  159. package/dist/typechain/factories/MockRiskFundConverter__factory.js +1789 -0
  160. package/dist/typechain/factories/MockRiskFundConverter__factory.js.map +1 -0
  161. package/dist/typechain/factories/MockToken__factory.d.ts +57 -0
  162. package/dist/typechain/factories/MockToken__factory.d.ts.map +1 -0
  163. package/dist/typechain/factories/MockToken__factory.js +361 -0
  164. package/dist/typechain/factories/MockToken__factory.js.map +1 -0
  165. package/dist/typechain/factories/OracleInterface__factory.d.ts +23 -0
  166. package/dist/typechain/factories/OracleInterface__factory.d.ts.map +1 -0
  167. package/dist/typechain/factories/OracleInterface__factory.js +36 -0
  168. package/dist/typechain/factories/OracleInterface__factory.js.map +1 -0
  169. package/dist/typechain/factories/Ownable2StepUpgradeable__factory.d.ts +43 -0
  170. package/dist/typechain/factories/Ownable2StepUpgradeable__factory.d.ts.map +1 -0
  171. package/dist/typechain/factories/Ownable2StepUpgradeable__factory.js +121 -0
  172. package/dist/typechain/factories/Ownable2StepUpgradeable__factory.js.map +1 -0
  173. package/dist/typechain/factories/OwnableUpgradeable__factory.d.ts +43 -0
  174. package/dist/typechain/factories/OwnableUpgradeable__factory.d.ts.map +1 -0
  175. package/dist/typechain/factories/OwnableUpgradeable__factory.js +82 -0
  176. package/dist/typechain/factories/OwnableUpgradeable__factory.js.map +1 -0
  177. package/dist/typechain/factories/Ownable__factory.d.ts +43 -0
  178. package/dist/typechain/factories/Ownable__factory.d.ts.map +1 -0
  179. package/dist/typechain/factories/Ownable__factory.js +69 -0
  180. package/dist/typechain/factories/Ownable__factory.js.map +1 -0
  181. package/dist/typechain/factories/PausableUpgradeable__factory.d.ts +32 -0
  182. package/dist/typechain/factories/PausableUpgradeable__factory.d.ts.map +1 -0
  183. package/dist/typechain/factories/PausableUpgradeable__factory.js +69 -0
  184. package/dist/typechain/factories/PausableUpgradeable__factory.js.map +1 -0
  185. package/dist/typechain/factories/ProtocolShareReserve__factory.d.ts +84 -0
  186. package/dist/typechain/factories/ProtocolShareReserve__factory.d.ts.map +1 -0
  187. package/dist/typechain/factories/ProtocolShareReserve__factory.js +837 -0
  188. package/dist/typechain/factories/ProtocolShareReserve__factory.js.map +1 -0
  189. package/dist/typechain/factories/Proxy__factory.d.ts +12 -0
  190. package/dist/typechain/factories/Proxy__factory.d.ts.map +1 -0
  191. package/dist/typechain/factories/Proxy__factory.js +25 -0
  192. package/dist/typechain/factories/Proxy__factory.js.map +1 -0
  193. package/dist/typechain/factories/ReentrancyGuardUpgradeable__factory.d.ts +19 -0
  194. package/dist/typechain/factories/ReentrancyGuardUpgradeable__factory.d.ts.map +1 -0
  195. package/dist/typechain/factories/ReentrancyGuardUpgradeable__factory.js +30 -0
  196. package/dist/typechain/factories/ReentrancyGuardUpgradeable__factory.js.map +1 -0
  197. package/dist/typechain/factories/ReserveHelpersStorage__factory.d.ts +46 -0
  198. package/dist/typechain/factories/ReserveHelpersStorage__factory.d.ts.map +1 -0
  199. package/dist/typechain/factories/ReserveHelpersStorage__factory.js +167 -0
  200. package/dist/typechain/factories/ReserveHelpersStorage__factory.js.map +1 -0
  201. package/dist/typechain/factories/ResilientOracleInterface__factory.d.ts +23 -0
  202. package/dist/typechain/factories/ResilientOracleInterface__factory.d.ts.map +1 -0
  203. package/dist/typechain/factories/ResilientOracleInterface__factory.js +81 -0
  204. package/dist/typechain/factories/ResilientOracleInterface__factory.js.map +1 -0
  205. package/dist/typechain/factories/ResilientOracle__factory.d.ts +104 -0
  206. package/dist/typechain/factories/ResilientOracle__factory.d.ts.map +1 -0
  207. package/dist/typechain/factories/ResilientOracle__factory.js +677 -0
  208. package/dist/typechain/factories/ResilientOracle__factory.js.map +1 -0
  209. package/dist/typechain/factories/RiskFundConverter__factory.d.ts +89 -0
  210. package/dist/typechain/factories/RiskFundConverter__factory.d.ts.map +1 -0
  211. package/dist/typechain/factories/RiskFundConverter__factory.js +1659 -0
  212. package/dist/typechain/factories/RiskFundConverter__factory.js.map +1 -0
  213. package/dist/typechain/factories/RiskFundV1Storage__factory.d.ts +46 -0
  214. package/dist/typechain/factories/RiskFundV1Storage__factory.d.ts.map +1 -0
  215. package/dist/typechain/factories/RiskFundV1Storage__factory.js +206 -0
  216. package/dist/typechain/factories/RiskFundV1Storage__factory.js.map +1 -0
  217. package/dist/typechain/factories/RiskFundV2Storage__factory.d.ts +46 -0
  218. package/dist/typechain/factories/RiskFundV2Storage__factory.d.ts.map +1 -0
  219. package/dist/typechain/factories/RiskFundV2Storage__factory.js +219 -0
  220. package/dist/typechain/factories/RiskFundV2Storage__factory.js.map +1 -0
  221. package/dist/typechain/factories/RiskFundV2__factory.d.ts +57 -0
  222. package/dist/typechain/factories/RiskFundV2__factory.d.ts.map +1 -0
  223. package/dist/typechain/factories/RiskFundV2__factory.js +658 -0
  224. package/dist/typechain/factories/RiskFundV2__factory.js.map +1 -0
  225. package/dist/typechain/factories/SingleTokenConverter__factory.d.ts +85 -0
  226. package/dist/typechain/factories/SingleTokenConverter__factory.d.ts.map +1 -0
  227. package/dist/typechain/factories/SingleTokenConverter__factory.js +1418 -0
  228. package/dist/typechain/factories/SingleTokenConverter__factory.js.map +1 -0
  229. package/dist/typechain/factories/TwapInterface__factory.d.ts +23 -0
  230. package/dist/typechain/factories/TwapInterface__factory.d.ts.map +1 -0
  231. package/dist/typechain/factories/TwapInterface__factory.js +55 -0
  232. package/dist/typechain/factories/TwapInterface__factory.js.map +1 -0
  233. package/dist/typechain/factories/UpgradeableBeacon__factory.d.ts +64 -0
  234. package/dist/typechain/factories/UpgradeableBeacon__factory.d.ts.map +1 -0
  235. package/dist/typechain/factories/UpgradeableBeacon__factory.js +141 -0
  236. package/dist/typechain/factories/UpgradeableBeacon__factory.js.map +1 -0
  237. package/dist/typechain/factories/VBep20Interface__factory.d.ts +36 -0
  238. package/dist/typechain/factories/VBep20Interface__factory.d.ts.map +1 -0
  239. package/dist/typechain/factories/VBep20Interface__factory.js +252 -0
  240. package/dist/typechain/factories/VBep20Interface__factory.js.map +1 -0
  241. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts +75 -0
  242. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts.map +1 -0
  243. package/dist/typechain/factories/XVSVaultTreasury__factory.js +343 -0
  244. package/dist/typechain/factories/XVSVaultTreasury__factory.js.map +1 -0
  245. package/{typechain/index.ts → dist/typechain/index.d.ts} +1 -4
  246. package/dist/typechain/index.d.ts.map +1 -0
  247. package/dist/typechain/index.js +127 -0
  248. package/dist/typechain/index.js.map +1 -0
  249. package/package.json +3 -5
  250. package/typechain/AbstractTokenConverter.d.ts +0 -1775
  251. package/typechain/AccessControl.d.ts +0 -388
  252. package/typechain/AccessControlledV8.d.ts +0 -341
  253. package/typechain/BeaconProxy.d.ts +0 -126
  254. package/typechain/BoundValidatorInterface.d.ts +0 -126
  255. package/typechain/ContextUpgradeable.d.ts +0 -92
  256. package/typechain/ConverterNetwork.d.ts +0 -723
  257. package/typechain/ERC165.d.ts +0 -116
  258. package/typechain/ERC1967Upgrade.d.ts +0 -126
  259. package/typechain/ERC20.d.ts +0 -441
  260. package/typechain/IAbstractTokenConverter.d.ts +0 -773
  261. package/typechain/IAccessControl.d.ts +0 -333
  262. package/typechain/IAccessControlManagerV8.d.ts +0 -504
  263. package/typechain/IBeacon.d.ts +0 -101
  264. package/typechain/IComptroller.d.ts +0 -136
  265. package/typechain/IConverterNetwork.d.ts +0 -292
  266. package/typechain/IERC165.d.ts +0 -116
  267. package/typechain/IERC1822Proxiable.d.ts +0 -101
  268. package/typechain/IERC1967.d.ts +0 -126
  269. package/typechain/IERC20.d.ts +0 -324
  270. package/typechain/IERC20Metadata.d.ts +0 -363
  271. package/typechain/IERC20PermitUpgradeable.d.ts +0 -187
  272. package/typechain/IERC20Upgradeable.d.ts +0 -324
  273. package/typechain/IIncomeDestination.d.ts +0 -122
  274. package/typechain/IPoolRegistry.d.ts +0 -155
  275. package/typechain/IProtocolShareReserve.d.ts +0 -127
  276. package/typechain/IRiskFund.d.ts +0 -200
  277. package/typechain/IRiskFundConverter.d.ts +0 -138
  278. package/typechain/IRiskFundGetters.d.ts +0 -103
  279. package/typechain/IShortfall.d.ts +0 -110
  280. package/typechain/IVToken.d.ts +0 -98
  281. package/typechain/IXVSVault.d.ts +0 -95
  282. package/typechain/Initializable.d.ts +0 -92
  283. package/typechain/MaxLoopsLimitHelper.d.ts +0 -128
  284. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +0 -101
  285. package/typechain/MockACM.d.ts +0 -615
  286. package/typechain/MockArraySorter.d.ts +0 -118
  287. package/typechain/MockConverter.d.ts +0 -1969
  288. package/typechain/MockDeflatingToken.d.ts +0 -486
  289. package/typechain/MockRiskFundConverter.d.ts +0 -2479
  290. package/typechain/MockToken.d.ts +0 -505
  291. package/typechain/OracleInterface.d.ts +0 -98
  292. package/typechain/Ownable.d.ts +0 -181
  293. package/typechain/Ownable2StepUpgradeable.d.ts +0 -261
  294. package/typechain/OwnableUpgradeable.d.ts +0 -193
  295. package/typechain/PausableUpgradeable.d.ts +0 -129
  296. package/typechain/ProtocolShareReserve.d.ts +0 -1214
  297. package/typechain/Proxy.d.ts +0 -78
  298. package/typechain/ReentrancyGuardUpgradeable.d.ts +0 -92
  299. package/typechain/ReserveHelpersStorage.d.ts +0 -300
  300. package/typechain/ResilientOracle.d.ts +0 -1034
  301. package/typechain/ResilientOracleInterface.d.ts +0 -192
  302. package/typechain/RiskFundConverter.d.ts +0 -2235
  303. package/typechain/RiskFundV1Storage.d.ts +0 -353
  304. package/typechain/RiskFundV2.d.ts +0 -965
  305. package/typechain/RiskFundV2Storage.d.ts +0 -372
  306. package/typechain/SingleTokenConverter.d.ts +0 -1944
  307. package/typechain/TwapInterface.d.ts +0 -124
  308. package/typechain/UpgradeableBeacon.d.ts +0 -240
  309. package/typechain/VBep20Interface.d.ts +0 -379
  310. package/typechain/XVSVaultTreasury.d.ts +0 -515
  311. package/typechain/common.d.ts +0 -35
  312. package/typechain/factories/AbstractTokenConverter__factory.ts +0 -1297
  313. package/typechain/factories/AccessControl__factory.ts +0 -227
  314. package/typechain/factories/AccessControlledV8__factory.ts +0 -196
  315. package/typechain/factories/BeaconProxy__factory.ts +0 -133
  316. package/typechain/factories/BoundValidatorInterface__factory.ts +0 -59
  317. package/typechain/factories/ContextUpgradeable__factory.ts +0 -39
  318. package/typechain/factories/ConverterNetwork__factory.ts +0 -502
  319. package/typechain/factories/ERC165__factory.ts +0 -39
  320. package/typechain/factories/ERC1967Upgrade__factory.ts +0 -71
  321. package/typechain/factories/ERC20__factory.ts +0 -340
  322. package/typechain/factories/IAbstractTokenConverter__factory.ts +0 -466
  323. package/typechain/factories/IAccessControlManagerV8__factory.ts +0 -301
  324. package/typechain/factories/IAccessControl__factory.ts +0 -198
  325. package/typechain/factories/IBeacon__factory.ts +0 -36
  326. package/typechain/factories/IComptroller__factory.ts +0 -68
  327. package/typechain/factories/IConverterNetwork__factory.ts +0 -142
  328. package/typechain/factories/IERC165__factory.ts +0 -42
  329. package/typechain/factories/IERC1822Proxiable__factory.ts +0 -39
  330. package/typechain/factories/IERC1967__factory.ts +0 -68
  331. package/typechain/factories/IERC20Metadata__factory.ts +0 -248
  332. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +0 -105
  333. package/typechain/factories/IERC20Upgradeable__factory.ts +0 -209
  334. package/typechain/factories/IERC20__factory.ts +0 -203
  335. package/typechain/factories/IIncomeDestination__factory.ts +0 -44
  336. package/typechain/factories/IPoolRegistry__factory.ts +0 -66
  337. package/typechain/factories/IProtocolShareReserve__factory.ts +0 -53
  338. package/typechain/factories/IRiskFundConverter__factory.ts +0 -63
  339. package/typechain/factories/IRiskFundGetters__factory.ts +0 -39
  340. package/typechain/factories/IRiskFund__factory.ts +0 -89
  341. package/typechain/factories/IShortfall__factory.ts +0 -36
  342. package/typechain/factories/IVToken__factory.ts +0 -36
  343. package/typechain/factories/IXVSVault__factory.ts +0 -36
  344. package/typechain/factories/Initializable__factory.ts +0 -36
  345. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +0 -74
  346. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +0 -75
  347. package/typechain/factories/MockACM__factory.ts +0 -411
  348. package/typechain/factories/MockArraySorter__factory.ts +0 -85
  349. package/typechain/factories/MockConverter__factory.ts +0 -1439
  350. package/typechain/factories/MockDeflatingToken__factory.ts +0 -389
  351. package/typechain/factories/MockRiskFundConverter__factory.ts +0 -1828
  352. package/typechain/factories/MockToken__factory.ts +0 -398
  353. package/typechain/factories/OracleInterface__factory.ts +0 -45
  354. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +0 -134
  355. package/typechain/factories/OwnableUpgradeable__factory.ts +0 -91
  356. package/typechain/factories/Ownable__factory.ts +0 -75
  357. package/typechain/factories/PausableUpgradeable__factory.ts +0 -78
  358. package/typechain/factories/ProtocolShareReserve__factory.ts +0 -874
  359. package/typechain/factories/Proxy__factory.ts +0 -28
  360. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
  361. package/typechain/factories/ReserveHelpersStorage__factory.ts +0 -188
  362. package/typechain/factories/ResilientOracleInterface__factory.ts +0 -94
  363. package/typechain/factories/ResilientOracle__factory.ts +0 -710
  364. package/typechain/factories/RiskFundConverter__factory.ts +0 -1694
  365. package/typechain/factories/RiskFundV1Storage__factory.ts +0 -223
  366. package/typechain/factories/RiskFundV2Storage__factory.ts +0 -236
  367. package/typechain/factories/RiskFundV2__factory.ts +0 -672
  368. package/typechain/factories/SingleTokenConverter__factory.ts +0 -1441
  369. package/typechain/factories/TwapInterface__factory.ts +0 -61
  370. package/typechain/factories/UpgradeableBeacon__factory.ts +0 -163
  371. package/typechain/factories/VBep20Interface__factory.ts +0 -261
  372. package/typechain/factories/XVSVaultTreasury__factory.ts +0 -365
@@ -1,1297 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Contract, Signer, utils } from "ethers";
6
- import { Provider } from "@ethersproject/providers";
7
- import type {
8
- AbstractTokenConverter,
9
- AbstractTokenConverterInterface,
10
- } from "../AbstractTokenConverter";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "uint256",
17
- name: "amountInMantissa",
18
- type: "uint256",
19
- },
20
- {
21
- internalType: "uint256",
22
- name: "amountInMaxMantissa",
23
- type: "uint256",
24
- },
25
- ],
26
- name: "AmountInHigherThanMax",
27
- type: "error",
28
- },
29
- {
30
- inputs: [],
31
- name: "AmountInMismatched",
32
- type: "error",
33
- },
34
- {
35
- inputs: [
36
- {
37
- internalType: "uint256",
38
- name: "amountOutMantissa",
39
- type: "uint256",
40
- },
41
- {
42
- internalType: "uint256",
43
- name: "amountOutMinMantissa",
44
- type: "uint256",
45
- },
46
- ],
47
- name: "AmountOutLowerThanMinRequired",
48
- type: "error",
49
- },
50
- {
51
- inputs: [],
52
- name: "AmountOutMismatched",
53
- type: "error",
54
- },
55
- {
56
- inputs: [],
57
- name: "ConversionConfigNotEnabled",
58
- type: "error",
59
- },
60
- {
61
- inputs: [],
62
- name: "ConversionEnabledOnlyForPrivateConversions",
63
- type: "error",
64
- },
65
- {
66
- inputs: [],
67
- name: "ConversionTokensActive",
68
- type: "error",
69
- },
70
- {
71
- inputs: [],
72
- name: "ConversionTokensPaused",
73
- type: "error",
74
- },
75
- {
76
- inputs: [],
77
- name: "DeflationaryTokenNotSupported",
78
- type: "error",
79
- },
80
- {
81
- inputs: [
82
- {
83
- internalType: "uint256",
84
- name: "incentive",
85
- type: "uint256",
86
- },
87
- {
88
- internalType: "uint256",
89
- name: "maxIncentive",
90
- type: "uint256",
91
- },
92
- ],
93
- name: "IncentiveTooHigh",
94
- type: "error",
95
- },
96
- {
97
- inputs: [],
98
- name: "InputLengthMisMatch",
99
- type: "error",
100
- },
101
- {
102
- inputs: [],
103
- name: "InsufficientInputAmount",
104
- type: "error",
105
- },
106
- {
107
- inputs: [],
108
- name: "InsufficientOutputAmount",
109
- type: "error",
110
- },
111
- {
112
- inputs: [],
113
- name: "InsufficientPoolLiquidity",
114
- type: "error",
115
- },
116
- {
117
- inputs: [],
118
- name: "InvalidConverterNetwork",
119
- type: "error",
120
- },
121
- {
122
- inputs: [],
123
- name: "InvalidMinimumAmountToConvert",
124
- type: "error",
125
- },
126
- {
127
- inputs: [],
128
- name: "InvalidToAddress",
129
- type: "error",
130
- },
131
- {
132
- inputs: [],
133
- name: "InvalidTokenConfigAddresses",
134
- type: "error",
135
- },
136
- {
137
- inputs: [],
138
- name: "NonZeroIncentiveForPrivateConversion",
139
- type: "error",
140
- },
141
- {
142
- inputs: [
143
- {
144
- internalType: "address",
145
- name: "sender",
146
- type: "address",
147
- },
148
- {
149
- internalType: "address",
150
- name: "calledContract",
151
- type: "address",
152
- },
153
- {
154
- internalType: "string",
155
- name: "methodSignature",
156
- type: "string",
157
- },
158
- ],
159
- name: "Unauthorized",
160
- type: "error",
161
- },
162
- {
163
- inputs: [],
164
- name: "ZeroAddressNotAllowed",
165
- type: "error",
166
- },
167
- {
168
- inputs: [],
169
- name: "ZeroValueNotAllowed",
170
- type: "error",
171
- },
172
- {
173
- anonymous: false,
174
- inputs: [
175
- {
176
- indexed: true,
177
- internalType: "address",
178
- name: "tokenAddressIn",
179
- type: "address",
180
- },
181
- {
182
- indexed: true,
183
- internalType: "address",
184
- name: "tokenAddressOut",
185
- type: "address",
186
- },
187
- {
188
- indexed: false,
189
- internalType: "uint256",
190
- name: "oldIncentive",
191
- type: "uint256",
192
- },
193
- {
194
- indexed: false,
195
- internalType: "uint256",
196
- name: "newIncentive",
197
- type: "uint256",
198
- },
199
- {
200
- indexed: false,
201
- internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
202
- name: "oldAccess",
203
- type: "uint8",
204
- },
205
- {
206
- indexed: false,
207
- internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
208
- name: "newAccess",
209
- type: "uint8",
210
- },
211
- ],
212
- name: "ConversionConfigUpdated",
213
- type: "event",
214
- },
215
- {
216
- anonymous: false,
217
- inputs: [
218
- {
219
- indexed: true,
220
- internalType: "address",
221
- name: "sender",
222
- type: "address",
223
- },
224
- ],
225
- name: "ConversionPaused",
226
- type: "event",
227
- },
228
- {
229
- anonymous: false,
230
- inputs: [
231
- {
232
- indexed: true,
233
- internalType: "address",
234
- name: "sender",
235
- type: "address",
236
- },
237
- ],
238
- name: "ConversionResumed",
239
- type: "event",
240
- },
241
- {
242
- anonymous: false,
243
- inputs: [
244
- {
245
- indexed: true,
246
- internalType: "address",
247
- name: "sender",
248
- type: "address",
249
- },
250
- {
251
- indexed: true,
252
- internalType: "address",
253
- name: "receiver",
254
- type: "address",
255
- },
256
- {
257
- indexed: false,
258
- internalType: "address",
259
- name: "tokenAddressIn",
260
- type: "address",
261
- },
262
- {
263
- indexed: true,
264
- internalType: "address",
265
- name: "tokenAddressOut",
266
- type: "address",
267
- },
268
- {
269
- indexed: false,
270
- internalType: "uint256",
271
- name: "amountIn",
272
- type: "uint256",
273
- },
274
- {
275
- indexed: false,
276
- internalType: "uint256",
277
- name: "amountOut",
278
- type: "uint256",
279
- },
280
- ],
281
- name: "ConvertedExactTokens",
282
- type: "event",
283
- },
284
- {
285
- anonymous: false,
286
- inputs: [
287
- {
288
- indexed: true,
289
- internalType: "address",
290
- name: "sender",
291
- type: "address",
292
- },
293
- {
294
- indexed: true,
295
- internalType: "address",
296
- name: "receiver",
297
- type: "address",
298
- },
299
- {
300
- indexed: false,
301
- internalType: "address",
302
- name: "tokenAddressIn",
303
- type: "address",
304
- },
305
- {
306
- indexed: true,
307
- internalType: "address",
308
- name: "tokenAddressOut",
309
- type: "address",
310
- },
311
- {
312
- indexed: false,
313
- internalType: "uint256",
314
- name: "amountIn",
315
- type: "uint256",
316
- },
317
- {
318
- indexed: false,
319
- internalType: "uint256",
320
- name: "amountOut",
321
- type: "uint256",
322
- },
323
- ],
324
- name: "ConvertedExactTokensSupportingFeeOnTransferTokens",
325
- type: "event",
326
- },
327
- {
328
- anonymous: false,
329
- inputs: [
330
- {
331
- indexed: true,
332
- internalType: "address",
333
- name: "sender",
334
- type: "address",
335
- },
336
- {
337
- indexed: true,
338
- internalType: "address",
339
- name: "receiver",
340
- type: "address",
341
- },
342
- {
343
- indexed: false,
344
- internalType: "address",
345
- name: "tokenAddressIn",
346
- type: "address",
347
- },
348
- {
349
- indexed: true,
350
- internalType: "address",
351
- name: "tokenAddressOut",
352
- type: "address",
353
- },
354
- {
355
- indexed: false,
356
- internalType: "uint256",
357
- name: "amountIn",
358
- type: "uint256",
359
- },
360
- {
361
- indexed: false,
362
- internalType: "uint256",
363
- name: "amountOut",
364
- type: "uint256",
365
- },
366
- ],
367
- name: "ConvertedForExactTokens",
368
- type: "event",
369
- },
370
- {
371
- anonymous: false,
372
- inputs: [
373
- {
374
- indexed: true,
375
- internalType: "address",
376
- name: "sender",
377
- type: "address",
378
- },
379
- {
380
- indexed: true,
381
- internalType: "address",
382
- name: "receiver",
383
- type: "address",
384
- },
385
- {
386
- indexed: false,
387
- internalType: "address",
388
- name: "tokenAddressIn",
389
- type: "address",
390
- },
391
- {
392
- indexed: true,
393
- internalType: "address",
394
- name: "tokenAddressOut",
395
- type: "address",
396
- },
397
- {
398
- indexed: false,
399
- internalType: "uint256",
400
- name: "amountIn",
401
- type: "uint256",
402
- },
403
- {
404
- indexed: false,
405
- internalType: "uint256",
406
- name: "amountOut",
407
- type: "uint256",
408
- },
409
- ],
410
- name: "ConvertedForExactTokensSupportingFeeOnTransferTokens",
411
- type: "event",
412
- },
413
- {
414
- anonymous: false,
415
- inputs: [
416
- {
417
- indexed: true,
418
- internalType: "address",
419
- name: "oldConverterNetwork",
420
- type: "address",
421
- },
422
- {
423
- indexed: true,
424
- internalType: "address",
425
- name: "converterNetwork",
426
- type: "address",
427
- },
428
- ],
429
- name: "ConverterNetworkAddressUpdated",
430
- type: "event",
431
- },
432
- {
433
- anonymous: false,
434
- inputs: [
435
- {
436
- indexed: true,
437
- internalType: "address",
438
- name: "oldDestinationAddress",
439
- type: "address",
440
- },
441
- {
442
- indexed: true,
443
- internalType: "address",
444
- name: "destinationAddress",
445
- type: "address",
446
- },
447
- ],
448
- name: "DestinationAddressUpdated",
449
- type: "event",
450
- },
451
- {
452
- anonymous: false,
453
- inputs: [
454
- {
455
- indexed: false,
456
- internalType: "uint8",
457
- name: "version",
458
- type: "uint8",
459
- },
460
- ],
461
- name: "Initialized",
462
- type: "event",
463
- },
464
- {
465
- anonymous: false,
466
- inputs: [
467
- {
468
- indexed: false,
469
- internalType: "uint256",
470
- name: "oldMinAmountToConvert",
471
- type: "uint256",
472
- },
473
- {
474
- indexed: false,
475
- internalType: "uint256",
476
- name: "newMinAmountToConvert",
477
- type: "uint256",
478
- },
479
- ],
480
- name: "MinAmountToConvertUpdated",
481
- type: "event",
482
- },
483
- {
484
- anonymous: false,
485
- inputs: [
486
- {
487
- indexed: false,
488
- internalType: "address",
489
- name: "oldAccessControlManager",
490
- type: "address",
491
- },
492
- {
493
- indexed: false,
494
- internalType: "address",
495
- name: "newAccessControlManager",
496
- type: "address",
497
- },
498
- ],
499
- name: "NewAccessControlManager",
500
- type: "event",
501
- },
502
- {
503
- anonymous: false,
504
- inputs: [
505
- {
506
- indexed: true,
507
- internalType: "address",
508
- name: "previousOwner",
509
- type: "address",
510
- },
511
- {
512
- indexed: true,
513
- internalType: "address",
514
- name: "newOwner",
515
- type: "address",
516
- },
517
- ],
518
- name: "OwnershipTransferStarted",
519
- type: "event",
520
- },
521
- {
522
- anonymous: false,
523
- inputs: [
524
- {
525
- indexed: true,
526
- internalType: "address",
527
- name: "previousOwner",
528
- type: "address",
529
- },
530
- {
531
- indexed: true,
532
- internalType: "address",
533
- name: "newOwner",
534
- type: "address",
535
- },
536
- ],
537
- name: "OwnershipTransferred",
538
- type: "event",
539
- },
540
- {
541
- anonymous: false,
542
- inputs: [
543
- {
544
- indexed: true,
545
- internalType: "contract ResilientOracle",
546
- name: "oldPriceOracle",
547
- type: "address",
548
- },
549
- {
550
- indexed: true,
551
- internalType: "contract ResilientOracle",
552
- name: "priceOracle",
553
- type: "address",
554
- },
555
- ],
556
- name: "PriceOracleUpdated",
557
- type: "event",
558
- },
559
- {
560
- anonymous: false,
561
- inputs: [
562
- {
563
- indexed: true,
564
- internalType: "address",
565
- name: "token",
566
- type: "address",
567
- },
568
- {
569
- indexed: true,
570
- internalType: "address",
571
- name: "to",
572
- type: "address",
573
- },
574
- {
575
- indexed: false,
576
- internalType: "uint256",
577
- name: "amount",
578
- type: "uint256",
579
- },
580
- ],
581
- name: "SweepToken",
582
- type: "event",
583
- },
584
- {
585
- inputs: [],
586
- name: "MAX_INCENTIVE",
587
- outputs: [
588
- {
589
- internalType: "uint256",
590
- name: "",
591
- type: "uint256",
592
- },
593
- ],
594
- stateMutability: "view",
595
- type: "function",
596
- },
597
- {
598
- inputs: [],
599
- name: "acceptOwnership",
600
- outputs: [],
601
- stateMutability: "nonpayable",
602
- type: "function",
603
- },
604
- {
605
- inputs: [],
606
- name: "accessControlManager",
607
- outputs: [
608
- {
609
- internalType: "contract IAccessControlManagerV8",
610
- name: "",
611
- type: "address",
612
- },
613
- ],
614
- stateMutability: "view",
615
- type: "function",
616
- },
617
- {
618
- inputs: [
619
- {
620
- internalType: "address",
621
- name: "token",
622
- type: "address",
623
- },
624
- ],
625
- name: "balanceOf",
626
- outputs: [
627
- {
628
- internalType: "uint256",
629
- name: "tokenBalance",
630
- type: "uint256",
631
- },
632
- ],
633
- stateMutability: "view",
634
- type: "function",
635
- },
636
- {
637
- inputs: [
638
- {
639
- internalType: "address",
640
- name: "",
641
- type: "address",
642
- },
643
- {
644
- internalType: "address",
645
- name: "",
646
- type: "address",
647
- },
648
- ],
649
- name: "conversionConfigurations",
650
- outputs: [
651
- {
652
- internalType: "uint256",
653
- name: "incentive",
654
- type: "uint256",
655
- },
656
- {
657
- internalType: "enum IAbstractTokenConverter.ConversionAccessibility",
658
- name: "conversionAccess",
659
- type: "uint8",
660
- },
661
- ],
662
- stateMutability: "view",
663
- type: "function",
664
- },
665
- {
666
- inputs: [],
667
- name: "conversionPaused",
668
- outputs: [
669
- {
670
- internalType: "bool",
671
- name: "",
672
- type: "bool",
673
- },
674
- ],
675
- stateMutability: "view",
676
- type: "function",
677
- },
678
- {
679
- inputs: [
680
- {
681
- internalType: "uint256",
682
- name: "amountInMantissa",
683
- type: "uint256",
684
- },
685
- {
686
- internalType: "uint256",
687
- name: "amountOutMinMantissa",
688
- type: "uint256",
689
- },
690
- {
691
- internalType: "address",
692
- name: "tokenAddressIn",
693
- type: "address",
694
- },
695
- {
696
- internalType: "address",
697
- name: "tokenAddressOut",
698
- type: "address",
699
- },
700
- {
701
- internalType: "address",
702
- name: "to",
703
- type: "address",
704
- },
705
- ],
706
- name: "convertExactTokens",
707
- outputs: [
708
- {
709
- internalType: "uint256",
710
- name: "actualAmountIn",
711
- type: "uint256",
712
- },
713
- {
714
- internalType: "uint256",
715
- name: "actualAmountOut",
716
- type: "uint256",
717
- },
718
- ],
719
- stateMutability: "nonpayable",
720
- type: "function",
721
- },
722
- {
723
- inputs: [
724
- {
725
- internalType: "uint256",
726
- name: "amountInMantissa",
727
- type: "uint256",
728
- },
729
- {
730
- internalType: "uint256",
731
- name: "amountOutMinMantissa",
732
- type: "uint256",
733
- },
734
- {
735
- internalType: "address",
736
- name: "tokenAddressIn",
737
- type: "address",
738
- },
739
- {
740
- internalType: "address",
741
- name: "tokenAddressOut",
742
- type: "address",
743
- },
744
- {
745
- internalType: "address",
746
- name: "to",
747
- type: "address",
748
- },
749
- ],
750
- name: "convertExactTokensSupportingFeeOnTransferTokens",
751
- outputs: [
752
- {
753
- internalType: "uint256",
754
- name: "actualAmountIn",
755
- type: "uint256",
756
- },
757
- {
758
- internalType: "uint256",
759
- name: "actualAmountOut",
760
- type: "uint256",
761
- },
762
- ],
763
- stateMutability: "nonpayable",
764
- type: "function",
765
- },
766
- {
767
- inputs: [
768
- {
769
- internalType: "uint256",
770
- name: "amountInMaxMantissa",
771
- type: "uint256",
772
- },
773
- {
774
- internalType: "uint256",
775
- name: "amountOutMantissa",
776
- type: "uint256",
777
- },
778
- {
779
- internalType: "address",
780
- name: "tokenAddressIn",
781
- type: "address",
782
- },
783
- {
784
- internalType: "address",
785
- name: "tokenAddressOut",
786
- type: "address",
787
- },
788
- {
789
- internalType: "address",
790
- name: "to",
791
- type: "address",
792
- },
793
- ],
794
- name: "convertForExactTokens",
795
- outputs: [
796
- {
797
- internalType: "uint256",
798
- name: "actualAmountIn",
799
- type: "uint256",
800
- },
801
- {
802
- internalType: "uint256",
803
- name: "actualAmountOut",
804
- type: "uint256",
805
- },
806
- ],
807
- stateMutability: "nonpayable",
808
- type: "function",
809
- },
810
- {
811
- inputs: [
812
- {
813
- internalType: "uint256",
814
- name: "amountInMaxMantissa",
815
- type: "uint256",
816
- },
817
- {
818
- internalType: "uint256",
819
- name: "amountOutMantissa",
820
- type: "uint256",
821
- },
822
- {
823
- internalType: "address",
824
- name: "tokenAddressIn",
825
- type: "address",
826
- },
827
- {
828
- internalType: "address",
829
- name: "tokenAddressOut",
830
- type: "address",
831
- },
832
- {
833
- internalType: "address",
834
- name: "to",
835
- type: "address",
836
- },
837
- ],
838
- name: "convertForExactTokensSupportingFeeOnTransferTokens",
839
- outputs: [
840
- {
841
- internalType: "uint256",
842
- name: "actualAmountIn",
843
- type: "uint256",
844
- },
845
- {
846
- internalType: "uint256",
847
- name: "actualAmountOut",
848
- type: "uint256",
849
- },
850
- ],
851
- stateMutability: "nonpayable",
852
- type: "function",
853
- },
854
- {
855
- inputs: [],
856
- name: "converterNetwork",
857
- outputs: [
858
- {
859
- internalType: "contract IConverterNetwork",
860
- name: "",
861
- type: "address",
862
- },
863
- ],
864
- stateMutability: "view",
865
- type: "function",
866
- },
867
- {
868
- inputs: [],
869
- name: "destinationAddress",
870
- outputs: [
871
- {
872
- internalType: "address",
873
- name: "",
874
- type: "address",
875
- },
876
- ],
877
- stateMutability: "view",
878
- type: "function",
879
- },
880
- {
881
- inputs: [
882
- {
883
- internalType: "uint256",
884
- name: "amountOutMantissa",
885
- type: "uint256",
886
- },
887
- {
888
- internalType: "address",
889
- name: "tokenAddressIn",
890
- type: "address",
891
- },
892
- {
893
- internalType: "address",
894
- name: "tokenAddressOut",
895
- type: "address",
896
- },
897
- ],
898
- name: "getAmountIn",
899
- outputs: [
900
- {
901
- internalType: "uint256",
902
- name: "amountConvertedMantissa",
903
- type: "uint256",
904
- },
905
- {
906
- internalType: "uint256",
907
- name: "amountInMantissa",
908
- type: "uint256",
909
- },
910
- ],
911
- stateMutability: "view",
912
- type: "function",
913
- },
914
- {
915
- inputs: [
916
- {
917
- internalType: "uint256",
918
- name: "amountInMantissa",
919
- type: "uint256",
920
- },
921
- {
922
- internalType: "address",
923
- name: "tokenAddressIn",
924
- type: "address",
925
- },
926
- {
927
- internalType: "address",
928
- name: "tokenAddressOut",
929
- type: "address",
930
- },
931
- ],
932
- name: "getAmountOut",
933
- outputs: [
934
- {
935
- internalType: "uint256",
936
- name: "amountConvertedMantissa",
937
- type: "uint256",
938
- },
939
- {
940
- internalType: "uint256",
941
- name: "amountOutMantissa",
942
- type: "uint256",
943
- },
944
- ],
945
- stateMutability: "view",
946
- type: "function",
947
- },
948
- {
949
- inputs: [
950
- {
951
- internalType: "uint256",
952
- name: "amountOutMantissa",
953
- type: "uint256",
954
- },
955
- {
956
- internalType: "address",
957
- name: "tokenAddressIn",
958
- type: "address",
959
- },
960
- {
961
- internalType: "address",
962
- name: "tokenAddressOut",
963
- type: "address",
964
- },
965
- ],
966
- name: "getUpdatedAmountIn",
967
- outputs: [
968
- {
969
- internalType: "uint256",
970
- name: "amountConvertedMantissa",
971
- type: "uint256",
972
- },
973
- {
974
- internalType: "uint256",
975
- name: "amountInMantissa",
976
- type: "uint256",
977
- },
978
- ],
979
- stateMutability: "nonpayable",
980
- type: "function",
981
- },
982
- {
983
- inputs: [
984
- {
985
- internalType: "uint256",
986
- name: "amountInMantissa",
987
- type: "uint256",
988
- },
989
- {
990
- internalType: "address",
991
- name: "tokenAddressIn",
992
- type: "address",
993
- },
994
- {
995
- internalType: "address",
996
- name: "tokenAddressOut",
997
- type: "address",
998
- },
999
- ],
1000
- name: "getUpdatedAmountOut",
1001
- outputs: [
1002
- {
1003
- internalType: "uint256",
1004
- name: "amountConvertedMantissa",
1005
- type: "uint256",
1006
- },
1007
- {
1008
- internalType: "uint256",
1009
- name: "amountOutMantissa",
1010
- type: "uint256",
1011
- },
1012
- ],
1013
- stateMutability: "nonpayable",
1014
- type: "function",
1015
- },
1016
- {
1017
- inputs: [],
1018
- name: "minAmountToConvert",
1019
- outputs: [
1020
- {
1021
- internalType: "uint256",
1022
- name: "",
1023
- type: "uint256",
1024
- },
1025
- ],
1026
- stateMutability: "view",
1027
- type: "function",
1028
- },
1029
- {
1030
- inputs: [],
1031
- name: "owner",
1032
- outputs: [
1033
- {
1034
- internalType: "address",
1035
- name: "",
1036
- type: "address",
1037
- },
1038
- ],
1039
- stateMutability: "view",
1040
- type: "function",
1041
- },
1042
- {
1043
- inputs: [],
1044
- name: "pauseConversion",
1045
- outputs: [],
1046
- stateMutability: "nonpayable",
1047
- type: "function",
1048
- },
1049
- {
1050
- inputs: [],
1051
- name: "pendingOwner",
1052
- outputs: [
1053
- {
1054
- internalType: "address",
1055
- name: "",
1056
- type: "address",
1057
- },
1058
- ],
1059
- stateMutability: "view",
1060
- type: "function",
1061
- },
1062
- {
1063
- inputs: [],
1064
- name: "priceOracle",
1065
- outputs: [
1066
- {
1067
- internalType: "contract ResilientOracle",
1068
- name: "",
1069
- type: "address",
1070
- },
1071
- ],
1072
- stateMutability: "view",
1073
- type: "function",
1074
- },
1075
- {
1076
- inputs: [],
1077
- name: "renounceOwnership",
1078
- outputs: [],
1079
- stateMutability: "nonpayable",
1080
- type: "function",
1081
- },
1082
- {
1083
- inputs: [],
1084
- name: "resumeConversion",
1085
- outputs: [],
1086
- stateMutability: "nonpayable",
1087
- type: "function",
1088
- },
1089
- {
1090
- inputs: [
1091
- {
1092
- internalType: "address",
1093
- name: "accessControlManager_",
1094
- type: "address",
1095
- },
1096
- ],
1097
- name: "setAccessControlManager",
1098
- outputs: [],
1099
- stateMutability: "nonpayable",
1100
- type: "function",
1101
- },
1102
- {
1103
- inputs: [
1104
- {
1105
- internalType: "address",
1106
- name: "tokenAddressIn",
1107
- type: "address",
1108
- },
1109
- {
1110
- internalType: "address",
1111
- name: "tokenAddressOut",
1112
- type: "address",
1113
- },
1114
- {
1115
- components: [
1116
- {
1117
- internalType: "uint256",
1118
- name: "incentive",
1119
- type: "uint256",
1120
- },
1121
- {
1122
- internalType:
1123
- "enum IAbstractTokenConverter.ConversionAccessibility",
1124
- name: "conversionAccess",
1125
- type: "uint8",
1126
- },
1127
- ],
1128
- internalType: "struct IAbstractTokenConverter.ConversionConfig",
1129
- name: "conversionConfig",
1130
- type: "tuple",
1131
- },
1132
- ],
1133
- name: "setConversionConfig",
1134
- outputs: [],
1135
- stateMutability: "nonpayable",
1136
- type: "function",
1137
- },
1138
- {
1139
- inputs: [
1140
- {
1141
- internalType: "address",
1142
- name: "tokenAddressIn",
1143
- type: "address",
1144
- },
1145
- {
1146
- internalType: "address[]",
1147
- name: "tokenAddressesOut",
1148
- type: "address[]",
1149
- },
1150
- {
1151
- components: [
1152
- {
1153
- internalType: "uint256",
1154
- name: "incentive",
1155
- type: "uint256",
1156
- },
1157
- {
1158
- internalType:
1159
- "enum IAbstractTokenConverter.ConversionAccessibility",
1160
- name: "conversionAccess",
1161
- type: "uint8",
1162
- },
1163
- ],
1164
- internalType: "struct IAbstractTokenConverter.ConversionConfig[]",
1165
- name: "conversionConfigs",
1166
- type: "tuple[]",
1167
- },
1168
- ],
1169
- name: "setConversionConfigs",
1170
- outputs: [],
1171
- stateMutability: "nonpayable",
1172
- type: "function",
1173
- },
1174
- {
1175
- inputs: [
1176
- {
1177
- internalType: "contract IConverterNetwork",
1178
- name: "converterNetwork_",
1179
- type: "address",
1180
- },
1181
- ],
1182
- name: "setConverterNetwork",
1183
- outputs: [],
1184
- stateMutability: "nonpayable",
1185
- type: "function",
1186
- },
1187
- {
1188
- inputs: [
1189
- {
1190
- internalType: "address",
1191
- name: "destinationAddress_",
1192
- type: "address",
1193
- },
1194
- ],
1195
- name: "setDestination",
1196
- outputs: [],
1197
- stateMutability: "nonpayable",
1198
- type: "function",
1199
- },
1200
- {
1201
- inputs: [
1202
- {
1203
- internalType: "uint256",
1204
- name: "minAmountToConvert_",
1205
- type: "uint256",
1206
- },
1207
- ],
1208
- name: "setMinAmountToConvert",
1209
- outputs: [],
1210
- stateMutability: "nonpayable",
1211
- type: "function",
1212
- },
1213
- {
1214
- inputs: [
1215
- {
1216
- internalType: "contract ResilientOracle",
1217
- name: "priceOracle_",
1218
- type: "address",
1219
- },
1220
- ],
1221
- name: "setPriceOracle",
1222
- outputs: [],
1223
- stateMutability: "nonpayable",
1224
- type: "function",
1225
- },
1226
- {
1227
- inputs: [
1228
- {
1229
- internalType: "address",
1230
- name: "tokenAddress",
1231
- type: "address",
1232
- },
1233
- {
1234
- internalType: "address",
1235
- name: "to",
1236
- type: "address",
1237
- },
1238
- {
1239
- internalType: "uint256",
1240
- name: "amount",
1241
- type: "uint256",
1242
- },
1243
- ],
1244
- name: "sweepToken",
1245
- outputs: [],
1246
- stateMutability: "nonpayable",
1247
- type: "function",
1248
- },
1249
- {
1250
- inputs: [
1251
- {
1252
- internalType: "address",
1253
- name: "newOwner",
1254
- type: "address",
1255
- },
1256
- ],
1257
- name: "transferOwnership",
1258
- outputs: [],
1259
- stateMutability: "nonpayable",
1260
- type: "function",
1261
- },
1262
- {
1263
- inputs: [
1264
- {
1265
- internalType: "address",
1266
- name: "comptroller",
1267
- type: "address",
1268
- },
1269
- {
1270
- internalType: "address",
1271
- name: "asset",
1272
- type: "address",
1273
- },
1274
- ],
1275
- name: "updateAssetsState",
1276
- outputs: [],
1277
- stateMutability: "nonpayable",
1278
- type: "function",
1279
- },
1280
- ];
1281
-
1282
- export class AbstractTokenConverter__factory {
1283
- static readonly abi = _abi;
1284
- static createInterface(): AbstractTokenConverterInterface {
1285
- return new utils.Interface(_abi) as AbstractTokenConverterInterface;
1286
- }
1287
- static connect(
1288
- address: string,
1289
- signerOrProvider: Signer | Provider
1290
- ): AbstractTokenConverter {
1291
- return new Contract(
1292
- address,
1293
- _abi,
1294
- signerOrProvider
1295
- ) as AbstractTokenConverter;
1296
- }
1297
- }