import{task,types}from'hardhat/config'import{OpNodeProvider}from'@eth-optimism/core-utils'// TODO(tynes): add in config validationtask('check-op-node','Validate the config of the op-node').addParam('opNodeUrl','URL of the OP Node.','http://localhost:7545',types.string).setAction(async(args)=>{constprovider=newOpNodeProvider(args.opNodeUrl)constsyncStatus=awaitprovider.syncStatus()console.log(JSON.stringify(syncStatus,null,2))constconfig=awaitprovider.rollupConfig()console.log(JSON.stringify(config,null,2))})