@dynamic-labs/ethereum 2.1.0-alpha.23 → 2.1.0-alpha.24
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,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.1.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.23...v2.1.0-alpha.24) (2024-05-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add onMfaCompleteOnce to useMfa ([#5702](https://github.com/dynamic-labs/DynamicAuth/issues/5702)) ([6451e33](https://github.com/dynamic-labs/DynamicAuth/commit/6451e3369ef1b4ba116378f0dd3fe4e82007e670))
|
|
8
|
+
* prompt custom fields during onboarding ([#5302](https://github.com/dynamic-labs/DynamicAuth/issues/5302)) ([8664223](https://github.com/dynamic-labs/DynamicAuth/commit/86642232cf2b490a820169f48ba8dc093010e1a0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* correct text on pending signature screen to match the embedded widget modal text ([#5707](https://github.com/dynamic-labs/DynamicAuth/issues/5707)) ([44a6a06](https://github.com/dynamic-labs/DynamicAuth/commit/44a6a0664e08d4b9fc25dd86c0e30f8d585558e0))
|
|
14
|
+
* pass captcha token for farcaster login ([#5706](https://github.com/dynamic-labs/DynamicAuth/issues/5706)) ([32bcb6e](https://github.com/dynamic-labs/DynamicAuth/commit/32bcb6e0e06c6e273c07f32893dfd550deeb6a19))
|
|
15
|
+
* use coinbase provider to get connected accounts for consistency ([#5711](https://github.com/dynamic-labs/DynamicAuth/issues/5711)) ([b9e9170](https://github.com/dynamic-labs/DynamicAuth/commit/b9e9170dad1ac27a85a44a7177b82055ce0035cb))
|
|
16
|
+
|
|
2
17
|
## [2.1.0-alpha.23](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.22...v2.1.0-alpha.23) (2024-05-23)
|
|
3
18
|
|
|
4
19
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.24",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/dynamic-labs/
|
|
6
|
+
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
7
7
|
"directory": "packages/ethereum"
|
|
8
8
|
},
|
|
9
9
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
29
|
+
"@dynamic-labs/sdk-api-core": "0.0.453",
|
|
30
30
|
"@coinbase/wallet-sdk": "4.0.0-beta.14",
|
|
31
31
|
"@walletconnect/ethereum-provider": "2.11.2",
|
|
32
32
|
"eventemitter3": "5.0.1",
|
|
33
33
|
"buffer": "6.0.3",
|
|
34
|
-
"@dynamic-labs/rpc-provider-ethereum": "2.1.0-alpha.
|
|
35
|
-
"@dynamic-labs/turnkey": "2.1.0-alpha.
|
|
36
|
-
"@dynamic-labs/types": "2.1.0-alpha.
|
|
37
|
-
"@dynamic-labs/utils": "2.1.0-alpha.
|
|
38
|
-
"@dynamic-labs/viem-utils": "2.1.0-alpha.
|
|
39
|
-
"@dynamic-labs/wallet-book": "2.1.0-alpha.
|
|
40
|
-
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.
|
|
34
|
+
"@dynamic-labs/rpc-provider-ethereum": "2.1.0-alpha.24",
|
|
35
|
+
"@dynamic-labs/turnkey": "2.1.0-alpha.24",
|
|
36
|
+
"@dynamic-labs/types": "2.1.0-alpha.24",
|
|
37
|
+
"@dynamic-labs/utils": "2.1.0-alpha.24",
|
|
38
|
+
"@dynamic-labs/viem-utils": "2.1.0-alpha.24",
|
|
39
|
+
"@dynamic-labs/wallet-book": "2.1.0-alpha.24",
|
|
40
|
+
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.24",
|
|
41
41
|
"stream": "0.0.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -28,6 +28,13 @@ class Coinbase extends EthWalletConnector.EthWalletConnector {
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
+
getConnectedAccounts() {
|
|
32
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return this.coinbaseProvider.request({
|
|
34
|
+
method: 'eth_accounts',
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
31
38
|
getAddress() {
|
|
32
39
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
33
40
|
const [address] = yield this.coinbaseProvider.request({
|
|
@@ -10,6 +10,7 @@ export declare class Coinbase extends EthWalletConnector {
|
|
|
10
10
|
canConnectViaCustodialService: boolean;
|
|
11
11
|
private coinbaseProvider;
|
|
12
12
|
constructor({ appName, appLogoUrl, evmNetworks, coinbaseWalletPreference, ...props }: CoinbaseOpts);
|
|
13
|
+
getConnectedAccounts(): Promise<string[]>;
|
|
13
14
|
getAddress(): Promise<string | undefined>;
|
|
14
15
|
signMessage(messageToSign: string): Promise<string | undefined>;
|
|
15
16
|
setupEventListeners(): void;
|
package/src/coinbase/coinbase.js
CHANGED
|
@@ -24,6 +24,13 @@ class Coinbase extends EthWalletConnector {
|
|
|
24
24
|
},
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
getConnectedAccounts() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return this.coinbaseProvider.request({
|
|
30
|
+
method: 'eth_accounts',
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
27
34
|
getAddress() {
|
|
28
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
36
|
const [address] = yield this.coinbaseProvider.request({
|
|
@@ -11,7 +11,7 @@ var InjectedWalletBase = require('./InjectedWalletBase.cjs');
|
|
|
11
11
|
class PhantomEvm extends InjectedWalletBase {
|
|
12
12
|
constructor(props) {
|
|
13
13
|
super(props);
|
|
14
|
-
this.name = '
|
|
14
|
+
this.name = 'Phantom';
|
|
15
15
|
this.overrideKey = 'phantomevm';
|
|
16
16
|
this.wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
|
|
17
17
|
}
|
|
@@ -7,7 +7,7 @@ import InjectedWalletBase from './InjectedWalletBase.js';
|
|
|
7
7
|
class PhantomEvm extends InjectedWalletBase {
|
|
8
8
|
constructor(props) {
|
|
9
9
|
super(props);
|
|
10
|
-
this.name = '
|
|
10
|
+
this.name = 'Phantom';
|
|
11
11
|
this.overrideKey = 'phantomevm';
|
|
12
12
|
this.wallet = findWalletBookWallet(this.walletBook, this.key);
|
|
13
13
|
}
|