across sdk in python
Project description
Across
Across is the fastest, cheapest and most secure cross-chain bridge. It is a system that uses UMA contracts to quickly move tokens across chains. This contains various utilities to support applications on across.
How to use
Use across official API to get suggested fees.
>>> import across
>>> a = across.AcrossAPI()
>>> a.suggested_fees("0x7f5c764cbc14f9669b88837ca1490cca17c31607", 10, 1000000000)
{'slowFeePct': '43038790000000000', 'instantFeePct': '5197246000000000'}
How to build and test
Install poetry and install the dependencies:
pip3 install poetry
poetry install
# test
python -m unittest
# local install and test
pip3 install twine
python3 -m twine upload --repository testpypi dist/*
pip3 install --index-url https://test.pypi.org/simple/ --no-deps across
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
across-py-0.0.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for across_py-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59fdc92fc71778a1854ceb8669caae397e0e71e7fed0ca0993010fb4451a8681 |
|
MD5 | e8831cff997542a01cd1d2be21686c11 |
|
BLAKE2b-256 | f36fe61c60dc17c6edf3d8b9bb472a7ded924b586277be3129bc14bd0432266a |