@exodus/bitcoin-plugin 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -19,12 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@exodus/asset-lib": "^3.7.1",
22
- "@exodus/bitcoin-api": "^2.3.12",
23
- "@exodus/bitcoin-lib": "^2.2.5",
22
+ "@exodus/bitcoin-api": "^2.3.13",
23
+ "@exodus/bitcoin-lib": "^2.2.6",
24
24
  "minimalistic-assert": "^1.0.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@exodus/keychain": "^3.0.0"
28
28
  },
29
- "gitHead": "1fa02f677cba83cce320fd54be227a7a84411d93"
29
+ "gitHead": "f21eede554fe7a0b99f2f65121457ece5d18f2b6"
30
30
  }
@@ -102,6 +102,8 @@ export const createBitcoinAssetFactory = ({ base, apiUrl, coinInfoNetwork }) =>
102
102
 
103
103
  const getBalances = getBalancesFactory({ feeData, getSpendableBalance })
104
104
 
105
+ const accountStateClass = createAccountState({ asset })
106
+
105
107
  const api = {
106
108
  defaultAddressPath: 'm/0/0',
107
109
  broadcastTx: (...args) => insightClient.broadcastTx(...args),
@@ -112,7 +114,7 @@ export const createBitcoinAssetFactory = ({ base, apiUrl, coinInfoNetwork }) =>
112
114
  getBalances,
113
115
  getKeyIdentifier: createGetKeyIdentifier({ bip44 }),
114
116
  hasFeature: (feature) => !!features[feature],
115
- createAccountState: () => createAccountState({ asset: asset }),
117
+ createAccountState: () => accountStateClass,
116
118
  parseUnsignedTx,
117
119
  parseTx: ({ unsignedTx }) => parseUnsignedTx(unsignedTx),
118
120
  signUnsignedTx: (unsignedTx, privateKey, opts) => signTx({ unsignedTx, privateKey, ...opts }), // legacy