Skip to content

feat: load testing, API playground, token snapshot & DEX trading comp…#358

Merged
LaGodxy merged 8 commits into
MettaChain:mainfrom
lynaDev2:feature/issues-154-164-194-315-propchain-contract
Apr 24, 2026
Merged

feat: load testing, API playground, token snapshot & DEX trading comp…#358
LaGodxy merged 8 commits into
MettaChain:mainfrom
lynaDev2:feature/issues-154-164-194-315-propchain-contract

Conversation

@lynaDev2
Copy link
Copy Markdown
Contributor

@lynaDev2 lynaDev2 commented Apr 24, 2026

Changes

#154 — Load Testing: E2E Tests with Real Testnet Latency

  • E2E load tests with high-latency simulation for Westend/Polkadot
  • Configurable latency profiles per network environment
  • Burst and sustained load scenarios with CI pass/fail thresholds
  • Timeout-safe test runner compatible with CI pipeline constraints

#164 — API: Interactive API Playground

  • Web-based playground embedded in docs
  • Live contract method calls against a local node
  • Pre-configured endpoints for all major contract interactions
  • CI step validates playground builds cleanly on every push

#194 — Property Token: Snapshot Mechanism

  • Block-height snapshot of token balances for governance voting
  • Immutable snapshot records prevent retroactive manipulation
  • Unit tests: snapshot creation, retrieval, duplicate and edge cases

#315 — DEX: Trading Competition System

  • Full competition lifecycle: create → join → execute → settle → claim
  • Leaderboard-based reward distribution logic
  • Clean state machine with well-defined transitions
  • Unit and integration tests covering reward edge cases

closes #315

closes #164

closes #194

closes #154

…etition

- test(MettaChain#154): expand load testing framework for real testnet latency
  · E2E tests with high-latency network simulation for Westend/Polkadot
  · Configurable latency profiles mirroring real testnet environments
  · Stress test scenarios covering burst and sustained load conditions
  · CI-compatible test runner with pass/fail thresholds and timeouts

- feat(MettaChain#164): implement interactive API playground
  · Web-based environment for calling contract methods against local node
  · Integrated directly into docs with live method execution support
  · Pre-configured endpoints for all major contract interactions
  · CI build step validates playground builds and loads without errors

- feat(MettaChain#194): implement property token snapshot mechanism
  · Snapshot functionality for capturing token balances at a block height
  · Designed for governance voting weight calculation
  · Immutable snapshot records prevent retroactive balance manipulation
  · Unit tests covering snapshot creation, retrieval and edge cases

- feat(MettaChain#315): add DEX trading competition system
  · Trading competition lifecycle — create, join, execute, settle
  · Reward distribution logic tied to competition leaderboard ranking
  · Competition state machine with clean start/end/claim transitions
  · Full unit and integration tests for reward edge cases

Closes MettaChain#154, Closes MettaChain#164, Closes MettaChain#194, Closes MettaChain#315
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 24, 2026

@lynaDev2 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@LaGodxy LaGodxy merged commit 81ca572 into MettaChain:main Apr 24, 2026
15 checks 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

2 participants