@gooddollar/goodprotocol 1.0.19 → 1.0.21

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 (330) hide show
  1. package/artifacts/abis/UBIScheme.min.json +1 -1
  2. package/artifacts/contracts/DAOStackInterfaces.sol/Avatar.dbg.json +1 -1
  3. package/artifacts/contracts/DAOStackInterfaces.sol/Controller.dbg.json +1 -1
  4. package/artifacts/contracts/DAOStackInterfaces.sol/GlobalConstraintInterface.dbg.json +1 -1
  5. package/artifacts/contracts/DAOStackInterfaces.sol/IntVoteInterface.dbg.json +1 -1
  6. package/artifacts/contracts/DAOStackInterfaces.sol/ReputationInterface.dbg.json +1 -1
  7. package/artifacts/contracts/DAOStackInterfaces.sol/SchemeRegistrar.dbg.json +1 -1
  8. package/artifacts/contracts/Interfaces.sol/AggregatorV3Interface.dbg.json +1 -1
  9. package/artifacts/contracts/Interfaces.sol/ERC20.dbg.json +1 -1
  10. package/artifacts/contracts/Interfaces.sol/IAaveIncentivesController.dbg.json +1 -1
  11. package/artifacts/contracts/Interfaces.sol/IAdminWallet.dbg.json +1 -1
  12. package/artifacts/contracts/Interfaces.sol/IDonationStaking.dbg.json +1 -1
  13. package/artifacts/contracts/Interfaces.sol/IERC2917.dbg.json +1 -1
  14. package/artifacts/contracts/Interfaces.sol/IFirstClaimPool.dbg.json +1 -1
  15. package/artifacts/contracts/Interfaces.sol/IGoodDollar.dbg.json +1 -1
  16. package/artifacts/contracts/Interfaces.sol/IGoodStaking.dbg.json +1 -1
  17. package/artifacts/contracts/Interfaces.sol/IHasRouter.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces.sol/IIdentity.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces.sol/ILendingPool.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces.sol/INameService.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces.sol/IUBIScheme.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces.sol/ProxyAdmin.dbg.json +1 -1
  23. package/artifacts/contracts/Interfaces.sol/Reserve.dbg.json +1 -1
  24. package/artifacts/contracts/Interfaces.sol/Staking.dbg.json +1 -1
  25. package/artifacts/contracts/Interfaces.sol/Uniswap.dbg.json +1 -1
  26. package/artifacts/contracts/Interfaces.sol/UniswapFactory.dbg.json +1 -1
  27. package/artifacts/contracts/Interfaces.sol/UniswapPair.dbg.json +1 -1
  28. package/artifacts/contracts/Interfaces.sol/cERC20.dbg.json +1 -1
  29. package/artifacts/contracts/governance/ClaimersDistribution.sol/ClaimersDistribution.dbg.json +1 -1
  30. package/artifacts/contracts/governance/CompoundVotingMachine.sol/CompoundVotingMachine.dbg.json +1 -1
  31. package/artifacts/contracts/governance/GReputation.sol/GReputation.dbg.json +1 -1
  32. package/artifacts/contracts/governance/GovernanceStaking.sol/GovernanceStaking.dbg.json +1 -1
  33. package/artifacts/contracts/governance/MultiBaseGovernanceShareField.sol/MultiBaseGovernanceShareField.dbg.json +1 -1
  34. package/artifacts/contracts/governance/Reputation.sol/Reputation.dbg.json +1 -1
  35. package/artifacts/contracts/governance/StakersDistribution.sol/StakersDistribution.dbg.json +1 -1
  36. package/artifacts/contracts/mocks/AaveMock.sol/AaveMock.dbg.json +1 -1
  37. package/artifacts/contracts/mocks/DAIMock.sol/DAIMock.dbg.json +1 -1
  38. package/artifacts/contracts/mocks/DecimalsMock.sol/DecimalsMock.dbg.json +1 -1
  39. package/artifacts/contracts/mocks/GoodCompoundStakingTest.sol/GoodCompoundStakingTest.dbg.json +1 -1
  40. package/artifacts/contracts/mocks/GoodFundManagerTest.sol/GoodFundManagerTest.dbg.json +1 -1
  41. package/artifacts/contracts/mocks/IncentiveControllerMock.sol/IncentiveControllerMock.dbg.json +1 -1
  42. package/artifacts/contracts/mocks/LendingPoolMock.sol/LendingPoolMock.dbg.json +1 -1
  43. package/artifacts/contracts/mocks/OverMintTester.sol/OverMintTester.dbg.json +1 -1
  44. package/artifacts/contracts/mocks/OverMintTesterRegularStake.sol/OverMintTesterRegularStake.dbg.json +1 -1
  45. package/artifacts/contracts/mocks/SixteenDecimalsTokenMock.sol/SixteenDecimalsTokenMock.dbg.json +1 -1
  46. package/artifacts/contracts/mocks/SwapHelperTest.sol/SwapHelperTest.dbg.json +1 -1
  47. package/artifacts/contracts/mocks/TwentyDecimalsTokenMock.sol/TwentyDecimalsTokenMock.dbg.json +1 -1
  48. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock.dbg.json +1 -1
  49. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock2.dbg.json +1 -1
  50. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock3.dbg.json +1 -1
  51. package/artifacts/contracts/mocks/UpgradableMocks.sol/UpgradableMock4.dbg.json +1 -1
  52. package/artifacts/contracts/mocks/UsdcMock.sol/USDCMock.dbg.json +1 -1
  53. package/artifacts/contracts/mocks/cBATMock.sol/cBATMock.dbg.json +1 -1
  54. package/artifacts/contracts/mocks/cDAILowWorthMock.sol/cDAILowWorthMock.dbg.json +1 -1
  55. package/artifacts/contracts/mocks/cDAIMock.sol/cDAIMock.dbg.json +1 -1
  56. package/artifacts/contracts/mocks/cDAINonMintableMock.sol/cDAINonMintableMock.dbg.json +1 -1
  57. package/artifacts/contracts/mocks/cDecimalsMock.sol/cDecimalsMock.dbg.json +1 -1
  58. package/artifacts/contracts/mocks/cSDTMock.sol/cSDTMock.dbg.json +1 -1
  59. package/artifacts/contracts/mocks/cUSDCMock.sol/cUSDCMock.dbg.json +1 -1
  60. package/artifacts/contracts/reserve/ExchangeHelper.sol/ExchangeHelper.dbg.json +1 -1
  61. package/artifacts/contracts/reserve/GoodMarketMaker.sol/GoodMarketMaker.dbg.json +1 -1
  62. package/artifacts/contracts/reserve/GoodReserveCDai.sol/ContributionCalc.dbg.json +1 -1
  63. package/artifacts/contracts/reserve/GoodReserveCDai.sol/GoodReserveCDai.dbg.json +1 -1
  64. package/artifacts/contracts/staking/BaseShareField.sol/BaseShareField.dbg.json +1 -1
  65. package/artifacts/contracts/staking/BaseShareFieldV2.sol/BaseShareFieldV2.dbg.json +1 -1
  66. package/artifacts/contracts/staking/DonationsStaking.sol/DonationsStaking.dbg.json +1 -1
  67. package/artifacts/contracts/staking/GoodFundManager.sol/GoodFundManager.dbg.json +1 -1
  68. package/artifacts/contracts/staking/SimpleStaking.sol/SimpleStaking.dbg.json +1 -1
  69. package/artifacts/contracts/staking/SimpleStakingV2.sol/SimpleStakingV2.dbg.json +1 -1
  70. package/artifacts/contracts/staking/UniswapV2SwapHelper.sol/UniswapV2SwapHelper.dbg.json +1 -1
  71. package/artifacts/contracts/staking/aave/AaveStakingFactory.sol/AaveStakingFactory.dbg.json +1 -1
  72. package/artifacts/contracts/staking/aave/GoodAaveStaking.sol/GoodAaveStaking.dbg.json +1 -1
  73. package/artifacts/contracts/staking/aave/GoodAaveStakingV2.sol/GoodAaveStakingV2.dbg.json +1 -1
  74. package/artifacts/contracts/staking/compound/CompoundStakingFactory.sol/CompoundStakingFactory.dbg.json +1 -1
  75. package/artifacts/contracts/staking/compound/GoodCompoundStaking.sol/GoodCompoundStaking.dbg.json +1 -1
  76. package/artifacts/contracts/staking/compound/GoodCompoundStakingV2.sol/GoodCompoundStakingV2.dbg.json +1 -1
  77. package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.dbg.json +1 -1
  78. package/artifacts/contracts/ubi/UBIScheme.sol/UBIScheme.json +48 -2
  79. package/artifacts/contracts/utils/BancorFormula.sol/BancorFormula.dbg.json +1 -1
  80. package/artifacts/contracts/utils/BulkProof.sol/BulkProof.dbg.json +1 -1
  81. package/artifacts/contracts/utils/DAOContract.sol/DAOContract.dbg.json +1 -1
  82. package/artifacts/contracts/utils/DAOUpgradeableContract.sol/DAOUpgradeableContract.dbg.json +1 -1
  83. package/artifacts/contracts/utils/DSMath.sol/DSMath.dbg.json +1 -1
  84. package/artifacts/contracts/utils/DataTypes.sol/DataTypes.dbg.json +1 -1
  85. package/artifacts/contracts/utils/NameService.sol/NameService.dbg.json +1 -1
  86. package/artifacts/contracts/utils/ProtocolUpgrade.sol/OldMarketMaker.dbg.json +1 -1
  87. package/artifacts/contracts/utils/ProtocolUpgrade.sol/ProtocolUpgrade.dbg.json +1 -1
  88. package/artifacts/contracts/utils/ProtocolUpgradeFuse.sol/ProtocolUpgradeFuse.dbg.json +1 -1
  89. package/artifacts/contracts/utils/ProtocolUpgradeFuseRecover.sol/ProtocolUpgradeFuseRecover.dbg.json +1 -1
  90. package/artifacts/contracts/utils/ProtocolUpgradeRecover.sol/ProtocolUpgradeRecover.dbg.json +1 -1
  91. package/artifacts/contracts/utils/ReputationTestHelper.sol/ReputationTestHelper.dbg.json +1 -1
  92. package/contracts/ubi/UBIScheme.sol +34 -4
  93. package/package.json +3 -2
  94. package/releases/deployment.json +3 -1
  95. package/scripts/misc/claimIncidentStats.ts +97 -0
  96. package/types/AaveMock.ts +1022 -0
  97. package/types/AaveStakingFactory.ts +290 -0
  98. package/types/AaveUSDMockOracle.ts +89 -0
  99. package/types/AccessControlEnumerableUpgradeable.ts +435 -0
  100. package/types/AccessControlUpgradeable.ts +362 -0
  101. package/types/AggregatorV3Interface.ts +192 -0
  102. package/types/Avatar.ts +121 -0
  103. package/types/BancorFormula.ts +974 -0
  104. package/types/BaseShareField.ts +442 -0
  105. package/types/BaseShareFieldV2.ts +361 -0
  106. package/types/BatUSDMockOracle.ts +89 -0
  107. package/types/BulkProof.ts +111 -0
  108. package/types/CBATMock.ts +1194 -0
  109. package/types/CDAILowWorthMock.ts +1160 -0
  110. package/types/CDAIMock.ts +1210 -0
  111. package/types/CDAINonMintableMock.ts +1160 -0
  112. package/types/CDecimalsMock.ts +1194 -0
  113. package/types/CERC20.ts +527 -0
  114. package/types/CSDTMock.ts +1194 -0
  115. package/types/CUSDCMock.ts +1194 -0
  116. package/types/ClaimersDistribution.ts +606 -0
  117. package/types/CompUSDMockOracle.ts +89 -0
  118. package/types/CompoundStakingFactory.ts +261 -0
  119. package/types/CompoundVotingMachine.ts +1690 -0
  120. package/types/ContributionCalc.ts +164 -0
  121. package/types/Controller.ts +547 -0
  122. package/types/DAIMock.ts +1083 -0
  123. package/types/DAOContract.ts +162 -0
  124. package/types/DAOUpgradeableContract.ts +271 -0
  125. package/types/DaiEthPriceMockOracle.ts +89 -0
  126. package/types/DecimalsMock.ts +1022 -0
  127. package/types/DonationsStaking.ts +777 -0
  128. package/types/ERC165Upgradeable.ts +104 -0
  129. package/types/ERC1967Proxy.ts +147 -0
  130. package/types/ERC1967Upgrade.ts +106 -0
  131. package/types/ERC1967UpgradeUpgradeable.ts +107 -0
  132. package/types/ERC20.ts +365 -0
  133. package/types/ERC20BurnableUpgradeable.ts +479 -0
  134. package/types/ERC20PausableUpgradeable.ts +449 -0
  135. package/types/ERC20PresetMinterPauserUpgradeable.ts +1023 -0
  136. package/types/ERC20Upgradeable.ts +417 -0
  137. package/types/EthUSDMockOracle.ts +138 -0
  138. package/types/ExchangeHelper.ts +522 -0
  139. package/types/GReputation.ts +2020 -0
  140. package/types/GasPriceMockOracle.ts +89 -0
  141. package/types/GlobalConstraintInterface.ts +134 -0
  142. package/types/GoodAaveStaking.ts +1752 -0
  143. package/types/GoodAaveStakingV2.ts +1722 -0
  144. package/types/GoodCompoundStaking.ts +1838 -0
  145. package/types/GoodCompoundStakingTest.ts +1948 -0
  146. package/types/GoodCompoundStakingV2.ts +1636 -0
  147. package/types/GoodFundManager.ts +1098 -0
  148. package/types/GoodFundManagerTest.ts +1137 -0
  149. package/types/GoodMarketMaker.ts +974 -0
  150. package/types/GoodReserveCDai.ts +1938 -0
  151. package/types/GovernanceStaking.ts +1267 -0
  152. package/types/IAaveIncentivesController.ts +155 -0
  153. package/types/IAccessControlEnumerableUpgradeable.ts +380 -0
  154. package/types/IAccessControlUpgradeable.ts +307 -0
  155. package/types/IAdminWallet.ts +171 -0
  156. package/types/IBeacon.ts +89 -0
  157. package/types/IBeaconUpgradeable.ts +89 -0
  158. package/types/IDonationStaking.ts +98 -0
  159. package/types/IERC165Upgradeable.ts +104 -0
  160. package/types/IERC1822Proxiable.ts +89 -0
  161. package/types/IERC20MetadataUpgradeable.ts +340 -0
  162. package/types/IERC20Upgradeable.ts +300 -0
  163. package/types/IERC2917.ts +636 -0
  164. package/types/IFirstClaimPool.ts +115 -0
  165. package/types/IGoodDollar.ts +579 -0
  166. package/types/IGoodStaking.ts +264 -0
  167. package/types/IHasRouter.ts +83 -0
  168. package/types/IIdentity.ts +281 -0
  169. package/types/ILendingPool.ts +241 -0
  170. package/types/INameService.ts +86 -0
  171. package/types/IUBIScheme.ts +121 -0
  172. package/types/IncentiveControllerMock.ts +207 -0
  173. package/types/IntVoteInterface.ts +468 -0
  174. package/types/LendingPoolMock.ts +1250 -0
  175. package/types/MultiBaseGovernanceShareField.ts +411 -0
  176. package/types/Multicall.ts +298 -0
  177. package/types/NameService.ts +358 -0
  178. package/types/OldMarketMaker.ts +113 -0
  179. package/types/OverMintTester.ts +176 -0
  180. package/types/OverMintTesterRegularStake.ts +177 -0
  181. package/types/PausableUpgradeable.ts +103 -0
  182. package/types/ProtocolUpgrade.ts +272 -0
  183. package/types/ProtocolUpgradeFuse.ts +166 -0
  184. package/types/ProtocolUpgradeFuseRecover.ts +167 -0
  185. package/types/ProtocolUpgradeRecover.ts +264 -0
  186. package/types/Proxy.ts +66 -0
  187. package/types/ProxyAdmin.ts +210 -0
  188. package/types/ProxyFactory1967.ts +284 -0
  189. package/types/Reputation.ts +936 -0
  190. package/types/ReputationInterface.ts +261 -0
  191. package/types/ReputationTestHelper.ts +175 -0
  192. package/types/Reserve.ts +112 -0
  193. package/types/SchemeRegistrar.ts +164 -0
  194. package/types/SimpleStaking.ts +1514 -0
  195. package/types/SimpleStakingV2.ts +1418 -0
  196. package/types/SixteenDecimalsTokenMock.ts +1023 -0
  197. package/types/StakersDistribution.ts +921 -0
  198. package/types/Staking.ts +158 -0
  199. package/types/SwapHelperTest.ts +120 -0
  200. package/types/TwentyDecimalsTokenMock.ts +1023 -0
  201. package/types/UBIScheme.ts +1454 -0
  202. package/types/USDCMock.ts +1022 -0
  203. package/types/UUPSUpgradeable.ts +179 -0
  204. package/types/Uniswap.ts +423 -0
  205. package/types/UniswapFactory.ts +106 -0
  206. package/types/UniswapPair.ts +187 -0
  207. package/types/UniswapV2SwapHelper.ts +124 -0
  208. package/types/UpgradableMock.ts +321 -0
  209. package/types/UpgradableMock2.ts +283 -0
  210. package/types/UpgradableMock3.ts +308 -0
  211. package/types/UpgradableMock4.ts +308 -0
  212. package/types/common.ts +44 -0
  213. package/types/factories/AaveMock__factory.ts +727 -0
  214. package/types/factories/AaveStakingFactory__factory.ts +262 -0
  215. package/types/factories/AaveUSDMockOracle__factory.ts +75 -0
  216. package/types/factories/AccessControlEnumerableUpgradeable__factory.ts +279 -0
  217. package/types/factories/AccessControlUpgradeable__factory.ts +234 -0
  218. package/types/factories/AggregatorV3Interface__factory.ts +121 -0
  219. package/types/factories/Avatar__factory.ts +59 -0
  220. package/types/factories/BancorFormula__factory.ts +674 -0
  221. package/types/factories/BaseShareFieldV2__factory.ts +251 -0
  222. package/types/factories/BaseShareField__factory.ts +307 -0
  223. package/types/factories/BatUSDMockOracle__factory.ts +75 -0
  224. package/types/factories/BulkProof__factory.ts +89 -0
  225. package/types/factories/CBATMock__factory.ts +831 -0
  226. package/types/factories/CDAILowWorthMock__factory.ts +821 -0
  227. package/types/factories/CDAIMock__factory.ts +844 -0
  228. package/types/factories/CDAINonMintableMock__factory.ts +821 -0
  229. package/types/factories/CDecimalsMock__factory.ts +831 -0
  230. package/types/factories/CERC20__factory.ts +368 -0
  231. package/types/factories/CSDTMock__factory.ts +831 -0
  232. package/types/factories/CUSDCMock__factory.ts +831 -0
  233. package/types/factories/ClaimersDistribution__factory.ts +404 -0
  234. package/types/factories/CompUSDMockOracle__factory.ts +75 -0
  235. package/types/factories/CompoundStakingFactory__factory.ts +249 -0
  236. package/types/factories/CompoundVotingMachine__factory.ts +1182 -0
  237. package/types/factories/ContributionCalc__factory.ts +83 -0
  238. package/types/factories/Controller__factory.ts +359 -0
  239. package/types/factories/DAIMock__factory.ts +770 -0
  240. package/types/factories/DAOContract__factory.ts +118 -0
  241. package/types/factories/DAOUpgradeableContract__factory.ts +201 -0
  242. package/types/factories/DaiEthPriceMockOracle__factory.ts +79 -0
  243. package/types/factories/DecimalsMock__factory.ts +742 -0
  244. package/types/factories/DonationsStaking__factory.ts +554 -0
  245. package/types/factories/ERC165Upgradeable__factory.ts +45 -0
  246. package/types/factories/ERC1967Proxy__factory.ts +130 -0
  247. package/types/factories/ERC1967UpgradeUpgradeable__factory.ts +75 -0
  248. package/types/factories/ERC1967Upgrade__factory.ts +71 -0
  249. package/types/factories/ERC20BurnableUpgradeable__factory.ts +331 -0
  250. package/types/factories/ERC20PausableUpgradeable__factory.ts +339 -0
  251. package/types/factories/ERC20PresetMinterPauserUpgradeable__factory.ts +733 -0
  252. package/types/factories/ERC20Upgradeable__factory.ts +332 -0
  253. package/types/factories/ERC20__factory.ts +272 -0
  254. package/types/factories/EthUSDMockOracle__factory.ts +108 -0
  255. package/types/factories/ExchangeHelper__factory.ts +401 -0
  256. package/types/factories/GReputation__factory.ts +1415 -0
  257. package/types/factories/GasPriceMockOracle__factory.ts +75 -0
  258. package/types/factories/GlobalConstraintInterface__factory.ts +72 -0
  259. package/types/factories/GoodAaveStakingV2__factory.ts +1227 -0
  260. package/types/factories/GoodAaveStaking__factory.ts +1263 -0
  261. package/types/factories/GoodCompoundStakingTest__factory.ts +1457 -0
  262. package/types/factories/GoodCompoundStakingV2__factory.ts +1169 -0
  263. package/types/factories/GoodCompoundStaking__factory.ts +1303 -0
  264. package/types/factories/GoodFundManagerTest__factory.ts +775 -0
  265. package/types/factories/GoodFundManager__factory.ts +733 -0
  266. package/types/factories/GoodMarketMaker__factory.ts +661 -0
  267. package/types/factories/GoodReserveCDai__factory.ts +1391 -0
  268. package/types/factories/GovernanceStaking__factory.ts +922 -0
  269. package/types/factories/IAaveIncentivesController__factory.ts +83 -0
  270. package/types/factories/IAccessControlEnumerableUpgradeable__factory.ts +247 -0
  271. package/types/factories/IAccessControlUpgradeable__factory.ts +202 -0
  272. package/types/factories/IAdminWallet__factory.ts +75 -0
  273. package/types/factories/IBeaconUpgradeable__factory.ts +39 -0
  274. package/types/factories/IBeacon__factory.ts +36 -0
  275. package/types/factories/IDonationStaking__factory.ts +33 -0
  276. package/types/factories/IERC165Upgradeable__factory.ts +45 -0
  277. package/types/factories/IERC1822Proxiable__factory.ts +39 -0
  278. package/types/factories/IERC20MetadataUpgradeable__factory.ts +252 -0
  279. package/types/factories/IERC20Upgradeable__factory.ts +209 -0
  280. package/types/factories/IERC2917__factory.ts +480 -0
  281. package/types/factories/IFirstClaimPool__factory.ts +58 -0
  282. package/types/factories/IGoodDollar__factory.ts +411 -0
  283. package/types/factories/IGoodStaking__factory.ts +175 -0
  284. package/types/factories/IHasRouter__factory.ts +36 -0
  285. package/types/factories/IIdentity__factory.ts +150 -0
  286. package/types/factories/ILendingPool__factory.ts +168 -0
  287. package/types/factories/INameService__factory.ts +42 -0
  288. package/types/factories/IUBIScheme__factory.ts +68 -0
  289. package/types/factories/IncentiveControllerMock__factory.ts +166 -0
  290. package/types/factories/IntVoteInterface__factory.ts +349 -0
  291. package/types/factories/LendingPoolMock__factory.ts +914 -0
  292. package/types/factories/MultiBaseGovernanceShareField__factory.ts +240 -0
  293. package/types/factories/Multicall__factory.ts +215 -0
  294. package/types/factories/NameService__factory.ts +264 -0
  295. package/types/factories/OldMarketMaker__factory.ts +62 -0
  296. package/types/factories/OverMintTesterRegularStake__factory.ts +156 -0
  297. package/types/factories/OverMintTester__factory.ts +152 -0
  298. package/types/factories/PausableUpgradeable__factory.ts +65 -0
  299. package/types/factories/ProtocolUpgradeFuseRecover__factory.ts +146 -0
  300. package/types/factories/ProtocolUpgradeFuse__factory.ts +142 -0
  301. package/types/factories/ProtocolUpgradeRecover__factory.ts +184 -0
  302. package/types/factories/ProtocolUpgrade__factory.ts +207 -0
  303. package/types/factories/ProxyAdmin__factory.ts +105 -0
  304. package/types/factories/ProxyFactory1967__factory.ts +223 -0
  305. package/types/factories/Proxy__factory.ts +28 -0
  306. package/types/factories/ReputationInterface__factory.ts +168 -0
  307. package/types/factories/ReputationTestHelper__factory.ts +141 -0
  308. package/types/factories/Reputation__factory.ts +667 -0
  309. package/types/factories/Reserve__factory.ts +52 -0
  310. package/types/factories/SchemeRegistrar__factory.ts +114 -0
  311. package/types/factories/SimpleStakingV2__factory.ts +986 -0
  312. package/types/factories/SimpleStaking__factory.ts +1045 -0
  313. package/types/factories/SixteenDecimalsTokenMock__factory.ts +734 -0
  314. package/types/factories/StakersDistribution__factory.ts +591 -0
  315. package/types/factories/Staking__factory.ts +74 -0
  316. package/types/factories/SwapHelperTest__factory.ts +96 -0
  317. package/types/factories/TwentyDecimalsTokenMock__factory.ts +734 -0
  318. package/types/factories/UBIScheme__factory.ts +1015 -0
  319. package/types/factories/USDCMock__factory.ts +727 -0
  320. package/types/factories/UUPSUpgradeable__factory.ts +102 -0
  321. package/types/factories/UniswapFactory__factory.ts +50 -0
  322. package/types/factories/UniswapPair__factory.ts +117 -0
  323. package/types/factories/UniswapV2SwapHelper__factory.ts +101 -0
  324. package/types/factories/Uniswap__factory.ts +272 -0
  325. package/types/factories/UpgradableMock2__factory.ts +210 -0
  326. package/types/factories/UpgradableMock3__factory.ts +223 -0
  327. package/types/factories/UpgradableMock4__factory.ts +223 -0
  328. package/types/factories/UpgradableMock__factory.ts +236 -0
  329. package/types/hardhat.d.ts +1077 -0
  330. package/types/index.ts +236 -0
