@berachain/berajs 0.2.3 → 0.2.5

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 (185) 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-BKDBIBVO.mjs +4 -0
  23. package/dist/chunk-BKDBIBVO.mjs.map +1 -0
  24. package/dist/chunk-NLVWRMGD.mjs +2 -0
  25. package/dist/chunk-NLVWRMGD.mjs.map +1 -0
  26. package/dist/chunk-OUD27MU7.cjs +2 -0
  27. package/dist/chunk-OUD27MU7.cjs.map +1 -0
  28. package/dist/chunk-UXGB54NE.cjs +4 -0
  29. package/dist/chunk-UXGB54NE.cjs.map +1 -0
  30. package/dist/contexts/exports.d.cts +3 -3
  31. package/dist/contexts/exports.d.ts +3 -3
  32. package/dist/enum/exports.d.cts +1 -1
  33. package/dist/enum/exports.d.ts +1 -1
  34. package/dist/errors/exports.d.cts +1 -1
  35. package/dist/errors/exports.d.ts +1 -1
  36. package/dist/{getValidatorQueuedOperatorAddress-NrjpnEn8.d.ts → getValidatorQueuedOperatorAddress-CqR6cyqC.d.ts} +3 -3
  37. package/dist/{getValidatorQueuedOperatorAddress-D_LEt3vv.d.cts → getValidatorQueuedOperatorAddress-DZgrPmZ2.d.cts} +3 -3
  38. package/dist/{global.d-X3cqpCEB.d.ts → global.d-BeYWDreg.d.ts} +4 -4
  39. package/dist/{global.d-DLRtrPG5.d.cts → global.d-DghRxpHd.d.cts} +4 -4
  40. package/dist/hooks/exports.cjs +3 -3
  41. package/dist/hooks/exports.cjs.map +1 -1
  42. package/dist/hooks/exports.d.cts +40 -38
  43. package/dist/hooks/exports.d.ts +40 -38
  44. package/dist/hooks/exports.mjs +3 -3
  45. package/dist/hooks/exports.mjs.map +1 -1
  46. package/dist/{txnEnum-BlBYhNRl.d.cts → txnEnum-DxPRHSJt.d.cts} +1 -1
  47. package/dist/{txnEnum-BlBYhNRl.d.ts → txnEnum-DxPRHSJt.d.ts} +1 -1
  48. package/dist/types/exports.d.cts +3 -3
  49. package/dist/types/exports.d.ts +3 -3
  50. package/dist/{useHoneySwapState-D1DKG_Of.d.ts → useHoneySwapState-B494PQDl.d.ts} +1 -1
  51. package/dist/{useHoneySwapState-B-vmIP1b.d.cts → useHoneySwapState-D6vpv19r.d.cts} +1 -1
  52. package/dist/utils/exports.d.cts +2 -2
  53. package/dist/utils/exports.d.ts +2 -2
  54. package/package.json +8 -9
  55. package/src/abi/exports.ts +0 -27
  56. package/src/actions/bend/getConvertToAssets.ts +1 -1
  57. package/src/actions/bend/getMaxDeposit.ts +1 -1
  58. package/src/actions/dex/aggregators/bex.ts +2 -1
  59. package/src/actions/dex/aggregators/enso/enso.ts +3 -2
  60. package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +2 -3
  61. package/src/actions/dex/aggregators/erc4626.ts +2 -1
  62. package/src/actions/dex/aggregators/fly.ts +2 -1
  63. package/src/actions/dex/aggregators/haiku.ts +2 -1
  64. package/src/actions/dex/aggregators/kyberswap.ts +2 -2
  65. package/src/actions/dex/aggregators/oogabooga.ts +2 -1
  66. package/src/actions/dex/aggregators/openOcean.ts +2 -1
  67. package/src/actions/dex/aggregators/wbera.ts +2 -1
  68. package/src/actions/dex/getVaultPausedState.ts +2 -1
  69. package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +1 -1
  70. package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +2 -1
  71. package/src/actions/governance/__tests__/getDecodedFunctionData.integration.test.ts +66 -78
  72. package/src/actions/governance/__tests__/getQuorum.integration.test.ts +6 -7
  73. package/src/actions/governance/getDecodedFunctionData.ts +2 -2
  74. package/src/actions/governance/getProposalFromTx.ts +2 -1
  75. package/src/actions/governance/getProposalParams.ts +3 -2
  76. package/src/actions/governance/getQuorum.ts +2 -1
  77. package/src/actions/honey/getCollateralWeights.ts +2 -1
  78. package/src/actions/honey/getGlobalCapLimit.ts +2 -1
  79. package/src/actions/honey/getHoneyCollaterals.ts +2 -1
  80. package/src/actions/honey/getHoneyFees.ts +2 -1
  81. package/src/actions/honey/getHoneyPausedState.ts +2 -1
  82. package/src/actions/honey/getHoneyPreview.ts +2 -1
  83. package/src/actions/honey/getHoneyPythPriceOracle.ts +1 -1
  84. package/src/actions/honey/getHoneyRootPriceOracle.ts +2 -1
  85. package/src/actions/honey/getHoneyVaultsBalance.ts +3 -2
  86. package/src/actions/honey/getRelativeCapLimit.ts +2 -1
  87. package/src/actions/honey/getSharesWithoutFees.ts +3 -2
  88. package/src/actions/honey/getSwapPayload.ts +3 -2
  89. package/src/actions/honey/isBadCollateralAsset.ts +3 -2
  90. package/src/actions/honey/isBasketModeEnabled.ts +3 -2
  91. package/src/actions/pol/getBgtTokenTotalBoosts.ts +2 -1
  92. package/src/actions/pol/getLSTStakeConfig.ts +2 -1
  93. package/src/actions/pol/getRewardTokenToBeraRate.ts +2 -1
  94. package/src/actions/pol/getRewardVaultBeaconImplementation.ts +2 -1
  95. package/src/actions/pol/getRewardVaultDurationConstants.ts +2 -1
  96. package/src/actions/pol/getRewardVaultFromToken.ts +2 -1
  97. package/src/actions/pol/getRewardVaultIncentives.ts +2 -1
  98. package/src/actions/pol/getRewardVaultRewards.ts +2 -1
  99. package/src/actions/pol/getRewardVaultStakingToken.ts +1 -1
  100. package/src/actions/pol/getRewardVaults.ts +2 -1
  101. package/src/actions/pol/getSWBeraVaultMetadata.ts +2 -1
  102. package/src/actions/pol/getSWBeraWithdrawal.ts +2 -1
  103. package/src/actions/pol/getStakeWithdrawalCooldown.ts +1 -1
  104. package/src/actions/pol/getTotalStakedAmount.ts +2 -1
  105. package/src/actions/pol/getUserVaults.ts +2 -1
  106. package/src/actions/pol/getUserVaultsBalance.ts +2 -1
  107. package/src/actions/pol/getUserVaultsReward.ts +1 -1
  108. package/src/actions/pol/getVaultsSupply.ts +1 -1
  109. package/src/actions/pyth/getHoneyPythFeeds.ts +2 -1
  110. package/src/actions/transactions/beraWriteContract.integration.test.ts +48 -51
  111. package/src/actions/validators/getActiveBoostAndCommissionChangeDelay.ts +3 -2
  112. package/src/actions/validators/getBaselineRewardAllocation.ts +2 -1
  113. package/src/actions/validators/getDefaultRewardAllocation.ts +2 -1
  114. package/src/actions/validators/getUserBoostsOnValidator.ts +2 -1
  115. package/src/actions/validators/getValidatorCommission.ts +2 -1
  116. package/src/actions/validators/getValidatorOperatorAddress.ts +2 -1
  117. package/src/actions/validators/getValidatorQueuedCommission.ts +2 -1
  118. package/src/actions/validators/getValidatorQueuedOperatorAddress.ts +2 -1
  119. package/src/actions/validators/getValidatorQueuedRewardAllocation.ts +2 -1
  120. package/src/actions/validators/getValidatorRewardAllocation.ts +2 -1
  121. package/src/actions/validators/getValidatorRewardAllocatorAddress.ts +2 -1
  122. package/src/actions/validators/utils/__tests__/validatorUtils.integration.test.ts +10 -11
  123. package/src/errors/getRevertReason.integration.test.ts +115 -107
  124. package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +2 -1
  125. package/src/hooks/dex/useCreatePool.ts +2 -1
  126. package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +2 -1
  127. package/src/hooks/governance/useGetPastVotes.ts +2 -1
  128. package/src/hooks/governance/useHasVoted.ts +2 -1
  129. package/src/hooks/governance/useIsCanceller.ts +2 -1
  130. package/src/hooks/governance/usePollProposalThreshold.ts +2 -1
  131. package/src/hooks/governance/usePollUserDelegates.ts +2 -1
  132. package/src/hooks/governance/useProposalSnapshot.ts +2 -1
  133. package/src/hooks/governance/useProposalState.ts +2 -1
  134. package/src/hooks/governance/useProposalTimelockState.ts +5 -4
  135. package/src/hooks/pol/useBgtUnstakedBalance.ts +2 -1
  136. package/src/hooks/pol/useOnChainRewardVault.ts +2 -1
  137. package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +2 -1
  138. package/src/hooks/pol/useRewardVaultFromToken.ts +2 -1
  139. package/src/hooks/validators/useOnChainValidator.ts +4 -3
  140. package/dist/chunk-A4UDYSB6.mjs +0 -4
  141. package/dist/chunk-A4UDYSB6.mjs.map +0 -1
  142. package/dist/chunk-CYKCYPFR.cjs +0 -2
  143. package/dist/chunk-CYKCYPFR.cjs.map +0 -1
  144. package/dist/chunk-F4BKSBEM.mjs +0 -2
  145. package/dist/chunk-F4BKSBEM.mjs.map +0 -1
  146. package/dist/chunk-FL2N3XHK.cjs +0 -2
  147. package/dist/chunk-FL2N3XHK.cjs.map +0 -1
  148. package/dist/chunk-MUCEYO3E.cjs +0 -4
  149. package/dist/chunk-MUCEYO3E.cjs.map +0 -1
  150. package/dist/chunk-Q3SCM6WL.mjs +0 -2
  151. package/dist/chunk-Q3SCM6WL.mjs.map +0 -1
  152. package/dist/chunk-TEBJWAVU.mjs +0 -2
  153. package/dist/chunk-TEBJWAVU.mjs.map +0 -1
  154. package/dist/chunk-VP7XUOSI.cjs +0 -2
  155. package/dist/chunk-VP7XUOSI.cjs.map +0 -1
  156. package/dist/pythWrapper-CBjsmmsK.d.cts +0 -1958
  157. package/dist/pythWrapper-CBjsmmsK.d.ts +0 -1958
  158. package/src/abi/bend/metaMorpho.ts +0 -2584
  159. package/src/abi/bend/morpho.ts +0 -444
  160. package/src/abi/bex/aggregatorsRouter.ts +0 -492
  161. package/src/abi/bex/balancerComposableStablePoolFactoryV6.ts +0 -283
  162. package/src/abi/bex/balancerPoolCreationHelper.ts +0 -267
  163. package/src/abi/bex/balancerVault.ts +0 -757
  164. package/src/abi/governance/governance.ts +0 -1016
  165. package/src/abi/governance/governanceTimelock.ts +0 -589
  166. package/src/abi/honey/collateralVault.ts +0 -1144
  167. package/src/abi/honey/honey.ts +0 -563
  168. package/src/abi/honey/honeyFactory.ts +0 -1270
  169. package/src/abi/honey/honeyFactoryReader.ts +0 -894
  170. package/src/abi/honey/honeyRootOracle.ts +0 -492
  171. package/src/abi/honey/pythPriceOracle.ts +0 -619
  172. package/src/abi/honey/pythWrapper.ts +0 -446
  173. package/src/abi/pol/LSTStakerVault.ts +0 -2032
  174. package/src/abi/pol/beaconDeposit.ts +0 -595
  175. package/src/abi/pol/beraChef.ts +0 -1019
  176. package/src/abi/pol/bgt.ts +0 -1008
  177. package/src/abi/pol/bgtIncentiveDistributor.ts +0 -640
  178. package/src/abi/pol/bgtStaker.ts +0 -1034
  179. package/src/abi/pol/rewardAllocationFactory.ts +0 -408
  180. package/src/abi/pol/rewardVault.ts +0 -1928
  181. package/src/abi/pol/rewardVaultFactory.ts +0 -586
  182. package/src/abi/pol/rewardVaultHelper.ts +0 -882
  183. package/src/abi/pol/stakeBeraVault.ts +0 -1116
  184. package/src/abi/pol/stakeBeraVaultWithdrawalRequest.ts +0 -618
  185. package/src/abi/pol/wbera.ts +0 -366
