Feat/aeternity superhero dex connector - #2
Open
ifaouibadi wants to merge 11 commits into
Open
ifaouibadi wants to merge 11 commits into
ifaouibadi wants to merge 11 commits into
Conversation
ifaouibadi
force-pushed
the
feat/aeternity-superhero-dex-connector
branch
from
March 15, 2026 12:18
a6dda8f to
a7f7cbe
Compare
ifaouibadi
force-pushed
the
feat/aeternity-superhero-dex-connector
branch
from
March 15, 2026 12:21
a7f7cbe to
aaf2f70
Compare
…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
force-pushed
the
feat/aeternity-superhero-dex-connector
branch
from
March 15, 2026 12:22
aaf2f70 to
355af26
Compare
- 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.
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.
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
Tests performed by the developer:
Tips for QA testing: