feat: Add transaction routes and update configurations

This commit introduces new transaction routes for handling various transaction-related operations. It also includes updates to the `config.py` file to support these new features.

The following files were modified:
- `README.md`: Updated documentation to clarify .env variables and their purposes
- `To-Do.md`: Updated task meaningless
- `config.py`: Added COLLECT_COOLDOWN and TAX_ACCOUNT_BID configurations.

    Main Thing:
- `interbend/routes/transaction_routes.py`:
Added boilerplate transaction to handle all transfers and separated business transfers with tax application.
/transfer for personal transfers
/transfer-business for business transfers with tax deduction

TODO: add route to change tax rate and add non hardcoded tax rate.
Type 6 and 7 are reserved for future use. currently implemented are 0 and 1.
This commit is contained in:
MrEisbear 2025-09-20 20:59:19 -05:00
parent 3c5550beed
commit dcee6058cb
4 changed files with 73 additions and 21 deletions

View file

@ -25,13 +25,14 @@ Interbend is a Flask-based web application that provides a backend API for manag
Create a `.env` file in the root directory of the project and add the following variables:
```
JWT_KEY=your_secret_jwt_key
JWT_EXPIRATION=30
JWT_EXPIRATION=30 // jwt experation duration in days
DB_HOST=your_database_host
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
ADMIN_KEY=your_secret_admin_key
COLLECT_COOLDOWN=30
COLLECT_COOLDOWN=24 // collect cooldown in hours
TAX_ACCOUNT_BID=BUSINESS_BID_HERE // tax account bid here
```
## Usage