Skip to content

Commit 931bbef

Browse files
committed
Merge remote-tracking branch 'origin/release' into v3-support
2 parents f155eb1 + b6249da commit 931bbef

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

scripts/ethcommands.ts

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
455479
export 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.
535536
async function setValidKeyset(argv: any, upgradeExecutorAddr: string, sequencerInboxAddr: string, keyset: string){
536537
const innerIface = new ethers.utils.Interface(["function setValidKeyset(bytes)"])

scripts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ async function main() {
5454
.command(bridgeToL3Command)
5555
.command(bridgeNativeTokenToL3Command)
5656
.command(createERC20Command)
57-
.command(deployExpressLaneAuctionContractCommand)
5857
.command(createFeeTokenPricerCommand)
58+
.command(deployExpressLaneAuctionContractCommand)
5959
.command(createWETHCommand)
6060
.command(createStylusDeployerCommand)
6161
.command(transferERC20Command)

0 commit comments

Comments
 (0)