@berachain/berajs 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/.claude/skills/berajs/SKILL.md +222 -0
  2. package/.claude/skills/berajs/references/dex.md +235 -0
  3. package/.claude/skills/berajs/references/pol.md +194 -0
  4. package/.claude/skills/berajs/references/staking.md +198 -0
  5. package/.claude/skills/berajs/references/tokens.md +170 -0
  6. package/dist/{BexStatusProvider-nS3NcdxI.d.cts → BexStatusProvider-DRymVlQf.d.cts} +1 -1
  7. package/dist/{BexStatusProvider-nS3NcdxI.d.ts → BexStatusProvider-DRymVlQf.d.ts} +1 -1
  8. package/dist/{HoneyConfigProvider-CK6mOKFH.d.ts → HoneyConfigProvider-DVP_9KZn.d.ts} +1 -1
  9. package/dist/{HoneyConfigProvider-Ca3ouozs.d.cts → HoneyConfigProvider-DfkjmzEf.d.cts} +1 -1
  10. package/dist/abi/exports.cjs +1 -1
  11. package/dist/abi/exports.cjs.map +1 -1
  12. package/dist/abi/exports.d.cts +1893 -25347
  13. package/dist/abi/exports.d.ts +1893 -25347
  14. package/dist/abi/exports.mjs +1 -1
  15. package/dist/abi/exports.mjs.map +1 -1
  16. package/dist/actions/exports.cjs +1 -1
  17. package/dist/actions/exports.cjs.map +1 -1
  18. package/dist/actions/exports.d.cts +10 -9
  19. package/dist/actions/exports.d.ts +10 -9
  20. package/dist/actions/exports.mjs +1 -1
  21. package/dist/actions/exports.mjs.map +1 -1
  22. package/dist/chunk-4GU2O2OW.cjs +4 -0
  23. package/dist/chunk-4GU2O2OW.cjs.map +1 -0
  24. package/dist/chunk-5XWELBWR.mjs +2 -0
  25. package/dist/chunk-5XWELBWR.mjs.map +1 -0
  26. package/dist/chunk-BS6K7HGH.cjs +2 -0
  27. package/dist/chunk-BS6K7HGH.cjs.map +1 -0
  28. package/dist/chunk-NLVWRMGD.mjs +2 -0
  29. package/dist/chunk-NLVWRMGD.mjs.map +1 -0
  30. package/dist/chunk-OUD27MU7.cjs +2 -0
  31. package/dist/chunk-OUD27MU7.cjs.map +1 -0
  32. package/dist/chunk-RW3JFPED.mjs +4 -0
  33. package/dist/chunk-RW3JFPED.mjs.map +1 -0
  34. package/dist/chunk-S3EAKCVM.cjs +2 -0
  35. package/dist/{chunk-PKXAW6MO.cjs.map → chunk-S3EAKCVM.cjs.map} +1 -1
  36. package/dist/chunk-YNO7BCCM.mjs +2 -0
  37. package/dist/{chunk-3YXSUBA5.mjs.map → chunk-YNO7BCCM.mjs.map} +1 -1
  38. package/dist/contexts/exports.d.cts +3 -3
  39. package/dist/contexts/exports.d.ts +3 -3
  40. package/dist/enum/exports.d.cts +1 -1
  41. package/dist/enum/exports.d.ts +1 -1
  42. package/dist/errors/exports.d.cts +1 -1
  43. package/dist/errors/exports.d.ts +1 -1
  44. package/dist/{getValidatorQueuedOperatorAddress-NrjpnEn8.d.ts → getValidatorQueuedOperatorAddress-CqR6cyqC.d.ts} +3 -3
  45. package/dist/{getValidatorQueuedOperatorAddress-D_LEt3vv.d.cts → getValidatorQueuedOperatorAddress-DZgrPmZ2.d.cts} +3 -3
  46. package/dist/{global.d-X3cqpCEB.d.ts → global.d-BeYWDreg.d.ts} +4 -4
  47. package/dist/{global.d-DLRtrPG5.d.cts → global.d-DghRxpHd.d.cts} +4 -4
  48. package/dist/hooks/exports.cjs +3 -3
  49. package/dist/hooks/exports.cjs.map +1 -1
  50. package/dist/hooks/exports.d.cts +40 -38
  51. package/dist/hooks/exports.d.ts +40 -38
  52. package/dist/hooks/exports.mjs +3 -3
  53. package/dist/hooks/exports.mjs.map +1 -1
  54. package/dist/{txnEnum-BlBYhNRl.d.cts → txnEnum-DxPRHSJt.d.cts} +1 -1
  55. package/dist/{txnEnum-BlBYhNRl.d.ts → txnEnum-DxPRHSJt.d.ts} +1 -1
  56. package/dist/types/exports.d.cts +3 -3
  57. package/dist/types/exports.d.ts +3 -3
  58. package/dist/{useHoneySwapState-D1DKG_Of.d.ts → useHoneySwapState-B494PQDl.d.ts} +1 -1
  59. package/dist/{useHoneySwapState-B-vmIP1b.d.cts → useHoneySwapState-D6vpv19r.d.cts} +1 -1
  60. package/dist/utils/exports.cjs +1 -1
  61. package/dist/utils/exports.cjs.map +1 -1
  62. package/dist/utils/exports.d.cts +2 -2
  63. package/dist/utils/exports.d.ts +2 -2
  64. package/dist/utils/exports.mjs +1 -1
  65. package/dist/utils/exports.mjs.map +1 -1
  66. package/package.json +8 -9
  67. package/src/abi/exports.ts +0 -27
  68. package/src/actions/bend/getConvertToAssets.ts +1 -1
  69. package/src/actions/bend/getMaxDeposit.ts +1 -1
  70. package/src/actions/dex/aggregators/bex.ts +2 -1
  71. package/src/actions/dex/aggregators/enso/enso.ts +3 -2
  72. package/src/actions/dex/aggregators/enso/ensoErc4626.debug.test.ts +2 -3
  73. package/src/actions/dex/aggregators/erc4626.ts +2 -1
  74. package/src/actions/dex/aggregators/fly.ts +2 -1
  75. package/src/actions/dex/aggregators/haiku.ts +2 -1
  76. package/src/actions/dex/aggregators/kyberswap.ts +2 -2
  77. package/src/actions/dex/aggregators/oogabooga.ts +2 -1
  78. package/src/actions/dex/aggregators/openOcean.ts +2 -1
  79. package/src/actions/dex/aggregators/wbera.ts +2 -1
  80. package/src/actions/dex/getVaultPausedState.ts +2 -1
  81. package/src/actions/enso/getEnsoUserTokensWithBalances.debug.test.ts +1 -1
  82. package/src/actions/governance/__tests__/checkProposalField.unit.test.ts +2 -1
  83. package/src/actions/governance/__tests__/getDecodedFunctionData.integration.test.ts +66 -78
  84. package/src/actions/governance/__tests__/getQuorum.integration.test.ts +6 -7
  85. package/src/actions/governance/getDecodedFunctionData.ts +2 -2
  86. package/src/actions/governance/getProposalFromTx.ts +2 -1
  87. package/src/actions/governance/getProposalParams.ts +3 -2
  88. package/src/actions/governance/getQuorum.ts +2 -1
  89. package/src/actions/honey/getCollateralWeights.ts +2 -1
  90. package/src/actions/honey/getGlobalCapLimit.ts +2 -1
  91. package/src/actions/honey/getHoneyCollaterals.ts +2 -1
  92. package/src/actions/honey/getHoneyFees.ts +2 -1
  93. package/src/actions/honey/getHoneyPausedState.ts +2 -1
  94. package/src/actions/honey/getHoneyPreview.ts +2 -1
  95. package/src/actions/honey/getHoneyPythPriceOracle.ts +1 -1
  96. package/src/actions/honey/getHoneyRootPriceOracle.ts +2 -1
  97. package/src/actions/honey/getHoneyVaultsBalance.ts +3 -2
  98. package/src/actions/honey/getRelativeCapLimit.ts +2 -1
  99. package/src/actions/honey/getSharesWithoutFees.ts +3 -2
  100. package/src/actions/honey/getSwapPayload.ts +3 -2
  101. package/src/actions/honey/isBadCollateralAsset.ts +3 -2
  102. package/src/actions/honey/isBasketModeEnabled.ts +3 -2
  103. package/src/actions/pol/getBgtTokenTotalBoosts.ts +2 -1
  104. package/src/actions/pol/getLSTStakeConfig.ts +2 -1
  105. package/src/actions/pol/getRewardTokenToBeraRate.ts +2 -1
  106. package/src/actions/pol/getRewardVaultBeaconImplementation.ts +2 -1
  107. package/src/actions/pol/getRewardVaultDurationConstants.ts +2 -1
  108. package/src/actions/pol/getRewardVaultFromToken.ts +2 -1
  109. package/src/actions/pol/getRewardVaultIncentives.ts +2 -1
  110. package/src/actions/pol/getRewardVaultRewards.ts +2 -1
  111. package/src/actions/pol/getRewardVaultStakingToken.ts +1 -1
  112. package/src/actions/pol/getRewardVaults.ts +2 -1
  113. package/src/actions/pol/getSWBeraVaultMetadata.ts +2 -1
  114. package/src/actions/pol/getSWBeraWithdrawal.ts +2 -1
  115. package/src/actions/pol/getStakeWithdrawalCooldown.ts +1 -1
  116. package/src/actions/pol/getTotalStakedAmount.ts +2 -1
  117. package/src/actions/pol/getUserVaults.ts +2 -1
  118. package/src/actions/pol/getUserVaultsBalance.ts +2 -1
  119. package/src/actions/pol/getUserVaultsReward.ts +1 -1
  120. package/src/actions/pol/getVaultsSupply.ts +1 -1
  121. package/src/actions/pyth/getHoneyPythFeeds.ts +2 -1
  122. package/src/actions/transactions/beraWriteContract.integration.test.ts +48 -51
  123. package/src/actions/validators/getActiveBoostAndCommissionChangeDelay.ts +3 -2
  124. package/src/actions/validators/getBaselineRewardAllocation.ts +2 -1
  125. package/src/actions/validators/getDefaultRewardAllocation.ts +2 -1
  126. package/src/actions/validators/getUserBoostsOnValidator.ts +2 -1
  127. package/src/actions/validators/getValidatorCommission.ts +2 -1
  128. package/src/actions/validators/getValidatorOperatorAddress.ts +2 -1
  129. package/src/actions/validators/getValidatorQueuedCommission.ts +2 -1
  130. package/src/actions/validators/getValidatorQueuedOperatorAddress.ts +2 -1
  131. package/src/actions/validators/getValidatorQueuedRewardAllocation.ts +2 -1
  132. package/src/actions/validators/getValidatorRewardAllocation.ts +2 -1
  133. package/src/actions/validators/getValidatorRewardAllocatorAddress.ts +2 -1
  134. package/src/actions/validators/utils/__tests__/validatorUtils.integration.test.ts +10 -11
  135. package/src/errors/getRevertReason.integration.test.ts +115 -107
  136. package/src/hooks/dex/useAggregatorsRouterFeeBps.ts +2 -1
  137. package/src/hooks/dex/useCreatePool.ts +2 -1
  138. package/src/hooks/dex/usePollPoolCreationRelayerApproval.ts +2 -1
  139. package/src/hooks/governance/useGetPastVotes.ts +2 -1
  140. package/src/hooks/governance/useHasVoted.ts +2 -1
  141. package/src/hooks/governance/useIsCanceller.ts +2 -1
  142. package/src/hooks/governance/usePollProposalThreshold.ts +2 -1
  143. package/src/hooks/governance/usePollUserDelegates.ts +2 -1
  144. package/src/hooks/governance/useProposalSnapshot.ts +2 -1
  145. package/src/hooks/governance/useProposalState.ts +2 -1
  146. package/src/hooks/governance/useProposalTimelockState.ts +5 -4
  147. package/src/hooks/pol/useBgtUnstakedBalance.ts +2 -1
  148. package/src/hooks/pol/useOnChainRewardVault.ts +2 -1
  149. package/src/hooks/pol/useRewardVaultBalanceFromStakingToken.ts +2 -1
  150. package/src/hooks/pol/useRewardVaultFromToken.ts +2 -1
  151. package/src/hooks/validators/useOnChainValidator.ts +4 -3
  152. package/dist/chunk-3YXSUBA5.mjs +0 -2
  153. package/dist/chunk-A4UDYSB6.mjs +0 -4
  154. package/dist/chunk-A4UDYSB6.mjs.map +0 -1
  155. package/dist/chunk-CYKCYPFR.cjs +0 -2
  156. package/dist/chunk-CYKCYPFR.cjs.map +0 -1
  157. package/dist/chunk-ECRMUMTA.mjs +0 -2
  158. package/dist/chunk-ECRMUMTA.mjs.map +0 -1
  159. package/dist/chunk-F4BKSBEM.mjs +0 -2
  160. package/dist/chunk-F4BKSBEM.mjs.map +0 -1
  161. package/dist/chunk-FL2N3XHK.cjs +0 -2
  162. package/dist/chunk-FL2N3XHK.cjs.map +0 -1
  163. package/dist/chunk-MUCEYO3E.cjs +0 -4
  164. package/dist/chunk-MUCEYO3E.cjs.map +0 -1
  165. package/dist/chunk-P2Q7CMUD.cjs +0 -2
  166. package/dist/chunk-P2Q7CMUD.cjs.map +0 -1
  167. package/dist/chunk-PKXAW6MO.cjs +0 -2
  168. package/dist/chunk-Q3SCM6WL.mjs +0 -2
  169. package/dist/chunk-Q3SCM6WL.mjs.map +0 -1
  170. package/dist/chunk-TEBJWAVU.mjs +0 -2
  171. package/dist/chunk-TEBJWAVU.mjs.map +0 -1
  172. package/dist/chunk-VP7XUOSI.cjs +0 -2
  173. package/dist/chunk-VP7XUOSI.cjs.map +0 -1
  174. package/dist/pythWrapper-CBjsmmsK.d.cts +0 -1958
  175. package/dist/pythWrapper-CBjsmmsK.d.ts +0 -1958
  176. package/src/abi/bend/metaMorpho.ts +0 -2584
  177. package/src/abi/bend/morpho.ts +0 -444
  178. package/src/abi/bex/aggregatorsRouter.ts +0 -492
  179. package/src/abi/bex/balancerComposableStablePoolFactoryV6.ts +0 -283
  180. package/src/abi/bex/balancerPoolCreationHelper.ts +0 -267
  181. package/src/abi/bex/balancerVault.ts +0 -757
  182. package/src/abi/governance/governance.ts +0 -1016
  183. package/src/abi/governance/governanceTimelock.ts +0 -589
  184. package/src/abi/honey/collateralVault.ts +0 -1144
  185. package/src/abi/honey/honey.ts +0 -563
  186. package/src/abi/honey/honeyFactory.ts +0 -1270
  187. package/src/abi/honey/honeyFactoryReader.ts +0 -894
  188. package/src/abi/honey/honeyRootOracle.ts +0 -492
  189. package/src/abi/honey/pythPriceOracle.ts +0 -619
  190. package/src/abi/honey/pythWrapper.ts +0 -446
  191. package/src/abi/pol/LSTStakerVault.ts +0 -2032
  192. package/src/abi/pol/beaconDeposit.ts +0 -595
  193. package/src/abi/pol/beraChef.ts +0 -1019
  194. package/src/abi/pol/bgt.ts +0 -1008
  195. package/src/abi/pol/bgtIncentiveDistributor.ts +0 -640
  196. package/src/abi/pol/bgtStaker.ts +0 -1034
  197. package/src/abi/pol/rewardAllocationFactory.ts +0 -408
  198. package/src/abi/pol/rewardVault.ts +0 -1928
  199. package/src/abi/pol/rewardVaultFactory.ts +0 -586
  200. package/src/abi/pol/rewardVaultHelper.ts +0 -882
  201. package/src/abi/pol/stakeBeraVault.ts +0 -1116
  202. package/src/abi/pol/stakeBeraVaultWithdrawalRequest.ts +0 -618
  203. package/src/abi/pol/wbera.ts +0 -366
