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