Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wallet balance calculation #335

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Frank40Rd
Copy link

@Frank40Rd Frank40Rd commented Jan 2, 2025

Related to #328

Add functionality to fetch wallet balance using contract executor and update relevant methods to include wallet balance calculation.

  • backends/contracts_executor.py

    • Add get_wallet_balance method to fetch wallet balance.
    • Update execute method to handle new method type for fetching wallet balance.
  • backends/defillama/tvl.py

    • Add get_wallet_balance method.
    • Update _do_calculate method to include wallet balance calculation for each project.
  • backends/defillama/volume.py

    • Add get_wallet_balance method.
    • Update _do_calculate method to include wallet balance calculation for each project.
  • backends/redoubt/apps_v2.py

    • Add get_wallet_balance method.
  • backends/redoubt/apps.py

    • Add get_wallet_balance method.
  • backends/redoubt/tokens.py

    • Add get_wallet_balance method.
  • backends/tonapi.py

    • Add get_wallet_balance method.
  • backends/toncenter_cpp/apps_v2_projects.py

    • Add get_wallet_balance method.
    • Update _do_calculate method to include wallet balance calculation for each project.
  • backends/toncenter_cpp/apps_v2_users.py

    • Add get_wallet_balance method.
  • models/backend.py

    • Add get_wallet_balance method.

For more details, open the Copilot Workspace session.

Related to ton-society#328

Add functionality to fetch wallet balance using contract executor and update relevant methods to include wallet balance calculation.

* **backends/contracts_executor.py**
  - Add `get_wallet_balance` method to fetch wallet balance.
  - Update `execute` method to handle new method type for fetching wallet balance.

* **backends/defillama/tvl.py**
  - Add `get_wallet_balance` method.
  - Update `_do_calculate` method to include wallet balance calculation for each project.

* **backends/defillama/volume.py**
  - Add `get_wallet_balance` method.
  - Update `_do_calculate` method to include wallet balance calculation for each project.

* **backends/redoubt/apps_v2.py**
  - Add `get_wallet_balance` method.

* **backends/redoubt/apps.py**
  - Add `get_wallet_balance` method.

* **backends/redoubt/tokens.py**
  - Add `get_wallet_balance` method.

* **backends/tonapi.py**
  - Add `get_wallet_balance` method.

* **backends/toncenter_cpp/apps_v2_projects.py**
  - Add `get_wallet_balance` method.
  - Update `_do_calculate` method to include wallet balance calculation for each project.

* **backends/toncenter_cpp/apps_v2_users.py**
  - Add `get_wallet_balance` method.

* **models/backend.py**
  - Add `get_wallet_balance` method.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ton-society/the-open-league/issues/328?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link
Author

@Frank40Rd Frank40Rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bräuchte bitte hilfe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant