levr-sdk 0.0.1
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.
- package/LICENSE.md +201 -0
- package/README.md +711 -0
- package/dist/esm/abis/IClankerAirdrop.js +443 -0
- package/dist/esm/abis/IClankerHookDynamicFee.js +198 -0
- package/dist/esm/abis/IClankerHookStaticFee.js +75 -0
- package/dist/esm/abis/IClankerLPLocker.js +402 -0
- package/dist/esm/abis/IClankerLpLockerMultiple.js +609 -0
- package/dist/esm/abis/IClankerToken.js +421 -0
- package/dist/esm/abis/LevrFactory_v1.js +608 -0
- package/dist/esm/abis/LevrForwarder_v1.js +622 -0
- package/dist/esm/abis/LevrGovernor_v1.js +726 -0
- package/dist/esm/abis/LevrStakedToken_v1.js +441 -0
- package/dist/esm/abis/LevrStaking_v1.js +607 -0
- package/dist/esm/abis/LevrTreasury_v1.js +219 -0
- package/dist/esm/abis/Permit2.js +29 -0
- package/dist/esm/abis/V4Quoter.js +466 -0
- package/dist/esm/abis/WETH9.js +153 -0
- package/dist/esm/abis/index.js +23 -0
- package/dist/esm/balance.js +72 -0
- package/dist/esm/balance.js.map +1 -0
- package/dist/esm/build-calldatas-v4.js +98 -0
- package/dist/esm/build-calldatas-v4.js.map +1 -0
- package/dist/esm/build-clanker-v4.js +128 -0
- package/dist/esm/build-clanker-v4.js.map +1 -0
- package/dist/esm/client/hook/index.js +36 -0
- package/dist/esm/client/hook/index.js.map +1 -0
- package/dist/esm/client/hook/use-balance.js +56 -0
- package/dist/esm/client/hook/use-balance.js.map +1 -0
- package/dist/esm/client/hook/use-clanker.js +57 -0
- package/dist/esm/client/hook/use-clanker.js.map +1 -0
- package/dist/esm/client/hook/use-deploy.js +16 -0
- package/dist/esm/client/hook/use-deploy.js.map +1 -0
- package/dist/esm/client/hook/use-fee-receivers.js +54 -0
- package/dist/esm/client/hook/use-fee-receivers.js.map +1 -0
- package/dist/esm/client/hook/use-governance.js +389 -0
- package/dist/esm/client/hook/use-governance.js.map +1 -0
- package/dist/esm/client/hook/use-prepare.js +47 -0
- package/dist/esm/client/hook/use-prepare.js.map +1 -0
- package/dist/esm/client/hook/use-project.js +29 -0
- package/dist/esm/client/hook/use-project.js.map +1 -0
- package/dist/esm/client/hook/use-projects.js +22 -0
- package/dist/esm/client/hook/use-projects.js.map +1 -0
- package/dist/esm/client/hook/use-proposals.js +31 -0
- package/dist/esm/client/hook/use-proposals.js.map +1 -0
- package/dist/esm/client/hook/use-register.js +101 -0
- package/dist/esm/client/hook/use-register.js.map +1 -0
- package/dist/esm/client/hook/use-stake.js +327 -0
- package/dist/esm/client/hook/use-stake.js.map +1 -0
- package/dist/esm/client/hook/use-swap.js +110 -0
- package/dist/esm/client/hook/use-swap.js.map +1 -0
- package/dist/esm/client/index.js +4 -0
- package/dist/esm/client/index.js.map +1 -0
- package/dist/esm/client/levr-provider.js +201 -0
- package/dist/esm/client/levr-provider.js.map +1 -0
- package/dist/esm/client/query-keys.js +61 -0
- package/dist/esm/client/query-keys.js.map +1 -0
- package/dist/esm/constants.js +182 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/deploy-v4.js +46 -0
- package/dist/esm/deploy-v4.js.map +1 -0
- package/dist/esm/fee-receivers.js +52 -0
- package/dist/esm/fee-receivers.js.map +1 -0
- package/dist/esm/governance.js +555 -0
- package/dist/esm/governance.js.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/project.js +146 -0
- package/dist/esm/project.js.map +1 -0
- package/dist/esm/projects.js +212 -0
- package/dist/esm/projects.js.map +1 -0
- package/dist/esm/proposals.js +98 -0
- package/dist/esm/proposals.js.map +1 -0
- package/dist/esm/quote-v4.js +169 -0
- package/dist/esm/quote-v4.js.map +1 -0
- package/dist/esm/schema/base.schema.js +11 -0
- package/dist/esm/schema/base.schema.js.map +1 -0
- package/dist/esm/schema/clanker.schema.js +191 -0
- package/dist/esm/schema/clanker.schema.js.map +1 -0
- package/dist/esm/schema/index.js +4 -0
- package/dist/esm/schema/index.js.map +1 -0
- package/dist/esm/schema/levr.schema.js +114 -0
- package/dist/esm/schema/levr.schema.js.map +1 -0
- package/dist/esm/stake.js +384 -0
- package/dist/esm/stake.js.map +1 -0
- package/dist/esm/swap-v4.js +281 -0
- package/dist/esm/swap-v4.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/esm/util.js +19 -0
- package/dist/esm/util.js.map +1 -0
- package/dist/types/abis/IClankerAirdrop.d.ts +348 -0
- package/dist/types/abis/IClankerHookDynamicFee.d.ts +156 -0
- package/dist/types/abis/IClankerHookStaticFee.d.ts +58 -0
- package/dist/types/abis/IClankerLPLocker.d.ts +316 -0
- package/dist/types/abis/IClankerLpLockerMultiple.d.ts +481 -0
- package/dist/types/abis/IClankerToken.d.ts +326 -0
- package/dist/types/abis/LevrFactory_v1.d.ts +471 -0
- package/dist/types/abis/LevrForwarder_v1.d.ts +478 -0
- package/dist/types/abis/LevrGovernor_v1.d.ts +562 -0
- package/dist/types/abis/LevrStakedToken_v1.d.ts +338 -0
- package/dist/types/abis/LevrStaking_v1.d.ts +468 -0
- package/dist/types/abis/LevrTreasury_v1.d.ts +169 -0
- package/dist/types/abis/Permit2.d.ts +54 -0
- package/dist/types/abis/V4Quoter.d.ts +496 -0
- package/dist/types/abis/WETH9.d.ts +244 -0
- package/dist/types/abis/index.d.ts +15 -0
- package/dist/types/balance.d.ts +24 -0
- package/dist/types/balance.d.ts.map +1 -0
- package/dist/types/build-calldatas-v4.d.ts +20 -0
- package/dist/types/build-calldatas-v4.d.ts.map +1 -0
- package/dist/types/build-clanker-v4.d.ts +12 -0
- package/dist/types/build-clanker-v4.d.ts.map +1 -0
- package/dist/types/client/hook/index.d.ts +32 -0
- package/dist/types/client/hook/index.d.ts.map +1 -0
- package/dist/types/client/hook/use-balance.d.ts +18 -0
- package/dist/types/client/hook/use-balance.d.ts.map +1 -0
- package/dist/types/client/hook/use-clanker.d.ts +23 -0
- package/dist/types/client/hook/use-clanker.d.ts.map +1 -0
- package/dist/types/client/hook/use-deploy.d.ts +45 -0
- package/dist/types/client/hook/use-deploy.d.ts.map +1 -0
- package/dist/types/client/hook/use-fee-receivers.d.ts +26 -0
- package/dist/types/client/hook/use-fee-receivers.d.ts.map +1 -0
- package/dist/types/client/hook/use-governance.d.ts +145 -0
- package/dist/types/client/hook/use-governance.d.ts.map +1 -0
- package/dist/types/client/hook/use-prepare.d.ts +21 -0
- package/dist/types/client/hook/use-prepare.d.ts.map +1 -0
- package/dist/types/client/hook/use-project.d.ts +11 -0
- package/dist/types/client/hook/use-project.d.ts.map +1 -0
- package/dist/types/client/hook/use-projects.d.ts +6 -0
- package/dist/types/client/hook/use-projects.d.ts.map +1 -0
- package/dist/types/client/hook/use-proposals.d.ts +16 -0
- package/dist/types/client/hook/use-proposals.d.ts.map +1 -0
- package/dist/types/client/hook/use-register.d.ts +31 -0
- package/dist/types/client/hook/use-register.d.ts.map +1 -0
- package/dist/types/client/hook/use-stake.d.ts +195 -0
- package/dist/types/client/hook/use-stake.d.ts.map +1 -0
- package/dist/types/client/hook/use-swap.d.ts +59 -0
- package/dist/types/client/hook/use-swap.d.ts.map +1 -0
- package/dist/types/client/index.d.ts +4 -0
- package/dist/types/client/index.d.ts.map +1 -0
- package/dist/types/client/levr-provider.d.ts +127 -0
- package/dist/types/client/levr-provider.d.ts.map +1 -0
- package/dist/types/client/query-keys.d.ts +61 -0
- package/dist/types/client/query-keys.d.ts.map +1 -0
- package/dist/types/constants.d.ts +101 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/deploy-v4.d.ts +13 -0
- package/dist/types/deploy-v4.d.ts.map +1 -0
- package/dist/types/fee-receivers.d.ts +29 -0
- package/dist/types/fee-receivers.d.ts.map +1 -0
- package/dist/types/governance.d.ts +205 -0
- package/dist/types/governance.d.ts.map +1 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/project.d.ts +51 -0
- package/dist/types/project.d.ts.map +1 -0
- package/dist/types/projects.d.ts +20 -0
- package/dist/types/projects.d.ts.map +1 -0
- package/dist/types/proposals.d.ts +20 -0
- package/dist/types/proposals.d.ts.map +1 -0
- package/dist/types/quote-v4.d.ts +54 -0
- package/dist/types/quote-v4.d.ts.map +1 -0
- package/dist/types/schema/base.schema.d.ts +5 -0
- package/dist/types/schema/base.schema.d.ts.map +1 -0
- package/dist/types/schema/clanker.schema.d.ts +104 -0
- package/dist/types/schema/clanker.schema.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +4 -0
- package/dist/types/schema/index.d.ts.map +1 -0
- package/dist/types/schema/levr.schema.d.ts +34 -0
- package/dist/types/schema/levr.schema.d.ts.map +1 -0
- package/dist/types/stake.d.ts +137 -0
- package/dist/types/stake.d.ts.map +1 -0
- package/dist/types/swap-v4.d.ts +97 -0
- package/dist/types/swap-v4.d.ts.map +1 -0
- package/dist/types/types.d.ts +20 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/util.d.ts +5 -0
- package/dist/types/util.d.ts.map +1 -0
- package/package.json +100 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
declare const _default: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_poolManager";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "contract IPoolManager";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "_quoteExactInput";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "params";
|
|
14
|
+
readonly type: "tuple";
|
|
15
|
+
readonly internalType: "struct IV4Quoter.QuoteExactParams";
|
|
16
|
+
readonly components: readonly [{
|
|
17
|
+
readonly name: "exactCurrency";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
readonly internalType: "Currency";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "path";
|
|
22
|
+
readonly type: "tuple[]";
|
|
23
|
+
readonly internalType: "struct PathKey[]";
|
|
24
|
+
readonly components: readonly [{
|
|
25
|
+
readonly name: "intermediateCurrency";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "Currency";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "fee";
|
|
30
|
+
readonly type: "uint24";
|
|
31
|
+
readonly internalType: "uint24";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "tickSpacing";
|
|
34
|
+
readonly type: "int24";
|
|
35
|
+
readonly internalType: "int24";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "hooks";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
readonly internalType: "contract IHooks";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "hookData";
|
|
42
|
+
readonly type: "bytes";
|
|
43
|
+
readonly internalType: "bytes";
|
|
44
|
+
}];
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "exactAmount";
|
|
47
|
+
readonly type: "uint128";
|
|
48
|
+
readonly internalType: "uint128";
|
|
49
|
+
}];
|
|
50
|
+
}];
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly name: "";
|
|
53
|
+
readonly type: "bytes";
|
|
54
|
+
readonly internalType: "bytes";
|
|
55
|
+
}];
|
|
56
|
+
readonly stateMutability: "nonpayable";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "function";
|
|
59
|
+
readonly name: "_quoteExactInputSingle";
|
|
60
|
+
readonly inputs: readonly [{
|
|
61
|
+
readonly name: "params";
|
|
62
|
+
readonly type: "tuple";
|
|
63
|
+
readonly internalType: "struct IV4Quoter.QuoteExactSingleParams";
|
|
64
|
+
readonly components: readonly [{
|
|
65
|
+
readonly name: "poolKey";
|
|
66
|
+
readonly type: "tuple";
|
|
67
|
+
readonly internalType: "struct PoolKey";
|
|
68
|
+
readonly components: readonly [{
|
|
69
|
+
readonly name: "currency0";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
readonly internalType: "Currency";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "currency1";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
readonly internalType: "Currency";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "fee";
|
|
78
|
+
readonly type: "uint24";
|
|
79
|
+
readonly internalType: "uint24";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "tickSpacing";
|
|
82
|
+
readonly type: "int24";
|
|
83
|
+
readonly internalType: "int24";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "hooks";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
readonly internalType: "contract IHooks";
|
|
88
|
+
}];
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "zeroForOne";
|
|
91
|
+
readonly type: "bool";
|
|
92
|
+
readonly internalType: "bool";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "exactAmount";
|
|
95
|
+
readonly type: "uint128";
|
|
96
|
+
readonly internalType: "uint128";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "hookData";
|
|
99
|
+
readonly type: "bytes";
|
|
100
|
+
readonly internalType: "bytes";
|
|
101
|
+
}];
|
|
102
|
+
}];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bytes";
|
|
106
|
+
readonly internalType: "bytes";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
readonly name: "_quoteExactOutput";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "params";
|
|
114
|
+
readonly type: "tuple";
|
|
115
|
+
readonly internalType: "struct IV4Quoter.QuoteExactParams";
|
|
116
|
+
readonly components: readonly [{
|
|
117
|
+
readonly name: "exactCurrency";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
readonly internalType: "Currency";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "path";
|
|
122
|
+
readonly type: "tuple[]";
|
|
123
|
+
readonly internalType: "struct PathKey[]";
|
|
124
|
+
readonly components: readonly [{
|
|
125
|
+
readonly name: "intermediateCurrency";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
readonly internalType: "Currency";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "fee";
|
|
130
|
+
readonly type: "uint24";
|
|
131
|
+
readonly internalType: "uint24";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "tickSpacing";
|
|
134
|
+
readonly type: "int24";
|
|
135
|
+
readonly internalType: "int24";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "hooks";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
readonly internalType: "contract IHooks";
|
|
140
|
+
}, {
|
|
141
|
+
readonly name: "hookData";
|
|
142
|
+
readonly type: "bytes";
|
|
143
|
+
readonly internalType: "bytes";
|
|
144
|
+
}];
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "exactAmount";
|
|
147
|
+
readonly type: "uint128";
|
|
148
|
+
readonly internalType: "uint128";
|
|
149
|
+
}];
|
|
150
|
+
}];
|
|
151
|
+
readonly outputs: readonly [{
|
|
152
|
+
readonly name: "";
|
|
153
|
+
readonly type: "bytes";
|
|
154
|
+
readonly internalType: "bytes";
|
|
155
|
+
}];
|
|
156
|
+
readonly stateMutability: "nonpayable";
|
|
157
|
+
}, {
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
readonly name: "_quoteExactOutputSingle";
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly name: "params";
|
|
162
|
+
readonly type: "tuple";
|
|
163
|
+
readonly internalType: "struct IV4Quoter.QuoteExactSingleParams";
|
|
164
|
+
readonly components: readonly [{
|
|
165
|
+
readonly name: "poolKey";
|
|
166
|
+
readonly type: "tuple";
|
|
167
|
+
readonly internalType: "struct PoolKey";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "currency0";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
readonly internalType: "Currency";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "currency1";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
readonly internalType: "Currency";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "fee";
|
|
178
|
+
readonly type: "uint24";
|
|
179
|
+
readonly internalType: "uint24";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "tickSpacing";
|
|
182
|
+
readonly type: "int24";
|
|
183
|
+
readonly internalType: "int24";
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "hooks";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
readonly internalType: "contract IHooks";
|
|
188
|
+
}];
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "zeroForOne";
|
|
191
|
+
readonly type: "bool";
|
|
192
|
+
readonly internalType: "bool";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "exactAmount";
|
|
195
|
+
readonly type: "uint128";
|
|
196
|
+
readonly internalType: "uint128";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "hookData";
|
|
199
|
+
readonly type: "bytes";
|
|
200
|
+
readonly internalType: "bytes";
|
|
201
|
+
}];
|
|
202
|
+
}];
|
|
203
|
+
readonly outputs: readonly [{
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "bytes";
|
|
206
|
+
readonly internalType: "bytes";
|
|
207
|
+
}];
|
|
208
|
+
readonly stateMutability: "nonpayable";
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
readonly name: "msgSender";
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly outputs: readonly [{
|
|
214
|
+
readonly name: "";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
}];
|
|
218
|
+
readonly stateMutability: "view";
|
|
219
|
+
}, {
|
|
220
|
+
readonly type: "function";
|
|
221
|
+
readonly name: "poolManager";
|
|
222
|
+
readonly inputs: readonly [];
|
|
223
|
+
readonly outputs: readonly [{
|
|
224
|
+
readonly name: "";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "contract IPoolManager";
|
|
227
|
+
}];
|
|
228
|
+
readonly stateMutability: "view";
|
|
229
|
+
}, {
|
|
230
|
+
readonly type: "function";
|
|
231
|
+
readonly name: "quoteExactInput";
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly name: "params";
|
|
234
|
+
readonly type: "tuple";
|
|
235
|
+
readonly internalType: "struct IV4Quoter.QuoteExactParams";
|
|
236
|
+
readonly components: readonly [{
|
|
237
|
+
readonly name: "exactCurrency";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
readonly internalType: "Currency";
|
|
240
|
+
}, {
|
|
241
|
+
readonly name: "path";
|
|
242
|
+
readonly type: "tuple[]";
|
|
243
|
+
readonly internalType: "struct PathKey[]";
|
|
244
|
+
readonly components: readonly [{
|
|
245
|
+
readonly name: "intermediateCurrency";
|
|
246
|
+
readonly type: "address";
|
|
247
|
+
readonly internalType: "Currency";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "fee";
|
|
250
|
+
readonly type: "uint24";
|
|
251
|
+
readonly internalType: "uint24";
|
|
252
|
+
}, {
|
|
253
|
+
readonly name: "tickSpacing";
|
|
254
|
+
readonly type: "int24";
|
|
255
|
+
readonly internalType: "int24";
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "hooks";
|
|
258
|
+
readonly type: "address";
|
|
259
|
+
readonly internalType: "contract IHooks";
|
|
260
|
+
}, {
|
|
261
|
+
readonly name: "hookData";
|
|
262
|
+
readonly type: "bytes";
|
|
263
|
+
readonly internalType: "bytes";
|
|
264
|
+
}];
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "exactAmount";
|
|
267
|
+
readonly type: "uint128";
|
|
268
|
+
readonly internalType: "uint128";
|
|
269
|
+
}];
|
|
270
|
+
}];
|
|
271
|
+
readonly outputs: readonly [{
|
|
272
|
+
readonly name: "amountOut";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
readonly internalType: "uint256";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "gasEstimate";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
}];
|
|
280
|
+
readonly stateMutability: "nonpayable";
|
|
281
|
+
}, {
|
|
282
|
+
readonly type: "function";
|
|
283
|
+
readonly name: "quoteExactInputSingle";
|
|
284
|
+
readonly inputs: readonly [{
|
|
285
|
+
readonly name: "params";
|
|
286
|
+
readonly type: "tuple";
|
|
287
|
+
readonly internalType: "struct IV4Quoter.QuoteExactSingleParams";
|
|
288
|
+
readonly components: readonly [{
|
|
289
|
+
readonly name: "poolKey";
|
|
290
|
+
readonly type: "tuple";
|
|
291
|
+
readonly internalType: "struct PoolKey";
|
|
292
|
+
readonly components: readonly [{
|
|
293
|
+
readonly name: "currency0";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
readonly internalType: "Currency";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "currency1";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
readonly internalType: "Currency";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "fee";
|
|
302
|
+
readonly type: "uint24";
|
|
303
|
+
readonly internalType: "uint24";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "tickSpacing";
|
|
306
|
+
readonly type: "int24";
|
|
307
|
+
readonly internalType: "int24";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "hooks";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly internalType: "contract IHooks";
|
|
312
|
+
}];
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "zeroForOne";
|
|
315
|
+
readonly type: "bool";
|
|
316
|
+
readonly internalType: "bool";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "exactAmount";
|
|
319
|
+
readonly type: "uint128";
|
|
320
|
+
readonly internalType: "uint128";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "hookData";
|
|
323
|
+
readonly type: "bytes";
|
|
324
|
+
readonly internalType: "bytes";
|
|
325
|
+
}];
|
|
326
|
+
}];
|
|
327
|
+
readonly outputs: readonly [{
|
|
328
|
+
readonly name: "amountOut";
|
|
329
|
+
readonly type: "uint256";
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "gasEstimate";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
readonly stateMutability: "nonpayable";
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
readonly name: "quoteExactOutput";
|
|
340
|
+
readonly inputs: readonly [{
|
|
341
|
+
readonly name: "params";
|
|
342
|
+
readonly type: "tuple";
|
|
343
|
+
readonly internalType: "struct IV4Quoter.QuoteExactParams";
|
|
344
|
+
readonly components: readonly [{
|
|
345
|
+
readonly name: "exactCurrency";
|
|
346
|
+
readonly type: "address";
|
|
347
|
+
readonly internalType: "Currency";
|
|
348
|
+
}, {
|
|
349
|
+
readonly name: "path";
|
|
350
|
+
readonly type: "tuple[]";
|
|
351
|
+
readonly internalType: "struct PathKey[]";
|
|
352
|
+
readonly components: readonly [{
|
|
353
|
+
readonly name: "intermediateCurrency";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
readonly internalType: "Currency";
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "fee";
|
|
358
|
+
readonly type: "uint24";
|
|
359
|
+
readonly internalType: "uint24";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "tickSpacing";
|
|
362
|
+
readonly type: "int24";
|
|
363
|
+
readonly internalType: "int24";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "hooks";
|
|
366
|
+
readonly type: "address";
|
|
367
|
+
readonly internalType: "contract IHooks";
|
|
368
|
+
}, {
|
|
369
|
+
readonly name: "hookData";
|
|
370
|
+
readonly type: "bytes";
|
|
371
|
+
readonly internalType: "bytes";
|
|
372
|
+
}];
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "exactAmount";
|
|
375
|
+
readonly type: "uint128";
|
|
376
|
+
readonly internalType: "uint128";
|
|
377
|
+
}];
|
|
378
|
+
}];
|
|
379
|
+
readonly outputs: readonly [{
|
|
380
|
+
readonly name: "amountIn";
|
|
381
|
+
readonly type: "uint256";
|
|
382
|
+
readonly internalType: "uint256";
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "gasEstimate";
|
|
385
|
+
readonly type: "uint256";
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
}];
|
|
388
|
+
readonly stateMutability: "nonpayable";
|
|
389
|
+
}, {
|
|
390
|
+
readonly type: "function";
|
|
391
|
+
readonly name: "quoteExactOutputSingle";
|
|
392
|
+
readonly inputs: readonly [{
|
|
393
|
+
readonly name: "params";
|
|
394
|
+
readonly type: "tuple";
|
|
395
|
+
readonly internalType: "struct IV4Quoter.QuoteExactSingleParams";
|
|
396
|
+
readonly components: readonly [{
|
|
397
|
+
readonly name: "poolKey";
|
|
398
|
+
readonly type: "tuple";
|
|
399
|
+
readonly internalType: "struct PoolKey";
|
|
400
|
+
readonly components: readonly [{
|
|
401
|
+
readonly name: "currency0";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
readonly internalType: "Currency";
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "currency1";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
readonly internalType: "Currency";
|
|
408
|
+
}, {
|
|
409
|
+
readonly name: "fee";
|
|
410
|
+
readonly type: "uint24";
|
|
411
|
+
readonly internalType: "uint24";
|
|
412
|
+
}, {
|
|
413
|
+
readonly name: "tickSpacing";
|
|
414
|
+
readonly type: "int24";
|
|
415
|
+
readonly internalType: "int24";
|
|
416
|
+
}, {
|
|
417
|
+
readonly name: "hooks";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
readonly internalType: "contract IHooks";
|
|
420
|
+
}];
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "zeroForOne";
|
|
423
|
+
readonly type: "bool";
|
|
424
|
+
readonly internalType: "bool";
|
|
425
|
+
}, {
|
|
426
|
+
readonly name: "exactAmount";
|
|
427
|
+
readonly type: "uint128";
|
|
428
|
+
readonly internalType: "uint128";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "hookData";
|
|
431
|
+
readonly type: "bytes";
|
|
432
|
+
readonly internalType: "bytes";
|
|
433
|
+
}];
|
|
434
|
+
}];
|
|
435
|
+
readonly outputs: readonly [{
|
|
436
|
+
readonly name: "amountIn";
|
|
437
|
+
readonly type: "uint256";
|
|
438
|
+
readonly internalType: "uint256";
|
|
439
|
+
}, {
|
|
440
|
+
readonly name: "gasEstimate";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
readonly internalType: "uint256";
|
|
443
|
+
}];
|
|
444
|
+
readonly stateMutability: "nonpayable";
|
|
445
|
+
}, {
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
readonly name: "unlockCallback";
|
|
448
|
+
readonly inputs: readonly [{
|
|
449
|
+
readonly name: "data";
|
|
450
|
+
readonly type: "bytes";
|
|
451
|
+
readonly internalType: "bytes";
|
|
452
|
+
}];
|
|
453
|
+
readonly outputs: readonly [{
|
|
454
|
+
readonly name: "";
|
|
455
|
+
readonly type: "bytes";
|
|
456
|
+
readonly internalType: "bytes";
|
|
457
|
+
}];
|
|
458
|
+
readonly stateMutability: "nonpayable";
|
|
459
|
+
}, {
|
|
460
|
+
readonly type: "error";
|
|
461
|
+
readonly name: "NotEnoughLiquidity";
|
|
462
|
+
readonly inputs: readonly [{
|
|
463
|
+
readonly name: "poolId";
|
|
464
|
+
readonly type: "bytes32";
|
|
465
|
+
readonly internalType: "PoolId";
|
|
466
|
+
}];
|
|
467
|
+
}, {
|
|
468
|
+
readonly type: "error";
|
|
469
|
+
readonly name: "NotPoolManager";
|
|
470
|
+
readonly inputs: readonly [];
|
|
471
|
+
}, {
|
|
472
|
+
readonly type: "error";
|
|
473
|
+
readonly name: "NotSelf";
|
|
474
|
+
readonly inputs: readonly [];
|
|
475
|
+
}, {
|
|
476
|
+
readonly type: "error";
|
|
477
|
+
readonly name: "QuoteSwap";
|
|
478
|
+
readonly inputs: readonly [{
|
|
479
|
+
readonly name: "amount";
|
|
480
|
+
readonly type: "uint256";
|
|
481
|
+
readonly internalType: "uint256";
|
|
482
|
+
}];
|
|
483
|
+
}, {
|
|
484
|
+
readonly type: "error";
|
|
485
|
+
readonly name: "UnexpectedCallSuccess";
|
|
486
|
+
readonly inputs: readonly [];
|
|
487
|
+
}, {
|
|
488
|
+
readonly type: "error";
|
|
489
|
+
readonly name: "UnexpectedRevertBytes";
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly name: "revertData";
|
|
492
|
+
readonly type: "bytes";
|
|
493
|
+
readonly internalType: "bytes";
|
|
494
|
+
}];
|
|
495
|
+
}];
|
|
496
|
+
export default _default;
|