@zoralabs/protocol-deployments 0.6.0-creator-coins.0 → 0.6.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.
- package/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +13 -2
- package/dist/encoding.d.ts +2 -2
- package/dist/generated/sparks.d.ts +2 -0
- package/dist/generated/sparks.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +1336 -158
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +532 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +525 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/sparks.ts +2 -0
- package/src/generated/wagmi.ts +567 -21
package/src/generated/wagmi.ts
CHANGED
|
@@ -1,10 +1,107 @@
|
|
|
1
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2
|
+
// AutoSwapper
|
|
3
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
|
+
|
|
5
|
+
export const autoSwapperABI = [
|
|
6
|
+
{
|
|
7
|
+
type: 'constructor',
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: '_router',
|
|
11
|
+
internalType: 'contract ISwapRouter',
|
|
12
|
+
type: 'address',
|
|
13
|
+
},
|
|
14
|
+
{ name: '_swapRecipient', internalType: 'address', type: 'address' },
|
|
15
|
+
{ name: '_swapper', internalType: 'address', type: 'address' },
|
|
16
|
+
],
|
|
17
|
+
stateMutability: 'nonpayable',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 'function',
|
|
21
|
+
inputs: [],
|
|
22
|
+
name: 'router',
|
|
23
|
+
outputs: [
|
|
24
|
+
{ name: '', internalType: 'contract ISwapRouter', type: 'address' },
|
|
25
|
+
],
|
|
26
|
+
stateMutability: 'view',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'function',
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
name: 'params',
|
|
33
|
+
internalType: 'struct AutoSwapper.ExactInputParams',
|
|
34
|
+
type: 'tuple',
|
|
35
|
+
components: [
|
|
36
|
+
{ name: 'path', internalType: 'bytes', type: 'bytes' },
|
|
37
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
38
|
+
{
|
|
39
|
+
name: 'amountOutMinimum',
|
|
40
|
+
internalType: 'uint256',
|
|
41
|
+
type: 'uint256',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
name: 'swapExactInput',
|
|
47
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
48
|
+
stateMutability: 'nonpayable',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'function',
|
|
52
|
+
inputs: [
|
|
53
|
+
{
|
|
54
|
+
name: 'params',
|
|
55
|
+
internalType: 'struct AutoSwapper.ExactInputSingleParams',
|
|
56
|
+
type: 'tuple',
|
|
57
|
+
components: [
|
|
58
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
59
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
60
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
61
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
62
|
+
{
|
|
63
|
+
name: 'amountOutMinimum',
|
|
64
|
+
internalType: 'uint256',
|
|
65
|
+
type: 'uint256',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'sqrtPriceLimitX96',
|
|
69
|
+
internalType: 'uint160',
|
|
70
|
+
type: 'uint160',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: 'swapExactInputSingle',
|
|
76
|
+
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
77
|
+
stateMutability: 'nonpayable',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: 'function',
|
|
81
|
+
inputs: [],
|
|
82
|
+
name: 'swapRecipient',
|
|
83
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
84
|
+
stateMutability: 'view',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'function',
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: 'swapper',
|
|
90
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
91
|
+
stateMutability: 'view',
|
|
92
|
+
},
|
|
93
|
+
{ type: 'error', inputs: [], name: 'InvalidRecipient' },
|
|
94
|
+
{ type: 'error', inputs: [], name: 'InvalidSelector' },
|
|
95
|
+
{ type: 'error', inputs: [], name: 'NotSwapper' },
|
|
96
|
+
] as const
|
|
97
|
+
|
|
1
98
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2
99
|
// BuySupplyWithSwapRouterHook
|
|
3
100
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
101
|
|
|
5
102
|
/**
|
|
6
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
7
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
103
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
104
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
8
105
|
*/
|
|
9
106
|
export const buySupplyWithSwapRouterHookABI = [
|
|
10
107
|
{
|
|
@@ -16,6 +113,7 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
16
113
|
type: 'address',
|
|
17
114
|
},
|
|
18
115
|
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
116
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
19
117
|
],
|
|
20
118
|
stateMutability: 'nonpayable',
|
|
21
119
|
},
|
|
@@ -46,16 +144,45 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
46
144
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
47
145
|
stateMutability: 'pure',
|
|
48
146
|
},
|
|
147
|
+
{
|
|
148
|
+
type: 'function',
|
|
149
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
150
|
+
name: 'unlockCallback',
|
|
151
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
152
|
+
stateMutability: 'nonpayable',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
type: 'error',
|
|
156
|
+
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
157
|
+
name: 'AddressEmptyCode',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
type: 'error',
|
|
161
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
162
|
+
name: 'AddressInsufficientBalance',
|
|
163
|
+
},
|
|
49
164
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
50
165
|
{
|
|
51
166
|
type: 'error',
|
|
52
167
|
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
53
168
|
name: 'CoinBalanceNot0',
|
|
54
169
|
},
|
|
170
|
+
{
|
|
171
|
+
type: 'error',
|
|
172
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
173
|
+
name: 'CurrencyBalanceNot0',
|
|
174
|
+
},
|
|
55
175
|
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
176
|
+
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
56
177
|
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
57
178
|
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
58
179
|
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
180
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
181
|
+
{
|
|
182
|
+
type: 'error',
|
|
183
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
184
|
+
name: 'SafeERC20FailedOperation',
|
|
185
|
+
},
|
|
59
186
|
{
|
|
60
187
|
type: 'error',
|
|
61
188
|
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -64,17 +191,17 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
64
191
|
] as const
|
|
65
192
|
|
|
66
193
|
/**
|
|
67
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
68
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
194
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
195
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
69
196
|
*/
|
|
70
197
|
export const buySupplyWithSwapRouterHookAddress = {
|
|
71
|
-
8453: '
|
|
72
|
-
84532: '
|
|
198
|
+
8453: '0xd77038a7f400E8242d2916f7EB5741e689d4aE25',
|
|
199
|
+
84532: '0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE',
|
|
73
200
|
} as const
|
|
74
201
|
|
|
75
202
|
/**
|
|
76
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
77
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
203
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
204
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
78
205
|
*/
|
|
79
206
|
export const buySupplyWithSwapRouterHookConfig = {
|
|
80
207
|
address: buySupplyWithSwapRouterHookAddress,
|
|
@@ -1565,6 +1692,16 @@ export const coinABI = [
|
|
|
1565
1692
|
outputs: [],
|
|
1566
1693
|
stateMutability: 'nonpayable',
|
|
1567
1694
|
},
|
|
1695
|
+
{
|
|
1696
|
+
type: 'function',
|
|
1697
|
+
inputs: [
|
|
1698
|
+
{ name: 'newName', internalType: 'string', type: 'string' },
|
|
1699
|
+
{ name: 'newSymbol', internalType: 'string', type: 'string' },
|
|
1700
|
+
],
|
|
1701
|
+
name: 'setNameAndSymbol',
|
|
1702
|
+
outputs: [],
|
|
1703
|
+
stateMutability: 'nonpayable',
|
|
1704
|
+
},
|
|
1568
1705
|
{
|
|
1569
1706
|
type: 'function',
|
|
1570
1707
|
inputs: [
|
|
@@ -2004,6 +2141,31 @@ export const coinABI = [
|
|
|
2004
2141
|
],
|
|
2005
2142
|
name: 'Initialized',
|
|
2006
2143
|
},
|
|
2144
|
+
{
|
|
2145
|
+
type: 'event',
|
|
2146
|
+
anonymous: false,
|
|
2147
|
+
inputs: [
|
|
2148
|
+
{
|
|
2149
|
+
name: 'caller',
|
|
2150
|
+
internalType: 'address',
|
|
2151
|
+
type: 'address',
|
|
2152
|
+
indexed: true,
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
name: 'newName',
|
|
2156
|
+
internalType: 'string',
|
|
2157
|
+
type: 'string',
|
|
2158
|
+
indexed: false,
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
name: 'newSymbol',
|
|
2162
|
+
internalType: 'string',
|
|
2163
|
+
type: 'string',
|
|
2164
|
+
indexed: false,
|
|
2165
|
+
},
|
|
2166
|
+
],
|
|
2167
|
+
name: 'NameAndSymbolUpdated',
|
|
2168
|
+
},
|
|
2007
2169
|
{
|
|
2008
2170
|
type: 'event',
|
|
2009
2171
|
anonymous: false,
|
|
@@ -2196,8 +2358,8 @@ export const coinABI = [
|
|
|
2196
2358
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2197
2359
|
|
|
2198
2360
|
/**
|
|
2199
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
2200
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
2361
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
|
|
2362
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
|
|
2201
2363
|
*/
|
|
2202
2364
|
export const coinFactoryABI = [
|
|
2203
2365
|
{
|
|
@@ -2206,6 +2368,8 @@ export const coinFactoryABI = [
|
|
|
2206
2368
|
{ name: '_coinImpl', internalType: 'address', type: 'address' },
|
|
2207
2369
|
{ name: '_coinV4Impl', internalType: 'address', type: 'address' },
|
|
2208
2370
|
{ name: '_creatorCoinImpl', internalType: 'address', type: 'address' },
|
|
2371
|
+
{ name: '_contentCoinHook', internalType: 'address', type: 'address' },
|
|
2372
|
+
{ name: '_creatorCoinHook', internalType: 'address', type: 'address' },
|
|
2209
2373
|
],
|
|
2210
2374
|
stateMutability: 'nonpayable',
|
|
2211
2375
|
},
|
|
@@ -2244,6 +2408,13 @@ export const coinFactoryABI = [
|
|
|
2244
2408
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2245
2409
|
stateMutability: 'view',
|
|
2246
2410
|
},
|
|
2411
|
+
{
|
|
2412
|
+
type: 'function',
|
|
2413
|
+
inputs: [],
|
|
2414
|
+
name: 'contentCoinHook',
|
|
2415
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2416
|
+
stateMutability: 'view',
|
|
2417
|
+
},
|
|
2247
2418
|
{
|
|
2248
2419
|
type: 'function',
|
|
2249
2420
|
inputs: [],
|
|
@@ -2258,6 +2429,13 @@ export const coinFactoryABI = [
|
|
|
2258
2429
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
2259
2430
|
stateMutability: 'pure',
|
|
2260
2431
|
},
|
|
2432
|
+
{
|
|
2433
|
+
type: 'function',
|
|
2434
|
+
inputs: [],
|
|
2435
|
+
name: 'creatorCoinHook',
|
|
2436
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2437
|
+
stateMutability: 'view',
|
|
2438
|
+
},
|
|
2261
2439
|
{
|
|
2262
2440
|
type: 'function',
|
|
2263
2441
|
inputs: [],
|
|
@@ -2755,17 +2933,17 @@ export const coinFactoryABI = [
|
|
|
2755
2933
|
] as const
|
|
2756
2934
|
|
|
2757
2935
|
/**
|
|
2758
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
2759
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
2936
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
|
|
2937
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
|
|
2760
2938
|
*/
|
|
2761
2939
|
export const coinFactoryAddress = {
|
|
2762
|
-
8453: '
|
|
2763
|
-
84532: '
|
|
2940
|
+
8453: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
|
|
2941
|
+
84532: '0xaF88840cb637F2684A9E460316b1678AD6245e4a',
|
|
2764
2942
|
} as const
|
|
2765
2943
|
|
|
2766
2944
|
/**
|
|
2767
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
2768
|
-
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/
|
|
2945
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
|
|
2946
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
|
|
2769
2947
|
*/
|
|
2770
2948
|
export const coinFactoryConfig = {
|
|
2771
2949
|
address: coinFactoryAddress,
|
|
@@ -2792,7 +2970,6 @@ export const coinV4ABI = [
|
|
|
2792
2970
|
type: 'address',
|
|
2793
2971
|
},
|
|
2794
2972
|
{ name: 'airlock_', internalType: 'address', type: 'address' },
|
|
2795
|
-
{ name: 'hooks_', internalType: 'contract IHooks', type: 'address' },
|
|
2796
2973
|
],
|
|
2797
2974
|
stateMutability: 'nonpayable',
|
|
2798
2975
|
},
|
|
@@ -3068,6 +3245,29 @@ export const coinV4ABI = [
|
|
|
3068
3245
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3069
3246
|
stateMutability: 'view',
|
|
3070
3247
|
},
|
|
3248
|
+
{
|
|
3249
|
+
type: 'function',
|
|
3250
|
+
inputs: [
|
|
3251
|
+
{ name: 'newHook', internalType: 'address', type: 'address' },
|
|
3252
|
+
{ name: 'additionalData', internalType: 'bytes', type: 'bytes' },
|
|
3253
|
+
],
|
|
3254
|
+
name: 'migrateLiquidity',
|
|
3255
|
+
outputs: [
|
|
3256
|
+
{
|
|
3257
|
+
name: 'newPoolKey',
|
|
3258
|
+
internalType: 'struct PoolKey',
|
|
3259
|
+
type: 'tuple',
|
|
3260
|
+
components: [
|
|
3261
|
+
{ name: 'currency0', internalType: 'Currency', type: 'address' },
|
|
3262
|
+
{ name: 'currency1', internalType: 'Currency', type: 'address' },
|
|
3263
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
3264
|
+
{ name: 'tickSpacing', internalType: 'int24', type: 'int24' },
|
|
3265
|
+
{ name: 'hooks', internalType: 'contract IHooks', type: 'address' },
|
|
3266
|
+
],
|
|
3267
|
+
},
|
|
3268
|
+
],
|
|
3269
|
+
stateMutability: 'nonpayable',
|
|
3270
|
+
},
|
|
3071
3271
|
{
|
|
3072
3272
|
type: 'function',
|
|
3073
3273
|
inputs: [],
|
|
@@ -3171,6 +3371,16 @@ export const coinV4ABI = [
|
|
|
3171
3371
|
outputs: [],
|
|
3172
3372
|
stateMutability: 'nonpayable',
|
|
3173
3373
|
},
|
|
3374
|
+
{
|
|
3375
|
+
type: 'function',
|
|
3376
|
+
inputs: [
|
|
3377
|
+
{ name: 'newName', internalType: 'string', type: 'string' },
|
|
3378
|
+
{ name: 'newSymbol', internalType: 'string', type: 'string' },
|
|
3379
|
+
],
|
|
3380
|
+
name: 'setNameAndSymbol',
|
|
3381
|
+
outputs: [],
|
|
3382
|
+
stateMutability: 'nonpayable',
|
|
3383
|
+
},
|
|
3174
3384
|
{
|
|
3175
3385
|
type: 'function',
|
|
3176
3386
|
inputs: [
|
|
@@ -3585,6 +3795,76 @@ export const coinV4ABI = [
|
|
|
3585
3795
|
],
|
|
3586
3796
|
name: 'Initialized',
|
|
3587
3797
|
},
|
|
3798
|
+
{
|
|
3799
|
+
type: 'event',
|
|
3800
|
+
anonymous: false,
|
|
3801
|
+
inputs: [
|
|
3802
|
+
{
|
|
3803
|
+
name: 'fromPoolKey',
|
|
3804
|
+
internalType: 'struct PoolKey',
|
|
3805
|
+
type: 'tuple',
|
|
3806
|
+
components: [
|
|
3807
|
+
{ name: 'currency0', internalType: 'Currency', type: 'address' },
|
|
3808
|
+
{ name: 'currency1', internalType: 'Currency', type: 'address' },
|
|
3809
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
3810
|
+
{ name: 'tickSpacing', internalType: 'int24', type: 'int24' },
|
|
3811
|
+
{ name: 'hooks', internalType: 'contract IHooks', type: 'address' },
|
|
3812
|
+
],
|
|
3813
|
+
indexed: false,
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
name: 'fromPoolKeyHash',
|
|
3817
|
+
internalType: 'bytes32',
|
|
3818
|
+
type: 'bytes32',
|
|
3819
|
+
indexed: false,
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
name: 'toPoolKey',
|
|
3823
|
+
internalType: 'struct PoolKey',
|
|
3824
|
+
type: 'tuple',
|
|
3825
|
+
components: [
|
|
3826
|
+
{ name: 'currency0', internalType: 'Currency', type: 'address' },
|
|
3827
|
+
{ name: 'currency1', internalType: 'Currency', type: 'address' },
|
|
3828
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
3829
|
+
{ name: 'tickSpacing', internalType: 'int24', type: 'int24' },
|
|
3830
|
+
{ name: 'hooks', internalType: 'contract IHooks', type: 'address' },
|
|
3831
|
+
],
|
|
3832
|
+
indexed: false,
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
name: 'toPoolKeyHash',
|
|
3836
|
+
internalType: 'bytes32',
|
|
3837
|
+
type: 'bytes32',
|
|
3838
|
+
indexed: false,
|
|
3839
|
+
},
|
|
3840
|
+
],
|
|
3841
|
+
name: 'LiquidityMigrated',
|
|
3842
|
+
},
|
|
3843
|
+
{
|
|
3844
|
+
type: 'event',
|
|
3845
|
+
anonymous: false,
|
|
3846
|
+
inputs: [
|
|
3847
|
+
{
|
|
3848
|
+
name: 'caller',
|
|
3849
|
+
internalType: 'address',
|
|
3850
|
+
type: 'address',
|
|
3851
|
+
indexed: true,
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
name: 'newName',
|
|
3855
|
+
internalType: 'string',
|
|
3856
|
+
type: 'string',
|
|
3857
|
+
indexed: false,
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
name: 'newSymbol',
|
|
3861
|
+
internalType: 'string',
|
|
3862
|
+
type: 'string',
|
|
3863
|
+
indexed: false,
|
|
3864
|
+
},
|
|
3865
|
+
],
|
|
3866
|
+
name: 'NameAndSymbolUpdated',
|
|
3867
|
+
},
|
|
3588
3868
|
{
|
|
3589
3869
|
type: 'event',
|
|
3590
3870
|
anonymous: false,
|
|
@@ -5603,12 +5883,121 @@ export const commentsConfig = {
|
|
|
5603
5883
|
abi: commentsABI,
|
|
5604
5884
|
} as const
|
|
5605
5885
|
|
|
5886
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5887
|
+
// DevBuySupplyWithSwapRouterHook
|
|
5888
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5889
|
+
|
|
5890
|
+
/**
|
|
5891
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x62B95629F965bf48E15BB110A1729B9b9dF1C07D)
|
|
5892
|
+
*/
|
|
5893
|
+
export const devBuySupplyWithSwapRouterHookABI = [
|
|
5894
|
+
{
|
|
5895
|
+
type: 'constructor',
|
|
5896
|
+
inputs: [
|
|
5897
|
+
{
|
|
5898
|
+
name: '_factory',
|
|
5899
|
+
internalType: 'contract IZoraFactory',
|
|
5900
|
+
type: 'address',
|
|
5901
|
+
},
|
|
5902
|
+
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
5903
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
5904
|
+
],
|
|
5905
|
+
stateMutability: 'nonpayable',
|
|
5906
|
+
},
|
|
5907
|
+
{
|
|
5908
|
+
type: 'function',
|
|
5909
|
+
inputs: [
|
|
5910
|
+
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
5911
|
+
{ name: 'coin', internalType: 'contract ICoin', type: 'address' },
|
|
5912
|
+
{ name: 'hookData', internalType: 'bytes', type: 'bytes' },
|
|
5913
|
+
],
|
|
5914
|
+
name: 'afterCoinDeploy',
|
|
5915
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
5916
|
+
stateMutability: 'payable',
|
|
5917
|
+
},
|
|
5918
|
+
{
|
|
5919
|
+
type: 'function',
|
|
5920
|
+
inputs: [],
|
|
5921
|
+
name: 'factory',
|
|
5922
|
+
outputs: [
|
|
5923
|
+
{ name: '', internalType: 'contract IZoraFactory', type: 'address' },
|
|
5924
|
+
],
|
|
5925
|
+
stateMutability: 'view',
|
|
5926
|
+
},
|
|
5927
|
+
{
|
|
5928
|
+
type: 'function',
|
|
5929
|
+
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
5930
|
+
name: 'supportsInterface',
|
|
5931
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5932
|
+
stateMutability: 'pure',
|
|
5933
|
+
},
|
|
5934
|
+
{
|
|
5935
|
+
type: 'function',
|
|
5936
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
5937
|
+
name: 'unlockCallback',
|
|
5938
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
5939
|
+
stateMutability: 'nonpayable',
|
|
5940
|
+
},
|
|
5941
|
+
{
|
|
5942
|
+
type: 'error',
|
|
5943
|
+
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
5944
|
+
name: 'AddressEmptyCode',
|
|
5945
|
+
},
|
|
5946
|
+
{
|
|
5947
|
+
type: 'error',
|
|
5948
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
5949
|
+
name: 'AddressInsufficientBalance',
|
|
5950
|
+
},
|
|
5951
|
+
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
5952
|
+
{
|
|
5953
|
+
type: 'error',
|
|
5954
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5955
|
+
name: 'CoinBalanceNot0',
|
|
5956
|
+
},
|
|
5957
|
+
{
|
|
5958
|
+
type: 'error',
|
|
5959
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5960
|
+
name: 'CurrencyBalanceNot0',
|
|
5961
|
+
},
|
|
5962
|
+
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
5963
|
+
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
5964
|
+
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
5965
|
+
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
5966
|
+
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
5967
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
5968
|
+
{
|
|
5969
|
+
type: 'error',
|
|
5970
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
5971
|
+
name: 'SafeERC20FailedOperation',
|
|
5972
|
+
},
|
|
5973
|
+
{
|
|
5974
|
+
type: 'error',
|
|
5975
|
+
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
5976
|
+
name: 'SwapReverted',
|
|
5977
|
+
},
|
|
5978
|
+
] as const
|
|
5979
|
+
|
|
5980
|
+
/**
|
|
5981
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x62B95629F965bf48E15BB110A1729B9b9dF1C07D)
|
|
5982
|
+
*/
|
|
5983
|
+
export const devBuySupplyWithSwapRouterHookAddress = {
|
|
5984
|
+
8453: '0x62B95629F965bf48E15BB110A1729B9b9dF1C07D',
|
|
5985
|
+
} as const
|
|
5986
|
+
|
|
5987
|
+
/**
|
|
5988
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x62B95629F965bf48E15BB110A1729B9b9dF1C07D)
|
|
5989
|
+
*/
|
|
5990
|
+
export const devBuySupplyWithSwapRouterHookConfig = {
|
|
5991
|
+
address: devBuySupplyWithSwapRouterHookAddress,
|
|
5992
|
+
abi: devBuySupplyWithSwapRouterHookABI,
|
|
5993
|
+
} as const
|
|
5994
|
+
|
|
5606
5995
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5607
5996
|
// DevCoinFactory
|
|
5608
5997
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5609
5998
|
|
|
5610
5999
|
/**
|
|
5611
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
6000
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x47B0C1205B01e5e967dB24A186968152e5cCf764)
|
|
5612
6001
|
*/
|
|
5613
6002
|
export const devCoinFactoryABI = [
|
|
5614
6003
|
{
|
|
@@ -5617,6 +6006,8 @@ export const devCoinFactoryABI = [
|
|
|
5617
6006
|
{ name: '_coinImpl', internalType: 'address', type: 'address' },
|
|
5618
6007
|
{ name: '_coinV4Impl', internalType: 'address', type: 'address' },
|
|
5619
6008
|
{ name: '_creatorCoinImpl', internalType: 'address', type: 'address' },
|
|
6009
|
+
{ name: '_contentCoinHook', internalType: 'address', type: 'address' },
|
|
6010
|
+
{ name: '_creatorCoinHook', internalType: 'address', type: 'address' },
|
|
5620
6011
|
],
|
|
5621
6012
|
stateMutability: 'nonpayable',
|
|
5622
6013
|
},
|
|
@@ -5655,6 +6046,13 @@ export const devCoinFactoryABI = [
|
|
|
5655
6046
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
5656
6047
|
stateMutability: 'view',
|
|
5657
6048
|
},
|
|
6049
|
+
{
|
|
6050
|
+
type: 'function',
|
|
6051
|
+
inputs: [],
|
|
6052
|
+
name: 'contentCoinHook',
|
|
6053
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6054
|
+
stateMutability: 'view',
|
|
6055
|
+
},
|
|
5658
6056
|
{
|
|
5659
6057
|
type: 'function',
|
|
5660
6058
|
inputs: [],
|
|
@@ -5669,6 +6067,13 @@ export const devCoinFactoryABI = [
|
|
|
5669
6067
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
5670
6068
|
stateMutability: 'pure',
|
|
5671
6069
|
},
|
|
6070
|
+
{
|
|
6071
|
+
type: 'function',
|
|
6072
|
+
inputs: [],
|
|
6073
|
+
name: 'creatorCoinHook',
|
|
6074
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
6075
|
+
stateMutability: 'view',
|
|
6076
|
+
},
|
|
5672
6077
|
{
|
|
5673
6078
|
type: 'function',
|
|
5674
6079
|
inputs: [],
|
|
@@ -6166,14 +6571,14 @@ export const devCoinFactoryABI = [
|
|
|
6166
6571
|
] as const
|
|
6167
6572
|
|
|
6168
6573
|
/**
|
|
6169
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
6574
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x47B0C1205B01e5e967dB24A186968152e5cCf764)
|
|
6170
6575
|
*/
|
|
6171
6576
|
export const devCoinFactoryAddress = {
|
|
6172
|
-
8453: '
|
|
6577
|
+
8453: '0x47B0C1205B01e5e967dB24A186968152e5cCf764',
|
|
6173
6578
|
} as const
|
|
6174
6579
|
|
|
6175
6580
|
/**
|
|
6176
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
6581
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x47B0C1205B01e5e967dB24A186968152e5cCf764)
|
|
6177
6582
|
*/
|
|
6178
6583
|
export const devCoinFactoryConfig = {
|
|
6179
6584
|
address: devCoinFactoryAddress,
|
|
@@ -9888,6 +10293,147 @@ export const sponsoredSparksSpenderConfig = {
|
|
|
9888
10293
|
abi: sponsoredSparksSpenderABI,
|
|
9889
10294
|
} as const
|
|
9890
10295
|
|
|
10296
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
10297
|
+
// UniswapQuoterV2
|
|
10298
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
10299
|
+
|
|
10300
|
+
/**
|
|
10301
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
10302
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
10303
|
+
*/
|
|
10304
|
+
export const uniswapQuoterV2ABI = [
|
|
10305
|
+
{
|
|
10306
|
+
type: 'function',
|
|
10307
|
+
inputs: [
|
|
10308
|
+
{ name: 'path', internalType: 'bytes', type: 'bytes' },
|
|
10309
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
10310
|
+
],
|
|
10311
|
+
name: 'quoteExactInput',
|
|
10312
|
+
outputs: [
|
|
10313
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
10314
|
+
{
|
|
10315
|
+
name: 'sqrtPriceX96AfterList',
|
|
10316
|
+
internalType: 'uint160[]',
|
|
10317
|
+
type: 'uint160[]',
|
|
10318
|
+
},
|
|
10319
|
+
{
|
|
10320
|
+
name: 'initializedTicksCrossedList',
|
|
10321
|
+
internalType: 'uint32[]',
|
|
10322
|
+
type: 'uint32[]',
|
|
10323
|
+
},
|
|
10324
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
10325
|
+
],
|
|
10326
|
+
stateMutability: 'nonpayable',
|
|
10327
|
+
},
|
|
10328
|
+
{
|
|
10329
|
+
type: 'function',
|
|
10330
|
+
inputs: [
|
|
10331
|
+
{
|
|
10332
|
+
name: 'params',
|
|
10333
|
+
internalType: 'struct IQuoterV2.QuoteExactInputSingleParams',
|
|
10334
|
+
type: 'tuple',
|
|
10335
|
+
components: [
|
|
10336
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
10337
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
10338
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
10339
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
10340
|
+
{
|
|
10341
|
+
name: 'sqrtPriceLimitX96',
|
|
10342
|
+
internalType: 'uint160',
|
|
10343
|
+
type: 'uint160',
|
|
10344
|
+
},
|
|
10345
|
+
],
|
|
10346
|
+
},
|
|
10347
|
+
],
|
|
10348
|
+
name: 'quoteExactInputSingle',
|
|
10349
|
+
outputs: [
|
|
10350
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
10351
|
+
{ name: 'sqrtPriceX96After', internalType: 'uint160', type: 'uint160' },
|
|
10352
|
+
{
|
|
10353
|
+
name: 'initializedTicksCrossed',
|
|
10354
|
+
internalType: 'uint32',
|
|
10355
|
+
type: 'uint32',
|
|
10356
|
+
},
|
|
10357
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
10358
|
+
],
|
|
10359
|
+
stateMutability: 'nonpayable',
|
|
10360
|
+
},
|
|
10361
|
+
{
|
|
10362
|
+
type: 'function',
|
|
10363
|
+
inputs: [
|
|
10364
|
+
{ name: 'path', internalType: 'bytes', type: 'bytes' },
|
|
10365
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
10366
|
+
],
|
|
10367
|
+
name: 'quoteExactOutput',
|
|
10368
|
+
outputs: [
|
|
10369
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
10370
|
+
{
|
|
10371
|
+
name: 'sqrtPriceX96AfterList',
|
|
10372
|
+
internalType: 'uint160[]',
|
|
10373
|
+
type: 'uint160[]',
|
|
10374
|
+
},
|
|
10375
|
+
{
|
|
10376
|
+
name: 'initializedTicksCrossedList',
|
|
10377
|
+
internalType: 'uint32[]',
|
|
10378
|
+
type: 'uint32[]',
|
|
10379
|
+
},
|
|
10380
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
10381
|
+
],
|
|
10382
|
+
stateMutability: 'nonpayable',
|
|
10383
|
+
},
|
|
10384
|
+
{
|
|
10385
|
+
type: 'function',
|
|
10386
|
+
inputs: [
|
|
10387
|
+
{
|
|
10388
|
+
name: 'params',
|
|
10389
|
+
internalType: 'struct IQuoterV2.QuoteExactOutputSingleParams',
|
|
10390
|
+
type: 'tuple',
|
|
10391
|
+
components: [
|
|
10392
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
10393
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
10394
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
10395
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
10396
|
+
{
|
|
10397
|
+
name: 'sqrtPriceLimitX96',
|
|
10398
|
+
internalType: 'uint160',
|
|
10399
|
+
type: 'uint160',
|
|
10400
|
+
},
|
|
10401
|
+
],
|
|
10402
|
+
},
|
|
10403
|
+
],
|
|
10404
|
+
name: 'quoteExactOutputSingle',
|
|
10405
|
+
outputs: [
|
|
10406
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
10407
|
+
{ name: 'sqrtPriceX96After', internalType: 'uint160', type: 'uint160' },
|
|
10408
|
+
{
|
|
10409
|
+
name: 'initializedTicksCrossed',
|
|
10410
|
+
internalType: 'uint32',
|
|
10411
|
+
type: 'uint32',
|
|
10412
|
+
},
|
|
10413
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
10414
|
+
],
|
|
10415
|
+
stateMutability: 'nonpayable',
|
|
10416
|
+
},
|
|
10417
|
+
] as const
|
|
10418
|
+
|
|
10419
|
+
/**
|
|
10420
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
10421
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
10422
|
+
*/
|
|
10423
|
+
export const uniswapQuoterV2Address = {
|
|
10424
|
+
8453: '0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a',
|
|
10425
|
+
84532: '0xC5290058841028F1614F3A6F0F5816cAd0df5E27',
|
|
10426
|
+
} as const
|
|
10427
|
+
|
|
10428
|
+
/**
|
|
10429
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
10430
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
10431
|
+
*/
|
|
10432
|
+
export const uniswapQuoterV2Config = {
|
|
10433
|
+
address: uniswapQuoterV2Address,
|
|
10434
|
+
abi: uniswapQuoterV2ABI,
|
|
10435
|
+
} as const
|
|
10436
|
+
|
|
9891
10437
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
9892
10438
|
// UniswapUniversalRouter
|
|
9893
10439
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|