New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@exodus/balances

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/balances - npm Package Compare versions

Comparing version 12.0.1 to 12.1.0

atoms/funded-wallet-accounts.js

8

atoms/index.js
import createBalancesAtom from './balances'
import createFundedWalletAccountsAtom from './funded-wallet-accounts'
import createHasBalanceAtom from './has-balance'

@@ -17,1 +18,8 @@

}
export const fundedWalletAccountsAtomDefinition = {
id: 'fundedWalletAccountsAtom',
type: 'atom',
factory: createFundedWalletAccountsAtom,
dependencies: ['balancesAtom', 'enabledWalletAccountsAtom'],
}

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

## [12.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@12.0.1...@exodus/balances@12.1.0) (2023-12-14)
### Features
- **balances:** funded wallet accounts atom ([#5074](https://github.com/ExodusMovement/exodus-hydra/issues/5074)) ([dc98436](https://github.com/ExodusMovement/exodus-hydra/commit/dc98436d5f8bbade4ceab85af60455ac3b4efa49))
- remove storing oldBalances in balances atoms ([#5073](https://github.com/ExodusMovement/exodus-hydra/issues/5073)) ([414db86](https://github.com/ExodusMovement/exodus-hydra/commit/414db866a86aaf3242e68698596af187da6927c3))
## [12.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/balances@12.0.0...@exodus/balances@12.0.1) (2023-12-12)

@@ -8,0 +15,0 @@

10

index.js
import balancesDefinition from './module'
import { balancesAtomDefinition, hasBalanceAtomDefinition } from './atoms'
import {
balancesAtomDefinition,
hasBalanceAtomDefinition,
fundedWalletAccountsAtomDefinition,
} from './atoms'
import balancesReportDefinition from './report'

@@ -21,3 +25,2 @@ import balancesPluginDefinition from './plugins'

definition: balancesDefinition,
writesAtoms: ['balancesAtom'],
config,

@@ -31,4 +34,5 @@ },

},
{ definition: fundedWalletAccountsAtomDefinition },
{ definition: balancesReportDefinition },
{ definition: balancesPluginDefinition, writesAtoms: ['hasBalanceAtom'] },
{ definition: balancesPluginDefinition },
],

@@ -35,0 +39,0 @@ }

@@ -29,3 +29,2 @@ import { isNumberUnit } from '@exodus/currency'

#oldBalances = Object.create(null)
#balances = Object.create(null)

@@ -379,3 +378,2 @@ #balancesAtom

#flush = ({ changes } = {}) => {
const oldBalances = this.#oldBalances
const balances = cloneBalances(this.#balances)

@@ -386,9 +384,3 @@

this._logger.log('balances updated')
this.#balancesAtom.set({
balances,
oldBalances,
changes,
})
this.#oldBalances = balances
this.#balancesAtom.set({ balances, changes })
}

@@ -395,0 +387,0 @@

{
"name": "@exodus/balances",
"version": "12.0.1",
"version": "12.1.0",
"description": "Tracks crypto balances across enabled wallet accounts.",

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

"@exodus/assets-base": "^8.1.10",
"@exodus/assets-feature": "^4.0.0",
"@exodus/assets-feature": "^4.0.1",
"@exodus/bitcoin-meta": "^1.0.1",

@@ -62,3 +62,3 @@ "@exodus/blockchain-metadata": "^9.0.1",

},
"gitHead": "be0d353e5d42bd166526ac72d256b2b4c7de36a9"
"gitHead": "b2cc53c628d9cdb2e4a25557f72b88ec05c75e14"
}

@@ -33,4 +33,4 @@ # @exodus/balances

balances.on('balances', ({ balances, oldBalances, changes }) => {
// `balances`, `oldBalances`
balances.on('balances', ({ balances, changes }) => {
// `balances`
// {

@@ -37,0 +37,0 @@ // [walletAccount]: {

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