@berachain/berajs 0.2.11 → 0.2.13

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 (1082) hide show
  1. package/dist/{RequestError-DBOIV65x.d.ts → RequestError-DkUbo3ro.d.ts} +1 -0
  2. package/dist/abi/bend/bundler.d.ts +100 -0
  3. package/dist/abi/bend/bundler.d.ts.map +1 -0
  4. package/dist/abi/bend/generalAdapter.d.ts +651 -0
  5. package/dist/abi/bend/generalAdapter.d.ts.map +1 -0
  6. package/dist/abi/bend/morphoVault.d.ts +1991 -0
  7. package/dist/abi/bend/morphoVault.d.ts.map +1 -0
  8. package/dist/abi/bend/publicAllocator.d.ts +448 -0
  9. package/dist/abi/bend/publicAllocator.d.ts.map +1 -0
  10. package/dist/abi/enso/ensoRouterAbi.d.ts +215 -0
  11. package/dist/abi/enso/ensoRouterAbi.d.ts.map +1 -0
  12. package/dist/abi/enso/ensoWalletV2Factory.d.ts +16 -0
  13. package/dist/abi/enso/ensoWalletV2Factory.d.ts.map +1 -0
  14. package/dist/abi/exports.d.ts +13 -6574
  15. package/dist/abi/exports.d.ts.map +1 -0
  16. package/dist/abi/exports.mjs +4 -3
  17. package/dist/abi/exports.mjs.map +1 -0
  18. package/dist/abi/pyth/pyth.d.ts +434 -0
  19. package/dist/abi/pyth/pyth.d.ts.map +1 -0
  20. package/dist/abi/pyth/pythErrors.d.ts +58 -0
  21. package/dist/abi/pyth/pythErrors.d.ts.map +1 -0
  22. package/dist/abi/utils/EIP7702StatelessDelegator.d.ts +799 -0
  23. package/dist/abi/utils/EIP7702StatelessDelegator.d.ts.map +1 -0
  24. package/dist/abi/utils/bundler3errors.d.ts +18 -0
  25. package/dist/abi/utils/bundler3errors.d.ts.map +1 -0
  26. package/dist/abi/utils/commonAbiErrors.d.ts +302 -0
  27. package/dist/abi/utils/commonAbiErrors.d.ts.map +1 -0
  28. package/dist/abi/utils/erc20errors.d.ts +167 -0
  29. package/dist/abi/utils/erc20errors.d.ts.map +1 -0
  30. package/dist/abi/utils/merkleDistributor.d.ts +655 -0
  31. package/dist/abi/utils/merkleDistributor.d.ts.map +1 -0
  32. package/dist/abi/utils/multicall3.d.ts +337 -0
  33. package/dist/abi/utils/multicall3.d.ts.map +1 -0
  34. package/dist/abi/utils/openChainErrors.d.ts +126 -0
  35. package/dist/abi/utils/openChainErrors.d.ts.map +1 -0
  36. package/dist/abi/utils/thirdwebMinimalAccount.d.ts +869 -0
  37. package/dist/abi/utils/thirdwebMinimalAccount.d.ts.map +1 -0
  38. package/dist/abi/utils/upgradableBeacon.d.ts +97 -0
  39. package/dist/abi/utils/upgradableBeacon.d.ts.map +1 -0
  40. package/dist/actions/__test/transports.d.ts +18 -0
  41. package/dist/actions/__test/transports.d.ts.map +1 -0
  42. package/dist/actions/bend/getConvertToAssets.d.ts +11 -0
  43. package/dist/actions/bend/getConvertToAssets.d.ts.map +1 -0
  44. package/dist/actions/bend/getMaxDeposit.d.ts +26 -0
  45. package/dist/actions/bend/getMaxDeposit.d.ts.map +1 -0
  46. package/dist/actions/clients/BeraApolloClient.d.ts +28 -0
  47. package/dist/actions/clients/BeraApolloClient.d.ts.map +1 -0
  48. package/dist/actions/clients/exports.d.ts +4 -78
  49. package/dist/actions/clients/exports.d.ts.map +1 -0
  50. package/dist/actions/clients/exports.mjs +11 -12
  51. package/dist/actions/clients/exports.mjs.map +1 -0
  52. package/dist/actions/clients/fetchBeep.d.ts +12 -0
  53. package/dist/actions/clients/fetchBeep.d.ts.map +1 -0
  54. package/dist/actions/clients/fetchOpenApi.d.ts +48 -0
  55. package/dist/actions/clients/fetchOpenApi.d.ts.map +1 -0
  56. package/dist/actions/clients/fetchOpenApi.unit.test.d.ts +2 -0
  57. package/dist/actions/clients/fetchOpenApi.unit.test.d.ts.map +1 -0
  58. package/dist/actions/clients/getApolloClient.d.ts +11 -0
  59. package/dist/actions/clients/getApolloClient.d.ts.map +1 -0
  60. package/dist/actions/clients/getEnsoClient.d.ts +11 -0
  61. package/dist/actions/clients/getEnsoClient.d.ts.map +1 -0
  62. package/dist/actions/dex/__tests__/aggregators.unit.test.d.ts +2 -0
  63. package/dist/actions/dex/__tests__/aggregators.unit.test.d.ts.map +1 -0
  64. package/dist/actions/dex/__tests__/allPools.integration.test.d.ts +2 -0
  65. package/dist/actions/dex/__tests__/allPools.integration.test.d.ts.map +1 -0
  66. package/dist/actions/dex/__tests__/getOnChainPool.unit.test.d.ts +2 -0
  67. package/dist/actions/dex/__tests__/getOnChainPool.unit.test.d.ts.map +1 -0
  68. package/dist/actions/dex/aggregators/base.d.ts +89 -0
  69. package/dist/actions/dex/aggregators/base.d.ts.map +1 -0
  70. package/dist/actions/dex/aggregators/bex.d.ts +26 -0
  71. package/dist/actions/dex/aggregators/bex.d.ts.map +1 -0
  72. package/dist/actions/dex/aggregators/bgt.d.ts +17 -0
  73. package/dist/actions/dex/aggregators/bgt.d.ts.map +1 -0
  74. package/dist/actions/dex/aggregators/enso/enso.d.ts +15 -0
  75. package/dist/actions/dex/aggregators/enso/enso.d.ts.map +1 -0
  76. package/dist/actions/dex/aggregators/enso/ensoErc4626.d.ts +14 -0
  77. package/dist/actions/dex/aggregators/enso/ensoErc4626.d.ts.map +1 -0
  78. package/dist/actions/dex/aggregators/enso/ensoErc4626.debug.test.d.ts +2 -0
  79. package/dist/actions/dex/aggregators/enso/ensoErc4626.debug.test.d.ts.map +1 -0
  80. package/dist/actions/dex/aggregators/erc4626.d.ts +32 -0
  81. package/dist/actions/dex/aggregators/erc4626.d.ts.map +1 -0
  82. package/dist/actions/dex/aggregators/fly.d.ts +14 -0
  83. package/dist/actions/dex/aggregators/fly.d.ts.map +1 -0
  84. package/dist/actions/dex/aggregators/haiku.d.ts +14 -0
  85. package/dist/actions/dex/aggregators/haiku.d.ts.map +1 -0
  86. package/dist/actions/dex/aggregators/haiku.integration.test.d.ts +2 -0
  87. package/dist/actions/dex/aggregators/haiku.integration.test.d.ts.map +1 -0
  88. package/dist/actions/dex/aggregators/honey.d.ts +32 -0
  89. package/dist/actions/dex/aggregators/honey.d.ts.map +1 -0
  90. package/dist/actions/dex/aggregators/kyberswap.d.ts +14 -0
  91. package/dist/actions/dex/aggregators/kyberswap.d.ts.map +1 -0
  92. package/dist/actions/dex/aggregators/oogabooga.d.ts +13 -0
  93. package/dist/actions/dex/aggregators/oogabooga.d.ts.map +1 -0
  94. package/dist/actions/dex/aggregators/openOcean.d.ts +15 -0
  95. package/dist/actions/dex/aggregators/openOcean.d.ts.map +1 -0
  96. package/dist/actions/dex/aggregators/wbera.d.ts +17 -0
  97. package/dist/actions/dex/aggregators/wbera.d.ts.map +1 -0
  98. package/dist/actions/dex/b-sdk.d.ts +3 -0
  99. package/dist/actions/dex/bSdk.d.ts +3 -0
  100. package/dist/actions/dex/bSdk.d.ts.map +1 -0
  101. package/dist/actions/dex/getAllPools.d.ts +58 -0
  102. package/dist/actions/dex/getAllPools.d.ts.map +1 -0
  103. package/dist/actions/dex/getApiPool.d.ts +390 -0
  104. package/dist/actions/dex/getApiPool.d.ts.map +1 -0
  105. package/dist/actions/dex/getGlobalLiquidityAndSwapVolume.d.ts +3 -0
  106. package/dist/actions/dex/getGlobalLiquidityAndSwapVolume.d.ts.map +1 -0
  107. package/dist/actions/dex/getOnChainPool.d.ts +42 -0
  108. package/dist/actions/dex/getOnChainPool.d.ts.map +1 -0
  109. package/dist/actions/dex/getPoolEvents.d.ts +7 -0
  110. package/dist/actions/dex/getPoolEvents.d.ts.map +1 -0
  111. package/dist/actions/dex/getPoolHistoricalData.d.ts +15 -0
  112. package/dist/actions/dex/getPoolHistoricalData.d.ts.map +1 -0
  113. package/dist/actions/dex/getPoolPausedState.d.ts +10 -0
  114. package/dist/actions/dex/getPoolPausedState.d.ts.map +1 -0
  115. package/dist/actions/dex/getPoolWithState.d.ts +4 -0
  116. package/dist/actions/dex/getPoolWithState.d.ts.map +1 -0
  117. package/dist/actions/dex/getVaultPausedState.d.ts +5 -0
  118. package/dist/actions/dex/getVaultPausedState.d.ts.map +1 -0
  119. package/dist/actions/enso/__tests__/getBendDemultiplyBundle.action.unit.test.d.ts +2 -0
  120. package/dist/actions/enso/__tests__/getBendDemultiplyBundle.action.unit.test.d.ts.map +1 -0
  121. package/dist/actions/enso/__tests__/getBendDemultiplyBundle.unit.test.d.ts +2 -0
  122. package/dist/actions/enso/__tests__/getBendDemultiplyBundle.unit.test.d.ts.map +1 -0
  123. package/dist/actions/enso/__tests__/getBendMultiplyBundle.action.unit.test.d.ts +2 -0
  124. package/dist/actions/enso/__tests__/getBendMultiplyBundle.action.unit.test.d.ts.map +1 -0
  125. package/dist/actions/enso/__tests__/getBendMultiplyBundle.unit.test.d.ts +2 -0
  126. package/dist/actions/enso/__tests__/getBendMultiplyBundle.unit.test.d.ts.map +1 -0
  127. package/dist/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.d.ts +2 -0
  128. package/dist/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.d.ts.map +1 -0
  129. package/dist/actions/enso/__tests__/helpers.d.ts +24 -0
  130. package/dist/actions/enso/__tests__/helpers.d.ts.map +1 -0
  131. package/dist/actions/enso/__tests__/util.unit.test.d.ts +2 -0
  132. package/dist/actions/enso/__tests__/util.unit.test.d.ts.map +1 -0
  133. package/dist/actions/enso/flashloan.d.ts +41 -0
  134. package/dist/actions/enso/flashloan.d.ts.map +1 -0
  135. package/dist/actions/enso/getBendDemultiplyBundle.d.ts +55 -0
  136. package/dist/actions/enso/getBendDemultiplyBundle.d.ts.map +1 -0
  137. package/dist/actions/enso/getBendMultiplyBundle.d.ts +70 -0
  138. package/dist/actions/enso/getBendMultiplyBundle.d.ts.map +1 -0
  139. package/dist/actions/enso/getEnsoSwapBundle.d.ts +3 -0
  140. package/dist/actions/enso/getEnsoSwapBundle.d.ts.map +1 -0
  141. package/dist/actions/enso/getEnsoUserTokensWithBalances.d.ts +16 -0
  142. package/dist/actions/enso/getEnsoUserTokensWithBalances.d.ts.map +1 -0
  143. package/dist/actions/enso/util.d.ts +40 -0
  144. package/dist/actions/enso/util.d.ts.map +1 -0
  145. package/dist/actions/exports.d.ts +100 -1646
  146. package/dist/actions/exports.d.ts.map +1 -0
  147. package/dist/actions/exports.mjs +45 -56
  148. package/dist/actions/exports.mjs.map +1 -0
  149. package/dist/actions/governance/__tests__/checkProposalField.unit.test.d.ts +2 -0
  150. package/dist/actions/governance/__tests__/checkProposalField.unit.test.d.ts.map +1 -0
  151. package/dist/actions/governance/__tests__/getDecodedFunctionData.integration.test.d.ts +2 -0
  152. package/dist/actions/governance/__tests__/getDecodedFunctionData.integration.test.d.ts.map +1 -0
  153. package/dist/actions/governance/__tests__/getQuorum.integration.test.d.ts +2 -0
  154. package/dist/actions/governance/__tests__/getQuorum.integration.test.d.ts.map +1 -0
  155. package/dist/actions/governance/checkProposalField.d.ts +27 -0
  156. package/dist/actions/governance/checkProposalField.d.ts.map +1 -0
  157. package/dist/actions/governance/computeActualStatus.d.ts +14 -0
  158. package/dist/actions/governance/computeActualStatus.d.ts.map +1 -0
  159. package/dist/actions/governance/constants.d.ts +7 -0
  160. package/dist/actions/governance/constants.d.ts.map +1 -0
  161. package/dist/actions/governance/exports.d.ts +10 -132
  162. package/dist/actions/governance/exports.d.ts.map +1 -0
  163. package/dist/actions/governance/exports.mjs +5 -4
  164. package/dist/actions/governance/exports.mjs.map +1 -0
  165. package/dist/actions/governance/getAllProposals.d.ts +16 -0
  166. package/dist/actions/governance/getAllProposals.d.ts.map +1 -0
  167. package/dist/actions/governance/getBodyErrors.d.ts +10 -0
  168. package/dist/actions/governance/getBodyErrors.d.ts.map +1 -0
  169. package/dist/actions/governance/getDecodedFunctionData.d.ts +30 -0
  170. package/dist/actions/governance/getDecodedFunctionData.d.ts.map +1 -0
  171. package/dist/actions/governance/getProposalDetails.d.ts +10 -0
  172. package/dist/actions/governance/getProposalDetails.d.ts.map +1 -0
  173. package/dist/actions/governance/getProposalFromTx.d.ts +18 -0
  174. package/dist/actions/governance/getProposalFromTx.d.ts.map +1 -0
  175. package/dist/actions/governance/getProposalParams.d.ts +15 -0
  176. package/dist/actions/governance/getProposalParams.d.ts.map +1 -0
  177. package/dist/actions/governance/getProposalVotes.d.ts +10 -0
  178. package/dist/actions/governance/getProposalVotes.d.ts.map +1 -0
  179. package/dist/actions/governance/getQuorum.d.ts +13 -0
  180. package/dist/actions/governance/getQuorum.d.ts.map +1 -0
  181. package/dist/actions/governance/parseProposalBody.d.ts +13 -0
  182. package/dist/actions/governance/parseProposalBody.d.ts.map +1 -0
  183. package/dist/actions/honey/getChartData.d.ts +13 -0
  184. package/dist/actions/honey/getChartData.d.ts.map +1 -0
  185. package/dist/actions/honey/getCollateralWeights.d.ts +19 -0
  186. package/dist/actions/honey/getCollateralWeights.d.ts.map +1 -0
  187. package/dist/actions/honey/getGlobalCapLimit.d.ts +24 -0
  188. package/dist/actions/honey/getGlobalCapLimit.d.ts.map +1 -0
  189. package/dist/actions/honey/getHoney24hVolume.d.ts +9 -0
  190. package/dist/actions/honey/getHoney24hVolume.d.ts.map +1 -0
  191. package/dist/actions/honey/getHoneyCollaterals.d.ts +33 -0
  192. package/dist/actions/honey/getHoneyCollaterals.d.ts.map +1 -0
  193. package/dist/actions/honey/getHoneyFees.d.ts +24 -0
  194. package/dist/actions/honey/getHoneyFees.d.ts.map +1 -0
  195. package/dist/actions/honey/getHoneyPausedState.d.ts +9 -0
  196. package/dist/actions/honey/getHoneyPausedState.d.ts.map +1 -0
  197. package/dist/actions/honey/getHoneyPreview.d.ts +52 -0
  198. package/dist/actions/honey/getHoneyPreview.d.ts.map +1 -0
  199. package/dist/actions/honey/getHoneyPythPriceOracle.d.ts +10 -0
  200. package/dist/actions/honey/getHoneyPythPriceOracle.d.ts.map +1 -0
  201. package/dist/actions/honey/getHoneyRootPriceOracle.d.ts +9 -0
  202. package/dist/actions/honey/getHoneyRootPriceOracle.d.ts.map +1 -0
  203. package/dist/actions/honey/getHoneyTxns.d.ts +21 -0
  204. package/dist/actions/honey/getHoneyTxns.d.ts.map +1 -0
  205. package/dist/actions/honey/getHoneyVaultsBalance.d.ts +13 -0
  206. package/dist/actions/honey/getHoneyVaultsBalance.d.ts.map +1 -0
  207. package/dist/actions/honey/getPythLatestPrices.d.ts +26 -0
  208. package/dist/actions/honey/getPythLatestPrices.d.ts.map +1 -0
  209. package/dist/actions/honey/getRelativeCapLimit.d.ts +23 -0
  210. package/dist/actions/honey/getRelativeCapLimit.d.ts.map +1 -0
  211. package/dist/actions/honey/getSharesWithoutFees.d.ts +25 -0
  212. package/dist/actions/honey/getSharesWithoutFees.d.ts.map +1 -0
  213. package/dist/actions/honey/getSwapPayload.d.ts +24 -0
  214. package/dist/actions/honey/getSwapPayload.d.ts.map +1 -0
  215. package/dist/actions/honey/isBadCollateralAsset.d.ts +24 -0
  216. package/dist/actions/honey/isBadCollateralAsset.d.ts.map +1 -0
  217. package/dist/actions/honey/isBasketModeEnabled.d.ts +11 -0
  218. package/dist/actions/honey/isBasketModeEnabled.d.ts.map +1 -0
  219. package/dist/actions/honey/tests/pyth.integration.test.d.ts +2 -0
  220. package/dist/actions/honey/tests/pyth.integration.test.d.ts.map +1 -0
  221. package/dist/actions/misc/getBlockTimestamp.d.ts +14 -0
  222. package/dist/actions/misc/getBlockTimestamp.d.ts.map +1 -0
  223. package/dist/actions/pol/__tests__/getAllValidators.integration.test.d.ts +2 -0
  224. package/dist/actions/pol/__tests__/getAllValidators.integration.test.d.ts.map +1 -0
  225. package/dist/actions/pol/__tests__/getValidator.integration.test.d.ts +2 -0
  226. package/dist/actions/pol/__tests__/getValidator.integration.test.d.ts.map +1 -0
  227. package/dist/actions/pol/__tests__/rewardVaults.integration.test.d.ts +2 -0
  228. package/dist/actions/pol/__tests__/rewardVaults.integration.test.d.ts.map +1 -0
  229. package/dist/actions/pol/getAutoclaimedIncentives.d.ts +14 -0
  230. package/dist/actions/pol/getAutoclaimedIncentives.d.ts.map +1 -0
  231. package/dist/actions/pol/getAutoclaimedIncentivesTxHash.d.ts +14 -0
  232. package/dist/actions/pol/getAutoclaimedIncentivesTxHash.d.ts.map +1 -0
  233. package/dist/actions/pol/getBGTGlobalInfo.d.ts +10 -0
  234. package/dist/actions/pol/getBGTGlobalInfo.d.ts.map +1 -0
  235. package/dist/actions/pol/getBeraTokenTotalSupply.d.ts +7 -0
  236. package/dist/actions/pol/getBeraTokenTotalSupply.d.ts.map +1 -0
  237. package/dist/actions/pol/getBgtAprSimulation.d.ts +88 -0
  238. package/dist/actions/pol/getBgtAprSimulation.d.ts.map +1 -0
  239. package/dist/actions/pol/getBgtAprSimultaion.unit.test.d.ts +2 -0
  240. package/dist/actions/pol/getBgtAprSimultaion.unit.test.d.ts.map +1 -0
  241. package/dist/actions/pol/getBgtIncentiveDistributorPaused.d.ts +10 -0
  242. package/dist/actions/pol/getBgtIncentiveDistributorPaused.d.ts.map +1 -0
  243. package/dist/actions/pol/getBgtTokenTotalBoosts.d.ts +6 -0
  244. package/dist/actions/pol/getBgtTokenTotalBoosts.d.ts.map +1 -0
  245. package/dist/actions/pol/getBgtTokenTotalSupply.d.ts +6 -0
  246. package/dist/actions/pol/getBgtTokenTotalSupply.d.ts.map +1 -0
  247. package/dist/actions/pol/getBlockTime.d.ts +7 -0
  248. package/dist/actions/pol/getBlockTime.d.ts.map +1 -0
  249. package/dist/actions/pol/getBlockTime.debug.test.d.ts +2 -0
  250. package/dist/actions/pol/getBlockTime.debug.test.d.ts.map +1 -0
  251. package/dist/actions/pol/getEarnedStakedBeraVault.d.ts +42 -0
  252. package/dist/actions/pol/getEarnedStakedBeraVault.d.ts.map +1 -0
  253. package/dist/actions/pol/getGlobalData.d.ts +8 -0
  254. package/dist/actions/pol/getGlobalData.d.ts.map +1 -0
  255. package/dist/actions/pol/getHeroEarnVaults.d.ts +35 -0
  256. package/dist/actions/pol/getHeroEarnVaults.d.ts.map +1 -0
  257. package/dist/actions/pol/getLSTStakeConfig.d.ts +13 -0
  258. package/dist/actions/pol/getLSTStakeConfig.d.ts.map +1 -0
  259. package/dist/actions/pol/getMarkets.d.ts +9 -0
  260. package/dist/actions/pol/getMarkets.d.ts.map +1 -0
  261. package/dist/actions/pol/getRewardProofsByValidator.d.ts +9 -0
  262. package/dist/actions/pol/getRewardProofsByValidator.d.ts.map +1 -0
  263. package/dist/actions/pol/getRewardTokenToBeraRate.d.ts +12 -0
  264. package/dist/actions/pol/getRewardTokenToBeraRate.d.ts.map +1 -0
  265. package/dist/actions/pol/getRewardVault.d.ts +13 -0
  266. package/dist/actions/pol/getRewardVault.d.ts.map +1 -0
  267. package/dist/actions/pol/getRewardVaultBeaconImplementation.d.ts +8 -0
  268. package/dist/actions/pol/getRewardVaultBeaconImplementation.d.ts.map +1 -0
  269. package/dist/actions/pol/getRewardVaultBeaconImplementation.integration.test.d.ts +2 -0
  270. package/dist/actions/pol/getRewardVaultBeaconImplementation.integration.test.d.ts.map +1 -0
  271. package/dist/actions/pol/getRewardVaultDurationConstants.d.ts +12 -0
  272. package/dist/actions/pol/getRewardVaultDurationConstants.d.ts.map +1 -0
  273. package/dist/actions/pol/getRewardVaultDurationConstants.integration.test.d.ts +2 -0
  274. package/dist/actions/pol/getRewardVaultDurationConstants.integration.test.d.ts.map +1 -0
  275. package/dist/actions/pol/getRewardVaultEarnedRewards.d.ts +14 -0
  276. package/dist/actions/pol/getRewardVaultEarnedRewards.d.ts.map +1 -0
  277. package/dist/actions/pol/getRewardVaultFromToken.d.ts +7 -0
  278. package/dist/actions/pol/getRewardVaultFromToken.d.ts.map +1 -0
  279. package/dist/actions/pol/getRewardVaultIncentives.d.ts +23 -0
  280. package/dist/actions/pol/getRewardVaultIncentives.d.ts.map +1 -0
  281. package/dist/actions/pol/getRewardVaultRewards.d.ts +38 -0
  282. package/dist/actions/pol/getRewardVaultRewards.d.ts.map +1 -0
  283. package/dist/actions/pol/getRewardVaultStakingToken.d.ts +6 -0
  284. package/dist/actions/pol/getRewardVaultStakingToken.d.ts.map +1 -0
  285. package/dist/actions/pol/getRewardVaults.d.ts +14 -0
  286. package/dist/actions/pol/getRewardVaults.d.ts.map +1 -0
  287. package/dist/actions/pol/getSWBeraVaultMetadata.d.ts +32 -0
  288. package/dist/actions/pol/getSWBeraVaultMetadata.d.ts.map +1 -0
  289. package/dist/actions/pol/getSWBeraWithdrawal.d.ts +30 -0
  290. package/dist/actions/pol/getSWBeraWithdrawal.d.ts.map +1 -0
  291. package/dist/actions/pol/getStakeWithdrawalCooldown.d.ts +6 -0
  292. package/dist/actions/pol/getStakeWithdrawalCooldown.d.ts.map +1 -0
  293. package/dist/actions/pol/getStakedBeraAPR.d.ts +12 -0
  294. package/dist/actions/pol/getStakedBeraAPR.d.ts.map +1 -0
  295. package/dist/actions/pol/getStakedBeraSnapshots.d.ts +12 -0
  296. package/dist/actions/pol/getStakedBeraSnapshots.d.ts.map +1 -0
  297. package/dist/actions/pol/getStakingDailyAssets.d.ts +10 -0
  298. package/dist/actions/pol/getStakingDailyAssets.d.ts.map +1 -0
  299. package/dist/actions/pol/getStakingTokenInformation.d.ts +9 -0
  300. package/dist/actions/pol/getStakingTokenInformation.d.ts.map +1 -0
  301. package/dist/actions/pol/getTotalStakedAmount.d.ts +13 -0
  302. package/dist/actions/pol/getTotalStakedAmount.d.ts.map +1 -0
  303. package/dist/actions/pol/getUserClaimableIncentives.d.ts +9 -0
  304. package/dist/actions/pol/getUserClaimableIncentives.d.ts.map +1 -0
  305. package/dist/actions/pol/getUserVaultInfo.d.ts +9 -0
  306. package/dist/actions/pol/getUserVaultInfo.d.ts.map +1 -0
  307. package/dist/actions/pol/getUserVaults.d.ts +18 -0
  308. package/dist/actions/pol/getUserVaults.d.ts.map +1 -0
  309. package/dist/actions/pol/getUserVaultsBalance.d.ts +11 -0
  310. package/dist/actions/pol/getUserVaultsBalance.d.ts.map +1 -0
  311. package/dist/actions/pol/getVaultHistory.d.ts +8 -0
  312. package/dist/actions/pol/getVaultHistory.d.ts.map +1 -0
  313. package/dist/actions/pol/getVaultValidators.d.ts +7 -0
  314. package/dist/actions/pol/getVaultValidators.d.ts.map +1 -0
  315. package/dist/actions/pol/getVaultsSupply.d.ts +7 -0
  316. package/dist/actions/pol/getVaultsSupply.d.ts.map +1 -0
  317. package/dist/actions/prices/__tests__/prices.integration.test.d.ts +2 -0
  318. package/dist/actions/prices/__tests__/prices.integration.test.d.ts.map +1 -0
  319. package/dist/actions/prices/getTokenCurrentPrices.d.ts +5 -0
  320. package/dist/actions/prices/getTokenCurrentPrices.d.ts.map +1 -0
  321. package/dist/actions/pyth/getHoneyPythFeeds.d.ts +12 -0
  322. package/dist/actions/pyth/getHoneyPythFeeds.d.ts.map +1 -0
  323. package/dist/actions/pyth/getUpdateFee.d.ts +6 -0
  324. package/dist/actions/pyth/getUpdateFee.d.ts.map +1 -0
  325. package/dist/actions/server/exports.d.ts +2 -13
  326. package/dist/actions/server/exports.d.ts.map +1 -0
  327. package/dist/actions/server/exports.mjs +28 -17
  328. package/dist/actions/server/exports.mjs.map +1 -0
  329. package/dist/actions/server/getDailyValidatorBlockStats.d.ts +14 -0
  330. package/dist/actions/server/getDailyValidatorBlockStats.d.ts.map +1 -0
  331. package/dist/actions/tokens/getAllowances.d.ts +10 -0
  332. package/dist/actions/tokens/getAllowances.d.ts.map +1 -0
  333. package/dist/actions/tokens/getTokenInformation.d.ts +11 -0
  334. package/dist/actions/tokens/getTokenInformation.d.ts.map +1 -0
  335. package/dist/actions/tokens/getTokens.d.ts +5 -0
  336. package/dist/actions/tokens/getTokens.d.ts.map +1 -0
  337. package/dist/actions/tokens/getUnderlyingToken.d.ts +12 -0
  338. package/dist/actions/tokens/getUnderlyingToken.d.ts.map +1 -0
  339. package/dist/actions/tokens/getWalletBalances.d.ts +499 -0
  340. package/dist/actions/tokens/getWalletBalances.d.ts.map +1 -0
  341. package/dist/actions/tokens/getWalletBalances.integration.test.d.ts +2 -0
  342. package/dist/actions/tokens/getWalletBalances.integration.test.d.ts.map +1 -0
  343. package/dist/actions/transactions/beraWriteContract.d.ts +19 -0
  344. package/dist/actions/transactions/beraWriteContract.d.ts.map +1 -0
  345. package/dist/actions/transactions/beraWriteContract.integration.test.d.ts +2 -0
  346. package/dist/actions/transactions/beraWriteContract.integration.test.d.ts.map +1 -0
  347. package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.d.ts +30 -0
  348. package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.d.ts.map +1 -0
  349. package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.integration.test.d.ts +2 -0
  350. package/dist/actions/validators/getActiveBoostAndCommissionChangeDelay.integration.test.d.ts.map +1 -0
  351. package/dist/actions/validators/getAllValidators.d.ts +5 -0
  352. package/dist/actions/validators/getAllValidators.d.ts.map +1 -0
  353. package/dist/actions/validators/getApiEnrichedAllocation.d.ts +6 -0
  354. package/dist/actions/validators/getApiEnrichedAllocation.d.ts.map +1 -0
  355. package/dist/actions/validators/getApiValidator.d.ts +9 -0
  356. package/dist/actions/validators/getApiValidator.d.ts.map +1 -0
  357. package/dist/actions/validators/getBaselineRewardAllocation.d.ts +5 -0
  358. package/dist/actions/validators/getBaselineRewardAllocation.d.ts.map +1 -0
  359. package/dist/actions/validators/getDefaultRewardAllocation.d.ts +7 -0
  360. package/dist/actions/validators/getDefaultRewardAllocation.d.ts.map +1 -0
  361. package/dist/actions/validators/getStakingPoolBatch.d.ts +13 -0
  362. package/dist/actions/validators/getStakingPoolBatch.d.ts.map +1 -0
  363. package/dist/actions/validators/getUserActiveValidators.d.ts +12 -0
  364. package/dist/actions/validators/getUserActiveValidators.d.ts.map +1 -0
  365. package/dist/actions/validators/getUserBoosts.d.ts +7 -0
  366. package/dist/actions/validators/getUserBoosts.d.ts.map +1 -0
  367. package/dist/actions/validators/getUserBoostsOnValidator.d.ts +25 -0
  368. package/dist/actions/validators/getUserBoostsOnValidator.d.ts.map +1 -0
  369. package/dist/actions/validators/getUserStakingPositions.d.ts +20 -0
  370. package/dist/actions/validators/getUserStakingPositions.d.ts.map +1 -0
  371. package/dist/actions/validators/getValidatorAnalytics.d.ts +12 -0
  372. package/dist/actions/validators/getValidatorAnalytics.d.ts.map +1 -0
  373. package/dist/actions/validators/getValidatorCommission.d.ts +6 -0
  374. package/dist/actions/validators/getValidatorCommission.d.ts.map +1 -0
  375. package/dist/actions/validators/getValidatorEstimatedBgtPerYear.d.ts +3 -0
  376. package/dist/actions/validators/getValidatorEstimatedBgtPerYear.d.ts.map +1 -0
  377. package/dist/actions/validators/getValidatorIncentiveDistribution.d.ts +8 -0
  378. package/dist/actions/validators/getValidatorIncentiveDistribution.d.ts.map +1 -0
  379. package/dist/actions/validators/getValidatorOperatorAddress.d.ts +6 -0
  380. package/dist/actions/validators/getValidatorOperatorAddress.d.ts.map +1 -0
  381. package/dist/actions/validators/getValidatorQueuedCommission.d.ts +10 -0
  382. package/dist/actions/validators/getValidatorQueuedCommission.d.ts.map +1 -0
  383. package/dist/actions/validators/getValidatorQueuedOperatorAddress.d.ts +7 -0
  384. package/dist/actions/validators/getValidatorQueuedOperatorAddress.d.ts.map +1 -0
  385. package/dist/actions/validators/getValidatorQueuedRewardAllocation.d.ts +7 -0
  386. package/dist/actions/validators/getValidatorQueuedRewardAllocation.d.ts.map +1 -0
  387. package/dist/actions/validators/getValidatorRewardAllocation.d.ts +52 -0
  388. package/dist/actions/validators/getValidatorRewardAllocation.d.ts.map +1 -0
  389. package/dist/actions/validators/getValidatorRewardAllocatorAddress.d.ts +12 -0
  390. package/dist/actions/validators/getValidatorRewardAllocatorAddress.d.ts.map +1 -0
  391. package/dist/actions/validators/utils/__tests__/validatorUtils.integration.test.d.ts +2 -0
  392. package/dist/actions/validators/utils/__tests__/validatorUtils.integration.test.d.ts.map +1 -0
  393. package/dist/actions/validators/utils/aggregateValidatorIncentives.d.ts +6 -0
  394. package/dist/actions/validators/utils/aggregateValidatorIncentives.d.ts.map +1 -0
  395. package/dist/actions/validators/utils/aggregateValidatorIncentives.unit.test.d.ts +2 -0
  396. package/dist/actions/validators/utils/aggregateValidatorIncentives.unit.test.d.ts.map +1 -0
  397. package/dist/actions/validators/utils/getValidatorBoostApy.d.ts +7 -0
  398. package/dist/actions/validators/utils/getValidatorBoostApy.d.ts.map +1 -0
  399. package/dist/{chunk-E7YFXBBQ.mjs → chunk-35RACQD4.mjs} +7 -6
  400. package/dist/chunk-35RACQD4.mjs.map +1 -0
  401. package/dist/{chunk-BGMRHTBQ.mjs → chunk-7TFV6UKF.mjs} +1 -0
  402. package/dist/chunk-7TFV6UKF.mjs.map +1 -0
  403. package/dist/{chunk-QVHEM4BG.mjs → chunk-AEN6IJFU.mjs} +10 -4
  404. package/dist/chunk-AEN6IJFU.mjs.map +1 -0
  405. package/dist/{chunk-SZ5C44L5.mjs → chunk-BMNEN4OK.mjs} +1 -0
  406. package/dist/chunk-BMNEN4OK.mjs.map +1 -0
  407. package/dist/{chunk-MRQGHXAN.mjs → chunk-BSOWLS3W.mjs} +4 -18
  408. package/dist/chunk-BSOWLS3W.mjs.map +1 -0
  409. package/dist/{chunk-VAA2FVPP.mjs → chunk-DOZJB6IJ.mjs} +140 -281
  410. package/dist/chunk-DOZJB6IJ.mjs.map +1 -0
  411. package/dist/{chunk-GUURQAME.mjs → chunk-EGAB6NFQ.mjs} +2 -1
  412. package/dist/chunk-EGAB6NFQ.mjs.map +1 -0
  413. package/dist/{chunk-AUOPN6NK.mjs → chunk-EJIGERYM.mjs} +2 -1
  414. package/dist/chunk-EJIGERYM.mjs.map +1 -0
  415. package/dist/{chunk-SGIJVHZO.mjs → chunk-GLWPRM33.mjs} +1 -0
  416. package/dist/chunk-GLWPRM33.mjs.map +1 -0
  417. package/dist/{chunk-CDK4YV3D.mjs → chunk-GWSTVITN.mjs} +1 -0
  418. package/dist/chunk-GWSTVITN.mjs.map +1 -0
  419. package/dist/{chunk-O2NQFKJK.mjs → chunk-IFNIPVTZ.mjs} +1 -0
  420. package/dist/chunk-IFNIPVTZ.mjs.map +1 -0
  421. package/dist/{chunk-HYDP32P6.mjs → chunk-J3LTASDE.mjs} +6 -6
  422. package/dist/chunk-J3LTASDE.mjs.map +1 -0
  423. package/dist/{chunk-NBYLMO2L.mjs → chunk-JA4DHMTG.mjs} +1 -0
  424. package/dist/chunk-JA4DHMTG.mjs.map +1 -0
  425. package/dist/{chunk-DKMAIU74.mjs → chunk-KL6YZ5VR.mjs} +1 -0
  426. package/dist/chunk-KL6YZ5VR.mjs.map +1 -0
  427. package/dist/{chunk-7YVNSDXG.mjs → chunk-LE4CYW7S.mjs} +3 -2
  428. package/dist/chunk-LE4CYW7S.mjs.map +1 -0
  429. package/dist/{chunk-KHXJDYA4.mjs → chunk-NZAH3SGT.mjs} +26 -0
  430. package/dist/chunk-NZAH3SGT.mjs.map +1 -0
  431. package/dist/{chunk-ZLTMIFCZ.mjs → chunk-P3YZ7F22.mjs} +12 -5
  432. package/dist/chunk-P3YZ7F22.mjs.map +1 -0
  433. package/dist/{chunk-3JJLQ2JX.mjs → chunk-PHYZRH4I.mjs} +10 -10
  434. package/dist/chunk-PHYZRH4I.mjs.map +1 -0
  435. package/dist/{chunk-IXIBY5FP.mjs → chunk-PJRLHTGC.mjs} +3 -2
  436. package/dist/chunk-PJRLHTGC.mjs.map +1 -0
  437. package/dist/{chunk-GY6B3PD5.mjs → chunk-QQASX4LJ.mjs} +12 -1
  438. package/dist/chunk-QQASX4LJ.mjs.map +1 -0
  439. package/dist/{chunk-UD5IUNCW.mjs → chunk-RM227WHI.mjs} +15 -2
  440. package/dist/chunk-RM227WHI.mjs.map +1 -0
  441. package/dist/{chunk-DQRH5VE3.mjs → chunk-TGN55GKE.mjs} +2 -1
  442. package/dist/chunk-TGN55GKE.mjs.map +1 -0
  443. package/dist/{chunk-SXUNCX5E.mjs → chunk-UA3Z47LT.mjs} +10 -13
  444. package/dist/chunk-UA3Z47LT.mjs.map +1 -0
  445. package/dist/{chunk-HQCOU6GY.mjs → chunk-ZCEFC2TK.mjs} +1 -0
  446. package/dist/chunk-ZCEFC2TK.mjs.map +1 -0
  447. package/dist/{chunk-Y6THHG77.mjs → chunk-ZWTGVIPJ.mjs} +3 -2
  448. package/dist/chunk-ZWTGVIPJ.mjs.map +1 -0
  449. package/dist/contexts/BeraFlags/BeraFlags.d.ts +19 -0
  450. package/dist/contexts/BeraFlags/BeraFlags.d.ts.map +1 -0
  451. package/dist/contexts/BeraFlags/defaultFlags.d.ts +9 -0
  452. package/dist/contexts/BeraFlags/defaultFlags.d.ts.map +1 -0
  453. package/dist/contexts/BexStatusProvider.d.ts +67 -0
  454. package/dist/contexts/BexStatusProvider.d.ts.map +1 -0
  455. package/dist/contexts/BlockTimeProvider.d.ts +10 -0
  456. package/dist/contexts/BlockTimeProvider.d.ts.map +1 -0
  457. package/dist/contexts/HoneyConfigProvider.d.ts +50 -0
  458. package/dist/contexts/HoneyConfigProvider.d.ts.map +1 -0
  459. package/dist/contexts/SwrFallback.d.ts +6 -0
  460. package/dist/contexts/SwrFallback.d.ts.map +1 -0
  461. package/dist/contexts/TokensProvider.d.ts +24 -0
  462. package/dist/contexts/TokensProvider.d.ts.map +1 -0
  463. package/dist/contexts/block-time-provider.d.ts +10 -0
  464. package/dist/contexts/exports.d.ts +7 -66
  465. package/dist/contexts/exports.d.ts.map +1 -0
  466. package/dist/contexts/exports.mjs +13 -12
  467. package/dist/contexts/exports.mjs.map +1 -0
  468. package/dist/data/contracts.d.ts +345 -0
  469. package/dist/data/contracts.d.ts.map +1 -0
  470. package/dist/enum/contracts.d.ts +15 -0
  471. package/dist/enum/contracts.d.ts.map +1 -0
  472. package/dist/enum/dex.d.ts +36 -0
  473. package/dist/enum/dex.d.ts.map +1 -0
  474. package/dist/enum/exports.d.ts +7 -29
  475. package/dist/enum/exports.d.ts.map +1 -0
  476. package/dist/enum/exports.mjs +3 -2
  477. package/dist/enum/exports.mjs.map +1 -0
  478. package/dist/enum/governance/exports.d.ts +2 -60
  479. package/dist/enum/governance/exports.d.ts.map +1 -0
  480. package/dist/enum/governance/exports.mjs +2 -1
  481. package/dist/enum/governance/exports.mjs.map +1 -0
  482. package/dist/enum/governance.d.ts +59 -0
  483. package/dist/enum/governance.d.ts.map +1 -0
  484. package/dist/enum/honey.d.ts +13 -0
  485. package/dist/enum/honey.d.ts.map +1 -0
  486. package/dist/enum/polling.d.ts +8 -0
  487. package/dist/enum/polling.d.ts.map +1 -0
  488. package/dist/enum/slippage.d.ts +17 -0
  489. package/dist/enum/slippage.d.ts.map +1 -0
  490. package/dist/enum/txnEnum.d.ts +90 -0
  491. package/dist/enum/txnEnum.d.ts.map +1 -0
  492. package/dist/errors/BeraError.d.ts +99 -0
  493. package/dist/errors/BeraError.d.ts.map +1 -0
  494. package/dist/errors/BeraError.unit.test.d.ts +2 -0
  495. package/dist/errors/BeraError.unit.test.d.ts.map +1 -0
  496. package/dist/errors/BeraMonitoring.d.ts +46 -0
  497. package/dist/errors/BeraMonitoring.d.ts.map +1 -0
  498. package/dist/errors/BeraTracing.d.ts +58 -0
  499. package/dist/errors/BeraTracing.d.ts.map +1 -0
  500. package/dist/errors/BeraTracing.unit.test.d.ts +2 -0
  501. package/dist/errors/BeraTracing.unit.test.d.ts.map +1 -0
  502. package/dist/errors/InvalidArgumentError.d.ts +59 -0
  503. package/dist/errors/InvalidArgumentError.d.ts.map +1 -0
  504. package/dist/errors/NotFoundError.d.ts +25 -0
  505. package/dist/errors/NotFoundError.d.ts.map +1 -0
  506. package/dist/errors/RequestError.d.ts +56 -0
  507. package/dist/errors/RequestError.d.ts.map +1 -0
  508. package/dist/errors/RequestError.unit.test.d.ts +2 -0
  509. package/dist/errors/RequestError.unit.test.d.ts.map +1 -0
  510. package/dist/errors/TransactionFailedError.d.ts +49 -0
  511. package/dist/errors/TransactionFailedError.d.ts.map +1 -0
  512. package/dist/errors/assert.d.ts +82 -0
  513. package/dist/errors/assert.d.ts.map +1 -0
  514. package/dist/errors/assert.unit.test.d.ts +2 -0
  515. package/dist/errors/assert.unit.test.d.ts.map +1 -0
  516. package/dist/errors/errorMap.d.ts +1083 -0
  517. package/dist/errors/errorMap.d.ts.map +1 -0
  518. package/dist/errors/exports.d.ts +13 -328
  519. package/dist/errors/exports.d.ts.map +1 -0
  520. package/dist/errors/exports.mjs +9 -6
  521. package/dist/errors/exports.mjs.map +1 -0
  522. package/dist/errors/getErrorMessage.d.ts +46 -0
  523. package/dist/errors/getErrorMessage.d.ts.map +1 -0
  524. package/dist/errors/getRevertReason.d.ts +53 -0
  525. package/dist/errors/getRevertReason.d.ts.map +1 -0
  526. package/dist/errors/getRevertReason.integration.test.d.ts +2 -0
  527. package/dist/errors/getRevertReason.integration.test.d.ts.map +1 -0
  528. package/dist/errors/initBeraError.d.ts +44 -0
  529. package/dist/errors/initBeraError.d.ts.map +1 -0
  530. package/dist/errors/parseViemError.d.ts +88 -0
  531. package/dist/errors/parseViemError.d.ts.map +1 -0
  532. package/dist/errors/severity.d.ts +7 -0
  533. package/dist/errors/severity.d.ts.map +1 -0
  534. package/dist/errors/spanStatus.d.ts +18 -0
  535. package/dist/errors/spanStatus.d.ts.map +1 -0
  536. package/dist/errors/spanStatus.unit.test.d.ts +2 -0
  537. package/dist/errors/spanStatus.unit.test.d.ts.map +1 -0
  538. package/dist/{getApolloClient-BcUTGFUb.d.ts → getApolloClient-MWm_iq4u.d.ts} +4 -5
  539. package/dist/{getValidatorQueuedOperatorAddress-Cxt-DlL_.d.ts → getValidatorQueuedOperatorAddress-N2I7wHd6.d.ts} +7 -58
  540. package/dist/{global.d-q_LQWQqs.d.ts → global.d-CR3zicga.d.ts} +2 -7
  541. package/dist/global.d-CiZJ2eHz.d.ts +231 -0
  542. package/dist/hooks/bend/useGetConvertToAssets.d.ts +9 -0
  543. package/dist/hooks/bend/useGetConvertToAssets.d.ts.map +1 -0
  544. package/dist/hooks/dex/useAggregatorsQuotes.d.ts +29 -0
  545. package/dist/hooks/dex/useAggregatorsQuotes.d.ts.map +1 -0
  546. package/dist/hooks/dex/useAggregatorsRouterFeeBps.d.ts +2 -0
  547. package/dist/hooks/dex/useAggregatorsRouterFeeBps.d.ts.map +1 -0
  548. package/dist/hooks/dex/useAllUserPools.d.ts +68 -0
  549. package/dist/hooks/dex/useAllUserPools.d.ts.map +1 -0
  550. package/dist/hooks/dex/useApiPool.d.ts +11 -0
  551. package/dist/hooks/dex/useApiPool.d.ts.map +1 -0
  552. package/dist/hooks/dex/useBexStatus.d.ts +2 -0
  553. package/dist/hooks/dex/useBexStatus.d.ts.map +1 -0
  554. package/dist/hooks/dex/useCreatePool.d.ts +32 -0
  555. package/dist/hooks/dex/useCreatePool.d.ts.map +1 -0
  556. package/dist/hooks/dex/useGlobalLiquidityAndSwapVolume.d.ts +11 -0
  557. package/dist/hooks/dex/useGlobalLiquidityAndSwapVolume.d.ts.map +1 -0
  558. package/dist/hooks/dex/useLiquidityMismatch.d.ts +36 -0
  559. package/dist/hooks/dex/useLiquidityMismatch.d.ts.map +1 -0
  560. package/dist/hooks/dex/useLpPosition.d.ts +14 -0
  561. package/dist/hooks/dex/useLpPosition.d.ts.map +1 -0
  562. package/dist/hooks/dex/useMultipleTokenApprovalsWithSlippage.d.ts +13 -0
  563. package/dist/hooks/dex/useMultipleTokenApprovalsWithSlippage.d.ts.map +1 -0
  564. package/dist/hooks/dex/useOnChainPoolData.d.ts +49 -0
  565. package/dist/hooks/dex/useOnChainPoolData.d.ts.map +1 -0
  566. package/dist/hooks/dex/usePollPoolCreationRelayerApproval.d.ts +8 -0
  567. package/dist/hooks/dex/usePollPoolCreationRelayerApproval.d.ts.map +1 -0
  568. package/dist/hooks/dex/usePool.d.ts +10 -0
  569. package/dist/hooks/dex/usePool.d.ts.map +1 -0
  570. package/dist/hooks/dex/usePoolEvents.d.ts +6 -0
  571. package/dist/hooks/dex/usePoolEvents.d.ts.map +1 -0
  572. package/dist/hooks/dex/usePoolHistoricalData.d.ts +8 -0
  573. package/dist/hooks/dex/usePoolHistoricalData.d.ts.map +1 -0
  574. package/dist/hooks/dex/usePools.d.ts +129 -0
  575. package/dist/hooks/dex/usePools.d.ts.map +1 -0
  576. package/dist/hooks/dex/usePriceImpact.d.ts +11 -0
  577. package/dist/hooks/dex/usePriceImpact.d.ts.map +1 -0
  578. package/dist/hooks/dex/useSingleAggregatorQuote.d.ts +53 -0
  579. package/dist/hooks/dex/useSingleAggregatorQuote.d.ts.map +1 -0
  580. package/dist/hooks/enso/useBendDemultiply.d.ts +18 -0
  581. package/dist/hooks/enso/useBendDemultiply.d.ts.map +1 -0
  582. package/dist/hooks/enso/useBendMultiply.d.ts +19 -0
  583. package/dist/hooks/enso/useBendMultiply.d.ts.map +1 -0
  584. package/dist/hooks/enso/useBendZapSupply.d.ts +40 -0
  585. package/dist/hooks/enso/useBendZapSupply.d.ts.map +1 -0
  586. package/dist/hooks/enso/useEnsoSwapBundle.d.ts +26 -0
  587. package/dist/hooks/enso/useEnsoSwapBundle.d.ts.map +1 -0
  588. package/dist/hooks/enso/useEnsoUserTokensWithBalances.d.ts +6 -0
  589. package/dist/hooks/enso/useEnsoUserTokensWithBalances.d.ts.map +1 -0
  590. package/dist/hooks/enso/useEnsoWalletV2Address.d.ts +4 -0
  591. package/dist/hooks/enso/useEnsoWalletV2Address.d.ts.map +1 -0
  592. package/dist/hooks/enso/useIsBendAuthorized.d.ts +7 -0
  593. package/dist/hooks/enso/useIsBendAuthorized.d.ts.map +1 -0
  594. package/dist/hooks/enso/useZapStakeBera.d.ts +23 -0
  595. package/dist/hooks/enso/useZapStakeBera.d.ts.map +1 -0
  596. package/dist/hooks/exports.d.ts +109 -1541
  597. package/dist/hooks/exports.d.ts.map +1 -0
  598. package/dist/hooks/exports.mjs +447 -754
  599. package/dist/hooks/exports.mjs.map +1 -0
  600. package/dist/hooks/governance/exports.d.ts +15 -186
  601. package/dist/hooks/governance/exports.d.ts.map +1 -0
  602. package/dist/hooks/governance/exports.mjs +70 -80
  603. package/dist/hooks/governance/exports.mjs.map +1 -0
  604. package/dist/hooks/governance/useCreateProposal.d.ts +13 -0
  605. package/dist/hooks/governance/useCreateProposal.d.ts.map +1 -0
  606. package/dist/hooks/governance/useGetPastVotes.d.ts +15 -0
  607. package/dist/hooks/governance/useGetPastVotes.d.ts.map +1 -0
  608. package/dist/hooks/governance/useHasVoted.d.ts +6 -0
  609. package/dist/hooks/governance/useHasVoted.d.ts.map +1 -0
  610. package/dist/hooks/governance/useIsCanceller.d.ts +5 -0
  611. package/dist/hooks/governance/useIsCanceller.d.ts.map +1 -0
  612. package/dist/hooks/governance/usePollAllProposals.d.ts +37 -0
  613. package/dist/hooks/governance/usePollAllProposals.d.ts.map +1 -0
  614. package/dist/hooks/governance/usePollProposal.d.ts +23 -0
  615. package/dist/hooks/governance/usePollProposal.d.ts.map +1 -0
  616. package/dist/hooks/governance/usePollProposalThreshold.d.ts +6 -0
  617. package/dist/hooks/governance/usePollProposalThreshold.d.ts.map +1 -0
  618. package/dist/hooks/governance/usePollProposalVotes.d.ts +23 -0
  619. package/dist/hooks/governance/usePollProposalVotes.d.ts.map +1 -0
  620. package/dist/hooks/governance/usePollUserDelegates.d.ts +7 -0
  621. package/dist/hooks/governance/usePollUserDelegates.d.ts.map +1 -0
  622. package/dist/hooks/governance/useProposalFromTx.d.ts +5 -0
  623. package/dist/hooks/governance/useProposalFromTx.d.ts.map +1 -0
  624. package/dist/hooks/governance/useProposalSnapshot.d.ts +12 -0
  625. package/dist/hooks/governance/useProposalSnapshot.d.ts.map +1 -0
  626. package/dist/hooks/governance/useProposalState.d.ts +7 -0
  627. package/dist/hooks/governance/useProposalState.d.ts.map +1 -0
  628. package/dist/hooks/governance/useProposalTimelockState.d.ts +18 -0
  629. package/dist/hooks/governance/useProposalTimelockState.d.ts.map +1 -0
  630. package/dist/hooks/governance/useQuorum.d.ts +17 -0
  631. package/dist/hooks/governance/useQuorum.d.ts.map +1 -0
  632. package/dist/hooks/honey/useCappedGlobally.d.ts +11 -0
  633. package/dist/hooks/honey/useCappedGlobally.d.ts.map +1 -0
  634. package/dist/hooks/honey/useCappedRelatively.d.ts +11 -0
  635. package/dist/hooks/honey/useCappedRelatively.d.ts.map +1 -0
  636. package/dist/hooks/honey/useCollateralWeights.d.ts +9 -0
  637. package/dist/hooks/honey/useCollateralWeights.d.ts.map +1 -0
  638. package/dist/hooks/honey/useHoney24hVolume.d.ts +2 -0
  639. package/dist/hooks/honey/useHoney24hVolume.d.ts.map +1 -0
  640. package/dist/hooks/honey/useHoneyAlerts.d.ts +47 -0
  641. package/dist/hooks/honey/useHoneyAlerts.d.ts.map +1 -0
  642. package/dist/hooks/honey/useHoneyBalances.d.ts +26 -0
  643. package/dist/hooks/honey/useHoneyBalances.d.ts.map +1 -0
  644. package/dist/hooks/honey/useHoneyChartData.d.ts +10 -0
  645. package/dist/hooks/honey/useHoneyChartData.d.ts.map +1 -0
  646. package/dist/hooks/honey/useHoneySwapState.d.ts +30 -0
  647. package/dist/hooks/honey/useHoneySwapState.d.ts.map +1 -0
  648. package/dist/hooks/honey/useHoneyVaultsBalance.d.ts +4 -0
  649. package/dist/hooks/honey/useHoneyVaultsBalance.d.ts.map +1 -0
  650. package/dist/hooks/honey/useIsBadCollateralAsset.d.ts +9 -0
  651. package/dist/hooks/honey/useIsBadCollateralAsset.d.ts.map +1 -0
  652. package/dist/hooks/honey/useIsBasketModeEnabled.d.ts +6 -0
  653. package/dist/hooks/honey/useIsBasketModeEnabled.d.ts.map +1 -0
  654. package/dist/hooks/honey/usePythLatestPrices.d.ts +20 -0
  655. package/dist/hooks/honey/usePythLatestPrices.d.ts.map +1 -0
  656. package/dist/hooks/perps/usePythUpdateFee.d.ts +11 -0
  657. package/dist/hooks/perps/usePythUpdateFee.d.ts.map +1 -0
  658. package/dist/hooks/pol/useAutoclaimedIncentives.d.ts +8 -0
  659. package/dist/hooks/pol/useAutoclaimedIncentives.d.ts.map +1 -0
  660. package/dist/hooks/pol/useAutoclaimedIncentivesTxHash.d.ts +8 -0
  661. package/dist/hooks/pol/useAutoclaimedIncentivesTxHash.d.ts.map +1 -0
  662. package/dist/hooks/pol/useBgtAprSimulation.d.ts +7 -0
  663. package/dist/hooks/pol/useBgtAprSimulation.d.ts.map +1 -0
  664. package/dist/hooks/pol/useBgtIncentiveDistributorPaused.d.ts +8 -0
  665. package/dist/hooks/pol/useBgtIncentiveDistributorPaused.d.ts.map +1 -0
  666. package/dist/hooks/pol/useBgtUnstakedBalance.d.ts +3 -0
  667. package/dist/hooks/pol/useBgtUnstakedBalance.d.ts.map +1 -0
  668. package/dist/hooks/pol/useClaimableFees.d.ts +2 -0
  669. package/dist/hooks/pol/useClaimableFees.d.ts.map +1 -0
  670. package/dist/hooks/pol/useHighestVaultsAPR.d.ts +23 -0
  671. package/dist/hooks/pol/useHighestVaultsAPR.d.ts.map +1 -0
  672. package/dist/hooks/pol/useOnChainRewardVault.d.ts +7 -0
  673. package/dist/hooks/pol/useOnChainRewardVault.d.ts.map +1 -0
  674. package/dist/hooks/pol/usePollGlobalData.d.ts +4 -0
  675. package/dist/hooks/pol/usePollGlobalData.d.ts.map +1 -0
  676. package/dist/hooks/pol/usePollMarkets.d.ts +7 -0
  677. package/dist/hooks/pol/usePollMarkets.d.ts.map +1 -0
  678. package/dist/hooks/pol/useQueuedBeraUnlock.d.ts +9 -0
  679. package/dist/hooks/pol/useQueuedBeraUnlock.d.ts.map +1 -0
  680. package/dist/hooks/pol/useRewardTokenToBeraRate.d.ts +6 -0
  681. package/dist/hooks/pol/useRewardTokenToBeraRate.d.ts.map +1 -0
  682. package/dist/hooks/pol/useRewardVault.d.ts +8 -0
  683. package/dist/hooks/pol/useRewardVault.d.ts.map +1 -0
  684. package/dist/hooks/pol/useRewardVaultBalanceFromStakingToken.d.ts +16 -0
  685. package/dist/hooks/pol/useRewardVaultBalanceFromStakingToken.d.ts.map +1 -0
  686. package/dist/hooks/pol/useRewardVaultFromToken.d.ts +7 -0
  687. package/dist/hooks/pol/useRewardVaultFromToken.d.ts.map +1 -0
  688. package/dist/hooks/pol/useRewardVaultIncentives.d.ts +6 -0
  689. package/dist/hooks/pol/useRewardVaultIncentives.d.ts.map +1 -0
  690. package/dist/hooks/pol/useRewardVaultRewards.d.ts +4 -0
  691. package/dist/hooks/pol/useRewardVaultRewards.d.ts.map +1 -0
  692. package/dist/hooks/pol/useRewardVaults.d.ts +15 -0
  693. package/dist/hooks/pol/useRewardVaults.d.ts.map +1 -0
  694. package/dist/hooks/pol/useStakedAPR.d.ts +11 -0
  695. package/dist/hooks/pol/useStakedAPR.d.ts.map +1 -0
  696. package/dist/hooks/pol/useStakedData.d.ts +41 -0
  697. package/dist/hooks/pol/useStakedData.d.ts.map +1 -0
  698. package/dist/hooks/pol/useStakedSnapshots.d.ts +10 -0
  699. package/dist/hooks/pol/useStakedSnapshots.d.ts.map +1 -0
  700. package/dist/hooks/pol/useStakingVaultsMetadata.d.ts +7 -0
  701. package/dist/hooks/pol/useStakingVaultsMetadata.d.ts.map +1 -0
  702. package/dist/hooks/pol/useTotalStakedAmount.d.ts +6 -0
  703. package/dist/hooks/pol/useTotalStakedAmount.d.ts.map +1 -0
  704. package/dist/hooks/pol/useUserVaultInfo.d.ts +7 -0
  705. package/dist/hooks/pol/useUserVaultInfo.d.ts.map +1 -0
  706. package/dist/hooks/pol/useUserVaults.d.ts +4 -0
  707. package/dist/hooks/pol/useUserVaults.d.ts.map +1 -0
  708. package/dist/hooks/pol/useVaultAddress.d.ts +10 -0
  709. package/dist/hooks/pol/useVaultAddress.d.ts.map +1 -0
  710. package/dist/hooks/pol/useVaultHistory.d.ts +5 -0
  711. package/dist/hooks/pol/useVaultHistory.d.ts.map +1 -0
  712. package/dist/hooks/pol/useVaultValidators.d.ts +7 -0
  713. package/dist/hooks/pol/useVaultValidators.d.ts.map +1 -0
  714. package/dist/hooks/tokens/useBeraCurrentPrice.d.ts +11 -0
  715. package/dist/hooks/tokens/useBeraCurrentPrice.d.ts.map +1 -0
  716. package/dist/hooks/tokens/useMultipleTokenInformation.d.ts +9 -0
  717. package/dist/hooks/tokens/useMultipleTokenInformation.d.ts.map +1 -0
  718. package/dist/hooks/tokens/usePollAllowances.d.ts +17 -0
  719. package/dist/hooks/tokens/usePollAllowances.d.ts.map +1 -0
  720. package/dist/hooks/tokens/usePollBalance.d.ts +12 -0
  721. package/dist/hooks/tokens/usePollBalance.d.ts.map +1 -0
  722. package/dist/hooks/tokens/usePollWalletBalances.d.ts +14 -0
  723. package/dist/hooks/tokens/usePollWalletBalances.d.ts.map +1 -0
  724. package/dist/hooks/tokens/useStakingTokenInformation.d.ts +8 -0
  725. package/dist/hooks/tokens/useStakingTokenInformation.d.ts.map +1 -0
  726. package/dist/hooks/tokens/useTokenCurrentPrices.d.ts +16 -0
  727. package/dist/hooks/tokens/useTokenCurrentPrices.d.ts.map +1 -0
  728. package/dist/hooks/tokens/useTokenInformation.d.ts +9 -0
  729. package/dist/hooks/tokens/useTokenInformation.d.ts.map +1 -0
  730. package/dist/hooks/tokens/useTokenPrice.d.ts +10 -0
  731. package/dist/hooks/tokens/useTokenPrice.d.ts.map +1 -0
  732. package/dist/hooks/tokens/useTokenPrices.d.ts +18 -0
  733. package/dist/hooks/tokens/useTokenPrices.d.ts.map +1 -0
  734. package/dist/hooks/tokens/useTokens.d.ts +18 -0
  735. package/dist/hooks/tokens/useTokens.d.ts.map +1 -0
  736. package/dist/hooks/tokens/useTotalSupply.d.ts +5 -0
  737. package/dist/hooks/tokens/useTotalSupply.d.ts.map +1 -0
  738. package/dist/hooks/tokens/useUnderlyingAsset.d.ts +10 -0
  739. package/dist/hooks/tokens/useUnderlyingAsset.d.ts.map +1 -0
  740. package/dist/hooks/useBlockToTimestamp.d.ts +6 -0
  741. package/dist/hooks/useBlockToTimestamp.d.ts.map +1 -0
  742. package/dist/hooks/useContractWrite/index.d.ts +3 -0
  743. package/dist/hooks/useContractWrite/index.d.ts.map +1 -0
  744. package/dist/hooks/useContractWrite/stateReducer.d.ts +28 -0
  745. package/dist/hooks/useContractWrite/stateReducer.d.ts.map +1 -0
  746. package/dist/hooks/useContractWrite/types.d.ts +54 -0
  747. package/dist/hooks/useContractWrite/types.d.ts.map +1 -0
  748. package/dist/hooks/useContractWrite/useBeraContractWrite.d.ts +10 -0
  749. package/dist/hooks/useContractWrite/useBeraContractWrite.d.ts.map +1 -0
  750. package/dist/hooks/useGetVerifiedAbi.d.ts +2 -0
  751. package/dist/hooks/useGetVerifiedAbi.d.ts.map +1 -0
  752. package/dist/hooks/useHistoryState.d.ts +17 -0
  753. package/dist/hooks/useHistoryState.d.ts.map +1 -0
  754. package/dist/hooks/usePrevious.d.ts +6 -0
  755. package/dist/hooks/usePrevious.d.ts.map +1 -0
  756. package/dist/hooks/validators/useAllValidators.d.ts +7 -0
  757. package/dist/hooks/validators/useAllValidators.d.ts.map +1 -0
  758. package/dist/hooks/validators/useApiEnrichedAllocation.d.ts +5 -0
  759. package/dist/hooks/validators/useApiEnrichedAllocation.d.ts.map +1 -0
  760. package/dist/hooks/validators/useApiValidator.d.ts +8 -0
  761. package/dist/hooks/validators/useApiValidator.d.ts.map +1 -0
  762. package/dist/hooks/validators/useBaselineRewardAllocation.d.ts +2 -0
  763. package/dist/hooks/validators/useBaselineRewardAllocation.d.ts.map +1 -0
  764. package/dist/hooks/validators/useManagedValidatorRole.d.ts +13 -0
  765. package/dist/hooks/validators/useManagedValidatorRole.d.ts.map +1 -0
  766. package/dist/hooks/validators/useOnChainValidator.d.ts +7 -0
  767. package/dist/hooks/validators/useOnChainValidator.d.ts.map +1 -0
  768. package/dist/hooks/validators/useStakingPoolBatch.d.ts +7 -0
  769. package/dist/hooks/validators/useStakingPoolBatch.d.ts.map +1 -0
  770. package/dist/hooks/validators/useUserActiveValidators.d.ts +7 -0
  771. package/dist/hooks/validators/useUserActiveValidators.d.ts.map +1 -0
  772. package/dist/hooks/validators/useUserBoostsOnValidator.d.ts +8 -0
  773. package/dist/hooks/validators/useUserBoostsOnValidator.d.ts.map +1 -0
  774. package/dist/hooks/validators/useUserClaimableIncentives.d.ts +8 -0
  775. package/dist/hooks/validators/useUserClaimableIncentives.d.ts.map +1 -0
  776. package/dist/hooks/validators/useUserStakingPositions.d.ts +31 -0
  777. package/dist/hooks/validators/useUserStakingPositions.d.ts.map +1 -0
  778. package/dist/hooks/validators/useValidator.d.ts +112 -0
  779. package/dist/hooks/validators/useValidator.d.ts.map +1 -0
  780. package/dist/hooks/validators/useValidatorAnalytics.d.ts +11 -0
  781. package/dist/hooks/validators/useValidatorAnalytics.d.ts.map +1 -0
  782. package/dist/hooks/validators/useValidatorCommission.d.ts +4 -0
  783. package/dist/hooks/validators/useValidatorCommission.d.ts.map +1 -0
  784. package/dist/hooks/validators/useValidatorEstimatedBgtPerYear.d.ts +6 -0
  785. package/dist/hooks/validators/useValidatorEstimatedBgtPerYear.d.ts.map +1 -0
  786. package/dist/hooks/validators/useValidatorIncentiveDistribution.d.ts +14 -0
  787. package/dist/hooks/validators/useValidatorIncentiveDistribution.d.ts.map +1 -0
  788. package/dist/hooks/validators/useValidatorQueuedCommission.d.ts +5 -0
  789. package/dist/hooks/validators/useValidatorQueuedCommission.d.ts.map +1 -0
  790. package/dist/hooks/validators/useValidatorQueuedOperatorAddress.d.ts +5 -0
  791. package/dist/hooks/validators/useValidatorQueuedOperatorAddress.d.ts.map +1 -0
  792. package/dist/hooks/validators/useValidatorQueuedRewardAllocation.d.ts +5 -0
  793. package/dist/hooks/validators/useValidatorQueuedRewardAllocation.d.ts.map +1 -0
  794. package/dist/hooks/validators/useValidatorRewardAllocation.d.ts +9 -0
  795. package/dist/hooks/validators/useValidatorRewardAllocation.d.ts.map +1 -0
  796. package/dist/types/bribeBoost.d.ts +69 -0
  797. package/dist/types/dex.d.ts +225 -0
  798. package/dist/types/enso.d.ts +76 -0
  799. package/dist/types/exports.d.ts +8 -90
  800. package/dist/types/exports.d.ts.map +1 -0
  801. package/dist/types/exports.mjs +1 -0
  802. package/dist/types/exports.mjs.map +1 -0
  803. package/dist/types/global.d.ts +198 -0
  804. package/dist/types/governance/exports.d.ts +2 -109
  805. package/dist/types/governance/exports.d.ts.map +1 -0
  806. package/dist/types/governance/exports.mjs +1 -0
  807. package/dist/types/governance/exports.mjs.map +1 -0
  808. package/dist/types/governance.d.ts +112 -0
  809. package/dist/types/honeySwap.d.ts +23 -0
  810. package/dist/types/pol.d.ts +78 -0
  811. package/dist/types/staking.d.ts +22 -0
  812. package/dist/useHoneySwapState-CXVWAThr.d.ts +32 -0
  813. package/dist/utils/beraFetch.d.ts +15 -0
  814. package/dist/utils/beraFetch.d.ts.map +1 -0
  815. package/dist/utils/constants.d.ts +27 -0
  816. package/dist/utils/constants.d.ts.map +1 -0
  817. package/dist/utils/createEmitter.d.ts +88 -0
  818. package/dist/utils/createEmitter.d.ts.map +1 -0
  819. package/dist/utils/createEmitter.unit.test.d.ts +2 -0
  820. package/dist/utils/createEmitter.unit.test.d.ts.map +1 -0
  821. package/dist/utils/exports.d.ts +25 -429
  822. package/dist/utils/exports.d.ts.map +1 -0
  823. package/dist/utils/exports.mjs +33 -22
  824. package/dist/utils/exports.mjs.map +1 -0
  825. package/dist/utils/filter.d.ts +10 -0
  826. package/dist/utils/filter.d.ts.map +1 -0
  827. package/dist/utils/formatIncentivesTokenMap.d.ts +3 -0
  828. package/dist/utils/formatIncentivesTokenMap.d.ts.map +1 -0
  829. package/dist/utils/formatInputTokenValue.d.ts +2 -0
  830. package/dist/utils/formatInputTokenValue.d.ts.map +1 -0
  831. package/dist/utils/formatNumber.d.ts +32 -0
  832. package/dist/utils/formatNumber.d.ts.map +1 -0
  833. package/dist/utils/formatNumber.unit.test.d.ts +2 -0
  834. package/dist/utils/formatNumber.unit.test.d.ts.map +1 -0
  835. package/dist/utils/formatTimestamps.d.ts +20 -0
  836. package/dist/utils/formatTimestamps.d.ts.map +1 -0
  837. package/dist/utils/formatTimestamps.unit.test.d.ts +2 -0
  838. package/dist/utils/formatTimestamps.unit.test.d.ts.map +1 -0
  839. package/dist/utils/formatTokenList.d.ts +21 -0
  840. package/dist/utils/formatTokenList.d.ts.map +1 -0
  841. package/dist/utils/formatUsd.d.ts +5 -0
  842. package/dist/utils/formatUsd.d.ts.map +1 -0
  843. package/dist/utils/getContractName.d.ts +10 -0
  844. package/dist/utils/getContractName.d.ts.map +1 -0
  845. package/dist/utils/getContractName.unit.test.d.ts +2 -0
  846. package/dist/utils/getContractName.unit.test.d.ts.map +1 -0
  847. package/dist/utils/getErrorResponse.d.ts +5 -0
  848. package/dist/utils/getErrorResponse.d.ts.map +1 -0
  849. package/dist/utils/getHoneySwapMessage.d.ts +7 -0
  850. package/dist/utils/getHoneySwapMessage.d.ts.map +1 -0
  851. package/dist/utils/getHoneySwapMessage.test.d.ts +2 -0
  852. package/dist/utils/getHoneySwapMessage.test.d.ts.map +1 -0
  853. package/dist/utils/getServerSideClient.d.ts +6 -0
  854. package/dist/utils/getServerSideClient.d.ts.map +1 -0
  855. package/dist/utils/getTestClient.d.ts +73 -0
  856. package/dist/utils/getTestClient.d.ts.map +1 -0
  857. package/dist/utils/hasAnyTruthyValues.d.ts +2 -0
  858. package/dist/utils/hasAnyTruthyValues.d.ts.map +1 -0
  859. package/dist/utils/isDifferenceExceedingThreshold.d.ts +6 -0
  860. package/dist/utils/isDifferenceExceedingThreshold.d.ts.map +1 -0
  861. package/dist/utils/isSubgraphStale.d.ts +5 -0
  862. package/dist/utils/isSubgraphStale.d.ts.map +1 -0
  863. package/dist/utils/layerZeroScan.d.ts +39 -0
  864. package/dist/utils/layerZeroScan.d.ts.map +1 -0
  865. package/dist/utils/math.d.ts +15 -0
  866. package/dist/utils/math.d.ts.map +1 -0
  867. package/dist/utils/math.unit.test.d.ts +2 -0
  868. package/dist/utils/math.unit.test.d.ts.map +1 -0
  869. package/dist/utils/parseBaseArgs.d.ts +6 -0
  870. package/dist/utils/parseBaseArgs.d.ts.map +1 -0
  871. package/dist/utils/parseBaseArgs.unit.test.d.ts +2 -0
  872. package/dist/utils/parseBaseArgs.unit.test.d.ts.map +1 -0
  873. package/dist/utils/parseWhiskToken.d.ts +21 -0
  874. package/dist/utils/parseWhiskToken.d.ts.map +1 -0
  875. package/dist/utils/polyfillAbortSignalAny.d.ts +14 -0
  876. package/dist/utils/polyfillAbortSignalAny.d.ts.map +1 -0
  877. package/dist/utils/polyfillAbortSignalAny.unit.test.d.ts +2 -0
  878. package/dist/utils/polyfillAbortSignalAny.unit.test.d.ts.map +1 -0
  879. package/dist/utils/poolNamings.d.ts +9 -0
  880. package/dist/utils/poolNamings.d.ts.map +1 -0
  881. package/dist/utils/pythHoneyUtils.d.ts +2 -0
  882. package/dist/utils/pythHoneyUtils.d.ts.map +1 -0
  883. package/dist/utils/sanitizeRpcUrl.d.ts +10 -0
  884. package/dist/utils/sanitizeRpcUrl.d.ts.map +1 -0
  885. package/dist/utils/test-utils.d.ts +2 -0
  886. package/dist/utils/test-utils.d.ts.map +1 -0
  887. package/dist/utils/time.d.ts +65 -0
  888. package/dist/utils/time.d.ts.map +1 -0
  889. package/dist/utils/time.unit.test.d.ts +2 -0
  890. package/dist/utils/time.unit.test.d.ts.map +1 -0
  891. package/dist/utils/tokenWrapping.d.ts +7 -0
  892. package/dist/utils/tokenWrapping.d.ts.map +1 -0
  893. package/dist/utils/tokens.d.ts +37 -0
  894. package/dist/utils/tokens.d.ts.map +1 -0
  895. package/dist/utils/tokens.unit.test.d.ts +2 -0
  896. package/dist/utils/tokens.unit.test.d.ts.map +1 -0
  897. package/dist/utils/tracedTransport.d.ts +10 -0
  898. package/dist/utils/tracedTransport.d.ts.map +1 -0
  899. package/dist/utils/truncateHash.d.ts +5 -0
  900. package/dist/utils/truncateHash.d.ts.map +1 -0
  901. package/dist/utils/truncateHash.unit.test.d.ts +2 -0
  902. package/dist/utils/truncateHash.unit.test.d.ts.map +1 -0
  903. package/dist/utils/validatorUptimeStatus.d.ts +19 -0
  904. package/dist/utils/validatorUptimeStatus.d.ts.map +1 -0
  905. package/package.json +6 -4
  906. package/src/actions/clients/BeraApolloClient.ts +4 -2
  907. package/src/actions/clients/exports.ts +0 -1
  908. package/src/actions/clients/fetchBeep.ts +0 -7
  909. package/src/actions/clients/fetchOpenApi.ts +4 -4
  910. package/src/actions/clients/fetchOpenApi.unit.test.ts +12 -28
  911. package/src/actions/clients/getApolloClient.ts +4 -9
  912. package/src/actions/dex/aggregators/base.ts +3 -1
  913. package/src/actions/dex/aggregators/bex.ts +3 -10
  914. package/src/actions/dex/getPoolWithState.ts +2 -2
  915. package/src/actions/enso/__tests__/helpers.ts +15 -10
  916. package/src/actions/enso/getEnsoSwapBundle.ts +3 -8
  917. package/src/actions/exports.ts +2 -4
  918. package/src/actions/governance/getDecodedFunctionData.ts +5 -1
  919. package/src/actions/honey/getChartData.ts +3 -44
  920. package/src/actions/honey/getHoney24hVolume.ts +2 -21
  921. package/src/actions/honey/getHoneyTxns.ts +1 -49
  922. package/src/actions/honey/getSwapPayload.ts +4 -4
  923. package/src/actions/pol/__tests__/rewardVaults.integration.test.ts +3 -3
  924. package/src/actions/pol/getAutoclaimedIncentives.ts +1 -1
  925. package/src/actions/pol/getAutoclaimedIncentivesTxHash.ts +1 -1
  926. package/src/actions/pol/getEarnedStakedBeraVault.ts +0 -15
  927. package/src/actions/pol/getGlobalData.ts +10 -29
  928. package/src/actions/pol/getRewardProofsByValidator.ts +1 -1
  929. package/src/actions/pol/{getUserVaultsReward.ts → getRewardVaultEarnedRewards.ts} +6 -4
  930. package/src/actions/pol/getRewardVaults.ts +4 -4
  931. package/src/actions/pol/getSWBeraVaultMetadata.ts +0 -7
  932. package/src/actions/pol/getStakingDailyAssets.ts +0 -14
  933. package/src/actions/pol/getUserClaimableIncentives.ts +1 -1
  934. package/src/actions/pol/getUserVaultInfo.ts +2 -2
  935. package/src/actions/pol/getVaultsSupply.ts +5 -2
  936. package/src/actions/server/getDailyValidatorBlockStats.ts +28 -17
  937. package/src/actions/tokens/getWalletBalances.ts +1 -3
  938. package/src/actions/transactions/beraWriteContract.integration.test.ts +16 -3
  939. package/src/actions/transactions/beraWriteContract.ts +2 -2
  940. package/src/actions/validators/getApiEnrichedAllocation.ts +1 -1
  941. package/src/actions/validators/getUserBoostsOnValidator.ts +6 -9
  942. package/src/actions/validators/getValidatorAnalytics.ts +5 -1
  943. package/src/actions/validators/getValidatorEstimatedBgtPerYear.ts +3 -3
  944. package/src/actions/validators/getValidatorIncentiveDistribution.ts +2 -24
  945. package/src/contexts/exports.ts +1 -1
  946. package/src/errors/BeraError.ts +51 -1
  947. package/src/errors/BeraError.unit.test.ts +71 -0
  948. package/src/errors/BeraTracing.unit.test.ts +17 -18
  949. package/src/errors/RequestError.ts +18 -4
  950. package/src/errors/RequestError.unit.test.ts +47 -0
  951. package/src/errors/assert.ts +29 -0
  952. package/src/hooks/bend/useGetConvertToAssets.ts +4 -11
  953. package/src/hooks/dex/useAggregatorsQuotes.ts +3 -1
  954. package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +3 -8
  955. package/src/hooks/dex/useAllUserPools.ts +7 -14
  956. package/src/hooks/dex/useApiPool.ts +4 -11
  957. package/src/hooks/dex/useCreatePool.ts +13 -13
  958. package/src/hooks/dex/useGlobalLiquidityAndSwapVolume.ts +2 -3
  959. package/src/hooks/dex/useLiquidityMismatch.ts +3 -3
  960. package/src/hooks/dex/useLpPosition.ts +3 -3
  961. package/src/hooks/dex/useOnChainPoolData.ts +2 -3
  962. package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +4 -10
  963. package/src/hooks/dex/usePoolEvents.ts +3 -3
  964. package/src/hooks/dex/usePoolHistoricalData.ts +4 -9
  965. package/src/hooks/dex/usePools.ts +8 -8
  966. package/src/hooks/dex/usePriceImpact.ts +6 -6
  967. package/src/hooks/enso/useBendZapSupply.ts +1 -1
  968. package/src/hooks/enso/useEnsoSwapBundle.ts +1 -1
  969. package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +1 -5
  970. package/src/hooks/enso/useZapStakeBera.ts +0 -3
  971. package/src/hooks/exports.ts +0 -4
  972. package/src/hooks/governance/useCreateProposal.ts +4 -4
  973. package/src/hooks/governance/useGetPastVotes.ts +11 -7
  974. package/src/hooks/governance/useHasVoted.ts +3 -3
  975. package/src/hooks/governance/useIsCanceller.ts +3 -3
  976. package/src/hooks/governance/usePollAllProposals.ts +3 -3
  977. package/src/hooks/governance/usePollProposal.ts +7 -10
  978. package/src/hooks/governance/usePollProposalThreshold.ts +4 -9
  979. package/src/hooks/governance/usePollProposalVotes.ts +12 -12
  980. package/src/hooks/governance/usePollUserDelegates.ts +19 -20
  981. package/src/hooks/governance/useProposalFromTx.ts +5 -7
  982. package/src/hooks/governance/useProposalSnapshot.ts +4 -4
  983. package/src/hooks/governance/useProposalState.ts +4 -4
  984. package/src/hooks/governance/useProposalTimelockState.ts +2 -2
  985. package/src/hooks/honey/useCappedGlobally.ts +4 -9
  986. package/src/hooks/honey/useCappedRelatively.ts +4 -9
  987. package/src/hooks/honey/useCollateralWeights.ts +4 -9
  988. package/src/hooks/honey/useHoney24hVolume.ts +1 -5
  989. package/src/hooks/honey/useHoneyAlerts.ts +9 -9
  990. package/src/hooks/honey/useHoneyBalances.ts +4 -9
  991. package/src/hooks/honey/useHoneyChartData.ts +3 -11
  992. package/src/hooks/honey/useHoneySwapState.ts +2 -2
  993. package/src/hooks/honey/useHoneyVaultsBalance.ts +4 -9
  994. package/src/hooks/honey/useIsBadCollateralAsset.ts +4 -9
  995. package/src/hooks/honey/useIsBasketModeEnabled.ts +1 -6
  996. package/src/hooks/honey/usePythLatestPrices.ts +4 -6
  997. package/src/hooks/perps/usePythUpdateFee.ts +3 -3
  998. package/src/hooks/pol/useAutoclaimedIncentives.ts +2 -7
  999. package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +2 -7
  1000. package/src/hooks/pol/useBgtIncentiveDistributorPaused.ts +1 -6
  1001. package/src/hooks/pol/useBgtUnstakedBalance.ts +4 -9
  1002. package/src/hooks/pol/useClaimableFees.ts +5 -9
  1003. package/src/hooks/pol/useHighestVaultsAPR.ts +5 -8
  1004. package/src/hooks/pol/useOnChainRewardVault.ts +6 -5
  1005. package/src/hooks/pol/usePollGlobalData.ts +4 -9
  1006. package/src/hooks/pol/usePollMarkets.ts +6 -11
  1007. package/src/hooks/pol/useQueuedBeraUnlock.ts +1 -10
  1008. package/src/hooks/pol/useRewardTokenToBeraRate.ts +6 -14
  1009. package/src/hooks/pol/useRewardVault.ts +8 -7
  1010. package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +5 -5
  1011. package/src/hooks/pol/useRewardVaultFromToken.ts +26 -32
  1012. package/src/hooks/pol/useRewardVaultIncentives.ts +1 -6
  1013. package/src/hooks/pol/useRewardVaultRewards.ts +4 -9
  1014. package/src/hooks/pol/useRewardVaults.ts +7 -12
  1015. package/src/hooks/pol/useStakedAPR.ts +1 -6
  1016. package/src/hooks/pol/useStakedData.ts +2 -2
  1017. package/src/hooks/pol/useStakedSnapshots.ts +3 -8
  1018. package/src/hooks/pol/useStakingVaultsMetadata.ts +3 -3
  1019. package/src/hooks/pol/useTotalStakedAmount.ts +1 -6
  1020. package/src/hooks/pol/useUserVaultInfo.ts +4 -9
  1021. package/src/hooks/pol/useUserVaults.ts +4 -8
  1022. package/src/hooks/pol/useVaultAddress.ts +2 -2
  1023. package/src/hooks/pol/useVaultHistory.ts +4 -9
  1024. package/src/hooks/pol/useVaultValidators.ts +4 -9
  1025. package/src/hooks/tokens/useBeraCurrentPrice.ts +8 -4
  1026. package/src/hooks/tokens/useMultipleTokenInformation.ts +1 -6
  1027. package/src/hooks/tokens/usePollAllowances.ts +1 -7
  1028. package/src/hooks/tokens/usePollBalance.ts +0 -3
  1029. package/src/hooks/tokens/usePollWalletBalances.ts +1 -1
  1030. package/src/hooks/tokens/useStakingTokenInformation.ts +4 -13
  1031. package/src/hooks/tokens/useTokenInformation.ts +1 -6
  1032. package/src/hooks/useBlockToTimestamp.ts +1 -1
  1033. package/src/hooks/useContractWrite/index.ts +1 -1
  1034. package/src/hooks/useContractWrite/stateReducer.ts +2 -2
  1035. package/src/hooks/useContractWrite/useBeraContractWrite.ts +1 -3
  1036. package/src/hooks/useGetVerifiedAbi.ts +2 -2
  1037. package/src/hooks/validators/useAllValidators.ts +7 -12
  1038. package/src/hooks/validators/useApiValidator.ts +7 -11
  1039. package/src/hooks/validators/useManagedValidatorRole.ts +0 -1
  1040. package/src/hooks/validators/useOnChainValidator.ts +4 -11
  1041. package/src/hooks/validators/useStakingPoolBatch.ts +4 -9
  1042. package/src/hooks/validators/useUserActiveValidators.ts +4 -9
  1043. package/src/hooks/validators/useUserBoostsOnValidator.ts +4 -6
  1044. package/src/hooks/validators/useUserClaimableIncentives.ts +116 -117
  1045. package/src/hooks/validators/useUserStakingPositions.ts +4 -11
  1046. package/src/hooks/validators/useValidatorAnalytics.ts +4 -3
  1047. package/src/hooks/validators/useValidatorCommission.ts +4 -9
  1048. package/src/hooks/validators/useValidatorEstimatedBgtPerYear.ts +4 -4
  1049. package/src/hooks/validators/useValidatorIncentiveDistribution.ts +1 -3
  1050. package/src/hooks/validators/useValidatorQueuedCommission.ts +1 -6
  1051. package/src/hooks/validators/useValidatorQueuedOperatorAddress.ts +4 -9
  1052. package/src/hooks/validators/useValidatorQueuedRewardAllocation.ts +4 -9
  1053. package/src/hooks/validators/useValidatorRewardAllocation.ts +1 -6
  1054. package/src/types/bribeBoost.d.ts +69 -0
  1055. package/src/types/exports.ts +1 -1
  1056. package/src/types/global.d.ts +5 -7
  1057. package/src/utils/filter.ts +3 -5
  1058. package/src/utils/formatIncentivesTokenMap.ts +8 -8
  1059. package/src/utils/formatInputTokenValue.ts +2 -2
  1060. package/src/utils/formatNumber.ts +5 -5
  1061. package/src/utils/formatTimestamps.unit.test.ts +6 -3
  1062. package/src/utils/formatUsd.ts +6 -4
  1063. package/src/utils/getServerSideClient.ts +3 -3
  1064. package/src/utils/isDifferenceExceedingThreshold.ts +10 -6
  1065. package/src/utils/layerZeroScan.ts +3 -1
  1066. package/src/utils/math.ts +12 -7
  1067. package/src/utils/math.unit.test.ts +114 -15
  1068. package/src/utils/polyfillAbortSignalAny.ts +4 -4
  1069. package/src/utils/polyfillAbortSignalAny.unit.test.ts +3 -1
  1070. package/src/utils/poolNamings.ts +14 -10
  1071. package/src/utils/pythHoneyUtils.ts +2 -2
  1072. package/src/utils/truncateHash.ts +3 -3
  1073. package/src/actions/clients/fetchRailwayBackend.ts +0 -34
  1074. package/src/actions/pol/getGlobalCuttingBoard.ts +0 -25
  1075. package/src/actions/pol/getIncentiveFeeClaimStats.ts +0 -24
  1076. package/src/actions/validators/getDailyValidatorBlockStats.ts +0 -38
  1077. package/src/hooks/tokens/useTokenCurrentPrice.ts +0 -21
  1078. package/src/hooks/validators/useDailyValidatorBlockStats.ts +0 -35
  1079. package/src/hooks/validators/useDefaultRewardAllocation.ts +0 -31
  1080. /package/{src → dist}/types/bribe-boost.d.ts +0 -0
  1081. /package/src/actions/dex/{b-sdk.ts → bSdk.ts} +0 -0
  1082. /package/src/contexts/{block-time-provider.tsx → BlockTimeProvider.tsx} +0 -0
