@dynamic-labs/waas-sui 4.25.4 → 4.25.6
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,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* don't create a new user when linking a wallet to a user with no wallets ([#9252](https://github.com/dynamic-labs/dynamic-auth/issues/9252)) ([30f846e](https://github.com/dynamic-labs/dynamic-auth/commit/30f846e89f2dffd112e656201bfa1cc24b787f03))
|
|
8
|
+
* Nufi EVM wallet showing up twice in wallet list ([#9256](https://github.com/dynamic-labs/dynamic-auth/issues/9256)) ([213488e](https://github.com/dynamic-labs/dynamic-auth/commit/213488e2226ef55965e12a1a548845cb100e859f))
|
|
9
|
+
|
|
10
|
+
### [4.25.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.4...v4.25.5) (2025-07-27)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add pending account switch copykey ([#9219](https://github.com/dynamic-labs/dynamic-auth/issues/9219)) ([1d88bf2](https://github.com/dynamic-labs/dynamic-auth/commit/1d88bf27c685f122d94cdf66541365eae7e11a64))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* logout user if last wallet removed in connect-only ([#9234](https://github.com/dynamic-labs/dynamic-auth/issues/9234)) ([42ea1ad](https://github.com/dynamic-labs/dynamic-auth/commit/42ea1ad331cd635a1c17fac0dcbf213fa045586d))
|
|
21
|
+
* prevent waas wallet from being created when embedded wallet option is turned on and then off ([#9237](https://github.com/dynamic-labs/dynamic-auth/issues/9237)) ([004a350](https://github.com/dynamic-labs/dynamic-auth/commit/004a350eb0d88d7ad6d3ceea7eb0d889f7d4a6bf))
|
|
22
|
+
* stop generating session keys on wallet linking ([#9244](https://github.com/dynamic-labs/dynamic-auth/issues/9244)) ([7176be9](https://github.com/dynamic-labs/dynamic-auth/commit/7176be93e31ba55dda264e0365c84376272ee945))
|
|
23
|
+
|
|
2
24
|
### [4.25.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.3...v4.25.4) (2025-07-25)
|
|
3
25
|
|
|
4
26
|
|
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": "4.25.
|
|
3
|
+
"version": "4.25.6",
|
|
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,18 +18,19 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.728",
|
|
21
22
|
"@dynamic-labs-wallet/browser-wallet-client": "0.0.124",
|
|
22
23
|
"@mysten/sui": "1.24.0",
|
|
23
24
|
"@mysten/wallet-standard": "0.13.29",
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
25
|
-
"@dynamic-labs/logger": "4.25.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.25.
|
|
27
|
-
"@dynamic-labs/sui-core": "4.25.
|
|
28
|
-
"@dynamic-labs/types": "4.25.
|
|
29
|
-
"@dynamic-labs/utils": "4.25.
|
|
30
|
-
"@dynamic-labs/waas": "4.25.
|
|
31
|
-
"@dynamic-labs/wallet-book": "4.25.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.25.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.25.6",
|
|
26
|
+
"@dynamic-labs/logger": "4.25.6",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.25.6",
|
|
28
|
+
"@dynamic-labs/sui-core": "4.25.6",
|
|
29
|
+
"@dynamic-labs/types": "4.25.6",
|
|
30
|
+
"@dynamic-labs/utils": "4.25.6",
|
|
31
|
+
"@dynamic-labs/waas": "4.25.6",
|
|
32
|
+
"@dynamic-labs/wallet-book": "4.25.6",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "4.25.6"
|
|
33
34
|
},
|
|
34
35
|
"peerDependencies": {}
|
|
35
36
|
}
|
|
@@ -9,6 +9,7 @@ var suiCore = require('@dynamic-labs/sui-core');
|
|
|
9
9
|
var utils = require('@dynamic-labs/utils');
|
|
10
10
|
var waas = require('@dynamic-labs/waas');
|
|
11
11
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
12
|
+
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
12
13
|
var WaasSuiWallet = require('../wallet/WaasSuiWallet.cjs');
|
|
13
14
|
|
|
14
15
|
class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConnector) {
|
|
@@ -132,7 +133,9 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
132
133
|
if (!signedSessionId) {
|
|
133
134
|
throw new utils.DynamicError('Signed session ID is required');
|
|
134
135
|
}
|
|
135
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
136
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
137
|
+
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
138
|
+
}));
|
|
136
139
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
137
140
|
accountAddress: this.activeAccountAddress,
|
|
138
141
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
@@ -158,7 +161,9 @@ class DynamicWaasSuiConnector extends waas.withDynamicWaas(suiCore.SuiWalletConn
|
|
|
158
161
|
if (!signedSessionId) {
|
|
159
162
|
throw new utils.DynamicError('Signed session ID is required');
|
|
160
163
|
}
|
|
161
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
164
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
165
|
+
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
166
|
+
}));
|
|
162
167
|
const signedTx = yield walletClient.signTransaction({
|
|
163
168
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
164
169
|
mfaToken,
|
|
@@ -5,6 +5,7 @@ import { SignedTransaction } from '@mysten/wallet-standard';
|
|
|
5
5
|
import { SuiWalletConnector, SuiWalletConnectorProps } from '@dynamic-labs/sui-core';
|
|
6
6
|
import { IUITransaction } from '@dynamic-labs/types';
|
|
7
7
|
import { IDynamicWaasConnector } from '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
8
9
|
import { WaasSuiWallet } from '../wallet/WaasSuiWallet';
|
|
9
10
|
declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
10
11
|
[x: string]: any;
|
|
@@ -12,7 +13,9 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
12
13
|
overrideKey: string;
|
|
13
14
|
isEmbeddedWallet: boolean;
|
|
14
15
|
getSignedSessionId?: (() => Promise<string>) | undefined;
|
|
15
|
-
getMfaToken?: ((
|
|
16
|
+
getMfaToken?: ((props?: {
|
|
17
|
+
mfaAction?: MFAAction | undefined;
|
|
18
|
+
} | undefined) => Promise<string | undefined>) | undefined;
|
|
16
19
|
getAuthToken?: (() => string) | undefined;
|
|
17
20
|
environmentId?: string | undefined;
|
|
18
21
|
baseApiUrl?: string | undefined;
|
|
@@ -22,7 +25,9 @@ declare const DynamicWaasSuiConnector_base: (abstract new (...args: any[]) => {
|
|
|
22
25
|
__exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
|
|
23
26
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
24
27
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
25
|
-
setGetMfaTokenFunction(getMfaToken: (
|
|
28
|
+
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
29
|
+
mfaAction?: MFAAction | undefined;
|
|
30
|
+
} | undefined) => Promise<string | undefined>): void;
|
|
26
31
|
setEnvironmentId(environmentId: string): void;
|
|
27
32
|
setBaseApiUrl(baseApiUrl: string): void;
|
|
28
33
|
setRelayUrl(relayUrl: string): void;
|
|
@@ -5,6 +5,7 @@ import { SuiWalletConnector, SuiUiTransaction } from '@dynamic-labs/sui-core';
|
|
|
5
5
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
6
6
|
import { withDynamicWaas } from '@dynamic-labs/waas';
|
|
7
7
|
import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
8
9
|
import { WaasSuiWallet } from '../wallet/WaasSuiWallet.js';
|
|
9
10
|
|
|
10
11
|
class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
@@ -128,7 +129,9 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
128
129
|
if (!signedSessionId) {
|
|
129
130
|
throw new DynamicError('Signed session ID is required');
|
|
130
131
|
}
|
|
131
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
132
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
133
|
+
mfaAction: MFAAction.WalletWaasSign,
|
|
134
|
+
}));
|
|
132
135
|
const signedMessage = yield waasSuiClient.signMessage({
|
|
133
136
|
accountAddress: this.activeAccountAddress,
|
|
134
137
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
@@ -154,7 +157,9 @@ class DynamicWaasSuiConnector extends withDynamicWaas(SuiWalletConnector) {
|
|
|
154
157
|
if (!signedSessionId) {
|
|
155
158
|
throw new DynamicError('Signed session ID is required');
|
|
156
159
|
}
|
|
157
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
160
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
161
|
+
mfaAction: MFAAction.WalletWaasSign,
|
|
162
|
+
}));
|
|
158
163
|
const signedTx = yield walletClient.signTransaction({
|
|
159
164
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
160
165
|
mfaToken,
|