@dynamic-labs/ton 4.59.2 → 4.60.1
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,29 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.60.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.60.0...v4.60.1) (2026-02-09)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add WAAS password handlers to DynamicContextProvider settings ([#10360](https://github.com/dynamic-labs/dynamic-auth/issues/10360)) ([5fc3fa7](https://github.com/dynamic-labs/dynamic-auth/commit/5fc3fa7148c53b64d36672be2d1ae629cb9cdaf8))
|
|
8
|
+
* improve password handling and UI for wallet protection ([#10386](https://github.com/dynamic-labs/dynamic-auth/issues/10386)) ([d27936e](https://github.com/dynamic-labs/dynamic-auth/commit/d27936e5bea37facceefccc0f2507d25a775ad33))
|
|
9
|
+
* pass authToken to wallet recovery operations ([#10379](https://github.com/dynamic-labs/dynamic-auth/issues/10379)) ([294efc7](https://github.com/dynamic-labs/dynamic-auth/commit/294efc7ab5816f63b7e5cc49a150cf9d34d300af))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* override fast-xml-parser to 5.3.4 for CVE-2026-25128 ([#10381](https://github.com/dynamic-labs/dynamic-auth/issues/10381)) ([7fb4c22](https://github.com/dynamic-labs/dynamic-auth/commit/7fb4c221252b84bf38bbdab0b37b8f9a981ebe1a))
|
|
15
|
+
* unlock wallet view error handling and password error UI ([#10388](https://github.com/dynamic-labs/dynamic-auth/issues/10388)) ([5ffc8e1](https://github.com/dynamic-labs/dynamic-auth/commit/5ffc8e1e6dd0d7f32bb94c37ce3674be949f010b))
|
|
16
|
+
|
|
17
|
+
## [4.60.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.2...v4.60.0) (2026-02-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add prompt to unlock wallet when getting encrypted shares ([#10333](https://github.com/dynamic-labs/dynamic-auth/issues/10333)) ([7009dfa](https://github.com/dynamic-labs/dynamic-auth/commit/7009dfa315538f4f4ad27ff37e7902f10e1cf019))
|
|
23
|
+
* add stellar sendBalance method ([#10310](https://github.com/dynamic-labs/dynamic-auth/issues/10310)) ([c083ea0](https://github.com/dynamic-labs/dynamic-auth/commit/c083ea0a7caa0cb9095d32897acf677c1b661cb4))
|
|
24
|
+
* **webview-controller:** add DelegatedAccessController ([#10348](https://github.com/dynamic-labs/dynamic-auth/issues/10348)) ([57599e4](https://github.com/dynamic-labs/dynamic-auth/commit/57599e4dd1ad6f4b22f98d49d7fae1a724b719ee))
|
|
25
|
+
* **webview-messages:** add DelegatedAccessMessages types ([#10347](https://github.com/dynamic-labs/dynamic-auth/issues/10347)) ([b0a1275](https://github.com/dynamic-labs/dynamic-auth/commit/b0a12759016fa6f8a76753c2394d589acb18ccf1))
|
|
26
|
+
|
|
2
27
|
### [4.59.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.59.1...v4.59.2) (2026-02-03)
|
|
3
28
|
|
|
4
29
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ton",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.1",
|
|
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,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
22
|
-
"@dynamic-labs/logger": "4.
|
|
23
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
24
|
-
"@dynamic-labs/types": "4.
|
|
25
|
-
"@dynamic-labs/utils": "4.
|
|
26
|
-
"@dynamic-labs/waas": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.60.1",
|
|
22
|
+
"@dynamic-labs/logger": "4.60.1",
|
|
23
|
+
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
24
|
+
"@dynamic-labs/types": "4.60.1",
|
|
25
|
+
"@dynamic-labs/utils": "4.60.1",
|
|
26
|
+
"@dynamic-labs/waas": "4.60.1",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.60.1",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.60.1",
|
|
29
29
|
"@ton/core": "0.62.0",
|
|
30
30
|
"@ton/crypto": "3.3.0",
|
|
31
31
|
"@ton/ton": "16.0.0",
|
|
@@ -9,20 +9,20 @@ var sdkApiCore = require('@dynamic-labs/sdk-api-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 TonUiTransaction = require('../../utils/TonUiTransaction/TonUiTransaction.cjs');
|
|
13
12
|
var TonWalletConnector = require('../../TonWalletConnector.cjs');
|
|
13
|
+
var TonUiTransaction = require('../../utils/TonUiTransaction/TonUiTransaction.cjs');
|
|
14
14
|
var convertSendTransactionRequest = require('../../utils/convertSendTransactionRequest/convertSendTransactionRequest.cjs');
|
|
15
|
+
var createWalletStateInit = require('../../utils/createWalletStateInit/createWalletStateInit.cjs');
|
|
15
16
|
var executeTransaction = require('../../utils/executeTransaction/executeTransaction.cjs');
|
|
16
17
|
var extractDisplayInfoFromRequest = require('../../utils/extractDisplayInfoFromRequest/extractDisplayInfoFromRequest.cjs');
|
|
17
18
|
var generateTonConnectProofHash = require('../../utils/generateTonConnectProofHash/generateTonConnectProofHash.cjs');
|
|
18
19
|
var getWalletSeqno = require('../../utils/getWalletSeqno/getWalletSeqno.cjs');
|
|
20
|
+
var isWalletDeployed = require('../../utils/isWalletDeployed/isWalletDeployed.cjs');
|
|
21
|
+
var logger = require('../../utils/logger/logger.cjs');
|
|
19
22
|
var prepareJettonTransfer = require('../../utils/prepareJettonTransfer/prepareJettonTransfer.cjs');
|
|
20
|
-
var prepareTransaction = require('../../utils/prepareTransaction/prepareTransaction.cjs');
|
|
21
23
|
var prepareTonTransfer = require('../../utils/prepareTonTransfer/prepareTonTransfer.cjs');
|
|
22
|
-
var
|
|
24
|
+
var prepareTransaction = require('../../utils/prepareTransaction/prepareTransaction.cjs');
|
|
23
25
|
var WaasTonWallet = require('../../wallet/WaasTonWallet.cjs');
|
|
24
|
-
var isWalletDeployed = require('../../utils/isWalletDeployed/isWalletDeployed.cjs');
|
|
25
|
-
var createWalletStateInit = require('../../utils/createWalletStateInit/createWalletStateInit.cjs');
|
|
26
26
|
var logger$1 = require('@dynamic-labs/logger');
|
|
27
27
|
|
|
28
28
|
class DynamicWaasTonConnector extends waas.withDynamicWaas(TonWalletConnector.TonWalletConnector) {
|
|
@@ -165,11 +165,15 @@ class DynamicWaasTonConnector extends waas.withDynamicWaas(TonWalletConnector.To
|
|
|
165
165
|
const mfaToken = yield ((_a = this.getMfaToken) === null || _a === void 0 ? void 0 : _a.call(this, {
|
|
166
166
|
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
167
167
|
}));
|
|
168
|
+
const password = yield this.getPasswordIfNeeded({
|
|
169
|
+
accountAddress: this.activeAccountAddress,
|
|
170
|
+
});
|
|
168
171
|
const signedMessage = yield walletClient.signMessage({
|
|
169
172
|
accountAddress: this.activeAccountAddress,
|
|
170
173
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
171
174
|
message,
|
|
172
175
|
mfaToken,
|
|
176
|
+
password,
|
|
173
177
|
signedSessionId,
|
|
174
178
|
});
|
|
175
179
|
return signedMessage;
|
|
@@ -248,9 +252,13 @@ class DynamicWaasTonConnector extends waas.withDynamicWaas(TonWalletConnector.To
|
|
|
248
252
|
const mfaToken = yield ((_a = this.getMfaToken) === null || _a === void 0 ? void 0 : _a.call(this, {
|
|
249
253
|
mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
|
|
250
254
|
}));
|
|
255
|
+
const password = yield this.getPasswordIfNeeded({
|
|
256
|
+
accountAddress: this.activeAccountAddress,
|
|
257
|
+
});
|
|
251
258
|
const signature = yield walletClient.signTransaction({
|
|
252
259
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
253
260
|
mfaToken,
|
|
261
|
+
password,
|
|
254
262
|
senderAddress: this.activeAccountAddress,
|
|
255
263
|
signedSessionId,
|
|
256
264
|
transaction: hashToSignHex,
|
|
@@ -3,7 +3,7 @@ import { JwtVerifiedCredential, MFAAction, SignMessageContext } from '@dynamic-l
|
|
|
3
3
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
4
|
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { TonWalletConnector } from '../../TonWalletConnector';
|
|
6
|
-
import { SendTransactionRequest,
|
|
6
|
+
import { SendTransactionRequest, TonConnectConnectorOpts, TonConnectProof } from '../../types';
|
|
7
7
|
import { Logger } from '../../utils/logger/logger';
|
|
8
8
|
import { WaasTonWallet } from '../../wallet/WaasTonWallet';
|
|
9
9
|
export type DynamicWaasTonConnectorProps = TonConnectConnectorOpts & {
|
|
@@ -18,6 +18,7 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
|
|
|
18
18
|
getMfaToken?: ((props?: {
|
|
19
19
|
mfaAction?: MFAAction | undefined;
|
|
20
20
|
} | undefined) => Promise<string | undefined>) | undefined;
|
|
21
|
+
getWalletPassword?: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn | undefined;
|
|
21
22
|
getAuthToken?: (() => string) | undefined;
|
|
22
23
|
environmentId?: string | undefined;
|
|
23
24
|
baseApiUrl?: string | undefined;
|
|
@@ -34,6 +35,10 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
|
|
|
34
35
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
35
36
|
mfaAction?: MFAAction | undefined;
|
|
36
37
|
} | undefined) => Promise<string | undefined>): void;
|
|
38
|
+
setGetWalletPasswordFunction(getWalletPassword: import("@dynamic-labs/wallet-connector-core").GetWalletPasswordFn): void;
|
|
39
|
+
getPasswordIfNeeded({ accountAddress, }: {
|
|
40
|
+
accountAddress: string;
|
|
41
|
+
}): Promise<string | undefined>;
|
|
37
42
|
setEnvironmentId(environmentId: string): void;
|
|
38
43
|
setBaseApiUrl(baseApiUrl: string): void;
|
|
39
44
|
setBaseClientKeysharesRelayApiUrl(baseClientKeysharesRelayApiUrl?: string | undefined): void;
|
|
@@ -106,7 +111,7 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
|
|
|
106
111
|
}): Promise<void>;
|
|
107
112
|
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
108
113
|
accountAddress: string;
|
|
109
|
-
existingPassword
|
|
114
|
+
existingPassword?: string | undefined;
|
|
110
115
|
newPassword: string;
|
|
111
116
|
}): Promise<void>;
|
|
112
117
|
signRawMessage({ accountAddress, message, password, }: {
|
|
@@ -116,10 +121,11 @@ declare const DynamicWaasTonConnector_base: (abstract new (...args: any[]) => {
|
|
|
116
121
|
}): Promise<string>;
|
|
117
122
|
unlockWallet({ accountAddress, password, }: {
|
|
118
123
|
accountAddress: string;
|
|
119
|
-
password
|
|
124
|
+
password?: string | undefined;
|
|
120
125
|
}): Promise<import("@dynamic-labs-wallet/core").GetWalletResponse>;
|
|
121
|
-
getWalletRecoveryState({ accountAddress, }: {
|
|
126
|
+
getWalletRecoveryState({ accountAddress, signedSessionId, }: {
|
|
122
127
|
accountAddress: string;
|
|
128
|
+
signedSessionId: string;
|
|
123
129
|
}): Promise<import("@dynamic-labs-wallet/core").WalletRecoveryState>;
|
|
124
130
|
endSession(): Promise<void>;
|
|
125
131
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
@@ -5,20 +5,20 @@ import { MFAAction } from '@dynamic-labs/sdk-api-core';
|
|
|
5
5
|
import { DynamicError, PlatformService } from '@dynamic-labs/utils';
|
|
6
6
|
import { withDynamicWaas } from '@dynamic-labs/waas';
|
|
7
7
|
import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
|
|
8
|
-
import { TonUiTransaction, NANOTON_PER_TON } from '../../utils/TonUiTransaction/TonUiTransaction.js';
|
|
9
8
|
import { TonWalletConnector } from '../../TonWalletConnector.js';
|
|
9
|
+
import { TonUiTransaction, NANOTON_PER_TON } from '../../utils/TonUiTransaction/TonUiTransaction.js';
|
|
10
10
|
import { convertSendTransactionRequest } from '../../utils/convertSendTransactionRequest/convertSendTransactionRequest.js';
|
|
11
|
+
import { createWalletStateInit } from '../../utils/createWalletStateInit/createWalletStateInit.js';
|
|
11
12
|
import { executeTransaction } from '../../utils/executeTransaction/executeTransaction.js';
|
|
12
13
|
import { extractDisplayInfoFromRequest } from '../../utils/extractDisplayInfoFromRequest/extractDisplayInfoFromRequest.js';
|
|
13
14
|
import { generateTonConnectProofHash } from '../../utils/generateTonConnectProofHash/generateTonConnectProofHash.js';
|
|
14
15
|
import { getWalletSeqno } from '../../utils/getWalletSeqno/getWalletSeqno.js';
|
|
16
|
+
import { isWalletDeployed } from '../../utils/isWalletDeployed/isWalletDeployed.js';
|
|
17
|
+
import { logger } from '../../utils/logger/logger.js';
|
|
15
18
|
import { prepareJettonTransfer } from '../../utils/prepareJettonTransfer/prepareJettonTransfer.js';
|
|
16
|
-
import { prepareTransaction } from '../../utils/prepareTransaction/prepareTransaction.js';
|
|
17
19
|
import { prepareTonTransfer } from '../../utils/prepareTonTransfer/prepareTonTransfer.js';
|
|
18
|
-
import {
|
|
20
|
+
import { prepareTransaction } from '../../utils/prepareTransaction/prepareTransaction.js';
|
|
19
21
|
import { WaasTonWallet } from '../../wallet/WaasTonWallet.js';
|
|
20
|
-
import { isWalletDeployed } from '../../utils/isWalletDeployed/isWalletDeployed.js';
|
|
21
|
-
import { createWalletStateInit } from '../../utils/createWalletStateInit/createWalletStateInit.js';
|
|
22
22
|
import { Logger } from '@dynamic-labs/logger';
|
|
23
23
|
|
|
24
24
|
class DynamicWaasTonConnector extends withDynamicWaas(TonWalletConnector) {
|
|
@@ -161,11 +161,15 @@ class DynamicWaasTonConnector extends withDynamicWaas(TonWalletConnector) {
|
|
|
161
161
|
const mfaToken = yield ((_a = this.getMfaToken) === null || _a === void 0 ? void 0 : _a.call(this, {
|
|
162
162
|
mfaAction: MFAAction.WalletWaasSign,
|
|
163
163
|
}));
|
|
164
|
+
const password = yield this.getPasswordIfNeeded({
|
|
165
|
+
accountAddress: this.activeAccountAddress,
|
|
166
|
+
});
|
|
164
167
|
const signedMessage = yield walletClient.signMessage({
|
|
165
168
|
accountAddress: this.activeAccountAddress,
|
|
166
169
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
167
170
|
message,
|
|
168
171
|
mfaToken,
|
|
172
|
+
password,
|
|
169
173
|
signedSessionId,
|
|
170
174
|
});
|
|
171
175
|
return signedMessage;
|
|
@@ -244,9 +248,13 @@ class DynamicWaasTonConnector extends withDynamicWaas(TonWalletConnector) {
|
|
|
244
248
|
const mfaToken = yield ((_a = this.getMfaToken) === null || _a === void 0 ? void 0 : _a.call(this, {
|
|
245
249
|
mfaAction: MFAAction.WalletWaasSign,
|
|
246
250
|
}));
|
|
251
|
+
const password = yield this.getPasswordIfNeeded({
|
|
252
|
+
accountAddress: this.activeAccountAddress,
|
|
253
|
+
});
|
|
247
254
|
const signature = yield walletClient.signTransaction({
|
|
248
255
|
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
249
256
|
mfaToken,
|
|
257
|
+
password,
|
|
250
258
|
senderAddress: this.activeAccountAddress,
|
|
251
259
|
signedSessionId,
|
|
252
260
|
transaction: hashToSignHex,
|