Vitest: hybrid/router CW20 message shape from SwapPage #84

Closed
opened 2026-04-09 03:24:22 +00:00 by PlasticDigits · 4 comments
PlasticDigits commented 2026-04-09 03:24:22 +00:00 (Migrated from gitlab.com)

Acceptance criteria

  • Unit tests guard JSON structure for hybrid swap ops

Epic

#61

## Acceptance criteria - [ ] Unit tests guard JSON structure for hybrid swap ops ## Epic #61
PlasticDigits commented 2026-04-09 03:24:23 +00:00 (Migrated from gitlab.com)

marked this issue as related to #61

marked this issue as related to #61
PlasticDigits commented 2026-04-16 03:30:33 +00:00 (Migrated from gitlab.com)

@brouie Please verify GitLab #84. Implemented: Vitest cases in frontend-dapp/src/services/terraclassic/__tests__/pair.test.ts for swap() CW20 inner JSON with hybrid (pool/book/max_makers/hint), book_start_hint omitted when null, and combined deadline/trader + hybrid. Verify: cd frontend-dapp && npm run test:run -- src/services/terraclassic/__tests__/pair.test.ts.

@brouie Please verify GitLab #84. Implemented: Vitest cases in `frontend-dapp/src/services/terraclassic/__tests__/pair.test.ts` for `swap()` CW20 inner JSON with `hybrid` (pool/book/max_makers/hint), `book_start_hint` omitted when null, and combined `deadline`/`trader` + hybrid. Verify: `cd frontend-dapp && npm run test:run -- src/services/terraclassic/__tests__/pair.test.ts`.
Brouie commented 2026-04-20 06:51:16 +00:00 (Migrated from gitlab.com)

@PlasticDigits Verified on current main. Acceptance criteria:

  • Unit tests guard JSON structure for hybrid swap ops: frontend-dapp/src/services/terraclassic/tests/pair.test.ts present. Ran locally via npm run test:run -- src/services/terraclassic/tests/pair.test.ts: 15 passed, 0 failed in 1.38s.

Coverage includes: swap() CW20 inner JSON with hybrid (pool/book/max_makers/hint), book_start_hint omitted when null, and combined deadline/trader + hybrid message shapes. JSON structure guards locked in.

Closing.

@PlasticDigits Verified on current main. Acceptance criteria: - [x] Unit tests guard JSON structure for hybrid swap ops: frontend-dapp/src/services/terraclassic/__tests__/pair.test.ts present. Ran locally via npm run test:run -- src/services/terraclassic/__tests__/pair.test.ts: **15 passed, 0 failed** in 1.38s. Coverage includes: swap() CW20 inner JSON with hybrid (pool/book/max_makers/hint), book_start_hint omitted when null, and combined deadline/trader + hybrid message shapes. JSON structure guards locked in. Closing.
Brouie (Migrated from gitlab.com) closed this issue 2026-04-20 06:51:19 +00:00
PlasticDigits commented 2026-05-26 08:00:37 +00:00 (Migrated from gitlab.com)

mentioned in issue #199

mentioned in issue #199
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic#84
No description provided.