Skip to content

test: Add integration test suite for bridge ↔ oracle cross-contract communication #481

Description

@nanaf6203-bit

Description

The bridge contract relies on oracle data for cross-chain trade settlement but there are no integration tests verifying the correctness of these interactions. We need end-to-end tests covering the full bridge+oracle lifecycle.

Acceptance Criteria

  • Create integration test file in tests/ for bridge-oracle interactions
  • Test: oracle valuation update triggers correct bridge fee recalculation
  • Test: stale oracle prices cause bridge to reject trades with appropriate error
  • Test: bridge operator can attach oracle data to cross-chain trade settlement
  • Test: multiple oracle sources aggregation flows through to bridge quote
  • Test: circuit breaker in oracle correctly blocks bridge trades
  • All tests pass with cargo test --test bridge_oracle_integration
  • Tests use mock oracle adapters for deterministic results

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requesttestingtesting related issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions