@berachain/berajs 0.2.8-beta.9 → 0.2.10

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 (254) hide show
  1. package/dist/{BeraError-_mQdkanr.d.cts → BeraError-7-A5JYy_.d.ts} +31 -2
  2. package/dist/{HoneyConfigProvider-DVP_9KZn.d.ts → HoneyConfigProvider-Dkj-_a5x.d.ts} +1 -1
  3. package/dist/{RequestError-BRIiJgHk.d.ts → RequestError-DBOIV65x.d.ts} +1 -1
  4. package/dist/abi/exports.mjs +4452 -2
  5. package/dist/actions/clients/exports.d.ts +78 -0
  6. package/dist/actions/clients/exports.mjs +21 -0
  7. package/dist/actions/exports.d.ts +154 -207
  8. package/dist/actions/exports.mjs +853 -2
  9. package/dist/actions/governance/exports.d.ts +140 -0
  10. package/dist/actions/governance/exports.mjs +226 -0
  11. package/dist/actions/server/exports.d.ts +13 -0
  12. package/dist/actions/server/exports.mjs +27 -0
  13. package/dist/chunk-3JJLQ2JX.mjs +211 -0
  14. package/dist/chunk-7YVNSDXG.mjs +86 -0
  15. package/dist/chunk-AUOPN6NK.mjs +96 -0
  16. package/dist/chunk-BGMRHTBQ.mjs +23 -0
  17. package/dist/chunk-CDK4YV3D.mjs +571 -0
  18. package/dist/chunk-DKMAIU74.mjs +62 -0
  19. package/dist/chunk-DQRH5VE3.mjs +25 -0
  20. package/dist/chunk-E7YFXBBQ.mjs +349 -0
  21. package/dist/chunk-GUURQAME.mjs +326 -0
  22. package/dist/chunk-GY6B3PD5.mjs +89 -0
  23. package/dist/chunk-HQCOU6GY.mjs +243 -0
  24. package/dist/chunk-HYDP32P6.mjs +135 -0
  25. package/dist/chunk-IXIBY5FP.mjs +80 -0
  26. package/dist/chunk-KHXJDYA4.mjs +1776 -0
  27. package/dist/chunk-NBYLMO2L.mjs +14 -0
  28. package/dist/chunk-O2NQFKJK.mjs +170 -0
  29. package/dist/chunk-P5WXXULM.mjs +54 -0
  30. package/dist/chunk-QBBOWFMH.mjs +4129 -0
  31. package/dist/chunk-QVHEM4BG.mjs +35 -0
  32. package/dist/chunk-SGIJVHZO.mjs +12 -0
  33. package/dist/chunk-SZ5C44L5.mjs +35 -0
  34. package/dist/chunk-WNBWX23Q.mjs +426 -0
  35. package/dist/chunk-Y6THHG77.mjs +126 -0
  36. package/dist/chunk-ZLTMIFCZ.mjs +165 -0
  37. package/dist/contexts/exports.d.ts +2 -2
  38. package/dist/contexts/exports.mjs +85 -2
  39. package/dist/enum/exports.d.ts +1 -1
  40. package/dist/enum/exports.mjs +46 -2
  41. package/dist/enum/governance/exports.d.ts +60 -0
  42. package/dist/enum/governance/exports.mjs +14 -0
  43. package/dist/errors/exports.d.ts +4 -3
  44. package/dist/errors/exports.mjs +48 -2
  45. package/dist/getApolloClient-BcUTGFUb.d.ts +40 -0
  46. package/dist/{getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts → getValidatorQueuedOperatorAddress-DphU3qhE.d.ts} +2 -2
  47. package/dist/{global.d-5w_lvl2J.d.ts → global.d-BuGDKh4k.d.ts} +4 -240
  48. package/dist/hooks/exports.d.ts +83 -226
  49. package/dist/hooks/exports.mjs +7463 -4
  50. package/dist/hooks/governance/exports.d.ts +181 -0
  51. package/dist/hooks/governance/exports.mjs +888 -0
  52. package/dist/pol.d-Dw5SQcRX.d.ts +153 -0
  53. package/dist/{txnEnum-7_o92X3N.d.cts → txnEnum-ByI5dtDi.d.ts} +2 -60
  54. package/dist/types/exports.d.ts +9 -9
  55. package/dist/types/exports.mjs +0 -1
  56. package/dist/types/governance/exports.d.ts +109 -0
  57. package/dist/types/governance/exports.mjs +0 -0
  58. package/dist/{useHoneySwapState-B494PQDl.d.ts → useHoneySwapState-vFmuFF0g.d.ts} +1 -1
  59. package/dist/utils/exports.d.ts +15 -6
  60. package/dist/utils/exports.mjs +827 -2
  61. package/package.json +49 -13
  62. package/src/actions/__test/transports.ts +61 -0
  63. package/src/actions/clients/exports.ts +7 -0
  64. package/src/actions/clients/fetchBeep.ts +34 -0
  65. package/src/actions/clients/fetchOpenApi.ts +93 -0
  66. package/src/actions/clients/fetchOpenApi.unit.test.ts +223 -0
  67. package/src/actions/clients/fetchRailwayBackend.ts +34 -0
  68. package/src/actions/clients/getApolloClient.ts +58 -23
  69. package/src/actions/clients/getEnsoClient.ts +20 -9
  70. package/src/actions/dex/aggregators/enso/enso.ts +27 -17
  71. package/src/actions/dex/aggregators/enso/ensoErc4626.ts +2 -2
  72. package/src/actions/dex/aggregators/kyberswap.ts +18 -23
  73. package/src/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.ts +3 -6
  74. package/src/actions/enso/getEnsoUserTokensWithBalances.ts +18 -0
  75. package/src/actions/exports.ts +5 -9
  76. package/src/actions/governance/exports.ts +9 -0
  77. package/src/actions/governance/getAllProposals.ts +10 -65
  78. package/src/actions/governance/getProposalDetails.ts +6 -33
  79. package/src/actions/governance/getProposalVotes.ts +8 -15
  80. package/src/actions/honey/getChartData.ts +27 -21
  81. package/src/actions/honey/getHoney24hVolume.ts +19 -22
  82. package/src/actions/honey/getPythLatestPrices.ts +7 -0
  83. package/src/actions/pol/__tests__/rewardVaults.integration.test.ts +1 -1
  84. package/src/actions/pol/getAutoclaimedIncentives.ts +41 -0
  85. package/src/actions/pol/getAutoclaimedIncentivesTxHash.ts +41 -0
  86. package/src/actions/pol/getBeraTokenTotalSupply.ts +45 -0
  87. package/src/actions/pol/getBgtIncentiveDistributorPaused.ts +28 -0
  88. package/src/actions/pol/getEarnedStakedBeraVault.ts +20 -20
  89. package/src/actions/pol/getGlobalData.ts +1 -0
  90. package/src/actions/pol/getHeroEarnVaults.ts +62 -0
  91. package/src/actions/pol/getIncentiveFeeClaimStats.ts +19 -38
  92. package/src/actions/pol/getRewardVaults.ts +4 -4
  93. package/src/actions/pol/getSWBeraVaultMetadata.ts +1 -1
  94. package/src/actions/pol/getStakingDailyAssets.ts +18 -17
  95. package/src/actions/server/exports.ts +1 -0
  96. package/src/actions/server/getDailyValidatorBlockStats.ts +33 -0
  97. package/src/actions/tokens/getWalletBalances.integration.test.ts +3 -6
  98. package/src/actions/transactions/beraWriteContract.integration.test.ts +3 -6
  99. package/src/actions/validators/getDailyValidatorBlockStats.ts +25 -24
  100. package/src/actions/validators/getValidatorAnalytics.ts +20 -21
  101. package/src/actions/validators/getValidatorIncentiveDistribution.ts +33 -0
  102. package/src/actions/validators/utils/getValidatorBoostApy.ts +1 -1
  103. package/src/enum/contracts.ts +1 -0
  104. package/src/enum/exports.ts +0 -1
  105. package/src/enum/governance/exports.ts +1 -0
  106. package/src/errors/BeraError.ts +47 -7
  107. package/src/errors/BeraTracing.unit.test.ts +65 -0
  108. package/src/errors/RequestError.ts +25 -4
  109. package/src/errors/RequestError.unit.test.ts +55 -0
  110. package/src/errors/errorMap.ts +8 -0
  111. package/src/errors/exports.ts +5 -0
  112. package/src/errors/getRevertReason.integration.test.ts +3 -3
  113. package/src/errors/spanStatus.ts +78 -0
  114. package/src/errors/spanStatus.unit.test.ts +62 -0
  115. package/src/hooks/dex/useCreatePool.ts +1 -88
  116. package/src/hooks/dex/useOnChainPoolData.ts +27 -2
  117. package/src/hooks/dex/usePriceImpact.ts +12 -5
  118. package/src/hooks/enso/useBendDemultiply.ts +9 -1
  119. package/src/hooks/enso/useBendMultiply.ts +9 -1
  120. package/src/hooks/enso/useBendZapSupply.ts +26 -7
  121. package/src/hooks/enso/useEnsoSwapBundle.ts +17 -3
  122. package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +13 -2
  123. package/src/hooks/exports.ts +3 -15
  124. package/src/hooks/governance/exports.ts +14 -0
  125. package/src/hooks/pol/useAutoclaimedIncentives.ts +40 -0
  126. package/src/hooks/pol/useAutoclaimedIncentivesTxHash.ts +45 -0
  127. package/src/hooks/pol/useStakedAPR.ts +2 -2
  128. package/src/hooks/pol/useStakedSnapshots.ts +5 -9
  129. package/src/hooks/validators/useValidator.ts +6 -8
  130. package/src/hooks/validators/useValidatorIncentiveDistribution.ts +39 -0
  131. package/src/types/bribe-boost.d.ts +19 -0
  132. package/src/types/exports.ts +0 -1
  133. package/src/types/governance/exports.ts +1 -0
  134. package/src/utils/beraFetch.ts +9 -3
  135. package/src/utils/exports.ts +1 -0
  136. package/src/utils/getServerSideClient.ts +4 -2
  137. package/src/utils/polyfillAbortSignalAny.ts +53 -0
  138. package/src/utils/polyfillAbortSignalAny.unit.test.ts +81 -0
  139. package/src/utils/sanitizeRpcUrl.ts +22 -0
  140. package/src/utils/tracedTransport.ts +35 -0
  141. package/dist/BeraError-_mQdkanr.d.ts +0 -94
  142. package/dist/BexStatusProvider-DRymVlQf.d.cts +0 -70
  143. package/dist/HoneyConfigProvider-DfkjmzEf.d.cts +0 -390
  144. package/dist/RequestError-DSUzJ1Iy.d.cts +0 -144
  145. package/dist/abi/exports.cjs +0 -2
  146. package/dist/abi/exports.cjs.map +0 -1
  147. package/dist/abi/exports.d.cts +0 -6574
  148. package/dist/abi/exports.mjs.map +0 -1
  149. package/dist/actions/exports.cjs +0 -2
  150. package/dist/actions/exports.cjs.map +0 -1
  151. package/dist/actions/exports.d.cts +0 -1650
  152. package/dist/actions/exports.mjs.map +0 -1
  153. package/dist/chunk-45HIEVNI.cjs +0 -4
  154. package/dist/chunk-45HIEVNI.cjs.map +0 -1
  155. package/dist/chunk-47ILYVHC.mjs +0 -2
  156. package/dist/chunk-47ILYVHC.mjs.map +0 -1
  157. package/dist/chunk-575OK77P.mjs +0 -2
  158. package/dist/chunk-575OK77P.mjs.map +0 -1
  159. package/dist/chunk-5NVZG5N6.mjs +0 -2
  160. package/dist/chunk-5NVZG5N6.mjs.map +0 -1
  161. package/dist/chunk-6DIA6PXV.cjs +0 -2
  162. package/dist/chunk-6DIA6PXV.cjs.map +0 -1
  163. package/dist/chunk-6JJIZCVY.cjs +0 -2
  164. package/dist/chunk-6JJIZCVY.cjs.map +0 -1
  165. package/dist/chunk-7F72ZH4Q.mjs +0 -2
  166. package/dist/chunk-7F72ZH4Q.mjs.map +0 -1
  167. package/dist/chunk-AUA42YIG.mjs +0 -4
  168. package/dist/chunk-AUA42YIG.mjs.map +0 -1
  169. package/dist/chunk-BC2WX6O6.cjs +0 -2
  170. package/dist/chunk-BC2WX6O6.cjs.map +0 -1
  171. package/dist/chunk-CJOZC5Z2.cjs +0 -2
  172. package/dist/chunk-CJOZC5Z2.cjs.map +0 -1
  173. package/dist/chunk-D6L7LTA2.cjs +0 -2
  174. package/dist/chunk-D6L7LTA2.cjs.map +0 -1
  175. package/dist/chunk-DDEQFR3M.cjs +0 -2
  176. package/dist/chunk-DDEQFR3M.cjs.map +0 -1
  177. package/dist/chunk-GXV2JA36.mjs +0 -2
  178. package/dist/chunk-GXV2JA36.mjs.map +0 -1
  179. package/dist/chunk-ISYNEDET.mjs +0 -2
  180. package/dist/chunk-ISYNEDET.mjs.map +0 -1
  181. package/dist/chunk-JDDRTHFG.mjs +0 -2
  182. package/dist/chunk-JDDRTHFG.mjs.map +0 -1
  183. package/dist/chunk-JDZGYU5T.mjs +0 -2
  184. package/dist/chunk-JDZGYU5T.mjs.map +0 -1
  185. package/dist/chunk-LVOXBZMA.cjs +0 -2
  186. package/dist/chunk-LVOXBZMA.cjs.map +0 -1
  187. package/dist/chunk-MK5NS5B5.mjs +0 -2
  188. package/dist/chunk-MK5NS5B5.mjs.map +0 -1
  189. package/dist/chunk-NAXAZJJY.mjs +0 -2
  190. package/dist/chunk-NAXAZJJY.mjs.map +0 -1
  191. package/dist/chunk-NLVWRMGD.mjs +0 -2
  192. package/dist/chunk-NLVWRMGD.mjs.map +0 -1
  193. package/dist/chunk-OGBD5YOG.mjs +0 -2
  194. package/dist/chunk-OGBD5YOG.mjs.map +0 -1
  195. package/dist/chunk-OGJMSGB2.mjs +0 -2
  196. package/dist/chunk-OGJMSGB2.mjs.map +0 -1
  197. package/dist/chunk-OIYXOKTT.cjs +0 -2
  198. package/dist/chunk-OIYXOKTT.cjs.map +0 -1
  199. package/dist/chunk-OUD27MU7.cjs +0 -2
  200. package/dist/chunk-OUD27MU7.cjs.map +0 -1
  201. package/dist/chunk-PRLVZIKD.mjs +0 -2
  202. package/dist/chunk-PRLVZIKD.mjs.map +0 -1
  203. package/dist/chunk-Q2SNRLW3.cjs +0 -2
  204. package/dist/chunk-Q2SNRLW3.cjs.map +0 -1
  205. package/dist/chunk-REWME3FY.cjs +0 -2
  206. package/dist/chunk-REWME3FY.cjs.map +0 -1
  207. package/dist/chunk-RJN36GBU.mjs +0 -2
  208. package/dist/chunk-RJN36GBU.mjs.map +0 -1
  209. package/dist/chunk-RWOICHRW.cjs +0 -2
  210. package/dist/chunk-RWOICHRW.cjs.map +0 -1
  211. package/dist/chunk-S4CDSVLK.cjs +0 -2
  212. package/dist/chunk-S4CDSVLK.cjs.map +0 -1
  213. package/dist/chunk-SFEULGSX.cjs +0 -2
  214. package/dist/chunk-SFEULGSX.cjs.map +0 -1
  215. package/dist/chunk-WBTS6KFG.mjs +0 -2
  216. package/dist/chunk-WBTS6KFG.mjs.map +0 -1
  217. package/dist/chunk-WRFDB3QJ.cjs +0 -2
  218. package/dist/chunk-WRFDB3QJ.cjs.map +0 -1
  219. package/dist/chunk-XNJLSA6P.cjs +0 -2
  220. package/dist/chunk-XNJLSA6P.cjs.map +0 -1
  221. package/dist/contexts/exports.cjs +0 -2
  222. package/dist/contexts/exports.cjs.map +0 -1
  223. package/dist/contexts/exports.d.cts +0 -66
  224. package/dist/contexts/exports.mjs.map +0 -1
  225. package/dist/defaultFlags-D6KfkTZx.d.cts +0 -10
  226. package/dist/dex-C_BB0b0O.d.cts +0 -37
  227. package/dist/enum/exports.cjs +0 -2
  228. package/dist/enum/exports.cjs.map +0 -1
  229. package/dist/enum/exports.d.cts +0 -23
  230. package/dist/enum/exports.mjs.map +0 -1
  231. package/dist/errors/exports.cjs +0 -2
  232. package/dist/errors/exports.cjs.map +0 -1
  233. package/dist/errors/exports.d.cts +0 -327
  234. package/dist/errors/exports.mjs.map +0 -1
  235. package/dist/getValidatorQueuedOperatorAddress-Cql_D50j.d.cts +0 -562
  236. package/dist/global.d-B7IeayVX.d.cts +0 -474
  237. package/dist/honey-CYm0RWf4.d.cts +0 -14
  238. package/dist/hooks/exports.cjs +0 -4
  239. package/dist/hooks/exports.cjs.map +0 -1
  240. package/dist/hooks/exports.d.cts +0 -1734
  241. package/dist/hooks/exports.mjs.map +0 -1
  242. package/dist/polling-BKnyavLI.d.cts +0 -8
  243. package/dist/txnEnum-7_o92X3N.d.ts +0 -164
  244. package/dist/types/exports.cjs +0 -1
  245. package/dist/types/exports.cjs.map +0 -1
  246. package/dist/types/exports.d.cts +0 -90
  247. package/dist/types/exports.mjs.map +0 -1
  248. package/dist/useHoneySwapState-D6vpv19r.d.cts +0 -32
  249. package/dist/utils/exports.cjs +0 -2
  250. package/dist/utils/exports.cjs.map +0 -1
  251. package/dist/utils/exports.d.cts +0 -420
  252. package/dist/utils/exports.mjs.map +0 -1
  253. package/src/actions/dex/getIsTokenExploited.ts +0 -63
  254. package/src/hooks/dex/useExploitedTokens.ts +0 -57
