@dynamic-labs/waas-svm 4.25.5 → 4.25.7
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,14 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.6...v4.25.7) (2025-07-28)
|
|
3
|
+
|
|
4
|
+
### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* 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))
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
2
12
|
### [4.25.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.4...v4.25.5) (2025-07-27)
|
|
3
13
|
|
|
4
14
|
|
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.25.
|
|
3
|
+
"version": "4.25.7",
|
|
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,17 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.728",
|
|
21
22
|
"@solana/web3.js": "1.98.1",
|
|
22
23
|
"eventemitter3": "5.0.1",
|
|
23
24
|
"bs58": "5.0.0",
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
25
|
-
"@dynamic-labs/logger": "4.25.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.25.
|
|
27
|
-
"@dynamic-labs/solana-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-connector-core": "4.25.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.25.7",
|
|
26
|
+
"@dynamic-labs/logger": "4.25.7",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.25.7",
|
|
28
|
+
"@dynamic-labs/solana-core": "4.25.7",
|
|
29
|
+
"@dynamic-labs/types": "4.25.7",
|
|
30
|
+
"@dynamic-labs/utils": "4.25.7",
|
|
31
|
+
"@dynamic-labs/waas": "4.25.7",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.25.7"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {}
|
|
34
35
|
}
|
|
@@ -9,6 +9,7 @@ var solanaCore = require('@dynamic-labs/solana-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 logger = require('../../utils/logger.cjs');
|
|
13
14
|
var DynamicWaasSVMSigner = require('../signer/DynamicWaasSVMSigner.cjs');
|
|
14
15
|
|
|
@@ -64,7 +65,9 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
64
65
|
if (!signedSessionId) {
|
|
65
66
|
throw new utils.DynamicError('Signed session ID is required');
|
|
66
67
|
}
|
|
67
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
68
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
69
|
+
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
70
|
+
}));
|
|
68
71
|
const signedMessage = yield walletClient.signMessage({
|
|
69
72
|
accountAddress: this.activeAccountAddress,
|
|
70
73
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
@@ -98,7 +101,9 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
98
101
|
if (!this.activeAccountAddress) {
|
|
99
102
|
throw new Error('Active account address is required');
|
|
100
103
|
}
|
|
101
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
104
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
105
|
+
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
106
|
+
}));
|
|
102
107
|
const messageBytes = transaction instanceof web3_js.Transaction
|
|
103
108
|
? transaction.serializeMessage()
|
|
104
109
|
: transaction.message.serialize();
|
|
@@ -2,6 +2,7 @@ import { Connection, SendOptions, Transaction, VersionedTransaction } from '@sol
|
|
|
2
2
|
import { ISolanaSigner, SolanaWalletConnector, SolanaWalletConnectorOpts } from '@dynamic-labs/solana-core';
|
|
3
3
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
4
|
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
|
+
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
5
6
|
export type DynamicWaasSVMConnectorProps = SolanaWalletConnectorOpts & {
|
|
6
7
|
walletUiUtils: WalletUiUtils<InternalWalletConnector>;
|
|
7
8
|
};
|
|
@@ -11,7 +12,9 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
11
12
|
overrideKey: string;
|
|
12
13
|
isEmbeddedWallet: boolean;
|
|
13
14
|
getSignedSessionId?: (() => Promise<string>) | undefined;
|
|
14
|
-
getMfaToken?: ((
|
|
15
|
+
getMfaToken?: ((props?: {
|
|
16
|
+
mfaAction?: MFAAction | undefined;
|
|
17
|
+
} | undefined) => Promise<string | undefined>) | undefined;
|
|
15
18
|
getAuthToken?: (() => string) | undefined;
|
|
16
19
|
environmentId?: string | undefined;
|
|
17
20
|
baseApiUrl?: string | undefined;
|
|
@@ -21,7 +24,9 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
21
24
|
__exportHandler: import("@dynamic-labs/waas").WaasExportHandler;
|
|
22
25
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
23
26
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
24
|
-
setGetMfaTokenFunction(getMfaToken: (
|
|
27
|
+
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
28
|
+
mfaAction?: MFAAction | undefined;
|
|
29
|
+
} | undefined) => Promise<string | undefined>): void;
|
|
25
30
|
setEnvironmentId(environmentId: string): void;
|
|
26
31
|
setBaseApiUrl(baseApiUrl: string): void;
|
|
27
32
|
setRelayUrl(relayUrl: string): void;
|
|
@@ -5,6 +5,7 @@ import { SolanaWalletConnector, SolanaUiTransaction } from '@dynamic-labs/solana
|
|
|
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 { logger } from '../../utils/logger.js';
|
|
9
10
|
import { DynamicWaasSVMSigner } from '../signer/DynamicWaasSVMSigner.js';
|
|
10
11
|
|
|
@@ -60,7 +61,9 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
60
61
|
if (!signedSessionId) {
|
|
61
62
|
throw new DynamicError('Signed session ID is required');
|
|
62
63
|
}
|
|
63
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
64
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
65
|
+
mfaAction: MFAAction.WalletWaasSign,
|
|
66
|
+
}));
|
|
64
67
|
const signedMessage = yield walletClient.signMessage({
|
|
65
68
|
accountAddress: this.activeAccountAddress,
|
|
66
69
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
@@ -94,7 +97,9 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
94
97
|
if (!this.activeAccountAddress) {
|
|
95
98
|
throw new Error('Active account address is required');
|
|
96
99
|
}
|
|
97
|
-
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this
|
|
100
|
+
const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
|
|
101
|
+
mfaAction: MFAAction.WalletWaasSign,
|
|
102
|
+
}));
|
|
98
103
|
const messageBytes = transaction instanceof Transaction
|
|
99
104
|
? transaction.serializeMessage()
|
|
100
105
|
: transaction.message.serialize();
|