@gooddollar/goodcollective-contracts 1.0.1 → 1.0.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 (180) hide show
  1. package/contracts/DirectPayments/DirectPaymentsPool.sol +12 -2
  2. package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +264 -0
  3. package/contracts/GoodCollective/SuperAppBaseFlow.sol +204 -0
  4. package/contracts/utils/SwapRouterMock.sol +32 -0
  5. package/package.json +4 -1
  6. package/releases/deployment.json +7984 -2746
  7. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface.ts +199 -0
  8. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20.ts +630 -0
  9. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20.ts +450 -0
  10. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController.ts +161 -0
  11. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet.ts +189 -0
  12. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking.ts +98 -0
  13. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917.ts +750 -0
  14. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool.ts +144 -0
  15. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar.ts +1033 -0
  16. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking.ts +281 -0
  17. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter.ts +81 -0
  18. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity.ts +598 -0
  19. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2.ts +689 -0
  20. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool.ts +257 -0
  21. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter.ts +179 -0
  22. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService.ts +100 -0
  23. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme.ts +137 -0
  24. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin.ts +278 -0
  25. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve.ts +117 -0
  26. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking.ts +175 -0
  27. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap.ts +464 -0
  28. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory.ts +105 -0
  29. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair.ts +209 -0
  30. package/typechain-types/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  31. package/typechain-types/@gooddollar/goodprotocol/contracts/index.ts +7 -0
  32. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +115 -0
  33. package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  34. package/typechain-types/@gooddollar/goodprotocol/contracts/token/index.ts +7 -0
  35. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom.ts +726 -0
  36. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar.ts +3662 -0
  37. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  38. package/typechain-types/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +5 -0
  39. package/typechain-types/@gooddollar/goodprotocol/index.ts +5 -0
  40. package/typechain-types/@gooddollar/index.ts +5 -0
  41. package/typechain-types/@openzeppelin/contracts/index.ts +4 -0
  42. package/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +342 -0
  43. package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  44. package/typechain-types/@openzeppelin/contracts/token/ERC721/IERC721.ts +559 -0
  45. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +619 -0
  46. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  47. package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +6 -0
  48. package/typechain-types/@openzeppelin/contracts/token/ERC777/IERC777.ts +650 -0
  49. package/typechain-types/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  50. package/typechain-types/@openzeppelin/contracts/token/index.ts +9 -0
  51. package/typechain-types/@openzeppelin/contracts/utils/index.ts +5 -0
  52. package/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +103 -0
  53. package/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  54. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/index.ts +5 -0
  55. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1.ts +1390 -0
  56. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1.ts +1280 -0
  57. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  58. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +9 -0
  59. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT.ts +876 -0
  60. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT.ts +945 -0
  61. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase.ts +807 -0
  62. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement.ts +157 -0
  63. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp.ts +457 -0
  64. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken.ts +2806 -0
  65. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory.ts +465 -0
  66. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid.ts +1727 -0
  67. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance.ts +506 -0
  68. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken.ts +1010 -0
  69. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  70. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo.ts +384 -0
  71. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo.ts +109 -0
  72. package/typechain-types/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  73. package/typechain-types/@superfluid-finance/ethereum-contracts/index.ts +5 -0
  74. package/typechain-types/@superfluid-finance/index.ts +5 -0
  75. package/typechain-types/@uniswap/index.ts +7 -0
  76. package/typechain-types/@uniswap/v3-core/contracts/index.ts +5 -0
  77. package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts +122 -0
  78. package/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  79. package/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts +5 -0
  80. package/typechain-types/@uniswap/v3-core/index.ts +5 -0
  81. package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +5 -0
  82. package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +369 -0
  83. package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  84. package/typechain-types/@uniswap/v3-periphery/index.ts +5 -0
  85. package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +763 -0
  86. package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +843 -0
  87. package/typechain-types/contracts/GoodCollective/SuperAppBaseFlow.ts +523 -0
  88. package/typechain-types/contracts/GoodCollective/index.ts +5 -0
  89. package/typechain-types/contracts/index.ts +4 -1
  90. package/typechain-types/contracts/utils/SwapRouterMock.ts +194 -0
  91. package/typechain-types/contracts/utils/index.ts +4 -0
  92. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface__factory.ts +121 -0
  93. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20__factory.ts +384 -0
  94. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ERC20__factory.ts +288 -0
  95. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAaveIncentivesController__factory.ts +83 -0
  96. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IAdminWallet__factory.ts +78 -0
  97. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IDonationStaking__factory.ts +33 -0
  98. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IERC2917__factory.ts +496 -0
  99. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IFirstClaimPool__factory.ts +65 -0
  100. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodDollar__factory.ts +598 -0
  101. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IGoodStaking__factory.ts +178 -0
  102. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IHasRouter__factory.ts +39 -0
  103. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentityV2__factory.ts +334 -0
  104. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IIdentity__factory.ts +287 -0
  105. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ILendingPool__factory.ts +171 -0
  106. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IMultichainRouter__factory.ts +82 -0
  107. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/INameService__factory.ts +45 -0
  108. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/IUBIScheme__factory.ts +71 -0
  109. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/ProxyAdmin__factory.ts +131 -0
  110. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Reserve__factory.ts +55 -0
  111. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Staking__factory.ts +77 -0
  112. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapFactory__factory.ts +50 -0
  113. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/UniswapPair__factory.ts +120 -0
  114. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/Uniswap__factory.ts +275 -0
  115. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/Interfaces.sol/index.ts +26 -0
  116. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/index.ts +5 -0
  117. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +60 -0
  118. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +4 -0
  119. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/index.ts +5 -0
  120. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/IGoodDollarCustom__factory.ts +370 -0
  121. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/ISuperGoodDollar__factory.ts +2301 -0
  122. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/ISuperGoodDollar.sol/index.ts +5 -0
  123. package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/superfluid/index.ts +4 -0
  124. package/typechain-types/factories/@gooddollar/goodprotocol/index.ts +4 -0
  125. package/typechain-types/factories/@gooddollar/index.ts +4 -0
  126. package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +4 -0
  129. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.ts +311 -0
  130. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +356 -0
  131. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  132. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +5 -0
  133. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/IERC777__factory.ts +417 -0
  134. package/typechain-types/factories/@openzeppelin/contracts/token/ERC777/index.ts +4 -0
  135. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +6 -0
  136. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +4 -0
  137. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +45 -0
  138. package/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
  139. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/index.ts +4 -0
  140. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IConstantFlowAgreementV1__factory.ts +986 -0
  141. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/IInstantDistributionAgreementV1__factory.ts +1015 -0
  142. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/agreements/index.ts +5 -0
  143. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/index.ts +6 -0
  144. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantInflowNFT__factory.ts +551 -0
  145. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IConstantOutflowNFT__factory.ts +614 -0
  146. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/IFlowNFTBase__factory.ts +515 -0
  147. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperAgreement__factory.ts +78 -0
  148. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp__factory.ts +275 -0
  149. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory__factory.ts +276 -0
  150. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken__factory.ts +1839 -0
  151. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidGovernance__factory.ts +264 -0
  152. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken__factory.ts +697 -0
  153. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluid__factory.ts +1151 -0
  154. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/index.ts +13 -0
  155. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/ERC20WithTokenInfo__factory.ts +248 -0
  156. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/TokenInfo__factory.ts +65 -0
  157. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/contracts/interfaces/tokens/index.ts +5 -0
  158. package/typechain-types/factories/@superfluid-finance/ethereum-contracts/index.ts +4 -0
  159. package/typechain-types/factories/@superfluid-finance/index.ts +4 -0
  160. package/typechain-types/factories/@uniswap/index.ts +5 -0
  161. package/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +4 -0
  162. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +53 -0
  163. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +4 -0
  164. package/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +4 -0
  165. package/typechain-types/factories/@uniswap/v3-core/index.ts +4 -0
  166. package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +4 -0
  167. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +263 -0
  168. package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +4 -0
  169. package/typechain-types/factories/@uniswap/v3-periphery/index.ts +4 -0
  170. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +1 -1
  171. package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +581 -3
  172. package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +584 -0
  173. package/typechain-types/factories/contracts/GoodCollective/SuperAppBaseFlow__factory.ts +335 -0
  174. package/typechain-types/factories/contracts/GoodCollective/index.ts +5 -0
  175. package/typechain-types/factories/contracts/index.ts +2 -1
  176. package/typechain-types/factories/contracts/utils/SwapRouterMock__factory.ts +183 -0
  177. package/typechain-types/factories/contracts/utils/index.ts +4 -0
  178. package/typechain-types/factories/index.ts +3 -0
  179. package/typechain-types/hardhat.d.ts +445 -4
  180. package/typechain-types/index.ts +106 -4
