Skip to content
This repository was archived by the owner on Oct 4, 2026. It is now read-only.

Latest commit

 

History

History
65 lines (47 loc) · 2.47 KB

README.md

File metadata and controls

65 lines (47 loc) · 2.47 KB

Badger Deployer

A set of scripts to deploy & test the Badger protocol. A more detailed overview of the deploy process can be found at the Badger Docs repo.

Installation

  1. Clone

    git clone https://github.com/Badger-Finance/badger-deploy
    

  2. Install dependencies

    npm install
    

  3. Setup environment

    cp .env.example .env
    

    Input values for Mnemonic and Infura API key in .env to connect to live testnets or mainnet


  4. Run Scripts

    Deploy (local): Create a local instance of the Badger system using the parmeters specified in deploy/badgerConfig.ts. The initial parameters will be confirmed after deploy.

    npm run deploy-local
    

    (See package.json for other network variants)


    Integration Test: Test the operation of a local system, including inital deploy, token distribution, normal update operations of the system, and governance mechanics

    npm run test
    

A note on dependencies

Because of the myriad sets of dependencies (node versions, compilers, etc) required to compile smart contract components used from other systems, the artifacts are pre-compiled and bundled under the dependency-artifacts folder.

Managing the various environment setups, installation, compilation, and storing of artifacts may be automated in the future to improve the experience of deployers who wish to confirm the veracity of all artifact files independently.

The source code for all artifacts can be found in the following repos: