@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,618 +0,0 @@
1
- export const stakeBeraVaultWithdrawalRequestAbi = [
2
- { type: "constructor", inputs: [], stateMutability: "nonpayable" },
3
- {
4
- type: "function",
5
- name: "UPGRADE_INTERFACE_VERSION",
6
- inputs: [],
7
- outputs: [{ name: "", type: "string", internalType: "string" }],
8
- stateMutability: "view",
9
- },
10
- {
11
- type: "function",
12
- name: "WITHDRAWAL_COOLDOWN",
13
- inputs: [],
14
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
15
- stateMutability: "view",
16
- },
17
- {
18
- type: "function",
19
- name: "approve",
20
- inputs: [
21
- { name: "to", type: "address", internalType: "address" },
22
- { name: "tokenId", type: "uint256", internalType: "uint256" },
23
- ],
24
- outputs: [],
25
- stateMutability: "nonpayable",
26
- },
27
- {
28
- type: "function",
29
- name: "balanceOf",
30
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
31
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
32
- stateMutability: "view",
33
- },
34
- {
35
- type: "function",
36
- name: "burn",
37
- inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }],
38
- outputs: [],
39
- stateMutability: "nonpayable",
40
- },
41
- {
42
- type: "function",
43
- name: "cancel",
44
- inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }],
45
- outputs: [],
46
- stateMutability: "nonpayable",
47
- },
48
- {
49
- type: "function",
50
- name: "getApproved",
51
- inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
52
- outputs: [{ name: "", type: "address", internalType: "address" }],
53
- stateMutability: "view",
54
- },
55
- {
56
- type: "function",
57
- name: "getRequest",
58
- inputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }],
59
- outputs: [
60
- {
61
- name: "",
62
- type: "tuple",
63
- internalType:
64
- "struct IWBERAStakerVaultWithdrawalRequest.WithdrawalRequest",
65
- components: [
66
- { name: "assets", type: "uint256", internalType: "uint256" },
67
- { name: "shares", type: "uint256", internalType: "uint256" },
68
- { name: "requestTime", type: "uint256", internalType: "uint256" },
69
- { name: "owner", type: "address", internalType: "address" },
70
- { name: "receiver", type: "address", internalType: "address" },
71
- ],
72
- },
73
- ],
74
- stateMutability: "view",
75
- },
76
- {
77
- type: "function",
78
- name: "initialize",
79
- inputs: [
80
- { name: "governance", type: "address", internalType: "address" },
81
- { name: "wberaStakerVault_", type: "address", internalType: "address" },
82
- ],
83
- outputs: [],
84
- stateMutability: "nonpayable",
85
- },
86
- {
87
- type: "function",
88
- name: "isApprovedForAll",
89
- inputs: [
90
- { name: "owner", type: "address", internalType: "address" },
91
- { name: "operator", type: "address", internalType: "address" },
92
- ],
93
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
94
- stateMutability: "view",
95
- },
96
- {
97
- type: "function",
98
- name: "mint",
99
- inputs: [
100
- { name: "caller", type: "address", internalType: "address" },
101
- { name: "receiver", type: "address", internalType: "address" },
102
- { name: "owner", type: "address", internalType: "address" },
103
- { name: "assets", type: "uint256", internalType: "uint256" },
104
- { name: "shares", type: "uint256", internalType: "uint256" },
105
- ],
106
- outputs: [{ name: "requestId", type: "uint256", internalType: "uint256" }],
107
- stateMutability: "nonpayable",
108
- },
109
- {
110
- type: "function",
111
- name: "name",
112
- inputs: [],
113
- outputs: [{ name: "", type: "string", internalType: "string" }],
114
- stateMutability: "view",
115
- },
116
- {
117
- type: "function",
118
- name: "owner",
119
- inputs: [],
120
- outputs: [{ name: "", type: "address", internalType: "address" }],
121
- stateMutability: "view",
122
- },
123
- {
124
- type: "function",
125
- name: "ownerOf",
126
- inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
127
- outputs: [{ name: "", type: "address", internalType: "address" }],
128
- stateMutability: "view",
129
- },
130
- {
131
- type: "function",
132
- name: "proxiableUUID",
133
- inputs: [],
134
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
135
- stateMutability: "view",
136
- },
137
- {
138
- type: "function",
139
- name: "renounceOwnership",
140
- inputs: [],
141
- outputs: [],
142
- stateMutability: "nonpayable",
143
- },
144
- {
145
- type: "function",
146
- name: "safeTransferFrom",
147
- inputs: [
148
- { name: "from", type: "address", internalType: "address" },
149
- { name: "to", type: "address", internalType: "address" },
150
- { name: "tokenId", type: "uint256", internalType: "uint256" },
151
- ],
152
- outputs: [],
153
- stateMutability: "nonpayable",
154
- },
155
- {
156
- type: "function",
157
- name: "safeTransferFrom",
158
- inputs: [
159
- { name: "from", type: "address", internalType: "address" },
160
- { name: "to", type: "address", internalType: "address" },
161
- { name: "tokenId", type: "uint256", internalType: "uint256" },
162
- { name: "data", type: "bytes", internalType: "bytes" },
163
- ],
164
- outputs: [],
165
- stateMutability: "nonpayable",
166
- },
167
- {
168
- type: "function",
169
- name: "setApprovalForAll",
170
- inputs: [
171
- { name: "operator", type: "address", internalType: "address" },
172
- { name: "approved", type: "bool", internalType: "bool" },
173
- ],
174
- outputs: [],
175
- stateMutability: "nonpayable",
176
- },
177
- {
178
- type: "function",
179
- name: "setWBERAStakerVault",
180
- inputs: [
181
- { name: "wberaStakerVault_", type: "address", internalType: "address" },
182
- ],
183
- outputs: [],
184
- stateMutability: "nonpayable",
185
- },
186
- {
187
- type: "function",
188
- name: "supportsInterface",
189
- inputs: [{ name: "interfaceId", type: "bytes4", internalType: "bytes4" }],
190
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
191
- stateMutability: "view",
192
- },
193
- {
194
- type: "function",
195
- name: "symbol",
196
- inputs: [],
197
- outputs: [{ name: "", type: "string", internalType: "string" }],
198
- stateMutability: "view",
199
- },
200
- {
201
- type: "function",
202
- name: "tokenByIndex",
203
- inputs: [{ name: "index", type: "uint256", internalType: "uint256" }],
204
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
205
- stateMutability: "view",
206
- },
207
- {
208
- type: "function",
209
- name: "tokenOfOwnerByIndex",
210
- inputs: [
211
- { name: "owner", type: "address", internalType: "address" },
212
- { name: "index", type: "uint256", internalType: "uint256" },
213
- ],
214
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
215
- stateMutability: "view",
216
- },
217
- {
218
- type: "function",
219
- name: "tokenURI",
220
- inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
221
- outputs: [{ name: "", type: "string", internalType: "string" }],
222
- stateMutability: "view",
223
- },
224
- {
225
- type: "function",
226
- name: "totalSupply",
227
- inputs: [],
228
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
229
- stateMutability: "view",
230
- },
231
- {
232
- type: "function",
233
- name: "transferFrom",
234
- inputs: [
235
- { name: "from", type: "address", internalType: "address" },
236
- { name: "to", type: "address", internalType: "address" },
237
- { name: "tokenId", type: "uint256", internalType: "uint256" },
238
- ],
239
- outputs: [],
240
- stateMutability: "pure",
241
- },
242
- {
243
- type: "function",
244
- name: "transferOwnership",
245
- inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
246
- outputs: [],
247
- stateMutability: "nonpayable",
248
- },
249
- {
250
- type: "function",
251
- name: "upgradeToAndCall",
252
- inputs: [
253
- { name: "newImplementation", type: "address", internalType: "address" },
254
- { name: "data", type: "bytes", internalType: "bytes" },
255
- ],
256
- outputs: [],
257
- stateMutability: "payable",
258
- },
259
- {
260
- type: "function",
261
- name: "wberaStakerVault",
262
- inputs: [],
263
- outputs: [{ name: "", type: "address", internalType: "address" }],
264
- stateMutability: "view",
265
- },
266
- {
267
- type: "event",
268
- name: "Approval",
269
- inputs: [
270
- {
271
- name: "owner",
272
- type: "address",
273
- indexed: true,
274
- internalType: "address",
275
- },
276
- {
277
- name: "approved",
278
- type: "address",
279
- indexed: true,
280
- internalType: "address",
281
- },
282
- {
283
- name: "tokenId",
284
- type: "uint256",
285
- indexed: true,
286
- internalType: "uint256",
287
- },
288
- ],
289
- anonymous: false,
290
- },
291
- {
292
- type: "event",
293
- name: "ApprovalForAll",
294
- inputs: [
295
- {
296
- name: "owner",
297
- type: "address",
298
- indexed: true,
299
- internalType: "address",
300
- },
301
- {
302
- name: "operator",
303
- type: "address",
304
- indexed: true,
305
- internalType: "address",
306
- },
307
- { name: "approved", type: "bool", indexed: false, internalType: "bool" },
308
- ],
309
- anonymous: false,
310
- },
311
- {
312
- type: "event",
313
- name: "Initialized",
314
- inputs: [
315
- {
316
- name: "version",
317
- type: "uint64",
318
- indexed: false,
319
- internalType: "uint64",
320
- },
321
- ],
322
- anonymous: false,
323
- },
324
- {
325
- type: "event",
326
- name: "OwnershipTransferred",
327
- inputs: [
328
- {
329
- name: "previousOwner",
330
- type: "address",
331
- indexed: true,
332
- internalType: "address",
333
- },
334
- {
335
- name: "newOwner",
336
- type: "address",
337
- indexed: true,
338
- internalType: "address",
339
- },
340
- ],
341
- anonymous: false,
342
- },
343
- {
344
- type: "event",
345
- name: "Transfer",
346
- inputs: [
347
- { name: "from", type: "address", indexed: true, internalType: "address" },
348
- { name: "to", type: "address", indexed: true, internalType: "address" },
349
- {
350
- name: "tokenId",
351
- type: "uint256",
352
- indexed: true,
353
- internalType: "uint256",
354
- },
355
- ],
356
- anonymous: false,
357
- },
358
- {
359
- type: "event",
360
- name: "Upgraded",
361
- inputs: [
362
- {
363
- name: "implementation",
364
- type: "address",
365
- indexed: true,
366
- internalType: "address",
367
- },
368
- ],
369
- anonymous: false,
370
- },
371
- {
372
- type: "event",
373
- name: "WBERAStakerVaultUpdated",
374
- inputs: [
375
- {
376
- name: "oldAddress",
377
- type: "address",
378
- indexed: true,
379
- internalType: "address",
380
- },
381
- {
382
- name: "newAddress",
383
- type: "address",
384
- indexed: true,
385
- internalType: "address",
386
- },
387
- ],
388
- anonymous: false,
389
- },
390
- {
391
- type: "event",
392
- name: "WithdrawalRequestCancelled",
393
- inputs: [
394
- {
395
- name: "requestId",
396
- type: "uint256",
397
- indexed: false,
398
- internalType: "uint256",
399
- },
400
- ],
401
- anonymous: false,
402
- },
403
- {
404
- type: "event",
405
- name: "WithdrawalRequestCompleted",
406
- inputs: [
407
- {
408
- name: "requestId",
409
- type: "uint256",
410
- indexed: false,
411
- internalType: "uint256",
412
- },
413
- ],
414
- anonymous: false,
415
- },
416
- {
417
- type: "event",
418
- name: "WithdrawalRequestCreated",
419
- inputs: [
420
- {
421
- name: "requestId",
422
- type: "uint256",
423
- indexed: true,
424
- internalType: "uint256",
425
- },
426
- ],
427
- anonymous: false,
428
- },
429
- {
430
- type: "error",
431
- name: "AddressEmptyCode",
432
- inputs: [{ name: "target", type: "address", internalType: "address" }],
433
- },
434
- { type: "error", name: "AmountGreaterThanReward", inputs: [] },
435
- { type: "error", name: "AmountLessThanMinIncentiveRate", inputs: [] },
436
- { type: "error", name: "CannotRecoverIncentiveToken", inputs: [] },
437
- { type: "error", name: "CannotRecoverRewardToken", inputs: [] },
438
- { type: "error", name: "CannotRecoverStakingToken", inputs: [] },
439
- { type: "error", name: "CommissionChangeAlreadyQueued", inputs: [] },
440
- { type: "error", name: "CommissionNotQueuedOrDelayNotPassed", inputs: [] },
441
- { type: "error", name: "DepositNotMultipleOfGwei", inputs: [] },
442
- { type: "error", name: "DepositValueTooHigh", inputs: [] },
443
- { type: "error", name: "DonateAmountLessThanPayoutAmount", inputs: [] },
444
- {
445
- type: "error",
446
- name: "DuplicateReceiver",
447
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
448
- },
449
- { type: "error", name: "DurationChangeNotAllowed", inputs: [] },
450
- {
451
- type: "error",
452
- name: "ERC1967InvalidImplementation",
453
- inputs: [
454
- { name: "implementation", type: "address", internalType: "address" },
455
- ],
456
- },
457
- { type: "error", name: "ERC1967NonPayable", inputs: [] },
458
- { type: "error", name: "ERC721EnumerableForbiddenBatchMint", inputs: [] },
459
- {
460
- type: "error",
461
- name: "ERC721IncorrectOwner",
462
- inputs: [
463
- { name: "sender", type: "address", internalType: "address" },
464
- { name: "tokenId", type: "uint256", internalType: "uint256" },
465
- { name: "owner", type: "address", internalType: "address" },
466
- ],
467
- },
468
- {
469
- type: "error",
470
- name: "ERC721InsufficientApproval",
471
- inputs: [
472
- { name: "operator", type: "address", internalType: "address" },
473
- { name: "tokenId", type: "uint256", internalType: "uint256" },
474
- ],
475
- },
476
- {
477
- type: "error",
478
- name: "ERC721InvalidApprover",
479
- inputs: [{ name: "approver", type: "address", internalType: "address" }],
480
- },
481
- {
482
- type: "error",
483
- name: "ERC721InvalidOperator",
484
- inputs: [{ name: "operator", type: "address", internalType: "address" }],
485
- },
486
- {
487
- type: "error",
488
- name: "ERC721InvalidOwner",
489
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
490
- },
491
- {
492
- type: "error",
493
- name: "ERC721InvalidReceiver",
494
- inputs: [{ name: "receiver", type: "address", internalType: "address" }],
495
- },
496
- {
497
- type: "error",
498
- name: "ERC721InvalidSender",
499
- inputs: [{ name: "sender", type: "address", internalType: "address" }],
500
- },
501
- {
502
- type: "error",
503
- name: "ERC721NonexistentToken",
504
- inputs: [{ name: "tokenId", type: "uint256", internalType: "uint256" }],
505
- },
506
- {
507
- type: "error",
508
- name: "ERC721OutOfBoundsIndex",
509
- inputs: [
510
- { name: "owner", type: "address", internalType: "address" },
511
- { name: "index", type: "uint256", internalType: "uint256" },
512
- ],
513
- },
514
- { type: "error", name: "FailedCall", inputs: [] },
515
- { type: "error", name: "IncentiveRateTooHigh", inputs: [] },
516
- { type: "error", name: "IndexOutOfRange", inputs: [] },
517
- { type: "error", name: "InsolventReward", inputs: [] },
518
- { type: "error", name: "InsufficientDelegateStake", inputs: [] },
519
- { type: "error", name: "InsufficientDeposit", inputs: [] },
520
- { type: "error", name: "InsufficientIncentiveTokens", inputs: [] },
521
- { type: "error", name: "InsufficientNativeValue", inputs: [] },
522
- { type: "error", name: "InsufficientSelfStake", inputs: [] },
523
- { type: "error", name: "InsufficientStake", inputs: [] },
524
- { type: "error", name: "InvalidActivateBoostDelay", inputs: [] },
525
- { type: "error", name: "InvalidArray", inputs: [] },
526
- { type: "error", name: "InvalidBaseRate", inputs: [] },
527
- { type: "error", name: "InvalidBoostMultiplier", inputs: [] },
528
- { type: "error", name: "InvalidCommissionChangeDelay", inputs: [] },
529
- { type: "error", name: "InvalidCommissionValue", inputs: [] },
530
- { type: "error", name: "InvalidCredentialsLength", inputs: [] },
531
- { type: "error", name: "InvalidDistribution", inputs: [] },
532
- { type: "error", name: "InvalidDropBoostDelay", inputs: [] },
533
- { type: "error", name: "InvalidIncentiveFeeRate", inputs: [] },
534
- { type: "error", name: "InvalidIncentiveRate", inputs: [] },
535
- { type: "error", name: "InvalidInitialization", inputs: [] },
536
- { type: "error", name: "InvalidMaxIncentiveTokensCount", inputs: [] },
537
- { type: "error", name: "InvalidMaxWeightPerVault", inputs: [] },
538
- { type: "error", name: "InvalidMerkleRoot", inputs: [] },
539
- { type: "error", name: "InvalidMinBoostedRewardRate", inputs: [] },
540
- { type: "error", name: "InvalidProof", inputs: [] },
541
- { type: "error", name: "InvalidPubKeyLength", inputs: [] },
542
- { type: "error", name: "InvalidRewardAllocationWeights", inputs: [] },
543
- { type: "error", name: "InvalidRewardClaimDelay", inputs: [] },
544
- { type: "error", name: "InvalidRewardConvexity", inputs: [] },
545
- { type: "error", name: "InvalidRewardDuration", inputs: [] },
546
- { type: "error", name: "InvalidRewardRate", inputs: [] },
547
- { type: "error", name: "InvalidSignatureLength", inputs: [] },
548
- { type: "error", name: "InvalidStartBlock", inputs: [] },
549
- { type: "error", name: "InvalidToken", inputs: [] },
550
- { type: "error", name: "InvalidWeight", inputs: [] },
551
- { type: "error", name: "InvalidateDefaultRewardAllocation", inputs: [] },
552
- { type: "error", name: "InvariantCheckFailed", inputs: [] },
553
- { type: "error", name: "MaxNumWeightsPerRewardAllocationIsZero", inputs: [] },
554
- { type: "error", name: "MethodNotAllowed", inputs: [] },
555
- { type: "error", name: "MinIncentiveRateIsZero", inputs: [] },
556
- { type: "error", name: "NonTransferable", inputs: [] },
557
- { type: "error", name: "NotAContract", inputs: [] },
558
- { type: "error", name: "NotApprovedSender", inputs: [] },
559
- { type: "error", name: "NotBGT", inputs: [] },
560
- { type: "error", name: "NotBlockRewardController", inputs: [] },
561
- { type: "error", name: "NotDelegate", inputs: [] },
562
- { type: "error", name: "NotDistributor", inputs: [] },
563
- { type: "error", name: "NotEnoughBalance", inputs: [] },
564
- { type: "error", name: "NotEnoughBoostedBalance", inputs: [] },
565
- { type: "error", name: "NotEnoughTime", inputs: [] },
566
- { type: "error", name: "NotFactoryVault", inputs: [] },
567
- { type: "error", name: "NotFeeCollector", inputs: [] },
568
- { type: "error", name: "NotIncentiveManager", inputs: [] },
569
- { type: "error", name: "NotInitializing", inputs: [] },
570
- { type: "error", name: "NotNewOperator", inputs: [] },
571
- { type: "error", name: "NotOperator", inputs: [] },
572
- { type: "error", name: "NotRewardAllocator", inputs: [] },
573
- { type: "error", name: "NotRewardDurationManager", inputs: [] },
574
- { type: "error", name: "NotRewardVaultManager", inputs: [] },
575
- { type: "error", name: "NotSystemAddress", inputs: [] },
576
- { type: "error", name: "NotWBERAStakerVault", inputs: [] },
577
- { type: "error", name: "NotWhitelistedVault", inputs: [] },
578
- { type: "error", name: "OnlyNFTOwnerAllowed", inputs: [] },
579
- { type: "error", name: "OnlySystemCallAllowed", inputs: [] },
580
- { type: "error", name: "OperatorAlreadySet", inputs: [] },
581
- {
582
- type: "error",
583
- name: "OwnableInvalidOwner",
584
- inputs: [{ name: "owner", type: "address", internalType: "address" }],
585
- },
586
- {
587
- type: "error",
588
- name: "OwnableUnauthorizedAccount",
589
- inputs: [{ name: "account", type: "address", internalType: "address" }],
590
- },
591
- { type: "error", name: "PayoutAmountIsZero", inputs: [] },
592
- { type: "error", name: "RewardAllocationAlreadyQueued", inputs: [] },
593
- { type: "error", name: "RewardAllocationBlockDelayTooLarge", inputs: [] },
594
- { type: "error", name: "RewardCycleNotEnded", inputs: [] },
595
- { type: "error", name: "RewardDurationCoolDownPeriodNotPassed", inputs: [] },
596
- { type: "error", name: "RewardInactive", inputs: [] },
597
- { type: "error", name: "RewardsDurationIsZero", inputs: [] },
598
- { type: "error", name: "StakeAmountIsZero", inputs: [] },
599
- { type: "error", name: "TimestampAlreadyProcessed", inputs: [] },
600
- { type: "error", name: "TokenAlreadyWhitelistedOrLimitReached", inputs: [] },
601
- { type: "error", name: "TokenNotWhitelisted", inputs: [] },
602
- { type: "error", name: "TooManyWeights", inputs: [] },
603
- { type: "error", name: "TotalSupplyOverflow", inputs: [] },
604
- { type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] },
605
- {
606
- type: "error",
607
- name: "UUPSUnsupportedProxiableUUID",
608
- inputs: [{ name: "slot", type: "bytes32", internalType: "bytes32" }],
609
- },
610
- { type: "error", name: "UnauthorizedETHTransfer", inputs: [] },
611
- { type: "error", name: "WithdrawAmountIsZero", inputs: [] },
612
- { type: "error", name: "WithdrawalAlreadyRequested", inputs: [] },
613
- { type: "error", name: "WithdrawalNotReady", inputs: [] },
614
- { type: "error", name: "WithdrawalNotRequested", inputs: [] },
615
- { type: "error", name: "ZeroAddress", inputs: [] },
616
- { type: "error", name: "ZeroOperatorOnFirstDeposit", inputs: [] },
617
- { type: "error", name: "ZeroPercentageWeight", inputs: [] },
618
- ] as const;