@panoptic-eng/sdk 1.0.36 → 1.0.38

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 (85) hide show
  1. package/dist/cow/index.d.ts +4 -5
  2. package/dist/cow/index.js +3 -3
  3. package/dist/cow/types.d.ts +3 -2
  4. package/dist/{cow-aX6of9TS.js → cow-DB8siv6M.js} +2 -2
  5. package/dist/{cow-aX6of9TS.js.map → cow-DB8siv6M.js.map} +1 -1
  6. package/dist/deployments.d.ts +3 -2
  7. package/dist/deployments.d.ts.map +1 -1
  8. package/dist/deployments.js +4 -0
  9. package/dist/deployments.js.map +1 -1
  10. package/dist/{position-C8rkkKhi.js → getTrackedPositionIds-zYPIs5dt.js} +1086 -34
  11. package/dist/getTrackedPositionIds-zYPIs5dt.js.map +1 -0
  12. package/dist/hypoVault/vaultDisplayNames.d.ts +2 -0
  13. package/dist/hypoVault/vaultDisplayNames.js +4 -0
  14. package/dist/{index-CURXeKNy.d.ts → index-BhEBx83X.d.ts} +405 -351
  15. package/dist/index-BhEBx83X.d.ts.map +1 -0
  16. package/dist/index-Bo9tHtD7.d.ts +1901 -0
  17. package/dist/index-Bo9tHtD7.d.ts.map +1 -0
  18. package/dist/{index-Cp-nCeV2.d.ts → index-CttjEZ-S.d.ts} +3 -4
  19. package/dist/index-CttjEZ-S.d.ts.map +1 -0
  20. package/dist/{index-Zvu-rJpV.d.ts → index-DktZq9Kb.d.ts} +2 -2
  21. package/dist/{index-Zvu-rJpV.d.ts.map → index-DktZq9Kb.d.ts.map} +1 -1
  22. package/dist/index.d.ts +159 -39
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +323 -70
  25. package/dist/index.js.map +1 -1
  26. package/dist/{irm-DnM96-X4.js → irm-ChkvYphK.js} +3 -318
  27. package/dist/irm-ChkvYphK.js.map +1 -0
  28. package/dist/{irm-CmgC1Mqi.d.ts → irm-D2WTHtuo.d.ts} +3 -30
  29. package/dist/{irm-CmgC1Mqi.d.ts.map → irm-D2WTHtuo.d.ts.map} +1 -1
  30. package/dist/irm-D5plRhpB.d.ts +32 -0
  31. package/dist/irm-D5plRhpB.d.ts.map +1 -0
  32. package/dist/panoptic/v2/greeks/index.d.ts +3 -2
  33. package/dist/panoptic/v2/index.d.ts +7 -8
  34. package/dist/panoptic/v2/index.js +7 -6
  35. package/dist/panoptic/v2/react-public.d.ts +29 -13
  36. package/dist/panoptic/v2/react-public.d.ts.map +1 -1
  37. package/dist/panoptic/v2/react-public.js +48 -8
  38. package/dist/panoptic/v2/react-public.js.map +1 -1
  39. package/dist/panoptic/v2/types/index.d.ts +3 -0
  40. package/dist/panoptic/v2/types/index.js +0 -0
  41. package/dist/quote-DeHNUR0Z.d.ts +52 -0
  42. package/dist/quote-DeHNUR0Z.d.ts.map +1 -0
  43. package/dist/{router-CS86ptMu.js → router-BCUJkY8j.js} +3 -3
  44. package/dist/{router-CS86ptMu.js.map → router-BCUJkY8j.js.map} +1 -1
  45. package/dist/{router-DcoU2KmV.js → router-tCRa0ekE.js} +2 -2
  46. package/dist/{router-DcoU2KmV.js.map → router-tCRa0ekE.js.map} +1 -1
  47. package/dist/src-CRAtPwWk.js +321 -0
  48. package/dist/src-CRAtPwWk.js.map +1 -0
  49. package/dist/test/index.d.ts +2 -2
  50. package/dist/test/index.d.ts.map +1 -1
  51. package/dist/transactionFees-CVi2TrJh.js +175 -0
  52. package/dist/transactionFees-CVi2TrJh.js.map +1 -0
  53. package/dist/transactionFees-DzDyt50k.d.ts +63 -0
  54. package/dist/transactionFees-DzDyt50k.d.ts.map +1 -0
  55. package/dist/{types-D_jcYss-.d.ts → types-Cad5m4Td.d.ts} +3 -5
  56. package/dist/types-Cad5m4Td.d.ts.map +1 -0
  57. package/dist/{types-BHdnurYr.d.ts → types-DM0nxlZr.d.ts} +2 -2
  58. package/dist/{types-BHdnurYr.d.ts.map → types-DM0nxlZr.d.ts.map} +1 -1
  59. package/dist/uniswap/index.d.ts +4 -5
  60. package/dist/uniswap/index.d.ts.map +1 -1
  61. package/dist/uniswap/index.js +4 -4
  62. package/dist/{v2-D0dEatKb.js → v2-BxtzpUnV.js} +3267 -2675
  63. package/dist/v2-BxtzpUnV.js.map +1 -0
  64. package/dist/vault-transaction-fees.d.ts +2 -0
  65. package/dist/vault-transaction-fees.js +3 -0
  66. package/dist/vaultDisplayNames-CKpz51Hu.js +0 -0
  67. package/dist/vaultDisplayNames-Q6htUcch.d.ts +2 -0
  68. package/dist/{writes-AupZCK4M.js → writes-D3bj1wth.js} +326 -1292
  69. package/dist/writes-D3bj1wth.js.map +1 -0
  70. package/package.json +5 -1
  71. package/dist/index-CURXeKNy.d.ts.map +0 -1
  72. package/dist/index-Cp-nCeV2.d.ts.map +0 -1
  73. package/dist/irm-DnM96-X4.js.map +0 -1
  74. package/dist/position-BqIgubs5.d.ts +0 -199
  75. package/dist/position-BqIgubs5.d.ts.map +0 -1
  76. package/dist/position-C8rkkKhi.js.map +0 -1
  77. package/dist/quote-BxQkPBRg.d.ts +0 -718
  78. package/dist/quote-BxQkPBRg.d.ts.map +0 -1
  79. package/dist/simulation-zM6-YUaw.d.ts +0 -258
  80. package/dist/simulation-zM6-YUaw.d.ts.map +0 -1
  81. package/dist/tx-CbDQ58Io.d.ts +0 -367
  82. package/dist/tx-CbDQ58Io.d.ts.map +0 -1
  83. package/dist/types-D_jcYss-.d.ts.map +0 -1
  84. package/dist/v2-D0dEatKb.js.map +0 -1
  85. package/dist/writes-AupZCK4M.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"quote-BxQkPBRg.d.ts","names":["tickToSqrtPriceX96","tickToPrice","tickToPriceDecimalScaled","sqrtPriceX96ToPriceDecimalScaled","priceToTick","sqrtPriceX96ToTick","formatTick","getPricesAtTick","formatTickRange","formatPriceRange","getTickSpacing","roundToTickSpacing","TickLimitsResult","tickLimits","Address","PublicClient","tickToSqrtPriceX96","BlockMeta","OracleState","Pool","RiskParameters","Utilization","PoolMetadata","GetPoolMetadataParams","getPoolMetadata","Promise","GetPoolParams","getPool","GetUtilizationParams","getUtilization","GetOracleStateParams","getOracleState","GetRiskParametersParams","getRiskParameters","validateBuilderCode","FetchPoolIdParams","FetchPoolIdResult","fetchPoolId","Address","PoolMetadata","BlockMeta","PoolHealthStatus","CollateralTracker","RiskEngine","PoolKey","Pool","Utilization","BlockMeta","SafeMode","OracleState","SafeModeState","RiskParameters","CurrentRates","Address","UniswapV3Addresses","UNISWAP_V3_ADDRESSES","Record","getUniswapV3Addresses","Partial","Address","PublicClient","UniswapV3Addresses","QuoteV3ExactInParams","Partial","V3ExactInQuote","quoteV3ExactIn","Promise"],"sources":["../src/panoptic/v2/formatters/tick.d.ts","../src/panoptic/v2/reads/pool.d.ts","../src/panoptic/v2/types/pool.d.ts","../src/panoptic/v2/types/oracle.d.ts","../src/uniswap/v3/addresses.d.ts","../src/uniswap/v3/router/quote.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;;;;;;;;;;;iBAOwBgB,kBAAAA;;;;AAAxB;;;;;;;;;;;;;;;iBAmBwBf,WAAAA;;;;AAAxB;;;;;;;;;;;;;;;;;;;iBAuBwBC,wBAAAA;;;;AAAxB;;;;;;;;;;;;;iBAiBwBC,gCAAAA;;;;AAAxB;;;;;;;;;;;;;;iBAkBwBC,WAAAA;;;;AAAxB;;;;;;;;iBAYwBC,kBAAAA;;;;AAAxB;;;;;;;;;iBAawBC,UAAAA;;;;AAAxB;;;;;;;;;;;;;iBAiBwBC,eAAAA;;;;AAAxB;;;;;;;;;;;;iBAgBwBC,eAAAA;AAAxB;;;;;;;;;;;;;;;iBAgBwBC,gBAAAA;AAAxB;;;;;;;;;;;;;;iBAewBC,cAAAA;AAAxB;;;;;;;;;;;;;;iBAewBC,kBAAAA;AAAxB;;;UAIiBC,gBAAAA;EAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BjB;;;;iBAAwBC,UAAAA,6CAAuDD;;;;;;;UCxM9D2B,YAAAA;;;;;;2BAMYoB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;;;;;;;;UEeiBf,OAAAA;;aAEFe;;aAEAA;;EFFSxD,GAAAA,EAAAA,MAAAA;;;;SEQbwD;;;;;UAKMd,IAAAA;;WAEJc;;;;;;WAMAf;EFHWxC;;;sBEOAsC;;sBAEAA;;cAERC;;;;;EFCQtC;;;gBEONoC;;YAEJF;;SAEHQ;;;;;UAKMD,WAAAA;EFHOxC;;;;;;;;;;;;;;;;;EAiBAC;SEKbwC;;;;;;;;KC3HCC,QAAAA;;;AHDZ;UGKiBC,WAAAA;;;;;;;;;;;;;;;;;;EHcOhD,UAAAA,EAAAA,MAAW;;SGMxB8C;;;;;UAKMG,aAAAA;;QAEPF;;;;;;;;;;;;;;EHUc9C,KAAAA,EGIb6C,SHJa7C;;;;;UGSPiD,cAAAA;;;;;;;;;;;;EHQOhD,mBAAAA,EAAAA,MAAAA;;SGMb4C;;;;;UAKMK,YAAAA;;;;;;;;;;SAUNL;AHHX;;;;AA7EwB/B,UIIP6C,kBAAAA,CJJyB;;YIM5BF;;8BAEkBA;;;;;;cAMXJ,sBAAsBC,eAAeK;;;;;;;iBAOlCJ,qBAAAA,uCAA4DM,QAAQF,sBAAsBA;;;;UCtBjGC,oBAAAA;UACLF;;WAECD;YACCA;ELHU3C,GAAAA,EAAAA,MAAAA;;;;;cKSR+C,QAAQF;;UAEPG,cAAAA;;;;;;;;;;iBAUOC,cAAAA,SAAuBH,uBAAuBI,QAAQF"}
