@toruslabs/ethereum-controllers 7.2.0 → 7.2.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/dist/ethereumControllers.cjs.js +4 -2
- package/dist/ethereumControllers.esm.js +4 -2
- package/dist/ethereumControllers.umd.min.js +1 -1
- package/dist/lib.cjs/Preferences/PreferencesController.js +4 -2
- package/dist/lib.esm/Preferences/PreferencesController.js +4 -2
- package/dist/types/Preferences/PreferencesController.d.ts +1 -0
- package/package.json +3 -3
|
@@ -73,7 +73,8 @@ class PreferencesController extends baseControllers.BasePreferencesController {
|
|
|
73
73
|
loginMode,
|
|
74
74
|
sessionPubKey,
|
|
75
75
|
aaProvider,
|
|
76
|
-
eoaAddress
|
|
76
|
+
eoaAddress,
|
|
77
|
+
mainAddress
|
|
77
78
|
} = params;
|
|
78
79
|
const {
|
|
79
80
|
chainId
|
|
@@ -89,7 +90,8 @@ class PreferencesController extends baseControllers.BasePreferencesController {
|
|
|
89
90
|
network: web3AuthNetwork,
|
|
90
91
|
eoa_address: eoaAddress,
|
|
91
92
|
aa_provider: aaProvider,
|
|
92
|
-
chain_id: chainId
|
|
93
|
+
chain_id: chainId,
|
|
94
|
+
main_address: mainAddress
|
|
93
95
|
}
|
|
94
96
|
});
|
|
95
97
|
const {
|
|
@@ -71,7 +71,8 @@ class PreferencesController extends BasePreferencesController {
|
|
|
71
71
|
loginMode,
|
|
72
72
|
sessionPubKey,
|
|
73
73
|
aaProvider,
|
|
74
|
-
eoaAddress
|
|
74
|
+
eoaAddress,
|
|
75
|
+
mainAddress
|
|
75
76
|
} = params;
|
|
76
77
|
const {
|
|
77
78
|
chainId
|
|
@@ -87,7 +88,8 @@ class PreferencesController extends BasePreferencesController {
|
|
|
87
88
|
network: web3AuthNetwork,
|
|
88
89
|
eoa_address: eoaAddress,
|
|
89
90
|
aa_provider: aaProvider,
|
|
90
|
-
chain_id: chainId
|
|
91
|
+
chain_id: chainId,
|
|
92
|
+
main_address: mainAddress
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
const {
|
|
@@ -26,6 +26,7 @@ export declare class PreferencesController extends BasePreferencesController<Ext
|
|
|
26
26
|
initPreferences(params: InitPreferencesParams & {
|
|
27
27
|
eoaAddress?: string;
|
|
28
28
|
aaProvider?: string;
|
|
29
|
+
mainAddress?: string;
|
|
29
30
|
}): Promise<void>;
|
|
30
31
|
getSelectedAddress(): string;
|
|
31
32
|
sync(address: string): Promise<boolean>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toruslabs/ethereum-controllers",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"homepage": "https://github.com/torusresearch/controllers#readme",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@ethereumjs/util": "^9.1.0",
|
|
24
|
-
"@toruslabs/base-controllers": "^7.2.
|
|
24
|
+
"@toruslabs/base-controllers": "^7.2.1",
|
|
25
25
|
"@toruslabs/http-helpers": "^7.0.0",
|
|
26
26
|
"@web3auth/auth": "^9.6.4",
|
|
27
27
|
"async-mutex": "^0.5.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "2f3e1955a917f7c3c70218da523bcf12af692f96",
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@nomicfoundation/hardhat-chai-matchers": "^2.0.8",
|
|
69
69
|
"@nomicfoundation/hardhat-ethers": "^3.0.8",
|