@zoralabs/coins 0.7.1 → 1.0.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 (167) hide show
  1. package/.turbo/turbo-build.log +106 -84
  2. package/CHANGELOG.md +68 -0
  3. package/abis/BadImpl.json +15 -0
  4. package/abis/BalanceDeltaLibrary.json +15 -0
  5. package/abis/BaseCoin.json +1350 -0
  6. package/abis/BaseCoinDeployHook.json +78 -0
  7. package/abis/BaseHook.json +897 -0
  8. package/abis/BaseTest.json +60 -91
  9. package/abis/BeforeSwapDeltaLibrary.json +15 -0
  10. package/abis/BuySupplyWithSwapRouterHook.json +126 -0
  11. package/abis/Coin.json +214 -150
  12. package/abis/CoinConstants.json +65 -0
  13. package/abis/CoinDopplerMultiCurve.json +38 -0
  14. package/abis/CoinRewardsV4.json +54 -0
  15. package/abis/CoinTest.json +66 -111
  16. package/abis/CoinUniV4Test.json +1053 -0
  17. package/abis/CoinV4.json +1687 -0
  18. package/abis/CurrencyLibrary.json +25 -0
  19. package/abis/DeployHooks.json +9 -0
  20. package/abis/DeployScript.json +47 -0
  21. package/abis/DeployedCoinVersionLookup.json +21 -0
  22. package/abis/DeployedCoinVersionLookupTest.json +716 -0
  23. package/abis/DifferentNamespaceVersionLookup.json +39 -0
  24. package/abis/DopplerUniswapV3Test.json +62 -184
  25. package/abis/ERC20.json +310 -0
  26. package/abis/FactoryTest.json +98 -98
  27. package/abis/FakeHookNoInterface.json +21 -0
  28. package/abis/FeeEstimatorHook.json +1528 -0
  29. package/abis/Hooks.json +28 -0
  30. package/abis/HooksDeployment.json +23 -0
  31. package/abis/HooksTest.json +698 -0
  32. package/abis/IAllowanceTransfer.json +486 -0
  33. package/abis/ICoin.json +62 -69
  34. package/abis/ICoinDeployHook.json +31 -0
  35. package/abis/ICoinV3.json +879 -0
  36. package/abis/ICoinV4.json +915 -0
  37. package/abis/IContractMetadata.json +28 -0
  38. package/abis/IDeployedCoinVersionLookup.json +21 -0
  39. package/abis/IEIP712.json +15 -0
  40. package/abis/IEIP712_v4.json +15 -0
  41. package/abis/IERC20Minimal.json +172 -0
  42. package/abis/IERC6909Claims.json +288 -0
  43. package/abis/IERC721.json +36 -36
  44. package/abis/IERC721Permit_v4.json +88 -0
  45. package/abis/IExtsload.json +64 -0
  46. package/abis/IExttload.json +40 -0
  47. package/abis/IHasAfterCoinDeploy.json +31 -0
  48. package/abis/IHasContractName.json +15 -0
  49. package/abis/IHasPoolKey.json +42 -0
  50. package/abis/IHasRewardsRecipients.json +54 -0
  51. package/abis/IHasSwapPath.json +60 -0
  52. package/abis/IHooks.json +789 -0
  53. package/abis/IImmutableState.json +15 -0
  54. package/abis/IMsgSender.json +15 -0
  55. package/abis/IMulticall_v4.json +21 -0
  56. package/abis/INotifier.json +187 -0
  57. package/abis/IPermit2.json +865 -0
  58. package/abis/IPermit2Forwarder.json +138 -0
  59. package/abis/IPoolConfigEncoding.json +46 -0
  60. package/abis/IPoolInitializer_v4.json +53 -0
  61. package/abis/IPoolManager.json +1286 -0
  62. package/abis/IPositionManager.json +712 -0
  63. package/abis/IProtocolFees.json +174 -0
  64. package/abis/ISignatureTransfer.json +394 -0
  65. package/abis/ISubscriber.json +89 -0
  66. package/abis/ISwapPathRouter.json +92 -0
  67. package/abis/ISwapRouter.json +82 -0
  68. package/abis/IUniversalRouter.json +61 -0
  69. package/abis/IUnlockCallback.json +21 -0
  70. package/abis/IUnorderedNonce.json +44 -0
  71. package/abis/IV4Quoter.json +310 -0
  72. package/abis/IV4Router.json +47 -0
  73. package/abis/IZoraFactory.json +328 -4
  74. package/abis/IZoraV4CoinHook.json +427 -0
  75. package/abis/ImmutableState.json +36 -0
  76. package/abis/LPFeeLibrary.json +65 -0
  77. package/abis/MockERC20.json +21 -0
  78. package/abis/MultiOwnableTest.json +60 -91
  79. package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
  80. package/abis/PrintUpgradeCommand.json +9 -0
  81. package/abis/ProxyShim.json +24 -0
  82. package/abis/Simulate.json +0 -91
  83. package/abis/StateLibrary.json +80 -0
  84. package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
  85. package/abis/TestV4Swap.json +9 -0
  86. package/abis/{CoinSetup.json → UniV3BuySell.json} +5 -0
  87. package/abis/UniV3Errors.json +32 -0
  88. package/abis/UpgradeCoinImpl.json +47 -0
  89. package/abis/UpgradeFactoryImpl.json +9 -0
  90. package/abis/UpgradesTest.json +671 -0
  91. package/abis/Vm.json +1482 -111
  92. package/abis/VmSafe.json +856 -32
  93. package/abis/ZoraFactoryImpl.json +450 -1
  94. package/abis/ZoraV4CoinHook.json +1439 -0
  95. package/addresses/8453.json +8 -3
  96. package/addresses/84532.json +8 -3
  97. package/dist/index.cjs +1998 -184
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.js +1989 -178
  100. package/dist/index.js.map +1 -1
  101. package/dist/wagmiGenerated.d.ts +2852 -688
  102. package/dist/wagmiGenerated.d.ts.map +1 -1
  103. package/package/wagmiGenerated.ts +1992 -173
  104. package/package.json +7 -2
  105. package/remappings.txt +6 -1
  106. package/script/CoinsDeployerBase.sol +105 -10
  107. package/script/DeployDevFactory.s.sol +21 -0
  108. package/script/DeployHooks.s.sol +22 -0
  109. package/script/PrintUpgradeCommand.s.sol +13 -0
  110. package/script/Simulate.s.sol +4 -12
  111. package/script/TestBackingCoinSwap.s.sol +146 -0
  112. package/script/TestV4Swap.s.sol +136 -0
  113. package/script/UpgradeCoinImpl.sol +2 -2
  114. package/script/UpgradeFactoryImpl.s.sol +23 -0
  115. package/src/BaseCoin.sol +176 -0
  116. package/src/Coin.sol +93 -515
  117. package/src/CoinV4.sol +121 -0
  118. package/src/ZoraFactoryImpl.sol +257 -57
  119. package/src/hooks/ZoraV4CoinHook.sol +195 -0
  120. package/src/hooks/deployment/BaseCoinDeployHook.sol +62 -0
  121. package/src/hooks/deployment/BuySupplyWithSwapRouterHook.sol +80 -0
  122. package/src/interfaces/ICoin.sol +35 -39
  123. package/src/interfaces/ICoinDeployHook.sol +8 -0
  124. package/src/interfaces/ICoinV3.sol +71 -0
  125. package/src/interfaces/ICoinV4.sol +69 -0
  126. package/src/interfaces/IDeployedCoinVersionLookup.sol +11 -0
  127. package/src/interfaces/IMsgSender.sol +9 -0
  128. package/src/interfaces/IPoolConfigEncoding.sol +14 -0
  129. package/src/interfaces/ISwapPathRouter.sol +14 -0
  130. package/src/interfaces/ISwapRouter.sol +1 -35
  131. package/src/interfaces/IZoraFactory.sol +97 -7
  132. package/src/interfaces/IZoraV4CoinHook.sol +116 -0
  133. package/src/libs/CoinCommon.sol +15 -0
  134. package/src/libs/CoinConfigurationVersions.sol +116 -1
  135. package/src/{utils → libs}/CoinConstants.sol +11 -6
  136. package/src/libs/CoinDopplerMultiCurve.sol +134 -0
  137. package/src/libs/CoinDopplerUniV3.sol +19 -171
  138. package/src/libs/CoinRewards.sol +195 -0
  139. package/src/libs/CoinRewardsV4.sol +180 -0
  140. package/src/libs/CoinSetup.sol +40 -20
  141. package/src/libs/CoinSetupV3.sol +50 -0
  142. package/src/libs/DopplerMath.sol +156 -0
  143. package/src/libs/HooksDeployment.sol +84 -0
  144. package/src/libs/MarketConstants.sol +4 -0
  145. package/src/libs/PoolStateReader.sol +22 -0
  146. package/src/libs/UniV3BuySell.sol +231 -0
  147. package/src/libs/UniV3Errors.sol +11 -0
  148. package/src/libs/UniV4SwapHelper.sol +65 -0
  149. package/src/libs/UniV4SwapToCurrency.sol +109 -0
  150. package/src/libs/V4Liquidity.sol +129 -0
  151. package/src/types/PoolConfiguration.sol +15 -0
  152. package/src/utils/DeployedCoinVersionLookup.sol +52 -0
  153. package/src/version/ContractVersionBase.sol +1 -1
  154. package/test/Coin.t.sol +94 -101
  155. package/test/CoinDopplerUniV3.t.sol +35 -184
  156. package/test/CoinUniV4.t.sol +752 -0
  157. package/test/DeploymentHooks.t.sol +270 -0
  158. package/test/Factory.t.sol +84 -50
  159. package/test/MultiOwnable.t.sol +6 -3
  160. package/test/Upgrades.t.sol +68 -0
  161. package/test/mocks/MockERC20.sol +12 -0
  162. package/test/utils/BaseTest.sol +124 -59
  163. package/test/utils/DeployedCoinVersionLookup.t.sol +127 -0
  164. package/test/utils/FeeEstimatorHook.sol +84 -0
  165. package/test/utils/ProxyShim.sol +17 -0
  166. package/wagmi.config.ts +10 -9
  167. package/src/libs/CoinLegacy.sol +0 -48
