项目
在 GitHub 查看
hodgerpodger/staketaxcsv
关于
用于生成区块链 CSV 文件的 Python 仓库。
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文staketaxcsv
- Python repository to create blockchain CSVs for Akash (AKT), Algorand (ALGO), Archway (ARCH), Cosmos (ATOM), Agoric (BLD), Bitsong (BTSG), Sentinel (DVPN), dYdX (DYDX), Dymension (DYM), Evmos (EVMOS), Fetch.ai (FET), Gravity Bridge (GRAV), Chihuahua (HUAHUA), IoTex (IOTX), Injective (INJ), Juno (JUNO), Kujira (KUJI), KYVE Network (KYVE), Terra Classic (LUNC), Terra 2.0 (LUNA), Neutron (NTRN), Nolus Protocol (NLS), Osmosis (OSMO), Saga (SAGA), Sei (SEI), Solana (SOL), Stargaze (STARS), Stride (STRD), and Celestia (TIA).
- CSV codebase for https://stake.tax
- Contributions/PRs highly encouraged, such as support for new txs, blockchains, or CSV formats. Examples:
- Add cosmo-based-blockchain CSV: https://docs.stake.tax/devs/adding-csv-in-cosmos-based-ecosystem
- Add new CSV format: https://docs.stake.tax/devs/add-new-csv-format-example
Install
Install python 3.9 (one way)
Install pip packages
pip3 install -r requirements.txt
Usage
Load environment variables (add to ~/.bash_profile or ~/.bashrc to avoid doing every time):
set -o allexport source sample.env set +o allexportUsage as CLI
- See PYTHONPATH issues if encountering import errors.
- Same arguments apply for report_algo.py (ALGO), ..., report_*.py:
cd src # Create default CSV python3 staketaxcsv/report_osmo.py <wallet_address> # Create all CSV formats (i.e. koinly, cointracking, etc.) python3 staketaxcsv/report_osmo.py <wallet_address> --format all # Show CSV result for single transaction (great for development/debugging) python3 staketaxcsv/report_osmo.py <wallet_address> --txid <txid> # Show CSV result for single transaction in debug mode (great for development/debugging) python3 staketaxcsv/report_osmo.py <wallet_address> --txid <txid> --debug # Create historical balances CSV python3 staketaxcsv/report_osmo.py <wallet_address> --historical # Create cosmos+ CSV python3 staketaxcsv/report_cosmosplus <wallet_address> --cosmosplus_node <url_lcd_node> --cosmosplus_ticker <token_symbol>Usage as staketaxcsv module: see Usage as staketaxcsv module
Contributing Code
- See Tests for running unit tests.
- See Linting to see code style feedback.
- See Docker to alternatively install/run in docker container.
Reference
See README_reference.md:
探索相关项目
加载中…