@zoralabs/protocol-deployments 0.5.10 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-deployments",
3
- "version": "0.5.10",
3
+ "version": "0.5.11-PRE.0",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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",
@@ -1,3 +1,100 @@
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
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -9805,6 +9902,147 @@ export const sponsoredSparksSpenderConfig = {
9805
9902
  abi: sponsoredSparksSpenderABI,
9806
9903
  } as const
9807
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
+
9808
10046
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
9809
10047
  // UniswapUniversalRouter
9810
10048
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////