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 up to 3.11.
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")
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
ape-addressbook-0.6.1.tar.gz
(16.3 kB
view hashes)
Built Distribution
Close
Hashes for ape_addressbook-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7faa4fb1612589c962aea176614568461d480593158dcbe8a44fa339c57888e3 |
|
MD5 | 963c554f2156b3d1c73a603f5fabf162 |
|
BLAKE2b-256 | fccd651ba56d67deb894583d75acdde77db5f5b9ad6fb9fb87d94b1b36f677fa |