@dynamic-labs/wallet-connector-core 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +41 -0
- package/package.json +7 -7
- package/src/lib/WalletConnector.cjs +25 -0
- package/src/lib/WalletConnector.d.ts +21 -0
- package/src/lib/WalletConnector.js +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2024-06-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* implement useExternalAuth hook to signin using external jwt auth ([#6039](https://github.com/dynamic-labs/DynamicAuth/issues/6039)) ([ba90908](https://github.com/dynamic-labs/DynamicAuth/commit/ba90908509ec21f708a4a0782a7f94861fc3b484))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* allow sign-in with different ME BTC wallet after initial connection ([a527b46](https://github.com/dynamic-labs/DynamicAuth/commit/a527b464f321b4fc27730f57c3812e996b5ed878))
|
|
13
|
+
* close sign modal when signing in with a wallet when embedded wallet is enabled ([#6013](https://github.com/dynamic-labs/DynamicAuth/issues/6013)) ([0f4f3c8](https://github.com/dynamic-labs/DynamicAuth/commit/0f4f3c83db162f7a1794a3549b60bbad6b03e2c0))
|
|
14
|
+
* custom network without a valid icon should still display its name in network picker ([#6018](https://github.com/dynamic-labs/DynamicAuth/issues/6018)) ([0b10df6](https://github.com/dynamic-labs/DynamicAuth/commit/0b10df68950bfc9b8492443158a6bb030dc1122c))
|
|
15
|
+
* e2e: remove page pause ([#6045](https://github.com/dynamic-labs/DynamicAuth/issues/6045)) ([55bba00](https://github.com/dynamic-labs/DynamicAuth/commit/55bba0034255055d6ae266b1296542f47ed48e2b))
|
|
16
|
+
* more fixes for connect starknet button ([#6046](https://github.com/dynamic-labs/DynamicAuth/issues/6046)) ([0fb570a](https://github.com/dynamic-labs/DynamicAuth/commit/0fb570a44e65f8dd6d4d2bf5edb2ee54985ec9d4))
|
|
17
|
+
* set verified credentials on embedded wallet creation ([#6044](https://github.com/dynamic-labs/DynamicAuth/issues/6044)) ([b52a96d](https://github.com/dynamic-labs/DynamicAuth/commit/b52a96d321e7efdb30dce9cdb3f6f176c24ceb81))
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2024-06-14)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ⚠ BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* remove viem dependency from non-evm packages (#5508)
|
|
25
|
+
* move rpc providers into their own packages (#5981)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add in-app browser navigation support for sats-connect ([#5988](https://github.com/dynamic-labs/DynamicAuth/issues/5988)) ([be27d2d](https://github.com/dynamic-labs/DynamicAuth/commit/be27d2d4030bbe2157e879497d8e6a00b4a3e404))
|
|
30
|
+
* move rpc providers into their own packages ([#5981](https://github.com/dynamic-labs/DynamicAuth/issues/5981)) ([d7a62d6](https://github.com/dynamic-labs/DynamicAuth/commit/d7a62d60e79dfa6d6651b0fa103e90b6f8a9ccf3))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* embedded solana wallets can send SPL tokens and estimate gas ([#5982](https://github.com/dynamic-labs/DynamicAuth/issues/5982)) ([36623eb](https://github.com/dynamic-labs/DynamicAuth/commit/36623eb99d1d1dfebfd8b6f3194eeff31e7de2bf))
|
|
36
|
+
* improve logic related to turnkey and emailVerifcation ([#5946](https://github.com/dynamic-labs/DynamicAuth/issues/5946)) ([dd0b2dc](https://github.com/dynamic-labs/DynamicAuth/commit/dd0b2dc6d93a8bbbcb6eef88732e62b747005bb3))
|
|
37
|
+
* show linked wallets with unavailable providers in user wallets list ([#5992](https://github.com/dynamic-labs/DynamicAuth/issues/5992)) ([996079c](https://github.com/dynamic-labs/DynamicAuth/commit/996079ced360651c7b1eb5273548e0548f6f9f3a))
|
|
38
|
+
* switch network modal not closing after switching to a supported network ([#5979](https://github.com/dynamic-labs/DynamicAuth/issues/5979)) ([f239952](https://github.com/dynamic-labs/DynamicAuth/commit/f2399523dd82bb28046992cac4582688b688bdc0))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
* remove viem dependency from non-evm packages ([#5508](https://github.com/dynamic-labs/DynamicAuth/issues/5508)) ([0299dc3](https://github.com/dynamic-labs/DynamicAuth/commit/0299dc3cbb611182d763e9a89d1270c2e2f32df5))
|
|
42
|
+
|
|
2
43
|
## [3.0.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.3...v3.0.0-alpha.4) (2024-06-12)
|
|
3
44
|
|
|
4
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,14 +26,14 @@
|
|
|
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.470"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
33
|
-
"@dynamic-labs/rpc-providers": "3.0.0-alpha.
|
|
34
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
35
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
36
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
32
|
+
"@dynamic-labs/logger": "3.0.0-alpha.6",
|
|
33
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.6",
|
|
34
|
+
"@dynamic-labs/types": "3.0.0-alpha.6",
|
|
35
|
+
"@dynamic-labs/utils": "3.0.0-alpha.6",
|
|
36
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.6",
|
|
37
37
|
"eventemitter3": "5.0.1"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -92,6 +92,12 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
92
92
|
* Get the rpc provider
|
|
93
93
|
*/
|
|
94
94
|
this.getRpcProvider = this.getPublicClient;
|
|
95
|
+
/**
|
|
96
|
+
* Flag if connector/provider is available
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
this.isAvailable = true;
|
|
95
101
|
/**
|
|
96
102
|
* If the wallet generated by a valid embedded wallet provider
|
|
97
103
|
* For example: magic wallets
|
|
@@ -182,6 +188,25 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
182
188
|
getAddress(opts) {
|
|
183
189
|
return Promise.resolve(undefined);
|
|
184
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* Parses a public address to ensure it follows a correct format.
|
|
193
|
+
*
|
|
194
|
+
* For instance, with EVM wallets, this might ensure it follows the EIP 55 format.
|
|
195
|
+
*
|
|
196
|
+
* @default string
|
|
197
|
+
*/
|
|
198
|
+
parseAddress(address) {
|
|
199
|
+
return address;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Whether this wallet connector is targeting a testnet.
|
|
203
|
+
* So far only supported for EVM connectors.
|
|
204
|
+
*
|
|
205
|
+
* @default Promise<false>
|
|
206
|
+
*/
|
|
207
|
+
isTestnet() {
|
|
208
|
+
return Promise.resolve(false);
|
|
209
|
+
}
|
|
185
210
|
/**
|
|
186
211
|
* Gets the additional addresses of the wallet, given the main address
|
|
187
212
|
*
|
|
@@ -120,6 +120,21 @@ export declare abstract class WalletConnectorBase extends EventEmitter<WalletCon
|
|
|
120
120
|
* @default Promise<undefined>
|
|
121
121
|
*/
|
|
122
122
|
getAddress(opts?: GetAddressOpts): Promise<string | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* Parses a public address to ensure it follows a correct format.
|
|
125
|
+
*
|
|
126
|
+
* For instance, with EVM wallets, this might ensure it follows the EIP 55 format.
|
|
127
|
+
*
|
|
128
|
+
* @default string
|
|
129
|
+
*/
|
|
130
|
+
parseAddress(address: string): string;
|
|
131
|
+
/**
|
|
132
|
+
* Whether this wallet connector is targeting a testnet.
|
|
133
|
+
* So far only supported for EVM connectors.
|
|
134
|
+
*
|
|
135
|
+
* @default Promise<false>
|
|
136
|
+
*/
|
|
137
|
+
isTestnet(): Promise<boolean>;
|
|
123
138
|
/**
|
|
124
139
|
* Gets the additional addresses of the wallet, given the main address
|
|
125
140
|
*
|
|
@@ -217,6 +232,12 @@ export declare abstract class WalletConnectorBase extends EventEmitter<WalletCon
|
|
|
217
232
|
* @default Promise<void>
|
|
218
233
|
*/
|
|
219
234
|
init(): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Flag if connector/provider is available
|
|
237
|
+
*
|
|
238
|
+
* @default true
|
|
239
|
+
*/
|
|
240
|
+
isAvailable: boolean;
|
|
220
241
|
/**
|
|
221
242
|
* If the wallet generated by a valid embedded wallet provider
|
|
222
243
|
* For example: magic wallets
|
|
@@ -84,6 +84,12 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
84
84
|
* Get the rpc provider
|
|
85
85
|
*/
|
|
86
86
|
this.getRpcProvider = this.getPublicClient;
|
|
87
|
+
/**
|
|
88
|
+
* Flag if connector/provider is available
|
|
89
|
+
*
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
this.isAvailable = true;
|
|
87
93
|
/**
|
|
88
94
|
* If the wallet generated by a valid embedded wallet provider
|
|
89
95
|
* For example: magic wallets
|
|
@@ -174,6 +180,25 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
174
180
|
getAddress(opts) {
|
|
175
181
|
return Promise.resolve(undefined);
|
|
176
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Parses a public address to ensure it follows a correct format.
|
|
185
|
+
*
|
|
186
|
+
* For instance, with EVM wallets, this might ensure it follows the EIP 55 format.
|
|
187
|
+
*
|
|
188
|
+
* @default string
|
|
189
|
+
*/
|
|
190
|
+
parseAddress(address) {
|
|
191
|
+
return address;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Whether this wallet connector is targeting a testnet.
|
|
195
|
+
* So far only supported for EVM connectors.
|
|
196
|
+
*
|
|
197
|
+
* @default Promise<false>
|
|
198
|
+
*/
|
|
199
|
+
isTestnet() {
|
|
200
|
+
return Promise.resolve(false);
|
|
201
|
+
}
|
|
177
202
|
/**
|
|
178
203
|
* Gets the additional addresses of the wallet, given the main address
|
|
179
204
|
*
|