@panoptic-eng/sdk 1.0.5 → 1.0.7

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 (44) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cow/index.d.ts +5 -0
  3. package/dist/cow/index.js +5 -0
  4. package/dist/cow/types.d.ts +4 -0
  5. package/dist/cow/types.js +0 -0
  6. package/dist/cow-Dy-Cd09v.js +1405 -0
  7. package/dist/cow-Dy-Cd09v.js.map +1 -0
  8. package/dist/index-BuJcj5aO.d.ts +275 -0
  9. package/dist/index-BuJcj5aO.d.ts.map +1 -0
  10. package/dist/index-DVMjZi1E.d.ts +1801 -0
  11. package/dist/index-DVMjZi1E.d.ts.map +1 -0
  12. package/dist/index.d.ts +7537 -5094
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +3101 -5726
  15. package/dist/index.js.map +1 -1
  16. package/dist/irm-CBrX8bjH.js +2375 -0
  17. package/dist/irm-CBrX8bjH.js.map +1 -0
  18. package/dist/irm-CGykVo3q.d.ts +32 -0
  19. package/dist/irm-CGykVo3q.d.ts.map +1 -0
  20. package/dist/irm-zWjtffWA.d.ts +85 -0
  21. package/dist/irm-zWjtffWA.d.ts.map +1 -0
  22. package/dist/panoptic/v2/index.d.ts +3972 -4004
  23. package/dist/panoptic/v2/index.d.ts.map +1 -1
  24. package/dist/panoptic/v2/index.js +7074 -9212
  25. package/dist/panoptic/v2/index.js.map +1 -1
  26. package/dist/panoptic/v2/types/index.d.ts +3 -0
  27. package/dist/panoptic/v2/types/index.js +0 -0
  28. package/dist/{rates-D-7EWaPS.js → position-FxaZi608.js} +7246 -5375
  29. package/dist/position-FxaZi608.js.map +1 -0
  30. package/dist/router-gzYGM1OO.js +1012 -0
  31. package/dist/router-gzYGM1OO.js.map +1 -0
  32. package/dist/types-BQejAFnu.d.ts +245 -0
  33. package/dist/types-BQejAFnu.d.ts.map +1 -0
  34. package/dist/types-CRvvn2ce.d.ts +128 -0
  35. package/dist/types-CRvvn2ce.d.ts.map +1 -0
  36. package/dist/uniswap/index.d.ts +291 -0
  37. package/dist/uniswap/index.d.ts.map +1 -0
  38. package/dist/uniswap/index.js +5 -0
  39. package/dist/writes-CVCD6Ers.js +4302 -0
  40. package/dist/writes-CVCD6Ers.js.map +1 -0
  41. package/package.json +17 -5
  42. package/dist/rates-BQ91Bbn6.d.ts +0 -38
  43. package/dist/rates-BQ91Bbn6.d.ts.map +0 -1
  44. package/dist/rates-D-7EWaPS.js.map +0 -1
