Skip to content

Forwarder-blind + DEX interactor#2315

Merged
andrei-marinica merged 12 commits intomasterfrom
dex-interactor
Mar 25, 2026
Merged

Forwarder-blind + DEX interactor#2315
andrei-marinica merged 12 commits intomasterfrom
dex-interactor

Conversation

@andrei-marinica
Copy link
Contributor

@andrei-marinica andrei-marinica commented Mar 24, 2026

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-interactor CLI crate (with generated proxies) to demonstrate direct and forwarded DEX pair interactions.
  • Update forwarder-blind call-type endpoints to accept a FunctionCall payload and expose the drain endpoint in WASM exports.
  • Add Display implementations for Payment / EsdtTokenPayment and update shard wallet selection APIs to use ShardId.

@github-actions
Copy link

github-actions bot commented Mar 24, 2026

Contract comparison - from 365111f to b71ad02

Path                                                                                             size                  has-allocator                     has-format
large-storage.wasm 1656 false None
vec-repeat.wasm 4872 false None
single-value-repeat.wasm 4253 false None
queue-repeat.wasm 5536 false None
linked-list-repeat.wasm 6838 false without message
map-repeat.wasm 7363 false without message
set-repeat.wasm 6511 false None
str-repeat.wasm 2733 false without message
str-repeat-mb-builder-cached.wasm 1109 false without message
str-repeat-mb-builder-basic.wasm 757 false None
send-tx-repeat.wasm 1292 false None
recursive-caller.wasm 5163 false without message
local-esdt-and-nft.wasm 12568 false without message
forwarder-raw-init-async-call.wasm 2374 false None
forwarder-raw-init-sync-call.wasm 2958 false None
forwarder-raw.wasm 13081 false None
vault-upgrade.wasm 708 false None
vault.wasm 8950 false None
forwarder.wasm 49004 false without message
proxy-test-second.wasm 2332 false without message
parent.wasm 1999 false None
child.wasm 3982 false without message
transfer-role-features.wasm 8605 false without message
first-contract.wasm 3450 false None
second-contract.wasm 1158 false None
forwarder-blind.wasm 13978 ➡️ 14134 🔴 (+156) false without message
proxy-test-first.wasm 5707 false without message
mesh-node.wasm 16046 false without message
builtin-func-features.wasm 3828 false None
forwarder-legacy.wasm 33620 false without message
basic-features-small-int-bug.wasm 824 false None
basic-features.wasm 85948 false without message
basic-features-storage-bytes.wasm 541 false None
abi-tester.wasm 8607 true without message
abi-tester-ev.wasm 760 false None
rust-snippets-generator-test.wasm 4708 false None
formatted-message-features.wasm 3613 false without message
use-module-view.wasm 736 false None
use-module.wasm 32477 false without message
payable-features.wasm 6046 false None
exchange-features.wasm 1514 false None
forbidden-opcodes.wasm 842 false None
scenario-tester.wasm 1374 false None
std-contract.wasm 3469 true without message
big-float-features.wasm 6373 false without message
rust-testing-framework-tester.wasm 8552 false None
multi-contract-alt-impl.wasm 353 false None
multi-contract-features.wasm 681 false None
multi-contract-example-feature.wasm 680 false None
multi-contract-features-view.wasm 1113 false None
panic-message-features.wasm 13030 false with message
panic-message-std.wasm 16073 false with message
erc1155-user-mock.wasm 1229 false None
lottery-erc20.wasm 12886 false without message
erc721.wasm 2232 false None
crowdfunding-erc20.wasm 4909 false without message
erc1155-marketplace.wasm 10602 false without message
erc1155.wasm 12016 false without message
erc20.wasm 1887 false None
esdt-system-sc-mock.wasm 4556 false None
alloc-features.wasm 23260 false without message
alloc-mem-fail.wasm 17812 true without message
alloc-mem-leaking.wasm 23417 false without message
multiversx-wegld-swap-sc.wasm 4265 false None
multiversx-price-aggregator-sc.wasm 17904 false without message
ping-pong-egld.wasm 6397 false None
multisig-full.wasm 15128 false without message
multisig-view.wasm 5590 false None
multisig.wasm 13617 false without message
bonding-curve-contract.wasm 14067 false None
kitty-genetic-alg.wasm 3494 false without message
kitty-auction.wasm 9389 false without message
kitty-ownership.wasm 12965 false without message
check-pause.wasm 1260 false None
digital-cash.wasm 9736 false None
fractional-nfts.wasm 8302 false without message
adder.wasm 699 false None
order-book-pair.wasm 14099 false None
order-book-factory.wasm 3401 false None
empty.wasm 244 false None
esdt-transfer-with-fee.wasm 7505 false without message
nft-subscription.wasm 8725 false without message
proxy-pause.wasm 4165 false None
seed-nft-minter.wasm 14189 false without message
crowdfunding.wasm 3574 false None
nft-storage-prepay.wasm 2609 false None
crypto-bubbles.wasm 2561 false None
crypto-zombies.wasm 9282 false without message
nft-minter.wasm 9726 false without message
lottery-esdt.wasm 10580 false without message
factorial.wasm 579 false None
rewards-distribution.wasm 9445 false without message
token-release.wasm 6978 false without message

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-interactor CLI crate (with generated proxies) to demonstrate direct and forwarded DEX pair interactions.
  • Update forwarder-blind call-type endpoints to accept a FunctionCall payload and expose the drain endpoint in WASM exports.
  • Add Display implementations for Payment / EsdtTokenPayment and update shard wallet selection APIs to use ShardId.

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.

@andrei-marinica andrei-marinica marked this pull request as ready for review March 25, 2026 01:05
@andrei-marinica andrei-marinica merged commit 1d654c7 into master Mar 25, 2026
26 of 27 checks passed
@andrei-marinica andrei-marinica deleted the dex-interactor branch March 25, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants