@berachain/berajs 0.2.8-beta.4 → 0.2.8-beta.7

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 (181) hide show
  1. package/dist/abi/exports.cjs +1 -4452
  2. package/dist/abi/exports.cjs.map +1 -1
  3. package/dist/abi/exports.mjs +1 -4452
  4. package/dist/abi/exports.mjs.map +1 -1
  5. package/dist/actions/exports.cjs +1 -918
  6. package/dist/actions/exports.cjs.map +1 -1
  7. package/dist/actions/exports.d.cts +95 -50
  8. package/dist/actions/exports.d.ts +95 -50
  9. package/dist/actions/exports.mjs +1 -918
  10. package/dist/actions/exports.mjs.map +1 -1
  11. package/dist/chunk-3MZ7MLKF.mjs +2 -0
  12. package/dist/{chunk-PBCE7JTE.mjs.map → chunk-3MZ7MLKF.mjs.map} +1 -1
  13. package/dist/chunk-53TSJM6P.cjs +2 -0
  14. package/dist/chunk-53TSJM6P.cjs.map +1 -0
  15. package/dist/chunk-575OK77P.mjs +2 -0
  16. package/dist/{chunk-GLWPRM33.mjs.map → chunk-575OK77P.mjs.map} +1 -1
  17. package/dist/chunk-5W7UKRHX.mjs +2 -0
  18. package/dist/{chunk-J6EHBYSV.mjs.map → chunk-5W7UKRHX.mjs.map} +1 -1
  19. package/dist/chunk-6K252BGM.mjs +2 -0
  20. package/dist/{chunk-CYBZH6U3.mjs.map → chunk-6K252BGM.mjs.map} +1 -1
  21. package/dist/chunk-CWKDFUFR.mjs +2 -0
  22. package/dist/{chunk-OWUI3VPI.mjs.map → chunk-CWKDFUFR.mjs.map} +1 -1
  23. package/dist/chunk-D6L7LTA2.cjs +2 -0
  24. package/dist/chunk-D6L7LTA2.cjs.map +1 -0
  25. package/dist/chunk-DDEQFR3M.cjs +2 -0
  26. package/dist/chunk-DDEQFR3M.cjs.map +1 -0
  27. package/dist/chunk-DKY4QPWU.cjs +2 -0
  28. package/dist/chunk-DKY4QPWU.cjs.map +1 -0
  29. package/dist/chunk-DTBJO6VT.cjs +2 -0
  30. package/dist/chunk-DTBJO6VT.cjs.map +1 -0
  31. package/dist/chunk-ESAVA5OD.mjs +2 -0
  32. package/dist/{chunk-ALPEMPZI.mjs.map → chunk-ESAVA5OD.mjs.map} +1 -1
  33. package/dist/chunk-JDZGYU5T.mjs +2 -0
  34. package/dist/{chunk-WEULAXBE.mjs.map → chunk-JDZGYU5T.mjs.map} +1 -1
  35. package/dist/chunk-JLFBRMOF.cjs +2 -0
  36. package/dist/chunk-JLFBRMOF.cjs.map +1 -0
  37. package/dist/chunk-KT6L4K4K.cjs +2 -0
  38. package/dist/chunk-KT6L4K4K.cjs.map +1 -0
  39. package/dist/chunk-MASD43N5.mjs +4 -0
  40. package/dist/chunk-MASD43N5.mjs.map +1 -0
  41. package/dist/chunk-MGGPHKA2.cjs +4 -0
  42. package/dist/chunk-MGGPHKA2.cjs.map +1 -0
  43. package/dist/chunk-MK5NS5B5.mjs +2 -0
  44. package/dist/{chunk-7TFV6UKF.mjs.map → chunk-MK5NS5B5.mjs.map} +1 -1
  45. package/dist/chunk-NAXAZJJY.mjs +2 -0
  46. package/dist/{chunk-ZCEFC2TK.mjs.map → chunk-NAXAZJJY.mjs.map} +1 -1
  47. package/dist/chunk-NLVWRMGD.mjs +2 -0
  48. package/dist/{chunk-GWSTVITN.mjs.map → chunk-NLVWRMGD.mjs.map} +1 -1
  49. package/dist/chunk-OGBD5YOG.mjs +2 -0
  50. package/dist/{chunk-JA4DHMTG.mjs.map → chunk-OGBD5YOG.mjs.map} +1 -1
  51. package/dist/chunk-OGJMSGB2.mjs +2 -0
  52. package/dist/{chunk-KL6YZ5VR.mjs.map → chunk-OGJMSGB2.mjs.map} +1 -1
  53. package/dist/chunk-OIYXOKTT.cjs +2 -0
  54. package/dist/chunk-OIYXOKTT.cjs.map +1 -0
  55. package/dist/chunk-OUD27MU7.cjs +2 -0
  56. package/dist/chunk-OUD27MU7.cjs.map +1 -0
  57. package/dist/chunk-QFLDL4UV.cjs +2 -0
  58. package/dist/chunk-QFLDL4UV.cjs.map +1 -0
  59. package/dist/chunk-RSDCKN4Q.mjs +2 -0
  60. package/dist/chunk-RSDCKN4Q.mjs.map +1 -0
  61. package/dist/chunk-RWOICHRW.cjs +2 -0
  62. package/dist/chunk-RWOICHRW.cjs.map +1 -0
  63. package/dist/chunk-SSPFPAWX.mjs +2 -0
  64. package/dist/{chunk-WAFQFAI7.mjs.map → chunk-SSPFPAWX.mjs.map} +1 -1
  65. package/dist/chunk-UENDEN3M.mjs +2 -0
  66. package/dist/{chunk-MKS6W5NI.mjs.map → chunk-UENDEN3M.mjs.map} +1 -1
  67. package/dist/chunk-UFIM7WQ4.cjs +2 -0
  68. package/dist/chunk-UFIM7WQ4.cjs.map +1 -0
  69. package/dist/chunk-WRFDB3QJ.cjs +2 -0
  70. package/dist/chunk-WRFDB3QJ.cjs.map +1 -0
  71. package/dist/chunk-XNJLSA6P.cjs +2 -0
  72. package/dist/chunk-XNJLSA6P.cjs.map +1 -0
  73. package/dist/chunk-ZYXVUXFQ.cjs +2 -0
  74. package/dist/chunk-ZYXVUXFQ.cjs.map +1 -0
  75. package/dist/contexts/exports.cjs +1 -82
  76. package/dist/contexts/exports.cjs.map +1 -1
  77. package/dist/contexts/exports.mjs +1 -82
  78. package/dist/contexts/exports.mjs.map +1 -1
  79. package/dist/enum/exports.cjs +1 -58
  80. package/dist/enum/exports.cjs.map +1 -1
  81. package/dist/enum/exports.d.cts +1 -1
  82. package/dist/enum/exports.d.ts +1 -1
  83. package/dist/enum/exports.mjs +1 -58
  84. package/dist/enum/exports.mjs.map +1 -1
  85. package/dist/errors/exports.cjs +1 -38
  86. package/dist/errors/exports.cjs.map +1 -1
  87. package/dist/errors/exports.mjs +1 -38
  88. package/dist/{getValidatorQueuedOperatorAddress-DUZOmxLV.d.ts → getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts} +2 -2
  89. package/dist/{getValidatorQueuedOperatorAddress-BQXkSFd9.d.cts → getValidatorQueuedOperatorAddress-Cql_D50j.d.cts} +2 -2
  90. package/dist/{global.d-SU9Epq0M.d.ts → global.d-5w_lvl2J.d.ts} +1 -1
  91. package/dist/{global.d-6aSWIkV_.d.cts → global.d-B7IeayVX.d.cts} +1 -1
  92. package/dist/hooks/exports.cjs +3 -8327
  93. package/dist/hooks/exports.cjs.map +1 -1
  94. package/dist/hooks/exports.d.cts +4 -4
  95. package/dist/hooks/exports.d.ts +4 -4
  96. package/dist/hooks/exports.mjs +3 -8327
  97. package/dist/hooks/exports.mjs.map +1 -1
  98. package/dist/{txnEnum-CCuQUFlh.d.cts → txnEnum-7_o92X3N.d.cts} +2 -0
  99. package/dist/{txnEnum-CCuQUFlh.d.ts → txnEnum-7_o92X3N.d.ts} +2 -0
  100. package/dist/types/exports.d.cts +2 -2
  101. package/dist/types/exports.d.ts +2 -2
  102. package/dist/utils/exports.cjs +1 -786
  103. package/dist/utils/exports.cjs.map +1 -1
  104. package/dist/utils/exports.mjs +1 -786
  105. package/dist/utils/exports.mjs.map +1 -1
  106. package/package.json +5 -5
  107. package/src/actions/clients/getApolloClient.ts +11 -4
  108. package/src/actions/dex/aggregators/base.ts +1 -3
  109. package/src/actions/dex/getOnChainPool.ts +1 -1
  110. package/src/actions/enso/getBendMultiplyBundle.ts +9 -2
  111. package/src/actions/enso/util.ts +6 -8
  112. package/src/actions/governance/checkProposalField.ts +108 -54
  113. package/src/actions/governance/computeActualStatus.ts +7 -3
  114. package/src/actions/governance/getAllProposals.ts +15 -8
  115. package/src/actions/governance/getBodyErrors.ts +13 -5
  116. package/src/actions/governance/getDecodedFunctionData.ts +31 -27
  117. package/src/actions/governance/getProposalDetails.ts +8 -4
  118. package/src/actions/governance/getProposalFromTx.ts +19 -10
  119. package/src/actions/governance/getProposalParams.ts +17 -17
  120. package/src/actions/governance/getProposalVotes.ts +7 -3
  121. package/src/actions/governance/getQuorum.ts +7 -7
  122. package/src/actions/governance/parseProposalBody.ts +19 -9
  123. package/src/actions/pol/getRewardVaultIncentives.ts +2 -2
  124. package/src/actions/tokens/getTokenInformation.ts +8 -15
  125. package/src/actions/tokens/getUnderlyingToken.ts +1 -3
  126. package/src/enum/txnEnum.ts +2 -0
  127. package/src/errors/BeraError.ts +7 -2
  128. package/src/hooks/dex/usePoolHistoricalData.ts +1 -1
  129. package/src/hooks/enso/useBendZapSupply.ts +1 -1
  130. package/src/hooks/perps/usePythUpdateFee.ts +1 -1
  131. package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -1
  132. package/dist/chunk-24HMIYTN.cjs +0 -36
  133. package/dist/chunk-24HMIYTN.cjs.map +0 -1
  134. package/dist/chunk-2LL77B3T.cjs +0 -135
  135. package/dist/chunk-2LL77B3T.cjs.map +0 -1
  136. package/dist/chunk-3LXVARBJ.cjs +0 -417
  137. package/dist/chunk-3LXVARBJ.cjs.map +0 -1
  138. package/dist/chunk-4HDIUUSV.cjs +0 -130
  139. package/dist/chunk-4HDIUUSV.cjs.map +0 -1
  140. package/dist/chunk-7ONKBHXY.cjs +0 -169
  141. package/dist/chunk-7ONKBHXY.cjs.map +0 -1
  142. package/dist/chunk-7TFV6UKF.mjs +0 -24
  143. package/dist/chunk-A4FPM7U3.cjs +0 -63
  144. package/dist/chunk-A4FPM7U3.cjs.map +0 -1
  145. package/dist/chunk-A7P3JVU7.cjs +0 -4694
  146. package/dist/chunk-A7P3JVU7.cjs.map +0 -1
  147. package/dist/chunk-ALPEMPZI.mjs +0 -417
  148. package/dist/chunk-BEHP54S3.cjs +0 -24
  149. package/dist/chunk-BEHP54S3.cjs.map +0 -1
  150. package/dist/chunk-CYBZH6U3.mjs +0 -135
  151. package/dist/chunk-EWBKSMPG.cjs +0 -13
  152. package/dist/chunk-EWBKSMPG.cjs.map +0 -1
  153. package/dist/chunk-GLWPRM33.mjs +0 -13
  154. package/dist/chunk-GWSTVITN.mjs +0 -572
  155. package/dist/chunk-H3Z37RYU.cjs +0 -15
  156. package/dist/chunk-H3Z37RYU.cjs.map +0 -1
  157. package/dist/chunk-HCC4FJTD.cjs +0 -97
  158. package/dist/chunk-HCC4FJTD.cjs.map +0 -1
  159. package/dist/chunk-J6EHBYSV.mjs +0 -97
  160. package/dist/chunk-JA4DHMTG.mjs +0 -15
  161. package/dist/chunk-KL6YZ5VR.mjs +0 -63
  162. package/dist/chunk-MILSHCKW.cjs +0 -168
  163. package/dist/chunk-MILSHCKW.cjs.map +0 -1
  164. package/dist/chunk-MKS6W5NI.mjs +0 -403
  165. package/dist/chunk-MXWPP6MS.cjs +0 -572
  166. package/dist/chunk-MXWPP6MS.cjs.map +0 -1
  167. package/dist/chunk-OWUI3VPI.mjs +0 -169
  168. package/dist/chunk-PBCE7JTE.mjs +0 -36
  169. package/dist/chunk-QISQSMCV.cjs +0 -1843
  170. package/dist/chunk-QISQSMCV.cjs.map +0 -1
  171. package/dist/chunk-SYWYIMY7.mjs +0 -4694
  172. package/dist/chunk-SYWYIMY7.mjs.map +0 -1
  173. package/dist/chunk-TDW5SPXR.cjs +0 -244
  174. package/dist/chunk-TDW5SPXR.cjs.map +0 -1
  175. package/dist/chunk-TGHG6Q3C.cjs +0 -403
  176. package/dist/chunk-TGHG6Q3C.cjs.map +0 -1
  177. package/dist/chunk-WAFQFAI7.mjs +0 -130
  178. package/dist/chunk-WEULAXBE.mjs +0 -168
  179. package/dist/chunk-ZCEFC2TK.mjs +0 -244
  180. package/dist/chunk-ZV7DCQQY.mjs +0 -1843
  181. package/dist/chunk-ZV7DCQQY.mjs.map +0 -1
