@dynamic-labs/wallet-connector-core 3.0.0-alpha.65 → 3.0.0-alpha.67
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 +30 -0
- package/package.json +7 -7
- package/src/index.d.ts +1 -1
- package/src/lib/WalletConnector.cjs +8 -3
- package/src/lib/WalletConnector.d.ts +6 -6
- package/src/lib/WalletConnector.js +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.67](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.66...v3.0.0-alpha.67) (2024-09-12)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add blockaid url scanning to sdk api ([#6869](https://github.com/dynamic-labs/DynamicAuth/issues/6869)) ([0a20eef](https://github.com/dynamic-labs/DynamicAuth/commit/0a20eef2eec8793a714f67948ddba2bc1bab06cd))
|
|
8
|
+
* allow selecting which MetaMask account to connect with on sign-in ([#6838](https://github.com/dynamic-labs/DynamicAuth/issues/6838)) ([8a30614](https://github.com/dynamic-labs/DynamicAuth/commit/8a306140563390602a417fd191bc789d6e07c220))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* cach get server snashot to avoid next js rerender loop ([#6867](https://github.com/dynamic-labs/DynamicAuth/issues/6867)) ([6f77c01](https://github.com/dynamic-labs/DynamicAuth/commit/6f77c01663641ab870a8b96fb2d3b5611bc38c2c))
|
|
14
|
+
* clean up console errors on log out ([#6834](https://github.com/dynamic-labs/DynamicAuth/issues/6834)) ([a18a4ce](https://github.com/dynamic-labs/DynamicAuth/commit/a18a4ce57766dec0cc351794ff7a71b3c632d9a3))
|
|
15
|
+
* ensure open url method will be available in the webview controller ([#6852](https://github.com/dynamic-labs/DynamicAuth/issues/6852)) ([bdaf12f](https://github.com/dynamic-labs/DynamicAuth/commit/bdaf12f7a77b801c3dec67163e1fef2fdffc7d2a))
|
|
16
|
+
* solana transaction decoder fallback ([#6868](https://github.com/dynamic-labs/DynamicAuth/issues/6868)) ([38c9242](https://github.com/dynamic-labs/DynamicAuth/commit/38c924253c29e8e3569d9da9bc452a8cdc3af0d2))
|
|
17
|
+
|
|
18
|
+
## [3.0.0-alpha.66](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.65...v3.0.0-alpha.66) (2024-09-11)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add new method to BitcoinWallet to sign message with a specific address type ([#6861](https://github.com/dynamic-labs/DynamicAuth/issues/6861)) ([9284648](https://github.com/dynamic-labs/DynamicAuth/commit/92846488b4d60a498374dd60c4a0be3ab87e4e68))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* fix ethers-v6 exports ([#6863](https://github.com/dynamic-labs/DynamicAuth/issues/6863)) ([27a1aab](https://github.com/dynamic-labs/DynamicAuth/commit/27a1aabe6c5e6ed2501200f435b2cb5110836986))
|
|
29
|
+
* stop infinite rerendering when wagmi config error is thrown ([#6862](https://github.com/dynamic-labs/DynamicAuth/issues/6862)) ([9b2fac0](https://github.com/dynamic-labs/DynamicAuth/commit/9b2fac0a570246f4663057c1ff6c82a1adca64c6))
|
|
30
|
+
* update react-native packages to include correct dependencies ([#6859](https://github.com/dynamic-labs/DynamicAuth/issues/6859)) ([a6f6c1c](https://github.com/dynamic-labs/DynamicAuth/commit/a6f6c1c750d2d6916a94183059369e208ec9afa5))
|
|
31
|
+
|
|
2
32
|
## [3.0.0-alpha.65](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.64...v3.0.0-alpha.65) (2024-09-11)
|
|
3
33
|
|
|
4
34
|
|
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.67",
|
|
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.529"
|
|
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.67",
|
|
33
|
+
"@dynamic-labs/rpc-providers": "3.0.0-alpha.67",
|
|
34
|
+
"@dynamic-labs/types": "3.0.0-alpha.67",
|
|
35
|
+
"@dynamic-labs/utils": "3.0.0-alpha.67",
|
|
36
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.67",
|
|
37
37
|
"eventemitter3": "5.0.1"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Chains, Wallet, WalletConnectorBase, socialProviders, type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type Chain, type ChainInfo, type ExportHandler, type ExtendedPrivateKey, type GetAddressOpts, type
|
|
1
|
+
export { Chains, Wallet, WalletConnectorBase, socialProviders, type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type Chain, type ChainInfo, type ExportHandler, type ExtendedPrivateKey, type GetAddressOpts, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type ITurnkeyWalletConnector, type InternalWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISMSWalletConnector, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type NameServiceData, type PayloadParams, type RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorCore, type WalletConnectorEventTypes, type WalletConnectorsMethod, type WalletConstructor, type WalletProps, type WebAuthnAttestation, } from './lib';
|
|
2
2
|
export type { WalletConnectorExtension } from './lib/WalletConnectorExtension';
|
|
3
3
|
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, } from './types';
|
|
4
4
|
export { ProviderLookup, addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, setChainInfoOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isCoinbaseMpcWalletConnector, isTurnkeyWalletConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isWalletConnectConnector, logger, performPlatformSpecificConnectionMethod, shouldLowercaseAddress, utf8ToHex, type DeepLinkVariant, type ProviderCondition, type ChainDisplayOverrides, } from './utils';
|
|
@@ -171,6 +171,13 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
171
171
|
walletKey: this.key,
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Prompt the user to choose accounts to connect (see behavior in MM)
|
|
176
|
+
* @default Promise<[]>
|
|
177
|
+
*/
|
|
178
|
+
chooseAccountsToConnect() {
|
|
179
|
+
return Promise.resolve([]);
|
|
180
|
+
}
|
|
174
181
|
connect() {
|
|
175
182
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
176
183
|
yield this.getAddress();
|
|
@@ -240,11 +247,9 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
240
247
|
/**
|
|
241
248
|
* Get the address silently
|
|
242
249
|
*
|
|
243
|
-
* @param options - GetConnectedAccountsOpts
|
|
244
|
-
* chooseAccounts - if true will prompt for the user to choose accounts to connect (if supported)
|
|
245
250
|
* @default Promise<[]>
|
|
246
251
|
*/
|
|
247
|
-
getConnectedAccounts(
|
|
252
|
+
getConnectedAccounts() {
|
|
248
253
|
return Promise.resolve([]);
|
|
249
254
|
}
|
|
250
255
|
/**
|
|
@@ -24,9 +24,6 @@ export type GetAddressOpts = {
|
|
|
24
24
|
onDesktopUri?(uri: string): void;
|
|
25
25
|
onDisplayUri?(uri: string): void;
|
|
26
26
|
};
|
|
27
|
-
export type GetConnectedAccountsOpts = {
|
|
28
|
-
chooseAccounts?: boolean;
|
|
29
|
-
};
|
|
30
27
|
export type NameServiceData = {
|
|
31
28
|
avatar?: string;
|
|
32
29
|
name?: string;
|
|
@@ -102,6 +99,11 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
102
99
|
* @default false
|
|
103
100
|
*/
|
|
104
101
|
canConnectViaSocial: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Prompt the user to choose accounts to connect (see behavior in MM)
|
|
104
|
+
* @default Promise<[]>
|
|
105
|
+
*/
|
|
106
|
+
chooseAccountsToConnect(): Promise<string[]>;
|
|
105
107
|
/**
|
|
106
108
|
* Connect to the wallet or custodial service
|
|
107
109
|
*
|
|
@@ -166,11 +168,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
166
168
|
/**
|
|
167
169
|
* Get the address silently
|
|
168
170
|
*
|
|
169
|
-
* @param options - GetConnectedAccountsOpts
|
|
170
|
-
* chooseAccounts - if true will prompt for the user to choose accounts to connect (if supported)
|
|
171
171
|
* @default Promise<[]>
|
|
172
172
|
*/
|
|
173
|
-
getConnectedAccounts(
|
|
173
|
+
getConnectedAccounts(): Promise<string[]>;
|
|
174
174
|
/**
|
|
175
175
|
* Gets the deep link of the wallet
|
|
176
176
|
*
|
|
@@ -163,6 +163,13 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
163
163
|
walletKey: this.key,
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Prompt the user to choose accounts to connect (see behavior in MM)
|
|
168
|
+
* @default Promise<[]>
|
|
169
|
+
*/
|
|
170
|
+
chooseAccountsToConnect() {
|
|
171
|
+
return Promise.resolve([]);
|
|
172
|
+
}
|
|
166
173
|
connect() {
|
|
167
174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
175
|
yield this.getAddress();
|
|
@@ -232,11 +239,9 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
232
239
|
/**
|
|
233
240
|
* Get the address silently
|
|
234
241
|
*
|
|
235
|
-
* @param options - GetConnectedAccountsOpts
|
|
236
|
-
* chooseAccounts - if true will prompt for the user to choose accounts to connect (if supported)
|
|
237
242
|
* @default Promise<[]>
|
|
238
243
|
*/
|
|
239
|
-
getConnectedAccounts(
|
|
244
|
+
getConnectedAccounts() {
|
|
240
245
|
return Promise.resolve([]);
|
|
241
246
|
}
|
|
242
247
|
/**
|