@dynamic-labs/ethereum 2.1.0-alpha.10 → 2.1.0-alpha.11
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,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.1.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.10...v2.1.0-alpha.11) (2024-05-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **GVTY-1050:** add account token balances hook ([#5521](https://github.com/dynamic-labs/DynamicAuth/issues/5521)) ([5a6f937](https://github.com/dynamic-labs/DynamicAuth/commit/5a6f93733019f3b8d5c7a2c7a5537172a1e7eba4))
|
|
8
|
+
* headless reveal embedded wallet key ([#5518](https://github.com/dynamic-labs/DynamicAuth/issues/5518)) ([77c1536](https://github.com/dynamic-labs/DynamicAuth/commit/77c15360b2b28c52cbdeafb3ce8ca7e80dbecf57))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fallback to walletconnect for zerion on mobile ([#5536](https://github.com/dynamic-labs/DynamicAuth/issues/5536)) ([f0e5bfe](https://github.com/dynamic-labs/DynamicAuth/commit/f0e5bfea0b2ab271fd4c1475c8ce708ecb1a5926))
|
|
14
|
+
|
|
2
15
|
## [2.1.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.9...v2.1.0-alpha.10) (2024-04-30)
|
|
3
16
|
|
|
4
17
|
|
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.11",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -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.433",
|
|
30
30
|
"@coinbase/wallet-sdk": "4.0.0-beta.12",
|
|
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.11",
|
|
35
|
+
"@dynamic-labs/turnkey": "2.1.0-alpha.11",
|
|
36
|
+
"@dynamic-labs/types": "2.1.0-alpha.11",
|
|
37
|
+
"@dynamic-labs/utils": "2.1.0-alpha.11",
|
|
38
|
+
"@dynamic-labs/viem-utils": "2.1.0-alpha.11",
|
|
39
|
+
"@dynamic-labs/wallet-book": "2.1.0-alpha.11",
|
|
40
|
+
"@dynamic-labs/wallet-connector-core": "2.1.0-alpha.11",
|
|
41
41
|
"stream": "0.0.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -8,18 +8,15 @@ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
|
|
|
8
8
|
var InjectedWalletBase = require('./InjectedWalletBase.cjs');
|
|
9
9
|
var PhantomEvm = require('./PhantomEvm.cjs');
|
|
10
10
|
var ExodusEvm = require('./ExodusEvm.cjs');
|
|
11
|
-
var Zerion = require('./Zerion.cjs');
|
|
12
11
|
|
|
13
12
|
const injectedWalletOverrides = [
|
|
14
13
|
PhantomEvm.PhantomEvm,
|
|
15
14
|
ExodusEvm.ExodusEvm,
|
|
16
|
-
Zerion.Zerion,
|
|
17
15
|
];
|
|
18
16
|
const filteredInjectedWalletKeysOverrides = [
|
|
19
17
|
'phantomevm',
|
|
20
18
|
'coinbase',
|
|
21
19
|
'exodusevm',
|
|
22
|
-
'zerion',
|
|
23
20
|
];
|
|
24
21
|
const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
25
22
|
var _a;
|
|
@@ -4,18 +4,15 @@ import { logger } from '@dynamic-labs/wallet-connector-core';
|
|
|
4
4
|
import InjectedWalletBase from './InjectedWalletBase.js';
|
|
5
5
|
import { PhantomEvm } from './PhantomEvm.js';
|
|
6
6
|
import { ExodusEvm } from './ExodusEvm.js';
|
|
7
|
-
import { Zerion } from './Zerion.js';
|
|
8
7
|
|
|
9
8
|
const injectedWalletOverrides = [
|
|
10
9
|
PhantomEvm,
|
|
11
10
|
ExodusEvm,
|
|
12
|
-
Zerion,
|
|
13
11
|
];
|
|
14
12
|
const filteredInjectedWalletKeysOverrides = [
|
|
15
13
|
'phantomevm',
|
|
16
14
|
'coinbase',
|
|
17
15
|
'exodusevm',
|
|
18
|
-
'zerion',
|
|
19
16
|
];
|
|
20
17
|
const fetchInjectedWalletConnector = ({ walletBook, }) => {
|
|
21
18
|
var _a;
|
package/src/injected/Zerion.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var InjectedWalletBase = require('./InjectedWalletBase.cjs');
|
|
7
|
-
|
|
8
|
-
// on desktop, we use EIP-6963 to connect to the wallet so the injectedConfig
|
|
9
|
-
// is not needed.
|
|
10
|
-
const zerionWalletBookConfig = {
|
|
11
|
-
eip6963Config: {
|
|
12
|
-
rdns: 'io.zerion.wallet',
|
|
13
|
-
},
|
|
14
|
-
filterFromWalletConnect: true,
|
|
15
|
-
injectedConfig: [
|
|
16
|
-
{
|
|
17
|
-
chain: 'evm',
|
|
18
|
-
// adds isMetaMask flag to the wallet connector so that the window provider works
|
|
19
|
-
// in the zerion in-app browser.
|
|
20
|
-
extensionLocators: [{ flag: 'isMetaMask', value: true }],
|
|
21
|
-
windowLocations: ['zerionWallet', 'zerionwallet.ethereum'],
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
name: 'Zerion',
|
|
25
|
-
};
|
|
26
|
-
class Zerion extends InjectedWalletBase {
|
|
27
|
-
constructor(props) {
|
|
28
|
-
super(props);
|
|
29
|
-
this.name = 'Zerion';
|
|
30
|
-
this.overrideKey = 'zerion';
|
|
31
|
-
this.wallet = zerionWalletBookConfig;
|
|
32
|
-
}
|
|
33
|
-
isInstalledOnBrowser() {
|
|
34
|
-
var _a;
|
|
35
|
-
return Boolean(window.zerionWallet || ((_a = window.zerionwallet) === null || _a === void 0 ? void 0 : _a.ethereum));
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
exports.Zerion = Zerion;
|
package/src/injected/Zerion.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WalletSchema } from '@dynamic-labs/wallet-book';
|
|
2
|
-
import { EthWalletConnectorOpts } from '../EthWalletConnector';
|
|
3
|
-
import InjectedWalletBase from './InjectedWalletBase';
|
|
4
|
-
export declare class Zerion extends InjectedWalletBase {
|
|
5
|
-
name: string;
|
|
6
|
-
overrideKey: string;
|
|
7
|
-
wallet: WalletSchema;
|
|
8
|
-
constructor(props: EthWalletConnectorOpts);
|
|
9
|
-
isInstalledOnBrowser(): boolean;
|
|
10
|
-
}
|
package/src/injected/Zerion.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import InjectedWalletBase from './InjectedWalletBase.js';
|
|
3
|
-
|
|
4
|
-
// on desktop, we use EIP-6963 to connect to the wallet so the injectedConfig
|
|
5
|
-
// is not needed.
|
|
6
|
-
const zerionWalletBookConfig = {
|
|
7
|
-
eip6963Config: {
|
|
8
|
-
rdns: 'io.zerion.wallet',
|
|
9
|
-
},
|
|
10
|
-
filterFromWalletConnect: true,
|
|
11
|
-
injectedConfig: [
|
|
12
|
-
{
|
|
13
|
-
chain: 'evm',
|
|
14
|
-
// adds isMetaMask flag to the wallet connector so that the window provider works
|
|
15
|
-
// in the zerion in-app browser.
|
|
16
|
-
extensionLocators: [{ flag: 'isMetaMask', value: true }],
|
|
17
|
-
windowLocations: ['zerionWallet', 'zerionwallet.ethereum'],
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
name: 'Zerion',
|
|
21
|
-
};
|
|
22
|
-
class Zerion extends InjectedWalletBase {
|
|
23
|
-
constructor(props) {
|
|
24
|
-
super(props);
|
|
25
|
-
this.name = 'Zerion';
|
|
26
|
-
this.overrideKey = 'zerion';
|
|
27
|
-
this.wallet = zerionWalletBookConfig;
|
|
28
|
-
}
|
|
29
|
-
isInstalledOnBrowser() {
|
|
30
|
-
var _a;
|
|
31
|
-
return Boolean(window.zerionWallet || ((_a = window.zerionwallet) === null || _a === void 0 ? void 0 : _a.ethereum));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { Zerion };
|