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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@eth-optimism/rollup-contracts

v0.0.1-alpha.37

Published

`rollup-contracts` is the set of smart contracts written in Solidity for Optimism's Optimistic Rollup.

Downloads

3

Readme

contracts

rollup-contracts is the set of smart contracts written in Solidity for Optimism's Optimistic Rollup.

Requirements and Setup

Clone the parent repo optimism-monorepo and follow its instructions.

Node.js

rollup-contracts is tested with Node.js and has been tested on the following versions of Node:

  • 11.6.0

If you're having trouble getting rollup-contracts tests running, please make sure you have one of the above Node.js versions installed.

Running Tests

rollup-contracts makes use of a combination of Mocha (a testing framework) and Chai (an assertion library) for testing.

Run all tests with:

yarn test

So that Python and Vyper aren't requirements for our other components, we do include a compiled-contracts folder which contains JS exports of the bytecode and ABI. Compilation is done automatically before testing.

Deployment

Configuration

The following environment variables must be configured to deploy contracts:

L1 Node:

Either:

  • L1_NODE_INFURA_NETWORK - The network to use for Infura deployments.
  • L1_NODE_INFURA_PROJECT_ID - The Project ID to use for Infura deployments.

Or:

  • L1_NODE_WEB3_URL - The URL of the node through which the deployment will be done.

Deployment Wallet

Either:

  • L1_CONTRACT_DEPLOYMENT_PRIVATE_KEY - The private key to use for contract deployment.

Or:

  • L1_CONTRACT_DEPLOYMENT_MNEMONIC - The BIP-39/BIP-44 wallet mnemonic to use for contract deployment.

Contract / Deployment Variables

  • L1_CONTRACT_OWNER_ADDRESS - The owner of the deployed contracts (where applicable). Defaults to deployer address if not provided.
  • FORCE_INCLUSION_PERIOD_SECONDS - The maximum time in seconds between when a tx may be executed in L2 and when it must be mined on-chain
  • L1_SEQUENCER_ADDRESS - The address of the sequencer that will be authorized to submit rollup blocks.
  • L1_ADDRESS_RESOLVER_CONTRACT_ADDRESS - (optional) The Address Resolver contract to use to determine which contracts actually need to be deployed. Contracts registered with this AddressResolver will not be re-deployed.

Deployment

After proper configuration, you can deploy all contracts by running:

yarn run deploy:all