@dynamic-labs/waas-svm 4.20.9 → 4.20.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/CHANGELOG.md +30 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connector/DynamicWaasSVMConnector.cjs +10 -2
- package/src/connector/DynamicWaasSVMConnector.js +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.10...v4.20.11) (2025-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add signed typed data to waas ([#9050](https://github.com/dynamic-labs/dynamic-auth/issues/9050)) ([19c8fea](https://github.com/dynamic-labs/dynamic-auth/commit/19c8fea2e5448e027cbec2f6158d32247dfcd321))
|
|
8
|
+
* pass jwt to waas operations ([#8981](https://github.com/dynamic-labs/dynamic-auth/issues/8981)) ([6b63394](https://github.com/dynamic-labs/dynamic-auth/commit/6b63394a1a724c2a1499a3d1ff13078d2314b10e))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 7702 signature for undeployed contracts ([#9052](https://github.com/dynamic-labs/dynamic-auth/issues/9052)) ([7052149](https://github.com/dynamic-labs/dynamic-auth/commit/7052149aae53524a0ac2bdad0b7ddf68e3c86189))
|
|
14
|
+
|
|
15
|
+
### [4.20.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.9...v4.20.10) (2025-06-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add refresh user to react native ([#9019](https://github.com/dynamic-labs/dynamic-auth/issues/9019)) ([01adcda](https://github.com/dynamic-labs/dynamic-auth/commit/01adcda39994ba2955cad58bbd1d4e5063cc1122))
|
|
21
|
+
* support sui wallets on mobile ([#9038](https://github.com/dynamic-labs/dynamic-auth/issues/9038)) ([6f077da](https://github.com/dynamic-labs/dynamic-auth/commit/6f077da7deab525b0a3c5692a50a987c98f2b7e9))
|
|
22
|
+
* upgradetoDynamicWaas hook ([#9022](https://github.com/dynamic-labs/dynamic-auth/issues/9022)) ([3f1c42d](https://github.com/dynamic-labs/dynamic-auth/commit/3f1c42d71ab8b5a88d6b622f0b5fb41eb4ca9a4b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* allow user to retry connecting with metamask on mobile deep link ([#9018](https://github.com/dynamic-labs/dynamic-auth/issues/9018)) ([09494c4](https://github.com/dynamic-labs/dynamic-auth/commit/09494c41680bb9949dc75df843e085c7743adc66))
|
|
28
|
+
* bump react 19 incompatible dependencies in sdk-react-core ([#9034](https://github.com/dynamic-labs/dynamic-auth/issues/9034)) ([e446f9c](https://github.com/dynamic-labs/dynamic-auth/commit/e446f9c26cf6d4566bf55be2e33dd540500d8fa5))
|
|
29
|
+
* filter out policies consent field from user profile view ([#9043](https://github.com/dynamic-labs/dynamic-auth/issues/9043)) ([e0e5003](https://github.com/dynamic-labs/dynamic-auth/commit/e0e500321719f1e1cfb8a67520641a6fb2f26cf8))
|
|
30
|
+
* use sui devnet for sui transactions ([#9042](https://github.com/dynamic-labs/dynamic-auth/issues/9042)) ([c61af4a](https://github.com/dynamic-labs/dynamic-auth/commit/c61af4a544ff35081b1286fc4b871a8ae031c3f3))
|
|
31
|
+
|
|
2
32
|
### [4.20.9](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.8...v4.20.9) (2025-06-24)
|
|
3
33
|
|
|
4
34
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-svm",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.11",
|
|
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",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"@solana/web3.js": "1.98.1",
|
|
22
22
|
"eventemitter3": "5.0.1",
|
|
23
23
|
"bs58": "5.0.0",
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
25
|
-
"@dynamic-labs/logger": "4.20.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.20.
|
|
27
|
-
"@dynamic-labs/solana-core": "4.20.
|
|
28
|
-
"@dynamic-labs/types": "4.20.
|
|
29
|
-
"@dynamic-labs/utils": "4.20.
|
|
30
|
-
"@dynamic-labs/waas": "4.20.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.20.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.20.11",
|
|
25
|
+
"@dynamic-labs/logger": "4.20.11",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.20.11",
|
|
27
|
+
"@dynamic-labs/solana-core": "4.20.11",
|
|
28
|
+
"@dynamic-labs/types": "4.20.11",
|
|
29
|
+
"@dynamic-labs/utils": "4.20.11",
|
|
30
|
+
"@dynamic-labs/waas": "4.20.11",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.20.11"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
|
34
34
|
}
|
|
@@ -62,10 +62,11 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
62
62
|
}
|
|
63
63
|
createWalletAccount() {
|
|
64
64
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', } = {}) {
|
|
65
|
-
var _a;
|
|
65
|
+
var _a, _b;
|
|
66
66
|
const walletClient = this.getWaasWalletClient();
|
|
67
67
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
68
68
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
69
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
69
70
|
signedSessionId,
|
|
70
71
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
71
72
|
});
|
|
@@ -74,7 +75,7 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
74
75
|
}
|
|
75
76
|
internalSignMessage(message) {
|
|
76
77
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
var _a;
|
|
78
|
+
var _a, _b;
|
|
78
79
|
const walletClient = this.getWaasWalletClient();
|
|
79
80
|
if (!this.activeAccountAddress) {
|
|
80
81
|
throw new Error('Active account address is required');
|
|
@@ -82,6 +83,7 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
82
83
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
83
84
|
const signedMessage = yield walletClient.signMessage({
|
|
84
85
|
accountAddress: this.activeAccountAddress,
|
|
86
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
85
87
|
message,
|
|
86
88
|
signedSessionId,
|
|
87
89
|
});
|
|
@@ -247,9 +249,15 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
247
249
|
}
|
|
248
250
|
importPrivateKey(_a) {
|
|
249
251
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', }) {
|
|
252
|
+
var _b;
|
|
250
253
|
const walletClient = this.getWaasWalletClient();
|
|
254
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
255
|
+
if (!signedSessionId) {
|
|
256
|
+
throw new Error('Signed session ID is required');
|
|
257
|
+
}
|
|
251
258
|
yield walletClient.importPrivateKey({
|
|
252
259
|
privateKey,
|
|
260
|
+
signedSessionId,
|
|
253
261
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
254
262
|
});
|
|
255
263
|
});
|
|
@@ -58,10 +58,11 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
58
58
|
}
|
|
59
59
|
createWalletAccount() {
|
|
60
60
|
return __awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', } = {}) {
|
|
61
|
-
var _a;
|
|
61
|
+
var _a, _b;
|
|
62
62
|
const walletClient = this.getWaasWalletClient();
|
|
63
63
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
64
64
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
65
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
65
66
|
signedSessionId,
|
|
66
67
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
67
68
|
});
|
|
@@ -70,7 +71,7 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
70
71
|
}
|
|
71
72
|
internalSignMessage(message) {
|
|
72
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
var _a;
|
|
74
|
+
var _a, _b;
|
|
74
75
|
const walletClient = this.getWaasWalletClient();
|
|
75
76
|
if (!this.activeAccountAddress) {
|
|
76
77
|
throw new Error('Active account address is required');
|
|
@@ -78,6 +79,7 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
78
79
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
79
80
|
const signedMessage = yield walletClient.signMessage({
|
|
80
81
|
accountAddress: this.activeAccountAddress,
|
|
82
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
81
83
|
message,
|
|
82
84
|
signedSessionId,
|
|
83
85
|
});
|
|
@@ -243,9 +245,15 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
243
245
|
}
|
|
244
246
|
importPrivateKey(_a) {
|
|
245
247
|
return __awaiter(this, arguments, void 0, function* ({ privateKey, thresholdSignatureScheme = 'TWO_OF_TWO', }) {
|
|
248
|
+
var _b;
|
|
246
249
|
const walletClient = this.getWaasWalletClient();
|
|
250
|
+
const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
|
|
251
|
+
if (!signedSessionId) {
|
|
252
|
+
throw new Error('Signed session ID is required');
|
|
253
|
+
}
|
|
247
254
|
yield walletClient.importPrivateKey({
|
|
248
255
|
privateKey,
|
|
256
|
+
signedSessionId,
|
|
249
257
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
250
258
|
});
|
|
251
259
|
});
|