Skip to content

Poc smoke tests - #425

Open
Hakob23 wants to merge 8 commits into
rsksmart:mainfrom
Hakob23:poc-smoke-tests
Open

Poc smoke tests#425
Hakob23 wants to merge 8 commits into
rsksmart:mainfrom
Hakob23:poc-smoke-tests

Conversation

@Hakob23

@Hakob23 Hakob23 commented Jun 8, 2026

Copy link
Copy Markdown

Description

Adds optional Flyover smoke tests to RIT to validate split-contract deployments against a running Liquidity Provider Service (LPS) on regtest.

This is a POC to exercise end-to-end LPS wiring without extending the existing on-chain Flyover peg-in test suite (01_04_*).

Motivation

After deploying Flyover split contracts (pegin, pegout, discovery, collateral management) and starting LPS locally, there was no lightweight way to confirm:

  1. LPS health and provider discovery
  2. Quote retrieval and acceptance over HTTP
  3. The same flow via @rsksmart/flyover-sdk

These tests are opt-in: when required env vars are unset, they skip automatically so default RIT CI is unaffected.

Changes

  • Add tests/01_08_00-flyover_split_contracts_smoke.js — LPS HTTP flow (/health/getProviders/pegin/getQuote/pegin/acceptQuote)
  • Add tests/01_08_01-flyover_sdk_smoke.js — same flow via @rsksmart/flyover-sdk
  • Add lib/flyover-smoke-test-utils.js — shared env checks, contract bytecode validation, quote building, HTTP helpers, and SDK shim
  • Add config/regtest-external-lps-smoke.js — RIT config for external regtest stack (pre-running RSK node, bitcoind, LPS)
  • Add dependencies: @rsksmart/bridges-core-sdk@0.6.0, @rsksmart/flyover-sdk@1.9.0 (pinned versions)
  • Document setup in README.md and .env-example

Jira Ticket

https://rsklabs.atlassian.net/browse/FLY-2272

Testing

Local smoke test run (verified)

Prerequisites:

  • RSK regtest node at http://127.0.0.1:4444
  • LPS at http://127.0.0.1:8080
  • Deployed split-contract proxy addresses on that chain (from liquidity-bridge-contract/broadcast/DeployFlyover.s.sol/33/run-latest.json)
# .env (example)
CONFIG_FILE_PATH=./config/regtest-external-lps-smoke
INCLUDE_CASES=01_08_00,01_08_01
FLYOVER_LPS_URL=http://127.0.0.1:8080
PEGIN_CONTRACT_ADDRESS=0x9d4454B023096f34B160D6B654540c56A1F81688
PEGOUT_CONTRACT_ADDRESS=0x36C02dA8a0983159322a80FFE9F24b1acfF8B570
DISCOVERY_ADDRESS=0x0E801D84Fa97b50751Dbf25036d067dCf18858bF
COLLATERAL_MANAGEMENT_ADDRESS=0x4826533B4897376654Bb4d4AD88B7faFD0C98528
FLYOVER_RSK_RPC_URL=http://127.0.0.1:4444
FLYOVER_SDK_NETWORK=Regtest

@Hakob23
Hakob23 marked this pull request as ready for review June 10, 2026 14:36
@Hakob23
Hakob23 requested a review from a team as a code owner June 10, 2026 14:36
@sonarqubecloud

Copy link
Copy Markdown

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