@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,335 @@
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
+ SuperAppBaseFlow,
9
+ SuperAppBaseFlowInterface,
10
+ } from "../../../contracts/GoodCollective/SuperAppBaseFlow";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "NotAcceptedSuperToken",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "NotImplemented",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "UnauthorizedHost",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "CFAV1_TYPE",
31
+ outputs: [
32
+ {
33
+ internalType: "bytes32",
34
+ name: "",
35
+ type: "bytes32",
36
+ },
37
+ ],
38
+ stateMutability: "view",
39
+ type: "function",
40
+ },
41
+ {
42
+ inputs: [
43
+ {
44
+ internalType: "contract ISuperToken",
45
+ name: "superToken",
46
+ type: "address",
47
+ },
48
+ {
49
+ internalType: "address",
50
+ name: "",
51
+ type: "address",
52
+ },
53
+ {
54
+ internalType: "bytes32",
55
+ name: "",
56
+ type: "bytes32",
57
+ },
58
+ {
59
+ internalType: "bytes",
60
+ name: "agreementData",
61
+ type: "bytes",
62
+ },
63
+ {
64
+ internalType: "bytes",
65
+ name: "",
66
+ type: "bytes",
67
+ },
68
+ {
69
+ internalType: "bytes",
70
+ name: "ctx",
71
+ type: "bytes",
72
+ },
73
+ ],
74
+ name: "afterAgreementCreated",
75
+ outputs: [
76
+ {
77
+ internalType: "bytes",
78
+ name: "newCtx",
79
+ type: "bytes",
80
+ },
81
+ ],
82
+ stateMutability: "nonpayable",
83
+ type: "function",
84
+ },
85
+ {
86
+ inputs: [
87
+ {
88
+ internalType: "contract ISuperToken",
89
+ name: "superToken",
90
+ type: "address",
91
+ },
92
+ {
93
+ internalType: "address",
94
+ name: "agreementClass",
95
+ type: "address",
96
+ },
97
+ {
98
+ internalType: "bytes32",
99
+ name: "",
100
+ type: "bytes32",
101
+ },
102
+ {
103
+ internalType: "bytes",
104
+ name: "agreementData",
105
+ type: "bytes",
106
+ },
107
+ {
108
+ internalType: "bytes",
109
+ name: "cbdata",
110
+ type: "bytes",
111
+ },
112
+ {
113
+ internalType: "bytes",
114
+ name: "ctx",
115
+ type: "bytes",
116
+ },
117
+ ],
118
+ name: "afterAgreementTerminated",
119
+ outputs: [
120
+ {
121
+ internalType: "bytes",
122
+ name: "newCtx",
123
+ type: "bytes",
124
+ },
125
+ ],
126
+ stateMutability: "nonpayable",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [
131
+ {
132
+ internalType: "contract ISuperToken",
133
+ name: "superToken",
134
+ type: "address",
135
+ },
136
+ {
137
+ internalType: "address",
138
+ name: "",
139
+ type: "address",
140
+ },
141
+ {
142
+ internalType: "bytes32",
143
+ name: "",
144
+ type: "bytes32",
145
+ },
146
+ {
147
+ internalType: "bytes",
148
+ name: "agreementData",
149
+ type: "bytes",
150
+ },
151
+ {
152
+ internalType: "bytes",
153
+ name: "cbdata",
154
+ type: "bytes",
155
+ },
156
+ {
157
+ internalType: "bytes",
158
+ name: "ctx",
159
+ type: "bytes",
160
+ },
161
+ ],
162
+ name: "afterAgreementUpdated",
163
+ outputs: [
164
+ {
165
+ internalType: "bytes",
166
+ name: "newCtx",
167
+ type: "bytes",
168
+ },
169
+ ],
170
+ stateMutability: "nonpayable",
171
+ type: "function",
172
+ },
173
+ {
174
+ inputs: [
175
+ {
176
+ internalType: "contract ISuperToken",
177
+ name: "superToken",
178
+ type: "address",
179
+ },
180
+ {
181
+ internalType: "address",
182
+ name: "agreementClass",
183
+ type: "address",
184
+ },
185
+ {
186
+ internalType: "bytes32",
187
+ name: "",
188
+ type: "bytes32",
189
+ },
190
+ {
191
+ internalType: "bytes",
192
+ name: "",
193
+ type: "bytes",
194
+ },
195
+ {
196
+ internalType: "bytes",
197
+ name: "",
198
+ type: "bytes",
199
+ },
200
+ ],
201
+ name: "beforeAgreementCreated",
202
+ outputs: [
203
+ {
204
+ internalType: "bytes",
205
+ name: "",
206
+ type: "bytes",
207
+ },
208
+ ],
209
+ stateMutability: "view",
210
+ type: "function",
211
+ },
212
+ {
213
+ inputs: [
214
+ {
215
+ internalType: "contract ISuperToken",
216
+ name: "superToken",
217
+ type: "address",
218
+ },
219
+ {
220
+ internalType: "address",
221
+ name: "agreementClass",
222
+ type: "address",
223
+ },
224
+ {
225
+ internalType: "bytes32",
226
+ name: "",
227
+ type: "bytes32",
228
+ },
229
+ {
230
+ internalType: "bytes",
231
+ name: "agreementData",
232
+ type: "bytes",
233
+ },
234
+ {
235
+ internalType: "bytes",
236
+ name: "",
237
+ type: "bytes",
238
+ },
239
+ ],
240
+ name: "beforeAgreementTerminated",
241
+ outputs: [
242
+ {
243
+ internalType: "bytes",
244
+ name: "",
245
+ type: "bytes",
246
+ },
247
+ ],
248
+ stateMutability: "view",
249
+ type: "function",
250
+ },
251
+ {
252
+ inputs: [
253
+ {
254
+ internalType: "contract ISuperToken",
255
+ name: "superToken",
256
+ type: "address",
257
+ },
258
+ {
259
+ internalType: "address",
260
+ name: "agreementClass",
261
+ type: "address",
262
+ },
263
+ {
264
+ internalType: "bytes32",
265
+ name: "",
266
+ type: "bytes32",
267
+ },
268
+ {
269
+ internalType: "bytes",
270
+ name: "agreementData",
271
+ type: "bytes",
272
+ },
273
+ {
274
+ internalType: "bytes",
275
+ name: "",
276
+ type: "bytes",
277
+ },
278
+ ],
279
+ name: "beforeAgreementUpdated",
280
+ outputs: [
281
+ {
282
+ internalType: "bytes",
283
+ name: "",
284
+ type: "bytes",
285
+ },
286
+ ],
287
+ stateMutability: "view",
288
+ type: "function",
289
+ },
290
+ {
291
+ inputs: [],
292
+ name: "host",
293
+ outputs: [
294
+ {
295
+ internalType: "contract ISuperfluid",
296
+ name: "",
297
+ type: "address",
298
+ },
299
+ ],
300
+ stateMutability: "view",
301
+ type: "function",
302
+ },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "contract ISuperToken",
307
+ name: "",
308
+ type: "address",
309
+ },
310
+ ],
311
+ name: "isAcceptedSuperToken",
312
+ outputs: [
313
+ {
314
+ internalType: "bool",
315
+ name: "",
316
+ type: "bool",
317
+ },
318
+ ],
319
+ stateMutability: "view",
320
+ type: "function",
321
+ },
322
+ ] as const;
323
+
324
+ export class SuperAppBaseFlow__factory {
325
+ static readonly abi = _abi;
326
+ static createInterface(): SuperAppBaseFlowInterface {
327
+ return new utils.Interface(_abi) as SuperAppBaseFlowInterface;
328
+ }
329
+ static connect(
330
+ address: string,
331
+ signerOrProvider: Signer | Provider
332
+ ): SuperAppBaseFlow {
333
+ return new Contract(address, _abi, signerOrProvider) as SuperAppBaseFlow;
334
+ }
335
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { GoodCollectiveSuperApp__factory } from "./GoodCollectiveSuperApp__factory";
5
+ export { SuperAppBaseFlow__factory } from "./SuperAppBaseFlow__factory";
@@ -2,4 +2,5 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * as directPayments from "./DirectPayments";
5
- export { Lock__factory } from "./Lock__factory";
5
+ export * as goodCollective from "./GoodCollective";
6
+ export * as utils from "./utils";
@@ -0,0 +1,183 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type { PromiseOrValue } from "../../../common";
7
+ import type {
8
+ SwapRouterMock,
9
+ SwapRouterMockInterface,
10
+ } from "../../../contracts/utils/SwapRouterMock";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "address",
17
+ name: "token",
18
+ type: "address",
19
+ },
20
+ ],
21
+ stateMutability: "nonpayable",
22
+ type: "constructor",
23
+ },
24
+ {
25
+ inputs: [
26
+ {
27
+ components: [
28
+ {
29
+ internalType: "bytes",
30
+ name: "path",
31
+ type: "bytes",
32
+ },
33
+ {
34
+ internalType: "address",
35
+ name: "recipient",
36
+ type: "address",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "deadline",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "amountIn",
46
+ type: "uint256",
47
+ },
48
+ {
49
+ internalType: "uint256",
50
+ name: "amountOutMinimum",
51
+ type: "uint256",
52
+ },
53
+ ],
54
+ internalType: "struct ISwapRouter.ExactInputParams",
55
+ name: "params",
56
+ type: "tuple",
57
+ },
58
+ ],
59
+ name: "exactInput",
60
+ outputs: [
61
+ {
62
+ internalType: "uint256",
63
+ name: "amountOut",
64
+ type: "uint256",
65
+ },
66
+ ],
67
+ stateMutability: "payable",
68
+ type: "function",
69
+ },
70
+ {
71
+ inputs: [
72
+ {
73
+ components: [
74
+ {
75
+ internalType: "address",
76
+ name: "tokenIn",
77
+ type: "address",
78
+ },
79
+ {
80
+ internalType: "address",
81
+ name: "tokenOut",
82
+ type: "address",
83
+ },
84
+ {
85
+ internalType: "uint24",
86
+ name: "fee",
87
+ type: "uint24",
88
+ },
89
+ {
90
+ internalType: "address",
91
+ name: "recipient",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "uint256",
96
+ name: "deadline",
97
+ type: "uint256",
98
+ },
99
+ {
100
+ internalType: "uint256",
101
+ name: "amountIn",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "amountOutMinimum",
107
+ type: "uint256",
108
+ },
109
+ {
110
+ internalType: "uint160",
111
+ name: "sqrtPriceLimitX96",
112
+ type: "uint160",
113
+ },
114
+ ],
115
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
116
+ name: "params",
117
+ type: "tuple",
118
+ },
119
+ ],
120
+ name: "exactInputSingle",
121
+ outputs: [
122
+ {
123
+ internalType: "uint256",
124
+ name: "amountOut",
125
+ type: "uint256",
126
+ },
127
+ ],
128
+ stateMutability: "payable",
129
+ type: "function",
130
+ },
131
+ ] as const;
132
+
133
+ const _bytecode =
134
+ "0x60a060405234801561001057600080fd5b506040516103c03803806103c083398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161032f6100916000396000818160870152610115015261032f6000f3fe6080604052600436106100295760003560e01c8063414bf3891461002e578063c04b8d5914610053575b600080fd5b61004161003c3660046101a3565b610066565b60405190815260200160405180910390f35b610041610061366004610260565b610106565b60c0810151606082015160405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163a9059cbb916100bd919085906004016102a1565b6020604051808303816000875af11580156100dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010091906102ba565b50919050565b60808101356001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb61014a60408501602086016102dc565b836040518363ffffffff1660e01b81526004016100bd9291906102a1565b6001600160a01b038116811461017d57600080fd5b50565b803561018b81610168565b919050565b803562ffffff8116811461018b57600080fd5b60006101008083850312156101b757600080fd5b604051908101906001600160401b03821181831017156101e757634e487b7160e01b600052604160045260246000fd5b816040526101f484610180565b815261020260208501610180565b602082015261021360408501610190565b604082015261022460608501610180565b60608201526080840135608082015260a084013560a082015260c084013560c082015261025360e08501610180565b60e0820152949350505050565b60006020828403121561027257600080fd5b81356001600160401b0381111561028857600080fd5b820160a0818503121561029a57600080fd5b9392505050565b6001600160a01b03929092168252602082015260400190565b6000602082840312156102cc57600080fd5b8151801515811461029a57600080fd5b6000602082840312156102ee57600080fd5b813561029a8161016856fea2646970667358221220ac0860a93f0d028f298dcd765810187c29075e733eb819546e9b486be704318464736f6c63430008130033";
135
+
136
+ type SwapRouterMockConstructorParams =
137
+ | [signer?: Signer]
138
+ | ConstructorParameters<typeof ContractFactory>;
139
+
140
+ const isSuperArgs = (
141
+ xs: SwapRouterMockConstructorParams
142
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
143
+
144
+ export class SwapRouterMock__factory extends ContractFactory {
145
+ constructor(...args: SwapRouterMockConstructorParams) {
146
+ if (isSuperArgs(args)) {
147
+ super(...args);
148
+ } else {
149
+ super(_abi, _bytecode, args[0]);
150
+ }
151
+ }
152
+
153
+ override deploy(
154
+ token: PromiseOrValue<string>,
155
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
156
+ ): Promise<SwapRouterMock> {
157
+ return super.deploy(token, overrides || {}) as Promise<SwapRouterMock>;
158
+ }
159
+ override getDeployTransaction(
160
+ token: PromiseOrValue<string>,
161
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
162
+ ): TransactionRequest {
163
+ return super.getDeployTransaction(token, overrides || {});
164
+ }
165
+ override attach(address: string): SwapRouterMock {
166
+ return super.attach(address) as SwapRouterMock;
167
+ }
168
+ override connect(signer: Signer): SwapRouterMock__factory {
169
+ return super.connect(signer) as SwapRouterMock__factory;
170
+ }
171
+
172
+ static readonly bytecode = _bytecode;
173
+ static readonly abi = _abi;
174
+ static createInterface(): SwapRouterMockInterface {
175
+ return new utils.Interface(_abi) as SwapRouterMockInterface;
176
+ }
177
+ static connect(
178
+ address: string,
179
+ signerOrProvider: Signer | Provider
180
+ ): SwapRouterMock {
181
+ return new Contract(address, _abi, signerOrProvider) as SwapRouterMock;
182
+ }
183
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { SwapRouterMock__factory } from "./SwapRouterMock__factory";
@@ -1,5 +1,8 @@
1
1
  /* Autogenerated file. Do not edit manually. */
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
+ export * as gooddollar from "./@gooddollar";
4
5
  export * as openzeppelin from "./@openzeppelin";
6
+ export * as superfluidFinance from "./@superfluid-finance";
7
+ export * as uniswap from "./@uniswap";
5
8
  export * as contracts from "./contracts";