@dynamic-labs/ethereum 2.1.0-alpha.21 → 2.1.0-alpha.22
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,6 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.1.0-alpha.22](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.21...v2.1.0-alpha.22) (2024-05-21)
|
|
3
|
+
|
|
2
4
|
## [2.1.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.20...v2.1.0-alpha.21) (2024-05-21)
|
|
3
5
|
|
|
4
6
|
## [2.1.0-alpha.20](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.19...v2.1.0-alpha.20) (2024-05-21)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.22",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -31,13 +31,13 @@
|
|
|
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.22",
|
|
35
|
+
"@dynamic-labs/turnkey": "2.1.0-alpha.22",
|
|
36
|
+
"@dynamic-labs/types": "2.1.0-alpha.22",
|
|
37
|
+
"@dynamic-labs/utils": "2.1.0-alpha.22",
|
|
38
|
+
"@dynamic-labs/viem-utils": "2.1.0-alpha.22",
|
|
39
|
+
"@dynamic-labs/wallet-book": "2.1.0-alpha.22",
|
|
40
|
+
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.22",
|
|
41
41
|
"stream": "0.0.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ require('./polyfills.cjs');
|
|
|
7
7
|
var turnkey = require('@dynamic-labs/turnkey');
|
|
8
8
|
var PhantomEvm = require('./injected/PhantomEvm.cjs');
|
|
9
9
|
var ExodusEvm = require('./injected/ExodusEvm.cjs');
|
|
10
|
+
var UnknownInjected = require('./injected/UnknownInjected.cjs');
|
|
10
11
|
var fetchInjectedWalletConnectors = require('./injected/fetchInjectedWalletConnectors.cjs');
|
|
11
12
|
require('./walletConnect/walletConnect.cjs');
|
|
12
13
|
var fetchWalletConnectWallets = require('./walletConnect/fetchWalletConnectWallets.cjs');
|
|
@@ -24,11 +25,13 @@ const EthereumWalletConnectors = (props) => [
|
|
|
24
25
|
...fetchWalletConnectWallets.fetchWalletConnectWallets(props),
|
|
25
26
|
...turnkey.TurnkeyEVMWalletConnectors(props),
|
|
26
27
|
coinbase.Coinbase,
|
|
28
|
+
UnknownInjected.UnknownInjected,
|
|
27
29
|
fetchWalletConnectWallets.getWalletConnectConnector(),
|
|
28
30
|
];
|
|
29
31
|
|
|
30
32
|
exports.PhantomEvm = PhantomEvm.PhantomEvm;
|
|
31
33
|
exports.ExodusEvm = ExodusEvm.ExodusEvm;
|
|
34
|
+
exports.UnknownInjected = UnknownInjected.UnknownInjected;
|
|
32
35
|
exports.fetchInjectedWalletConnector = fetchInjectedWalletConnectors.fetchInjectedWalletConnector;
|
|
33
36
|
exports.injectedWalletOverrides = fetchInjectedWalletConnectors.injectedWalletOverrides;
|
|
34
37
|
exports.EthWalletConnector = EthWalletConnector.EthWalletConnector;
|
package/src/index.js
CHANGED
|
@@ -3,6 +3,8 @@ import './polyfills.js';
|
|
|
3
3
|
import { TurnkeyEVMWalletConnectors } from '@dynamic-labs/turnkey';
|
|
4
4
|
export { PhantomEvm } from './injected/PhantomEvm.js';
|
|
5
5
|
export { ExodusEvm } from './injected/ExodusEvm.js';
|
|
6
|
+
import { UnknownInjected } from './injected/UnknownInjected.js';
|
|
7
|
+
export { UnknownInjected } from './injected/UnknownInjected.js';
|
|
6
8
|
import { injectedWalletOverrides, fetchInjectedWalletConnector } from './injected/fetchInjectedWalletConnectors.js';
|
|
7
9
|
export { fetchInjectedWalletConnector, injectedWalletOverrides } from './injected/fetchInjectedWalletConnectors.js';
|
|
8
10
|
import './walletConnect/walletConnect.js';
|
|
@@ -21,6 +23,7 @@ const EthereumWalletConnectors = (props) => [
|
|
|
21
23
|
...fetchWalletConnectWallets(props),
|
|
22
24
|
...TurnkeyEVMWalletConnectors(props),
|
|
23
25
|
Coinbase,
|
|
26
|
+
UnknownInjected,
|
|
24
27
|
getWalletConnectConnector(),
|
|
25
28
|
];
|
|
26
29
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
7
|
+
var InjectedWalletBase = require('./InjectedWalletBase.cjs');
|
|
8
|
+
|
|
9
|
+
class UnknownInjected extends InjectedWalletBase {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.name = 'Unknown';
|
|
13
|
+
this.overrideKey = 'unknown';
|
|
14
|
+
this.wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
|
|
15
|
+
}
|
|
16
|
+
isInstalledOnBrowser() {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.UnknownInjected = UnknownInjected;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EthWalletConnectorOpts } from '..';
|
|
2
|
+
import InjectedWalletBase from './InjectedWalletBase';
|
|
3
|
+
export declare class UnknownInjected extends InjectedWalletBase {
|
|
4
|
+
name: string;
|
|
5
|
+
overrideKey: string;
|
|
6
|
+
constructor(props: EthWalletConnectorOpts);
|
|
7
|
+
isInstalledOnBrowser(): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { findWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
3
|
+
import InjectedWalletBase from './InjectedWalletBase.js';
|
|
4
|
+
|
|
5
|
+
class UnknownInjected extends InjectedWalletBase {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.name = 'Unknown';
|
|
9
|
+
this.overrideKey = 'unknown';
|
|
10
|
+
this.wallet = findWalletBookWallet(this.walletBook, this.key);
|
|
11
|
+
}
|
|
12
|
+
isInstalledOnBrowser() {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { UnknownInjected };
|
package/src/injected/index.d.ts
CHANGED