@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,894 +0,0 @@
1
- export const honeyFactoryReaderAbi = [
2
- {
3
- inputs: [],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- {
8
- inputs: [],
9
- name: "AccessControlBadConfirmation",
10
- type: "error",
11
- },
12
- {
13
- inputs: [
14
- {
15
- internalType: "address",
16
- name: "account",
17
- type: "address",
18
- },
19
- {
20
- internalType: "bytes32",
21
- name: "neededRole",
22
- type: "bytes32",
23
- },
24
- ],
25
- name: "AccessControlUnauthorizedAccount",
26
- type: "error",
27
- },
28
- {
29
- inputs: [
30
- {
31
- internalType: "address",
32
- name: "target",
33
- type: "address",
34
- },
35
- ],
36
- name: "AddressEmptyCode",
37
- type: "error",
38
- },
39
- {
40
- inputs: [],
41
- name: "AmountOutOfRange",
42
- type: "error",
43
- },
44
- {
45
- inputs: [
46
- {
47
- internalType: "address",
48
- name: "asset",
49
- type: "address",
50
- },
51
- ],
52
- name: "AssetIsBadCollateral",
53
- type: "error",
54
- },
55
- {
56
- inputs: [
57
- {
58
- internalType: "address",
59
- name: "asset",
60
- type: "address",
61
- },
62
- ],
63
- name: "AssetIsNotBadCollateral",
64
- type: "error",
65
- },
66
- {
67
- inputs: [
68
- {
69
- internalType: "address",
70
- name: "asset",
71
- type: "address",
72
- },
73
- ],
74
- name: "AssetNotRegistered",
75
- type: "error",
76
- },
77
- {
78
- inputs: [],
79
- name: "CapCanCauseDenialOfService",
80
- type: "error",
81
- },
82
- {
83
- inputs: [
84
- {
85
- internalType: "address",
86
- name: "implementation",
87
- type: "address",
88
- },
89
- ],
90
- name: "ERC1967InvalidImplementation",
91
- type: "error",
92
- },
93
- {
94
- inputs: [],
95
- name: "ERC1967NonPayable",
96
- type: "error",
97
- },
98
- {
99
- inputs: [],
100
- name: "ExceedGlobalCap",
101
- type: "error",
102
- },
103
- {
104
- inputs: [],
105
- name: "ExceedRelativeCap",
106
- type: "error",
107
- },
108
- {
109
- inputs: [],
110
- name: "FailedCall",
111
- type: "error",
112
- },
113
- {
114
- inputs: [
115
- {
116
- internalType: "uint256",
117
- name: "assets",
118
- type: "uint256",
119
- },
120
- {
121
- internalType: "uint256",
122
- name: "shares",
123
- type: "uint256",
124
- },
125
- ],
126
- name: "InsufficientAssets",
127
- type: "error",
128
- },
129
- {
130
- inputs: [],
131
- name: "InsufficientBalanceToPayPythFee",
132
- type: "error",
133
- },
134
- {
135
- inputs: [
136
- {
137
- internalType: "uint256",
138
- name: "amount",
139
- type: "uint256",
140
- },
141
- ],
142
- name: "InsufficientRecapitalizeAmount",
143
- type: "error",
144
- },
145
- {
146
- inputs: [],
147
- name: "InvalidCustodyInfoInput",
148
- type: "error",
149
- },
150
- {
151
- inputs: [],
152
- name: "InvalidInitialization",
153
- type: "error",
154
- },
155
- {
156
- inputs: [],
157
- name: "LiquidationDisabled",
158
- type: "error",
159
- },
160
- {
161
- inputs: [],
162
- name: "LiquidationWithReferenceCollateral",
163
- type: "error",
164
- },
165
- {
166
- inputs: [
167
- {
168
- internalType: "address",
169
- name: "owner",
170
- type: "address",
171
- },
172
- {
173
- internalType: "address",
174
- name: "expectedOwner",
175
- type: "address",
176
- },
177
- ],
178
- name: "MismatchedOwner",
179
- type: "error",
180
- },
181
- {
182
- inputs: [],
183
- name: "NotFactory",
184
- type: "error",
185
- },
186
- {
187
- inputs: [],
188
- name: "NotInitializing",
189
- type: "error",
190
- },
191
- {
192
- inputs: [
193
- {
194
- internalType: "address",
195
- name: "asset",
196
- type: "address",
197
- },
198
- ],
199
- name: "NotPegged",
200
- type: "error",
201
- },
202
- {
203
- inputs: [
204
- {
205
- internalType: "uint256",
206
- name: "rate",
207
- type: "uint256",
208
- },
209
- ],
210
- name: "OverOneHundredPercentRate",
211
- type: "error",
212
- },
213
- {
214
- inputs: [
215
- {
216
- internalType: "address",
217
- name: "asset",
218
- type: "address",
219
- },
220
- ],
221
- name: "RecapitalizeNotNeeded",
222
- type: "error",
223
- },
224
- {
225
- inputs: [],
226
- name: "UUPSUnauthorizedCallContext",
227
- type: "error",
228
- },
229
- {
230
- inputs: [
231
- {
232
- internalType: "bytes32",
233
- name: "slot",
234
- type: "bytes32",
235
- },
236
- ],
237
- name: "UUPSUnsupportedProxiableUUID",
238
- type: "error",
239
- },
240
- {
241
- inputs: [
242
- {
243
- internalType: "address",
244
- name: "caller",
245
- type: "address",
246
- },
247
- {
248
- internalType: "address",
249
- name: "expectedCaller",
250
- type: "address",
251
- },
252
- ],
253
- name: "UnauthorizedCaller",
254
- type: "error",
255
- },
256
- {
257
- inputs: [
258
- {
259
- internalType: "uint256",
260
- name: "rate",
261
- type: "uint256",
262
- },
263
- ],
264
- name: "UnderNinetyEightPercentRate",
265
- type: "error",
266
- },
267
- {
268
- inputs: [],
269
- name: "UnexpectedBasketModeStatus",
270
- type: "error",
271
- },
272
- {
273
- inputs: [
274
- {
275
- internalType: "address",
276
- name: "asset",
277
- type: "address",
278
- },
279
- ],
280
- name: "VaultAlreadyRegistered",
281
- type: "error",
282
- },
283
- {
284
- inputs: [],
285
- name: "VaultPaused",
286
- type: "error",
287
- },
288
- {
289
- inputs: [],
290
- name: "ZeroAddress",
291
- type: "error",
292
- },
293
- {
294
- inputs: [],
295
- name: "ZeroAmount",
296
- type: "error",
297
- },
298
- {
299
- inputs: [
300
- {
301
- internalType: "address",
302
- name: "asset",
303
- type: "address",
304
- },
305
- ],
306
- name: "ZeroWeight",
307
- type: "error",
308
- },
309
- {
310
- anonymous: false,
311
- inputs: [
312
- {
313
- indexed: false,
314
- internalType: "uint64",
315
- name: "version",
316
- type: "uint64",
317
- },
318
- ],
319
- name: "Initialized",
320
- type: "event",
321
- },
322
- {
323
- anonymous: false,
324
- inputs: [
325
- {
326
- indexed: true,
327
- internalType: "bytes32",
328
- name: "role",
329
- type: "bytes32",
330
- },
331
- {
332
- indexed: true,
333
- internalType: "bytes32",
334
- name: "previousAdminRole",
335
- type: "bytes32",
336
- },
337
- {
338
- indexed: true,
339
- internalType: "bytes32",
340
- name: "newAdminRole",
341
- type: "bytes32",
342
- },
343
- ],
344
- name: "RoleAdminChanged",
345
- type: "event",
346
- },
347
- {
348
- anonymous: false,
349
- inputs: [
350
- {
351
- indexed: true,
352
- internalType: "bytes32",
353
- name: "role",
354
- type: "bytes32",
355
- },
356
- {
357
- indexed: true,
358
- internalType: "address",
359
- name: "account",
360
- type: "address",
361
- },
362
- {
363
- indexed: true,
364
- internalType: "address",
365
- name: "sender",
366
- type: "address",
367
- },
368
- ],
369
- name: "RoleGranted",
370
- type: "event",
371
- },
372
- {
373
- anonymous: false,
374
- inputs: [
375
- {
376
- indexed: true,
377
- internalType: "bytes32",
378
- name: "role",
379
- type: "bytes32",
380
- },
381
- {
382
- indexed: true,
383
- internalType: "address",
384
- name: "account",
385
- type: "address",
386
- },
387
- {
388
- indexed: true,
389
- internalType: "address",
390
- name: "sender",
391
- type: "address",
392
- },
393
- ],
394
- name: "RoleRevoked",
395
- type: "event",
396
- },
397
- {
398
- anonymous: false,
399
- inputs: [
400
- {
401
- indexed: true,
402
- internalType: "address",
403
- name: "implementation",
404
- type: "address",
405
- },
406
- ],
407
- name: "Upgraded",
408
- type: "event",
409
- },
410
- {
411
- inputs: [],
412
- name: "DEFAULT_ADMIN_ROLE",
413
- outputs: [
414
- {
415
- internalType: "bytes32",
416
- name: "",
417
- type: "bytes32",
418
- },
419
- ],
420
- stateMutability: "view",
421
- type: "function",
422
- },
423
- {
424
- inputs: [],
425
- name: "UPGRADE_INTERFACE_VERSION",
426
- outputs: [
427
- {
428
- internalType: "string",
429
- name: "",
430
- type: "string",
431
- },
432
- ],
433
- stateMutability: "view",
434
- type: "function",
435
- },
436
- {
437
- inputs: [
438
- {
439
- internalType: "bytes32",
440
- name: "role",
441
- type: "bytes32",
442
- },
443
- ],
444
- name: "getRoleAdmin",
445
- outputs: [
446
- {
447
- internalType: "bytes32",
448
- name: "",
449
- type: "bytes32",
450
- },
451
- ],
452
- stateMutability: "view",
453
- type: "function",
454
- },
455
- {
456
- inputs: [
457
- {
458
- internalType: "bytes32",
459
- name: "role",
460
- type: "bytes32",
461
- },
462
- {
463
- internalType: "address",
464
- name: "account",
465
- type: "address",
466
- },
467
- ],
468
- name: "grantRole",
469
- outputs: [],
470
- stateMutability: "nonpayable",
471
- type: "function",
472
- },
473
- {
474
- inputs: [
475
- {
476
- internalType: "bytes32",
477
- name: "role",
478
- type: "bytes32",
479
- },
480
- {
481
- internalType: "address",
482
- name: "account",
483
- type: "address",
484
- },
485
- ],
486
- name: "hasRole",
487
- outputs: [
488
- {
489
- internalType: "bool",
490
- name: "",
491
- type: "bool",
492
- },
493
- ],
494
- stateMutability: "view",
495
- type: "function",
496
- },
497
- {
498
- inputs: [],
499
- name: "honeyFactory",
500
- outputs: [
501
- {
502
- internalType: "contract HoneyFactory",
503
- name: "",
504
- type: "address",
505
- },
506
- ],
507
- stateMutability: "view",
508
- type: "function",
509
- },
510
- {
511
- inputs: [
512
- {
513
- internalType: "address",
514
- name: "admin",
515
- type: "address",
516
- },
517
- {
518
- internalType: "address",
519
- name: "honeyFactory_",
520
- type: "address",
521
- },
522
- ],
523
- name: "initialize",
524
- outputs: [],
525
- stateMutability: "nonpayable",
526
- type: "function",
527
- },
528
- {
529
- inputs: [
530
- {
531
- internalType: "bool",
532
- name: "isMint",
533
- type: "bool",
534
- },
535
- {
536
- internalType: "uint256[]",
537
- name: "prices",
538
- type: "uint256[]",
539
- },
540
- ],
541
- name: "isBasketModeEnabledWithPrices",
542
- outputs: [
543
- {
544
- internalType: "bool",
545
- name: "basketMode",
546
- type: "bool",
547
- },
548
- ],
549
- stateMutability: "view",
550
- type: "function",
551
- },
552
- {
553
- inputs: [
554
- {
555
- internalType: "address",
556
- name: "asset",
557
- type: "address",
558
- },
559
- {
560
- internalType: "uint256",
561
- name: "price",
562
- type: "uint256",
563
- },
564
- ],
565
- name: "isPeggedWithPrice",
566
- outputs: [
567
- {
568
- internalType: "bool",
569
- name: "",
570
- type: "bool",
571
- },
572
- ],
573
- stateMutability: "view",
574
- type: "function",
575
- },
576
- {
577
- inputs: [
578
- {
579
- internalType: "address",
580
- name: "asset",
581
- type: "address",
582
- },
583
- {
584
- internalType: "uint256",
585
- name: "honey",
586
- type: "uint256",
587
- },
588
- ],
589
- name: "previewMintCollaterals",
590
- outputs: [
591
- {
592
- internalType: "uint256[]",
593
- name: "amounts",
594
- type: "uint256[]",
595
- },
596
- ],
597
- stateMutability: "view",
598
- type: "function",
599
- },
600
- {
601
- inputs: [
602
- {
603
- internalType: "address",
604
- name: "asset",
605
- type: "address",
606
- },
607
- {
608
- internalType: "uint256",
609
- name: "honey",
610
- type: "uint256",
611
- },
612
- {
613
- internalType: "uint256[]",
614
- name: "prices",
615
- type: "uint256[]",
616
- },
617
- ],
618
- name: "previewMintCollateralsWithPrices",
619
- outputs: [
620
- {
621
- internalType: "uint256[]",
622
- name: "amounts",
623
- type: "uint256[]",
624
- },
625
- ],
626
- stateMutability: "view",
627
- type: "function",
628
- },
629
- {
630
- inputs: [
631
- {
632
- internalType: "address",
633
- name: "asset",
634
- type: "address",
635
- },
636
- {
637
- internalType: "uint256",
638
- name: "amount",
639
- type: "uint256",
640
- },
641
- ],
642
- name: "previewMintHoney",
643
- outputs: [
644
- {
645
- internalType: "uint256[]",
646
- name: "collaterals",
647
- type: "uint256[]",
648
- },
649
- {
650
- internalType: "uint256",
651
- name: "honey",
652
- type: "uint256",
653
- },
654
- ],
655
- stateMutability: "view",
656
- type: "function",
657
- },
658
- {
659
- inputs: [
660
- {
661
- internalType: "address",
662
- name: "asset",
663
- type: "address",
664
- },
665
- {
666
- internalType: "uint256",
667
- name: "amount",
668
- type: "uint256",
669
- },
670
- {
671
- internalType: "uint256[]",
672
- name: "prices",
673
- type: "uint256[]",
674
- },
675
- ],
676
- name: "previewMintHoneyWithPrices",
677
- outputs: [
678
- {
679
- internalType: "uint256[]",
680
- name: "collaterals",
681
- type: "uint256[]",
682
- },
683
- {
684
- internalType: "uint256",
685
- name: "honey",
686
- type: "uint256",
687
- },
688
- ],
689
- stateMutability: "view",
690
- type: "function",
691
- },
692
- {
693
- inputs: [
694
- {
695
- internalType: "address",
696
- name: "asset",
697
- type: "address",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "honey",
702
- type: "uint256",
703
- },
704
- ],
705
- name: "previewRedeemCollaterals",
706
- outputs: [
707
- {
708
- internalType: "uint256[]",
709
- name: "collaterals",
710
- type: "uint256[]",
711
- },
712
- ],
713
- stateMutability: "view",
714
- type: "function",
715
- },
716
- {
717
- inputs: [
718
- {
719
- internalType: "address",
720
- name: "asset",
721
- type: "address",
722
- },
723
- {
724
- internalType: "uint256",
725
- name: "honey",
726
- type: "uint256",
727
- },
728
- {
729
- internalType: "uint256[]",
730
- name: "prices",
731
- type: "uint256[]",
732
- },
733
- ],
734
- name: "previewRedeemCollateralsWithPrices",
735
- outputs: [
736
- {
737
- internalType: "uint256[]",
738
- name: "collaterals",
739
- type: "uint256[]",
740
- },
741
- ],
742
- stateMutability: "view",
743
- type: "function",
744
- },
745
- {
746
- inputs: [
747
- {
748
- internalType: "address",
749
- name: "asset",
750
- type: "address",
751
- },
752
- {
753
- internalType: "uint256",
754
- name: "amount",
755
- type: "uint256",
756
- },
757
- ],
758
- name: "previewRedeemHoney",
759
- outputs: [
760
- {
761
- internalType: "uint256[]",
762
- name: "collaterals",
763
- type: "uint256[]",
764
- },
765
- {
766
- internalType: "uint256",
767
- name: "honey",
768
- type: "uint256",
769
- },
770
- ],
771
- stateMutability: "view",
772
- type: "function",
773
- },
774
- {
775
- inputs: [
776
- {
777
- internalType: "address",
778
- name: "asset",
779
- type: "address",
780
- },
781
- {
782
- internalType: "uint256",
783
- name: "amount",
784
- type: "uint256",
785
- },
786
- {
787
- internalType: "uint256[]",
788
- name: "prices",
789
- type: "uint256[]",
790
- },
791
- ],
792
- name: "previewRedeemHoneyWithPrices",
793
- outputs: [
794
- {
795
- internalType: "uint256[]",
796
- name: "collaterals",
797
- type: "uint256[]",
798
- },
799
- {
800
- internalType: "uint256",
801
- name: "honey",
802
- type: "uint256",
803
- },
804
- ],
805
- stateMutability: "view",
806
- type: "function",
807
- },
808
- {
809
- inputs: [],
810
- name: "proxiableUUID",
811
- outputs: [
812
- {
813
- internalType: "bytes32",
814
- name: "",
815
- type: "bytes32",
816
- },
817
- ],
818
- stateMutability: "view",
819
- type: "function",
820
- },
821
- {
822
- inputs: [
823
- {
824
- internalType: "bytes32",
825
- name: "role",
826
- type: "bytes32",
827
- },
828
- {
829
- internalType: "address",
830
- name: "callerConfirmation",
831
- type: "address",
832
- },
833
- ],
834
- name: "renounceRole",
835
- outputs: [],
836
- stateMutability: "nonpayable",
837
- type: "function",
838
- },
839
- {
840
- inputs: [
841
- {
842
- internalType: "bytes32",
843
- name: "role",
844
- type: "bytes32",
845
- },
846
- {
847
- internalType: "address",
848
- name: "account",
849
- type: "address",
850
- },
851
- ],
852
- name: "revokeRole",
853
- outputs: [],
854
- stateMutability: "nonpayable",
855
- type: "function",
856
- },
857
- {
858
- inputs: [
859
- {
860
- internalType: "bytes4",
861
- name: "interfaceId",
862
- type: "bytes4",
863
- },
864
- ],
865
- name: "supportsInterface",
866
- outputs: [
867
- {
868
- internalType: "bool",
869
- name: "",
870
- type: "bool",
871
- },
872
- ],
873
- stateMutability: "view",
874
- type: "function",
875
- },
876
- {
877
- inputs: [
878
- {
879
- internalType: "address",
880
- name: "newImplementation",
881
- type: "address",
882
- },
883
- {
884
- internalType: "bytes",
885
- name: "data",
886
- type: "bytes",
887
- },
888
- ],
889
- name: "upgradeToAndCall",
890
- outputs: [],
891
- stateMutability: "payable",
892
- type: "function",
893
- },
894
- ] as const;