@magic-ext/web3modal-ethers5 0.1.0
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/LICENSE +177 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +7 -0
- package/dist/es/index.mjs +2 -0
- package/dist/es/index.mjs.map +7 -0
- package/dist/extension.js +9261 -0
- package/dist/types/index.cdn.d.ts +2 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.native.d.ts +1 -0
- package/dist/types/types.d.ts +5 -0
- package/package.json +37 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Extension } from '@magic-sdk/commons';
|
|
2
|
+
import { Web3Modal } from '@web3modal/ethers5';
|
|
3
|
+
import { Web3ModalExtensionOptions } from './types';
|
|
4
|
+
export declare class Web3ModalExtension extends Extension.Internal<'web3ModalEthers5', any> {
|
|
5
|
+
name: "web3ModalEthers5";
|
|
6
|
+
config: any;
|
|
7
|
+
web3Modal: Web3Modal;
|
|
8
|
+
connectedPublicAddress: string | undefined;
|
|
9
|
+
connectedChainId: number | undefined;
|
|
10
|
+
static eventsListenerAdded: boolean;
|
|
11
|
+
constructor({ configOptions, modalOptions }: Web3ModalExtensionOptions);
|
|
12
|
+
initialize(): void;
|
|
13
|
+
private setThirdPartyWalletInfo;
|
|
14
|
+
private setEip1193EventListenersIfConnected;
|
|
15
|
+
private connectToWeb3Modal;
|
|
16
|
+
private getInfoOverride;
|
|
17
|
+
private isLoggedInOverride;
|
|
18
|
+
private logoutOverride;
|
|
19
|
+
private requestOverride;
|
|
20
|
+
private setOverrides;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index';
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@magic-ext/web3modal-ethers5",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "magic web3modal ethers 5 extension",
|
|
5
|
+
"author": "Magic <team@magic.link> (https://magic.link/)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/magiclabs/magic-js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"target": "neutral",
|
|
15
|
+
"cdnGlobalName": "MagicWeb3ModalExtension",
|
|
16
|
+
"main": "./dist/cjs/index.js",
|
|
17
|
+
"module": "./dist/es/index.js",
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"jsdelivr": "./dist/extension.js",
|
|
20
|
+
"exports": {
|
|
21
|
+
"import": "./dist/es/index.mjs",
|
|
22
|
+
"types": "./dist/types/index.d.ts",
|
|
23
|
+
"require": "./dist/cjs/index.js"
|
|
24
|
+
},
|
|
25
|
+
"externals": {
|
|
26
|
+
"include": [
|
|
27
|
+
"@magic-sdk/commons"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@magic-sdk/commons": "^24.0.2"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@web3modal/ethers5": "^4.1.11",
|
|
35
|
+
"ethers": "5.7.2"
|
|
36
|
+
}
|
|
37
|
+
}
|