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 details)
Built Distribution
File details
Details for the file ape-addressbook-0.6.1.tar.gz
.
File metadata
- Download URL: ape-addressbook-0.6.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e578d4cd577c5f33583b6450430e378e78176ed15a36cb7cc6528aee21652698 |
|
MD5 | 395fad8073c4456ec67f8bc6fc283134 |
|
BLAKE2b-256 | 30389f5feb489d3c508785b6d24f64640a02e2121c645fc4d22e57867761260b |
File details
Details for the file ape_addressbook-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: ape_addressbook-0.6.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7faa4fb1612589c962aea176614568461d480593158dcbe8a44fa339c57888e3 |
|
MD5 | 963c554f2156b3d1c73a603f5fabf162 |
|
BLAKE2b-256 | fccd651ba56d67deb894583d75acdde77db5f5b9ad6fb9fb87d94b1b36f677fa |