@@ -9,7 +9,7 @@ async function main() {
99 let deploysData = JSON . parse ( fs . readFileSync ( deployDataPath , 'utf8' ) ) ;
1010
1111 // WNativeTokenAddress
12- const WNativeTokenAddress = '0x94373a4919b3240d86ea41593d5eba789fef3848 ' ;
12+ const WNativeTokenAddress = '0x4200000000000000000000000000000000000006 ' ;
1313 const signers = await hre . ethers . getSigners ( ) ;
1414 const ProxyAdmin = signers [ 0 ] . address ;
1515
@@ -38,8 +38,6 @@ async function main() {
3838 deploysData . tickLens = TickLens . target ;
3939 console . log ( 'TickLens deployed to:' , TickLens . target ) ;
4040
41- // arg1 factory address
42- // arg2 wnative address
4341 const QuoterFactory = await hre . ethers . getContractFactory ( 'Quoter' ) ;
4442 const Quoter = await QuoterFactory . deploy ( deploysData . factory , WNativeTokenAddress , deploysData . poolDeployer ) ;
4543
@@ -48,8 +46,6 @@ async function main() {
4846 deploysData . quoter = Quoter . target ;
4947 console . log ( 'Quoter deployed to:' , Quoter . target ) ;
5048
51- // arg1 factory address
52- // arg2 wnative address
5349 const QuoterV2Factory = await hre . ethers . getContractFactory ( 'QuoterV2' ) ;
5450 const QuoterV2 = await QuoterV2Factory . deploy ( deploysData . factory , WNativeTokenAddress , deploysData . poolDeployer ) ;
5551
@@ -58,8 +54,6 @@ async function main() {
5854 deploysData . quoterV2 = QuoterV2 . target ;
5955 console . log ( 'QuoterV2 deployed to:' , QuoterV2 . target ) ;
6056
61- // arg1 factory address
62- // arg2 wnative address
6357 const SwapRouterFactory = await hre . ethers . getContractFactory ( 'SwapRouter' ) ;
6458 const SwapRouter = await SwapRouterFactory . deploy ( deploysData . factory , WNativeTokenAddress , deploysData . poolDeployer ) ;
6559
@@ -72,7 +66,7 @@ async function main() {
7266 const NFTDescriptor = await NFTDescriptorFactory . deploy ( ) ;
7367
7468 await NFTDescriptor . waitForDeployment ( ) ;
75- // arg1 wnative address
69+
7670 const NonfungibleTokenPositionDescriptorFactory = await hre . ethers . getContractFactory (
7771 'NonfungibleTokenPositionDescriptor' ,
7872 {
@@ -83,26 +77,26 @@ async function main() {
8377 ) ;
8478 const NonfungibleTokenPositionDescriptor = await NonfungibleTokenPositionDescriptorFactory . deploy (
8579 WNativeTokenAddress ,
86- 'WTLS ' ,
80+ 'ETH ' ,
8781 [ ]
8882 ) ;
8983
9084 await NonfungibleTokenPositionDescriptor . waitForDeployment ( ) ;
9185
9286 console . log ( 'NonfungibleTokenPositionDescriptor deployed to:' , NonfungibleTokenPositionDescriptor . target ) ;
87+ deploysData . nftDescriptor = NonfungibleTokenPositionDescriptor . target ;
88+
9389
94- //console.log('NFTDescriptor deployed to:', NFTDescriptor.target)
9590 const ProxyFactory = await hre . ethers . getContractFactory ( 'TransparentUpgradeableProxy' ) ;
9691 const Proxy = await ProxyFactory . deploy ( NonfungibleTokenPositionDescriptor . target , ProxyAdmin , '0x' ) ;
9792
9893 await Proxy . waitForDeployment ( ) ;
9994
10095 deploysData . proxy = Proxy . target ;
101-
96+ deploysData . admin = ProxyAdmin ;
10297 console . log ( 'Proxy deployed to:' , Proxy . target ) ;
103- // // arg1 factory address
104- // // arg2 wnative address
105- // // arg3 tokenDescriptor address
98+
99+
106100 const NonfungiblePositionManagerFactory = await hre . ethers . getContractFactory ( 'NonfungiblePositionManager' ) ;
107101 const NonfungiblePositionManager = await NonfungiblePositionManagerFactory . deploy (
108102 deploysData . factory ,
@@ -116,26 +110,13 @@ async function main() {
116110 deploysData . nonfungiblePositionManager = NonfungiblePositionManager . target ;
117111 console . log ( 'NonfungiblePositionManager deployed to:' , NonfungiblePositionManager . target ) ;
118112
119- // // arg1 factory address
120- // // arg2 wnative address
121- // // arg3 nonfungiblePositionManager address
122- // const V3MigratorFactory = await hre.ethers.getContractFactory('V3Migrator');
123- // const V3Migrator = await V3MigratorFactory.deploy(
124- // deploysData.factory,
125- // WNativeTokenAddress,
126- // NonfungiblePositionManager.target,
127- // deploysData.poolDeployer
128- // );
129-
130- // await V3Migrator.waitForDeployment();
131-
132113 const AlgebraInterfaceMulticallFactory = await hre . ethers . getContractFactory ( 'AlgebraInterfaceMulticall' ) ;
133114 const AlgebraInterfaceMulticall = await AlgebraInterfaceMulticallFactory . deploy ( ) ;
134115
135116 await AlgebraInterfaceMulticall . waitForDeployment ( ) ;
136117
137118 console . log ( 'AlgebraInterfaceMulticall deployed to:' , AlgebraInterfaceMulticall . target ) ;
138- // console.log('V3Migrator deployed to:', V3Migrator .target) ;
119+ deploysData . mcall = AlgebraInterfaceMulticall . target ;
139120
140121 fs . writeFileSync ( deployDataPath , JSON . stringify ( deploysData ) , 'utf-8' ) ;
141122}
0 commit comments