@@ -1,4453 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkH3Z37RYUcjs = require('../chunk-H3Z37RYU.cjs');
4
-
5
-
6
- var _chunkMXWPP6MScjs = require('../chunk-MXWPP6MS.cjs');
7
-
8
-
9
- var _chunkTDW5SPXRcjs = require('../chunk-TDW5SPXR.cjs');
10
-
11
- // src/abi/bend/bundler.ts
12
- var bundlerAbi = [
13
- { inputs: [], name: "AlreadyInitiated", type: "error" },
14
- { inputs: [], name: "EmptyBundle", type: "error" },
15
- { inputs: [], name: "IncorrectReenterHash", type: "error" },
16
- { inputs: [], name: "MissingExpectedReenter", type: "error" },
17
- {
18
- inputs: [],
19
- name: "initiator",
20
- outputs: [{ internalType: "address", name: "", type: "address" }],
21
- stateMutability: "view",
22
- type: "function"
23
- },
24
- {
25
- inputs: [
26
- {
27
- components: [
28
- { internalType: "address", name: "to", type: "address" },
29
- { internalType: "bytes", name: "data", type: "bytes" },
30
- { internalType: "uint256", name: "value", type: "uint256" },
31
- { internalType: "bool", name: "skipRevert", type: "bool" },
32
- { internalType: "bytes32", name: "callbackHash", type: "bytes32" }
33
- ],
34
- internalType: "struct Call[]",
35
- name: "bundle",
36
- type: "tuple[]"
37
- }
38
- ],
39
- name: "multicall",
40
- outputs: [],
41
- stateMutability: "payable",
42
- type: "function"
43
- },
44
- {
45
- inputs: [
46
- {
47
- components: [
48
- { internalType: "address", name: "to", type: "address" },
49
- { internalType: "bytes", name: "data", type: "bytes" },
50
- { internalType: "uint256", name: "value", type: "uint256" },
51
- { internalType: "bool", name: "skipRevert", type: "bool" },
52
- { internalType: "bytes32", name: "callbackHash", type: "bytes32" }
53
- ],
54
- internalType: "struct Call[]",
55
- name: "bundle",
56
- type: "tuple[]"
57
- }
58
- ],
59
- name: "reenter",
60
- outputs: [],
61
- stateMutability: "nonpayable",
62
- type: "function"
63
- },
64
- {
65
- inputs: [],
66
- name: "reenterHash",
67
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
68
- stateMutability: "view",
69
- type: "function"
70
- }
71
- ];
72
-
73
- // src/abi/bend/generalAdapter.ts
74
- var generalAdapterAbi = [
75
- {
76
- inputs: [
77
- { internalType: "address", name: "bundler3", type: "address" },
78
- { internalType: "address", name: "morpho", type: "address" },
79
- { internalType: "address", name: "wNative", type: "address" }
80
- ],
81
- stateMutability: "nonpayable",
82
- type: "constructor"
83
- },
84
- { inputs: [], name: "AdapterAddress", type: "error" },
85
- { inputs: [], name: "FailedCall", type: "error" },
86
- {
87
- inputs: [
88
- { internalType: "uint256", name: "balance", type: "uint256" },
89
- { internalType: "uint256", name: "needed", type: "uint256" }
90
- ],
91
- name: "InsufficientBalance",
92
- type: "error"
93
- },
94
- {
95
- inputs: [{ internalType: "address", name: "token", type: "address" }],
96
- name: "SafeERC20FailedOperation",
97
- type: "error"
98
- },
99
- { inputs: [], name: "SlippageExceeded", type: "error" },
100
- { inputs: [], name: "UnauthorizedSender", type: "error" },
101
- { inputs: [], name: "UnexpectedOwner", type: "error" },
102
- { inputs: [], name: "UnsafeCast", type: "error" },
103
- { inputs: [], name: "ZeroAddress", type: "error" },
104
- { inputs: [], name: "ZeroAmount", type: "error" },
105
- { inputs: [], name: "ZeroShares", type: "error" },
106
- {
107
- inputs: [],
108
- name: "BUNDLER3",
109
- outputs: [{ internalType: "address", name: "", type: "address" }],
110
- stateMutability: "view",
111
- type: "function"
112
- },
113
- {
114
- inputs: [],
115
- name: "MORPHO",
116
- outputs: [{ internalType: "contract IMorpho", name: "", type: "address" }],
117
- stateMutability: "view",
118
- type: "function"
119
- },
120
- {
121
- inputs: [],
122
- name: "WRAPPED_NATIVE",
123
- outputs: [{ internalType: "contract IWNative", name: "", type: "address" }],
124
- stateMutability: "view",
125
- type: "function"
126
- },
127
- {
128
- inputs: [
129
- { internalType: "address", name: "token", type: "address" },
130
- { internalType: "address", name: "receiver", type: "address" },
131
- { internalType: "uint256", name: "amount", type: "uint256" }
132
- ],
133
- name: "erc20Transfer",
134
- outputs: [],
135
- stateMutability: "nonpayable",
136
- type: "function"
137
- },
138
- {
139
- inputs: [
140
- { internalType: "address", name: "token", type: "address" },
141
- { internalType: "address", name: "receiver", type: "address" },
142
- { internalType: "uint256", name: "amount", type: "uint256" }
143
- ],
144
- name: "erc20TransferFrom",
145
- outputs: [],
146
- stateMutability: "nonpayable",
147
- type: "function"
148
- },
149
- {
150
- inputs: [
151
- { internalType: "address", name: "vault", type: "address" },
152
- { internalType: "uint256", name: "assets", type: "uint256" },
153
- { internalType: "uint256", name: "maxSharePriceE27", type: "uint256" },
154
- { internalType: "address", name: "receiver", type: "address" }
155
- ],
156
- name: "erc4626Deposit",
157
- outputs: [],
158
- stateMutability: "nonpayable",
159
- type: "function"
160
- },
161
- {
162
- inputs: [
163
- { internalType: "address", name: "vault", type: "address" },
164
- { internalType: "uint256", name: "shares", type: "uint256" },
165
- { internalType: "uint256", name: "maxSharePriceE27", type: "uint256" },
166
- { internalType: "address", name: "receiver", type: "address" }
167
- ],
168
- name: "erc4626Mint",
169
- outputs: [],
170
- stateMutability: "nonpayable",
171
- type: "function"
172
- },
173
- {
174
- inputs: [
175
- { internalType: "address", name: "vault", type: "address" },
176
- { internalType: "uint256", name: "shares", type: "uint256" },
177
- { internalType: "uint256", name: "minSharePriceE27", type: "uint256" },
178
- { internalType: "address", name: "receiver", type: "address" },
179
- { internalType: "address", name: "owner", type: "address" }
180
- ],
181
- name: "erc4626Redeem",
182
- outputs: [],
183
- stateMutability: "nonpayable",
184
- type: "function"
185
- },
186
- {
187
- inputs: [
188
- { internalType: "address", name: "vault", type: "address" },
189
- { internalType: "uint256", name: "assets", type: "uint256" },
190
- { internalType: "uint256", name: "minSharePriceE27", type: "uint256" },
191
- { internalType: "address", name: "receiver", type: "address" },
192
- { internalType: "address", name: "owner", type: "address" }
193
- ],
194
- name: "erc4626Withdraw",
195
- outputs: [],
196
- stateMutability: "nonpayable",
197
- type: "function"
198
- },
199
- {
200
- inputs: [
201
- {
202
- components: [
203
- { internalType: "address", name: "loanToken", type: "address" },
204
- { internalType: "address", name: "collateralToken", type: "address" },
205
- { internalType: "address", name: "oracle", type: "address" },
206
- { internalType: "address", name: "irm", type: "address" },
207
- { internalType: "uint256", name: "lltv", type: "uint256" }
208
- ],
209
- internalType: "struct MarketParams",
210
- name: "marketParams",
211
- type: "tuple"
212
- },
213
- { internalType: "uint256", name: "assets", type: "uint256" },
214
- { internalType: "uint256", name: "shares", type: "uint256" },
215
- { internalType: "uint256", name: "minSharePriceE27", type: "uint256" },
216
- { internalType: "address", name: "receiver", type: "address" }
217
- ],
218
- name: "morphoBorrow",
219
- outputs: [],
220
- stateMutability: "nonpayable",
221
- type: "function"
222
- },
223
- {
224
- inputs: [
225
- { internalType: "address", name: "token", type: "address" },
226
- { internalType: "uint256", name: "assets", type: "uint256" },
227
- { internalType: "bytes", name: "data", type: "bytes" }
228
- ],
229
- name: "morphoFlashLoan",
230
- outputs: [],
231
- stateMutability: "nonpayable",
232
- type: "function"
233
- },
234
- {
235
- inputs: [
236
- {
237
- components: [
238
- { internalType: "address", name: "loanToken", type: "address" },
239
- { internalType: "address", name: "collateralToken", type: "address" },
240
- { internalType: "address", name: "oracle", type: "address" },
241
- { internalType: "address", name: "irm", type: "address" },
242
- { internalType: "uint256", name: "lltv", type: "uint256" }
243
- ],
244
- internalType: "struct MarketParams",
245
- name: "marketParams",
246
- type: "tuple"
247
- },
248
- { internalType: "uint256", name: "assets", type: "uint256" },
249
- { internalType: "uint256", name: "shares", type: "uint256" },
250
- { internalType: "uint256", name: "maxSharePriceE27", type: "uint256" },
251
- { internalType: "address", name: "onBehalf", type: "address" },
252
- { internalType: "bytes", name: "data", type: "bytes" }
253
- ],
254
- name: "morphoRepay",
255
- outputs: [],
256
- stateMutability: "nonpayable",
257
- type: "function"
258
- },
259
- {
260
- inputs: [
261
- {
262
- components: [
263
- { internalType: "address", name: "loanToken", type: "address" },
264
- { internalType: "address", name: "collateralToken", type: "address" },
265
- { internalType: "address", name: "oracle", type: "address" },
266
- { internalType: "address", name: "irm", type: "address" },
267
- { internalType: "uint256", name: "lltv", type: "uint256" }
268
- ],
269
- internalType: "struct MarketParams",
270
- name: "marketParams",
271
- type: "tuple"
272
- },
273
- { internalType: "uint256", name: "assets", type: "uint256" },
274
- { internalType: "uint256", name: "shares", type: "uint256" },
275
- { internalType: "uint256", name: "maxSharePriceE27", type: "uint256" },
276
- { internalType: "address", name: "onBehalf", type: "address" },
277
- { internalType: "bytes", name: "data", type: "bytes" }
278
- ],
279
- name: "morphoSupply",
280
- outputs: [],
281
- stateMutability: "nonpayable",
282
- type: "function"
283
- },
284
- {
285
- inputs: [
286
- {
287
- components: [
288
- { internalType: "address", name: "loanToken", type: "address" },
289
- { internalType: "address", name: "collateralToken", type: "address" },
290
- { internalType: "address", name: "oracle", type: "address" },
291
- { internalType: "address", name: "irm", type: "address" },
292
- { internalType: "uint256", name: "lltv", type: "uint256" }
293
- ],
294
- internalType: "struct MarketParams",
295
- name: "marketParams",
296
- type: "tuple"
297
- },
298
- { internalType: "uint256", name: "assets", type: "uint256" },
299
- { internalType: "address", name: "onBehalf", type: "address" },
300
- { internalType: "bytes", name: "data", type: "bytes" }
301
- ],
302
- name: "morphoSupplyCollateral",
303
- outputs: [],
304
- stateMutability: "nonpayable",
305
- type: "function"
306
- },
307
- {
308
- inputs: [
309
- {
310
- components: [
311
- { internalType: "address", name: "loanToken", type: "address" },
312
- { internalType: "address", name: "collateralToken", type: "address" },
313
- { internalType: "address", name: "oracle", type: "address" },
314
- { internalType: "address", name: "irm", type: "address" },
315
- { internalType: "uint256", name: "lltv", type: "uint256" }
316
- ],
317
- internalType: "struct MarketParams",
318
- name: "marketParams",
319
- type: "tuple"
320
- },
321
- { internalType: "uint256", name: "assets", type: "uint256" },
322
- { internalType: "uint256", name: "shares", type: "uint256" },
323
- { internalType: "uint256", name: "minSharePriceE27", type: "uint256" },
324
- { internalType: "address", name: "receiver", type: "address" }
325
- ],
326
- name: "morphoWithdraw",
327
- outputs: [],
328
- stateMutability: "nonpayable",
329
- type: "function"
330
- },
331
- {
332
- inputs: [
333
- {
334
- components: [
335
- { internalType: "address", name: "loanToken", type: "address" },
336
- { internalType: "address", name: "collateralToken", type: "address" },
337
- { internalType: "address", name: "oracle", type: "address" },
338
- { internalType: "address", name: "irm", type: "address" },
339
- { internalType: "uint256", name: "lltv", type: "uint256" }
340
- ],
341
- internalType: "struct MarketParams",
342
- name: "marketParams",
343
- type: "tuple"
344
- },
345
- { internalType: "uint256", name: "assets", type: "uint256" },
346
- { internalType: "address", name: "receiver", type: "address" }
347
- ],
348
- name: "morphoWithdrawCollateral",
349
- outputs: [],
350
- stateMutability: "nonpayable",
351
- type: "function"
352
- },
353
- {
354
- inputs: [
355
- { internalType: "address", name: "receiver", type: "address" },
356
- { internalType: "uint256", name: "amount", type: "uint256" }
357
- ],
358
- name: "nativeTransfer",
359
- outputs: [],
360
- stateMutability: "nonpayable",
361
- type: "function"
362
- },
363
- {
364
- inputs: [
365
- { internalType: "uint256", name: "", type: "uint256" },
366
- { internalType: "bytes", name: "data", type: "bytes" }
367
- ],
368
- name: "onMorphoFlashLoan",
369
- outputs: [],
370
- stateMutability: "nonpayable",
371
- type: "function"
372
- },
373
- {
374
- inputs: [
375
- { internalType: "uint256", name: "", type: "uint256" },
376
- { internalType: "bytes", name: "data", type: "bytes" }
377
- ],
378
- name: "onMorphoRepay",
379
- outputs: [],
380
- stateMutability: "nonpayable",
381
- type: "function"
382
- },
383
- {
384
- inputs: [
385
- { internalType: "uint256", name: "", type: "uint256" },
386
- { internalType: "bytes", name: "data", type: "bytes" }
387
- ],
388
- name: "onMorphoSupply",
389
- outputs: [],
390
- stateMutability: "nonpayable",
391
- type: "function"
392
- },
393
- {
394
- inputs: [
395
- { internalType: "uint256", name: "", type: "uint256" },
396
- { internalType: "bytes", name: "data", type: "bytes" }
397
- ],
398
- name: "onMorphoSupplyCollateral",
399
- outputs: [],
400
- stateMutability: "nonpayable",
401
- type: "function"
402
- },
403
- {
404
- inputs: [
405
- { internalType: "address", name: "token", type: "address" },
406
- { internalType: "address", name: "receiver", type: "address" },
407
- { internalType: "uint256", name: "amount", type: "uint256" }
408
- ],
409
- name: "permit2TransferFrom",
410
- outputs: [],
411
- stateMutability: "nonpayable",
412
- type: "function"
413
- },
414
- {
415
- inputs: [
416
- { internalType: "uint256", name: "amount", type: "uint256" },
417
- { internalType: "address", name: "receiver", type: "address" }
418
- ],
419
- name: "unwrapNative",
420
- outputs: [],
421
- stateMutability: "nonpayable",
422
- type: "function"
423
- },
424
- {
425
- inputs: [
426
- { internalType: "uint256", name: "amount", type: "uint256" },
427
- { internalType: "address", name: "receiver", type: "address" }
428
- ],
429
- name: "wrapNative",
430
- outputs: [],
431
- stateMutability: "nonpayable",
432
- type: "function"
433
- },
434
- { stateMutability: "payable", type: "receive" }
435
- ];
436
-
437
- // src/abi/bend/morphoVault.ts
438
- var morphoVaultAbi = [
439
- {
440
- inputs: [
441
- { internalType: "address", name: "owner", type: "address" },
442
- { internalType: "address", name: "morpho", type: "address" },
443
- { internalType: "address", name: "feePartitioner", type: "address" },
444
- { internalType: "uint256", name: "initialTimelock", type: "uint256" },
445
- { internalType: "address", name: "_asset", type: "address" },
446
- { internalType: "string", name: "__name", type: "string" },
447
- { internalType: "string", name: "__symbol", type: "string" }
448
- ],
449
- stateMutability: "nonpayable",
450
- type: "constructor"
451
- },
452
- { inputs: [], name: "AboveMaxTimelock", type: "error" },
453
- {
454
- inputs: [{ internalType: "address", name: "target", type: "address" }],
455
- name: "AddressEmptyCode",
456
- type: "error"
457
- },
458
- {
459
- inputs: [{ internalType: "address", name: "account", type: "address" }],
460
- name: "AddressInsufficientBalance",
461
- type: "error"
462
- },
463
- { inputs: [], name: "AllCapsReached", type: "error" },
464
- { inputs: [], name: "AlreadyPending", type: "error" },
465
- { inputs: [], name: "AlreadySet", type: "error" },
466
- { inputs: [], name: "BelowMinTimelock", type: "error" },
467
- {
468
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
469
- name: "DuplicateMarket",
470
- type: "error"
471
- },
472
- { inputs: [], name: "ECDSAInvalidSignature", type: "error" },
473
- {
474
- inputs: [{ internalType: "uint256", name: "length", type: "uint256" }],
475
- name: "ECDSAInvalidSignatureLength",
476
- type: "error"
477
- },
478
- {
479
- inputs: [{ internalType: "bytes32", name: "s", type: "bytes32" }],
480
- name: "ECDSAInvalidSignatureS",
481
- type: "error"
482
- },
483
- {
484
- inputs: [
485
- { internalType: "address", name: "spender", type: "address" },
486
- { internalType: "uint256", name: "allowance", type: "uint256" },
487
- { internalType: "uint256", name: "needed", type: "uint256" }
488
- ],
489
- name: "ERC20InsufficientAllowance",
490
- type: "error"
491
- },
492
- {
493
- inputs: [
494
- { internalType: "address", name: "sender", type: "address" },
495
- { internalType: "uint256", name: "balance", type: "uint256" },
496
- { internalType: "uint256", name: "needed", type: "uint256" }
497
- ],
498
- name: "ERC20InsufficientBalance",
499
- type: "error"
500
- },
501
- {
502
- inputs: [{ internalType: "address", name: "approver", type: "address" }],
503
- name: "ERC20InvalidApprover",
504
- type: "error"
505
- },
506
- {
507
- inputs: [{ internalType: "address", name: "receiver", type: "address" }],
508
- name: "ERC20InvalidReceiver",
509
- type: "error"
510
- },
511
- {
512
- inputs: [{ internalType: "address", name: "sender", type: "address" }],
513
- name: "ERC20InvalidSender",
514
- type: "error"
515
- },
516
- {
517
- inputs: [{ internalType: "address", name: "spender", type: "address" }],
518
- name: "ERC20InvalidSpender",
519
- type: "error"
520
- },
521
- {
522
- inputs: [{ internalType: "uint256", name: "deadline", type: "uint256" }],
523
- name: "ERC2612ExpiredSignature",
524
- type: "error"
525
- },
526
- {
527
- inputs: [
528
- { internalType: "address", name: "signer", type: "address" },
529
- { internalType: "address", name: "owner", type: "address" }
530
- ],
531
- name: "ERC2612InvalidSigner",
532
- type: "error"
533
- },
534
- {
535
- inputs: [
536
- { internalType: "address", name: "receiver", type: "address" },
537
- { internalType: "uint256", name: "assets", type: "uint256" },
538
- { internalType: "uint256", name: "max", type: "uint256" }
539
- ],
540
- name: "ERC4626ExceededMaxDeposit",
541
- type: "error"
542
- },
543
- {
544
- inputs: [
545
- { internalType: "address", name: "receiver", type: "address" },
546
- { internalType: "uint256", name: "shares", type: "uint256" },
547
- { internalType: "uint256", name: "max", type: "uint256" }
548
- ],
549
- name: "ERC4626ExceededMaxMint",
550
- type: "error"
551
- },
552
- {
553
- inputs: [
554
- { internalType: "address", name: "owner", type: "address" },
555
- { internalType: "uint256", name: "shares", type: "uint256" },
556
- { internalType: "uint256", name: "max", type: "uint256" }
557
- ],
558
- name: "ERC4626ExceededMaxRedeem",
559
- type: "error"
560
- },
561
- {
562
- inputs: [
563
- { internalType: "address", name: "owner", type: "address" },
564
- { internalType: "uint256", name: "assets", type: "uint256" },
565
- { internalType: "uint256", name: "max", type: "uint256" }
566
- ],
567
- name: "ERC4626ExceededMaxWithdraw",
568
- type: "error"
569
- },
570
- { inputs: [], name: "FailedInnerCall", type: "error" },
571
- {
572
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
573
- name: "InconsistentAsset",
574
- type: "error"
575
- },
576
- { inputs: [], name: "InconsistentReallocation", type: "error" },
577
- {
578
- inputs: [
579
- { internalType: "address", name: "account", type: "address" },
580
- { internalType: "uint256", name: "currentNonce", type: "uint256" }
581
- ],
582
- name: "InvalidAccountNonce",
583
- type: "error"
584
- },
585
- {
586
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
587
- name: "InvalidMarketRemovalNonZeroCap",
588
- type: "error"
589
- },
590
- {
591
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
592
- name: "InvalidMarketRemovalNonZeroSupply",
593
- type: "error"
594
- },
595
- {
596
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
597
- name: "InvalidMarketRemovalTimelockNotElapsed",
598
- type: "error"
599
- },
600
- { inputs: [], name: "InvalidShortString", type: "error" },
601
- { inputs: [], name: "MarketNotCreated", type: "error" },
602
- {
603
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
604
- name: "MarketNotEnabled",
605
- type: "error"
606
- },
607
- { inputs: [], name: "MathOverflowedMulDiv", type: "error" },
608
- { inputs: [], name: "MaxFeeExceeded", type: "error" },
609
- { inputs: [], name: "MaxQueueLengthExceeded", type: "error" },
610
- { inputs: [], name: "NoPendingValue", type: "error" },
611
- { inputs: [], name: "NonZeroCap", type: "error" },
612
- { inputs: [], name: "NotAllocatorRole", type: "error" },
613
- { inputs: [], name: "NotCuratorNorGuardianRole", type: "error" },
614
- { inputs: [], name: "NotCuratorRole", type: "error" },
615
- { inputs: [], name: "NotEnoughLiquidity", type: "error" },
616
- { inputs: [], name: "NotGuardianRole", type: "error" },
617
- {
618
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
619
- name: "OwnableInvalidOwner",
620
- type: "error"
621
- },
622
- {
623
- inputs: [{ internalType: "address", name: "account", type: "address" }],
624
- name: "OwnableUnauthorizedAccount",
625
- type: "error"
626
- },
627
- {
628
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
629
- name: "PendingCap",
630
- type: "error"
631
- },
632
- { inputs: [], name: "PendingRemoval", type: "error" },
633
- {
634
- inputs: [
635
- { internalType: "uint8", name: "bits", type: "uint8" },
636
- { internalType: "uint256", name: "value", type: "uint256" }
637
- ],
638
- name: "SafeCastOverflowedUintDowncast",
639
- type: "error"
640
- },
641
- {
642
- inputs: [{ internalType: "address", name: "token", type: "address" }],
643
- name: "SafeERC20FailedOperation",
644
- type: "error"
645
- },
646
- {
647
- inputs: [{ internalType: "string", name: "str", type: "string" }],
648
- name: "StringTooLong",
649
- type: "error"
650
- },
651
- {
652
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
653
- name: "SupplyCapExceeded",
654
- type: "error"
655
- },
656
- { inputs: [], name: "TimelockNotElapsed", type: "error" },
657
- {
658
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
659
- name: "UnauthorizedMarket",
660
- type: "error"
661
- },
662
- { inputs: [], name: "ZeroAddress", type: "error" },
663
- { inputs: [], name: "ZeroFeeRecipient", type: "error" },
664
- {
665
- anonymous: false,
666
- inputs: [
667
- {
668
- indexed: false,
669
- internalType: "uint256",
670
- name: "newTotalAssets",
671
- type: "uint256"
672
- },
673
- {
674
- indexed: false,
675
- internalType: "uint256",
676
- name: "feeShares",
677
- type: "uint256"
678
- }
679
- ],
680
- name: "AccrueInterest",
681
- type: "event"
682
- },
683
- {
684
- anonymous: false,
685
- inputs: [
686
- {
687
- indexed: true,
688
- internalType: "address",
689
- name: "owner",
690
- type: "address"
691
- },
692
- {
693
- indexed: true,
694
- internalType: "address",
695
- name: "spender",
696
- type: "address"
697
- },
698
- {
699
- indexed: false,
700
- internalType: "uint256",
701
- name: "value",
702
- type: "uint256"
703
- }
704
- ],
705
- name: "Approval",
706
- type: "event"
707
- },
708
- {
709
- anonymous: false,
710
- inputs: [
711
- {
712
- indexed: true,
713
- internalType: "address",
714
- name: "sender",
715
- type: "address"
716
- },
717
- {
718
- indexed: true,
719
- internalType: "address",
720
- name: "owner",
721
- type: "address"
722
- },
723
- {
724
- indexed: false,
725
- internalType: "uint256",
726
- name: "assets",
727
- type: "uint256"
728
- },
729
- {
730
- indexed: false,
731
- internalType: "uint256",
732
- name: "shares",
733
- type: "uint256"
734
- }
735
- ],
736
- name: "Deposit",
737
- type: "event"
738
- },
739
- { anonymous: false, inputs: [], name: "EIP712DomainChanged", type: "event" },
740
- {
741
- anonymous: false,
742
- inputs: [
743
- {
744
- indexed: true,
745
- internalType: "address",
746
- name: "previousOwner",
747
- type: "address"
748
- },
749
- {
750
- indexed: true,
751
- internalType: "address",
752
- name: "newOwner",
753
- type: "address"
754
- }
755
- ],
756
- name: "OwnershipTransferStarted",
757
- type: "event"
758
- },
759
- {
760
- anonymous: false,
761
- inputs: [
762
- {
763
- indexed: true,
764
- internalType: "address",
765
- name: "previousOwner",
766
- type: "address"
767
- },
768
- {
769
- indexed: true,
770
- internalType: "address",
771
- name: "newOwner",
772
- type: "address"
773
- }
774
- ],
775
- name: "OwnershipTransferred",
776
- type: "event"
777
- },
778
- {
779
- anonymous: false,
780
- inputs: [
781
- {
782
- indexed: true,
783
- internalType: "address",
784
- name: "caller",
785
- type: "address"
786
- },
787
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" },
788
- {
789
- indexed: false,
790
- internalType: "uint256",
791
- name: "suppliedAssets",
792
- type: "uint256"
793
- },
794
- {
795
- indexed: false,
796
- internalType: "uint256",
797
- name: "suppliedShares",
798
- type: "uint256"
799
- }
800
- ],
801
- name: "ReallocateSupply",
802
- type: "event"
803
- },
804
- {
805
- anonymous: false,
806
- inputs: [
807
- {
808
- indexed: true,
809
- internalType: "address",
810
- name: "caller",
811
- type: "address"
812
- },
813
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" },
814
- {
815
- indexed: false,
816
- internalType: "uint256",
817
- name: "withdrawnAssets",
818
- type: "uint256"
819
- },
820
- {
821
- indexed: false,
822
- internalType: "uint256",
823
- name: "withdrawnShares",
824
- type: "uint256"
825
- }
826
- ],
827
- name: "ReallocateWithdraw",
828
- type: "event"
829
- },
830
- {
831
- anonymous: false,
832
- inputs: [
833
- {
834
- indexed: true,
835
- internalType: "address",
836
- name: "caller",
837
- type: "address"
838
- },
839
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" }
840
- ],
841
- name: "RevokePendingCap",
842
- type: "event"
843
- },
844
- {
845
- anonymous: false,
846
- inputs: [
847
- {
848
- indexed: true,
849
- internalType: "address",
850
- name: "caller",
851
- type: "address"
852
- }
853
- ],
854
- name: "RevokePendingGuardian",
855
- type: "event"
856
- },
857
- {
858
- anonymous: false,
859
- inputs: [
860
- {
861
- indexed: true,
862
- internalType: "address",
863
- name: "caller",
864
- type: "address"
865
- },
866
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" }
867
- ],
868
- name: "RevokePendingMarketRemoval",
869
- type: "event"
870
- },
871
- {
872
- anonymous: false,
873
- inputs: [
874
- {
875
- indexed: true,
876
- internalType: "address",
877
- name: "caller",
878
- type: "address"
879
- }
880
- ],
881
- name: "RevokePendingTimelock",
882
- type: "event"
883
- },
884
- {
885
- anonymous: false,
886
- inputs: [
887
- {
888
- indexed: true,
889
- internalType: "address",
890
- name: "caller",
891
- type: "address"
892
- },
893
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" },
894
- { indexed: false, internalType: "uint256", name: "cap", type: "uint256" }
895
- ],
896
- name: "SetCap",
897
- type: "event"
898
- },
899
- {
900
- anonymous: false,
901
- inputs: [
902
- {
903
- indexed: true,
904
- internalType: "address",
905
- name: "newCurator",
906
- type: "address"
907
- }
908
- ],
909
- name: "SetCurator",
910
- type: "event"
911
- },
912
- {
913
- anonymous: false,
914
- inputs: [
915
- {
916
- indexed: true,
917
- internalType: "address",
918
- name: "caller",
919
- type: "address"
920
- },
921
- {
922
- indexed: false,
923
- internalType: "uint256",
924
- name: "newFee",
925
- type: "uint256"
926
- }
927
- ],
928
- name: "SetFee",
929
- type: "event"
930
- },
931
- {
932
- anonymous: false,
933
- inputs: [
934
- {
935
- indexed: true,
936
- internalType: "address",
937
- name: "newFeeRecipient",
938
- type: "address"
939
- }
940
- ],
941
- name: "SetFeeRecipient",
942
- type: "event"
943
- },
944
- {
945
- anonymous: false,
946
- inputs: [
947
- {
948
- indexed: true,
949
- internalType: "address",
950
- name: "caller",
951
- type: "address"
952
- },
953
- {
954
- indexed: true,
955
- internalType: "address",
956
- name: "guardian",
957
- type: "address"
958
- }
959
- ],
960
- name: "SetGuardian",
961
- type: "event"
962
- },
963
- {
964
- anonymous: false,
965
- inputs: [
966
- {
967
- indexed: true,
968
- internalType: "address",
969
- name: "allocator",
970
- type: "address"
971
- },
972
- {
973
- indexed: false,
974
- internalType: "bool",
975
- name: "isAllocator",
976
- type: "bool"
977
- }
978
- ],
979
- name: "SetIsAllocator",
980
- type: "event"
981
- },
982
- {
983
- anonymous: false,
984
- inputs: [
985
- { indexed: false, internalType: "string", name: "name", type: "string" }
986
- ],
987
- name: "SetName",
988
- type: "event"
989
- },
990
- {
991
- anonymous: false,
992
- inputs: [
993
- {
994
- indexed: true,
995
- internalType: "address",
996
- name: "newSkimRecipient",
997
- type: "address"
998
- }
999
- ],
1000
- name: "SetSkimRecipient",
1001
- type: "event"
1002
- },
1003
- {
1004
- anonymous: false,
1005
- inputs: [
1006
- {
1007
- indexed: true,
1008
- internalType: "address",
1009
- name: "caller",
1010
- type: "address"
1011
- },
1012
- {
1013
- indexed: false,
1014
- internalType: "Id[]",
1015
- name: "newSupplyQueue",
1016
- type: "bytes32[]"
1017
- }
1018
- ],
1019
- name: "SetSupplyQueue",
1020
- type: "event"
1021
- },
1022
- {
1023
- anonymous: false,
1024
- inputs: [
1025
- {
1026
- indexed: false,
1027
- internalType: "string",
1028
- name: "symbol",
1029
- type: "string"
1030
- }
1031
- ],
1032
- name: "SetSymbol",
1033
- type: "event"
1034
- },
1035
- {
1036
- anonymous: false,
1037
- inputs: [
1038
- {
1039
- indexed: true,
1040
- internalType: "address",
1041
- name: "caller",
1042
- type: "address"
1043
- },
1044
- {
1045
- indexed: false,
1046
- internalType: "uint256",
1047
- name: "newTimelock",
1048
- type: "uint256"
1049
- }
1050
- ],
1051
- name: "SetTimelock",
1052
- type: "event"
1053
- },
1054
- {
1055
- anonymous: false,
1056
- inputs: [
1057
- {
1058
- indexed: true,
1059
- internalType: "address",
1060
- name: "caller",
1061
- type: "address"
1062
- },
1063
- {
1064
- indexed: false,
1065
- internalType: "Id[]",
1066
- name: "newWithdrawQueue",
1067
- type: "bytes32[]"
1068
- }
1069
- ],
1070
- name: "SetWithdrawQueue",
1071
- type: "event"
1072
- },
1073
- {
1074
- anonymous: false,
1075
- inputs: [
1076
- {
1077
- indexed: true,
1078
- internalType: "address",
1079
- name: "caller",
1080
- type: "address"
1081
- },
1082
- {
1083
- indexed: true,
1084
- internalType: "address",
1085
- name: "token",
1086
- type: "address"
1087
- },
1088
- {
1089
- indexed: false,
1090
- internalType: "uint256",
1091
- name: "amount",
1092
- type: "uint256"
1093
- }
1094
- ],
1095
- name: "Skim",
1096
- type: "event"
1097
- },
1098
- {
1099
- anonymous: false,
1100
- inputs: [
1101
- {
1102
- indexed: true,
1103
- internalType: "address",
1104
- name: "caller",
1105
- type: "address"
1106
- },
1107
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" },
1108
- { indexed: false, internalType: "uint256", name: "cap", type: "uint256" }
1109
- ],
1110
- name: "SubmitCap",
1111
- type: "event"
1112
- },
1113
- {
1114
- anonymous: false,
1115
- inputs: [
1116
- {
1117
- indexed: true,
1118
- internalType: "address",
1119
- name: "newGuardian",
1120
- type: "address"
1121
- }
1122
- ],
1123
- name: "SubmitGuardian",
1124
- type: "event"
1125
- },
1126
- {
1127
- anonymous: false,
1128
- inputs: [
1129
- {
1130
- indexed: true,
1131
- internalType: "address",
1132
- name: "caller",
1133
- type: "address"
1134
- },
1135
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" }
1136
- ],
1137
- name: "SubmitMarketRemoval",
1138
- type: "event"
1139
- },
1140
- {
1141
- anonymous: false,
1142
- inputs: [
1143
- {
1144
- indexed: false,
1145
- internalType: "uint256",
1146
- name: "newTimelock",
1147
- type: "uint256"
1148
- }
1149
- ],
1150
- name: "SubmitTimelock",
1151
- type: "event"
1152
- },
1153
- {
1154
- anonymous: false,
1155
- inputs: [
1156
- { indexed: true, internalType: "address", name: "from", type: "address" },
1157
- { indexed: true, internalType: "address", name: "to", type: "address" },
1158
- {
1159
- indexed: false,
1160
- internalType: "uint256",
1161
- name: "value",
1162
- type: "uint256"
1163
- }
1164
- ],
1165
- name: "Transfer",
1166
- type: "event"
1167
- },
1168
- {
1169
- anonymous: false,
1170
- inputs: [
1171
- {
1172
- indexed: false,
1173
- internalType: "uint256",
1174
- name: "updatedTotalAssets",
1175
- type: "uint256"
1176
- }
1177
- ],
1178
- name: "UpdateLastTotalAssets",
1179
- type: "event"
1180
- },
1181
- {
1182
- anonymous: false,
1183
- inputs: [
1184
- {
1185
- indexed: false,
1186
- internalType: "uint256",
1187
- name: "newLostAssets",
1188
- type: "uint256"
1189
- }
1190
- ],
1191
- name: "UpdateLostAssets",
1192
- type: "event"
1193
- },
1194
- {
1195
- anonymous: false,
1196
- inputs: [
1197
- {
1198
- indexed: true,
1199
- internalType: "address",
1200
- name: "sender",
1201
- type: "address"
1202
- },
1203
- {
1204
- indexed: true,
1205
- internalType: "address",
1206
- name: "receiver",
1207
- type: "address"
1208
- },
1209
- {
1210
- indexed: true,
1211
- internalType: "address",
1212
- name: "owner",
1213
- type: "address"
1214
- },
1215
- {
1216
- indexed: false,
1217
- internalType: "uint256",
1218
- name: "assets",
1219
- type: "uint256"
1220
- },
1221
- {
1222
- indexed: false,
1223
- internalType: "uint256",
1224
- name: "shares",
1225
- type: "uint256"
1226
- }
1227
- ],
1228
- name: "Withdraw",
1229
- type: "event"
1230
- },
1231
- {
1232
- inputs: [],
1233
- name: "DECIMALS_OFFSET",
1234
- outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
1235
- stateMutability: "view",
1236
- type: "function"
1237
- },
1238
- {
1239
- inputs: [],
1240
- name: "DOMAIN_SEPARATOR",
1241
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
1242
- stateMutability: "view",
1243
- type: "function"
1244
- },
1245
- {
1246
- inputs: [],
1247
- name: "MORPHO",
1248
- outputs: [{ internalType: "contract IMorpho", name: "", type: "address" }],
1249
- stateMutability: "view",
1250
- type: "function"
1251
- },
1252
- {
1253
- inputs: [
1254
- {
1255
- components: [
1256
- { internalType: "address", name: "loanToken", type: "address" },
1257
- { internalType: "address", name: "collateralToken", type: "address" },
1258
- { internalType: "address", name: "oracle", type: "address" },
1259
- { internalType: "address", name: "irm", type: "address" },
1260
- { internalType: "uint256", name: "lltv", type: "uint256" }
1261
- ],
1262
- internalType: "struct MarketParams",
1263
- name: "marketParams",
1264
- type: "tuple"
1265
- }
1266
- ],
1267
- name: "acceptCap",
1268
- outputs: [],
1269
- stateMutability: "nonpayable",
1270
- type: "function"
1271
- },
1272
- {
1273
- inputs: [],
1274
- name: "acceptGuardian",
1275
- outputs: [],
1276
- stateMutability: "nonpayable",
1277
- type: "function"
1278
- },
1279
- {
1280
- inputs: [],
1281
- name: "acceptOwnership",
1282
- outputs: [],
1283
- stateMutability: "nonpayable",
1284
- type: "function"
1285
- },
1286
- {
1287
- inputs: [],
1288
- name: "acceptTimelock",
1289
- outputs: [],
1290
- stateMutability: "nonpayable",
1291
- type: "function"
1292
- },
1293
- {
1294
- inputs: [
1295
- { internalType: "address", name: "owner", type: "address" },
1296
- { internalType: "address", name: "spender", type: "address" }
1297
- ],
1298
- name: "allowance",
1299
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1300
- stateMutability: "view",
1301
- type: "function"
1302
- },
1303
- {
1304
- inputs: [
1305
- { internalType: "address", name: "spender", type: "address" },
1306
- { internalType: "uint256", name: "value", type: "uint256" }
1307
- ],
1308
- name: "approve",
1309
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
1310
- stateMutability: "nonpayable",
1311
- type: "function"
1312
- },
1313
- {
1314
- inputs: [],
1315
- name: "asset",
1316
- outputs: [{ internalType: "address", name: "", type: "address" }],
1317
- stateMutability: "view",
1318
- type: "function"
1319
- },
1320
- {
1321
- inputs: [{ internalType: "address", name: "account", type: "address" }],
1322
- name: "balanceOf",
1323
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1324
- stateMutability: "view",
1325
- type: "function"
1326
- },
1327
- {
1328
- inputs: [{ internalType: "Id", name: "", type: "bytes32" }],
1329
- name: "config",
1330
- outputs: [
1331
- { internalType: "uint184", name: "cap", type: "uint184" },
1332
- { internalType: "bool", name: "enabled", type: "bool" },
1333
- { internalType: "uint64", name: "removableAt", type: "uint64" }
1334
- ],
1335
- stateMutability: "view",
1336
- type: "function"
1337
- },
1338
- {
1339
- inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
1340
- name: "convertToAssets",
1341
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1342
- stateMutability: "view",
1343
- type: "function"
1344
- },
1345
- {
1346
- inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1347
- name: "convertToShares",
1348
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1349
- stateMutability: "view",
1350
- type: "function"
1351
- },
1352
- {
1353
- inputs: [],
1354
- name: "curator",
1355
- outputs: [{ internalType: "address", name: "", type: "address" }],
1356
- stateMutability: "view",
1357
- type: "function"
1358
- },
1359
- {
1360
- inputs: [],
1361
- name: "decimals",
1362
- outputs: [{ internalType: "uint8", name: "", type: "uint8" }],
1363
- stateMutability: "view",
1364
- type: "function"
1365
- },
1366
- {
1367
- inputs: [
1368
- { internalType: "uint256", name: "assets", type: "uint256" },
1369
- { internalType: "address", name: "receiver", type: "address" }
1370
- ],
1371
- name: "deposit",
1372
- outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
1373
- stateMutability: "nonpayable",
1374
- type: "function"
1375
- },
1376
- {
1377
- inputs: [],
1378
- name: "eip712Domain",
1379
- outputs: [
1380
- { internalType: "bytes1", name: "fields", type: "bytes1" },
1381
- { internalType: "string", name: "name", type: "string" },
1382
- { internalType: "string", name: "version", type: "string" },
1383
- { internalType: "uint256", name: "chainId", type: "uint256" },
1384
- { internalType: "address", name: "verifyingContract", type: "address" },
1385
- { internalType: "bytes32", name: "salt", type: "bytes32" },
1386
- { internalType: "uint256[]", name: "extensions", type: "uint256[]" }
1387
- ],
1388
- stateMutability: "view",
1389
- type: "function"
1390
- },
1391
- {
1392
- inputs: [],
1393
- name: "fee",
1394
- outputs: [{ internalType: "uint96", name: "", type: "uint96" }],
1395
- stateMutability: "view",
1396
- type: "function"
1397
- },
1398
- {
1399
- inputs: [],
1400
- name: "feeRecipient",
1401
- outputs: [{ internalType: "address", name: "", type: "address" }],
1402
- stateMutability: "view",
1403
- type: "function"
1404
- },
1405
- {
1406
- inputs: [],
1407
- name: "guardian",
1408
- outputs: [{ internalType: "address", name: "", type: "address" }],
1409
- stateMutability: "view",
1410
- type: "function"
1411
- },
1412
- {
1413
- inputs: [{ internalType: "address", name: "", type: "address" }],
1414
- name: "isAllocator",
1415
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
1416
- stateMutability: "view",
1417
- type: "function"
1418
- },
1419
- {
1420
- inputs: [],
1421
- name: "lastTotalAssets",
1422
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1423
- stateMutability: "view",
1424
- type: "function"
1425
- },
1426
- {
1427
- inputs: [],
1428
- name: "lostAssets",
1429
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1430
- stateMutability: "view",
1431
- type: "function"
1432
- },
1433
- {
1434
- inputs: [{ internalType: "address", name: "", type: "address" }],
1435
- name: "maxDeposit",
1436
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1437
- stateMutability: "view",
1438
- type: "function"
1439
- },
1440
- {
1441
- inputs: [{ internalType: "address", name: "", type: "address" }],
1442
- name: "maxMint",
1443
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1444
- stateMutability: "view",
1445
- type: "function"
1446
- },
1447
- {
1448
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
1449
- name: "maxRedeem",
1450
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1451
- stateMutability: "view",
1452
- type: "function"
1453
- },
1454
- {
1455
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
1456
- name: "maxWithdraw",
1457
- outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1458
- stateMutability: "view",
1459
- type: "function"
1460
- },
1461
- {
1462
- inputs: [
1463
- { internalType: "uint256", name: "shares", type: "uint256" },
1464
- { internalType: "address", name: "receiver", type: "address" }
1465
- ],
1466
- name: "mint",
1467
- outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1468
- stateMutability: "nonpayable",
1469
- type: "function"
1470
- },
1471
- {
1472
- inputs: [{ internalType: "bytes[]", name: "data", type: "bytes[]" }],
1473
- name: "multicall",
1474
- outputs: [{ internalType: "bytes[]", name: "results", type: "bytes[]" }],
1475
- stateMutability: "nonpayable",
1476
- type: "function"
1477
- },
1478
- {
1479
- inputs: [],
1480
- name: "name",
1481
- outputs: [{ internalType: "string", name: "", type: "string" }],
1482
- stateMutability: "view",
1483
- type: "function"
1484
- },
1485
- {
1486
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
1487
- name: "nonces",
1488
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1489
- stateMutability: "view",
1490
- type: "function"
1491
- },
1492
- {
1493
- inputs: [],
1494
- name: "owner",
1495
- outputs: [{ internalType: "address", name: "", type: "address" }],
1496
- stateMutability: "view",
1497
- type: "function"
1498
- },
1499
- {
1500
- inputs: [{ internalType: "Id", name: "", type: "bytes32" }],
1501
- name: "pendingCap",
1502
- outputs: [
1503
- { internalType: "uint192", name: "value", type: "uint192" },
1504
- { internalType: "uint64", name: "validAt", type: "uint64" }
1505
- ],
1506
- stateMutability: "view",
1507
- type: "function"
1508
- },
1509
- {
1510
- inputs: [],
1511
- name: "pendingGuardian",
1512
- outputs: [
1513
- { internalType: "address", name: "value", type: "address" },
1514
- { internalType: "uint64", name: "validAt", type: "uint64" }
1515
- ],
1516
- stateMutability: "view",
1517
- type: "function"
1518
- },
1519
- {
1520
- inputs: [],
1521
- name: "pendingOwner",
1522
- outputs: [{ internalType: "address", name: "", type: "address" }],
1523
- stateMutability: "view",
1524
- type: "function"
1525
- },
1526
- {
1527
- inputs: [],
1528
- name: "pendingTimelock",
1529
- outputs: [
1530
- { internalType: "uint192", name: "value", type: "uint192" },
1531
- { internalType: "uint64", name: "validAt", type: "uint64" }
1532
- ],
1533
- stateMutability: "view",
1534
- type: "function"
1535
- },
1536
- {
1537
- inputs: [
1538
- { internalType: "address", name: "owner", type: "address" },
1539
- { internalType: "address", name: "spender", type: "address" },
1540
- { internalType: "uint256", name: "value", type: "uint256" },
1541
- { internalType: "uint256", name: "deadline", type: "uint256" },
1542
- { internalType: "uint8", name: "v", type: "uint8" },
1543
- { internalType: "bytes32", name: "r", type: "bytes32" },
1544
- { internalType: "bytes32", name: "s", type: "bytes32" }
1545
- ],
1546
- name: "permit",
1547
- outputs: [],
1548
- stateMutability: "nonpayable",
1549
- type: "function"
1550
- },
1551
- {
1552
- inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1553
- name: "previewDeposit",
1554
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1555
- stateMutability: "view",
1556
- type: "function"
1557
- },
1558
- {
1559
- inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
1560
- name: "previewMint",
1561
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1562
- stateMutability: "view",
1563
- type: "function"
1564
- },
1565
- {
1566
- inputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
1567
- name: "previewRedeem",
1568
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1569
- stateMutability: "view",
1570
- type: "function"
1571
- },
1572
- {
1573
- inputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1574
- name: "previewWithdraw",
1575
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1576
- stateMutability: "view",
1577
- type: "function"
1578
- },
1579
- {
1580
- inputs: [
1581
- {
1582
- components: [
1583
- {
1584
- components: [
1585
- { internalType: "address", name: "loanToken", type: "address" },
1586
- {
1587
- internalType: "address",
1588
- name: "collateralToken",
1589
- type: "address"
1590
- },
1591
- { internalType: "address", name: "oracle", type: "address" },
1592
- { internalType: "address", name: "irm", type: "address" },
1593
- { internalType: "uint256", name: "lltv", type: "uint256" }
1594
- ],
1595
- internalType: "struct MarketParams",
1596
- name: "marketParams",
1597
- type: "tuple"
1598
- },
1599
- { internalType: "uint256", name: "assets", type: "uint256" }
1600
- ],
1601
- internalType: "struct MarketAllocation[]",
1602
- name: "allocations",
1603
- type: "tuple[]"
1604
- }
1605
- ],
1606
- name: "reallocate",
1607
- outputs: [],
1608
- stateMutability: "nonpayable",
1609
- type: "function"
1610
- },
1611
- {
1612
- inputs: [
1613
- { internalType: "uint256", name: "shares", type: "uint256" },
1614
- { internalType: "address", name: "receiver", type: "address" },
1615
- { internalType: "address", name: "owner", type: "address" }
1616
- ],
1617
- name: "redeem",
1618
- outputs: [{ internalType: "uint256", name: "assets", type: "uint256" }],
1619
- stateMutability: "nonpayable",
1620
- type: "function"
1621
- },
1622
- {
1623
- inputs: [],
1624
- name: "renounceOwnership",
1625
- outputs: [],
1626
- stateMutability: "nonpayable",
1627
- type: "function"
1628
- },
1629
- {
1630
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1631
- name: "revokePendingCap",
1632
- outputs: [],
1633
- stateMutability: "nonpayable",
1634
- type: "function"
1635
- },
1636
- {
1637
- inputs: [],
1638
- name: "revokePendingGuardian",
1639
- outputs: [],
1640
- stateMutability: "nonpayable",
1641
- type: "function"
1642
- },
1643
- {
1644
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1645
- name: "revokePendingMarketRemoval",
1646
- outputs: [],
1647
- stateMutability: "nonpayable",
1648
- type: "function"
1649
- },
1650
- {
1651
- inputs: [],
1652
- name: "revokePendingTimelock",
1653
- outputs: [],
1654
- stateMutability: "nonpayable",
1655
- type: "function"
1656
- },
1657
- {
1658
- inputs: [{ internalType: "address", name: "newCurator", type: "address" }],
1659
- name: "setCurator",
1660
- outputs: [],
1661
- stateMutability: "nonpayable",
1662
- type: "function"
1663
- },
1664
- {
1665
- inputs: [{ internalType: "uint256", name: "newFee", type: "uint256" }],
1666
- name: "setFee",
1667
- outputs: [],
1668
- stateMutability: "nonpayable",
1669
- type: "function"
1670
- },
1671
- {
1672
- inputs: [
1673
- { internalType: "address", name: "newFeeRecipient", type: "address" }
1674
- ],
1675
- name: "setFeeRecipient",
1676
- outputs: [],
1677
- stateMutability: "nonpayable",
1678
- type: "function"
1679
- },
1680
- {
1681
- inputs: [
1682
- { internalType: "address", name: "newAllocator", type: "address" },
1683
- { internalType: "bool", name: "newIsAllocator", type: "bool" }
1684
- ],
1685
- name: "setIsAllocator",
1686
- outputs: [],
1687
- stateMutability: "nonpayable",
1688
- type: "function"
1689
- },
1690
- {
1691
- inputs: [{ internalType: "string", name: "newName", type: "string" }],
1692
- name: "setName",
1693
- outputs: [],
1694
- stateMutability: "nonpayable",
1695
- type: "function"
1696
- },
1697
- {
1698
- inputs: [
1699
- { internalType: "address", name: "newSkimRecipient", type: "address" }
1700
- ],
1701
- name: "setSkimRecipient",
1702
- outputs: [],
1703
- stateMutability: "nonpayable",
1704
- type: "function"
1705
- },
1706
- {
1707
- inputs: [
1708
- { internalType: "Id[]", name: "newSupplyQueue", type: "bytes32[]" }
1709
- ],
1710
- name: "setSupplyQueue",
1711
- outputs: [],
1712
- stateMutability: "nonpayable",
1713
- type: "function"
1714
- },
1715
- {
1716
- inputs: [{ internalType: "string", name: "newSymbol", type: "string" }],
1717
- name: "setSymbol",
1718
- outputs: [],
1719
- stateMutability: "nonpayable",
1720
- type: "function"
1721
- },
1722
- {
1723
- inputs: [{ internalType: "address", name: "token", type: "address" }],
1724
- name: "skim",
1725
- outputs: [],
1726
- stateMutability: "nonpayable",
1727
- type: "function"
1728
- },
1729
- {
1730
- inputs: [],
1731
- name: "skimRecipient",
1732
- outputs: [{ internalType: "address", name: "", type: "address" }],
1733
- stateMutability: "view",
1734
- type: "function"
1735
- },
1736
- {
1737
- inputs: [
1738
- {
1739
- components: [
1740
- { internalType: "address", name: "loanToken", type: "address" },
1741
- { internalType: "address", name: "collateralToken", type: "address" },
1742
- { internalType: "address", name: "oracle", type: "address" },
1743
- { internalType: "address", name: "irm", type: "address" },
1744
- { internalType: "uint256", name: "lltv", type: "uint256" }
1745
- ],
1746
- internalType: "struct MarketParams",
1747
- name: "marketParams",
1748
- type: "tuple"
1749
- },
1750
- { internalType: "uint256", name: "newSupplyCap", type: "uint256" }
1751
- ],
1752
- name: "submitCap",
1753
- outputs: [],
1754
- stateMutability: "nonpayable",
1755
- type: "function"
1756
- },
1757
- {
1758
- inputs: [{ internalType: "address", name: "newGuardian", type: "address" }],
1759
- name: "submitGuardian",
1760
- outputs: [],
1761
- stateMutability: "nonpayable",
1762
- type: "function"
1763
- },
1764
- {
1765
- inputs: [
1766
- {
1767
- components: [
1768
- { internalType: "address", name: "loanToken", type: "address" },
1769
- { internalType: "address", name: "collateralToken", type: "address" },
1770
- { internalType: "address", name: "oracle", type: "address" },
1771
- { internalType: "address", name: "irm", type: "address" },
1772
- { internalType: "uint256", name: "lltv", type: "uint256" }
1773
- ],
1774
- internalType: "struct MarketParams",
1775
- name: "marketParams",
1776
- type: "tuple"
1777
- }
1778
- ],
1779
- name: "submitMarketRemoval",
1780
- outputs: [],
1781
- stateMutability: "nonpayable",
1782
- type: "function"
1783
- },
1784
- {
1785
- inputs: [{ internalType: "uint256", name: "newTimelock", type: "uint256" }],
1786
- name: "submitTimelock",
1787
- outputs: [],
1788
- stateMutability: "nonpayable",
1789
- type: "function"
1790
- },
1791
- {
1792
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1793
- name: "supplyQueue",
1794
- outputs: [{ internalType: "Id", name: "", type: "bytes32" }],
1795
- stateMutability: "view",
1796
- type: "function"
1797
- },
1798
- {
1799
- inputs: [],
1800
- name: "supplyQueueLength",
1801
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1802
- stateMutability: "view",
1803
- type: "function"
1804
- },
1805
- {
1806
- inputs: [],
1807
- name: "symbol",
1808
- outputs: [{ internalType: "string", name: "", type: "string" }],
1809
- stateMutability: "view",
1810
- type: "function"
1811
- },
1812
- {
1813
- inputs: [],
1814
- name: "timelock",
1815
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1816
- stateMutability: "view",
1817
- type: "function"
1818
- },
1819
- {
1820
- inputs: [],
1821
- name: "totalAssets",
1822
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1823
- stateMutability: "view",
1824
- type: "function"
1825
- },
1826
- {
1827
- inputs: [],
1828
- name: "totalSupply",
1829
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1830
- stateMutability: "view",
1831
- type: "function"
1832
- },
1833
- {
1834
- inputs: [
1835
- { internalType: "address", name: "to", type: "address" },
1836
- { internalType: "uint256", name: "value", type: "uint256" }
1837
- ],
1838
- name: "transfer",
1839
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
1840
- stateMutability: "nonpayable",
1841
- type: "function"
1842
- },
1843
- {
1844
- inputs: [
1845
- { internalType: "address", name: "from", type: "address" },
1846
- { internalType: "address", name: "to", type: "address" },
1847
- { internalType: "uint256", name: "value", type: "uint256" }
1848
- ],
1849
- name: "transferFrom",
1850
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
1851
- stateMutability: "nonpayable",
1852
- type: "function"
1853
- },
1854
- {
1855
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
1856
- name: "transferOwnership",
1857
- outputs: [],
1858
- stateMutability: "nonpayable",
1859
- type: "function"
1860
- },
1861
- {
1862
- inputs: [{ internalType: "uint256[]", name: "indexes", type: "uint256[]" }],
1863
- name: "updateWithdrawQueue",
1864
- outputs: [],
1865
- stateMutability: "nonpayable",
1866
- type: "function"
1867
- },
1868
- {
1869
- inputs: [
1870
- { internalType: "uint256", name: "assets", type: "uint256" },
1871
- { internalType: "address", name: "receiver", type: "address" },
1872
- { internalType: "address", name: "owner", type: "address" }
1873
- ],
1874
- name: "withdraw",
1875
- outputs: [{ internalType: "uint256", name: "shares", type: "uint256" }],
1876
- stateMutability: "nonpayable",
1877
- type: "function"
1878
- },
1879
- {
1880
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1881
- name: "withdrawQueue",
1882
- outputs: [{ internalType: "Id", name: "", type: "bytes32" }],
1883
- stateMutability: "view",
1884
- type: "function"
1885
- },
1886
- {
1887
- inputs: [],
1888
- name: "withdrawQueueLength",
1889
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1890
- stateMutability: "view",
1891
- type: "function"
1892
- }
1893
- ];
1894
-
1895
- // src/abi/bend/publicAllocator.ts
1896
- var publicAllocatorAbi = [
1897
- {
1898
- inputs: [{ internalType: "address", name: "morpho", type: "address" }],
1899
- stateMutability: "nonpayable",
1900
- type: "constructor"
1901
- },
1902
- { inputs: [], name: "AlreadySet", type: "error" },
1903
- { inputs: [], name: "DepositMarketInWithdrawals", type: "error" },
1904
- { inputs: [], name: "EmptyWithdrawals", type: "error" },
1905
- { inputs: [], name: "InconsistentWithdrawals", type: "error" },
1906
- { inputs: [], name: "IncorrectFee", type: "error" },
1907
- {
1908
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1909
- name: "MarketNotEnabled",
1910
- type: "error"
1911
- },
1912
- {
1913
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1914
- name: "MaxInflowExceeded",
1915
- type: "error"
1916
- },
1917
- {
1918
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1919
- name: "MaxOutflowExceeded",
1920
- type: "error"
1921
- },
1922
- { inputs: [], name: "MaxSettableFlowCapExceeded", type: "error" },
1923
- { inputs: [], name: "NotAdminNorVaultOwner", type: "error" },
1924
- {
1925
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1926
- name: "NotEnoughSupply",
1927
- type: "error"
1928
- },
1929
- {
1930
- inputs: [{ internalType: "Id", name: "id", type: "bytes32" }],
1931
- name: "WithdrawZero",
1932
- type: "error"
1933
- },
1934
- {
1935
- anonymous: false,
1936
- inputs: [
1937
- {
1938
- indexed: true,
1939
- internalType: "address",
1940
- name: "sender",
1941
- type: "address"
1942
- },
1943
- {
1944
- indexed: true,
1945
- internalType: "address",
1946
- name: "vault",
1947
- type: "address"
1948
- },
1949
- {
1950
- indexed: true,
1951
- internalType: "Id",
1952
- name: "supplyMarketId",
1953
- type: "bytes32"
1954
- },
1955
- {
1956
- indexed: false,
1957
- internalType: "uint256",
1958
- name: "suppliedAssets",
1959
- type: "uint256"
1960
- }
1961
- ],
1962
- name: "PublicReallocateTo",
1963
- type: "event"
1964
- },
1965
- {
1966
- anonymous: false,
1967
- inputs: [
1968
- {
1969
- indexed: true,
1970
- internalType: "address",
1971
- name: "sender",
1972
- type: "address"
1973
- },
1974
- {
1975
- indexed: true,
1976
- internalType: "address",
1977
- name: "vault",
1978
- type: "address"
1979
- },
1980
- { indexed: true, internalType: "Id", name: "id", type: "bytes32" },
1981
- {
1982
- indexed: false,
1983
- internalType: "uint256",
1984
- name: "withdrawnAssets",
1985
- type: "uint256"
1986
- }
1987
- ],
1988
- name: "PublicWithdrawal",
1989
- type: "event"
1990
- },
1991
- {
1992
- anonymous: false,
1993
- inputs: [
1994
- {
1995
- indexed: true,
1996
- internalType: "address",
1997
- name: "sender",
1998
- type: "address"
1999
- },
2000
- {
2001
- indexed: true,
2002
- internalType: "address",
2003
- name: "vault",
2004
- type: "address"
2005
- },
2006
- {
2007
- indexed: false,
2008
- internalType: "address",
2009
- name: "admin",
2010
- type: "address"
2011
- }
2012
- ],
2013
- name: "SetAdmin",
2014
- type: "event"
2015
- },
2016
- {
2017
- anonymous: false,
2018
- inputs: [
2019
- {
2020
- indexed: true,
2021
- internalType: "address",
2022
- name: "sender",
2023
- type: "address"
2024
- },
2025
- {
2026
- indexed: true,
2027
- internalType: "address",
2028
- name: "vault",
2029
- type: "address"
2030
- },
2031
- { indexed: false, internalType: "uint256", name: "fee", type: "uint256" }
2032
- ],
2033
- name: "SetFee",
2034
- type: "event"
2035
- },
2036
- {
2037
- anonymous: false,
2038
- inputs: [
2039
- {
2040
- indexed: true,
2041
- internalType: "address",
2042
- name: "sender",
2043
- type: "address"
2044
- },
2045
- {
2046
- indexed: true,
2047
- internalType: "address",
2048
- name: "vault",
2049
- type: "address"
2050
- },
2051
- {
2052
- components: [
2053
- { internalType: "Id", name: "id", type: "bytes32" },
2054
- {
2055
- components: [
2056
- { internalType: "uint128", name: "maxIn", type: "uint128" },
2057
- { internalType: "uint128", name: "maxOut", type: "uint128" }
2058
- ],
2059
- internalType: "struct FlowCaps",
2060
- name: "caps",
2061
- type: "tuple"
2062
- }
2063
- ],
2064
- indexed: false,
2065
- internalType: "struct FlowCapsConfig[]",
2066
- name: "config",
2067
- type: "tuple[]"
2068
- }
2069
- ],
2070
- name: "SetFlowCaps",
2071
- type: "event"
2072
- },
2073
- {
2074
- anonymous: false,
2075
- inputs: [
2076
- {
2077
- indexed: true,
2078
- internalType: "address",
2079
- name: "sender",
2080
- type: "address"
2081
- },
2082
- {
2083
- indexed: true,
2084
- internalType: "address",
2085
- name: "vault",
2086
- type: "address"
2087
- },
2088
- {
2089
- indexed: false,
2090
- internalType: "uint256",
2091
- name: "amount",
2092
- type: "uint256"
2093
- },
2094
- {
2095
- indexed: true,
2096
- internalType: "address",
2097
- name: "feeRecipient",
2098
- type: "address"
2099
- }
2100
- ],
2101
- name: "TransferFee",
2102
- type: "event"
2103
- },
2104
- {
2105
- inputs: [],
2106
- name: "MORPHO",
2107
- outputs: [{ internalType: "contract IMorpho", name: "", type: "address" }],
2108
- stateMutability: "view",
2109
- type: "function"
2110
- },
2111
- {
2112
- inputs: [{ internalType: "address", name: "", type: "address" }],
2113
- name: "accruedFee",
2114
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2115
- stateMutability: "view",
2116
- type: "function"
2117
- },
2118
- {
2119
- inputs: [{ internalType: "address", name: "", type: "address" }],
2120
- name: "admin",
2121
- outputs: [{ internalType: "address", name: "", type: "address" }],
2122
- stateMutability: "view",
2123
- type: "function"
2124
- },
2125
- {
2126
- inputs: [{ internalType: "address", name: "", type: "address" }],
2127
- name: "fee",
2128
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2129
- stateMutability: "view",
2130
- type: "function"
2131
- },
2132
- {
2133
- inputs: [
2134
- { internalType: "address", name: "", type: "address" },
2135
- { internalType: "Id", name: "", type: "bytes32" }
2136
- ],
2137
- name: "flowCaps",
2138
- outputs: [
2139
- { internalType: "uint128", name: "maxIn", type: "uint128" },
2140
- { internalType: "uint128", name: "maxOut", type: "uint128" }
2141
- ],
2142
- stateMutability: "view",
2143
- type: "function"
2144
- },
2145
- {
2146
- inputs: [
2147
- { internalType: "address", name: "vault", type: "address" },
2148
- {
2149
- components: [
2150
- {
2151
- components: [
2152
- { internalType: "address", name: "loanToken", type: "address" },
2153
- {
2154
- internalType: "address",
2155
- name: "collateralToken",
2156
- type: "address"
2157
- },
2158
- { internalType: "address", name: "oracle", type: "address" },
2159
- { internalType: "address", name: "irm", type: "address" },
2160
- { internalType: "uint256", name: "lltv", type: "uint256" }
2161
- ],
2162
- internalType: "struct MarketParams",
2163
- name: "marketParams",
2164
- type: "tuple"
2165
- },
2166
- { internalType: "uint128", name: "amount", type: "uint128" }
2167
- ],
2168
- internalType: "struct Withdrawal[]",
2169
- name: "withdrawals",
2170
- type: "tuple[]"
2171
- },
2172
- {
2173
- components: [
2174
- { internalType: "address", name: "loanToken", type: "address" },
2175
- { internalType: "address", name: "collateralToken", type: "address" },
2176
- { internalType: "address", name: "oracle", type: "address" },
2177
- { internalType: "address", name: "irm", type: "address" },
2178
- { internalType: "uint256", name: "lltv", type: "uint256" }
2179
- ],
2180
- internalType: "struct MarketParams",
2181
- name: "supplyMarketParams",
2182
- type: "tuple"
2183
- }
2184
- ],
2185
- name: "reallocateTo",
2186
- outputs: [],
2187
- stateMutability: "payable",
2188
- type: "function"
2189
- },
2190
- {
2191
- inputs: [
2192
- { internalType: "address", name: "vault", type: "address" },
2193
- { internalType: "address", name: "newAdmin", type: "address" }
2194
- ],
2195
- name: "setAdmin",
2196
- outputs: [],
2197
- stateMutability: "nonpayable",
2198
- type: "function"
2199
- },
2200
- {
2201
- inputs: [
2202
- { internalType: "address", name: "vault", type: "address" },
2203
- { internalType: "uint256", name: "newFee", type: "uint256" }
2204
- ],
2205
- name: "setFee",
2206
- outputs: [],
2207
- stateMutability: "nonpayable",
2208
- type: "function"
2209
- },
2210
- {
2211
- inputs: [
2212
- { internalType: "address", name: "vault", type: "address" },
2213
- {
2214
- components: [
2215
- { internalType: "Id", name: "id", type: "bytes32" },
2216
- {
2217
- components: [
2218
- { internalType: "uint128", name: "maxIn", type: "uint128" },
2219
- { internalType: "uint128", name: "maxOut", type: "uint128" }
2220
- ],
2221
- internalType: "struct FlowCaps",
2222
- name: "caps",
2223
- type: "tuple"
2224
- }
2225
- ],
2226
- internalType: "struct FlowCapsConfig[]",
2227
- name: "config",
2228
- type: "tuple[]"
2229
- }
2230
- ],
2231
- name: "setFlowCaps",
2232
- outputs: [],
2233
- stateMutability: "nonpayable",
2234
- type: "function"
2235
- },
2236
- {
2237
- inputs: [
2238
- { internalType: "address", name: "vault", type: "address" },
2239
- {
2240
- internalType: "address payable",
2241
- name: "feeRecipient",
2242
- type: "address"
2243
- }
2244
- ],
2245
- name: "transferFee",
2246
- outputs: [],
2247
- stateMutability: "nonpayable",
2248
- type: "function"
2249
- }
2250
- ];
2251
-
2252
- // src/abi/enso/ensoRouterAbi.ts
2253
- var ensoRouterAbi = [
2254
- { inputs: [], stateMutability: "nonpayable", type: "constructor" },
2255
- {
2256
- inputs: [
2257
- {
2258
- components: [
2259
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2260
- { internalType: "bytes", name: "data", type: "bytes" }
2261
- ],
2262
- internalType: "struct Token",
2263
- name: "token",
2264
- type: "tuple"
2265
- },
2266
- { internalType: "uint256", name: "amount", type: "uint256" },
2267
- { internalType: "uint256", name: "minAmount", type: "uint256" }
2268
- ],
2269
- name: "AmountTooLow",
2270
- type: "error"
2271
- },
2272
- { inputs: [], name: "DuplicateNativeAsset", type: "error" },
2273
- {
2274
- inputs: [{ internalType: "address", name: "token", type: "address" }],
2275
- name: "SafeERC20FailedOperation",
2276
- type: "error"
2277
- },
2278
- {
2279
- inputs: [
2280
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" }
2281
- ],
2282
- name: "UnsupportedTokenType",
2283
- type: "error"
2284
- },
2285
- {
2286
- inputs: [
2287
- { internalType: "uint256", name: "value", type: "uint256" },
2288
- { internalType: "uint256", name: "expectedAmount", type: "uint256" }
2289
- ],
2290
- name: "WrongMsgValue",
2291
- type: "error"
2292
- },
2293
- {
2294
- inputs: [
2295
- {
2296
- components: [
2297
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2298
- { internalType: "bytes", name: "data", type: "bytes" }
2299
- ],
2300
- internalType: "struct Token[]",
2301
- name: "tokensIn",
2302
- type: "tuple[]"
2303
- },
2304
- { internalType: "bytes", name: "data", type: "bytes" }
2305
- ],
2306
- name: "routeMulti",
2307
- outputs: [{ internalType: "bytes", name: "response", type: "bytes" }],
2308
- stateMutability: "payable",
2309
- type: "function"
2310
- },
2311
- {
2312
- inputs: [
2313
- {
2314
- components: [
2315
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2316
- { internalType: "bytes", name: "data", type: "bytes" }
2317
- ],
2318
- internalType: "struct Token",
2319
- name: "tokenIn",
2320
- type: "tuple"
2321
- },
2322
- { internalType: "bytes", name: "data", type: "bytes" }
2323
- ],
2324
- name: "routeSingle",
2325
- outputs: [{ internalType: "bytes", name: "response", type: "bytes" }],
2326
- stateMutability: "payable",
2327
- type: "function"
2328
- },
2329
- {
2330
- inputs: [
2331
- {
2332
- components: [
2333
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2334
- { internalType: "bytes", name: "data", type: "bytes" }
2335
- ],
2336
- internalType: "struct Token[]",
2337
- name: "tokensIn",
2338
- type: "tuple[]"
2339
- },
2340
- {
2341
- components: [
2342
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2343
- { internalType: "bytes", name: "data", type: "bytes" }
2344
- ],
2345
- internalType: "struct Token[]",
2346
- name: "tokensOut",
2347
- type: "tuple[]"
2348
- },
2349
- { internalType: "address", name: "receiver", type: "address" },
2350
- { internalType: "bytes", name: "data", type: "bytes" }
2351
- ],
2352
- name: "safeRouteMulti",
2353
- outputs: [{ internalType: "bytes", name: "response", type: "bytes" }],
2354
- stateMutability: "payable",
2355
- type: "function"
2356
- },
2357
- {
2358
- inputs: [
2359
- {
2360
- components: [
2361
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2362
- { internalType: "bytes", name: "data", type: "bytes" }
2363
- ],
2364
- internalType: "struct Token",
2365
- name: "tokenIn",
2366
- type: "tuple"
2367
- },
2368
- {
2369
- components: [
2370
- { internalType: "enum TokenType", name: "tokenType", type: "uint8" },
2371
- { internalType: "bytes", name: "data", type: "bytes" }
2372
- ],
2373
- internalType: "struct Token",
2374
- name: "tokenOut",
2375
- type: "tuple"
2376
- },
2377
- { internalType: "address", name: "receiver", type: "address" },
2378
- { internalType: "bytes", name: "data", type: "bytes" }
2379
- ],
2380
- name: "safeRouteSingle",
2381
- outputs: [{ internalType: "bytes", name: "response", type: "bytes" }],
2382
- stateMutability: "payable",
2383
- type: "function"
2384
- },
2385
- {
2386
- inputs: [],
2387
- name: "shortcuts",
2388
- outputs: [{ internalType: "address", name: "", type: "address" }],
2389
- stateMutability: "view",
2390
- type: "function"
2391
- }
2392
- ];
2393
-
2394
- // src/abi/pyth/pythErrors.ts
2395
- var pythErrorsAbi = [
2396
- {
2397
- type: "error",
2398
- name: "InsufficientFee",
2399
- inputs: []
2400
- },
2401
- {
2402
- type: "error",
2403
- name: "InvalidArgument",
2404
- inputs: []
2405
- },
2406
- {
2407
- type: "error",
2408
- name: "InvalidGovernanceDataSource",
2409
- inputs: []
2410
- },
2411
- {
2412
- type: "error",
2413
- name: "InvalidGovernanceMessage",
2414
- inputs: []
2415
- },
2416
- {
2417
- type: "error",
2418
- name: "InvalidGovernanceTarget",
2419
- inputs: []
2420
- },
2421
- {
2422
- type: "error",
2423
- name: "InvalidUpdateData",
2424
- inputs: []
2425
- },
2426
- {
2427
- type: "error",
2428
- name: "InvalidUpdateDataSource",
2429
- inputs: []
2430
- },
2431
- {
2432
- type: "error",
2433
- name: "InvalidWormholeAddressToSet",
2434
- inputs: []
2435
- },
2436
- {
2437
- type: "error",
2438
- name: "InvalidWormholeVaa",
2439
- inputs: []
2440
- },
2441
- {
2442
- type: "error",
2443
- name: "NoFreshUpdate",
2444
- inputs: []
2445
- },
2446
- {
2447
- type: "error",
2448
- name: "OldGovernanceMessage",
2449
- inputs: []
2450
- },
2451
- {
2452
- type: "error",
2453
- name: "PriceFeedNotFound",
2454
- inputs: []
2455
- },
2456
- {
2457
- type: "error",
2458
- name: "PriceFeedNotFoundWithinRange",
2459
- inputs: []
2460
- },
2461
- {
2462
- type: "error",
2463
- name: "StalePrice",
2464
- inputs: []
2465
- }
2466
- ];
2467
-
2468
- // src/abi/utils/EIP7702StatelessDelegator.ts
2469
- var EIP7702StatelessDelegatorAbi = [
2470
- {
2471
- inputs: [
2472
- {
2473
- internalType: "contract IDelegationManager",
2474
- name: "_delegationManager",
2475
- type: "address"
2476
- },
2477
- {
2478
- internalType: "contract IEntryPoint",
2479
- name: "_entryPoint",
2480
- type: "address"
2481
- }
2482
- ],
2483
- stateMutability: "nonpayable",
2484
- type: "constructor"
2485
- },
2486
- { inputs: [], name: "ECDSAInvalidSignature", type: "error" },
2487
- {
2488
- inputs: [{ internalType: "uint256", name: "length", type: "uint256" }],
2489
- name: "ECDSAInvalidSignatureLength",
2490
- type: "error"
2491
- },
2492
- {
2493
- inputs: [{ internalType: "bytes32", name: "s", type: "bytes32" }],
2494
- name: "ECDSAInvalidSignatureS",
2495
- type: "error"
2496
- },
2497
- { inputs: [], name: "ExecutionFailed", type: "error" },
2498
- { inputs: [], name: "InvalidEIP712NameLength", type: "error" },
2499
- { inputs: [], name: "InvalidEIP712VersionLength", type: "error" },
2500
- { inputs: [], name: "InvalidShortString", type: "error" },
2501
- { inputs: [], name: "NotDelegationManager", type: "error" },
2502
- { inputs: [], name: "NotEntryPoint", type: "error" },
2503
- { inputs: [], name: "NotEntryPointOrSelf", type: "error" },
2504
- { inputs: [], name: "NotSelf", type: "error" },
2505
- {
2506
- inputs: [{ internalType: "string", name: "str", type: "string" }],
2507
- name: "StringTooLong",
2508
- type: "error"
2509
- },
2510
- { inputs: [], name: "UnauthorizedCallContext", type: "error" },
2511
- {
2512
- inputs: [{ internalType: "CallType", name: "callType", type: "bytes1" }],
2513
- name: "UnsupportedCallType",
2514
- type: "error"
2515
- },
2516
- {
2517
- inputs: [{ internalType: "ExecType", name: "execType", type: "bytes1" }],
2518
- name: "UnsupportedExecType",
2519
- type: "error"
2520
- },
2521
- { anonymous: false, inputs: [], name: "EIP712DomainChanged", type: "event" },
2522
- {
2523
- anonymous: false,
2524
- inputs: [
2525
- {
2526
- indexed: true,
2527
- internalType: "address",
2528
- name: "sender",
2529
- type: "address"
2530
- },
2531
- {
2532
- indexed: false,
2533
- internalType: "uint256",
2534
- name: "amount",
2535
- type: "uint256"
2536
- },
2537
- { indexed: false, internalType: "bool", name: "success", type: "bool" }
2538
- ],
2539
- name: "SentPrefund",
2540
- type: "event"
2541
- },
2542
- {
2543
- anonymous: false,
2544
- inputs: [
2545
- {
2546
- indexed: true,
2547
- internalType: "contract IDelegationManager",
2548
- name: "newDelegationManager",
2549
- type: "address"
2550
- }
2551
- ],
2552
- name: "SetDelegationManager",
2553
- type: "event"
2554
- },
2555
- {
2556
- anonymous: false,
2557
- inputs: [
2558
- {
2559
- indexed: true,
2560
- internalType: "contract IEntryPoint",
2561
- name: "entryPoint",
2562
- type: "address"
2563
- }
2564
- ],
2565
- name: "SetEntryPoint",
2566
- type: "event"
2567
- },
2568
- {
2569
- anonymous: false,
2570
- inputs: [
2571
- {
2572
- indexed: false,
2573
- internalType: "uint256",
2574
- name: "batchExecutionindex",
2575
- type: "uint256"
2576
- },
2577
- { indexed: false, internalType: "bytes", name: "result", type: "bytes" }
2578
- ],
2579
- name: "TryExecuteUnsuccessful",
2580
- type: "event"
2581
- },
2582
- {
2583
- inputs: [],
2584
- name: "DOMAIN_VERSION",
2585
- outputs: [{ internalType: "string", name: "", type: "string" }],
2586
- stateMutability: "view",
2587
- type: "function"
2588
- },
2589
- {
2590
- inputs: [],
2591
- name: "NAME",
2592
- outputs: [{ internalType: "string", name: "", type: "string" }],
2593
- stateMutability: "view",
2594
- type: "function"
2595
- },
2596
- {
2597
- inputs: [],
2598
- name: "PACKED_USER_OP_TYPEHASH",
2599
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2600
- stateMutability: "view",
2601
- type: "function"
2602
- },
2603
- {
2604
- inputs: [],
2605
- name: "VERSION",
2606
- outputs: [{ internalType: "string", name: "", type: "string" }],
2607
- stateMutability: "view",
2608
- type: "function"
2609
- },
2610
- {
2611
- inputs: [],
2612
- name: "addDeposit",
2613
- outputs: [],
2614
- stateMutability: "payable",
2615
- type: "function"
2616
- },
2617
- {
2618
- inputs: [],
2619
- name: "delegationManager",
2620
- outputs: [
2621
- {
2622
- internalType: "contract IDelegationManager",
2623
- name: "",
2624
- type: "address"
2625
- }
2626
- ],
2627
- stateMutability: "view",
2628
- type: "function"
2629
- },
2630
- {
2631
- inputs: [
2632
- {
2633
- components: [
2634
- { internalType: "address", name: "delegate", type: "address" },
2635
- { internalType: "address", name: "delegator", type: "address" },
2636
- { internalType: "bytes32", name: "authority", type: "bytes32" },
2637
- {
2638
- components: [
2639
- { internalType: "address", name: "enforcer", type: "address" },
2640
- { internalType: "bytes", name: "terms", type: "bytes" },
2641
- { internalType: "bytes", name: "args", type: "bytes" }
2642
- ],
2643
- internalType: "struct Caveat[]",
2644
- name: "caveats",
2645
- type: "tuple[]"
2646
- },
2647
- { internalType: "uint256", name: "salt", type: "uint256" },
2648
- { internalType: "bytes", name: "signature", type: "bytes" }
2649
- ],
2650
- internalType: "struct Delegation",
2651
- name: "_delegation",
2652
- type: "tuple"
2653
- }
2654
- ],
2655
- name: "disableDelegation",
2656
- outputs: [],
2657
- stateMutability: "nonpayable",
2658
- type: "function"
2659
- },
2660
- {
2661
- inputs: [],
2662
- name: "eip712Domain",
2663
- outputs: [
2664
- { internalType: "bytes1", name: "fields", type: "bytes1" },
2665
- { internalType: "string", name: "name", type: "string" },
2666
- { internalType: "string", name: "version", type: "string" },
2667
- { internalType: "uint256", name: "chainId", type: "uint256" },
2668
- { internalType: "address", name: "verifyingContract", type: "address" },
2669
- { internalType: "bytes32", name: "salt", type: "bytes32" },
2670
- { internalType: "uint256[]", name: "extensions", type: "uint256[]" }
2671
- ],
2672
- stateMutability: "view",
2673
- type: "function"
2674
- },
2675
- {
2676
- inputs: [
2677
- {
2678
- components: [
2679
- { internalType: "address", name: "delegate", type: "address" },
2680
- { internalType: "address", name: "delegator", type: "address" },
2681
- { internalType: "bytes32", name: "authority", type: "bytes32" },
2682
- {
2683
- components: [
2684
- { internalType: "address", name: "enforcer", type: "address" },
2685
- { internalType: "bytes", name: "terms", type: "bytes" },
2686
- { internalType: "bytes", name: "args", type: "bytes" }
2687
- ],
2688
- internalType: "struct Caveat[]",
2689
- name: "caveats",
2690
- type: "tuple[]"
2691
- },
2692
- { internalType: "uint256", name: "salt", type: "uint256" },
2693
- { internalType: "bytes", name: "signature", type: "bytes" }
2694
- ],
2695
- internalType: "struct Delegation",
2696
- name: "_delegation",
2697
- type: "tuple"
2698
- }
2699
- ],
2700
- name: "enableDelegation",
2701
- outputs: [],
2702
- stateMutability: "nonpayable",
2703
- type: "function"
2704
- },
2705
- {
2706
- inputs: [],
2707
- name: "entryPoint",
2708
- outputs: [
2709
- { internalType: "contract IEntryPoint", name: "", type: "address" }
2710
- ],
2711
- stateMutability: "view",
2712
- type: "function"
2713
- },
2714
- {
2715
- inputs: [
2716
- {
2717
- components: [
2718
- { internalType: "address", name: "target", type: "address" },
2719
- { internalType: "uint256", name: "value", type: "uint256" },
2720
- { internalType: "bytes", name: "callData", type: "bytes" }
2721
- ],
2722
- internalType: "struct Execution",
2723
- name: "_execution",
2724
- type: "tuple"
2725
- }
2726
- ],
2727
- name: "execute",
2728
- outputs: [],
2729
- stateMutability: "payable",
2730
- type: "function"
2731
- },
2732
- {
2733
- inputs: [
2734
- { internalType: "ModeCode", name: "_mode", type: "bytes32" },
2735
- { internalType: "bytes", name: "_executionCalldata", type: "bytes" }
2736
- ],
2737
- name: "execute",
2738
- outputs: [],
2739
- stateMutability: "payable",
2740
- type: "function"
2741
- },
2742
- {
2743
- inputs: [
2744
- { internalType: "ModeCode", name: "_mode", type: "bytes32" },
2745
- { internalType: "bytes", name: "_executionCalldata", type: "bytes" }
2746
- ],
2747
- name: "executeFromExecutor",
2748
- outputs: [
2749
- { internalType: "bytes[]", name: "returnData_", type: "bytes[]" }
2750
- ],
2751
- stateMutability: "payable",
2752
- type: "function"
2753
- },
2754
- {
2755
- inputs: [],
2756
- name: "getDeposit",
2757
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2758
- stateMutability: "view",
2759
- type: "function"
2760
- },
2761
- {
2762
- inputs: [],
2763
- name: "getDomainHash",
2764
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2765
- stateMutability: "view",
2766
- type: "function"
2767
- },
2768
- {
2769
- inputs: [{ internalType: "uint192", name: "_key", type: "uint192" }],
2770
- name: "getNonce",
2771
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2772
- stateMutability: "view",
2773
- type: "function"
2774
- },
2775
- {
2776
- inputs: [],
2777
- name: "getNonce",
2778
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
2779
- stateMutability: "view",
2780
- type: "function"
2781
- },
2782
- {
2783
- inputs: [
2784
- {
2785
- components: [
2786
- { internalType: "address", name: "sender", type: "address" },
2787
- { internalType: "uint256", name: "nonce", type: "uint256" },
2788
- { internalType: "bytes", name: "initCode", type: "bytes" },
2789
- { internalType: "bytes", name: "callData", type: "bytes" },
2790
- {
2791
- internalType: "bytes32",
2792
- name: "accountGasLimits",
2793
- type: "bytes32"
2794
- },
2795
- {
2796
- internalType: "uint256",
2797
- name: "preVerificationGas",
2798
- type: "uint256"
2799
- },
2800
- { internalType: "bytes32", name: "gasFees", type: "bytes32" },
2801
- { internalType: "bytes", name: "paymasterAndData", type: "bytes" },
2802
- { internalType: "bytes", name: "signature", type: "bytes" }
2803
- ],
2804
- internalType: "struct PackedUserOperation",
2805
- name: "_userOp",
2806
- type: "tuple"
2807
- }
2808
- ],
2809
- name: "getPackedUserOperationHash",
2810
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2811
- stateMutability: "view",
2812
- type: "function"
2813
- },
2814
- {
2815
- inputs: [
2816
- {
2817
- components: [
2818
- { internalType: "address", name: "sender", type: "address" },
2819
- { internalType: "uint256", name: "nonce", type: "uint256" },
2820
- { internalType: "bytes", name: "initCode", type: "bytes" },
2821
- { internalType: "bytes", name: "callData", type: "bytes" },
2822
- {
2823
- internalType: "bytes32",
2824
- name: "accountGasLimits",
2825
- type: "bytes32"
2826
- },
2827
- {
2828
- internalType: "uint256",
2829
- name: "preVerificationGas",
2830
- type: "uint256"
2831
- },
2832
- { internalType: "bytes32", name: "gasFees", type: "bytes32" },
2833
- { internalType: "bytes", name: "paymasterAndData", type: "bytes" },
2834
- { internalType: "bytes", name: "signature", type: "bytes" }
2835
- ],
2836
- internalType: "struct PackedUserOperation",
2837
- name: "_userOp",
2838
- type: "tuple"
2839
- }
2840
- ],
2841
- name: "getPackedUserOperationTypedDataHash",
2842
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
2843
- stateMutability: "view",
2844
- type: "function"
2845
- },
2846
- {
2847
- inputs: [
2848
- { internalType: "bytes32", name: "_delegationHash", type: "bytes32" }
2849
- ],
2850
- name: "isDelegationDisabled",
2851
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
2852
- stateMutability: "view",
2853
- type: "function"
2854
- },
2855
- {
2856
- inputs: [
2857
- { internalType: "bytes32", name: "_hash", type: "bytes32" },
2858
- { internalType: "bytes", name: "_signature", type: "bytes" }
2859
- ],
2860
- name: "isValidSignature",
2861
- outputs: [{ internalType: "bytes4", name: "magicValue_", type: "bytes4" }],
2862
- stateMutability: "view",
2863
- type: "function"
2864
- },
2865
- {
2866
- inputs: [
2867
- { internalType: "address", name: "", type: "address" },
2868
- { internalType: "address", name: "", type: "address" },
2869
- { internalType: "uint256[]", name: "", type: "uint256[]" },
2870
- { internalType: "uint256[]", name: "", type: "uint256[]" },
2871
- { internalType: "bytes", name: "", type: "bytes" }
2872
- ],
2873
- name: "onERC1155BatchReceived",
2874
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
2875
- stateMutability: "view",
2876
- type: "function"
2877
- },
2878
- {
2879
- inputs: [
2880
- { internalType: "address", name: "", type: "address" },
2881
- { internalType: "address", name: "", type: "address" },
2882
- { internalType: "uint256", name: "", type: "uint256" },
2883
- { internalType: "uint256", name: "", type: "uint256" },
2884
- { internalType: "bytes", name: "", type: "bytes" }
2885
- ],
2886
- name: "onERC1155Received",
2887
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
2888
- stateMutability: "view",
2889
- type: "function"
2890
- },
2891
- {
2892
- inputs: [
2893
- { internalType: "address", name: "", type: "address" },
2894
- { internalType: "address", name: "", type: "address" },
2895
- { internalType: "uint256", name: "", type: "uint256" },
2896
- { internalType: "bytes", name: "", type: "bytes" }
2897
- ],
2898
- name: "onERC721Received",
2899
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
2900
- stateMutability: "view",
2901
- type: "function"
2902
- },
2903
- {
2904
- inputs: [
2905
- { internalType: "bytes[]", name: "_permissionContexts", type: "bytes[]" },
2906
- { internalType: "ModeCode[]", name: "_modes", type: "bytes32[]" },
2907
- { internalType: "bytes[]", name: "_executionCallDatas", type: "bytes[]" }
2908
- ],
2909
- name: "redeemDelegations",
2910
- outputs: [],
2911
- stateMutability: "nonpayable",
2912
- type: "function"
2913
- },
2914
- {
2915
- inputs: [{ internalType: "ModeCode", name: "_mode", type: "bytes32" }],
2916
- name: "supportsExecutionMode",
2917
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
2918
- stateMutability: "view",
2919
- type: "function"
2920
- },
2921
- {
2922
- inputs: [{ internalType: "bytes4", name: "_interfaceId", type: "bytes4" }],
2923
- name: "supportsInterface",
2924
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
2925
- stateMutability: "view",
2926
- type: "function"
2927
- },
2928
- {
2929
- inputs: [
2930
- {
2931
- components: [
2932
- { internalType: "address", name: "sender", type: "address" },
2933
- { internalType: "uint256", name: "nonce", type: "uint256" },
2934
- { internalType: "bytes", name: "initCode", type: "bytes" },
2935
- { internalType: "bytes", name: "callData", type: "bytes" },
2936
- {
2937
- internalType: "bytes32",
2938
- name: "accountGasLimits",
2939
- type: "bytes32"
2940
- },
2941
- {
2942
- internalType: "uint256",
2943
- name: "preVerificationGas",
2944
- type: "uint256"
2945
- },
2946
- { internalType: "bytes32", name: "gasFees", type: "bytes32" },
2947
- { internalType: "bytes", name: "paymasterAndData", type: "bytes" },
2948
- { internalType: "bytes", name: "signature", type: "bytes" }
2949
- ],
2950
- internalType: "struct PackedUserOperation",
2951
- name: "_userOp",
2952
- type: "tuple"
2953
- },
2954
- { internalType: "bytes32", name: "", type: "bytes32" },
2955
- {
2956
- internalType: "uint256",
2957
- name: "_missingAccountFunds",
2958
- type: "uint256"
2959
- }
2960
- ],
2961
- name: "validateUserOp",
2962
- outputs: [
2963
- { internalType: "uint256", name: "validationData_", type: "uint256" }
2964
- ],
2965
- stateMutability: "nonpayable",
2966
- type: "function"
2967
- },
2968
- {
2969
- inputs: [
2970
- {
2971
- internalType: "address payable",
2972
- name: "_withdrawAddress",
2973
- type: "address"
2974
- },
2975
- { internalType: "uint256", name: "_withdrawAmount", type: "uint256" }
2976
- ],
2977
- name: "withdrawDeposit",
2978
- outputs: [],
2979
- stateMutability: "nonpayable",
2980
- type: "function"
2981
- },
2982
- { stateMutability: "payable", type: "receive" }
2983
- ];
2984
-
2985
- // src/abi/utils/merkleDistributor.ts
2986
- var merkleDistributorAbi = [
2987
- {
2988
- type: "function",
2989
- name: "UPGRADE_INTERFACE_VERSION",
2990
- inputs: [],
2991
- outputs: [
2992
- {
2993
- name: "",
2994
- type: "string",
2995
- internalType: "string"
2996
- }
2997
- ],
2998
- stateMutability: "view"
2999
- },
3000
- {
3001
- type: "function",
3002
- name: "acceptOwnership",
3003
- inputs: [],
3004
- outputs: [],
3005
- stateMutability: "nonpayable"
3006
- },
3007
- {
3008
- type: "function",
3009
- name: "claim",
3010
- inputs: [
3011
- {
3012
- name: "claims",
3013
- type: "tuple[]",
3014
- internalType: "struct IDistributor.Claim[]",
3015
- components: [
3016
- {
3017
- name: "identifier",
3018
- type: "bytes32",
3019
- internalType: "bytes32"
3020
- },
3021
- {
3022
- name: "account",
3023
- type: "address",
3024
- internalType: "address"
3025
- },
3026
- {
3027
- name: "amount",
3028
- type: "uint256",
3029
- internalType: "uint256"
3030
- },
3031
- {
3032
- name: "merkleProof",
3033
- type: "bytes32[]",
3034
- internalType: "bytes32[]"
3035
- }
3036
- ]
3037
- }
3038
- ],
3039
- outputs: [],
3040
- stateMutability: "nonpayable"
3041
- },
3042
- {
3043
- type: "function",
3044
- name: "claimOnBehalf",
3045
- inputs: [
3046
- {
3047
- name: "claim_",
3048
- type: "tuple",
3049
- internalType: "struct IDistributor.Claim",
3050
- components: [
3051
- {
3052
- name: "identifier",
3053
- type: "bytes32",
3054
- internalType: "bytes32"
3055
- },
3056
- {
3057
- name: "account",
3058
- type: "address",
3059
- internalType: "address"
3060
- },
3061
- {
3062
- name: "amount",
3063
- type: "uint256",
3064
- internalType: "uint256"
3065
- },
3066
- {
3067
- name: "merkleProof",
3068
- type: "bytes32[]",
3069
- internalType: "bytes32[]"
3070
- }
3071
- ]
3072
- },
3073
- {
3074
- name: "receiver",
3075
- type: "address",
3076
- internalType: "address"
3077
- }
3078
- ],
3079
- outputs: [],
3080
- stateMutability: "nonpayable"
3081
- },
3082
- {
3083
- type: "function",
3084
- name: "claimed",
3085
- inputs: [
3086
- {
3087
- name: "",
3088
- type: "bytes32",
3089
- internalType: "bytes32"
3090
- },
3091
- {
3092
- name: "",
3093
- type: "address",
3094
- internalType: "address"
3095
- }
3096
- ],
3097
- outputs: [
3098
- {
3099
- name: "",
3100
- type: "uint256",
3101
- internalType: "uint256"
3102
- }
3103
- ],
3104
- stateMutability: "view"
3105
- },
3106
- {
3107
- type: "function",
3108
- name: "createDistributions",
3109
- inputs: [
3110
- {
3111
- name: "distributions_",
3112
- type: "tuple[]",
3113
- internalType: "struct IDistributor.Distribution[]",
3114
- components: [
3115
- {
3116
- name: "identifier",
3117
- type: "bytes32",
3118
- internalType: "bytes32"
3119
- },
3120
- {
3121
- name: "token",
3122
- type: "address",
3123
- internalType: "address"
3124
- },
3125
- {
3126
- name: "merkleRoot",
3127
- type: "bytes32",
3128
- internalType: "bytes32"
3129
- },
3130
- {
3131
- name: "allocatedAmount",
3132
- type: "uint256",
3133
- internalType: "uint256"
3134
- },
3135
- {
3136
- name: "paused",
3137
- type: "bool",
3138
- internalType: "bool"
3139
- }
3140
- ]
3141
- }
3142
- ],
3143
- outputs: [],
3144
- stateMutability: "nonpayable"
3145
- },
3146
- {
3147
- type: "function",
3148
- name: "distributions",
3149
- inputs: [
3150
- {
3151
- name: "",
3152
- type: "bytes32",
3153
- internalType: "bytes32"
3154
- }
3155
- ],
3156
- outputs: [
3157
- {
3158
- name: "identifier",
3159
- type: "bytes32",
3160
- internalType: "bytes32"
3161
- },
3162
- {
3163
- name: "token",
3164
- type: "address",
3165
- internalType: "address"
3166
- },
3167
- {
3168
- name: "merkleRoot",
3169
- type: "bytes32",
3170
- internalType: "bytes32"
3171
- },
3172
- {
3173
- name: "allocatedAmount",
3174
- type: "uint256",
3175
- internalType: "uint256"
3176
- },
3177
- {
3178
- name: "paused",
3179
- type: "bool",
3180
- internalType: "bool"
3181
- }
3182
- ],
3183
- stateMutability: "view"
3184
- },
3185
- {
3186
- type: "function",
3187
- name: "initialize",
3188
- inputs: [
3189
- {
3190
- name: "_governance",
3191
- type: "address",
3192
- internalType: "address"
3193
- }
3194
- ],
3195
- outputs: [],
3196
- stateMutability: "nonpayable"
3197
- },
3198
- {
3199
- type: "function",
3200
- name: "owner",
3201
- inputs: [],
3202
- outputs: [
3203
- {
3204
- name: "",
3205
- type: "address",
3206
- internalType: "address"
3207
- }
3208
- ],
3209
- stateMutability: "view"
3210
- },
3211
- {
3212
- type: "function",
3213
- name: "pauseDistribution",
3214
- inputs: [
3215
- {
3216
- name: "identifier",
3217
- type: "bytes32",
3218
- internalType: "bytes32"
3219
- }
3220
- ],
3221
- outputs: [],
3222
- stateMutability: "nonpayable"
3223
- },
3224
- {
3225
- type: "function",
3226
- name: "paused",
3227
- inputs: [],
3228
- outputs: [
3229
- {
3230
- name: "",
3231
- type: "bool",
3232
- internalType: "bool"
3233
- }
3234
- ],
3235
- stateMutability: "view"
3236
- },
3237
- {
3238
- type: "function",
3239
- name: "pendingOwner",
3240
- inputs: [],
3241
- outputs: [
3242
- {
3243
- name: "",
3244
- type: "address",
3245
- internalType: "address"
3246
- }
3247
- ],
3248
- stateMutability: "view"
3249
- },
3250
- {
3251
- type: "function",
3252
- name: "proxiableUUID",
3253
- inputs: [],
3254
- outputs: [
3255
- {
3256
- name: "",
3257
- type: "bytes32",
3258
- internalType: "bytes32"
3259
- }
3260
- ],
3261
- stateMutability: "view"
3262
- },
3263
- {
3264
- type: "function",
3265
- name: "recover",
3266
- inputs: [
3267
- {
3268
- name: "identifier",
3269
- type: "bytes32",
3270
- internalType: "bytes32"
3271
- },
3272
- {
3273
- name: "token",
3274
- type: "address",
3275
- internalType: "address"
3276
- },
3277
- {
3278
- name: "amount",
3279
- type: "uint256",
3280
- internalType: "uint256"
3281
- }
3282
- ],
3283
- outputs: [],
3284
- stateMutability: "nonpayable"
3285
- },
3286
- {
3287
- type: "function",
3288
- name: "renounceOwnership",
3289
- inputs: [],
3290
- outputs: [],
3291
- stateMutability: "nonpayable"
3292
- },
3293
- {
3294
- type: "function",
3295
- name: "togglePause",
3296
- inputs: [],
3297
- outputs: [],
3298
- stateMutability: "nonpayable"
3299
- },
3300
- {
3301
- type: "function",
3302
- name: "transferOwnership",
3303
- inputs: [
3304
- {
3305
- name: "newOwner",
3306
- type: "address",
3307
- internalType: "address"
3308
- }
3309
- ],
3310
- outputs: [],
3311
- stateMutability: "nonpayable"
3312
- },
3313
- {
3314
- type: "function",
3315
- name: "unpauseDistribution",
3316
- inputs: [
3317
- {
3318
- name: "identifier",
3319
- type: "bytes32",
3320
- internalType: "bytes32"
3321
- }
3322
- ],
3323
- outputs: [],
3324
- stateMutability: "nonpayable"
3325
- },
3326
- {
3327
- type: "function",
3328
- name: "updateDistribution",
3329
- inputs: [
3330
- {
3331
- name: "identifier",
3332
- type: "bytes32",
3333
- internalType: "bytes32"
3334
- },
3335
- {
3336
- name: "token",
3337
- type: "address",
3338
- internalType: "address"
3339
- },
3340
- {
3341
- name: "merkleRoot",
3342
- type: "bytes32",
3343
- internalType: "bytes32"
3344
- },
3345
- {
3346
- name: "allocatedAmount",
3347
- type: "uint256",
3348
- internalType: "uint256"
3349
- }
3350
- ],
3351
- outputs: [],
3352
- stateMutability: "nonpayable"
3353
- },
3354
- {
3355
- type: "function",
3356
- name: "upgradeToAndCall",
3357
- inputs: [
3358
- {
3359
- name: "newImplementation",
3360
- type: "address",
3361
- internalType: "address"
3362
- },
3363
- {
3364
- name: "data",
3365
- type: "bytes",
3366
- internalType: "bytes"
3367
- }
3368
- ],
3369
- outputs: [],
3370
- stateMutability: "payable"
3371
- },
3372
- {
3373
- type: "event",
3374
- name: "Claimed",
3375
- inputs: [
3376
- {
3377
- name: "identifier",
3378
- type: "bytes32",
3379
- indexed: false,
3380
- internalType: "bytes32"
3381
- },
3382
- {
3383
- name: "token",
3384
- type: "address",
3385
- indexed: false,
3386
- internalType: "address"
3387
- },
3388
- {
3389
- name: "account",
3390
- type: "address",
3391
- indexed: false,
3392
- internalType: "address"
3393
- },
3394
- {
3395
- name: "amount",
3396
- type: "uint256",
3397
- indexed: false,
3398
- internalType: "uint256"
3399
- }
3400
- ],
3401
- anonymous: false
3402
- },
3403
- {
3404
- type: "event",
3405
- name: "ClaimedOnBehalf",
3406
- inputs: [
3407
- {
3408
- name: "identifier",
3409
- type: "bytes32",
3410
- indexed: false,
3411
- internalType: "bytes32"
3412
- },
3413
- {
3414
- name: "token",
3415
- type: "address",
3416
- indexed: false,
3417
- internalType: "address"
3418
- },
3419
- {
3420
- name: "account",
3421
- type: "address",
3422
- indexed: false,
3423
- internalType: "address"
3424
- },
3425
- {
3426
- name: "amount",
3427
- type: "uint256",
3428
- indexed: false,
3429
- internalType: "uint256"
3430
- },
3431
- {
3432
- name: "receiver",
3433
- type: "address",
3434
- indexed: false,
3435
- internalType: "address"
3436
- }
3437
- ],
3438
- anonymous: false
3439
- },
3440
- {
3441
- type: "event",
3442
- name: "DistributionCreated",
3443
- inputs: [
3444
- {
3445
- name: "identifier",
3446
- type: "bytes32",
3447
- indexed: false,
3448
- internalType: "bytes32"
3449
- },
3450
- {
3451
- name: "token",
3452
- type: "address",
3453
- indexed: false,
3454
- internalType: "address"
3455
- },
3456
- {
3457
- name: "merkleRoot",
3458
- type: "bytes32",
3459
- indexed: false,
3460
- internalType: "bytes32"
3461
- },
3462
- {
3463
- name: "allocatedAmount",
3464
- type: "uint256",
3465
- indexed: false,
3466
- internalType: "uint256"
3467
- }
3468
- ],
3469
- anonymous: false
3470
- },
3471
- {
3472
- type: "event",
3473
- name: "DistributionPaused",
3474
- inputs: [
3475
- {
3476
- name: "identifier",
3477
- type: "bytes32",
3478
- indexed: false,
3479
- internalType: "bytes32"
3480
- }
3481
- ],
3482
- anonymous: false
3483
- },
3484
- {
3485
- type: "event",
3486
- name: "DistributionUnpaused",
3487
- inputs: [
3488
- {
3489
- name: "identifier",
3490
- type: "bytes32",
3491
- indexed: false,
3492
- internalType: "bytes32"
3493
- }
3494
- ],
3495
- anonymous: false
3496
- },
3497
- {
3498
- type: "event",
3499
- name: "DistributionUpdated",
3500
- inputs: [
3501
- {
3502
- name: "identifier",
3503
- type: "bytes32",
3504
- indexed: false,
3505
- internalType: "bytes32"
3506
- },
3507
- {
3508
- name: "token",
3509
- type: "address",
3510
- indexed: false,
3511
- internalType: "address"
3512
- },
3513
- {
3514
- name: "merkleRoot",
3515
- type: "bytes32",
3516
- indexed: false,
3517
- internalType: "bytes32"
3518
- },
3519
- {
3520
- name: "allocatedAmount",
3521
- type: "uint256",
3522
- indexed: false,
3523
- internalType: "uint256"
3524
- }
3525
- ],
3526
- anonymous: false
3527
- },
3528
- {
3529
- type: "event",
3530
- name: "Initialized",
3531
- inputs: [
3532
- {
3533
- name: "version",
3534
- type: "uint64",
3535
- indexed: false,
3536
- internalType: "uint64"
3537
- }
3538
- ],
3539
- anonymous: false
3540
- },
3541
- {
3542
- type: "event",
3543
- name: "OwnershipTransferStarted",
3544
- inputs: [
3545
- {
3546
- name: "previousOwner",
3547
- type: "address",
3548
- indexed: true,
3549
- internalType: "address"
3550
- },
3551
- {
3552
- name: "newOwner",
3553
- type: "address",
3554
- indexed: true,
3555
- internalType: "address"
3556
- }
3557
- ],
3558
- anonymous: false
3559
- },
3560
- {
3561
- type: "event",
3562
- name: "OwnershipTransferred",
3563
- inputs: [
3564
- {
3565
- name: "previousOwner",
3566
- type: "address",
3567
- indexed: true,
3568
- internalType: "address"
3569
- },
3570
- {
3571
- name: "newOwner",
3572
- type: "address",
3573
- indexed: true,
3574
- internalType: "address"
3575
- }
3576
- ],
3577
- anonymous: false
3578
- },
3579
- {
3580
- type: "event",
3581
- name: "Paused",
3582
- inputs: [
3583
- {
3584
- name: "account",
3585
- type: "address",
3586
- indexed: false,
3587
- internalType: "address"
3588
- }
3589
- ],
3590
- anonymous: false
3591
- },
3592
- {
3593
- type: "event",
3594
- name: "Recovered",
3595
- inputs: [
3596
- {
3597
- name: "token",
3598
- type: "address",
3599
- indexed: false,
3600
- internalType: "address"
3601
- },
3602
- {
3603
- name: "account",
3604
- type: "address",
3605
- indexed: false,
3606
- internalType: "address"
3607
- },
3608
- {
3609
- name: "amount",
3610
- type: "uint256",
3611
- indexed: false,
3612
- internalType: "uint256"
3613
- }
3614
- ],
3615
- anonymous: false
3616
- },
3617
- {
3618
- type: "event",
3619
- name: "Unpaused",
3620
- inputs: [
3621
- {
3622
- name: "account",
3623
- type: "address",
3624
- indexed: false,
3625
- internalType: "address"
3626
- }
3627
- ],
3628
- anonymous: false
3629
- },
3630
- {
3631
- type: "event",
3632
- name: "Upgraded",
3633
- inputs: [
3634
- {
3635
- name: "implementation",
3636
- type: "address",
3637
- indexed: true,
3638
- internalType: "address"
3639
- }
3640
- ],
3641
- anonymous: false
3642
- },
3643
- {
3644
- type: "error",
3645
- name: "AddressEmptyCode",
3646
- inputs: [
3647
- {
3648
- name: "target",
3649
- type: "address",
3650
- internalType: "address"
3651
- }
3652
- ]
3653
- },
3654
- {
3655
- type: "error",
3656
- name: "AddressZero",
3657
- inputs: []
3658
- },
3659
- {
3660
- type: "error",
3661
- name: "AlreadyClaimed",
3662
- inputs: []
3663
- },
3664
- {
3665
- type: "error",
3666
- name: "DistributionAlreadyPaused",
3667
- inputs: []
3668
- },
3669
- {
3670
- type: "error",
3671
- name: "DistributionEnforcedPause",
3672
- inputs: []
3673
- },
3674
- {
3675
- type: "error",
3676
- name: "DistributionNotPaused",
3677
- inputs: []
3678
- },
3679
- {
3680
- type: "error",
3681
- name: "ERC1967InvalidImplementation",
3682
- inputs: [
3683
- {
3684
- name: "implementation",
3685
- type: "address",
3686
- internalType: "address"
3687
- }
3688
- ]
3689
- },
3690
- {
3691
- type: "error",
3692
- name: "ERC1967NonPayable",
3693
- inputs: []
3694
- },
3695
- {
3696
- type: "error",
3697
- name: "EnforcedPause",
3698
- inputs: []
3699
- },
3700
- {
3701
- type: "error",
3702
- name: "ExpectedPause",
3703
- inputs: []
3704
- },
3705
- {
3706
- type: "error",
3707
- name: "FailedCall",
3708
- inputs: []
3709
- },
3710
- {
3711
- type: "error",
3712
- name: "IdentifierAlreadySet",
3713
- inputs: []
3714
- },
3715
- {
3716
- type: "error",
3717
- name: "InsufficientAllocatedAmount",
3718
- inputs: []
3719
- },
3720
- {
3721
- type: "error",
3722
- name: "InsufficientBalance",
3723
- inputs: [
3724
- {
3725
- name: "balance",
3726
- type: "uint256",
3727
- internalType: "uint256"
3728
- },
3729
- {
3730
- name: "needed",
3731
- type: "uint256",
3732
- internalType: "uint256"
3733
- }
3734
- ]
3735
- },
3736
- {
3737
- type: "error",
3738
- name: "InsufficientBalance",
3739
- inputs: []
3740
- },
3741
- {
3742
- type: "error",
3743
- name: "InvalidClaimer",
3744
- inputs: []
3745
- },
3746
- {
3747
- type: "error",
3748
- name: "InvalidDistribution",
3749
- inputs: []
3750
- },
3751
- {
3752
- type: "error",
3753
- name: "InvalidInitialization",
3754
- inputs: []
3755
- },
3756
- {
3757
- type: "error",
3758
- name: "InvalidProof",
3759
- inputs: []
3760
- },
3761
- {
3762
- type: "error",
3763
- name: "InvalidToken",
3764
- inputs: []
3765
- },
3766
- {
3767
- type: "error",
3768
- name: "NotInitializing",
3769
- inputs: []
3770
- },
3771
- {
3772
- type: "error",
3773
- name: "OwnableInvalidOwner",
3774
- inputs: [
3775
- {
3776
- name: "owner",
3777
- type: "address",
3778
- internalType: "address"
3779
- }
3780
- ]
3781
- },
3782
- {
3783
- type: "error",
3784
- name: "OwnableUnauthorizedAccount",
3785
- inputs: [
3786
- {
3787
- name: "account",
3788
- type: "address",
3789
- internalType: "address"
3790
- }
3791
- ]
3792
- },
3793
- {
3794
- type: "error",
3795
- name: "SafeERC20FailedOperation",
3796
- inputs: [
3797
- {
3798
- name: "token",
3799
- type: "address",
3800
- internalType: "address"
3801
- }
3802
- ]
3803
- },
3804
- {
3805
- type: "error",
3806
- name: "UUPSUnauthorizedCallContext",
3807
- inputs: []
3808
- },
3809
- {
3810
- type: "error",
3811
- name: "UUPSUnsupportedProxiableUUID",
3812
- inputs: [
3813
- {
3814
- name: "slot",
3815
- type: "bytes32",
3816
- internalType: "bytes32"
3817
- }
3818
- ]
3819
- }
3820
- ];
3821
-
3822
- // src/abi/utils/thirdwebMinimalAccount.ts
3823
- var thirdwebMinimalAccount = [
3824
- {
3825
- inputs: [
3826
- { internalType: "uint256", name: "allowanceUsage", type: "uint256" },
3827
- { internalType: "uint256", name: "limit", type: "uint256" },
3828
- { internalType: "uint64", name: "period", type: "uint64" }
3829
- ],
3830
- name: "AllowanceExceeded",
3831
- type: "error"
3832
- },
3833
- {
3834
- inputs: [
3835
- { internalType: "address", name: "target", type: "address" },
3836
- { internalType: "bytes4", name: "selector", type: "bytes4" }
3837
- ],
3838
- name: "CallPolicyViolated",
3839
- type: "error"
3840
- },
3841
- {
3842
- inputs: [
3843
- { internalType: "bytes32", name: "param", type: "bytes32" },
3844
- { internalType: "bytes32", name: "refValue", type: "bytes32" },
3845
- { internalType: "uint8", name: "condition", type: "uint8" }
3846
- ],
3847
- name: "ConditionFailed",
3848
- type: "error"
3849
- },
3850
- {
3851
- inputs: [
3852
- { internalType: "uint256", name: "actualLength", type: "uint256" },
3853
- { internalType: "uint256", name: "expectedLength", type: "uint256" }
3854
- ],
3855
- name: "InvalidDataLength",
3856
- type: "error"
3857
- },
3858
- {
3859
- inputs: [
3860
- { internalType: "address", name: "msgSender", type: "address" },
3861
- { internalType: "address", name: "thisAddress", type: "address" }
3862
- ],
3863
- name: "InvalidSignature",
3864
- type: "error"
3865
- },
3866
- {
3867
- inputs: [
3868
- { internalType: "uint256", name: "lifetimeUsage", type: "uint256" },
3869
- { internalType: "uint256", name: "limit", type: "uint256" }
3870
- ],
3871
- name: "LifetimeUsageExceeded",
3872
- type: "error"
3873
- },
3874
- {
3875
- inputs: [
3876
- { internalType: "uint256", name: "value", type: "uint256" },
3877
- { internalType: "uint256", name: "maxValuePerUse", type: "uint256" }
3878
- ],
3879
- name: "MaxValueExceeded",
3880
- type: "error"
3881
- },
3882
- { inputs: [], name: "NoCallsToExecute", type: "error" },
3883
- { inputs: [], name: "SessionExpired", type: "error" },
3884
- { inputs: [], name: "SessionExpiresTooSoon", type: "error" },
3885
- { inputs: [], name: "SessionZeroSigner", type: "error" },
3886
- {
3887
- inputs: [{ internalType: "address", name: "target", type: "address" }],
3888
- name: "TransferPolicyViolated",
3889
- type: "error"
3890
- },
3891
- { inputs: [], name: "UIDAlreadyProcessed", type: "error" },
3892
- {
3893
- anonymous: false,
3894
- inputs: [
3895
- { indexed: true, internalType: "address", name: "user", type: "address" },
3896
- {
3897
- indexed: true,
3898
- internalType: "address",
3899
- name: "signer",
3900
- type: "address"
3901
- },
3902
- {
3903
- indexed: true,
3904
- internalType: "address",
3905
- name: "executor",
3906
- type: "address"
3907
- },
3908
- {
3909
- indexed: false,
3910
- internalType: "uint256",
3911
- name: "batchSize",
3912
- type: "uint256"
3913
- }
3914
- ],
3915
- name: "Executed",
3916
- type: "event"
3917
- },
3918
- {
3919
- anonymous: false,
3920
- inputs: [
3921
- { indexed: true, internalType: "address", name: "user", type: "address" },
3922
- {
3923
- indexed: true,
3924
- internalType: "address",
3925
- name: "newSigner",
3926
- type: "address"
3927
- },
3928
- {
3929
- components: [
3930
- { internalType: "address", name: "signer", type: "address" },
3931
- { internalType: "bool", name: "isWildcard", type: "bool" },
3932
- { internalType: "uint256", name: "expiresAt", type: "uint256" },
3933
- {
3934
- components: [
3935
- { internalType: "address", name: "target", type: "address" },
3936
- { internalType: "bytes4", name: "selector", type: "bytes4" },
3937
- {
3938
- internalType: "uint256",
3939
- name: "maxValuePerUse",
3940
- type: "uint256"
3941
- },
3942
- {
3943
- components: [
3944
- {
3945
- internalType: "enum SessionLib.LimitType",
3946
- name: "limitType",
3947
- type: "uint8"
3948
- },
3949
- { internalType: "uint256", name: "limit", type: "uint256" },
3950
- { internalType: "uint256", name: "period", type: "uint256" }
3951
- ],
3952
- internalType: "struct SessionLib.UsageLimit",
3953
- name: "valueLimit",
3954
- type: "tuple"
3955
- },
3956
- {
3957
- components: [
3958
- {
3959
- internalType: "enum SessionLib.Condition",
3960
- name: "condition",
3961
- type: "uint8"
3962
- },
3963
- { internalType: "uint64", name: "index", type: "uint64" },
3964
- {
3965
- internalType: "bytes32",
3966
- name: "refValue",
3967
- type: "bytes32"
3968
- },
3969
- {
3970
- components: [
3971
- {
3972
- internalType: "enum SessionLib.LimitType",
3973
- name: "limitType",
3974
- type: "uint8"
3975
- },
3976
- {
3977
- internalType: "uint256",
3978
- name: "limit",
3979
- type: "uint256"
3980
- },
3981
- {
3982
- internalType: "uint256",
3983
- name: "period",
3984
- type: "uint256"
3985
- }
3986
- ],
3987
- internalType: "struct SessionLib.UsageLimit",
3988
- name: "limit",
3989
- type: "tuple"
3990
- }
3991
- ],
3992
- internalType: "struct SessionLib.Constraint[]",
3993
- name: "constraints",
3994
- type: "tuple[]"
3995
- }
3996
- ],
3997
- internalType: "struct SessionLib.CallSpec[]",
3998
- name: "callPolicies",
3999
- type: "tuple[]"
4000
- },
4001
- {
4002
- components: [
4003
- { internalType: "address", name: "target", type: "address" },
4004
- {
4005
- internalType: "uint256",
4006
- name: "maxValuePerUse",
4007
- type: "uint256"
4008
- },
4009
- {
4010
- components: [
4011
- {
4012
- internalType: "enum SessionLib.LimitType",
4013
- name: "limitType",
4014
- type: "uint8"
4015
- },
4016
- { internalType: "uint256", name: "limit", type: "uint256" },
4017
- { internalType: "uint256", name: "period", type: "uint256" }
4018
- ],
4019
- internalType: "struct SessionLib.UsageLimit",
4020
- name: "valueLimit",
4021
- type: "tuple"
4022
- }
4023
- ],
4024
- internalType: "struct SessionLib.TransferSpec[]",
4025
- name: "transferPolicies",
4026
- type: "tuple[]"
4027
- },
4028
- { internalType: "bytes32", name: "uid", type: "bytes32" }
4029
- ],
4030
- indexed: false,
4031
- internalType: "struct SessionLib.SessionSpec",
4032
- name: "sessionSpec",
4033
- type: "tuple"
4034
- }
4035
- ],
4036
- name: "SessionCreated",
4037
- type: "event"
4038
- },
4039
- {
4040
- anonymous: false,
4041
- inputs: [
4042
- { indexed: true, internalType: "address", name: "user", type: "address" },
4043
- { indexed: true, internalType: "address", name: "from", type: "address" },
4044
- {
4045
- indexed: false,
4046
- internalType: "uint256",
4047
- name: "value",
4048
- type: "uint256"
4049
- }
4050
- ],
4051
- name: "ValueReceived",
4052
- type: "event"
4053
- },
4054
- {
4055
- inputs: [
4056
- {
4057
- components: [
4058
- { internalType: "address", name: "signer", type: "address" },
4059
- { internalType: "bool", name: "isWildcard", type: "bool" },
4060
- { internalType: "uint256", name: "expiresAt", type: "uint256" },
4061
- {
4062
- components: [
4063
- { internalType: "address", name: "target", type: "address" },
4064
- { internalType: "bytes4", name: "selector", type: "bytes4" },
4065
- {
4066
- internalType: "uint256",
4067
- name: "maxValuePerUse",
4068
- type: "uint256"
4069
- },
4070
- {
4071
- components: [
4072
- {
4073
- internalType: "enum SessionLib.LimitType",
4074
- name: "limitType",
4075
- type: "uint8"
4076
- },
4077
- { internalType: "uint256", name: "limit", type: "uint256" },
4078
- { internalType: "uint256", name: "period", type: "uint256" }
4079
- ],
4080
- internalType: "struct SessionLib.UsageLimit",
4081
- name: "valueLimit",
4082
- type: "tuple"
4083
- },
4084
- {
4085
- components: [
4086
- {
4087
- internalType: "enum SessionLib.Condition",
4088
- name: "condition",
4089
- type: "uint8"
4090
- },
4091
- { internalType: "uint64", name: "index", type: "uint64" },
4092
- {
4093
- internalType: "bytes32",
4094
- name: "refValue",
4095
- type: "bytes32"
4096
- },
4097
- {
4098
- components: [
4099
- {
4100
- internalType: "enum SessionLib.LimitType",
4101
- name: "limitType",
4102
- type: "uint8"
4103
- },
4104
- {
4105
- internalType: "uint256",
4106
- name: "limit",
4107
- type: "uint256"
4108
- },
4109
- {
4110
- internalType: "uint256",
4111
- name: "period",
4112
- type: "uint256"
4113
- }
4114
- ],
4115
- internalType: "struct SessionLib.UsageLimit",
4116
- name: "limit",
4117
- type: "tuple"
4118
- }
4119
- ],
4120
- internalType: "struct SessionLib.Constraint[]",
4121
- name: "constraints",
4122
- type: "tuple[]"
4123
- }
4124
- ],
4125
- internalType: "struct SessionLib.CallSpec[]",
4126
- name: "callPolicies",
4127
- type: "tuple[]"
4128
- },
4129
- {
4130
- components: [
4131
- { internalType: "address", name: "target", type: "address" },
4132
- {
4133
- internalType: "uint256",
4134
- name: "maxValuePerUse",
4135
- type: "uint256"
4136
- },
4137
- {
4138
- components: [
4139
- {
4140
- internalType: "enum SessionLib.LimitType",
4141
- name: "limitType",
4142
- type: "uint8"
4143
- },
4144
- { internalType: "uint256", name: "limit", type: "uint256" },
4145
- { internalType: "uint256", name: "period", type: "uint256" }
4146
- ],
4147
- internalType: "struct SessionLib.UsageLimit",
4148
- name: "valueLimit",
4149
- type: "tuple"
4150
- }
4151
- ],
4152
- internalType: "struct SessionLib.TransferSpec[]",
4153
- name: "transferPolicies",
4154
- type: "tuple[]"
4155
- },
4156
- { internalType: "bytes32", name: "uid", type: "bytes32" }
4157
- ],
4158
- internalType: "struct SessionLib.SessionSpec",
4159
- name: "sessionSpec",
4160
- type: "tuple"
4161
- },
4162
- { internalType: "bytes", name: "signature", type: "bytes" }
4163
- ],
4164
- name: "createSessionWithSig",
4165
- outputs: [],
4166
- stateMutability: "nonpayable",
4167
- type: "function"
4168
- },
4169
- {
4170
- inputs: [],
4171
- name: "eip712Domain",
4172
- outputs: [
4173
- { internalType: "bytes1", name: "fields", type: "bytes1" },
4174
- { internalType: "string", name: "name", type: "string" },
4175
- { internalType: "string", name: "version", type: "string" },
4176
- { internalType: "uint256", name: "chainId", type: "uint256" },
4177
- { internalType: "address", name: "verifyingContract", type: "address" },
4178
- { internalType: "bytes32", name: "salt", type: "bytes32" },
4179
- { internalType: "uint256[]", name: "extensions", type: "uint256[]" }
4180
- ],
4181
- stateMutability: "view",
4182
- type: "function"
4183
- },
4184
- {
4185
- inputs: [
4186
- {
4187
- components: [
4188
- { internalType: "address", name: "target", type: "address" },
4189
- { internalType: "uint256", name: "value", type: "uint256" },
4190
- { internalType: "bytes", name: "data", type: "bytes" }
4191
- ],
4192
- internalType: "struct Call[]",
4193
- name: "calls",
4194
- type: "tuple[]"
4195
- }
4196
- ],
4197
- name: "execute",
4198
- outputs: [],
4199
- stateMutability: "payable",
4200
- type: "function"
4201
- },
4202
- {
4203
- inputs: [
4204
- {
4205
- components: [
4206
- {
4207
- components: [
4208
- { internalType: "address", name: "target", type: "address" },
4209
- { internalType: "uint256", name: "value", type: "uint256" },
4210
- { internalType: "bytes", name: "data", type: "bytes" }
4211
- ],
4212
- internalType: "struct Call[]",
4213
- name: "calls",
4214
- type: "tuple[]"
4215
- },
4216
- { internalType: "bytes32", name: "uid", type: "bytes32" }
4217
- ],
4218
- internalType: "struct WrappedCalls",
4219
- name: "wrappedCalls",
4220
- type: "tuple"
4221
- },
4222
- { internalType: "bytes", name: "signature", type: "bytes" }
4223
- ],
4224
- name: "executeWithSig",
4225
- outputs: [],
4226
- stateMutability: "payable",
4227
- type: "function"
4228
- },
4229
- {
4230
- inputs: [{ internalType: "address", name: "signer", type: "address" }],
4231
- name: "getCallPoliciesForSigner",
4232
- outputs: [
4233
- {
4234
- components: [
4235
- { internalType: "address", name: "target", type: "address" },
4236
- { internalType: "bytes4", name: "selector", type: "bytes4" },
4237
- { internalType: "uint256", name: "maxValuePerUse", type: "uint256" },
4238
- {
4239
- components: [
4240
- {
4241
- internalType: "enum SessionLib.LimitType",
4242
- name: "limitType",
4243
- type: "uint8"
4244
- },
4245
- { internalType: "uint256", name: "limit", type: "uint256" },
4246
- { internalType: "uint256", name: "period", type: "uint256" }
4247
- ],
4248
- internalType: "struct SessionLib.UsageLimit",
4249
- name: "valueLimit",
4250
- type: "tuple"
4251
- },
4252
- {
4253
- components: [
4254
- {
4255
- internalType: "enum SessionLib.Condition",
4256
- name: "condition",
4257
- type: "uint8"
4258
- },
4259
- { internalType: "uint64", name: "index", type: "uint64" },
4260
- { internalType: "bytes32", name: "refValue", type: "bytes32" },
4261
- {
4262
- components: [
4263
- {
4264
- internalType: "enum SessionLib.LimitType",
4265
- name: "limitType",
4266
- type: "uint8"
4267
- },
4268
- { internalType: "uint256", name: "limit", type: "uint256" },
4269
- { internalType: "uint256", name: "period", type: "uint256" }
4270
- ],
4271
- internalType: "struct SessionLib.UsageLimit",
4272
- name: "limit",
4273
- type: "tuple"
4274
- }
4275
- ],
4276
- internalType: "struct SessionLib.Constraint[]",
4277
- name: "constraints",
4278
- type: "tuple[]"
4279
- }
4280
- ],
4281
- internalType: "struct SessionLib.CallSpec[]",
4282
- name: "",
4283
- type: "tuple[]"
4284
- }
4285
- ],
4286
- stateMutability: "view",
4287
- type: "function"
4288
- },
4289
- {
4290
- inputs: [{ internalType: "address", name: "signer", type: "address" }],
4291
- name: "getSessionExpirationForSigner",
4292
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
4293
- stateMutability: "view",
4294
- type: "function"
4295
- },
4296
- {
4297
- inputs: [{ internalType: "address", name: "signer", type: "address" }],
4298
- name: "getSessionStateForSigner",
4299
- outputs: [
4300
- {
4301
- components: [
4302
- {
4303
- components: [
4304
- { internalType: "uint256", name: "remaining", type: "uint256" },
4305
- { internalType: "address", name: "target", type: "address" },
4306
- { internalType: "bytes4", name: "selector", type: "bytes4" },
4307
- { internalType: "uint256", name: "index", type: "uint256" }
4308
- ],
4309
- internalType: "struct SessionLib.LimitState[]",
4310
- name: "transferValue",
4311
- type: "tuple[]"
4312
- },
4313
- {
4314
- components: [
4315
- { internalType: "uint256", name: "remaining", type: "uint256" },
4316
- { internalType: "address", name: "target", type: "address" },
4317
- { internalType: "bytes4", name: "selector", type: "bytes4" },
4318
- { internalType: "uint256", name: "index", type: "uint256" }
4319
- ],
4320
- internalType: "struct SessionLib.LimitState[]",
4321
- name: "callValue",
4322
- type: "tuple[]"
4323
- },
4324
- {
4325
- components: [
4326
- { internalType: "uint256", name: "remaining", type: "uint256" },
4327
- { internalType: "address", name: "target", type: "address" },
4328
- { internalType: "bytes4", name: "selector", type: "bytes4" },
4329
- { internalType: "uint256", name: "index", type: "uint256" }
4330
- ],
4331
- internalType: "struct SessionLib.LimitState[]",
4332
- name: "callParams",
4333
- type: "tuple[]"
4334
- }
4335
- ],
4336
- internalType: "struct SessionLib.SessionState",
4337
- name: "",
4338
- type: "tuple"
4339
- }
4340
- ],
4341
- stateMutability: "view",
4342
- type: "function"
4343
- },
4344
- {
4345
- inputs: [{ internalType: "address", name: "signer", type: "address" }],
4346
- name: "getTransferPoliciesForSigner",
4347
- outputs: [
4348
- {
4349
- components: [
4350
- { internalType: "address", name: "target", type: "address" },
4351
- { internalType: "uint256", name: "maxValuePerUse", type: "uint256" },
4352
- {
4353
- components: [
4354
- {
4355
- internalType: "enum SessionLib.LimitType",
4356
- name: "limitType",
4357
- type: "uint8"
4358
- },
4359
- { internalType: "uint256", name: "limit", type: "uint256" },
4360
- { internalType: "uint256", name: "period", type: "uint256" }
4361
- ],
4362
- internalType: "struct SessionLib.UsageLimit",
4363
- name: "valueLimit",
4364
- type: "tuple"
4365
- }
4366
- ],
4367
- internalType: "struct SessionLib.TransferSpec[]",
4368
- name: "",
4369
- type: "tuple[]"
4370
- }
4371
- ],
4372
- stateMutability: "view",
4373
- type: "function"
4374
- },
4375
- {
4376
- inputs: [
4377
- { internalType: "bytes32", name: "hash", type: "bytes32" },
4378
- { internalType: "bytes", name: "signature", type: "bytes" }
4379
- ],
4380
- name: "isValidSignature",
4381
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
4382
- stateMutability: "view",
4383
- type: "function"
4384
- },
4385
- {
4386
- inputs: [{ internalType: "address", name: "signer", type: "address" }],
4387
- name: "isWildcardSigner",
4388
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4389
- stateMutability: "view",
4390
- type: "function"
4391
- },
4392
- {
4393
- inputs: [
4394
- { internalType: "address", name: "", type: "address" },
4395
- { internalType: "address", name: "", type: "address" },
4396
- { internalType: "uint256[]", name: "", type: "uint256[]" },
4397
- { internalType: "uint256[]", name: "", type: "uint256[]" },
4398
- { internalType: "bytes", name: "", type: "bytes" }
4399
- ],
4400
- name: "onERC1155BatchReceived",
4401
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
4402
- stateMutability: "nonpayable",
4403
- type: "function"
4404
- },
4405
- {
4406
- inputs: [
4407
- { internalType: "address", name: "", type: "address" },
4408
- { internalType: "address", name: "", type: "address" },
4409
- { internalType: "uint256", name: "", type: "uint256" },
4410
- { internalType: "uint256", name: "", type: "uint256" },
4411
- { internalType: "bytes", name: "", type: "bytes" }
4412
- ],
4413
- name: "onERC1155Received",
4414
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
4415
- stateMutability: "nonpayable",
4416
- type: "function"
4417
- },
4418
- {
4419
- inputs: [
4420
- { internalType: "address", name: "", type: "address" },
4421
- { internalType: "address", name: "", type: "address" },
4422
- { internalType: "uint256", name: "", type: "uint256" },
4423
- { internalType: "bytes", name: "", type: "bytes" }
4424
- ],
4425
- name: "onERC721Received",
4426
- outputs: [{ internalType: "bytes4", name: "", type: "bytes4" }],
4427
- stateMutability: "nonpayable",
4428
- type: "function"
4429
- },
4430
- {
4431
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
4432
- name: "supportsInterface",
4433
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
4434
- stateMutability: "view",
4435
- type: "function"
4436
- },
4437
- { stateMutability: "payable", type: "receive" }
4438
- ];
4439
-
4440
-
4441
-
4442
-
4443
-
4444
-
4445
-
4446
-
4447
-
4448
-
4449
-
4450
-
4451
-
4452
- exports.EIP7702StatelessDelegatorAbi = EIP7702StatelessDelegatorAbi; exports.bundlerAbi = bundlerAbi; exports.ensoRouterAbi = ensoRouterAbi; exports.ensoWalletV2FactoryAbi = _chunkH3Z37RYUcjs.ensoWalletV2FactoryAbi; exports.generalAdapterAbi = generalAdapterAbi; exports.merkleDistributorAbi = merkleDistributorAbi; exports.morphoVaultAbi = morphoVaultAbi; exports.multicall3Abi = _chunkTDW5SPXRcjs.multicall3Abi; exports.publicAllocatorAbi = publicAllocatorAbi; exports.pythAbi = _chunkMXWPP6MScjs.pythAbi; exports.pythErrorsAbi = pythErrorsAbi; exports.thirdwebMinimalAccount = thirdwebMinimalAccount;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRWOICHRWcjs = require('../chunk-RWOICHRW.cjs');var _chunkOUD27MU7cjs = require('../chunk-OUD27MU7.cjs');var _chunkOIYXOKTTcjs = require('../chunk-OIYXOKTT.cjs');var a=[{inputs:[],name:"AlreadyInitiated",type:"error"},{inputs:[],name:"EmptyBundle",type:"error"},{inputs:[],name:"IncorrectReenterHash",type:"error"},{inputs:[],name:"MissingExpectedReenter",type:"error"},{inputs:[],name:"initiator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bool",name:"skipRevert",type:"bool"},{internalType:"bytes32",name:"callbackHash",type:"bytes32"}],internalType:"struct Call[]",name:"bundle",type:"tuple[]"}],name:"multicall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bool",name:"skipRevert",type:"bool"},{internalType:"bytes32",name:"callbackHash",type:"bytes32"}],internalType:"struct Call[]",name:"bundle",type:"tuple[]"}],name:"reenter",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"reenterHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];var s=[{inputs:[{internalType:"address",name:"bundler3",type:"address"},{internalType:"address",name:"morpho",type:"address"},{internalType:"address",name:"wNative",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AdapterAddress",type:"error"},{inputs:[],name:"FailedCall",type:"error"},{inputs:[{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"SafeERC20FailedOperation",type:"error"},{inputs:[],name:"SlippageExceeded",type:"error"},{inputs:[],name:"UnauthorizedSender",type:"error"},{inputs:[],name:"UnexpectedOwner",type:"error"},{inputs:[],name:"UnsafeCast",type:"error"},{inputs:[],name:"ZeroAddress",type:"error"},{inputs:[],name:"ZeroAmount",type:"error"},{inputs:[],name:"ZeroShares",type:"error"},{inputs:[],name:"BUNDLER3",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"MORPHO",outputs:[{internalType:"contract IMorpho",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"WRAPPED_NATIVE",outputs:[{internalType:"contract IWNative",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"erc20Transfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"erc20TransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"maxSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"erc4626Deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"maxSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"erc4626Mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"minSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"erc4626Redeem",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"minSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"erc4626Withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"minSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"morphoBorrow",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"morphoFlashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"maxSharePriceE27",type:"uint256"},{internalType:"address",name:"onBehalf",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"morphoRepay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"maxSharePriceE27",type:"uint256"},{internalType:"address",name:"onBehalf",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"morphoSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"address",name:"onBehalf",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"morphoSupplyCollateral",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"minSharePriceE27",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"morphoWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"morphoWithdrawCollateral",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"nativeTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"onMorphoFlashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"onMorphoRepay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"onMorphoSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"onMorphoSupplyCollateral",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"permit2TransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"unwrapNative",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"wrapNative",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var r=[{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"morpho",type:"address"},{internalType:"address",name:"feePartitioner",type:"address"},{internalType:"uint256",name:"initialTimelock",type:"uint256"},{internalType:"address",name:"_asset",type:"address"},{internalType:"string",name:"__name",type:"string"},{internalType:"string",name:"__symbol",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AboveMaxTimelock",type:"error"},{inputs:[{internalType:"address",name:"target",type:"address"}],name:"AddressEmptyCode",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"AddressInsufficientBalance",type:"error"},{inputs:[],name:"AllCapsReached",type:"error"},{inputs:[],name:"AlreadyPending",type:"error"},{inputs:[],name:"AlreadySet",type:"error"},{inputs:[],name:"BelowMinTimelock",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"DuplicateMarket",type:"error"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"allowance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientAllowance",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC20InvalidApprover",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC20InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC20InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"spender",type:"address"}],name:"ERC20InvalidSpender",type:"error"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"}],name:"ERC2612ExpiredSignature",type:"error"},{inputs:[{internalType:"address",name:"signer",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"ERC2612InvalidSigner",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"max",type:"uint256"}],name:"ERC4626ExceededMaxDeposit",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"max",type:"uint256"}],name:"ERC4626ExceededMaxMint",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"max",type:"uint256"}],name:"ERC4626ExceededMaxRedeem",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"uint256",name:"max",type:"uint256"}],name:"ERC4626ExceededMaxWithdraw",type:"error"},{inputs:[],name:"FailedInnerCall",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"InconsistentAsset",type:"error"},{inputs:[],name:"InconsistentReallocation",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"currentNonce",type:"uint256"}],name:"InvalidAccountNonce",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"InvalidMarketRemovalNonZeroCap",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"InvalidMarketRemovalNonZeroSupply",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"InvalidMarketRemovalTimelockNotElapsed",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"MarketNotCreated",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"MarketNotEnabled",type:"error"},{inputs:[],name:"MathOverflowedMulDiv",type:"error"},{inputs:[],name:"MaxFeeExceeded",type:"error"},{inputs:[],name:"MaxQueueLengthExceeded",type:"error"},{inputs:[],name:"NoPendingValue",type:"error"},{inputs:[],name:"NonZeroCap",type:"error"},{inputs:[],name:"NotAllocatorRole",type:"error"},{inputs:[],name:"NotCuratorNorGuardianRole",type:"error"},{inputs:[],name:"NotCuratorRole",type:"error"},{inputs:[],name:"NotEnoughLiquidity",type:"error"},{inputs:[],name:"NotGuardianRole",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"PendingCap",type:"error"},{inputs:[],name:"PendingRemoval",type:"error"},{inputs:[{internalType:"uint8",name:"bits",type:"uint8"},{internalType:"uint256",name:"value",type:"uint256"}],name:"SafeCastOverflowedUintDowncast",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"SafeERC20FailedOperation",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"SupplyCapExceeded",type:"error"},{inputs:[],name:"TimelockNotElapsed",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"UnauthorizedMarket",type:"error"},{inputs:[],name:"ZeroAddress",type:"error"},{inputs:[],name:"ZeroFeeRecipient",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newTotalAssets",type:"uint256"},{indexed:!1,internalType:"uint256",name:"feeShares",type:"uint256"}],name:"AccrueInterest",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"assets",type:"uint256"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"suppliedAssets",type:"uint256"},{indexed:!1,internalType:"uint256",name:"suppliedShares",type:"uint256"}],name:"ReallocateSupply",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"withdrawnAssets",type:"uint256"},{indexed:!1,internalType:"uint256",name:"withdrawnShares",type:"uint256"}],name:"ReallocateWithdraw",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"}],name:"RevokePendingCap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"}],name:"RevokePendingGuardian",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"}],name:"RevokePendingMarketRemoval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"}],name:"RevokePendingTimelock",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"cap",type:"uint256"}],name:"SetCap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newCurator",type:"address"}],name:"SetCurator",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!1,internalType:"uint256",name:"newFee",type:"uint256"}],name:"SetFee",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newFeeRecipient",type:"address"}],name:"SetFeeRecipient",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"address",name:"guardian",type:"address"}],name:"SetGuardian",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"allocator",type:"address"},{indexed:!1,internalType:"bool",name:"isAllocator",type:"bool"}],name:"SetIsAllocator",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"name",type:"string"}],name:"SetName",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newSkimRecipient",type:"address"}],name:"SetSkimRecipient",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!1,internalType:"Id[]",name:"newSupplyQueue",type:"bytes32[]"}],name:"SetSupplyQueue",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"symbol",type:"string"}],name:"SetSymbol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!1,internalType:"uint256",name:"newTimelock",type:"uint256"}],name:"SetTimelock",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!1,internalType:"Id[]",name:"newWithdrawQueue",type:"bytes32[]"}],name:"SetWithdrawQueue",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Skim",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"cap",type:"uint256"}],name:"SubmitCap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newGuardian",type:"address"}],name:"SubmitGuardian",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"caller",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"}],name:"SubmitMarketRemoval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newTimelock",type:"uint256"}],name:"SubmitTimelock",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"updatedTotalAssets",type:"uint256"}],name:"UpdateLastTotalAssets",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newLostAssets",type:"uint256"}],name:"UpdateLostAssets",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"assets",type:"uint256"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"Withdraw",type:"event"},{inputs:[],name:"DECIMALS_OFFSET",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MORPHO",outputs:[{internalType:"contract IMorpho",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"}],name:"acceptCap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"acceptGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"acceptTimelock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"asset",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"Id",name:"",type:"bytes32"}],name:"config",outputs:[{internalType:"uint184",name:"cap",type:"uint184"},{internalType:"bool",name:"enabled",type:"bool"},{internalType:"uint64",name:"removableAt",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"shares",type:"uint256"}],name:"convertToAssets",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assets",type:"uint256"}],name:"convertToShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"curator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"deposit",outputs:[{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"guardian",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isAllocator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"lastTotalAssets",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lostAssets",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"maxDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"maxMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"maxRedeem",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"maxWithdraw",outputs:[{internalType:"uint256",name:"assets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"address",name:"receiver",type:"address"}],name:"mint",outputs:[{internalType:"uint256",name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"Id",name:"",type:"bytes32"}],name:"pendingCap",outputs:[{internalType:"uint192",name:"value",type:"uint192"},{internalType:"uint64",name:"validAt",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingGuardian",outputs:[{internalType:"address",name:"value",type:"address"},{internalType:"uint64",name:"validAt",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingTimelock",outputs:[{internalType:"uint192",name:"value",type:"uint192"},{internalType:"uint64",name:"validAt",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assets",type:"uint256"}],name:"previewDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"shares",type:"uint256"}],name:"previewMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"shares",type:"uint256"}],name:"previewRedeem",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assets",type:"uint256"}],name:"previewWithdraw",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"assets",type:"uint256"}],internalType:"struct MarketAllocation[]",name:"allocations",type:"tuple[]"}],name:"reallocate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"redeem",outputs:[{internalType:"uint256",name:"assets",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"revokePendingCap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"revokePendingMarketRemoval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingTimelock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newCurator",type:"address"}],name:"setCurator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newFee",type:"uint256"}],name:"setFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newFeeRecipient",type:"address"}],name:"setFeeRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAllocator",type:"address"},{internalType:"bool",name:"newIsAllocator",type:"bool"}],name:"setIsAllocator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newName",type:"string"}],name:"setName",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newSkimRecipient",type:"address"}],name:"setSkimRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"Id[]",name:"newSupplyQueue",type:"bytes32[]"}],name:"setSupplyQueue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"newSymbol",type:"string"}],name:"setSymbol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"skim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"skimRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint256",name:"newSupplyCap",type:"uint256"}],name:"submitCap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newGuardian",type:"address"}],name:"submitGuardian",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"}],name:"submitMarketRemoval",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newTimelock",type:"uint256"}],name:"submitTimelock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"supplyQueue",outputs:[{internalType:"Id",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"supplyQueueLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"timelock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalAssets",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"indexes",type:"uint256[]"}],name:"updateWithdrawQueue",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assets",type:"uint256"},{internalType:"address",name:"receiver",type:"address"},{internalType:"address",name:"owner",type:"address"}],name:"withdraw",outputs:[{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"withdrawQueue",outputs:[{internalType:"Id",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"withdrawQueueLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];var u=[{inputs:[{internalType:"address",name:"morpho",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadySet",type:"error"},{inputs:[],name:"DepositMarketInWithdrawals",type:"error"},{inputs:[],name:"EmptyWithdrawals",type:"error"},{inputs:[],name:"InconsistentWithdrawals",type:"error"},{inputs:[],name:"IncorrectFee",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"MarketNotEnabled",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"MaxInflowExceeded",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"MaxOutflowExceeded",type:"error"},{inputs:[],name:"MaxSettableFlowCapExceeded",type:"error"},{inputs:[],name:"NotAdminNorVaultOwner",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"NotEnoughSupply",type:"error"},{inputs:[{internalType:"Id",name:"id",type:"bytes32"}],name:"WithdrawZero",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"Id",name:"supplyMarketId",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"suppliedAssets",type:"uint256"}],name:"PublicReallocateTo",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!0,internalType:"Id",name:"id",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"withdrawnAssets",type:"uint256"}],name:"PublicWithdrawal",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"address",name:"admin",type:"address"}],name:"SetAdmin",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"uint256",name:"fee",type:"uint256"}],name:"SetFee",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{components:[{internalType:"Id",name:"id",type:"bytes32"},{components:[{internalType:"uint128",name:"maxIn",type:"uint128"},{internalType:"uint128",name:"maxOut",type:"uint128"}],internalType:"struct FlowCaps",name:"caps",type:"tuple"}],indexed:!1,internalType:"struct FlowCapsConfig[]",name:"config",type:"tuple[]"}],name:"SetFlowCaps",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"vault",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!0,internalType:"address",name:"feeRecipient",type:"address"}],name:"TransferFee",type:"event"},{inputs:[],name:"MORPHO",outputs:[{internalType:"contract IMorpho",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"accruedFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"admin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"fee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"Id",name:"",type:"bytes32"}],name:"flowCaps",outputs:[{internalType:"uint128",name:"maxIn",type:"uint128"},{internalType:"uint128",name:"maxOut",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{components:[{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"marketParams",type:"tuple"},{internalType:"uint128",name:"amount",type:"uint128"}],internalType:"struct Withdrawal[]",name:"withdrawals",type:"tuple[]"},{components:[{internalType:"address",name:"loanToken",type:"address"},{internalType:"address",name:"collateralToken",type:"address"},{internalType:"address",name:"oracle",type:"address"},{internalType:"address",name:"irm",type:"address"},{internalType:"uint256",name:"lltv",type:"uint256"}],internalType:"struct MarketParams",name:"supplyMarketParams",type:"tuple"}],name:"reallocateTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address",name:"newAdmin",type:"address"}],name:"setAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"uint256",name:"newFee",type:"uint256"}],name:"setFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{components:[{internalType:"Id",name:"id",type:"bytes32"},{components:[{internalType:"uint128",name:"maxIn",type:"uint128"},{internalType:"uint128",name:"maxOut",type:"uint128"}],internalType:"struct FlowCaps",name:"caps",type:"tuple"}],internalType:"struct FlowCapsConfig[]",name:"config",type:"tuple[]"}],name:"setFlowCaps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"vault",type:"address"},{internalType:"address payable",name:"feeRecipient",type:"address"}],name:"transferFee",outputs:[],stateMutability:"nonpayable",type:"function"}];var d=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token",name:"token",type:"tuple"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"minAmount",type:"uint256"}],name:"AmountTooLow",type:"error"},{inputs:[],name:"DuplicateNativeAsset",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"SafeERC20FailedOperation",type:"error"},{inputs:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"}],name:"UnsupportedTokenType",type:"error"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"expectedAmount",type:"uint256"}],name:"WrongMsgValue",type:"error"},{inputs:[{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token[]",name:"tokensIn",type:"tuple[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"routeMulti",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token",name:"tokenIn",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"routeSingle",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token[]",name:"tokensIn",type:"tuple[]"},{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token[]",name:"tokensOut",type:"tuple[]"},{internalType:"address",name:"receiver",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeRouteMulti",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token",name:"tokenIn",type:"tuple"},{components:[{internalType:"enum TokenType",name:"tokenType",type:"uint8"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Token",name:"tokenOut",type:"tuple"},{internalType:"address",name:"receiver",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeRouteSingle",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[],name:"shortcuts",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}];var m=[{type:"error",name:"InsufficientFee",inputs:[]},{type:"error",name:"InvalidArgument",inputs:[]},{type:"error",name:"InvalidGovernanceDataSource",inputs:[]},{type:"error",name:"InvalidGovernanceMessage",inputs:[]},{type:"error",name:"InvalidGovernanceTarget",inputs:[]},{type:"error",name:"InvalidUpdateData",inputs:[]},{type:"error",name:"InvalidUpdateDataSource",inputs:[]},{type:"error",name:"InvalidWormholeAddressToSet",inputs:[]},{type:"error",name:"InvalidWormholeVaa",inputs:[]},{type:"error",name:"NoFreshUpdate",inputs:[]},{type:"error",name:"OldGovernanceMessage",inputs:[]},{type:"error",name:"PriceFeedNotFound",inputs:[]},{type:"error",name:"PriceFeedNotFoundWithinRange",inputs:[]},{type:"error",name:"StalePrice",inputs:[]}];var b=[{inputs:[{internalType:"contract IDelegationManager",name:"_delegationManager",type:"address"},{internalType:"contract IEntryPoint",name:"_entryPoint",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ECDSAInvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"length",type:"uint256"}],name:"ECDSAInvalidSignatureLength",type:"error"},{inputs:[{internalType:"bytes32",name:"s",type:"bytes32"}],name:"ECDSAInvalidSignatureS",type:"error"},{inputs:[],name:"ExecutionFailed",type:"error"},{inputs:[],name:"InvalidEIP712NameLength",type:"error"},{inputs:[],name:"InvalidEIP712VersionLength",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"NotDelegationManager",type:"error"},{inputs:[],name:"NotEntryPoint",type:"error"},{inputs:[],name:"NotEntryPointOrSelf",type:"error"},{inputs:[],name:"NotSelf",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[{internalType:"CallType",name:"callType",type:"bytes1"}],name:"UnsupportedCallType",type:"error"},{inputs:[{internalType:"ExecType",name:"execType",type:"bytes1"}],name:"UnsupportedExecType",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"bool",name:"success",type:"bool"}],name:"SentPrefund",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IDelegationManager",name:"newDelegationManager",type:"address"}],name:"SetDelegationManager",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IEntryPoint",name:"entryPoint",type:"address"}],name:"SetEntryPoint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"batchExecutionindex",type:"uint256"},{indexed:!1,internalType:"bytes",name:"result",type:"bytes"}],name:"TryExecuteUnsuccessful",type:"event"},{inputs:[],name:"DOMAIN_VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"PACKED_USER_OP_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"addDeposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"delegationManager",outputs:[{internalType:"contract IDelegationManager",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"delegate",type:"address"},{internalType:"address",name:"delegator",type:"address"},{internalType:"bytes32",name:"authority",type:"bytes32"},{components:[{internalType:"address",name:"enforcer",type:"address"},{internalType:"bytes",name:"terms",type:"bytes"},{internalType:"bytes",name:"args",type:"bytes"}],internalType:"struct Caveat[]",name:"caveats",type:"tuple[]"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Delegation",name:"_delegation",type:"tuple"}],name:"disableDelegation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"delegate",type:"address"},{internalType:"address",name:"delegator",type:"address"},{internalType:"bytes32",name:"authority",type:"bytes32"},{components:[{internalType:"address",name:"enforcer",type:"address"},{internalType:"bytes",name:"terms",type:"bytes"},{internalType:"bytes",name:"args",type:"bytes"}],internalType:"struct Caveat[]",name:"caveats",type:"tuple[]"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Delegation",name:"_delegation",type:"tuple"}],name:"enableDelegation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"entryPoint",outputs:[{internalType:"contract IEntryPoint",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"callData",type:"bytes"}],internalType:"struct Execution",name:"_execution",type:"tuple"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"ModeCode",name:"_mode",type:"bytes32"},{internalType:"bytes",name:"_executionCalldata",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"ModeCode",name:"_mode",type:"bytes32"},{internalType:"bytes",name:"_executionCalldata",type:"bytes"}],name:"executeFromExecutor",outputs:[{internalType:"bytes[]",name:"returnData_",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint192",name:"_key",type:"uint192"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"_userOp",type:"tuple"}],name:"getPackedUserOperationHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"_userOp",type:"tuple"}],name:"getPackedUserOperationTypedDataHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_delegationHash",type:"bytes32"}],name:"isDelegationDisabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"magicValue_",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"_permissionContexts",type:"bytes[]"},{internalType:"ModeCode[]",name:"_modes",type:"bytes32[]"},{internalType:"bytes[]",name:"_executionCallDatas",type:"bytes[]"}],name:"redeemDelegations",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"ModeCode",name:"_mode",type:"bytes32"}],name:"supportsExecutionMode",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"initCode",type:"bytes"},{internalType:"bytes",name:"callData",type:"bytes"},{internalType:"bytes32",name:"accountGasLimits",type:"bytes32"},{internalType:"uint256",name:"preVerificationGas",type:"uint256"},{internalType:"bytes32",name:"gasFees",type:"bytes32"},{internalType:"bytes",name:"paymasterAndData",type:"bytes"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct PackedUserOperation",name:"_userOp",type:"tuple"},{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"_missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{internalType:"uint256",name:"validationData_",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address payable",name:"_withdrawAddress",type:"address"},{internalType:"uint256",name:"_withdrawAmount",type:"uint256"}],name:"withdrawDeposit",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var f=[{type:"function",name:"UPGRADE_INTERFACE_VERSION",inputs:[],outputs:[{name:"",type:"string",internalType:"string"}],stateMutability:"view"},{type:"function",name:"acceptOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"claim",inputs:[{name:"claims",type:"tuple[]",internalType:"struct IDistributor.Claim[]",components:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"account",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"merkleProof",type:"bytes32[]",internalType:"bytes32[]"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"claimOnBehalf",inputs:[{name:"claim_",type:"tuple",internalType:"struct IDistributor.Claim",components:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"account",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"},{name:"merkleProof",type:"bytes32[]",internalType:"bytes32[]"}]},{name:"receiver",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"claimed",inputs:[{name:"",type:"bytes32",internalType:"bytes32"},{name:"",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"createDistributions",inputs:[{name:"distributions_",type:"tuple[]",internalType:"struct IDistributor.Distribution[]",components:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"token",type:"address",internalType:"address"},{name:"merkleRoot",type:"bytes32",internalType:"bytes32"},{name:"allocatedAmount",type:"uint256",internalType:"uint256"},{name:"paused",type:"bool",internalType:"bool"}]}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"distributions",inputs:[{name:"",type:"bytes32",internalType:"bytes32"}],outputs:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"token",type:"address",internalType:"address"},{name:"merkleRoot",type:"bytes32",internalType:"bytes32"},{name:"allocatedAmount",type:"uint256",internalType:"uint256"},{name:"paused",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"initialize",inputs:[{name:"_governance",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"owner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"pauseDistribution",inputs:[{name:"identifier",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"paused",inputs:[],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"pendingOwner",inputs:[],outputs:[{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"proxiableUUID",inputs:[],outputs:[{name:"",type:"bytes32",internalType:"bytes32"}],stateMutability:"view"},{type:"function",name:"recover",inputs:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"token",type:"address",internalType:"address"},{name:"amount",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"renounceOwnership",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"togglePause",inputs:[],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"transferOwnership",inputs:[{name:"newOwner",type:"address",internalType:"address"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"unpauseDistribution",inputs:[{name:"identifier",type:"bytes32",internalType:"bytes32"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"updateDistribution",inputs:[{name:"identifier",type:"bytes32",internalType:"bytes32"},{name:"token",type:"address",internalType:"address"},{name:"merkleRoot",type:"bytes32",internalType:"bytes32"},{name:"allocatedAmount",type:"uint256",internalType:"uint256"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"upgradeToAndCall",inputs:[{name:"newImplementation",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"event",name:"Claimed",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"account",type:"address",indexed:!1,internalType:"address"},{name:"amount",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"ClaimedOnBehalf",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"account",type:"address",indexed:!1,internalType:"address"},{name:"amount",type:"uint256",indexed:!1,internalType:"uint256"},{name:"receiver",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"DistributionCreated",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"merkleRoot",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"allocatedAmount",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"DistributionPaused",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"DistributionUnpaused",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"}],anonymous:!1},{type:"event",name:"DistributionUpdated",inputs:[{name:"identifier",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"merkleRoot",type:"bytes32",indexed:!1,internalType:"bytes32"},{name:"allocatedAmount",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"Initialized",inputs:[{name:"version",type:"uint64",indexed:!1,internalType:"uint64"}],anonymous:!1},{type:"event",name:"OwnershipTransferStarted",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"OwnershipTransferred",inputs:[{name:"previousOwner",type:"address",indexed:!0,internalType:"address"},{name:"newOwner",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"event",name:"Paused",inputs:[{name:"account",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"Recovered",inputs:[{name:"token",type:"address",indexed:!1,internalType:"address"},{name:"account",type:"address",indexed:!1,internalType:"address"},{name:"amount",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"event",name:"Unpaused",inputs:[{name:"account",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"Upgraded",inputs:[{name:"implementation",type:"address",indexed:!0,internalType:"address"}],anonymous:!1},{type:"error",name:"AddressEmptyCode",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"AddressZero",inputs:[]},{type:"error",name:"AlreadyClaimed",inputs:[]},{type:"error",name:"DistributionAlreadyPaused",inputs:[]},{type:"error",name:"DistributionEnforcedPause",inputs:[]},{type:"error",name:"DistributionNotPaused",inputs:[]},{type:"error",name:"ERC1967InvalidImplementation",inputs:[{name:"implementation",type:"address",internalType:"address"}]},{type:"error",name:"ERC1967NonPayable",inputs:[]},{type:"error",name:"EnforcedPause",inputs:[]},{type:"error",name:"ExpectedPause",inputs:[]},{type:"error",name:"FailedCall",inputs:[]},{type:"error",name:"IdentifierAlreadySet",inputs:[]},{type:"error",name:"InsufficientAllocatedAmount",inputs:[]},{type:"error",name:"InsufficientBalance",inputs:[{name:"balance",type:"uint256",internalType:"uint256"},{name:"needed",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InsufficientBalance",inputs:[]},{type:"error",name:"InvalidClaimer",inputs:[]},{type:"error",name:"InvalidDistribution",inputs:[]},{type:"error",name:"InvalidInitialization",inputs:[]},{type:"error",name:"InvalidProof",inputs:[]},{type:"error",name:"InvalidToken",inputs:[]},{type:"error",name:"NotInitializing",inputs:[]},{type:"error",name:"OwnableInvalidOwner",inputs:[{name:"owner",type:"address",internalType:"address"}]},{type:"error",name:"OwnableUnauthorizedAccount",inputs:[{name:"account",type:"address",internalType:"address"}]},{type:"error",name:"SafeERC20FailedOperation",inputs:[{name:"token",type:"address",internalType:"address"}]},{type:"error",name:"UUPSUnauthorizedCallContext",inputs:[]},{type:"error",name:"UUPSUnsupportedProxiableUUID",inputs:[{name:"slot",type:"bytes32",internalType:"bytes32"}]}];var M=[{inputs:[{internalType:"uint256",name:"allowanceUsage",type:"uint256"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint64",name:"period",type:"uint64"}],name:"AllowanceExceeded",type:"error"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"CallPolicyViolated",type:"error"},{inputs:[{internalType:"bytes32",name:"param",type:"bytes32"},{internalType:"bytes32",name:"refValue",type:"bytes32"},{internalType:"uint8",name:"condition",type:"uint8"}],name:"ConditionFailed",type:"error"},{inputs:[{internalType:"uint256",name:"actualLength",type:"uint256"},{internalType:"uint256",name:"expectedLength",type:"uint256"}],name:"InvalidDataLength",type:"error"},{inputs:[{internalType:"address",name:"msgSender",type:"address"},{internalType:"address",name:"thisAddress",type:"address"}],name:"InvalidSignature",type:"error"},{inputs:[{internalType:"uint256",name:"lifetimeUsage",type:"uint256"},{internalType:"uint256",name:"limit",type:"uint256"}],name:"LifetimeUsageExceeded",type:"error"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"}],name:"MaxValueExceeded",type:"error"},{inputs:[],name:"NoCallsToExecute",type:"error"},{inputs:[],name:"SessionExpired",type:"error"},{inputs:[],name:"SessionExpiresTooSoon",type:"error"},{inputs:[],name:"SessionZeroSigner",type:"error"},{inputs:[{internalType:"address",name:"target",type:"address"}],name:"TransferPolicyViolated",type:"error"},{inputs:[],name:"UIDAlreadyProcessed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"executor",type:"address"},{indexed:!1,internalType:"uint256",name:"batchSize",type:"uint256"}],name:"Executed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"address",name:"newSigner",type:"address"},{components:[{internalType:"address",name:"signer",type:"address"},{internalType:"bool",name:"isWildcard",type:"bool"},{internalType:"uint256",name:"expiresAt",type:"uint256"},{components:[{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"},{components:[{internalType:"enum SessionLib.Condition",name:"condition",type:"uint8"},{internalType:"uint64",name:"index",type:"uint64"},{internalType:"bytes32",name:"refValue",type:"bytes32"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"limit",type:"tuple"}],internalType:"struct SessionLib.Constraint[]",name:"constraints",type:"tuple[]"}],internalType:"struct SessionLib.CallSpec[]",name:"callPolicies",type:"tuple[]"},{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"}],internalType:"struct SessionLib.TransferSpec[]",name:"transferPolicies",type:"tuple[]"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct SessionLib.SessionSpec",name:"sessionSpec",type:"tuple"}],name:"SessionCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"ValueReceived",type:"event"},{inputs:[{components:[{internalType:"address",name:"signer",type:"address"},{internalType:"bool",name:"isWildcard",type:"bool"},{internalType:"uint256",name:"expiresAt",type:"uint256"},{components:[{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"},{components:[{internalType:"enum SessionLib.Condition",name:"condition",type:"uint8"},{internalType:"uint64",name:"index",type:"uint64"},{internalType:"bytes32",name:"refValue",type:"bytes32"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"limit",type:"tuple"}],internalType:"struct SessionLib.Constraint[]",name:"constraints",type:"tuple[]"}],internalType:"struct SessionLib.CallSpec[]",name:"callPolicies",type:"tuple[]"},{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"}],internalType:"struct SessionLib.TransferSpec[]",name:"transferPolicies",type:"tuple[]"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct SessionLib.SessionSpec",name:"sessionSpec",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"createSessionWithSig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Call[]",name:"calls",type:"tuple[]"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Call[]",name:"calls",type:"tuple[]"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct WrappedCalls",name:"wrappedCalls",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"executeWithSig",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"signer",type:"address"}],name:"getCallPoliciesForSigner",outputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"},{components:[{internalType:"enum SessionLib.Condition",name:"condition",type:"uint8"},{internalType:"uint64",name:"index",type:"uint64"},{internalType:"bytes32",name:"refValue",type:"bytes32"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"limit",type:"tuple"}],internalType:"struct SessionLib.Constraint[]",name:"constraints",type:"tuple[]"}],internalType:"struct SessionLib.CallSpec[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"signer",type:"address"}],name:"getSessionExpirationForSigner",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"signer",type:"address"}],name:"getSessionStateForSigner",outputs:[{components:[{components:[{internalType:"uint256",name:"remaining",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"index",type:"uint256"}],internalType:"struct SessionLib.LimitState[]",name:"transferValue",type:"tuple[]"},{components:[{internalType:"uint256",name:"remaining",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"index",type:"uint256"}],internalType:"struct SessionLib.LimitState[]",name:"callValue",type:"tuple[]"},{components:[{internalType:"uint256",name:"remaining",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"bytes4",name:"selector",type:"bytes4"},{internalType:"uint256",name:"index",type:"uint256"}],internalType:"struct SessionLib.LimitState[]",name:"callParams",type:"tuple[]"}],internalType:"struct SessionLib.SessionState",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"signer",type:"address"}],name:"getTransferPoliciesForSigner",outputs:[{components:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"maxValuePerUse",type:"uint256"},{components:[{internalType:"enum SessionLib.LimitType",name:"limitType",type:"uint8"},{internalType:"uint256",name:"limit",type:"uint256"},{internalType:"uint256",name:"period",type:"uint256"}],internalType:"struct SessionLib.UsageLimit",name:"valueLimit",type:"tuple"}],internalType:"struct SessionLib.TransferSpec[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"signer",type:"address"}],name:"isWildcardSigner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}];exports.EIP7702StatelessDelegatorAbi = b; exports.bundlerAbi = a; exports.ensoRouterAbi = d; exports.ensoWalletV2FactoryAbi = _chunkRWOICHRWcjs.a; exports.generalAdapterAbi = s; exports.merkleDistributorAbi = f; exports.morphoVaultAbi = r; exports.multicall3Abi = _chunkOIYXOKTTcjs.a; exports.publicAllocatorAbi = u; exports.pythAbi = _chunkOUD27MU7cjs.a; exports.pythErrorsAbi = m; exports.thirdwebMinimalAccount = M;
4453
2
  //# sourceMappingURL=exports.cjs.map