Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): add query for listing all transactions #240

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Nov 19, 2024

  1. Configuration menu
    Copy the full SHA
    27794c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. feat(utils): add utility function to construct tx_search endpoint. Ad…

    …ded a function to simplify the creation of
    
    tx_search endpoint URLs. This utility takes the RPC address, query, pagination parameters, and order criteria as input, and returns a
    well-formatted endpoint string.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    0811c45 View commit details
    Browse the repository at this point in the history
  2. feat(types): add height field to TransactionResponse and TxsResponse …

    …struct.
    
    - Added a  field to the  struct to include the block height in transaction details.
    - Introduced a new  struct for wrapping multiple transactions with a total count, enhancing API response consistency.
    
    This change improves the API structure by providing more granular transaction information and supporting batch responses effectively.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    4a6e29a View commit details
    Browse the repository at this point in the history
  3. chore(dependencies): update cosmossdk.io/math to direct dependency.- …

    …Added as a direct dependency in .
    
    - Removed its previous listing as an indirect dependency. This change ensures the  package is explicitly managed, improving dependency clarity and avoiding potential issues with transitive dependency resolution.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    2b01ca5 View commit details
    Browse the repository at this point in the history
  4. feat(tests): enhance transaction test suite and add block height retr…

    …ieval.Updated interx.tx_test.go to use types.TxsResponse instead of TxsResponse for consistency with the types package. Added getBlockHeight function to retrieve block height for a transaction hash from cache or Tendermint. Improved error handling and logging in getBlockHeight.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    e3eeed2 View commit details
    Browse the repository at this point in the history
  5. refactor(database): enhance transaction file path logic and caching b…

    …ehavior. Refactored GetTransactions to simplify file path construction using basePath and suffix. Added a new resolveFileName helper function to centralize file name determination logic. Updated SaveTransactions to use resolveFileName, improving readability and maintainability. Improved conditional handling in SaveTransactions to append cached transactions only when an address is provided. Enhanced error logging with more descriptive messages in SaveTransactions.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    a0ab572 View commit details
    Browse the repository at this point in the history
  6. refactor(interx): improve transaction handling and direction processi…

    …ng.Removed the redundant TxsResponse definition and replaced it with types.TxsResponse for consistency.Refactored GetTransactionsWithSync. Consolidated outbound and inbound logic with improved query construction.Eliminated unnecessary checks for empty addresses.Replaced repetitive endpoint construction with BuildTxSearchEndpoint.
    
    Simplified GetFilteredTransactions.Introduced processDirection to handle direction-specific logic modularly.Removed redundant loops and conditions for processing inbound and outbound transactions.Added processDirection as a reusable function for transaction direction handling.Enhanced QueryBlockTransactionsHandler.Removed redundant address validation.Updated responses to use types.TxsResponse for consistency.Removed the obsolete getBlockHeight function, as it is no longer needed.
    golnar-boosty committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    aaa1a97 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Configuration menu
    Copy the full SHA
    5a2b775 View commit details
    Browse the repository at this point in the history