@@ -1,245 +1,9 @@
1
- import { Address, Hex, AbiFunction, Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Account } from 'viem';
2
- import { ProposalWithVotesFragment, ProposalVoteFragment } from '@berachain/graphql/governance';
3
- import { b as ProposalTypeEnum, P as ProposalErrorCodes, T as TransactionActionType, C as ContractName } from './txnEnum-7_o92X3N.js';
4
- import { a as TokenWithMetadata, b as Token } from './HoneyConfigProvider-DVP_9KZn.js';
5
- import { ApiValidatorFragment } from '@berachain/graphql/pol/api';
6
1
  import { Config, GetWalletClientReturnType } from '@wagmi/core';
7
2
  import { SWRResponse, SWRConfiguration } from 'swr';
3
+ import { Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Hex, Account, Address } from 'viem';
8
4
  import { ChainId, BeraConfig } from '@berachain/config';
9
- import { B as BeraError } from './BeraError-_mQdkanr.js';
10
-
11
- type Proposal = ProposalWithVotesFragment;
12
-
13
- type Vote = ProposalVoteFragment;
14
-
15
- type Voter = Address;
16
-
17
- type ProposalVotes = {
18
- yes: number;
19
- no: number;
20
- abstain: number;
21
- };
22
-
23
- type PROPOSAL_GENRE = "berahub" | "honey" | "bend" | "berps" | "general";
24
-
25
- type CustomProposalActionErrors = {
26
- type?: null | ProposalErrorCodes;
27
- target?: null | ProposalErrorCodes;
28
- value?: null | ProposalErrorCodes;
29
- ABI?: null | ProposalErrorCodes;
30
- functionSignature?: null | ProposalErrorCodes;
31
- args?: (null | ProposalErrorCodes)[];
32
- vault?: null | ProposalErrorCodes;
33
- isFriend?: null | ProposalErrorCodes;
34
- to?: null | ProposalErrorCodes;
35
- amount?: null | ProposalErrorCodes;
36
- minIncentiveRate?: null | ProposalErrorCodes;
37
- managerAddress?: null | ProposalErrorCodes;
38
- input?: null | ProposalErrorCodes;
39
- token?: null | ProposalErrorCodes;
40
- rawCalldata?: null | ProposalErrorCodes;
41
- message?: null | ProposalErrorCodes;
42
- } | null;
43
-
44
- type CustomProposalErrors = {
45
- title?: null | ProposalErrorCodes;
46
- description?: null | ProposalErrorCodes;
47
- forumLink?: null | ProposalErrorCodes;
48
- actions?: CustomProposalActionErrors[];
49
- };
50
-
51
- type GovernanceTopic = {
52
- id: PROPOSAL_GENRE;
53
- color: string;
54
- icon: React.ReactNode;
55
- iconBackground?: string;
56
- name: string;
57
- slug: string;
58
- forumLink: string;
59
- description?: string;
60
- comingSoon?: boolean;
61
- };
62
- type CustomProposal = {
63
- title: string;
64
- description: any;
65
- actions: ProposalAction[];
66
- forumLink: string;
67
- topic: Set<PROPOSAL_GENRE>;
68
- };
69
-
70
- type SafeProposalAction = {
71
- value: bigint;
72
- target: "" | Address;
73
- } & (
74
- | {
75
- type: ProposalTypeEnum.CUSTOM_PROPOSAL;
76
- input: "ABI" | "rawCalldata" | "message";
77
- ABI: string;
78
- _isVerifiedAbi?: boolean;
79
- functionSignature: string;
80
- args: string[];
81
- rawCalldata: Hex;
82
- message: string;
83
- }
84
- | {
85
- type:
86
- | ProposalTypeEnum.WHITELIST_REWARD_VAULT
87
- | ProposalTypeEnum.BLACKLIST_REWARD_VAULT;
88
- vault: Address;
89
- }
90
- | {
91
- type: ProposalTypeEnum.ERC20_TRANSFER;
92
- to: Address;
93
- amount: string;
94
- }
95
- | {
96
- type: ProposalTypeEnum.WHITELIST_REWARD_VAULT_INCENTIVE;
97
- vault: Address;
98
- token: Address;
99
- minIncentiveRate: string;
100
- managerAddress: Address;
101
- }
102
- );
103
-
104
- type ProposalAction = Partial<SafeProposalAction> & {
105
- type: SafeProposalAction["type"];
106
- };
107
-
108
- type VerifiedAbi = {
109
- abiItem?: AbiFunction;
110
- functionName?: string;
111
- args: readonly unknown[];
112
- functionSignature?: string;
113
- };
114
-
115
- interface ProtocolMetadata {
116
- name: string;
117
- logoURI: string;
118
- url: string;
119
- description: string;
120
- tags?: string[];
121
- }
122
-
123
- /**
124
- * Configuration for a single staking option.
125
- * Maps receipt tokens to their accepted input tokens.
126
- */
127
- type StakingConfig = {
128
- /** Unique identifier for this staking config */
129
- id: string;
130
- /** The token received when staking (e.g., sWBERA, siBERA) */
131
- receiptToken: TokenWithMetadata;
132
- /** Tokens that can be staked to receive the receipt token */
133
- inputTokens: TokenWithMetadata[];
134
- };
135
-
136
- interface BribeBoostReward {
137
- token: string;
138
- total_unclaimed: string;
139
- }
140
-
141
- interface BribeBoostRewardItem {
142
- rewards: BribeBoostReward[];
143
- validator: string;
144
- }
145
-
146
- interface BribeBoostRewardProof {
147
- validator?: string;
148
- pagination: {
149
- next: number;
150
- previous: number;
151
- record_per_page: number;
152
- current_page: number;
153
- total_page: number;
154
- };
155
- rewards:
156
- | {
157
- id: string;
158
- dist_id: string;
159
- token: Address;
160
- recipient: string;
161
- amount: string;
162
- merkle_proof: string[];
163
- available_at: number;
164
- }[]
165
- | null;
166
- }
167
-
168
- interface BribeBoostValidatorApr {
169
- id: string;
170
- boost_total_bgt: string;
171
- rewards_total_usd: string;
172
- daily_rate: string;
173
- apr: string;
174
- apy: string;
175
- tokens: Address[]; // Confirm this type with backend real data
176
- validator: string;
177
- start_block: number;
178
- end_block: number;
179
- start_timestamp: number;
180
- end_timestamp: number;
181
- created_at: string;
182
- updated_at: string;
183
- }
184
-
185
- type IncentiveReward = {
186
- tokenMetadata: Token | undefined;
187
- tokenPrice: number;
188
- tokenValue: number;
189
- id: string;
190
- dist_id: string;
191
- token: string;
192
- recipient: string;
193
- formattedAmount: string;
194
- amount: string;
195
- merkle_proof: string[];
196
- available_at: number;
197
- };
198
- interface IncentiveRewardChunksWithValidatorData {
199
- validator: ApiValidatorInListFragment | ApiValidatorFragment | undefined;
200
- maxTimestamp: number | undefined;
201
- minTimestamp: number | undefined;
202
- totalValue: number;
203
- tokenTotals: {
204
- chainId: number;
205
- address: Address;
206
- amount: number;
207
- value: number;
208
- metadata: Token | undefined;
209
- }[];
210
- rewards: IncentiveReward[];
211
- isCurrent: boolean;
212
- }
213
-
214
- interface AggregatedTokenTotals {
215
- address: Address;
216
- amount: number;
217
- value: number;
218
- metadata: Token | undefined;
219
- chainId: number;
220
- }
221
-
222
- type ClaimedIncentives = Record<string, string>;
223
-
224
- type ClaimedIncentivesLocalState = Record<string, ClaimedIncentives>;
225
-
226
- interface UserVaultInfo {
227
- balance: bigint;
228
- delegatedBalance: bigint;
229
- withdrawableBalance: bigint;
230
- rewards: string;
231
- percentage: string;
232
- }
233
-
234
- type StakedBeraAsset = {
235
- token: TokenWithMetadata;
236
- apr: number;
237
- stakedAmount: number;
238
- stakedAmountUsd: number;
239
- earnedAmount: number;
240
- earnedAmountUsd: number;
241
- isLoadingEarnings?: boolean;
242
- };
5
+ import { T as TransactionActionType, C as ContractName } from './txnEnum-ByI5dtDi.js';
6
+ import { B as BeraError } from './BeraError-7-A5JYy_.js';
243
7
 
