@nradko/metric-omm-sdk-v1 0.2.0 → 0.3.0

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 (132) hide show
  1. package/README.md +105 -18
  2. package/dist/abis/DepositAllowlistExtension.d.ts +440 -0
  3. package/dist/abis/DepositAllowlistExtension.d.ts.map +1 -0
  4. package/dist/abis/DepositAllowlistExtension.js +572 -0
  5. package/dist/abis/DepositAllowlistExtension.js.map +1 -0
  6. package/dist/abis/MetricOmmPool.d.ts +136 -30
  7. package/dist/abis/MetricOmmPool.d.ts.map +1 -1
  8. package/dist/abis/MetricOmmPool.js +168 -34
  9. package/dist/abis/MetricOmmPool.js.map +1 -1
  10. package/dist/abis/MetricOmmPoolDataProvider.d.ts +4 -4
  11. package/dist/abis/MetricOmmPoolDataProvider.js +4 -4
  12. package/dist/abis/MetricOmmPoolDataProvider.js.map +1 -1
  13. package/dist/abis/MetricOmmPoolFactory.d.ts +76 -18
  14. package/dist/abis/MetricOmmPoolFactory.d.ts.map +1 -1
  15. package/dist/abis/MetricOmmPoolFactory.js +93 -19
  16. package/dist/abis/MetricOmmPoolFactory.js.map +1 -1
  17. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts +68 -8
  18. package/dist/abis/MetricOmmPoolLiquidityAdder.d.ts.map +1 -1
  19. package/dist/abis/MetricOmmPoolLiquidityAdder.js +85 -9
  20. package/dist/abis/MetricOmmPoolLiquidityAdder.js.map +1 -1
  21. package/dist/abis/MetricOmmPoolSwapper.d.ts +8 -8
  22. package/dist/abis/MetricOmmPoolSwapper.js +8 -8
  23. package/dist/abis/MetricOmmPoolSwapper.js.map +1 -1
  24. package/dist/abis/OracleValueStopLossExtension.d.ts +936 -0
  25. package/dist/abis/OracleValueStopLossExtension.d.ts.map +1 -0
  26. package/dist/abis/OracleValueStopLossExtension.js +1214 -0
  27. package/dist/abis/OracleValueStopLossExtension.js.map +1 -0
  28. package/dist/abis/PriceProvider.d.ts +1 -113
  29. package/dist/abis/PriceProvider.d.ts.map +1 -1
  30. package/dist/abis/PriceProvider.js +1 -146
  31. package/dist/abis/PriceProvider.js.map +1 -1
  32. package/dist/abis/PriceVelocityGuardExtension.d.ts +454 -0
  33. package/dist/abis/PriceVelocityGuardExtension.d.ts.map +1 -0
  34. package/dist/abis/PriceVelocityGuardExtension.js +590 -0
  35. package/dist/abis/PriceVelocityGuardExtension.js.map +1 -0
  36. package/dist/abis/SwapAllowlistExtension.d.ts +440 -0
  37. package/dist/abis/SwapAllowlistExtension.d.ts.map +1 -0
  38. package/dist/abis/SwapAllowlistExtension.js +572 -0
  39. package/dist/abis/SwapAllowlistExtension.js.map +1 -0
  40. package/dist/abis/index.d.ts +4 -0
  41. package/dist/abis/index.d.ts.map +1 -1
  42. package/dist/abis/index.js +4 -0
  43. package/dist/abis/index.js.map +1 -1
  44. package/dist/addresses.d.ts +13 -6
  45. package/dist/addresses.d.ts.map +1 -1
  46. package/dist/addresses.js +33 -16
  47. package/dist/addresses.js.map +1 -1
  48. package/dist/extensions/admin/depositAllowlist.d.ts +8 -0
  49. package/dist/extensions/admin/depositAllowlist.d.ts.map +1 -0
  50. package/dist/extensions/admin/depositAllowlist.js +10 -0
  51. package/dist/extensions/admin/depositAllowlist.js.map +1 -0
  52. package/dist/extensions/admin/oracleStopLoss.d.ts +56 -0
  53. package/dist/extensions/admin/oracleStopLoss.d.ts.map +1 -0
  54. package/dist/extensions/admin/oracleStopLoss.js +87 -0
  55. package/dist/extensions/admin/oracleStopLoss.js.map +1 -0
  56. package/dist/extensions/admin/priceVelocityGuard.d.ts +12 -0
  57. package/dist/extensions/admin/priceVelocityGuard.d.ts.map +1 -0
  58. package/dist/extensions/admin/priceVelocityGuard.js +17 -0
  59. package/dist/extensions/admin/priceVelocityGuard.js.map +1 -0
  60. package/dist/extensions/admin/swapAllowlist.d.ts +8 -0
  61. package/dist/extensions/admin/swapAllowlist.d.ts.map +1 -0
  62. package/dist/extensions/admin/swapAllowlist.js +10 -0
  63. package/dist/extensions/admin/swapAllowlist.js.map +1 -0
  64. package/dist/extensions/index.d.ts +8 -0
  65. package/dist/extensions/index.d.ts.map +1 -0
  66. package/dist/extensions/index.js +8 -0
  67. package/dist/extensions/index.js.map +1 -0
  68. package/dist/extensions/init/index.d.ts +13 -0
  69. package/dist/extensions/init/index.d.ts.map +1 -0
  70. package/dist/extensions/init/index.js +12 -0
  71. package/dist/extensions/init/index.js.map +1 -0
  72. package/dist/extensions/orders.d.ts +7 -0
  73. package/dist/extensions/orders.d.ts.map +1 -0
  74. package/dist/extensions/orders.js +24 -0
  75. package/dist/extensions/orders.js.map +1 -0
  76. package/dist/extensions/types.d.ts +23 -0
  77. package/dist/extensions/types.d.ts.map +1 -0
  78. package/dist/extensions/types.js +10 -0
  79. package/dist/extensions/types.js.map +1 -0
  80. package/dist/index.d.ts +3 -2
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +3 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/pool/create.d.ts +11 -6
  85. package/dist/pool/create.d.ts.map +1 -1
  86. package/dist/pool/create.js +5 -3
  87. package/dist/pool/create.js.map +1 -1
  88. package/dist/pool/index.d.ts +1 -1
  89. package/dist/pool/index.d.ts.map +1 -1
  90. package/dist/pool/index.js.map +1 -1
  91. package/dist/pool/liquidity.d.ts +13 -5
  92. package/dist/pool/liquidity.d.ts.map +1 -1
  93. package/dist/pool/liquidity.js +25 -10
  94. package/dist/pool/liquidity.js.map +1 -1
  95. package/dist/pool/read.d.ts +0 -6
  96. package/dist/pool/read.d.ts.map +1 -1
  97. package/dist/pool/read.js +21 -14
  98. package/dist/pool/read.js.map +1 -1
  99. package/dist/router/swap.d.ts +1 -1
  100. package/dist/router/swap.d.ts.map +1 -1
  101. package/dist/router/swap.js +14 -14
  102. package/dist/router/swap.js.map +1 -1
  103. package/dist/types.d.ts +3 -4
  104. package/dist/types.d.ts.map +1 -1
  105. package/package.json +4 -5
  106. package/src/abis/DepositAllowlistExtension.ts +571 -0
  107. package/src/abis/MetricOmmPool.ts +168 -34
  108. package/src/abis/MetricOmmPoolDataProvider.ts +4 -4
  109. package/src/abis/MetricOmmPoolFactory.ts +93 -19
  110. package/src/abis/MetricOmmPoolLiquidityAdder.ts +85 -9
  111. package/src/abis/MetricOmmPoolSwapper.ts +8 -8
  112. package/src/abis/OracleValueStopLossExtension.ts +1213 -0
  113. package/src/abis/PriceProvider.ts +1 -146
  114. package/src/abis/PriceVelocityGuardExtension.ts +589 -0
  115. package/src/abis/SwapAllowlistExtension.ts +571 -0
  116. package/src/abis/index.ts +4 -0
  117. package/src/addresses.ts +44 -18
  118. package/src/extensions/admin/depositAllowlist.ts +16 -0
  119. package/src/extensions/admin/oracleStopLoss.ts +141 -0
  120. package/src/extensions/admin/priceVelocityGuard.ts +27 -0
  121. package/src/extensions/admin/swapAllowlist.ts +16 -0
  122. package/src/extensions/index.ts +31 -0
  123. package/src/extensions/init/index.ts +21 -0
  124. package/src/extensions/orders.ts +33 -0
  125. package/src/extensions/types.ts +33 -0
  126. package/src/index.ts +33 -0
  127. package/src/pool/create.ts +12 -8
  128. package/src/pool/index.ts +1 -0
  129. package/src/pool/liquidity.ts +41 -15
  130. package/src/pool/read.ts +34 -16
  131. package/src/router/swap.ts +16 -16
  132. package/src/types.ts +3 -4
