@dynamic-labs/waas-sui 5.10.0 → 5.12.0
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 +14 -13
- package/src/connector/DynamicWaasSuiConnector.cjs +6 -4
- package/src/connector/DynamicWaasSuiConnector.d.ts +10 -5
- package/src/connector/DynamicWaasSuiConnector.js +6 -4
- package/src/wallet/WaasSuiWallet.cjs +2 -2
- package/src/wallet/WaasSuiWallet.d.ts +4 -1
- package/src/wallet/WaasSuiWallet.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.12.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.11.0...v5.12.0) (2026-10-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **embedded-wallet-solana:** add getSolanaSponsorAddress ([#12517](https://github.com/dynamic-labs/dynamic-auth/issues/12517)) ([b95c550](https://github.com/dynamic-labs/dynamic-auth/commit/b95c550e3dab783b7ff0b019051a17b22ea44f97))
|
|
8
|
+
* **embedded-wallet:** show chain and wallet in private key export modal ([#12507](https://github.com/dynamic-labs/dynamic-auth/issues/12507)) ([4bfb6d6](https://github.com/dynamic-labs/dynamic-auth/commit/4bfb6d6168aac3f800792fde933e0597f288058f))
|
|
9
|
+
* **sdk-react-core:** send OTP purpose from step-up flows ([#12511](https://github.com/dynamic-labs/dynamic-auth/issues/12511)) ([0d2d8a3](https://github.com/dynamic-labs/dynamic-auth/commit/0d2d8a31058b3e75c71af7a34f459e2a3ddf383b)), closes [#12898](https://github.com/dynamic-labs/dynamic-auth/issues/12898) [#816](https://github.com/dynamic-labs/dynamic-auth/issues/816) [#203](https://github.com/dynamic-labs/dynamic-auth/issues/203) [#12512](https://github.com/dynamic-labs/dynamic-auth/issues/12512)
|
|
10
|
+
* **wallet-connect:** back WalletConnect storage with native secure storage on mobile ([#12515](https://github.com/dynamic-labs/dynamic-auth/issues/12515)) ([7b57903](https://github.com/dynamic-labs/dynamic-auth/commit/7b5790325fce707d73d591483a0130b960ed055c))
|
|
11
|
+
|
|
12
|
+
## [5.11.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.10.0...v5.11.0) (2026-10-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **react-native:** fall back to a TEE-backed key when StrongBox key generation fails on Android ([#12484](https://github.com/dynamic-labs/dynamic-auth/issues/12484)) ([6884ef1](https://github.com/dynamic-labs/dynamic-auth/commit/6884ef1665e4b18d1b8fdb54ee7cd06861b47fc9))
|
|
18
|
+
* support WaaS password overrides in WebView ([#12509](https://github.com/dynamic-labs/dynamic-auth/issues/12509)) ([fc67fcc](https://github.com/dynamic-labs/dynamic-auth/commit/fc67fccb99be7c0cc8df81a2513ccd3a04db9a61))
|
|
19
|
+
|
|
2
20
|
## [5.10.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.6...v5.10.0) (2026-10-09)
|
|
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-sui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
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",
|
|
@@ -18,21 +18,22 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-sdk/client": "1.
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
23
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.1.
|
|
21
|
+
"@dynamic-labs-sdk/client": "1.41.0",
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.104.0",
|
|
23
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.1.43",
|
|
24
|
+
"@dynamic-labs-wallet/core": "1.1.43",
|
|
24
25
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
25
26
|
"@mysten/sui": "1.45.2",
|
|
26
27
|
"@mysten/wallet-standard": "0.19.9",
|
|
27
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
28
|
-
"@dynamic-labs/logger": "5.
|
|
29
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
30
|
-
"@dynamic-labs/sui-core": "5.
|
|
31
|
-
"@dynamic-labs/types": "5.
|
|
32
|
-
"@dynamic-labs/utils": "5.
|
|
33
|
-
"@dynamic-labs/waas": "5.
|
|
34
|
-
"@dynamic-labs/wallet-book": "5.
|
|
35
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
28
|
+
"@dynamic-labs/assert-package-version": "5.12.0",
|
|
29
|
+
"@dynamic-labs/logger": "5.12.0",
|
|
30
|
+
"@dynamic-labs/rpc-providers": "5.12.0",
|
|
31
|
+
"@dynamic-labs/sui-core": "5.12.0",
|
|
32
|
+
"@dynamic-labs/types": "5.12.0",
|
|
33
|
+
"@dynamic-labs/utils": "5.12.0",
|
|
34
|
+
"@dynamic-labs/waas": "5.12.0",
|
|
35
|
+
"@dynamic-labs/wallet-book": "5.12.0",
|
|
36
|
+
"@dynamic-labs/wallet-connector-core": "5.12.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {}
|
|
38
39
|
}
|
|
@@ -103,7 +103,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
signMessage(message) {
|
|
106
|
+
signMessage(message, options) {
|
|
107
107
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
108
108
|
var _a, _b, _c, _d;
|
|
109
109
|
const waasSuiClient = yield this.getWaasWalletClient();
|
|
@@ -125,6 +125,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
125
125
|
});
|
|
126
126
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
127
127
|
accountAddress: this.activeAccountAddress,
|
|
128
|
+
approvalQuorum: options === null || options === void 0 ? void 0 : options.approvalQuorum,
|
|
128
129
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
129
130
|
elevatedAccessToken,
|
|
130
131
|
message,
|
|
@@ -135,7 +136,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
135
136
|
return signedMessage;
|
|
136
137
|
});
|
|
137
138
|
}
|
|
138
|
-
createAndSignTransaction(transaction) {
|
|
139
|
+
createAndSignTransaction(transaction, approvalQuorum) {
|
|
139
140
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
140
141
|
var _a, _b, _c, _d;
|
|
141
142
|
const client = yield this.getSuiClient();
|
|
@@ -162,6 +163,7 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
162
163
|
accountAddress: this.activeAccountAddress,
|
|
163
164
|
});
|
|
164
165
|
const signedTx = yield walletClient.signTransaction({
|
|
166
|
+
approvalQuorum,
|
|
165
167
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
166
168
|
elevatedAccessToken,
|
|
167
169
|
mfaToken,
|
|
@@ -179,10 +181,10 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
179
181
|
};
|
|
180
182
|
});
|
|
181
183
|
}
|
|
182
|
-
signTransaction(transaction) {
|
|
184
|
+
signTransaction(transaction, approvalQuorum) {
|
|
183
185
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
184
186
|
try {
|
|
185
|
-
const { signedTx } = yield this.createAndSignTransaction(transaction);
|
|
187
|
+
const { signedTx } = yield this.createAndSignTransaction(transaction, approvalQuorum);
|
|
186
188
|
return signedTx;
|
|
187
189
|
}
|
|
188
190
|
catch (error) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
|
|
2
|
+
import type { ApprovalQuorumRequestContext } from '@dynamic-labs-wallet/core';
|
|
2
3
|
import type { LogoutReason } from '@dynamic-labs-sdk/client';
|
|
3
4
|
import { SuiClient, SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
4
5
|
import { Transaction } from '@mysten/sui/transactions';
|
|
@@ -147,14 +148,15 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
147
148
|
accountAddress: string;
|
|
148
149
|
password?: string | undefined;
|
|
149
150
|
}): Promise<void>;
|
|
150
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
|
|
151
|
+
updatePassword({ accountAddress, existingPassword, newPassword, passwordOverrides, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
|
|
151
152
|
setPassword({ accountAddress, newPassword, }: {
|
|
152
153
|
accountAddress: string;
|
|
153
154
|
newPassword: string;
|
|
154
155
|
}): Promise<void>;
|
|
155
|
-
signRawMessage({ accountAddress, context, message, password, }: {
|
|
156
|
+
signRawMessage({ accountAddress, approvalQuorum, context, message, password, }: {
|
|
156
157
|
accountAddress: string;
|
|
157
|
-
|
|
158
|
+
approvalQuorum?: ApprovalQuorumRequestContext | undefined;
|
|
159
|
+
context?: import("@dynamic-labs-wallet/core").SignMessageContext | undefined;
|
|
158
160
|
message: string;
|
|
159
161
|
password?: string | undefined;
|
|
160
162
|
}): Promise<string>;
|
|
@@ -225,9 +227,12 @@ export declare class DynamicWaasSuiConnector extends DynamicWaasSuiConnector_bas
|
|
|
225
227
|
private setActiveAccountAddress;
|
|
226
228
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
227
229
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
228
|
-
signMessage(message: string
|
|
230
|
+
signMessage(message: string, options?: {
|
|
231
|
+
address?: string;
|
|
232
|
+
approvalQuorum?: ApprovalQuorumRequestContext;
|
|
233
|
+
}): Promise<string>;
|
|
229
234
|
private createAndSignTransaction;
|
|
230
|
-
signTransaction(transaction: Transaction): Promise<SignedTransaction>;
|
|
235
|
+
signTransaction(transaction: Transaction, approvalQuorum?: ApprovalQuorumRequestContext): Promise<SignedTransaction>;
|
|
231
236
|
signAndExecuteTransaction(transaction: Transaction): Promise<SuiTransactionBlockResponse>;
|
|
232
237
|
getSuiClient(): Promise<SuiClient | undefined>;
|
|
233
238
|
getWalletClientByAddress({ accountAddress, }: {
|
|
@@ -99,7 +99,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
signMessage(message) {
|
|
102
|
+
signMessage(message, options) {
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
104
|
var _a, _b, _c, _d;
|
|
105
105
|
const waasSuiClient = yield this.getWaasWalletClient();
|
|
@@ -121,6 +121,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
121
121
|
});
|
|
122
122
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
123
123
|
accountAddress: this.activeAccountAddress,
|
|
124
|
+
approvalQuorum: options === null || options === void 0 ? void 0 : options.approvalQuorum,
|
|
124
125
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
125
126
|
elevatedAccessToken,
|
|
126
127
|
message,
|
|
@@ -131,7 +132,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
131
132
|
return signedMessage;
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
|
-
createAndSignTransaction(transaction) {
|
|
135
|
+
createAndSignTransaction(transaction, approvalQuorum) {
|
|
135
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
137
|
var _a, _b, _c, _d;
|
|
137
138
|
const client = yield this.getSuiClient();
|
|
@@ -158,6 +159,7 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
158
159
|
accountAddress: this.activeAccountAddress,
|
|
159
160
|
});
|
|
160
161
|
const signedTx = yield walletClient.signTransaction({
|
|
162
|
+
approvalQuorum,
|
|
161
163
|
authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
|
|
162
164
|
elevatedAccessToken,
|
|
163
165
|
mfaToken,
|
|
@@ -175,10 +177,10 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
175
177
|
};
|
|
176
178
|
});
|
|
177
179
|
}
|
|
178
|
-
signTransaction(transaction) {
|
|
180
|
+
signTransaction(transaction, approvalQuorum) {
|
|
179
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
182
|
try {
|
|
181
|
-
const { signedTx } = yield this.createAndSignTransaction(transaction);
|
|
183
|
+
const { signedTx } = yield this.createAndSignTransaction(transaction, approvalQuorum);
|
|
182
184
|
return signedTx;
|
|
183
185
|
}
|
|
184
186
|
catch (error) {
|
|
@@ -51,7 +51,7 @@ class WaasSuiWallet extends suiCore.SuiWallet {
|
|
|
51
51
|
* @param transaction - The [Transaction] to sign.
|
|
52
52
|
* @returns The signature of the signed transaction.
|
|
53
53
|
*/
|
|
54
|
-
signTransaction(transaction) {
|
|
54
|
+
signTransaction(transaction, options) {
|
|
55
55
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
const suiWalletConnector = this
|
|
57
57
|
._connector;
|
|
@@ -63,7 +63,7 @@ class WaasSuiWallet extends suiCore.SuiWallet {
|
|
|
63
63
|
suiWalletConnector.getWalletClientByAddress({
|
|
64
64
|
accountAddress: this.address,
|
|
65
65
|
});
|
|
66
|
-
const signedTransaction = yield suiWalletConnector.signTransaction(transaction);
|
|
66
|
+
const signedTransaction = yield suiWalletConnector.signTransaction(transaction, options === null || options === void 0 ? void 0 : options.approvalQuorum);
|
|
67
67
|
return signedTransaction;
|
|
68
68
|
});
|
|
69
69
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ApprovalQuorumRequestContext } from '@dynamic-labs-wallet/core';
|
|
1
2
|
import { Transaction } from '@mysten/sui/transactions';
|
|
2
3
|
import { SignedTransaction } from '@mysten/wallet-standard';
|
|
3
4
|
import { WalletProps } from '@dynamic-labs/wallet-connector-core';
|
|
@@ -17,6 +18,8 @@ export declare class WaasSuiWallet extends SuiWallet {
|
|
|
17
18
|
* @param transaction - The [Transaction] to sign.
|
|
18
19
|
* @returns The signature of the signed transaction.
|
|
19
20
|
*/
|
|
20
|
-
signTransaction(transaction: Transaction
|
|
21
|
+
signTransaction(transaction: Transaction, options?: {
|
|
22
|
+
approvalQuorum?: ApprovalQuorumRequestContext;
|
|
23
|
+
}): Promise<SignedTransaction>;
|
|
21
24
|
getActiveNetwork(): Promise<string | undefined>;
|
|
22
25
|
}
|
|
@@ -47,7 +47,7 @@ class WaasSuiWallet extends SuiWallet {
|
|
|
47
47
|
* @param transaction - The [Transaction] to sign.
|
|
48
48
|
* @returns The signature of the signed transaction.
|
|
49
49
|
*/
|
|
50
|
-
signTransaction(transaction) {
|
|
50
|
+
signTransaction(transaction, options) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
52
|
const suiWalletConnector = this
|
|
53
53
|
._connector;
|
|
@@ -59,7 +59,7 @@ class WaasSuiWallet extends SuiWallet {
|
|
|
59
59
|
suiWalletConnector.getWalletClientByAddress({
|
|
60
60
|
accountAddress: this.address,
|
|
61
61
|
});
|
|
62
|
-
const signedTransaction = yield suiWalletConnector.signTransaction(transaction);
|
|
62
|
+
const signedTransaction = yield suiWalletConnector.signTransaction(transaction, options === null || options === void 0 ? void 0 : options.approvalQuorum);
|
|
63
63
|
return signedTransaction;
|
|
64
64
|
});
|
|
65
65
|
}
|