@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,584 @@
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
+ GoodCollectiveSuperApp,
9
+ GoodCollectiveSuperAppInterface,
10
+ } from "../../../contracts/GoodCollective/GoodCollectiveSuperApp";
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
+ {
26
+ internalType: "address",
27
+ name: "",
28
+ type: "address",
29
+ },
30
+ ],
31
+ name: "ONLY_HOST_OR_SENDER",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "UNSUPPORTED_TOKEN",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [],
41
+ name: "UnauthorizedHost",
42
+ type: "error",
43
+ },
44
+ {
45
+ inputs: [],
46
+ name: "ZERO_ADDRESS",
47
+ type: "error",
48
+ },
49
+ {
50
+ inputs: [],
51
+ name: "ZERO_AMOUNT",
52
+ type: "error",
53
+ },
54
+ {
55
+ anonymous: false,
56
+ inputs: [
57
+ {
58
+ indexed: true,
59
+ internalType: "address",
60
+ name: "supporter",
61
+ type: "address",
62
+ },
63
+ {
64
+ indexed: false,
65
+ internalType: "uint256",
66
+ name: "contribution",
67
+ type: "uint256",
68
+ },
69
+ {
70
+ indexed: false,
71
+ internalType: "int96",
72
+ name: "flowRate",
73
+ type: "int96",
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: "uint256",
78
+ name: "lastUpdated",
79
+ type: "uint256",
80
+ },
81
+ ],
82
+ name: "SupporterUpdated",
83
+ type: "event",
84
+ },
85
+ {
86
+ inputs: [],
87
+ name: "CFAV1_TYPE",
88
+ outputs: [
89
+ {
90
+ internalType: "bytes32",
91
+ name: "",
92
+ type: "bytes32",
93
+ },
94
+ ],
95
+ stateMutability: "view",
96
+ type: "function",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "contract ISuperToken",
102
+ name: "superToken",
103
+ type: "address",
104
+ },
105
+ {
106
+ internalType: "address",
107
+ name: "",
108
+ type: "address",
109
+ },
110
+ {
111
+ internalType: "bytes32",
112
+ name: "",
113
+ type: "bytes32",
114
+ },
115
+ {
116
+ internalType: "bytes",
117
+ name: "agreementData",
118
+ type: "bytes",
119
+ },
120
+ {
121
+ internalType: "bytes",
122
+ name: "",
123
+ type: "bytes",
124
+ },
125
+ {
126
+ internalType: "bytes",
127
+ name: "ctx",
128
+ type: "bytes",
129
+ },
130
+ ],
131
+ name: "afterAgreementCreated",
132
+ outputs: [
133
+ {
134
+ internalType: "bytes",
135
+ name: "newCtx",
136
+ type: "bytes",
137
+ },
138
+ ],
139
+ stateMutability: "nonpayable",
140
+ type: "function",
141
+ },
142
+ {
143
+ inputs: [
144
+ {
145
+ internalType: "contract ISuperToken",
146
+ name: "superToken",
147
+ type: "address",
148
+ },
149
+ {
150
+ internalType: "address",
151
+ name: "agreementClass",
152
+ type: "address",
153
+ },
154
+ {
155
+ internalType: "bytes32",
156
+ name: "",
157
+ type: "bytes32",
158
+ },
159
+ {
160
+ internalType: "bytes",
161
+ name: "agreementData",
162
+ type: "bytes",
163
+ },
164
+ {
165
+ internalType: "bytes",
166
+ name: "cbdata",
167
+ type: "bytes",
168
+ },
169
+ {
170
+ internalType: "bytes",
171
+ name: "ctx",
172
+ type: "bytes",
173
+ },
174
+ ],
175
+ name: "afterAgreementTerminated",
176
+ outputs: [
177
+ {
178
+ internalType: "bytes",
179
+ name: "newCtx",
180
+ type: "bytes",
181
+ },
182
+ ],
183
+ stateMutability: "nonpayable",
184
+ type: "function",
185
+ },
186
+ {
187
+ inputs: [
188
+ {
189
+ internalType: "contract ISuperToken",
190
+ name: "superToken",
191
+ type: "address",
192
+ },
193
+ {
194
+ internalType: "address",
195
+ name: "",
196
+ type: "address",
197
+ },
198
+ {
199
+ internalType: "bytes32",
200
+ name: "",
201
+ type: "bytes32",
202
+ },
203
+ {
204
+ internalType: "bytes",
205
+ name: "agreementData",
206
+ type: "bytes",
207
+ },
208
+ {
209
+ internalType: "bytes",
210
+ name: "cbdata",
211
+ type: "bytes",
212
+ },
213
+ {
214
+ internalType: "bytes",
215
+ name: "ctx",
216
+ type: "bytes",
217
+ },
218
+ ],
219
+ name: "afterAgreementUpdated",
220
+ outputs: [
221
+ {
222
+ internalType: "bytes",
223
+ name: "newCtx",
224
+ type: "bytes",
225
+ },
226
+ ],
227
+ stateMutability: "nonpayable",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [
232
+ {
233
+ internalType: "contract ISuperToken",
234
+ name: "superToken",
235
+ type: "address",
236
+ },
237
+ {
238
+ internalType: "address",
239
+ name: "agreementClass",
240
+ type: "address",
241
+ },
242
+ {
243
+ internalType: "bytes32",
244
+ name: "",
245
+ type: "bytes32",
246
+ },
247
+ {
248
+ internalType: "bytes",
249
+ name: "",
250
+ type: "bytes",
251
+ },
252
+ {
253
+ internalType: "bytes",
254
+ name: "",
255
+ type: "bytes",
256
+ },
257
+ ],
258
+ name: "beforeAgreementCreated",
259
+ outputs: [
260
+ {
261
+ internalType: "bytes",
262
+ name: "",
263
+ type: "bytes",
264
+ },
265
+ ],
266
+ stateMutability: "view",
267
+ type: "function",
268
+ },
269
+ {
270
+ inputs: [
271
+ {
272
+ internalType: "contract ISuperToken",
273
+ name: "superToken",
274
+ type: "address",
275
+ },
276
+ {
277
+ internalType: "address",
278
+ name: "agreementClass",
279
+ type: "address",
280
+ },
281
+ {
282
+ internalType: "bytes32",
283
+ name: "",
284
+ type: "bytes32",
285
+ },
286
+ {
287
+ internalType: "bytes",
288
+ name: "agreementData",
289
+ type: "bytes",
290
+ },
291
+ {
292
+ internalType: "bytes",
293
+ name: "",
294
+ type: "bytes",
295
+ },
296
+ ],
297
+ name: "beforeAgreementTerminated",
298
+ outputs: [
299
+ {
300
+ internalType: "bytes",
301
+ name: "",
302
+ type: "bytes",
303
+ },
304
+ ],
305
+ stateMutability: "view",
306
+ type: "function",
307
+ },
308
+ {
309
+ inputs: [
310
+ {
311
+ internalType: "contract ISuperToken",
312
+ name: "superToken",
313
+ type: "address",
314
+ },
315
+ {
316
+ internalType: "address",
317
+ name: "agreementClass",
318
+ type: "address",
319
+ },
320
+ {
321
+ internalType: "bytes32",
322
+ name: "",
323
+ type: "bytes32",
324
+ },
325
+ {
326
+ internalType: "bytes",
327
+ name: "agreementData",
328
+ type: "bytes",
329
+ },
330
+ {
331
+ internalType: "bytes",
332
+ name: "",
333
+ type: "bytes",
334
+ },
335
+ ],
336
+ name: "beforeAgreementUpdated",
337
+ outputs: [
338
+ {
339
+ internalType: "bytes",
340
+ name: "",
341
+ type: "bytes",
342
+ },
343
+ ],
344
+ stateMutability: "view",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [
349
+ {
350
+ internalType: "address",
351
+ name: "_user",
352
+ type: "address",
353
+ },
354
+ ],
355
+ name: "getRealtimeContribution",
356
+ outputs: [
357
+ {
358
+ internalType: "uint256",
359
+ name: "",
360
+ type: "uint256",
361
+ },
362
+ ],
363
+ stateMutability: "view",
364
+ type: "function",
365
+ },
366
+ {
367
+ inputs: [
368
+ {
369
+ components: [
370
+ {
371
+ internalType: "address",
372
+ name: "swapFrom",
373
+ type: "address",
374
+ },
375
+ {
376
+ internalType: "uint256",
377
+ name: "amount",
378
+ type: "uint256",
379
+ },
380
+ {
381
+ internalType: "uint256",
382
+ name: "minReturn",
383
+ type: "uint256",
384
+ },
385
+ {
386
+ internalType: "uint256",
387
+ name: "timestamp",
388
+ type: "uint256",
389
+ },
390
+ {
391
+ internalType: "bytes",
392
+ name: "path",
393
+ type: "bytes",
394
+ },
395
+ ],
396
+ internalType: "struct GoodCollectiveSuperApp.SwapData",
397
+ name: "_customData",
398
+ type: "tuple",
399
+ },
400
+ {
401
+ internalType: "address",
402
+ name: "_sender",
403
+ type: "address",
404
+ },
405
+ {
406
+ internalType: "bytes",
407
+ name: "_ctx",
408
+ type: "bytes",
409
+ },
410
+ ],
411
+ name: "handleSwap",
412
+ outputs: [
413
+ {
414
+ internalType: "bytes",
415
+ name: "",
416
+ type: "bytes",
417
+ },
418
+ ],
419
+ stateMutability: "nonpayable",
420
+ type: "function",
421
+ },
422
+ {
423
+ inputs: [],
424
+ name: "host",
425
+ outputs: [
426
+ {
427
+ internalType: "contract ISuperfluid",
428
+ name: "",
429
+ type: "address",
430
+ },
431
+ ],
432
+ stateMutability: "view",
433
+ type: "function",
434
+ },
435
+ {
436
+ inputs: [
437
+ {
438
+ internalType: "contract ISuperToken",
439
+ name: "_superToken",
440
+ type: "address",
441
+ },
442
+ ],
443
+ name: "isAcceptedSuperToken",
444
+ outputs: [
445
+ {
446
+ internalType: "bool",
447
+ name: "",
448
+ type: "bool",
449
+ },
450
+ ],
451
+ stateMutability: "view",
452
+ type: "function",
453
+ },
454
+ {
455
+ inputs: [
456
+ {
457
+ internalType: "address",
458
+ name: "_sender",
459
+ type: "address",
460
+ },
461
+ {
462
+ internalType: "uint256",
463
+ name: "_amount",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "bytes",
468
+ name: "",
469
+ type: "bytes",
470
+ },
471
+ ],
472
+ name: "onTokenTransfer",
473
+ outputs: [
474
+ {
475
+ internalType: "bool",
476
+ name: "",
477
+ type: "bool",
478
+ },
479
+ ],
480
+ stateMutability: "nonpayable",
481
+ type: "function",
482
+ },
483
+ {
484
+ inputs: [],
485
+ name: "superToken",
486
+ outputs: [
487
+ {
488
+ internalType: "contract ISuperToken",
489
+ name: "",
490
+ type: "address",
491
+ },
492
+ ],
493
+ stateMutability: "view",
494
+ type: "function",
495
+ },
496
+ {
497
+ inputs: [
498
+ {
499
+ internalType: "address",
500
+ name: "_sender",
501
+ type: "address",
502
+ },
503
+ {
504
+ internalType: "uint256",
505
+ name: "_amount",
506
+ type: "uint256",
507
+ },
508
+ {
509
+ internalType: "bytes",
510
+ name: "_ctx",
511
+ type: "bytes",
512
+ },
513
+ ],
514
+ name: "support",
515
+ outputs: [
516
+ {
517
+ internalType: "bytes",
518
+ name: "",
519
+ type: "bytes",
520
+ },
521
+ ],
522
+ stateMutability: "nonpayable",
523
+ type: "function",
524
+ },
525
+ {
526
+ inputs: [
527
+ {
528
+ internalType: "address",
529
+ name: "",
530
+ type: "address",
531
+ },
532
+ ],
533
+ name: "supporters",
534
+ outputs: [
535
+ {
536
+ internalType: "uint256",
537
+ name: "contribution",
538
+ type: "uint256",
539
+ },
540
+ {
541
+ internalType: "int96",
542
+ name: "flowRate",
543
+ type: "int96",
544
+ },
545
+ {
546
+ internalType: "uint128",
547
+ name: "lastUpdated",
548
+ type: "uint128",
549
+ },
550
+ ],
551
+ stateMutability: "view",
552
+ type: "function",
553
+ },
554
+ {
555
+ inputs: [],
556
+ name: "swapRouter",
557
+ outputs: [
558
+ {
559
+ internalType: "contract ISwapRouter",
560
+ name: "",
561
+ type: "address",
562
+ },
563
+ ],
564
+ stateMutability: "view",
565
+ type: "function",
566
+ },
567
+ ] as const;
568
+
569
+ export class GoodCollectiveSuperApp__factory {
570
+ static readonly abi = _abi;
571
+ static createInterface(): GoodCollectiveSuperAppInterface {
572
+ return new utils.Interface(_abi) as GoodCollectiveSuperAppInterface;
573
+ }
574
+ static connect(
575
+ address: string,
576
+ signerOrProvider: Signer | Provider
577
+ ): GoodCollectiveSuperApp {
578
+ return new Contract(
579
+ address,
580
+ _abi,
581
+ signerOrProvider
582
+ ) as GoodCollectiveSuperApp;
583
+ }
584
+ }