@paraswap/dex-lib 4.0.3 → 4.0.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 (214) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/build/abi/integral/factory.json +333 -0
  10. package/build/abi/integral/oracle.json +501 -0
  11. package/build/abi/{inception/inception-ineth-pool.json → integral/pool.json} +522 -543
  12. package/build/abi/{wombat/pool.json → integral/relayer.json} +720 -473
  13. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  14. package/build/dex/aave-v1/aave-v1.js +0 -23
  15. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  16. package/build/dex/bebop/bebop.js +1 -1
  17. package/build/dex/bebop/bebop.js.map +1 -1
  18. package/build/dex/cables/cables.d.ts +4 -2
  19. package/build/dex/cables/cables.js +90 -155
  20. package/build/dex/cables/cables.js.map +1 -1
  21. package/build/dex/cables/constants.d.ts +0 -1
  22. package/build/dex/cables/constants.js +2 -3
  23. package/build/dex/cables/constants.js.map +1 -1
  24. package/build/dex/cables/rate-fetcher.js +26 -10
  25. package/build/dex/cables/rate-fetcher.js.map +1 -1
  26. package/build/dex/cables/types.d.ts +15 -28
  27. package/build/dex/cables/types.js +2 -13
  28. package/build/dex/cables/types.js.map +1 -1
  29. package/build/dex/dexalot/dexalot.js.map +1 -1
  30. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  31. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  32. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  33. package/build/dex/index.js +2 -0
  34. package/build/dex/index.js.map +1 -1
  35. package/build/dex/integral/config.d.ts +4 -0
  36. package/build/dex/integral/config.js +20 -0
  37. package/build/dex/integral/config.js.map +1 -0
  38. package/build/dex/integral/context.d.ts +40 -0
  39. package/build/dex/integral/context.js +158 -0
  40. package/build/dex/integral/context.js.map +1 -0
  41. package/build/dex/integral/integral-factory.d.ts +24 -0
  42. package/build/dex/integral/integral-factory.js +95 -0
  43. package/build/dex/integral/integral-factory.js.map +1 -0
  44. package/build/dex/integral/integral-pool.d.ts +50 -0
  45. package/build/dex/integral/integral-pool.js +149 -0
  46. package/build/dex/integral/integral-pool.js.map +1 -0
  47. package/build/dex/integral/integral-pricing.d.ts +18 -0
  48. package/build/dex/integral/integral-pricing.js +114 -0
  49. package/build/dex/integral/integral-pricing.js.map +1 -0
  50. package/build/dex/integral/integral-relayer.d.ts +42 -0
  51. package/build/dex/integral/integral-relayer.js +192 -0
  52. package/build/dex/integral/integral-relayer.js.map +1 -0
  53. package/build/dex/integral/integral-token.d.ts +27 -0
  54. package/build/dex/integral/integral-token.js +59 -0
  55. package/build/dex/integral/integral-token.js.map +1 -0
  56. package/build/dex/integral/integral.d.ts +41 -0
  57. package/build/dex/integral/integral.js +376 -0
  58. package/build/dex/integral/integral.js.map +1 -0
  59. package/build/dex/integral/types.d.ts +85 -0
  60. package/build/dex/integral/types.js +9 -0
  61. package/build/dex/integral/types.js.map +1 -0
  62. package/build/dex/integral/utils-e2e.d.ts +9 -0
  63. package/build/dex/integral/utils-e2e.js +131 -0
  64. package/build/dex/integral/utils-e2e.js.map +1 -0
  65. package/build/dex/integral/utils.d.ts +17 -0
  66. package/build/dex/integral/utils.js +94 -0
  67. package/build/dex/integral/utils.js.map +1 -0
  68. package/build/dex/jarvis.d.ts +1 -2
  69. package/build/dex/jarvis.js +0 -58
  70. package/build/dex/jarvis.js.map +1 -1
  71. package/build/dex/platypus/platypus.d.ts +1 -2
  72. package/build/dex/platypus/platypus.js +0 -45
  73. package/build/dex/platypus/platypus.js.map +1 -1
  74. package/build/dex/stable-pool.js +8 -1
  75. package/build/dex/stable-pool.js.map +1 -1
  76. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  77. package/build/dex/swaap-v1/swaap-v1.js +0 -14
  78. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  79. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  80. package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
  81. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  82. package/build/dex/zerox/index.d.ts +26 -4
  83. package/build/dex/zerox/index.js +42 -50
  84. package/build/dex/zerox/index.js.map +1 -1
  85. package/build/dex/zerox/types.d.ts +0 -29
  86. package/build/dex/zerox/types.js +1 -8
  87. package/build/dex/zerox/types.js.map +1 -1
  88. package/build/executor/Executor01BytecodeBuilder.js +11 -6
  89. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  90. package/build/executor/Executor02BytecodeBuilder.js +11 -6
  91. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  92. package/build/executor/Executor03BytecodeBuilder.js +11 -6
  93. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  94. package/build/types.d.ts +1 -0
  95. package/package.json +1 -1
  96. package/src/abi/cables/CablesMainnetRFQ.json +1083 -0
  97. package/src/dex/bebop/bebop.ts +1 -1
  98. package/src/dex/cables/cables-e2e.test.ts +207 -0
  99. package/src/dex/cables/cables-integration.test.ts +391 -0
  100. package/src/dex/cables/cables.ts +823 -0
  101. package/src/dex/cables/config.ts +13 -0
  102. package/src/dex/cables/constants.ts +33 -0
  103. package/src/dex/cables/rate-fetcher.ts +212 -0
  104. package/src/dex/cables/types.ts +113 -0
  105. package/src/dex/cables/validators.test.ts +151 -0
  106. package/src/dex/cables/validators.ts +61 -0
  107. package/src/dex/dexalot/dexalot.ts +1 -0
  108. package/src/dex/index.ts +2 -0
  109. package/src/executor/Executor01BytecodeBuilder.ts +15 -11
  110. package/src/executor/Executor02BytecodeBuilder.ts +13 -9
  111. package/src/executor/Executor03BytecodeBuilder.ts +16 -9
  112. package/src/types.ts +1 -0
  113. package/tests/constants-e2e.ts +2 -2
  114. package/.vscode/launch.json +0 -53
  115. package/.vscode/settings.json +0 -2
  116. package/.vscode/tasks.json +0 -15
  117. package/build/abi/inception/inception-ratio-feed.json +0 -329
  118. package/build/abi/inception/inception-vault.json +0 -991
  119. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  120. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  121. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  122. package/build/abi/usual-m-wrapped-m/usualM.abi.json +0 -509
  123. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  124. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  125. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  126. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  127. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  128. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  129. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  130. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  131. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  132. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  133. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  134. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  135. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  136. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  137. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  138. package/build/dex/inception/config.d.ts +0 -4
  139. package/build/dex/inception/config.js +0 -109
  140. package/build/dex/inception/config.js.map +0 -1
  141. package/build/dex/inception/inception-event-pool.d.ts +0 -16
  142. package/build/dex/inception/inception-event-pool.js +0 -49
  143. package/build/dex/inception/inception-event-pool.js.map +0 -1
  144. package/build/dex/inception/inception.d.ts +0 -43
  145. package/build/dex/inception/inception.js +0 -180
  146. package/build/dex/inception/inception.js.map +0 -1
  147. package/build/dex/inception/tokens.d.ts +0 -9
  148. package/build/dex/inception/tokens.js +0 -28
  149. package/build/dex/inception/tokens.js.map +0 -1
  150. package/build/dex/inception/types.d.ts +0 -22
  151. package/build/dex/inception/types.js +0 -3
  152. package/build/dex/inception/types.js.map +0 -1
  153. package/build/dex/inception/utils.d.ts +0 -7
  154. package/build/dex/inception/utils.js +0 -58
  155. package/build/dex/inception/utils.js.map +0 -1
  156. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  157. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  158. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  159. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  160. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  161. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  162. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  163. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  164. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  165. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  166. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  167. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  168. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  169. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  170. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  171. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  172. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  173. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  174. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  175. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  176. package/build/dex/usual/types.d.ts +0 -13
  177. package/build/dex/usual/types.js +0 -3
  178. package/build/dex/usual/types.js.map +0 -1
  179. package/build/dex/usual/usual-bond.d.ts +0 -18
  180. package/build/dex/usual/usual-bond.js +0 -52
  181. package/build/dex/usual/usual-bond.js.map +0 -1
  182. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  183. package/build/dex/usual/usual-m-smart-m.js +0 -50
  184. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  185. package/build/dex/usual/usual-m-usd0.d.ts +0 -17
  186. package/build/dex/usual/usual-m-usd0.js +0 -51
  187. package/build/dex/usual/usual-m-usd0.js.map +0 -1
  188. package/build/dex/usual/usual-m-wrapped-m.d.ts +0 -17
  189. package/build/dex/usual/usual-m-wrapped-m.js +0 -50
  190. package/build/dex/usual/usual-m-wrapped-m.js.map +0 -1
  191. package/build/dex/usual/usual.d.ts +0 -27
  192. package/build/dex/usual/usual.js +0 -125
  193. package/build/dex/usual/usual.js.map +0 -1
  194. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  195. package/build/dex/usual-m-smart-m/config.js +0 -13
  196. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  197. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  198. package/build/dex/usual-m-smart-m/types.js +0 -3
  199. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  200. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  201. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  202. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  203. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  204. package/build/dex/usual-m-usd0/config.js +0 -14
  205. package/build/dex/usual-m-usd0/config.js.map +0 -1
  206. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  207. package/build/dex/usual-m-usd0/types.js +0 -3
  208. package/build/dex/usual-m-usd0/types.js.map +0 -1
  209. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  210. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  211. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  212. package/build/lib/pub-sub.d.ts +0 -35
  213. package/build/lib/pub-sub.js +0 -106
  214. package/build/lib/pub-sub.js.map +0 -1
