@gooddollar/goodcollective-contracts 1.0.0 → 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 +7 -2
  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,281 @@
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 IGoodStakingInterface extends utils.Interface {
27
+ functions: {
28
+ "collectUBIInterest(address)": FunctionFragment;
29
+ "currentGains(bool,bool)": FunctionFragment;
30
+ "getGasCostForInterestTransfer()": FunctionFragment;
31
+ "getRewardEarned(address)": FunctionFragment;
32
+ "iToken()": FunctionFragment;
33
+ "rewardsMinted(address,uint256,uint256,uint256)": FunctionFragment;
34
+ };
35
+
36
+ getFunction(
37
+ nameOrSignatureOrTopic:
38
+ | "collectUBIInterest"
39
+ | "currentGains"
40
+ | "getGasCostForInterestTransfer"
41
+ | "getRewardEarned"
42
+ | "iToken"
43
+ | "rewardsMinted"
44
+ ): FunctionFragment;
45
+
46
+ encodeFunctionData(
47
+ functionFragment: "collectUBIInterest",
48
+ values: [PromiseOrValue<string>]
49
+ ): string;
50
+ encodeFunctionData(
51
+ functionFragment: "currentGains",
52
+ values: [PromiseOrValue<boolean>, PromiseOrValue<boolean>]
53
+ ): string;
54
+ encodeFunctionData(
55
+ functionFragment: "getGasCostForInterestTransfer",
56
+ values?: undefined
57
+ ): string;
58
+ encodeFunctionData(
59
+ functionFragment: "getRewardEarned",
60
+ values: [PromiseOrValue<string>]
61
+ ): string;
62
+ encodeFunctionData(functionFragment: "iToken", values?: undefined): string;
63
+ encodeFunctionData(
64
+ functionFragment: "rewardsMinted",
65
+ values: [
66
+ PromiseOrValue<string>,
67
+ PromiseOrValue<BigNumberish>,
68
+ PromiseOrValue<BigNumberish>,
69
+ PromiseOrValue<BigNumberish>
70
+ ]
71
+ ): string;
72
+
73
+ decodeFunctionResult(
74
+ functionFragment: "collectUBIInterest",
75
+ data: BytesLike
76
+ ): Result;
77
+ decodeFunctionResult(
78
+ functionFragment: "currentGains",
79
+ data: BytesLike
80
+ ): Result;
81
+ decodeFunctionResult(
82
+ functionFragment: "getGasCostForInterestTransfer",
83
+ data: BytesLike
84
+ ): Result;
85
+ decodeFunctionResult(
86
+ functionFragment: "getRewardEarned",
87
+ data: BytesLike
88
+ ): Result;
89
+ decodeFunctionResult(functionFragment: "iToken", data: BytesLike): Result;
90
+ decodeFunctionResult(
91
+ functionFragment: "rewardsMinted",
92
+ data: BytesLike
93
+ ): Result;
94
+
95
+ events: {};
96
+ }
97
+
98
+ export interface IGoodStaking extends BaseContract {
99
+ connect(signerOrProvider: Signer | Provider | string): this;
100
+ attach(addressOrName: string): this;
101
+ deployed(): Promise<this>;
102
+
103
+ interface: IGoodStakingInterface;
104
+
105
+ queryFilter<TEvent extends TypedEvent>(
106
+ event: TypedEventFilter<TEvent>,
107
+ fromBlockOrBlockhash?: string | number | undefined,
108
+ toBlock?: string | number | undefined
109
+ ): Promise<Array<TEvent>>;
110
+
111
+ listeners<TEvent extends TypedEvent>(
112
+ eventFilter?: TypedEventFilter<TEvent>
113
+ ): Array<TypedListener<TEvent>>;
114
+ listeners(eventName?: string): Array<Listener>;
115
+ removeAllListeners<TEvent extends TypedEvent>(
116
+ eventFilter: TypedEventFilter<TEvent>
117
+ ): this;
118
+ removeAllListeners(eventName?: string): this;
119
+ off: OnEvent<this>;
120
+ on: OnEvent<this>;
121
+ once: OnEvent<this>;
122
+ removeListener: OnEvent<this>;
123
+
124
+ functions: {
125
+ collectUBIInterest(
126
+ recipient: PromiseOrValue<string>,
127
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
128
+ ): Promise<ContractTransaction>;
129
+
130
+ currentGains(
131
+ _returnTokenBalanceInUSD: PromiseOrValue<boolean>,
132
+ _returnTokenGainsInUSD: PromiseOrValue<boolean>,
133
+ overrides?: CallOverrides
134
+ ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;
135
+
136
+ getGasCostForInterestTransfer(
137
+ overrides?: CallOverrides
138
+ ): Promise<[BigNumber]>;
139
+
140
+ getRewardEarned(
141
+ user: PromiseOrValue<string>,
142
+ overrides?: CallOverrides
143
+ ): Promise<[BigNumber]>;
144
+
145
+ iToken(overrides?: CallOverrides): Promise<[string]>;
146
+
147
+ rewardsMinted(
148
+ user: PromiseOrValue<string>,
149
+ rewardsPerBlock: PromiseOrValue<BigNumberish>,
150
+ blockStart: PromiseOrValue<BigNumberish>,
151
+ blockEnd: PromiseOrValue<BigNumberish>,
152
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
153
+ ): Promise<ContractTransaction>;
154
+ };
155
+
156
+ collectUBIInterest(
157
+ recipient: PromiseOrValue<string>,
158
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
159
+ ): Promise<ContractTransaction>;
160
+
161
+ currentGains(
162
+ _returnTokenBalanceInUSD: PromiseOrValue<boolean>,
163
+ _returnTokenGainsInUSD: PromiseOrValue<boolean>,
164
+ overrides?: CallOverrides
165
+ ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;
166
+
167
+ getGasCostForInterestTransfer(overrides?: CallOverrides): Promise<BigNumber>;
168
+
169
+ getRewardEarned(
170
+ user: PromiseOrValue<string>,
171
+ overrides?: CallOverrides
172
+ ): Promise<BigNumber>;
173
+
174
+ iToken(overrides?: CallOverrides): Promise<string>;
175
+
176
+ rewardsMinted(
177
+ user: PromiseOrValue<string>,
178
+ rewardsPerBlock: PromiseOrValue<BigNumberish>,
179
+ blockStart: PromiseOrValue<BigNumberish>,
180
+ blockEnd: PromiseOrValue<BigNumberish>,
181
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
182
+ ): Promise<ContractTransaction>;
183
+
184
+ callStatic: {
185
+ collectUBIInterest(
186
+ recipient: PromiseOrValue<string>,
187
+ overrides?: CallOverrides
188
+ ): Promise<[BigNumber, BigNumber, BigNumber]>;
189
+
190
+ currentGains(
191
+ _returnTokenBalanceInUSD: PromiseOrValue<boolean>,
192
+ _returnTokenGainsInUSD: PromiseOrValue<boolean>,
193
+ overrides?: CallOverrides
194
+ ): Promise<[BigNumber, BigNumber, BigNumber, BigNumber, BigNumber]>;
195
+
196
+ getGasCostForInterestTransfer(
197
+ overrides?: CallOverrides
198
+ ): Promise<BigNumber>;
199
+
200
+ getRewardEarned(
201
+ user: PromiseOrValue<string>,
202
+ overrides?: CallOverrides
203
+ ): Promise<BigNumber>;
204
+
205
+ iToken(overrides?: CallOverrides): Promise<string>;
206
+
207
+ rewardsMinted(
208
+ user: PromiseOrValue<string>,
209
+ rewardsPerBlock: PromiseOrValue<BigNumberish>,
210
+ blockStart: PromiseOrValue<BigNumberish>,
211
+ blockEnd: PromiseOrValue<BigNumberish>,
212
+ overrides?: CallOverrides
213
+ ): Promise<BigNumber>;
214
+ };
215
+
216
+ filters: {};
217
+
218
+ estimateGas: {
219
+ collectUBIInterest(
220
+ recipient: PromiseOrValue<string>,
221
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
222
+ ): Promise<BigNumber>;
223
+
224
+ currentGains(
225
+ _returnTokenBalanceInUSD: PromiseOrValue<boolean>,
226
+ _returnTokenGainsInUSD: PromiseOrValue<boolean>,
227
+ overrides?: CallOverrides
228
+ ): Promise<BigNumber>;
229
+
230
+ getGasCostForInterestTransfer(
231
+ overrides?: CallOverrides
232
+ ): Promise<BigNumber>;
233
+
234
+ getRewardEarned(
235
+ user: PromiseOrValue<string>,
236
+ overrides?: CallOverrides
237
+ ): Promise<BigNumber>;
238
+
239
+ iToken(overrides?: CallOverrides): Promise<BigNumber>;
240
+
241
+ rewardsMinted(
242
+ user: PromiseOrValue<string>,
243
+ rewardsPerBlock: PromiseOrValue<BigNumberish>,
244
+ blockStart: PromiseOrValue<BigNumberish>,
245
+ blockEnd: PromiseOrValue<BigNumberish>,
246
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
247
+ ): Promise<BigNumber>;
248
+ };
249
+
250
+ populateTransaction: {
251
+ collectUBIInterest(
252
+ recipient: PromiseOrValue<string>,
253
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
254
+ ): Promise<PopulatedTransaction>;
255
+
256
+ currentGains(
257
+ _returnTokenBalanceInUSD: PromiseOrValue<boolean>,
258
+ _returnTokenGainsInUSD: PromiseOrValue<boolean>,
259
+ overrides?: CallOverrides
260
+ ): Promise<PopulatedTransaction>;
261
+
262
+ getGasCostForInterestTransfer(
263
+ overrides?: CallOverrides
264
+ ): Promise<PopulatedTransaction>;
265
+
266
+ getRewardEarned(
267
+ user: PromiseOrValue<string>,
268
+ overrides?: CallOverrides
269
+ ): Promise<PopulatedTransaction>;
270
+
271
+ iToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
272
+
273
+ rewardsMinted(
274
+ user: PromiseOrValue<string>,
275
+ rewardsPerBlock: PromiseOrValue<BigNumberish>,
276
+ blockStart: PromiseOrValue<BigNumberish>,
277
+ blockEnd: PromiseOrValue<BigNumberish>,
278
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
279
+ ): Promise<PopulatedTransaction>;
280
+ };
281
+ }
@@ -0,0 +1,81 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BytesLike,
8
+ CallOverrides,
9
+ PopulatedTransaction,
10
+ Signer,
11
+ utils,
12
+ } from "ethers";
13
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
14
+ import type { Listener, Provider } from "@ethersproject/providers";
15
+ import type {
16
+ TypedEventFilter,
17
+ TypedEvent,
18
+ TypedListener,
19
+ OnEvent,
20
+ } from "../../../../common";
21
+
22
+ export interface IHasRouterInterface extends utils.Interface {
23
+ functions: {
24
+ "getRouter()": FunctionFragment;
25
+ };
26
+
27
+ getFunction(nameOrSignatureOrTopic: "getRouter"): FunctionFragment;
28
+
29
+ encodeFunctionData(functionFragment: "getRouter", values?: undefined): string;
30
+
31
+ decodeFunctionResult(functionFragment: "getRouter", data: BytesLike): Result;
32
+
33
+ events: {};
34
+ }
35
+
36
+ export interface IHasRouter extends BaseContract {
37
+ connect(signerOrProvider: Signer | Provider | string): this;
38
+ attach(addressOrName: string): this;
39
+ deployed(): Promise<this>;
40
+
41
+ interface: IHasRouterInterface;
42
+
43
+ queryFilter<TEvent extends TypedEvent>(
44
+ event: TypedEventFilter<TEvent>,
45
+ fromBlockOrBlockhash?: string | number | undefined,
46
+ toBlock?: string | number | undefined
47
+ ): Promise<Array<TEvent>>;
48
+
49
+ listeners<TEvent extends TypedEvent>(
50
+ eventFilter?: TypedEventFilter<TEvent>
51
+ ): Array<TypedListener<TEvent>>;
52
+ listeners(eventName?: string): Array<Listener>;
53
+ removeAllListeners<TEvent extends TypedEvent>(
54
+ eventFilter: TypedEventFilter<TEvent>
55
+ ): this;
56
+ removeAllListeners(eventName?: string): this;
57
+ off: OnEvent<this>;
58
+ on: OnEvent<this>;
59
+ once: OnEvent<this>;
60
+ removeListener: OnEvent<this>;
61
+
62
+ functions: {
63
+ getRouter(overrides?: CallOverrides): Promise<[string]>;
64
+ };
65
+
66
+ getRouter(overrides?: CallOverrides): Promise<string>;
67
+
68
+ callStatic: {
69
+ getRouter(overrides?: CallOverrides): Promise<string>;
70
+ };
71
+
72
+ filters: {};
73
+
74
+ estimateGas: {
75
+ getRouter(overrides?: CallOverrides): Promise<BigNumber>;
76
+ };
77
+
78
+ populateTransaction: {
79
+ getRouter(overrides?: CallOverrides): Promise<PopulatedTransaction>;
80
+ };
81
+ }