@dynamic-labs/wallet-connector-core 4.1.0 → 4.2.1
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/index.d.ts +1 -1
- package/src/interfaces/IAccountAbstractionWalletConnector.d.ts +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.2.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.2.0...v4.2.1) (2025-01-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* remove dependency on @dynamic-labs/ethereum-aa from sdk-react core ([#7804](https://github.com/dynamic-labs/dynamic-auth/issues/7804)) ([d1692d2](https://github.com/dynamic-labs/dynamic-auth/commit/d1692d2f58d4f0e14f7978ef81c020e871973810))
|
|
8
|
+
|
|
9
|
+
## [4.2.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.1.0...v4.2.0) (2025-01-14)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add EthereumWalletConnectorsWithConfig ([#7796](https://github.com/dynamic-labs/dynamic-auth/issues/7796)) ([52146c3](https://github.com/dynamic-labs/dynamic-auth/commit/52146c38acbbe9ad31d5f047527b06ea44846065))
|
|
15
|
+
* add new userWalletsChanged event that aggregates all user wallet events ([#7797](https://github.com/dynamic-labs/dynamic-auth/issues/7797)) ([058e629](https://github.com/dynamic-labs/dynamic-auth/commit/058e629f0e760ad9dff2b03f86354355c6f8bffe))
|
|
16
|
+
* add support for connect with OKX Wallet on Eclipse ([#7793](https://github.com/dynamic-labs/dynamic-auth/issues/7793)) ([b6cd047](https://github.com/dynamic-labs/dynamic-auth/commit/b6cd04781402868443b02cbce269dd3c02c358b5))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* getWalletClient method not returning client with chain for Coinbase ([#7799](https://github.com/dynamic-labs/dynamic-auth/issues/7799)) ([e075493](https://github.com/dynamic-labs/dynamic-auth/commit/e0754936582c19850c905fc3d62c3621df7c274c))
|
|
22
|
+
|
|
2
23
|
## [4.1.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.1...v4.1.0) (2025-01-14)
|
|
3
24
|
|
|
4
25
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.586"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.1
|
|
25
|
-
"@dynamic-labs/logger": "4.1
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.1
|
|
27
|
-
"@dynamic-labs/types": "4.1
|
|
28
|
-
"@dynamic-labs/utils": "4.1
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.1
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.2.1",
|
|
25
|
+
"@dynamic-labs/logger": "4.2.1",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.2.1",
|
|
27
|
+
"@dynamic-labs/types": "4.2.1",
|
|
28
|
+
"@dynamic-labs/utils": "4.2.1",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.2.1",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { walletConnectorEvents } from './events';
|
|
2
|
-
export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type ExtendedPrivateKey, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, } from './interfaces';
|
|
2
|
+
export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type ExtendedPrivateKey, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, } from './interfaces';
|
|
3
3
|
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
|
|
4
4
|
export { addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isCoinbaseMpcWalletConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isTurnkeyWalletConnector, isWalletConnectConnector, isConnectorMethodSupported, isConnectorEventSupported, getWalletMetadataFromWalletBook, getWalletLinks, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, convertWalletToBaseWallet, convertWalletToBaseWalletPartial, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, } from './utils';
|
|
5
5
|
export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { IUITransaction } from '@dynamic-labs/types';
|
|
2
2
|
import { EcdsaValidatorOptions, ProviderEntryPointVersionEnum, ProviderKernelVersionEnum } from '@dynamic-labs/sdk-api-core';
|
|
3
|
+
import { ISendBalanceWalletConnector } from '../interfaces/ISendBalanceWalletConnector';
|
|
3
4
|
import { WalletConnector, WalletConnectorBase } from '../WalletConnectorBase';
|
|
4
5
|
type GetAccountAbstractionProviderProps = {
|
|
5
6
|
withSponsorship?: boolean;
|
|
6
7
|
};
|
|
8
|
+
export type IZeroDevConnector = IAccountAbstractionWalletConnector & ISendBalanceWalletConnector & {
|
|
9
|
+
getCurrentUserOperation(transaction: IUITransaction): Promise<{
|
|
10
|
+
userOperation: any;
|
|
11
|
+
sponsored: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
formatUserOperation(userOperation: unknown): Promise<any>;
|
|
14
|
+
};
|
|
7
15
|
export interface IAccountAbstractionWalletConnector extends WalletConnectorBase {
|
|
8
16
|
canSponsorTransactionGas(transaction: IUITransaction): Promise<boolean>;
|
|
9
17
|
disableGasSponsorshipOnce(): void;
|
|
10
|
-
getAccountAbstractionProvider
|
|
11
|
-
getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): unknown;
|
|
18
|
+
getAccountAbstractionProvider(props?: GetAccountAbstractionProviderProps): any;
|
|
12
19
|
/**
|
|
13
20
|
* @deprecated You should get the EOA connector by passing the SCW wallet to getEOAConnector,
|
|
14
21
|
* from the useSmartWallet hook
|