@@ -6,6 +6,16 @@ export const MetricOmmPoolAbi = [
6
6
  name: "factory",
7
7
  type: "address",
8
8
  },
9
+ {
10
+ internalType: "address",
11
+ name: "",
12
+ type: "address",
13
+ },
14
+ {
15
+ internalType: "address",
16
+ name: "",
17
+ type: "address",
18
+ },
9
19
  {
10
20
  internalType: "address",
11
21
  name: "token0",
@@ -22,14 +32,83 @@ export const MetricOmmPoolAbi = [
22
32
  type: "address",
23
33
  },
24
34
  {
25
- internalType: "address",
26
- name: "hooks_",
27
- type: "address",
35
+ components: [
36
+ {
37
+ internalType: "address",
38
+ name: "extension1",
39
+ type: "address",
40
+ },
41
+ {
42
+ internalType: "address",
43
+ name: "extension2",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "address",
48
+ name: "extension3",
49
+ type: "address",
50
+ },
51
+ {
52
+ internalType: "address",
53
+ name: "extension4",
54
+ type: "address",
55
+ },
56
+ {
57
+ internalType: "address",
58
+ name: "extension5",
59
+ type: "address",
60
+ },
61
+ {
62
+ internalType: "address",
63
+ name: "extension6",
64
+ type: "address",
65
+ },
66
+ {
67
+ internalType: "address",
68
+ name: "extension7",
69
+ type: "address",
70
+ },
71
+ ],
72
+ internalType: "struct PoolExtensions",
73
+ name: "extensions",
74
+ type: "tuple",
28
75
  },
29
76
  {
30
- internalType: "uint16",
31
- name: "hooksPermissions_",
32
- type: "uint16",
77
+ components: [
78
+ {
79
+ internalType: "uint256",
80
+ name: "beforeAddLiquidity",
81
+ type: "uint256",
82
+ },
83
+ {
84
+ internalType: "uint256",
85
+ name: "afterAddLiquidity",
86
+ type: "uint256",
87
+ },
88
+ {
89
+ internalType: "uint256",
90
+ name: "beforeRemoveLiquidity",
91
+ type: "uint256",
92
+ },
93
+ {
94
+ internalType: "uint256",
95
+ name: "afterRemoveLiquidity",
96
+ type: "uint256",
97
+ },
98
+ {
99
+ internalType: "uint256",
100
+ name: "beforeSwap",
101
+ type: "uint256",
102
+ },
103
+ {
104
+ internalType: "uint256",
105
+ name: "afterSwap",
106
+ type: "uint256",
107
+ },
108
+ ],
109
+ internalType: "struct ExtensionOrders",
110
+ name: "extensionOrders",
111
+ type: "tuple",
33
112
  },
34
113
  {
35
114
  internalType: "bool",
@@ -63,12 +142,7 @@ export const MetricOmmPoolAbi = [
63
142
  },
64
143
  {
65
144
  internalType: "uint24",
66
- name: "protocolSpreadFeeE6",
67
- type: "uint24",
68
- },
69
- {
70
- internalType: "uint24",
71
- name: "adminSpreadFeeE6",
145
+ name: "spreadFeeE6_",
72
146
  type: "uint24",
73
147
  },
74
148
  {
@@ -142,12 +216,7 @@ export const MetricOmmPoolAbi = [
142
216
  },
143
217
  {
144
218
  internalType: "uint24",
145
- name: "protocolNotionalFeeE8",
146
- type: "uint24",
147
- },
148
- {
149
- internalType: "uint24",
150
- name: "adminNotionalFeeE8",
219
+ name: "notionalFeeE8_",
151
220
  type: "uint24",
152
221
  },
153
222
  ],
@@ -171,7 +240,7 @@ export const MetricOmmPoolAbi = [
171
240
  },
172
241
  {
173
242
  inputs: [],
174
- name: "HookCallFailed",
243
+ name: "ExtensionCallFailed",
175
244
  type: "error",
176
245
  },
177
246
  {
@@ -218,7 +287,7 @@ export const MetricOmmPoolAbi = [
218
287
  },
219
288
  {
220
289
  inputs: [],
221
- name: "InvalidHookResponse",
290
+ name: "InvalidExtensionResponse",
222
291
  type: "error",
223
292
  },
224
293
  {
@@ -267,6 +336,16 @@ export const MetricOmmPoolAbi = [
267
336
  name: "OnlyFactory",
268
337
  type: "error",
269
338
  },
339
+ {
340
+ inputs: [],
341
+ name: "PanicEmptyExtension",
342
+ type: "error",
343
+ },
344
+ {
345
+ inputs: [],
346
+ name: "PanicInvalidExtensionIndex",
347
+ type: "error",
348
+ },
270
349
  {
271
350
  inputs: [],
272
351
  name: "PoolPaused",
@@ -698,7 +777,7 @@ export const MetricOmmPoolAbi = [
698
777
  },
699
778
  {
700
779
  internalType: "bytes",
701
- name: "hookData",
780
+ name: "extensionData",
702
781
  type: "bytes",
703
782
  },
704
783
  ],
@@ -864,16 +943,6 @@ export const MetricOmmPoolAbi = [
864
943
  name: "immutablePriceProvider",
865
944
  type: "address",
866
945
  },
867
- {
868
- internalType: "address",
869
- name: "hooks",
870
- type: "address",
871
- },
872
- {
873
- internalType: "uint16",
874
- name: "hooksPermissions",
875
- type: "uint16",
876
- },
877
946
  {
878
947
  internalType: "int256",
879
948
  name: "lowestBin",
@@ -884,6 +953,71 @@ export const MetricOmmPoolAbi = [
884
953
  name: "highestBin",
885
954
  type: "int256",
886
955
  },
956
+ {
957
+ internalType: "address",
958
+ name: "extension1",
959
+ type: "address",
960
+ },
961
+ {
962
+ internalType: "address",
963
+ name: "extension2",
964
+ type: "address",
965
+ },
966
+ {
967
+ internalType: "address",
968
+ name: "extension3",
969
+ type: "address",
970
+ },
971
+ {
972
+ internalType: "address",
973
+ name: "extension4",
974
+ type: "address",
975
+ },
976
+ {
977
+ internalType: "address",
978
+ name: "extension5",
979
+ type: "address",
980
+ },
981
+ {
982
+ internalType: "address",
983
+ name: "extension6",
984
+ type: "address",
985
+ },
986
+ {
987
+ internalType: "address",
988
+ name: "extension7",
989
+ type: "address",
990
+ },
991
+ {
992
+ internalType: "uint256",
993
+ name: "beforeAddLiquidityOrder",
994
+ type: "uint256",
995
+ },
996
+ {
997
+ internalType: "uint256",
998
+ name: "afterAddLiquidityOrder",
999
+ type: "uint256",
1000
+ },
1001
+ {
1002
+ internalType: "uint256",
1003
+ name: "beforeRemoveLiquidityOrder",
1004
+ type: "uint256",
1005
+ },
1006
+ {
1007
+ internalType: "uint256",
1008
+ name: "afterRemoveLiquidityOrder",
1009
+ type: "uint256",
1010
+ },
1011
+ {
1012
+ internalType: "uint256",
1013
+ name: "beforeSwapOrder",
1014
+ type: "uint256",
1015
+ },
1016
+ {
1017
+ internalType: "uint256",
1018
+ name: "afterSwapOrder",
1019
+ type: "uint256",
1020
+ },
887
1021
  ],
888
1022
  internalType: "struct PoolImmutables",
889
1023
  name: "",
@@ -937,7 +1071,7 @@ export const MetricOmmPoolAbi = [
937
1071
  },
938
1072
  {
939
1073
  internalType: "bytes",
940
- name: "hookData",
1074
+ name: "extensionData",
941
1075
  type: "bytes",
942
1076
  },
943
1077
  ],
@@ -1058,7 +1192,7 @@ export const MetricOmmPoolAbi = [
1058
1192
  },
1059
1193
  {
1060
1194
  internalType: "bytes",
1061
- name: "hookData",
1195
+ name: "extensionData",
1062
1196
  type: "bytes",
1063
1197
  },
1064
1198
  ],
@@ -1107,7 +1241,7 @@ export const MetricOmmPoolAbi = [
1107
1241
  },
1108
1242
  {
1109
1243
  internalType: "bytes",
1110
- name: "hookData",
1244
+ name: "extensionData",
1111
1245
  type: "bytes",
1112
1246
  },
1113
1247
  ],
@@ -219,7 +219,7 @@ export const MetricOmmPoolDataProviderAbi = [
219
219
  type: "uint256",
220
220
  },
221
221
  ],
