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

Unified erc20 and native token functions #174

Merged
merged 7 commits into from
Apr 11, 2024
Merged

Conversation

nerfZael
Copy link
Contributor

@nerfZael nerfZael commented Apr 10, 2024

Closes #170

@nerfZael
Copy link
Contributor Author

/workflows/benchmarks agents/token

Copy link

github-actions bot commented Apr 10, 2024

Finished benchmarks

Test Run Summary

  • Run from: ./autotx/tests/agents/token
  • Iterations: 5
  • Total Success Rate: 84.44%

Detailed Results

Test Name Success Rate Passes Fails Avg Time
autotx/tests/agents/token/research/test_research.py::test_get_top_5_tokens_from_base 100% 5 0 30s
autotx/tests/agents/token/research/test_research_and_swap.py::test_auto_tx_research_swap_and_send_governance_token 80% 4 1 1.02m
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_eth 100% 5 0 15s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_eth_sequential 100% 5 0 25s
autotx/tests/agents/token/test_swap.py::test_auto_tx_swap_multiple 100% 5 0 19s
autotx/tests/agents/token/test_swap_and_send.py::test_auto_tx_swap_and_send_complex 20% 1 4 44s
autotx/tests/agents/token/research/test_research.py::test_get_top_5_memecoins 100% 5 0 34s
autotx/tests/agents/token/research/test_research.py::test_check_liquidity 40% 2 3 28s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_erc20_parallel 100% 5 0 22s
autotx/tests/agents/token/test_swap_and_send.py::test_auto_tx_swap_and_send_simple 100% 5 0 21s
autotx/tests/agents/token/research/test_research.py::test_get_token_exchanges 100% 5 0 20s
autotx/tests/agents/token/research/test_research.py::test_get_top_5_memecoins_in_optimism 60% 3 2 27s
autotx/tests/agents/token/research/test_research.py::test_get_top_5_most_traded_tokens_from_l1 60% 3 2 29s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_erc20 100% 5 0 18s
autotx/tests/agents/token/test_swap.py::test_auto_tx_swap_with_non_default_token 100% 5 0 19s
autotx/tests/agents/token/research/test_research.py::test_price_change_information 100% 5 0 17s
autotx/tests/agents/token/research/test_research_and_swap.py::test_auto_tx_research_and_swap_meme_token 60% 3 2 25s
autotx/tests/agents/token/test_swap.py::test_auto_tx_swap_eth 100% 5 0 14s

Total run time: 38.98 minutes

autotx/agents/SendTokensAgent.py Outdated Show resolved Hide resolved
autotx/agents/SendTokensAgent.py Outdated Show resolved Hide resolved
autotx/agents/SendTokensAgent.py Outdated Show resolved Hide resolved
@nerfZael
Copy link
Contributor Author

/workflows/benchmarks agents/token/send 1

Copy link

github-actions bot commented Apr 11, 2024

Finished benchmarks

Test Run Summary

  • Run from: ./autotx/tests/agents/token/send
  • Iterations: 1
  • Total Success Rate: 100.00%

Detailed Results

Test Name Success Rate Passes Fails Avg Time
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_erc20_parallel 100% 1 0 29s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_eth_multiple 100% 1 0 34s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_native_sequential 100% 1 0 27s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_erc20 100% 1 0 19s
autotx/tests/agents/token/send/test_send.py::test_auto_tx_send_native 100% 1 0 17s

Total run time: 2.09 minutes

@cbrzn cbrzn merged commit 8eecac8 into main Apr 11, 2024
1 check passed
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.

SendTokensAgent: Remove get_eth_balance and get_erc20_balance in favor of get_balance
3 participants