@coinbase/agentkit 0.10.0 → 0.10.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 (169) hide show
  1. package/README.md +195 -23
  2. package/dist/action-providers/across/acrossActionProvider.js +3 -3
  3. package/dist/action-providers/across/schemas.d.ts +1 -1
  4. package/dist/action-providers/baseAccount/baseAccountActionProvider.d.ts +46 -0
  5. package/dist/action-providers/baseAccount/baseAccountActionProvider.js +404 -0
  6. package/dist/action-providers/baseAccount/baseAccountActionProvider.test.d.ts +1 -0
  7. package/dist/action-providers/baseAccount/baseAccountActionProvider.test.js +325 -0
  8. package/dist/action-providers/baseAccount/index.d.ts +2 -0
  9. package/dist/action-providers/baseAccount/index.js +18 -0
  10. package/dist/action-providers/baseAccount/schemas.d.ts +43 -0
  11. package/dist/action-providers/baseAccount/schemas.js +62 -0
  12. package/dist/action-providers/baseAccount/types.d.ts +17 -0
  13. package/dist/action-providers/baseAccount/types.js +2 -0
  14. package/dist/action-providers/baseAccount/utils.d.ts +14 -0
  15. package/dist/action-providers/baseAccount/utils.js +57 -0
  16. package/dist/action-providers/cdp/cdpApiActionProvider.d.ts +3 -12
  17. package/dist/action-providers/cdp/cdpApiActionProvider.js +2 -81
  18. package/dist/action-providers/cdp/cdpApiActionProvider.test.js +0 -125
  19. package/dist/action-providers/cdp/cdpEvmWalletActionProvider.d.ts +18 -3
  20. package/dist/action-providers/cdp/cdpEvmWalletActionProvider.js +224 -23
  21. package/dist/action-providers/cdp/cdpEvmWalletActionProvider.test.js +280 -0
  22. package/dist/action-providers/cdp/cdpSmartWalletActionProvider.d.ts +17 -2
  23. package/dist/action-providers/cdp/cdpSmartWalletActionProvider.js +224 -18
  24. package/dist/action-providers/cdp/cdpSmartWalletActionProvider.test.js +267 -1
  25. package/dist/action-providers/cdp/schemas.d.ts +12 -12
  26. package/dist/action-providers/cdp/schemas.js +17 -5
  27. package/dist/action-providers/cdp/swapUtils.d.ts +23 -0
  28. package/dist/action-providers/cdp/swapUtils.js +106 -0
  29. package/dist/action-providers/clanker/clankerActionProvider.d.ts +43 -0
  30. package/dist/action-providers/clanker/clankerActionProvider.js +130 -0
  31. package/dist/action-providers/clanker/clankerActionProvider.test.d.ts +4 -0
  32. package/dist/action-providers/clanker/clankerActionProvider.test.js +119 -0
  33. package/dist/action-providers/clanker/index.d.ts +2 -0
  34. package/dist/action-providers/clanker/index.js +18 -0
  35. package/dist/action-providers/clanker/schemas.d.ts +56 -0
  36. package/dist/action-providers/clanker/schemas.js +47 -0
  37. package/dist/action-providers/clanker/utils.d.ts +9 -0
  38. package/dist/action-providers/clanker/utils.js +23 -0
  39. package/dist/action-providers/compound/constants.d.ts +1 -1
  40. package/dist/action-providers/compound/constants.js +2 -2
  41. package/dist/action-providers/erc20/constants.d.ts +35 -135
  42. package/dist/action-providers/erc20/constants.js +37 -189
  43. package/dist/action-providers/erc20/erc20ActionProvider.d.ts +9 -1
  44. package/dist/action-providers/erc20/erc20ActionProvider.js +87 -35
  45. package/dist/action-providers/erc20/erc20ActionProvider.test.js +115 -52
  46. package/dist/action-providers/erc20/schemas.d.ts +25 -12
  47. package/dist/action-providers/erc20/schemas.js +34 -6
  48. package/dist/action-providers/erc20/utils.d.ts +19 -0
  49. package/dist/action-providers/erc20/utils.js +54 -0
  50. package/dist/action-providers/flaunch/client_utils.d.ts +25 -0
  51. package/dist/action-providers/flaunch/client_utils.js +62 -0
  52. package/dist/action-providers/flaunch/constants.d.ts +42 -21
  53. package/dist/action-providers/flaunch/constants.js +113 -38
  54. package/dist/action-providers/flaunch/flaunchActionProvider.d.ts +4 -43
  55. package/dist/action-providers/flaunch/flaunchActionProvider.js +133 -209
  56. package/dist/action-providers/flaunch/flaunchActionProvider.test.js +113 -13
  57. package/dist/action-providers/flaunch/metadata_utils.d.ts +12 -0
  58. package/dist/action-providers/flaunch/metadata_utils.js +216 -0
  59. package/dist/action-providers/flaunch/schemas.d.ts +39 -3
  60. package/dist/action-providers/flaunch/schemas.js +62 -10
  61. package/dist/action-providers/flaunch/{utils.d.ts → swap_utils.d.ts} +17 -19
  62. package/dist/action-providers/flaunch/{utils.js → swap_utils.js} +137 -172
  63. package/dist/action-providers/index.d.ts +4 -0
  64. package/dist/action-providers/index.js +4 -0
  65. package/dist/action-providers/jupiter/schemas.d.ts +1 -1
  66. package/dist/action-providers/moonwell/schemas.d.ts +2 -2
  67. package/dist/action-providers/morpho/morphoActionProvider.js +5 -5
  68. package/dist/action-providers/morpho/schemas.d.ts +2 -2
  69. package/dist/action-providers/pyth/pythActionProvider.d.ts +2 -2
  70. package/dist/action-providers/pyth/pythActionProvider.js +83 -26
  71. package/dist/action-providers/pyth/pythActionProvider.test.js +179 -23
  72. package/dist/action-providers/pyth/schemas.d.ts +6 -0
  73. package/dist/action-providers/pyth/schemas.js +9 -1
  74. package/dist/action-providers/superfluid/constants.d.ts +814 -0
  75. package/dist/action-providers/superfluid/constants.js +2826 -0
  76. package/dist/action-providers/superfluid/graphQueries/endpoints.d.ts +2 -0
  77. package/dist/action-providers/superfluid/graphQueries/endpoints.js +5 -0
  78. package/dist/action-providers/superfluid/graphQueries/queries.d.ts +1 -0
  79. package/dist/action-providers/superfluid/graphQueries/queries.js +35 -0
  80. package/dist/action-providers/superfluid/graphQueries/superfluidGraphQueries.d.ts +8 -0
  81. package/dist/action-providers/superfluid/graphQueries/superfluidGraphQueries.js +24 -0
  82. package/dist/action-providers/superfluid/graphQueries/types.d.ts +27 -0
  83. package/dist/action-providers/superfluid/graphQueries/types.js +2 -0
  84. package/dist/action-providers/superfluid/index.d.ts +7 -0
  85. package/dist/action-providers/superfluid/index.js +23 -0
  86. package/dist/action-providers/superfluid/schemas.d.ts +86 -0
  87. package/dist/action-providers/superfluid/schemas.js +103 -0
  88. package/dist/action-providers/superfluid/superfluidActionProvider.d.ts +20 -0
  89. package/dist/action-providers/superfluid/superfluidActionProvider.js +36 -0
  90. package/dist/action-providers/superfluid/superfluidPoolActionProvider.d.ts +46 -0
  91. package/dist/action-providers/superfluid/superfluidPoolActionProvider.js +143 -0
  92. package/dist/action-providers/superfluid/superfluidPoolActionProvider.test.d.ts +1 -0
  93. package/dist/action-providers/superfluid/superfluidPoolActionProvider.test.js +92 -0
  94. package/dist/action-providers/superfluid/superfluidQueryActionProvider.d.ts +27 -0
  95. package/dist/action-providers/superfluid/superfluidQueryActionProvider.js +71 -0
  96. package/dist/action-providers/superfluid/superfluidQueryActionProvider.test.d.ts +1 -0
  97. package/dist/action-providers/superfluid/superfluidQueryActionProvider.test.js +57 -0
  98. package/dist/action-providers/superfluid/superfluidStreamActionProvider.d.ts +56 -0
  99. package/dist/action-providers/superfluid/superfluidStreamActionProvider.js +191 -0
  100. package/dist/action-providers/superfluid/superfluidStreamActionProvider.test.d.ts +1 -0
  101. package/dist/action-providers/superfluid/superfluidStreamActionProvider.test.js +80 -0
  102. package/dist/action-providers/superfluid/superfluidSuperTokenCreatorActionProvider.d.ts +30 -0
  103. package/dist/action-providers/superfluid/superfluidSuperTokenCreatorActionProvider.js +109 -0
  104. package/dist/action-providers/superfluid/superfluidSuperTokenCreatorActionProvider.test.d.ts +1 -0
  105. package/dist/action-providers/superfluid/superfluidSuperTokenCreatorActionProvider.test.js +75 -0
  106. package/dist/action-providers/superfluid/superfluidWrapperActionProvider.d.ts +32 -0
  107. package/dist/action-providers/superfluid/superfluidWrapperActionProvider.js +101 -0
  108. package/dist/action-providers/superfluid/superfluidWrapperActionProvider.test.d.ts +1 -0
  109. package/dist/action-providers/superfluid/superfluidWrapperActionProvider.test.js +85 -0
  110. package/dist/action-providers/superfluid/utils/parseLogs.d.ts +19 -0
  111. package/dist/action-providers/superfluid/utils/parseLogs.js +81 -0
  112. package/dist/action-providers/truemarkets/truemarketsActionProvider.d.ts +4 -16
  113. package/dist/action-providers/truemarkets/truemarketsActionProvider.js +20 -41
  114. package/dist/action-providers/truemarkets/truemarketsActionProvider.test.js +11 -33
  115. package/dist/action-providers/wallet/walletActionProvider.js +24 -10
  116. package/dist/action-providers/wallet/walletActionProvider.test.js +6 -2
  117. package/dist/action-providers/x402/schemas.d.ts +7 -0
  118. package/dist/action-providers/x402/schemas.js +11 -1
  119. package/dist/action-providers/x402/utils.d.ts +55 -0
  120. package/dist/action-providers/x402/utils.js +160 -0
  121. package/dist/action-providers/x402/x402ActionProvider.d.ts +9 -9
  122. package/dist/action-providers/x402/x402ActionProvider.js +158 -39
  123. package/dist/action-providers/x402/x402ActionProvider.test.js +116 -10
  124. package/dist/action-providers/zeroX/index.d.ts +1 -0
  125. package/dist/action-providers/zeroX/index.js +17 -0
  126. package/dist/action-providers/zeroX/schemas.d.ts +51 -0
  127. package/dist/action-providers/zeroX/schemas.js +82 -0
  128. package/dist/action-providers/zeroX/utils.d.ts +23 -0
  129. package/dist/action-providers/zeroX/utils.js +106 -0
  130. package/dist/action-providers/zeroX/zeroXActionProvider.d.ts +57 -0
  131. package/dist/action-providers/zeroX/zeroXActionProvider.js +407 -0
  132. package/dist/action-providers/zeroX/zeroXActionProvider.test.d.ts +1 -0
  133. package/dist/action-providers/zeroX/zeroXActionProvider.test.js +445 -0
  134. package/dist/utils.d.ts +10 -0
  135. package/dist/utils.js +43 -13
  136. package/dist/wallet-providers/cdpEvmWalletProvider.d.ts +27 -2
  137. package/dist/wallet-providers/cdpEvmWalletProvider.js +54 -36
  138. package/dist/wallet-providers/cdpEvmWalletProvider.test.js +7 -0
  139. package/dist/wallet-providers/cdpShared.d.ts +5 -0
  140. package/dist/wallet-providers/cdpSmartWalletProvider.d.ts +29 -3
  141. package/dist/wallet-providers/cdpSmartWalletProvider.js +66 -25
  142. package/dist/wallet-providers/cdpSmartWalletProvider.test.js +6 -10
  143. package/dist/wallet-providers/cdpSolanaWalletProvider.d.ts +1 -1
  144. package/dist/wallet-providers/cdpSolanaWalletProvider.js +7 -7
  145. package/dist/wallet-providers/cdpSolanaWalletProvider.test.js +15 -12
  146. package/dist/wallet-providers/evmWalletProvider.d.ts +13 -2
  147. package/dist/wallet-providers/evmWalletProvider.js +4 -0
  148. package/dist/wallet-providers/legacyCdpSmartWalletProvider.d.ts +18 -2
  149. package/dist/wallet-providers/legacyCdpSmartWalletProvider.js +23 -2
  150. package/dist/wallet-providers/legacyCdpWalletProvider.d.ts +19 -2
  151. package/dist/wallet-providers/legacyCdpWalletProvider.js +27 -2
  152. package/dist/wallet-providers/legacyCdpWalletProvider.test.js +6 -0
  153. package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.d.ts +17 -2
  154. package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.js +39 -3
  155. package/dist/wallet-providers/privyEvmDelegatedEmbeddedWalletProvider.test.js +1 -1
  156. package/dist/wallet-providers/privyEvmWalletProvider.d.ts +2 -0
  157. package/dist/wallet-providers/privyEvmWalletProvider.js +2 -1
  158. package/dist/wallet-providers/privyEvmWalletProvider.test.js +12 -1
  159. package/dist/wallet-providers/solanaKeypairWalletProvider.d.ts +1 -1
  160. package/dist/wallet-providers/solanaKeypairWalletProvider.js +3 -4
  161. package/dist/wallet-providers/solanaKeypairWalletProvider.test.js +4 -2
  162. package/dist/wallet-providers/viemWalletProvider.d.ts +20 -3
  163. package/dist/wallet-providers/viemWalletProvider.js +33 -4
  164. package/dist/wallet-providers/viemWalletProvider.test.js +27 -6
  165. package/dist/wallet-providers/walletProvider.d.ts +1 -1
  166. package/dist/wallet-providers/zeroDevWalletProvider.d.ts +17 -2
  167. package/dist/wallet-providers/zeroDevWalletProvider.js +26 -5
  168. package/dist/wallet-providers/zeroDevWalletProvider.test.js +12 -2
  169. package/package.json +8 -4
