@dynamic-labs/ethereum 4.8.2-preview.0 → 4.8.3
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 +6 -3
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -9
- package/src/EthereumWalletConnectors.cjs +3 -4
- package/src/EthereumWalletConnectors.js +2 -3
- package/src/injected/InjectedWalletBase.cjs +2 -2
- package/src/injected/InjectedWalletBase.js +2 -2
- package/src/walletConnect/{utils/fetchWalletConnectWallets.cjs → fetchWalletConnectWallets.cjs} +8 -2
- package/src/walletConnect/{utils/fetchWalletConnectWallets.d.ts → fetchWalletConnectWallets.d.ts} +1 -0
- package/src/walletConnect/{utils/fetchWalletConnectWallets.js → fetchWalletConnectWallets.js} +8 -3
- package/src/walletConnect/index.d.ts +2 -2
- package/src/walletConnect/walletConnect.cjs +504 -0
- package/src/walletConnect/{WalletConnectConnector/WalletConnectConnector.d.ts → walletConnect.d.ts} +53 -12
- package/src/walletConnect/walletConnect.js +495 -0
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.cjs +0 -286
- package/src/walletConnect/WalletConnectConnector/WalletConnectConnector.js +0 -282
- package/src/walletConnect/WalletConnectConnector/index.d.ts +0 -1
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.cjs +0 -169
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.d.ts +0 -39
- package/src/walletConnect/WalletConnectProvider/WalletConnectProvider.js +0 -161
- package/src/walletConnect/WalletConnectProvider/index.d.ts +0 -1
- package/src/walletConnect/utils/getWalletConnectConnector.cjs +0 -14
- package/src/walletConnect/utils/getWalletConnectConnector.d.ts +0 -2
- package/src/walletConnect/utils/getWalletConnectConnector.js +0 -10
- package/src/walletConnect/utils/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
### [4.8.
|
|
2
|
+
### [4.8.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.2...v4.8.3) (2025-03-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### [4.8.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.1...v4.8.2) (2025-03-01)
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
### Features
|
|
6
9
|
|
|
7
10
|
* add disconnect to wallet action in connect only ([#8152](https://github.com/dynamic-labs/dynamic-auth/issues/8152)) ([4f8fa26](https://github.com/dynamic-labs/dynamic-auth/commit/4f8fa26c293aa249e697cc6494463b3bb545251a))
|
|
11
|
+
* add dynamic waas evm connector ([#8167](https://github.com/dynamic-labs/dynamic-auth/issues/8167)) ([b51c0ae](https://github.com/dynamic-labs/dynamic-auth/commit/b51c0ae1822c9676d1923b77eb3e468aebe275e6))
|
|
8
12
|
* support for onramp options via function, and default support for coinbase ([#8139](https://github.com/dynamic-labs/dynamic-auth/issues/8139)) ([f4dee01](https://github.com/dynamic-labs/dynamic-auth/commit/f4dee0175512de7a15928c577a20cc620863c282))
|
|
13
|
+
* upgrade [@solana](https://github.com/solana) libs ([#8180](https://github.com/dynamic-labs/dynamic-auth/issues/8180)) ([7c7f51e](https://github.com/dynamic-labs/dynamic-auth/commit/7c7f51ec5a29f8d9e4f860eb21d60666f6e6b9a2))
|
|
9
14
|
|
|
10
15
|
|
|
11
16
|
### Bug Fixes
|
|
12
17
|
|
|
13
|
-
* embedded widget race condition that would show both embedded and non-embedded widgets at the same time ([4cb1686](https://github.com/dynamic-labs/dynamic-auth/commit/4cb16860cc61f6fcc074eb20ce38f848cdda31f1))
|
|
14
18
|
* filter out networks without a key value when parsing coinbase onramp url ([#8158](https://github.com/dynamic-labs/dynamic-auth/issues/8158)) ([8033299](https://github.com/dynamic-labs/dynamic-auth/commit/80332991551987a29b6ea7c8f66fd373956d875b))
|
|
15
19
|
* **QNTM-2927:** send users back to login on MM cancel ([#8149](https://github.com/dynamic-labs/dynamic-auth/issues/8149)) ([8e92702](https://github.com/dynamic-labs/dynamic-auth/commit/8e9270270220fc781da9c9235f86b29b9c4d2f28))
|
|
16
|
-
* update WC re-connect view on mobile ([45c5241](https://github.com/dynamic-labs/dynamic-auth/commit/45c5241fa8d973b8ad3f8b0e85b5034e429c3c11))
|
|
17
20
|
|
|
18
21
|
### [4.8.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.8.0...v4.8.1) (2025-02-25)
|
|
19
22
|
|
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.8.
|
|
3
|
+
"version": "4.8.3",
|
|
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.8.
|
|
27
|
-
"@dynamic-labs/embedded-wallet-evm": "4.8.
|
|
28
|
-
"@dynamic-labs/ethereum-core": "4.8.
|
|
29
|
-
"@dynamic-labs/logger": "4.8.
|
|
30
|
-
"@dynamic-labs/types": "4.8.
|
|
31
|
-
"@dynamic-labs/utils": "4.8.
|
|
32
|
-
"@dynamic-labs/wallet-book": "4.8.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "4.8.
|
|
27
|
+
"@dynamic-labs/assert-package-version": "4.8.3",
|
|
28
|
+
"@dynamic-labs/embedded-wallet-evm": "4.8.3",
|
|
29
|
+
"@dynamic-labs/ethereum-core": "4.8.3",
|
|
30
|
+
"@dynamic-labs/logger": "4.8.3",
|
|
31
|
+
"@dynamic-labs/types": "4.8.3",
|
|
32
|
+
"@dynamic-labs/utils": "4.8.3",
|
|
33
|
+
"@dynamic-labs/wallet-book": "4.8.3",
|
|
34
|
+
"@dynamic-labs/wallet-connector-core": "4.8.3"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"viem": "^2.21.55"
|
|
@@ -10,9 +10,8 @@ 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('./walletConnect/
|
|
14
|
-
var fetchWalletConnectWallets = require('./walletConnect/
|
|
15
|
-
var getWalletConnectConnector = require('./walletConnect/utils/getWalletConnectConnector.cjs');
|
|
13
|
+
require('./walletConnect/walletConnect.cjs');
|
|
14
|
+
var fetchWalletConnectWallets = require('./walletConnect/fetchWalletConnectWallets.cjs');
|
|
16
15
|
var FallbackEvmConnector = require('./injected/FallbackEvmConnector.cjs');
|
|
17
16
|
var fetchInjectedWalletConnectors = require('./injected/fetchInjectedWalletConnectors.cjs');
|
|
18
17
|
var coinbase = require('./coinbase/coinbase.cjs');
|
|
@@ -26,7 +25,7 @@ const EthereumWalletConnectors = (props) => [
|
|
|
26
25
|
MetaMaskConnector.MetaMaskConnector,
|
|
27
26
|
coinbase.Coinbase,
|
|
28
27
|
FallbackEvmConnector.FallbackEvmConnector,
|
|
29
|
-
|
|
28
|
+
fetchWalletConnectWallets.getWalletConnectConnector(),
|
|
30
29
|
];
|
|
31
30
|
|
|
32
31
|
exports.EthereumWalletConnectors = EthereumWalletConnectors;
|
|
@@ -6,9 +6,8 @@ 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 './walletConnect/
|
|
10
|
-
import { fetchWalletConnectWallets } from './walletConnect/
|
|
11
|
-
import { getWalletConnectConnector } from './walletConnect/utils/getWalletConnectConnector.js';
|
|
9
|
+
import './walletConnect/walletConnect.js';
|
|
10
|
+
import { fetchWalletConnectWallets, getWalletConnectConnector } from './walletConnect/fetchWalletConnectWallets.js';
|
|
12
11
|
import { FallbackEvmConnector } from './injected/FallbackEvmConnector.js';
|
|
13
12
|
import { injectedWalletOverrides, fetchInjectedWalletConnector } from './injected/fetchInjectedWalletConnectors.js';
|
|
14
13
|
import { Coinbase } from './coinbase/coinbase.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;
|
package/src/walletConnect/{utils/fetchWalletConnectWallets.cjs → fetchWalletConnectWallets.cjs}
RENAMED
|
@@ -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;
|
|
@@ -20,5 +20,11 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
20
20
|
};
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
+
const getWalletConnectConnector = () => class extends walletConnect.WalletConnect {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
23
28
|
|
|
24
29
|
exports.fetchWalletConnectWallets = fetchWalletConnectWallets;
|
|
30
|
+
exports.getWalletConnectConnector = getWalletConnectConnector;
|
package/src/walletConnect/{utils/fetchWalletConnectWallets.d.ts → fetchWalletConnectWallets.d.ts}
RENAMED
|
@@ -3,3 +3,4 @@ import { WalletConnectorConstructor } from '@dynamic-labs/wallet-connector-core'
|
|
|
3
3
|
export declare const fetchWalletConnectWallets: ({ walletBook, }: {
|
|
4
4
|
walletBook: WalletBookSchema;
|
|
5
5
|
}) => Array<WalletConnectorConstructor>;
|
|
6
|
+
export declare const getWalletConnectConnector: () => WalletConnectorConstructor;
|
package/src/walletConnect/{utils/fetchWalletConnectWallets.js → fetchWalletConnectWallets.js}
RENAMED
|
@@ -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;
|
|
@@ -16,5 +16,10 @@ const fetchWalletConnectWallets = ({ walletBook, }) => {
|
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
+
const getWalletConnectConnector = () => class extends WalletConnect {
|
|
20
|
+
constructor(props) {
|
|
21
|
+
super(Object.assign(Object.assign({}, props), { walletName: 'WalletConnect' }));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
19
24
|
|
|
20
|
-
export { fetchWalletConnectWallets };
|
|
25
|
+
export { fetchWalletConnectWallets, getWalletConnectConnector };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { fetchWalletConnectWallets
|
|
1
|
+
export { WalletConnect } from './walletConnect';
|
|
2
|
+
export { fetchWalletConnectWallets } from './fetchWalletConnectWallets';
|