@dynamic-labs/bitcoin 4.0.0-alpha.45 → 4.0.0-alpha.47

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,32 @@
1
1
 
2
+ ## [4.0.0-alpha.47](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.46...v4.0.0-alpha.47) (2024-12-17)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * stop exposing authToken and minAuthToken from dynamic context (#7629)
8
+
9
+ ### Bug Fixes
10
+
11
+ * allow re-linking unknown wallet when there's another account of the same wallet provider already linked ([#7628](https://github.com/dynamic-labs/dynamic-auth/issues/7628)) ([20c6dc3](https://github.com/dynamic-labs/dynamic-auth/commit/20c6dc3b1847d82bd46f0df5abaef4efe1e24e38))
12
+ * ensure wallet connector will not get removed ([#7625](https://github.com/dynamic-labs/dynamic-auth/issues/7625)) ([b764846](https://github.com/dynamic-labs/dynamic-auth/commit/b764846b56428e2997d33858e29a87f44359eb6c))
13
+
14
+
15
+ * stop exposing authToken and minAuthToken from dynamic context ([#7629](https://github.com/dynamic-labs/dynamic-auth/issues/7629)) ([9648870](https://github.com/dynamic-labs/dynamic-auth/commit/9648870478cdcecde279117ada2a1095dab54e2c))
16
+
17
+ ## [4.0.0-alpha.46](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.45...v4.0.0-alpha.46) (2024-12-17)
18
+
19
+
20
+ ### Features
21
+
22
+ * **GVTY-2484:** add subdomain handle field ([#7613](https://github.com/dynamic-labs/dynamic-auth/issues/7613)) ([ee8df3b](https://github.com/dynamic-labs/dynamic-auth/commit/ee8df3b34fa9fed96d92d0b414334c370c9791bc))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * increase wait for transactions ([#7624](https://github.com/dynamic-labs/dynamic-auth/issues/7624)) ([2f7f01b](https://github.com/dynamic-labs/dynamic-auth/commit/2f7f01b024c2733f71ea0fd09dff24f815120acb))
28
+ * solana wallet standard signer connect ([#7614](https://github.com/dynamic-labs/dynamic-auth/issues/7614)) ([1836cf3](https://github.com/dynamic-labs/dynamic-auth/commit/1836cf343b45bae01cfdcf0c0d010bf38bf54d83))
29
+
2
30
  ## [4.0.0-alpha.45](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.44...v4.0.0-alpha.45) (2024-12-11)
3
31
 
4
32
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.45";
6
+ var version = "4.0.0-alpha.47";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.45";
2
+ var version = "4.0.0-alpha.47";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/bitcoin",
3
- "version": "4.0.0-alpha.45",
3
+ "version": "4.0.0-alpha.47",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,17 +19,17 @@
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
21
  "@btckit/types": "0.0.19",
22
- "@dynamic-labs/sdk-api-core": "0.0.570",
22
+ "@dynamic-labs/sdk-api-core": "0.0.576",
23
23
  "@wallet-standard/app": "1.0.1",
24
24
  "@wallet-standard/base": "1.0.1",
25
25
  "bitcoinjs-lib": "6.1.5",
26
26
  "sats-connect": "2.8.0",
27
27
  "jsontokens": "4.0.1",
28
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.45",
29
- "@dynamic-labs/types": "4.0.0-alpha.45",
30
- "@dynamic-labs/utils": "4.0.0-alpha.45",
31
- "@dynamic-labs/wallet-book": "4.0.0-alpha.45",
32
- "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.45",
28
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.47",
29
+ "@dynamic-labs/types": "4.0.0-alpha.47",
30
+ "@dynamic-labs/utils": "4.0.0-alpha.47",
31
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.47",
32
+ "@dynamic-labs/wallet-connector-core": "4.0.0-alpha.47",
33
33
  "eventemitter3": "5.0.1"
34
34
  },
35
35
  "peerDependencies": {}
@@ -7,6 +7,20 @@ var _tslib = require('../../_virtual/_tslib.cjs');
7
7
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
8
 
9
9
  class BitcoinWallet extends walletConnectorCore.Wallet {
10
+ /**
11
+ * Sends the native balance of the wallet to the given address.
12
+ * @param amount - The amount of balance to send (in satoshis).
13
+ * @param toAddress - The address to send the balance to.
14
+ * @returns The signature of the sent transaction.
15
+ */
16
+ sendBalance(_a) {
17
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ amount, toAddress, }) {
18
+ return this.sendBitcoin({
19
+ amount: BigInt(amount),
20
+ recipientAddress: toAddress,
21
+ });
22
+ });
23
+ }
10
24
  /**
11
25
  * Sends a raw transaction
12
26
  * @returns A promise that resolves to the transaction id
@@ -3,6 +3,16 @@ import type { WalletAddressType } from '@dynamic-labs/types';
3
3
  import { BitcoinWalletConnector } from '../connectors';
4
4
  import { BitcoinSignPsbtRequest, BitcoinSignPsbtResponse, BitcoinTransaction } from '../types';
5
5
  export declare class BitcoinWallet extends Wallet<BitcoinWalletConnector> {
6
+ /**
7
+ * Sends the native balance of the wallet to the given address.
8
+ * @param amount - The amount of balance to send (in satoshis).
9
+ * @param toAddress - The address to send the balance to.
10
+ * @returns The signature of the sent transaction.
11
+ */
12
+ sendBalance({ amount, toAddress, }: {
13
+ amount: string;
14
+ toAddress: string;
15
+ }): Promise<string | undefined>;
6
16
  /**
7
17
  * Sends a raw transaction
8
18
  * @returns A promise that resolves to the transaction id
@@ -3,6 +3,20 @@ import { __awaiter } from '../../_virtual/_tslib.js';
3
3
  import { Wallet } from '@dynamic-labs/wallet-connector-core';
4
4
 
5
5
  class BitcoinWallet extends Wallet {
6
+ /**
7
+ * Sends the native balance of the wallet to the given address.
8
+ * @param amount - The amount of balance to send (in satoshis).
9
+ * @param toAddress - The address to send the balance to.
10
+ * @returns The signature of the sent transaction.
11
+ */
12
+ sendBalance(_a) {
13
+ return __awaiter(this, arguments, void 0, function* ({ amount, toAddress, }) {
14
+ return this.sendBitcoin({
15
+ amount: BigInt(amount),
16
+ recipientAddress: toAddress,
17
+ });
18
+ });
19
+ }
6
20
  /**
7
21
  * Sends a raw transaction
8
22
  * @returns A promise that resolves to the transaction id