@exodus/bitcoin-plugin 1.0.9 → 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 +4 -4
- package/src/create-asset.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-plugin",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
23
|
-
"@exodus/bitcoin-lib": "^2.2.
|
|
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": "
|
|
29
|
+
"gitHead": "f21eede554fe7a0b99f2f65121457ece5d18f2b6"
|
|
30
30
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -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: () =>
|
|
117
|
+
createAccountState: () => accountStateClass,
|
|
116
118
|
parseUnsignedTx,
|
|
117
119
|
parseTx: ({ unsignedTx }) => parseUnsignedTx(unsignedTx),
|
|
118
120
|
signUnsignedTx: (unsignedTx, privateKey, opts) => signTx({ unsignedTx, privateKey, ...opts }), // legacy
|