Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@exodus/activity-txs
Advanced tools
This feature generates user-friendly activity from transactions, orders, fiat orders, NFTs, and connections by grouping, batching, and formatting them.
Each asset’s activity consists of a set of transactions transformed using asset.api.getActivityTxs
, which returns an array of Tx models: [Tx, Tx, Tx]
.
Most assets don't have this API and simply return the original transactions.
For example, Bitcoin batched transactions are combined into a single activity item. Instead of multiple transactions (Txs), you get a single transaction with a summarized coinAmount
.
This feature introduces atoms with activity items generated from txLog
and accountState
. It provides an efficient way to store these items by wallet accounts and 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. These selectors format activity depending on its type: NFTs (if the nfts
module is integrated), fiat orders (if the fiat module is integrated), and swap orders (if the orders feature is integrated).
This feature is designed to be used together with @exodus/headless
. See Using the SDK for more details.
The feature doesn't have a public API. Data is transformed automatically, stored in activityTxsAtom
, and emitted to be stored in the Redux state.
Open the playground at https://exodus-hydra.pages.dev/features/activity-txs
Run the following command in the Dev Tools Console to see activity for Bitcoin:
selectors.activityTxs.createFullActivity({
nftsNetworkNameToAssetName: { fantom: 'fantommainnet' },
})({ assetName: 'bitcoin', walletAccount: 'exodus_0' })(store.getState())
run the following command in the Dev Tools Console to see activity for Bitcoin and Ethereum together:
selectors.activityTxs.createMultiActivity({
createAssetSourceActivitySelector: selectors.activityTxs.createFullActivity({
nftsNetworkNameToAssetName: { fantom: 'fantommainnet' },
}),
})({ assetNames: ['bitcoin', 'ethereum'], walletAccounts: ['exodus_0', 'exodus_1'] })(
store.getState()
)
selectors.activityTxs
. See example usage in tests.See using the sdk for more details on basic UI-side setup.
import selectors from '~/ui/flux/selectors'
const fullAssetSourceActivitySelector = selectors.activityTxs.createFullActivity({
nftsNetworkNameToAssetName: { fantom: 'fantommainnet' },
})
const MyComponent = () => {
const bitcoinActivity = useSelector(
fullAssetSourceActivitySelector({ assetName: 'bitcoin', walletAccount: 'exodus_0' })
)
return bitcoinActivity.map((activityItem) => (
<Text>
{activityItem.assetName} : {activityItem.displayAmount}
</Text>
))
}
FAQs
The activity-txs feature
The npm package @exodus/activity-txs receives a total of 738 weekly downloads. As such, @exodus/activity-txs popularity was classified as not popular.
We found that @exodus/activity-txs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.