Code Monkey home page Code Monkey logo

mothership-l2launcher's Introduction

L2launcher

This repository contains base docker-compose.yml template to setup Optimism Stack and optional Stackup Bundler with a CLI script to fill out required environment variables into .env.

Usage

Prerequisites

  • Docker with docker compose
  • Deno (only if using CLI script)
  • Required environment variables or .env file (optional if using CLI script)
    • Private keys for accounts used in Optimism stack (should be prefunded, reference)
      • ADMIN_KEY (Recommended funding amounts: 2 ETH)
      • PROPOSER_KEY (Recommended funding amounts: 5 ETH)
      • BATCHER_KEY (Recommended funding amounts: 10 ETH)
      • SEQUENCER_KEY
    • L1_RPC
    • L2_CHAIN_ID
    • ERC4337_BUNDLER_KEY (optional, used for Stackup Bundler)

Using CLI script

deno task start

If environment variables are set or .env file present in current directory, the script will use given variables and only prompt unset variables.

You can find output files at out directory, .env and docker-compose.yml.

Using docker compose directly

If every required environment variables are set or present in .env file, you can just run docker compose up -d with templates/docker-compose.yml directly without running the CLI.

However, the base compose template doesn't include Stackup Bundler and BlockScout explorer, so you might need to copy templates/docker-compose-bundler.yml and templates/docker-compose-blockscout.yml templates respectively into the base compose template or setup manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.