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
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/activity-txs - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

redux/constants/tx-types.js

15

CHANGELOG.md

@@ -6,2 +6,17 @@ # Change Log

## [4.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.0.1...@exodus/activity-txs@4.1.0) (2024-05-13)
### Features
- activity base selector ([#6712](https://github.com/ExodusMovement/exodus-hydra/issues/6712)) ([929a87c](https://github.com/ExodusMovement/exodus-hydra/commit/929a87ce359195aafb177248eed3f0c4fe544452))
- add withFiat selector ([#6766](https://github.com/ExodusMovement/exodus-hydra/issues/6766)) ([10c9aaf](https://github.com/ExodusMovement/exodus-hydra/commit/10c9aaf8e28c2ad13885e4f1c5d8ff6f345d6508))
- connections activity selector ([#6855](https://github.com/ExodusMovement/exodus-hydra/issues/6855)) ([37bc022](https://github.com/ExodusMovement/exodus-hydra/commit/37bc0221be3a6c536b0fbf5f6ee22b06e084667d))
- full activity selector ([#6861](https://github.com/ExodusMovement/exodus-hydra/issues/6861)) ([7d0d168](https://github.com/ExodusMovement/exodus-hydra/commit/7d0d1689c37e14169a24fd73670183c282f0ad41))
- multi activity ([#6870](https://github.com/ExodusMovement/exodus-hydra/issues/6870)) ([7d72596](https://github.com/ExodusMovement/exodus-hydra/commit/7d72596b9718511f5e3ca43f4b36a5890a7b6b76))
- withNfts selectors ([#6765](https://github.com/ExodusMovement/exodus-hydra/issues/6765)) ([1f6d3d6](https://github.com/ExodusMovement/exodus-hydra/commit/1f6d3d668c32b184ca26cdbbb47c418c007ea7a1))
### Bug Fixes
- missing dependencies ([#5322](https://github.com/ExodusMovement/exodus-hydra/issues/5322)) ([01efedc](https://github.com/ExodusMovement/exodus-hydra/commit/01efedc7508fb14925277fdcd388afb721ac3dd1))
## [4.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.0.0...@exodus/activity-txs@4.0.1) (2023-12-20)

@@ -8,0 +23,0 @@

37

package.json
{
"name": "@exodus/activity-txs",
"version": "4.0.1",
"version": "4.1.0",
"description": "The activity-txs feature",
"author": "Exodus Movement Inc.",
"author": "Exodus Movement, Inc.",
"repository": {

@@ -28,13 +28,15 @@ "type": "git",

"scripts": {
"lint": "eslint . --ignore-path ../../.gitignore",
"lint": "run -T eslint . --ignore-path ../../.gitignore",
"lint:fix": "yarn lint --fix",
"test": "jest"
"test": "run -T jest"
},
"dependencies": {
"@exodus/atoms": "^7.0.0",
"@exodus/basic-utils": "^2.1.0",
"@exodus/atoms": "^7.0.5",
"@exodus/basic-utils": "^2.3.0",
"@exodus/core-selectors": "^1.5.0",
"@exodus/models": "^10.1.0",
"@exodus/module": "^1.2.2",
"@exodus/multi-account-redux": "^2.0.1",
"lodash": "^4.17.21",
"minimalistic-assert": "^1.0.1",
"reselect": "^3.0.1"

@@ -45,17 +47,20 @@ },

"@exodus/assets-base": "^8.1.10",
"@exodus/assets-feature": "^4.0.1",
"@exodus/assets-feature": "^5.3.1",
"@exodus/available-assets": "^8.2.0",
"@exodus/bitcoin-plugin": "^1.4.2",
"@exodus/blockchain-metadata": "^15.0.0",
"@exodus/dependency-injection": "^2.1.0",
"@exodus/dependency-preprocessors": "^4.1.0",
"@exodus/models": "^10.1.0",
"@exodus/blockchain-metadata": "^15.3.0",
"@exodus/connected-origins": "^3.3.1",
"@exodus/dependency-injection": "^2.2.0",
"@exodus/dependency-preprocessors": "^5.2.0",
"@exodus/fiat-ramp": "^10.5.0",
"@exodus/nfts": "^9.2.1",
"@exodus/orders": "^4.8.1",
"@exodus/personal-notes": "^3.6.0",
"@exodus/redux-dependency-injection": "^3.0.0",
"@exodus/redux-dependency-injection": "^3.1.0",
"@exodus/storage-memory": "^2.1.1",
"@exodus/wallet-accounts": "^15.0.0",
"eslint": "^8.44.0",
"jest": "^29.1.2",
"@exodus/wallet-accounts": "^16.4.0",
"@types/minimalistic-assert": "^1.0.1",
"redux": "^4.2.1"
},
"gitHead": "f9da7e1a0be705cb2faace4af6ea2b4a69b4fd0f"
"gitHead": "345159fcb1012fc873ba5ecc24880d5c54700d0b"
}
# @exodus/activity-txs
Activity consists of a set of asset transactions that are transformed using `asset.api.getActivityTxs`
which returns Array of Tx [models](https://github.com/ExodusMovement/exodus-core/blob/cdff25bb962b2301613588c615c5ac09b05f260a/packages/models/src/tx/index.js#L10): `[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())
`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, ...]`
import createLimitedAssetSourceSelectorDefinition from './create-limited-asset-source'
import createBatchedAssetSourceSelector from './create-batched-asset-source'
import createBatchedAssetSourceActivityByIdSelector from './create-batched-asset-source-by-id'
import createAssetSourceBaseActivitySelectorDefinition from './create-asset-source-base-activity'
import createWithNftsActivitySelectorDefinition from './create-with-nfts-activity'
import createWithFiatActivitySelectorDefinition from './create-with-fiat-activity'
import createWithConnectionsActivitySelectorDefinition from './create-with-connections-activity'
import createFullActivitySelectorDefinition from './create-full-activity'
import createMultiActivitySelectorDefinition from './create-multi-activity'

@@ -9,2 +15,8 @@ export default [

createBatchedAssetSourceActivityByIdSelector,
createAssetSourceBaseActivitySelectorDefinition,
createWithNftsActivitySelectorDefinition,
createWithFiatActivitySelectorDefinition,
createWithConnectionsActivitySelectorDefinition,
createFullActivitySelectorDefinition,
createMultiActivitySelectorDefinition,
]
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