@@ -1,757 +0,0 @@
1
- // TODO: verify this matches deployed
2
- export const balancerVaultAbi = [
3
- {
4
- inputs: [
5
- {
6
- internalType: "contract IAuthorizer",
7
- name: "authorizer",
8
- type: "address",
9
- },
10
- { internalType: "contract IWETH", name: "weth", type: "address" },
11
- { internalType: "uint256", name: "pauseWindowDuration", type: "uint256" },
12
- {
13
- internalType: "uint256",
14
- name: "bufferPeriodDuration",
15
- type: "uint256",
16
- },
17
- ],
18
- stateMutability: "nonpayable",
19
- type: "constructor",
20
- },
21
- {
22
- anonymous: false,
23
- inputs: [
24
- {
25
- indexed: true,
26
- internalType: "contract IAuthorizer",
27
- name: "newAuthorizer",
28
- type: "address",
29
- },
30
- ],
31
- name: "AuthorizerChanged",
32
- type: "event",
33
- },
34
- {
35
- anonymous: false,
36
- inputs: [
37
- {
38
- indexed: true,
39
- internalType: "contract IERC20",
40
- name: "token",
41
- type: "address",
42
- },
43
- {
44
- indexed: true,
45
- internalType: "address",
46
- name: "sender",
47
- type: "address",
48
- },
49
- {
50
- indexed: false,
51
- internalType: "address",
52
- name: "recipient",
53
- type: "address",
54
- },
55
- {
56
- indexed: false,
57
- internalType: "uint256",
58
- name: "amount",
59
- type: "uint256",
60
- },
61
- ],
62
- name: "ExternalBalanceTransfer",
63
- type: "event",
64
- },
65
- {
66
- anonymous: false,
67
- inputs: [
68
- {
69
- indexed: true,
70
- internalType: "contract IFlashLoanRecipient",
71
- name: "recipient",
72
- type: "address",
73
- },
74
- {
75
- indexed: true,
76
- internalType: "contract IERC20",
77
- name: "token",
78
- type: "address",
79
- },
80
- {
81
- indexed: false,
82
- internalType: "uint256",
83
- name: "amount",
84
- type: "uint256",
85
- },
86
- {
87
- indexed: false,
88
- internalType: "uint256",
89
- name: "feeAmount",
90
- type: "uint256",
91
- },
92
- ],
93
- name: "FlashLoan",
94
- type: "event",
95
- },
96
- {
97
- anonymous: false,
98
- inputs: [
99
- { indexed: true, internalType: "address", name: "user", type: "address" },
100
- {
101
- indexed: true,
102
- internalType: "contract IERC20",
103
- name: "token",
104
- type: "address",
105
- },
106
- { indexed: false, internalType: "int256", name: "delta", type: "int256" },
107
- ],
108
- name: "InternalBalanceChanged",
109
- type: "event",
110
- },
111
- {
112
- anonymous: false,
113
- inputs: [
114
- { indexed: false, internalType: "bool", name: "paused", type: "bool" },
115
- ],
116
- name: "PausedStateChanged",
117
- type: "event",
118
- },
119
- {
120
- anonymous: false,
121
- inputs: [
122
- {
123
- indexed: true,
124
- internalType: "bytes32",
125
- name: "poolId",
126
- type: "bytes32",
127
- },
128
- {
129
- indexed: true,
130
- internalType: "address",
131
- name: "liquidityProvider",
132
- type: "address",
133
- },
134
- {
135
- indexed: false,
136
- internalType: "contract IERC20[]",
137
- name: "tokens",
138
- type: "address[]",
139
- },
140
- {
141
- indexed: false,
142
- internalType: "int256[]",
143
- name: "deltas",
144
- type: "int256[]",
145
- },
146
- {
147
- indexed: false,
148
- internalType: "uint256[]",
149
- name: "protocolFeeAmounts",
150
- type: "uint256[]",
151
- },
152
- ],
153
- name: "PoolBalanceChanged",
154
- type: "event",
155
- },
156
- {
157
- anonymous: false,
158
- inputs: [
159
- {
160
- indexed: true,
161
- internalType: "bytes32",
162
- name: "poolId",
163
- type: "bytes32",
164
- },
165
- {
166
- indexed: true,
167
- internalType: "address",
168
- name: "assetManager",
169
- type: "address",
170
- },
171
- {
172
- indexed: true,
173
- internalType: "contract IERC20",
174
- name: "token",
175
- type: "address",
176
- },
177
- {
178
- indexed: false,
179
- internalType: "int256",
180
- name: "cashDelta",
181
- type: "int256",
182
- },
183
- {
184
- indexed: false,
185
- internalType: "int256",
186
- name: "managedDelta",
187
- type: "int256",
188
- },
189
- ],
190
- name: "PoolBalanceManaged",
191
- type: "event",
192
- },
193
- {
194
- anonymous: false,
195
- inputs: [
196
- {
197
- indexed: true,
198
- internalType: "bytes32",
199
- name: "poolId",
200
- type: "bytes32",
201
- },
202
- {
203
- indexed: true,
204
- internalType: "address",
205
- name: "poolAddress",
206
- type: "address",
207
- },
208
- {
209
- indexed: false,
210
- internalType: "enum IVault.PoolSpecialization",
211
- name: "specialization",
212
- type: "uint8",
213
- },
214
- ],
215
- name: "PoolRegistered",
216
- type: "event",
217
- },
218
- {
219
- anonymous: false,
220
- inputs: [
221
- {
222
- indexed: true,
223
- internalType: "address",
224
- name: "relayer",
225
- type: "address",
226
- },
227
- {
228
- indexed: true,
229
- internalType: "address",
230
- name: "sender",
231
- type: "address",
232
- },
233
- { indexed: false, internalType: "bool", name: "approved", type: "bool" },
234
- ],
235
- name: "RelayerApprovalChanged",
236
- type: "event",
237
- },
238
- {
239
- anonymous: false,
240
- inputs: [
241
- {
242
- indexed: true,
243
- internalType: "bytes32",
244
- name: "poolId",
245
- type: "bytes32",
246
- },
247
- {
248
- indexed: true,
249
- internalType: "contract IERC20",
250
- name: "tokenIn",
251
- type: "address",
252
- },
253
- {
254
- indexed: true,
255
- internalType: "contract IERC20",
256
- name: "tokenOut",
257
- type: "address",
258
- },
259
- {
260
- indexed: false,
261
- internalType: "uint256",
262
- name: "amountIn",
263
- type: "uint256",
264
- },
265
- {
266
- indexed: false,
267
- internalType: "uint256",
268
- name: "amountOut",
269
- type: "uint256",
270
- },
271
- ],
272
- name: "Swap",
273
- type: "event",
274
- },
275
- {
276
- anonymous: false,
277
- inputs: [
278
- {
279
- indexed: true,
280
- internalType: "bytes32",
281
- name: "poolId",
282
- type: "bytes32",
283
- },
284
- {
285
- indexed: false,
286
- internalType: "contract IERC20[]",
287
- name: "tokens",
288
- type: "address[]",
289
- },
290
- ],
291
- name: "TokensDeregistered",
292
- type: "event",
293
- },
294
- {
295
- anonymous: false,
296
- inputs: [
297
- {
298
- indexed: true,
299
- internalType: "bytes32",
300
- name: "poolId",
301
- type: "bytes32",
302
- },
303
- {
304
- indexed: false,
305
- internalType: "contract IERC20[]",
306
- name: "tokens",
307
- type: "address[]",
308
- },
309
- {
310
- indexed: false,
311
- internalType: "address[]",
312
- name: "assetManagers",
313
- type: "address[]",
314
- },
315
- ],
316
- name: "TokensRegistered",
317
- type: "event",
318
- },
319
- {
320
- inputs: [],
321
- name: "WETH",
322
- outputs: [{ internalType: "contract IWETH", name: "", type: "address" }],
323
- stateMutability: "view",
324
- type: "function",
325
- },
326
- {
327
- inputs: [
328
- { internalType: "enum IVault.SwapKind", name: "kind", type: "uint8" },
329
- {
330
- components: [
331
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
332
- { internalType: "uint256", name: "assetInIndex", type: "uint256" },
333
- { internalType: "uint256", name: "assetOutIndex", type: "uint256" },
334
- { internalType: "uint256", name: "amount", type: "uint256" },
335
- { internalType: "bytes", name: "userData", type: "bytes" },
336
- ],
337
- internalType: "struct IVault.BatchSwapStep[]",
338
- name: "swaps",
339
- type: "tuple[]",
340
- },
341
- { internalType: "contract IAsset[]", name: "assets", type: "address[]" },
342
- {
343
- components: [
344
- { internalType: "address", name: "sender", type: "address" },
345
- { internalType: "bool", name: "fromInternalBalance", type: "bool" },
346
- {
347
- internalType: "address payable",
348
- name: "recipient",
349
- type: "address",
350
- },
351
- { internalType: "bool", name: "toInternalBalance", type: "bool" },
352
- ],
353
- internalType: "struct IVault.FundManagement",
354
- name: "funds",
355
- type: "tuple",
356
- },
357
- { internalType: "int256[]", name: "limits", type: "int256[]" },
358
- { internalType: "uint256", name: "deadline", type: "uint256" },
359
- ],
360
- name: "batchSwap",
361
- outputs: [
362
- { internalType: "int256[]", name: "assetDeltas", type: "int256[]" },
363
- ],
364
- stateMutability: "payable",
365
- type: "function",
366
- },
367
- {
368
- inputs: [
369
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
370
- { internalType: "contract IERC20[]", name: "tokens", type: "address[]" },
371
- ],
372
- name: "deregisterTokens",
373
- outputs: [],
374
- stateMutability: "nonpayable",
375
- type: "function",
376
- },
377
- {
378
- inputs: [
379
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
380
- { internalType: "address", name: "sender", type: "address" },
381
- { internalType: "address payable", name: "recipient", type: "address" },
382
- {
383
- components: [
384
- {
385
- internalType: "contract IAsset[]",
386
- name: "assets",
387
- type: "address[]",
388
- },
389
- {
390
- internalType: "uint256[]",
391
- name: "minAmountsOut",
392
- type: "uint256[]",
393
- },
394
- { internalType: "bytes", name: "userData", type: "bytes" },
395
- { internalType: "bool", name: "toInternalBalance", type: "bool" },
396
- ],
397
- internalType: "struct IVault.ExitPoolRequest",
398
- name: "request",
399
- type: "tuple",
400
- },
401
- ],
402
- name: "exitPool",
403
- outputs: [],
404
- stateMutability: "nonpayable",
405
- type: "function",
406
- },
407
- {
408
- inputs: [
409
- {
410
- internalType: "contract IFlashLoanRecipient",
411
- name: "recipient",
412
- type: "address",
413
- },
414
- { internalType: "contract IERC20[]", name: "tokens", type: "address[]" },
415
- { internalType: "uint256[]", name: "amounts", type: "uint256[]" },
416
- { internalType: "bytes", name: "userData", type: "bytes" },
417
- ],
418
- name: "flashLoan",
419
- outputs: [],
420
- stateMutability: "nonpayable",
421
- type: "function",
422
- },
423
- {
424
- inputs: [{ internalType: "bytes4", name: "selector", type: "bytes4" }],
425
- name: "getActionId",
426
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
427
- stateMutability: "view",
428
- type: "function",
429
- },
430
- {
431
- inputs: [],
432
- name: "getAuthorizer",
433
- outputs: [
434
- { internalType: "contract IAuthorizer", name: "", type: "address" },
435
- ],
436
- stateMutability: "view",
437
- type: "function",
438
- },
439
- {
440
- inputs: [],
441
- name: "getDomainSeparator",
442
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
443
- stateMutability: "view",
444
- type: "function",
445
- },
446
- {
447
- inputs: [
448
- { internalType: "address", name: "user", type: "address" },
449
- { internalType: "contract IERC20[]", name: "tokens", type: "address[]" },
450
- ],
451
- name: "getInternalBalance",
452
- outputs: [
453
- { internalType: "uint256[]", name: "balances", type: "uint256[]" },
454
- ],
455
- stateMutability: "view",
456
- type: "function",
457
- },
458
- {
459
- inputs: [{ internalType: "address", name: "user", type: "address" }],
460
- name: "getNextNonce",
461
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
462
- stateMutability: "view",
463
- type: "function",
464
- },
465
- {
466
- inputs: [],
467
- name: "getPausedState",
468
- outputs: [
469
- { internalType: "bool", name: "paused", type: "bool" },
470
- { internalType: "uint256", name: "pauseWindowEndTime", type: "uint256" },
471
- { internalType: "uint256", name: "bufferPeriodEndTime", type: "uint256" },
472
- ],
473
- stateMutability: "view",
474
- type: "function",
475
- },
476
- {
477
- inputs: [{ internalType: "bytes32", name: "poolId", type: "bytes32" }],
478
- name: "getPool",
479
- outputs: [
480
- { internalType: "address", name: "", type: "address" },
481
- {
482
- internalType: "enum IVault.PoolSpecialization",
483
- name: "",
484
- type: "uint8",
485
- },
486
- ],
487
- stateMutability: "view",
488
- type: "function",
489
- },
490
- {
491
- inputs: [
492
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
493
- { internalType: "contract IERC20", name: "token", type: "address" },
494
- ],
495
- name: "getPoolTokenInfo",
496
- outputs: [
497
- { internalType: "uint256", name: "cash", type: "uint256" },
498
- { internalType: "uint256", name: "managed", type: "uint256" },
499
- { internalType: "uint256", name: "lastChangeBlock", type: "uint256" },
500
- { internalType: "address", name: "assetManager", type: "address" },
501
- ],
502
- stateMutability: "view",
503
- type: "function",
504
- },
505
- {
506
- inputs: [{ internalType: "bytes32", name: "poolId", type: "bytes32" }],
507
- name: "getPoolTokens",
508
- outputs: [
509
- { internalType: "contract IERC20[]", name: "tokens", type: "address[]" },
510
- { internalType: "uint256[]", name: "balances", type: "uint256[]" },
511
- { internalType: "uint256", name: "lastChangeBlock", type: "uint256" },
512
- ],
513
- stateMutability: "view",
514
- type: "function",
515
- },
516
- {
517
- inputs: [],
518
- name: "getProtocolFeesCollector",
519
- outputs: [
520
- {
521
- internalType: "contract ProtocolFeesCollector",
522
- name: "",
523
- type: "address",
524
- },
525
- ],
526
- stateMutability: "view",
527
- type: "function",
528
- },
529
- {
530
- inputs: [
531
- { internalType: "address", name: "user", type: "address" },
532
- { internalType: "address", name: "relayer", type: "address" },
533
- ],
534
- name: "hasApprovedRelayer",
535
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
536
- stateMutability: "view",
537
- type: "function",
538
- },
539
- {
540
- inputs: [
541
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
542
- { internalType: "address", name: "sender", type: "address" },
543
- { internalType: "address", name: "recipient", type: "address" },
544
- {
545
- components: [
546
- {
547
- internalType: "contract IAsset[]",
548
- name: "assets",
549
- type: "address[]",
550
- },
551
- {
552
- internalType: "uint256[]",
553
- name: "maxAmountsIn",
554
- type: "uint256[]",
555
- },
556
- { internalType: "bytes", name: "userData", type: "bytes" },
557
- { internalType: "bool", name: "fromInternalBalance", type: "bool" },
558
- ],
559
- internalType: "struct IVault.JoinPoolRequest",
560
- name: "request",
561
- type: "tuple",
562
- },
563
- ],
564
- name: "joinPool",
565
- outputs: [],
566
- stateMutability: "payable",
567
- type: "function",
568
- },
569
- {
570
- inputs: [
571
- {
572
- components: [
573
- {
574
- internalType: "enum IVault.PoolBalanceOpKind",
575
- name: "kind",
576
- type: "uint8",
577
- },
578
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
579
- { internalType: "contract IERC20", name: "token", type: "address" },
580
- { internalType: "uint256", name: "amount", type: "uint256" },
581
- ],
582
- internalType: "struct IVault.PoolBalanceOp[]",
583
- name: "ops",
584
- type: "tuple[]",
585
- },
586
- ],
587
- name: "managePoolBalance",
588
- outputs: [],
589
- stateMutability: "nonpayable",
590
- type: "function",
591
- },
592
- {
593
- inputs: [
594
- {
595
- components: [
596
- {
597
- internalType: "enum IVault.UserBalanceOpKind",
598
- name: "kind",
599
- type: "uint8",
600
- },
601
- { internalType: "contract IAsset", name: "asset", type: "address" },
602
- { internalType: "uint256", name: "amount", type: "uint256" },
603
- { internalType: "address", name: "sender", type: "address" },
604
- {
605
- internalType: "address payable",
606
- name: "recipient",
607
- type: "address",
608
- },
609
- ],
610
- internalType: "struct IVault.UserBalanceOp[]",
611
- name: "ops",
612
- type: "tuple[]",
613
- },
614
- ],
615
- name: "manageUserBalance",
616
- outputs: [],
617
- stateMutability: "payable",
618
- type: "function",
619
- },
620
- {
621
- inputs: [
622
- { internalType: "enum IVault.SwapKind", name: "kind", type: "uint8" },
623
- {
624
- components: [
625
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
626
- { internalType: "uint256", name: "assetInIndex", type: "uint256" },
627
- { internalType: "uint256", name: "assetOutIndex", type: "uint256" },
628
- { internalType: "uint256", name: "amount", type: "uint256" },
629
- { internalType: "bytes", name: "userData", type: "bytes" },
630
- ],
631
- internalType: "struct IVault.BatchSwapStep[]",
632
- name: "swaps",
633
- type: "tuple[]",
634
- },
635
- { internalType: "contract IAsset[]", name: "assets", type: "address[]" },
636
- {
637
- components: [
638
- { internalType: "address", name: "sender", type: "address" },
639
- { internalType: "bool", name: "fromInternalBalance", type: "bool" },
640
- {
641
- internalType: "address payable",
642
- name: "recipient",
643
- type: "address",
644
- },
645
- { internalType: "bool", name: "toInternalBalance", type: "bool" },
646
- ],
647
- internalType: "struct IVault.FundManagement",
648
- name: "funds",
649
- type: "tuple",
650
- },
651
- ],
652
- name: "queryBatchSwap",
653
- outputs: [{ internalType: "int256[]", name: "", type: "int256[]" }],
654
- stateMutability: "nonpayable",
655
- type: "function",
656
- },
657
- {
658
- inputs: [
659
- {
660
- internalType: "enum IVault.PoolSpecialization",
661
- name: "specialization",
662
- type: "uint8",
663
- },
664
- ],
665
- name: "registerPool",
666
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
667
- stateMutability: "nonpayable",
668
- type: "function",
669
- },
670
- {
671
- inputs: [
672
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
673
- { internalType: "contract IERC20[]", name: "tokens", type: "address[]" },
674
- { internalType: "address[]", name: "assetManagers", type: "address[]" },
675
- ],
676
- name: "registerTokens",
677
- outputs: [],
678
- stateMutability: "nonpayable",
679
- type: "function",
680
- },
681
- {
682
- inputs: [
683
- {
684
- internalType: "contract IAuthorizer",
685
- name: "newAuthorizer",
686
- type: "address",
687
- },
688
- ],
689
- name: "setAuthorizer",
690
- outputs: [],
691
- stateMutability: "nonpayable",
692
- type: "function",
693
- },
694
- {
695
- inputs: [{ internalType: "bool", name: "paused", type: "bool" }],
696
- name: "setPaused",
697
- outputs: [],
698
- stateMutability: "nonpayable",
699
- type: "function",
700
- },
701
- {
702
- inputs: [
703
- { internalType: "address", name: "sender", type: "address" },
704
- { internalType: "address", name: "relayer", type: "address" },
705
- { internalType: "bool", name: "approved", type: "bool" },
706
- ],
707
- name: "setRelayerApproval",
708
- outputs: [],
709
- stateMutability: "nonpayable",
710
- type: "function",
711
- },
712
- {
713
- inputs: [
714
- {
715
- components: [
716
- { internalType: "bytes32", name: "poolId", type: "bytes32" },
717
- { internalType: "enum IVault.SwapKind", name: "kind", type: "uint8" },
718
- { internalType: "contract IAsset", name: "assetIn", type: "address" },
719
- {
720
- internalType: "contract IAsset",
721
- name: "assetOut",
722
- type: "address",
723
- },
724
- { internalType: "uint256", name: "amount", type: "uint256" },
725
- { internalType: "bytes", name: "userData", type: "bytes" },
726
- ],
727
- internalType: "struct IVault.SingleSwap",
728
- name: "singleSwap",
729
- type: "tuple",
730
- },
731
- {
732
- components: [
733
- { internalType: "address", name: "sender", type: "address" },
734
- { internalType: "bool", name: "fromInternalBalance", type: "bool" },
735
- {
736
- internalType: "address payable",
737
- name: "recipient",
738
- type: "address",
739
- },
740
- { internalType: "bool", name: "toInternalBalance", type: "bool" },
741
- ],
742
- internalType: "struct IVault.FundManagement",
743
- name: "funds",
744
- type: "tuple",
745
- },
746
- { internalType: "uint256", name: "limit", type: "uint256" },
747
- { internalType: "uint256", name: "deadline", type: "uint256" },
748
- ],
749
- name: "swap",
750
- outputs: [
751
- { internalType: "uint256", name: "amountCalculated", type: "uint256" },
752
- ],
753
- stateMutability: "payable",
754
- type: "function",
755
- },
756
- { stateMutability: "payable", type: "receive" },
757
- ] as const;