@@ -0,0 +1,2826 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ISuperTokenAbi = exports.SuperTokenFactoryABI = exports.SuperTokenFactoryAddress_Base_Sepolia = exports.SuperTokenFactoryAddress = exports.GDAv1ForwarderABI = exports.CFAv1ForwarderABI = exports.GDAv1ForwarderAddress = exports.CFAv1ForwarderAddress = void 0;
4
+ // For money streaming
5
+ exports.CFAv1ForwarderAddress = "0xcfA132E353cB4E398080B9700609bb008eceB125";
6
+ // For distribution pools
7
+ exports.GDAv1ForwarderAddress = "0x6DA13Bde224A05a288748d857b9e7DDEffd1dE08";
8
+ exports.CFAv1ForwarderABI = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "contract ISuperfluid",
13
+ name: "host",
14
+ type: "address",
15
+ },
16
+ ],
17
+ stateMutability: "nonpayable",
18
+ type: "constructor",
19
+ },
20
+ { inputs: [], name: "CFA_FWD_INVALID_FLOW_RATE", type: "error" },
21
+ {
22
+ inputs: [
23
+ {
24
+ internalType: "contract ISuperToken",
25
+ name: "token",
26
+ type: "address",
27
+ },
28
+ { internalType: "address", name: "sender", type: "address" },
29
+ { internalType: "address", name: "receiver", type: "address" },
30
+ { internalType: "int96", name: "flowrate", type: "int96" },
31
+ { internalType: "bytes", name: "userData", type: "bytes" },
32
+ ],
33
+ name: "createFlow",
34
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
35
+ stateMutability: "nonpayable",
36
+ type: "function",
37
+ },
38
+ {
39
+ inputs: [
40
+ {
41
+ internalType: "contract ISuperToken",
42
+ name: "token",
43
+ type: "address",
44
+ },
45
+ { internalType: "address", name: "sender", type: "address" },
46
+ { internalType: "address", name: "receiver", type: "address" },
47
+ { internalType: "bytes", name: "userData", type: "bytes" },
48
+ ],
49
+ name: "deleteFlow",
50
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
51
+ stateMutability: "nonpayable",
52
+ type: "function",
53
+ },
54
+ {
55
+ inputs: [
56
+ {
57
+ internalType: "contract ISuperToken",
58
+ name: "token",
59
+ type: "address",
60
+ },
61
+ { internalType: "address", name: "account", type: "address" },
62
+ ],
63
+ name: "getAccountFlowInfo",
64
+ outputs: [
65
+ { internalType: "uint256", name: "lastUpdated", type: "uint256" },
66
+ { internalType: "int96", name: "flowrate", type: "int96" },
67
+ { internalType: "uint256", name: "deposit", type: "uint256" },
68
+ { internalType: "uint256", name: "owedDeposit", type: "uint256" },
69
+ ],
70
+ stateMutability: "view",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "contract ISuperToken",
77
+ name: "token",
78
+ type: "address",
79
+ },
80
+ { internalType: "address", name: "account", type: "address" },
81
+ ],
82
+ name: "getAccountFlowrate",
83
+ outputs: [{ internalType: "int96", name: "flowrate", type: "int96" }],
84
+ stateMutability: "view",
85
+ type: "function",
86
+ },
87
+ {
88
+ inputs: [
89
+ {
90
+ internalType: "contract ISuperToken",
91
+ name: "token",
92
+ type: "address",
93
+ },
94
+ { internalType: "int96", name: "flowrate", type: "int96" },
95
+ ],
96
+ name: "getBufferAmountByFlowrate",
97
+ outputs: [{ internalType: "uint256", name: "bufferAmount", type: "uint256" }],
98
+ stateMutability: "view",
99
+ type: "function",
100
+ },
101
+ {
102
+ inputs: [
103
+ {
104
+ internalType: "contract ISuperToken",
105
+ name: "token",
106
+ type: "address",
107
+ },
108
+ { internalType: "address", name: "sender", type: "address" },
109
+ { internalType: "address", name: "receiver", type: "address" },
110
+ ],
111
+ name: "getFlowInfo",
112
+ outputs: [
113
+ { internalType: "uint256", name: "lastUpdated", type: "uint256" },
114
+ { internalType: "int96", name: "flowrate", type: "int96" },
115
+ { internalType: "uint256", name: "deposit", type: "uint256" },
116
+ { internalType: "uint256", name: "owedDeposit", type: "uint256" },
117
+ ],
118
+ stateMutability: "view",
119
+ type: "function",
120
+ },
121
+ {
122
+ inputs: [
123
+ {
124
+ internalType: "contract ISuperToken",
125
+ name: "token",
126
+ type: "address",
127
+ },
128
+ { internalType: "address", name: "sender", type: "address" },
129
+ { internalType: "address", name: "flowOperator", type: "address" },
130
+ ],
131
+ name: "getFlowOperatorPermissions",
132
+ outputs: [
133
+ { internalType: "uint8", name: "permissions", type: "uint8" },
134
+ { internalType: "int96", name: "flowrateAllowance", type: "int96" },
135
+ ],
136
+ stateMutability: "view",
137
+ type: "function",
138
+ },
139
+ {
140
+ inputs: [
141
+ {
142
+ internalType: "contract ISuperToken",
143
+ name: "token",
144
+ type: "address",
145
+ },
146
+ { internalType: "address", name: "sender", type: "address" },
147
+ { internalType: "address", name: "receiver", type: "address" },
148
+ ],
149
+ name: "getFlowrate",
150
+ outputs: [{ internalType: "int96", name: "flowrate", type: "int96" }],
151
+ stateMutability: "view",
152
+ type: "function",
153
+ },
154
+ {
155
+ inputs: [
156
+ {
157
+ internalType: "contract ISuperToken",
158
+ name: "token",
159
+ type: "address",
160
+ },
161
+ { internalType: "address", name: "flowOperator", type: "address" },
162
+ ],
163
+ name: "grantPermissions",
164
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
165
+ stateMutability: "nonpayable",
166
+ type: "function",
167
+ },
168
+ {
169
+ inputs: [
170
+ {
171
+ internalType: "contract ISuperToken",
172
+ name: "token",
173
+ type: "address",
174
+ },
175
+ { internalType: "address", name: "flowOperator", type: "address" },
176
+ ],
177
+ name: "revokePermissions",
178
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
179
+ stateMutability: "nonpayable",
180
+ type: "function",
181
+ },
182
+ {
183
+ inputs: [
184
+ {
185
+ internalType: "contract ISuperToken",
186
+ name: "token",
187
+ type: "address",
188
+ },
189
+ { internalType: "address", name: "receiver", type: "address" },
190
+ { internalType: "int96", name: "flowrate", type: "int96" },
191
+ ],
192
+ name: "setFlowrate",
193
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
194
+ stateMutability: "nonpayable",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [
199
+ {
200
+ internalType: "contract ISuperToken",
201
+ name: "token",
202
+ type: "address",
203
+ },
204
+ { internalType: "address", name: "sender", type: "address" },
205
+ { internalType: "address", name: "receiver", type: "address" },
206
+ { internalType: "int96", name: "flowrate", type: "int96" },
207
+ ],
208
+ name: "setFlowrateFrom",
209
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
210
+ stateMutability: "nonpayable",
211
+ type: "function",
212
+ },
213
+ {
214
+ inputs: [
215
+ {
216
+ internalType: "contract ISuperToken",
217
+ name: "token",
218
+ type: "address",
219
+ },
220
+ { internalType: "address", name: "sender", type: "address" },
221
+ { internalType: "address", name: "receiver", type: "address" },
222
+ { internalType: "int96", name: "flowrate", type: "int96" },
223
+ { internalType: "bytes", name: "userData", type: "bytes" },
224
+ ],
225
+ name: "updateFlow",
226
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
227
+ stateMutability: "nonpayable",
228
+ type: "function",
229
+ },
230
+ {
231
+ inputs: [
232
+ {
233
+ internalType: "contract ISuperToken",
234
+ name: "token",
235
+ type: "address",
236
+ },
237
+ { internalType: "address", name: "flowOperator", type: "address" },
238
+ { internalType: "uint8", name: "permissions", type: "uint8" },
239
+ { internalType: "int96", name: "flowrateAllowance", type: "int96" },
240
+ ],
241
+ name: "updateFlowOperatorPermissions",
242
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
243
+ stateMutability: "nonpayable",
244
+ type: "function",
245
+ },
246
+ ];
247
+ exports.GDAv1ForwarderABI = [
248
+ {
249
+ inputs: [
250
+ {
251
+ internalType: "contract ISuperfluid",
252
+ name: "host",
253
+ type: "address",
254
+ },
255
+ ],
256
+ stateMutability: "nonpayable",
257
+ type: "constructor",
258
+ },
259
+ {
260
+ inputs: [
261
+ {
262
+ internalType: "contract ISuperfluidPool",
263
+ name: "pool",
264
+ type: "address",
265
+ },
266
+ { internalType: "address", name: "memberAddress", type: "address" },
267
+ { internalType: "bytes", name: "userData", type: "bytes" },
268
+ ],
269
+ name: "claimAll",
270
+ outputs: [{ internalType: "bool", name: "success", type: "bool" }],
271
+ stateMutability: "nonpayable",
272
+ type: "function",
273
+ },
274
+ {
275
+ inputs: [
276
+ {
277
+ internalType: "contract ISuperfluidPool",
278
+ name: "pool",
279
+ type: "address",
280
+ },
281
+ { internalType: "bytes", name: "userData", type: "bytes" },
282
+ ],
283
+ name: "connectPool",
284
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
285
+ stateMutability: "nonpayable",
286
+ type: "function",
287
+ },
288
+ {
289
+ inputs: [
290
+ {
291
+ internalType: "contract ISuperfluidToken",
292
+ name: "token",
293
+ type: "address",
294
+ },
295
+ { internalType: "address", name: "admin", type: "address" },
296
+ {
297
+ components: [
298
+ {
299
+ internalType: "bool",
300
+ name: "transferabilityForUnitsOwner",
301
+ type: "bool",
302
+ },
303
+ {
304
+ internalType: "bool",
305
+ name: "distributionFromAnyAddress",
306
+ type: "bool",
307
+ },
308
+ ],
309
+ internalType: "struct PoolConfig",
310
+ name: "config",
311
+ type: "tuple",
312
+ },
313
+ ],
314
+ name: "createPool",
315
+ outputs: [
316
+ { internalType: "bool", name: "success", type: "bool" },
317
+ {
318
+ internalType: "contract ISuperfluidPool",
319
+ name: "pool",
320
+ type: "address",
321
+ },
322
+ ],
323
+ stateMutability: "nonpayable",
324
+ type: "function",
325
+ },
326
+ {
327
+ inputs: [
328
+ {
329
+ internalType: "contract ISuperfluidPool",
330
+ name: "pool",
331
+ type: "address",
332
+ },
333
+ { internalType: "bytes", name: "userData", type: "bytes" },
334
+ ],
335
+ name: "disconnectPool",
336
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
337
+ stateMutability: "nonpayable",
338
+ type: "function",
339
+ },
340
+ {
341
+ inputs: [
342
+ {
343
+ internalType: "contract ISuperfluidToken",
344
+ name: "token",
345
+ type: "address",
346
+ },
347
+ { internalType: "address", name: "from", type: "address" },
348
+ {
349
+ internalType: "contract ISuperfluidPool",
350
+ name: "pool",
351
+ type: "address",
352
+ },
353
+ {
354
+ internalType: "uint256",
355
+ name: "requestedAmount",
356
+ type: "uint256",
357
+ },
358
+ { internalType: "bytes", name: "userData", type: "bytes" },
359
+ ],
360
+ name: "distribute",
361
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
362
+ stateMutability: "nonpayable",
363
+ type: "function",
364
+ },
365
+ {
366
+ inputs: [
367
+ {
368
+ internalType: "contract ISuperfluidToken",
369
+ name: "token",
370
+ type: "address",
371
+ },
372
+ { internalType: "address", name: "from", type: "address" },
373
+ {
374
+ internalType: "contract ISuperfluidPool",
375
+ name: "pool",
376
+ type: "address",
377
+ },
378
+ { internalType: "int96", name: "requestedFlowRate", type: "int96" },
379
+ { internalType: "bytes", name: "userData", type: "bytes" },
380
+ ],
381
+ name: "distributeFlow",
382
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
383
+ stateMutability: "nonpayable",
384
+ type: "function",
385
+ },
386
+ {
387
+ inputs: [
388
+ {
389
+ internalType: "contract ISuperfluidToken",
390
+ name: "token",
391
+ type: "address",
392
+ },
393
+ { internalType: "address", name: "from", type: "address" },
394
+ {
395
+ internalType: "contract ISuperfluidPool",
396
+ name: "to",
397
+ type: "address",
398
+ },
399
+ {
400
+ internalType: "uint256",
401
+ name: "requestedAmount",
402
+ type: "uint256",
403
+ },
404
+ ],
405
+ name: "estimateDistributionActualAmount",
406
+ outputs: [{ internalType: "uint256", name: "actualAmount", type: "uint256" }],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "contract ISuperfluidToken",
414
+ name: "token",
415
+ type: "address",
416
+ },
417
+ { internalType: "address", name: "from", type: "address" },
418
+ {
419
+ internalType: "contract ISuperfluidPool",
420
+ name: "to",
421
+ type: "address",
422
+ },
423
+ { internalType: "int96", name: "requestedFlowRate", type: "int96" },
424
+ ],
425
+ name: "estimateFlowDistributionActualFlowRate",
426
+ outputs: [
427
+ { internalType: "int96", name: "actualFlowRate", type: "int96" },
428
+ {
429
+ internalType: "int96",
430
+ name: "totalDistributionFlowRate",
431
+ type: "int96",
432
+ },
433
+ ],
434
+ stateMutability: "view",
435
+ type: "function",
436
+ },
437
+ {
438
+ inputs: [
439
+ {
440
+ internalType: "contract ISuperfluidToken",
441
+ name: "token",
442
+ type: "address",
443
+ },
444
+ { internalType: "address", name: "from", type: "address" },
445
+ {
446
+ internalType: "contract ISuperfluidPool",
447
+ name: "to",
448
+ type: "address",
449
+ },
450
+ ],
451
+ name: "getFlowDistributionFlowRate",
452
+ outputs: [{ internalType: "int96", name: "", type: "int96" }],
453
+ stateMutability: "view",
454
+ type: "function",
455
+ },
456
+ {
457
+ inputs: [
458
+ {
459
+ internalType: "contract ISuperfluidToken",
460
+ name: "token",
461
+ type: "address",
462
+ },
463
+ { internalType: "address", name: "account", type: "address" },
464
+ ],
465
+ name: "getNetFlow",
466
+ outputs: [{ internalType: "int96", name: "", type: "int96" }],
467
+ stateMutability: "view",
468
+ type: "function",
469
+ },
470
+ {
471
+ inputs: [
472
+ {
473
+ internalType: "contract ISuperfluidPool",
474
+ name: "pool",
475
+ type: "address",
476
+ },
477
+ ],
478
+ name: "getPoolAdjustmentFlowInfo",
479
+ outputs: [
480
+ { internalType: "address", name: "", type: "address" },
481
+ { internalType: "bytes32", name: "", type: "bytes32" },
482
+ { internalType: "int96", name: "", type: "int96" },
483
+ ],
484
+ stateMutability: "view",
485
+ type: "function",
486
+ },
487
+ {
488
+ inputs: [{ internalType: "address", name: "pool", type: "address" }],
489
+ name: "getPoolAdjustmentFlowRate",
490
+ outputs: [{ internalType: "int96", name: "", type: "int96" }],
491
+ stateMutability: "view",
492
+ type: "function",
493
+ },
494
+ {
495
+ inputs: [
496
+ {
497
+ internalType: "contract ISuperfluidPool",
498
+ name: "pool",
499
+ type: "address",
500
+ },
501
+ { internalType: "address", name: "member", type: "address" },
502
+ ],
503
+ name: "isMemberConnected",
504
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
505
+ stateMutability: "view",
506
+ type: "function",
507
+ },
508
+ {
509
+ inputs: [
510
+ {
511
+ internalType: "contract ISuperfluidToken",
512
+ name: "token",
513
+ type: "address",
514
+ },
515
+ { internalType: "address", name: "account", type: "address" },
516
+ ],
517
+ name: "isPool",
518
+ outputs: [{ internalType: "bool", name: "", type: "bool" }],
519
+ stateMutability: "view",
520
+ type: "function",
521
+ },
522
+ {
523
+ inputs: [
524
+ {
525
+ internalType: "contract ISuperfluidPool",
526
+ name: "pool",
527
+ type: "address",
528
+ },
529
+ { internalType: "address", name: "memberAddress", type: "address" },
530
+ { internalType: "uint128", name: "newUnits", type: "uint128" },
531
+ { internalType: "bytes", name: "userData", type: "bytes" },
532
+ ],
533
+ name: "updateMemberUnits",
534
+ outputs: [{ internalType: "bool", name: "success", type: "bool" }],
535
+ stateMutability: "nonpayable",
536
+ type: "function",
537
+ },
538
+ ];
539
+ exports.SuperTokenFactoryAddress = "0xe20B9a38E0c96F61d1bA6b42a61512D56Fea1Eb3";
540
+ exports.SuperTokenFactoryAddress_Base_Sepolia = "0x7447E94Dfe3d804a9f46Bf12838d467c912C8F6C";
541
+ exports.SuperTokenFactoryABI = [
542
+ {
543
+ inputs: [
544
+ { internalType: "contract ISuperfluid", name: "host", type: "address" },
545
+ { internalType: "contract ISuperToken", name: "superTokenLogic", type: "address" },
546
+ {
547
+ internalType: "contract IConstantOutflowNFT",
548
+ name: "constantOutflowNFTLogic",
549
+ type: "address",
550
+ },
551
+ {
552
+ internalType: "contract IConstantInflowNFT",
553
+ name: "constantInflowNFTLogic",
554
+ type: "address",
555
+ },
556
+ { internalType: "contract IPoolAdminNFT", name: "poolAdminNFTLogic", type: "address" },
557
+ { internalType: "contract IPoolMemberNFT", name: "poolMemberNFTLogic", type: "address" },
558
+ ],
559
+ stateMutability: "nonpayable",
560
+ type: "constructor",
561
+ },
562
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_ALREADY_EXISTS", type: "error" },
563
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_DOES_NOT_EXIST", type: "error" },
564
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_NON_UPGRADEABLE_IS_DEPRECATED", type: "error" },
565
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_ONLY_GOVERNANCE_OWNER", type: "error" },
566
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_ONLY_HOST", type: "error" },
567
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_UNINITIALIZED", type: "error" },
568
+ { inputs: [], name: "SUPER_TOKEN_FACTORY_ZERO_ADDRESS", type: "error" },
569
+ {
570
+ anonymous: false,
571
+ inputs: [
572
+ { indexed: false, internalType: "bytes32", name: "uuid", type: "bytes32" },
573
+ { indexed: false, internalType: "address", name: "codeAddress", type: "address" },
574
+ ],
575
+ name: "CodeUpdated",
576
+ type: "event",
577
+ },
578
+ {
579
+ anonymous: false,
580
+ inputs: [
581
+ { indexed: true, internalType: "contract ISuperToken", name: "token", type: "address" },
582
+ ],
583
+ name: "CustomSuperTokenCreated",
584
+ type: "event",
585
+ },
586
+ {
587
+ anonymous: false,
588
+ inputs: [{ indexed: false, internalType: "uint8", name: "version", type: "uint8" }],
589
+ name: "Initialized",
590
+ type: "event",
591
+ },
592
+ {
593
+ anonymous: false,
594
+ inputs: [
595
+ { indexed: true, internalType: "contract ISuperToken", name: "token", type: "address" },
596
+ ],
597
+ name: "SuperTokenCreated",
598
+ type: "event",
599
+ },
600
+ {
601
+ anonymous: false,
602
+ inputs: [
603
+ { indexed: true, internalType: "contract ISuperToken", name: "tokenLogic", type: "address" },
604
+ ],
605
+ name: "SuperTokenLogicCreated",
606
+ type: "event",
607
+ },
608
+ {
609
+ inputs: [],
610
+ name: "CONSTANT_INFLOW_NFT_LOGIC",
611
+ outputs: [{ internalType: "contract IConstantInflowNFT", name: "", type: "address" }],
612
+ stateMutability: "view",
613
+ type: "function",
614
+ },
615
+ {
616
+ inputs: [],
617
+ name: "CONSTANT_OUTFLOW_NFT_LOGIC",
618
+ outputs: [{ internalType: "contract IConstantOutflowNFT", name: "", type: "address" }],
619
+ stateMutability: "view",
620
+ type: "function",
621
+ },
622
+ {
623
+ inputs: [],
624
+ name: "POOL_ADMIN_NFT_LOGIC",
625
+ outputs: [{ internalType: "contract IPoolAdminNFT", name: "", type: "address" }],
626
+ stateMutability: "view",
627
+ type: "function",
628
+ },
629
+ {
630
+ inputs: [],
631
+ name: "POOL_MEMBER_NFT_LOGIC",
632
+ outputs: [{ internalType: "contract IPoolMemberNFT", name: "", type: "address" }],
633
+ stateMutability: "view",
634
+ type: "function",
635
+ },
636
+ {
637
+ inputs: [],
638
+ name: "_SUPER_TOKEN_LOGIC",
639
+ outputs: [{ internalType: "contract ISuperToken", name: "", type: "address" }],
640
+ stateMutability: "view",
641
+ type: "function",
642
+ },
643
+ { inputs: [], name: "castrate", outputs: [], stateMutability: "nonpayable", type: "function" },
644
+ {
645
+ inputs: [{ internalType: "address", name: "_underlyingToken", type: "address" }],
646
+ name: "computeCanonicalERC20WrapperAddress",
647
+ outputs: [
648
+ { internalType: "address", name: "superTokenAddress", type: "address" },
649
+ { internalType: "bool", name: "isDeployed", type: "bool" },
650
+ ],
651
+ stateMutability: "view",
652
+ type: "function",
653
+ },
654
+ {
655
+ inputs: [
656
+ { internalType: "contract IERC20Metadata", name: "_underlyingToken", type: "address" },
657
+ ],
658
+ name: "createCanonicalERC20Wrapper",
659
+ outputs: [{ internalType: "contract ISuperToken", name: "", type: "address" }],
660
+ stateMutability: "nonpayable",
661
+ type: "function",
662
+ },
663
+ {
664
+ inputs: [
665
+ { internalType: "contract IERC20Metadata", name: "underlyingToken", type: "address" },
666
+ {
667
+ internalType: "enum ISuperTokenFactory.Upgradability",
668
+ name: "upgradability",
669
+ type: "uint8",
670
+ },
671
+ { internalType: "string", name: "name", type: "string" },
672
+ { internalType: "string", name: "symbol", type: "string" },
673
+ ],
674
+ name: "createERC20Wrapper",
675
+ outputs: [{ internalType: "contract ISuperToken", name: "superToken", type: "address" }],
676
+ stateMutability: "nonpayable",
677
+ type: "function",
678
+ },
679
+ {
680
+ inputs: [
681
+ { internalType: "contract IERC20Metadata", name: "underlyingToken", type: "address" },
682
+ {
683
+ internalType: "enum ISuperTokenFactory.Upgradability",
684
+ name: "upgradability",
685
+ type: "uint8",
686
+ },
687
+ { internalType: "string", name: "name", type: "string" },
688
+ { internalType: "string", name: "symbol", type: "string" },
689
+ { internalType: "address", name: "admin", type: "address" },
690
+ ],
691
+ name: "createERC20Wrapper",
692
+ outputs: [{ internalType: "contract ISuperToken", name: "superToken", type: "address" }],
693
+ stateMutability: "nonpayable",
694
+ type: "function",
695
+ },
696
+ {
697
+ inputs: [
698
+ { internalType: "contract IERC20Metadata", name: "underlyingToken", type: "address" },
699
+ { internalType: "uint8", name: "underlyingDecimals", type: "uint8" },
700
+ {
701
+ internalType: "enum ISuperTokenFactory.Upgradability",
702
+ name: "upgradability",
703
+ type: "uint8",
704
+ },
705
+ { internalType: "string", name: "name", type: "string" },
706
+ { internalType: "string", name: "symbol", type: "string" },
707
+ ],
708
+ name: "createERC20Wrapper",
709
+ outputs: [{ internalType: "contract ISuperToken", name: "superToken", type: "address" }],
710
+ stateMutability: "nonpayable",
711
+ type: "function",
712
+ },
713
+ {
714
+ inputs: [
715
+ { internalType: "contract IERC20Metadata", name: "underlyingToken", type: "address" },
716
+ { internalType: "uint8", name: "underlyingDecimals", type: "uint8" },
717
+ {
718
+ internalType: "enum ISuperTokenFactory.Upgradability",
719
+ name: "upgradability",
720
+ type: "uint8",
721
+ },
722
+ { internalType: "string", name: "name", type: "string" },
723
+ { internalType: "string", name: "symbol", type: "string" },
724
+ { internalType: "address", name: "admin", type: "address" },
725
+ ],
726
+ name: "createERC20Wrapper",
727
+ outputs: [{ internalType: "contract ISuperToken", name: "superToken", type: "address" }],
728
+ stateMutability: "nonpayable",
729
+ type: "function",
730
+ },
731
+ {
732
+ inputs: [{ internalType: "address", name: "_underlyingTokenAddress", type: "address" }],
733
+ name: "getCanonicalERC20Wrapper",
734
+ outputs: [{ internalType: "address", name: "superTokenAddress", type: "address" }],
735
+ stateMutability: "view",
736
+ type: "function",
737
+ },
738
+ {
739
+ inputs: [],
740
+ name: "getCodeAddress",
741
+ outputs: [{ internalType: "address", name: "codeAddress", type: "address" }],
742
+ stateMutability: "view",
743
+ type: "function",
744
+ },
745
+ {
746
+ inputs: [],
747
+ name: "getHost",
748
+ outputs: [{ internalType: "address", name: "host", type: "address" }],
749
+ stateMutability: "view",
750
+ type: "function",
751
+ },
752
+ {
753
+ inputs: [],
754
+ name: "getSuperTokenLogic",
755
+ outputs: [{ internalType: "contract ISuperToken", name: "", type: "address" }],
756
+ stateMutability: "view",
757
+ type: "function",
758
+ },
759
+ { inputs: [], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" },
760
+ {
761
+ inputs: [
762
+ {
763
+ components: [
764
+ { internalType: "address", name: "underlyingToken", type: "address" },
765
+ { internalType: "address", name: "superToken", type: "address" },
766
+ ],
767
+ internalType: "struct SuperTokenFactoryBase.InitializeData[]",
768
+ name: "_data",
769
+ type: "tuple[]",
770
+ },
771
+ ],
772
+ name: "initializeCanonicalWrapperSuperTokens",
773
+ outputs: [],
774
+ stateMutability: "nonpayable",
775
+ type: "function",
776
+ },
777
+ {
778
+ inputs: [{ internalType: "address", name: "customSuperTokenProxy", type: "address" }],
779
+ name: "initializeCustomSuperToken",
780
+ outputs: [],
781
+ stateMutability: "nonpayable",
782
+ type: "function",
783
+ },
784
+ {
785
+ inputs: [],
786
+ name: "proxiableUUID",
787
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
788
+ stateMutability: "pure",
789
+ type: "function",
790
+ },
791
+ {
792
+ inputs: [{ internalType: "address", name: "newAddress", type: "address" }],
793
+ name: "updateCode",
794
+ outputs: [],
795
+ stateMutability: "nonpayable",
796
+ type: "function",
797
+ },
798
+ ];
799
+ exports.ISuperTokenAbi = [
800
+ {
801
+ inputs: [],
802
+ name: "SF_TOKEN_AGREEMENT_ALREADY_EXISTS",
803
+ type: "error",
804
+ },
805
+ {
806
+ inputs: [],
807
+ name: "SF_TOKEN_AGREEMENT_DOES_NOT_EXIST",
808
+ type: "error",
809
+ },
810
+ {
811
+ inputs: [],
812
+ name: "SF_TOKEN_BURN_INSUFFICIENT_BALANCE",
813
+ type: "error",
814
+ },
815
+ {
816
+ inputs: [],
817
+ name: "SF_TOKEN_MOVE_INSUFFICIENT_BALANCE",
818
+ type: "error",
819
+ },
820
+ {
821
+ inputs: [],
822
+ name: "SF_TOKEN_ONLY_HOST",
823
+ type: "error",
824
+ },
825
+ {
826
+ inputs: [],
827
+ name: "SF_TOKEN_ONLY_LISTED_AGREEMENT",
828
+ type: "error",
829
+ },
830
+ {
831
+ inputs: [],
832
+ name: "SUPER_TOKEN_APPROVE_FROM_ZERO_ADDRESS",
833
+ type: "error",
834
+ },
835
+ {
836
+ inputs: [],
837
+ name: "SUPER_TOKEN_APPROVE_TO_ZERO_ADDRESS",
838
+ type: "error",
839
+ },
840
+ {
841
+ inputs: [],
842
+ name: "SUPER_TOKEN_BURN_FROM_ZERO_ADDRESS",
843
+ type: "error",
844
+ },
845
+ {
846
+ inputs: [],
847
+ name: "SUPER_TOKEN_CALLER_IS_NOT_OPERATOR_FOR_HOLDER",
848
+ type: "error",
849
+ },
850
+ {
851
+ inputs: [],
852
+ name: "SUPER_TOKEN_INFLATIONARY_DEFLATIONARY_NOT_SUPPORTED",
853
+ type: "error",
854
+ },
855
+ {
856
+ inputs: [],
857
+ name: "SUPER_TOKEN_MINT_TO_ZERO_ADDRESS",
858
+ type: "error",
859
+ },
860
+ {
861
+ inputs: [],
862
+ name: "SUPER_TOKEN_NFT_PROXY_ADDRESS_CHANGED",
863
+ type: "error",
864
+ },
865
+ {
866
+ inputs: [],
867
+ name: "SUPER_TOKEN_NOT_ERC777_TOKENS_RECIPIENT",
868
+ type: "error",
869
+ },
870
+ {
871
+ inputs: [],
872
+ name: "SUPER_TOKEN_NO_UNDERLYING_TOKEN",
873
+ type: "error",
874
+ },
875
+ {
876
+ inputs: [],
877
+ name: "SUPER_TOKEN_ONLY_ADMIN",
878
+ type: "error",
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: "SUPER_TOKEN_ONLY_GOV_OWNER",
883
+ type: "error",
884
+ },
885
+ {
886
+ inputs: [],
887
+ name: "SUPER_TOKEN_ONLY_SELF",
888
+ type: "error",
889
+ },
890
+ {
891
+ inputs: [],
892
+ name: "SUPER_TOKEN_TRANSFER_FROM_ZERO_ADDRESS",
893
+ type: "error",
894
+ },
895
+ {
896
+ inputs: [],
897
+ name: "SUPER_TOKEN_TRANSFER_TO_ZERO_ADDRESS",
898
+ type: "error",
899
+ },
900
+ {
901
+ anonymous: false,
902
+ inputs: [
903
+ {
904
+ indexed: true,
905
+ internalType: "address",
906
+ name: "oldAdmin",
907
+ type: "address",
908
+ },
909
+ {
910
+ indexed: true,
911
+ internalType: "address",
912
+ name: "newAdmin",
913
+ type: "address",
914
+ },
915
+ ],
916
+ name: "AdminChanged",
917
+ type: "event",
918
+ },
919
+ {
920
+ anonymous: false,
921
+ inputs: [
922
+ {
923
+ indexed: true,
924
+ internalType: "address",
925
+ name: "agreementClass",
926
+ type: "address",
927
+ },
928
+ {
929
+ indexed: false,
930
+ internalType: "bytes32",
931
+ name: "id",
932
+ type: "bytes32",
933
+ },
934
+ {
935
+ indexed: false,
936
+ internalType: "bytes32[]",
937
+ name: "data",
938
+ type: "bytes32[]",
939
+ },
940
+ ],
941
+ name: "AgreementCreated",
942
+ type: "event",
943
+ },
944
+ {
945
+ anonymous: false,
946
+ inputs: [
947
+ {
948
+ indexed: true,
949
+ internalType: "address",
950
+ name: "agreementClass",
951
+ type: "address",
952
+ },
953
+ {
954
+ indexed: false,
955
+ internalType: "bytes32",
956
+ name: "id",
957
+ type: "bytes32",
958
+ },
959
+ {
960
+ indexed: true,
961
+ internalType: "address",
962
+ name: "penaltyAccount",
963
+ type: "address",
964
+ },
965
+ {
966
+ indexed: true,
967
+ internalType: "address",
968
+ name: "rewardAccount",
969
+ type: "address",
970
+ },
971
+ {
972
+ indexed: false,
973
+ internalType: "uint256",
974
+ name: "rewardAmount",
975
+ type: "uint256",
976
+ },
977
+ ],
978
+ name: "AgreementLiquidated",
979
+ type: "event",
980
+ },
981
+ {
982
+ anonymous: false,
983
+ inputs: [
984
+ {
985
+ indexed: false,
986
+ internalType: "address",
987
+ name: "liquidatorAccount",
988
+ type: "address",
989
+ },
990
+ {
991
+ indexed: true,
992
+ internalType: "address",
993
+ name: "agreementClass",
994
+ type: "address",
995
+ },
996
+ {
997
+ indexed: false,
998
+ internalType: "bytes32",
999
+ name: "id",
1000
+ type: "bytes32",
1001
+ },
1002
+ {
1003
+ indexed: true,
1004
+ internalType: "address",
1005
+ name: "penaltyAccount",
1006
+ type: "address",
1007
+ },
1008
+ {
1009
+ indexed: true,
1010
+ internalType: "address",
1011
+ name: "bondAccount",
1012
+ type: "address",
1013
+ },
1014
+ {
1015
+ indexed: false,
1016
+ internalType: "uint256",
1017
+ name: "rewardAmount",
1018
+ type: "uint256",
1019
+ },
1020
+ {
1021
+ indexed: false,
1022
+ internalType: "uint256",
1023
+ name: "bailoutAmount",
1024
+ type: "uint256",
1025
+ },
1026
+ ],
1027
+ name: "AgreementLiquidatedBy",
1028
+ type: "event",
1029
+ },
1030
+ {
1031
+ anonymous: false,
1032
+ inputs: [
1033
+ {
1034
+ indexed: true,
1035
+ internalType: "address",
1036
+ name: "agreementClass",
1037
+ type: "address",
1038
+ },
1039
+ {
1040
+ indexed: false,
1041
+ internalType: "bytes32",
1042
+ name: "id",
1043
+ type: "bytes32",
1044
+ },
1045
+ {
1046
+ indexed: true,
1047
+ internalType: "address",
1048
+ name: "liquidatorAccount",
1049
+ type: "address",
1050
+ },
1051
+ {
1052
+ indexed: true,
1053
+ internalType: "address",
1054
+ name: "targetAccount",
1055
+ type: "address",
1056
+ },
1057
+ {
1058
+ indexed: false,
1059
+ internalType: "address",
1060
+ name: "rewardAmountReceiver",
1061
+ type: "address",
1062
+ },
1063
+ {
1064
+ indexed: false,
1065
+ internalType: "uint256",
1066
+ name: "rewardAmount",
1067
+ type: "uint256",
1068
+ },
1069
+ {
1070
+ indexed: false,
1071
+ internalType: "int256",
1072
+ name: "targetAccountBalanceDelta",
1073
+ type: "int256",
1074
+ },
1075
+ {
1076
+ indexed: false,
1077
+ internalType: "bytes",
1078
+ name: "liquidationTypeData",
1079
+ type: "bytes",
1080
+ },
1081
+ ],
1082
+ name: "AgreementLiquidatedV2",
1083
+ type: "event",
1084
+ },
1085
+ {
1086
+ anonymous: false,
1087
+ inputs: [
1088
+ {
1089
+ indexed: true,
1090
+ internalType: "address",
1091
+ name: "agreementClass",
1092
+ type: "address",
1093
+ },
1094
+ {
1095
+ indexed: true,
1096
+ internalType: "address",
1097
+ name: "account",
1098
+ type: "address",
1099
+ },
1100
+ {
1101
+ indexed: false,
1102
+ internalType: "uint256",
1103
+ name: "slotId",
1104
+ type: "uint256",
1105
+ },
1106
+ ],
1107
+ name: "AgreementStateUpdated",
1108
+ type: "event",
1109
+ },
1110
+ {
1111
+ anonymous: false,
1112
+ inputs: [
1113
+ {
1114
+ indexed: true,
1115
+ internalType: "address",
1116
+ name: "agreementClass",
1117
+ type: "address",
1118
+ },
1119
+ {
1120
+ indexed: false,
1121
+ internalType: "bytes32",
1122
+ name: "id",
1123
+ type: "bytes32",
1124
+ },
1125
+ ],
1126
+ name: "AgreementTerminated",
1127
+ type: "event",
1128
+ },
1129
+ {
1130
+ anonymous: false,
1131
+ inputs: [
1132
+ {
1133
+ indexed: true,
1134
+ internalType: "address",
1135
+ name: "agreementClass",
1136
+ type: "address",
1137
+ },
1138
+ {
1139
+ indexed: false,
1140
+ internalType: "bytes32",
1141
+ name: "id",
1142
+ type: "bytes32",
1143
+ },
1144
+ {
1145
+ indexed: false,
1146
+ internalType: "bytes32[]",
1147
+ name: "data",
1148
+ type: "bytes32[]",
1149
+ },
1150
+ ],
1151
+ name: "AgreementUpdated",
1152
+ type: "event",
1153
+ },
1154
+ {
1155
+ anonymous: false,
1156
+ inputs: [
1157
+ {
1158
+ indexed: true,
1159
+ internalType: "address",
1160
+ name: "owner",
1161
+ type: "address",
1162
+ },
1163
+ {
1164
+ indexed: true,
1165
+ internalType: "address",
1166
+ name: "spender",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ indexed: false,
1171
+ internalType: "uint256",
1172
+ name: "value",
1173
+ type: "uint256",
1174
+ },
1175
+ ],
1176
+ name: "Approval",
1177
+ type: "event",
1178
+ },
1179
+ {
1180
+ anonymous: false,
1181
+ inputs: [
1182
+ {
1183
+ indexed: true,
1184
+ internalType: "address",
1185
+ name: "operator",
1186
+ type: "address",
1187
+ },
1188
+ {
1189
+ indexed: true,
1190
+ internalType: "address",
1191
+ name: "tokenHolder",
1192
+ type: "address",
1193
+ },
1194
+ ],
1195
+ name: "AuthorizedOperator",
1196
+ type: "event",
1197
+ },
1198
+ {
1199
+ anonymous: false,
1200
+ inputs: [
1201
+ {
1202
+ indexed: true,
1203
+ internalType: "address",
1204
+ name: "bailoutAccount",
1205
+ type: "address",
1206
+ },
1207
+ {
1208
+ indexed: false,
1209
+ internalType: "uint256",
1210
+ name: "bailoutAmount",
1211
+ type: "uint256",
1212
+ },
1213
+ ],
1214
+ name: "Bailout",
1215
+ type: "event",
1216
+ },
1217
+ {
1218
+ anonymous: false,
1219
+ inputs: [
1220
+ {
1221
+ indexed: true,
1222
+ internalType: "address",
1223
+ name: "operator",
1224
+ type: "address",
1225
+ },
1226
+ {
1227
+ indexed: true,
1228
+ internalType: "address",
1229
+ name: "from",
1230
+ type: "address",
1231
+ },
1232
+ {
1233
+ indexed: false,
1234
+ internalType: "uint256",
1235
+ name: "amount",
1236
+ type: "uint256",
1237
+ },
1238
+ {
1239
+ indexed: false,
1240
+ internalType: "bytes",
1241
+ name: "data",
1242
+ type: "bytes",
1243
+ },
1244
+ {
1245
+ indexed: false,
1246
+ internalType: "bytes",
1247
+ name: "operatorData",
1248
+ type: "bytes",
1249
+ },
1250
+ ],
1251
+ name: "Burned",
1252
+ type: "event",
1253
+ },
1254
+ {
1255
+ anonymous: false,
1256
+ inputs: [
1257
+ {
1258
+ indexed: true,
1259
+ internalType: "contract IConstantInflowNFT",
1260
+ name: "constantInflowNFT",
1261
+ type: "address",
1262
+ },
1263
+ ],
1264
+ name: "ConstantInflowNFTCreated",
1265
+ type: "event",
1266
+ },
1267
+ {
1268
+ anonymous: false,
1269
+ inputs: [
1270
+ {
1271
+ indexed: true,
1272
+ internalType: "contract IConstantOutflowNFT",
1273
+ name: "constantOutflowNFT",
1274
+ type: "address",
1275
+ },
1276
+ ],
1277
+ name: "ConstantOutflowNFTCreated",
1278
+ type: "event",
1279
+ },
1280
+ {
1281
+ anonymous: false,
1282
+ inputs: [
1283
+ {
1284
+ indexed: true,
1285
+ internalType: "address",
1286
+ name: "operator",
1287
+ type: "address",
1288
+ },
1289
+ {
1290
+ indexed: true,
1291
+ internalType: "address",
1292
+ name: "to",
1293
+ type: "address",
1294
+ },
1295
+ {
1296
+ indexed: false,
1297
+ internalType: "uint256",
1298
+ name: "amount",
1299
+ type: "uint256",
1300
+ },
1301
+ {
1302
+ indexed: false,
1303
+ internalType: "bytes",
1304
+ name: "data",
1305
+ type: "bytes",
1306
+ },
1307
+ {
1308
+ indexed: false,
1309
+ internalType: "bytes",
1310
+ name: "operatorData",
1311
+ type: "bytes",
1312
+ },
1313
+ ],
1314
+ name: "Minted",
1315
+ type: "event",
1316
+ },
1317
+ {
1318
+ anonymous: false,
1319
+ inputs: [
1320
+ {
1321
+ indexed: true,
1322
+ internalType: "contract IPoolAdminNFT",
1323
+ name: "poolAdminNFT",
1324
+ type: "address",
1325
+ },
1326
+ ],
1327
+ name: "PoolAdminNFTCreated",
1328
+ type: "event",
1329
+ },
1330
+ {
1331
+ anonymous: false,
1332
+ inputs: [
1333
+ {
1334
+ indexed: true,
1335
+ internalType: "contract IPoolMemberNFT",
1336
+ name: "poolMemberNFT",
1337
+ type: "address",
1338
+ },
1339
+ ],
1340
+ name: "PoolMemberNFTCreated",
1341
+ type: "event",
1342
+ },
1343
+ {
1344
+ anonymous: false,
1345
+ inputs: [
1346
+ {
1347
+ indexed: true,
1348
+ internalType: "address",
1349
+ name: "operator",
1350
+ type: "address",
1351
+ },
1352
+ {
1353
+ indexed: true,
1354
+ internalType: "address",
1355
+ name: "tokenHolder",
1356
+ type: "address",
1357
+ },
1358
+ ],
1359
+ name: "RevokedOperator",
1360
+ type: "event",
1361
+ },
1362
+ {
1363
+ anonymous: false,
1364
+ inputs: [
1365
+ {
1366
+ indexed: true,
1367
+ internalType: "address",
1368
+ name: "operator",
1369
+ type: "address",
1370
+ },
1371
+ {
1372
+ indexed: true,
1373
+ internalType: "address",
1374
+ name: "from",
1375
+ type: "address",
1376
+ },
1377
+ {
1378
+ indexed: true,
1379
+ internalType: "address",
1380
+ name: "to",
1381
+ type: "address",
1382
+ },
1383
+ {
1384
+ indexed: false,
1385
+ internalType: "uint256",
1386
+ name: "amount",
1387
+ type: "uint256",
1388
+ },
1389
+ {
1390
+ indexed: false,
1391
+ internalType: "bytes",
1392
+ name: "data",
1393
+ type: "bytes",
1394
+ },
1395
+ {
1396
+ indexed: false,
1397
+ internalType: "bytes",
1398
+ name: "operatorData",
1399
+ type: "bytes",
1400
+ },
1401
+ ],
1402
+ name: "Sent",
1403
+ type: "event",
1404
+ },
1405
+ {
1406
+ anonymous: false,
1407
+ inputs: [
1408
+ {
1409
+ indexed: true,
1410
+ internalType: "address",
1411
+ name: "account",
1412
+ type: "address",
1413
+ },
1414
+ {
1415
+ indexed: false,
1416
+ internalType: "uint256",
1417
+ name: "amount",
1418
+ type: "uint256",
1419
+ },
1420
+ ],
1421
+ name: "TokenDowngraded",
1422
+ type: "event",
1423
+ },
1424
+ {
1425
+ anonymous: false,
1426
+ inputs: [
1427
+ {
1428
+ indexed: true,
1429
+ internalType: "address",
1430
+ name: "account",
1431
+ type: "address",
1432
+ },
1433
+ {
1434
+ indexed: false,
1435
+ internalType: "uint256",
1436
+ name: "amount",
1437
+ type: "uint256",
1438
+ },
1439
+ ],
1440
+ name: "TokenUpgraded",
1441
+ type: "event",
1442
+ },
1443
+ {
1444
+ anonymous: false,
1445
+ inputs: [
1446
+ {
1447
+ indexed: true,
1448
+ internalType: "address",
1449
+ name: "from",
1450
+ type: "address",
1451
+ },
1452
+ {
1453
+ indexed: true,
1454
+ internalType: "address",
1455
+ name: "to",
1456
+ type: "address",
1457
+ },
1458
+ {
1459
+ indexed: false,
1460
+ internalType: "uint256",
1461
+ name: "value",
1462
+ type: "uint256",
1463
+ },
1464
+ ],
1465
+ name: "Transfer",
1466
+ type: "event",
1467
+ },
1468
+ {
1469
+ inputs: [],
1470
+ name: "CONSTANT_INFLOW_NFT",
1471
+ outputs: [
1472
+ {
1473
+ internalType: "contract IConstantInflowNFT",
1474
+ name: "",
1475
+ type: "address",
1476
+ },
1477
+ ],
1478
+ stateMutability: "view",
1479
+ type: "function",
1480
+ },
1481
+ {
1482
+ inputs: [],
1483
+ name: "CONSTANT_OUTFLOW_NFT",
1484
+ outputs: [
1485
+ {
1486
+ internalType: "contract IConstantOutflowNFT",
1487
+ name: "",
1488
+ type: "address",
1489
+ },
1490
+ ],
1491
+ stateMutability: "view",
1492
+ type: "function",
1493
+ },
1494
+ {
1495
+ inputs: [],
1496
+ name: "POOL_ADMIN_NFT",
1497
+ outputs: [
1498
+ {
1499
+ internalType: "contract IPoolAdminNFT",
1500
+ name: "",
1501
+ type: "address",
1502
+ },
1503
+ ],
1504
+ stateMutability: "view",
1505
+ type: "function",
1506
+ },
1507
+ {
1508
+ inputs: [],
1509
+ name: "POOL_MEMBER_NFT",
1510
+ outputs: [
1511
+ {
1512
+ internalType: "contract IPoolMemberNFT",
1513
+ name: "",
1514
+ type: "address",
1515
+ },
1516
+ ],
1517
+ stateMutability: "view",
1518
+ type: "function",
1519
+ },
1520
+ {
1521
+ inputs: [
1522
+ {
1523
+ internalType: "address",
1524
+ name: "owner",
1525
+ type: "address",
1526
+ },
1527
+ {
1528
+ internalType: "address",
1529
+ name: "spender",
1530
+ type: "address",
1531
+ },
1532
+ ],
1533
+ name: "allowance",
1534
+ outputs: [
1535
+ {
1536
+ internalType: "uint256",
1537
+ name: "",
1538
+ type: "uint256",
1539
+ },
1540
+ ],
1541
+ stateMutability: "view",
1542
+ type: "function",
1543
+ },
1544
+ {
1545
+ inputs: [
1546
+ {
1547
+ internalType: "address",
1548
+ name: "spender",
1549
+ type: "address",
1550
+ },
1551
+ {
1552
+ internalType: "uint256",
1553
+ name: "amount",
1554
+ type: "uint256",
1555
+ },
1556
+ ],
1557
+ name: "approve",
1558
+ outputs: [
1559
+ {
1560
+ internalType: "bool",
1561
+ name: "",
1562
+ type: "bool",
1563
+ },
1564
+ ],
1565
+ stateMutability: "nonpayable",
1566
+ type: "function",
1567
+ },
1568
+ {
1569
+ inputs: [
1570
+ {
1571
+ internalType: "address",
1572
+ name: "operator",
1573
+ type: "address",
1574
+ },
1575
+ ],
1576
+ name: "authorizeOperator",
1577
+ outputs: [],
1578
+ stateMutability: "nonpayable",
1579
+ type: "function",
1580
+ },
1581
+ {
1582
+ inputs: [
1583
+ {
1584
+ internalType: "address",
1585
+ name: "account",
1586
+ type: "address",
1587
+ },
1588
+ ],
1589
+ name: "balanceOf",
1590
+ outputs: [
1591
+ {
1592
+ internalType: "uint256",
1593
+ name: "balance",
1594
+ type: "uint256",
1595
+ },
1596
+ ],
1597
+ stateMutability: "view",
1598
+ type: "function",
1599
+ },
1600
+ {
1601
+ inputs: [
1602
+ {
1603
+ internalType: "uint256",
1604
+ name: "amount",
1605
+ type: "uint256",
1606
+ },
1607
+ {
1608
+ internalType: "bytes",
1609
+ name: "userData",
1610
+ type: "bytes",
1611
+ },
1612
+ ],
1613
+ name: "burn",
1614
+ outputs: [],
1615
+ stateMutability: "nonpayable",
1616
+ type: "function",
1617
+ },
1618
+ {
1619
+ inputs: [
1620
+ {
1621
+ internalType: "address",
1622
+ name: "newAdmin",
1623
+ type: "address",
1624
+ },
1625
+ ],
1626
+ name: "changeAdmin",
1627
+ outputs: [],
1628
+ stateMutability: "nonpayable",
1629
+ type: "function",
1630
+ },
1631
+ {
1632
+ inputs: [
1633
+ {
1634
+ internalType: "bytes32",
1635
+ name: "id",
1636
+ type: "bytes32",
1637
+ },
1638
+ {
1639
+ internalType: "bytes32[]",
1640
+ name: "data",
1641
+ type: "bytes32[]",
1642
+ },
1643
+ ],
1644
+ name: "createAgreement",
1645
+ outputs: [],
1646
+ stateMutability: "nonpayable",
1647
+ type: "function",
1648
+ },
1649
+ {
1650
+ inputs: [],
1651
+ name: "decimals",
1652
+ outputs: [
1653
+ {
1654
+ internalType: "uint8",
1655
+ name: "",
1656
+ type: "uint8",
1657
+ },
1658
+ ],
1659
+ stateMutability: "view",
1660
+ type: "function",
1661
+ },
1662
+ {
1663
+ inputs: [
1664
+ {
1665
+ internalType: "address",
1666
+ name: "spender",
1667
+ type: "address",
1668
+ },
1669
+ {
1670
+ internalType: "uint256",
1671
+ name: "subtractedValue",
1672
+ type: "uint256",
1673
+ },
1674
+ ],
1675
+ name: "decreaseAllowance",
1676
+ outputs: [
1677
+ {
1678
+ internalType: "bool",
1679
+ name: "",
1680
+ type: "bool",
1681
+ },
1682
+ ],
1683
+ stateMutability: "nonpayable",
1684
+ type: "function",
1685
+ },
1686
+ {
1687
+ inputs: [],
1688
+ name: "defaultOperators",
1689
+ outputs: [
1690
+ {
1691
+ internalType: "address[]",
1692
+ name: "",
1693
+ type: "address[]",
1694
+ },
1695
+ ],
1696
+ stateMutability: "view",
1697
+ type: "function",
1698
+ },
1699
+ {
1700
+ inputs: [
1701
+ {
1702
+ internalType: "uint256",
1703
+ name: "amount",
1704
+ type: "uint256",
1705
+ },
1706
+ ],
1707
+ name: "downgrade",
1708
+ outputs: [],
1709
+ stateMutability: "nonpayable",
1710
+ type: "function",
1711
+ },
1712
+ {
1713
+ inputs: [
1714
+ {
1715
+ internalType: "address",
1716
+ name: "to",
1717
+ type: "address",
1718
+ },
1719
+ {
1720
+ internalType: "uint256",
1721
+ name: "amount",
1722
+ type: "uint256",
1723
+ },
1724
+ ],
1725
+ name: "downgradeTo",
1726
+ outputs: [],
1727
+ stateMutability: "nonpayable",
1728
+ type: "function",
1729
+ },
1730
+ {
1731
+ inputs: [
1732
+ {
1733
+ internalType: "address",
1734
+ name: "account",
1735
+ type: "address",
1736
+ },
1737
+ ],
1738
+ name: "getAccountActiveAgreements",
1739
+ outputs: [
1740
+ {
1741
+ internalType: "contract ISuperAgreement[]",
1742
+ name: "activeAgreements",
1743
+ type: "address[]",
1744
+ },
1745
+ ],
1746
+ stateMutability: "view",
1747
+ type: "function",
1748
+ },
1749
+ {
1750
+ inputs: [],
1751
+ name: "getAdmin",
1752
+ outputs: [
1753
+ {
1754
+ internalType: "address",
1755
+ name: "admin",
1756
+ type: "address",
1757
+ },
1758
+ ],
1759
+ stateMutability: "view",
1760
+ type: "function",
1761
+ },
1762
+ {
1763
+ inputs: [
1764
+ {
1765
+ internalType: "address",
1766
+ name: "agreementClass",
1767
+ type: "address",
1768
+ },
1769
+ {
1770
+ internalType: "bytes32",
1771
+ name: "id",
1772
+ type: "bytes32",
1773
+ },
1774
+ {
1775
+ internalType: "uint256",
1776
+ name: "dataLength",
1777
+ type: "uint256",
1778
+ },
1779
+ ],
1780
+ name: "getAgreementData",
1781
+ outputs: [
1782
+ {
1783
+ internalType: "bytes32[]",
1784
+ name: "data",
1785
+ type: "bytes32[]",
1786
+ },
1787
+ ],
1788
+ stateMutability: "view",
1789
+ type: "function",
1790
+ },
1791
+ {
1792
+ inputs: [
1793
+ {
1794
+ internalType: "address",
1795
+ name: "agreementClass",
1796
+ type: "address",
1797
+ },
1798
+ {
1799
+ internalType: "address",
1800
+ name: "account",
1801
+ type: "address",
1802
+ },
1803
+ {
1804
+ internalType: "uint256",
1805
+ name: "slotId",
1806
+ type: "uint256",
1807
+ },
1808
+ {
1809
+ internalType: "uint256",
1810
+ name: "dataLength",
1811
+ type: "uint256",
1812
+ },
1813
+ ],
1814
+ name: "getAgreementStateSlot",
1815
+ outputs: [
1816
+ {
1817
+ internalType: "bytes32[]",
1818
+ name: "slotData",
1819
+ type: "bytes32[]",
1820
+ },
1821
+ ],
1822
+ stateMutability: "view",
1823
+ type: "function",
1824
+ },
1825
+ {
1826
+ inputs: [],
1827
+ name: "getHost",
1828
+ outputs: [
1829
+ {
1830
+ internalType: "address",
1831
+ name: "host",
1832
+ type: "address",
1833
+ },
1834
+ ],
1835
+ stateMutability: "view",
1836
+ type: "function",
1837
+ },
1838
+ {
1839
+ inputs: [],
1840
+ name: "getUnderlyingDecimals",
1841
+ outputs: [
1842
+ {
1843
+ internalType: "uint8",
1844
+ name: "underlyingDecimals",
1845
+ type: "uint8",
1846
+ },
1847
+ ],
1848
+ stateMutability: "view",
1849
+ type: "function",
1850
+ },
1851
+ {
1852
+ inputs: [],
1853
+ name: "getUnderlyingToken",
1854
+ outputs: [
1855
+ {
1856
+ internalType: "address",
1857
+ name: "tokenAddr",
1858
+ type: "address",
1859
+ },
1860
+ ],
1861
+ stateMutability: "view",
1862
+ type: "function",
1863
+ },
1864
+ {
1865
+ inputs: [],
1866
+ name: "granularity",
1867
+ outputs: [
1868
+ {
1869
+ internalType: "uint256",
1870
+ name: "",
1871
+ type: "uint256",
1872
+ },
1873
+ ],
1874
+ stateMutability: "view",
1875
+ type: "function",
1876
+ },
1877
+ {
1878
+ inputs: [
1879
+ {
1880
+ internalType: "address",
1881
+ name: "spender",
1882
+ type: "address",
1883
+ },
1884
+ {
1885
+ internalType: "uint256",
1886
+ name: "addedValue",
1887
+ type: "uint256",
1888
+ },
1889
+ ],
1890
+ name: "increaseAllowance",
1891
+ outputs: [
1892
+ {
1893
+ internalType: "bool",
1894
+ name: "",
1895
+ type: "bool",
1896
+ },
1897
+ ],
1898
+ stateMutability: "nonpayable",
1899
+ type: "function",
1900
+ },
1901
+ {
1902
+ inputs: [
1903
+ {
1904
+ internalType: "contract IERC20",
1905
+ name: "underlyingToken",
1906
+ type: "address",
1907
+ },
1908
+ {
1909
+ internalType: "uint8",
1910
+ name: "underlyingDecimals",
1911
+ type: "uint8",
1912
+ },
1913
+ {
1914
+ internalType: "string",
1915
+ name: "n",
1916
+ type: "string",
1917
+ },
1918
+ {
1919
+ internalType: "string",
1920
+ name: "s",
1921
+ type: "string",
1922
+ },
1923
+ ],
1924
+ name: "initialize",
1925
+ outputs: [],
1926
+ stateMutability: "nonpayable",
1927
+ type: "function",
1928
+ },
1929
+ {
1930
+ inputs: [
1931
+ {
1932
+ internalType: "contract IERC20",
1933
+ name: "underlyingToken",
1934
+ type: "address",
1935
+ },
1936
+ {
1937
+ internalType: "uint8",
1938
+ name: "underlyingDecimals",
1939
+ type: "uint8",
1940
+ },
1941
+ {
1942
+ internalType: "string",
1943
+ name: "n",
1944
+ type: "string",
1945
+ },
1946
+ {
1947
+ internalType: "string",
1948
+ name: "s",
1949
+ type: "string",
1950
+ },
1951
+ {
1952
+ internalType: "address",
1953
+ name: "admin",
1954
+ type: "address",
1955
+ },
1956
+ ],
1957
+ name: "initializeWithAdmin",
1958
+ outputs: [],
1959
+ stateMutability: "nonpayable",
1960
+ type: "function",
1961
+ },
1962
+ {
1963
+ inputs: [
1964
+ {
1965
+ internalType: "address",
1966
+ name: "account",
1967
+ type: "address",
1968
+ },
1969
+ {
1970
+ internalType: "uint256",
1971
+ name: "timestamp",
1972
+ type: "uint256",
1973
+ },
1974
+ ],
1975
+ name: "isAccountCritical",
1976
+ outputs: [
1977
+ {
1978
+ internalType: "bool",
1979
+ name: "isCritical",
1980
+ type: "bool",
1981
+ },
1982
+ ],
1983
+ stateMutability: "view",
1984
+ type: "function",
1985
+ },
1986
+ {
1987
+ inputs: [
1988
+ {
1989
+ internalType: "address",
1990
+ name: "account",
1991
+ type: "address",
1992
+ },
1993
+ ],
1994
+ name: "isAccountCriticalNow",
1995
+ outputs: [
1996
+ {
1997
+ internalType: "bool",
1998
+ name: "isCritical",
1999
+ type: "bool",
2000
+ },
2001
+ ],
2002
+ stateMutability: "view",
2003
+ type: "function",
2004
+ },
2005
+ {
2006
+ inputs: [
2007
+ {
2008
+ internalType: "address",
2009
+ name: "account",
2010
+ type: "address",
2011
+ },
2012
+ {
2013
+ internalType: "uint256",
2014
+ name: "timestamp",
2015
+ type: "uint256",
2016
+ },
2017
+ ],
2018
+ name: "isAccountSolvent",
2019
+ outputs: [
2020
+ {
2021
+ internalType: "bool",
2022
+ name: "isSolvent",
2023
+ type: "bool",
2024
+ },
2025
+ ],
2026
+ stateMutability: "view",
2027
+ type: "function",
2028
+ },
2029
+ {
2030
+ inputs: [
2031
+ {
2032
+ internalType: "address",
2033
+ name: "account",
2034
+ type: "address",
2035
+ },
2036
+ ],
2037
+ name: "isAccountSolventNow",
2038
+ outputs: [
2039
+ {
2040
+ internalType: "bool",
2041
+ name: "isSolvent",
2042
+ type: "bool",
2043
+ },
2044
+ ],
2045
+ stateMutability: "view",
2046
+ type: "function",
2047
+ },
2048
+ {
2049
+ inputs: [
2050
+ {
2051
+ internalType: "address",
2052
+ name: "operator",
2053
+ type: "address",
2054
+ },
2055
+ {
2056
+ internalType: "address",
2057
+ name: "tokenHolder",
2058
+ type: "address",
2059
+ },
2060
+ ],
2061
+ name: "isOperatorFor",
2062
+ outputs: [
2063
+ {
2064
+ internalType: "bool",
2065
+ name: "",
2066
+ type: "bool",
2067
+ },
2068
+ ],
2069
+ stateMutability: "view",
2070
+ type: "function",
2071
+ },
2072
+ {
2073
+ inputs: [
2074
+ {
2075
+ internalType: "bytes32",
2076
+ name: "id",
2077
+ type: "bytes32",
2078
+ },
2079
+ {
2080
+ internalType: "bytes",
2081
+ name: "liquidationTypeData",
2082
+ type: "bytes",
2083
+ },
2084
+ {
2085
+ internalType: "address",
2086
+ name: "liquidatorAccount",
2087
+ type: "address",
2088
+ },
2089
+ {
2090
+ internalType: "bool",
2091
+ name: "useDefaultRewardAccount",
2092
+ type: "bool",
2093
+ },
2094
+ {
2095
+ internalType: "address",
2096
+ name: "targetAccount",
2097
+ type: "address",
2098
+ },
2099
+ {
2100
+ internalType: "uint256",
2101
+ name: "rewardAmount",
2102
+ type: "uint256",
2103
+ },
2104
+ {
2105
+ internalType: "int256",
2106
+ name: "targetAccountBalanceDelta",
2107
+ type: "int256",
2108
+ },
2109
+ ],
2110
+ name: "makeLiquidationPayoutsV2",
2111
+ outputs: [],
2112
+ stateMutability: "nonpayable",
2113
+ type: "function",
2114
+ },
2115
+ {
2116
+ inputs: [],
2117
+ name: "name",
2118
+ outputs: [
2119
+ {
2120
+ internalType: "string",
2121
+ name: "",
2122
+ type: "string",
2123
+ },
2124
+ ],
2125
+ stateMutability: "view",
2126
+ type: "function",
2127
+ },
2128
+ {
2129
+ inputs: [
2130
+ {
2131
+ internalType: "address",
2132
+ name: "account",
2133
+ type: "address",
2134
+ },
2135
+ {
2136
+ internalType: "address",
2137
+ name: "spender",
2138
+ type: "address",
2139
+ },
2140
+ {
2141
+ internalType: "uint256",
2142
+ name: "amount",
2143
+ type: "uint256",
2144
+ },
2145
+ ],
2146
+ name: "operationApprove",
2147
+ outputs: [],
2148
+ stateMutability: "nonpayable",
2149
+ type: "function",
2150
+ },
2151
+ {
2152
+ inputs: [
2153
+ {
2154
+ internalType: "address",
2155
+ name: "account",
2156
+ type: "address",
2157
+ },
2158
+ {
2159
+ internalType: "address",
2160
+ name: "spender",
2161
+ type: "address",
2162
+ },
2163
+ {
2164
+ internalType: "uint256",
2165
+ name: "subtractedValue",
2166
+ type: "uint256",
2167
+ },
2168
+ ],
2169
+ name: "operationDecreaseAllowance",
2170
+ outputs: [],
2171
+ stateMutability: "nonpayable",
2172
+ type: "function",
2173
+ },
2174
+ {
2175
+ inputs: [
2176
+ {
2177
+ internalType: "address",
2178
+ name: "account",
2179
+ type: "address",
2180
+ },
2181
+ {
2182
+ internalType: "uint256",
2183
+ name: "amount",
2184
+ type: "uint256",
2185
+ },
2186
+ ],
2187
+ name: "operationDowngrade",
2188
+ outputs: [],
2189
+ stateMutability: "nonpayable",
2190
+ type: "function",
2191
+ },
2192
+ {
2193
+ inputs: [
2194
+ {
2195
+ internalType: "address",
2196
+ name: "account",
2197
+ type: "address",
2198
+ },
2199
+ {
2200
+ internalType: "address",
2201
+ name: "to",
2202
+ type: "address",
2203
+ },
2204
+ {
2205
+ internalType: "uint256",
2206
+ name: "amount",
2207
+ type: "uint256",
2208
+ },
2209
+ ],
2210
+ name: "operationDowngradeTo",
2211
+ outputs: [],
2212
+ stateMutability: "nonpayable",
2213
+ type: "function",
2214
+ },
2215
+ {
2216
+ inputs: [
2217
+ {
2218
+ internalType: "address",
2219
+ name: "account",
2220
+ type: "address",
2221
+ },
2222
+ {
2223
+ internalType: "address",
2224
+ name: "spender",
2225
+ type: "address",
2226
+ },
2227
+ {
2228
+ internalType: "uint256",
2229
+ name: "addedValue",
2230
+ type: "uint256",
2231
+ },
2232
+ ],
2233
+ name: "operationIncreaseAllowance",
2234
+ outputs: [],
2235
+ stateMutability: "nonpayable",
2236
+ type: "function",
2237
+ },
2238
+ {
2239
+ inputs: [
2240
+ {
2241
+ internalType: "address",
2242
+ name: "spender",
2243
+ type: "address",
2244
+ },
2245
+ {
2246
+ internalType: "address",
2247
+ name: "recipient",
2248
+ type: "address",
2249
+ },
2250
+ {
2251
+ internalType: "uint256",
2252
+ name: "amount",
2253
+ type: "uint256",
2254
+ },
2255
+ {
2256
+ internalType: "bytes",
2257
+ name: "userData",
2258
+ type: "bytes",
2259
+ },
2260
+ ],
2261
+ name: "operationSend",
2262
+ outputs: [],
2263
+ stateMutability: "nonpayable",
2264
+ type: "function",
2265
+ },
2266
+ {
2267
+ inputs: [
2268
+ {
2269
+ internalType: "address",
2270
+ name: "account",
2271
+ type: "address",
2272
+ },
2273
+ {
2274
+ internalType: "address",
2275
+ name: "spender",
2276
+ type: "address",
2277
+ },
2278
+ {
2279
+ internalType: "address",
2280
+ name: "recipient",
2281
+ type: "address",
2282
+ },
2283
+ {
2284
+ internalType: "uint256",
2285
+ name: "amount",
2286
+ type: "uint256",
2287
+ },
2288
+ ],
2289
+ name: "operationTransferFrom",
2290
+ outputs: [],
2291
+ stateMutability: "nonpayable",
2292
+ type: "function",
2293
+ },
2294
+ {
2295
+ inputs: [
2296
+ {
2297
+ internalType: "address",
2298
+ name: "account",
2299
+ type: "address",
2300
+ },
2301
+ {
2302
+ internalType: "uint256",
2303
+ name: "amount",
2304
+ type: "uint256",
2305
+ },
2306
+ ],
2307
+ name: "operationUpgrade",
2308
+ outputs: [],
2309
+ stateMutability: "nonpayable",
2310
+ type: "function",
2311
+ },
2312
+ {
2313
+ inputs: [
2314
+ {
2315
+ internalType: "address",
2316
+ name: "account",
2317
+ type: "address",
2318
+ },
2319
+ {
2320
+ internalType: "address",
2321
+ name: "to",
2322
+ type: "address",
2323
+ },
2324
+ {
2325
+ internalType: "uint256",
2326
+ name: "amount",
2327
+ type: "uint256",
2328
+ },
2329
+ ],
2330
+ name: "operationUpgradeTo",
2331
+ outputs: [],
2332
+ stateMutability: "nonpayable",
2333
+ type: "function",
2334
+ },
2335
+ {
2336
+ inputs: [
2337
+ {
2338
+ internalType: "address",
2339
+ name: "account",
2340
+ type: "address",
2341
+ },
2342
+ {
2343
+ internalType: "uint256",
2344
+ name: "amount",
2345
+ type: "uint256",
2346
+ },
2347
+ {
2348
+ internalType: "bytes",
2349
+ name: "userData",
2350
+ type: "bytes",
2351
+ },
2352
+ {
2353
+ internalType: "bytes",
2354
+ name: "operatorData",
2355
+ type: "bytes",
2356
+ },
2357
+ ],
2358
+ name: "operatorBurn",
2359
+ outputs: [],
2360
+ stateMutability: "nonpayable",
2361
+ type: "function",
2362
+ },
2363
+ {
2364
+ inputs: [
2365
+ {
2366
+ internalType: "address",
2367
+ name: "sender",
2368
+ type: "address",
2369
+ },
2370
+ {
2371
+ internalType: "address",
2372
+ name: "recipient",
2373
+ type: "address",
2374
+ },
2375
+ {
2376
+ internalType: "uint256",
2377
+ name: "amount",
2378
+ type: "uint256",
2379
+ },
2380
+ {
2381
+ internalType: "bytes",
2382
+ name: "userData",
2383
+ type: "bytes",
2384
+ },
2385
+ {
2386
+ internalType: "bytes",
2387
+ name: "operatorData",
2388
+ type: "bytes",
2389
+ },
2390
+ ],
2391
+ name: "operatorSend",
2392
+ outputs: [],
2393
+ stateMutability: "nonpayable",
2394
+ type: "function",
2395
+ },
2396
+ {
2397
+ inputs: [
2398
+ {
2399
+ internalType: "address",
2400
+ name: "account",
2401
+ type: "address",
2402
+ },
2403
+ {
2404
+ internalType: "uint256",
2405
+ name: "timestamp",
2406
+ type: "uint256",
2407
+ },
2408
+ ],
2409
+ name: "realtimeBalanceOf",
2410
+ outputs: [
2411
+ {
2412
+ internalType: "int256",
2413
+ name: "availableBalance",
2414
+ type: "int256",
2415
+ },
2416
+ {
2417
+ internalType: "uint256",
2418
+ name: "deposit",
2419
+ type: "uint256",
2420
+ },
2421
+ {
2422
+ internalType: "uint256",
2423
+ name: "owedDeposit",
2424
+ type: "uint256",
2425
+ },
2426
+ ],
2427
+ stateMutability: "view",
2428
+ type: "function",
2429
+ },
2430
+ {
2431
+ inputs: [
2432
+ {
2433
+ internalType: "address",
2434
+ name: "account",
2435
+ type: "address",
2436
+ },
2437
+ ],
2438
+ name: "realtimeBalanceOfNow",
2439
+ outputs: [
2440
+ {
2441
+ internalType: "int256",
2442
+ name: "availableBalance",
2443
+ type: "int256",
2444
+ },
2445
+ {
2446
+ internalType: "uint256",
2447
+ name: "deposit",
2448
+ type: "uint256",
2449
+ },
2450
+ {
2451
+ internalType: "uint256",
2452
+ name: "owedDeposit",
2453
+ type: "uint256",
2454
+ },
2455
+ {
2456
+ internalType: "uint256",
2457
+ name: "timestamp",
2458
+ type: "uint256",
2459
+ },
2460
+ ],
2461
+ stateMutability: "view",
2462
+ type: "function",
2463
+ },
2464
+ {
2465
+ inputs: [
2466
+ {
2467
+ internalType: "address",
2468
+ name: "operator",
2469
+ type: "address",
2470
+ },
2471
+ ],
2472
+ name: "revokeOperator",
2473
+ outputs: [],
2474
+ stateMutability: "nonpayable",
2475
+ type: "function",
2476
+ },
2477
+ {
2478
+ inputs: [
2479
+ {
2480
+ internalType: "address",
2481
+ name: "account",
2482
+ type: "address",
2483
+ },
2484
+ {
2485
+ internalType: "address",
2486
+ name: "spender",
2487
+ type: "address",
2488
+ },
2489
+ {
2490
+ internalType: "uint256",
2491
+ name: "amount",
2492
+ type: "uint256",
2493
+ },
2494
+ ],
2495
+ name: "selfApproveFor",
2496
+ outputs: [],
2497
+ stateMutability: "nonpayable",
2498
+ type: "function",
2499
+ },
2500
+ {
2501
+ inputs: [
2502
+ {
2503
+ internalType: "address",
2504
+ name: "account",
2505
+ type: "address",
2506
+ },
2507
+ {
2508
+ internalType: "uint256",
2509
+ name: "amount",
2510
+ type: "uint256",
2511
+ },
2512
+ {
2513
+ internalType: "bytes",
2514
+ name: "userData",
2515
+ type: "bytes",
2516
+ },
2517
+ ],
2518
+ name: "selfBurn",
2519
+ outputs: [],
2520
+ stateMutability: "nonpayable",
2521
+ type: "function",
2522
+ },
2523
+ {
2524
+ inputs: [
2525
+ {
2526
+ internalType: "address",
2527
+ name: "account",
2528
+ type: "address",
2529
+ },
2530
+ {
2531
+ internalType: "uint256",
2532
+ name: "amount",
2533
+ type: "uint256",
2534
+ },
2535
+ {
2536
+ internalType: "bytes",
2537
+ name: "userData",
2538
+ type: "bytes",
2539
+ },
2540
+ ],
2541
+ name: "selfMint",
2542
+ outputs: [],
2543
+ stateMutability: "nonpayable",
2544
+ type: "function",
2545
+ },
2546
+ {
2547
+ inputs: [
2548
+ {
2549
+ internalType: "address",
2550
+ name: "sender",
2551
+ type: "address",
2552
+ },
2553
+ {
2554
+ internalType: "address",
2555
+ name: "spender",
2556
+ type: "address",
2557
+ },
2558
+ {
2559
+ internalType: "address",
2560
+ name: "recipient",
2561
+ type: "address",
2562
+ },
2563
+ {
2564
+ internalType: "uint256",
2565
+ name: "amount",
2566
+ type: "uint256",
2567
+ },
2568
+ ],
2569
+ name: "selfTransferFrom",
2570
+ outputs: [],
2571
+ stateMutability: "nonpayable",
2572
+ type: "function",
2573
+ },
2574
+ {
2575
+ inputs: [
2576
+ {
2577
+ internalType: "address",
2578
+ name: "recipient",
2579
+ type: "address",
2580
+ },
2581
+ {
2582
+ internalType: "uint256",
2583
+ name: "amount",
2584
+ type: "uint256",
2585
+ },
2586
+ {
2587
+ internalType: "bytes",
2588
+ name: "userData",
2589
+ type: "bytes",
2590
+ },
2591
+ ],
2592
+ name: "send",
2593
+ outputs: [],
2594
+ stateMutability: "nonpayable",
2595
+ type: "function",
2596
+ },
2597
+ {
2598
+ inputs: [
2599
+ {
2600
+ internalType: "address",
2601
+ name: "account",
2602
+ type: "address",
2603
+ },
2604
+ {
2605
+ internalType: "int256",
2606
+ name: "delta",
2607
+ type: "int256",
2608
+ },
2609
+ ],
2610
+ name: "settleBalance",
2611
+ outputs: [],
2612
+ stateMutability: "nonpayable",
2613
+ type: "function",
2614
+ },
2615
+ {
2616
+ inputs: [],
2617
+ name: "symbol",
2618
+ outputs: [
2619
+ {
2620
+ internalType: "string",
2621
+ name: "",
2622
+ type: "string",
2623
+ },
2624
+ ],
2625
+ stateMutability: "view",
2626
+ type: "function",
2627
+ },
2628
+ {
2629
+ inputs: [
2630
+ {
2631
+ internalType: "bytes32",
2632
+ name: "id",
2633
+ type: "bytes32",
2634
+ },
2635
+ {
2636
+ internalType: "uint256",
2637
+ name: "dataLength",
2638
+ type: "uint256",
2639
+ },
2640
+ ],
2641
+ name: "terminateAgreement",
2642
+ outputs: [],
2643
+ stateMutability: "nonpayable",
2644
+ type: "function",
2645
+ },
2646
+ {
2647
+ inputs: [
2648
+ {
2649
+ internalType: "uint256",
2650
+ name: "amount",
2651
+ type: "uint256",
2652
+ },
2653
+ ],
2654
+ name: "toUnderlyingAmount",
2655
+ outputs: [
2656
+ {
2657
+ internalType: "uint256",
2658
+ name: "underlyingAmount",
2659
+ type: "uint256",
2660
+ },
2661
+ {
2662
+ internalType: "uint256",
2663
+ name: "adjustedAmount",
2664
+ type: "uint256",
2665
+ },
2666
+ ],
2667
+ stateMutability: "view",
2668
+ type: "function",
2669
+ },
2670
+ {
2671
+ inputs: [],
2672
+ name: "totalSupply",
2673
+ outputs: [
2674
+ {
2675
+ internalType: "uint256",
2676
+ name: "",
2677
+ type: "uint256",
2678
+ },
2679
+ ],
2680
+ stateMutability: "view",
2681
+ type: "function",
2682
+ },
2683
+ {
2684
+ inputs: [
2685
+ {
2686
+ internalType: "address",
2687
+ name: "recipient",
2688
+ type: "address",
2689
+ },
2690
+ {
2691
+ internalType: "uint256",
2692
+ name: "amount",
2693
+ type: "uint256",
2694
+ },
2695
+ ],
2696
+ name: "transfer",
2697
+ outputs: [
2698
+ {
2699
+ internalType: "bool",
2700
+ name: "",
2701
+ type: "bool",
2702
+ },
2703
+ ],
2704
+ stateMutability: "nonpayable",
2705
+ type: "function",
2706
+ },
2707
+ {
2708
+ inputs: [
2709
+ {
2710
+ internalType: "address",
2711
+ name: "recipient",
2712
+ type: "address",
2713
+ },
2714
+ ],
2715
+ name: "transferAll",
2716
+ outputs: [],
2717
+ stateMutability: "nonpayable",
2718
+ type: "function",
2719
+ },
2720
+ {
2721
+ inputs: [
2722
+ {
2723
+ internalType: "address",
2724
+ name: "sender",
2725
+ type: "address",
2726
+ },
2727
+ {
2728
+ internalType: "address",
2729
+ name: "recipient",
2730
+ type: "address",
2731
+ },
2732
+ {
2733
+ internalType: "uint256",
2734
+ name: "amount",
2735
+ type: "uint256",
2736
+ },
2737
+ ],
2738
+ name: "transferFrom",
2739
+ outputs: [
2740
+ {
2741
+ internalType: "bool",
2742
+ name: "",
2743
+ type: "bool",
2744
+ },
2745
+ ],
2746
+ stateMutability: "nonpayable",
2747
+ type: "function",
2748
+ },
2749
+ {
2750
+ inputs: [
2751
+ {
2752
+ internalType: "bytes32",
2753
+ name: "id",
2754
+ type: "bytes32",
2755
+ },
2756
+ {
2757
+ internalType: "bytes32[]",
2758
+ name: "data",
2759
+ type: "bytes32[]",
2760
+ },
2761
+ ],
2762
+ name: "updateAgreementData",
2763
+ outputs: [],
2764
+ stateMutability: "nonpayable",
2765
+ type: "function",
2766
+ },
2767
+ {
2768
+ inputs: [
2769
+ {
2770
+ internalType: "address",
2771
+ name: "account",
2772
+ type: "address",
2773
+ },
2774
+ {
2775
+ internalType: "uint256",
2776
+ name: "slotId",
2777
+ type: "uint256",
2778
+ },
2779
+ {
2780
+ internalType: "bytes32[]",
2781
+ name: "slotData",
2782
+ type: "bytes32[]",
2783
+ },
2784
+ ],
2785
+ name: "updateAgreementStateSlot",
2786
+ outputs: [],
2787
+ stateMutability: "nonpayable",
2788
+ type: "function",
2789
+ },
2790
+ {
2791
+ inputs: [
2792
+ {
2793
+ internalType: "uint256",
2794
+ name: "amount",
2795
+ type: "uint256",
2796
+ },
2797
+ ],
2798
+ name: "upgrade",
2799
+ outputs: [],
2800
+ stateMutability: "nonpayable",
2801
+ type: "function",
2802
+ },
2803
+ {
2804
+ inputs: [
2805
+ {
2806
+ internalType: "address",
2807
+ name: "to",
2808
+ type: "address",
2809
+ },
2810
+ {
2811
+ internalType: "uint256",
2812
+ name: "amount",
2813
+ type: "uint256",
2814
+ },
2815
+ {
2816
+ internalType: "bytes",
2817
+ name: "userData",
2818
+ type: "bytes",
2819
+ },
2820
+ ],
2821
+ name: "upgradeTo",
2822
+ outputs: [],
2823
+ stateMutability: "nonpayable",
2824
+ type: "function",
2825
+ },
2826
+ ];