@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,194 @@
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
+ PayableOverrides,
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 ISwapRouter {
27
+ export type ExactInputParamsStruct = {
28
+ path: PromiseOrValue<BytesLike>;
29
+ recipient: PromiseOrValue<string>;
30
+ deadline: PromiseOrValue<BigNumberish>;
31
+ amountIn: PromiseOrValue<BigNumberish>;
32
+ amountOutMinimum: PromiseOrValue<BigNumberish>;
33
+ };
34
+
35
+ export type ExactInputParamsStructOutput = [
36
+ string,
37
+ string,
38
+ BigNumber,
39
+ BigNumber,
40
+ BigNumber
41
+ ] & {
42
+ path: string;
43
+ recipient: string;
44
+ deadline: BigNumber;
45
+ amountIn: BigNumber;
46
+ amountOutMinimum: BigNumber;
47
+ };
48
+
49
+ export type ExactInputSingleParamsStruct = {
50
+ tokenIn: PromiseOrValue<string>;
51
+ tokenOut: PromiseOrValue<string>;
52
+ fee: PromiseOrValue<BigNumberish>;
53
+ recipient: PromiseOrValue<string>;
54
+ deadline: PromiseOrValue<BigNumberish>;
55
+ amountIn: PromiseOrValue<BigNumberish>;
56
+ amountOutMinimum: PromiseOrValue<BigNumberish>;
57
+ sqrtPriceLimitX96: PromiseOrValue<BigNumberish>;
58
+ };
59
+
60
+ export type ExactInputSingleParamsStructOutput = [
61
+ string,
62
+ string,
63
+ number,
64
+ string,
65
+ BigNumber,
66
+ BigNumber,
67
+ BigNumber,
68
+ BigNumber
69
+ ] & {
70
+ tokenIn: string;
71
+ tokenOut: string;
72
+ fee: number;
73
+ recipient: string;
74
+ deadline: BigNumber;
75
+ amountIn: BigNumber;
76
+ amountOutMinimum: BigNumber;
77
+ sqrtPriceLimitX96: BigNumber;
78
+ };
79
+ }
80
+
81
+ export interface SwapRouterMockInterface extends utils.Interface {
82
+ functions: {
83
+ "exactInput((bytes,address,uint256,uint256,uint256))": FunctionFragment;
84
+ "exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment;
85
+ };
86
+
87
+ getFunction(
88
+ nameOrSignatureOrTopic: "exactInput" | "exactInputSingle"
89
+ ): FunctionFragment;
90
+
91
+ encodeFunctionData(
92
+ functionFragment: "exactInput",
93
+ values: [ISwapRouter.ExactInputParamsStruct]
94
+ ): string;
95
+ encodeFunctionData(
96
+ functionFragment: "exactInputSingle",
97
+ values: [ISwapRouter.ExactInputSingleParamsStruct]
98
+ ): string;
99
+
100
+ decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result;
101
+ decodeFunctionResult(
102
+ functionFragment: "exactInputSingle",
103
+ data: BytesLike
104
+ ): Result;
105
+
106
+ events: {};
107
+ }
108
+
109
+ export interface SwapRouterMock extends BaseContract {
110
+ connect(signerOrProvider: Signer | Provider | string): this;
111
+ attach(addressOrName: string): this;
112
+ deployed(): Promise<this>;
113
+
114
+ interface: SwapRouterMockInterface;
115
+
116
+ queryFilter<TEvent extends TypedEvent>(
117
+ event: TypedEventFilter<TEvent>,
118
+ fromBlockOrBlockhash?: string | number | undefined,
119
+ toBlock?: string | number | undefined
120
+ ): Promise<Array<TEvent>>;
121
+
122
+ listeners<TEvent extends TypedEvent>(
123
+ eventFilter?: TypedEventFilter<TEvent>
124
+ ): Array<TypedListener<TEvent>>;
125
+ listeners(eventName?: string): Array<Listener>;
126
+ removeAllListeners<TEvent extends TypedEvent>(
127
+ eventFilter: TypedEventFilter<TEvent>
128
+ ): this;
129
+ removeAllListeners(eventName?: string): this;
130
+ off: OnEvent<this>;
131
+ on: OnEvent<this>;
132
+ once: OnEvent<this>;
133
+ removeListener: OnEvent<this>;
134
+
135
+ functions: {
136
+ exactInput(
137
+ params: ISwapRouter.ExactInputParamsStruct,
138
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
139
+ ): Promise<ContractTransaction>;
140
+
141
+ exactInputSingle(
142
+ params: ISwapRouter.ExactInputSingleParamsStruct,
143
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
144
+ ): Promise<ContractTransaction>;
145
+ };
146
+
147
+ exactInput(
148
+ params: ISwapRouter.ExactInputParamsStruct,
149
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
150
+ ): Promise<ContractTransaction>;
151
+
152
+ exactInputSingle(
153
+ params: ISwapRouter.ExactInputSingleParamsStruct,
154
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
155
+ ): Promise<ContractTransaction>;
156
+
157
+ callStatic: {
158
+ exactInput(
159
+ params: ISwapRouter.ExactInputParamsStruct,
160
+ overrides?: CallOverrides
161
+ ): Promise<BigNumber>;
162
+
163
+ exactInputSingle(
164
+ params: ISwapRouter.ExactInputSingleParamsStruct,
165
+ overrides?: CallOverrides
166
+ ): Promise<BigNumber>;
167
+ };
168
+
169
+ filters: {};
170
+
171
+ estimateGas: {
172
+ exactInput(
173
+ params: ISwapRouter.ExactInputParamsStruct,
174
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
175
+ ): Promise<BigNumber>;
176
+
177
+ exactInputSingle(
178
+ params: ISwapRouter.ExactInputSingleParamsStruct,
179
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
180
+ ): Promise<BigNumber>;
181
+ };
182
+
183
+ populateTransaction: {
184
+ exactInput(
185
+ params: ISwapRouter.ExactInputParamsStruct,
186
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
187
+ ): Promise<PopulatedTransaction>;
188
+
189
+ exactInputSingle(
190
+ params: ISwapRouter.ExactInputSingleParamsStruct,
191
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
192
+ ): Promise<PopulatedTransaction>;
193
+ };
194
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { SwapRouterMock } from "./SwapRouterMock";
@@ -0,0 +1,121 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ AggregatorV3Interface,
9
+ AggregatorV3InterfaceInterface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/AggregatorV3Interface";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "decimals",
16
+ outputs: [
17
+ {
18
+ internalType: "uint8",
19
+ name: "",
20
+ type: "uint8",
21
+ },
22
+ ],
23
+ stateMutability: "view",
24
+ type: "function",
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: "description",
29
+ outputs: [
30
+ {
31
+ internalType: "string",
32
+ name: "",
33
+ type: "string",
34
+ },
35
+ ],
36
+ stateMutability: "view",
37
+ type: "function",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "uint80",
43
+ name: "_roundId",
44
+ type: "uint80",
45
+ },
46
+ ],
47
+ name: "getRoundData",
48
+ outputs: [
49
+ {
50
+ internalType: "uint80",
51
+ name: "roundId",
52
+ type: "uint80",
53
+ },
54
+ {
55
+ internalType: "int256",
56
+ name: "answer",
57
+ type: "int256",
58
+ },
59
+ {
60
+ internalType: "uint256",
61
+ name: "startedAt",
62
+ type: "uint256",
63
+ },
64
+ {
65
+ internalType: "uint256",
66
+ name: "updatedAt",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ internalType: "uint80",
71
+ name: "answeredInRound",
72
+ type: "uint80",
73
+ },
74
+ ],
75
+ stateMutability: "view",
76
+ type: "function",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "latestAnswer",
81
+ outputs: [
82
+ {
83
+ internalType: "int256",
84
+ name: "",
85
+ type: "int256",
86
+ },
87
+ ],
88
+ stateMutability: "view",
89
+ type: "function",
90
+ },
91
+ {
92
+ inputs: [],
93
+ name: "version",
94
+ outputs: [
95
+ {
96
+ internalType: "uint256",
97
+ name: "",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ stateMutability: "view",
102
+ type: "function",
103
+ },
104
+ ] as const;
105
+
106
+ export class AggregatorV3Interface__factory {
107
+ static readonly abi = _abi;
108
+ static createInterface(): AggregatorV3InterfaceInterface {
109
+ return new utils.Interface(_abi) as AggregatorV3InterfaceInterface;
110
+ }
111
+ static connect(
112
+ address: string,
113
+ signerOrProvider: Signer | Provider
114
+ ): AggregatorV3Interface {
115
+ return new Contract(
116
+ address,
117
+ _abi,
118
+ signerOrProvider
119
+ ) as AggregatorV3Interface;
120
+ }
121
+ }
@@ -0,0 +1,384 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ CERC20,
9
+ CERC20Interface,
10
+ } from "../../../../../@gooddollar/goodprotocol/contracts/Interfaces.sol/CERC20";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "address",
19
+ name: "from",
20
+ type: "address",
21
+ },
22
+ {
23
+ indexed: true,
24
+ internalType: "address",
25
+ name: "to",
26
+ type: "address",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "uint256",
31
+ name: "amount",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "Transfer",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "address",
44
+ name: "from",
45
+ type: "address",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "address",
50
+ name: "to",
51
+ type: "address",
52
+ },
53
+ {
54
+ indexed: false,
55
+ internalType: "uint256",
56
+ name: "amount",
57
+ type: "uint256",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "bytes",
62
+ name: "data",
63
+ type: "bytes",
64
+ },
65
+ ],
66
+ name: "Transfer",
67
+ type: "event",
68
+ },
69
+ {
70
+ inputs: [
71
+ {
72
+ internalType: "address",
73
+ name: "owner",
74
+ type: "address",
75
+ },
76
+ {
77
+ internalType: "address",
78
+ name: "spender",
79
+ type: "address",
80
+ },
81
+ ],
82
+ name: "allowance",
83
+ outputs: [
84
+ {
85
+ internalType: "uint256",
86
+ name: "",
87
+ type: "uint256",
88
+ },
89
+ ],
90
+ stateMutability: "view",
91
+ type: "function",
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ internalType: "address",
97
+ name: "spender",
98
+ type: "address",
99
+ },
100
+ {
101
+ internalType: "uint256",
102
+ name: "amount",
103
+ type: "uint256",
104
+ },
105
+ ],
106
+ name: "approve",
107
+ outputs: [
108
+ {
109
+ internalType: "bool",
110
+ name: "",
111
+ type: "bool",
112
+ },
113
+ ],
114
+ stateMutability: "nonpayable",
115
+ type: "function",
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: "address",
121
+ name: "addr",
122
+ type: "address",
123
+ },
124
+ ],
125
+ name: "balanceOf",
126
+ outputs: [
127
+ {
128
+ internalType: "uint256",
129
+ name: "",
130
+ type: "uint256",
131
+ },
132
+ ],
133
+ stateMutability: "view",
134
+ type: "function",
135
+ },
136
+ {
137
+ inputs: [
138
+ {
139
+ internalType: "uint256",
140
+ name: "amount",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "burn",
145
+ outputs: [],
146
+ stateMutability: "nonpayable",
147
+ type: "function",
148
+ },
149
+ {
150
+ inputs: [],
151
+ name: "decimals",
152
+ outputs: [
153
+ {
154
+ internalType: "uint8",
155
+ name: "",
156
+ type: "uint8",
157
+ },
158
+ ],
159
+ stateMutability: "view",
160
+ type: "function",
161
+ },
162
+ {
163
+ inputs: [],
164
+ name: "exchangeRateCurrent",
165
+ outputs: [
166
+ {
167
+ internalType: "uint256",
168
+ name: "",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ stateMutability: "nonpayable",
173
+ type: "function",
174
+ },
175
+ {
176
+ inputs: [],
177
+ name: "exchangeRateStored",
178
+ outputs: [
179
+ {
180
+ internalType: "uint256",
181
+ name: "",
182
+ type: "uint256",
183
+ },
184
+ ],
185
+ stateMutability: "view",
186
+ type: "function",
187
+ },
188
+ {
189
+ inputs: [
190
+ {
191
+ internalType: "address",
192
+ name: "to",
193
+ type: "address",
194
+ },
195
+ {
196
+ internalType: "uint256",
197
+ name: "mintAmount",
198
+ type: "uint256",
199
+ },
200
+ ],
201
+ name: "mint",
202
+ outputs: [
203
+ {
204
+ internalType: "uint256",
205
+ name: "",
206
+ type: "uint256",
207
+ },
208
+ ],
209
+ stateMutability: "nonpayable",
210
+ type: "function",
211
+ },
212
+ {
213
+ inputs: [
214
+ {
215
+ internalType: "uint256",
216
+ name: "mintAmount",
217
+ type: "uint256",
218
+ },
219
+ ],
220
+ name: "mint",
221
+ outputs: [
222
+ {
223
+ internalType: "uint256",
224
+ name: "",
225
+ type: "uint256",
226
+ },
227
+ ],
228
+ stateMutability: "nonpayable",
229
+ type: "function",
230
+ },
231
+ {
232
+ inputs: [],
233
+ name: "name",
234
+ outputs: [
235
+ {
236
+ internalType: "string",
237
+ name: "",
238
+ type: "string",
239
+ },
240
+ ],
241
+ stateMutability: "view",
242
+ type: "function",
243
+ },
244
+ {
245
+ inputs: [
246
+ {
247
+ internalType: "uint256",
248
+ name: "mintAmount",
249
+ type: "uint256",
250
+ },
251
+ ],
252
+ name: "redeem",
253
+ outputs: [
254
+ {
255
+ internalType: "uint256",
256
+ name: "",
257
+ type: "uint256",
258
+ },
259
+ ],
260
+ stateMutability: "nonpayable",
261
+ type: "function",
262
+ },
263
+ {
264
+ inputs: [
265
+ {
266
+ internalType: "uint256",
267
+ name: "mintAmount",
268
+ type: "uint256",
269
+ },
270
+ ],
271
+ name: "redeemUnderlying",
272
+ outputs: [
273
+ {
274
+ internalType: "uint256",
275
+ name: "",
276
+ type: "uint256",
277
+ },
278
+ ],
279
+ stateMutability: "nonpayable",
280
+ type: "function",
281
+ },
282
+ {
283
+ inputs: [],
284
+ name: "symbol",
285
+ outputs: [
286
+ {
287
+ internalType: "string",
288
+ name: "",
289
+ type: "string",
290
+ },
291
+ ],
292
+ stateMutability: "view",
293
+ type: "function",
294
+ },
295
+ {
296
+ inputs: [],
297
+ name: "totalSupply",
298
+ outputs: [
299
+ {
300
+ internalType: "uint256",
301
+ name: "",
302
+ type: "uint256",
303
+ },
304
+ ],
305
+ stateMutability: "view",
306
+ type: "function",
307
+ },
308
+ {
309
+ inputs: [
310
+ {
311
+ internalType: "address",
312
+ name: "to",
313
+ type: "address",
314
+ },
315
+ {
316
+ internalType: "uint256",
317
+ name: "amount",
318
+ type: "uint256",
319
+ },
320
+ ],
321
+ name: "transfer",
322
+ outputs: [
323
+ {
324
+ internalType: "bool",
325
+ name: "",
326
+ type: "bool",
327
+ },
328
+ ],
329
+ stateMutability: "nonpayable",
330
+ type: "function",
331
+ },
332
+ {
333
+ inputs: [
334
+ {
335
+ internalType: "address",
336
+ name: "sender",
337
+ type: "address",
338
+ },
339
+ {
340
+ internalType: "address",
341
+ name: "recipient",
342
+ type: "address",
343
+ },
344
+ {
345
+ internalType: "uint256",
346
+ name: "amount",
347
+ type: "uint256",
348
+ },
349
+ ],
350
+ name: "transferFrom",
351
+ outputs: [
352
+ {
353
+ internalType: "bool",
354
+ name: "",
355
+ type: "bool",
356
+ },
357
+ ],
358
+ stateMutability: "nonpayable",
359
+ type: "function",
360
+ },
361
+ {
362
+ inputs: [],
363
+ name: "underlying",
364
+ outputs: [
365
+ {
366
+ internalType: "address",
367
+ name: "",
368
+ type: "address",
369
+ },
370
+ ],
371
+ stateMutability: "nonpayable",
372
+ type: "function",
373
+ },
374
+ ] as const;
375
+
376
+ export class CERC20__factory {
377
+ static readonly abi = _abi;
378
+ static createInterface(): CERC20Interface {
379
+ return new utils.Interface(_abi) as CERC20Interface;
380
+ }
381
+ static connect(address: string, signerOrProvider: Signer | Provider): CERC20 {
382
+ return new Contract(address, _abi, signerOrProvider) as CERC20;
383
+ }
384
+ }