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

ethernaut-challenges

v1.1.11

Published

Tasks for playing the Open Zeppelin Ethernaut challenges from the CLI

Downloads

154

Readme

ethernaut-challenges

Tasks for playing the Open Zeppelin Ethernaut challenges from the CLI

What

This plugin allows to play the challenges through independent commands. The info task provides the instructions of the level, the instance command creates a playable instance, and the submit command allows to submit modified instances to the game's main contract.

Installation

npm install ethernaut-challenges

Import the plugin in your hardhat.config.js:

require('ethernaut-challenges')

Or if you are using TypeScript, in your hardhat.config.ts:

import 'ethernaut-challenges'

Required plugins

No other plugins are required.

Tasks

This plugins adds the following tasks to hardhat:

  • check-all Checks all levels that have been completed and submitted by the player
  • check Checks if the player has completed the specified level by submitting an instance modified as per the levels requirements
  • info Shows information about an open zeppelin challenges level
  • instance Creates an instance of a level, so that it can be played
  • submit Submits an instance created by the instance task, and later manipulated as required by the level

info

sage: hardhat [GLOBAL OPTIONS] challenges info [level]

POSITIONAL ARGUMENTS:

  level The level number

info: Shows information about an open zeppelin challenges level. The info includes the level name, contract name, ABI path, address, and description. The ABI path can be used with the interact package call task to interact with the contract.

For global options help run: hardhat help

instance

Usage: hardhat [GLOBAL OPTIONS] challenges instance [level]

POSITIONAL ARGUMENTS:

  level The level number

instance: Creates an instance of a level, so that it can be played. The address of the instance is printed to the console. Use this address to interact with the contract using the ethernaut-cli contract command. Make sure to use the info command to get instructions on how to complete the level.

For global options help run: hardhat help

submit

Usage: hardhat [GLOBAL OPTIONS] challenges submit [address]

POSITIONAL ARGUMENTS:

  address       The address of the instance to submit

submit: Submits an instance created by the instance task, and later manipulated as required by the level. The instance must be submitted to the games main contract in order to complete the level. Use the info command to get instructions on how to complete the level.

For global options help run: hardhat help

check

Usage: hardhat [GLOBAL OPTIONS] challenges check [level]

POSITIONAL ARGUMENTS:

  level The level number

check: Checks if the player has completed the specified level by submitting an instance modified as per the levels requirements

For global options help run: hardhat help

check-all

Usage: hardhat [GLOBAL OPTIONS] challenges check-all

check-all: Checks all levels that have been completed and submitted by the player

For global options help run: hardhat help

Environment extensions

This plugin doesn't extend the hre.

Configuration

This plugin doesn't define any fields in the hardhat config file.

Usage

There are no additional steps you need to take for this plugin to work.