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
File details
Details for the file ape-addressbook-0.6.0.tar.gz
.
File metadata
- Download URL: ape-addressbook-0.6.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73311647b2b2ac7c0e48a334043aa82b3f7304d53e31f0a44a5b9adda15fea01 |
|
MD5 | 505ea2c91cd6551479ea91ca876b2733 |
|
BLAKE2b-256 | b76323b5ec67d40f2a63b3fd1ea3a527d5cac99f451de80f732e0b59dbddc2cc |
File details
Details for the file ape_addressbook-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: ape_addressbook-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b376f8a1347527eb499adee6b56b15265beee79e179a05070cd31d20bb1a3e4f |
|
MD5 | 526321f4ab6ad41d8173ab27a7c19e41 |
|
BLAKE2b-256 | ca5397f364b62507f18a44915db81e4efaba44b82bea83b5de044a102d082e41 |