diff --git a/packages/ovm/.soliumrc.json b/packages/ovm/.soliumrc.json deleted file mode 100644 index 1b39f759abae2..0000000000000 --- a/packages/ovm/.soliumrc.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "solium:recommended", - "plugins": [ - "security" - ], - "rules": { - "security/no-inline-assembly": "off", - "quotes": [ - "error", - "double" - ], - "indentation": [ - "error", - 4 - ], - "linebreak-style": [ - "error", - "unix" - ] - } -} diff --git a/packages/ovm/README.md b/packages/ovm/README.md deleted file mode 100644 index 4763956daf4b1..0000000000000 --- a/packages/ovm/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Optimistic Virtual Machine -`ovm` is an implementation of the standard `StateMachine` interface defined in `core`. It provides the ability to apply transactions & exposes endpoints required for common Optimistic Rollup implementations and other L2s. - -### Requirements, Setup, & Testing -[View instructions here]('../../README.md'). - -### Deploying -TODO: You can deploy by running: - -```sh -yarn run deploy: -``` - -The `environment` parameter tells the deployment script which config file to use (expected filename `..env`). - diff --git a/packages/ovm/config/.env.example b/packages/ovm/config/.env.example deleted file mode 100644 index 7d63cc9ce5f75..0000000000000 --- a/packages/ovm/config/.env.example +++ /dev/null @@ -1,33 +0,0 @@ -################ -# Instructions # -################ -# Create environment file(s) named "..env" in this same location using this file as a template -# For instance `yarn run deploy:some-contract local` will use .local.env for configuration. - - -############ -# Template # -############ - -# REQUIRED -# Mnemonic for the wallet used to deploy the contracts -DEPLOY_MNEMONIC='response fresh afford leader twice silent table exist aisle pelican focus bird' - -DEPLOY_SAFETY_CHECKER_CONTRACT_ADDRESS='0x some address here' - -# Note: can use any network name. 'local' or leaving it blank will deploy to DEPLOY_LOCAL_URL -DEPLOY_NETWORK='local' - -# Only if deploying locally -DEPLOY_LOCAL_URL='http://127.0.0.1:8545' - -### OPTIONAL ### - -# Will be defaulted to this value if not overridden -- you should not set this unless you know what you're doing. -OPCODE_WHITELIST_MASK='0x600a0000000000000000001fffffffffffffffff0fcf004063f000013fff0fff' -# Default whitelist config whitelists all opcodes EXCEPT: -# ADDRESS, BALANCE, BLOCKHASH, CALLCODE, CALLER, COINBASE, -# CREATE, CREATE2, DELEGATECALL, DIFFICULTY, EXTCODECOPY, EXTCODESIZE, -# GASLIMIT, GASPRICE, NUMBER, ORIGIN, SELFDESTRUCT, SLOAD, SSTORE, -# STATICCALL, TIMESTAMP -# See test/safety-checker/whitelist-mask-generator.spec.ts for more info diff --git a/packages/ovm/deploy/execution-manager.ts b/packages/ovm/deploy/execution-manager.ts deleted file mode 100644 index 77cce424b738e..0000000000000 --- a/packages/ovm/deploy/execution-manager.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* External Imports */ -import { deploy, deployContract } from '@eth-optimism/core-utils' -import { ExecutionManagerContractDefinition } from '@eth-optimism/rollup-contracts' -import { - DEFAULT_OPCODE_WHITELIST_MASK, - GAS_LIMIT, -} from '@eth-optimism/rollup-core' - -import { Wallet } from 'ethers' - -/* Internal Imports */ -import { deploySafetyChecker } from './safety-checker' -import { resolve } from 'path' - -const executionManagerDeploymentFunction = async ( - wallet: Wallet -): Promise => { - console.log(`\nDeploying ExecutionManager!\n`) - - const safetyCheckerContractAddress = await deploySafetyChecker() - - const executionManager = await deployContract( - ExecutionManagerContractDefinition, - wallet, - DEFAULT_OPCODE_WHITELIST_MASK, - safetyCheckerContractAddress, - GAS_LIMIT, - true - ) - - console.log(`Execution Manager deployed to ${executionManager.address}!\n\n`) - - return executionManager.address -} - -/** - * Deploys the ExecutionManager contract. - * - * @param rootContract Whether or not this is the main contract being deployed (as compared to a dependency). - * @returns The deployed contract's address. - */ -export const deployExecutionManager = async ( - rootContract: boolean = false -): Promise => { - // Note: Path is from 'build/deploy/