@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,275 @@
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
+ ISuperApp,
9
+ ISuperAppInterface,
10
+ } from "../../../../../../@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperApp";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "contract ISuperToken",
17
+ name: "superToken",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "agreementClass",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "bytes32",
27
+ name: "agreementId",
28
+ type: "bytes32",
29
+ },
30
+ {
31
+ internalType: "bytes",
32
+ name: "agreementData",
33
+ type: "bytes",
34
+ },
35
+ {
36
+ internalType: "bytes",
37
+ name: "cbdata",
38
+ type: "bytes",
39
+ },
40
+ {
41
+ internalType: "bytes",
42
+ name: "ctx",
43
+ type: "bytes",
44
+ },
45
+ ],
46
+ name: "afterAgreementCreated",
47
+ outputs: [
48
+ {
49
+ internalType: "bytes",
50
+ name: "newCtx",
51
+ type: "bytes",
52
+ },
53
+ ],
54
+ stateMutability: "nonpayable",
55
+ type: "function",
56
+ },
57
+ {
58
+ inputs: [
59
+ {
60
+ internalType: "contract ISuperToken",
61
+ name: "superToken",
62
+ type: "address",
63
+ },
64
+ {
65
+ internalType: "address",
66
+ name: "agreementClass",
67
+ type: "address",
68
+ },
69
+ {
70
+ internalType: "bytes32",
71
+ name: "agreementId",
72
+ type: "bytes32",
73
+ },
74
+ {
75
+ internalType: "bytes",
76
+ name: "agreementData",
77
+ type: "bytes",
78
+ },
79
+ {
80
+ internalType: "bytes",
81
+ name: "cbdata",
82
+ type: "bytes",
83
+ },
84
+ {
85
+ internalType: "bytes",
86
+ name: "ctx",
87
+ type: "bytes",
88
+ },
89
+ ],
90
+ name: "afterAgreementTerminated",
91
+ outputs: [
92
+ {
93
+ internalType: "bytes",
94
+ name: "newCtx",
95
+ type: "bytes",
96
+ },
97
+ ],
98
+ stateMutability: "nonpayable",
99
+ type: "function",
100
+ },
101
+ {
102
+ inputs: [
103
+ {
104
+ internalType: "contract ISuperToken",
105
+ name: "superToken",
106
+ type: "address",
107
+ },
108
+ {
109
+ internalType: "address",
110
+ name: "agreementClass",
111
+ type: "address",
112
+ },
113
+ {
114
+ internalType: "bytes32",
115
+ name: "agreementId",
116
+ type: "bytes32",
117
+ },
118
+ {
119
+ internalType: "bytes",
120
+ name: "agreementData",
121
+ type: "bytes",
122
+ },
123
+ {
124
+ internalType: "bytes",
125
+ name: "cbdata",
126
+ type: "bytes",
127
+ },
128
+ {
129
+ internalType: "bytes",
130
+ name: "ctx",
131
+ type: "bytes",
132
+ },
133
+ ],
134
+ name: "afterAgreementUpdated",
135
+ outputs: [
136
+ {
137
+ internalType: "bytes",
138
+ name: "newCtx",
139
+ type: "bytes",
140
+ },
141
+ ],
142
+ stateMutability: "nonpayable",
143
+ type: "function",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "contract ISuperToken",
149
+ name: "superToken",
150
+ type: "address",
151
+ },
152
+ {
153
+ internalType: "address",
154
+ name: "agreementClass",
155
+ type: "address",
156
+ },
157
+ {
158
+ internalType: "bytes32",
159
+ name: "agreementId",
160
+ type: "bytes32",
161
+ },
162
+ {
163
+ internalType: "bytes",
164
+ name: "agreementData",
165
+ type: "bytes",
166
+ },
167
+ {
168
+ internalType: "bytes",
169
+ name: "ctx",
170
+ type: "bytes",
171
+ },
172
+ ],
173
+ name: "beforeAgreementCreated",
174
+ outputs: [
175
+ {
176
+ internalType: "bytes",
177
+ name: "cbdata",
178
+ type: "bytes",
179
+ },
180
+ ],
181
+ stateMutability: "view",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ internalType: "contract ISuperToken",
188
+ name: "superToken",
189
+ type: "address",
190
+ },
191
+ {
192
+ internalType: "address",
193
+ name: "agreementClass",
194
+ type: "address",
195
+ },
196
+ {
197
+ internalType: "bytes32",
198
+ name: "agreementId",
199
+ type: "bytes32",
200
+ },
201
+ {
202
+ internalType: "bytes",
203
+ name: "agreementData",
204
+ type: "bytes",
205
+ },
206
+ {
207
+ internalType: "bytes",
208
+ name: "ctx",
209
+ type: "bytes",
210
+ },
211
+ ],
212
+ name: "beforeAgreementTerminated",
213
+ outputs: [
214
+ {
215
+ internalType: "bytes",
216
+ name: "cbdata",
217
+ type: "bytes",
218
+ },
219
+ ],
220
+ stateMutability: "view",
221
+ type: "function",
222
+ },
223
+ {
224
+ inputs: [
225
+ {
226
+ internalType: "contract ISuperToken",
227
+ name: "superToken",
228
+ type: "address",
229
+ },
230
+ {
231
+ internalType: "address",
232
+ name: "agreementClass",
233
+ type: "address",
234
+ },
235
+ {
236
+ internalType: "bytes32",
237
+ name: "agreementId",
238
+ type: "bytes32",
239
+ },
240
+ {
241
+ internalType: "bytes",
242
+ name: "agreementData",
243
+ type: "bytes",
244
+ },
245
+ {
246
+ internalType: "bytes",
247
+ name: "ctx",
248
+ type: "bytes",
249
+ },
250
+ ],
251
+ name: "beforeAgreementUpdated",
252
+ outputs: [
253
+ {
254
+ internalType: "bytes",
255
+ name: "cbdata",
256
+ type: "bytes",
257
+ },
258
+ ],
259
+ stateMutability: "view",
260
+ type: "function",
261
+ },
262
+ ] as const;
263
+
264
+ export class ISuperApp__factory {
265
+ static readonly abi = _abi;
266
+ static createInterface(): ISuperAppInterface {
267
+ return new utils.Interface(_abi) as ISuperAppInterface;
268
+ }
269
+ static connect(
270
+ address: string,
271
+ signerOrProvider: Signer | Provider
272
+ ): ISuperApp {
273
+ return new Contract(address, _abi, signerOrProvider) as ISuperApp;
274
+ }
275
+ }
@@ -0,0 +1,276 @@
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
+ ISuperTokenFactory,
9
+ ISuperTokenFactoryInterface,
10
+ } from "../../../../../../@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperTokenFactory";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "SUPER_TOKEN_FACTORY_ALREADY_EXISTS",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "SUPER_TOKEN_FACTORY_DOES_NOT_EXIST",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "SUPER_TOKEN_FACTORY_NON_UPGRADEABLE_IS_DEPRECATED",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "SUPER_TOKEN_FACTORY_ONLY_HOST",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "SUPER_TOKEN_FACTORY_UNINITIALIZED",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "SUPER_TOKEN_FACTORY_ZERO_ADDRESS",
41
+ type: "error",
42
+ },
43
+ {
44
+ anonymous: false,
45
+ inputs: [
46
+ {
47
+ indexed: true,
48
+ internalType: "contract ISuperToken",
49
+ name: "token",
50
+ type: "address",
51
+ },
52
+ ],
53
+ name: "CustomSuperTokenCreated",
54
+ type: "event",
55
+ },
56
+ {
57
+ anonymous: false,
58
+ inputs: [
59
+ {
60
+ indexed: true,
61
+ internalType: "contract ISuperToken",
62
+ name: "token",
63
+ type: "address",
64
+ },
65
+ ],
66
+ name: "SuperTokenCreated",
67
+ type: "event",
68
+ },
69
+ {
70
+ anonymous: false,
71
+ inputs: [
72
+ {
73
+ indexed: true,
74
+ internalType: "contract ISuperToken",
75
+ name: "tokenLogic",
76
+ type: "address",
77
+ },
78
+ ],
79
+ name: "SuperTokenLogicCreated",
80
+ type: "event",
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ internalType: "address",
86
+ name: "_underlyingToken",
87
+ type: "address",
88
+ },
89
+ ],
90
+ name: "computeCanonicalERC20WrapperAddress",
91
+ outputs: [
92
+ {
93
+ internalType: "address",
94
+ name: "superTokenAddress",
95
+ type: "address",
96
+ },
97
+ {
98
+ internalType: "bool",
99
+ name: "isDeployed",
100
+ type: "bool",
101
+ },
102
+ ],
103
+ stateMutability: "view",
104
+ type: "function",
105
+ },
106
+ {
107
+ inputs: [
108
+ {
109
+ internalType: "contract ERC20WithTokenInfo",
110
+ name: "_underlyingToken",
111
+ type: "address",
112
+ },
113
+ ],
114
+ name: "createCanonicalERC20Wrapper",
115
+ outputs: [
116
+ {
117
+ internalType: "contract ISuperToken",
118
+ name: "",
119
+ type: "address",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ type: "function",
124
+ },
125
+ {
126
+ inputs: [
127
+ {
128
+ internalType: "contract ERC20WithTokenInfo",
129
+ name: "underlyingToken",
130
+ type: "address",
131
+ },
132
+ {
133
+ internalType: "enum ISuperTokenFactory.Upgradability",
134
+ name: "upgradability",
135
+ type: "uint8",
136
+ },
137
+ {
138
+ internalType: "string",
139
+ name: "name",
140
+ type: "string",
141
+ },
142
+ {
143
+ internalType: "string",
144
+ name: "symbol",
145
+ type: "string",
146
+ },
147
+ ],
148
+ name: "createERC20Wrapper",
149
+ outputs: [
150
+ {
151
+ internalType: "contract ISuperToken",
152
+ name: "superToken",
153
+ type: "address",
154
+ },
155
+ ],
156
+ stateMutability: "nonpayable",
157
+ type: "function",
158
+ },
159
+ {
160
+ inputs: [
161
+ {
162
+ internalType: "contract IERC20",
163
+ name: "underlyingToken",
164
+ type: "address",
165
+ },
166
+ {
167
+ internalType: "uint8",
168
+ name: "underlyingDecimals",
169
+ type: "uint8",
170
+ },
171
+ {
172
+ internalType: "enum ISuperTokenFactory.Upgradability",
173
+ name: "upgradability",
174
+ type: "uint8",
175
+ },
176
+ {
177
+ internalType: "string",
178
+ name: "name",
179
+ type: "string",
180
+ },
181
+ {
182
+ internalType: "string",
183
+ name: "symbol",
184
+ type: "string",
185
+ },
186
+ ],
187
+ name: "createERC20Wrapper",
188
+ outputs: [
189
+ {
190
+ internalType: "contract ISuperToken",
191
+ name: "superToken",
192
+ type: "address",
193
+ },
194
+ ],
195
+ stateMutability: "nonpayable",
196
+ type: "function",
197
+ },
198
+ {
199
+ inputs: [
200
+ {
201
+ internalType: "address",
202
+ name: "_underlyingTokenAddress",
203
+ type: "address",
204
+ },
205
+ ],
206
+ name: "getCanonicalERC20Wrapper",
207
+ outputs: [
208
+ {
209
+ internalType: "address",
210
+ name: "superTokenAddress",
211
+ type: "address",
212
+ },
213
+ ],
214
+ stateMutability: "view",
215
+ type: "function",
216
+ },
217
+ {
218
+ inputs: [],
219
+ name: "getHost",
220
+ outputs: [
221
+ {
222
+ internalType: "address",
223
+ name: "host",
224
+ type: "address",
225
+ },
226
+ ],
227
+ stateMutability: "view",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [],
232
+ name: "getSuperTokenLogic",
233
+ outputs: [
234
+ {
235
+ internalType: "contract ISuperToken",
236
+ name: "superToken",
237
+ type: "address",
238
+ },
239
+ ],
240
+ stateMutability: "view",
241
+ type: "function",
242
+ },
243
+ {
244
+ inputs: [],
245
+ name: "initialize",
246
+ outputs: [],
247
+ stateMutability: "nonpayable",
248
+ type: "function",
249
+ },
250
+ {
251
+ inputs: [
252
+ {
253
+ internalType: "address",
254
+ name: "customSuperTokenProxy",
255
+ type: "address",
256
+ },
257
+ ],
258
+ name: "initializeCustomSuperToken",
259
+ outputs: [],
260
+ stateMutability: "nonpayable",
261
+ type: "function",
262
+ },
263
+ ] as const;
264
+
265
+ export class ISuperTokenFactory__factory {
266
+ static readonly abi = _abi;
267
+ static createInterface(): ISuperTokenFactoryInterface {
268
+ return new utils.Interface(_abi) as ISuperTokenFactoryInterface;
269
+ }
270
+ static connect(
271
+ address: string,
272
+ signerOrProvider: Signer | Provider
273
+ ): ISuperTokenFactory {
274
+ return new Contract(address, _abi, signerOrProvider) as ISuperTokenFactory;
275
+ }
276
+ }