@dynamic-labs/global-wallet 3.0.0-alpha.59 → 3.0.0-alpha.60
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/index.js +1 -0
- package/package.json +2 -2
- package/src/GlobalWalletConnector.d.ts +2 -0
package/index.js
CHANGED
|
@@ -101,6 +101,7 @@ const GlobalWalletExtension = {
|
|
|
101
101
|
// topic => session mapping, with peer metadata in the session
|
|
102
102
|
getConnectedWCSessions: () => __awaiter(void 0, void 0, void 0, function* () { return web3wallet.getActiveSessions(); }),
|
|
103
103
|
getPendingPairing: () => pendingSessionProposal,
|
|
104
|
+
getWeb3Wallet: () => web3wallet,
|
|
104
105
|
initWeb3Wallet: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
105
106
|
if (!web3wallet) {
|
|
106
107
|
const core = new Core({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/global-wallet",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.60",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"viem": "2.7.6",
|
|
36
36
|
"react": "^18.0.0",
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.60"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Client from '@walletconnect/web3wallet';
|
|
1
2
|
import { Options, QRCode } from 'jsqr';
|
|
2
3
|
import { WalletConnectorExtension } from '@dynamic-labs/wallet-connector-core';
|
|
3
4
|
declare module '@dynamic-labs/wallet-connector-core' {
|
|
@@ -14,6 +15,7 @@ declare module '@dynamic-labs/wallet-connector-core' {
|
|
|
14
15
|
confirmPairing: (confirm: boolean) => Promise<void>;
|
|
15
16
|
getPendingPairing: () => object;
|
|
16
17
|
qrScanner: (data: Uint8ClampedArray, width: number, height: number, providedOptions?: Options) => QRCode | null;
|
|
18
|
+
getWeb3Wallet: () => Client | undefined;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|