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 3.2.1 to 4.0.0

34

atoms/activity-txs.js

@@ -11,9 +11,9 @@ import { combine, compute } from '@exodus/atoms'

(args) => args.txs,
(args) => args.baseAssetAccountState,
(args) => args.activityOptions,
(args) => args.asset,
(txs, baseAssetAccountState, asset) =>
(txs, activityOptions, asset) =>
asset.api.getActivityTxs({
txs,
asset,
accountState: baseAssetAccountState,
options: activityOptions,
})

@@ -24,2 +24,15 @@ ),

const createAssetSourceActivityOptionsSelector = memoize(
({ assetName, walletAccount }) =>
createDeepEqualOutputSelector(
(args) => args.accountState,
(args) => args.asset,
(accountState, asset) =>
asset.api.getActivityOptions({
accountState,
})
),
({ assetName, walletAccount }) => `${assetName}_${walletAccount}`
)
const createAssetSourceTxsSelector = memoize(

@@ -100,2 +113,15 @@ ({ assetName, walletAccount }) =>

if (asset?.api?.getActivityTxs) {
let activityOptions
if (asset?.api?.getActivityOptions) {
const baseAssetAccountState = accountStatesValue?.[walletAccount]?.[baseAssetName]
activityOptions = createAssetSourceActivityOptionsSelector({
assetName,
walletAccount,
})({
accountState: baseAssetAccountState,
asset,
})
}
return createAssetSourceActivityTxsSelector({ assetName, walletAccount })({

@@ -106,3 +132,3 @@ asset,

}),
baseAssetAccountState: accountStatesValue?.[walletAccount]?.[baseAssetName],
activityOptions,
})

@@ -109,0 +135,0 @@ }

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

## [4.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@3.2.1...@exodus/activity-txs@4.0.0) (2023-12-18)
### ⚠ BREAKING CHANGES
- pre-calc activity options (#5121)
### Features
- pre-calc activity options ([#5121](https://github.com/ExodusMovement/exodus-hydra/issues/5121)) ([cc3a906](https://github.com/ExodusMovement/exodus-hydra/commit/cc3a906e77b1f1c05d297efcb9aa0ba7eae6d5ca))
## [3.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@3.2.0...@exodus/activity-txs@3.2.1) (2023-12-18)

@@ -8,0 +18,0 @@

4

package.json
{
"name": "@exodus/activity-txs",
"version": "3.2.1",
"version": "4.0.0",
"description": "The activity-txs feature",

@@ -58,3 +58,3 @@ "author": "Exodus Movement Inc.",

},
"gitHead": "d59906035f7209f175274e5864fdc62a38b5a2fe"
"gitHead": "182ee0ccc51c52b6dcbc0da97523ee9d0740aa0a"
}
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