@@ -452,6 +452,30 @@ export const createERC20Command = {
452452 } ,
453453} ;
454454
455+ export const createFeeTokenPricerCommand = {
456+ command : "create-fee-token-pricer" ,
457+ describe : "creates Constant Fee Token Pricer on L2" ,
458+ builder : {
459+ deployer : {
460+ string : true ,
461+ describe : "account (see general help)"
462+ } ,
463+ } ,
464+ handler : async ( argv : any ) => {
465+ console . log ( "create-fee-token-pricer" ) ;
466+
467+ argv . provider = new ethers . providers . WebSocketProvider ( argv . l2url ) ;
468+ const deployerWallet = new Wallet (
469+ ethers . utils . sha256 ( ethers . utils . toUtf8Bytes ( argv . deployer ) ) ,
470+ argv . provider
471+ ) ;
472+ const feeTokenPricerAddress = await deployFeeTokenPricerContract ( deployerWallet , BigNumber . from ( "15000000000000000000" ) ) ;
473+ console . log ( "Contract deployed at address:" , feeTokenPricerAddress ) ;
474+
475+ argv . provider . destroy ( ) ;
476+ } ,
477+ } ;
478+
455479export const deployExpressLaneAuctionContractCommand = {
456480 command : "deploy-express-lane-auction" ,
457481 describe : "Deploy the ExpressLaneAuction contract" ,
@@ -508,29 +532,6 @@ export const deployExpressLaneAuctionContractCommand = {
508532 }
509533} ;
510534
511- export const createFeeTokenPricerCommand = {
512- command : "create-fee-token-pricer" ,
513- describe : "creates Constant Fee Token Pricer on L2" ,
514- builder : {
515- deployer : {
516- string : true ,
517- describe : "account (see general help)"
518- } ,
519- } ,
520- handler : async ( argv : any ) => {
521- console . log ( "create-fee-token-pricer" ) ;
522-
523- argv . provider = new ethers . providers . WebSocketProvider ( argv . l2url ) ;
524- const deployerWallet = new Wallet (
525- ethers . utils . sha256 ( ethers . utils . toUtf8Bytes ( argv . deployer ) ) ,
526- argv . provider
527- ) ;
528- const feeTokenPricerAddress = await deployFeeTokenPricerContract ( deployerWallet , BigNumber . from ( "15000000000000000000" ) ) ;
529- console . log ( "Contract deployed at address:" , feeTokenPricerAddress ) ;
530-
531- argv . provider . destroy ( ) ;
532- } ,
533- } ;
534535// Will revert if the keyset is already valid.
535536async function setValidKeyset ( argv : any , upgradeExecutorAddr : string , sequencerInboxAddr : string , keyset : string ) {
536537 const innerIface = new ethers . utils . Interface ( [ "function setValidKeyset(bytes)" ] )
0 commit comments