@dynamic-labs/ethereum 4.9.1-preview.0 → 4.9.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 +11 -2
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -9
- package/src/EthereumWalletConnectors.cjs +1 -2
- package/src/EthereumWalletConnectors.js +1 -2
- package/src/injected/InjectedWalletBase.cjs +2 -2
- package/src/injected/InjectedWalletBase.js +2 -2
- package/src/metaMask/MetaMaskConnector.cjs +0 -3
- package/src/metaMask/MetaMaskConnector.d.ts +0 -1
- package/src/metaMask/MetaMaskConnector.js +0 -3
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.d.ts +1 -2
- package/src/walletConnect/index.d.ts +1 -1
- package/src/walletConnect/utils/fetchWalletConnectWallets.cjs +2 -2
- package/src/walletConnect/utils/fetchWalletConnectWallets.js +2 -2
- package/src/walletConnect/utils/getWalletConnectConnector.cjs +2 -2
- package/src/walletConnect/utils/getWalletConnectConnector.js +2 -2
- package/src/walletConnect/walletConnect.cjs +504 -0
- package/src/walletConnect/{WalletConnectConnector/WalletConnectConnector.d.ts → walletConnect.d.ts} +53 -14
- package/src/walletConnect/walletConnect.js +495 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.cjs +0 -289
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.js +0 -285
- package/src/walletConnect/WalletConnectConnector/index.d.ts +0 -1
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.cjs +0 -197
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.js +0 -189
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
### [4.9.1
|
|
2
|
+
### [4.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.0...v4.9.1) (2025-03-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* waas svm connector ([#8191](https://github.com/dynamic-labs/dynamic-auth/issues/8191)) ([049a360](https://github.com/dynamic-labs/dynamic-auth/commit/049a360642d6aa2122676c7a29d36a7baef9e49b))
|
|
3
8
|
|
|
4
9
|
|
|
5
10
|
### Bug Fixes
|
|
6
11
|
|
|
7
12
|
* 7702 on sepolia ([#8242](https://github.com/dynamic-labs/dynamic-auth/issues/8242)) ([8e1c63f](https://github.com/dynamic-labs/dynamic-auth/commit/8e1c63f240024f419e12787636dd2ebaacf8da94))
|
|
8
|
-
*
|
|
13
|
+
* close auth flow when promptExport enabled but createWallet is false ([#8239](https://github.com/dynamic-labs/dynamic-auth/issues/8239)) ([f82429f](https://github.com/dynamic-labs/dynamic-auth/commit/f82429f85e729a76c2516f0db112033fdd2a36d5))
|
|
14
|
+
* fix solana genesis hashes bug that was causing a breaking change ([#8250](https://github.com/dynamic-labs/dynamic-auth/issues/8250)) ([731c93b](https://github.com/dynamic-labs/dynamic-auth/commit/731c93bea4b8b95caa8cc665f2ecb53f9948ef8e))
|
|
15
|
+
* move setup-inside-iframe utility method to the utils package ([#8256](https://github.com/dynamic-labs/dynamic-auth/issues/8256)) ([d34eb6d](https://github.com/dynamic-labs/dynamic-auth/commit/d34eb6d211baecb496b84fefaee8179a5fb1b52a))
|
|
16
|
+
* **QNTM-2952:** support headless social sign in ([#8226](https://github.com/dynamic-labs/dynamic-auth/issues/8226)) ([0c3082d](https://github.com/dynamic-labs/dynamic-auth/commit/0c3082d593c633519c9eed20be15186f18f65c09))
|
|
17
|
+
* sign message with trust wallet on solana ([#8249](https://github.com/dynamic-labs/dynamic-auth/issues/8249)) ([99a7917](https://github.com/dynamic-labs/dynamic-auth/commit/99a791796f7d2c83b9f18e45367aa9689c67869d))
|
|
9
18
|
|
|
10
19
|
## [4.9.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.6...v4.9.0) (2025-03-07)
|
|
11
20
|
|
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.9.1
|
|
3
|
+
"version": "4.9.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",
|
|
@@ -20,17 +20,18 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@coinbase/wallet-sdk": "4.3.0",
|
|
22
22
|
"@walletconnect/ethereum-provider": "2.18.0",
|
|
23
|
+
"@walletconnect/types": "2.18.0",
|
|
23
24
|
"eventemitter3": "5.0.1",
|
|
24
25
|
"buffer": "6.0.3",
|
|
25
26
|
"@metamask/sdk": "0.32.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.9.1
|
|
27
|
-
"@dynamic-labs/embedded-wallet-evm": "4.9.1
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.9.1
|
|
29
|
-
"@dynamic-labs/logger": "4.9.1
|
|
30
|
-
"@dynamic-labs/types": "4.9.1
|
|
31
|
-
"@dynamic-labs/utils": "4.9.1
|
|
32
|
-
"@dynamic-labs/wallet-book": "4.9.1
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "4.9.1
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.9.1",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.9.1",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.9.1",
|
|
30
|
+
"@dynamic-labs/logger": "4.9.1",
|
|
31
|
+
"@dynamic-labs/types": "4.9.1",
|
|
32
|
+
"@dynamic-labs/utils": "4.9.1",
|
|
33
|
+
"@dynamic-labs/wallet-book": "4.9.1",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "4.9.1"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"viem": "^2.21.55"
|
|
@@ -10,8 +10,7 @@ require('@dynamic-labs/ethereum-core');
|
|
|
10
10
|
require('viem');
|
|
11
11
|
require('@dynamic-labs/wallet-connector-core');
|
|
12
12
|
require('@dynamic-labs/wallet-book');
|
|
13
|
-
require('
|
|
14
|
-
require('./walletConnect/WalletConnectProvider/WalletConnectProvider.cjs');
|
|
13
|
+
require('./walletConnect/walletConnect.cjs');
|
|
15
14
|
var fetchWalletConnectWallets = require('./walletConnect/utils/fetchWalletConnectWallets.cjs');
|
|
16
15
|
var getWalletConnectConnector = require('./walletConnect/utils/getWalletConnectConnector.cjs');
|
|
17
16
|
var FallbackEvmConnector = require('./injected/FallbackEvmConnector.cjs');
|
|
@@ -6,8 +6,7 @@ import '@dynamic-labs/ethereum-core';
|
|
|
6
6
|
import 'viem';
|
|
7
7
|
import '@dynamic-labs/wallet-connector-core';
|
|
8
8
|
import '@dynamic-labs/wallet-book';
|
|
9
|
-
import '
|
|
10
|
-
import './walletConnect/WalletConnectProvider/WalletConnectProvider.js';
|
|
9
|
+
import './walletConnect/walletConnect.js';
|
|
11
10
|
import { fetchWalletConnectWallets } from './walletConnect/utils/fetchWalletConnectWallets.js';
|
|
12
11
|
import { getWalletConnectConnector } from './walletConnect/utils/getWalletConnectConnector.js';
|
|
13
12
|
import { FallbackEvmConnector } from './injected/FallbackEvmConnector.js';
|
|
@@ -7,7 +7,7 @@ var _tslib = require('../../_virtual/_tslib.cjs');
|
|
|
7
7
|
var utils = require('@dynamic-labs/utils');
|
|
8
8
|
var ethereumCore = require('@dynamic-labs/ethereum-core');
|
|
9
9
|
var ethProviderHelper = require('../ethProviderHelper.cjs');
|
|
10
|
-
var
|
|
10
|
+
var walletConnect = require('../walletConnect/walletConnect.cjs');
|
|
11
11
|
|
|
12
12
|
class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
|
|
13
13
|
constructor() {
|
|
@@ -39,7 +39,7 @@ class InjectedWalletBase extends ethereumCore.EthereumWalletConnector {
|
|
|
39
39
|
if (!this.walletConnectorFallback) {
|
|
40
40
|
return this;
|
|
41
41
|
}
|
|
42
|
-
return new
|
|
42
|
+
return new walletConnect.WalletConnect(Object.assign(Object.assign({}, this.constructorProps), { walletName: this.name }));
|
|
43
43
|
}
|
|
44
44
|
findProvider() {
|
|
45
45
|
var _a;
|
|
@@ -3,7 +3,7 @@ import { __awaiter } from '../../_virtual/_tslib.js';
|
|
|
3
3
|
import { isMobile } from '@dynamic-labs/utils';
|
|
4
4
|
import { EthereumWalletConnector } from '@dynamic-labs/ethereum-core';
|
|
5
5
|
import { EthProviderHelper } from '../ethProviderHelper.js';
|
|
6
|
-
import {
|
|
6
|
+
import { WalletConnect } from '../walletConnect/walletConnect.js';
|
|
7
7
|
|
|
8
8
|
class InjectedWalletBase extends EthereumWalletConnector {
|
|
9
9
|
constructor() {
|
|
@@ -35,7 +35,7 @@ class InjectedWalletBase extends EthereumWalletConnector {
|
|
|
35
35
|
if (!this.walletConnectorFallback) {
|
|
36
36
|
return this;
|
|
37
37
|
}
|
|
38
|
-
return new
|
|
38
|
+
return new WalletConnect(Object.assign(Object.assign({}, this.constructorProps), { walletName: this.name }));
|
|
39
39
|
}
|
|
40
40
|
findProvider() {
|
|
41
41
|
var _a;
|
|
@@ -371,9 +371,6 @@ class MetaMaskConnector extends InjectedWalletBase.InjectedWalletBase {
|
|
|
371
371
|
return false;
|
|
372
372
|
return true;
|
|
373
373
|
}
|
|
374
|
-
getConnectionUri() {
|
|
375
|
-
return undefined;
|
|
376
|
-
}
|
|
377
374
|
}
|
|
378
375
|
// Utils
|
|
379
376
|
const getReadonlyRPCMap = (evmNetworkRpcMap) => Object.keys(evmNetworkRpcMap).reduce((acc, chainId) => (Object.assign(Object.assign({}, acc), { [viem.toHex(parseInt(chainId))]: evmNetworkRpcMap[chainId] })), {});
|
|
@@ -367,9 +367,6 @@ class MetaMaskConnector extends InjectedWalletBase {
|
|
|
367
367
|
return false;
|
|
368
368
|
return true;
|
|
369
369
|
}
|
|
370
|
-
getConnectionUri() {
|
|
371
|
-
return undefined;
|
|
372
|
-
}
|
|
373
370
|
}
|
|
374
371
|
// Utils
|
|
375
372
|
const getReadonlyRPCMap = (evmNetworkRpcMap) => Object.keys(evmNetworkRpcMap).reduce((acc, chainId) => (Object.assign(Object.assign({}, acc), { [toHex(parseInt(chainId))]: evmNetworkRpcMap[chainId] })), {});
|
|
@@ -15,7 +15,7 @@ export declare class WalletConnectProvider {
|
|
|
15
15
|
/**
|
|
16
16
|
* The connection URI for the current connection.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
static connectionUri: string | undefined;
|
|
19
19
|
private static eventListenersSetup;
|
|
20
20
|
private static accountChangedHandler;
|
|
21
21
|
private static chainChangedHandler;
|
|
@@ -44,7 +44,6 @@ export declare class WalletConnectProvider {
|
|
|
44
44
|
* Returns the EthereumProvider instance.
|
|
45
45
|
*/
|
|
46
46
|
static getProvider: () => EthereumProvider | undefined;
|
|
47
|
-
static getConnectionUri: () => string | undefined;
|
|
48
47
|
private static handleChainChangedEvent;
|
|
49
48
|
private static handleAccountChangedEvent;
|
|
50
49
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { WalletConnect } from './walletConnect';
|
|
2
2
|
export { fetchWalletConnectWallets, getWalletConnectConnector } from './utils';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var walletConnect = require('../walletConnect.cjs');
|
|
7
7
|
|
|
8
8
|
const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
9
9
|
var _a;
|
|
@@ -12,7 +12,7 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
12
12
|
.map(([key, wallet]) => {
|
|
13
13
|
const { shortName } = wallet;
|
|
14
14
|
const name = shortName || wallet.name;
|
|
15
|
-
return class extends
|
|
15
|
+
return class extends walletConnect.WalletConnect {
|
|
16
16
|
constructor(props) {
|
|
17
17
|
super(Object.assign(Object.assign({}, props), { walletName: name }));
|
|
18
18
|
this.overrideKey = key;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { WalletConnect } from '../walletConnect.js';
|
|
3
3
|
|
|
4
4
|
const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
5
5
|
var _a;
|
|
@@ -8,7 +8,7 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
8
8
|
.map(([key, wallet]) => {
|
|
9
9
|
const { shortName } = wallet;
|
|
10
10
|
const name = shortName || wallet.name;
|
|
11
|
-
return class extends
|
|
11
|
+
return class extends WalletConnect {
|
|
12
12
|
constructor(props) {
|
|
13
13
|
super(Object.assign(Object.assign({}, props), { walletName: name }));
|
|
14
14
|
this.overrideKey = key;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var walletConnect = require('../walletConnect.cjs');
|
|
7
7
|
|
|
8
|
-
const getWalletConnectConnector = () => class extends
|
|
8
|
+
const getWalletConnectConnector = () => class extends walletConnect.WalletConnect {
|
|
9
9
|
constructor(props) {
|
|
10
10
|
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { WalletConnect } from '../walletConnect.js';
|
|
3
3
|
|
|
4
|
-
const getWalletConnectConnector = () => class extends
|
|
4
|
+
const getWalletConnectConnector = () => class extends WalletConnect {
|
|
5
5
|
constructor(props) {
|
|
6
6
|
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
7
7
|
}
|