@@ -59,11 +59,11 @@ export async function deployRouter(options: ClientAndChainAndAccount) {
5959
6060 const routerImpl = await getOrDeployInfraContract ( {
6161 ...options ,
62- contractId : "Router" ,
6362 constructorParams : {
64- _marketSaleImplementation : marketSaleImpl . address ,
6563 _feeManager : feeManager . address ,
64+ _marketSaleImplementation : marketSaleImpl . address ,
6665 } ,
66+ contractId : "Router" ,
6767 publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" ,
6868 } ) ;
6969
@@ -74,16 +74,16 @@ export async function deployRouter(options: ClientAndChainAndAccount) {
7474
7575 const routerProxyAddress = await deployInfraProxy ( {
7676 ...options ,
77- initData ,
77+ assetFactory ,
7878 extraData : "0x" ,
7979 implementationAddress : routerImpl . address ,
80- assetFactory ,
80+ initData ,
8181 } ) ;
8282
8383 return getContract ( {
84- client : options . client ,
85- chain : options . chain ,
8684 address : routerProxyAddress ,
85+ chain : options . chain ,
86+ client : options . client ,
8787 } ) ;
8888}
8989
@@ -106,12 +106,12 @@ export async function deployRewardLocker(options: ClientAndChainAndAccount) {
106106
107107 return await getOrDeployInfraContract ( {
108108 ...options ,
109- contractId : "RewardLocker" ,
110109 constructorParams : {
111110 _feeManager : feeManager . address ,
112111 _v3PositionManager : v3PositionManager ,
113112 _v4PositionManager : v4PositionManager ,
114113 } ,
114+ contractId : "RewardLocker" ,
115115 publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" ,
116116 } ) ;
117117}
@@ -132,23 +132,23 @@ export async function deployFeeManager(options: ClientAndChainAndAccount) {
132132
133133 // encode init data
134134 const initData = encodeFeeManagerInit ( {
135- owner : DEFAULT_INFRA_ADMIN ,
136- feeRecipient : DEFAULT_FEE_RECIPIENT ,
137135 defaultFee : DEFAULT_FEE_BPS ,
136+ feeRecipient : DEFAULT_FEE_RECIPIENT ,
137+ owner : DEFAULT_INFRA_ADMIN ,
138138 } ) ;
139139
140140 // fee manager proxy deployment
141141 const transaction = deployInfraProxyDeterministic ( {
142142 contract : assetFactory ,
143- implementation : feeManagerImpl . address ,
144143 data : initData ,
145144 extraData : "0x" ,
145+ implementation : feeManagerImpl . address ,
146146 salt : keccakId ( DEFAULT_SALT ) ,
147147 } ) ;
148148
149149 const receipt = await sendAndConfirmTransaction ( {
150- transaction,
151150 account : options . account ,
151+ transaction,
152152 } ) ;
153153 const proxyEvent = assetInfraDeployedEvent ( ) ;
154154 const decodedEvent = parseEventLogs ( {
@@ -165,9 +165,9 @@ export async function deployFeeManager(options: ClientAndChainAndAccount) {
165165 const feeManagerProxyAddress = decodedEvent [ 0 ] ?. args . proxy ;
166166
167167 return getContract ( {
168- client : options . client ,
169- chain : options . chain ,
170168 address : feeManagerProxyAddress ,
169+ chain : options . chain ,
170+ client : options . client ,
171171 } ) ;
172172}
173173
@@ -203,11 +203,11 @@ export async function getDeployedRouter(options: ClientAndChain) {
203203
204204 const routerImpl = await getDeployedInfraContract ( {
205205 ...options ,
206- contractId : "Router" ,
207206 constructorParams : {
208- _marketSaleImplementation : marketSaleImpl . address ,
209207 _feeManager : feeManager . address ,
208+ _marketSaleImplementation : marketSaleImpl . address ,
210209 } ,
210+ contractId : "Router" ,
211211 publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" ,
212212 } ) ;
213213
@@ -233,9 +233,9 @@ export async function getDeployedRouter(options: ClientAndChain) {
233233
234234 const routerProxyAddress = `0x${ hashedDeployInfo . slice ( 26 ) } ` ;
235235 const routerProxy = getContract ( {
236- client : options . client ,
237- chain : options . chain ,
238236 address : routerProxyAddress ,
237+ chain : options . chain ,
238+ client : options . client ,
239239 } ) ;
240240
241241 if ( ! ( await isContractDeployed ( routerProxy ) ) ) {
@@ -264,12 +264,12 @@ export async function getDeployedRewardLocker(options: ClientAndChain) {
264264
265265 return await getDeployedInfraContract ( {
266266 ...options ,
267- contractId : "RewardLocker" ,
268267 constructorParams : {
269268 _feeManager : feeManager . address ,
270269 _v3PositionManager : v3PositionManager ,
271270 _v4PositionManager : v4PositionManager ,
272271 } ,
272+ contractId : "RewardLocker" ,
273273 publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" ,
274274 } ) ;
275275}
@@ -306,9 +306,9 @@ export async function getDeployedFeeManager(options: ClientAndChain) {
306306
307307 const feeManagerProxyAddress = `0x${ hashedDeployInfo . slice ( 26 ) } ` ;
308308 const feeManagerProxy = getContract ( {
309- client : options . client ,
310- chain : options . chain ,
311309 address : feeManagerProxyAddress ,
310+ chain : options . chain ,
311+ client : options . client ,
312312 } ) ;
313313
314314 if ( ! ( await isContractDeployed ( feeManagerProxy ) ) ) {
0 commit comments