@venusprotocol/protocol-reserve 1.0.0-converters.1

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