Skip to content

Feat/aeternity superhero dex connector - #2

Open
ifaouibadi wants to merge 11 commits into
developmentfrom
feat/aeternity-superhero-dex-connector
Open

ifaouibadi wants to merge 11 commits into
developmentfrom
feat/aeternity-superhero-dex-connector

Conversation

@ifaouibadi

Copy link
Copy Markdown

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:

Tests performed by the developer:

Tips for QA testing:

@ifaouibadi
ifaouibadi force-pushed the feat/aeternity-superhero-dex-connector branch from a6dda8f to a7f7cbe Compare March 15, 2026 12:18
@ifaouibadi
ifaouibadi changed the base branch from main to development March 15, 2026 12:20
@ifaouibadi
ifaouibadi force-pushed the feat/aeternity-superhero-dex-connector branch from a7f7cbe to aaf2f70 Compare March 15, 2026 12:21
…uration

- Introduced Aeternity DEX support by adding new routes for balances, polling, and status.
- Created configuration and schema files for Aeternity network settings.
- Implemented Aeternity class for handling SDK interactions and token management.
- Added Superhero DEX connector with necessary contracts and utility functions.
- Updated package.json and pnpm-lock.yaml to include new dependencies for Aeternity SDK and related libraries.
@ifaouibadi
ifaouibadi force-pushed the feat/aeternity-superhero-dex-connector branch from aaf2f70 to 355af26 Compare March 15, 2026 12:22
- Uncommented build section in docker-compose.yml for local builds.
- Updated GATEWAY_PASSPHRASE in docker-compose.yml to 'admin'.
- Modified wallet schemas in schemas.ts to include Aeternity as a supported blockchain in various request and response schemas.
…swap functionality

- Added `getToken` method to retrieve token information for Aeternity.
- Updated various files to include Aeternity as a supported chain in configurations, schemas, and routes.
- Implemented Aeternity swap execution and quote retrieval through the Superhero DEX.
- Enhanced wallet functionality to support Aeternity transactions and address validation.
- Updated error handling for unsupported chains in CLMM and swap operations.
… retrieval

- Implemented `getPoolInfoByAddress` in the Superhero connector to fetch base and quote token addresses along with fee percentage.
- Updated pool-info-helpers to utilize the new method for fetching pool information in Aeternity.
…ess handling

- Modified PoolAddRequestSchema to make baseTokenAddress and quoteTokenAddress optional, allowing for resolution from pool if not provided.
- Updated addPool route to fetch and resolve token addresses and fee percentage when not supplied by the user.
- Introduced a new empty JSON template for pools in superhero.json.
- Added a new function to fetch token information directly from the Aeternity blockchain as a fallback for unsupported chains.
- Updated the existing token fetching logic to utilize the new on-chain method for Aeternity, improving reliability and data accuracy.
- Enhanced error handling for cases where token information is not found on the blockchain.
…ainnet token template

- Implemented functionality to auto-create an empty token list if the specified directory can be safely created, enhancing error handling for missing token lists.
- Added a new JSON template for the Wrapped Aeternity token on the mainnet, including essential token details such as chainId, name, symbol, address, and decimals.
- Integrated middleware support for fetching Aeternity token information, improving reliability by attempting to retrieve data from the middleware before falling back to on-chain methods.
- Updated the fetchAeternityTokenInfo function to handle errors gracefully and log appropriate messages for both middleware and on-chain lookups.
- Ensured that token details are returned correctly, including handling cases where the middleware may not provide all expected data.
…9 tokens

- Added support for automatically discovering AEX-9 token balances via middleware when no specific tokens are provided.
- Implemented error handling and logging for middleware requests to improve reliability in balance retrieval.
- Updated balance fetching logic to accommodate both specified tokens and auto-discovered tokens.
- Introduced a new route for estimating transaction fees on the Aeternity network, providing users with gas fee estimates.
- Enhanced token lookup functionality in both Aeternity and Superhero classes to include retrieval from a saved token list, improving reliability and user experience.
- Updated balance fetching logic to utilize the new token lookup method, ensuring accurate balance retrieval for AEX-9 tokens.
- Updated the poll route to ensure block height is converted to a number for consistency.
- Enhanced transaction data processing by safely converting bigint values to numbers before returning.
- Improved error handling and logging for better debugging of transaction polling.
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