Skip to content

feat(onlyswaps-smoketest): tool to periodically create onlyswaps request#189

Merged
azixus merged 18 commits into
mainfrom
feat/onlyswaps-smoketest
Oct 24, 2025
Merged

feat(onlyswaps-smoketest): tool to periodically create onlyswaps request#189
azixus merged 18 commits into
mainfrom
feat/onlyswaps-smoketest

Conversation

@azixus
Copy link
Copy Markdown
Contributor

@azixus azixus commented Oct 23, 2025

  • Periodically execute swaps. It can be configured with the following config:
[[swaps]]
amount = "1_000_000_000_000_000_000" # 1 RUSD (18 decimals)
src_token = "RUSD"
dst_token = "RUSD"
src_chain_id = 84532
dst_chain_id = 43113
label = "rusd_base_sepolia_to_ava_fuji"
interval = "10m"       # Run test every 10 minutes
timeout = "60s"        # Fail if not completed in 60 seconds
recipient = "0x..."    # Optional: specify recipient address, otherwise uses signer's address
  • Monitor the outcome of the swap. The following metrics are used:
    • swap_requested{label}: Total number of swaps requested per test label
    • swap_fulfilled{label}: Total number of swaps successfully fulfilled per test label
    • swap_verified{label}: Total number of swaps verified on-chain per test label
    • swap_failed{label,reason}: Total number of failed swaps per test label and failure reason

@azixus azixus changed the base branch from main to feat/onlyswaps-client October 23, 2025 15:14
@azixus azixus marked this pull request as ready for review October 24, 2025 08:17
Copy link
Copy Markdown
Contributor

@CluEleSsUK CluEleSsUK left a comment

Choose a reason for hiding this comment

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

a few nits

Comment thread bin/onlyswaps-smoketest/src/main.rs
Comment thread bin/onlyswaps-smoketest/src/main.rs
Comment thread bin/onlyswaps-smoketest/src/metrics.rs Outdated
Comment thread bin/onlyswaps-smoketest/src/smoketest.rs
Comment thread bin/onlyswaps-smoketest/src/smoketest.rs Outdated
Comment thread bin/onlyswaps-smoketest/src/smoketest.rs Outdated
Comment thread crates/agent-utils/src/healthcheck_server.rs
Comment thread crates/onlyswaps-client/src/config/token.rs Outdated
@azixus azixus force-pushed the feat/onlyswaps-smoketest branch from 3f79490 to be0425d Compare October 24, 2025 11:26
Base automatically changed from feat/onlyswaps-client to main October 24, 2025 12:34
@azixus azixus force-pushed the feat/onlyswaps-smoketest branch from be0425d to c3b760d Compare October 24, 2025 12:34
@azixus azixus merged commit e7d9658 into main Oct 24, 2025
@azixus azixus deleted the feat/onlyswaps-smoketest branch October 24, 2025 12:35
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.

2 participants