@@ -1,258 +0,0 @@
1
- import { BlockMeta, Position, PositionGreeks } from "./position-BqIgubs5.js";
2
-
3
- //#region src/panoptic/v2/errors/base.d.ts
4
- /**
5
- * Base error class for the Panoptic v2 SDK.
6
- * @module v2/errors/base
7
- */
8
- /**
9
- * Base error class for all Panoptic SDK errors.
10
- * All errors thrown by the SDK extend this class.
11
- *
12
- * @example
13
- * ```typescript
14
- * try {
15
- * await openPosition(config, params)
16
- * } catch (error) {
17
- * if (error instanceof PanopticError) {
18
- * console.log('Panoptic error:', error.name, error.message)
19
- * console.log('Original cause:', error.cause)
20
- * }
21
- * }
22
- * ```
23
- */
24
- /**
25
- * Base error class for the Panoptic v2 SDK.
26
- * @module v2/errors/base
27
- */
28
- /**
29
- * Base error class for all Panoptic SDK errors.
30
- * All errors thrown by the SDK extend this class.
31
- *
32
- * @example
33
- * ```typescript
34
- * try {
35
- * await openPosition(config, params)
36
- * } catch (error) {
37
- * if (error instanceof PanopticError) {
38
- * console.log('Panoptic error:', error.name, error.message)
39
- * console.log('Original cause:', error.cause)
40
- * }
41
- * }
42
- * ```
43
- */
44
- declare class PanopticError extends Error {
45
- readonly cause?: Error | undefined;
46
- readonly name: string;
47
- /** The Solidity error name (e.g. 'PriceBoundFail', 'InputListFail'). Set by the parser. */
48
- errorName?: string;
49
- /**
50
- * Creates a new PanopticError.
51
- *
52
- * @param message - Human-readable error message
53
- * @param cause - Optional underlying error that caused this error
54
- */
55
- constructor(message: string, cause?: Error | undefined);
56
- } //#endregion
57
- //#region src/panoptic/v2/types/simulation.d.ts
58
- /**
59
- * Token flow data from simulation.
60
- * Measures collateral asset changes via getAssetsOf-dispatch-getAssetsOf pattern
61
- * using PanopticPool.multicall.
62
- */
63
- interface TokenFlow {
64
- /** Token 0 collateral change (negative = user deposits, positive = user receives) */
65
- delta0: bigint;
66
- /** Token 1 collateral change (negative = user deposits, positive = user receives) */
67
- delta1: bigint;
68
- /** Collateral assets in token 0 before the call */
69
- balanceBefore0: bigint;
70
- /** Collateral assets in token 1 before the call */
71
- balanceBefore1: bigint;
72
- /** Collateral assets in token 0 after the call */
73
- balanceAfter0: bigint;
74
- /** Collateral assets in token 1 after the call */
75
- balanceAfter1: bigint;
76
- /** Pool tick before the operation */
77
- tickBefore: bigint | null;
78
- /** Pool tick after the operation */
79
- tickAfter: bigint | null;
80
- }
81
- /**
82
- * Simulation result discriminated union.
83
- * Success case returns data, failure case returns error.
84
- *
85
- * Note: tokenFlow is optional because some simulations (deposit/withdraw)
86
- * don't use the PanopticPool.multicall token flow measurement.
87
- */
88
- type SimulationResult<T> = {
89
- success: true;
90
- data: T;
91
- gasEstimate: bigint;
92
- tokenFlow?: TokenFlow;
93
- _meta: BlockMeta;
94
- } | {
95
- success: false;
96
- error: PanopticError;
97
- _meta: BlockMeta;
98
- };
99
- /**
100
- * Open position simulation result data.
101
- */
102
- interface OpenPositionSimulation {
103
- /** The position that would be created */
104
- position: Position;
105
- /** Post-trade greeks */
106
- greeks: PositionGreeks;
107
- /** Token 0 amount required */
108
- amount0Required: bigint;
109
- /** Token 1 amount required */
110
- amount1Required: bigint;
111
- /** Post-trade collateral for token 0 */
112
- postCollateral0: bigint;
113
- /** Post-trade collateral for token 1 */
114
- postCollateral1: bigint;
115
- /**
116
- * Post-mint collateral requirement in token0, from getFullPositionsData.collateralRequirements[].
117
- * Sum of per-position LeftRightUnsigned.right across all positions in finalPositionIdList.
118
- */
119
- postMintCollateralReqToken0: bigint;
120
- /**
121
- * Post-mint collateral requirement in token1, from getFullPositionsData.collateralRequirements[].
122
- * Sum of per-position LeftRightUnsigned.left across all positions in finalPositionIdList.
123
- */
124
- postMintCollateralReqToken1: bigint;
125
- /**
126
- * Per-position collateral requirements from getFullPositionsData.collateralRequirements[].
127
- * One entry per position in finalPositionIdList, in the same order.
128
- */
129
- perPositionCollateralReqs: {
130
- token0: bigint;
131
- token1: bigint;
132
- }[];
133
- /** Commission paid for token 0 (null: embedded in contract logic, not extractable from token flow) */
134
- commission0: bigint | null;
135
- /** Commission paid for token 1 (null: embedded in contract logic, not extractable from token flow) */
136
- commission1: bigint | null;
137
- }
138
- /**
139
- * Close position simulation result data.
140
- */
141
- interface ClosePositionSimulation {
142
- /** Token 0 amount received */
143
- amount0Received: bigint;
144
- /** Token 1 amount received */
145
- amount1Received: bigint;
146
- /** Premia collected for token 0 (null: requires pre-close premia snapshot) */
147
- premiaCollected0: bigint | null;
148
- /** Premia collected for token 1 (null: requires pre-close premia snapshot) */
149
- premiaCollected1: bigint | null;
150
- /** Post-trade collateral for token 0 */
151
- postCollateral0: bigint;
152
- /** Post-trade collateral for token 1 */
153
- postCollateral1: bigint;
154
- /** Realized PnL for token 0 (null: requires open position cost basis) */
155
- realizedPnL0: bigint | null;
156
- /** Realized PnL for token 1 (null: requires open position cost basis) */
157
- realizedPnL1: bigint | null;
158
- }
159
- /**
160
- * Force exercise simulation result data.
161
- */
162
- interface ForceExerciseSimulation {
163
- /** Exercise fee for token 0 (positive = received, negative = paid) */
164
- exerciseFee0: bigint;
165
- /** Exercise fee for token 1 */
166
- exerciseFee1: bigint;
167
- /** Whether the exercise would succeed */
168
- canExercise: boolean;
169
- /** Reason if cannot exercise */
170
- reason?: string;
171
- }
172
- /**
173
- * Liquidation simulation result data.
174
- */
175
- interface LiquidateSimulation {
176
- /** Bonus received for token 0 */
177
- bonus0: bigint;
178
- /** Bonus received for token 1 */
179
- bonus1: bigint;
180
- /** Positions that would be closed */
181
- positionsClosed: bigint[];
182
- /** Whether the account is liquidatable */
183
- isLiquidatable: boolean;
184
- /** Shortfall for token 0 (if liquidatable) */
185
- shortfall0: bigint;
186
- /** Shortfall for token 1 (if liquidatable) */
187
- shortfall1: bigint;
188
- }
189
- /**
190
- * Settle premia simulation result data.
191
- */
192
- interface SettleSimulation {
193
- /** Premia received for token 0 */
194
- premiaReceived0: bigint;
195
- /** Premia received for token 1 */
196
- premiaReceived1: bigint;
197
- /** Post-settle collateral for token 0 */
198
- postCollateral0: bigint;
199
- /** Post-settle collateral for token 1 */
200
- postCollateral1: bigint;
201
- /** Forfeit amounts [token0, token1] — present when tokenId was provided */
202
- forfeitAmounts?: [bigint, bigint];
203
- }
204
- /**
205
- * Deposit simulation result data.
206
- */
207
- interface DepositSimulation {
208
- /** Shares that would be minted */
209
- sharesMinted: bigint;
210
- /** Post-deposit assets */
211
- postAssets: bigint;
212
- /** Post-deposit shares */
213
- postShares: bigint;
214
- }
215
- /**
216
- * Withdraw simulation result data.
217
- */
218
- interface WithdrawSimulation {
219
- /** Shares that would be burned */
220
- sharesBurned: bigint;
221
- /** Assets that would be received */
222
- assetsReceived: bigint;
223
- /** Post-withdraw assets */
224
- postAssets: bigint;
225
- /** Post-withdraw shares */
226
- postShares: bigint;
227
- /** Whether the withdrawal is possible */
228
- canWithdraw: boolean;
229
- /** Reason if cannot withdraw */
230
- reason?: string;
231
- }
232
- /**
233
- * Dispatch simulation result data.
234
- */
235
- interface DispatchSimulation {
236
- /** Token 0 net change */
237
- netAmount0: bigint;
238
- /** Token 1 net change */
239
- netAmount1: bigint;
240
- /** Positions created */
241
- positionsCreated: bigint[];
242
- /** Positions closed */
243
- positionsClosed: bigint[];
244
- /** Post-dispatch collateral for token 0 */
245
- postCollateral0: bigint;
246
- /** Post-dispatch collateral for token 1 */
247
- postCollateral1: bigint;
248
- /** Post-dispatch margin excess for token 0 (null if full positions decode/token-flow balances are unavailable or omitted; see simulateDispatch/getFullPositionsData). */
249
- postMarginExcess0: bigint | null;
250
- /** Post-dispatch margin excess for token 1 (null if full positions decode/token-flow balances are unavailable or omitted; see simulateDispatch/getFullPositionsData). */
251
- postMarginExcess1: bigint | null;
252
- /** Pre-dispatch margin excess for token 0 (null if full positions decode/token-flow balances are unavailable or omitted; see simulateDispatch/getFullPositionsData). */
253
- preMarginExcess0: bigint | null;
254
- /** Pre-dispatch margin excess for token 1 (null if full positions decode/token-flow balances are unavailable or omitted; see simulateDispatch/getFullPositionsData). */
255
- preMarginExcess1: bigint | null;
256
- } //#endregion
257
- export { ClosePositionSimulation, DepositSimulation, DispatchSimulation, ForceExerciseSimulation, LiquidateSimulation, OpenPositionSimulation, PanopticError as PanopticError$1, SettleSimulation, SimulationResult, TokenFlow, WithdrawSimulation };
258
- //# sourceMappingURL=simulation-zM6-YUaw.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"simulation-zM6-YUaw.d.ts","names":["PanopticError","Error","PanopticError","BlockMeta","Position","PositionGreeks","TokenFlow","SimulationResult","T","OpenPositionSimulation","ClosePositionSimulation","ForceExerciseSimulation","LiquidateSimulation","SettleSimulation","DepositSimulation","WithdrawSimulation","DispatchSimulation"],"sources":["../src/panoptic/v2/errors/base.d.ts","../src/panoptic/v2/types/simulation.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBqBE,aAAAA,SAAsBD,KAAAA;mBACtBA;;EADAC;EAAa,SAAA,CAAA,EAAA,MAAA;EAAA;;;AAAc;;;uCAWPD;;;;;;;;UCnBxBK,SAAAA;;;;;;;;;;;EDQIJ;EAAa,aAAA,EAAA,MAAA;EAAA;EACR,UAUeD,EAAAA,MAAAA,GAAAA,IAAAA;EAAK;EAXE,SAAA,EAAA,MAAA,GAAA,IAAA;;;;;;;;;ACR/BK,KAyBLC,gBAzBc,CAAA,CAAA,CAAA,GAAA;;QA2BhBC;;cAEMF;SACLH;;;EALCI,KAAAA,EAQDL,aARiB;EAAA,KAAA,EASjBC,SATiB;CAAA;;;;AASjBA,UAKMM,sBAAAA,CALNN;EAAS;YAONC;;UAEFC;EAJKI;EAAsB,eAAA,EAAA,MAAA;EAAA;EAEjB,eAEVJ,EAAAA,MAAAA;EAAc;;;;EAmCTK;;;;EAqBAC,2BAAuB,EAAA,MAAA;;;;AAaxC;;;;AAiBA;;;;IAeiBG,MAAAA,EAAAA,MAAAA;;;;EAWAC;;;;AAiBjB;;UA9FiBL,uBAAAA;;;;;;;;;;;;;;;;;;;;;UAqBAC,uBAAAA;;;;;;;;;;;;;UAaAC,mBAAAA;;;;;;;;;;;;;;;;;UAiBAC,gBAAAA;;;;;;;;;;;;;;;UAeAC,iBAAAA;;;;;;;;;;;UAWAC,kBAAAA;;;;;;;;;;;;;;;;;UAiBAC,kBAAAA"}
@@ -1,367 +0,0 @@
1
- import { Address, Hash } from "viem";
2
-
3
- //#region src/panoptic/v2/types/events.d.ts
4
- /**
5
- * Supported Panoptic event types.
6
- */
7
-
8
- /**
9
- * Supported Panoptic event types.
10
- */
11
- type PanopticEventType = 'OptionMinted' | 'OptionBurnt' | 'AccountLiquidated' | 'ForcedExercised' | 'PremiumSettled' | 'Deposit' | 'Withdraw' | 'BorrowRateUpdated' | 'LiquidityChunkUpdated' | 'ProtocolLossRealized' | 'ModifyLiquidity' | 'Swap' | 'Donate';
12
- /**
13
- * Base event data common to all events.
14
- */
15
- interface BaseEvent {
16
- /** Event type */
17
- type: PanopticEventType;
18
- /** Transaction hash */
19
- transactionHash: Hash;
20
- /** Block number */
21
- blockNumber: bigint;
22
- /** Block hash */
23
- blockHash: Hash;
24
- /** Log index within the block */
25
- logIndex: bigint;
26
- }
27
- /**
28
- * OptionMinted event data.
29
- */
30
- interface OptionMintedEvent extends BaseEvent {
31
- type: 'OptionMinted';
32
- /** Recipient of the minted position */
33
- recipient: Address;
34
- /** TokenId of the minted position */
35
- tokenId: bigint;
36
- /** Position size */
37
- positionSize: bigint;
38
- /** Pool utilization for token 0 at mint */
39
- poolUtilization0: bigint;
40
- /** Pool utilization for token 1 at mint */
41
- poolUtilization1: bigint;
42
- /** Tick at mint */
43
- tickAtMint: bigint;
44
- /** Timestamp at mint (Unix seconds) */
45
- timestampAtMint: bigint;
46
- /** Block number at mint */
47
- blockAtMint: bigint;
48
- /** Whether a swap happened at mint */
49
- swapAtMint: boolean;
50
- }
51
- /**
52
- * OptionBurnt event data.
53
- */
54
- interface OptionBurntEvent extends BaseEvent {
55
- type: 'OptionBurnt';
56
- /** Recipient (owner) of the burnt position */
57
- recipient: Address;
58
- /** TokenId of the burnt position */
59
- tokenId: bigint;
60
- /** Position size that was burnt */
61
- positionSize: bigint;
62
- /** Premia settled for each leg (token0 right, token1 left per leg) */
63
- premiaByLeg: readonly [bigint, bigint, bigint, bigint];
64
- }
65
- /**
66
- * AccountLiquidated event data.
67
- */
68
- interface AccountLiquidatedEvent extends BaseEvent {
69
- type: 'AccountLiquidated';
70
- /** Address of the liquidator */
71
- liquidator: Address;
72
- /** Address of the liquidated account */
73
- liquidatee: Address;
74
- /** Bonus paid to liquidator for token 0 */
75
- bonusAmount0: bigint;
76
- /** Bonus paid to liquidator for token 1 */
77
- bonusAmount1: bigint;
78
- }
79
- /**
80
- * ForcedExercised event data.
81
- */
82
- interface ForcedExercisedEvent extends BaseEvent {
83
- type: 'ForcedExercised';
84
- /** Address of the exerciser */
85
- exercisor: Address;
86
- /** Address of the position owner */
87
- user: Address;
88
- /** TokenId of the exercised position */
89
- tokenId: bigint;
90
- /** Exercise fee for token 0 (negative = cost to exerciser) */
91
- exerciseFee0: bigint;
92
- /** Exercise fee for token 1 (negative = cost to exerciser) */
93
- exerciseFee1: bigint;
94
- }
95
- /**
96
- * PremiumSettled event data.
97
- */
98
- interface PremiumSettledEvent extends BaseEvent {
99
- type: 'PremiumSettled';
100
- /** Position owner */
101
- user: Address;
102
- /** TokenId */
103
- tokenId: bigint;
104
- /** Leg index that was settled */
105
- legIndex: bigint;
106
- /** Settled amount for token 0 */
107
- settledAmount0: bigint;
108
- /** Settled amount for token 1 */
109
- settledAmount1: bigint;
110
- }
111
- /**
112
- * Deposit event data (ERC4626).
113
- */
114
- interface DepositEvent extends BaseEvent {
115
- type: 'Deposit';
116
- /** Sender address */
117
- sender: Address;
118
- /** Owner address */
119
- owner: Address;
120
- /** Assets deposited */
121
- assets: bigint;
122
- /** Shares minted */
123
- shares: bigint;
124
- }
125
- /**
126
- * Withdraw event data (ERC4626).
127
- */
128
- interface WithdrawEvent extends BaseEvent {
129
- type: 'Withdraw';
130
- /** Sender address */
131
- sender: Address;
132
- /** Receiver address */
133
- receiver: Address;
134
- /** Owner address */
135
- owner: Address;
136
- /** Assets withdrawn */
137
- assets: bigint;
138
- /** Shares burned */
139
- shares: bigint;
140
- }
141
- /**
142
- * BorrowRateUpdated event data (RiskEngine).
143
- */
144
- interface BorrowRateUpdatedEvent extends BaseEvent {
145
- type: 'BorrowRateUpdated';
146
- /** Collateral token address */
147
- collateralToken: Address;
148
- /** Average borrow rate */
149
- avgBorrowRate: bigint;
150
- /** Rate at target utilization */
151
- rateAtTarget: bigint;
152
- }
153
- /**
154
- * LiquidityChunkUpdated event data (SFPM).
155
- */
156
- interface LiquidityChunkUpdatedEvent extends BaseEvent {
157
- type: 'LiquidityChunkUpdated';
158
- /** Pool ID (bytes32) */
159
- poolId: Hash;
160
- /** Owner address */
161
- owner: Address;
162
- /** Token type (0 or 1) */
163
- tokenType: bigint;
164
- /** Lower tick */
165
- tickLower: number;
166
- /** Upper tick */
167
- tickUpper: number;
168
- /** Liquidity delta (positive = added, negative = removed) */
169
- liquidityDelta: bigint;
170
- }
171
- /**
172
- * ProtocolLossRealized event data (CollateralTracker).
173
- */
174
- interface ProtocolLossRealizedEvent extends BaseEvent {
175
- type: 'ProtocolLossRealized';
176
- /** Liquidated account */
177
- liquidatee: Address;
178
- /** Liquidator address */
179
- liquidator: Address;
180
- /** Protocol loss in assets */
181
- protocolLossAssets: bigint;
182
- /** Protocol loss in shares */
183
- protocolLossShares: bigint;
184
- }
185
- /**
186
- * ModifyLiquidity event data (v4 PoolManager).
187
- */
188
- interface ModifyLiquidityEvent extends BaseEvent {
189
- type: 'ModifyLiquidity';
190
- /** Pool ID (bytes32) */
191
- id: Hash;
192
- /** Sender address */
193
- sender: Address;
194
- /** Lower tick */
195
- tickLower: number;
196
- /** Upper tick */
197
- tickUpper: number;
198
- /** Liquidity delta */
199
- liquidityDelta: bigint;
200
- /** Salt */
201
- salt: Hash;
202
- }
203
- /**
204
- * Swap event data (v4 PoolManager).
205
- */
206
- interface SwapEvent extends BaseEvent {
207
- type: 'Swap';
208
- /** Pool ID (bytes32) */
209
- id: Hash;
210
- /** Sender address */
211
- sender: Address;
212
- /** Amount of token 0 */
213
- amount0: bigint;
214
- /** Amount of token 1 */
215
- amount1: bigint;
216
- /** Square root price X96 */
217
- sqrtPriceX96: bigint;
218
- /** Liquidity */
219
- liquidity: bigint;
220
- /** Tick */
221
- tick: number;
222
- /** Fee */
223
- fee: number;
224
- }
225
- /**
226
- * Donate event data (v4 PoolManager).
227
- */
228
- interface DonateEvent extends BaseEvent {
229
- type: 'Donate';
230
- /** Pool ID (bytes32) */
231
- id: Hash;
232
- /** Sender address */
233
- sender: Address;
234
- /** Amount of token 0 */
235
- amount0: bigint;
236
- /** Amount of token 1 */
237
- amount1: bigint;
238
- }
239
- /**
240
- * Union of all Panoptic event types.
241
- */
242
- type PanopticEvent = OptionMintedEvent | OptionBurntEvent | AccountLiquidatedEvent | ForcedExercisedEvent | PremiumSettledEvent | DepositEvent | WithdrawEvent | BorrowRateUpdatedEvent | LiquidityChunkUpdatedEvent | ProtocolLossRealizedEvent | ModifyLiquidityEvent | SwapEvent | DonateEvent;
243
- /**
244
- * Leg update data from events.
245
- */
246
- interface LegUpdate {
247
- /** Leg index */
248
- legIndex: bigint;
249
- /** Liquidity delta (positive = added, negative = removed) */
250
- liquidityDelta: bigint;
251
- /** Token 0 delta */
252
- amount0Delta: bigint;
253
- /** Token 1 delta */
254
- amount1Delta: bigint;
255
- }
256
- /**
257
- * Event subscription handle.
258
- */
259
- interface EventSubscription {
260
- /** Unsubscribe from events */
261
- unsubscribe: () => void;
262
- /** Current connection status */
263
- isConnected: () => boolean;
264
- }
265
- /**
266
- * Sync progress event for syncPositions callback.
267
- */
268
- interface SyncEvent {
269
- /** Current block being processed */
270
- currentBlock: bigint;
271
- /** Target block to sync to */
272
- targetBlock: bigint;
273
- /** Number of positions discovered so far */
274
- positionsFound: bigint;
275
- /** Percentage complete (0-100) */
276
- progress: bigint;
277
- } //#endregion
278
- //#region src/panoptic/v2/types/tx.d.ts
279
- /**
280
- * Transaction result returned by write functions.
281
- * Provides immediate access to hash and a wait function for confirmation.
282
- */
283
- interface TxResult {
284
- /** Transaction hash, available immediately */
285
- hash: Hash;
286
- /** Wait for transaction confirmation */
287
- wait: (confirmations?: bigint) => Promise<TxReceipt>;
288
- }
289
- /**
290
- * Transaction result with receipt already awaited.
291
- * Returned by *AndWait convenience functions.
292
- */
293
- interface TxResultWithReceipt extends TxResult {
294
- /** The transaction receipt */
295
- receipt: TxReceipt;
296
- }
297
- /**
298
- * Transaction receipt after confirmation.
299
- */
300
- interface TxReceipt {
301
- /** Transaction hash */
302
- hash: Hash;
303
- /** Block number */
304
- blockNumber: bigint;
305
- /** Block hash */
306
- blockHash: Hash;
307
- /** Gas used */
308
- gasUsed: bigint;
309
- /** Transaction status */
310
- status: 'success' | 'reverted';
311
- /** Parsed Panoptic events from the transaction */
312
- events: PanopticEvent[];
313
- }
314
- /**
315
- * Transaction broadcaster interface for private transaction support.
316
- * Allows plugging in Flashbots or other MEV protection services.
317
- */
318
- interface TxBroadcaster {
319
- /**
320
- * Broadcast a signed transaction.
321
- * @param signedTx - The signed transaction bytes
322
- * @returns The transaction hash
323
- */
324
- broadcast: (signedTx: `0x${string}`) => Promise<Hash>;
325
- }
326
- /**
327
- * Gas and transaction overrides for write operations.
328
- * Supports EIP-1559 gas parameters, explicit nonce, and custom broadcasters.
329
- */
330
- interface TxOverrides {
331
- /** EIP-1559 max fee per gas */
332
- maxFeePerGas?: bigint;
333
- /** EIP-1559 max priority fee per gas (tip) */
334
- maxPriorityFeePerGas?: bigint;
335
- /** Gas limit override */
336
- gas?: bigint;
337
- /** Explicit nonce (for concurrent tx submission) */
338
- nonce?: bigint;
339
- /** Custom broadcaster for MEV protection (Flashbots, private mempool) */
340
- broadcaster?: TxBroadcaster;
341
- }
342
- /**
343
- * Nonce manager for concurrent transaction submission.
344
- */
345
- interface NonceManager {
346
- /** Get the next nonce for an account */
347
- getNextNonce: (account: Address) => Promise<bigint>;
348
- /** Reset nonce tracking (e.g., after failure) */
349
- reset: (account: Address) => void;
350
- }
351
- /**
352
- * Dispatch call for raw multi-operation transactions.
353
- */
354
- interface DispatchCall {
355
- /** TokenId to operate on */
356
- tokenId: bigint;
357
- /** Position size change (positive = mint, negative = burn) */
358
- positionSize: bigint;
359
- /** Whether this is a long (true) or short (false) */
360
- isLong: boolean;
361
- /** Recipient address (usually the sender) */
362
- recipient?: Address;
363
- }
364
-
365
- //#endregion
366
- export { AccountLiquidatedEvent, BaseEvent, DepositEvent, DispatchCall, EventSubscription, ForcedExercisedEvent, LegUpdate, NonceManager, OptionBurntEvent, OptionMintedEvent, PanopticEvent, PanopticEventType, PremiumSettledEvent, SyncEvent, TxBroadcaster, TxOverrides, TxReceipt, TxResult, TxResultWithReceipt, WithdrawEvent };
367
- //# sourceMappingURL=tx-CbDQ58Io.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tx-CbDQ58Io.d.ts","names":["Address","Hash","PanopticEventType","BaseEvent","OptionMintedEvent","OptionBurntEvent","AccountLiquidatedEvent","ForcedExercisedEvent","PremiumSettledEvent","DepositEvent","WithdrawEvent","BorrowRateUpdatedEvent","LiquidityChunkUpdatedEvent","ProtocolLossRealizedEvent","ModifyLiquidityEvent","SwapEvent","DonateEvent","PanopticEvent","LegUpdate","EventSubscription","SyncEvent","Address","Hash","PanopticEvent","TxResult","TxReceipt","Promise","TxResultWithReceipt","TxBroadcaster","TxOverrides","NonceManager","DispatchCall"],"sources":["../src/panoptic/v2/types/events.d.ts","../src/panoptic/v2/types/tx.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;AAQA;;KAAYE,iBAAAA;;AAIZ;;AAEUA,UAFOC,SAAAA,CAEPD;EAAiB;EAEF,IAIVoB,EANLpB,iBAMKoB;EAAI;mBAJEA;;;EAWJlB;EAAiB,SAAA,EAPnBkB,IAOmB;EAAA;EAGZ,QAHqBnB,EAAAA,MAAAA;AAAS;;;;AAwBnCE,UAxBAD,iBAAAA,SAA0BD,SAwBV,CAAA;EAAA,IAAA,EAAA,cAAA;EAAA;EAGX,SAHoBA,EArB3BkB,OAqB2BlB;EAAS;;;;EAclCG;EAAsB,gBAAA,EAAA,MAAA;EAAA;EAGhB,gBAEPe,EAAAA,MAAAA;EAAO;EALkC,UAAA,EAAA,MAAA;;;;EAcxCd,WAAAA,EAAAA,MAAAA;EAAoB;EAAA,UAGtBc,EAAAA,OAAAA;;;AAHwC;;UA5BtChB,gBAAAA,SAAyBF;;EA4CzBK;EAAmB,SAAA,EAzCrB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H,QDOX,CAAA;EAAA;EAGZ,OAHqBrB,ECL9BsB,SDK8BtB;AAAS;;;;AAwBnCE,UCxBAoB,SAAAA,CDwBgB;EAAA;EAAA,IAGlBJ,ECzBLC,IDyBKD;EAAO;EAH6B,WAAA,EAAA,MAAA;;aClBpCC;;EDgCEhB,OAAAA,EAAAA,MAAAA;EAAsB;EAAA,MAGvBe,EAAAA,SAAAA,GAAAA,UAAAA;EAAO;EAEA,MALyBlB,EC1BpCoB,aD0BoCpB,EAAAA;AAAS;;;;AAczD;AAAqC,UClCpByB,aAAAA,CDkCoB;EAAA;;;AAAkB;;0CC5BXF,QAAQJ;;AD4CpD;;;;AAAsD,UCtCrCO,WAAAA,CDsCqC;;;;EAgBrCpB,oBAAY,CAAA,EAAA,MAAA;EAAA;EAAA,GAGjBY,CAAAA,EAAAA,MAAAA;EAAO;EAED,KALoBlB,CAAAA,EAAAA,MAAAA;EAAS;gBC5C7ByB;;;AD0DlB;;AAGYP,UCxDKS,YAAAA,CDwDLT;EAAO;EAEE,YAEVA,EAAAA,CAAAA,OAAAA,EC1DiBA,OD0DjBA,EAAAA,GC1D6BK,OD0D7BL,CAAAA,MAAAA,CAAAA;EAAO;EAP8B,KAAA,EAAA,CAAA,OAAA,ECjD3BA,ODiD2B,EAAA,GAAA,IAAA;;;;AAgBhD;AAAuC,UC5DtBU,YAAAA,CD4DsB;EAAA;EAGX,OAHoB5B,EAAAA,MAAAA;EAAS;;;;EAYxCS;EAA0B,SAAA,CAAA,EChE3BS,ODgE2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-D_jcYss-.d.ts","names":["Address","UniswapV4Addresses","PERMIT2_ADDRESS","UNISWAP_V4_ADDRESSES","Record","getUniswapV4Addresses","Partial","Address","PublicClient","WalletClient","PoolKey","TxOverrides","UniswapV4Addresses","SwapExactInViaRouterParams","Partial","QuoteSwapExactInViaRouterParams","SwapExactInQuote","SwapExactOutViaRouterParams","QuoteSwapExactOutViaRouterParams","SwapExactOutQuote","CheckRouterApprovalParams","RouterApprovalStatus","ApproveErc20ForPermit2Params","ApproveRouterViaPermit2Params"],"sources":["../src/uniswap/v4/addresses.d.ts","../src/uniswap/v4/router/types.d.ts"],"sourcesContent":null,"mappings":";;;;;;;;;;;;AAwBaO,UAVIK,kBAAAA,CAUJL;EAAO;mBARCA;;YAEPA;EAWOL;eATJK;;mBAEIA;;WAERA;;;AAab;;AAA0DK,cARrCV,eAQqCU,EARpBL,OAQoBK;;AAAT;;;;;;cAA5BT,sBAAsBC,eAAeQ;;;;AAU1D;;;;;AAA2H;iBAAnGP,qBAAAA,8BAAmDS,QAAQF,sBAAsBA;;;;AAjCzG;;AAEqBL,UCNJM,0BAAAA,CDMIN;EAAO;EAEP,MAEJA,ECRLC,YDQKD;EAAO;EAEI,YAEfA,ECVKE,YDULF;EAAO;WCRPA;;eAEIA;EDWIL;;;WCPRK;;;;;EDeQJ;EAAwD,QAAA,CAAA,EAAA,MAAA;EAAA;EAAD,SAAjCC,CAAAA,ECP3BG,ODO2BH;EAAM;gBCL/BO;;cAEFG,QAAQF;;;;;UAKPG,+BAAAA;;EDQOV,MAAAA,ECNZG,YDMYH;EAAqB;EAAA,WAAsCO,ECJlEL,ODIkEK;EAAkB;EAAnB,OAAuBA,EAAAA,MAAAA;EAAkB;WCA9GL;;;;;;EArCIM,WAAAA,CAAAA,EAAAA,MAAAA;EAA0B;EAAA,SAE/BL,CAAAA,EA2CIM,OA3CJN,CA2CYI,kBA3CZJ,CAAAA;;;;;AAkBID,UA8BCS,gBAAAA,CA9BDT;EAAO;EAEM,SAELK,EAAAA,MAAAA;EAAkB;EAAnB,gBAAA,EAAA,MAAA;;;;EAKNG,QAAAA,EA6BHR,OA7BGQ;EAA+B;EAAA,OAEpCP,EA6BCE,OA7BDF;EAAY;EAEA,WAIXD,EAAAA,MAAAA;;;AAQU;;UAsBNU,2BAAAA;;EAjBAD,MAAAA,EAmBLR,YAnBqB;EAAA;EAAA,YAQnBD,EAaIE,YAbJF;EAAO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