@berachain/berajs 0.2.3 → 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 (203) 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-NrjpnEn8.d.ts → getValidatorQueuedOperatorAddress-CqR6cyqC.d.ts} +3 -3
  45. package/dist/{getValidatorQueuedOperatorAddress-D_LEt3vv.d.cts → getValidatorQueuedOperatorAddress-DZgrPmZ2.d.cts} +3 -3
  46. package/dist/{global.d-X3cqpCEB.d.ts → global.d-BeYWDreg.d.ts} +4 -4
  47. package/dist/{global.d-DLRtrPG5.d.cts → global.d-DghRxpHd.d.cts} +4 -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 +40 -38
  51. package/dist/hooks/exports.d.ts +40 -38
  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 +8 -9
  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/validators/useOnChainValidator.ts +4 -3
  152. package/dist/chunk-3YXSUBA5.mjs +0 -2
  153. package/dist/chunk-A4UDYSB6.mjs +0 -4
  154. package/dist/chunk-A4UDYSB6.mjs.map +0 -1
  155. package/dist/chunk-CYKCYPFR.cjs +0 -2
  156. package/dist/chunk-CYKCYPFR.cjs.map +0 -1
  157. package/dist/chunk-ECRMUMTA.mjs +0 -2
  158. package/dist/chunk-ECRMUMTA.mjs.map +0 -1
  159. package/dist/chunk-F4BKSBEM.mjs +0 -2
  160. package/dist/chunk-F4BKSBEM.mjs.map +0 -1
  161. package/dist/chunk-FL2N3XHK.cjs +0 -2
  162. package/dist/chunk-FL2N3XHK.cjs.map +0 -1
  163. package/dist/chunk-MUCEYO3E.cjs +0 -4
  164. package/dist/chunk-MUCEYO3E.cjs.map +0 -1
  165. package/dist/chunk-P2Q7CMUD.cjs +0 -2
  166. package/dist/chunk-P2Q7CMUD.cjs.map +0 -1
  167. package/dist/chunk-PKXAW6MO.cjs +0 -2
  168. package/dist/chunk-Q3SCM6WL.mjs +0 -2
  169. package/dist/chunk-Q3SCM6WL.mjs.map +0 -1
  170. package/dist/chunk-TEBJWAVU.mjs +0 -2
  171. package/dist/chunk-TEBJWAVU.mjs.map +0 -1
  172. package/dist/chunk-VP7XUOSI.cjs +0 -2
  173. package/dist/chunk-VP7XUOSI.cjs.map +0 -1
  174. package/dist/pythWrapper-CBjsmmsK.d.cts +0 -1958
  175. package/dist/pythWrapper-CBjsmmsK.d.ts +0 -1958
  176. package/src/abi/bend/metaMorpho.ts +0 -2584
  177. package/src/abi/bend/morpho.ts +0 -444
  178. package/src/abi/bex/aggregatorsRouter.ts +0 -492
  179. package/src/abi/bex/balancerComposableStablePoolFactoryV6.ts +0 -283
  180. package/src/abi/bex/balancerPoolCreationHelper.ts +0 -267
  181. package/src/abi/bex/balancerVault.ts +0 -757
  182. package/src/abi/governance/governance.ts +0 -1016
  183. package/src/abi/governance/governanceTimelock.ts +0 -589
  184. package/src/abi/honey/collateralVault.ts +0 -1144
  185. package/src/abi/honey/honey.ts +0 -563
  186. package/src/abi/honey/honeyFactory.ts +0 -1270
  187. package/src/abi/honey/honeyFactoryReader.ts +0 -894
  188. package/src/abi/honey/honeyRootOracle.ts +0 -492
  189. package/src/abi/honey/pythPriceOracle.ts +0 -619
  190. package/src/abi/honey/pythWrapper.ts +0 -446
  191. package/src/abi/pol/LSTStakerVault.ts +0 -2032
  192. package/src/abi/pol/beaconDeposit.ts +0 -595
  193. package/src/abi/pol/beraChef.ts +0 -1019
  194. package/src/abi/pol/bgt.ts +0 -1008
  195. package/src/abi/pol/bgtIncentiveDistributor.ts +0 -640
  196. package/src/abi/pol/bgtStaker.ts +0 -1034
  197. package/src/abi/pol/rewardAllocationFactory.ts +0 -408
  198. package/src/abi/pol/rewardVault.ts +0 -1928
  199. package/src/abi/pol/rewardVaultFactory.ts +0 -586
  200. package/src/abi/pol/rewardVaultHelper.ts +0 -882
  201. package/src/abi/pol/stakeBeraVault.ts +0 -1116
  202. package/src/abi/pol/stakeBeraVaultWithdrawalRequest.ts +0 -618
  203. package/src/abi/pol/wbera.ts +0 -366
