@dynamic-labs/wallet-connector-core 3.0.0-alpha.4 → 3.0.0-alpha.5
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 +24 -0
- package/package.json +6 -6
- package/src/lib/WalletConnector.cjs +19 -0
- package/src/lib/WalletConnector.d.ts +15 -0
- package/src/lib/WalletConnector.js +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
## [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)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* remove viem dependency from non-evm packages (#5508)
|
|
8
|
+
* move rpc providers into their own packages (#5981)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 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))
|
|
13
|
+
* 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))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* 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))
|
|
19
|
+
* 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))
|
|
20
|
+
* 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))
|
|
21
|
+
* 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))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* 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))
|
|
25
|
+
|
|
2
26
|
## [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
27
|
|
|
4
28
|
|
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.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@dynamic-labs/sdk-api-core": "0.0.461"
|
|
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.5",
|
|
33
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.5",
|
|
34
|
+
"@dynamic-labs/types": "3.0.0-alpha.5",
|
|
35
|
+
"@dynamic-labs/utils": "3.0.0-alpha.5",
|
|
36
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.5",
|
|
37
37
|
"eventemitter3": "5.0.1"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -182,6 +182,25 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
182
182
|
getAddress(opts) {
|
|
183
183
|
return Promise.resolve(undefined);
|
|
184
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Parses a public address to ensure it follows a correct format.
|
|
187
|
+
*
|
|
188
|
+
* For instance, with EVM wallets, this might ensure it follows the EIP 55 format.
|
|
189
|
+
*
|
|
190
|
+
* @default string
|
|
191
|
+
*/
|
|
192
|
+
parseAddress(address) {
|
|
193
|
+
return address;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Whether this wallet connector is targeting a testnet.
|
|
197
|
+
* So far only supported for EVM connectors.
|
|
198
|
+
*
|
|
199
|
+
* @default Promise<false>
|
|
200
|
+
*/
|
|
201
|
+
isTestnet() {
|
|
202
|
+
return Promise.resolve(false);
|
|
203
|
+
}
|
|
185
204
|
/**
|
|
186
205
|
* Gets the additional addresses of the wallet, given the main address
|
|
187
206
|
*
|
|
@@ -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
|
*
|
|
@@ -174,6 +174,25 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
174
174
|
getAddress(opts) {
|
|
175
175
|
return Promise.resolve(undefined);
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Parses a public address to ensure it follows a correct format.
|
|
179
|
+
*
|
|
180
|
+
* For instance, with EVM wallets, this might ensure it follows the EIP 55 format.
|
|
181
|
+
*
|
|
182
|
+
* @default string
|
|
183
|
+
*/
|
|
184
|
+
parseAddress(address) {
|
|
185
|
+
return address;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Whether this wallet connector is targeting a testnet.
|
|
189
|
+
* So far only supported for EVM connectors.
|
|
190
|
+
*
|
|
191
|
+
* @default Promise<false>
|
|
192
|
+
*/
|
|
193
|
+
isTestnet() {
|
|
194
|
+
return Promise.resolve(false);
|
|
195
|
+
}
|
|
177
196
|
/**
|
|
178
197
|
* Gets the additional addresses of the wallet, given the main address
|
|
179
198
|
*
|