@exodus/address-provider
Advanced tools
Comparing version
@@ -6,2 +6,8 @@ # Change Log | ||
## [6.1.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/address-provider@6.1.2...@exodus/address-provider@6.1.3) (2023-08-02) | ||
### Bug Fixes | ||
- address cache/provider returning pojo instead of Address instance ([#3103](https://github.com/ExodusMovement/exodus-hydra/issues/3103)) ([1aad3b1](https://github.com/ExodusMovement/exodus-hydra/commit/1aad3b178ff5955bf0d0d1151607dfaed6cb4904)) | ||
## [6.1.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/address-provider@6.1.1...@exodus/address-provider@6.1.2) (2023-07-18) | ||
@@ -8,0 +14,0 @@ |
@@ -44,2 +44,3 @@ import addressCacheMemoryModuleDefinition from '@exodus/address-cache/module/memory' | ||
...legacyFlags, | ||
purpose, | ||
}) | ||
@@ -46,0 +47,0 @@ } |
@@ -57,4 +57,8 @@ import { Address, AddressSet, WalletAccount } from '@exodus/models' | ||
: undefined | ||
if (cached) return cached | ||
if (cached) { | ||
if (cached instanceof Address) return cached | ||
return Address.fromJSON(cached) | ||
} | ||
const { publicKey } = await this.#keychain.exportKey(keyId) | ||
@@ -67,2 +71,3 @@ const encodedPublicKey = asset.keys.encodePublic(publicKey, { purpose }) | ||
...legacyFlags, | ||
purpose, | ||
}) | ||
@@ -69,0 +74,0 @@ |
@@ -17,2 +17,3 @@ import { memoize } from 'lodash' | ||
} | ||
return 44 | ||
@@ -19,0 +20,0 @@ } |
@@ -112,3 +112,6 @@ import typeforce from '@exodus/typeforce' | ||
: undefined | ||
if (cached) return cached | ||
if (cached) { | ||
if (cached instanceof Address) return cached | ||
return Address.fromJSON(cached) | ||
} | ||
@@ -115,0 +118,0 @@ const publicKey = account.publicKey ?? account.hdkey.derive(path).publicKey |
@@ -37,4 +37,6 @@ import { AddressSet } from '@exodus/models' | ||
} | ||
return null | ||
} | ||
export const getAddressesFromTxLog = ({ asset, txLog }) => { | ||
@@ -41,0 +43,0 @@ const changeAddresses = AddressSet.fromArray( |
{ | ||
"name": "@exodus/address-provider", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "Address provider for deriving and tracking used and unused addresses.", | ||
@@ -28,4 +28,4 @@ "author": "Exodus Movement Inc.", | ||
"dependencies": { | ||
"@exodus/address-cache": "^2.0.1", | ||
"@exodus/atoms": "^5.2.1", | ||
"@exodus/address-cache": "^2.0.2", | ||
"@exodus/atoms": "^5.4.0", | ||
"@exodus/basic-utils": "^2.0.1", | ||
@@ -50,3 +50,3 @@ "@exodus/key-identifier-provider": "^1.2.0", | ||
"@exodus/bitcoin-plugin": "^1.0.3", | ||
"@exodus/blockchain-metadata": "^9.0.0", | ||
"@exodus/blockchain-metadata": "^11.1.0", | ||
"@exodus/cardano-lib": "^1.4.0", | ||
@@ -63,3 +63,3 @@ "@exodus/dogecoin-plugin": "^1.0.1", | ||
}, | ||
"gitHead": "01a25f508a06b858b7ee03a14c68183cc1e6bad8" | ||
"gitHead": "25e399d380b03cf464870513d05f5722d3f7f50a" | ||
} |
46308
1.33%937
0.86%Updated
Updated