@@ -1,586 +0,0 @@
1
- export const rewardVaultFactoryAbi = [
2
- { inputs: [], stateMutability: "nonpayable", type: "constructor" },
3
- { inputs: [], name: "AccessControlBadConfirmation", type: "error" },
4
- {
5
- inputs: [
6
- { internalType: "address", name: "account", type: "address" },
7
- { internalType: "bytes32", name: "neededRole", type: "bytes32" },
8
- ],
9
- name: "AccessControlUnauthorizedAccount",
10
- type: "error",
11
- },
12
- {
13
- inputs: [{ internalType: "address", name: "target", type: "address" }],
14
- name: "AddressEmptyCode",
15
- type: "error",
16
- },
17
- { inputs: [], name: "AmountGreaterThanReward", type: "error" },
18
- { inputs: [], name: "AmountLessThanMinIncentiveRate", type: "error" },
19
- { inputs: [], name: "CannotRecoverIncentiveToken", type: "error" },
20
- { inputs: [], name: "CannotRecoverRewardToken", type: "error" },
21
- { inputs: [], name: "CannotRecoverStakingToken", type: "error" },
22
- { inputs: [], name: "CommissionChangeAlreadyQueued", type: "error" },
23
- { inputs: [], name: "CommissionNotQueuedOrDelayNotPassed", type: "error" },
24
- { inputs: [], name: "DepositNotMultipleOfGwei", type: "error" },
25
- { inputs: [], name: "DepositValueTooHigh", type: "error" },
26
- { inputs: [], name: "DonateAmountLessThanPayoutAmount", type: "error" },
27
- {
28
- inputs: [{ internalType: "address", name: "receiver", type: "address" }],
29
- name: "DuplicateReceiver",
30
- type: "error",
31
- },
32
- { inputs: [], name: "DurationChangeNotAllowed", type: "error" },
33
- {
34
- inputs: [
35
- { internalType: "address", name: "implementation", type: "address" },
36
- ],
37
- name: "ERC1967InvalidImplementation",
38
- type: "error",
39
- },
40
- { inputs: [], name: "ERC1967NonPayable", type: "error" },
41
- { inputs: [], name: "FailedCall", type: "error" },
42
- { inputs: [], name: "IncentiveRateTooHigh", type: "error" },
43
- { inputs: [], name: "IndexOutOfRange", type: "error" },
44
- { inputs: [], name: "InsolventReward", type: "error" },
45
- { inputs: [], name: "InsufficientDelegateStake", type: "error" },
46
- { inputs: [], name: "InsufficientDeposit", type: "error" },
47
- { inputs: [], name: "InsufficientIncentiveTokens", type: "error" },
48
- { inputs: [], name: "InsufficientNativeValue", type: "error" },
49
- { inputs: [], name: "InsufficientSelfStake", type: "error" },
50
- { inputs: [], name: "InsufficientStake", type: "error" },
51
- { inputs: [], name: "InvalidActivateBoostDelay", type: "error" },
52
- { inputs: [], name: "InvalidArray", type: "error" },
53
- { inputs: [], name: "InvalidBaseRate", type: "error" },
54
- { inputs: [], name: "InvalidBoostMultiplier", type: "error" },
55
- { inputs: [], name: "InvalidCommissionChangeDelay", type: "error" },
56
- { inputs: [], name: "InvalidCommissionValue", type: "error" },
57
- { inputs: [], name: "InvalidCredentialsLength", type: "error" },
58
- { inputs: [], name: "InvalidDistribution", type: "error" },
59
- { inputs: [], name: "InvalidDropBoostDelay", type: "error" },
60
- { inputs: [], name: "InvalidIncentiveFeeRate", type: "error" },
61
- { inputs: [], name: "InvalidIncentiveRate", type: "error" },
62
- { inputs: [], name: "InvalidInitialization", type: "error" },
63
- { inputs: [], name: "InvalidMaxIncentiveTokensCount", type: "error" },
64
- { inputs: [], name: "InvalidMaxWeightPerVault", type: "error" },
65
- { inputs: [], name: "InvalidMerkleRoot", type: "error" },
66
- { inputs: [], name: "InvalidMinBoostedRewardRate", type: "error" },
67
- { inputs: [], name: "InvalidProof", type: "error" },
68
- { inputs: [], name: "InvalidPubKeyLength", type: "error" },
69
- { inputs: [], name: "InvalidRewardAllocationWeights", type: "error" },
70
- { inputs: [], name: "InvalidRewardClaimDelay", type: "error" },
71
- { inputs: [], name: "InvalidRewardConvexity", type: "error" },
72
- { inputs: [], name: "InvalidRewardDuration", type: "error" },
73
- { inputs: [], name: "InvalidRewardRate", type: "error" },
74
- { inputs: [], name: "InvalidSignatureLength", type: "error" },
75
- { inputs: [], name: "InvalidStartBlock", type: "error" },
76
- { inputs: [], name: "InvalidToken", type: "error" },
77
- { inputs: [], name: "InvalidWeight", type: "error" },
78
- { inputs: [], name: "InvalidateDefaultRewardAllocation", type: "error" },
79
- { inputs: [], name: "InvariantCheckFailed", type: "error" },
80
- { inputs: [], name: "MaxNumWeightsPerRewardAllocationIsZero", type: "error" },
81
- { inputs: [], name: "MethodNotAllowed", type: "error" },
82
- { inputs: [], name: "MinIncentiveRateIsZero", type: "error" },
83
- { inputs: [], name: "NonTransferable", type: "error" },
84
- { inputs: [], name: "NotAContract", type: "error" },
85
- { inputs: [], name: "NotApprovedSender", type: "error" },
86
- { inputs: [], name: "NotBGT", type: "error" },
87
- { inputs: [], name: "NotBlockRewardController", type: "error" },
88
- { inputs: [], name: "NotDelegate", type: "error" },
89
- { inputs: [], name: "NotDistributor", type: "error" },
90
- { inputs: [], name: "NotEnoughBalance", type: "error" },
91
- { inputs: [], name: "NotEnoughBoostedBalance", type: "error" },
92
- { inputs: [], name: "NotEnoughTime", type: "error" },
93
- { inputs: [], name: "NotFactoryVault", type: "error" },
94
- { inputs: [], name: "NotFeeCollector", type: "error" },
95
- { inputs: [], name: "NotIncentiveManager", type: "error" },
96
- { inputs: [], name: "NotInitializing", type: "error" },
97
- { inputs: [], name: "NotNewOperator", type: "error" },
98
- { inputs: [], name: "NotOperator", type: "error" },
99
- { inputs: [], name: "NotRewardAllocator", type: "error" },
100
- { inputs: [], name: "NotRewardDurationManager", type: "error" },
101
- { inputs: [], name: "NotRewardVaultManager", type: "error" },
102
- { inputs: [], name: "NotSystemAddress", type: "error" },
103
- { inputs: [], name: "NotWBERAStakerVault", type: "error" },
104
- { inputs: [], name: "NotWhitelistedVault", type: "error" },
105
- { inputs: [], name: "OnlyNFTOwnerAllowed", type: "error" },
106
- { inputs: [], name: "OnlySystemCallAllowed", type: "error" },
107
- { inputs: [], name: "OperatorAlreadySet", type: "error" },
108
- { inputs: [], name: "PayoutAmountIsZero", type: "error" },
109
- { inputs: [], name: "RewardAllocationAlreadyQueued", type: "error" },
110
- { inputs: [], name: "RewardAllocationBlockDelayTooLarge", type: "error" },
111
- { inputs: [], name: "RewardCycleNotEnded", type: "error" },
112
- { inputs: [], name: "RewardDurationCoolDownPeriodNotPassed", type: "error" },
113
- { inputs: [], name: "RewardInactive", type: "error" },
114
- { inputs: [], name: "RewardsDurationIsZero", type: "error" },
115
- { inputs: [], name: "StakeAmountIsZero", type: "error" },
116
- { inputs: [], name: "TimestampAlreadyProcessed", type: "error" },
117
- { inputs: [], name: "TokenAlreadyWhitelistedOrLimitReached", type: "error" },
118
- { inputs: [], name: "TokenNotWhitelisted", type: "error" },
119
- { inputs: [], name: "TooManyWeights", type: "error" },
120
- { inputs: [], name: "TotalSupplyOverflow", type: "error" },
121
- { inputs: [], name: "UUPSUnauthorizedCallContext", type: "error" },
122
- {
123
- inputs: [{ internalType: "bytes32", name: "slot", type: "bytes32" }],
124
- name: "UUPSUnsupportedProxiableUUID",
125
- type: "error",
126
- },
127
- { inputs: [], name: "UnauthorizedETHTransfer", type: "error" },
128
- { inputs: [], name: "WithdrawAmountIsZero", type: "error" },
129
- { inputs: [], name: "WithdrawalAlreadyRequested", type: "error" },
130
- { inputs: [], name: "WithdrawalNotReady", type: "error" },
131
- { inputs: [], name: "WithdrawalNotRequested", type: "error" },
132
- { inputs: [], name: "ZeroAddress", type: "error" },
133
- { inputs: [], name: "ZeroOperatorOnFirstDeposit", type: "error" },
134
- { inputs: [], name: "ZeroPercentageWeight", type: "error" },
135
- {
136
- anonymous: false,
137
- inputs: [
138
- {
139
- indexed: true,
140
- internalType: "address",
141
- name: "newBGTIncentiveDistributor",
142
- type: "address",
143
- },
144
- {
145
- indexed: true,
146
- internalType: "address",
147
- name: "oldBGTIncentiveDistributor",
148
- type: "address",
149
- },
150
- ],
151
- name: "BGTIncentiveDistributorSet",
152
- type: "event",
153
- },
154
- {
155
- anonymous: false,
156
- inputs: [
157
- {
158
- indexed: false,
159
- internalType: "address",
160
- name: "newAddress",
161
- type: "address",
162
- },
163
- {
164
- indexed: false,
165
- internalType: "address",
166
- name: "oldAddress",
167
- type: "address",
168
- },
169
- ],
170
- name: "IncentiveFeeCollectorUpdated",
171
- type: "event",
172
- },
173
- {
174
- anonymous: false,
175
- inputs: [
176
- {
177
- indexed: false,
178
- internalType: "uint256",
179
- name: "newValue",
180
- type: "uint256",
181
- },
182
- {
183
- indexed: false,
184
- internalType: "uint256",
185
- name: "oldValue",
186
- type: "uint256",
187
- },
188
- ],
189
- name: "IncentiveFeeRateUpdated",
190
- type: "event",
191
- },
192
- {
193
- anonymous: false,
194
- inputs: [
195
- {
196
- indexed: false,
197
- internalType: "uint64",
198
- name: "version",
199
- type: "uint64",
200
- },
201
- ],
202
- name: "Initialized",
203
- type: "event",
204
- },
205
- {
206
- anonymous: false,
207
- inputs: [
208
- {
209
- indexed: false,
210
- internalType: "address",
211
- name: "newAddress",
212
- type: "address",
213
- },
214
- {
215
- indexed: false,
216
- internalType: "address",
217
- name: "oldAddress",
218
- type: "address",
219
- },
220
- ],
221
- name: "RewardVaultHelperUpdated",
222
- type: "event",
223
- },
224
- {
225
- anonymous: false,
226
- inputs: [
227
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
228
- {
229
- indexed: true,
230
- internalType: "bytes32",
231
- name: "previousAdminRole",
232
- type: "bytes32",
233
- },
234
- {
235
- indexed: true,
236
- internalType: "bytes32",
237
- name: "newAdminRole",
238
- type: "bytes32",
239
- },
240
- ],
241
- name: "RoleAdminChanged",
242
- type: "event",
243
- },
244
- {
245
- anonymous: false,
246
- inputs: [
247
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
248
- {
249
- indexed: true,
250
- internalType: "address",
251
- name: "account",
252
- type: "address",
253
- },
254
- {
255
- indexed: true,
256
- internalType: "address",
257
- name: "sender",
258
- type: "address",
259
- },
260
- ],
261
- name: "RoleGranted",
262
- type: "event",
263
- },
264
- {
265
- anonymous: false,
266
- inputs: [
267
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
268
- {
269
- indexed: true,
270
- internalType: "address",
271
- name: "account",
272
- type: "address",
273
- },
274
- {
275
- indexed: true,
276
- internalType: "address",
277
- name: "sender",
278
- type: "address",
279
- },
280
- ],
281
- name: "RoleRevoked",
282
- type: "event",
283
- },
284
- {
285
- anonymous: false,
286
- inputs: [
287
- {
288
- indexed: true,
289
- internalType: "address",
290
- name: "implementation",
291
- type: "address",
292
- },
293
- ],
294
- name: "Upgraded",
295
- type: "event",
296
- },
297
- {
298
- anonymous: false,
299
- inputs: [
300
- {
301
- indexed: true,
302
- internalType: "address",
303
- name: "stakingToken",
304
- type: "address",
305
- },
306
- {
307
- indexed: true,
308
- internalType: "address",
309
- name: "vault",
310
- type: "address",
311
- },
312
- ],
313
- name: "VaultCreated",
314
- type: "event",
315
- },
316
- {
317
- inputs: [],
318
- name: "DEFAULT_ADMIN_ROLE",
319
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
320
- stateMutability: "view",
321
- type: "function",
322
- },
323
- {
324
- inputs: [],
325
- name: "UPGRADE_INTERFACE_VERSION",
326
- outputs: [{ internalType: "string", name: "", type: "string" }],
327
- stateMutability: "view",
328
- type: "function",
329
- },
330
- {
331
- inputs: [],
332
- name: "VAULT_MANAGER_ROLE",
333
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
334
- stateMutability: "view",
335
- type: "function",
336
- },
337
- {
338
- inputs: [],
339
- name: "VAULT_PAUSER_ROLE",
340
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
341
- stateMutability: "view",
342
- type: "function",
343
- },
344
- {
345
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
346
- name: "allVaults",
347
- outputs: [{ internalType: "address", name: "", type: "address" }],
348
- stateMutability: "view",
349
- type: "function",
350
- },
351
- {
352
- inputs: [],
353
- name: "allVaultsLength",
354
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
355
- stateMutability: "view",
356
- type: "function",
357
- },
358
- {
359
- inputs: [],
360
- name: "beacon",
361
- outputs: [{ internalType: "address", name: "", type: "address" }],
362
- stateMutability: "view",
363
- type: "function",
364
- },
365
- {
366
- inputs: [],
367
- name: "beaconDepositContract",
368
- outputs: [{ internalType: "address", name: "", type: "address" }],
369
- stateMutability: "view",
370
- type: "function",
371
- },
372
- {
373
- inputs: [],
374
- name: "bgt",
375
- outputs: [{ internalType: "address", name: "", type: "address" }],
376
- stateMutability: "view",
377
- type: "function",
378
- },
379
- {
380
- inputs: [],
381
- name: "bgtIncentiveDistributor",
382
- outputs: [{ internalType: "address", name: "", type: "address" }],
383
- stateMutability: "view",
384
- type: "function",
385
- },
386
- {
387
- inputs: [],
388
- name: "bgtIncentiveFeeCollector",
389
- outputs: [{ internalType: "address", name: "", type: "address" }],
390
- stateMutability: "view",
391
- type: "function",
392
- },
393
- {
394
- inputs: [],
395
- name: "bgtIncentiveFeeRate",
396
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
397
- stateMutability: "view",
398
- type: "function",
399
- },
400
- {
401
- inputs: [
402
- { internalType: "address", name: "stakingToken", type: "address" },
403
- ],
404
- name: "createRewardVault",
405
- outputs: [{ internalType: "address", name: "", type: "address" }],
406
- stateMutability: "nonpayable",
407
- type: "function",
408
- },
409
- {
410
- inputs: [],
411
- name: "distributor",
412
- outputs: [{ internalType: "address", name: "", type: "address" }],
413
- stateMutability: "view",
414
- type: "function",
415
- },
416
- {
417
- inputs: [
418
- { internalType: "uint256", name: "incentiveAmount", type: "uint256" },
419
- ],
420
- name: "getIncentiveFeeAmount",
421
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
422
- stateMutability: "view",
423
- type: "function",
424
- },
425
- {
426
- inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }],
427
- name: "getRoleAdmin",
428
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
429
- stateMutability: "view",
430
- type: "function",
431
- },
432
- {
433
- inputs: [
434
- { internalType: "address", name: "stakingToken", type: "address" },
435
- ],
436
- name: "getVault",
437
- outputs: [{ internalType: "address", name: "vault", type: "address" }],
438
- stateMutability: "view",
439
- type: "function",
440
- },
441
- {
442
- inputs: [
443
- { internalType: "bytes32", name: "role", type: "bytes32" },
444
- { internalType: "address", name: "account", type: "address" },
445
- ],
446
- name: "grantRole",
447
- outputs: [],
448
- stateMutability: "nonpayable",
449
- type: "function",
450
- },
451
- {
452
- inputs: [
453
- { internalType: "bytes32", name: "role", type: "bytes32" },
454
- { internalType: "address", name: "account", type: "address" },
455
- ],
456
- name: "hasRole",
457
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
458
- stateMutability: "view",
459
- type: "function",
460
- },
461
- {
462
- inputs: [
463
- { internalType: "address", name: "_bgt", type: "address" },
464
- { internalType: "address", name: "_distributor", type: "address" },
465
- {
466
- internalType: "address",
467
- name: "_beaconDepositContract",
468
- type: "address",
469
- },
470
- { internalType: "address", name: "_governance", type: "address" },
471
- { internalType: "address", name: "_vaultImpl", type: "address" },
472
- ],
473
- name: "initialize",
474
- outputs: [],
475
- stateMutability: "nonpayable",
476
- type: "function",
477
- },
478
- {
479
- inputs: [
480
- { internalType: "address", name: "stakingToken", type: "address" },
481
- ],
482
- name: "predictRewardVaultAddress",
483
- outputs: [{ internalType: "address", name: "", type: "address" }],
484
- stateMutability: "view",
485
- type: "function",
486
- },
487
- {
488
- inputs: [],
489
- name: "proxiableUUID",
490
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
491
- stateMutability: "view",
492
- type: "function",
493
- },
494
- {
495
- inputs: [
496
- { internalType: "bytes32", name: "role", type: "bytes32" },
497
- { internalType: "address", name: "callerConfirmation", type: "address" },
498
- ],
499
- name: "renounceRole",
500
- outputs: [],
501
- stateMutability: "nonpayable",
502
- type: "function",
503
- },
504
- {
505
- inputs: [
506
- { internalType: "bytes32", name: "role", type: "bytes32" },
507
- { internalType: "address", name: "account", type: "address" },
508
- ],
509
- name: "revokeRole",
510
- outputs: [],
511
- stateMutability: "nonpayable",
512
- type: "function",
513
- },
514
- {
515
- inputs: [],
516
- name: "rewardVaultHelper",
517
- outputs: [{ internalType: "address", name: "", type: "address" }],
518
- stateMutability: "view",
519
- type: "function",
520
- },
521
- {
522
- inputs: [
523
- {
524
- internalType: "address",
525
- name: "_bgtIncentiveDistributor",
526
- type: "address",
527
- },
528
- ],
529
- name: "setBGTIncentiveDistributor",
530
- outputs: [],
531
- stateMutability: "nonpayable",
532
- type: "function",
533
- },
534
- {
535
- inputs: [
536
- {
537
- internalType: "address",
538
- name: "_bgtIncentiveFeeCollector",
539
- type: "address",
540
- },
541
- ],
542
- name: "setBGTIncentiveFeeCollector",
543
- outputs: [],
544
- stateMutability: "nonpayable",
545
- type: "function",
546
- },
547
- {
548
- inputs: [
549
- {
550
- internalType: "uint256",
551
- name: "_bgtIncentiveFeeRate",
552
- type: "uint256",
553
- },
554
- ],
555
- name: "setBGTIncentiveFeeRate",
556
- outputs: [],
557
- stateMutability: "nonpayable",
558
- type: "function",
559
- },
560
- {
561
- inputs: [
562
- { internalType: "address", name: "_rewardVaultHelper", type: "address" },
563
- ],
564
- name: "setRewardVaultHelper",
565
- outputs: [],
566
- stateMutability: "nonpayable",
567
- type: "function",
568
- },
569
- {
570
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
571
- name: "supportsInterface",
572
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
573
- stateMutability: "view",
574
- type: "function",
575
- },
576
- {
577
- inputs: [
578
- { internalType: "address", name: "newImplementation", type: "address" },
579
- { internalType: "bytes", name: "data", type: "bytes" },
580
- ],
581
- name: "upgradeToAndCall",
582
- outputs: [],
583
- stateMutability: "payable",
584
- type: "function",
585
- },
586
- ] as const;