222
- stateMutability: "view",
222
+ stateMutability: "nonpayable",
223
223
  type: "function",
224
224
  },
225
225
  {
@@ -262,7 +262,7 @@ export const MetricOmmPoolDataProviderAbi = [
262
262
  type: "uint128",
263
263
  },
264
264
  ],
265
- stateMutability: "view",
265
+ stateMutability: "nonpayable",
266
266
  type: "function",
267
267
  },
268
268
  {
@@ -372,7 +372,7 @@ export const MetricOmmPoolDataProviderAbi = [
372
372
  type: "tuple",
373
373
  },
374
374
  ],
375
- stateMutability: "view",
375
+ stateMutability: "nonpayable",
376
376
  type: "function",
377
377
  },
378
378
  {
@@ -540,7 +540,7 @@ export const MetricOmmPoolDataProviderAbi = [
540
540
  },
541
541
  {
542
542
  internalType: "bytes",
543
- name: "hookData",
543
+ name: "extensionData",
544
544
  type: "bytes",
545
545
  },
546
546
  ],
@@ -52,6 +52,11 @@ export const MetricOmmPoolFactoryAbi = [
52
52
  name: "BinLengthZero",
53
53
  type: "error",
54
54
  },
55
+ {
56
+ inputs: [],
57
+ name: "ExtensionCallFailed",
58
+ type: "error",
59
+ },
55
60
  {
56
61
  inputs: [],
57
62
  name: "FeeCapsExceedHardLimit",
@@ -69,12 +74,17 @@ export const MetricOmmPoolFactoryAbi = [
69
74
  },
70
75
  {
71
76
  inputs: [],
72
- name: "InvalidHooksConfig",
77
+ name: "InvalidExtensionOrder",
78
+ type: "error",
79
+ },
80
+ {
81
+ inputs: [],
82
+ name: "InvalidExtensionResponse",
73
83
  type: "error",
74
84
  },
75
85
  {
76
86
  inputs: [],
77
- name: "InvalidHooksConfig",
87
+ name: "InvalidExtensionsConfig",
78
88
  type: "error",
79
89
  },
80
90
  {
@@ -250,11 +260,6 @@ export const MetricOmmPoolFactoryAbi = [
250
260
  name: "SafeERC20FailedOperation",
251
261
  type: "error",
252
262
  },
253
- {
254
- inputs: [],
255
- name: "WrongBinArrays",
256
- type: "error",
257
- },
258
263
  {
259
264
  anonymous: false,
260
265
  inputs: [
@@ -497,15 +502,47 @@ export const MetricOmmPoolFactoryAbi = [
497
502
  },
498
503
  {
499
504
  indexed: false,
500
- internalType: "address",
501
- name: "hooks",
502
- type: "address",
505
+ internalType: "address[]",
506
+ name: "extensions",
507
+ type: "address[]",
503
508
  },
504
509
  {
510
+ components: [
511
+ {
512
+ internalType: "uint256",
513
+ name: "beforeAddLiquidity",
514
+ type: "uint256",
515
+ },
516
+ {
517
+ internalType: "uint256",
518
+ name: "afterAddLiquidity",
519
+ type: "uint256",
520
+ },
521
+ {
522
+ internalType: "uint256",
523
+ name: "beforeRemoveLiquidity",
524
+ type: "uint256",
525
+ },
526
+ {
527
+ internalType: "uint256",
528
+ name: "afterRemoveLiquidity",
529
+ type: "uint256",
530
+ },
531
+ {
532
+ internalType: "uint256",
533
+ name: "beforeSwap",
534
+ type: "uint256",
535
+ },
536
+ {
537
+ internalType: "uint256",
538
+ name: "afterSwap",
539
+ type: "uint256",
540
+ },
541
+ ],
505
542
  indexed: false,
506
- internalType: "uint16",
507
- name: "hooksPermissions",
508
- type: "uint16",
543
+ internalType: "struct ExtensionOrders",
544
+ name: "extensionOrders",
545
+ type: "tuple",
509
546
  },
510
547
  {
511
548
  indexed: false,
@@ -854,14 +891,51 @@ export const MetricOmmPoolFactoryAbi = [
854
891
  type: "address",
855
892
  },
856
893
  {
857
- internalType: "address",
858
- name: "hooks",
859
- type: "address",
894
+ internalType: "address[]",
895
+ name: "extensions",
896
+ type: "address[]",
897
+ },
898
+ {
899
+ components: [
900
+ {
901
+ internalType: "uint256",
902
+ name: "beforeAddLiquidity",
903
+ type: "uint256",
904
+ },
905
+ {
906
+ internalType: "uint256",
907
+ name: "afterAddLiquidity",
908
+ type: "uint256",
909
+ },
910
+ {
911
+ internalType: "uint256",
912
+ name: "beforeRemoveLiquidity",
913
+ type: "uint256",
914
+ },
915
+ {
916
+ internalType: "uint256",
917
+ name: "afterRemoveLiquidity",
918
+ type: "uint256",
919
+ },
920
+ {
921
+ internalType: "uint256",
922
+ name: "beforeSwap",
923
+ type: "uint256",
924
+ },
925
+ {
926
+ internalType: "uint256",
927
+ name: "afterSwap",
928
+ type: "uint256",
929
+ },
930
+ ],
931
+ internalType: "struct ExtensionOrders",
932
+ name: "extensionOrders",
933
+ type: "tuple",
860
934
  },
861
935
  {
862
- internalType: "uint16",
863
- name: "hooksPermissions",
864
- type: "uint16",
936
+ internalType: "bytes[]",
937
+ name: "extensionInitData",
938
+ type: "bytes[]",
865
939
  },
866
940
  {
867
941
  internalType: "uint256",
@@ -9,6 +9,42 @@ export const MetricOmmPoolLiquidityAdderAbi = [
9
9
  name: "CallbackContextNotActive",
10
10
  type: "error",
11
11
  },
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "int8",
16
+ name: "curBinIdx",
17
+ type: "int8",
18
+ },
19
+ {
20
+ internalType: "uint104",
21
+ name: "curPosInBin",
22
+ type: "uint104",
23
+ },
24
+ {
25
+ internalType: "int8",
26
+ name: "minimalCurBin",
27
+ type: "int8",
28
+ },
29
+ {
30
+ internalType: "uint104",
31
+ name: "minimalPosition",
32
+ type: "uint104",
33
+ },
34
+ {
35
+ internalType: "int8",
36
+ name: "maximalCurBin",
37
+ type: "int8",
38
+ },
39
+ {
40
+ internalType: "uint104",
41
+ name: "maximalPosition",
42
+ type: "uint104",
43
+ },
44
+ ],
45
+ name: "CursorOutOfBounds",
46
+ type: "error",
47
+ },
12
48
  {
13
49
  inputs: [],
14
50
  name: "EmptyLiquidityDelta",
@@ -175,7 +211,7 @@ export const MetricOmmPoolLiquidityAdderAbi = [
175
211
  },
176
212
  {
177
213
  internalType: "bytes",
178
- name: "hookData",
214
+ name: "extensionData",
179
215
  type: "bytes",
180
216
  },
181
217
  ],
@@ -236,7 +272,7 @@ export const MetricOmmPoolLiquidityAdderAbi = [
236
272
  },
237
273
  {
238
274
  internalType: "bytes",
239
- name: "hookData",
275
+ name: "extensionData",
240
276
  type: "bytes",
241
277
  },
242
278
  ],
@@ -263,11 +299,6 @@ export const MetricOmmPoolLiquidityAdderAbi = [
263
299
  name: "pool",
264
300
  type: "address",
265
301
  },
266
- {
267
- internalType: "address",
268
- name: "owner",
269
- type: "address",
270
- },
271
302
  {
272
303
  internalType: "uint80",
273
304
  name: "salt",
@@ -300,9 +331,29 @@ export const MetricOmmPoolLiquidityAdderAbi = [
300
331
  name: "maxAmountToken1",
301
332
  type: "uint256",
302
333
  },
334
+ {
335
+ internalType: "int8",
336
+ name: "minimalCurBin",
337
+ type: "int8",
338
+ },
339
+ {
340
+ internalType: "uint104",
341
+ name: "minimalPosition",
342
+ type: "uint104",
343
+ },
344
+ {
345
+ internalType: "int8",
346
+ name: "maximalCurBin",
347
+ type: "int8",
348
+ },
349
+ {
350
+ internalType: "uint104",
351
+ name: "maximalPosition",
352
+ type: "uint104",
353
+ },
303
354
  {
304
355
  internalType: "bytes",
305
- name: "hookData",
356
+ name: "extensionData",
306
357
  type: "bytes",
307
358
  },
308
359
  ],
@@ -329,6 +380,11 @@ export const MetricOmmPoolLiquidityAdderAbi = [
329
380
  name: "pool",
330
381
  type: "address",
331
382
  },
383
+ {
384
+ internalType: "address",
385
+ name: "owner",
386
+ type: "address",
387
+ },
332
388
  {
333
389
  internalType: "uint80",
334
390
  name: "salt",
@@ -361,9 +417,29 @@ export const MetricOmmPoolLiquidityAdderAbi = [
361
417
  name: "maxAmountToken1",
362
418
  type: "uint256",
363
419
  },
420
+ {
421
+ internalType: "int8",
422
+ name: "minimalCurBin",
423
+ type: "int8",
424
+ },
425
+ {
426
+ internalType: "uint104",
427
+ name: "minimalPosition",
428
+ type: "uint104",
429
+ },
430
+ {
431
+ internalType: "int8",
432
+ name: "maximalCurBin",
433
+ type: "int8",
434
+ },
435
+ {
436
+ internalType: "uint104",
437
+ name: "maximalPosition",
438
+ type: "uint104",
439
+ },
364
440
  {
365
441
  internalType: "bytes",
366
- name: "hookData",
442
+ name: "extensionData",
367
443
  type: "bytes",
368
444
  },
369
445
  ],
@@ -317,7 +317,7 @@ export const MetricOmmPoolSwapperAbi = [
317
317
  },
318
318
  {
319
319
  internalType: "bytes",
320
- name: "hookData",
320
+ name: "extensionData",
321
321
  type: "bytes",
322
322
  },
323
323
  ],
@@ -376,7 +376,7 @@ export const MetricOmmPoolSwapperAbi = [
376
376
  },
377
377
  {
378
378
  internalType: "bytes",
379
- name: "hookData",
379
+ name: "extensionData",
380
380
  type: "bytes",
381
381
  },
382
382
  ],
