@dynamic-labs-sdk/wallet-connect 0.1.0-alpha.25 → 0.1.0-alpha.27
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 +10 -0
- package/isWalletConnectWalletProvider.cjs.js +1 -1
- package/isWalletConnectWalletProvider.esm.js +1 -1
- package/package.json +4 -4
- package/src/events.d.ts +0 -18
- package/src/events.d.ts.map +1 -1
- package/src/exports/index.d.ts +1 -1
- package/src/exports/index.d.ts.map +1 -1
- package/src/walletConnectWalletProvider.types.d.ts +18 -1
- package/src/walletConnectWalletProvider.types.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.1.0-alpha.27 (2025-11-03)
|
|
2
|
+
|
|
3
|
+
This was a version bump only, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.1.0-alpha.26 (2025-10-30)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- add getUserSocialAccounts function ([#620](https://github.com/dynamic-labs/dynamic-sdk/pull/620))
|
|
10
|
+
|
|
1
11
|
## 0.1.0-alpha.25 (2025-10-29)
|
|
2
12
|
|
|
3
13
|
### Breaking Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-sdk/wallet-connect",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs.js",
|
|
6
6
|
"module": "./index.esm.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dynamic-labs-sdk/assert-package-version": "0.1.0-alpha.
|
|
23
|
-
"@dynamic-labs-sdk/client": "0.1.0-alpha.
|
|
22
|
+
"@dynamic-labs-sdk/assert-package-version": "0.1.0-alpha.27",
|
|
23
|
+
"@dynamic-labs-sdk/client": "0.1.0-alpha.27",
|
|
24
24
|
"@walletconnect/sign-client": "2.21.8",
|
|
25
25
|
"@walletconnect/types": "2.21.8",
|
|
26
26
|
"@walletconnect/utils": "2.21.8",
|
|
27
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
27
|
+
"@dynamic-labs/sdk-api-core": "0.0.818",
|
|
28
28
|
"zod": "4.0.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
package/src/events.d.ts
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import type { CoreTypes } from '@walletconnect/types';
|
|
2
2
|
declare global {
|
|
3
3
|
interface DynamicEvents {
|
|
4
|
-
/**
|
|
5
|
-
* Allows handling Wallet Connect (WC) connections.
|
|
6
|
-
*
|
|
7
|
-
* It takes the session URL as a param, and this URL must be provided to a
|
|
8
|
-
* WC compatible wallet application that will perform the connection.
|
|
9
|
-
*
|
|
10
|
-
* This is typically done by performing a deeplink to the target wallet app
|
|
11
|
-
* or by displaying the URL as a QR Code for the user to perform a connection with
|
|
12
|
-
* their mobile wallet application.
|
|
13
|
-
*
|
|
14
|
-
* <DOCS FOR HANDLING THE URL>
|
|
15
|
-
*
|
|
16
|
-
* @param url - The session URL that must be provided to the wallet app that
|
|
17
|
-
* will perform the connection.
|
|
18
|
-
*/
|
|
19
|
-
walletConnectUrl: (args: {
|
|
20
|
-
url: string;
|
|
21
|
-
}) => void;
|
|
22
4
|
/**
|
|
23
5
|
* This will be called whenever a user action is expected after a wallet connect request is made,
|
|
24
6
|
* such as when requesting a message signature or a network switch.
|
package/src/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../packages/wallet-connect/src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../packages/wallet-connect/src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB;;;;;;;;;WASG;QACH,gCAAgC,EAAE,CAAC,IAAI,EAAE;YACvC,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAC;SACpC,KAAK,IAAI,CAAC;KACZ;CACF;AAED,OAAO,EAAE,CAAC"}
|
package/src/exports/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../events';
|
|
2
2
|
export { isWalletConnectWalletProvider } from '../isWalletConnectWalletProvider';
|
|
3
|
-
export type { WalletConnectWalletProvider } from '../walletConnectWalletProvider.types';
|
|
3
|
+
export type { WalletConnectConnectionResult, WalletConnectWalletProvider, } from '../walletConnectWalletProvider.types';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/wallet-connect/src/exports/index.ts"],"names":[],"mappings":"AAOA,OAAO,WAAW,CAAC;AAEnB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/wallet-connect/src/exports/index.ts"],"names":[],"mappings":"AAOA,OAAO,WAAW,CAAC;AAEnB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,YAAY,EACV,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DynamicClient } from '@dynamic-labs-sdk/client';
|
|
1
|
+
import type { DynamicClient, WalletAccount } from '@dynamic-labs-sdk/client';
|
|
2
2
|
import type { WalletProvider } from '@dynamic-labs-sdk/client/core';
|
|
3
3
|
import type { SessionTypes } from '@walletconnect/types';
|
|
4
4
|
export type WalletConnectWalletProvider = WalletProvider & {
|
|
@@ -34,4 +34,21 @@ export type WalletConnectWalletProvider = WalletProvider & {
|
|
|
34
34
|
export type WalletProviderBuilder = (args: {
|
|
35
35
|
session: SessionTypes.Struct;
|
|
36
36
|
}, client: DynamicClient) => Promise<WalletConnectWalletProvider>;
|
|
37
|
+
/**
|
|
38
|
+
* The return value of Dynamic's interface for establishing a WalletConnect connection.
|
|
39
|
+
* It is similar to the return value of WalletConnect's own connection methods, but
|
|
40
|
+
* provides access to the created Dynamic wallet accounts at the time of approval.
|
|
41
|
+
*/
|
|
42
|
+
export type WalletConnectConnectionResult = {
|
|
43
|
+
/**
|
|
44
|
+
* A promise that resolves to the wallet accounts that were created when the connection was approved.
|
|
45
|
+
*/
|
|
46
|
+
approval: () => Promise<{
|
|
47
|
+
walletAccounts: WalletAccount[];
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* The URI that must be provided to the wallet application to establish the connection.
|
|
51
|
+
*/
|
|
52
|
+
uri: string;
|
|
53
|
+
};
|
|
37
54
|
//# sourceMappingURL=walletConnectWalletProvider.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletConnectWalletProvider.types.d.ts","sourceRoot":"","sources":["../../../../packages/wallet-connect/src/walletConnectWalletProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"walletConnectWalletProvider.types.d.ts","sourceRoot":"","sources":["../../../../packages/wallet-connect/src/walletConnectWalletProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,MAAM,2BAA2B,GAAG,cAAc,GAAG;IACzD;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IAE5D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC;IAE7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,IAAI,EAAE;IAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAA;CAAE,EACtC,MAAM,EAAE,aAAa,KAClB,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC;QAAE,cAAc,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC,CAAC;IAE7D;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
|