@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,697 @@
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
+ ISuperfluidToken,
9
+ ISuperfluidTokenInterface,
10
+ } from "../../../../../../@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [],
15
+ name: "SF_TOKEN_AGREEMENT_ALREADY_EXISTS",
16
+ type: "error",
17
+ },
18
+ {
19
+ inputs: [],
20
+ name: "SF_TOKEN_AGREEMENT_DOES_NOT_EXIST",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "SF_TOKEN_BURN_INSUFFICIENT_BALANCE",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "SF_TOKEN_MOVE_INSUFFICIENT_BALANCE",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "SF_TOKEN_ONLY_HOST",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "SF_TOKEN_ONLY_LISTED_AGREEMENT",
41
+ type: "error",
42
+ },
43
+ {
44
+ anonymous: false,
45
+ inputs: [
46
+ {
47
+ indexed: true,
48
+ internalType: "address",
49
+ name: "agreementClass",
50
+ type: "address",
51
+ },
52
+ {
53
+ indexed: false,
54
+ internalType: "bytes32",
55
+ name: "id",
56
+ type: "bytes32",
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: "bytes32[]",
61
+ name: "data",
62
+ type: "bytes32[]",
63
+ },
64
+ ],
65
+ name: "AgreementCreated",
66
+ type: "event",
67
+ },
68
+ {
69
+ anonymous: false,
70
+ inputs: [
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "agreementClass",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: false,
79
+ internalType: "bytes32",
80
+ name: "id",
81
+ type: "bytes32",
82
+ },
83
+ {
84
+ indexed: true,
85
+ internalType: "address",
86
+ name: "penaltyAccount",
87
+ type: "address",
88
+ },
89
+ {
90
+ indexed: true,
91
+ internalType: "address",
92
+ name: "rewardAccount",
93
+ type: "address",
94
+ },
95
+ {
96
+ indexed: false,
97
+ internalType: "uint256",
98
+ name: "rewardAmount",
99
+ type: "uint256",
100
+ },
101
+ ],
102
+ name: "AgreementLiquidated",
103
+ type: "event",
104
+ },
105
+ {
106
+ anonymous: false,
107
+ inputs: [
108
+ {
109
+ indexed: false,
110
+ internalType: "address",
111
+ name: "liquidatorAccount",
112
+ type: "address",
113
+ },
114
+ {
115
+ indexed: true,
116
+ internalType: "address",
117
+ name: "agreementClass",
118
+ type: "address",
119
+ },
120
+ {
121
+ indexed: false,
122
+ internalType: "bytes32",
123
+ name: "id",
124
+ type: "bytes32",
125
+ },
126
+ {
127
+ indexed: true,
128
+ internalType: "address",
129
+ name: "penaltyAccount",
130
+ type: "address",
131
+ },
132
+ {
133
+ indexed: true,
134
+ internalType: "address",
135
+ name: "bondAccount",
136
+ type: "address",
137
+ },
138
+ {
139
+ indexed: false,
140
+ internalType: "uint256",
141
+ name: "rewardAmount",
142
+ type: "uint256",
143
+ },
144
+ {
145
+ indexed: false,
146
+ internalType: "uint256",
147
+ name: "bailoutAmount",
148
+ type: "uint256",
149
+ },
150
+ ],
151
+ name: "AgreementLiquidatedBy",
152
+ type: "event",
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ {
158
+ indexed: true,
159
+ internalType: "address",
160
+ name: "agreementClass",
161
+ type: "address",
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "bytes32",
166
+ name: "id",
167
+ type: "bytes32",
168
+ },
169
+ {
170
+ indexed: true,
171
+ internalType: "address",
172
+ name: "liquidatorAccount",
173
+ type: "address",
174
+ },
175
+ {
176
+ indexed: true,
177
+ internalType: "address",
178
+ name: "targetAccount",
179
+ type: "address",
180
+ },
181
+ {
182
+ indexed: false,
183
+ internalType: "address",
184
+ name: "rewardAmountReceiver",
185
+ type: "address",
186
+ },
187
+ {
188
+ indexed: false,
189
+ internalType: "uint256",
190
+ name: "rewardAmount",
191
+ type: "uint256",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "int256",
196
+ name: "targetAccountBalanceDelta",
197
+ type: "int256",
198
+ },
199
+ {
200
+ indexed: false,
201
+ internalType: "bytes",
202
+ name: "liquidationTypeData",
203
+ type: "bytes",
204
+ },
205
+ ],
206
+ name: "AgreementLiquidatedV2",
207
+ type: "event",
208
+ },
209
+ {
210
+ anonymous: false,
211
+ inputs: [
212
+ {
213
+ indexed: true,
214
+ internalType: "address",
215
+ name: "agreementClass",
216
+ type: "address",
217
+ },
218
+ {
219
+ indexed: true,
220
+ internalType: "address",
221
+ name: "account",
222
+ type: "address",
223
+ },
224
+ {
225
+ indexed: false,
226
+ internalType: "uint256",
227
+ name: "slotId",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ name: "AgreementStateUpdated",
232
+ type: "event",
233
+ },
234
+ {
235
+ anonymous: false,
236
+ inputs: [
237
+ {
238
+ indexed: true,
239
+ internalType: "address",
240
+ name: "agreementClass",
241
+ type: "address",
242
+ },
243
+ {
244
+ indexed: false,
245
+ internalType: "bytes32",
246
+ name: "id",
247
+ type: "bytes32",
248
+ },
249
+ ],
250
+ name: "AgreementTerminated",
251
+ type: "event",
252
+ },
253
+ {
254
+ anonymous: false,
255
+ inputs: [
256
+ {
257
+ indexed: true,
258
+ internalType: "address",
259
+ name: "agreementClass",
260
+ type: "address",
261
+ },
262
+ {
263
+ indexed: false,
264
+ internalType: "bytes32",
265
+ name: "id",
266
+ type: "bytes32",
267
+ },
268
+ {
269
+ indexed: false,
270
+ internalType: "bytes32[]",
271
+ name: "data",
272
+ type: "bytes32[]",
273
+ },
274
+ ],
275
+ name: "AgreementUpdated",
276
+ type: "event",
277
+ },
278
+ {
279
+ anonymous: false,
280
+ inputs: [
281
+ {
282
+ indexed: true,
283
+ internalType: "address",
284
+ name: "bailoutAccount",
285
+ type: "address",
286
+ },
287
+ {
288
+ indexed: false,
289
+ internalType: "uint256",
290
+ name: "bailoutAmount",
291
+ type: "uint256",
292
+ },
293
+ ],
294
+ name: "Bailout",
295
+ type: "event",
296
+ },
297
+ {
298
+ inputs: [
299
+ {
300
+ internalType: "bytes32",
301
+ name: "id",
302
+ type: "bytes32",
303
+ },
304
+ {
305
+ internalType: "bytes32[]",
306
+ name: "data",
307
+ type: "bytes32[]",
308
+ },
309
+ ],
310
+ name: "createAgreement",
311
+ outputs: [],
312
+ stateMutability: "nonpayable",
313
+ type: "function",
314
+ },
315
+ {
316
+ inputs: [
317
+ {
318
+ internalType: "address",
319
+ name: "account",
320
+ type: "address",
321
+ },
322
+ ],
323
+ name: "getAccountActiveAgreements",
324
+ outputs: [
325
+ {
326
+ internalType: "contract ISuperAgreement[]",
327
+ name: "activeAgreements",
328
+ type: "address[]",
329
+ },
330
+ ],
331
+ stateMutability: "view",
332
+ type: "function",
333
+ },
334
+ {
335
+ inputs: [
336
+ {
337
+ internalType: "address",
338
+ name: "agreementClass",
339
+ type: "address",
340
+ },
341
+ {
342
+ internalType: "bytes32",
343
+ name: "id",
344
+ type: "bytes32",
345
+ },
346
+ {
347
+ internalType: "uint256",
348
+ name: "dataLength",
349
+ type: "uint256",
350
+ },
351
+ ],
352
+ name: "getAgreementData",
353
+ outputs: [
354
+ {
355
+ internalType: "bytes32[]",
356
+ name: "data",
357
+ type: "bytes32[]",
358
+ },
359
+ ],
360
+ stateMutability: "view",
361
+ type: "function",
362
+ },
363
+ {
364
+ inputs: [
365
+ {
366
+ internalType: "address",
367
+ name: "agreementClass",
368
+ type: "address",
369
+ },
370
+ {
371
+ internalType: "address",
372
+ name: "account",
373
+ type: "address",
374
+ },
375
+ {
376
+ internalType: "uint256",
377
+ name: "slotId",
378
+ type: "uint256",
379
+ },
380
+ {
381
+ internalType: "uint256",
382
+ name: "dataLength",
383
+ type: "uint256",
384
+ },
385
+ ],
386
+ name: "getAgreementStateSlot",
387
+ outputs: [
388
+ {
389
+ internalType: "bytes32[]",
390
+ name: "slotData",
391
+ type: "bytes32[]",
392
+ },
393
+ ],
394
+ stateMutability: "view",
395
+ type: "function",
396
+ },
397
+ {
398
+ inputs: [],
399
+ name: "getHost",
400
+ outputs: [
401
+ {
402
+ internalType: "address",
403
+ name: "host",
404
+ type: "address",
405
+ },
406
+ ],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "address",
414
+ name: "account",
415
+ type: "address",
416
+ },
417
+ {
418
+ internalType: "uint256",
419
+ name: "timestamp",
420
+ type: "uint256",
421
+ },
422
+ ],
423
+ name: "isAccountCritical",
424
+ outputs: [
425
+ {
426
+ internalType: "bool",
427
+ name: "isCritical",
428
+ type: "bool",
429
+ },
430
+ ],
431
+ stateMutability: "view",
432
+ type: "function",
433
+ },
434
+ {
435
+ inputs: [
436
+ {
437
+ internalType: "address",
438
+ name: "account",
439
+ type: "address",
440
+ },
441
+ ],
442
+ name: "isAccountCriticalNow",
443
+ outputs: [
444
+ {
445
+ internalType: "bool",
446
+ name: "isCritical",
447
+ type: "bool",
448
+ },
449
+ ],
450
+ stateMutability: "view",
451
+ type: "function",
452
+ },
453
+ {
454
+ inputs: [
455
+ {
456
+ internalType: "address",
457
+ name: "account",
458
+ type: "address",
459
+ },
460
+ {
461
+ internalType: "uint256",
462
+ name: "timestamp",
463
+ type: "uint256",
464
+ },
465
+ ],
466
+ name: "isAccountSolvent",
467
+ outputs: [
468
+ {
469
+ internalType: "bool",
470
+ name: "isSolvent",
471
+ type: "bool",
472
+ },
473
+ ],
474
+ stateMutability: "view",
475
+ type: "function",
476
+ },
477
+ {
478
+ inputs: [
479
+ {
480
+ internalType: "address",
481
+ name: "account",
482
+ type: "address",
483
+ },
484
+ ],
485
+ name: "isAccountSolventNow",
486
+ outputs: [
487
+ {
488
+ internalType: "bool",
489
+ name: "isSolvent",
490
+ type: "bool",
491
+ },
492
+ ],
493
+ stateMutability: "view",
494
+ type: "function",
495
+ },
496
+ {
497
+ inputs: [
498
+ {
499
+ internalType: "bytes32",
500
+ name: "id",
501
+ type: "bytes32",
502
+ },
503
+ {
504
+ internalType: "bytes",
505
+ name: "liquidationTypeData",
506
+ type: "bytes",
507
+ },
508
+ {
509
+ internalType: "address",
510
+ name: "liquidatorAccount",
511
+ type: "address",
512
+ },
513
+ {
514
+ internalType: "bool",
515
+ name: "useDefaultRewardAccount",
516
+ type: "bool",
517
+ },
518
+ {
519
+ internalType: "address",
520
+ name: "targetAccount",
521
+ type: "address",
522
+ },
523
+ {
524
+ internalType: "uint256",
525
+ name: "rewardAmount",
526
+ type: "uint256",
527
+ },
528
+ {
529
+ internalType: "int256",
530
+ name: "targetAccountBalanceDelta",
531
+ type: "int256",
532
+ },
533
+ ],
534
+ name: "makeLiquidationPayoutsV2",
535
+ outputs: [],
536
+ stateMutability: "nonpayable",
537
+ type: "function",
538
+ },
539
+ {
540
+ inputs: [
541
+ {
542
+ internalType: "address",
543
+ name: "account",
544
+ type: "address",
545
+ },
546
+ {
547
+ internalType: "uint256",
548
+ name: "timestamp",
549
+ type: "uint256",
550
+ },
551
+ ],
552
+ name: "realtimeBalanceOf",
553
+ outputs: [
554
+ {
555
+ internalType: "int256",
556
+ name: "availableBalance",
557
+ type: "int256",
558
+ },
559
+ {
560
+ internalType: "uint256",
561
+ name: "deposit",
562
+ type: "uint256",
563
+ },
564
+ {
565
+ internalType: "uint256",
566
+ name: "owedDeposit",
567
+ type: "uint256",
568
+ },
569
+ ],
570
+ stateMutability: "view",
571
+ type: "function",
572
+ },
573
+ {
574
+ inputs: [
575
+ {
576
+ internalType: "address",
577
+ name: "account",
578
+ type: "address",
579
+ },
580
+ ],
581
+ name: "realtimeBalanceOfNow",
582
+ outputs: [
583
+ {
584
+ internalType: "int256",
585
+ name: "availableBalance",
586
+ type: "int256",
587
+ },
588
+ {
589
+ internalType: "uint256",
590
+ name: "deposit",
591
+ type: "uint256",
592
+ },
593
+ {
594
+ internalType: "uint256",
595
+ name: "owedDeposit",
596
+ type: "uint256",
597
+ },
598
+ {
599
+ internalType: "uint256",
600
+ name: "timestamp",
601
+ type: "uint256",
602
+ },
603
+ ],
604
+ stateMutability: "view",
605
+ type: "function",
606
+ },
607
+ {
608
+ inputs: [
609
+ {
610
+ internalType: "address",
611
+ name: "account",
612
+ type: "address",
613
+ },
614
+ {
615
+ internalType: "int256",
616
+ name: "delta",
617
+ type: "int256",
618
+ },
619
+ ],
620
+ name: "settleBalance",
621
+ outputs: [],
622
+ stateMutability: "nonpayable",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "bytes32",
629
+ name: "id",
630
+ type: "bytes32",
631
+ },
632
+ {
633
+ internalType: "uint256",
634
+ name: "dataLength",
635
+ type: "uint256",
636
+ },
637
+ ],
638
+ name: "terminateAgreement",
639
+ outputs: [],
640
+ stateMutability: "nonpayable",
641
+ type: "function",
642
+ },
643
+ {
644
+ inputs: [
645
+ {
646
+ internalType: "bytes32",
647
+ name: "id",
648
+ type: "bytes32",
649
+ },
650
+ {
651
+ internalType: "bytes32[]",
652
+ name: "data",
653
+ type: "bytes32[]",
654
+ },
655
+ ],
656
+ name: "updateAgreementData",
657
+ outputs: [],
658
+ stateMutability: "nonpayable",
659
+ type: "function",
660
+ },
661
+ {
662
+ inputs: [
663
+ {
664
+ internalType: "address",
665
+ name: "account",
666
+ type: "address",
667
+ },
668
+ {
669
+ internalType: "uint256",
670
+ name: "slotId",
671
+ type: "uint256",
672
+ },
673
+ {
674
+ internalType: "bytes32[]",
675
+ name: "slotData",
676
+ type: "bytes32[]",
677
+ },
678
+ ],
679
+ name: "updateAgreementStateSlot",
680
+ outputs: [],
681
+ stateMutability: "nonpayable",
682
+ type: "function",
683
+ },
684
+ ] as const;
685
+
686
+ export class ISuperfluidToken__factory {
687
+ static readonly abi = _abi;
688
+ static createInterface(): ISuperfluidTokenInterface {
689
+ return new utils.Interface(_abi) as ISuperfluidTokenInterface;
690
+ }
691
+ static connect(
692
+ address: string,
693
+ signerOrProvider: Signer | Provider
694
+ ): ISuperfluidToken {
695
+ return new Contract(address, _abi, signerOrProvider) as ISuperfluidToken;
696
+ }
697
+ }