@zoralabs/protocol-deployments 0.5.9 → 0.5.11-PRE.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 +19 -19
- package/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- 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 +589 -12
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +258 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +254 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/generated/sparks.ts +2 -0
- package/src/generated/wagmi.ts +276 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11-PRE.0",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,17 +15,9 @@
|
|
|
15
15
|
"default": "./dist/index.cjs"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"build": "pnpm bundle-configs && pnpm copy-generated && tsup",
|
|
20
|
-
"bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
|
|
21
|
-
"copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
|
|
22
|
-
"prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
23
|
-
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
24
|
-
},
|
|
25
18
|
"devDependencies": {
|
|
26
19
|
"@lavamoat/preinstall-always-fail": "2.0.0",
|
|
27
20
|
"@types/node": "^20.3.2",
|
|
28
|
-
"@zoralabs/tsconfig": "workspace:^",
|
|
29
21
|
"abitype": "^1.0.2",
|
|
30
22
|
"es-main": "^1.2.0",
|
|
31
23
|
"prettier": "^3.2.5",
|
|
@@ -33,6 +25,14 @@
|
|
|
33
25
|
"tsup": "^7.2.0",
|
|
34
26
|
"tsx": "^3.13.0",
|
|
35
27
|
"typescript": "^5.2.2",
|
|
36
|
-
"viem": "^2.21.21"
|
|
28
|
+
"viem": "^2.21.21",
|
|
29
|
+
"@zoralabs/tsconfig": "^0.0.1"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "pnpm bundle-configs && pnpm copy-generated && tsup",
|
|
33
|
+
"bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
|
|
34
|
+
"copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
|
|
35
|
+
"prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
36
|
+
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|
package/src/generated/sparks.ts
CHANGED
|
@@ -17,6 +17,7 @@ export const chainConfigs = {
|
|
|
17
17
|
NONFUNGIBLE_POSITION_MANAGER: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
18
18
|
UNISWAP_SWAP_ROUTER: "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
19
19
|
UNISWAP_V3_FACTORY: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD",
|
|
20
|
+
UNISWAP_QUOTER_V2: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
20
21
|
DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
|
|
21
22
|
PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
|
|
22
23
|
ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
|
|
@@ -44,6 +45,7 @@ export const chainConfigs = {
|
|
|
44
45
|
NONFUNGIBLE_POSITION_MANAGER: "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
45
46
|
UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
46
47
|
UNISWAP_V3_FACTORY: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",
|
|
48
|
+
UNISWAP_QUOTER_V2: "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
47
49
|
DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
|
|
48
50
|
PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
|
49
51
|
ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
|
package/src/generated/wagmi.ts
CHANGED
|
@@ -1,9 +1,106 @@
|
|
|
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/
|
|
103
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
7
104
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
8
105
|
*/
|
|
9
106
|
export const buySupplyWithSwapRouterHookABI = [
|
|
@@ -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,29 @@ 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
|
+
},
|
|
49
154
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
50
155
|
{
|
|
51
156
|
type: 'error',
|
|
52
157
|
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
53
158
|
name: 'CoinBalanceNot0',
|
|
54
159
|
},
|
|
160
|
+
{
|
|
161
|
+
type: 'error',
|
|
162
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
163
|
+
name: 'CurrencyBalanceNot0',
|
|
164
|
+
},
|
|
55
165
|
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
56
166
|
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
57
167
|
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
58
168
|
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
169
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
59
170
|
{
|
|
60
171
|
type: 'error',
|
|
61
172
|
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -64,16 +175,16 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
64
175
|
] as const
|
|
65
176
|
|
|
66
177
|
/**
|
|
67
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
178
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
68
179
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
69
180
|
*/
|
|
70
181
|
export const buySupplyWithSwapRouterHookAddress = {
|
|
71
|
-
8453: '
|
|
182
|
+
8453: '0xd77038a7f400E8242d2916f7EB5741e689d4aE25',
|
|
72
183
|
84532: '0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE',
|
|
73
184
|
} as const
|
|
74
185
|
|
|
75
186
|
/**
|
|
76
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
187
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
77
188
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
78
189
|
*/
|
|
79
190
|
export const buySupplyWithSwapRouterHookConfig = {
|
|
@@ -1305,7 +1416,7 @@ export const coinABI = [
|
|
|
1305
1416
|
{
|
|
1306
1417
|
type: 'function',
|
|
1307
1418
|
inputs: [],
|
|
1308
|
-
name: '
|
|
1419
|
+
name: 'dopplerFeeRecipient',
|
|
1309
1420
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1310
1421
|
stateMutability: 'view',
|
|
1311
1422
|
},
|
|
@@ -2796,7 +2907,7 @@ export const coinV4ABI = [
|
|
|
2796
2907
|
{
|
|
2797
2908
|
type: 'function',
|
|
2798
2909
|
inputs: [],
|
|
2799
|
-
name: '
|
|
2910
|
+
name: 'dopplerFeeRecipient',
|
|
2800
2911
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2801
2912
|
stateMutability: 'view',
|
|
2802
2913
|
},
|
|
@@ -5513,7 +5624,7 @@ export const commentsConfig = {
|
|
|
5513
5624
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5514
5625
|
|
|
5515
5626
|
/**
|
|
5516
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5627
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5517
5628
|
*/
|
|
5518
5629
|
export const devBuySupplyWithSwapRouterHookABI = [
|
|
5519
5630
|
{
|
|
@@ -5525,6 +5636,7 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5525
5636
|
type: 'address',
|
|
5526
5637
|
},
|
|
5527
5638
|
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
5639
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
5528
5640
|
],
|
|
5529
5641
|
stateMutability: 'nonpayable',
|
|
5530
5642
|
},
|
|
@@ -5555,16 +5667,29 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5555
5667
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5556
5668
|
stateMutability: 'pure',
|
|
5557
5669
|
},
|
|
5670
|
+
{
|
|
5671
|
+
type: 'function',
|
|
5672
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
5673
|
+
name: 'unlockCallback',
|
|
5674
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
5675
|
+
stateMutability: 'nonpayable',
|
|
5676
|
+
},
|
|
5558
5677
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
5559
5678
|
{
|
|
5560
5679
|
type: 'error',
|
|
5561
5680
|
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5562
5681
|
name: 'CoinBalanceNot0',
|
|
5563
5682
|
},
|
|
5683
|
+
{
|
|
5684
|
+
type: 'error',
|
|
5685
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5686
|
+
name: 'CurrencyBalanceNot0',
|
|
5687
|
+
},
|
|
5564
5688
|
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
5565
5689
|
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
5566
5690
|
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
5567
5691
|
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
5692
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
5568
5693
|
{
|
|
5569
5694
|
type: 'error',
|
|
5570
5695
|
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -5573,14 +5698,14 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5573
5698
|
] as const
|
|
5574
5699
|
|
|
5575
5700
|
/**
|
|
5576
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5701
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5577
5702
|
*/
|
|
5578
5703
|
export const devBuySupplyWithSwapRouterHookAddress = {
|
|
5579
|
-
8453: '
|
|
5704
|
+
8453: '0x0a747629609b22E348d0ea9865fC2A5a04ED945d',
|
|
5580
5705
|
} as const
|
|
5581
5706
|
|
|
5582
5707
|
/**
|
|
5583
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5708
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5584
5709
|
*/
|
|
5585
5710
|
export const devBuySupplyWithSwapRouterHookConfig = {
|
|
5586
5711
|
address: devBuySupplyWithSwapRouterHookAddress,
|
|
@@ -9777,6 +9902,147 @@ export const sponsoredSparksSpenderConfig = {
|
|
|
9777
9902
|
abi: sponsoredSparksSpenderABI,
|
|
9778
9903
|
} as const
|
|
9779
9904
|
|
|
9905
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
9906
|
+
// UniswapQuoterV2
|
|
9907
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
9908
|
+
|
|
9909
|
+
/**
|
|
9910
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
9911
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
9912
|
+
*/
|
|
9913
|
+
export const uniswapQuoterV2ABI = [
|
|
9914
|
+
{
|
|
9915
|
+
type: 'function',
|
|
9916
|
+
inputs: [
|
|
9917
|
+
{ name: 'path', internalType: 'bytes', type: 'bytes' },
|
|
9918
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
9919
|
+
],
|
|
9920
|
+
name: 'quoteExactInput',
|
|
9921
|
+
outputs: [
|
|
9922
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
9923
|
+
{
|
|
9924
|
+
name: 'sqrtPriceX96AfterList',
|
|
9925
|
+
internalType: 'uint160[]',
|
|
9926
|
+
type: 'uint160[]',
|
|
9927
|
+
},
|
|
9928
|
+
{
|
|
9929
|
+
name: 'initializedTicksCrossedList',
|
|
9930
|
+
internalType: 'uint32[]',
|
|
9931
|
+
type: 'uint32[]',
|
|
9932
|
+
},
|
|
9933
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
9934
|
+
],
|
|
9935
|
+
stateMutability: 'nonpayable',
|
|
9936
|
+
},
|
|
9937
|
+
{
|
|
9938
|
+
type: 'function',
|
|
9939
|
+
inputs: [
|
|
9940
|
+
{
|
|
9941
|
+
name: 'params',
|
|
9942
|
+
internalType: 'struct IQuoterV2.QuoteExactInputSingleParams',
|
|
9943
|
+
type: 'tuple',
|
|
9944
|
+
components: [
|
|
9945
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
9946
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
9947
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
9948
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
9949
|
+
{
|
|
9950
|
+
name: 'sqrtPriceLimitX96',
|
|
9951
|
+
internalType: 'uint160',
|
|
9952
|
+
type: 'uint160',
|
|
9953
|
+
},
|
|
9954
|
+
],
|
|
9955
|
+
},
|
|
9956
|
+
],
|
|
9957
|
+
name: 'quoteExactInputSingle',
|
|
9958
|
+
outputs: [
|
|
9959
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
9960
|
+
{ name: 'sqrtPriceX96After', internalType: 'uint160', type: 'uint160' },
|
|
9961
|
+
{
|
|
9962
|
+
name: 'initializedTicksCrossed',
|
|
9963
|
+
internalType: 'uint32',
|
|
9964
|
+
type: 'uint32',
|
|
9965
|
+
},
|
|
9966
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
9967
|
+
],
|
|
9968
|
+
stateMutability: 'nonpayable',
|
|
9969
|
+
},
|
|
9970
|
+
{
|
|
9971
|
+
type: 'function',
|
|
9972
|
+
inputs: [
|
|
9973
|
+
{ name: 'path', internalType: 'bytes', type: 'bytes' },
|
|
9974
|
+
{ name: 'amountOut', internalType: 'uint256', type: 'uint256' },
|
|
9975
|
+
],
|
|
9976
|
+
name: 'quoteExactOutput',
|
|
9977
|
+
outputs: [
|
|
9978
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
9979
|
+
{
|
|
9980
|
+
name: 'sqrtPriceX96AfterList',
|
|
9981
|
+
internalType: 'uint160[]',
|
|
9982
|
+
type: 'uint160[]',
|
|
9983
|
+
},
|
|
9984
|
+
{
|
|
9985
|
+
name: 'initializedTicksCrossedList',
|
|
9986
|
+
internalType: 'uint32[]',
|
|
9987
|
+
type: 'uint32[]',
|
|
9988
|
+
},
|
|
9989
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
9990
|
+
],
|
|
9991
|
+
stateMutability: 'nonpayable',
|
|
9992
|
+
},
|
|
9993
|
+
{
|
|
9994
|
+
type: 'function',
|
|
9995
|
+
inputs: [
|
|
9996
|
+
{
|
|
9997
|
+
name: 'params',
|
|
9998
|
+
internalType: 'struct IQuoterV2.QuoteExactOutputSingleParams',
|
|
9999
|
+
type: 'tuple',
|
|
10000
|
+
components: [
|
|
10001
|
+
{ name: 'tokenIn', internalType: 'address', type: 'address' },
|
|
10002
|
+
{ name: 'tokenOut', internalType: 'address', type: 'address' },
|
|
10003
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
10004
|
+
{ name: 'fee', internalType: 'uint24', type: 'uint24' },
|
|
10005
|
+
{
|
|
10006
|
+
name: 'sqrtPriceLimitX96',
|
|
10007
|
+
internalType: 'uint160',
|
|
10008
|
+
type: 'uint160',
|
|
10009
|
+
},
|
|
10010
|
+
],
|
|
10011
|
+
},
|
|
10012
|
+
],
|
|
10013
|
+
name: 'quoteExactOutputSingle',
|
|
10014
|
+
outputs: [
|
|
10015
|
+
{ name: 'amountIn', internalType: 'uint256', type: 'uint256' },
|
|
10016
|
+
{ name: 'sqrtPriceX96After', internalType: 'uint160', type: 'uint160' },
|
|
10017
|
+
{
|
|
10018
|
+
name: 'initializedTicksCrossed',
|
|
10019
|
+
internalType: 'uint32',
|
|
10020
|
+
type: 'uint32',
|
|
10021
|
+
},
|
|
10022
|
+
{ name: 'gasEstimate', internalType: 'uint256', type: 'uint256' },
|
|
10023
|
+
],
|
|
10024
|
+
stateMutability: 'nonpayable',
|
|
10025
|
+
},
|
|
10026
|
+
] as const
|
|
10027
|
+
|
|
10028
|
+
/**
|
|
10029
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
10030
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
10031
|
+
*/
|
|
10032
|
+
export const uniswapQuoterV2Address = {
|
|
10033
|
+
8453: '0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a',
|
|
10034
|
+
84532: '0xC5290058841028F1614F3A6F0F5816cAd0df5E27',
|
|
10035
|
+
} as const
|
|
10036
|
+
|
|
10037
|
+
/**
|
|
10038
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a)
|
|
10039
|
+
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xC5290058841028F1614F3A6F0F5816cAd0df5E27)
|
|
10040
|
+
*/
|
|
10041
|
+
export const uniswapQuoterV2Config = {
|
|
10042
|
+
address: uniswapQuoterV2Address,
|
|
10043
|
+
abi: uniswapQuoterV2ABI,
|
|
10044
|
+
} as const
|
|
10045
|
+
|
|
9780
10046
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
9781
10047
|
// UniswapUniversalRouter
|
|
9782
10048
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|