@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,1839 @@
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
+ ISuperToken,
9
+ ISuperTokenInterface,
10
+ } from "../../../../../../@superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/ISuperToken";
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
+ inputs: [],
45
+ name: "SUPER_TOKEN_APPROVE_FROM_ZERO_ADDRESS",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [],
50
+ name: "SUPER_TOKEN_APPROVE_TO_ZERO_ADDRESS",
51
+ type: "error",
52
+ },
53
+ {
54
+ inputs: [],
55
+ name: "SUPER_TOKEN_BURN_FROM_ZERO_ADDRESS",
56
+ type: "error",
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: "SUPER_TOKEN_CALLER_IS_NOT_OPERATOR_FOR_HOLDER",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "SUPER_TOKEN_INFLATIONARY_DEFLATIONARY_NOT_SUPPORTED",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "SUPER_TOKEN_MINT_TO_ZERO_ADDRESS",
71
+ type: "error",
72
+ },
73
+ {
74
+ inputs: [],
75
+ name: "SUPER_TOKEN_NFT_PROXY_ADDRESS_CHANGED",
76
+ type: "error",
77
+ },
78
+ {
79
+ inputs: [],
80
+ name: "SUPER_TOKEN_NOT_ERC777_TOKENS_RECIPIENT",
81
+ type: "error",
82
+ },
83
+ {
84
+ inputs: [],
85
+ name: "SUPER_TOKEN_NO_UNDERLYING_TOKEN",
86
+ type: "error",
87
+ },
88
+ {
89
+ inputs: [],
90
+ name: "SUPER_TOKEN_ONLY_GOV_OWNER",
91
+ type: "error",
92
+ },
93
+ {
94
+ inputs: [],
95
+ name: "SUPER_TOKEN_ONLY_HOST",
96
+ type: "error",
97
+ },
98
+ {
99
+ inputs: [],
100
+ name: "SUPER_TOKEN_ONLY_SELF",
101
+ type: "error",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "SUPER_TOKEN_TRANSFER_FROM_ZERO_ADDRESS",
106
+ type: "error",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "SUPER_TOKEN_TRANSFER_TO_ZERO_ADDRESS",
111
+ type: "error",
112
+ },
113
+ {
114
+ anonymous: false,
115
+ inputs: [
116
+ {
117
+ indexed: true,
118
+ internalType: "address",
119
+ name: "agreementClass",
120
+ type: "address",
121
+ },
122
+ {
123
+ indexed: false,
124
+ internalType: "bytes32",
125
+ name: "id",
126
+ type: "bytes32",
127
+ },
128
+ {
129
+ indexed: false,
130
+ internalType: "bytes32[]",
131
+ name: "data",
132
+ type: "bytes32[]",
133
+ },
134
+ ],
135
+ name: "AgreementCreated",
136
+ type: "event",
137
+ },
138
+ {
139
+ anonymous: false,
140
+ inputs: [
141
+ {
142
+ indexed: true,
143
+ internalType: "address",
144
+ name: "agreementClass",
145
+ type: "address",
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: "bytes32",
150
+ name: "id",
151
+ type: "bytes32",
152
+ },
153
+ {
154
+ indexed: true,
155
+ internalType: "address",
156
+ name: "penaltyAccount",
157
+ type: "address",
158
+ },
159
+ {
160
+ indexed: true,
161
+ internalType: "address",
162
+ name: "rewardAccount",
163
+ type: "address",
164
+ },
165
+ {
166
+ indexed: false,
167
+ internalType: "uint256",
168
+ name: "rewardAmount",
169
+ type: "uint256",
170
+ },
171
+ ],
172
+ name: "AgreementLiquidated",
173
+ type: "event",
174
+ },
175
+ {
176
+ anonymous: false,
177
+ inputs: [
178
+ {
179
+ indexed: false,
180
+ internalType: "address",
181
+ name: "liquidatorAccount",
182
+ type: "address",
183
+ },
184
+ {
185
+ indexed: true,
186
+ internalType: "address",
187
+ name: "agreementClass",
188
+ type: "address",
189
+ },
190
+ {
191
+ indexed: false,
192
+ internalType: "bytes32",
193
+ name: "id",
194
+ type: "bytes32",
195
+ },
196
+ {
197
+ indexed: true,
198
+ internalType: "address",
199
+ name: "penaltyAccount",
200
+ type: "address",
201
+ },
202
+ {
203
+ indexed: true,
204
+ internalType: "address",
205
+ name: "bondAccount",
206
+ type: "address",
207
+ },
208
+ {
209
+ indexed: false,
210
+ internalType: "uint256",
211
+ name: "rewardAmount",
212
+ type: "uint256",
213
+ },
214
+ {
215
+ indexed: false,
216
+ internalType: "uint256",
217
+ name: "bailoutAmount",
218
+ type: "uint256",
219
+ },
220
+ ],
221
+ name: "AgreementLiquidatedBy",
222
+ type: "event",
223
+ },
224
+ {
225
+ anonymous: false,
226
+ inputs: [
227
+ {
228
+ indexed: true,
229
+ internalType: "address",
230
+ name: "agreementClass",
231
+ type: "address",
232
+ },
233
+ {
234
+ indexed: false,
235
+ internalType: "bytes32",
236
+ name: "id",
237
+ type: "bytes32",
238
+ },
239
+ {
240
+ indexed: true,
241
+ internalType: "address",
242
+ name: "liquidatorAccount",
243
+ type: "address",
244
+ },
245
+ {
246
+ indexed: true,
247
+ internalType: "address",
248
+ name: "targetAccount",
249
+ type: "address",
250
+ },
251
+ {
252
+ indexed: false,
253
+ internalType: "address",
254
+ name: "rewardAmountReceiver",
255
+ type: "address",
256
+ },
257
+ {
258
+ indexed: false,
259
+ internalType: "uint256",
260
+ name: "rewardAmount",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: "int256",
266
+ name: "targetAccountBalanceDelta",
267
+ type: "int256",
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "bytes",
272
+ name: "liquidationTypeData",
273
+ type: "bytes",
274
+ },
275
+ ],
276
+ name: "AgreementLiquidatedV2",
277
+ type: "event",
278
+ },
279
+ {
280
+ anonymous: false,
281
+ inputs: [
282
+ {
283
+ indexed: true,
284
+ internalType: "address",
285
+ name: "agreementClass",
286
+ type: "address",
287
+ },
288
+ {
289
+ indexed: true,
290
+ internalType: "address",
291
+ name: "account",
292
+ type: "address",
293
+ },
294
+ {
295
+ indexed: false,
296
+ internalType: "uint256",
297
+ name: "slotId",
298
+ type: "uint256",
299
+ },
300
+ ],
301
+ name: "AgreementStateUpdated",
302
+ type: "event",
303
+ },
304
+ {
305
+ anonymous: false,
306
+ inputs: [
307
+ {
308
+ indexed: true,
309
+ internalType: "address",
310
+ name: "agreementClass",
311
+ type: "address",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "bytes32",
316
+ name: "id",
317
+ type: "bytes32",
318
+ },
319
+ ],
320
+ name: "AgreementTerminated",
321
+ type: "event",
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [
326
+ {
327
+ indexed: true,
328
+ internalType: "address",
329
+ name: "agreementClass",
330
+ type: "address",
331
+ },
332
+ {
333
+ indexed: false,
334
+ internalType: "bytes32",
335
+ name: "id",
336
+ type: "bytes32",
337
+ },
338
+ {
339
+ indexed: false,
340
+ internalType: "bytes32[]",
341
+ name: "data",
342
+ type: "bytes32[]",
343
+ },
344
+ ],
345
+ name: "AgreementUpdated",
346
+ type: "event",
347
+ },
348
+ {
349
+ anonymous: false,
350
+ inputs: [
351
+ {
352
+ indexed: true,
353
+ internalType: "address",
354
+ name: "owner",
355
+ type: "address",
356
+ },
357
+ {
358
+ indexed: true,
359
+ internalType: "address",
360
+ name: "spender",
361
+ type: "address",
362
+ },
363
+ {
364
+ indexed: false,
365
+ internalType: "uint256",
366
+ name: "value",
367
+ type: "uint256",
368
+ },
369
+ ],
370
+ name: "Approval",
371
+ type: "event",
372
+ },
373
+ {
374
+ anonymous: false,
375
+ inputs: [
376
+ {
377
+ indexed: true,
378
+ internalType: "address",
379
+ name: "operator",
380
+ type: "address",
381
+ },
382
+ {
383
+ indexed: true,
384
+ internalType: "address",
385
+ name: "tokenHolder",
386
+ type: "address",
387
+ },
388
+ ],
389
+ name: "AuthorizedOperator",
390
+ type: "event",
391
+ },
392
+ {
393
+ anonymous: false,
394
+ inputs: [
395
+ {
396
+ indexed: true,
397
+ internalType: "address",
398
+ name: "bailoutAccount",
399
+ type: "address",
400
+ },
401
+ {
402
+ indexed: false,
403
+ internalType: "uint256",
404
+ name: "bailoutAmount",
405
+ type: "uint256",
406
+ },
407
+ ],
408
+ name: "Bailout",
409
+ type: "event",
410
+ },
411
+ {
412
+ anonymous: false,
413
+ inputs: [
414
+ {
415
+ indexed: true,
416
+ internalType: "address",
417
+ name: "operator",
418
+ type: "address",
419
+ },
420
+ {
421
+ indexed: true,
422
+ internalType: "address",
423
+ name: "from",
424
+ type: "address",
425
+ },
426
+ {
427
+ indexed: false,
428
+ internalType: "uint256",
429
+ name: "amount",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ indexed: false,
434
+ internalType: "bytes",
435
+ name: "data",
436
+ type: "bytes",
437
+ },
438
+ {
439
+ indexed: false,
440
+ internalType: "bytes",
441
+ name: "operatorData",
442
+ type: "bytes",
443
+ },
444
+ ],
445
+ name: "Burned",
446
+ type: "event",
447
+ },
448
+ {
449
+ anonymous: false,
450
+ inputs: [
451
+ {
452
+ indexed: true,
453
+ internalType: "contract IConstantInflowNFT",
454
+ name: "constantInflowNFT",
455
+ type: "address",
456
+ },
457
+ ],
458
+ name: "ConstantInflowNFTCreated",
459
+ type: "event",
460
+ },
461
+ {
462
+ anonymous: false,
463
+ inputs: [
464
+ {
465
+ indexed: true,
466
+ internalType: "contract IConstantOutflowNFT",
467
+ name: "constantOutflowNFT",
468
+ type: "address",
469
+ },
470
+ ],
471
+ name: "ConstantOutflowNFTCreated",
472
+ type: "event",
473
+ },
474
+ {
475
+ anonymous: false,
476
+ inputs: [
477
+ {
478
+ indexed: true,
479
+ internalType: "address",
480
+ name: "operator",
481
+ type: "address",
482
+ },
483
+ {
484
+ indexed: true,
485
+ internalType: "address",
486
+ name: "to",
487
+ type: "address",
488
+ },
489
+ {
490
+ indexed: false,
491
+ internalType: "uint256",
492
+ name: "amount",
493
+ type: "uint256",
494
+ },
495
+ {
496
+ indexed: false,
497
+ internalType: "bytes",
498
+ name: "data",
499
+ type: "bytes",
500
+ },
501
+ {
502
+ indexed: false,
503
+ internalType: "bytes",
504
+ name: "operatorData",
505
+ type: "bytes",
506
+ },
507
+ ],
508
+ name: "Minted",
509
+ type: "event",
510
+ },
511
+ {
512
+ anonymous: false,
513
+ inputs: [
514
+ {
515
+ indexed: true,
516
+ internalType: "address",
517
+ name: "operator",
518
+ type: "address",
519
+ },
520
+ {
521
+ indexed: true,
522
+ internalType: "address",
523
+ name: "tokenHolder",
524
+ type: "address",
525
+ },
526
+ ],
527
+ name: "RevokedOperator",
528
+ type: "event",
529
+ },
530
+ {
531
+ anonymous: false,
532
+ inputs: [
533
+ {
534
+ indexed: true,
535
+ internalType: "address",
536
+ name: "operator",
537
+ type: "address",
538
+ },
539
+ {
540
+ indexed: true,
541
+ internalType: "address",
542
+ name: "from",
543
+ type: "address",
544
+ },
545
+ {
546
+ indexed: true,
547
+ internalType: "address",
548
+ name: "to",
549
+ type: "address",
550
+ },
551
+ {
552
+ indexed: false,
553
+ internalType: "uint256",
554
+ name: "amount",
555
+ type: "uint256",
556
+ },
557
+ {
558
+ indexed: false,
559
+ internalType: "bytes",
560
+ name: "data",
561
+ type: "bytes",
562
+ },
563
+ {
564
+ indexed: false,
565
+ internalType: "bytes",
566
+ name: "operatorData",
567
+ type: "bytes",
568
+ },
569
+ ],
570
+ name: "Sent",
571
+ type: "event",
572
+ },
573
+ {
574
+ anonymous: false,
575
+ inputs: [
576
+ {
577
+ indexed: true,
578
+ internalType: "address",
579
+ name: "account",
580
+ type: "address",
581
+ },
582
+ {
583
+ indexed: false,
584
+ internalType: "uint256",
585
+ name: "amount",
586
+ type: "uint256",
587
+ },
588
+ ],
589
+ name: "TokenDowngraded",
590
+ type: "event",
591
+ },
592
+ {
593
+ anonymous: false,
594
+ inputs: [
595
+ {
596
+ indexed: true,
597
+ internalType: "address",
598
+ name: "account",
599
+ type: "address",
600
+ },
601
+ {
602
+ indexed: false,
603
+ internalType: "uint256",
604
+ name: "amount",
605
+ type: "uint256",
606
+ },
607
+ ],
608
+ name: "TokenUpgraded",
609
+ type: "event",
610
+ },
611
+ {
612
+ anonymous: false,
613
+ inputs: [
614
+ {
615
+ indexed: true,
616
+ internalType: "address",
617
+ name: "from",
618
+ type: "address",
619
+ },
620
+ {
621
+ indexed: true,
622
+ internalType: "address",
623
+ name: "to",
624
+ type: "address",
625
+ },
626
+ {
627
+ indexed: false,
628
+ internalType: "uint256",
629
+ name: "value",
630
+ type: "uint256",
631
+ },
632
+ ],
633
+ name: "Transfer",
634
+ type: "event",
635
+ },
636
+ {
637
+ inputs: [],
638
+ name: "CONSTANT_INFLOW_NFT",
639
+ outputs: [
640
+ {
641
+ internalType: "contract IConstantInflowNFT",
642
+ name: "",
643
+ type: "address",
644
+ },
645
+ ],
646
+ stateMutability: "view",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [],
651
+ name: "CONSTANT_OUTFLOW_NFT",
652
+ outputs: [
653
+ {
654
+ internalType: "contract IConstantOutflowNFT",
655
+ name: "",
656
+ type: "address",
657
+ },
658
+ ],
659
+ stateMutability: "view",
660
+ type: "function",
661
+ },
662
+ {
663
+ inputs: [
664
+ {
665
+ internalType: "address",
666
+ name: "owner",
667
+ type: "address",
668
+ },
669
+ {
670
+ internalType: "address",
671
+ name: "spender",
672
+ type: "address",
673
+ },
674
+ ],
675
+ name: "allowance",
676
+ outputs: [
677
+ {
678
+ internalType: "uint256",
679
+ name: "",
680
+ type: "uint256",
681
+ },
682
+ ],
683
+ stateMutability: "view",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [
688
+ {
689
+ internalType: "address",
690
+ name: "spender",
691
+ type: "address",
692
+ },
693
+ {
694
+ internalType: "uint256",
695
+ name: "amount",
696
+ type: "uint256",
697
+ },
698
+ ],
699
+ name: "approve",
700
+ outputs: [
701
+ {
702
+ internalType: "bool",
703
+ name: "",
704
+ type: "bool",
705
+ },
706
+ ],
707
+ stateMutability: "nonpayable",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: "address",
714
+ name: "operator",
715
+ type: "address",
716
+ },
717
+ ],
718
+ name: "authorizeOperator",
719
+ outputs: [],
720
+ stateMutability: "nonpayable",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [
725
+ {
726
+ internalType: "address",
727
+ name: "account",
728
+ type: "address",
729
+ },
730
+ ],
731
+ name: "balanceOf",
732
+ outputs: [
733
+ {
734
+ internalType: "uint256",
735
+ name: "balance",
736
+ type: "uint256",
737
+ },
738
+ ],
739
+ stateMutability: "view",
740
+ type: "function",
741
+ },
742
+ {
743
+ inputs: [
744
+ {
745
+ internalType: "uint256",
746
+ name: "amount",
747
+ type: "uint256",
748
+ },
749
+ {
750
+ internalType: "bytes",
751
+ name: "data",
752
+ type: "bytes",
753
+ },
754
+ ],
755
+ name: "burn",
756
+ outputs: [],
757
+ stateMutability: "nonpayable",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ internalType: "bytes32",
764
+ name: "id",
765
+ type: "bytes32",
766
+ },
767
+ {
768
+ internalType: "bytes32[]",
769
+ name: "data",
770
+ type: "bytes32[]",
771
+ },
772
+ ],
773
+ name: "createAgreement",
774
+ outputs: [],
775
+ stateMutability: "nonpayable",
776
+ type: "function",
777
+ },
778
+ {
779
+ inputs: [],
780
+ name: "decimals",
781
+ outputs: [
782
+ {
783
+ internalType: "uint8",
784
+ name: "",
785
+ type: "uint8",
786
+ },
787
+ ],
788
+ stateMutability: "view",
789
+ type: "function",
790
+ },
791
+ {
792
+ inputs: [
793
+ {
794
+ internalType: "address",
795
+ name: "spender",
796
+ type: "address",
797
+ },
798
+ {
799
+ internalType: "uint256",
800
+ name: "subtractedValue",
801
+ type: "uint256",
802
+ },
803
+ ],
804
+ name: "decreaseAllowance",
805
+ outputs: [
806
+ {
807
+ internalType: "bool",
808
+ name: "",
809
+ type: "bool",
810
+ },
811
+ ],
812
+ stateMutability: "nonpayable",
813
+ type: "function",
814
+ },
815
+ {
816
+ inputs: [],
817
+ name: "defaultOperators",
818
+ outputs: [
819
+ {
820
+ internalType: "address[]",
821
+ name: "",
822
+ type: "address[]",
823
+ },
824
+ ],
825
+ stateMutability: "view",
826
+ type: "function",
827
+ },
828
+ {
829
+ inputs: [
830
+ {
831
+ internalType: "uint256",
832
+ name: "amount",
833
+ type: "uint256",
834
+ },
835
+ ],
836
+ name: "downgrade",
837
+ outputs: [],
838
+ stateMutability: "nonpayable",
839
+ type: "function",
840
+ },
841
+ {
842
+ inputs: [
843
+ {
844
+ internalType: "address",
845
+ name: "to",
846
+ type: "address",
847
+ },
848
+ {
849
+ internalType: "uint256",
850
+ name: "amount",
851
+ type: "uint256",
852
+ },
853
+ ],
854
+ name: "downgradeTo",
855
+ outputs: [],
856
+ stateMutability: "nonpayable",
857
+ type: "function",
858
+ },
859
+ {
860
+ inputs: [
861
+ {
862
+ internalType: "address",
863
+ name: "account",
864
+ type: "address",
865
+ },
866
+ ],
867
+ name: "getAccountActiveAgreements",
868
+ outputs: [
869
+ {
870
+ internalType: "contract ISuperAgreement[]",
871
+ name: "activeAgreements",
872
+ type: "address[]",
873
+ },
874
+ ],
875
+ stateMutability: "view",
876
+ type: "function",
877
+ },
878
+ {
879
+ inputs: [
880
+ {
881
+ internalType: "address",
882
+ name: "agreementClass",
883
+ type: "address",
884
+ },
885
+ {
886
+ internalType: "bytes32",
887
+ name: "id",
888
+ type: "bytes32",
889
+ },
890
+ {
891
+ internalType: "uint256",
892
+ name: "dataLength",
893
+ type: "uint256",
894
+ },
895
+ ],
896
+ name: "getAgreementData",
897
+ outputs: [
898
+ {
899
+ internalType: "bytes32[]",
900
+ name: "data",
901
+ type: "bytes32[]",
902
+ },
903
+ ],
904
+ stateMutability: "view",
905
+ type: "function",
906
+ },
907
+ {
908
+ inputs: [
909
+ {
910
+ internalType: "address",
911
+ name: "agreementClass",
912
+ type: "address",
913
+ },
914
+ {
915
+ internalType: "address",
916
+ name: "account",
917
+ type: "address",
918
+ },
919
+ {
920
+ internalType: "uint256",
921
+ name: "slotId",
922
+ type: "uint256",
923
+ },
924
+ {
925
+ internalType: "uint256",
926
+ name: "dataLength",
927
+ type: "uint256",
928
+ },
929
+ ],
930
+ name: "getAgreementStateSlot",
931
+ outputs: [
932
+ {
933
+ internalType: "bytes32[]",
934
+ name: "slotData",
935
+ type: "bytes32[]",
936
+ },
937
+ ],
938
+ stateMutability: "view",
939
+ type: "function",
940
+ },
941
+ {
942
+ inputs: [],
943
+ name: "getHost",
944
+ outputs: [
945
+ {
946
+ internalType: "address",
947
+ name: "host",
948
+ type: "address",
949
+ },
950
+ ],
951
+ stateMutability: "view",
952
+ type: "function",
953
+ },
954
+ {
955
+ inputs: [],
956
+ name: "getUnderlyingToken",
957
+ outputs: [
958
+ {
959
+ internalType: "address",
960
+ name: "tokenAddr",
961
+ type: "address",
962
+ },
963
+ ],
964
+ stateMutability: "view",
965
+ type: "function",
966
+ },
967
+ {
968
+ inputs: [],
969
+ name: "granularity",
970
+ outputs: [
971
+ {
972
+ internalType: "uint256",
973
+ name: "",
974
+ type: "uint256",
975
+ },
976
+ ],
977
+ stateMutability: "view",
978
+ type: "function",
979
+ },
980
+ {
981
+ inputs: [
982
+ {
983
+ internalType: "address",
984
+ name: "spender",
985
+ type: "address",
986
+ },
987
+ {
988
+ internalType: "uint256",
989
+ name: "addedValue",
990
+ type: "uint256",
991
+ },
992
+ ],
993
+ name: "increaseAllowance",
994
+ outputs: [
995
+ {
996
+ internalType: "bool",
997
+ name: "",
998
+ type: "bool",
999
+ },
1000
+ ],
1001
+ stateMutability: "nonpayable",
1002
+ type: "function",
1003
+ },
1004
+ {
1005
+ inputs: [
1006
+ {
1007
+ internalType: "contract IERC20",
1008
+ name: "underlyingToken",
1009
+ type: "address",
1010
+ },
1011
+ {
1012
+ internalType: "uint8",
1013
+ name: "underlyingDecimals",
1014
+ type: "uint8",
1015
+ },
1016
+ {
1017
+ internalType: "string",
1018
+ name: "n",
1019
+ type: "string",
1020
+ },
1021
+ {
1022
+ internalType: "string",
1023
+ name: "s",
1024
+ type: "string",
1025
+ },
1026
+ ],
1027
+ name: "initialize",
1028
+ outputs: [],
1029
+ stateMutability: "nonpayable",
1030
+ type: "function",
1031
+ },
1032
+ {
1033
+ inputs: [
1034
+ {
1035
+ internalType: "address",
1036
+ name: "account",
1037
+ type: "address",
1038
+ },
1039
+ {
1040
+ internalType: "uint256",
1041
+ name: "timestamp",
1042
+ type: "uint256",
1043
+ },
1044
+ ],
1045
+ name: "isAccountCritical",
1046
+ outputs: [
1047
+ {
1048
+ internalType: "bool",
1049
+ name: "isCritical",
1050
+ type: "bool",
1051
+ },
1052
+ ],
1053
+ stateMutability: "view",
1054
+ type: "function",
1055
+ },
1056
+ {
1057
+ inputs: [
1058
+ {
1059
+ internalType: "address",
1060
+ name: "account",
1061
+ type: "address",
1062
+ },
1063
+ ],
1064
+ name: "isAccountCriticalNow",
1065
+ outputs: [
1066
+ {
1067
+ internalType: "bool",
1068
+ name: "isCritical",
1069
+ type: "bool",
1070
+ },
1071
+ ],
1072
+ stateMutability: "view",
1073
+ type: "function",
1074
+ },
1075
+ {
1076
+ inputs: [
1077
+ {
1078
+ internalType: "address",
1079
+ name: "account",
1080
+ type: "address",
1081
+ },
1082
+ {
1083
+ internalType: "uint256",
1084
+ name: "timestamp",
1085
+ type: "uint256",
1086
+ },
1087
+ ],
1088
+ name: "isAccountSolvent",
1089
+ outputs: [
1090
+ {
1091
+ internalType: "bool",
1092
+ name: "isSolvent",
1093
+ type: "bool",
1094
+ },
1095
+ ],
1096
+ stateMutability: "view",
1097
+ type: "function",
1098
+ },
1099
+ {
1100
+ inputs: [
1101
+ {
1102
+ internalType: "address",
1103
+ name: "account",
1104
+ type: "address",
1105
+ },
1106
+ ],
1107
+ name: "isAccountSolventNow",
1108
+ outputs: [
1109
+ {
1110
+ internalType: "bool",
1111
+ name: "isSolvent",
1112
+ type: "bool",
1113
+ },
1114
+ ],
1115
+ stateMutability: "view",
1116
+ type: "function",
1117
+ },
1118
+ {
1119
+ inputs: [
1120
+ {
1121
+ internalType: "address",
1122
+ name: "operator",
1123
+ type: "address",
1124
+ },
1125
+ {
1126
+ internalType: "address",
1127
+ name: "tokenHolder",
1128
+ type: "address",
1129
+ },
1130
+ ],
1131
+ name: "isOperatorFor",
1132
+ outputs: [
1133
+ {
1134
+ internalType: "bool",
1135
+ name: "",
1136
+ type: "bool",
1137
+ },
1138
+ ],
1139
+ stateMutability: "view",
1140
+ type: "function",
1141
+ },
1142
+ {
1143
+ inputs: [
1144
+ {
1145
+ internalType: "bytes32",
1146
+ name: "id",
1147
+ type: "bytes32",
1148
+ },
1149
+ {
1150
+ internalType: "bytes",
1151
+ name: "liquidationTypeData",
1152
+ type: "bytes",
1153
+ },
1154
+ {
1155
+ internalType: "address",
1156
+ name: "liquidatorAccount",
1157
+ type: "address",
1158
+ },
1159
+ {
1160
+ internalType: "bool",
1161
+ name: "useDefaultRewardAccount",
1162
+ type: "bool",
1163
+ },
1164
+ {
1165
+ internalType: "address",
1166
+ name: "targetAccount",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ internalType: "uint256",
1171
+ name: "rewardAmount",
1172
+ type: "uint256",
1173
+ },
1174
+ {
1175
+ internalType: "int256",
1176
+ name: "targetAccountBalanceDelta",
1177
+ type: "int256",
1178
+ },
1179
+ ],
1180
+ name: "makeLiquidationPayoutsV2",
1181
+ outputs: [],
1182
+ stateMutability: "nonpayable",
1183
+ type: "function",
1184
+ },
1185
+ {
1186
+ inputs: [],
1187
+ name: "name",
1188
+ outputs: [
1189
+ {
1190
+ internalType: "string",
1191
+ name: "",
1192
+ type: "string",
1193
+ },
1194
+ ],
1195
+ stateMutability: "view",
1196
+ type: "function",
1197
+ },
1198
+ {
1199
+ inputs: [
1200
+ {
1201
+ internalType: "address",
1202
+ name: "account",
1203
+ type: "address",
1204
+ },
1205
+ {
1206
+ internalType: "address",
1207
+ name: "spender",
1208
+ type: "address",
1209
+ },
1210
+ {
1211
+ internalType: "uint256",
1212
+ name: "amount",
1213
+ type: "uint256",
1214
+ },
1215
+ ],
1216
+ name: "operationApprove",
1217
+ outputs: [],
1218
+ stateMutability: "nonpayable",
1219
+ type: "function",
1220
+ },
1221
+ {
1222
+ inputs: [
1223
+ {
1224
+ internalType: "address",
1225
+ name: "account",
1226
+ type: "address",
1227
+ },
1228
+ {
1229
+ internalType: "address",
1230
+ name: "spender",
1231
+ type: "address",
1232
+ },
1233
+ {
1234
+ internalType: "uint256",
1235
+ name: "subtractedValue",
1236
+ type: "uint256",
1237
+ },
1238
+ ],
1239
+ name: "operationDecreaseAllowance",
1240
+ outputs: [],
1241
+ stateMutability: "nonpayable",
1242
+ type: "function",
1243
+ },
1244
+ {
1245
+ inputs: [
1246
+ {
1247
+ internalType: "address",
1248
+ name: "account",
1249
+ type: "address",
1250
+ },
1251
+ {
1252
+ internalType: "uint256",
1253
+ name: "amount",
1254
+ type: "uint256",
1255
+ },
1256
+ ],
1257
+ name: "operationDowngrade",
1258
+ outputs: [],
1259
+ stateMutability: "nonpayable",
1260
+ type: "function",
1261
+ },
1262
+ {
1263
+ inputs: [
1264
+ {
1265
+ internalType: "address",
1266
+ name: "account",
1267
+ type: "address",
1268
+ },
1269
+ {
1270
+ internalType: "address",
1271
+ name: "spender",
1272
+ type: "address",
1273
+ },
1274
+ {
1275
+ internalType: "uint256",
1276
+ name: "addedValue",
1277
+ type: "uint256",
1278
+ },
1279
+ ],
1280
+ name: "operationIncreaseAllowance",
1281
+ outputs: [],
1282
+ stateMutability: "nonpayable",
1283
+ type: "function",
1284
+ },
1285
+ {
1286
+ inputs: [
1287
+ {
1288
+ internalType: "address",
1289
+ name: "spender",
1290
+ type: "address",
1291
+ },
1292
+ {
1293
+ internalType: "address",
1294
+ name: "recipient",
1295
+ type: "address",
1296
+ },
1297
+ {
1298
+ internalType: "uint256",
1299
+ name: "amount",
1300
+ type: "uint256",
1301
+ },
1302
+ {
1303
+ internalType: "bytes",
1304
+ name: "data",
1305
+ type: "bytes",
1306
+ },
1307
+ ],
1308
+ name: "operationSend",
1309
+ outputs: [],
1310
+ stateMutability: "nonpayable",
1311
+ type: "function",
1312
+ },
1313
+ {
1314
+ inputs: [
1315
+ {
1316
+ internalType: "address",
1317
+ name: "account",
1318
+ type: "address",
1319
+ },
1320
+ {
1321
+ internalType: "address",
1322
+ name: "spender",
1323
+ type: "address",
1324
+ },
1325
+ {
1326
+ internalType: "address",
1327
+ name: "recipient",
1328
+ type: "address",
1329
+ },
1330
+ {
1331
+ internalType: "uint256",
1332
+ name: "amount",
1333
+ type: "uint256",
1334
+ },
1335
+ ],
1336
+ name: "operationTransferFrom",
1337
+ outputs: [],
1338
+ stateMutability: "nonpayable",
1339
+ type: "function",
1340
+ },
1341
+ {
1342
+ inputs: [
1343
+ {
1344
+ internalType: "address",
1345
+ name: "account",
1346
+ type: "address",
1347
+ },
1348
+ {
1349
+ internalType: "uint256",
1350
+ name: "amount",
1351
+ type: "uint256",
1352
+ },
1353
+ ],
1354
+ name: "operationUpgrade",
1355
+ outputs: [],
1356
+ stateMutability: "nonpayable",
1357
+ type: "function",
1358
+ },
1359
+ {
1360
+ inputs: [
1361
+ {
1362
+ internalType: "address",
1363
+ name: "account",
1364
+ type: "address",
1365
+ },
1366
+ {
1367
+ internalType: "uint256",
1368
+ name: "amount",
1369
+ type: "uint256",
1370
+ },
1371
+ {
1372
+ internalType: "bytes",
1373
+ name: "data",
1374
+ type: "bytes",
1375
+ },
1376
+ {
1377
+ internalType: "bytes",
1378
+ name: "operatorData",
1379
+ type: "bytes",
1380
+ },
1381
+ ],
1382
+ name: "operatorBurn",
1383
+ outputs: [],
1384
+ stateMutability: "nonpayable",
1385
+ type: "function",
1386
+ },
1387
+ {
1388
+ inputs: [
1389
+ {
1390
+ internalType: "address",
1391
+ name: "sender",
1392
+ type: "address",
1393
+ },
1394
+ {
1395
+ internalType: "address",
1396
+ name: "recipient",
1397
+ type: "address",
1398
+ },
1399
+ {
1400
+ internalType: "uint256",
1401
+ name: "amount",
1402
+ type: "uint256",
1403
+ },
1404
+ {
1405
+ internalType: "bytes",
1406
+ name: "data",
1407
+ type: "bytes",
1408
+ },
1409
+ {
1410
+ internalType: "bytes",
1411
+ name: "operatorData",
1412
+ type: "bytes",
1413
+ },
1414
+ ],
1415
+ name: "operatorSend",
1416
+ outputs: [],
1417
+ stateMutability: "nonpayable",
1418
+ type: "function",
1419
+ },
1420
+ {
1421
+ inputs: [
1422
+ {
1423
+ internalType: "address",
1424
+ name: "account",
1425
+ type: "address",
1426
+ },
1427
+ {
1428
+ internalType: "uint256",
1429
+ name: "timestamp",
1430
+ type: "uint256",
1431
+ },
1432
+ ],
1433
+ name: "realtimeBalanceOf",
1434
+ outputs: [
1435
+ {
1436
+ internalType: "int256",
1437
+ name: "availableBalance",
1438
+ type: "int256",
1439
+ },
1440
+ {
1441
+ internalType: "uint256",
1442
+ name: "deposit",
1443
+ type: "uint256",
1444
+ },
1445
+ {
1446
+ internalType: "uint256",
1447
+ name: "owedDeposit",
1448
+ type: "uint256",
1449
+ },
1450
+ ],
1451
+ stateMutability: "view",
1452
+ type: "function",
1453
+ },
1454
+ {
1455
+ inputs: [
1456
+ {
1457
+ internalType: "address",
1458
+ name: "account",
1459
+ type: "address",
1460
+ },
1461
+ ],
1462
+ name: "realtimeBalanceOfNow",
1463
+ outputs: [
1464
+ {
1465
+ internalType: "int256",
1466
+ name: "availableBalance",
1467
+ type: "int256",
1468
+ },
1469
+ {
1470
+ internalType: "uint256",
1471
+ name: "deposit",
1472
+ type: "uint256",
1473
+ },
1474
+ {
1475
+ internalType: "uint256",
1476
+ name: "owedDeposit",
1477
+ type: "uint256",
1478
+ },
1479
+ {
1480
+ internalType: "uint256",
1481
+ name: "timestamp",
1482
+ type: "uint256",
1483
+ },
1484
+ ],
1485
+ stateMutability: "view",
1486
+ type: "function",
1487
+ },
1488
+ {
1489
+ inputs: [
1490
+ {
1491
+ internalType: "address",
1492
+ name: "operator",
1493
+ type: "address",
1494
+ },
1495
+ ],
1496
+ name: "revokeOperator",
1497
+ outputs: [],
1498
+ stateMutability: "nonpayable",
1499
+ type: "function",
1500
+ },
1501
+ {
1502
+ inputs: [
1503
+ {
1504
+ internalType: "address",
1505
+ name: "account",
1506
+ type: "address",
1507
+ },
1508
+ {
1509
+ internalType: "address",
1510
+ name: "spender",
1511
+ type: "address",
1512
+ },
1513
+ {
1514
+ internalType: "uint256",
1515
+ name: "amount",
1516
+ type: "uint256",
1517
+ },
1518
+ ],
1519
+ name: "selfApproveFor",
1520
+ outputs: [],
1521
+ stateMutability: "nonpayable",
1522
+ type: "function",
1523
+ },
1524
+ {
1525
+ inputs: [
1526
+ {
1527
+ internalType: "address",
1528
+ name: "account",
1529
+ type: "address",
1530
+ },
1531
+ {
1532
+ internalType: "uint256",
1533
+ name: "amount",
1534
+ type: "uint256",
1535
+ },
1536
+ {
1537
+ internalType: "bytes",
1538
+ name: "userData",
1539
+ type: "bytes",
1540
+ },
1541
+ ],
1542
+ name: "selfBurn",
1543
+ outputs: [],
1544
+ stateMutability: "nonpayable",
1545
+ type: "function",
1546
+ },
1547
+ {
1548
+ inputs: [
1549
+ {
1550
+ internalType: "address",
1551
+ name: "account",
1552
+ type: "address",
1553
+ },
1554
+ {
1555
+ internalType: "uint256",
1556
+ name: "amount",
1557
+ type: "uint256",
1558
+ },
1559
+ {
1560
+ internalType: "bytes",
1561
+ name: "userData",
1562
+ type: "bytes",
1563
+ },
1564
+ ],
1565
+ name: "selfMint",
1566
+ outputs: [],
1567
+ stateMutability: "nonpayable",
1568
+ type: "function",
1569
+ },
1570
+ {
1571
+ inputs: [
1572
+ {
1573
+ internalType: "address",
1574
+ name: "sender",
1575
+ type: "address",
1576
+ },
1577
+ {
1578
+ internalType: "address",
1579
+ name: "spender",
1580
+ type: "address",
1581
+ },
1582
+ {
1583
+ internalType: "address",
1584
+ name: "recipient",
1585
+ type: "address",
1586
+ },
1587
+ {
1588
+ internalType: "uint256",
1589
+ name: "amount",
1590
+ type: "uint256",
1591
+ },
1592
+ ],
1593
+ name: "selfTransferFrom",
1594
+ outputs: [],
1595
+ stateMutability: "nonpayable",
1596
+ type: "function",
1597
+ },
1598
+ {
1599
+ inputs: [
1600
+ {
1601
+ internalType: "address",
1602
+ name: "recipient",
1603
+ type: "address",
1604
+ },
1605
+ {
1606
+ internalType: "uint256",
1607
+ name: "amount",
1608
+ type: "uint256",
1609
+ },
1610
+ {
1611
+ internalType: "bytes",
1612
+ name: "data",
1613
+ type: "bytes",
1614
+ },
1615
+ ],
1616
+ name: "send",
1617
+ outputs: [],
1618
+ stateMutability: "nonpayable",
1619
+ type: "function",
1620
+ },
1621
+ {
1622
+ inputs: [
1623
+ {
1624
+ internalType: "address",
1625
+ name: "account",
1626
+ type: "address",
1627
+ },
1628
+ {
1629
+ internalType: "int256",
1630
+ name: "delta",
1631
+ type: "int256",
1632
+ },
1633
+ ],
1634
+ name: "settleBalance",
1635
+ outputs: [],
1636
+ stateMutability: "nonpayable",
1637
+ type: "function",
1638
+ },
1639
+ {
1640
+ inputs: [],
1641
+ name: "symbol",
1642
+ outputs: [
1643
+ {
1644
+ internalType: "string",
1645
+ name: "",
1646
+ type: "string",
1647
+ },
1648
+ ],
1649
+ stateMutability: "view",
1650
+ type: "function",
1651
+ },
1652
+ {
1653
+ inputs: [
1654
+ {
1655
+ internalType: "bytes32",
1656
+ name: "id",
1657
+ type: "bytes32",
1658
+ },
1659
+ {
1660
+ internalType: "uint256",
1661
+ name: "dataLength",
1662
+ type: "uint256",
1663
+ },
1664
+ ],
1665
+ name: "terminateAgreement",
1666
+ outputs: [],
1667
+ stateMutability: "nonpayable",
1668
+ type: "function",
1669
+ },
1670
+ {
1671
+ inputs: [],
1672
+ name: "totalSupply",
1673
+ outputs: [
1674
+ {
1675
+ internalType: "uint256",
1676
+ name: "",
1677
+ type: "uint256",
1678
+ },
1679
+ ],
1680
+ stateMutability: "view",
1681
+ type: "function",
1682
+ },
1683
+ {
1684
+ inputs: [
1685
+ {
1686
+ internalType: "address",
1687
+ name: "recipient",
1688
+ type: "address",
1689
+ },
1690
+ {
1691
+ internalType: "uint256",
1692
+ name: "amount",
1693
+ type: "uint256",
1694
+ },
1695
+ ],
1696
+ name: "transfer",
1697
+ outputs: [
1698
+ {
1699
+ internalType: "bool",
1700
+ name: "",
1701
+ type: "bool",
1702
+ },
1703
+ ],
1704
+ stateMutability: "nonpayable",
1705
+ type: "function",
1706
+ },
1707
+ {
1708
+ inputs: [
1709
+ {
1710
+ internalType: "address",
1711
+ name: "recipient",
1712
+ type: "address",
1713
+ },
1714
+ ],
1715
+ name: "transferAll",
1716
+ outputs: [],
1717
+ stateMutability: "nonpayable",
1718
+ type: "function",
1719
+ },
1720
+ {
1721
+ inputs: [
1722
+ {
1723
+ internalType: "address",
1724
+ name: "sender",
1725
+ type: "address",
1726
+ },
1727
+ {
1728
+ internalType: "address",
1729
+ name: "recipient",
1730
+ type: "address",
1731
+ },
1732
+ {
1733
+ internalType: "uint256",
1734
+ name: "amount",
1735
+ type: "uint256",
1736
+ },
1737
+ ],
1738
+ name: "transferFrom",
1739
+ outputs: [
1740
+ {
1741
+ internalType: "bool",
1742
+ name: "",
1743
+ type: "bool",
1744
+ },
1745
+ ],
1746
+ stateMutability: "nonpayable",
1747
+ type: "function",
1748
+ },
1749
+ {
1750
+ inputs: [
1751
+ {
1752
+ internalType: "bytes32",
1753
+ name: "id",
1754
+ type: "bytes32",
1755
+ },
1756
+ {
1757
+ internalType: "bytes32[]",
1758
+ name: "data",
1759
+ type: "bytes32[]",
1760
+ },
1761
+ ],
1762
+ name: "updateAgreementData",
1763
+ outputs: [],
1764
+ stateMutability: "nonpayable",
1765
+ type: "function",
1766
+ },
1767
+ {
1768
+ inputs: [
1769
+ {
1770
+ internalType: "address",
1771
+ name: "account",
1772
+ type: "address",
1773
+ },
1774
+ {
1775
+ internalType: "uint256",
1776
+ name: "slotId",
1777
+ type: "uint256",
1778
+ },
1779
+ {
1780
+ internalType: "bytes32[]",
1781
+ name: "slotData",
1782
+ type: "bytes32[]",
1783
+ },
1784
+ ],
1785
+ name: "updateAgreementStateSlot",
1786
+ outputs: [],
1787
+ stateMutability: "nonpayable",
1788
+ type: "function",
1789
+ },
1790
+ {
1791
+ inputs: [
1792
+ {
1793
+ internalType: "uint256",
1794
+ name: "amount",
1795
+ type: "uint256",
1796
+ },
1797
+ ],
1798
+ name: "upgrade",
1799
+ outputs: [],
1800
+ stateMutability: "nonpayable",
1801
+ type: "function",
1802
+ },
1803
+ {
1804
+ inputs: [
1805
+ {
1806
+ internalType: "address",
1807
+ name: "to",
1808
+ type: "address",
1809
+ },
1810
+ {
1811
+ internalType: "uint256",
1812
+ name: "amount",
1813
+ type: "uint256",
1814
+ },
1815
+ {
1816
+ internalType: "bytes",
1817
+ name: "data",
1818
+ type: "bytes",
1819
+ },
1820
+ ],
1821
+ name: "upgradeTo",
1822
+ outputs: [],
1823
+ stateMutability: "nonpayable",
1824
+ type: "function",
1825
+ },
1826
+ ] as const;
1827
+
1828
+ export class ISuperToken__factory {
1829
+ static readonly abi = _abi;
1830
+ static createInterface(): ISuperTokenInterface {
1831
+ return new utils.Interface(_abi) as ISuperTokenInterface;
1832
+ }
1833
+ static connect(
1834
+ address: string,
1835
+ signerOrProvider: Signer | Provider
1836
+ ): ISuperToken {
1837
+ return new Contract(address, _abi, signerOrProvider) as ISuperToken;
1838
+ }
1839
+ }