@dynamic-labs/bitcoin 4.0.0-alpha.0 → 4.0.0-alpha.2
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v4.0.0-alpha.1...v4.0.0-alpha.2) (2024-09-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add iconVariant prop to DynamicBridgeWidget ([#6915](https://github.com/dynamic-labs/DynamicAuth/issues/6915)) ([8aa0f3d](https://github.com/dynamic-labs/DynamicAuth/commit/8aa0f3d8d8c41c7b5c4796106f611f208010cb6d))
|
|
8
|
+
* allow to create extra embedded wallets in react-native ([#6923](https://github.com/dynamic-labs/DynamicAuth/issues/6923)) ([ba22f7b](https://github.com/dynamic-labs/DynamicAuth/commit/ba22f7bcf41a444a4df0aff9b6aec257457e9402))
|
|
9
|
+
* **client:** add hide method for auth and userProfile ui modules ([#6928](https://github.com/dynamic-labs/DynamicAuth/issues/6928)) ([a11a4a5](https://github.com/dynamic-labs/DynamicAuth/commit/a11a4a5d6e25ce2a916ebd52f0b341020dc1a7e5))
|
|
10
|
+
|
|
11
|
+
## [4.0.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v4.0.0-alpha.0...v4.0.0-alpha.1) (2024-09-17)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* blockaid website scanning for global connectivity ([#6874](https://github.com/dynamic-labs/DynamicAuth/issues/6874)) ([f8cbabd](https://github.com/dynamic-labs/DynamicAuth/commit/f8cbabd92fd4b5b096f47ff8e24c572ad7720dd8))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* deeplinking on ethereum and bitcoin sats connector ([#6917](https://github.com/dynamic-labs/DynamicAuth/issues/6917)) ([3896c3a](https://github.com/dynamic-labs/DynamicAuth/commit/3896c3a97819459da74dc5b4771796d7991c1f07))
|
|
22
|
+
* emit walletAdded event when createEmbeddedWalletAccount called ([#6922](https://github.com/dynamic-labs/DynamicAuth/issues/6922)) ([2a8bdd6](https://github.com/dynamic-labs/DynamicAuth/commit/2a8bdd68c50efd946c6f9b398dfae2b3585db34f))
|
|
23
|
+
* interface for sendBitcoin on unisat ([37a1bc2](https://github.com/dynamic-labs/DynamicAuth/commit/37a1bc216f43eef817c40e23b9161327f9d29c59))
|
|
24
|
+
* remove ballet crypto and duplicate keplr entry ([#6906](https://github.com/dynamic-labs/DynamicAuth/issues/6906)) ([14aeeea](https://github.com/dynamic-labs/DynamicAuth/commit/14aeeeaa8d906344f4aeddf9e73527df346b9ea0))
|
|
25
|
+
* solana and cosmos signers not working properly ([#6898](https://github.com/dynamic-labs/DynamicAuth/issues/6898)) ([6f07981](https://github.com/dynamic-labs/DynamicAuth/commit/6f079811c0d7e45b97d2dae72f4141268ab4fe0c))
|
|
26
|
+
|
|
2
27
|
## [4.0.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0...v4.0.0-alpha.0) (2024-09-13)
|
|
3
28
|
|
|
4
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/bitcoin",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@btckit/types": "0.0.19",
|
|
30
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
30
|
+
"@dynamic-labs/sdk-api-core": "0.0.530",
|
|
31
31
|
"@wallet-standard/app": "1.0.1",
|
|
32
32
|
"@wallet-standard/base": "1.0.1",
|
|
33
33
|
"bitcoinjs-lib": "6.1.5",
|
|
34
34
|
"sats-connect": "2.8.0",
|
|
35
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
36
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
37
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
38
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
35
|
+
"@dynamic-labs/types": "4.0.0-alpha.2",
|
|
36
|
+
"@dynamic-labs/utils": "4.0.0-alpha.2",
|
|
37
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.2",
|
|
38
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.2",
|
|
39
39
|
"stream": "0.0.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {}
|
|
@@ -50,7 +50,7 @@ class UnisatConnector extends BitcoinWalletConnector.BitcoinWalletConnector {
|
|
|
50
50
|
if (!connectedAddress || !provider) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
return provider.sendBitcoin(transaction.recipientAddress, transaction.amount
|
|
53
|
+
return provider.sendBitcoin(transaction.recipientAddress, Number(transaction.amount));
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
signPsbt(request) {
|
|
@@ -46,7 +46,7 @@ class UnisatConnector extends BitcoinWalletConnector {
|
|
|
46
46
|
if (!connectedAddress || !provider) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
return provider.sendBitcoin(transaction.recipientAddress, transaction.amount
|
|
49
|
+
return provider.sendBitcoin(transaction.recipientAddress, Number(transaction.amount));
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
signPsbt(request) {
|
|
@@ -3,22 +3,27 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
6
7
|
var _const = require('../const.cjs');
|
|
7
8
|
require('@dynamic-labs/utils');
|
|
8
9
|
require('../../_virtual/_tslib.cjs');
|
|
9
10
|
require('sats-connect');
|
|
10
11
|
require('bitcoinjs-lib');
|
|
11
12
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
require('@dynamic-labs/wallet-book');
|
|
13
13
|
require('@dynamic-labs/sdk-api-core');
|
|
14
14
|
require('@wallet-standard/app');
|
|
15
15
|
var hasSatsConnectFeature = require('./hasSatsConnectFeature.cjs');
|
|
16
16
|
|
|
17
17
|
const supportsSatsConnect = (connector) => {
|
|
18
|
+
var _a, _b, _c, _d;
|
|
18
19
|
if (connector.key === _const.XVERSE_KEY) {
|
|
19
20
|
return true;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
// Grabbing the wallet standard from the fallback wallet
|
|
23
|
+
// due to wallet standard not being available on mobile
|
|
24
|
+
const fallbackWalletWalletStandard = (_c = (_b = (_a = walletBook.findWalletBookWallet(connector.walletBook, connector.key)) === null || _a === void 0 ? void 0 : _a.injectedConfig) === null || _b === void 0 ? void 0 : _b.find((config) => config.chain === 'btc')) === null || _c === void 0 ? void 0 : _c.walletStandard;
|
|
25
|
+
if ((connector.wallet && hasSatsConnectFeature.hasSatsConnectFeature(connector.wallet.features)) ||
|
|
26
|
+
((_d = fallbackWalletWalletStandard === null || fallbackWalletWalletStandard === void 0 ? void 0 : fallbackWalletWalletStandard.features) === null || _d === void 0 ? void 0 : _d.includes(_const.SATSCONNECT_FEATURE))) {
|
|
22
27
|
return true;
|
|
23
28
|
}
|
|
24
29
|
return false;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
|
+
import { XVERSE_KEY, SATSCONNECT_FEATURE } from '../const.js';
|
|
3
4
|
import '@dynamic-labs/utils';
|
|
4
5
|
import '../../_virtual/_tslib.js';
|
|
5
6
|
import 'sats-connect';
|
|
6
7
|
import 'bitcoinjs-lib';
|
|
7
8
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import '@dynamic-labs/wallet-book';
|
|
9
9
|
import '@dynamic-labs/sdk-api-core';
|
|
10
10
|
import '@wallet-standard/app';
|
|
11
11
|
import { hasSatsConnectFeature } from './hasSatsConnectFeature.js';
|
|
12
12
|
|
|
13
13
|
const supportsSatsConnect = (connector) => {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
14
15
|
if (connector.key === XVERSE_KEY) {
|
|
15
16
|
return true;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
// Grabbing the wallet standard from the fallback wallet
|
|
19
|
+
// due to wallet standard not being available on mobile
|
|
20
|
+
const fallbackWalletWalletStandard = (_c = (_b = (_a = findWalletBookWallet(connector.walletBook, connector.key)) === null || _a === void 0 ? void 0 : _a.injectedConfig) === null || _b === void 0 ? void 0 : _b.find((config) => config.chain === 'btc')) === null || _c === void 0 ? void 0 : _c.walletStandard;
|
|
21
|
+
if ((connector.wallet && hasSatsConnectFeature(connector.wallet.features)) ||
|
|
22
|
+
((_d = fallbackWalletWalletStandard === null || fallbackWalletWalletStandard === void 0 ? void 0 : fallbackWalletWalletStandard.features) === null || _d === void 0 ? void 0 : _d.includes(SATSCONNECT_FEATURE))) {
|
|
18
23
|
return true;
|
|
19
24
|
}
|
|
20
25
|
return false;
|