@@ -538,7 +538,7 @@ export const MetricOmmPoolSwapperAbi = [
538
538
  },
539
539
  {
540
540
  internalType: "bytes",
541
- name: "hookData",
541
+ name: "extensionData",
542
542
  type: "bytes",
543
543
  },
544
544
  ],
@@ -705,7 +705,7 @@ export const MetricOmmPoolSwapperAbi = [
705
705
  },
706
706
  {
707
707
  internalType: "bytes",
708
- name: "hookData",
708
+ name: "extensionData",
709
709
  type: "bytes",
710
710
  },
711
711
  ],
@@ -818,7 +818,7 @@ export const MetricOmmPoolSwapperAbi = [
818
818
  },
819
819
  {
820
820
  internalType: "bytes",
821
- name: "hookData",
821
+ name: "extensionData",
822
822
  type: "bytes",
823
823
  },
824
824
  ],
@@ -931,7 +931,7 @@ export const MetricOmmPoolSwapperAbi = [
931
931
  },
932
932
  {
933
933
  internalType: "bytes",
934
- name: "hookData",
934
+ name: "extensionData",
935
935
  type: "bytes",
936
936
  },
937
937
  ],
@@ -990,7 +990,7 @@ export const MetricOmmPoolSwapperAbi = [
990
990
  },
991
991
  {
992
992
  internalType: "bytes",
993
- name: "hookData",
993
+ name: "extensionData",
994
994
  type: "bytes",
995
995
  },
996
996
  ],
@@ -1157,7 +1157,7 @@ export const MetricOmmPoolSwapperAbi = [
1157
1157
  },
1158
1158
  {
1159
1159
  internalType: "bytes",
1160
- name: "hookData",
1160
+ name: "extensionData",
1161
1161
  type: "bytes",
1162
1162
  },
1163
1163
  ],