@@ -1,408 +0,0 @@
1
- export const rewardAllocationFactoryAbi = [
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
- {
70
- inputs: [],
71
- name: "InvalidRewardAllocationInactivityBlockSpan",
72
- type: "error",
73
- },
74
- { inputs: [], name: "InvalidRewardAllocationWeights", type: "error" },
75
- { inputs: [], name: "InvalidRewardClaimDelay", type: "error" },
76
- { inputs: [], name: "InvalidRewardConvexity", type: "error" },
77
- { inputs: [], name: "InvalidRewardDuration", type: "error" },
78
- { inputs: [], name: "InvalidRewardRate", type: "error" },
79
- { inputs: [], name: "InvalidSignatureLength", type: "error" },
80
- { inputs: [], name: "InvalidStartBlock", type: "error" },
81
- { inputs: [], name: "InvalidToken", type: "error" },
82
- { inputs: [], name: "InvalidWeight", type: "error" },
83
- { inputs: [], name: "InvalidateDefaultRewardAllocation", type: "error" },
84
- { inputs: [], name: "InvariantCheckFailed", type: "error" },
85
- { inputs: [], name: "MaxNumWeightsPerRewardAllocationIsZero", type: "error" },
86
- { inputs: [], name: "MethodNotAllowed", type: "error" },
87
- { inputs: [], name: "MinIncentiveRateIsZero", type: "error" },
88
- { inputs: [], name: "NonTransferable", type: "error" },
89
- { inputs: [], name: "NotAContract", type: "error" },
90
- { inputs: [], name: "NotApprovedSender", type: "error" },
91
- { inputs: [], name: "NotBGT", type: "error" },
92
- { inputs: [], name: "NotBlockRewardController", type: "error" },
93
- { inputs: [], name: "NotDelegate", type: "error" },
94
- { inputs: [], name: "NotDistributor", type: "error" },
95
- { inputs: [], name: "NotEnoughBalance", type: "error" },
96
- { inputs: [], name: "NotEnoughBoostedBalance", type: "error" },
97
- { inputs: [], name: "NotEnoughTime", type: "error" },
98
- { inputs: [], name: "NotFactoryVault", type: "error" },
99
- { inputs: [], name: "NotFeeCollector", type: "error" },
100
- { inputs: [], name: "NotIncentiveManager", type: "error" },
101
- { inputs: [], name: "NotInitializing", type: "error" },
102
- { inputs: [], name: "NotNewOperator", type: "error" },
103
- { inputs: [], name: "NotOperator", type: "error" },
104
- { inputs: [], name: "NotRewardAllocator", type: "error" },
105
- { inputs: [], name: "NotRewardDurationManager", type: "error" },
106
- { inputs: [], name: "NotRewardVaultManager", type: "error" },
107
- { inputs: [], name: "NotSystemAddress", type: "error" },
108
- { inputs: [], name: "NotWBERAStakerVault", type: "error" },
109
- { inputs: [], name: "NotWhitelistedVault", type: "error" },
110
- { inputs: [], name: "OnlyNFTOwnerAllowed", type: "error" },
111
- { inputs: [], name: "OnlySystemCallAllowed", type: "error" },
112
- { inputs: [], name: "OperatorAlreadySet", type: "error" },
113
- { inputs: [], name: "PayoutAmountIsZero", type: "error" },
114
- { inputs: [], name: "RewardAllocationAlreadyQueued", type: "error" },
115
- { inputs: [], name: "RewardAllocationBlockDelayTooLarge", type: "error" },
116
- { inputs: [], name: "RewardCycleNotEnded", type: "error" },
117
- { inputs: [], name: "RewardDurationCoolDownPeriodNotPassed", type: "error" },
118
- { inputs: [], name: "RewardInactive", type: "error" },
119
- { inputs: [], name: "RewardsDurationIsZero", type: "error" },
120
- { inputs: [], name: "StakeAmountIsZero", type: "error" },
121
- { inputs: [], name: "TimestampAlreadyProcessed", type: "error" },
122
- { inputs: [], name: "TokenAlreadyWhitelistedOrLimitReached", type: "error" },
123
- { inputs: [], name: "TokenNotWhitelisted", type: "error" },
124
- { inputs: [], name: "TooManyWeights", type: "error" },
125
- { inputs: [], name: "TotalSupplyOverflow", type: "error" },
126
- { inputs: [], name: "UUPSUnauthorizedCallContext", type: "error" },
127
- {
128
- inputs: [{ internalType: "bytes32", name: "slot", type: "bytes32" }],
129
- name: "UUPSUnsupportedProxiableUUID",
130
- type: "error",
131
- },
132
- { inputs: [], name: "UnauthorizedETHTransfer", type: "error" },
133
- { inputs: [], name: "WithdrawAmountIsZero", type: "error" },
134
- { inputs: [], name: "WithdrawalAlreadyRequested", type: "error" },
135
- { inputs: [], name: "WithdrawalNotReady", type: "error" },
136
- { inputs: [], name: "WithdrawalNotRequested", type: "error" },
137
- { inputs: [], name: "ZeroAddress", type: "error" },
138
- { inputs: [], name: "ZeroOperatorOnFirstDeposit", type: "error" },
139
- { inputs: [], name: "ZeroPercentageWeight", type: "error" },
140
- {
141
- anonymous: false,
142
- inputs: [
143
- {
144
- components: [
145
- { internalType: "address", name: "receiver", type: "address" },
146
- {
147
- internalType: "uint96",
148
- name: "percentageNumerator",
149
- type: "uint96",
150
- },
151
- ],
152
- indexed: false,
153
- internalType: "struct IBeraChef.Weight[]",
154
- name: "weights",
155
- type: "tuple[]",
156
- },
157
- ],
158
- name: "BaselineAllocationSet",
159
- type: "event",
160
- },
161
- {
162
- anonymous: false,
163
- inputs: [
164
- {
165
- indexed: false,
166
- internalType: "uint64",
167
- name: "version",
168
- type: "uint64",
169
- },
170
- ],
171
- name: "Initialized",
172
- type: "event",
173
- },
174
- {
175
- anonymous: false,
176
- inputs: [
177
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
178
- {
179
- indexed: true,
180
- internalType: "bytes32",
181
- name: "previousAdminRole",
182
- type: "bytes32",
183
- },
184
- {
185
- indexed: true,
186
- internalType: "bytes32",
187
- name: "newAdminRole",
188
- type: "bytes32",
189
- },
190
- ],
191
- name: "RoleAdminChanged",
192
- type: "event",
193
- },
194
- {
195
- anonymous: false,
196
- inputs: [
197
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
198
- {
199
- indexed: true,
200
- internalType: "address",
201
- name: "account",
202
- type: "address",
203
- },
204
- {
205
- indexed: true,
206
- internalType: "address",
207
- name: "sender",
208
- type: "address",
209
- },
210
- ],
211
- name: "RoleGranted",
212
- type: "event",
213
- },
214
- {
215
- anonymous: false,
216
- inputs: [
217
- { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" },
218
- {
219
- indexed: true,
220
- internalType: "address",
221
- name: "account",
222
- type: "address",
223
- },
224
- {
225
- indexed: true,
226
- internalType: "address",
227
- name: "sender",
228
- type: "address",
229
- },
230
- ],
231
- name: "RoleRevoked",
232
- type: "event",
233
- },
234
- {
235
- anonymous: false,
236
- inputs: [
237
- {
238
- indexed: true,
239
- internalType: "address",
240
- name: "implementation",
241
- type: "address",
242
- },
243
- ],
244
- name: "Upgraded",
245
- type: "event",
246
- },
247
- {
248
- inputs: [],
249
- name: "ALLOCATION_SETTER_ROLE",
250
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
251
- stateMutability: "view",
252
- type: "function",
253
- },
254
- {
255
- inputs: [],
256
- name: "DEFAULT_ADMIN_ROLE",
257
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
258
- stateMutability: "view",
259
- type: "function",
260
- },
261
- {
262
- inputs: [],
263
- name: "UPGRADE_INTERFACE_VERSION",
264
- outputs: [{ internalType: "string", name: "", type: "string" }],
265
- stateMutability: "view",
266
- type: "function",
267
- },
268
- {
269
- inputs: [],
270
- name: "beraChef",
271
- outputs: [
272
- { internalType: "contract IBeraChef", name: "", type: "address" },
273
- ],
274
- stateMutability: "view",
275
- type: "function",
276
- },
277
- {
278
- inputs: [],
279
- name: "getBaselineAllocation",
280
- outputs: [
281
- {
282
- components: [
283
- { internalType: "uint64", name: "startBlock", type: "uint64" },
284
- {
285
- components: [
286
- { internalType: "address", name: "receiver", type: "address" },
287
- {
288
- internalType: "uint96",
289
- name: "percentageNumerator",
290
- type: "uint96",
291
- },
292
- ],
293
- internalType: "struct IBeraChef.Weight[]",
294
- name: "weights",
295
- type: "tuple[]",
296
- },
297
- ],
298
- internalType: "struct IBeraChef.RewardAllocation",
299
- name: "",
300
- type: "tuple",
301
- },
302
- ],
303
- stateMutability: "view",
304
- type: "function",
305
- },
306
- {
307
- inputs: [{ internalType: "bytes32", name: "role", type: "bytes32" }],
308
- name: "getRoleAdmin",
309
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
310
- stateMutability: "view",
311
- type: "function",
312
- },
313
- {
314
- inputs: [
315
- { internalType: "bytes32", name: "role", type: "bytes32" },
316
- { internalType: "address", name: "account", type: "address" },
317
- ],
318
- name: "grantRole",
319
- outputs: [],
320
- stateMutability: "nonpayable",
321
- type: "function",
322
- },
323
- {
324
- inputs: [
325
- { internalType: "bytes32", name: "role", type: "bytes32" },
326
- { internalType: "address", name: "account", type: "address" },
327
- ],
328
- name: "hasRole",
329
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
330
- stateMutability: "view",
331
- type: "function",
332
- },
333
- {
334
- inputs: [
335
- { internalType: "address", name: "_governance", type: "address" },
336
- { internalType: "address", name: "_beraChef", type: "address" },
337
- ],
338
- name: "initialize",
339
- outputs: [],
340
- stateMutability: "nonpayable",
341
- type: "function",
342
- },
343
- {
344
- inputs: [],
345
- name: "proxiableUUID",
346
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
347
- stateMutability: "view",
348
- type: "function",
349
- },
350
- {
351
- inputs: [
352
- { internalType: "bytes32", name: "role", type: "bytes32" },
353
- { internalType: "address", name: "callerConfirmation", type: "address" },
354
- ],
355
- name: "renounceRole",
356
- outputs: [],
357
- stateMutability: "nonpayable",
358
- type: "function",
359
- },
360
- {
361
- inputs: [
362
- { internalType: "bytes32", name: "role", type: "bytes32" },
363
- { internalType: "address", name: "account", type: "address" },
364
- ],
365
- name: "revokeRole",
366
- outputs: [],
367
- stateMutability: "nonpayable",
368
- type: "function",
369
- },
370
- {
371
- inputs: [
372
- {
373
- components: [
374
- { internalType: "address", name: "receiver", type: "address" },
375
- {
376
- internalType: "uint96",
377
- name: "percentageNumerator",
378
- type: "uint96",
379
- },
380
- ],
381
- internalType: "struct IBeraChef.Weight[]",
382
- name: "weights",
383
- type: "tuple[]",
384
- },
385
- ],
386
- name: "setBaselineAllocation",
387
- outputs: [],
388
- stateMutability: "nonpayable",
389
- type: "function",
390
- },
391
- {
392
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
393
- name: "supportsInterface",
394
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
395
- stateMutability: "view",
396
- type: "function",
397
- },
398
- {
399
- inputs: [
400
- { internalType: "address", name: "newImplementation", type: "address" },
401
- { internalType: "bytes", name: "data", type: "bytes" },
402
- ],
403
- name: "upgradeToAndCall",
404
- outputs: [],
405
- stateMutability: "payable",
406
- type: "function",
407
- },
408
- ] as const;