@@ -0,0 +1,104 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ ethers,
7
+ EventFilter,
8
+ Signer,
9
+ BigNumber,
10
+ BigNumberish,
11
+ PopulatedTransaction,
12
+ BaseContract,
13
+ ContractTransaction,
14
+ CallOverrides,
15
+ } from "ethers";
16
+ import { BytesLike } from "@ethersproject/bytes";
17
+ import { Listener, Provider } from "@ethersproject/providers";
18
+ import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
19
+ import type {
20
+ TypedEventFilter,
21
+ TypedEvent,
22
+ TypedListener,
23
+ OnEvent,
24
+ } from "./common";
25
+
26
+ export interface ERC165UpgradeableInterface extends ethers.utils.Interface {
27
+ functions: {
28
+ "supportsInterface(bytes4)": FunctionFragment;
29
+ };
30
+
31
+ encodeFunctionData(
32
+ functionFragment: "supportsInterface",
33
+ values: [BytesLike]
34
+ ): string;
35
+
36
+ decodeFunctionResult(
37
+ functionFragment: "supportsInterface",
38
+ data: BytesLike
39
+ ): Result;
40
+
41
+ events: {};
42
+ }
43
+
44
+ export interface ERC165Upgradeable extends BaseContract {
45
+ connect(signerOrProvider: Signer | Provider | string): this;
46
+ attach(addressOrName: string): this;
47
+ deployed(): Promise<this>;
48
+
49
+ interface: ERC165UpgradeableInterface;
50
+
51
+ queryFilter<TEvent extends TypedEvent>(
52
+ event: TypedEventFilter<TEvent>,
53
+ fromBlockOrBlockhash?: string | number | undefined,
54
+ toBlock?: string | number | undefined
55
+ ): Promise<Array<TEvent>>;
56
+
57
+ listeners<TEvent extends TypedEvent>(
58
+ eventFilter?: TypedEventFilter<TEvent>
59
+ ): Array<TypedListener<TEvent>>;
60
+ listeners(eventName?: string): Array<Listener>;
61
+ removeAllListeners<TEvent extends TypedEvent>(
62
+ eventFilter: TypedEventFilter<TEvent>
63
+ ): this;
64
+ removeAllListeners(eventName?: string): this;
65
+ off: OnEvent<this>;
66
+ on: OnEvent<this>;
67
+ once: OnEvent<this>;
68
+ removeListener: OnEvent<this>;
69
+
70
+ functions: {
71
+ supportsInterface(
72
+ interfaceId: BytesLike,
73
+ overrides?: CallOverrides
74
+ ): Promise<[boolean]>;
75
+ };
76
+
77
+ supportsInterface(
78
+ interfaceId: BytesLike,
79
+ overrides?: CallOverrides
80
+ ): Promise<boolean>;
81
+
82
+ callStatic: {
83
+ supportsInterface(
84
+ interfaceId: BytesLike,
85
+ overrides?: CallOverrides
86
+ ): Promise<boolean>;
87
+ };
88
+
89
+ filters: {};
90
+
91
+ estimateGas: {
92
+ supportsInterface(
93
+ interfaceId: BytesLike,
94
+ overrides?: CallOverrides
95
+ ): Promise<BigNumber>;
96
+ };
97
+
98
+ populateTransaction: {
99
+ supportsInterface(
100
+ interfaceId: BytesLike,
101
+ overrides?: CallOverrides
102
+ ): Promise<PopulatedTransaction>;
103
+ };
104
+ }
@@ -0,0 +1,147 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ ethers,
7
+ EventFilter,
8
+ Signer,
9
+ BigNumber,
10
+ BigNumberish,
11
+ PopulatedTransaction,
12
+ BaseContract,
13
+ ContractTransaction,
14
+ PayableOverrides,
15
+ CallOverrides,
16
+ } from "ethers";
17
+ import { BytesLike } from "@ethersproject/bytes";
18
+ import { Listener, Provider } from "@ethersproject/providers";
19
+ import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
20
+ import type {
21
+ TypedEventFilter,
22
+ TypedEvent,
23
+ TypedListener,
24
+ OnEvent,
25
+ } from "./common";
26
+
27
+ export interface ERC1967ProxyInterface extends ethers.utils.Interface {
28
+ functions: {
29
+ "initialize(address,bytes)": FunctionFragment;
30
+ };
31
+
32
+ encodeFunctionData(
33
+ functionFragment: "initialize",
34
+ values: [string, BytesLike]
35
+ ): string;
36
+
37
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
38
+
39
+ events: {
40
+ "AdminChanged(address,address)": EventFragment;
41
+ "BeaconUpgraded(address)": EventFragment;
42
+ "Upgraded(address)": EventFragment;
43
+ };
44
+
45
+ getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
46
+ getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
47
+ getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
48
+ }
49
+
50
+ export type AdminChangedEvent = TypedEvent<
51
+ [string, string],
52
+ { previousAdmin: string; newAdmin: string }
53
+ >;
54
+
55
+ export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
56
+
57
+ export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
58
+
59
+ export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
60
+
61
+ export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
62
+
63
+ export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
64
+
65
+ export interface ERC1967Proxy extends BaseContract {
66
+ connect(signerOrProvider: Signer | Provider | string): this;
67
+ attach(addressOrName: string): this;
68
+ deployed(): Promise<this>;
69
+
70
+ interface: ERC1967ProxyInterface;
71
+
72
+ queryFilter<TEvent extends TypedEvent>(
73
+ event: TypedEventFilter<TEvent>,
74
+ fromBlockOrBlockhash?: string | number | undefined,
75
+ toBlock?: string | number | undefined
76
+ ): Promise<Array<TEvent>>;
77
+
78
+ listeners<TEvent extends TypedEvent>(
79
+ eventFilter?: TypedEventFilter<TEvent>
80
+ ): Array<TypedListener<TEvent>>;
81
+ listeners(eventName?: string): Array<Listener>;
82
+ removeAllListeners<TEvent extends TypedEvent>(
83
+ eventFilter: TypedEventFilter<TEvent>
84
+ ): this;
85
+ removeAllListeners(eventName?: string): this;
86
+ off: OnEvent<this>;
87
+ on: OnEvent<this>;
88
+ once: OnEvent<this>;
89
+ removeListener: OnEvent<this>;
90
+
91
+ functions: {
92
+ initialize(
93
+ _logic: string,
94
+ _data: BytesLike,
95
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
96
+ ): Promise<ContractTransaction>;
97
+ };
98
+
99
+ initialize(
100
+ _logic: string,
101
+ _data: BytesLike,
102
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
103
+ ): Promise<ContractTransaction>;
104
+
105
+ callStatic: {
106
+ initialize(
107
+ _logic: string,
108
+ _data: BytesLike,
109
+ overrides?: CallOverrides
110
+ ): Promise<void>;
111
+ };
112
+
113
+ filters: {
114
+ "AdminChanged(address,address)"(
115
+ previousAdmin?: null,
116
+ newAdmin?: null
117
+ ): AdminChangedEventFilter;
118
+ AdminChanged(
119
+ previousAdmin?: null,
120
+ newAdmin?: null
121
+ ): AdminChangedEventFilter;
122
+
123
+ "BeaconUpgraded(address)"(
124
+ beacon?: string | null
125
+ ): BeaconUpgradedEventFilter;
126
+ BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
127
+
128
+ "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
129
+ Upgraded(implementation?: string | null): UpgradedEventFilter;
130
+ };
131
+
132
+ estimateGas: {
133
+ initialize(
134
+ _logic: string,
135
+ _data: BytesLike,
136
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
137
+ ): Promise<BigNumber>;
138
+ };
139
+
140
+ populateTransaction: {
141
+ initialize(
142
+ _logic: string,
143
+ _data: BytesLike,
144
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
145
+ ): Promise<PopulatedTransaction>;
146
+ };
147
+ }
@@ -0,0 +1,106 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ ethers,
7
+ EventFilter,
8
+ Signer,
9
+ BigNumber,
10
+ BigNumberish,
11
+ PopulatedTransaction,
12
+ BaseContract,
13
+ ContractTransaction,
14
+ } from "ethers";
15
+ import { BytesLike } from "@ethersproject/bytes";
16
+ import { Listener, Provider } from "@ethersproject/providers";
17
+ import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export interface ERC1967UpgradeInterface extends ethers.utils.Interface {
26
+ functions: {};
27
+
28
+ events: {
29
+ "AdminChanged(address,address)": EventFragment;
30
+ "BeaconUpgraded(address)": EventFragment;
31
+ "Upgraded(address)": EventFragment;
32
+ };
33
+
34
+ getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
35
+ getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
36
+ getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
37
+ }
38
+
39
+ export type AdminChangedEvent = TypedEvent<
40
+ [string, string],
41
+ { previousAdmin: string; newAdmin: string }
42
+ >;
43
+
44
+ export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
45
+
46
+ export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
47
+
48
+ export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
49
+
50
+ export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
51
+
52
+ export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
53
+
54
+ export interface ERC1967Upgrade extends BaseContract {
55
+ connect(signerOrProvider: Signer | Provider | string): this;
56
+ attach(addressOrName: string): this;
57
+ deployed(): Promise<this>;
58
+
59
+ interface: ERC1967UpgradeInterface;
60
+
61
+ queryFilter<TEvent extends TypedEvent>(
62
+ event: TypedEventFilter<TEvent>,
63
+ fromBlockOrBlockhash?: string | number | undefined,
64
+ toBlock?: string | number | undefined
65
+ ): Promise<Array<TEvent>>;
66
+
67
+ listeners<TEvent extends TypedEvent>(
68
+ eventFilter?: TypedEventFilter<TEvent>
69
+ ): Array<TypedListener<TEvent>>;
70
+ listeners(eventName?: string): Array<Listener>;
71
+ removeAllListeners<TEvent extends TypedEvent>(
72
+ eventFilter: TypedEventFilter<TEvent>
73
+ ): this;
74
+ removeAllListeners(eventName?: string): this;
75
+ off: OnEvent<this>;
76
+ on: OnEvent<this>;
77
+ once: OnEvent<this>;
78
+ removeListener: OnEvent<this>;
79
+
80
+ functions: {};
81
+
82
+ callStatic: {};
83
+
84
+ filters: {
85
+ "AdminChanged(address,address)"(
86
+ previousAdmin?: null,
87
+ newAdmin?: null
88
+ ): AdminChangedEventFilter;
89
+ AdminChanged(
90
+ previousAdmin?: null,
91
+ newAdmin?: null
92
+ ): AdminChangedEventFilter;
93
+
94
+ "BeaconUpgraded(address)"(
95
+ beacon?: string | null
96
+ ): BeaconUpgradedEventFilter;
97
+ BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
98
+
99
+ "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
100
+ Upgraded(implementation?: string | null): UpgradedEventFilter;
101
+ };
102
+
103
+ estimateGas: {};
104
+
105
+ populateTransaction: {};
106
+ }
@@ -0,0 +1,107 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ ethers,
7
+ EventFilter,
8
+ Signer,
9
+ BigNumber,
10
+ BigNumberish,
11
+ PopulatedTransaction,
12
+ BaseContract,
13
+ ContractTransaction,
14
+ } from "ethers";
15
+ import { BytesLike } from "@ethersproject/bytes";
16
+ import { Listener, Provider } from "@ethersproject/providers";
17
+ import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ } from "./common";
24
+
25
+ export interface ERC1967UpgradeUpgradeableInterface
26
+ extends ethers.utils.Interface {
27
+ functions: {};
28
+
29
+ events: {
30
+ "AdminChanged(address,address)": EventFragment;
31
+ "BeaconUpgraded(address)": EventFragment;
32
+ "Upgraded(address)": EventFragment;
33
+ };
34
+
35
+ getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
36
+ getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
37
+ getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
38
+ }
39
+
40
+ export type AdminChangedEvent = TypedEvent<
41
+ [string, string],
42
+ { previousAdmin: string; newAdmin: string }
43
+ >;
44
+
45
+ export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
46
+
47
+ export type BeaconUpgradedEvent = TypedEvent<[string], { beacon: string }>;
48
+
49
+ export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
50
+
51
+ export type UpgradedEvent = TypedEvent<[string], { implementation: string }>;
52
+
53
+ export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
54
+
55
+ export interface ERC1967UpgradeUpgradeable extends BaseContract {
56
+ connect(signerOrProvider: Signer | Provider | string): this;
57
+ attach(addressOrName: string): this;
58
+ deployed(): Promise<this>;
59
+
60
+ interface: ERC1967UpgradeUpgradeableInterface;
61
+
62
+ queryFilter<TEvent extends TypedEvent>(
63
+ event: TypedEventFilter<TEvent>,
64
+ fromBlockOrBlockhash?: string | number | undefined,
65
+ toBlock?: string | number | undefined
66
+ ): Promise<Array<TEvent>>;
67
+
68
+ listeners<TEvent extends TypedEvent>(
69
+ eventFilter?: TypedEventFilter<TEvent>
70
+ ): Array<TypedListener<TEvent>>;
71
+ listeners(eventName?: string): Array<Listener>;
72
+ removeAllListeners<TEvent extends TypedEvent>(
73
+ eventFilter: TypedEventFilter<TEvent>
74
+ ): this;
75
+ removeAllListeners(eventName?: string): this;
76
+ off: OnEvent<this>;
77
+ on: OnEvent<this>;
78
+ once: OnEvent<this>;
79
+ removeListener: OnEvent<this>;
80
+
81
+ functions: {};
82
+
83
+ callStatic: {};
84
+
85
+ filters: {
86
+ "AdminChanged(address,address)"(
87
+ previousAdmin?: null,
88
+ newAdmin?: null
89
+ ): AdminChangedEventFilter;
90
+ AdminChanged(
91
+ previousAdmin?: null,
92
+ newAdmin?: null
93
+ ): AdminChangedEventFilter;
94
+
95
+ "BeaconUpgraded(address)"(
96
+ beacon?: string | null
97
+ ): BeaconUpgradedEventFilter;
98
+ BeaconUpgraded(beacon?: string | null): BeaconUpgradedEventFilter;
99
+
100
+ "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter;
101
+ Upgraded(implementation?: string | null): UpgradedEventFilter;
102
+ };
103
+
104
+ estimateGas: {};
105
+
106
+ populateTransaction: {};
107
+ }