@venusprotocol/protocol-reserve 1.5.0 → 1.6.0-dev.2

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 (224) hide show
  1. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/interfaces/IERC1967.sol/IERC1967.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol/BeaconProxy.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
  15. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  16. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  17. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  18. package/artifacts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
  19. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  20. package/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
  21. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
  22. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +1 -1
  23. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +1 -1
  24. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +1 -1
  25. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
  26. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  27. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  28. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  29. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  30. package/artifacts/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol/ReentrancyGuardUpgradeable.dbg.json +1 -1
  31. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  32. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  33. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  34. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  35. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  36. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  37. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  38. package/artifacts/@venusprotocol/oracle/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
  39. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  40. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  41. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  42. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  43. package/artifacts/@venusprotocol/oracle/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
  44. package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
  45. package/artifacts/build-info/{edc419076b46914ce81b28cdf6fbe9e4.json → d1fcd0a2f344488c087ed41d687ed735.json} +1 -1
  46. package/artifacts/contracts/Interfaces/IComptroller.sol/IComptroller.dbg.json +1 -1
  47. package/artifacts/contracts/Interfaces/IConverterNetwork.sol/IConverterNetwork.dbg.json +1 -1
  48. package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
  49. package/artifacts/contracts/Interfaces/IPoolRegistry.sol/IPoolRegistry.dbg.json +1 -1
  50. package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
  51. package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFund.dbg.json +1 -1
  52. package/artifacts/contracts/Interfaces/IRiskFund.sol/IRiskFundGetters.dbg.json +1 -1
  53. package/artifacts/contracts/Interfaces/IRiskFundConverter.sol/IRiskFundConverter.dbg.json +1 -1
  54. package/artifacts/contracts/Interfaces/IShortfall.sol/IShortfall.dbg.json +1 -1
  55. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
  56. package/artifacts/contracts/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +1 -1
  57. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
  58. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/MaxLoopsLimitHelpersStorage.dbg.json +1 -1
  59. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/ReserveHelpersStorage.dbg.json +1 -1
  60. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV1Storage.dbg.json +1 -1
  61. package/artifacts/contracts/ProtocolReserve/RiskFundStorage.sol/RiskFundV2Storage.dbg.json +1 -1
  62. package/artifacts/contracts/ProtocolReserve/RiskFundV2.sol/RiskFundV2.dbg.json +1 -1
  63. package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.dbg.json +1 -1
  64. package/artifacts/contracts/ProtocolReserve/XVSVaultTreasury.sol/XVSVaultTreasury.json +50 -2
  65. package/artifacts/contracts/Test/Mocks/MockACM.sol/MockACM.dbg.json +1 -1
  66. package/artifacts/contracts/Test/Mocks/MockArraySorter.sol/MockArraySorter.dbg.json +1 -1
  67. package/artifacts/contracts/Test/Mocks/MockConverter.sol/MockConverter.dbg.json +1 -1
  68. package/artifacts/contracts/Test/Mocks/MockDeflationaryToken.sol/MockDeflatingToken.dbg.json +1 -1
  69. package/artifacts/contracts/Test/Mocks/MockRiskFundConverter.sol/MockRiskFundConverter.dbg.json +1 -1
  70. package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
  71. package/artifacts/contracts/TokenConverter/AbstractTokenConverter.sol/AbstractTokenConverter.dbg.json +1 -1
  72. package/artifacts/contracts/TokenConverter/ConverterNetwork.sol/ConverterNetwork.dbg.json +1 -1
  73. package/artifacts/contracts/TokenConverter/IAbstractTokenConverter.sol/IAbstractTokenConverter.dbg.json +1 -1
  74. package/artifacts/contracts/TokenConverter/RiskFundConverter.sol/RiskFundConverter.dbg.json +1 -1
  75. package/artifacts/contracts/TokenConverter/SingleTokenConverter.sol/SingleTokenConverter.dbg.json +1 -1
  76. package/contracts/ProtocolReserve/XVSVaultTreasury.sol +26 -0
  77. package/deployments/bscmainnet/XVSVaultTreasury_Implementation.json +91 -27
  78. package/deployments/bscmainnet/solcInputs/f56c48e0e517617d548c496f99aa8709.json +237 -0
  79. package/deployments/bscmainnet.json +49 -1
  80. package/deployments/bscmainnet_addresses.json +1 -1
  81. package/deployments/bsctestnet/XVSVaultTreasury_Implementation.json +91 -27
  82. package/deployments/bsctestnet/solcInputs/f56c48e0e517617d548c496f99aa8709.json +237 -0
  83. package/deployments/bsctestnet.json +49 -1
  84. package/deployments/bsctestnet_addresses.json +1 -1
  85. package/dist/hardhat.config.d.ts.map +1 -1
  86. package/dist/hardhat.config.js +1 -0
  87. package/dist/hardhat.config.js.map +1 -1
  88. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts +1 -1
  89. package/dist/typechain/factories/XVSVaultTreasury__factory.d.ts.map +1 -1
  90. package/dist/typechain/factories/XVSVaultTreasury__factory.js +49 -1
  91. package/dist/typechain/factories/XVSVaultTreasury__factory.js.map +1 -1
  92. package/package.json +4 -2
  93. package/typechain/AbstractTokenConverter.d.ts +1775 -0
  94. package/typechain/AccessControl.d.ts +388 -0
  95. package/typechain/AccessControlledV8.d.ts +341 -0
  96. package/typechain/BeaconProxy.d.ts +126 -0
  97. package/typechain/BoundValidatorInterface.d.ts +126 -0
  98. package/typechain/ContextUpgradeable.d.ts +92 -0
  99. package/typechain/ConverterNetwork.d.ts +723 -0
  100. package/typechain/ERC165.d.ts +116 -0
  101. package/typechain/ERC1967Proxy.d.ts +126 -0
  102. package/typechain/ERC1967Upgrade.d.ts +126 -0
  103. package/typechain/ERC20.d.ts +441 -0
  104. package/typechain/IAbstractTokenConverter.d.ts +773 -0
  105. package/typechain/IAccessControl.d.ts +333 -0
  106. package/typechain/IAccessControlManagerV8.d.ts +504 -0
  107. package/typechain/IBeacon.d.ts +101 -0
  108. package/typechain/IComptroller.d.ts +136 -0
  109. package/typechain/IConverterNetwork.d.ts +292 -0
  110. package/typechain/IERC165.d.ts +116 -0
  111. package/typechain/IERC1822Proxiable.d.ts +101 -0
  112. package/typechain/IERC1967.d.ts +126 -0
  113. package/typechain/IERC20.d.ts +324 -0
  114. package/typechain/IERC20Metadata.d.ts +363 -0
  115. package/typechain/IERC20PermitUpgradeable.d.ts +187 -0
  116. package/typechain/IERC20Upgradeable.d.ts +324 -0
  117. package/typechain/IIncomeDestination.d.ts +122 -0
  118. package/typechain/IPoolRegistry.d.ts +155 -0
  119. package/typechain/IProtocolShareReserve.d.ts +127 -0
  120. package/typechain/IRiskFund.d.ts +200 -0
  121. package/typechain/IRiskFundConverter.d.ts +138 -0
  122. package/typechain/IRiskFundGetters.d.ts +103 -0
  123. package/typechain/IShortfall.d.ts +110 -0
  124. package/typechain/ITransparentUpgradeableProxy.d.ts +256 -0
  125. package/typechain/IVToken.d.ts +98 -0
  126. package/typechain/IXVSVault.d.ts +95 -0
  127. package/typechain/Initializable.d.ts +92 -0
  128. package/typechain/MaxLoopsLimitHelper.d.ts +128 -0
  129. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +101 -0
  130. package/typechain/MockACM.d.ts +615 -0
  131. package/typechain/MockArraySorter.d.ts +118 -0
  132. package/typechain/MockConverter.d.ts +1969 -0
  133. package/typechain/MockDeflatingToken.d.ts +486 -0
  134. package/typechain/MockRiskFundConverter.d.ts +2479 -0
  135. package/typechain/MockToken.d.ts +505 -0
  136. package/typechain/OracleInterface.d.ts +98 -0
  137. package/typechain/Ownable.d.ts +181 -0
  138. package/typechain/Ownable2StepUpgradeable.d.ts +261 -0
  139. package/typechain/OwnableUpgradeable.d.ts +193 -0
  140. package/typechain/PausableUpgradeable.d.ts +129 -0
  141. package/typechain/ProtocolShareReserve.d.ts +1214 -0
  142. package/typechain/Proxy.d.ts +78 -0
  143. package/typechain/ProxyAdmin.d.ts +357 -0
  144. package/typechain/ReentrancyGuardUpgradeable.d.ts +92 -0
  145. package/typechain/ReserveHelpersStorage.d.ts +300 -0
  146. package/typechain/ResilientOracle.d.ts +1034 -0
  147. package/typechain/ResilientOracleInterface.d.ts +192 -0
  148. package/typechain/RiskFundConverter.d.ts +2235 -0
  149. package/typechain/RiskFundV1Storage.d.ts +353 -0
  150. package/typechain/RiskFundV2.d.ts +965 -0
  151. package/typechain/RiskFundV2Storage.d.ts +372 -0
  152. package/typechain/SingleTokenConverter.d.ts +1944 -0
  153. package/typechain/TransparentUpgradeableProxy.d.ts +126 -0
  154. package/typechain/TwapInterface.d.ts +124 -0
  155. package/typechain/UpgradeableBeacon.d.ts +240 -0
  156. package/typechain/VBep20Interface.d.ts +379 -0
  157. package/typechain/XVSVaultTreasury.d.ts +580 -0
  158. package/typechain/common.d.ts +35 -0
  159. package/typechain/factories/AbstractTokenConverter__factory.ts +1297 -0
  160. package/typechain/factories/AccessControl__factory.ts +227 -0
  161. package/typechain/factories/AccessControlledV8__factory.ts +196 -0
  162. package/typechain/factories/BeaconProxy__factory.ts +133 -0
  163. package/typechain/factories/BoundValidatorInterface__factory.ts +59 -0
  164. package/typechain/factories/ContextUpgradeable__factory.ts +39 -0
  165. package/typechain/factories/ConverterNetwork__factory.ts +502 -0
  166. package/typechain/factories/ERC165__factory.ts +39 -0
  167. package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
  168. package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
  169. package/typechain/factories/ERC20__factory.ts +340 -0
  170. package/typechain/factories/IAbstractTokenConverter__factory.ts +466 -0
  171. package/typechain/factories/IAccessControlManagerV8__factory.ts +301 -0
  172. package/typechain/factories/IAccessControl__factory.ts +198 -0
  173. package/typechain/factories/IBeacon__factory.ts +36 -0
  174. package/typechain/factories/IComptroller__factory.ts +68 -0
  175. package/typechain/factories/IConverterNetwork__factory.ts +142 -0
  176. package/typechain/factories/IERC165__factory.ts +42 -0
  177. package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
  178. package/typechain/factories/IERC1967__factory.ts +68 -0
  179. package/typechain/factories/IERC20Metadata__factory.ts +248 -0
  180. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +105 -0
  181. package/typechain/factories/IERC20Upgradeable__factory.ts +209 -0
  182. package/typechain/factories/IERC20__factory.ts +203 -0
  183. package/typechain/factories/IIncomeDestination__factory.ts +44 -0
  184. package/typechain/factories/IPoolRegistry__factory.ts +66 -0
  185. package/typechain/factories/IProtocolShareReserve__factory.ts +53 -0
  186. package/typechain/factories/IRiskFundConverter__factory.ts +63 -0
  187. package/typechain/factories/IRiskFundGetters__factory.ts +39 -0
  188. package/typechain/factories/IRiskFund__factory.ts +89 -0
  189. package/typechain/factories/IShortfall__factory.ts +36 -0
  190. package/typechain/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
  191. package/typechain/factories/IVToken__factory.ts +36 -0
  192. package/typechain/factories/IXVSVault__factory.ts +36 -0
  193. package/typechain/factories/Initializable__factory.ts +36 -0
  194. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +74 -0
  195. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +75 -0
  196. package/typechain/factories/MockACM__factory.ts +411 -0
  197. package/typechain/factories/MockArraySorter__factory.ts +85 -0
  198. package/typechain/factories/MockConverter__factory.ts +1439 -0
  199. package/typechain/factories/MockDeflatingToken__factory.ts +389 -0
  200. package/typechain/factories/MockRiskFundConverter__factory.ts +1828 -0
  201. package/typechain/factories/MockToken__factory.ts +398 -0
  202. package/typechain/factories/OracleInterface__factory.ts +45 -0
  203. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +134 -0
  204. package/typechain/factories/OwnableUpgradeable__factory.ts +91 -0
  205. package/typechain/factories/Ownable__factory.ts +75 -0
  206. package/typechain/factories/PausableUpgradeable__factory.ts +78 -0
  207. package/typechain/factories/ProtocolShareReserve__factory.ts +874 -0
  208. package/typechain/factories/ProxyAdmin__factory.ts +202 -0
  209. package/typechain/factories/Proxy__factory.ts +28 -0
  210. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +43 -0
  211. package/typechain/factories/ReserveHelpersStorage__factory.ts +188 -0
  212. package/typechain/factories/ResilientOracleInterface__factory.ts +94 -0
  213. package/typechain/factories/ResilientOracle__factory.ts +710 -0
  214. package/typechain/factories/RiskFundConverter__factory.ts +1694 -0
  215. package/typechain/factories/RiskFundV1Storage__factory.ts +223 -0
  216. package/typechain/factories/RiskFundV2Storage__factory.ts +236 -0
  217. package/typechain/factories/RiskFundV2__factory.ts +672 -0
  218. package/typechain/factories/SingleTokenConverter__factory.ts +1441 -0
  219. package/typechain/factories/TransparentUpgradeableProxy__factory.ts +152 -0
  220. package/typechain/factories/TwapInterface__factory.ts +61 -0
  221. package/typechain/factories/UpgradeableBeacon__factory.ts +163 -0
  222. package/typechain/factories/VBep20Interface__factory.ts +261 -0
  223. package/typechain/factories/XVSVaultTreasury__factory.ts +413 -0
  224. package/typechain/index.ts +134 -0
@@ -0,0 +1,1297 @@
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
+ }