@dynamic-labs/ethereum 4.25.0 → 4.25.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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/coinbase/coinbase.cjs +14 -0
- package/src/coinbase/coinbase.d.ts +1 -1
- package/src/coinbase/coinbase.js +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.0...v4.25.1) (2025-07-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add passkey sign in react hook ([#9188](https://github.com/dynamic-labs/dynamic-auth/issues/9188)) ([9d36886](https://github.com/dynamic-labs/dynamic-auth/commit/9d368860ca097777addf5e6f7e57c039cfbbb503))
|
|
8
|
+
* add support for social redirect with iframe-setup ([#9193](https://github.com/dynamic-labs/dynamic-auth/issues/9193)) ([fdfb321](https://github.com/dynamic-labs/dynamic-auth/commit/fdfb321220185d56d061342782754ad72e4b404e))
|
|
9
|
+
* update Argent wallet names to Ready branding ([#9142](https://github.com/dynamic-labs/dynamic-auth/issues/9142)) ([194e4cf](https://github.com/dynamic-labs/dynamic-auth/commit/194e4cf68ede58e2d38c6c720c01428b4e79cdf3))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* show hcaptcha for email and sms headless ([#9187](https://github.com/dynamic-labs/dynamic-auth/issues/9187)) ([9fa0860](https://github.com/dynamic-labs/dynamic-auth/commit/9fa086015196ff2c043d88e23f029964ddee92ab))
|
|
15
|
+
|
|
2
16
|
## [4.25.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.24.0...v4.25.0) (2025-07-17)
|
|
3
17
|
|
|
4
18
|
|
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.25.
|
|
3
|
+
"version": "4.25.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",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"eventemitter3": "5.0.1",
|
|
24
24
|
"buffer": "6.0.3",
|
|
25
25
|
"@metamask/sdk": "0.33.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
27
|
-
"@dynamic-labs/embedded-wallet-evm": "4.25.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.25.
|
|
29
|
-
"@dynamic-labs/logger": "4.25.
|
|
30
|
-
"@dynamic-labs/rpc-providers": "4.25.
|
|
31
|
-
"@dynamic-labs/types": "4.25.
|
|
32
|
-
"@dynamic-labs/utils": "4.25.
|
|
33
|
-
"@dynamic-labs/waas-evm": "4.25.
|
|
34
|
-
"@dynamic-labs/wallet-book": "4.25.
|
|
35
|
-
"@dynamic-labs/wallet-connector-core": "4.25.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.25.1",
|
|
27
|
+
"@dynamic-labs/embedded-wallet-evm": "4.25.1",
|
|
28
|
+
"@dynamic-labs/ethereum-core": "4.25.1",
|
|
29
|
+
"@dynamic-labs/logger": "4.25.1",
|
|
30
|
+
"@dynamic-labs/rpc-providers": "4.25.1",
|
|
31
|
+
"@dynamic-labs/types": "4.25.1",
|
|
32
|
+
"@dynamic-labs/utils": "4.25.1",
|
|
33
|
+
"@dynamic-labs/waas-evm": "4.25.1",
|
|
34
|
+
"@dynamic-labs/wallet-book": "4.25.1",
|
|
35
|
+
"@dynamic-labs/wallet-connector-core": "4.25.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"viem": "^2.28.4"
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var viem = require('viem');
|
|
8
8
|
var ethereumCore = require('@dynamic-labs/ethereum-core');
|
|
9
|
+
var utils = require('@dynamic-labs/utils');
|
|
9
10
|
var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
10
11
|
var helpers = require('./helpers.cjs');
|
|
11
12
|
|
|
@@ -50,6 +51,19 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
|
|
|
50
51
|
}
|
|
51
52
|
getAddress() {
|
|
52
53
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
var _a;
|
|
55
|
+
if (utils.isMobile() &&
|
|
56
|
+
!this.isInstalledOnBrowser() &&
|
|
57
|
+
((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
|
|
58
|
+
this.mobileExperience === 'in-app-browser') {
|
|
59
|
+
const inAppBrowserCompiledTemplate = utils.template(this.metadata.inAppBrowserUrl);
|
|
60
|
+
const { href } = utils.PlatformService.getUrl();
|
|
61
|
+
const deepLink = inAppBrowserCompiledTemplate({
|
|
62
|
+
encodedDappURI: encodeURIComponent(href),
|
|
63
|
+
});
|
|
64
|
+
utils.PlatformService.openURL(deepLink);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
53
67
|
const [address] = (yield this.coinbaseProvider.request({
|
|
54
68
|
method: 'eth_requestAccounts',
|
|
55
69
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WalletClient, Account, Transport, Chain as ViemChain } from 'viem';
|
|
2
1
|
import { ProviderInterface } from '@coinbase/wallet-sdk';
|
|
2
|
+
import { Account, Transport, Chain as ViemChain, WalletClient } from 'viem';
|
|
3
3
|
import { EthereumWalletConnector } from '@dynamic-labs/ethereum-core';
|
|
4
4
|
import { CoinbaseOpts, GetCoinbaseProviderOpts } from './types';
|
|
5
5
|
export declare class Coinbase extends EthereumWalletConnector {
|
package/src/coinbase/coinbase.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { __rest, __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import { toHex, toBytes, createWalletClient, custom } from 'viem';
|
|
4
4
|
import { EthereumWalletConnector, chainsMap } from '@dynamic-labs/ethereum-core';
|
|
5
|
+
import { isMobile, template, PlatformService } from '@dynamic-labs/utils';
|
|
5
6
|
import { eventListenerHandlers } from '@dynamic-labs/wallet-connector-core';
|
|
6
7
|
import { getCoinbaseProvider } from './helpers.js';
|
|
7
8
|
|
|
@@ -46,6 +47,19 @@ class Coinbase extends EthereumWalletConnector {
|
|
|
46
47
|
}
|
|
47
48
|
getAddress() {
|
|
48
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
var _a;
|
|
51
|
+
if (isMobile() &&
|
|
52
|
+
!this.isInstalledOnBrowser() &&
|
|
53
|
+
((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) &&
|
|
54
|
+
this.mobileExperience === 'in-app-browser') {
|
|
55
|
+
const inAppBrowserCompiledTemplate = template(this.metadata.inAppBrowserUrl);
|
|
56
|
+
const { href } = PlatformService.getUrl();
|
|
57
|
+
const deepLink = inAppBrowserCompiledTemplate({
|
|
58
|
+
encodedDappURI: encodeURIComponent(href),
|
|
59
|
+
});
|
|
60
|
+
PlatformService.openURL(deepLink);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
49
63
|
const [address] = (yield this.coinbaseProvider.request({
|
|
50
64
|
method: 'eth_requestAccounts',
|
|
51
65
|
}));
|