@berachain/berajs 0.2.2 → 0.2.4

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 (205) hide show
  1. package/.claude/skills/berajs/SKILL.md +222 -0
  2. package/.claude/skills/berajs/references/dex.md +235 -0
  3. package/.claude/skills/berajs/references/pol.md +194 -0
  4. package/.claude/skills/berajs/references/staking.md +198 -0
  5. package/.claude/skills/berajs/references/tokens.md +170 -0
  6. package/dist/{BexStatusProvider-nS3NcdxI.d.cts → BexStatusProvider-DRymVlQf.d.cts} +1 -1
  7. package/dist/{BexStatusProvider-nS3NcdxI.d.ts → BexStatusProvider-DRymVlQf.d.ts} +1 -1
  8. package/dist/{HoneyConfigProvider-CK6mOKFH.d.ts → HoneyConfigProvider-DVP_9KZn.d.ts} +1 -1
  9. package/dist/{HoneyConfigProvider-Ca3ouozs.d.cts → HoneyConfigProvider-DfkjmzEf.d.cts} +1 -1
  10. package/dist/abi/exports.cjs +1 -1
  11. package/dist/abi/exports.cjs.map +1 -1
  12. package/dist/abi/exports.d.cts +1893 -25347
  13. package/dist/abi/exports.d.ts +1893 -25347
  14. package/dist/abi/exports.mjs +1 -1
  15. package/dist/abi/exports.mjs.map +1 -1
  16. package/dist/actions/exports.cjs +1 -1
  17. package/dist/actions/exports.cjs.map +1 -1
  18. package/dist/actions/exports.d.cts +10 -9
  19. package/dist/actions/exports.d.ts +10 -9
  20. package/dist/actions/exports.mjs +1 -1
  21. package/dist/actions/exports.mjs.map +1 -1
  22. package/dist/chunk-4GU2O2OW.cjs +4 -0
  23. package/dist/chunk-4GU2O2OW.cjs.map +1 -0
  24. package/dist/chunk-5XWELBWR.mjs +2 -0
  25. package/dist/chunk-5XWELBWR.mjs.map +1 -0
  26. package/dist/chunk-BS6K7HGH.cjs +2 -0
  27. package/dist/chunk-BS6K7HGH.cjs.map +1 -0
  28. package/dist/chunk-NLVWRMGD.mjs +2 -0
  29. package/dist/chunk-NLVWRMGD.mjs.map +1 -0
  30. package/dist/chunk-OUD27MU7.cjs +2 -0
  31. package/dist/chunk-OUD27MU7.cjs.map +1 -0
  32. package/dist/chunk-RW3JFPED.mjs +4 -0
  33. package/dist/chunk-RW3JFPED.mjs.map +1 -0
  34. package/dist/chunk-S3EAKCVM.cjs +2 -0
  35. package/dist/{chunk-PKXAW6MO.cjs.map → chunk-S3EAKCVM.cjs.map} +1 -1
  36. package/dist/chunk-YNO7BCCM.mjs +2 -0
  37. package/dist/{chunk-3YXSUBA5.mjs.map → chunk-YNO7BCCM.mjs.map} +1 -1
  38. package/dist/contexts/exports.d.cts +3 -3
  39. package/dist/contexts/exports.d.ts +3 -3
  40. package/dist/enum/exports.d.cts +1 -1
  41. package/dist/enum/exports.d.ts +1 -1
  42. package/dist/errors/exports.d.cts +1 -1
  43. package/dist/errors/exports.d.ts +1 -1
  44. package/dist/{getValidatorQueuedOperatorAddress-RW4OMcD1.d.ts → getValidatorQueuedOperatorAddress-CqR6cyqC.d.ts} +3 -3
  45. package/dist/{getValidatorQueuedOperatorAddress-Dstyaomr.d.cts → getValidatorQueuedOperatorAddress-DZgrPmZ2.d.cts} +3 -3
  46. package/dist/{global.d-wYu8G8IQ.d.ts → global.d-BeYWDreg.d.ts} +5 -4
  47. package/dist/{global.d-CN6l2b9E.d.cts → global.d-DghRxpHd.d.cts} +5 -4
  48. package/dist/hooks/exports.cjs +3 -3
  49. package/dist/hooks/exports.cjs.map +1 -1
  50. package/dist/hooks/exports.d.cts +63 -39
  51. package/dist/hooks/exports.d.ts +63 -39
  52. package/dist/hooks/exports.mjs +3 -3
  53. package/dist/hooks/exports.mjs.map +1 -1
  54. package/dist/{txnEnum-BlBYhNRl.d.cts → txnEnum-DxPRHSJt.d.cts} +1 -1
  55. package/dist/{txnEnum-BlBYhNRl.d.ts → txnEnum-DxPRHSJt.d.ts} +1 -1
  56. package/dist/types/exports.d.cts +3 -3
  57. package/dist/types/exports.d.ts +3 -3
  58. package/dist/{useHoneySwapState-D1DKG_Of.d.ts → useHoneySwapState-B494PQDl.d.ts} +1 -1
  59. package/dist/{useHoneySwapState-B-vmIP1b.d.cts → useHoneySwapState-D6vpv19r.d.cts} +1 -1
  60. package/dist/utils/exports.cjs +1 -1
  61. package/dist/utils/exports.cjs.map +1 -1
  62. package/dist/utils/exports.d.cts +2 -2
  63. package/dist/utils/exports.d.ts +2 -2
  64. package/dist/utils/exports.mjs +1 -1
  65. package/dist/utils/exports.mjs.map +1 -1
  66. package/package.json +9 -10
  67. package/src/abi/exports.ts +0 -27
  68. package/src/actions/bend/getConvertToAssets.ts +1 -1
  69. package/src/actions/bend/getMaxDeposit.ts +1 -1
  70. package/src/actions/dex/aggregators/bex.ts +2 -1
  71. package/src/actions/dex/aggregators/enso/enso.ts +3 -2
  72. package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +2 -3
  73. package/src/actions/dex/aggregators/erc4626.ts +2 -1
  74. package/src/actions/dex/aggregators/fly.ts +2 -1
  75. package/src/actions/dex/aggregators/haiku.ts +2 -1
  76. package/src/actions/dex/aggregators/kyberswap.ts +2 -2
  77. package/src/actions/dex/aggregators/oogabooga.ts +2 -1
  78. package/src/actions/dex/aggregators/openOcean.ts +2 -1
  79. package/src/actions/dex/aggregators/wbera.ts +2 -1
  80. package/src/actions/dex/getVaultPausedState.ts +2 -1
  81. package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +1 -1
  82. package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +2 -1
  83. package/src/actions/governance/__tests__/getDecodedFunctionData.integration.test.ts +66 -78
  84. package/src/actions/governance/__tests__/getQuorum.integration.test.ts +6 -7
  85. package/src/actions/governance/getDecodedFunctionData.ts +2 -2
  86. package/src/actions/governance/getProposalFromTx.ts +2 -1
  87. package/src/actions/governance/getProposalParams.ts +3 -2
  88. package/src/actions/governance/getQuorum.ts +2 -1
  89. package/src/actions/honey/getCollateralWeights.ts +2 -1
  90. package/src/actions/honey/getGlobalCapLimit.ts +2 -1
  91. package/src/actions/honey/getHoneyCollaterals.ts +2 -1
  92. package/src/actions/honey/getHoneyFees.ts +2 -1
  93. package/src/actions/honey/getHoneyPausedState.ts +2 -1
  94. package/src/actions/honey/getHoneyPreview.ts +2 -1
  95. package/src/actions/honey/getHoneyPythPriceOracle.ts +1 -1
  96. package/src/actions/honey/getHoneyRootPriceOracle.ts +2 -1
  97. package/src/actions/honey/getHoneyVaultsBalance.ts +3 -2
  98. package/src/actions/honey/getRelativeCapLimit.ts +2 -1
  99. package/src/actions/honey/getSharesWithoutFees.ts +3 -2
  100. package/src/actions/honey/getSwapPayload.ts +3 -2
  101. package/src/actions/honey/isBadCollateralAsset.ts +3 -2
  102. package/src/actions/honey/isBasketModeEnabled.ts +3 -2
  103. package/src/actions/pol/getBgtTokenTotalBoosts.ts +2 -1
  104. package/src/actions/pol/getLSTStakeConfig.ts +2 -1
  105. package/src/actions/pol/getRewardTokenToBeraRate.ts +2 -1
  106. package/src/actions/pol/getRewardVaultBeaconImplementation.ts +2 -1
  107. package/src/actions/pol/getRewardVaultDurationConstants.ts +2 -1
  108. package/src/actions/pol/getRewardVaultFromToken.ts +2 -1
  109. package/src/actions/pol/getRewardVaultIncentives.ts +2 -1
  110. package/src/actions/pol/getRewardVaultRewards.ts +2 -1
  111. package/src/actions/pol/getRewardVaultStakingToken.ts +1 -1
  112. package/src/actions/pol/getRewardVaults.ts +2 -1
  113. package/src/actions/pol/getSWBeraVaultMetadata.ts +2 -1
  114. package/src/actions/pol/getSWBeraWithdrawal.ts +2 -1
  115. package/src/actions/pol/getStakeWithdrawalCooldown.ts +1 -1
  116. package/src/actions/pol/getTotalStakedAmount.ts +2 -1
  117. package/src/actions/pol/getUserVaults.ts +2 -1
  118. package/src/actions/pol/getUserVaultsBalance.ts +2 -1
  119. package/src/actions/pol/getUserVaultsReward.ts +1 -1
  120. package/src/actions/pol/getVaultsSupply.ts +1 -1
  121. package/src/actions/pyth/getHoneyPythFeeds.ts +2 -1
  122. package/src/actions/transactions/beraWriteContract.integration.test.ts +48 -51
  123. package/src/actions/validators/getActiveBoostAndCommissionChangeDelay.ts +3 -2
  124. package/src/actions/validators/getBaselineRewardAllocation.ts +2 -1
  125. package/src/actions/validators/getDefaultRewardAllocation.ts +2 -1
  126. package/src/actions/validators/getUserBoostsOnValidator.ts +2 -1
  127. package/src/actions/validators/getValidatorCommission.ts +2 -1
  128. package/src/actions/validators/getValidatorOperatorAddress.ts +2 -1
  129. package/src/actions/validators/getValidatorQueuedCommission.ts +2 -1
  130. package/src/actions/validators/getValidatorQueuedOperatorAddress.ts +2 -1
  131. package/src/actions/validators/getValidatorQueuedRewardAllocation.ts +2 -1
  132. package/src/actions/validators/getValidatorRewardAllocation.ts +2 -1
  133. package/src/actions/validators/getValidatorRewardAllocatorAddress.ts +2 -1
  134. package/src/actions/validators/utils/__tests__/validatorUtils.integration.test.ts +10 -11
  135. package/src/errors/getRevertReason.integration.test.ts +115 -107
  136. package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +2 -1
  137. package/src/hooks/dex/useCreatePool.ts +2 -1
  138. package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +2 -1
  139. package/src/hooks/governance/useGetPastVotes.ts +2 -1
  140. package/src/hooks/governance/useHasVoted.ts +2 -1
  141. package/src/hooks/governance/useIsCanceller.ts +2 -1
  142. package/src/hooks/governance/usePollProposalThreshold.ts +2 -1
  143. package/src/hooks/governance/usePollUserDelegates.ts +2 -1
  144. package/src/hooks/governance/useProposalSnapshot.ts +2 -1
  145. package/src/hooks/governance/useProposalState.ts +2 -1
  146. package/src/hooks/governance/useProposalTimelockState.ts +5 -4
  147. package/src/hooks/pol/useBgtUnstakedBalance.ts +2 -1
  148. package/src/hooks/pol/useOnChainRewardVault.ts +2 -1
  149. package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +2 -1
  150. package/src/hooks/pol/useRewardVaultFromToken.ts +2 -1
  151. package/src/hooks/pol/useStakedData.ts +169 -92
  152. package/src/hooks/validators/useOnChainValidator.ts +4 -3
  153. package/src/types/pol.d.ts +1 -0
  154. package/dist/chunk-3YXSUBA5.mjs +0 -2
  155. package/dist/chunk-A4UDYSB6.mjs +0 -4
  156. package/dist/chunk-A4UDYSB6.mjs.map +0 -1
  157. package/dist/chunk-CYKCYPFR.cjs +0 -2
  158. package/dist/chunk-CYKCYPFR.cjs.map +0 -1
  159. package/dist/chunk-ECRMUMTA.mjs +0 -2
  160. package/dist/chunk-ECRMUMTA.mjs.map +0 -1
  161. package/dist/chunk-F4BKSBEM.mjs +0 -2
  162. package/dist/chunk-F4BKSBEM.mjs.map +0 -1
  163. package/dist/chunk-FL2N3XHK.cjs +0 -2
  164. package/dist/chunk-FL2N3XHK.cjs.map +0 -1
  165. package/dist/chunk-MUCEYO3E.cjs +0 -4
  166. package/dist/chunk-MUCEYO3E.cjs.map +0 -1
  167. package/dist/chunk-P2Q7CMUD.cjs +0 -2
  168. package/dist/chunk-P2Q7CMUD.cjs.map +0 -1
  169. package/dist/chunk-PKXAW6MO.cjs +0 -2
  170. package/dist/chunk-Q3SCM6WL.mjs +0 -2
  171. package/dist/chunk-Q3SCM6WL.mjs.map +0 -1
  172. package/dist/chunk-TEBJWAVU.mjs +0 -2
  173. package/dist/chunk-TEBJWAVU.mjs.map +0 -1
  174. package/dist/chunk-VP7XUOSI.cjs +0 -2
  175. package/dist/chunk-VP7XUOSI.cjs.map +0 -1
  176. package/dist/pythWrapper-CBjsmmsK.d.cts +0 -1958
  177. package/dist/pythWrapper-CBjsmmsK.d.ts +0 -1958
  178. package/src/abi/bend/metaMorpho.ts +0 -2584
  179. package/src/abi/bend/morpho.ts +0 -444
  180. package/src/abi/bex/aggregatorsRouter.ts +0 -492
  181. package/src/abi/bex/balancerComposableStablePoolFactoryV6.ts +0 -283
  182. package/src/abi/bex/balancerPoolCreationHelper.ts +0 -267
  183. package/src/abi/bex/balancerVault.ts +0 -757
  184. package/src/abi/governance/governance.ts +0 -1016
  185. package/src/abi/governance/governanceTimelock.ts +0 -589
  186. package/src/abi/honey/collateralVault.ts +0 -1144
  187. package/src/abi/honey/honey.ts +0 -563
  188. package/src/abi/honey/honeyFactory.ts +0 -1270
  189. package/src/abi/honey/honeyFactoryReader.ts +0 -894
  190. package/src/abi/honey/honeyRootOracle.ts +0 -492
  191. package/src/abi/honey/pythPriceOracle.ts +0 -619
  192. package/src/abi/honey/pythWrapper.ts +0 -446
  193. package/src/abi/pol/LSTStakerVault.ts +0 -2032
  194. package/src/abi/pol/beaconDeposit.ts +0 -595
  195. package/src/abi/pol/beraChef.ts +0 -1019
  196. package/src/abi/pol/bgt.ts +0 -1008
  197. package/src/abi/pol/bgtIncentiveDistributor.ts +0 -640
  198. package/src/abi/pol/bgtStaker.ts +0 -1034
  199. package/src/abi/pol/rewardAllocationFactory.ts +0 -408
  200. package/src/abi/pol/rewardVault.ts +0 -1928
  201. package/src/abi/pol/rewardVaultFactory.ts +0 -586
  202. package/src/abi/pol/rewardVaultHelper.ts +0 -882
  203. package/src/abi/pol/stakeBeraVault.ts +0 -1116
  204. package/src/abi/pol/stakeBeraVaultWithdrawalRequest.ts +0 -618
  205. package/src/abi/pol/wbera.ts +0 -366
