@dynamic-labs/ton 4.67.1 → 4.67.2
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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.cjs +76 -0
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.d.ts +17 -0
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.js +72 -0
- package/src/connectors/FallbackTonConnector/index.d.ts +1 -0
- package/src/index.cjs +6 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.67.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.1...v4.67.2) (2026-03-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* add fallback connectors for all chains and fix wallet.chain mismatch for SUI wallets ([#10629](https://github.com/dynamic-labs/dynamic-auth/issues/10629)) ([dcdf5fc](https://github.com/dynamic-labs/dynamic-auth/commit/dcdf5fc5c424379cde2eecfd2d3b14fb6fe3819b))
|
|
8
|
+
|
|
2
9
|
### [4.67.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.0...v4.67.1) (2026-03-10)
|
|
3
10
|
|
|
4
11
|
|
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.67.
|
|
3
|
+
"version": "4.67.2",
|
|
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.67.
|
|
22
|
-
"@dynamic-labs/logger": "4.67.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.67.2",
|
|
22
|
+
"@dynamic-labs/logger": "4.67.2",
|
|
23
23
|
"@dynamic-labs/sdk-api-core": "0.0.881",
|
|
24
|
-
"@dynamic-labs/types": "4.67.
|
|
25
|
-
"@dynamic-labs/utils": "4.67.
|
|
26
|
-
"@dynamic-labs/waas": "4.67.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.67.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.67.
|
|
24
|
+
"@dynamic-labs/types": "4.67.2",
|
|
25
|
+
"@dynamic-labs/utils": "4.67.2",
|
|
26
|
+
"@dynamic-labs/waas": "4.67.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.67.2",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.67.2",
|
|
29
29
|
"@ton/core": "0.62.0",
|
|
30
30
|
"@ton/crypto": "3.3.0",
|
|
31
31
|
"@ton/ton": "16.0.0",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var _tslib = require('../../../_virtual/_tslib.cjs');
|
|
7
|
+
var TonWalletConnector = require('../../TonWalletConnector.cjs');
|
|
8
|
+
|
|
9
|
+
class FallbackTonConnector extends TonWalletConnector.TonWalletConnector {
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super(opts);
|
|
12
|
+
this.name = 'Fallback Connector';
|
|
13
|
+
this.overrideKey = 'fallbackconnector';
|
|
14
|
+
this.isAvailable = false;
|
|
15
|
+
}
|
|
16
|
+
isInstalledOnBrowser() {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
connect() {
|
|
20
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
getAddress() {
|
|
25
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
+
signMessage(_message) {
|
|
31
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return '';
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
getConnectedAccounts() {
|
|
36
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return [];
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
endSession() {
|
|
41
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
getBalance() {
|
|
46
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
sendTransaction(
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
+
_request) {
|
|
53
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return '';
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
generateTonConnectProof(
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
+
_payload) {
|
|
60
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return {
|
|
62
|
+
address: '',
|
|
63
|
+
domain: { lengthBytes: 0, value: '' },
|
|
64
|
+
payload: '',
|
|
65
|
+
signature: '',
|
|
66
|
+
timestamp: 0,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
Object.defineProperty(FallbackTonConnector, 'key', {
|
|
72
|
+
value: 'fallbackconnector',
|
|
73
|
+
writable: false,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
exports.FallbackTonConnector = FallbackTonConnector;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TonWalletConnector } from '../../TonWalletConnector';
|
|
2
|
+
import { SendTransactionRequest, TonConnectConnectorOpts, TonConnectProof } from '../../types';
|
|
3
|
+
export declare class FallbackTonConnector extends TonWalletConnector {
|
|
4
|
+
name: string;
|
|
5
|
+
overrideKey: string;
|
|
6
|
+
isAvailable: boolean;
|
|
7
|
+
constructor(opts: TonConnectConnectorOpts);
|
|
8
|
+
isInstalledOnBrowser(): boolean;
|
|
9
|
+
connect(): Promise<void>;
|
|
10
|
+
getAddress(): Promise<string | undefined>;
|
|
11
|
+
signMessage(_message: string): Promise<string>;
|
|
12
|
+
getConnectedAccounts(): Promise<string[]>;
|
|
13
|
+
endSession(): Promise<void>;
|
|
14
|
+
getBalance(): Promise<string | undefined>;
|
|
15
|
+
sendTransaction(_request: SendTransactionRequest): Promise<string>;
|
|
16
|
+
generateTonConnectProof(_payload: string): Promise<TonConnectProof>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
3
|
+
import { TonWalletConnector } from '../../TonWalletConnector.js';
|
|
4
|
+
|
|
5
|
+
class FallbackTonConnector extends TonWalletConnector {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super(opts);
|
|
8
|
+
this.name = 'Fallback Connector';
|
|
9
|
+
this.overrideKey = 'fallbackconnector';
|
|
10
|
+
this.isAvailable = false;
|
|
11
|
+
}
|
|
12
|
+
isInstalledOnBrowser() {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
connect() {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
getAddress() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
|
+
signMessage(_message) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return '';
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getConnectedAccounts() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return [];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
endSession() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getBalance() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
sendTransaction(
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
_request) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return '';
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
generateTonConnectProof(
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
|
+
_payload) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
return {
|
|
58
|
+
address: '',
|
|
59
|
+
domain: { lengthBytes: 0, value: '' },
|
|
60
|
+
payload: '',
|
|
61
|
+
signature: '',
|
|
62
|
+
timestamp: 0,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
Object.defineProperty(FallbackTonConnector, 'key', {
|
|
68
|
+
value: 'fallbackconnector',
|
|
69
|
+
writable: false,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export { FallbackTonConnector };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FallbackTonConnector } from './FallbackTonConnector';
|
package/src/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
8
|
var fetchTonWalletConnectors = require('./utils/fetchTonWalletConnectors/fetchTonWalletConnectors.cjs');
|
|
9
9
|
var DynamicWaasTonConnectors = require('./waas/DynamicWaasTonConnectors.cjs');
|
|
10
|
+
var FallbackTonConnector = require('./connectors/FallbackTonConnector/FallbackTonConnector.cjs');
|
|
10
11
|
var TonWalletConnector = require('./TonWalletConnector.cjs');
|
|
11
12
|
var sdk = require('@tonconnect/sdk');
|
|
12
13
|
var TonWallet = require('./wallet/TonWallet/TonWallet.cjs');
|
|
@@ -28,7 +29,11 @@ require('@ton/ton');
|
|
|
28
29
|
var DynamicWaasTonConnector = require('./waas/connector/DynamicWaasTonConnector.cjs');
|
|
29
30
|
|
|
30
31
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/ton', _package.version);
|
|
31
|
-
const TonWalletConnectors = (props) => [
|
|
32
|
+
const TonWalletConnectors = (props) => [
|
|
33
|
+
...fetchTonWalletConnectors.fetchTonWalletConnectors(props),
|
|
34
|
+
...DynamicWaasTonConnectors.DynamicWaasTonConnectors(),
|
|
35
|
+
FallbackTonConnector.FallbackTonConnector,
|
|
36
|
+
];
|
|
32
37
|
|
|
33
38
|
exports.DynamicWaasTonConnectors = DynamicWaasTonConnectors.DynamicWaasTonConnectors;
|
|
34
39
|
exports.TonWalletConnector = TonWalletConnector.TonWalletConnector;
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WalletBookSchema } from '@dynamic-labs/wallet-book';
|
|
2
2
|
import type { GenericNetwork } from '@dynamic-labs/types';
|
|
3
|
+
import { FallbackTonConnector } from './connectors/FallbackTonConnector';
|
|
3
4
|
export { TonWalletConnector } from './TonWalletConnector';
|
|
4
5
|
export * from './types';
|
|
5
6
|
export { TonWallet, isTonWallet, WaasTonWallet } from './wallet';
|
|
@@ -11,4 +12,4 @@ export { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors';
|
|
|
11
12
|
export declare const TonWalletConnectors: (props: {
|
|
12
13
|
walletBook: WalletBookSchema;
|
|
13
14
|
tonNetworks?: GenericNetwork[];
|
|
14
|
-
}) => import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor[];
|
|
15
|
+
}) => (import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor | typeof FallbackTonConnector)[];
|
package/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { version } from '../package.js';
|
|
|
4
4
|
import { fetchTonWalletConnectors } from './utils/fetchTonWalletConnectors/fetchTonWalletConnectors.js';
|
|
5
5
|
import { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors.js';
|
|
6
6
|
export { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors.js';
|
|
7
|
+
import { FallbackTonConnector } from './connectors/FallbackTonConnector/FallbackTonConnector.js';
|
|
7
8
|
export { TonWalletConnector } from './TonWalletConnector.js';
|
|
8
9
|
export { CHAIN } from '@tonconnect/sdk';
|
|
9
10
|
export { TonWallet } from './wallet/TonWallet/TonWallet.js';
|
|
@@ -25,6 +26,10 @@ import '@ton/ton';
|
|
|
25
26
|
export { DynamicWaasTonConnector } from './waas/connector/DynamicWaasTonConnector.js';
|
|
26
27
|
|
|
27
28
|
assertPackageVersion('@dynamic-labs/ton', version);
|
|
28
|
-
const TonWalletConnectors = (props) => [
|
|
29
|
+
const TonWalletConnectors = (props) => [
|
|
30
|
+
...fetchTonWalletConnectors(props),
|
|
31
|
+
...DynamicWaasTonConnectors(),
|
|
32
|
+
FallbackTonConnector,
|
|
33
|
+
];
|
|
29
34
|
|
|
30
35
|
export { TonWalletConnectors };
|