Skip to main content

ape-chainstack: Ape Ecosystem Plugin for Chainstack

Project description

Ape Chainstack Plugin

Chainstack network provider plugins.

This plugin allows using the Ape framework with Chainstack as a node provider in an easy and integrated way.

Ape is an innovative smart contract development and testing framework. It is inspired by Brownie, and it has essentially the same syntax. Still, Ape focuses on a more modular approach, allowing us to build and use external plugins to add functionality.

Table of contents

Requirements

  • Linux or macOS
  • Windows Subsystem Linux (WSL) if operating on windows.

Dependencies

Note: Always check the Ape docs to find the updated requirements.

Installation

Verify the Python version installed:

Python3 --version

Virtual environment

It is recommended to operate in a virtual environment; you will need to install Ape in the virtual environment if you decide to use one.

Create a virtual environment.

python3 -m venv /path/to/new/environment

Keep in mind that you can place the virtual environment where you prefer.

Then activate it.

source /bin/activate

Install ape-chainstack via pip

You can install the latest release via pip:

pip install ape-chainstack

Install ape-chainstack via setuptools

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

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

Verify that the Chainstack plugin was installed correctly with this command:

ape plugins list

It will show a list of all the plugins installed, and Chainstack will be there.

Installed Plugins:
  chainstack    <current version number>

Quick Usage

Follow these steps to sign up on Chainstack, deploy a node, and find your endpoint credentials:

  1. Sign up with Chainstack.
  2. Deploy a node.
  3. View node access and credentials.

Note: At this moment only the Ethereum network is supported.

Create an environment variable with your Chainstack node URL in this format CHAINSTACK_"NETWORK"_URL=ENDPOINT_URL; for example:

export CHAINSTACK_GOERLI_URL=https://nd-11X-26X-16X.p2pify.com/YOUR_API_KEY

Use the command ape networks list to see the networks available:

ethereum  (default)
├── mainnet
│   ├── geth  (default)   └── chainstack
├── ropsten
│   ├── geth  (default)   └── chainstack
├── kovan
│   └── geth  (default)
├── rinkeby
│   ├── geth  (default)   └── chainstack
├── goerli
│   ├── geth  (default)   └── chainstack
└── local  (default)
    ├── geth
    └── test  (default)

Use the --network command to access the console using your node; for example:

ape console --network ethereum:goerli:chainstack

Check the Ape docs to see how to select a network.

Now you are ready to use Ape to develop and test your smart contract, checkout the Ape Academy for tutorials.

Development

This project is in development and should be considered a beta. Things might not be in their final state and breaking changes may occur. 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-chainstack-0.4.0a1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

ape_chainstack-0.4.0a1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file ape-chainstack-0.4.0a1.tar.gz.

File metadata

  • Download URL: ape-chainstack-0.4.0a1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape-chainstack-0.4.0a1.tar.gz
Algorithm Hash digest
SHA256 4576d96fa33222e6a3e5817daf76f1a40d680d193143d7cb5707d2f3b8997844
MD5 c4ebdec71ae310754cbf6044d829f0fd
BLAKE2b-256 faf106742e849bf1b06054ad500c7fc99a23f2a3de1b6863ef35ec1059179c0f

See more details on using hashes here.

File details

Details for the file ape_chainstack-0.4.0a1-py3-none-any.whl.

File metadata

  • Download URL: ape_chainstack-0.4.0a1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.8.13

File hashes

Hashes for ape_chainstack-0.4.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f182bfca6e897526d3479a7d1ca8748a411bc00269e0f1366e17dc6df1cbc499
MD5 edc5814c653ff56cd204ec9cada3e8a1
BLAKE2b-256 c8529bc014187ec92b6656417e0ffb87a5c97637d705dd02f720216f44b19056

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