@@ -1,1851 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.vaultExtensionAbi_V3 = void 0;
4
- exports.vaultExtensionAbi_V3 = [
5
- {
6
- inputs: [
7
- {
8
- internalType: 'contract IVault',
9
- name: 'mainVault',
10
- type: 'address',
11
- },
12
- {
13
- internalType: 'contract IVaultAdmin',
14
- name: 'vaultAdmin',
15
- type: 'address',
16
- },
17
- ],
18
- stateMutability: 'nonpayable',
19
- type: 'constructor',
20
- },
21
- {
22
- inputs: [{ internalType: 'address', name: 'target', type: 'address' }],
23
- name: 'AddressEmptyCode',
24
- type: 'error',
25
- },
26
- {
27
- inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
28
- name: 'AddressInsufficientBalance',
29
- type: 'error',
30
- },
31
- { inputs: [], name: 'AfterAddLiquidityHookFailed', type: 'error' },
32
- { inputs: [], name: 'AfterInitializeHookFailed', type: 'error' },
33
- { inputs: [], name: 'AfterRemoveLiquidityHookFailed', type: 'error' },
34
- { inputs: [], name: 'AfterSwapHookFailed', type: 'error' },
35
- { inputs: [], name: 'AmountGivenZero', type: 'error' },
36
- {
37
- inputs: [
38
- {
39
- internalType: 'contract IERC20',
40
- name: 'tokenIn',
41
- type: 'address',
42
- },
43
- { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
44
- { internalType: 'uint256', name: 'maxAmountIn', type: 'uint256' },
45
- ],
46
- name: 'AmountInAboveMax',
47
- type: 'error',
48
- },
49
- {
50
- inputs: [
51
- {
52
- internalType: 'contract IERC20',
53
- name: 'tokenOut',
54
- type: 'address',
55
- },
56
- { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
57
- { internalType: 'uint256', name: 'minAmountOut', type: 'uint256' },
58
- ],
59
- name: 'AmountOutBelowMin',
60
- type: 'error',
61
- },
62
- { inputs: [], name: 'BalanceNotSettled', type: 'error' },
63
- { inputs: [], name: 'BalanceOverflow', type: 'error' },
64
- { inputs: [], name: 'BeforeAddLiquidityHookFailed', type: 'error' },
65
- { inputs: [], name: 'BeforeInitializeHookFailed', type: 'error' },
66
- { inputs: [], name: 'BeforeRemoveLiquidityHookFailed', type: 'error' },
67
- { inputs: [], name: 'BeforeSwapHookFailed', type: 'error' },
68
- {
69
- inputs: [
70
- { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
71
- { internalType: 'uint256', name: 'maxAmountIn', type: 'uint256' },
72
- ],
73
- name: 'BptAmountInAboveMax',
74
- type: 'error',
75
- },
76
- {
77
- inputs: [
78
- { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
79
- { internalType: 'uint256', name: 'minAmountOut', type: 'uint256' },
80
- ],
81
- name: 'BptAmountOutBelowMin',
82
- type: 'error',
83
- },
84
- {
85
- inputs: [
86
- {
87
- internalType: 'contract IERC4626',
88
- name: 'wrappedToken',
89
- type: 'address',
90
- },
91
- ],
92
- name: 'BufferAlreadyInitialized',
93
- type: 'error',
94
- },
95
- {
96
- inputs: [
97
- {
98
- internalType: 'contract IERC4626',
99
- name: 'wrappedToken',
100
- type: 'address',
101
- },
102
- ],
103
- name: 'BufferNotInitialized',
104
- type: 'error',
105
- },
106
- { inputs: [], name: 'BufferSharesInvalidOwner', type: 'error' },
107
- { inputs: [], name: 'BufferSharesInvalidReceiver', type: 'error' },
108
- {
109
- inputs: [{ internalType: 'uint256', name: 'totalSupply', type: 'uint256' }],
110
- name: 'BufferTotalSupplyTooLow',
111
- type: 'error',
112
- },
113
- { inputs: [], name: 'CannotReceiveEth', type: 'error' },
114
- { inputs: [], name: 'CannotSwapSameToken', type: 'error' },
115
- { inputs: [], name: 'CodecOverflow', type: 'error' },
116
- { inputs: [], name: 'DoesNotSupportAddLiquidityCustom', type: 'error' },
117
- { inputs: [], name: 'DoesNotSupportDonation', type: 'error' },
118
- { inputs: [], name: 'DoesNotSupportRemoveLiquidityCustom', type: 'error' },
119
- { inputs: [], name: 'DoesNotSupportUnbalancedLiquidity', type: 'error' },
120
- { inputs: [], name: 'DynamicSwapFeeHookFailed', type: 'error' },
121
- {
122
- inputs: [
123
- { internalType: 'address', name: 'spender', type: 'address' },
124
- { internalType: 'uint256', name: 'allowance', type: 'uint256' },
125
- { internalType: 'uint256', name: 'needed', type: 'uint256' },
126
- ],
127
- name: 'ERC20InsufficientAllowance',
128
- type: 'error',
129
- },
130
- {
131
- inputs: [
132
- { internalType: 'address', name: 'sender', type: 'address' },
133
- { internalType: 'uint256', name: 'balance', type: 'uint256' },
134
- { internalType: 'uint256', name: 'needed', type: 'uint256' },
135
- ],
136
- name: 'ERC20InsufficientBalance',
137
- type: 'error',
138
- },
139
- {
140
- inputs: [{ internalType: 'address', name: 'approver', type: 'address' }],
141
- name: 'ERC20InvalidApprover',
142
- type: 'error',
143
- },
144
- {
145
- inputs: [{ internalType: 'address', name: 'receiver', type: 'address' }],
146
- name: 'ERC20InvalidReceiver',
147
- type: 'error',
148
- },
149
- {
150
- inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
151
- name: 'ERC20InvalidSender',
152
- type: 'error',
153
- },
154
- {
155
- inputs: [{ internalType: 'address', name: 'spender', type: 'address' }],
156
- name: 'ERC20InvalidSpender',
157
- type: 'error',
158
- },
159
- { inputs: [], name: 'ErrorSelectorNotFound', type: 'error' },
160
- { inputs: [], name: 'FailedInnerCall', type: 'error' },
161
- { inputs: [], name: 'FeePrecisionTooHigh', type: 'error' },
162
- {
163
- inputs: [
164
- {
165
- internalType: 'contract IERC20',
166
- name: 'tokenIn',
167
- type: 'address',
168
- },
169
- { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
170
- { internalType: 'uint256', name: 'maxAmountIn', type: 'uint256' },
171
- ],
172
- name: 'HookAdjustedAmountInAboveMax',
173
- type: 'error',
174
- },
175
- {
176
- inputs: [
177
- {
178
- internalType: 'contract IERC20',
179
- name: 'tokenOut',
180
- type: 'address',
181
- },
182
- { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
183
- { internalType: 'uint256', name: 'minAmountOut', type: 'uint256' },
184
- ],
185
- name: 'HookAdjustedAmountOutBelowMin',
186
- type: 'error',
187
- },
188
- {
189
- inputs: [
190
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
191
- { internalType: 'uint256', name: 'limit', type: 'uint256' },
192
- ],
193
- name: 'HookAdjustedSwapLimit',
194
- type: 'error',
195
- },
196
- {
197
- inputs: [
198
- {
199
- internalType: 'address',
200
- name: 'poolHooksContract',
201
- type: 'address',
202
- },
203
- { internalType: 'address', name: 'pool', type: 'address' },
204
- { internalType: 'address', name: 'poolFactory', type: 'address' },
205
- ],
206
- name: 'HookRegistrationFailed',
207
- type: 'error',
208
- },
209
- { inputs: [], name: 'InputLengthMismatch', type: 'error' },
210
- { inputs: [], name: 'InvalidAddLiquidityKind', type: 'error' },
211
- { inputs: [], name: 'InvalidRemoveLiquidityKind', type: 'error' },
212
- { inputs: [], name: 'InvalidToken', type: 'error' },
213
- { inputs: [], name: 'InvalidTokenConfiguration', type: 'error' },
214
- { inputs: [], name: 'InvalidTokenType', type: 'error' },
215
- {
216
- inputs: [
217
- {
218
- internalType: 'contract IERC4626',
219
- name: 'wrappedToken',
220
- type: 'address',
221
- },
222
- ],
223
- name: 'InvalidUnderlyingToken',
224
- type: 'error',
225
- },
226
- { inputs: [], name: 'MaxTokens', type: 'error' },
227
- { inputs: [], name: 'MinTokens', type: 'error' },
228
- { inputs: [], name: 'NotEnoughBufferShares', type: 'error' },
229
- {
230
- inputs: [
231
- {
232
- internalType: 'contract IERC4626',
233
- name: 'wrappedToken',
234
- type: 'address',
235
- },
236
- {
237
- internalType: 'uint256',
238
- name: 'expectedUnderlyingAmount',
239
- type: 'uint256',
240
- },
241
- {
242
- internalType: 'uint256',
243
- name: 'actualUnderlyingAmount',
244
- type: 'uint256',
245
- },
246
- ],
247
- name: 'NotEnoughUnderlying',
248
- type: 'error',
249
- },
250
- {
251
- inputs: [
252
- {
253
- internalType: 'contract IERC4626',
254
- name: 'wrappedToken',
255
- type: 'address',
256
- },
257
- {
258
- internalType: 'uint256',
259
- name: 'expectedWrappedAmount',
260
- type: 'uint256',
261
- },
262
- {
263
- internalType: 'uint256',
264
- name: 'actualWrappedAmount',
265
- type: 'uint256',
266
- },
267
- ],
268
- name: 'NotEnoughWrapped',
269
- type: 'error',
270
- },
271
- { inputs: [], name: 'NotStaticCall', type: 'error' },
272
- { inputs: [], name: 'NotVaultDelegateCall', type: 'error' },
273
- { inputs: [], name: 'OutOfBounds', type: 'error' },
274
- { inputs: [], name: 'PauseBufferPeriodDurationTooLarge', type: 'error' },
275
- { inputs: [], name: 'PercentageAboveMax', type: 'error' },
276
- {
277
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
278
- name: 'PoolAlreadyInitialized',
279
- type: 'error',
280
- },
281
- {
282
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
283
- name: 'PoolAlreadyRegistered',
284
- type: 'error',
285
- },
286
- {
287
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
288
- name: 'PoolInRecoveryMode',
289
- type: 'error',
290
- },
291
- {
292
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
293
- name: 'PoolNotInRecoveryMode',
294
- type: 'error',
295
- },
296
- {
297
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
298
- name: 'PoolNotInitialized',
299
- type: 'error',
300
- },
301
- {
302
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
303
- name: 'PoolNotPaused',
304
- type: 'error',
305
- },
306
- {
307
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
308
- name: 'PoolNotRegistered',
309
- type: 'error',
310
- },
311
- {
312
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
313
- name: 'PoolPauseWindowExpired',
314
- type: 'error',
315
- },
316
- {
317
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
318
- name: 'PoolPaused',
319
- type: 'error',
320
- },
321
- {
322
- inputs: [{ internalType: 'uint256', name: 'totalSupply', type: 'uint256' }],
323
- name: 'PoolTotalSupplyTooLow',
324
- type: 'error',
325
- },
326
- { inputs: [], name: 'ProtocolFeesExceedTotalCollected', type: 'error' },
327
- { inputs: [], name: 'QueriesDisabled', type: 'error' },
328
- { inputs: [], name: 'QuoteResultSpoofed', type: 'error' },
329
- { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },
330
- {
331
- inputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }],
332
- name: 'Result',
333
- type: 'error',
334
- },
335
- { inputs: [], name: 'RouterNotTrusted', type: 'error' },
336
- {
337
- inputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }],
338
- name: 'SafeCastOverflowedUintToInt',
339
- type: 'error',
340
- },
341
- {
342
- inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
343
- name: 'SenderIsNotVault',
344
- type: 'error',
345
- },
346
- { inputs: [], name: 'SwapFeePercentageTooHigh', type: 'error' },
347
- { inputs: [], name: 'SwapFeePercentageTooLow', type: 'error' },
348
- {
349
- inputs: [
350
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
351
- { internalType: 'uint256', name: 'limit', type: 'uint256' },
352
- ],
353
- name: 'SwapLimit',
354
- type: 'error',
355
- },
356
- {
357
- inputs: [
358
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
359
- ],
360
- name: 'TokenAlreadyRegistered',
361
- type: 'error',
362
- },
363
- {
364
- inputs: [
365
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
366
- ],
367
- name: 'TokenNotRegistered',
368
- type: 'error',
369
- },
370
- {
371
- inputs: [
372
- { internalType: 'address', name: 'pool', type: 'address' },
373
- { internalType: 'address', name: 'expectedToken', type: 'address' },
374
- { internalType: 'address', name: 'actualToken', type: 'address' },
375
- ],
376
- name: 'TokensMismatch',
377
- type: 'error',
378
- },
379
- { inputs: [], name: 'TokensNotSorted', type: 'error' },
380
- { inputs: [], name: 'TradeAmountTooSmall', type: 'error' },
381
- { inputs: [], name: 'VaultBuffersArePaused', type: 'error' },
382
- { inputs: [], name: 'VaultIsNotUnlocked', type: 'error' },
383
- { inputs: [], name: 'VaultNotPaused', type: 'error' },
384
- { inputs: [], name: 'VaultPauseWindowDurationTooLarge', type: 'error' },
385
- { inputs: [], name: 'VaultPauseWindowExpired', type: 'error' },
386
- { inputs: [], name: 'VaultPaused', type: 'error' },
387
- {
388
- inputs: [
389
- {
390
- internalType: 'contract IERC4626',
391
- name: 'wrappedToken',
392
- type: 'address',
393
- },
394
- ],
395
- name: 'WrapAmountTooSmall',
396
- type: 'error',
397
- },
398
- { inputs: [], name: 'WrongProtocolFeeControllerDeployment', type: 'error' },
399
- {
400
- inputs: [
401
- {
402
- internalType: 'contract IERC4626',
403
- name: 'wrappedToken',
404
- type: 'address',
405
- },
406
- {
407
- internalType: 'address',
408
- name: 'underlyingToken',
409
- type: 'address',
410
- },
411
- ],
412
- name: 'WrongUnderlyingToken',
413
- type: 'error',
414
- },
415
- { inputs: [], name: 'WrongVaultAdminDeployment', type: 'error' },
416
- { inputs: [], name: 'WrongVaultExtensionDeployment', type: 'error' },
417
- {
418
- anonymous: false,
419
- inputs: [
420
- {
421
- indexed: true,
422
- internalType: 'address',
423
- name: 'pool',
424
- type: 'address',
425
- },
426
- {
427
- indexed: false,
428
- internalType: 'uint256',
429
- name: 'aggregateSwapFeePercentage',
430
- type: 'uint256',
431
- },
432
- ],
433
- name: 'AggregateSwapFeePercentageChanged',
434
- type: 'event',
435
- },
436
- {
437
- anonymous: false,
438
- inputs: [
439
- {
440
- indexed: true,
441
- internalType: 'address',
442
- name: 'pool',
443
- type: 'address',
444
- },
445
- {
446
- indexed: false,
447
- internalType: 'uint256',
448
- name: 'aggregateYieldFeePercentage',
449
- type: 'uint256',
450
- },
451
- ],
452
- name: 'AggregateYieldFeePercentageChanged',
453
- type: 'event',
454
- },
455
- {
456
- anonymous: false,
457
- inputs: [
458
- {
459
- indexed: true,
460
- internalType: 'address',
461
- name: 'pool',
462
- type: 'address',
463
- },
464
- {
465
- indexed: true,
466
- internalType: 'address',
467
- name: 'owner',
468
- type: 'address',
469
- },
470
- {
471
- indexed: true,
472
- internalType: 'address',
473
- name: 'spender',
474
- type: 'address',
475
- },
476
- {
477
- indexed: false,
478
- internalType: 'uint256',
479
- name: 'value',
480
- type: 'uint256',
481
- },
482
- ],
483
- name: 'Approval',
484
- type: 'event',
485
- },
486
- {
487
- anonymous: false,
488
- inputs: [
489
- {
490
- indexed: true,
491
- internalType: 'contract IAuthorizer',
492
- name: 'newAuthorizer',
493
- type: 'address',
494
- },
495
- ],
496
- name: 'AuthorizerChanged',
497
- type: 'event',
498
- },
499
- {
500
- anonymous: false,
501
- inputs: [
502
- {
503
- indexed: true,
504
- internalType: 'contract IERC4626',
505
- name: 'wrappedToken',
506
- type: 'address',
507
- },
508
- {
509
- indexed: true,
510
- internalType: 'address',
511
- name: 'from',
512
- type: 'address',
513
- },
514
- {
515
- indexed: false,
516
- internalType: 'uint256',
517
- name: 'burnedShares',
518
- type: 'uint256',
519
- },
520
- ],
521
- name: 'BufferSharesBurned',
522
- type: 'event',
523
- },
524
- {
525
- anonymous: false,
526
- inputs: [
527
- {
528
- indexed: true,
529
- internalType: 'contract IERC4626',
530
- name: 'wrappedToken',
531
- type: 'address',
532
- },
533
- {
534
- indexed: true,
535
- internalType: 'address',
536
- name: 'to',
537
- type: 'address',
538
- },
539
- {
540
- indexed: false,
541
- internalType: 'uint256',
542
- name: 'issuedShares',
543
- type: 'uint256',
544
- },
545
- ],
546
- name: 'BufferSharesMinted',
547
- type: 'event',
548
- },
549
- {
550
- anonymous: false,
551
- inputs: [
552
- {
553
- indexed: true,
554
- internalType: 'contract IERC4626',
555
- name: 'wrappedToken',
556
- type: 'address',
557
- },
558
- {
559
- indexed: false,
560
- internalType: 'uint256',
561
- name: 'amountUnderlying',
562
- type: 'uint256',
563
- },
564
- {
565
- indexed: false,
566
- internalType: 'uint256',
567
- name: 'amountWrapped',
568
- type: 'uint256',
569
- },
570
- ],
571
- name: 'LiquidityAddedToBuffer',
572
- type: 'event',
573
- },
574
- {
575
- anonymous: false,
576
- inputs: [
577
- {
578
- indexed: true,
579
- internalType: 'contract IERC4626',
580
- name: 'wrappedToken',
581
- type: 'address',
582
- },
583
- {
584
- indexed: false,
585
- internalType: 'uint256',
586
- name: 'amountUnderlying',
587
- type: 'uint256',
588
- },
589
- {
590
- indexed: false,
591
- internalType: 'uint256',
592
- name: 'amountWrapped',
593
- type: 'uint256',
594
- },
595
- ],
596
- name: 'LiquidityRemovedFromBuffer',
597
- type: 'event',
598
- },
599
- {
600
- anonymous: false,
601
- inputs: [
602
- {
603
- indexed: true,
604
- internalType: 'address',
605
- name: 'pool',
606
- type: 'address',
607
- },
608
- {
609
- indexed: true,
610
- internalType: 'address',
611
- name: 'liquidityProvider',
612
- type: 'address',
613
- },
614
- {
615
- indexed: false,
616
- internalType: 'uint256',
617
- name: 'totalSupply',
618
- type: 'uint256',
619
- },
620
- {
621
- indexed: false,
622
- internalType: 'int256[]',
623
- name: 'deltas',
624
- type: 'int256[]',
625
- },
626
- {
627
- indexed: false,
628
- internalType: 'uint256[]',
629
- name: 'swapFeeAmountsRaw',
630
- type: 'uint256[]',
631
- },
632
- ],
633
- name: 'PoolBalanceChanged',
634
- type: 'event',
635
- },
636
- {
637
- anonymous: false,
638
- inputs: [
639
- {
640
- indexed: true,
641
- internalType: 'address',
642
- name: 'pool',
643
- type: 'address',
644
- },
645
- ],
646
- name: 'PoolInitialized',
647
- type: 'event',
648
- },
649
- {
650
- anonymous: false,
651
- inputs: [
652
- {
653
- indexed: true,
654
- internalType: 'address',
655
- name: 'pool',
656
- type: 'address',
657
- },
658
- {
659
- indexed: false,
660
- internalType: 'bool',
661
- name: 'paused',
662
- type: 'bool',
663
- },
664
- ],
665
- name: 'PoolPausedStateChanged',
666
- type: 'event',
667
- },
668
- {
669
- anonymous: false,
670
- inputs: [
671
- {
672
- indexed: true,
673
- internalType: 'address',
674
- name: 'pool',
675
- type: 'address',
676
- },
677
- {
678
- indexed: false,
679
- internalType: 'bool',
680
- name: 'recoveryMode',
681
- type: 'bool',
682
- },
683
- ],
684
- name: 'PoolRecoveryModeStateChanged',
685
- type: 'event',
686
- },
687
- {
688
- anonymous: false,
689
- inputs: [
690
- {
691
- indexed: true,
692
- internalType: 'address',
693
- name: 'pool',
694
- type: 'address',
695
- },
696
- {
697
- indexed: true,
698
- internalType: 'address',
699
- name: 'factory',
700
- type: 'address',
701
- },
702
- {
703
- components: [
704
- {
705
- internalType: 'contract IERC20',
706
- name: 'token',
707
- type: 'address',
708
- },
709
- {
710
- internalType: 'enum TokenType',
711
- name: 'tokenType',
712
- type: 'uint8',
713
- },
714
- {
715
- internalType: 'contract IRateProvider',
716
- name: 'rateProvider',
717
- type: 'address',
718
- },
719
- {
720
- internalType: 'bool',
721
- name: 'paysYieldFees',
722
- type: 'bool',
723
- },
724
- ],
725
- indexed: false,
726
- internalType: 'struct TokenConfig[]',
727
- name: 'tokenConfig',
728
- type: 'tuple[]',
729
- },
730
- {
731
- indexed: false,
732
- internalType: 'uint256',
733
- name: 'swapFeePercentage',
734
- type: 'uint256',
735
- },
736
- {
737
- indexed: false,
738
- internalType: 'uint32',
739
- name: 'pauseWindowEndTime',
740
- type: 'uint32',
741
- },
742
- {
743
- components: [
744
- {
745
- internalType: 'address',
746
- name: 'pauseManager',
747
- type: 'address',
748
- },
749
- {
750
- internalType: 'address',
751
- name: 'swapFeeManager',
752
- type: 'address',
753
- },
754
- {
755
- internalType: 'address',
756
- name: 'poolCreator',
757
- type: 'address',
758
- },
759
- ],
760
- indexed: false,
761
- internalType: 'struct PoolRoleAccounts',
762
- name: 'roleAccounts',
763
- type: 'tuple',
764
- },
765
- {
766
- components: [
767
- {
768
- internalType: 'bool',
769
- name: 'enableHookAdjustedAmounts',
770
- type: 'bool',
771
- },
772
- {
773
- internalType: 'bool',
774
- name: 'shouldCallBeforeInitialize',
775
- type: 'bool',
776
- },
777
- {
778
- internalType: 'bool',
779
- name: 'shouldCallAfterInitialize',
780
- type: 'bool',
781
- },
782
- {
783
- internalType: 'bool',
784
- name: 'shouldCallComputeDynamicSwapFee',
785
- type: 'bool',
786
- },
787
- {
788
- internalType: 'bool',
789
- name: 'shouldCallBeforeSwap',
790
- type: 'bool',
791
- },
792
- {
793
- internalType: 'bool',
794
- name: 'shouldCallAfterSwap',
795
- type: 'bool',
796
- },
797
- {
798
- internalType: 'bool',
799
- name: 'shouldCallBeforeAddLiquidity',
800
- type: 'bool',
801
- },
802
- {
803
- internalType: 'bool',
804
- name: 'shouldCallAfterAddLiquidity',
805
- type: 'bool',
806
- },
807
- {
808
- internalType: 'bool',
809
- name: 'shouldCallBeforeRemoveLiquidity',
810
- type: 'bool',
811
- },
812
- {
813
- internalType: 'bool',
814
- name: 'shouldCallAfterRemoveLiquidity',
815
- type: 'bool',
816
- },
817
- {
818
- internalType: 'address',
819
- name: 'hooksContract',
820
- type: 'address',
821
- },
822
- ],
823
- indexed: false,
824
- internalType: 'struct HooksConfig',
825
- name: 'hooksConfig',
826
- type: 'tuple',
827
- },
828
- {
829
- components: [
830
- {
831
- internalType: 'bool',
832
- name: 'disableUnbalancedLiquidity',
833
- type: 'bool',
834
- },
835
- {
836
- internalType: 'bool',
837
- name: 'enableAddLiquidityCustom',
838
- type: 'bool',
839
- },
840
- {
841
- internalType: 'bool',
842
- name: 'enableRemoveLiquidityCustom',
843
- type: 'bool',
844
- },
845
- {
846
- internalType: 'bool',
847
- name: 'enableDonation',
848
- type: 'bool',
849
- },
850
- ],
851
- indexed: false,
852
- internalType: 'struct LiquidityManagement',
853
- name: 'liquidityManagement',
854
- type: 'tuple',
855
- },
856
- ],
857
- name: 'PoolRegistered',
858
- type: 'event',
859
- },
860
- {
861
- anonymous: false,
862
- inputs: [
863
- {
864
- indexed: true,
865
- internalType: 'contract IProtocolFeeController',
866
- name: 'newProtocolFeeController',
867
- type: 'address',
868
- },
869
- ],
870
- name: 'ProtocolFeeControllerChanged',
871
- type: 'event',
872
- },
873
- {
874
- anonymous: false,
875
- inputs: [
876
- {
877
- indexed: true,
878
- internalType: 'address',
879
- name: 'pool',
880
- type: 'address',
881
- },
882
- {
883
- indexed: true,
884
- internalType: 'contract IERC20',
885
- name: 'tokenIn',
886
- type: 'address',
887
- },
888
- {
889
- indexed: true,
890
- internalType: 'contract IERC20',
891
- name: 'tokenOut',
892
- type: 'address',
893
- },
894
- {
895
- indexed: false,
896
- internalType: 'uint256',
897
- name: 'amountIn',
898
- type: 'uint256',
899
- },
900
- {
901
- indexed: false,
902
- internalType: 'uint256',
903
- name: 'amountOut',
904
- type: 'uint256',
905
- },
906
- {
907
- indexed: false,
908
- internalType: 'uint256',
909
- name: 'swapFeePercentage',
910
- type: 'uint256',
911
- },
912
- {
913
- indexed: false,
914
- internalType: 'uint256',
915
- name: 'swapFeeAmount',
916
- type: 'uint256',
917
- },
918
- ],
919
- name: 'Swap',
920
- type: 'event',
921
- },
922
- {
923
- anonymous: false,
924
- inputs: [
925
- {
926
- indexed: true,
927
- internalType: 'address',
928
- name: 'pool',
929
- type: 'address',
930
- },
931
- {
932
- indexed: false,
933
- internalType: 'uint256',
934
- name: 'swapFeePercentage',
935
- type: 'uint256',
936
- },
937
- ],
938
- name: 'SwapFeePercentageChanged',
939
- type: 'event',
940
- },
941
- {
942
- anonymous: false,
943
- inputs: [
944
- {
945
- indexed: true,
946
- internalType: 'address',
947
- name: 'pool',
948
- type: 'address',
949
- },
950
- {
951
- indexed: true,
952
- internalType: 'address',
953
- name: 'from',
954
- type: 'address',
955
- },
956
- {
957
- indexed: true,
958
- internalType: 'address',
959
- name: 'to',
960
- type: 'address',
961
- },
962
- {
963
- indexed: false,
964
- internalType: 'uint256',
965
- name: 'value',
966
- type: 'uint256',
967
- },
968
- ],
969
- name: 'Transfer',
970
- type: 'event',
971
- },
972
- {
973
- anonymous: false,
974
- inputs: [
975
- {
976
- indexed: true,
977
- internalType: 'contract IERC4626',
978
- name: 'wrappedToken',
979
- type: 'address',
980
- },
981
- {
982
- indexed: true,
983
- internalType: 'contract IERC20',
984
- name: 'underlyingToken',
985
- type: 'address',
986
- },
987
- {
988
- indexed: false,
989
- internalType: 'uint256',
990
- name: 'burnedShares',
991
- type: 'uint256',
992
- },
993
- {
994
- indexed: false,
995
- internalType: 'uint256',
996
- name: 'withdrawnUnderlying',
997
- type: 'uint256',
998
- },
999
- ],
1000
- name: 'Unwrap',
1001
- type: 'event',
1002
- },
1003
- {
1004
- anonymous: false,
1005
- inputs: [
1006
- {
1007
- indexed: false,
1008
- internalType: 'bool',
1009
- name: 'paused',
1010
- type: 'bool',
1011
- },
1012
- ],
1013
- name: 'VaultBuffersPausedStateChanged',
1014
- type: 'event',
1015
- },
1016
- {
1017
- anonymous: false,
1018
- inputs: [
1019
- {
1020
- indexed: false,
1021
- internalType: 'bool',
1022
- name: 'paused',
1023
- type: 'bool',
1024
- },
1025
- ],
1026
- name: 'VaultPausedStateChanged',
1027
- type: 'event',
1028
- },
1029
- {
1030
- anonymous: false,
1031
- inputs: [],
1032
- name: 'VaultQueriesDisabled',
1033
- type: 'event',
1034
- },
1035
- {
1036
- anonymous: false,
1037
- inputs: [
1038
- {
1039
- indexed: true,
1040
- internalType: 'contract IERC20',
1041
- name: 'underlyingToken',
1042
- type: 'address',
1043
- },
1044
- {
1045
- indexed: true,
1046
- internalType: 'contract IERC4626',
1047
- name: 'wrappedToken',
1048
- type: 'address',
1049
- },
1050
- {
1051
- indexed: false,
1052
- internalType: 'uint256',
1053
- name: 'depositedUnderlying',
1054
- type: 'uint256',
1055
- },
1056
- {
1057
- indexed: false,
1058
- internalType: 'uint256',
1059
- name: 'mintedShares',
1060
- type: 'uint256',
1061
- },
1062
- ],
1063
- name: 'Wrap',
1064
- type: 'event',
1065
- },
1066
- { stateMutability: 'payable', type: 'fallback' },
1067
- {
1068
- inputs: [
1069
- { internalType: 'address', name: 'token', type: 'address' },
1070
- { internalType: 'address', name: 'owner', type: 'address' },
1071
- { internalType: 'address', name: 'spender', type: 'address' },
1072
- ],
1073
- name: 'allowance',
1074
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1075
- stateMutability: 'view',
1076
- type: 'function',
1077
- },
1078
- {
1079
- inputs: [
1080
- { internalType: 'address', name: 'owner', type: 'address' },
1081
- { internalType: 'address', name: 'spender', type: 'address' },
1082
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
1083
- ],
1084
- name: 'approve',
1085
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1086
- stateMutability: 'nonpayable',
1087
- type: 'function',
1088
- },
1089
- {
1090
- inputs: [
1091
- { internalType: 'address', name: 'token', type: 'address' },
1092
- { internalType: 'address', name: 'account', type: 'address' },
1093
- ],
1094
- name: 'balanceOf',
1095
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1096
- stateMutability: 'view',
1097
- type: 'function',
1098
- },
1099
- {
1100
- inputs: [
1101
- { internalType: 'address', name: 'pool', type: 'address' },
1102
- {
1103
- components: [
1104
- {
1105
- internalType: 'enum SwapKind',
1106
- name: 'kind',
1107
- type: 'uint8',
1108
- },
1109
- {
1110
- internalType: 'uint256',
1111
- name: 'amountGivenScaled18',
1112
- type: 'uint256',
1113
- },
1114
- {
1115
- internalType: 'uint256[]',
1116
- name: 'balancesScaled18',
1117
- type: 'uint256[]',
1118
- },
1119
- {
1120
- internalType: 'uint256',
1121
- name: 'indexIn',
1122
- type: 'uint256',
1123
- },
1124
- {
1125
- internalType: 'uint256',
1126
- name: 'indexOut',
1127
- type: 'uint256',
1128
- },
1129
- {
1130
- internalType: 'address',
1131
- name: 'router',
1132
- type: 'address',
1133
- },
1134
- { internalType: 'bytes', name: 'userData', type: 'bytes' },
1135
- ],
1136
- internalType: 'struct PoolSwapParams',
1137
- name: 'swapParams',
1138
- type: 'tuple',
1139
- },
1140
- ],
1141
- name: 'computeDynamicSwapFeePercentage',
1142
- outputs: [
1143
- {
1144
- internalType: 'uint256',
1145
- name: 'dynamicSwapFeePercentage',
1146
- type: 'uint256',
1147
- },
1148
- ],
1149
- stateMutability: 'view',
1150
- type: 'function',
1151
- },
1152
- {
1153
- inputs: [
1154
- { internalType: 'address', name: 'pool', type: 'address' },
1155
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
1156
- ],
1157
- name: 'getAggregateSwapFeeAmount',
1158
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1159
- stateMutability: 'view',
1160
- type: 'function',
1161
- },
1162
- {
1163
- inputs: [
1164
- { internalType: 'address', name: 'pool', type: 'address' },
1165
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
1166
- ],
1167
- name: 'getAggregateYieldFeeAmount',
1168
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1169
- stateMutability: 'view',
1170
- type: 'function',
1171
- },
1172
- {
1173
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1174
- name: 'getBptRate',
1175
- outputs: [{ internalType: 'uint256', name: 'rate', type: 'uint256' }],
1176
- stateMutability: 'view',
1177
- type: 'function',
1178
- },
1179
- {
1180
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1181
- name: 'getCurrentLiveBalances',
1182
- outputs: [
1183
- {
1184
- internalType: 'uint256[]',
1185
- name: 'balancesLiveScaled18',
1186
- type: 'uint256[]',
1187
- },
1188
- ],
1189
- stateMutability: 'view',
1190
- type: 'function',
1191
- },
1192
- {
1193
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1194
- name: 'getHooksConfig',
1195
- outputs: [
1196
- {
1197
- components: [
1198
- {
1199
- internalType: 'bool',
1200
- name: 'enableHookAdjustedAmounts',
1201
- type: 'bool',
1202
- },
1203
- {
1204
- internalType: 'bool',
1205
- name: 'shouldCallBeforeInitialize',
1206
- type: 'bool',
1207
- },
1208
- {
1209
- internalType: 'bool',
1210
- name: 'shouldCallAfterInitialize',
1211
- type: 'bool',
1212
- },
1213
- {
1214
- internalType: 'bool',
1215
- name: 'shouldCallComputeDynamicSwapFee',
1216
- type: 'bool',
1217
- },
1218
- {
1219
- internalType: 'bool',
1220
- name: 'shouldCallBeforeSwap',
1221
- type: 'bool',
1222
- },
1223
- {
1224
- internalType: 'bool',
1225
- name: 'shouldCallAfterSwap',
1226
- type: 'bool',
1227
- },
1228
- {
1229
- internalType: 'bool',
1230
- name: 'shouldCallBeforeAddLiquidity',
1231
- type: 'bool',
1232
- },
1233
- {
1234
- internalType: 'bool',
1235
- name: 'shouldCallAfterAddLiquidity',
1236
- type: 'bool',
1237
- },
1238
- {
1239
- internalType: 'bool',
1240
- name: 'shouldCallBeforeRemoveLiquidity',
1241
- type: 'bool',
1242
- },
1243
- {
1244
- internalType: 'bool',
1245
- name: 'shouldCallAfterRemoveLiquidity',
1246
- type: 'bool',
1247
- },
1248
- {
1249
- internalType: 'address',
1250
- name: 'hooksContract',
1251
- type: 'address',
1252
- },
1253
- ],
1254
- internalType: 'struct HooksConfig',
1255
- name: '',
1256
- type: 'tuple',
1257
- },
1258
- ],
1259
- stateMutability: 'view',
1260
- type: 'function',
1261
- },
1262
- {
1263
- inputs: [],
1264
- name: 'getNonzeroDeltaCount',
1265
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1266
- stateMutability: 'view',
1267
- type: 'function',
1268
- },
1269
- {
1270
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1271
- name: 'getPoolConfig',
1272
- outputs: [
1273
- {
1274
- components: [
1275
- {
1276
- components: [
1277
- {
1278
- internalType: 'bool',
1279
- name: 'disableUnbalancedLiquidity',
1280
- type: 'bool',
1281
- },
1282
- {
1283
- internalType: 'bool',
1284
- name: 'enableAddLiquidityCustom',
1285
- type: 'bool',
1286
- },
1287
- {
1288
- internalType: 'bool',
1289
- name: 'enableRemoveLiquidityCustom',
1290
- type: 'bool',
1291
- },
1292
- {
1293
- internalType: 'bool',
1294
- name: 'enableDonation',
1295
- type: 'bool',
1296
- },
1297
- ],
1298
- internalType: 'struct LiquidityManagement',
1299
- name: 'liquidityManagement',
1300
- type: 'tuple',
1301
- },
1302
- {
1303
- internalType: 'uint256',
1304
- name: 'staticSwapFeePercentage',
1305
- type: 'uint256',
1306
- },
1307
- {
1308
- internalType: 'uint256',
1309
- name: 'aggregateSwapFeePercentage',
1310
- type: 'uint256',
1311
- },
1312
- {
1313
- internalType: 'uint256',
1314
- name: 'aggregateYieldFeePercentage',
1315
- type: 'uint256',
1316
- },
1317
- {
1318
- internalType: 'uint40',
1319
- name: 'tokenDecimalDiffs',
1320
- type: 'uint40',
1321
- },
1322
- {
1323
- internalType: 'uint32',
1324
- name: 'pauseWindowEndTime',
1325
- type: 'uint32',
1326
- },
1327
- {
1328
- internalType: 'bool',
1329
- name: 'isPoolRegistered',
1330
- type: 'bool',
1331
- },
1332
- {
1333
- internalType: 'bool',
1334
- name: 'isPoolInitialized',
1335
- type: 'bool',
1336
- },
1337
- {
1338
- internalType: 'bool',
1339
- name: 'isPoolPaused',
1340
- type: 'bool',
1341
- },
1342
- {
1343
- internalType: 'bool',
1344
- name: 'isPoolInRecoveryMode',
1345
- type: 'bool',
1346
- },
1347
- ],
1348
- internalType: 'struct PoolConfig',
1349
- name: '',
1350
- type: 'tuple',
1351
- },
1352
- ],
1353
- stateMutability: 'view',
1354
- type: 'function',
1355
- },
1356
- {
1357
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1358
- name: 'getPoolData',
1359
- outputs: [
1360
- {
1361
- components: [
1362
- {
1363
- internalType: 'PoolConfigBits',
1364
- name: 'poolConfigBits',
1365
- type: 'bytes32',
1366
- },
1367
- {
1368
- internalType: 'contract IERC20[]',
1369
- name: 'tokens',
1370
- type: 'address[]',
1371
- },
1372
- {
1373
- components: [
1374
- {
1375
- internalType: 'enum TokenType',
1376
- name: 'tokenType',
1377
- type: 'uint8',
1378
- },
1379
- {
1380
- internalType: 'contract IRateProvider',
1381
- name: 'rateProvider',
1382
- type: 'address',
1383
- },
1384
- {
1385
- internalType: 'bool',
1386
- name: 'paysYieldFees',
1387
- type: 'bool',
1388
- },
1389
- ],
1390
- internalType: 'struct TokenInfo[]',
1391
- name: 'tokenInfo',
1392
- type: 'tuple[]',
1393
- },
1394
- {
1395
- internalType: 'uint256[]',
1396
- name: 'balancesRaw',
1397
- type: 'uint256[]',
1398
- },
1399
- {
1400
- internalType: 'uint256[]',
1401
- name: 'balancesLiveScaled18',
1402
- type: 'uint256[]',
1403
- },
1404
- {
1405
- internalType: 'uint256[]',
1406
- name: 'tokenRates',
1407
- type: 'uint256[]',
1408
- },
1409
- {
1410
- internalType: 'uint256[]',
1411
- name: 'decimalScalingFactors',
1412
- type: 'uint256[]',
1413
- },
1414
- ],
1415
- internalType: 'struct PoolData',
1416
- name: '',
1417
- type: 'tuple',
1418
- },
1419
- ],
1420
- stateMutability: 'view',
1421
- type: 'function',
1422
- },
1423
- {
1424
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1425
- name: 'getPoolPausedState',
1426
- outputs: [
1427
- { internalType: 'bool', name: '', type: 'bool' },
1428
- { internalType: 'uint32', name: '', type: 'uint32' },
1429
- { internalType: 'uint32', name: '', type: 'uint32' },
1430
- { internalType: 'address', name: '', type: 'address' },
1431
- ],
1432
- stateMutability: 'view',
1433
- type: 'function',
1434
- },
1435
- {
1436
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1437
- name: 'getPoolRoleAccounts',
1438
- outputs: [
1439
- {
1440
- components: [
1441
- {
1442
- internalType: 'address',
1443
- name: 'pauseManager',
1444
- type: 'address',
1445
- },
1446
- {
1447
- internalType: 'address',
1448
- name: 'swapFeeManager',
1449
- type: 'address',
1450
- },
1451
- {
1452
- internalType: 'address',
1453
- name: 'poolCreator',
1454
- type: 'address',
1455
- },
1456
- ],
1457
- internalType: 'struct PoolRoleAccounts',
1458
- name: '',
1459
- type: 'tuple',
1460
- },
1461
- ],
1462
- stateMutability: 'view',
1463
- type: 'function',
1464
- },
1465
- {
1466
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1467
- name: 'getPoolTokenInfo',
1468
- outputs: [
1469
- {
1470
- internalType: 'contract IERC20[]',
1471
- name: 'tokens',
1472
- type: 'address[]',
1473
- },
1474
- {
1475
- components: [
1476
- {
1477
- internalType: 'enum TokenType',
1478
- name: 'tokenType',
1479
- type: 'uint8',
1480
- },
1481
- {
1482
- internalType: 'contract IRateProvider',
1483
- name: 'rateProvider',
1484
- type: 'address',
1485
- },
1486
- {
1487
- internalType: 'bool',
1488
- name: 'paysYieldFees',
1489
- type: 'bool',
1490
- },
1491
- ],
1492
- internalType: 'struct TokenInfo[]',
1493
- name: 'tokenInfo',
1494
- type: 'tuple[]',
1495
- },
1496
- {
1497
- internalType: 'uint256[]',
1498
- name: 'balancesRaw',
1499
- type: 'uint256[]',
1500
- },
1501
- {
1502
- internalType: 'uint256[]',
1503
- name: 'lastBalancesLiveScaled18',
1504
- type: 'uint256[]',
1505
- },
1506
- ],
1507
- stateMutability: 'view',
1508
- type: 'function',
1509
- },
1510
- {
1511
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1512
- name: 'getPoolTokenRates',
1513
- outputs: [
1514
- {
1515
- internalType: 'uint256[]',
1516
- name: 'decimalScalingFactors',
1517
- type: 'uint256[]',
1518
- },
1519
- {
1520
- internalType: 'uint256[]',
1521
- name: 'tokenRates',
1522
- type: 'uint256[]',
1523
- },
1524
- ],
1525
- stateMutability: 'view',
1526
- type: 'function',
1527
- },
1528
- {
1529
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1530
- name: 'getPoolTokens',
1531
- outputs: [
1532
- {
1533
- internalType: 'contract IERC20[]',
1534
- name: 'tokens',
1535
- type: 'address[]',
1536
- },
1537
- ],
1538
- stateMutability: 'view',
1539
- type: 'function',
1540
- },
1541
- {
1542
- inputs: [],
1543
- name: 'getProtocolFeeController',
1544
- outputs: [
1545
- {
1546
- internalType: 'contract IProtocolFeeController',
1547
- name: '',
1548
- type: 'address',
1549
- },
1550
- ],
1551
- stateMutability: 'view',
1552
- type: 'function',
1553
- },
1554
- {
1555
- inputs: [
1556
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
1557
- ],
1558
- name: 'getReservesOf',
1559
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1560
- stateMutability: 'view',
1561
- type: 'function',
1562
- },
1563
- {
1564
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1565
- name: 'getStaticSwapFeePercentage',
1566
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1567
- stateMutability: 'view',
1568
- type: 'function',
1569
- },
1570
- {
1571
- inputs: [
1572
- { internalType: 'contract IERC20', name: 'token', type: 'address' },
1573
- ],
1574
- name: 'getTokenDelta',
1575
- outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
1576
- stateMutability: 'view',
1577
- type: 'function',
1578
- },
1579
- {
1580
- inputs: [],
1581
- name: 'getVaultAdmin',
1582
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
1583
- stateMutability: 'view',
1584
- type: 'function',
1585
- },
1586
- {
1587
- inputs: [
1588
- { internalType: 'address', name: 'pool', type: 'address' },
1589
- { internalType: 'address', name: 'to', type: 'address' },
1590
- {
1591
- internalType: 'contract IERC20[]',
1592
- name: 'tokens',
1593
- type: 'address[]',
1594
- },
1595
- {
1596
- internalType: 'uint256[]',
1597
- name: 'exactAmountsIn',
1598
- type: 'uint256[]',
1599
- },
1600
- {
1601
- internalType: 'uint256',
1602
- name: 'minBptAmountOut',
1603
- type: 'uint256',
1604
- },
1605
- { internalType: 'bytes', name: 'userData', type: 'bytes' },
1606
- ],
1607
- name: 'initialize',
1608
- outputs: [
1609
- { internalType: 'uint256', name: 'bptAmountOut', type: 'uint256' },
1610
- ],
1611
- stateMutability: 'nonpayable',
1612
- type: 'function',
1613
- },
1614
- {
1615
- inputs: [
1616
- {
1617
- internalType: 'contract IERC4626',
1618
- name: 'wrappedToken',
1619
- type: 'address',
1620
- },
1621
- ],
1622
- name: 'isERC4626BufferInitialized',
1623
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1624
- stateMutability: 'view',
1625
- type: 'function',
1626
- },
1627
- {
1628
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1629
- name: 'isPoolInRecoveryMode',
1630
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1631
- stateMutability: 'view',
1632
- type: 'function',
1633
- },
1634
- {
1635
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1636
- name: 'isPoolInitialized',
1637
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1638
- stateMutability: 'view',
1639
- type: 'function',
1640
- },
1641
- {
1642
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1643
- name: 'isPoolPaused',
1644
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1645
- stateMutability: 'view',
1646
- type: 'function',
1647
- },
1648
- {
1649
- inputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
1650
- name: 'isPoolRegistered',
1651
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1652
- stateMutability: 'view',
1653
- type: 'function',
1654
- },
1655
- {
1656
- inputs: [],
1657
- name: 'isQueryDisabled',
1658
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1659
- stateMutability: 'view',
1660
- type: 'function',
1661
- },
1662
- {
1663
- inputs: [],
1664
- name: 'isUnlocked',
1665
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1666
- stateMutability: 'view',
1667
- type: 'function',
1668
- },
1669
- {
1670
- inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }],
1671
- name: 'quote',
1672
- outputs: [{ internalType: 'bytes', name: 'result', type: 'bytes' }],
1673
- stateMutability: 'nonpayable',
1674
- type: 'function',
1675
- },
1676
- {
1677
- inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }],
1678
- name: 'quoteAndRevert',
1679
- outputs: [],
1680
- stateMutability: 'nonpayable',
1681
- type: 'function',
1682
- },
1683
- {
1684
- inputs: [],
1685
- name: 'reentrancyGuardEntered',
1686
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1687
- stateMutability: 'view',
1688
- type: 'function',
1689
- },
1690
- {
1691
- inputs: [
1692
- { internalType: 'address', name: 'pool', type: 'address' },
1693
- {
1694
- components: [
1695
- {
1696
- internalType: 'contract IERC20',
1697
- name: 'token',
1698
- type: 'address',
1699
- },
1700
- {
1701
- internalType: 'enum TokenType',
1702
- name: 'tokenType',
1703
- type: 'uint8',
1704
- },
1705
- {
1706
- internalType: 'contract IRateProvider',
1707
- name: 'rateProvider',
1708
- type: 'address',
1709
- },
1710
- {
1711
- internalType: 'bool',
1712
- name: 'paysYieldFees',
1713
- type: 'bool',
1714
- },
1715
- ],
1716
- internalType: 'struct TokenConfig[]',
1717
- name: 'tokenConfig',
1718
- type: 'tuple[]',
1719
- },
1720
- {
1721
- internalType: 'uint256',
1722
- name: 'swapFeePercentage',
1723
- type: 'uint256',
1724
- },
1725
- {
1726
- internalType: 'uint32',
1727
- name: 'pauseWindowEndTime',
1728
- type: 'uint32',
1729
- },
1730
- { internalType: 'bool', name: 'protocolFeeExempt', type: 'bool' },
1731
- {
1732
- components: [
1733
- {
1734
- internalType: 'address',
1735
- name: 'pauseManager',
1736
- type: 'address',
1737
- },
1738
- {
1739
- internalType: 'address',
1740
- name: 'swapFeeManager',
1741
- type: 'address',
1742
- },
1743
- {
1744
- internalType: 'address',
1745
- name: 'poolCreator',
1746
- type: 'address',
1747
- },
1748
- ],
1749
- internalType: 'struct PoolRoleAccounts',
1750
- name: 'roleAccounts',
1751
- type: 'tuple',
1752
- },
1753
- {
1754
- internalType: 'address',
1755
- name: 'poolHooksContract',
1756
- type: 'address',
1757
- },
1758
- {
1759
- components: [
1760
- {
1761
- internalType: 'bool',
1762
- name: 'disableUnbalancedLiquidity',
1763
- type: 'bool',
1764
- },
1765
- {
1766
- internalType: 'bool',
1767
- name: 'enableAddLiquidityCustom',
1768
- type: 'bool',
1769
- },
1770
- {
1771
- internalType: 'bool',
1772
- name: 'enableRemoveLiquidityCustom',
1773
- type: 'bool',
1774
- },
1775
- {
1776
- internalType: 'bool',
1777
- name: 'enableDonation',
1778
- type: 'bool',
1779
- },
1780
- ],
1781
- internalType: 'struct LiquidityManagement',
1782
- name: 'liquidityManagement',
1783
- type: 'tuple',
1784
- },
1785
- ],
1786
- name: 'registerPool',
1787
- outputs: [],
1788
- stateMutability: 'nonpayable',
1789
- type: 'function',
1790
- },
1791
- {
1792
- inputs: [
1793
- { internalType: 'address', name: 'pool', type: 'address' },
1794
- { internalType: 'address', name: 'from', type: 'address' },
1795
- {
1796
- internalType: 'uint256',
1797
- name: 'exactBptAmountIn',
1798
- type: 'uint256',
1799
- },
1800
- ],
1801
- name: 'removeLiquidityRecovery',
1802
- outputs: [
1803
- {
1804
- internalType: 'uint256[]',
1805
- name: 'amountsOutRaw',
1806
- type: 'uint256[]',
1807
- },
1808
- ],
1809
- stateMutability: 'nonpayable',
1810
- type: 'function',
1811
- },
1812
- {
1813
- inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
1814
- name: 'totalSupply',
1815
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1816
- stateMutability: 'view',
1817
- type: 'function',
1818
- },
1819
- {
1820
- inputs: [
1821
- { internalType: 'address', name: 'owner', type: 'address' },
1822
- { internalType: 'address', name: 'to', type: 'address' },
1823
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
1824
- ],
1825
- name: 'transfer',
1826
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1827
- stateMutability: 'nonpayable',
1828
- type: 'function',
1829
- },
1830
- {
1831
- inputs: [
1832
- { internalType: 'address', name: 'spender', type: 'address' },
1833
- { internalType: 'address', name: 'from', type: 'address' },
1834
- { internalType: 'address', name: 'to', type: 'address' },
1835
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
1836
- ],
1837
- name: 'transferFrom',
1838
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1839
- stateMutability: 'nonpayable',
1840
- type: 'function',
1841
- },
1842
- {
1843
- inputs: [],
1844
- name: 'vault',
1845
- outputs: [{ internalType: 'contract IVault', name: '', type: 'address' }],
1846
- stateMutability: 'view',
1847
- type: 'function',
1848
- },
1849
- { stateMutability: 'payable', type: 'receive' },
1850
- ];
1851
- //# sourceMappingURL=vaultExtension.V3.js.map