@@ -0,0 +1,92 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "getSwapPath",
5
+ "inputs": [
6
+ {
7
+ "name": "key",
8
+ "type": "tuple",
9
+ "internalType": "struct PoolKey",
10
+ "components": [
11
+ {
12
+ "name": "currency0",
13
+ "type": "address",
14
+ "internalType": "Currency"
15
+ },
16
+ {
17
+ "name": "currency1",
18
+ "type": "address",
19
+ "internalType": "Currency"
20
+ },
21
+ {
22
+ "name": "fee",
23
+ "type": "uint24",
24
+ "internalType": "uint24"
25
+ },
26
+ {
27
+ "name": "tickSpacing",
28
+ "type": "int24",
29
+ "internalType": "int24"
30
+ },
31
+ {
32
+ "name": "hooks",
33
+ "type": "address",
34
+ "internalType": "contract IHooks"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "name": "toSwapOut",
40
+ "type": "address",
41
+ "internalType": "Currency"
42
+ }
43
+ ],
44
+ "outputs": [
45
+ {
46
+ "name": "path",
47
+ "type": "tuple[]",
48
+ "internalType": "struct ISwapPathRouter.Path[]",
49
+ "components": [
50
+ {
51
+ "name": "key",
52
+ "type": "tuple",
53
+ "internalType": "struct PoolKey",
54
+ "components": [
55
+ {
56
+ "name": "currency0",
57
+ "type": "address",
58
+ "internalType": "Currency"
59
+ },
60
+ {
61
+ "name": "currency1",
62
+ "type": "address",
63
+ "internalType": "Currency"
64
+ },
65
+ {
66
+ "name": "fee",
67
+ "type": "uint24",
68
+ "internalType": "uint24"
69
+ },
70
+ {
71
+ "name": "tickSpacing",
72
+ "type": "int24",
73
+ "internalType": "int24"
74
+ },
75
+ {
76
+ "name": "hooks",
77
+ "type": "address",
78
+ "internalType": "contract IHooks"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "name": "currencyIn",
84
+ "type": "address",
85
+ "internalType": "Currency"
86
+ }
87
+ ]
88
+ }
89
+ ],
90
+ "stateMutability": "view"
91
+ }
92
+ ]
@@ -1,4 +1,45 @@
1
1
  [
2
+ {
3
+ "type": "function",
4
+ "name": "exactInput",
5
+ "inputs": [
6
+ {
7
+ "name": "params",
8
+ "type": "tuple",
9
+ "internalType": "struct ISwapRouter.ExactInputParams",
10
+ "components": [
11
+ {
12
+ "name": "path",
13
+ "type": "bytes",
14
+ "internalType": "bytes"
15
+ },
16
+ {
17
+ "name": "recipient",
18
+ "type": "address",
19
+ "internalType": "address"
20
+ },
21
+ {
22
+ "name": "amountIn",
23
+ "type": "uint256",
24
+ "internalType": "uint256"
25
+ },
26
+ {
27
+ "name": "amountOutMinimum",
28
+ "type": "uint256",
29
+ "internalType": "uint256"
30
+ }
31
+ ]
32
+ }
33
+ ],
34
+ "outputs": [
35
+ {
36
+ "name": "amountOut",
37
+ "type": "uint256",
38
+ "internalType": "uint256"
39
+ }
40
+ ],
41
+ "stateMutability": "payable"
42
+ },
2
43
  {
3
44
  "type": "function",
4
45
  "name": "exactInputSingle",
@@ -55,6 +96,47 @@
55
96
  ],
56
97
  "stateMutability": "payable"
57
98
  },
99
+ {
100
+ "type": "function",
101
+ "name": "exactOutput",
102
+ "inputs": [
103
+ {
104
+ "name": "params",
105
+ "type": "tuple",
106
+ "internalType": "struct ISwapRouter.ExactOutputParams",
107
+ "components": [
108
+ {
109
+ "name": "path",
110
+ "type": "bytes",
111
+ "internalType": "bytes"
112
+ },
113
+ {
114
+ "name": "recipient",
115
+ "type": "address",
116
+ "internalType": "address"
117
+ },
118
+ {
119
+ "name": "amountOut",
120
+ "type": "uint256",
121
+ "internalType": "uint256"
122
+ },
123
+ {
124
+ "name": "amountInMaximum",
125
+ "type": "uint256",
126
+ "internalType": "uint256"
127
+ }
128
+ ]
129
+ }
130
+ ],
131
+ "outputs": [
132
+ {
133
+ "name": "amountIn",
134
+ "type": "uint256",
135
+ "internalType": "uint256"
136
+ }
137
+ ],
138
+ "stateMutability": "payable"
139
+ },
58
140
  {
59
141
  "type": "function",
60
142
  "name": "exactOutputSingle",
@@ -0,0 +1,61 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "execute",
5
+ "inputs": [
6
+ {
7
+ "name": "commands",
8
+ "type": "bytes",
9
+ "internalType": "bytes"
10
+ },
11
+ {
12
+ "name": "inputs",
13
+ "type": "bytes[]",
14
+ "internalType": "bytes[]"
15
+ },
16
+ {
17
+ "name": "deadline",
18
+ "type": "uint256",
19
+ "internalType": "uint256"
20
+ }
21
+ ],
22
+ "outputs": [],
23
+ "stateMutability": "payable"
24
+ },
25
+ {
26
+ "type": "error",
27
+ "name": "ETHNotAccepted",
28
+ "inputs": []
29
+ },
30
+ {
31
+ "type": "error",
32
+ "name": "ExecutionFailed",
33
+ "inputs": [
34
+ {
35
+ "name": "commandIndex",
36
+ "type": "uint256",
37
+ "internalType": "uint256"
38
+ },
39
+ {
40
+ "name": "message",
41
+ "type": "bytes",
42
+ "internalType": "bytes"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "type": "error",
48
+ "name": "InvalidEthSender",
49
+ "inputs": []
50
+ },
51
+ {
52
+ "type": "error",
53
+ "name": "LengthMismatch",
54
+ "inputs": []
55
+ },
56
+ {
57
+ "type": "error",
58
+ "name": "TransactionDeadlinePassed",
59
+ "inputs": []
60
+ }
61
+ ]
@@ -0,0 +1,21 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "unlockCallback",
5
+ "inputs": [
6
+ {
7
+ "name": "data",
8
+ "type": "bytes",
9
+ "internalType": "bytes"
10
+ }
11
+ ],
12
+ "outputs": [
13
+ {
14
+ "name": "",
15
+ "type": "bytes",
16
+ "internalType": "bytes"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable"
20
+ }
21
+ ]
@@ -0,0 +1,44 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "nonces",
5
+ "inputs": [
6
+ {
7
+ "name": "owner",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ },
11
+ {
12
+ "name": "word",
13
+ "type": "uint256",
14
+ "internalType": "uint256"
15
+ }
16
+ ],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "uint256",
21
+ "internalType": "uint256"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "revokeNonce",
29
+ "inputs": [
30
+ {
31
+ "name": "nonce",
32
+ "type": "uint256",
33
+ "internalType": "uint256"
34
+ }
35
+ ],
36
+ "outputs": [],
37
+ "stateMutability": "payable"
38
+ },
39
+ {
40
+ "type": "error",
41
+ "name": "NonceAlreadyUsed",
42
+ "inputs": []
43
+ }
44
+ ]
@@ -0,0 +1,310 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "msgSender",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "poolManager",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "address",
23
+ "internalType": "contract IPoolManager"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "quoteExactInput",
31
+ "inputs": [
32
+ {
33
+ "name": "params",
34
+ "type": "tuple",
35
+ "internalType": "struct IV4Quoter.QuoteExactParams",
36
+ "components": [
37
+ {
38
+ "name": "exactCurrency",
39
+ "type": "address",
40
+ "internalType": "Currency"
41
+ },
42
+ {
43
+ "name": "path",
44
+ "type": "tuple[]",
45
+ "internalType": "struct PathKey[]",
46
+ "components": [
47
+ {
48
+ "name": "intermediateCurrency",
49
+ "type": "address",
50
+ "internalType": "Currency"
51
+ },
52
+ {
53
+ "name": "fee",
54
+ "type": "uint24",
55
+ "internalType": "uint24"
56
+ },
57
+ {
58
+ "name": "tickSpacing",
59
+ "type": "int24",
60
+ "internalType": "int24"
61
+ },
62
+ {
63
+ "name": "hooks",
64
+ "type": "address",
65
+ "internalType": "contract IHooks"
66
+ },
67
+ {
68
+ "name": "hookData",
69
+ "type": "bytes",
70
+ "internalType": "bytes"
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "name": "exactAmount",
76
+ "type": "uint128",
77
+ "internalType": "uint128"
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "outputs": [
83
+ {
84
+ "name": "amountOut",
85
+ "type": "uint256",
86
+ "internalType": "uint256"
87
+ },
88
+ {
89
+ "name": "gasEstimate",
90
+ "type": "uint256",
91
+ "internalType": "uint256"
92
+ }
93
+ ],
94
+ "stateMutability": "nonpayable"
95
+ },
96
+ {
97
+ "type": "function",
98
+ "name": "quoteExactInputSingle",
99
+ "inputs": [
100
+ {
101
+ "name": "params",
102
+ "type": "tuple",
103
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
104
+ "components": [
105
+ {
106
+ "name": "poolKey",
107
+ "type": "tuple",
108
+ "internalType": "struct PoolKey",
109
+ "components": [
110
+ {
111
+ "name": "currency0",
112
+ "type": "address",
113
+ "internalType": "Currency"
114
+ },
115
+ {
116
+ "name": "currency1",
117
+ "type": "address",
118
+ "internalType": "Currency"
119
+ },
120
+ {
121
+ "name": "fee",
122
+ "type": "uint24",
123
+ "internalType": "uint24"
124
+ },
125
+ {
126
+ "name": "tickSpacing",
127
+ "type": "int24",
128
+ "internalType": "int24"
129
+ },
130
+ {
131
+ "name": "hooks",
132
+ "type": "address",
133
+ "internalType": "contract IHooks"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "name": "zeroForOne",
139
+ "type": "bool",
140
+ "internalType": "bool"
141
+ },
142
+ {
143
+ "name": "exactAmount",
144
+ "type": "uint128",
145
+ "internalType": "uint128"
146
+ },
147
+ {
148
+ "name": "hookData",
149
+ "type": "bytes",
150
+ "internalType": "bytes"
151
+ }
152
+ ]
153
+ }
154
+ ],
155
+ "outputs": [
156
+ {
157
+ "name": "amountOut",
158
+ "type": "uint256",
159
+ "internalType": "uint256"
160
+ },
161
+ {
162
+ "name": "gasEstimate",
163
+ "type": "uint256",
164
+ "internalType": "uint256"
165
+ }
166
+ ],
167
+ "stateMutability": "nonpayable"
168
+ },
169
+ {
170
+ "type": "function",
171
+ "name": "quoteExactOutput",
172
+ "inputs": [
173
+ {
174
+ "name": "params",
175
+ "type": "tuple",
176
+ "internalType": "struct IV4Quoter.QuoteExactParams",
177
+ "components": [
178
+ {
179
+ "name": "exactCurrency",
180
+ "type": "address",
181
+ "internalType": "Currency"
182
+ },
183
+ {
184
+ "name": "path",
185
+ "type": "tuple[]",
186
+ "internalType": "struct PathKey[]",
187
+ "components": [
188
+ {
189
+ "name": "intermediateCurrency",
190
+ "type": "address",
191
+ "internalType": "Currency"
192
+ },
193
+ {
194
+ "name": "fee",
195
+ "type": "uint24",
196
+ "internalType": "uint24"
197
+ },
198
+ {
199
+ "name": "tickSpacing",
200
+ "type": "int24",
201
+ "internalType": "int24"
202
+ },
203
+ {
204
+ "name": "hooks",
205
+ "type": "address",
206
+ "internalType": "contract IHooks"
207
+ },
208
+ {
209
+ "name": "hookData",
210
+ "type": "bytes",
211
+ "internalType": "bytes"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "name": "exactAmount",
217
+ "type": "uint128",
218
+ "internalType": "uint128"
219
+ }
220
+ ]
221
+ }
222
+ ],
223
+ "outputs": [
224
+ {
225
+ "name": "amountIn",
226
+ "type": "uint256",
227
+ "internalType": "uint256"
228
+ },
229
+ {
230
+ "name": "gasEstimate",
231
+ "type": "uint256",
232
+ "internalType": "uint256"
233
+ }
234
+ ],
235
+ "stateMutability": "nonpayable"
236
+ },
237
+ {
238
+ "type": "function",
239
+ "name": "quoteExactOutputSingle",
240
+ "inputs": [
241
+ {
242
+ "name": "params",
243
+ "type": "tuple",
244
+ "internalType": "struct IV4Quoter.QuoteExactSingleParams",
245
+ "components": [
246
+ {
247
+ "name": "poolKey",
248
+ "type": "tuple",
249
+ "internalType": "struct PoolKey",
250
+ "components": [
251
+ {
252
+ "name": "currency0",
253
+ "type": "address",
254
+ "internalType": "Currency"
255
+ },
256
+ {
257
+ "name": "currency1",
258
+ "type": "address",
259
+ "internalType": "Currency"
260
+ },
261
+ {
262
+ "name": "fee",
263
+ "type": "uint24",
264
+ "internalType": "uint24"
265
+ },
266
+ {
267
+ "name": "tickSpacing",
268
+ "type": "int24",
269
+ "internalType": "int24"
270
+ },
271
+ {
272
+ "name": "hooks",
273
+ "type": "address",
274
+ "internalType": "contract IHooks"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "name": "zeroForOne",
280
+ "type": "bool",
281
+ "internalType": "bool"
282
+ },
283
+ {
284
+ "name": "exactAmount",
285
+ "type": "uint128",
286
+ "internalType": "uint128"
287
+ },
288
+ {
289
+ "name": "hookData",
290
+ "type": "bytes",
291
+ "internalType": "bytes"
292
+ }
293
+ ]
294
+ }
295
+ ],
296
+ "outputs": [
297
+ {
298
+ "name": "amountIn",
299
+ "type": "uint256",
300
+ "internalType": "uint256"
301
+ },
302
+ {
303
+ "name": "gasEstimate",
304
+ "type": "uint256",
305
+ "internalType": "uint256"
306
+ }
307
+ ],
308
+ "stateMutability": "nonpayable"
309
+ }
310
+ ]
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "poolManager",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "address",
10
+ "internalType": "contract IPoolManager"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "error",
17
+ "name": "V4TooLittleReceived",
18
+ "inputs": [
19
+ {
20
+ "name": "minAmountOutReceived",
21
+ "type": "uint256",
22
+ "internalType": "uint256"
23
+ },
24
+ {
25
+ "name": "amountReceived",
26
+ "type": "uint256",
27
+ "internalType": "uint256"
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ "type": "error",
33
+ "name": "V4TooMuchRequested",
34
+ "inputs": [
35
+ {
36
+ "name": "maxAmountInRequested",
37
+ "type": "uint256",
38
+ "internalType": "uint256"
39
+ },
40
+ {
41
+ "name": "amountRequested",
42
+ "type": "uint256",
43
+ "internalType": "uint256"
44
+ }
45
+ ]
46
+ }
47
+ ]