Setup WingridersV2 on testnet-preprod - #9
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the Felis monorepo to support Wingriders V2 (CP) and SundaeSwap V1 workflows (notably on testnet-preprod), including network-specific script/config “warehouses”, tx-building helpers, provider enhancements, and example CLIs for debugging/ops.
Changes:
- Add Wingriders V2 + SundaeSwap V1 on-chain config “warehouse” modules and expand datum/redeemer models.
- Introduce build-tx helpers + tests for Wingriders V2 (create-pool, batch) and SundaeSwap V1 (create-pool, scoop).
- Improve provider utilities (Kupo BigInt-safe parsing + script fetching; add Cardanoscan provider) and add example CLI scripts/Docker image.
Reviewed changes
Copilot reviewed 41 out of 45 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| turbo.json | Ensure build order includes new DEX/build-tx packages. |
| pnpm-lock.yaml | Lockfile updates for new workspace deps and added packages. |
| packages/wingriders-v2/src/wingriders-v2.ts | Expand Wingriders V2 types (Factory datum/redeemer, pool datum updates, redeemers) and make LP policy/network configurable via warehouse. |
| packages/wingriders-v2/src/warehouse.ts | Add per-network Wingriders V2 script hashes, reference inputs, derived addresses/assets. |
| packages/wingriders-v2/src/utils.ts | Make Asset import type-only. |
| packages/wingriders-v2/src/scripts/preprod-script.json | Add preprod deployed script hashes/bodies config. |
| packages/wingriders-v2/src/scripts/mainnet-script.json | Add mainnet deployed script hashes/bodies config. |
| packages/wingriders-v2/src/index.ts | Export warehouse + utils. |
| packages/tx-builder/src/tx-builder.ts | Add hardCodedTxFee build option. |
| packages/syncer/src/wingriders-v2-syncer.ts | Switch Wingriders V2 syncer to warehouse-based CP request validator hash. |
| packages/sundaeswap-v1/test/sample.test.ts | Add RustModule init and add datum-hash roundtrip/utility tests for V1. |
| packages/sundaeswap-v1/src/warehouse.ts | Add per-network SundaeSwap V1 script/config warehouse (addresses, policies, constants). |
| packages/sundaeswap-v1/src/sundaeswap-v1.ts | Add FactoryDatum + multiple redeemers + small refactors/formatting. |
| packages/sundaeswap-v1/src/index.ts | Export warehouse. |
| packages/provider/src/kupo.ts | Parse Kupo JSON via json-bigint; add script fetching; pass datum/script into Utxo.fromKupo. |
| packages/provider/src/index.ts | Export new Cardanoscan provider entrypoint. |
| packages/provider/src/cardanoscan.ts | Add Cardanoscan REST provider (list txs, submit tx, etc.). |
| packages/provider/package.json | Add json-bigint dependency. |
| packages/minswap-build-tx/test/wingriders-v2.test.ts | Add Wingriders V2 build-tx tests for create-pool and batch. |
| packages/minswap-build-tx/test/sundaeswap-v1.test.ts | Add SundaeSwap V1 build-tx tests for create-pool and scoop-shape assertions. |
| packages/minswap-build-tx/src/wingriders-v2.ts | Implement Wingriders V2 create-pool and batch tx builders using warehouse + datums/redeemers. |
| packages/minswap-build-tx/src/sundaeswap-v1.ts | Implement SundaeSwap V1 create-pool and scoop tx builders using warehouse + datums/redeemers. |
| packages/minswap-build-tx/src/index.ts | Export new build-tx modules. |
| packages/minswap-build-tx/package.json | Add deps on felix-wingriders-v2 and felix-sundaeswap-v1. |
| packages/ledger-core/src/utxo.ts | Extend Utxo.fromKupo to accept script info and populate TxOut scriptRef. |
| packages/ledger-core/src/plutus-script-utils.ts | Add Plutus script encoding/parameter application + script hash helper. |
| packages/ledger-core/src/index.ts | Export plutus-script-utils. |
| Dockerfile.w2 | Add Docker image for running example CLI scripts (tsx entrypoint). |
| biome.json | Add new packages/apps to Biome scope. |
| apps/example/src/w2.ts | Add Wingriders V2 CLI (create-pool, batch, split-agent-token, info) targeting preprod. |
| apps/example/src/tx-info.ts | Add tx-info script to fetch tx CBOR and print decoded JSON. |
| apps/example/src/syncer.ts | Formatting changes and minor cleanup. |
| apps/example/src/s1.ts | Add SundaeSwap V1 CLI (info, create-pool, batch/scoop, split-scooper-token). |
| apps/example/src/kupo.ts | Add a Kupo CLI for health/datum/utxo queries. |
| apps/example/src/fetchMapPools.ts | Adjust imports and helper functions to fetch/update pool maps. |
| apps/example/src/cardanoscan.ts | Formatting changes and minor cleanup. |
| apps/example/package.json | Add dependencies for new example CLIs (tsx, build-tx, cip, wingriders-v2). |
| apps/example/data/sundaeswap-v3-map-pool.json | Fix JSON formatting/trailing brace alignment. |
| apps/example/data/sundaeswap-v1-map-pool.json | Fix JSON formatting/trailing brace alignment. |
| apps/example/data/minswap-dex-v2-map-pool.json | Fix JSON formatting/trailing brace alignment. |
| .claude/commands/tx-info.md | Add a Claude command doc for tx-info script. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.