Skip to content

Edge exchange plugin swapter - #455

Open
markovo4 wants to merge 3 commits into
EdgeApp:masterfrom
markovo4:edge-exchange-plugin-swapter
Open

Edge exchange plugin swapter#455
markovo4 wants to merge 3 commits into
EdgeApp:masterfrom
markovo4:edge-exchange-plugin-swapter

Conversation

@markovo4

Copy link
Copy Markdown

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

Added support for the Swapter swap provider, including asset discovery, quote generation, minimum amount checks, and swap creation for fixed and floating rate exchanges.

@j0ntz j0ntz mentioned this pull request Jul 15, 2026
2 tasks
j0ntz added a commit that referenced this pull request Jul 15, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 15, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 15, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 23, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 23, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 28, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
j0ntz added a commit that referenced this pull request Jul 28, 2026
Recreates partner PR #455 (author markovo4) on an EdgeApp branch, rebased
onto master, with the integration brought to current plugin conventions:

- Route quotes through getMaxSwappable so max swaps resolve, using a
  quote-only probe order that prices fees against the user's own refund
  address rather than creating an order that would be abandoned.
- Drop the estimate round trip. Its response was fetched and discarded;
  create returns the authoritative amounts and the probe only needs a
  spendInfo to price fees.
- Correct nine chain mappings against the live /data/coins network list.
  Swapter has renamed several networks since the partner branch was cut
  (ARBITRUM to ARB, OPTIMISM to OP, POLYGON to POL, SOLANA to SOL,
  ETHW to 'ETHEREUM POW'), which silently broke those chains. Bitcoin SV,
  Coreum, FIO and Telos are no longer offered in a form Edge can use, so
  they map to null.
- Regenerate the partnerJson fixture from /data/coins so it reflects
  Swapter's real network identifiers and stays a subset of the mapping.

The partner branch also added a self-referential edge-exchange-plugins
dependency and a TypeScript 6 upgrade; both are dropped as unrelated.
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.

1 participant