npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@eth-optimism/contracts-governance

v0.1.8

Published

<div align="center"> <a href="https://community.optimism.io"><img alt="Optimism" src="https://user-images.githubusercontent.com/14298799/122151157-0b197500-ce2d-11eb-89d8-6240e3ebe130.png" width=280></a> <br /> <h1> Optimism Governance Contracts</h1

Readme

codecov

TL;DR

The token and governance smart contracts for the Optimism DAO. Built using OpenZeppelin libraries with some customisations. The token is an ERC20 that is permissible and allows for delegate voting. The token is also burnable. See more in the Specification section.

Governance will initially be handled by Snapshot before moving to an on chain governance system like OpenZeppelins Governance contracts.

Getting set up

Requirements

You will need the following dependancies installed:

nvm
node
yarn
npx

Instal the required packages by running:

nvm use
yarn

Compile

To compile the smart contracts run:

yarn build

Test

To run the tests run:

yarn test

Lint

To run the linter run:

yarn lint

Coverage

For coverage run:

yarn test:coverage

Deploying

To deploy the contracts you will first need to set up the environment variables.

Duplicate the .env.example file. Rename the duplicate to .env.

Fill in the missing environment variables, take care with the specified required formatting of secrets.

Then run the command for your desired network:

# To deploy on Optimism Kovan
yarn deploy-op-kovan

# To deploy on Optimism
yarn deploy-op-main

Specification

Below we will cover the specifications for the various elements of this repository.

Governance Token

The GovernanceToken.sol contract is a basic ERC20 token, with the following modifications:

  • Non-upgradable
    • This token is not upgradable.
  • Ownable
    • This token has an owner role to allow for permissioned minting functionality.
  • Mintable
    • The OP token is an inflationary token. We allow for up to 2% annual inflation supply to be minted by the token MintManager.
  • Burnable
    • The token allows for tokens to be burnt, as well as allowing approved spenders to burn tokens from users.
  • 🛠 Permittable
    • This token is permittable as defined by EIP2612. This allows users to approve a spender without submitting an onchain transaction through the use of signed messages.
  • Delegate voting
    • This token inherits Open Zeppelins ERC20Votes.sol to allow users to delegate voting power. This requires the token be permittable.

Mint Manager

The MintManager.sol contract is set as the owner of the OP token and is responsible for the token inflation schedule. It acts as the token "mint manager" with permission to the mint function only. The current implementation allows minting once per year of up to 2% of the total token supply.

The contract is also upgradable to allow changes in the inflation schedule.

Snapshot Voting Strategy

(WIP)

Governance (DAO) Contracts

(WIP)