@@ -0,0 +1,450 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ PromiseOrValue,
28
+ } from "../../../../common";
29
+
30
+ export interface ERC20Interface extends utils.Interface {
31
+ functions: {
32
+ "allowance(address,address)": FunctionFragment;
33
+ "approve(address,uint256)": FunctionFragment;
34
+ "balanceOf(address)": FunctionFragment;
35
+ "burn(uint256)": FunctionFragment;
36
+ "decimals()": FunctionFragment;
37
+ "mint(address,uint256)": FunctionFragment;
38
+ "name()": FunctionFragment;
39
+ "symbol()": FunctionFragment;
40
+ "totalSupply()": FunctionFragment;
41
+ "transfer(address,uint256)": FunctionFragment;
42
+ "transferFrom(address,address,uint256)": FunctionFragment;
43
+ };
44
+
45
+ getFunction(
46
+ nameOrSignatureOrTopic:
47
+ | "allowance"
48
+ | "approve"
49
+ | "balanceOf"
50
+ | "burn"
51
+ | "decimals"
52
+ | "mint"
53
+ | "name"
54
+ | "symbol"
55
+ | "totalSupply"
56
+ | "transfer"
57
+ | "transferFrom"
58
+ ): FunctionFragment;
59
+
60
+ encodeFunctionData(
61
+ functionFragment: "allowance",
62
+ values: [PromiseOrValue<string>, PromiseOrValue<string>]
63
+ ): string;
64
+ encodeFunctionData(
65
+ functionFragment: "approve",
66
+ values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
67
+ ): string;
68
+ encodeFunctionData(
69
+ functionFragment: "balanceOf",
70
+ values: [PromiseOrValue<string>]
71
+ ): string;
72
+ encodeFunctionData(
73
+ functionFragment: "burn",
74
+ values: [PromiseOrValue<BigNumberish>]
75
+ ): string;
76
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
77
+ encodeFunctionData(
78
+ functionFragment: "mint",
79
+ values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
80
+ ): string;
81
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
82
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
83
+ encodeFunctionData(
84
+ functionFragment: "totalSupply",
85
+ values?: undefined
86
+ ): string;
87
+ encodeFunctionData(
88
+ functionFragment: "transfer",
89
+ values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
90
+ ): string;
91
+ encodeFunctionData(
92
+ functionFragment: "transferFrom",
93
+ values: [
94
+ PromiseOrValue<string>,
95
+ PromiseOrValue<string>,
96
+ PromiseOrValue<BigNumberish>
97
+ ]
98
+ ): string;
99
+
100
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
101
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
102
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
103
+ decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
104
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
105
+ decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
106
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
107
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
108
+ decodeFunctionResult(
109
+ functionFragment: "totalSupply",
110
+ data: BytesLike
111
+ ): Result;
112
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
113
+ decodeFunctionResult(
114
+ functionFragment: "transferFrom",
115
+ data: BytesLike
116
+ ): Result;
117
+
118
+ events: {
119
+ "Transfer(address,address,uint256)": EventFragment;
120
+ "Transfer(address,address,uint256,bytes)": EventFragment;
121
+ };
122
+
123
+ getEvent(
124
+ nameOrSignatureOrTopic: "Transfer(address,address,uint256)"
125
+ ): EventFragment;
126
+ getEvent(
127
+ nameOrSignatureOrTopic: "Transfer(address,address,uint256,bytes)"
128
+ ): EventFragment;
129
+ }
130
+
131
+ export interface Transfer_address_address_uint256_EventObject {
132
+ from: string;
133
+ to: string;
134
+ amount: BigNumber;
135
+ }
136
+ export type Transfer_address_address_uint256_Event = TypedEvent<
137
+ [string, string, BigNumber],
138
+ Transfer_address_address_uint256_EventObject
139
+ >;
140
+
141
+ export type Transfer_address_address_uint256_EventFilter =
142
+ TypedEventFilter<Transfer_address_address_uint256_Event>;
143
+
144
+ export interface Transfer_address_address_uint256_bytes_EventObject {
145
+ from: string;
146
+ to: string;
147
+ amount: BigNumber;
148
+ data: string;
149
+ }
150
+ export type Transfer_address_address_uint256_bytes_Event = TypedEvent<
151
+ [string, string, BigNumber, string],
152
+ Transfer_address_address_uint256_bytes_EventObject
153
+ >;
154
+
155
+ export type Transfer_address_address_uint256_bytes_EventFilter =
156
+ TypedEventFilter<Transfer_address_address_uint256_bytes_Event>;
157
+
158
+ export interface ERC20 extends BaseContract {
159
+ connect(signerOrProvider: Signer | Provider | string): this;
160
+ attach(addressOrName: string): this;
161
+ deployed(): Promise<this>;
162
+
163
+ interface: ERC20Interface;
164
+
165
+ queryFilter<TEvent extends TypedEvent>(
166
+ event: TypedEventFilter<TEvent>,
167
+ fromBlockOrBlockhash?: string | number | undefined,
168
+ toBlock?: string | number | undefined
169
+ ): Promise<Array<TEvent>>;
170
+
171
+ listeners<TEvent extends TypedEvent>(
172
+ eventFilter?: TypedEventFilter<TEvent>
173
+ ): Array<TypedListener<TEvent>>;
174
+ listeners(eventName?: string): Array<Listener>;
175
+ removeAllListeners<TEvent extends TypedEvent>(
176
+ eventFilter: TypedEventFilter<TEvent>
177
+ ): this;
178
+ removeAllListeners(eventName?: string): this;
179
+ off: OnEvent<this>;
180
+ on: OnEvent<this>;
181
+ once: OnEvent<this>;
182
+ removeListener: OnEvent<this>;
183
+
184
+ functions: {
185
+ allowance(
186
+ owner: PromiseOrValue<string>,
187
+ spender: PromiseOrValue<string>,
188
+ overrides?: CallOverrides
189
+ ): Promise<[BigNumber]>;
190
+
191
+ approve(
192
+ spender: PromiseOrValue<string>,
193
+ amount: PromiseOrValue<BigNumberish>,
194
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
195
+ ): Promise<ContractTransaction>;
196
+
197
+ balanceOf(
198
+ addr: PromiseOrValue<string>,
199
+ overrides?: CallOverrides
200
+ ): Promise<[BigNumber]>;
201
+
202
+ burn(
203
+ amount: PromiseOrValue<BigNumberish>,
204
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
205
+ ): Promise<ContractTransaction>;
206
+
207
+ decimals(overrides?: CallOverrides): Promise<[number]>;
208
+
209
+ mint(
210
+ to: PromiseOrValue<string>,
211
+ mintAmount: PromiseOrValue<BigNumberish>,
212
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
213
+ ): Promise<ContractTransaction>;
214
+
215
+ name(overrides?: CallOverrides): Promise<[string]>;
216
+
217
+ symbol(overrides?: CallOverrides): Promise<[string]>;
218
+
219
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
220
+
221
+ transfer(
222
+ to: PromiseOrValue<string>,
223
+ amount: PromiseOrValue<BigNumberish>,
224
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
225
+ ): Promise<ContractTransaction>;
226
+
227
+ transferFrom(
228
+ sender: PromiseOrValue<string>,
229
+ recipient: PromiseOrValue<string>,
230
+ amount: PromiseOrValue<BigNumberish>,
231
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
232
+ ): Promise<ContractTransaction>;
233
+ };
234
+
235
+ allowance(
236
+ owner: PromiseOrValue<string>,
237
+ spender: PromiseOrValue<string>,
238
+ overrides?: CallOverrides
239
+ ): Promise<BigNumber>;
240
+
241
+ approve(
242
+ spender: PromiseOrValue<string>,
243
+ amount: PromiseOrValue<BigNumberish>,
244
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
245
+ ): Promise<ContractTransaction>;
246
+
247
+ balanceOf(
248
+ addr: PromiseOrValue<string>,
249
+ overrides?: CallOverrides
250
+ ): Promise<BigNumber>;
251
+
252
+ burn(
253
+ amount: PromiseOrValue<BigNumberish>,
254
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
255
+ ): Promise<ContractTransaction>;
256
+
257
+ decimals(overrides?: CallOverrides): Promise<number>;
258
+
259
+ mint(
260
+ to: PromiseOrValue<string>,
261
+ mintAmount: PromiseOrValue<BigNumberish>,
262
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
263
+ ): Promise<ContractTransaction>;
264
+
265
+ name(overrides?: CallOverrides): Promise<string>;
266
+
267
+ symbol(overrides?: CallOverrides): Promise<string>;
268
+
269
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
270
+
271
+ transfer(
272
+ to: PromiseOrValue<string>,
273
+ amount: PromiseOrValue<BigNumberish>,
274
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
275
+ ): Promise<ContractTransaction>;
276
+
277
+ transferFrom(
278
+ sender: PromiseOrValue<string>,
279
+ recipient: PromiseOrValue<string>,
280
+ amount: PromiseOrValue<BigNumberish>,
281
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
282
+ ): Promise<ContractTransaction>;
283
+
284
+ callStatic: {
285
+ allowance(
286
+ owner: PromiseOrValue<string>,
287
+ spender: PromiseOrValue<string>,
288
+ overrides?: CallOverrides
289
+ ): Promise<BigNumber>;
290
+
291
+ approve(
292
+ spender: PromiseOrValue<string>,
293
+ amount: PromiseOrValue<BigNumberish>,
294
+ overrides?: CallOverrides
295
+ ): Promise<boolean>;
296
+
297
+ balanceOf(
298
+ addr: PromiseOrValue<string>,
299
+ overrides?: CallOverrides
300
+ ): Promise<BigNumber>;
301
+
302
+ burn(
303
+ amount: PromiseOrValue<BigNumberish>,
304
+ overrides?: CallOverrides
305
+ ): Promise<void>;
306
+
307
+ decimals(overrides?: CallOverrides): Promise<number>;
308
+
309
+ mint(
310
+ to: PromiseOrValue<string>,
311
+ mintAmount: PromiseOrValue<BigNumberish>,
312
+ overrides?: CallOverrides
313
+ ): Promise<BigNumber>;
314
+
315
+ name(overrides?: CallOverrides): Promise<string>;
316
+
317
+ symbol(overrides?: CallOverrides): Promise<string>;
318
+
319
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
320
+
321
+ transfer(
322
+ to: PromiseOrValue<string>,
323
+ amount: PromiseOrValue<BigNumberish>,
324
+ overrides?: CallOverrides
325
+ ): Promise<boolean>;
326
+
327
+ transferFrom(
328
+ sender: PromiseOrValue<string>,
329
+ recipient: PromiseOrValue<string>,
330
+ amount: PromiseOrValue<BigNumberish>,
331
+ overrides?: CallOverrides
332
+ ): Promise<boolean>;
333
+ };
334
+
335
+ filters: {
336
+ "Transfer(address,address,uint256)"(
337
+ from?: PromiseOrValue<string> | null,
338
+ to?: PromiseOrValue<string> | null,
339
+ amount?: null
340
+ ): Transfer_address_address_uint256_EventFilter;
341
+ "Transfer(address,address,uint256,bytes)"(
342
+ from?: PromiseOrValue<string> | null,
343
+ to?: PromiseOrValue<string> | null,
344
+ amount?: null,
345
+ data?: null
346
+ ): Transfer_address_address_uint256_bytes_EventFilter;
347
+ };
348
+
349
+ estimateGas: {
350
+ allowance(
351
+ owner: PromiseOrValue<string>,
352
+ spender: PromiseOrValue<string>,
353
+ overrides?: CallOverrides
354
+ ): Promise<BigNumber>;
355
+
356
+ approve(
357
+ spender: PromiseOrValue<string>,
358
+ amount: PromiseOrValue<BigNumberish>,
359
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
360
+ ): Promise<BigNumber>;
361
+
362
+ balanceOf(
363
+ addr: PromiseOrValue<string>,
364
+ overrides?: CallOverrides
365
+ ): Promise<BigNumber>;
366
+
367
+ burn(
368
+ amount: PromiseOrValue<BigNumberish>,
369
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
370
+ ): Promise<BigNumber>;
371
+
372
+ decimals(overrides?: CallOverrides): Promise<BigNumber>;
373
+
374
+ mint(
375
+ to: PromiseOrValue<string>,
376
+ mintAmount: PromiseOrValue<BigNumberish>,
377
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
378
+ ): Promise<BigNumber>;
379
+
380
+ name(overrides?: CallOverrides): Promise<BigNumber>;
381
+
382
+ symbol(overrides?: CallOverrides): Promise<BigNumber>;
383
+
384
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
385
+
386
+ transfer(
387
+ to: PromiseOrValue<string>,
388
+ amount: PromiseOrValue<BigNumberish>,
389
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
390
+ ): Promise<BigNumber>;
391
+
392
+ transferFrom(
393
+ sender: PromiseOrValue<string>,
394
+ recipient: PromiseOrValue<string>,
395
+ amount: PromiseOrValue<BigNumberish>,
396
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
397
+ ): Promise<BigNumber>;
398
+ };
399
+
400
+ populateTransaction: {
401
+ allowance(
402
+ owner: PromiseOrValue<string>,
403
+ spender: PromiseOrValue<string>,
404
+ overrides?: CallOverrides
405
+ ): Promise<PopulatedTransaction>;
406
+
407
+ approve(
408
+ spender: PromiseOrValue<string>,
409
+ amount: PromiseOrValue<BigNumberish>,
410
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
411
+ ): Promise<PopulatedTransaction>;
412
+
413
+ balanceOf(
414
+ addr: PromiseOrValue<string>,
415
+ overrides?: CallOverrides
416
+ ): Promise<PopulatedTransaction>;
417
+
418
+ burn(
419
+ amount: PromiseOrValue<BigNumberish>,
420
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
421
+ ): Promise<PopulatedTransaction>;
422
+
423
+ decimals(overrides?: CallOverrides): Promise<PopulatedTransaction>;
424
+
425
+ mint(
426
+ to: PromiseOrValue<string>,
427
+ mintAmount: PromiseOrValue<BigNumberish>,
428
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
429
+ ): Promise<PopulatedTransaction>;
430
+
431
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
432
+
433
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
434
+
435
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
436
+
437
+ transfer(
438
+ to: PromiseOrValue<string>,
439
+ amount: PromiseOrValue<BigNumberish>,
440
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
441
+ ): Promise<PopulatedTransaction>;
442
+
443
+ transferFrom(
444
+ sender: PromiseOrValue<string>,
445
+ recipient: PromiseOrValue<string>,
446
+ amount: PromiseOrValue<BigNumberish>,
447
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
448
+ ): Promise<PopulatedTransaction>;
449
+ };
450
+ }
@@ -0,0 +1,161 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
17
+ import type { Listener, Provider } from "@ethersproject/providers";
18
+ import type {
19
+ TypedEventFilter,
20
+ TypedEvent,
21
+ TypedListener,
22
+ OnEvent,
23
+ PromiseOrValue,
24
+ } from "../../../../common";
25
+
26
+ export interface IAaveIncentivesControllerInterface extends utils.Interface {
27
+ functions: {
28
+ "claimRewards(address[],uint256,address)": FunctionFragment;
29
+ "getRewardsBalance(address[],address)": FunctionFragment;
30
+ };
31
+
32
+ getFunction(
33
+ nameOrSignatureOrTopic: "claimRewards" | "getRewardsBalance"
34
+ ): FunctionFragment;
35
+
36
+ encodeFunctionData(
37
+ functionFragment: "claimRewards",
38
+ values: [
39
+ PromiseOrValue<string>[],
40
+ PromiseOrValue<BigNumberish>,
41
+ PromiseOrValue<string>
42
+ ]
43
+ ): string;
44
+ encodeFunctionData(
45
+ functionFragment: "getRewardsBalance",
46
+ values: [PromiseOrValue<string>[], PromiseOrValue<string>]
47
+ ): string;
48
+
49
+ decodeFunctionResult(
50
+ functionFragment: "claimRewards",
51
+ data: BytesLike
52
+ ): Result;
53
+ decodeFunctionResult(
54
+ functionFragment: "getRewardsBalance",
55
+ data: BytesLike
56
+ ): Result;
57
+
58
+ events: {};
59
+ }
60
+
61
+ export interface IAaveIncentivesController extends BaseContract {
62
+ connect(signerOrProvider: Signer | Provider | string): this;
63
+ attach(addressOrName: string): this;
64
+ deployed(): Promise<this>;
65
+
66
+ interface: IAaveIncentivesControllerInterface;
67
+
68
+ queryFilter<TEvent extends TypedEvent>(
69
+ event: TypedEventFilter<TEvent>,
70
+ fromBlockOrBlockhash?: string | number | undefined,
71
+ toBlock?: string | number | undefined
72
+ ): Promise<Array<TEvent>>;
73
+
74
+ listeners<TEvent extends TypedEvent>(
75
+ eventFilter?: TypedEventFilter<TEvent>
76
+ ): Array<TypedListener<TEvent>>;
77
+ listeners(eventName?: string): Array<Listener>;
78
+ removeAllListeners<TEvent extends TypedEvent>(
79
+ eventFilter: TypedEventFilter<TEvent>
80
+ ): this;
81
+ removeAllListeners(eventName?: string): this;
82
+ off: OnEvent<this>;
83
+ on: OnEvent<this>;
84
+ once: OnEvent<this>;
85
+ removeListener: OnEvent<this>;
86
+
87
+ functions: {
88
+ claimRewards(
89
+ assets: PromiseOrValue<string>[],
90
+ amount: PromiseOrValue<BigNumberish>,
91
+ to: PromiseOrValue<string>,
92
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
93
+ ): Promise<ContractTransaction>;
94
+
95
+ getRewardsBalance(
96
+ assets: PromiseOrValue<string>[],
97
+ user: PromiseOrValue<string>,
98
+ overrides?: CallOverrides
99
+ ): Promise<[BigNumber]>;
100
+ };
101
+
102
+ claimRewards(
103
+ assets: PromiseOrValue<string>[],
104
+ amount: PromiseOrValue<BigNumberish>,
105
+ to: PromiseOrValue<string>,
106
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
107
+ ): Promise<ContractTransaction>;
108
+
109
+ getRewardsBalance(
110
+ assets: PromiseOrValue<string>[],
111
+ user: PromiseOrValue<string>,
112
+ overrides?: CallOverrides
113
+ ): Promise<BigNumber>;
114
+
115
+ callStatic: {
116
+ claimRewards(
117
+ assets: PromiseOrValue<string>[],
118
+ amount: PromiseOrValue<BigNumberish>,
119
+ to: PromiseOrValue<string>,
120
+ overrides?: CallOverrides
121
+ ): Promise<BigNumber>;
122
+
123
+ getRewardsBalance(
124
+ assets: PromiseOrValue<string>[],
125
+ user: PromiseOrValue<string>,
126
+ overrides?: CallOverrides
127
+ ): Promise<BigNumber>;
128
+ };
129
+
130
+ filters: {};
131
+
132
+ estimateGas: {
133
+ claimRewards(
134
+ assets: PromiseOrValue<string>[],
135
+ amount: PromiseOrValue<BigNumberish>,
136
+ to: PromiseOrValue<string>,
137
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
138
+ ): Promise<BigNumber>;
139
+
140
+ getRewardsBalance(
141
+ assets: PromiseOrValue<string>[],
142
+ user: PromiseOrValue<string>,
143
+ overrides?: CallOverrides
144
+ ): Promise<BigNumber>;
145
+ };
146
+
147
+ populateTransaction: {
148
+ claimRewards(
149
+ assets: PromiseOrValue<string>[],
150
+ amount: PromiseOrValue<BigNumberish>,
151
+ to: PromiseOrValue<string>,
152
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
153
+ ): Promise<PopulatedTransaction>;
154
+
155
+ getRewardsBalance(
156
+ assets: PromiseOrValue<string>[],
157
+ user: PromiseOrValue<string>,
158
+ overrides?: CallOverrides
159
+ ): Promise<PopulatedTransaction>;
160
+ };
161
+ }