@@ -0,0 +1,291 @@
1
+ import { PanopticError, PoolKey, SimulationResult, TxReceipt, TxResult } from "../index-DVMjZi1E.js";
2
+ import "../irm-CGykVo3q.js";
3
+ import { ApproveErc20ForPermit2Params, ApproveRouterViaPermit2Params, CheckRouterApprovalParams, PERMIT2_ADDRESS$1 as PERMIT2_ADDRESS, QuoteSwapExactInViaRouterParams, QuoteSwapExactOutViaRouterParams, RouterApprovalStatus, SwapExactInQuote, SwapExactInViaRouterParams, SwapExactOutQuote, SwapExactOutViaRouterParams, UNISWAP_V4_ADDRESSES$1 as UNISWAP_V4_ADDRESSES, UniswapV4Addresses, getUniswapV4Addresses$1 as getUniswapV4Addresses } from "../types-BQejAFnu.js";
4
+ import { Address, Hex, PublicClient } from "viem";
5
+
6
+ //#region src/uniswap/v4/router/encodeSwap.d.ts
7
+ /** Universal Router command byte for a v4 swap. */
8
+
9
+ /** Universal Router command byte for a v4 swap. */
10
+ declare const V4_SWAP = 16;
11
+ /** v4 action: exact-in single-hop swap. */
12
+ declare const SWAP_EXACT_IN_SINGLE = 6;
13
+ /** v4 action: pay all of the input currency owed. */
14
+ declare const SETTLE_ALL = 12;
15
+ /** v4 action: take all of the output currency owed. */
16
+ declare const TAKE_ALL = 15;
17
+ /** v4 action: take an output currency to an explicit recipient. */
18
+
19
+ /** v4 action: exact-out single-hop swap. */
20
+ declare const SWAP_EXACT_OUT_SINGLE = 8;
21
+ /** Universal Router command: sweep the router's token balance to a recipient. */
22
+ declare const SWEEP = 4;
23
+ /**
24
+ * Arguments for {@link buildV4SwapExecuteCalldata}.
25
+ */
26
+ interface BuildV4SwapCalldataArgs {
27
+ /** The v4 PoolKey (currency0, currency1, fee, tickSpacing, hooks). */
28
+ poolKey: PoolKey;
29
+ /** Whether the swap goes currency0 → currency1. */
30
+ zeroForOne: boolean;
31
+ /** Exact input amount (uint128). */
32
+ amountIn: bigint;
33
+ /** Minimum acceptable output (uint128). */
34
+ amountOutMinimum: bigint;
35
+ /** Input token address (`address(0)` for native ETH). */
36
+ tokenIn: Address;
37
+ /** Output token address (`address(0)` for native ETH). */
38
+ tokenOut: Address;
39
+ /** Absolute deadline (unix seconds). */
40
+ deadline: bigint;
41
+ /**
42
+ * Recipient of native-ETH output. Required when `tokenOut` is `address(0)`,
43
+ * since the explicit-recipient `TAKE` action forwards the bought ETH there
44
+ * (the implicit-recipient `TAKE_ALL` would leave it held by the router).
45
+ */
46
+ recipient?: Address;
47
+ /** Hook data; defaults to `0x` (hook-less pools). */
48
+ hookData?: Hex;
49
+ }
50
+ /**
51
+ * Build the typed `execute(...)` args + msg.value for an exact-in single-hop v4
52
+ * swap. Use this when submitting via viem (`writeContract` / `submitWrite`).
53
+ *
54
+ * When `tokenOut` is native ETH the explicit-recipient `TAKE` action forwards
55
+ * the bought ETH to `recipient` (no trailing SWEEP is needed for exact-in).
56
+ *
57
+ * @returns `args` ready to spread into `execute` and the ETH `value` to send
58
+ * (= `amountIn` for native-ETH input, otherwise `0n`).
59
+ */
60
+ declare function buildV4SwapExecuteArgs(args: BuildV4SwapCalldataArgs): {
61
+ args: readonly [Hex, readonly Hex[], bigint];
62
+ value: bigint;
63
+ };
64
+ /**
65
+ * Build the `execute(commands, inputs, deadline)` calldata + msg.value for an
66
+ * exact-in single-hop v4 swap.
67
+ *
68
+ * @returns The encoded calldata and the ETH `value` to send.
69
+ */
70
+ declare function buildV4SwapExecuteCalldata(args: BuildV4SwapCalldataArgs): {
71
+ data: Hex;
72
+ value: bigint;
73
+ };
74
+ /**
75
+ * Arguments for {@link buildV4ExactOutSwapExecuteCalldata}.
76
+ */
77
+ interface BuildV4ExactOutSwapCalldataArgs {
78
+ /** The v4 PoolKey (currency0, currency1, fee, tickSpacing, hooks). */
79
+ poolKey: PoolKey;
80
+ /** Whether the swap goes currency0 → currency1. */
81
+ zeroForOne: boolean;
82
+ /** Exact output amount to receive (uint128). */
83
+ amountOut: bigint;
84
+ /** Maximum acceptable input to spend (uint128). */
85
+ amountInMaximum: bigint;
86
+ /** Input token address (`address(0)` for native ETH). */
87
+ tokenIn: Address;
88
+ /** Output token address (`address(0)` for native ETH). */
89
+ tokenOut: Address;
90
+ /** Absolute deadline (unix seconds). */
91
+ deadline: bigint;
92
+ /**
93
+ * Recipient of any swept native-ETH refund (only used for native-ETH input).
94
+ * Must be the payer; the leftover `amountInMaximum - actualInput` is returned
95
+ * here.
96
+ */
97
+ recipient: Address;
98
+ /** Hook data; defaults to `0x` (hook-less pools). */
99
+ hookData?: Hex;
100
+ }
101
+ /**
102
+ * Build the typed `execute(...)` args + msg.value for an exact-out single-hop v4
103
+ * swap. Use this when submitting via viem (`writeContract` / `submitWrite`).
104
+ *
105
+ * For native-ETH input, `value` is `amountInMaximum` (an overpay) and a trailing
106
+ * `SWEEP` action refunds the unused ETH to `recipient`. For ERC20 input, Permit2
107
+ * pulls only the settled amount, so no SWEEP is appended and `value` is `0n`.
108
+ *
109
+ * @returns `args` ready to spread into `execute` and the ETH `value` to send.
110
+ */
111
+ declare function buildV4ExactOutSwapExecuteArgs(args: BuildV4ExactOutSwapCalldataArgs): {
112
+ args: readonly [Hex, readonly Hex[], bigint];
113
+ value: bigint;
114
+ };
115
+ /**
116
+ * Build the `execute(commands, inputs, deadline)` calldata + msg.value for an
117
+ * exact-out single-hop v4 swap.
118
+ *
119
+ * @returns The encoded calldata and the ETH `value` to send.
120
+ */
121
+ declare function buildV4ExactOutSwapExecuteCalldata(args: BuildV4ExactOutSwapCalldataArgs): {
122
+ data: Hex;
123
+ value: bigint;
124
+ }; //#endregion
125
+ //#region src/uniswap/v4/router/errors.d.ts
126
+ /**
127
+ * The chain has no configured Uniswap v4 addresses and none were supplied via
128
+ * overrides.
129
+ */
130
+ declare class UnsupportedChainError extends PanopticError {
131
+ readonly chainId: bigint;
132
+ readonly name = "UnsupportedChainError";
133
+ constructor(chainId: bigint, cause?: Error);
134
+ }
135
+ /**
136
+ * `tokenIn` is neither `currency0` nor `currency1` of the resolved pool.
137
+ */
138
+ declare class InvalidSwapTokenError extends PanopticError {
139
+ readonly token: Address;
140
+ readonly currency0: Address;
141
+ readonly currency1: Address;
142
+ readonly name = "InvalidSwapTokenError";
143
+ constructor(token: Address, currency0: Address, currency1: Address, cause?: Error);
144
+ }
145
+ /**
146
+ * An amount exceeds the uint128 range required by the v4 swap encoding.
147
+ */
148
+ declare class AmountExceedsUint128Error extends PanopticError {
149
+ readonly amount: bigint;
150
+ readonly name = "AmountExceedsUint128Error";
151
+ constructor(amount: bigint, cause?: Error);
152
+ }
153
+ /**
154
+ * A native-ETH swap needs a trailing Universal Router SWEEP to deliver the ETH
155
+ * output (or refund the input overpay), but no `recipient` was supplied.
156
+ */
157
+ declare class MissingSweepRecipientError extends PanopticError {
158
+ readonly name = "MissingSweepRecipientError";
159
+ constructor(cause?: Error);
160
+ }
161
+ /**
162
+ * The V4Quoter is not available for the chain (no fallback in v1).
163
+ */
164
+ declare class QuoterUnavailableError extends PanopticError {
165
+ readonly chainId: bigint;
166
+ readonly name = "QuoterUnavailableError";
167
+ constructor(chainId: bigint, cause?: Error);
168
+ }
169
+
170
+ //#endregion
171
+ //#region src/uniswap/v4/router/permit2.d.ts
172
+ /**
173
+ * Check whether the ERC20 → Permit2 → Universal Router allowance chain is
174
+ * sufficient for an exact-in swap of `amount`.
175
+ */
176
+ declare function checkRouterApproval(params: CheckRouterApprovalParams): Promise<RouterApprovalStatus>;
177
+ /**
178
+ * Step 1: approve the ERC20 token to Permit2 (defaults to unlimited).
179
+ */
180
+ declare function approveErc20ForPermit2(params: ApproveErc20ForPermit2Params): Promise<TxResult>;
181
+ /**
182
+ * Step 1 (and wait): approve the ERC20 token to Permit2.
183
+ */
184
+ declare function approveErc20ForPermit2AndWait(params: ApproveErc20ForPermit2Params): Promise<TxReceipt>;
185
+ /**
186
+ * Step 2: approve the Universal Router as a Permit2 spender for the token.
187
+ */
188
+ declare function approveRouterViaPermit2(params: ApproveRouterViaPermit2Params): Promise<TxResult>;
189
+ /**
190
+ * Step 2 (and wait): approve the Universal Router via Permit2.
191
+ */
192
+ declare function approveRouterViaPermit2AndWait(params: ApproveRouterViaPermit2Params): Promise<TxReceipt>;
193
+
194
+ //#endregion
195
+ //#region src/uniswap/v4/router/quote.d.ts
196
+ /**
197
+ * Quote an exact-in spot swap against the underlying Uniswap v4 pool.
198
+ *
199
+ * Uses the V4Quoter `quoteExactInputSingle` via `eth_call` (the quoter is
200
+ * state-mutating / revert-based, so it must be simulated, not read). Returns a
201
+ * `SimulationResult` so failures carry a structured error rather than throwing.
202
+ */
203
+ declare function quoteSwapExactInViaRouter(params: QuoteSwapExactInViaRouterParams): Promise<SimulationResult<SwapExactInQuote>>;
204
+ /**
205
+ * Quote an exact-out spot swap against the underlying Uniswap v4 pool.
206
+ *
207
+ * Uses the V4Quoter `quoteExactOutputSingle` via `eth_call` (the quoter is
208
+ * state-mutating / revert-based, so it must be simulated, not read). Returns a
209
+ * `SimulationResult` so failures carry a structured error rather than throwing.
210
+ */
211
+ declare function quoteSwapExactOutViaRouter(params: QuoteSwapExactOutViaRouterParams): Promise<SimulationResult<SwapExactOutQuote>>;
212
+
213
+ //#endregion
214
+ //#region src/uniswap/v4/router/resolvePoolKey.d.ts
215
+ /**
216
+ * Resolved swap routing info for a given `tokenIn`.
217
+ */
218
+ interface ResolvedSwapRoute {
219
+ /** Underlying v4 PoolKey. */
220
+ poolKey: PoolKey;
221
+ /** Whether the swap goes currency0 → currency1. */
222
+ zeroForOne: boolean;
223
+ /** Output token address. */
224
+ tokenOut: Address;
225
+ /** Decimals of the output token. */
226
+ tokenOutDecimals: bigint;
227
+ /** Symbol of the output token. */
228
+ tokenOutSymbol: string;
229
+ }
230
+ /**
231
+ * Parameters for {@link resolveSwapRoute}.
232
+ */
233
+ interface ResolveSwapRouteParams {
234
+ client: PublicClient;
235
+ poolAddress: Address;
236
+ chainId: bigint;
237
+ tokenIn: Address;
238
+ blockNumber?: bigint;
239
+ }
240
+ /**
241
+ * Resolve the PoolKey, swap direction, and output token metadata for a swap.
242
+ *
243
+ * @throws {InvalidSwapTokenError} when `tokenIn` is not part of the pool.
244
+ */
245
+ declare function resolveSwapRoute(params: ResolveSwapRouteParams): Promise<ResolvedSwapRoute>;
246
+
247
+ //#endregion
248
+ //#region src/uniswap/v4/router/swap.d.ts
249
+ /**
250
+ * Execute an exact-in spot swap via the Universal Router.
251
+ *
252
+ * @param params - Swap parameters.
253
+ * @returns TxResult with hash + wait().
254
+ *
255
+ * @example
256
+ * ```typescript
257
+ * const result = await swapExactInViaRouter({
258
+ * client, walletClient, account, poolAddress,
259
+ * chainId: 1n,
260
+ * tokenIn: ZERO_ADDRESS, // native ETH
261
+ * amountIn: 10n ** 17n, // 0.1 ETH
262
+ * slippageBps: 50n, // 0.5%
263
+ * })
264
+ * await result.wait()
265
+ * ```
266
+ */
267
+ declare function swapExactInViaRouter(params: SwapExactInViaRouterParams): Promise<TxResult>;
268
+ /**
269
+ * Execute an exact-in swap via the Universal Router and wait for confirmation.
270
+ */
271
+ declare function swapExactInViaRouterAndWait(params: SwapExactInViaRouterParams): Promise<TxReceipt>;
272
+ /**
273
+ * Execute an exact-out spot swap via the Universal Router.
274
+ *
275
+ * The caller specifies the exact `amountOut` to receive; the input (pay) amount
276
+ * is quoted and capped at `amountInMaximum`. For native-ETH input the router is
277
+ * funded with `amountInMaximum` and the unused surplus is swept back to the
278
+ * sender.
279
+ *
280
+ * @param params - Swap parameters.
281
+ * @returns TxResult with hash + wait().
282
+ */
283
+ declare function swapExactOutViaRouter(params: SwapExactOutViaRouterParams): Promise<TxResult>;
284
+ /**
285
+ * Execute an exact-out swap via the Universal Router and wait for confirmation.
286
+ */
287
+ declare function swapExactOutViaRouterAndWait(params: SwapExactOutViaRouterParams): Promise<TxReceipt>;
288
+
289
+ //#endregion
290
+ export { AmountExceedsUint128Error, ApproveErc20ForPermit2Params, ApproveRouterViaPermit2Params, BuildV4ExactOutSwapCalldataArgs, BuildV4SwapCalldataArgs, CheckRouterApprovalParams, InvalidSwapTokenError, MissingSweepRecipientError, PERMIT2_ADDRESS, QuoteSwapExactInViaRouterParams, QuoteSwapExactOutViaRouterParams, QuoterUnavailableError, ResolveSwapRouteParams, ResolvedSwapRoute, RouterApprovalStatus, SETTLE_ALL, SWAP_EXACT_IN_SINGLE, SWAP_EXACT_OUT_SINGLE, SWEEP, SwapExactInQuote, SwapExactInViaRouterParams, SwapExactOutQuote, SwapExactOutViaRouterParams, TAKE_ALL, UNISWAP_V4_ADDRESSES, UniswapV4Addresses, UnsupportedChainError, V4_SWAP, approveErc20ForPermit2, approveErc20ForPermit2AndWait, approveRouterViaPermit2, approveRouterViaPermit2AndWait, buildV4ExactOutSwapExecuteArgs, buildV4ExactOutSwapExecuteCalldata, buildV4SwapExecuteArgs, buildV4SwapExecuteCalldata, checkRouterApproval, getUniswapV4Addresses, quoteSwapExactInViaRouter, quoteSwapExactOutViaRouter, resolveSwapRoute, swapExactInViaRouter, swapExactInViaRouterAndWait, swapExactOutViaRouter, swapExactOutViaRouterAndWait };
291
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":["Address","Hex","PoolKey","V4_SWAP","SWAP_EXACT_IN_SINGLE","SETTLE_ALL","TAKE_ALL","TAKE","SWAP_EXACT_OUT_SINGLE","SWEEP","BuildV4SwapCalldataArgs","buildV4SwapExecuteArgs","buildV4SwapExecuteCalldata","BuildV4ExactOutSwapCalldataArgs","buildV4ExactOutSwapExecuteArgs","buildV4ExactOutSwapExecuteCalldata","Address","PanopticError","UnsupportedChainError","Error","InvalidSwapTokenError","AmountExceedsUint128Error","MissingSweepRecipientError","QuoterUnavailableError","TxReceipt","TxResult","ApproveErc20ForPermit2Params","ApproveRouterViaPermit2Params","CheckRouterApprovalParams","RouterApprovalStatus","checkRouterApproval","Promise","approveErc20ForPermit2","approveErc20ForPermit2AndWait","approveRouterViaPermit2","approveRouterViaPermit2AndWait","SimulationResult","QuoteSwapExactInViaRouterParams","QuoteSwapExactOutViaRouterParams","SwapExactInQuote","SwapExactOutQuote","quoteSwapExactInViaRouter","Promise","quoteSwapExactOutViaRouter","Address","PublicClient","PoolKey","ResolvedSwapRoute","ResolveSwapRouteParams","resolveSwapRoute","Promise","TxReceipt","TxResult","SwapExactInViaRouterParams","SwapExactOutViaRouterParams","swapExactInViaRouter","Promise","swapExactInViaRouterAndWait","swapExactOutViaRouter","swapExactOutViaRouterAndWait"],"sources":["../../src/uniswap/v4/router/encodeSwap.d.ts","../../src/uniswap/v4/router/errors.d.ts","../../src/uniswap/v4/router/permit2.d.ts","../../src/uniswap/v4/router/quote.d.ts","../../src/uniswap/v4/router/resolvePoolKey.d.ts","../../src/uniswap/v4/router/swap.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;;AAiEeC,cAtCME,OAAAA,GAsCNF,EAAAA;AAAG;cApCGG,oBAAAA;;cAEAC,UAAAA;;cAEAC,QAAAA;;;;cAIAE,qBAAAA;;AAwCGG,cAtCHF,KAAAA,GAsCyB,CAAA;;;;AACZR,UAnCjBS,uBAAAA,CAmCiBT;EAAG;WAjCxB6C;;;;;;EA0CWlC,gBAAAA,EAAAA,MAAAA;EAA0B;EAAA,OAAOF,EAlC5CkC,OAkC4ClC;EAAuB;EACnE,QAAA,EAjCCkC,OAiCD;;;;AAMb;;;;EAUoB,SAENA,CAAAA,EA3CEA,OA2CFA;EAAO;EAQC,QAEP3C,CAAAA,EAnDAA,GAmDAA;AAAG;;;;;;;;;;;AAYMa,iBAnDAH,sBAA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WAQLA,EIrCCA,OJqCDA;EAAO,OAER3C,EAAAA,MAAAA;EAAG,OAAA,EIrCL2C,OJqCK;;;;;;;;iBI7BMK,gBAAAA,SAAyBD,yBAAyBQ,QAAQT;;;;AJLlF;;AAEA;;AAIA;;AAEA;;;;AAIA;;;;;;;AAsBkB;iBKpCMQ,oBAAAA,SAA6BF,6BAA6BG,QAAQJ;;;;iBAIlEK,2BAAAA,SAAoCJ,6BAA6BG,QAAQL;;;;;;AL4CjG;;;;;AACqC;iBKjCbO,qBAAAA,SAA8BJ,8BAA8BE,QAAQJ;;;;iBAIpEO,4BAAAA,SAAqCL,8BAA8BE,QAAQL"}
@@ -0,0 +1,5 @@
1
+ import "../position-FxaZi608.js";
2
+ import "../writes-CVCD6Ers.js";
3
+ import { AmountExceedsUint128Error, InvalidSwapTokenError, MissingSweepRecipientError, PERMIT2_ADDRESS, QuoterUnavailableError, SETTLE_ALL, SWAP_EXACT_IN_SINGLE, SWAP_EXACT_OUT_SINGLE, SWEEP, TAKE_ALL, UNISWAP_V4_ADDRESSES, UnsupportedChainError, V4_SWAP, approveErc20ForPermit2, approveErc20ForPermit2AndWait, approveRouterViaPermit2, approveRouterViaPermit2AndWait, buildV4ExactOutSwapExecuteArgs, buildV4ExactOutSwapExecuteCalldata, buildV4SwapExecuteArgs, buildV4SwapExecuteCalldata, checkRouterApproval, getUniswapV4Addresses, quoteSwapExactInViaRouter, quoteSwapExactOutViaRouter, resolveSwapRoute, swapExactInViaRouter, swapExactInViaRouterAndWait, swapExactOutViaRouter, swapExactOutViaRouterAndWait } from "../router-gzYGM1OO.js";
4
+
5
+ export { AmountExceedsUint128Error, InvalidSwapTokenError, MissingSweepRecipientError, PERMIT2_ADDRESS, QuoterUnavailableError, SETTLE_ALL, SWAP_EXACT_IN_SINGLE, SWAP_EXACT_OUT_SINGLE, SWEEP, TAKE_ALL, UNISWAP_V4_ADDRESSES, UnsupportedChainError, V4_SWAP, approveErc20ForPermit2, approveErc20ForPermit2AndWait, approveRouterViaPermit2, approveRouterViaPermit2AndWait, buildV4ExactOutSwapExecuteArgs, buildV4ExactOutSwapExecuteCalldata, buildV4SwapExecuteArgs, buildV4SwapExecuteCalldata, checkRouterApproval, getUniswapV4Addresses, quoteSwapExactInViaRouter, quoteSwapExactOutViaRouter, resolveSwapRoute, swapExactInViaRouter, swapExactInViaRouterAndWait, swapExactOutViaRouter, swapExactOutViaRouterAndWait };