@@ -1,1144 +0,0 @@
1
- export const collateralVaultAbi = [
2
- {
3
- type: "constructor",
4
- inputs: [],
5
- stateMutability: "nonpayable",
6
- },
7
- {
8
- type: "function",
9
- name: "DOMAIN_SEPARATOR",
10
- inputs: [],
11
- outputs: [
12
- {
13
- name: "result",
14
- type: "bytes32",
15
- internalType: "bytes32",
16
- },
17
- ],
18
- stateMutability: "view",
19
- },
20
- {
21
- type: "function",
22
- name: "allowance",
23
- inputs: [
24
- {
25
- name: "owner",
26
- type: "address",
27
- internalType: "address",
28
- },
29
- {
30
- name: "spender",
31
- type: "address",
32
- internalType: "address",
33
- },
34
- ],
35
- outputs: [
36
- {
37
- name: "result",
38
- type: "uint256",
39
- internalType: "uint256",
40
- },
41
- ],
42
- stateMutability: "view",
43
- },
44
- {
45
- type: "function",
46
- name: "approve",
47
- inputs: [
48
- {
49
- name: "spender",
50
- type: "address",
51
- internalType: "address",
52
- },
53
- {
54
- name: "amount",
55
- type: "uint256",
56
- internalType: "uint256",
57
- },
58
- ],
59
- outputs: [
60
- {
61
- name: "",
62
- type: "bool",
63
- internalType: "bool",
64
- },
65
- ],
66
- stateMutability: "nonpayable",
67
- },
68
- {
69
- type: "function",
70
- name: "asset",
71
- inputs: [],
72
- outputs: [
73
- {
74
- name: "",
75
- type: "address",
76
- internalType: "address",
77
- },
78
- ],
79
- stateMutability: "view",
80
- },
81
- {
82
- type: "function",
83
- name: "balanceOf",
84
- inputs: [
85
- {
86
- name: "owner",
87
- type: "address",
88
- internalType: "address",
89
- },
90
- ],
91
- outputs: [
92
- {
93
- name: "result",
94
- type: "uint256",
95
- internalType: "uint256",
96
- },
97
- ],
98
- stateMutability: "view",
99
- },
100
- {
101
- type: "function",
102
- name: "convertToAssets",
103
- inputs: [
104
- {
105
- name: "shares",
106
- type: "uint256",
107
- internalType: "uint256",
108
- },
109
- ],
110
- outputs: [
111
- {
112
- name: "",
113
- type: "uint256",
114
- internalType: "uint256",
115
- },
116
- ],
117
- stateMutability: "view",
118
- },
119
- {
120
- type: "function",
121
- name: "convertToShares",
122
- inputs: [
123
- {
124
- name: "assets",
125
- type: "uint256",
126
- internalType: "uint256",
127
- },
128
- ],
129
- outputs: [
130
- {
131
- name: "",
132
- type: "uint256",
133
- internalType: "uint256",
134
- },
135
- ],
136
- stateMutability: "view",
137
- },
138
- {
139
- type: "function",
140
- name: "custodyInfo",
141
- inputs: [],
142
- outputs: [
143
- {
144
- name: "isCustodyVault",
145
- type: "bool",
146
- internalType: "bool",
147
- },
148
- {
149
- name: "custodyAddress",
150
- type: "address",
151
- internalType: "address",
152
- },
153
- ],
154
- stateMutability: "view",
155
- },
156
- {
157
- type: "function",
158
- name: "decimals",
159
- inputs: [],
160
- outputs: [
161
- {
162
- name: "",
163
- type: "uint8",
164
- internalType: "uint8",
165
- },
166
- ],
167
- stateMutability: "view",
168
- },
169
- {
170
- type: "function",
171
- name: "deposit",
172
- inputs: [
173
- {
174
- name: "assets",
175
- type: "uint256",
176
- internalType: "uint256",
177
- },
178
- {
179
- name: "receiver",
180
- type: "address",
181
- internalType: "address",
182
- },
183
- ],
184
- outputs: [
185
- {
186
- name: "",
187
- type: "uint256",
188
- internalType: "uint256",
189
- },
190
- ],
191
- stateMutability: "nonpayable",
192
- },
193
- {
194
- type: "function",
195
- name: "factory",
196
- inputs: [],
197
- outputs: [
198
- {
199
- name: "",
200
- type: "address",
201
- internalType: "address",
202
- },
203
- ],
204
- stateMutability: "view",
205
- },
206
- {
207
- type: "function",
208
- name: "initialize",
209
- inputs: [
210
- {
211
- name: "asset_",
212
- type: "address",
213
- internalType: "address",
214
- },
215
- {
216
- name: "_factory",
217
- type: "address",
218
- internalType: "address",
219
- },
220
- ],
221
- outputs: [],
222
- stateMutability: "nonpayable",
223
- },
224
- {
225
- type: "function",
226
- name: "maxDeposit",
227
- inputs: [
228
- {
229
- name: "to",
230
- type: "address",
231
- internalType: "address",
232
- },
233
- ],
234
- outputs: [
235
- {
236
- name: "maxAssets",
237
- type: "uint256",
238
- internalType: "uint256",
239
- },
240
- ],
241
- stateMutability: "view",
242
- },
243
- {
244
- type: "function",
245
- name: "maxMint",
246
- inputs: [
247
- {
248
- name: "to",
249
- type: "address",
250
- internalType: "address",
251
- },
252
- ],
253
- outputs: [
254
- {
255
- name: "maxShares",
256
- type: "uint256",
257
- internalType: "uint256",
258
- },
259
- ],
260
- stateMutability: "view",
261
- },
262
- {
263
- type: "function",
264
- name: "maxRedeem",
265
- inputs: [
266
- {
267
- name: "owner",
268
- type: "address",
269
- internalType: "address",
270
- },
271
- ],
272
- outputs: [
273
- {
274
- name: "maxShares",
275
- type: "uint256",
276
- internalType: "uint256",
277
- },
278
- ],
279
- stateMutability: "view",
280
- },
281
- {
282
- type: "function",
283
- name: "maxWithdraw",
284
- inputs: [
285
- {
286
- name: "owner",
287
- type: "address",
288
- internalType: "address",
289
- },
290
- ],
291
- outputs: [
292
- {
293
- name: "maxAssets",
294
- type: "uint256",
295
- internalType: "uint256",
296
- },
297
- ],
298
- stateMutability: "view",
299
- },
300
- {
301
- type: "function",
302
- name: "mint",
303
- inputs: [
304
- {
305
- name: "shares",
306
- type: "uint256",
307
- internalType: "uint256",
308
- },
309
- {
310
- name: "receiver",
311
- type: "address",
312
- internalType: "address",
313
- },
314
- ],
315
- outputs: [
316
- {
317
- name: "",
318
- type: "uint256",
319
- internalType: "uint256",
320
- },
321
- ],
322
- stateMutability: "nonpayable",
323
- },
324
- {
325
- type: "function",
326
- name: "name",
327
- inputs: [],
328
- outputs: [
329
- {
330
- name: "",
331
- type: "string",
332
- internalType: "string",
333
- },
334
- ],
335
- stateMutability: "view",
336
- },
337
- {
338
- type: "function",
339
- name: "nonces",
340
- inputs: [
341
- {
342
- name: "owner",
343
- type: "address",
344
- internalType: "address",
345
- },
346
- ],
347
- outputs: [
348
- {
349
- name: "result",
350
- type: "uint256",
351
- internalType: "uint256",
352
- },
353
- ],
354
- stateMutability: "view",
355
- },
356
- {
357
- type: "function",
358
- name: "pause",
359
- inputs: [],
360
- outputs: [],
361
- stateMutability: "nonpayable",
362
- },
363
- {
364
- type: "function",
365
- name: "paused",
366
- inputs: [],
367
- outputs: [
368
- {
369
- name: "",
370
- type: "bool",
371
- internalType: "bool",
372
- },
373
- ],
374
- stateMutability: "view",
375
- },
376
- {
377
- type: "function",
378
- name: "permit",
379
- inputs: [
380
- {
381
- name: "owner",
382
- type: "address",
383
- internalType: "address",
384
- },
385
- {
386
- name: "spender",
387
- type: "address",
388
- internalType: "address",
389
- },
390
- {
391
- name: "value",
392
- type: "uint256",
393
- internalType: "uint256",
394
- },
395
- {
396
- name: "deadline",
397
- type: "uint256",
398
- internalType: "uint256",
399
- },
400
- {
401
- name: "v",
402
- type: "uint8",
403
- internalType: "uint8",
404
- },
405
- {
406
- name: "r",
407
- type: "bytes32",
408
- internalType: "bytes32",
409
- },
410
- {
411
- name: "s",
412
- type: "bytes32",
413
- internalType: "bytes32",
414
- },
415
- ],
416
- outputs: [],
417
- stateMutability: "nonpayable",
418
- },
419
- {
420
- type: "function",
421
- name: "previewDeposit",
422
- inputs: [
423
- {
424
- name: "assets",
425
- type: "uint256",
426
- internalType: "uint256",
427
- },
428
- ],
429
- outputs: [
430
- {
431
- name: "shares",
432
- type: "uint256",
433
- internalType: "uint256",
434
- },
435
- ],
436
- stateMutability: "view",
437
- },
438
- {
439
- type: "function",
440
- name: "previewMint",
441
- inputs: [
442
- {
443
- name: "shares",
444
- type: "uint256",
445
- internalType: "uint256",
446
- },
447
- ],
448
- outputs: [
449
- {
450
- name: "assets",
451
- type: "uint256",
452
- internalType: "uint256",
453
- },
454
- ],
455
- stateMutability: "view",
456
- },
457
- {
458
- type: "function",
459
- name: "previewRedeem",
460
- inputs: [
461
- {
462
- name: "shares",
463
- type: "uint256",
464
- internalType: "uint256",
465
- },
466
- ],
467
- outputs: [
468
- {
469
- name: "assets",
470
- type: "uint256",
471
- internalType: "uint256",
472
- },
473
- ],
474
- stateMutability: "view",
475
- },
476
- {
477
- type: "function",
478
- name: "previewWithdraw",
479
- inputs: [
480
- {
481
- name: "assets",
482
- type: "uint256",
483
- internalType: "uint256",
484
- },
485
- ],
486
- outputs: [
487
- {
488
- name: "shares",
489
- type: "uint256",
490
- internalType: "uint256",
491
- },
492
- ],
493
- stateMutability: "view",
494
- },
495
- {
496
- type: "function",
497
- name: "redeem",
498
- inputs: [
499
- {
500
- name: "shares",
501
- type: "uint256",
502
- internalType: "uint256",
503
- },
504
- {
505
- name: "receiver",
506
- type: "address",
507
- internalType: "address",
508
- },
509
- {
510
- name: "owner",
511
- type: "address",
512
- internalType: "address",
513
- },
514
- ],
515
- outputs: [
516
- {
517
- name: "",
518
- type: "uint256",
519
- internalType: "uint256",
520
- },
521
- ],
522
- stateMutability: "nonpayable",
523
- },
524
- {
525
- type: "function",
526
- name: "setCustodyInfo",
527
- inputs: [
528
- {
529
- name: "_isCustodyVault",
530
- type: "bool",
531
- internalType: "bool",
532
- },
533
- {
534
- name: "_custodyAddress",
535
- type: "address",
536
- internalType: "address",
537
- },
538
- ],
539
- outputs: [],
540
- stateMutability: "nonpayable",
541
- },
542
- {
543
- type: "function",
544
- name: "symbol",
545
- inputs: [],
546
- outputs: [
547
- {
548
- name: "",
549
- type: "string",
550
- internalType: "string",
551
- },
552
- ],
553
- stateMutability: "view",
554
- },
555
- {
556
- type: "function",
557
- name: "totalAssets",
558
- inputs: [],
559
- outputs: [
560
- {
561
- name: "",
562
- type: "uint256",
563
- internalType: "uint256",
564
- },
565
- ],
566
- stateMutability: "view",
567
- },
568
- {
569
- type: "function",
570
- name: "totalSupply",
571
- inputs: [],
572
- outputs: [
573
- {
574
- name: "result",
575
- type: "uint256",
576
- internalType: "uint256",
577
- },
578
- ],
579
- stateMutability: "view",
580
- },
581
- {
582
- type: "function",
583
- name: "transfer",
584
- inputs: [
585
- {
586
- name: "to",
587
- type: "address",
588
- internalType: "address",
589
- },
590
- {
591
- name: "amount",
592
- type: "uint256",
593
- internalType: "uint256",
594
- },
595
- ],
596
- outputs: [
597
- {
598
- name: "",
599
- type: "bool",
600
- internalType: "bool",
601
- },
602
- ],
603
- stateMutability: "nonpayable",
604
- },
605
- {
606
- type: "function",
607
- name: "transferFrom",
608
- inputs: [
609
- {
610
- name: "from",
611
- type: "address",
612
- internalType: "address",
613
- },
614
- {
615
- name: "to",
616
- type: "address",
617
- internalType: "address",
618
- },
619
- {
620
- name: "amount",
621
- type: "uint256",
622
- internalType: "uint256",
623
- },
624
- ],
625
- outputs: [
626
- {
627
- name: "",
628
- type: "bool",
629
- internalType: "bool",
630
- },
631
- ],
632
- stateMutability: "nonpayable",
633
- },
634
- {
635
- type: "function",
636
- name: "unpause",
637
- inputs: [],
638
- outputs: [],
639
- stateMutability: "nonpayable",
640
- },
641
- {
642
- type: "function",
643
- name: "withdraw",
644
- inputs: [
645
- {
646
- name: "assets",
647
- type: "uint256",
648
- internalType: "uint256",
649
- },
650
- {
651
- name: "receiver",
652
- type: "address",
653
- internalType: "address",
654
- },
655
- {
656
- name: "owner",
657
- type: "address",
658
- internalType: "address",
659
- },
660
- ],
661
- outputs: [
662
- {
663
- name: "",
664
- type: "uint256",
665
- internalType: "uint256",
666
- },
667
- ],
668
- stateMutability: "nonpayable",
669
- },
670
- {
671
- type: "event",
672
- name: "Approval",
673
- inputs: [
674
- {
675
- name: "owner",
676
- type: "address",
677
- indexed: true,
678
- internalType: "address",
679
- },
680
- {
681
- name: "spender",
682
- type: "address",
683
- indexed: true,
684
- internalType: "address",
685
- },
686
- {
687
- name: "amount",
688
- type: "uint256",
689
- indexed: false,
690
- internalType: "uint256",
691
- },
692
- ],
693
- anonymous: false,
694
- },
695
- {
696
- type: "event",
697
- name: "CustodyInfoSet",
698
- inputs: [
699
- {
700
- name: "isCustodyVault",
701
- type: "bool",
702
- indexed: true,
703
- internalType: "bool",
704
- },
705
- {
706
- name: "custodyAddress",
707
- type: "address",
708
- indexed: true,
709
- internalType: "address",
710
- },
711
- ],
712
- anonymous: false,
713
- },
714
- {
715
- type: "event",
716
- name: "Deposit",
717
- inputs: [
718
- {
719
- name: "by",
720
- type: "address",
721
- indexed: true,
722
- internalType: "address",
723
- },
724
- {
725
- name: "owner",
726
- type: "address",
727
- indexed: true,
728
- internalType: "address",
729
- },
730
- {
731
- name: "assets",
732
- type: "uint256",
733
- indexed: false,
734
- internalType: "uint256",
735
- },
736
- {
737
- name: "shares",
738
- type: "uint256",
739
- indexed: false,
740
- internalType: "uint256",
741
- },
742
- ],
743
- anonymous: false,
744
- },
745
- {
746
- type: "event",
747
- name: "Initialized",
748
- inputs: [
749
- {
750
- name: "version",
751
- type: "uint64",
752
- indexed: false,
753
- internalType: "uint64",
754
- },
755
- ],
756
- anonymous: false,
757
- },
758
- {
759
- type: "event",
760
- name: "Paused",
761
- inputs: [
762
- {
763
- name: "account",
764
- type: "address",
765
- indexed: false,
766
- internalType: "address",
767
- },
768
- ],
769
- anonymous: false,
770
- },
771
- {
772
- type: "event",
773
- name: "Transfer",
774
- inputs: [
775
- {
776
- name: "from",
777
- type: "address",
778
- indexed: true,
779
- internalType: "address",
780
- },
781
- {
782
- name: "to",
783
- type: "address",
784
- indexed: true,
785
- internalType: "address",
786
- },
787
- {
788
- name: "amount",
789
- type: "uint256",
790
- indexed: false,
791
- internalType: "uint256",
792
- },
793
- ],
794
- anonymous: false,
795
- },
796
- {
797
- type: "event",
798
- name: "Unpaused",
799
- inputs: [
800
- {
801
- name: "account",
802
- type: "address",
803
- indexed: false,
804
- internalType: "address",
805
- },
806
- ],
807
- anonymous: false,
808
- },
809
- {
810
- type: "event",
811
- name: "Withdraw",
812
- inputs: [
813
- {
814
- name: "by",
815
- type: "address",
816
- indexed: true,
817
- internalType: "address",
818
- },
819
- {
820
- name: "to",
821
- type: "address",
822
- indexed: true,
823
- internalType: "address",
824
- },
825
- {
826
- name: "owner",
827
- type: "address",
828
- indexed: true,
829
- internalType: "address",
830
- },
831
- {
832
- name: "assets",
833
- type: "uint256",
834
- indexed: false,
835
- internalType: "uint256",
836
- },
837
- {
838
- name: "shares",
839
- type: "uint256",
840
- indexed: false,
841
- internalType: "uint256",
842
- },
843
- ],
844
- anonymous: false,
845
- },
846
- {
847
- type: "error",
848
- name: "AllowanceOverflow",
849
- inputs: [],
850
- },
851
- {
852
- type: "error",
853
- name: "AllowanceUnderflow",
854
- inputs: [],
855
- },
856
- {
857
- type: "error",
858
- name: "AmountOutOfRange",
859
- inputs: [],
860
- },
861
- {
862
- type: "error",
863
- name: "AssetIsBadCollateral",
864
- inputs: [
865
- {
866
- name: "asset",
867
- type: "address",
868
- internalType: "address",
869
- },
870
- ],
871
- },
872
- {
873
- type: "error",
874
- name: "AssetIsNotBadCollateral",
875
- inputs: [
876
- {
877
- name: "asset",
878
- type: "address",
879
- internalType: "address",
880
- },
881
- ],
882
- },
883
- {
884
- type: "error",
885
- name: "AssetNotRegistered",
886
- inputs: [
887
- {
888
- name: "asset",
889
- type: "address",
890
- internalType: "address",
891
- },
892
- ],
893
- },
894
- {
895
- type: "error",
896
- name: "CapCanCauseDenialOfService",
897
- inputs: [],
898
- },
899
- {
900
- type: "error",
901
- name: "DepositMoreThanMax",
902
- inputs: [],
903
- },
904
- {
905
- type: "error",
906
- name: "EnforcedPause",
907
- inputs: [],
908
- },
909
- {
910
- type: "error",
911
- name: "ExceedGlobalCap",
912
- inputs: [],
913
- },
914
- {
915
- type: "error",
916
- name: "ExceedRelativeCap",
917
- inputs: [],
918
- },
919
- {
920
- type: "error",
921
- name: "ExpectedPause",
922
- inputs: [],
923
- },
924
- {
925
- type: "error",
926
- name: "InsufficientAllowance",
927
- inputs: [],
928
- },
929
- {
930
- type: "error",
931
- name: "InsufficientAssets",
932
- inputs: [
933
- {
934
- name: "assets",
935
- type: "uint256",
936
- internalType: "uint256",
937
- },
938
- {
939
- name: "shares",
940
- type: "uint256",
941
- internalType: "uint256",
942
- },
943
- ],
944
- },
945
- {
946
- type: "error",
947
- name: "InsufficientBalance",
948
- inputs: [],
949
- },
950
- {
951
- type: "error",
952
- name: "InsufficientRecapitalizeAmount",
953
- inputs: [
954
- {
955
- name: "amount",
956
- type: "uint256",
957
- internalType: "uint256",
958
- },
959
- ],
960
- },
961
- {
962
- type: "error",
963
- name: "InvalidCustodyInfoInput",
964
- inputs: [],
965
- },
966
- {
967
- type: "error",
968
- name: "InvalidInitialization",
969
- inputs: [],
970
- },
971
- {
972
- type: "error",
973
- name: "InvalidPermit",
974
- inputs: [],
975
- },
976
- {
977
- type: "error",
978
- name: "LiquidationDisabled",
979
- inputs: [],
980
- },
981
- {
982
- type: "error",
983
- name: "LiquidationWithReferenceCollateral",
984
- inputs: [],
985
- },
986
- {
987
- type: "error",
988
- name: "MintMoreThanMax",
989
- inputs: [],
990
- },
991
- {
992
- type: "error",
993
- name: "MismatchedOwner",
994
- inputs: [
995
- {
996
- name: "owner",
997
- type: "address",
998
- internalType: "address",
999
- },
1000
- {
1001
- name: "expectedOwner",
1002
- type: "address",
1003
- internalType: "address",
1004
- },
1005
- ],
1006
- },
1007
- {
1008
- type: "error",
1009
- name: "NotFactory",
1010
- inputs: [],
1011
- },
1012
- {
1013
- type: "error",
1014
- name: "NotInitializing",
1015
- inputs: [],
1016
- },
1017
- {
1018
- type: "error",
1019
- name: "NotPegged",
1020
- inputs: [
1021
- {
1022
- name: "asset",
1023
- type: "address",
1024
- internalType: "address",
1025
- },
1026
- ],
1027
- },
1028
- {
1029
- type: "error",
1030
- name: "OverOneHundredPercentRate",
1031
- inputs: [
1032
- {
1033
- name: "rate",
1034
- type: "uint256",
1035
- internalType: "uint256",
1036
- },
1037
- ],
1038
- },
1039
- {
1040
- type: "error",
1041
- name: "Permit2AllowanceIsFixedAtInfinity",
1042
- inputs: [],
1043
- },
1044
- {
1045
- type: "error",
1046
- name: "PermitExpired",
1047
- inputs: [],
1048
- },
1049
- {
1050
- type: "error",
1051
- name: "RecapitalizeNotNeeded",
1052
- inputs: [
1053
- {
1054
- name: "asset",
1055
- type: "address",
1056
- internalType: "address",
1057
- },
1058
- ],
1059
- },
1060
- {
1061
- type: "error",
1062
- name: "RedeemMoreThanMax",
1063
- inputs: [],
1064
- },
1065
- {
1066
- type: "error",
1067
- name: "TotalSupplyOverflow",
1068
- inputs: [],
1069
- },
1070
- {
1071
- type: "error",
1072
- name: "UnauthorizedCaller",
1073
- inputs: [
1074
- {
1075
- name: "caller",
1076
- type: "address",
1077
- internalType: "address",
1078
- },
1079
- {
1080
- name: "expectedCaller",
1081
- type: "address",
1082
- internalType: "address",
1083
- },
1084
- ],
1085
- },
1086
- {
1087
- type: "error",
1088
- name: "UnderNinetyEightPercentRate",
1089
- inputs: [
1090
- {
1091
- name: "rate",
1092
- type: "uint256",
1093
- internalType: "uint256",
1094
- },
1095
- ],
1096
- },
1097
- {
1098
- type: "error",
1099
- name: "UnexpectedBasketModeStatus",
1100
- inputs: [],
1101
- },
1102
- {
1103
- type: "error",
1104
- name: "VaultAlreadyRegistered",
1105
- inputs: [
1106
- {
1107
- name: "asset",
1108
- type: "address",
1109
- internalType: "address",
1110
- },
1111
- ],
1112
- },
1113
- {
1114
- type: "error",
1115
- name: "VaultPaused",
1116
- inputs: [],
1117
- },
1118
- {
1119
- type: "error",
1120
- name: "WithdrawMoreThanMax",
1121
- inputs: [],
1122
- },
1123
- {
1124
- type: "error",
1125
- name: "ZeroAddress",
1126
- inputs: [],
1127
- },
1128
- {
1129
- type: "error",
1130
- name: "ZeroAmount",
1131
- inputs: [],
1132
- },
1133
- {
1134
- type: "error",
1135
- name: "ZeroWeight",
1136
- inputs: [
1137
- {
1138
- name: "asset",
1139
- type: "address",
1140
- internalType: "address",
1141
- },
1142
- ],
1143
- },
1144
- ] as const;