Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/activity-txs

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/activity-txs

The activity-txs feature

  • 4.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
501
decreased by-46.59%
Maintainers
0
Weekly downloads
 
Created
Source

@exodus/activity-txs

Activity consists of a set of asset transactions that are transformed using asset.api.getActivityTxs which returns Array of Tx models: [Tx, Tx, Tx] Most of the assets don't have this api and simply return original txs. An example of this transformation is combining bitcoin batched transactions into a single activity item, instead of multiple Txs you get single Tx with adjusted coinAmount. These are utilized in the UI to display transaction history.

This feature introduces atoms with activity items generated from txLog and accountState. It provides an efficient way to store them by wallet accounts and to update this extensive object while avoiding unnecessary re-computations. Additionally, it offers extra redux selectors to retrieve activity limited by size or batched activity items.

Usage

ioc.use(activityTxs())

selector example to get batched activity for specific asset from specific account: selectors.activityTxs.createBatchedAssetSourceSelector({ assetName, walletAccount }) return array of txs [Tx, Tx, ...]

FAQs

Package last updated on 11 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc