@dynamic-labs/waas 4.52.5 → 4.53.1
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 +18 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/DynamicWaasMixin.cjs +5 -2
- package/src/DynamicWaasMixin.d.ts +5 -3
- package/src/DynamicWaasMixin.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.53.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.0...v4.53.1) (2026-01-14)
|
|
3
|
+
|
|
4
|
+
## [4.53.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.5...v4.53.0) (2026-01-13)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add contract deployment bundle into first transaction ([#10089](https://github.com/dynamic-labs/dynamic-auth/issues/10089)) ([1291f2a](https://github.com/dynamic-labs/dynamic-auth/commit/1291f2ae2d4881c047a3e6e4e6cf4281a868f626))
|
|
10
|
+
* add ton balance to wallet connector ([#10186](https://github.com/dynamic-labs/dynamic-auth/issues/10186)) ([7b1bdf3](https://github.com/dynamic-labs/dynamic-auth/commit/7b1bdf38f9685cb74974de0592e0e824146d343d))
|
|
11
|
+
* add waas btc support in demo ([#10192](https://github.com/dynamic-labs/dynamic-auth/issues/10192)) ([36aedd6](https://github.com/dynamic-labs/dynamic-auth/commit/36aedd614b7fe781c7150efb4c1a77a5fe55a1ae))
|
|
12
|
+
* merge waas-bitcoin to existing bitcoin package ([#10190](https://github.com/dynamic-labs/dynamic-auth/issues/10190)) ([70dfc6b](https://github.com/dynamic-labs/dynamic-auth/commit/70dfc6baca4f69af56a10ad29faca0fb361ec17b))
|
|
13
|
+
* update sdk-react-core to support btc from waas ([#10191](https://github.com/dynamic-labs/dynamic-auth/issues/10191)) ([c39a99c](https://github.com/dynamic-labs/dynamic-auth/commit/c39a99c544e567a75f43e9b83d4969b70d3c01d1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* udpate ESM compatibility issues in build scripts for iconic ([#10201](https://github.com/dynamic-labs/dynamic-auth/issues/10201)) ([55059ad](https://github.com/dynamic-labs/dynamic-auth/commit/55059ad8c874b7f04699c277467242783f5d6eff))
|
|
19
|
+
|
|
2
20
|
### [4.52.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.4...v4.52.5) (2026-01-08)
|
|
3
21
|
|
|
4
22
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.53.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.53.1",
|
|
20
20
|
"@dynamic-labs/sdk-api-core": "0.0.843",
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/logger": "4.
|
|
24
|
-
"@dynamic-labs/solana-core": "4.
|
|
25
|
-
"@dynamic-labs/sui-core": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.237",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.53.1",
|
|
23
|
+
"@dynamic-labs/logger": "4.53.1",
|
|
24
|
+
"@dynamic-labs/solana-core": "4.53.1",
|
|
25
|
+
"@dynamic-labs/sui-core": "4.53.1",
|
|
26
|
+
"@dynamic-labs/utils": "4.53.1",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.53.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
30
30
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -87,6 +87,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
87
87
|
const { connectedChain } = this;
|
|
88
88
|
// Map class names to chain names
|
|
89
89
|
const chainNameMap = {
|
|
90
|
+
BTC: 'BTC',
|
|
90
91
|
EVM: 'EVM',
|
|
91
92
|
SOL: 'SVM',
|
|
92
93
|
SUI: 'SUI',
|
|
@@ -137,7 +138,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
137
138
|
}
|
|
138
139
|
// Common methods that are identical across all connectors
|
|
139
140
|
createWalletAccount() {
|
|
140
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, } = {}) {
|
|
141
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, bitcoinConfig, } = {}) {
|
|
141
142
|
var _a, _b;
|
|
142
143
|
const walletClient = yield this.getWaasWalletClient();
|
|
143
144
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
@@ -146,6 +147,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
146
147
|
}
|
|
147
148
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
148
149
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
150
|
+
bitcoinConfig,
|
|
149
151
|
password,
|
|
150
152
|
signedSessionId,
|
|
151
153
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
@@ -154,7 +156,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
154
156
|
});
|
|
155
157
|
}
|
|
156
158
|
importPrivateKey(_a) {
|
|
157
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, }) {
|
|
159
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
158
160
|
var _b, _c;
|
|
159
161
|
const walletClient = yield this.getWaasWalletClient();
|
|
160
162
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -162,6 +164,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
162
164
|
throw new utils.DynamicError('Signed session ID is required');
|
|
163
165
|
}
|
|
164
166
|
yield walletClient.importPrivateKey({
|
|
167
|
+
addressType,
|
|
165
168
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
166
169
|
privateKey,
|
|
167
170
|
publicAddressCheck,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
1
|
+
import { BitcoinConfig, DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
2
|
import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
|
|
3
3
|
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
4
4
|
import { InstrumentationTimer, InstrumentContext, TraceContext } from '../utils/instrumentation';
|
|
@@ -43,19 +43,21 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
43
43
|
}): Promise<void>;
|
|
44
44
|
createDynamicWaasClient(traceContext?: TraceContext): Promise<DynamicWalletClient>;
|
|
45
45
|
getWaasWalletClient(traceContext?: TraceContext): Promise<DynamicWalletClient>;
|
|
46
|
-
createWalletAccount({ thresholdSignatureScheme, password, }?: {
|
|
46
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, }?: {
|
|
47
47
|
thresholdSignatureScheme?: string;
|
|
48
48
|
password?: string;
|
|
49
|
+
bitcoinConfig?: BitcoinConfig;
|
|
49
50
|
}): Promise<{
|
|
50
51
|
chainName: string;
|
|
51
52
|
accountAddress: string;
|
|
52
53
|
publicKeyHex: string;
|
|
53
54
|
rawPublicKey: string | Uint8Array | undefined;
|
|
54
55
|
}>;
|
|
55
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, }: {
|
|
56
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, }: {
|
|
56
57
|
privateKey: string;
|
|
57
58
|
thresholdSignatureScheme?: string;
|
|
58
59
|
publicAddressCheck?: string;
|
|
60
|
+
addressType?: string;
|
|
59
61
|
}): Promise<void>;
|
|
60
62
|
exportPrivateKey({ accountAddress, displayContainer, password, }?: {
|
|
61
63
|
accountAddress?: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -83,6 +83,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
83
83
|
const { connectedChain } = this;
|
|
84
84
|
// Map class names to chain names
|
|
85
85
|
const chainNameMap = {
|
|
86
|
+
BTC: 'BTC',
|
|
86
87
|
EVM: 'EVM',
|
|
87
88
|
SOL: 'SVM',
|
|
88
89
|
SUI: 'SUI',
|
|
@@ -133,7 +134,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
133
134
|
}
|
|
134
135
|
// Common methods that are identical across all connectors
|
|
135
136
|
createWalletAccount() {
|
|
136
|
-
return __awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, } = {}) {
|
|
137
|
+
return __awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', password, bitcoinConfig, } = {}) {
|
|
137
138
|
var _a, _b;
|
|
138
139
|
const walletClient = yield this.getWaasWalletClient();
|
|
139
140
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
@@ -142,6 +143,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
142
143
|
}
|
|
143
144
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
144
145
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
146
|
+
bitcoinConfig,
|
|
145
147
|
password,
|
|
146
148
|
signedSessionId,
|
|
147
149
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
@@ -150,7 +152,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
importPrivateKey(_a) {
|
|
153
|
-
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, }) {
|
|
155
|
+
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', publicAddressCheck, addressType, }) {
|
|
154
156
|
var _b, _c;
|
|
155
157
|
const walletClient = yield this.getWaasWalletClient();
|
|
156
158
|
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
@@ -158,6 +160,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
158
160
|
throw new DynamicError('Signed session ID is required');
|
|
159
161
|
}
|
|
160
162
|
yield walletClient.importPrivateKey({
|
|
163
|
+
addressType,
|
|
161
164
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
162
165
|
privateKey,
|
|
163
166
|
publicAddressCheck,
|