@@ -1,1647 +1,101 @@
1
- import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
2
- export { B as BaseAggregator, G as GetBgtAprSimulationArgs, a as GetBgtAprSimulationResult, b as GetConvertToAssetsProps, c as GetGaugeData, d as GetHoneyVaultsBalanceResponse, e as GetMarkets, f as GetRewardVaultRewardsReturn, g as GetUserVaultsResponse, h as GetVaultHistoryArgs, i as GlobalData, I as IsBadCollateralArgs, j as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, R as RewardVaultDistributionMode, k as RewardVaultIncentive, S as StakedBeraWithdrawal, U as UserBoostsOnValidator, l as UserStakingPoolPosition, m as UserVault, n as ValidatorQueuedCommission, o as ValidatorQueuedOperatorAddress, p as ValidatorRewardAllocationRaw, q as ValidatorRewardAllocationUpdate, r as ValidatorRewardAllocationUpdateWithExpiration, s as ValidatorWithUserBoost, t as VaultMetadata, u as formatValidatorRewardAllocation, v as getBgtAprSimulation, w as getConvertToAssets, x as getGlobalData, y as getHoneyVaultsBalance, z as getMarkets, A as getOnChainPool, C as getPoolPausedState, D as getRewardVaultIncentives, E as getRewardVaultRewards, F as getRewardVaults, H as getSWBeraVaultMetadata, J as getSWBeraWithdrawal, K as getUserActiveValidators, L as getUserBoostsOnValidator, M as getUserStakingPositions, N as getUserVaults, Q as getValidatorQueuedCommission, T as getValidatorQueuedOperatorAddress, W as getValidatorRewardAllocation, X as getVaultHistory, Y as isBadCollateralAsset, Z as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress-Cxt-DlL_.js';
3
- import { Address, PublicClient, Abi, ContractFunctionArgs, ContractFunctionName, TransactionReceipt, WalletCallReceipt } from 'viem';
4
- export { B as BeraApolloClient, g as getApolloClient } from '../getApolloClient-BcUTGFUb.js';
5
- import { EnsoClient } from '@ensofinance/sdk';
6
- import { PoolState } from '@berachain-foundation/berancer-sdk';
7
- export { BalancerApi } from '@berachain-foundation/berancer-sdk';
8
- import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
9
- import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEventsQuery, GqlChain, PoolHistoricalDataFragment, MinimalPoolFragment } from '@berachain/graphql/dex/api';
10
- import { FetchPolicy } from '@apollo/client';
11
- export { gql } from '@apollo/client';
12
- import { GqlPoolEventType, ApiVaultFragment, GetHeroEarnVaultsQuery, GqlChain as GqlChain$1, GqlVaultSnapshotDataRange, GetSWberaVaultSnapshotsQuery, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeightFragment, ApiMinimalVaultIncentiveFragment } from '@berachain/graphql/pol/api';
13
- import * as _berachain_graphql_beep from '@berachain/graphql/beep';
14
- import { HoneySnapshotResponse, HoneyTransactionsLatestResponse } from '@berachain/graphql/beep';
15
- import { b as Token, P as PythLatestUpdates, a as TokenWithMetadata, T as TokenWithOrder, h as PythPriceFeedMap, i as TokenCurrentPriceMap, A as AllowanceQueryItem, j as AllowanceToken, M as MinimalERC20, B as BalanceToken } from '../HoneyConfigProvider-COOuDNra.js';
16
- export { C as CollateralRates, k as CollateralRatesArgs, l as HoneyFeeMap, m as HoneyPreviewArgs, n as HoneyPreviewMethod, o as HoneyPreviewReadResult, p as HoneyPreviewResult, q as getHoneyFees, r as getHoneyPreview, s as getPythLatestPrices } from '../HoneyConfigProvider-COOuDNra.js';
17
- import BigNumber from '@berachain/utils/pkg/bignumber.js';
18
- import { EdgeConfigSchema } from '@berachain/config/internal/edge-config';
19
- import { honeyFactoryAbi } from '@berachain/abis/honey/honeyFactory';
20
- import { honeyFactoryPythWrapperAbi } from '@berachain/abis/honey/honeyFactoryPythWrapper';
21
- import { I as IHoneySwapState } from '../useHoneySwapState-twi7NTaO.js';
22
- import { A as AutoclaimedIncentivesResponse, a as AutoclaimedIncentivesTxHashResponse, S as StakingConfig, B as BribeBoostRewardProof, b as BribeBoostRewardItem, U as UserVaultInfo } from '../pol.d-CeRgXBL8.js';
23
- import { Address as Address$1, ChainId } from '@berachain/config';
24
- import { Config } from '@wagmi/core';
25
- import { I as IContractWrite } from '../global.d-q_LQWQqs.js';
26
- import { GetValidatorBlockStatsQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
27
- import '@berachain/config/internal';
28
- import '../dex-C_BB0b0O.js';
29
- import 'react/jsx-runtime';
30
- import 'react';
31
- import '../honey-CYm0RWf4.js';
32
- import '@berachain/utils/pkg/swr';
33
- import '../txnEnum-ByI5dtDi.js';
34
- import '../BeraError-7-A5JYy_.js';
35
-
36
- interface GetMaxDepositProps {
37
- vaultAddress: Address;
38
- publicClient: PublicClient;
39
- }
40
- interface MaxDeposit {
41
- /** `maxDeposit` formatted as an ether-denominated decimal string. */
42
- formatted: string;
43
- /**
44
- * True when the vault has no real deposit cap. MetaMorpho's `maxDeposit` sums
45
- * each enabled market's remaining capacity (its supply cap minus current
46
- * supply); an uncapped market stores `type(uint184).max` as its cap, so the
47
- * sum lands at ~uint184.max (≈2.45e55) — not uint256.max. `formatted` turns
48
- * that into an astronomical number, so callers must key off this flag, not
49
- * the formatted value, to detect "unlimited".
50
- *
51
- * A genuine cap is many orders of magnitude smaller (e.g. Re7 HONEY's ~92M =
52
- * ~9.2e25), so the uint184-based threshold cleanly separates the two. The sum
53
- * can exceed uint184.max when several markets are uncapped, so we compare with
54
- * `>=` rather than testing for the exact sentinel.
55
- */
56
- isUncapped: boolean;
57
- }
58
- declare function getMaxDeposit({ vaultAddress, publicClient, }: GetMaxDepositProps): Promise<MaxDeposit>;
59
-
60
- declare function getEnsoClient({ baseURL, ...args }?: BeraJS.BaseFunctionArgs & {
61
- /**
62
- * Override the Enso API base URL.
63
- *
64
- * - Omit (or pass `undefined`) → external proxy in production, direct in dev/test
65
- * - Pass a URL string (e.g. `"/api/enso"`) → route through that proxy
66
- */
67
- baseURL?: string;
68
- }): EnsoClient;
69
-
70
- declare function getAllPools({ textSearch, chain, first, orderBy, orderDirection, skip, fetchPolicy, userAddress, blacklistedPoolIds, ...args }?: Partial<GetPoolsQueryVariables & {
71
- fetchPolicy: FetchPolicy;
72
- }> & BeraJS.BaseFunctionArgs): Promise<{
73
- pools: {
74
- __typename?: "GqlPoolMinimal";
75
- id: string;
76
- name: string;
77
- address: `0x${string}`;
78
- factory?: `0x${string}` | null;
79
- protocolVersion: number;
80
- type: _berachain_graphql_dex_api.GqlPoolType;
81
- tokens: Array<{
82
- __typename?: "GqlPoolTokenExpanded";
83
- address: `0x${string}`;
84
- symbol: string;
85
- name: string;
86
- decimals: number;
87
- }>;
88
- dynamicData: {
89
- __typename?: "GqlPoolDynamicData";
90
- totalShares: string;
91
- fees24h: string;
92
- volume24h: string;
93
- swapFee: string;
94
- isInRecoveryMode: boolean;
95
- isPaused: boolean;
96
- totalLiquidity: string;
97
- aprItems: Array<{
98
- __typename?: "GqlPoolAprItem";
99
- apr: number;
100
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
101
- id: string;
102
- }>;
103
- };
104
- userBalance?: {
105
- __typename?: "GqlPoolUserBalance";
106
- totalBalanceUsd: number;
107
- walletBalance: any;
108
- walletBalanceUsd: number;
109
- } | null;
110
- rewardVault?: {
111
- __typename?: "GqlRewardVault";
112
- isVaultWhitelisted: boolean;
113
- vaultAddress: `0x${string}`;
114
- stakingTokenAddress: `0x${string}`;
115
- dynamicData?: {
116
- __typename?: "GqlRewardVaultDynamicData";
117
- activeIncentivesValueUsd: string;
118
- apr?: number | null;
119
- rewardCapturePercentage: number;
120
- } | null;
121
- } | null;
122
- }[];
123
- count: number;
124
- }>;
125
-
126
- declare function getApiPool({ poolId, account, ...args }: {
127
- poolId: string;
128
- account?: Address | undefined;
129
- } & BeraJS.BaseFunctionArgs): Promise<{
130
- __typename?: "GqlPoolComposableStable";
131
- id: string;
132
- name: string;
133
- address: `0x${string}`;
134
- factory?: `0x${string}` | null;
135
- protocolVersion: number;
136
- type: _berachain_graphql_dex_api.GqlPoolType;
137
- createTime: number;
138
- tokens: Array<{
139
- __typename?: "GqlPoolTokenDetail";
140
- index: number;
141
- address: `0x${string}`;
142
- symbol: string;
143
- name: string;
144
- decimals: number;
145
- weight?: string | null;
146
- balance: string;
147
- balanceUSD: string;
148
- }>;
149
- dynamicData: {
150
- __typename?: "GqlPoolDynamicData";
151
- totalShares: string;
152
- fees24h: string;
153
- volume24h: string;
154
- swapFee: string;
155
- isInRecoveryMode: boolean;
156
- isPaused: boolean;
157
- totalLiquidity: string;
158
- aprItems: Array<{
159
- __typename?: "GqlPoolAprItem";
160
- apr: number;
161
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
162
- id: string;
163
- }>;
164
- };
165
- rewardVault?: {
166
- __typename?: "GqlRewardVault";
167
- isVaultWhitelisted: boolean;
168
- vaultAddress: `0x${string}`;
169
- stakingTokenAddress: `0x${string}`;
170
- dynamicData?: {
171
- __typename?: "GqlRewardVaultDynamicData";
172
- activeIncentivesValueUsd: string;
173
- apr?: number | null;
174
- rewardCapturePercentage: number;
175
- } | null;
176
- } | null;
177
- } | {
178
- __typename?: "GqlPoolElement";
179
- id: string;
180
- name: string;
181
- address: `0x${string}`;
182
- factory?: `0x${string}` | null;
183
- protocolVersion: number;
184
- type: _berachain_graphql_dex_api.GqlPoolType;
185
- createTime: number;
186
- tokens: Array<{
187
- __typename?: "GqlPoolTokenDetail";
188
- index: number;
189
- address: `0x${string}`;
190
- symbol: string;
191
- name: string;
192
- decimals: number;
193
- weight?: string | null;
194
- balance: string;
195
- balanceUSD: string;
196
- }>;
197
- dynamicData: {
198
- __typename?: "GqlPoolDynamicData";
199
- totalShares: string;
200
- fees24h: string;
201
- volume24h: string;
202
- swapFee: string;
203
- isInRecoveryMode: boolean;
204
- isPaused: boolean;
205
- totalLiquidity: string;
206
- aprItems: Array<{
207
- __typename?: "GqlPoolAprItem";
208
- apr: number;
209
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
210
- id: string;
211
- }>;
212
- };
213
- rewardVault?: {
214
- __typename?: "GqlRewardVault";
215
- isVaultWhitelisted: boolean;
216
- vaultAddress: `0x${string}`;
217
- stakingTokenAddress: `0x${string}`;
218
- dynamicData?: {
219
- __typename?: "GqlRewardVaultDynamicData";
220
- activeIncentivesValueUsd: string;
221
- apr?: number | null;
222
- rewardCapturePercentage: number;
223
- } | null;
224
- } | null;
225
- } | {
226
- __typename?: "GqlPoolFx";
227
- id: string;
228
- name: string;
229
- address: `0x${string}`;
230
- factory?: `0x${string}` | null;
231
- protocolVersion: number;
232
- type: _berachain_graphql_dex_api.GqlPoolType;
233
- createTime: number;
234
- tokens: Array<{
235
- __typename?: "GqlPoolTokenDetail";
236
- index: number;
237
- address: `0x${string}`;
238
- symbol: string;
239
- name: string;
240
- decimals: number;
241
- weight?: string | null;
242
- balance: string;
243
- balanceUSD: string;
244
- }>;
245
- dynamicData: {
246
- __typename?: "GqlPoolDynamicData";
247
- totalShares: string;
248
- fees24h: string;
249
- volume24h: string;
250
- swapFee: string;
251
- isInRecoveryMode: boolean;
252
- isPaused: boolean;
253
- totalLiquidity: string;
254
- aprItems: Array<{
255
- __typename?: "GqlPoolAprItem";
256
- apr: number;
257
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
258
- id: string;
259
- }>;
260
- };
261
- rewardVault?: {
262
- __typename?: "GqlRewardVault";
263
- isVaultWhitelisted: boolean;
264
- vaultAddress: `0x${string}`;
265
- stakingTokenAddress: `0x${string}`;
266
- dynamicData?: {
267
- __typename?: "GqlRewardVaultDynamicData";
268
- activeIncentivesValueUsd: string;
269
- apr?: number | null;
270
- rewardCapturePercentage: number;
271
- } | null;
272
- } | null;
273
- } | {
274
- __typename?: "GqlPoolGyro";
275
- id: string;
276
- name: string;
277
- address: `0x${string}`;
278
- factory?: `0x${string}` | null;
279
- protocolVersion: number;
280
- type: _berachain_graphql_dex_api.GqlPoolType;
281
- createTime: number;
282
- tokens: Array<{
283
- __typename?: "GqlPoolTokenDetail";
284
- index: number;
285
- address: `0x${string}`;
286
- symbol: string;
287
- name: string;
288
- decimals: number;
289
- weight?: string | null;
290
- balance: string;
291
- balanceUSD: string;
292
- }>;
293
- dynamicData: {
294
- __typename?: "GqlPoolDynamicData";
295
- totalShares: string;
296
- fees24h: string;
297
- volume24h: string;
298
- swapFee: string;
299
- isInRecoveryMode: boolean;
300
- isPaused: boolean;
301
- totalLiquidity: string;
302
- aprItems: Array<{
303
- __typename?: "GqlPoolAprItem";
304
- apr: number;
305
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
306
- id: string;
307
- }>;
308
- };
309
- rewardVault?: {
310
- __typename?: "GqlRewardVault";
311
- isVaultWhitelisted: boolean;
312
- vaultAddress: `0x${string}`;
313
- stakingTokenAddress: `0x${string}`;
314
- dynamicData?: {
315
- __typename?: "GqlRewardVaultDynamicData";
316
- activeIncentivesValueUsd: string;
317
- apr?: number | null;
318
- rewardCapturePercentage: number;
319
- } | null;
320
- } | null;
321
- } | {
322
- __typename?: "GqlPoolLiquidityBootstrapping";
323
- id: string;
324
- name: string;
325
- address: `0x${string}`;
326
- factory?: `0x${string}` | null;
327
- protocolVersion: number;
328
- type: _berachain_graphql_dex_api.GqlPoolType;
329
- createTime: number;
330
- tokens: Array<{
331
- __typename?: "GqlPoolTokenDetail";
332
- index: number;
333
- address: `0x${string}`;
334
- symbol: string;
335
- name: string;
336
- decimals: number;
337
- weight?: string | null;
338
- balance: string;
339
- balanceUSD: string;
340
- }>;
341
- dynamicData: {
342
- __typename?: "GqlPoolDynamicData";
343
- totalShares: string;
344
- fees24h: string;
345
- volume24h: string;
346
- swapFee: string;
347
- isInRecoveryMode: boolean;
348
- isPaused: boolean;
349
- totalLiquidity: string;
350
- aprItems: Array<{
351
- __typename?: "GqlPoolAprItem";
352
- apr: number;
353
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
354
- id: string;
355
- }>;
356
- };
357
- rewardVault?: {
358
- __typename?: "GqlRewardVault";
359
- isVaultWhitelisted: boolean;
360
- vaultAddress: `0x${string}`;
361
- stakingTokenAddress: `0x${string}`;
362
- dynamicData?: {
363
- __typename?: "GqlRewardVaultDynamicData";
364
- activeIncentivesValueUsd: string;
365
- apr?: number | null;
366
- rewardCapturePercentage: number;
367
- } | null;
368
- } | null;
369
- } | {
370
- __typename?: "GqlPoolMetaStable";
371
- id: string;
372
- name: string;
373
- address: `0x${string}`;
374
- factory?: `0x${string}` | null;
375
- protocolVersion: number;
376
- type: _berachain_graphql_dex_api.GqlPoolType;
377
- createTime: number;
378
- tokens: Array<{
379
- __typename?: "GqlPoolTokenDetail";
380
- index: number;
381
- address: `0x${string}`;
382
- symbol: string;
383
- name: string;
384
- decimals: number;
385
- weight?: string | null;
386
- balance: string;
387
- balanceUSD: string;
388
- }>;
389
- dynamicData: {
390
- __typename?: "GqlPoolDynamicData";
391
- totalShares: string;
392
- fees24h: string;
393
- volume24h: string;
394
- swapFee: string;
395
- isInRecoveryMode: boolean;
396
- isPaused: boolean;
397
- totalLiquidity: string;
398
- aprItems: Array<{
399
- __typename?: "GqlPoolAprItem";
400
- apr: number;
401
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
402
- id: string;
403
- }>;
404
- };
405
- rewardVault?: {
406
- __typename?: "GqlRewardVault";
407
- isVaultWhitelisted: boolean;
408
- vaultAddress: `0x${string}`;
409
- stakingTokenAddress: `0x${string}`;
410
- dynamicData?: {
411
- __typename?: "GqlRewardVaultDynamicData";
412
- activeIncentivesValueUsd: string;
413
- apr?: number | null;
414
- rewardCapturePercentage: number;
415
- } | null;
416
- } | null;
417
- } | {
418
- __typename?: "GqlPoolStable";
419
- id: string;
420
- name: string;
421
- address: `0x${string}`;
422
- factory?: `0x${string}` | null;
423
- protocolVersion: number;
424
- type: _berachain_graphql_dex_api.GqlPoolType;
425
- createTime: number;
426
- tokens: Array<{
427
- __typename?: "GqlPoolTokenDetail";
428
- index: number;
429
- address: `0x${string}`;
430
- symbol: string;
431
- name: string;
432
- decimals: number;
433
- weight?: string | null;
434
- balance: string;
435
- balanceUSD: string;
436
- }>;
437
- dynamicData: {
438
- __typename?: "GqlPoolDynamicData";
439
- totalShares: string;
440
- fees24h: string;
441
- volume24h: string;
442
- swapFee: string;
443
- isInRecoveryMode: boolean;
444
- isPaused: boolean;
445
- totalLiquidity: string;
446
- aprItems: Array<{
447
- __typename?: "GqlPoolAprItem";
448
- apr: number;
449
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
450
- id: string;
451
- }>;
452
- };
453
- rewardVault?: {
454
- __typename?: "GqlRewardVault";
455
- isVaultWhitelisted: boolean;
456
- vaultAddress: `0x${string}`;
457
- stakingTokenAddress: `0x${string}`;
458
- dynamicData?: {
459
- __typename?: "GqlRewardVaultDynamicData";
460
- activeIncentivesValueUsd: string;
461
- apr?: number | null;
462
- rewardCapturePercentage: number;
463
- } | null;
464
- } | null;
465
- } | {
466
- __typename?: "GqlPoolWeighted";
467
- id: string;
468
- name: string;
469
- address: `0x${string}`;
470
- factory?: `0x${string}` | null;
471
- protocolVersion: number;
472
- type: _berachain_graphql_dex_api.GqlPoolType;
473
- createTime: number;
474
- tokens: Array<{
475
- __typename?: "GqlPoolTokenDetail";
476
- index: number;
477
- address: `0x${string}`;
478
- symbol: string;
479
- name: string;
480
- decimals: number;
481
- weight?: string | null;
482
- balance: string;
483
- balanceUSD: string;
484
- }>;
485
- dynamicData: {
486
- __typename?: "GqlPoolDynamicData";
487
- totalShares: string;
488
- fees24h: string;
489
- volume24h: string;
490
- swapFee: string;
491
- isInRecoveryMode: boolean;
492
- isPaused: boolean;
493
- totalLiquidity: string;
494
- aprItems: Array<{
495
- __typename?: "GqlPoolAprItem";
496
- apr: number;
497
- type: _berachain_graphql_dex_api.GqlPoolAprItemType;
498
- id: string;
499
- }>;
500
- };
501
- rewardVault?: {
502
- __typename?: "GqlRewardVault";
503
- isVaultWhitelisted: boolean;
504
- vaultAddress: `0x${string}`;
505
- stakingTokenAddress: `0x${string}`;
506
- dynamicData?: {
507
- __typename?: "GqlRewardVaultDynamicData";
508
- activeIncentivesValueUsd: string;
509
- apr?: number | null;
510
- rewardCapturePercentage: number;
511
- } | null;
512
- } | null;
513
- }>;
514
-
515
- declare function getGlobalLiquidityAndSwapVolume(args?: BeraJS.BaseFunctionArgs): Promise<GetGlobalLiquidityAndSwapVolumeQuery>;
516
-
517
- declare function getPoolEvents({ poolId, typeInArray, ...args }: {
518
- poolId: string;
519
- typeInArray: GqlPoolEventType[];
520
- } & BeraJS.BaseFunctionArgs): Promise<GetPoolEventsQuery>;
521
-
522
- /** @deprecated */
523
- type PoolDayData = {
524
- date: number;
525
- tvlUsd: string;
526
- volumeUsd: string;
527
- feesUsd: string;
528
- };
529
- interface GetPoolHistoricalDataProps {
530
- poolId: string;
531
- chain: GqlChain;
532
- }
533
- declare function getPoolHistoricalData({ poolId, chain, ...args }: GetPoolHistoricalDataProps & BeraJS.BaseFunctionArgs): Promise<PoolHistoricalDataFragment[] | undefined>;
534
-
535
- declare const getPoolState: (apiPool: MinimalPoolFragment) => PoolState;
536
-
537
- declare function getVaultPausedState({ publicClient, ...args }: BeraJS.BaseFunctionArgs & {
538
- publicClient: PublicClient;
539
- }): Promise<boolean>;
540
-
541
1
  /**
542
- * Browser-only. Returns daily honey snapshots in the `beep` response shape
543
- * (`HoneySnapshotResponse`) the chart consumes.
544
- *
545
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
546
- * the legacy honey subgraph proxied through `/api/honey/snapshots` (whose
547
- * GraphQL result is adapted into the beep shape) otherwise. Server callers must
548
- * compose the upstream query directly (this action is not server-safe — `fetch`
549
- * against a relative URL has no origin off-browser).
550
- */
551
- declare function getChartData({ days, }: {
552
- days: number;
553
- }): Promise<HoneySnapshotResponse>;
554
-
555
- /**
556
- * Arguments for the getCollateralWeights function.
557
- */
558
- interface GetCollateralWeightsArgs extends BeraJS.BaseFunctionArgs {
559
- client: PublicClient;
560
- collateralList: Token[];
561
- }
562
- /**
563
- * Fetches the weights of collaterals from the honey factory contract.
564
- * and returns a record of collateral addresses and their weights.
565
- *
566
- * @param {getCollateralWeightsArgs} args - The arguments for the function.
567
- * @returns {Promise<Record<Address, bigint> | undefined>} A promise that resolves to a record of collateral addresses and their weights, or undefined if an error occurs.
568
- */
569
- declare function getCollateralWeights({ client, collateralList, ...args }: GetCollateralWeightsArgs): Promise<Record<Address, bigint> | undefined>;
570
-
571
- interface GetGlobalCapLimitArgs extends BeraJS.BaseFunctionArgs {
572
- client: PublicClient;
573
- asset: Token;
574
- amount: string;
575
- isMint: boolean;
576
- latestPrices: PythLatestUpdates | undefined;
577
- isPythWrapperEnabled: boolean;
578
- }
579
- /**
580
- * Get the global cap limit for the Honey protocol.
581
- *
582
- * @param {Object} args - The arguments object.
583
- * @param {PublicClient} args.client - The client used to interact with the blockchain.
584
- * @param {Token} args.asset - The asset that is being provided for the exchange.
585
- * @param {string} args.amount - The amount of the asset.
586
- *
587
- * @returns {Promise<boolean | undefined>} If the exchange will trigger the global cap limit or get close to it.
588
- */
589
- declare function getGlobalCapLimit({ client, asset, amount, isMint, isPythWrapperEnabled, latestPrices, ...args }: GetGlobalCapLimitArgs): Promise<boolean | undefined>;
590
-
591
- /**
592
- * Browser-only. Sums the last 24 hourly honey snapshots into a 24h volume.
593
- *
594
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
595
- * the legacy honey subgraph proxied through `/api/honey/snapshots` otherwise.
596
- * Both backends expose `totalVolume` per snapshot, so the sum is shape-agnostic.
597
- */
598
- declare function getHoney24hVolume(): Promise<BigNumber | undefined>;
599
-
600
- interface GetHoneyCollateralsArgs extends BeraJS.BaseFunctionArgs {
601
- /**
602
- * The public client for blockchain interactions
603
- */
604
- client: PublicClient;
605
- /**
606
- * Optional pre-fetched token data to avoid redundant contract calls
607
- */
608
- tokenData?: TokenWithMetadata[];
609
- /**
610
- * preferred collateral order coming from edge config
611
- */
612
- preferredCollateralOrder?: NonNullable<NonNullable<EdgeConfigSchema["honey"]>["preferredCollateralOrder"]>["mainnet"];
613
- }
614
- /**
615
- * Retrieves and processes collateral tokens for the Honey factory contract.
616
- * Fetches registered collateral assets from the contract, enriches them with token metadata,
617
- * and applies configurable ordering overrides.
618
- *
619
- * @returns
620
- * - `collaterals`: Array of collateral tokens with metadata, sorted by contract order and any overrides
621
- * - `referenceCollateral`: The reference collateral token used for relative & global cap limit
622
- */
623
- declare function getHoneyCollaterals({ client, tokenData, preferredCollateralOrder, ...args }: GetHoneyCollateralsArgs): Promise<{
624
- collaterals: TokenWithOrder[];
625
- referenceCollateral: TokenWithOrder;
626
- }>;
627
-
628
- /**
629
- * Gets the pause state of the Honey protocol
630
- * @returns boolean
631
- */
632
- declare function getHoneyPausedState({ client, ...args }: BeraJS.BaseFunctionArgs & {
633
- client: PublicClient;
634
- }): Promise<boolean>;
635
-
636
- /**
637
- * Gets the address of the Honey Pyth Oracle, which is called by the Honey Root Price Oracle to get the price of the collaterals
638
- * @returns
639
- */
640
- declare function getHoneyPythOracle({ pythOracle, publicClient, }: {
641
- publicClient: PublicClient;
642
- pythOracle: Address;
643
- }): Promise<`0x${string}`>;
644
-
645
- /**
646
- * Gets the address of the Honey Root Price Oracle, which keeps the logic to price the collaterals
647
- */
648
- declare function getHoneyRootPriceOracle({ publicClient, factory, ...args }: BeraJS.BaseFunctionArgs & {
649
- publicClient: PublicClient;
650
- factory?: Address;
651
- }): Promise<Address>;
652
-
653
- type HoneyTxn = HoneyTransactionsLatestResponse[number];
654
- /** beep's transaction type discriminator (`"MINT" | "REDEEM"`). */
655
- type HoneyTxnType = HoneyTxn["type"];
656
- interface GetHoneyTxnsArgs {
657
- /** Zero-based page index (the page size is applied internally). */
658
- index: number;
659
- /** Page size. */
660
- limit: number;
661
- /** Optional MINT/REDEEM filter; omit for all transactions. */
662
- txnType?: HoneyTxnType;
663
- }
664
- /**
665
- * Browser-only. Returns a page of honey transactions in the `beep` response
666
- * shape (`HoneyTransactionsLatestResponse`) the transactions table consumes.
667
- *
668
- * Reads from the `beep` backend (`fetchBeep`) when configured, falling back to
669
- * the legacy honey subgraph proxied through `/api/honey/txns` (whose GraphQL
670
- * result is adapted into the beep shape) otherwise.
671
- */
672
- declare function getHoneyTxns({ index, limit, txnType, }: GetHoneyTxnsArgs): Promise<HoneyTransactionsLatestResponse>;
673
-
674
- interface GetRelativeCapLimitArgs extends BeraJS.BaseFunctionArgs {
675
- client: PublicClient;
676
- asset: Address;
677
- amount: string;
678
- isMint: boolean;
679
- referenceCollateral: TokenWithOrder;
680
- }
681
- /**
682
- * Get the relative cap limit for a given asset.
683
- *
684
- * @param {Object} args - The arguments object.
685
- * @param {PublicClient} args.client - The client used to interact with the blockchain.
686
- * @param {Address} args.asset - The address of the asset to get the relative cap limit for.
687
- * @param {string} args.amount - The amount of the asset to get the relative cap limit for.
688
- * @param {boolean} args.isMint - Whether the transaction is a mint or a redeem.
689
- *
690
- * @returns {Promise<boolean | undefined>} If the asset is relatively capped.
691
- */
692
- declare function getRelativeCapLimit({ client, asset, amount, isMint, referenceCollateral, ...args }: GetRelativeCapLimitArgs): Promise<boolean | undefined>;
693
-
694
- interface GetSwapPayloadReturn {
695
- address: Address;
696
- abi: Abi;
697
- functionName: "mint" | "redeem";
698
- params: ContractFunctionArgs<typeof honeyFactoryPythWrapperAbi, "payable", "mint" | "redeem"> | ContractFunctionArgs<typeof honeyFactoryAbi, "nonpayable", "mint" | "redeem">;
699
- value: bigint;
700
- }
701
- declare const getSwapPayload: ({ state, publicClient, priceFeedMap, collateralList, isPythWrapperEnabled, ...args }: BeraJS.BaseFunctionArgs & {
702
- state: Pick<IHoneySwapState, "actionType" | "fromAmount" | "collaterals" | "isBasketModeEnabled">;
703
- collateralList: TokenWithMetadata[];
704
- publicClient: PublicClient | undefined;
705
- priceFeedMap?: PythPriceFeedMap;
706
- isPythWrapperEnabled: boolean;
707
- }) => Promise<({ account }: {
708
- account: Address;
709
- }) => GetSwapPayloadReturn>;
710
-
711
- declare function isBasketModeEnabled({ client, isMint, collateralList, latestPrices, isPythWrapperEnabled, ...args }: {
712
- client: PublicClient;
713
- isMint: boolean;
714
- collateralList: Token[];
715
- latestPrices: PythLatestUpdates | undefined;
716
- isPythWrapperEnabled: boolean;
717
- } & BeraJS.BaseFunctionArgs): Promise<boolean | undefined>;
718
-
719
- /**
720
- * Gets the timestamp of a block or an estimated timestamp if the block is in the future.
721
- * @returns
722
- */
723
- declare function getBlockTimestamp({ block, currentBlock, blockTime, publicClient, }: {
724
- block: number | bigint | string;
725
- currentBlock: number | bigint | string;
726
- blockTime: number;
727
- publicClient: PublicClient;
728
- }): Promise<{
729
- timestamp: number;
730
- }>;
731
-
732
- /**
733
- * Server-side function to fetch the incentives the bot autoclaimed on behalf
734
- * of a wallet during the BGT → BERA cutover. Only valid to call once the
735
- * bgtIncentiveDistributor contract is paused.
736
- *
737
- * Returns `null` on 404 — the endpoint 404s when the bot has not yet processed
738
- * the wallet, which is a normal "no data yet" state rather than an error.
739
- */
740
- declare function getAutoclaimedIncentives({ account, ...args }: {
741
- account: Address;
742
- } & BeraJS.BaseFunctionArgs): Promise<AutoclaimedIncentivesResponse | null>;
743
-
744
- /**
745
- * Companion to `getAutoclaimedIncentives` that fetches the on-chain tx hash
746
- * for each autoclaimed token. Same nested shape as `/autoclaimed`, but each
747
- * token leaf is `{ txhash }` where the hash may be absent or empty while the
748
- * bot is still in flight.
749
- *
750
- * Returns `null` on 404 (bot has not run yet for this wallet).
751
- */
752
- declare function getAutoclaimedIncentivesTxHash({ account, ...args }: {
753
- account: Address;
754
- } & BeraJS.BaseFunctionArgs): Promise<AutoclaimedIncentivesTxHashResponse | null>;
755
-
756
- type GetBeraTokenTotalSupplyArgs = BeraJS.BaseFunctionArgs;
757
- /**
758
- * Fetches the native BERA total supply (in whole BERA units) from the
759
- * Berachain supply-monitor service.
760
- */
761
- declare function getBeraTokenTotalSupply(args?: GetBeraTokenTotalSupplyArgs): Promise<string>;
762
-
763
- /**
764
- * Reads `paused()` on the BGT incentive distributor. Used to gate the
765
- * autoclaim banner — when `true`, users can no longer self-claim and the
766
- * bot is responsible for distributing incentives on their behalf.
767
- */
768
- declare function getBgtIncentiveDistributorPaused({ publicClient, ...args }: {
769
- publicClient: PublicClient | undefined;
770
- } & BeraJS.BaseFunctionArgs): Promise<boolean>;
771
-
772
- declare function getBlockTime({ defaultBlockTime, publicClient, blocksSpan, ...args }: {
773
- defaultBlockTime?: number;
774
- blocksSpan?: number;
775
- publicClient: PublicClient | undefined;
776
- } & BeraJS.BaseFunctionArgs): Promise<number>;
777
-
778
- type GetEarnedStakedBeraVaultArgs = {
779
- /**
780
- * The token that the user has staked
781
- */
782
- address: Address;
783
- /**
784
- * The account that the user has staked
785
- */
786
- account: Address;
787
- };
788
- declare function getEarnedStakedBeraVault({ address, account, ...args }: BeraJS.BaseFunctionArgs & GetEarnedStakedBeraVaultArgs): Promise<{
789
- currentDepositRate: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
790
- earningsTotal: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
791
- earningsRealized: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
792
- earningsUnrealized: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
793
- shareLots: {
794
- shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
795
- depositRate: _berachain_graphql_beep.components["schemas"]["DecimalStr"];
796
- }[];
797
- sortedEvents: ({
798
- _height: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
799
- _log_index: number;
800
- assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
801
- shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
802
- _type: "deposit" | "withdrawal";
803
- sender: string;
804
- owner: string;
805
- total_assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
806
- } | {
807
- _height: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
808
- _log_index: number;
809
- assets: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
810
- shares: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
811
- _type: "transfer";
812
- from: string;
813
- to: string;
814
- value: _berachain_graphql_beep.components["schemas"]["BigIntStr"];
815
- })[];
816
- }>;
817
-
818
- interface HeroEarnVaults {
819
- /**
820
- * Top-APR PoL reward vaults, ordered by APR descending. Callers typically
821
- * read `[0]` for the "Earn with PoL" hero subtitle. `bestAprExcludedAddresses`
822
- * lets callers filter out non-incentivized earn actions whose APR figures
823
- * would otherwise dominate the listing and mislead users.
824
- */
825
- bestApr: ApiVaultFragment[];
826
- /**
827
- * Highest-APR PoL reward vault among vaults whose protocol is "bend".
828
- * Its `stakingToken.address` is a Bend vault share token — match it back
829
- * against `bendVaults` to combine the PoL reward APR with the underlying
830
- * Bend native supply APY.
831
- */
832
- bendRewardVault: ApiVaultFragment[];
833
- /**
834
- * Minimal Bend native vault data (address + `totalApy`) used to look up the
835
- * underlying Bend supply APY for whichever Bend vault `bendRewardVault`
836
- * resolves to.
837
- */
838
- bendVaults: GetHeroEarnVaultsQuery["bendVaults"];
839
- }
840
- /**
841
- * Batched fetch for the hub home page hero cards. Issues a single GraphQL
842
- * request to the BEX API that returns:
843
- * - the top-APR PoL reward vaults (for the "Earn with PoL" card)
844
- * - the highest-APR Bend-protocol PoL reward vault (for the "Lend" card)
845
- * - minimal Bend native vault data, so callers can add the Bend supply APY
846
- * on top of the PoL reward APR when displaying the combined Lend APY
847
- */
848
- declare function getHeroEarnVaults({ bestAprExcludedAddresses, ...args }?: {
849
- bestAprExcludedAddresses?: string[];
850
- } & BeraJS.BaseFunctionArgs): Promise<HeroEarnVaults>;
851
-
852
- type IncentiveFeeClaimStats = {
853
- sumAllClaims: number;
854
- sumClaimsInLast24Hours: number;
855
- };
856
- /** Browser-only. Hits `/api/pol/incentive-fee-claims` (server computes totals). */
857
- declare function getIncentiveFeeClaimStats(): Promise<IncentiveFeeClaimStats>;
858
-
859
- type GetLSTStakeConfigArgs = {
860
- tokenList: TokenWithMetadata[];
861
- publicClient?: PublicClient;
862
- lstStakingVaults: Address[];
863
- } & BeraJS.BaseFunctionArgs;
864
- /**
865
- * Builds staking configs from on-chain LST vaults and optional native configs.
866
- */
867
- declare function getLSTStakeConfig({ tokenList, publicClient, lstStakingVaults, ...args }: GetLSTStakeConfigArgs): Promise<StakingConfig[]>;
868
-
869
- declare function getRewardProofsByValidator({ account, validator, page, perPage, ...args }: {
870
- account: Address;
871
- validator: Address;
872
- page?: number;
873
- perPage?: number;
874
- } & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardProof>;
875
-
876
- /**
877
- *
878
- * @param address - The address of the vault
879
- * @throws {Error} If the vault is not found
880
- * @returns
881
- */
882
- declare function getRewardTokenToBeraRate({ address, publicClient, }: {
883
- address: Address;
884
- publicClient?: PublicClient;
885
- }): Promise<number>;
886
-
887
- /**
888
- *
889
- * @param address - The address of the vault
890
- * @throws {Error} If the vault is not found
891
- * @returns
892
- */
893
- declare function getRewardVault({ address, chainName, ...args }: {
894
- address: Address;
895
- chainName?: GqlChain$1;
896
- } & BeraJS.BaseFunctionArgs): Promise<ApiVaultFragment>;
897
-
898
- interface RewardVaultDurationConstants {
899
- minRewardDuration: number;
900
- maxRewardDuration: number;
901
- }
902
- /**
903
- * Returns the minimum and maximum reward duration constants for all reward vaults.
904
- */
905
- declare function getRewardVaultDurationConstants({ publicClient, ...baseArgs }: BeraJS.BaseFunctionArgs & {
906
- publicClient: PublicClient;
907
- }): Promise<RewardVaultDurationConstants>;
908
-
909
- declare function getRewardVaultFromToken({ tokenAddress, publicClient, factoryAddress, ...args }: {
910
- tokenAddress: Address;
911
- publicClient: PublicClient;
912
- factoryAddress?: Address;
913
- } & BeraJS.BaseFunctionArgs): Promise<`0x${string}` | null>;
914
-
915
- declare function getRewardVaultStakingToken({ address, publicClient, }: {
916
- address: Address;
917
- publicClient: NonNullable<PublicClient>;
918
- }): Promise<`0x${string}`>;
919
-
920
- /**
921
- *
922
- * @throws {Error} If the vault is not found
923
- * @returns
924
- */
925
- declare function getStakedBeraAPR({ window, ...args }: {
926
- /**
927
- * APR might vary depending on the annualized time window (day or week)
928
- */
929
- window: "DAY" | "WEEK";
930
- } & BeraJS.BaseFunctionArgs): Promise<number>;
931
-
932
- type GetStakedBeraSnapshotsArgs = {
933
- chain?: GqlChain$1;
934
- range?: GqlVaultSnapshotDataRange;
935
- } & BeraJS.BaseFunctionArgs;
936
- /**
937
- *
938
- * @throws {Error} If the vault is not found
939
- * @returns
940
- */
941
- declare function getStakedBeraSnapshots({ chain, range, ...args }?: GetStakedBeraSnapshotsArgs): Promise<GetSWberaVaultSnapshotsQuery["polGetSWberaVaultSnapshots"]>;
942
-
943
- declare function getStakeWithdrawalCooldown({ publicClient, address, }: {
944
- publicClient: PublicClient;
945
- address: Address;
946
- }): Promise<number>;
947
-
948
- /**
949
- * Get the total staked amount for a given vault address
950
- * @param vaultAddresses - The addresses of the vaults to get the total staked amount for
951
- * @param publicClient - The public client to use to get the total staked amount
952
- * @returns The total staked amount for the given vault addresses
953
- */
954
- declare function getTotalStakedAmount({ vaultAddresses, publicClient, }: {
955
- vaultAddresses: Address$1[];
956
- publicClient?: PublicClient;
957
- } & BeraJS.BaseFunctionArgs): Promise<Record<Address$1, bigint>>;
958
-
959
- /**
960
- * Server-side function to get user claimable incentives grouped by validator
961
- */
962
- declare function getUserClaimableIncentives({ account, ...args }: {
963
- account: Address;
964
- } & BeraJS.BaseFunctionArgs): Promise<BribeBoostRewardItem[] | null>;
965
-
966
- interface GetUserVaultInfoParams {
967
- account: Address;
968
- vaultAddress: Address;
969
- publicClient: PublicClient | undefined;
970
- }
971
- declare function getUserVaultInfo({ account, vaultAddress, publicClient, }: GetUserVaultInfoParams): Promise<UserVaultInfo>;
972
-
973
- interface GetUserVaultsInfo {
974
- account: string | undefined;
975
- vaultAddress: Address;
976
- publicClient: PublicClient | undefined;
977
- }
978
- /**
979
- * Gets claimable rewards for a user's vault.
980
- *
981
- * It can also be used to get the claimable fees from the BGT staker
982
- * @returns
983
- */
984
- declare function getUserVaultsReward({ account, vaultAddress, publicClient, }: GetUserVaultsInfo): Promise<bigint>;
985
-
986
- declare function getVaultValidators({ address, onlyActiveValidators, ...args }: {
987
- address: Address;
988
- onlyActiveValidators?: boolean;
989
- } & BeraJS.BaseFunctionArgs): Promise<ApiValidatorFragment[]>;
990
-
991
- declare function getTokenCurrentPrices({ addressIn: _addressIn, ...args }: {
992
- addressIn: string[];
993
- } & BeraJS.BaseFunctionArgs): Promise<TokenCurrentPriceMap>;
994
-
995
- /**
996
- * Given a list of tokens, it will return the price feed ids for each token according to honey priceOracle
997
- * @returns
998
- */
999
- declare function getHoneyPythFeeds({ tokenList, publicClient, ...args }: {
1000
- tokenList: readonly Address$1[];
1001
- publicClient: PublicClient;
1002
- } & BeraJS.BaseFunctionArgs): Promise<PythPriceFeedMap>;
1003
-
1004
- declare function getPythUpdateFee({ client, priceFeedId, ...args }: {
1005
- client: PublicClient;
1006
- priceFeedId: Address[];
1007
- } & BeraJS.BaseFunctionArgs): Promise<bigint>;
1008
-
1009
- interface GetAllowances {
1010
- items: AllowanceQueryItem[] | undefined;
1011
- account: `0x${string}` | undefined;
1012
- config: Config | undefined;
1013
- }
1014
- type GetAllowancesResponse = AllowanceToken[] | undefined;
1015
- declare function getAllowances({ items: itemsList, account, config, }: GetAllowances): Promise<GetAllowancesResponse>;
1016
-
1017
- interface GetTokenInformation {
1018
- address: Address;
1019
- publicClient: PublicClient;
1020
- chainId: ChainId;
1021
- }
1022
- type GetTokenInformationResponse = MinimalERC20;
1023
- declare function getTokenInformation({ address, publicClient, chainId, }: GetTokenInformation): Promise<GetTokenInformationResponse>;
1024
-
1025
- declare function getTokens({ url, ...args }?: BeraJS.BaseFunctionArgs & {
1026
- url?: string;
1027
- }): Promise<TokenWithMetadata[]>;
1028
-
1029
- interface GetWalletBalances {
1030
- account: string | undefined;
1031
- tokenList: Token[] | undefined;
1032
- wagmiConfig: Config | undefined;
1033
- }
1034
- /**
1035
- * Returns the payload for the balanceOf call for a given token and account.
1036
- *
1037
- * @internal
1038
- * @returns
1039
- */
1040
- declare function getBalanceCall({ token, account, multicallAddress, }: {
1041
- token: Token;
1042
- account: Address;
1043
- multicallAddress: Address;
1044
- }): {
1045
- readonly address: `0x${string}`;
1046
- readonly abi: readonly [{
1047
- readonly inputs: readonly [{
1048
- readonly components: readonly [{
1049
- readonly internalType: "address";
1050
- readonly name: "target";
1051
- readonly type: "address";
1052
- }, {
1053
- readonly internalType: "bytes";
1054
- readonly name: "callData";
1055
- readonly type: "bytes";
1056
- }];
1057
- readonly internalType: "struct Multicall3.Call[]";
1058
- readonly name: "calls";
1059
- readonly type: "tuple[]";
1060
- }];
1061
- readonly name: "aggregate";
1062
- readonly outputs: readonly [{
1063
- readonly internalType: "uint256";
1064
- readonly name: "blockNumber";
1065
- readonly type: "uint256";
1066
- }, {
1067
- readonly internalType: "bytes[]";
1068
- readonly name: "returnData";
1069
- readonly type: "bytes[]";
1070
- }];
1071
- readonly stateMutability: "payable";
1072
- readonly type: "function";
1073
- }, {
1074
- readonly inputs: readonly [{
1075
- readonly components: readonly [{
1076
- readonly internalType: "address";
1077
- readonly name: "target";
1078
- readonly type: "address";
1079
- }, {
1080
- readonly internalType: "bool";
1081
- readonly name: "allowFailure";
1082
- readonly type: "bool";
1083
- }, {
1084
- readonly internalType: "bytes";
1085
- readonly name: "callData";
1086
- readonly type: "bytes";
1087
- }];
1088
- readonly internalType: "struct Multicall3.Call3[]";
1089
- readonly name: "calls";
1090
- readonly type: "tuple[]";
1091
- }];
1092
- readonly name: "aggregate3";
1093
- readonly outputs: readonly [{
1094
- readonly components: readonly [{
1095
- readonly internalType: "bool";
1096
- readonly name: "success";
1097
- readonly type: "bool";
1098
- }, {
1099
- readonly internalType: "bytes";
1100
- readonly name: "returnData";
1101
- readonly type: "bytes";
1102
- }];
1103
- readonly internalType: "struct Multicall3.Result[]";
1104
- readonly name: "returnData";
1105
- readonly type: "tuple[]";
1106
- }];
1107
- readonly stateMutability: "payable";
1108
- readonly type: "function";
1109
- }, {
1110
- readonly inputs: readonly [{
1111
- readonly components: readonly [{
1112
- readonly internalType: "address";
1113
- readonly name: "target";
1114
- readonly type: "address";
1115
- }, {
1116
- readonly internalType: "bool";
1117
- readonly name: "allowFailure";
1118
- readonly type: "bool";
1119
- }, {
1120
- readonly internalType: "uint256";
1121
- readonly name: "value";
1122
- readonly type: "uint256";
1123
- }, {
1124
- readonly internalType: "bytes";
1125
- readonly name: "callData";
1126
- readonly type: "bytes";
1127
- }];
1128
- readonly internalType: "struct Multicall3.Call3Value[]";
1129
- readonly name: "calls";
1130
- readonly type: "tuple[]";
1131
- }];
1132
- readonly name: "aggregate3Value";
1133
- readonly outputs: readonly [{
1134
- readonly components: readonly [{
1135
- readonly internalType: "bool";
1136
- readonly name: "success";
1137
- readonly type: "bool";
1138
- }, {
1139
- readonly internalType: "bytes";
1140
- readonly name: "returnData";
1141
- readonly type: "bytes";
1142
- }];
1143
- readonly internalType: "struct Multicall3.Result[]";
1144
- readonly name: "returnData";
1145
- readonly type: "tuple[]";
1146
- }];
1147
- readonly stateMutability: "payable";
1148
- readonly type: "function";
1149
- }, {
1150
- readonly inputs: readonly [{
1151
- readonly components: readonly [{
1152
- readonly internalType: "address";
1153
- readonly name: "target";
1154
- readonly type: "address";
1155
- }, {
1156
- readonly internalType: "bytes";
1157
- readonly name: "callData";
1158
- readonly type: "bytes";
1159
- }];
1160
- readonly internalType: "struct Multicall3.Call[]";
1161
- readonly name: "calls";
1162
- readonly type: "tuple[]";
1163
- }];
1164
- readonly name: "blockAndAggregate";
1165
- readonly outputs: readonly [{
1166
- readonly internalType: "uint256";
1167
- readonly name: "blockNumber";
1168
- readonly type: "uint256";
1169
- }, {
1170
- readonly internalType: "bytes32";
1171
- readonly name: "blockHash";
1172
- readonly type: "bytes32";
1173
- }, {
1174
- readonly components: readonly [{
1175
- readonly internalType: "bool";
1176
- readonly name: "success";
1177
- readonly type: "bool";
1178
- }, {
1179
- readonly internalType: "bytes";
1180
- readonly name: "returnData";
1181
- readonly type: "bytes";
1182
- }];
1183
- readonly internalType: "struct Multicall3.Result[]";
1184
- readonly name: "returnData";
1185
- readonly type: "tuple[]";
1186
- }];
1187
- readonly stateMutability: "payable";
1188
- readonly type: "function";
1189
- }, {
1190
- readonly inputs: readonly [];
1191
- readonly name: "getBasefee";
1192
- readonly outputs: readonly [{
1193
- readonly internalType: "uint256";
1194
- readonly name: "basefee";
1195
- readonly type: "uint256";
1196
- }];
1197
- readonly stateMutability: "view";
1198
- readonly type: "function";
1199
- }, {
1200
- readonly inputs: readonly [{
1201
- readonly internalType: "uint256";
1202
- readonly name: "blockNumber";
1203
- readonly type: "uint256";
1204
- }];
1205
- readonly name: "getBlockHash";
1206
- readonly outputs: readonly [{
1207
- readonly internalType: "bytes32";
1208
- readonly name: "blockHash";
1209
- readonly type: "bytes32";
1210
- }];
1211
- readonly stateMutability: "view";
1212
- readonly type: "function";
1213
- }, {
1214
- readonly inputs: readonly [];
1215
- readonly name: "getBlockNumber";
1216
- readonly outputs: readonly [{
1217
- readonly internalType: "uint256";
1218
- readonly name: "blockNumber";
1219
- readonly type: "uint256";
1220
- }];
1221
- readonly stateMutability: "view";
1222
- readonly type: "function";
1223
- }, {
1224
- readonly inputs: readonly [];
1225
- readonly name: "getChainId";
1226
- readonly outputs: readonly [{
1227
- readonly internalType: "uint256";
1228
- readonly name: "chainid";
1229
- readonly type: "uint256";
1230
- }];
1231
- readonly stateMutability: "view";
1232
- readonly type: "function";
1233
- }, {
1234
- readonly inputs: readonly [];
1235
- readonly name: "getCurrentBlockCoinbase";
1236
- readonly outputs: readonly [{
1237
- readonly internalType: "address";
1238
- readonly name: "coinbase";
1239
- readonly type: "address";
1240
- }];
1241
- readonly stateMutability: "view";
1242
- readonly type: "function";
1243
- }, {
1244
- readonly inputs: readonly [];
1245
- readonly name: "getCurrentBlockDifficulty";
1246
- readonly outputs: readonly [{
1247
- readonly internalType: "uint256";
1248
- readonly name: "difficulty";
1249
- readonly type: "uint256";
1250
- }];
1251
- readonly stateMutability: "view";
1252
- readonly type: "function";
1253
- }, {
1254
- readonly inputs: readonly [];
1255
- readonly name: "getCurrentBlockGasLimit";
1256
- readonly outputs: readonly [{
1257
- readonly internalType: "uint256";
1258
- readonly name: "gaslimit";
1259
- readonly type: "uint256";
1260
- }];
1261
- readonly stateMutability: "view";
1262
- readonly type: "function";
1263
- }, {
1264
- readonly inputs: readonly [];
1265
- readonly name: "getCurrentBlockTimestamp";
1266
- readonly outputs: readonly [{
1267
- readonly internalType: "uint256";
1268
- readonly name: "timestamp";
1269
- readonly type: "uint256";
1270
- }];
1271
- readonly stateMutability: "view";
1272
- readonly type: "function";
1273
- }, {
1274
- readonly inputs: readonly [{
1275
- readonly internalType: "address";
1276
- readonly name: "addr";
1277
- readonly type: "address";
1278
- }];
1279
- readonly name: "getEthBalance";
1280
- readonly outputs: readonly [{
1281
- readonly internalType: "uint256";
1282
- readonly name: "balance";
1283
- readonly type: "uint256";
1284
- }];
1285
- readonly stateMutability: "view";
1286
- readonly type: "function";
1287
- }, {
1288
- readonly inputs: readonly [];
1289
- readonly name: "getLastBlockHash";
1290
- readonly outputs: readonly [{
1291
- readonly internalType: "bytes32";
1292
- readonly name: "blockHash";
1293
- readonly type: "bytes32";
1294
- }];
1295
- readonly stateMutability: "view";
1296
- readonly type: "function";
1297
- }, {
1298
- readonly inputs: readonly [{
1299
- readonly internalType: "bool";
1300
- readonly name: "requireSuccess";
1301
- readonly type: "bool";
1302
- }, {
1303
- readonly components: readonly [{
1304
- readonly internalType: "address";
1305
- readonly name: "target";
1306
- readonly type: "address";
1307
- }, {
1308
- readonly internalType: "bytes";
1309
- readonly name: "callData";
1310
- readonly type: "bytes";
1311
- }];
1312
- readonly internalType: "struct Multicall3.Call[]";
1313
- readonly name: "calls";
1314
- readonly type: "tuple[]";
1315
- }];
1316
- readonly name: "tryAggregate";
1317
- readonly outputs: readonly [{
1318
- readonly components: readonly [{
1319
- readonly internalType: "bool";
1320
- readonly name: "success";
1321
- readonly type: "bool";
1322
- }, {
1323
- readonly internalType: "bytes";
1324
- readonly name: "returnData";
1325
- readonly type: "bytes";
1326
- }];
1327
- readonly internalType: "struct Multicall3.Result[]";
1328
- readonly name: "returnData";
1329
- readonly type: "tuple[]";
1330
- }];
1331
- readonly stateMutability: "payable";
1332
- readonly type: "function";
1333
- }, {
1334
- readonly inputs: readonly [{
1335
- readonly internalType: "bool";
1336
- readonly name: "requireSuccess";
1337
- readonly type: "bool";
1338
- }, {
1339
- readonly components: readonly [{
1340
- readonly internalType: "address";
1341
- readonly name: "target";
1342
- readonly type: "address";
1343
- }, {
1344
- readonly internalType: "bytes";
1345
- readonly name: "callData";
1346
- readonly type: "bytes";
1347
- }];
1348
- readonly internalType: "struct Multicall3.Call[]";
1349
- readonly name: "calls";
1350
- readonly type: "tuple[]";
1351
- }];
1352
- readonly name: "tryBlockAndAggregate";
1353
- readonly outputs: readonly [{
1354
- readonly internalType: "uint256";
1355
- readonly name: "blockNumber";
1356
- readonly type: "uint256";
1357
- }, {
1358
- readonly internalType: "bytes32";
1359
- readonly name: "blockHash";
1360
- readonly type: "bytes32";
1361
- }, {
1362
- readonly components: readonly [{
1363
- readonly internalType: "bool";
1364
- readonly name: "success";
1365
- readonly type: "bool";
1366
- }, {
1367
- readonly internalType: "bytes";
1368
- readonly name: "returnData";
1369
- readonly type: "bytes";
1370
- }];
1371
- readonly internalType: "struct Multicall3.Result[]";
1372
- readonly name: "returnData";
1373
- readonly type: "tuple[]";
1374
- }];
1375
- readonly stateMutability: "payable";
1376
- readonly type: "function";
1377
- }];
1378
- readonly functionName: "getEthBalance";
1379
- readonly args: readonly [`0x${string}`];
1380
- } | {
1381
- readonly address: Address;
1382
- readonly abi: readonly [{
1383
- readonly type: "event";
1384
- readonly name: "Approval";
1385
- readonly inputs: readonly [{
1386
- readonly indexed: true;
1387
- readonly name: "owner";
1388
- readonly type: "address";
1389
- }, {
1390
- readonly indexed: true;
1391
- readonly name: "spender";
1392
- readonly type: "address";
1393
- }, {
1394
- readonly indexed: false;
1395
- readonly name: "value";
1396
- readonly type: "uint256";
1397
- }];
1398
- }, {
1399
- readonly type: "event";
1400
- readonly name: "Transfer";
1401
- readonly inputs: readonly [{
1402
- readonly indexed: true;
1403
- readonly name: "from";
1404
- readonly type: "address";
1405
- }, {
1406
- readonly indexed: true;
1407
- readonly name: "to";
1408
- readonly type: "address";
1409
- }, {
1410
- readonly indexed: false;
1411
- readonly name: "value";
1412
- readonly type: "uint256";
1413
- }];
1414
- }, {
1415
- readonly type: "function";
1416
- readonly name: "allowance";
1417
- readonly stateMutability: "view";
1418
- readonly inputs: readonly [{
1419
- readonly name: "owner";
1420
- readonly type: "address";
1421
- }, {
1422
- readonly name: "spender";
1423
- readonly type: "address";
1424
- }];
1425
- readonly outputs: readonly [{
1426
- readonly type: "uint256";
1427
- }];
1428
- }, {
1429
- readonly type: "function";
1430
- readonly name: "approve";
1431
- readonly stateMutability: "nonpayable";
1432
- readonly inputs: readonly [{
1433
- readonly name: "spender";
1434
- readonly type: "address";
1435
- }, {
1436
- readonly name: "amount";
1437
- readonly type: "uint256";
1438
- }];
1439
- readonly outputs: readonly [{
1440
- readonly type: "bool";
1441
- }];
1442
- }, {
1443
- readonly type: "function";
1444
- readonly name: "balanceOf";
1445
- readonly stateMutability: "view";
1446
- readonly inputs: readonly [{
1447
- readonly name: "account";
1448
- readonly type: "address";
1449
- }];
1450
- readonly outputs: readonly [{
1451
- readonly type: "uint256";
1452
- }];
1453
- }, {
1454
- readonly type: "function";
1455
- readonly name: "decimals";
1456
- readonly stateMutability: "view";
1457
- readonly inputs: readonly [];
1458
- readonly outputs: readonly [{
1459
- readonly type: "uint8";
1460
- }];
1461
- }, {
1462
- readonly type: "function";
1463
- readonly name: "name";
1464
- readonly stateMutability: "view";
1465
- readonly inputs: readonly [];
1466
- readonly outputs: readonly [{
1467
- readonly type: "string";
1468
- }];
1469
- }, {
1470
- readonly type: "function";
1471
- readonly name: "symbol";
1472
- readonly stateMutability: "view";
1473
- readonly inputs: readonly [];
1474
- readonly outputs: readonly [{
1475
- readonly type: "string";
1476
- }];
1477
- }, {
1478
- readonly type: "function";
1479
- readonly name: "totalSupply";
1480
- readonly stateMutability: "view";
1481
- readonly inputs: readonly [];
1482
- readonly outputs: readonly [{
1483
- readonly type: "uint256";
1484
- }];
1485
- }, {
1486
- readonly type: "function";
1487
- readonly name: "transfer";
1488
- readonly stateMutability: "nonpayable";
1489
- readonly inputs: readonly [{
1490
- readonly name: "recipient";
1491
- readonly type: "address";
1492
- }, {
1493
- readonly name: "amount";
1494
- readonly type: "uint256";
1495
- }];
1496
- readonly outputs: readonly [{
1497
- readonly type: "bool";
1498
- }];
1499
- }, {
1500
- readonly type: "function";
1501
- readonly name: "transferFrom";
1502
- readonly stateMutability: "nonpayable";
1503
- readonly inputs: readonly [{
1504
- readonly name: "sender";
1505
- readonly type: "address";
1506
- }, {
1507
- readonly name: "recipient";
1508
- readonly type: "address";
1509
- }, {
1510
- readonly name: "amount";
1511
- readonly type: "uint256";
1512
- }];
1513
- readonly outputs: readonly [{
1514
- readonly type: "bool";
1515
- }];
1516
- }];
1517
- readonly functionName: "balanceOf";
1518
- readonly args: readonly [`0x${string}`];
1519
- };
1520
- /**
1521
- * fetch the balances of a given wallet address
1522
- */
1523
- declare function getWalletBalances({ account, tokenList, wagmiConfig: config, }: GetWalletBalances): Promise<BalanceToken[] | undefined>;
1524
-
1525
- declare function isImpersonateAccount(chainId?: number): boolean;
1526
- declare function beraWriteContract<abi extends Abi | undefined = undefined, functionName extends abi extends Abi ? ContractFunctionName<abi> : never = abi extends Abi ? ContractFunctionName<abi> : never, params extends abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never = abi extends Abi ? ContractFunctionArgs<abi, "payable" | "nonpayable", functionName> : never>(args: IContractWrite<abi, functionName, params> & {
1527
- enableSimulateCalls?: boolean;
1528
- chainId?: number;
1529
- impersonateAccount?: boolean;
1530
- /**
1531
- * The polling interval in milliseconds to fetch the on-chain transaction status
1532
- * @default 1000 (1 second)
1533
- */
1534
- pollingInterval?: number;
1535
- /**
1536
- * The timeout in milliseconds to wait for the transaction to be confirmed.
1537
- * @default 120_000 (2 minutes)
1538
- */
1539
- txConfirmationTimeout?: number;
1540
- }): Promise<TransactionReceipt | WalletCallReceipt<bigint, "success" | "reverted"> | undefined>;
1541
-
1542
- interface ActiveBoostAndCommissionChangeDelay {
1543
- boostDelay: number;
1544
- unboostDelay: number;
1545
- commissionChangeDelay: number;
1546
- rewardAllocationBlockDelay: number;
1547
- maxWeightPerVault: number;
1548
- maxNumWeightsPerRewardAllocation: number;
1549
- /**
1550
- * Percentage of the validator's commission rate that can be changed at once.
1551
- *
1552
- * @example 1 => 100%
1553
- */
1554
- maxCommissionRate: number;
1555
- /**
1556
- * The number of blocks after which a reward allocation is considered stale and will fallback
1557
- * to baseline reward allocation.
1558
- *
1559
- */
1560
- rewardAllocationInactivityBlockSpan: number;
1561
- /**
1562
- * The number of hours in advance to warn the operator that the reward allocation is expiring.
1563
- */
1564
- ui: EdgeConfigSchema["pol"]["automatedRewardAllocation"];
1565
- }
1566
- declare function getActiveBoostAndCommissionChangeDelay({ publicClient, ui, ...args }: BeraJS.BaseFunctionArgs & Pick<ActiveBoostAndCommissionChangeDelay, "ui"> & {
1567
- publicClient: PublicClient;
1568
- }): Promise<ActiveBoostAndCommissionChangeDelay>;
1569
-
1570
- declare function getAllValidators({ variables, ...args }?: {
1571
- variables?: GetValidatorsQueryVariables;
1572
- } & BeraJS.BaseFunctionArgs): Promise<GetValidatorsQuery | undefined>;
1573
-
1574
- declare function getApiEnrichedAllocation({ allocation, }: {
1575
- allocation: ValidatorRewardAllocation;
1576
- }): Promise<ApiRewardAllocationWeightFragment[]>;
1577
-
1578
- declare function getApiValidator({ id, ...args }: {
1579
- /**
1580
- * The validator keccak256 pubkey
1581
- */
1582
- id: Address;
1583
- } & BeraJS.BaseFunctionArgs): Promise<GetValidatorQuery>;
1584
-
1585
- /**
1586
- * Browser-only. Hits `/api/pol/validator-block-stats`. Server callers (RSC)
1587
- * should import from `@berachain/berajs/actions/server` instead — that path
1588
- * has the static Apollo + GraphQL imports and does not pass through the
1589
- * browser endpoint.
1590
- */
1591
- declare function getDailyValidatorBlockStats({ pubKey, first, }: {
1592
- pubKey: Address;
1593
- first?: number;
1594
- }): Promise<GetValidatorBlockStatsQuery | undefined>;
1595
-
1596
- declare function isDefaultRewardAllocation(rewardAllocation: ValidatorRewardAllocation): boolean;
1597
- declare function getDefaultRewardAllocation({ client, ...args }: {
1598
- client: PublicClient;
1599
- }): Promise<ValidatorRewardAllocation>;
1600
-
1601
- /**
1602
- * Get the current number of BERA in the batch for a validator's staking pool
1603
- * The batch can contain at most 10K BERA, then the batch will be sent to the contract
1604
- * @param client - The public client
1605
- * @param valPubKey - The public key of the validator
1606
- * @returns The current batch number
1607
- */
1608
- declare function getStakingPoolBatch({ client, valPubKey, }: {
1609
- client: PublicClient;
1610
- valPubKey: `0x${string}`;
1611
- }): Promise<number>;
1612
-
1613
- /** Browser-only. Hits `/api/pol/validator-analytics`. */
1614
- declare function getValidatorAnalytics({ pubkey, dayRange, }: {
1615
- pubkey: Address;
1616
- dayRange: number;
1617
- }): Promise<GetValidatorAnalyticsQuery | undefined>;
1618
-
1619
- declare function getValidatorCommission({ client, pubKey, ...args }: {
1620
- client: PublicClient;
1621
- pubKey: Address;
1622
- } & BeraJS.BaseFunctionArgs): Promise<number | undefined | null>;
1623
-
1624
- declare const getValidatorEstimatedBgtPerYear: (validator: ApiValidatorMinimalFragment, totalStakedBeraAmount: number, blockTime: number) => number;
1625
-
1626
- declare function getValidatorOperatorAddress({ client, pubKey, ...args }: BeraJS.BaseFunctionArgs & {
1627
- client: PublicClient;
1628
- pubKey: Address;
1629
- }): Promise<Address | undefined>;
1630
-
1631
- declare function getValidatorQueuedRewardAllocation({ client, pubKey, ...args }: BeraJS.BaseFunctionArgs & {
1632
- client: PublicClient;
1633
- pubKey: Address;
1634
- }): Promise<ValidatorRewardAllocation | undefined>;
1635
-
1636
- declare function aggregateValidatorIncentives({ rewardAllocationWeights, activeOnly, }: {
1637
- rewardAllocationWeights: ApiValidatorRewardAllocationWeightFragment[];
1638
- activeOnly?: boolean;
1639
- }): ApiMinimalVaultIncentiveFragment[];
1640
-
1641
- declare function getValidatorReturnPerBgt(validator: Pick<ApiValidatorFragment, "dynamicData" | "rewardAllocationWeights">): number;
1642
- declare function getValidatorBoostApy({ validator, bgtPrice, }: {
1643
- validator: Pick<ApiValidatorFragment, "dynamicData" | "rewardAllocationWeights">;
1644
- bgtPrice: number;
1645
- }): number;
1646
-
1647
- export { type ActiveBoostAndCommissionChangeDelay, type GetAllowances, type GetAllowancesResponse, type GetBeraTokenTotalSupplyArgs, type GetLSTStakeConfigArgs, type GetStakedBeraSnapshotsArgs, type GetTokenInformation, type GetTokenInformationResponse, type GetUserVaultInfoParams, type GetUserVaultsInfo, type GetWalletBalances, type HeroEarnVaults, type IncentiveFeeClaimStats, type MaxDeposit, type PoolDayData, PythLatestUpdates, type RewardVaultDurationConstants, ValidatorRewardAllocation, aggregateValidatorIncentives, beraWriteContract, getActiveBoostAndCommissionChangeDelay, getAllPools, getAllValidators, getAllowances, getApiEnrichedAllocation, getApiPool, getApiValidator, getAutoclaimedIncentives, getAutoclaimedIncentivesTxHash, getBalanceCall, getBeraTokenTotalSupply, getBgtIncentiveDistributorPaused, getBlockTime, getBlockTimestamp, getChartData, getCollateralWeights, getDailyValidatorBlockStats, getDefaultRewardAllocation, getEarnedStakedBeraVault, getEnsoClient, getGlobalCapLimit, getGlobalLiquidityAndSwapVolume, getHeroEarnVaults, getHoney24hVolume, getHoneyCollaterals, getHoneyPausedState, getHoneyPythFeeds, getHoneyPythOracle, getHoneyRootPriceOracle, getHoneyTxns, getIncentiveFeeClaimStats, getLSTStakeConfig, getMaxDeposit, getPoolEvents, getPoolHistoricalData, getPoolState, getPythUpdateFee, getRelativeCapLimit, getRewardProofsByValidator, getRewardTokenToBeraRate, getRewardVault, getRewardVaultDurationConstants, getRewardVaultFromToken, getRewardVaultStakingToken, getStakeWithdrawalCooldown, getStakedBeraAPR, getStakedBeraSnapshots, getStakingPoolBatch, getSwapPayload, getTokenCurrentPrices, getTokenInformation, getTokens, getTotalStakedAmount, getUserClaimableIncentives, getUserVaultInfo, getUserVaultsReward, getValidatorAnalytics, getValidatorBoostApy, getValidatorCommission, getValidatorEstimatedBgtPerYear, getValidatorOperatorAddress, getValidatorQueuedRewardAllocation, getValidatorReturnPerBgt, getVaultPausedState, getVaultValidators, getWalletBalances, isBasketModeEnabled, isDefaultRewardAllocation, isImpersonateAccount };
2
+ * This file avoids more barrel files.
3
+ *
4
+ * It's used to speed up the build process.
5
+ *
6
+ * @see {@link https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7/}
7
+ */
8
+ export * from "./bend/getConvertToAssets";
9
+ export * from "./bend/getMaxDeposit";
10
+ export { BeraApolloClient } from "./clients/BeraApolloClient";
11
+ export { getApolloClient, gql, } from "./clients/getApolloClient";
12
+ export * from "./clients/getEnsoClient";
13
+ export * from "./dex/aggregators/base";
14
+ export * from "./dex/bSdk";
15
+ export * from "./dex/getAllPools";
16
+ export * from "./dex/getApiPool";
17
+ export * from "./dex/getGlobalLiquidityAndSwapVolume";
18
+ export * from "./dex/getOnChainPool";
19
+ export * from "./dex/getPoolEvents";
20
+ export * from "./dex/getPoolHistoricalData";
21
+ export * from "./dex/getPoolPausedState";
22
+ export * from "./dex/getPoolWithState";
23
+ export * from "./dex/getVaultPausedState";
24
+ export * from "./honey/getChartData";
25
+ export * from "./honey/getCollateralWeights";
26
+ export * from "./honey/getGlobalCapLimit";
27
+ export * from "./honey/getHoney24hVolume";
28
+ export * from "./honey/getHoneyCollaterals";
29
+ export * from "./honey/getHoneyFees";
30
+ export * from "./honey/getHoneyPausedState";
31
+ export * from "./honey/getHoneyPreview";
32
+ export * from "./honey/getHoneyPythPriceOracle";
33
+ export * from "./honey/getHoneyRootPriceOracle";
34
+ export * from "./honey/getHoneyTxns";
35
+ export * from "./honey/getHoneyVaultsBalance";
36
+ export * from "./honey/getPythLatestPrices";
37
+ export * from "./honey/getRelativeCapLimit";
38
+ export * from "./honey/getSwapPayload";
39
+ export * from "./honey/isBadCollateralAsset";
40
+ export * from "./honey/isBasketModeEnabled";
41
+ export * from "./misc/getBlockTimestamp";
42
+ export * from "./pol/getAutoclaimedIncentives";
43
+ export * from "./pol/getAutoclaimedIncentivesTxHash";
44
+ export * from "./pol/getBeraTokenTotalSupply";
45
+ export * from "./pol/getBgtAprSimulation";
46
+ export * from "./pol/getBgtIncentiveDistributorPaused";
47
+ export * from "./pol/getBlockTime";
48
+ export * from "./pol/getEarnedStakedBeraVault";
49
+ export * from "./pol/getGlobalData";
50
+ export * from "./pol/getHeroEarnVaults";
51
+ export * from "./pol/getLSTStakeConfig";
52
+ export * from "./pol/getMarkets";
53
+ export * from "./pol/getRewardProofsByValidator";
54
+ export * from "./pol/getRewardTokenToBeraRate";
55
+ export * from "./pol/getRewardVault";
56
+ export * from "./pol/getRewardVaultDurationConstants";
57
+ export * from "./pol/getRewardVaultEarnedRewards";
58
+ export * from "./pol/getRewardVaultFromToken";
59
+ export * from "./pol/getRewardVaultIncentives";
60
+ export * from "./pol/getRewardVaultRewards";
61
+ export * from "./pol/getRewardVaultStakingToken";
62
+ export * from "./pol/getRewardVaults";
63
+ export * from "./pol/getStakedBeraAPR";
64
+ export * from "./pol/getStakedBeraSnapshots";
65
+ export * from "./pol/getStakeWithdrawalCooldown";
66
+ export * from "./pol/getSWBeraVaultMetadata";
67
+ export * from "./pol/getSWBeraWithdrawal";
68
+ export * from "./pol/getTotalStakedAmount";
69
+ export * from "./pol/getUserClaimableIncentives";
70
+ export * from "./pol/getUserVaultInfo";
71
+ export * from "./pol/getUserVaults";
72
+ export * from "./pol/getVaultHistory";
73
+ export * from "./pol/getVaultValidators";
74
+ export * from "./prices/getTokenCurrentPrices";
75
+ export * from "./pyth/getHoneyPythFeeds";
76
+ export * from "./pyth/getUpdateFee";
77
+ export * from "./tokens/getAllowances";
78
+ export * from "./tokens/getTokenInformation";
79
+ export * from "./tokens/getTokens";
80
+ export * from "./tokens/getWalletBalances";
81
+ export * from "./transactions/beraWriteContract";
82
+ export * from "./validators/getActiveBoostAndCommissionChangeDelay";
83
+ export * from "./validators/getAllValidators";
84
+ export * from "./validators/getApiEnrichedAllocation";
85
+ export * from "./validators/getApiValidator";
86
+ export * from "./validators/getDefaultRewardAllocation";
87
+ export * from "./validators/getStakingPoolBatch";
88
+ export * from "./validators/getUserActiveValidators";
89
+ export * from "./validators/getUserBoostsOnValidator";
90
+ export * from "./validators/getUserStakingPositions";
91
+ export * from "./validators/getValidatorAnalytics";
92
+ export * from "./validators/getValidatorCommission";
93
+ export * from "./validators/getValidatorEstimatedBgtPerYear";
94
+ export * from "./validators/getValidatorOperatorAddress";
95
+ export * from "./validators/getValidatorQueuedCommission";
96
+ export * from "./validators/getValidatorQueuedOperatorAddress";
97
+ export * from "./validators/getValidatorQueuedRewardAllocation";
98
+ export * from "./validators/getValidatorRewardAllocation";
99
+ export * from "./validators/utils/aggregateValidatorIncentives";
100
+ export * from "./validators/utils/getValidatorBoostApy";
101
+ //# sourceMappingURL=exports.d.ts.map