@dynamic-labs/ethereum 4.0.0-alpha.27 → 4.0.0-alpha.29
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/injected/InjectedWalletBase.cjs +2 -2
- package/src/injected/InjectedWalletBase.js +2 -2
- package/src/injected/fetchInjectedWalletConnectors.cjs +2 -1
- package/src/injected/fetchInjectedWalletConnectors.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.29](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2024-11-07)
|
|
3
|
+
|
|
4
|
+
## [4.0.0-alpha.28](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2024-11-07)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### ⚠ BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* upgrade to starknet v6
|
|
10
|
+
See this guide for more details: https://starknetjs.com/docs/guides/migrate/
|
|
11
|
+
There are no code changes required on the Dynamic SDK side, however if you have installed the `starknet` package, you will need to upgrade to >= v6.11.0.
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* new transaction modal and ui for sign/signAll ([#7296](https://github.com/dynamic-labs/dynamic-auth/issues/7296)) ([05a8af1](https://github.com/dynamic-labs/dynamic-auth/commit/05a8af1eb772b2b8087ed96a54caf4b6ae8b79d2)), closes [#7297](https://github.com/dynamic-labs/dynamic-auth/issues/7297) [#7298](https://github.com/dynamic-labs/dynamic-auth/issues/7298)
|
|
16
|
+
* upgrade to starknet v6 ([#7189](https://github.com/dynamic-labs/dynamic-auth/issues/7189)) ([2a6e24e](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e24e4178fcee671b381c28f6a681f4ce52c62))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* transaction confirmation modal popup ([#7368](https://github.com/dynamic-labs/dynamic-auth/issues/7368)) ([3c48658](https://github.com/dynamic-labs/dynamic-auth/commit/3c48658a62874d908bba8f06fb092ff5983ede16))
|
|
22
|
+
|
|
2
23
|
## [4.0.0-alpha.27](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2024-11-06)
|
|
3
24
|
|
|
4
25
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.29",
|
|
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",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"@walletconnect/types": "2.10.6",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"buffer": "6.0.3",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/embedded-wallet-evm": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.29",
|
|
27
|
+
"@dynamic-labs/embedded-wallet-evm": "4.0.0-alpha.29",
|
|
28
|
+
"@dynamic-labs/ethereum-core": "4.0.0-alpha.29",
|
|
29
|
+
"@dynamic-labs/types": "4.0.0-alpha.29",
|
|
30
|
+
"@dynamic-labs/utils": "4.0.0-alpha.29",
|
|
31
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.29",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.29"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"viem": "^2.7.6"
|
|
@@ -30,7 +30,7 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
|
|
|
30
30
|
return this.ethProviderHelper;
|
|
31
31
|
}
|
|
32
32
|
getMobileOrInstalledWallet() {
|
|
33
|
-
var _a
|
|
33
|
+
var _a;
|
|
34
34
|
if (!this.wallet) {
|
|
35
35
|
this.wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
|
|
36
36
|
}
|
|
@@ -40,7 +40,7 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
|
|
|
40
40
|
// this is to handle the case where the user is in a webview.
|
|
41
41
|
// when the user is in a webview, customers should set the deepLinkPreference prop to universal,
|
|
42
42
|
// in which case this condition will be false, and the SDK will use WalletConnect (if available)
|
|
43
|
-
if (((
|
|
43
|
+
if (((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
|
|
44
44
|
this.mobileExperience === 'in-app-browser' &&
|
|
45
45
|
utils.isMobile()) {
|
|
46
46
|
return this;
|
|
@@ -26,7 +26,7 @@ class InjectedWalletBase extends EthereumWalletConnector {
|
|
|
26
26
|
return this.ethProviderHelper;
|
|
27
27
|
}
|
|
28
28
|
getMobileOrInstalledWallet() {
|
|
29
|
-
var _a
|
|
29
|
+
var _a;
|
|
30
30
|
if (!this.wallet) {
|
|
31
31
|
this.wallet = findWalletBookWallet(this.walletBook, this.key);
|
|
32
32
|
}
|
|
@@ -36,7 +36,7 @@ class InjectedWalletBase extends EthereumWalletConnector {
|
|
|
36
36
|
// this is to handle the case where the user is in a webview.
|
|
37
37
|
// when the user is in a webview, customers should set the deepLinkPreference prop to universal,
|
|
38
38
|
// in which case this condition will be false, and the SDK will use WalletConnect (if available)
|
|
39
|
-
if (((
|
|
39
|
+
if (((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
|
|
40
40
|
this.mobileExperience === 'in-app-browser' &&
|
|
41
41
|
isMobile()) {
|
|
42
42
|
return this;
|
|
@@ -17,6 +17,7 @@ const filteredInjectedWalletKeysOverrides = [
|
|
|
17
17
|
'phantomevm',
|
|
18
18
|
'coinbase',
|
|
19
19
|
'exodusevm',
|
|
20
|
+
'abstract',
|
|
20
21
|
];
|
|
21
22
|
const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
22
23
|
var _a;
|
|
@@ -48,7 +49,7 @@ const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
|
48
49
|
if (this.isInstalledOnBrowser()) {
|
|
49
50
|
return _super.getAddress.call(this);
|
|
50
51
|
}
|
|
51
|
-
const inAppBrowserBase = (_a = this.
|
|
52
|
+
const inAppBrowserBase = (_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl;
|
|
52
53
|
if (!inAppBrowserBase) {
|
|
53
54
|
const error = new Error(`No inAppBrowserBase found for ${this.name}.`);
|
|
54
55
|
walletConnectorCore.logger.error(error.message);
|
|
@@ -13,6 +13,7 @@ const filteredInjectedWalletKeysOverrides = [
|
|
|
13
13
|
'phantomevm',
|
|
14
14
|
'coinbase',
|
|
15
15
|
'exodusevm',
|
|
16
|
+
'abstract',
|
|
16
17
|
];
|
|
17
18
|
const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
18
19
|
var _a;
|
|
@@ -44,7 +45,7 @@ const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
|
44
45
|
if (this.isInstalledOnBrowser()) {
|
|
45
46
|
return _super.getAddress.call(this);
|
|
46
47
|
}
|
|
47
|
-
const inAppBrowserBase = (_a = this.
|
|
48
|
+
const inAppBrowserBase = (_a = this._metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl;
|
|
48
49
|
if (!inAppBrowserBase) {
|
|
49
50
|
const error = new Error(`No inAppBrowserBase found for ${this.name}.`);
|
|
50
51
|
logger.error(error.message);
|