ape-addressbook: Ape plugin that allows tracking addresses and contracts
Project description
Quick Start
Ape plugin that allows tracking addresses and contracts in projects and globally.
Dependencies
- python3 version 3.8 or greater, python3-dev
Installation
via pip
You can install the latest release via pip
:
pip install ape-addressbook
via setuptools
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/ape-addressbook.git
cd ape-addressbook
python3 setup.py install
Quick Usage
To use the addressbook in a project, add common addresses to your ape-config.yaml
file like this:
addressbook:
entries:
shared_account: "0x2192f6112a026bce4047CeD2A16553Fd31E798B6"
Then, to use the address, import the addressbook and access it via the alias set in the config:
from ape_addressbook import addressbook
address = addressbook["shared_account"]
You can also add global addresses:
from ape_addressbook import addressbook
addressbook.set_global_entry("global_address", "0x2192f6112a026bce4047CeD2A16553Fd31E798B6")
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ape_addressbook-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b376f8a1347527eb499adee6b56b15265beee79e179a05070cd31d20bb1a3e4f |
|
MD5 | 526321f4ab6ad41d8173ab27a7c19e41 |
|
BLAKE2b-256 | ca5397f364b62507f18a44915db81e4efaba44b82bea83b5de044a102d082e41 |