Forwarder-blind + DEX interactor#2315
Merged
andrei-marinica merged 12 commits intomasterfrom Mar 25, 2026
Merged
Conversation
|
Contract comparison - from 365111f to b71ad02
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the composability feature-tests around forwarder-blind by adding a DEX-focused CLI interactor and aligning the forwarder’s “blind” endpoints around FunctionCall, plus a few supporting SDK/framework ergonomics and docs.
Changes:
- Add a new
forwarder-blind-dex-interactorCLI crate (with generated proxies) to demonstrate direct and forwarded DEX pair interactions. - Update
forwarder-blindcall-type endpoints to accept aFunctionCallpayload and expose thedrainendpoint in WASM exports. - Add
Displayimplementations forPayment/EsdtTokenPaymentand update shard wallet selection APIs to useShardId.
Reviewed changes
Copilot reviewed 29 out of 31 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/core/src/test_wallets.rs | Change for_shard helper to take ShardId. |
| framework/base/src/types/managed/wrapped/token/payment.rs | Add Display for Payment (alloc-gated). |
| framework/base/src/types/managed/wrapped/token/esdt_token_payment.rs | Add Display for EsdtTokenPayment (alloc-gated). |
| contracts/feature-tests/composability/wasm/src/lib.rs | Switch WASM adapter exports to forwarder_blind endpoints (incl. drain). |
| contracts/feature-tests/composability/wasm/Cargo.toml | Rename WASM package to forwarder-blind-wasm. |
| contracts/feature-tests/composability/mesh-interactor/src/mesh_interact_controller.rs | Update shard-wallet registration to use ShardId. |
| contracts/feature-tests/composability/forwarder-blind/wasm/src/lib.rs | Export drain endpoint in forwarder-blind WASM adapter. |
| contracts/feature-tests/composability/forwarder-blind/src/fwd_blind_transf_exec.rs | Switch transfer-execute forwarding to FunctionCall. |
| contracts/feature-tests/composability/forwarder-blind/src/fwd_blind_sync.rs | Switch sync/sync-fallible forwarding to FunctionCall. |
| contracts/feature-tests/composability/forwarder-blind/src/fwd_blind_async_v2.rs | Switch async v2 forwarding to FunctionCall. |
| contracts/feature-tests/composability/forwarder-blind/src/fwd_blind_async_v1.rs | Switch async v1 forwarding to FunctionCall. |
| contracts/feature-tests/composability/forwarder-blind/sc-config.toml | Configure proxy generation output for the new forwarder-blind proxy. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/state.toml | Persisted interactor state (contract address). |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/state.rs | State load/save support for the DEX interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/proxies/wegld_proxy.rs | Generated WEGLD swap proxy used by the interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/proxies/pair_proxy.rs | Generated DEX pair proxy used by the interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/proxies/forwarder_blind_proxy.rs | Generated forwarder-blind proxy used by the interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/proxies.rs | Module wiring for generated proxies. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interactor_main.rs | Binary entrypoint for the DEX interactor CLI. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interact_cli.rs | Clap CLI definitions (commands/options). |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interact.rs | Main CLI logic for deploy/wrap/swap/get-rate/get-liquidity/drain. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/config.rs | TOML config parsing for gateway/addresses/token IDs. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/config.toml | Default config values for running the interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/README.md | Usage docs for the new DEX interactor. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/Cargo.toml | New interactor crate manifest. |
| contracts/feature-tests/composability/forwarder-blind/dex-interactor/.gitignore | Ignore PEM keys for interactions. |
| contracts/feature-tests/composability/forwarder-blind/README.md | Document drain and update scenario list (needs dedup). |
| contracts/core/wegld-swap/sc-config.toml | Add proxy generation output path for the interactor’s WEGLD proxy. |
| contracts/core/wegld-swap/README.md | Document mainnet WEGLD swap deployments per shard. |
| Cargo.toml | Add the DEX interactor crate to workspace members. |
| Cargo.lock | Lockfile updates for the new workspace package. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interact.rs
Show resolved
Hide resolved
contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interact.rs
Show resolved
Hide resolved
contracts/feature-tests/composability/forwarder-blind/dex-interactor/src/interact.rs
Show resolved
Hide resolved
contracts/feature-tests/composability/forwarder-blind/dex-interactor/config.toml
Show resolved
Hide resolved
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.
Pull request overview
This PR extends the composability feature-tests around
forwarder-blindby adding a DEX-focused CLI interactor and aligning the forwarder’s “blind” endpoints aroundFunctionCall, plus a few supporting SDK/framework ergonomics and docs.Changes:
forwarder-blind-dex-interactorCLI crate (with generated proxies) to demonstrate direct and forwarded DEX pair interactions.forwarder-blindcall-type endpoints to accept aFunctionCallpayload and expose thedrainendpoint in WASM exports.Displayimplementations forPayment/EsdtTokenPaymentand update shard wallet selection APIs to useShardId.