@dynamic-labs/waas-svm 4.25.9 → 4.26.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
CHANGED
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.26.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.10...v4.26.0) (2025-08-14)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add forceRefresh to useTokenBalances ([#9320](https://github.com/dynamic-labs/dynamic-auth/issues/9320)) ([22c4035](https://github.com/dynamic-labs/dynamic-auth/commit/22c403546496ffb6b1ed846510a079efc65c5d57))
|
|
8
|
+
* add signMessageWithContext to support user operations with WaaS ([#9287](https://github.com/dynamic-labs/dynamic-auth/issues/9287)) ([744c158](https://github.com/dynamic-labs/dynamic-auth/commit/744c158a890346c624a101ba8b20911eefbdd1ef))
|
|
9
|
+
* add sui support to react native ([#9236](https://github.com/dynamic-labs/dynamic-auth/issues/9236)) ([301d821](https://github.com/dynamic-labs/dynamic-auth/commit/301d821b16eb1bc112609882ed0ae5e9f2477ace))
|
|
10
|
+
* add whitelistedContracts to token balance hooks ([#9324](https://github.com/dynamic-labs/dynamic-auth/issues/9324)) ([86596dd](https://github.com/dynamic-labs/dynamic-auth/commit/86596dd692152f82a2553b9824ce21781024dac1))
|
|
11
|
+
* pass policy context to sign authorization ([#9327](https://github.com/dynamic-labs/dynamic-auth/issues/9327)) ([3e6d009](https://github.com/dynamic-labs/dynamic-auth/commit/3e6d009ca3d50e01a665550fa803d07bd3038eb1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* don't prompt passkeys twice when component renders ([#9340](https://github.com/dynamic-labs/dynamic-auth/issues/9340)) ([8fbdd28](https://github.com/dynamic-labs/dynamic-auth/commit/8fbdd287d1dd67fee4720f16a3d506f75d9dafe7))
|
|
17
|
+
* onAuthSuccess with primaryWallet null when signing up with embedded wallets v3 ([#9345](https://github.com/dynamic-labs/dynamic-auth/issues/9345)) ([14e54a0](https://github.com/dynamic-labs/dynamic-auth/commit/14e54a093395a46cb32282aebc172b26c243d42f))
|
|
18
|
+
* rename passkey not automatically updating UI ([#9339](https://github.com/dynamic-labs/dynamic-auth/issues/9339)) ([b9ef253](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef2532152a228feebb1fb9811937d7a14d81b1))
|
|
19
|
+
* wallet kit being initiated internally multiple times ([#9344](https://github.com/dynamic-labs/dynamic-auth/issues/9344)) ([49a3664](https://github.com/dynamic-labs/dynamic-auth/commit/49a3664c5995b0104693ec87b41b8540dd19bdca))
|
|
20
|
+
|
|
21
|
+
### [4.25.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.9...v4.25.10) (2025-08-07)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* trigger event for social account changes ([#9291](https://github.com/dynamic-labs/dynamic-auth/issues/9291)) ([6766754](https://github.com/dynamic-labs/dynamic-auth/commit/6766754dd6858628003781fab6cca42c1898dd2d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* allow using the custom transport config in EthereumWallet walletClient creation ([#9310](https://github.com/dynamic-labs/dynamic-auth/issues/9310)) ([e1db68a](https://github.com/dynamic-labs/dynamic-auth/commit/e1db68a16d51d4db3317b707f27ff35b64056829))
|
|
32
|
+
* incorrect modal showing up when linking MetaMask SOL in headless mode ([#9317](https://github.com/dynamic-labs/dynamic-auth/issues/9317)) ([c7f9644](https://github.com/dynamic-labs/dynamic-auth/commit/c7f9644abe51d537100997db47d8a6d1b78cf8e7))
|
|
33
|
+
* prevent logged-in users from trying to signing in again with social ([#9315](https://github.com/dynamic-labs/dynamic-auth/issues/9315)) ([365c65c](https://github.com/dynamic-labs/dynamic-auth/commit/365c65c0c7bb22c47e77ca58727a473b60887e24))
|
|
34
|
+
|
|
2
35
|
### [4.25.9](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.8...v4.25.9) (2025-08-01)
|
|
3
36
|
|
|
4
37
|
|
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.
|
|
3
|
+
"version": "4.26.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,18 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.749",
|
|
22
22
|
"@solana/web3.js": "1.98.1",
|
|
23
23
|
"eventemitter3": "5.0.1",
|
|
24
24
|
"bs58": "5.0.0",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/solana-core": "4.
|
|
29
|
-
"@dynamic-labs/types": "4.
|
|
30
|
-
"@dynamic-labs/utils": "4.
|
|
31
|
-
"@dynamic-labs/waas": "4.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.26.0",
|
|
26
|
+
"@dynamic-labs/logger": "4.26.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.26.0",
|
|
28
|
+
"@dynamic-labs/solana-core": "4.26.0",
|
|
29
|
+
"@dynamic-labs/types": "4.26.0",
|
|
30
|
+
"@dynamic-labs/utils": "4.26.0",
|
|
31
|
+
"@dynamic-labs/waas": "4.26.0",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.26.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {}
|
|
35
35
|
}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var web3_js = require('@solana/web3.js');
|
|
8
|
+
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
8
9
|
var solanaCore = require('@dynamic-labs/solana-core');
|
|
9
10
|
var utils = require('@dynamic-labs/utils');
|
|
10
11
|
var waas = require('@dynamic-labs/waas');
|
|
11
12
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
12
|
-
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
13
13
|
var logger = require('../../utils/logger.cjs');
|
|
14
14
|
var DynamicWaasSVMSigner = require('../signer/DynamicWaasSVMSigner.cjs');
|
|
15
15
|
|
|
@@ -108,8 +108,10 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
108
108
|
? transaction.serializeMessage()
|
|
109
109
|
: transaction.message.serialize();
|
|
110
110
|
const messageToSign = Buffer.from(messageBytes).toString('hex');
|
|
111
|
+
const chainId = yield this.getNetwork(true);
|
|
111
112
|
const signature = yield walletClient.signTransaction({
|
|
112
113
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
114
|
+
chainId,
|
|
113
115
|
mfaToken,
|
|
114
116
|
senderAddress: this.activeAccountAddress,
|
|
115
117
|
signedSessionId,
|
|
@@ -261,6 +263,11 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
261
263
|
yield _super.endSession.call(this);
|
|
262
264
|
});
|
|
263
265
|
}
|
|
266
|
+
signMessageWithContext() {
|
|
267
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
throw new Error('Not implemented');
|
|
269
|
+
});
|
|
270
|
+
}
|
|
264
271
|
}
|
|
265
272
|
|
|
266
273
|
exports.DynamicWaasSVMConnector = DynamicWaasSVMConnector;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Connection, SendOptions, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
|
+
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
2
3
|
import { ISolanaSigner, SolanaWalletConnector, SolanaWalletConnectorOpts } from '@dynamic-labs/solana-core';
|
|
3
4
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
5
|
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
|
-
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
6
6
|
export type DynamicWaasSVMConnectorProps = SolanaWalletConnectorOpts & {
|
|
7
7
|
walletUiUtils: WalletUiUtils<InternalWalletConnector>;
|
|
8
8
|
};
|
|
@@ -111,5 +111,6 @@ export declare class DynamicWaasSVMConnector extends DynamicWaasSVMConnector_bas
|
|
|
111
111
|
}): Promise<void>;
|
|
112
112
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
113
113
|
endSession(): Promise<void>;
|
|
114
|
+
signMessageWithContext(): Promise<string>;
|
|
114
115
|
}
|
|
115
116
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import { Transaction, PublicKey } from '@solana/web3.js';
|
|
4
|
+
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
4
5
|
import { SolanaWalletConnector, SolanaUiTransaction } from '@dynamic-labs/solana-core';
|
|
5
6
|
import { DynamicError } from '@dynamic-labs/utils';
|
|
6
7
|
import { withDynamicWaas } from '@dynamic-labs/waas';
|
|
7
8
|
import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
9
9
|
import { logger } from '../../utils/logger.js';
|
|
10
10
|
import { DynamicWaasSVMSigner } from '../signer/DynamicWaasSVMSigner.js';
|
|
11
11
|
|
|
@@ -104,8 +104,10 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
104
104
|
? transaction.serializeMessage()
|
|
105
105
|
: transaction.message.serialize();
|
|
106
106
|
const messageToSign = Buffer.from(messageBytes).toString('hex');
|
|
107
|
+
const chainId = yield this.getNetwork(true);
|
|
107
108
|
const signature = yield walletClient.signTransaction({
|
|
108
109
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
110
|
+
chainId,
|
|
109
111
|
mfaToken,
|
|
110
112
|
senderAddress: this.activeAccountAddress,
|
|
111
113
|
signedSessionId,
|
|
@@ -257,6 +259,11 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
257
259
|
yield _super.endSession.call(this);
|
|
258
260
|
});
|
|
259
261
|
}
|
|
262
|
+
signMessageWithContext() {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
throw new Error('Not implemented');
|
|
265
|
+
});
|
|
266
|
+
}
|
|
260
267
|
}
|
|
261
268
|
|
|
262
269
|
export { DynamicWaasSVMConnector };
|