Skip to main content

ape-hardhat: Ape network provider for Hardhat

Project description

Hardhat network provider plugin for Ape. Hardhat is a development framework written in Node.js for Ethereum that includes a local network implementation.

Dependencies

  • python3 version 3.7 or greater, python3-dev

  • Node.js, NPM, and Hardhat. See Hardhat’s Installation documentation for steps.

Installation

via pip

You can install the latest release via pip:

pip install ape-hardhat

via setuptools

You can clone the repository and use setuptools for the most up-to-date version:

git clone https://github.com/ApeWorX/ape-hardhat.git
cd ape-hardhat
python3 setup.py install

Quick Usage

To use the plugin, first install Hardhat locally into your Ape project directory:

cd your-ape-project
npm install --save-dev hardhat

After that, you can use the --network ethereum:development:hardhat command line flag to use the hardhat network (if it’s not already configured as the default).

This network provider takes additional Hardhat-specific configuration options. To use them, add these configs in your project’s ape-config.yaml:

hardhat:
  port: 8555
  ethereum:
    development:
      uri: http://localhost:8555

Development

This project is in early development and should be considered an alpha. Things might not work, breaking changes are likely. Comments, questions, criticisms and pull requests are welcomed.

License

This project is licensed under the Apache 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ape-hardhat-0.1.0a1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

ape_hardhat-0.1.0a1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file ape-hardhat-0.1.0a1.tar.gz.

File metadata

  • Download URL: ape-hardhat-0.1.0a1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for ape-hardhat-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 ec43c65dfca9b79fecb4301adfc4423f318f481875f32dfe732e063b62d0e281
MD5 3d19b7eb9a846920c634418a0495bf01
BLAKE2b-256 99fd4154bcf6331d70bf1c343e87af73161f0157ee576a93f0cd1c967aa4e83e

See more details on using hashes here.

File details

Details for the file ape_hardhat-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: ape_hardhat-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for ape_hardhat-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3a8369a57f93d65b39e418473b5f84e3025d5f2e5635dbb6c42050ad473aaee
MD5 914df5a20b406df1367f64a178d72e45
BLAKE2b-256 889cb2da216e8f1d12ef6922a50fa04a718b338d72cfa3610ca41fd6e320d426

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page