244
8
  interface UseContractWriteApi {
245
9
  isLoading: boolean;
@@ -471,4 +235,4 @@ declare global {
471
235
  }
472
236
  }
473
237
 
474
- export type { AggregatedTokenTotals as A, BribeBoostRewardProof as B, CustomProposal as C, DefaultHookOptions as D, GovernanceTopic as G, IContractWrite as I, ProtocolMetadata as P, StakingConfig as S, TxnEventKeys as T, UserVaultInfo as U, VerifiedAbi as V, CustomProposalErrors as a, BribeBoostRewardItem as b, DefaultHookReturnType as c, StakedBeraAsset as d, IUseContractWriteArgs as e, UseContractWriteApi as f, BribeBoostReward as g, BribeBoostValidatorApr as h, ClaimedIncentives as i, ClaimedIncentivesLocalState as j, CustomProposalActionErrors as k, IContractWriteFn as l, IncentiveReward as m, IncentiveRewardChunksWithValidatorData as n, PROPOSAL_GENRE as o, Proposal as p, ProposalAction as q, ProposalVotes as r, SafeProposalAction as s, Vote as t, Voter as u };
238
+ export type { DefaultHookOptions as D, IContractWrite as I, TxnEventKeys as T, UseContractWriteApi as U, DefaultHookReturnType as a, IUseContractWriteArgs as b, IContractWriteFn as c };