@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,1034 +0,0 @@
1
- export const bgtStakerAbi = [
2
- {
3
- inputs: [],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- {
8
- inputs: [
9
- {
10
- internalType: "address",
11
- name: "target",
12
- type: "address",
13
- },
14
- ],
15
- name: "AddressEmptyCode",
16
- type: "error",
17
- },
18
- {
19
- inputs: [],
20
- name: "AlreadyInitialized",
21
- type: "error",
22
- },
23
- {
24
- inputs: [],
25
- name: "AmountLessThanMinIncentiveRate",
26
- type: "error",
27
- },
28
- {
29
- inputs: [],
30
- name: "CannotRecoverIncentiveToken",
31
- type: "error",
32
- },
33
- {
34
- inputs: [],
35
- name: "CannotRecoverRewardToken",
36
- type: "error",
37
- },
38
- {
39
- inputs: [],
40
- name: "CannotRecoverStakingToken",
41
- type: "error",
42
- },
43
- {
44
- inputs: [],
45
- name: "DepositNotMultipleOfGwei",
46
- type: "error",
47
- },
48
- {
49
- inputs: [],
50
- name: "DepositValueTooHigh",
51
- type: "error",
52
- },
53
- {
54
- inputs: [],
55
- name: "DonateAmountLessThanPayoutAmount",
56
- type: "error",
57
- },
58
- {
59
- inputs: [
60
- {
61
- internalType: "address",
62
- name: "implementation",
63
- type: "address",
64
- },
65
- ],
66
- name: "ERC1967InvalidImplementation",
67
- type: "error",
68
- },
69
- {
70
- inputs: [],
71
- name: "ERC1967NonPayable",
72
- type: "error",
73
- },
74
- {
75
- inputs: [],
76
- name: "FailedCall",
77
- type: "error",
78
- },
79
- {
80
- inputs: [],
81
- name: "IncentiveRateTooHigh",
82
- type: "error",
83
- },
84
- {
85
- inputs: [],
86
- name: "IndexOutOfRange",
87
- type: "error",
88
- },
89
- {
90
- inputs: [],
91
- name: "InsolventReward",
92
- type: "error",
93
- },
94
- {
95
- inputs: [],
96
- name: "InsufficientDelegateStake",
97
- type: "error",
98
- },
99
- {
100
- inputs: [],
101
- name: "InsufficientDeposit",
102
- type: "error",
103
- },
104
- {
105
- inputs: [],
106
- name: "InsufficientSelfStake",
107
- type: "error",
108
- },
109
- {
110
- inputs: [],
111
- name: "InsufficientStake",
112
- type: "error",
113
- },
114
- {
115
- inputs: [],
116
- name: "InvalidActivateBoostDelay",
117
- type: "error",
118
- },
119
- {
120
- inputs: [],
121
- name: "InvalidBaseRate",
122
- type: "error",
123
- },
124
- {
125
- inputs: [],
126
- name: "InvalidBoostMultiplier",
127
- type: "error",
128
- },
129
- {
130
- inputs: [],
131
- name: "InvalidCredentialsLength",
132
- type: "error",
133
- },
134
- {
135
- inputs: [],
136
- name: "InvalidDropBoostDelay",
137
- type: "error",
138
- },
139
- {
140
- inputs: [],
141
- name: "InvalidInitialization",
142
- type: "error",
143
- },
144
- {
145
- inputs: [],
146
- name: "InvalidMaxIncentiveTokensCount",
147
- type: "error",
148
- },
149
- {
150
- inputs: [],
151
- name: "InvalidMinBoostedRewardRate",
152
- type: "error",
153
- },
154
- {
155
- inputs: [],
156
- name: "InvalidProof",
157
- type: "error",
158
- },
159
- {
160
- inputs: [],
161
- name: "InvalidPubKeyLength",
162
- type: "error",
163
- },
164
- {
165
- inputs: [],
166
- name: "InvalidRewardAllocationWeights",
167
- type: "error",
168
- },
169
- {
170
- inputs: [],
171
- name: "InvalidRewardConvexity",
172
- type: "error",
173
- },
174
- {
175
- inputs: [],
176
- name: "InvalidRewardRate",
177
- type: "error",
178
- },
179
- {
180
- inputs: [],
181
- name: "InvalidRewardVaultAddress",
182
- type: "error",
183
- },
184
- {
185
- inputs: [],
186
- name: "InvalidSignatureLength",
187
- type: "error",
188
- },
189
- {
190
- inputs: [],
191
- name: "InvalidStartBlock",
192
- type: "error",
193
- },
194
- {
195
- inputs: [],
196
- name: "InvalidateDefaultRewardAllocation",
197
- type: "error",
198
- },
199
- {
200
- inputs: [],
201
- name: "InvariantCheckFailed",
202
- type: "error",
203
- },
204
- {
205
- inputs: [],
206
- name: "MaxNumWeightsPerRewardAllocationIsZero",
207
- type: "error",
208
- },
209
- {
210
- inputs: [],
211
- name: "MinIncentiveRateIsZero",
212
- type: "error",
213
- },
214
- {
215
- inputs: [],
216
- name: "NotAContract",
217
- type: "error",
218
- },
219
- {
220
- inputs: [],
221
- name: "NotApprovedSender",
222
- type: "error",
223
- },
224
- {
225
- inputs: [],
226
- name: "NotBGT",
227
- type: "error",
228
- },
229
- {
230
- inputs: [],
231
- name: "NotBlockRewardController",
232
- type: "error",
233
- },
234
- {
235
- inputs: [],
236
- name: "NotDelegate",
237
- type: "error",
238
- },
239
- {
240
- inputs: [],
241
- name: "NotDistributor",
242
- type: "error",
243
- },
244
- {
245
- inputs: [],
246
- name: "NotEnoughBalance",
247
- type: "error",
248
- },
249
- {
250
- inputs: [],
251
- name: "NotEnoughBoostedBalance",
252
- type: "error",
253
- },
254
- {
255
- inputs: [],
256
- name: "NotEnoughTime",
257
- type: "error",
258
- },
259
- {
260
- inputs: [],
261
- name: "NotFactoryVault",
262
- type: "error",
263
- },
264
- {
265
- inputs: [],
266
- name: "NotFeeCollector",
267
- type: "error",
268
- },
269
- {
270
- inputs: [],
271
- name: "NotGovernance",
272
- type: "error",
273
- },
274
- {
275
- inputs: [],
276
- name: "NotIncentiveManager",
277
- type: "error",
278
- },
279
- {
280
- inputs: [],
281
- name: "NotInitializing",
282
- type: "error",
283
- },
284
- {
285
- inputs: [],
286
- name: "NotNewOperator",
287
- type: "error",
288
- },
289
- {
290
- inputs: [],
291
- name: "NotOperator",
292
- type: "error",
293
- },
294
- {
295
- inputs: [],
296
- name: "NotRootFollower",
297
- type: "error",
298
- },
299
- {
300
- inputs: [],
301
- name: "NotWhitelistedVault",
302
- type: "error",
303
- },
304
- {
305
- inputs: [],
306
- name: "OperatorAlreadySet",
307
- type: "error",
308
- },
309
- {
310
- inputs: [
311
- {
312
- internalType: "address",
313
- name: "owner",
314
- type: "address",
315
- },
316
- ],
317
- name: "OwnableInvalidOwner",
318
- type: "error",
319
- },
320
- {
321
- inputs: [
322
- {
323
- internalType: "address",
324
- name: "account",
325
- type: "address",
326
- },
327
- ],
328
- name: "OwnableUnauthorizedAccount",
329
- type: "error",
330
- },
331
- {
332
- inputs: [],
333
- name: "PayoutAmountIsZero",
334
- type: "error",
335
- },
336
- {
337
- inputs: [],
338
- name: "RewardAllocationAlreadyQueued",
339
- type: "error",
340
- },
341
- {
342
- inputs: [],
343
- name: "RewardAllocationBlockDelayTooLarge",
344
- type: "error",
345
- },
346
- {
347
- inputs: [],
348
- name: "RewardCycleNotEnded",
349
- type: "error",
350
- },
351
- {
352
- inputs: [],
353
- name: "RewardsDurationIsZero",
354
- type: "error",
355
- },
356
- {
357
- inputs: [
358
- {
359
- internalType: "address",
360
- name: "token",
361
- type: "address",
362
- },
363
- ],
364
- name: "SafeERC20FailedOperation",
365
- type: "error",
366
- },
367
- {
368
- inputs: [],
369
- name: "StakeAmountIsZero",
370
- type: "error",
371
- },
372
- {
373
- inputs: [],
374
- name: "TimestampAlreadyProcessed",
375
- type: "error",
376
- },
377
- {
378
- inputs: [],
379
- name: "TokenAlreadyWhitelistedOrLimitReached",
380
- type: "error",
381
- },
382
- {
383
- inputs: [],
384
- name: "TokenNotWhitelisted",
385
- type: "error",
386
- },
387
- {
388
- inputs: [],
389
- name: "TooManyWeights",
390
- type: "error",
391
- },
392
- {
393
- inputs: [],
394
- name: "TotalSupplyOverflow",
395
- type: "error",
396
- },
397
- {
398
- inputs: [],
399
- name: "UUPSUnauthorizedCallContext",
400
- type: "error",
401
- },
402
- {
403
- inputs: [
404
- {
405
- internalType: "bytes32",
406
- name: "slot",
407
- type: "bytes32",
408
- },
409
- ],
410
- name: "UUPSUnsupportedProxiableUUID",
411
- type: "error",
412
- },
413
- {
414
- inputs: [],
415
- name: "VaultAlreadyExists",
416
- type: "error",
417
- },
418
- {
419
- inputs: [],
420
- name: "WithdrawAmountIsZero",
421
- type: "error",
422
- },
423
- {
424
- inputs: [],
425
- name: "ZeroAddress",
426
- type: "error",
427
- },
428
- {
429
- inputs: [],
430
- name: "ZeroOperatorOnFirstDeposit",
431
- type: "error",
432
- },
433
- {
434
- inputs: [],
435
- name: "ZeroPercentageWeight",
436
- type: "error",
437
- },
438
- {
439
- anonymous: false,
440
- inputs: [
441
- {
442
- indexed: false,
443
- internalType: "uint64",
444
- name: "version",
445
- type: "uint64",
446
- },
447
- ],
448
- name: "Initialized",
449
- type: "event",
450
- },
451
- {
452
- anonymous: false,
453
- inputs: [
454
- {
455
- indexed: true,
456
- internalType: "address",
457
- name: "previousOwner",
458
- type: "address",
459
- },
460
- {
461
- indexed: true,
462
- internalType: "address",
463
- name: "newOwner",
464
- type: "address",
465
- },
466
- ],
467
- name: "OwnershipTransferred",
468
- type: "event",
469
- },
470
- {
471
- anonymous: false,
472
- inputs: [
473
- {
474
- indexed: false,
475
- internalType: "address",
476
- name: "token",
477
- type: "address",
478
- },
479
- {
480
- indexed: false,
481
- internalType: "uint256",
482
- name: "amount",
483
- type: "uint256",
484
- },
485
- ],
486
- name: "Recovered",
487
- type: "event",
488
- },
489
- {
490
- anonymous: false,
491
- inputs: [
492
- {
493
- indexed: false,
494
- internalType: "uint256",
495
- name: "reward",
496
- type: "uint256",
497
- },
498
- ],
499
- name: "RewardAdded",
500
- type: "event",
501
- },
502
- {
503
- anonymous: false,
504
- inputs: [
505
- {
506
- indexed: true,
507
- internalType: "address",
508
- name: "account",
509
- type: "address",
510
- },
511
- {
512
- indexed: false,
513
- internalType: "address",
514
- name: "to",
515
- type: "address",
516
- },
517
- {
518
- indexed: false,
519
- internalType: "uint256",
520
- name: "reward",
521
- type: "uint256",
522
- },
523
- ],
524
- name: "RewardPaid",
525
- type: "event",
526
- },
527
- {
528
- anonymous: false,
529
- inputs: [
530
- {
531
- indexed: false,
532
- internalType: "uint256",
533
- name: "newDuration",
534
- type: "uint256",
535
- },
536
- ],
537
- name: "RewardsDurationUpdated",
538
- type: "event",
539
- },
540
- {
541
- anonymous: false,
542
- inputs: [
543
- {
544
- indexed: true,
545
- internalType: "address",
546
- name: "account",
547
- type: "address",
548
- },
549
- {
550
- indexed: false,
551
- internalType: "uint256",
552
- name: "amount",
553
- type: "uint256",
554
- },
555
- ],
556
- name: "Staked",
557
- type: "event",
558
- },
559
- {
560
- anonymous: false,
561
- inputs: [
562
- {
563
- indexed: true,
564
- internalType: "address",
565
- name: "implementation",
566
- type: "address",
567
- },
568
- ],
569
- name: "Upgraded",
570
- type: "event",
571
- },
572
- {
573
- anonymous: false,
574
- inputs: [
575
- {
576
- indexed: true,
577
- internalType: "address",
578
- name: "account",
579
- type: "address",
580
- },
581
- {
582
- indexed: false,
583
- internalType: "uint256",
584
- name: "amount",
585
- type: "uint256",
586
- },
587
- ],
588
- name: "Withdrawn",
589
- type: "event",
590
- },
591
- {
592
- inputs: [],
593
- name: "FEE_COLLECTOR",
594
- outputs: [
595
- {
596
- internalType: "address",
597
- name: "",
598
- type: "address",
599
- },
600
- ],
601
- stateMutability: "view",
602
- type: "function",
603
- },
604
- {
605
- inputs: [],
606
- name: "UPGRADE_INTERFACE_VERSION",
607
- outputs: [
608
- {
609
- internalType: "string",
610
- name: "",
611
- type: "string",
612
- },
613
- ],
614
- stateMutability: "view",
615
- type: "function",
616
- },
617
- {
618
- inputs: [
619
- {
620
- internalType: "address",
621
- name: "account",
622
- type: "address",
623
- },
624
- ],
625
- name: "balanceOf",
626
- outputs: [
627
- {
628
- internalType: "uint256",
629
- name: "",
630
- type: "uint256",
631
- },
632
- ],
633
- stateMutability: "view",
634
- type: "function",
635
- },
636
- {
637
- inputs: [
638
- {
639
- internalType: "address",
640
- name: "account",
641
- type: "address",
642
- },
643
- ],
644
- name: "earned",
645
- outputs: [
646
- {
647
- internalType: "uint256",
648
- name: "",
649
- type: "uint256",
650
- },
651
- ],
652
- stateMutability: "view",
653
- type: "function",
654
- },
655
- {
656
- inputs: [],
657
- name: "getReward",
658
- outputs: [
659
- {
660
- internalType: "uint256",
661
- name: "",
662
- type: "uint256",
663
- },
664
- ],
665
- stateMutability: "nonpayable",
666
- type: "function",
667
- },
668
- {
669
- inputs: [],
670
- name: "getRewardForDuration",
671
- outputs: [
672
- {
673
- internalType: "uint256",
674
- name: "",
675
- type: "uint256",
676
- },
677
- ],
678
- stateMutability: "view",
679
- type: "function",
680
- },
681
- {
682
- inputs: [
683
- {
684
- internalType: "address",
685
- name: "_bgt",
686
- type: "address",
687
- },
688
- {
689
- internalType: "address",
690
- name: "_feeCollector",
691
- type: "address",
692
- },
693
- {
694
- internalType: "address",
695
- name: "_governance",
696
- type: "address",
697
- },
698
- {
699
- internalType: "address",
700
- name: "_rewardToken",
701
- type: "address",
702
- },
703
- ],
704
- name: "initialize",
705
- outputs: [],
706
- stateMutability: "nonpayable",
707
- type: "function",
708
- },
709
- {
710
- inputs: [],
711
- name: "lastTimeRewardApplicable",
712
- outputs: [
713
- {
714
- internalType: "uint256",
715
- name: "",
716
- type: "uint256",
717
- },
718
- ],
719
- stateMutability: "view",
720
- type: "function",
721
- },
722
- {
723
- inputs: [],
724
- name: "lastUpdateTime",
725
- outputs: [
726
- {
727
- internalType: "uint256",
728
- name: "",
729
- type: "uint256",
730
- },
731
- ],
732
- stateMutability: "view",
733
- type: "function",
734
- },
735
- {
736
- inputs: [
737
- {
738
- internalType: "uint256",
739
- name: "reward",
740
- type: "uint256",
741
- },
742
- ],
743
- name: "notifyRewardAmount",
744
- outputs: [],
745
- stateMutability: "nonpayable",
746
- type: "function",
747
- },
748
- {
749
- inputs: [],
750
- name: "owner",
751
- outputs: [
752
- {
753
- internalType: "address",
754
- name: "",
755
- type: "address",
756
- },
757
- ],
758
- stateMutability: "view",
759
- type: "function",
760
- },
761
- {
762
- inputs: [],
763
- name: "periodFinish",
764
- outputs: [
765
- {
766
- internalType: "uint256",
767
- name: "",
768
- type: "uint256",
769
- },
770
- ],
771
- stateMutability: "view",
772
- type: "function",
773
- },
774
- {
775
- inputs: [],
776
- name: "proxiableUUID",
777
- outputs: [
778
- {
779
- internalType: "bytes32",
780
- name: "",
781
- type: "bytes32",
782
- },
783
- ],
784
- stateMutability: "view",
785
- type: "function",
786
- },
787
- {
788
- inputs: [
789
- {
790
- internalType: "address",
791
- name: "tokenAddress",
792
- type: "address",
793
- },
794
- {
795
- internalType: "uint256",
796
- name: "tokenAmount",
797
- type: "uint256",
798
- },
799
- ],
800
- name: "recoverERC20",
801
- outputs: [],
802
- stateMutability: "nonpayable",
803
- type: "function",
804
- },
805
- {
806
- inputs: [],
807
- name: "renounceOwnership",
808
- outputs: [],
809
- stateMutability: "nonpayable",
810
- type: "function",
811
- },
812
- {
813
- inputs: [],
814
- name: "rewardPerToken",
815
- outputs: [
816
- {
817
- internalType: "uint256",
818
- name: "",
819
- type: "uint256",
820
- },
821
- ],
822
- stateMutability: "view",
823
- type: "function",
824
- },
825
- {
826
- inputs: [],
827
- name: "rewardPerTokenStored",
828
- outputs: [
829
- {
830
- internalType: "uint256",
831
- name: "",
832
- type: "uint256",
833
- },
834
- ],
835
- stateMutability: "view",
836
- type: "function",
837
- },
838
- {
839
- inputs: [],
840
- name: "rewardRate",
841
- outputs: [
842
- {
843
- internalType: "uint256",
844
- name: "",
845
- type: "uint256",
846
- },
847
- ],
848
- stateMutability: "view",
849
- type: "function",
850
- },
851
- {
852
- inputs: [],
853
- name: "rewardToken",
854
- outputs: [
855
- {
856
- internalType: "contract IERC20",
857
- name: "",
858
- type: "address",
859
- },
860
- ],
861
- stateMutability: "view",
862
- type: "function",
863
- },
864
- {
865
- inputs: [
866
- {
867
- internalType: "address",
868
- name: "account",
869
- type: "address",
870
- },
871
- ],
872
- name: "rewards",
873
- outputs: [
874
- {
875
- internalType: "uint256",
876
- name: "",
877
- type: "uint256",
878
- },
879
- ],
880
- stateMutability: "view",
881
- type: "function",
882
- },
883
- {
884
- inputs: [],
885
- name: "rewardsDuration",
886
- outputs: [
887
- {
888
- internalType: "uint256",
889
- name: "",
890
- type: "uint256",
891
- },
892
- ],
893
- stateMutability: "view",
894
- type: "function",
895
- },
896
- {
897
- inputs: [
898
- {
899
- internalType: "uint256",
900
- name: "_rewardsDuration",
901
- type: "uint256",
902
- },
903
- ],
904
- name: "setRewardsDuration",
905
- outputs: [],
906
- stateMutability: "nonpayable",
907
- type: "function",
908
- },
909
- {
910
- inputs: [
911
- {
912
- internalType: "address",
913
- name: "account",
914
- type: "address",
915
- },
916
- {
917
- internalType: "uint256",
918
- name: "amount",
919
- type: "uint256",
920
- },
921
- ],
922
- name: "stake",
923
- outputs: [],
924
- stateMutability: "nonpayable",
925
- type: "function",
926
- },
927
- {
928
- inputs: [],
929
- name: "stakeToken",
930
- outputs: [
931
- {
932
- internalType: "contract IERC20",
933
- name: "",
934
- type: "address",
935
- },
936
- ],
937
- stateMutability: "view",
938
- type: "function",
939
- },
940
- {
941
- inputs: [],
942
- name: "totalSupply",
943
- outputs: [
944
- {
945
- internalType: "uint256",
946
- name: "",
947
- type: "uint256",
948
- },
949
- ],
950
- stateMutability: "view",
951
- type: "function",
952
- },
953
- {
954
- inputs: [
955
- {
956
- internalType: "address",
957
- name: "newOwner",
958
- type: "address",
959
- },
960
- ],
961
- name: "transferOwnership",
962
- outputs: [],
963
- stateMutability: "nonpayable",
964
- type: "function",
965
- },
966
- {
967
- inputs: [],
968
- name: "undistributedRewards",
969
- outputs: [
970
- {
971
- internalType: "uint256",
972
- name: "",
973
- type: "uint256",
974
- },
975
- ],
976
- stateMutability: "view",
977
- type: "function",
978
- },
979
- {
980
- inputs: [
981
- {
982
- internalType: "address",
983
- name: "newImplementation",
984
- type: "address",
985
- },
986
- {
987
- internalType: "bytes",
988
- name: "data",
989
- type: "bytes",
990
- },
991
- ],
992
- name: "upgradeToAndCall",
993
- outputs: [],
994
- stateMutability: "payable",
995
- type: "function",
996
- },
997
- {
998
- inputs: [
999
- {
1000
- internalType: "address",
1001
- name: "account",
1002
- type: "address",
1003
- },
1004
- ],
1005
- name: "userRewardPerTokenPaid",
1006
- outputs: [
1007
- {
1008
- internalType: "uint256",
1009
- name: "",
1010
- type: "uint256",
1011
- },
1012
- ],
1013
- stateMutability: "view",
1014
- type: "function",
1015
- },
1016
- {
1017
- inputs: [
1018
- {
1019
- internalType: "address",
1020
- name: "account",
1021
- type: "address",
1022
- },
1023
- {
1024
- internalType: "uint256",
1025
- name: "amount",
1026
- type: "uint256",
1027
- },
1028
- ],
1029
- name: "withdraw",
1030
- outputs: [],
1031
- stateMutability: "nonpayable",
1032
- type: "function",
1033
- },
1034
- ] as const;