@dynamic-labs/wallet-connector-core 4.0.0-alpha.17 → 4.0.0-alpha.18
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 +7 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/{lib/wallets/Wallet → Wallet}/Wallet.cjs +3 -5
- package/src/{lib/wallets/Wallet → Wallet}/Wallet.d.ts +1 -1
- package/src/{lib/wallets/Wallet → Wallet}/Wallet.js +3 -5
- package/src/WalletBookSingleton/index.d.ts +1 -0
- package/src/{lib/WalletConnector.cjs → WalletConnectorBase/WalletConnectorBase.cjs} +3 -31
- package/src/{lib/WalletConnector.d.ts → WalletConnectorBase/WalletConnectorBase.d.ts} +8 -45
- package/src/{lib/WalletConnector.js → WalletConnectorBase/WalletConnectorBase.js} +4 -30
- package/src/WalletConnectorBase/index.d.ts +2 -0
- package/src/WalletConnectorBase/types.cjs +33 -0
- package/src/WalletConnectorBase/types.d.ts +55 -0
- package/src/WalletConnectorBase/types.js +28 -0
- package/src/{lib/events → events}/walletConnectorEvents.d.ts +1 -1
- package/src/index.cjs +8 -7
- package/src/index.d.ts +6 -5
- package/src/index.js +4 -3
- package/src/{lib → interfaces}/IAccountAbstractionWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/IBitcoinWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ICoinbaseMPCWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/IEmailWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/IHardwareWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/IPasskeyWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/IPhantomRedirectConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ISMSWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ISendBalanceWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ISessionKeyCompatibleWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ITurnkeyWalletConnector.d.ts +1 -1
- package/src/{lib → interfaces}/ITurnkeyWalletConnectorStamper.d.ts +1 -1
- package/src/{lib → interfaces}/IWalletConnectConnector.d.ts +1 -1
- package/src/{lib → interfaces}/index.d.ts +7 -11
- package/src/types.d.ts +8 -0
- package/src/utils/eventListenerHandlers.d.ts +1 -1
- package/src/utils/getChainInfo/getChainInfo.d.ts +1 -1
- package/src/utils/getWalletConnectorByKey.d.ts +1 -1
- package/src/utils/isAccountAbstractionConnector/isAccountAbstractionConnector.d.ts +1 -1
- package/src/utils/isBitcoinConnector/isBitcoinConnector.d.ts +1 -1
- package/src/utils/isBloctoConnector/isBloctoConnector.d.ts +1 -1
- package/src/utils/isCoinbaseMpcWalletConnector/isCoinbaseMpcWalletConnector.d.ts +1 -1
- package/src/utils/isConnectorMethodSupported/isConnectorMethodSupported.d.ts +1 -1
- package/src/utils/isEmailOTPWalletConnector/isEmailOTPWalletConnector.d.ts +1 -1
- package/src/utils/isEmailWalletConnector/isEmailWalletConnector.d.ts +1 -1
- package/src/utils/isEmbeddedConnector/isEmbeddedConnector.d.ts +1 -1
- package/src/utils/isHardwareWalletConnector/isHardwareWalletConnector.d.ts +1 -1
- package/src/utils/isMagicConnector/isMagicConnector.d.ts +1 -1
- package/src/utils/isPasskeyWalletConnector/isPasskeyWalletConnector.d.ts +1 -1
- package/src/utils/isPhantomRedirectConnector/isPhantomRedirectConnector.d.ts +1 -1
- package/src/utils/isSendBalanceWalletConnector/isSendBalanceWalletConnector.d.ts +2 -2
- package/src/utils/isSessionKeyCompatible/isSessionKeyCompatibleWallet/isSessionKeyCompatibleWallet.d.ts +1 -1
- package/src/utils/isSessionKeyCompatible/isSessionKeyCompatibleWalletConnector/isSessionKeyCompatibleWalletConnector.d.ts +2 -2
- package/src/utils/isSocialWalletConnector/isSocialWalletConnector.d.ts +1 -1
- package/src/utils/isTurnkeyWalletConnector/isTurnkeyWalletConnector.d.ts +1 -1
- package/src/utils/isWalletConnectConnector/isWalletConnectConnector.d.ts +1 -1
- package/src/utils/walletConnectDeepLinks/performPlatformSpecificConnectionMethod.d.ts +1 -1
- package/src/lib/WalletConnectorExtension.d.ts +0 -7
- package/src/lib/types.d.ts +0 -8
- package/src/lib/wallets/index.d.ts +0 -1
- /package/src/{lib/wallets/Wallet → Wallet}/index.d.ts +0 -0
- /package/src/{lib → WalletBookSingleton}/WalletBookSingleton.cjs +0 -0
- /package/src/{lib → WalletBookSingleton}/WalletBookSingleton.d.ts +0 -0
- /package/src/{lib → WalletBookSingleton}/WalletBookSingleton.js +0 -0
- /package/src/{lib/events → events}/index.d.ts +0 -0
- /package/src/{lib/events → events}/walletConnectorEvents.cjs +0 -0
- /package/src/{lib/events → events}/walletConnectorEvents.js +0 -0
- /package/src/{lib → interfaces}/IEmailOTPWalletConnector.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.18](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2024-10-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **web-extension:** add color scheme style to prevent broken style ([#7247](https://github.com/dynamic-labs/dynamic-auth/issues/7247)) ([c525c50](https://github.com/dynamic-labs/dynamic-auth/commit/c525c50ac02997f3baf220fd2e67c6c4b3d10903))
|
|
8
|
+
|
|
2
9
|
## [4.0.0-alpha.17](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2024-10-28)
|
|
3
10
|
|
|
4
11
|
|
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.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.18",
|
|
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",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.559"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.18",
|
|
25
|
+
"@dynamic-labs/logger": "4.0.0-alpha.18",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.18",
|
|
27
|
+
"@dynamic-labs/types": "4.0.0-alpha.18",
|
|
28
|
+
"@dynamic-labs/utils": "4.0.0-alpha.18",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.18",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var _tslib = require('
|
|
6
|
+
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var types = require('@dynamic-labs/types');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
require('@dynamic-labs/utils');
|
|
11
|
-
require('@dynamic-labs/wallet-book');
|
|
8
|
+
var normalizeAddress = require('../utils/isSameAddress/utils/normalizeAddress/normalizeAddress.cjs');
|
|
9
|
+
var logger = require('../utils/logger.cjs');
|
|
12
10
|
|
|
13
11
|
class Wallet extends types.BaseWallet {
|
|
14
12
|
constructor(_a) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseWalletProps } from '@dynamic-labs/types';
|
|
2
2
|
import { BaseWallet } from '@dynamic-labs/types';
|
|
3
|
-
import {
|
|
3
|
+
import { InternalWalletConnector, NameServiceData, WalletConnector } from '../WalletConnectorBase';
|
|
4
4
|
export type WalletProps<T extends InternalWalletConnector = InternalWalletConnector> = BaseWalletProps & {
|
|
5
5
|
connector: T;
|
|
6
6
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { __rest, __awaiter } from '
|
|
2
|
+
import { __rest, __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import { BaseWallet } from '@dynamic-labs/types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import '@dynamic-labs/utils';
|
|
7
|
-
import '@dynamic-labs/wallet-book';
|
|
4
|
+
import { normalizeAddress } from '../utils/isSameAddress/utils/normalizeAddress/normalizeAddress.js';
|
|
5
|
+
import { logger } from '../utils/logger.js';
|
|
8
6
|
|
|
9
7
|
class Wallet extends BaseWallet {
|
|
10
8
|
constructor(_a) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WalletBookSingleton';
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
7
7
|
var EventEmitter = require('eventemitter3');
|
|
8
|
-
var walletBook = require('@dynamic-labs/wallet-book');
|
|
9
8
|
var utils = require('@dynamic-labs/utils');
|
|
9
|
+
var walletBook = require('@dynamic-labs/wallet-book');
|
|
10
|
+
var walletConnectorEvents = require('../events/walletConnectorEvents.cjs');
|
|
10
11
|
var logger = require('../utils/logger.cjs');
|
|
11
12
|
var isSameAddress = require('../utils/isSameAddress/isSameAddress.cjs');
|
|
12
13
|
var getMobileExperience = require('../utils/getMobileExperience/getMobileExperience.cjs');
|
|
13
14
|
var isConnectorMethodSupported = require('../utils/isConnectorMethodSupported/isConnectorMethodSupported.cjs');
|
|
14
|
-
var WalletBookSingleton = require('
|
|
15
|
-
var walletConnectorEvents = require('./events/walletConnectorEvents.cjs');
|
|
15
|
+
var WalletBookSingleton = require('../WalletBookSingleton/WalletBookSingleton.cjs');
|
|
16
16
|
|
|
17
17
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
18
|
|
|
@@ -23,32 +23,6 @@ var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
|
|
|
23
23
|
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
24
24
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
25
25
|
var _WalletConnectorBase_registeredExtensions;
|
|
26
|
-
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
27
|
-
const Chains = [
|
|
28
|
-
'ETH',
|
|
29
|
-
'FLOW',
|
|
30
|
-
'SOL',
|
|
31
|
-
'EVM',
|
|
32
|
-
'ALGO',
|
|
33
|
-
'STARK',
|
|
34
|
-
'ATOM',
|
|
35
|
-
'COSMOS',
|
|
36
|
-
'BTC',
|
|
37
|
-
'ECLIPSE',
|
|
38
|
-
];
|
|
39
|
-
const socialProviders = [
|
|
40
|
-
'google',
|
|
41
|
-
'facebook',
|
|
42
|
-
'apple',
|
|
43
|
-
'github',
|
|
44
|
-
'bitbucket',
|
|
45
|
-
'gitlab',
|
|
46
|
-
'linkedin',
|
|
47
|
-
'twitter',
|
|
48
|
-
'discord',
|
|
49
|
-
'twitch',
|
|
50
|
-
'microsoft',
|
|
51
|
-
];
|
|
52
26
|
class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
53
27
|
createWallet(props) {
|
|
54
28
|
const wallet = new this.ChainWallet(props);
|
|
@@ -463,6 +437,4 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
463
437
|
}
|
|
464
438
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
465
439
|
|
|
466
|
-
exports.Chains = Chains;
|
|
467
440
|
exports.WalletConnectorBase = WalletConnectorBase;
|
|
468
|
-
exports.socialProviders = socialProviders;
|
|
@@ -1,59 +1,22 @@
|
|
|
1
1
|
import EventEmitter from 'eventemitter3';
|
|
2
|
-
import { WalletBookSchema, WalletSchema } from '@dynamic-labs/wallet-book';
|
|
3
|
-
import type { JwtVerifiedCredential, WalletAdditionalAddress } from '@dynamic-labs/sdk-api-core';
|
|
4
2
|
import { IChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
3
|
+
import type { JwtVerifiedCredential, WalletAdditionalAddress } from '@dynamic-labs/sdk-api-core';
|
|
5
4
|
import { MobileExperience } from '@dynamic-labs/types';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
export type Chain = typeof Chains[number];
|
|
13
|
-
export declare const socialProviders: readonly ["google", "facebook", "apple", "github", "bitbucket", "gitlab", "linkedin", "twitter", "discord", "twitch", "microsoft"];
|
|
14
|
-
export type SocialProvider = typeof socialProviders[number];
|
|
15
|
-
export type PayloadParams = {
|
|
16
|
-
params: {
|
|
17
|
-
accounts: string[];
|
|
18
|
-
chainId: number;
|
|
19
|
-
message: string;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
export type GetAddressOpts = {
|
|
23
|
-
chainId?: string;
|
|
24
|
-
onConnect?(payload: PayloadParams): void;
|
|
25
|
-
onDesktopUri?(uri: string): void;
|
|
26
|
-
onDisplayUri?(uri: string): void;
|
|
27
|
-
};
|
|
28
|
-
export type NameServiceData = {
|
|
29
|
-
avatar?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
};
|
|
32
|
-
declare module './types' {
|
|
5
|
+
import { WalletBookSchema, WalletSchema } from '@dynamic-labs/wallet-book';
|
|
6
|
+
import { WalletConnectorEventEmitter } from '../events';
|
|
7
|
+
import { WalletConstructor, WalletProps } from '../Wallet';
|
|
8
|
+
import { WalletBookSingleton } from '../WalletBookSingleton';
|
|
9
|
+
import { Chain, GetAddressOpts, InternalWalletConnector, NameServiceData, WalletConnectorEventTypes, WalletConnectorExtension } from './types';
|
|
10
|
+
declare module '../types' {
|
|
33
11
|
namespace WalletConnectorCore {
|
|
34
12
|
interface WalletConnector extends WalletConnectorBase {
|
|
35
13
|
}
|
|
36
14
|
}
|
|
37
15
|
}
|
|
38
|
-
export type InternalWalletConnector = WalletConnectorCore.WalletConnector;
|
|
39
|
-
export type WalletConnector = Pick<InternalWalletConnector, 'canConnectViaCustodialService' | 'canConnectViaQrCode' | 'canConnectViaSocial' | 'chainRpcProviders' | 'connect' | 'connectedChain' | 'createWallet' | 'constructorProps' | 'endSession' | 'getAddress' | 'getAdditionalAddresses' | 'getConnectedAccounts' | 'getDeepLink' | 'getMobileOrInstalledWallet' | 'getNetwork' | 'getSession' | 'initEventListener' | 'isAvailable' | 'isEmbeddedWallet' | 'isInitialized' | 'isInstalledOnBrowser' | 'isTestnet' | 'isWalletConnect' | 'key' | 'name' | 'parseAddress' | 'proveOwnership' | 'providerResources' | 'supportedChains' | 'supportsNetworkSwitching' | 'switchNetwork' | 'switchNetworkOnlyFromWallet' | 'teardownEventListeners'> & EventEmitter<WalletConnectorEventTypes>;
|
|
40
|
-
export interface WalletConnectorConstructor {
|
|
41
|
-
new (props?: any): InternalWalletConnector;
|
|
42
|
-
}
|
|
43
|
-
export type WalletConnectorsMethod = (props?: any) => WalletConnectorConstructor[];
|
|
44
|
-
export type WalletConnectorEventTypes = {
|
|
45
|
-
chainChange: (props: {
|
|
46
|
-
chain: string;
|
|
47
|
-
}) => void;
|
|
48
|
-
accountChange: (props: {
|
|
49
|
-
accounts: string[];
|
|
50
|
-
}) => void;
|
|
51
|
-
disconnect: () => void;
|
|
52
|
-
};
|
|
53
16
|
export declare abstract class WalletConnectorBase<C extends WalletConstructor<any> = WalletConstructor<any>> extends EventEmitter<WalletConnectorEventTypes> {
|
|
54
17
|
#private;
|
|
55
18
|
abstract ChainWallet: C;
|
|
56
|
-
createWallet(props: WalletProps<InternalWalletConnector>): import("
|
|
19
|
+
createWallet(props: WalletProps<InternalWalletConnector>): import("../Wallet").Wallet<any>;
|
|
57
20
|
chainRpcProviders: IChainRpcProviders | undefined;
|
|
58
21
|
constructorProps: any;
|
|
59
22
|
_walletBookInstance: WalletBookSingleton;
|
|
@@ -1,46 +1,20 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __classPrivateFieldGet, __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
|
-
import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
5
4
|
import { WalletAddressMismatchError } from '@dynamic-labs/utils';
|
|
5
|
+
import { getWalletBookWallet } from '@dynamic-labs/wallet-book';
|
|
6
|
+
import { walletConnectorEvents } from '../events/walletConnectorEvents.js';
|
|
6
7
|
import { logger } from '../utils/logger.js';
|
|
7
8
|
import { isSameAddress } from '../utils/isSameAddress/isSameAddress.js';
|
|
8
9
|
import { getMobileExperience } from '../utils/getMobileExperience/getMobileExperience.js';
|
|
9
10
|
import { isConnectorMethodSupported } from '../utils/isConnectorMethodSupported/isConnectorMethodSupported.js';
|
|
10
|
-
import { WalletBookSingleton } from '
|
|
11
|
-
import { walletConnectorEvents } from './events/walletConnectorEvents.js';
|
|
11
|
+
import { WalletBookSingleton } from '../WalletBookSingleton/WalletBookSingleton.js';
|
|
12
12
|
|
|
13
13
|
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
15
15
|
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
|
16
16
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
17
|
var _WalletConnectorBase_registeredExtensions;
|
|
18
|
-
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
19
|
-
const Chains = [
|
|
20
|
-
'ETH',
|
|
21
|
-
'FLOW',
|
|
22
|
-
'SOL',
|
|
23
|
-
'EVM',
|
|
24
|
-
'ALGO',
|
|
25
|
-
'STARK',
|
|
26
|
-
'ATOM',
|
|
27
|
-
'COSMOS',
|
|
28
|
-
'BTC',
|
|
29
|
-
'ECLIPSE',
|
|
30
|
-
];
|
|
31
|
-
const socialProviders = [
|
|
32
|
-
'google',
|
|
33
|
-
'facebook',
|
|
34
|
-
'apple',
|
|
35
|
-
'github',
|
|
36
|
-
'bitbucket',
|
|
37
|
-
'gitlab',
|
|
38
|
-
'linkedin',
|
|
39
|
-
'twitter',
|
|
40
|
-
'discord',
|
|
41
|
-
'twitch',
|
|
42
|
-
'microsoft',
|
|
43
|
-
];
|
|
44
18
|
class WalletConnectorBase extends EventEmitter {
|
|
45
19
|
createWallet(props) {
|
|
46
20
|
const wallet = new this.ChainWallet(props);
|
|
@@ -455,4 +429,4 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
455
429
|
}
|
|
456
430
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
457
431
|
|
|
458
|
-
export {
|
|
432
|
+
export { WalletConnectorBase };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const Chains = [
|
|
7
|
+
'ETH',
|
|
8
|
+
'FLOW',
|
|
9
|
+
'SOL',
|
|
10
|
+
'EVM',
|
|
11
|
+
'ALGO',
|
|
12
|
+
'STARK',
|
|
13
|
+
'ATOM',
|
|
14
|
+
'COSMOS',
|
|
15
|
+
'BTC',
|
|
16
|
+
'ECLIPSE',
|
|
17
|
+
];
|
|
18
|
+
const socialProviders = [
|
|
19
|
+
'google',
|
|
20
|
+
'facebook',
|
|
21
|
+
'apple',
|
|
22
|
+
'github',
|
|
23
|
+
'bitbucket',
|
|
24
|
+
'gitlab',
|
|
25
|
+
'linkedin',
|
|
26
|
+
'twitter',
|
|
27
|
+
'discord',
|
|
28
|
+
'twitch',
|
|
29
|
+
'microsoft',
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
exports.Chains = Chains;
|
|
33
|
+
exports.socialProviders = socialProviders;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import EventEmitter from 'eventemitter3';
|
|
2
|
+
import { WalletConnectorCore, WalletMetadata } from '../types';
|
|
3
|
+
export declare const Chains: readonly ["ETH", "FLOW", "SOL", "EVM", "ALGO", "STARK", "ATOM", "COSMOS", "BTC", "ECLIPSE"];
|
|
4
|
+
export type Chain = typeof Chains[number];
|
|
5
|
+
export declare const socialProviders: readonly ["google", "facebook", "apple", "github", "bitbucket", "gitlab", "linkedin", "twitter", "discord", "twitch", "microsoft"];
|
|
6
|
+
export type SocialProvider = typeof socialProviders[number];
|
|
7
|
+
export type PayloadParams = {
|
|
8
|
+
params: {
|
|
9
|
+
accounts: string[];
|
|
10
|
+
chainId: number;
|
|
11
|
+
message: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
export type GetAddressOpts = {
|
|
15
|
+
chainId?: string;
|
|
16
|
+
onConnect?(payload: PayloadParams): void;
|
|
17
|
+
onDesktopUri?(uri: string): void;
|
|
18
|
+
onDisplayUri?(uri: string): void;
|
|
19
|
+
};
|
|
20
|
+
export type NameServiceData = {
|
|
21
|
+
avatar?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
};
|
|
24
|
+
export type InternalWalletConnector = WalletConnectorCore.WalletConnector;
|
|
25
|
+
export type WalletConnector = Pick<InternalWalletConnector, 'canConnectViaCustodialService' | 'canConnectViaQrCode' | 'canConnectViaSocial' | 'chainRpcProviders' | 'connect' | 'connectedChain' | 'createWallet' | 'constructorProps' | 'endSession' | 'getAddress' | 'getAdditionalAddresses' | 'getConnectedAccounts' | 'getDeepLink' | 'getMobileOrInstalledWallet' | 'getNetwork' | 'getSession' | 'initEventListener' | 'isAvailable' | 'isEmbeddedWallet' | 'isInitialized' | 'isInstalledOnBrowser' | 'isTestnet' | 'isWalletConnect' | 'key' | 'name' | 'parseAddress' | 'proveOwnership' | 'providerResources' | 'supportedChains' | 'supportsNetworkSwitching' | 'switchNetwork' | 'switchNetworkOnlyFromWallet' | 'teardownEventListeners'> & EventEmitter<WalletConnectorEventTypes>;
|
|
26
|
+
export interface WalletConnectorConstructor {
|
|
27
|
+
new (props?: any): InternalWalletConnector;
|
|
28
|
+
metadata?: WalletMetadata;
|
|
29
|
+
}
|
|
30
|
+
export type WalletConnectorsMethod = (props?: any) => WalletConnectorConstructor[];
|
|
31
|
+
export type WalletConnectorEventTypes = {
|
|
32
|
+
chainChange: (props: {
|
|
33
|
+
chain: string;
|
|
34
|
+
}) => void;
|
|
35
|
+
accountChange: (props: {
|
|
36
|
+
accounts: string[];
|
|
37
|
+
}) => void;
|
|
38
|
+
disconnect: () => void;
|
|
39
|
+
};
|
|
40
|
+
export interface WalletConnectorExtension {
|
|
41
|
+
extend(connector: InternalWalletConnector, settings?: {
|
|
42
|
+
walletConnectDappProjectId?: string;
|
|
43
|
+
}): void;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
export type ChainChangeEventHandler = (chainId: string | number) => Promise<void>;
|
|
47
|
+
export type DisconnectEventHandler = (error?: {
|
|
48
|
+
code: number;
|
|
49
|
+
}) => Promise<void>;
|
|
50
|
+
export type ChainInfo = {
|
|
51
|
+
blockchainName: string;
|
|
52
|
+
displayName: string;
|
|
53
|
+
name: string;
|
|
54
|
+
symbol: Chain;
|
|
55
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
const Chains = [
|
|
3
|
+
'ETH',
|
|
4
|
+
'FLOW',
|
|
5
|
+
'SOL',
|
|
6
|
+
'EVM',
|
|
7
|
+
'ALGO',
|
|
8
|
+
'STARK',
|
|
9
|
+
'ATOM',
|
|
10
|
+
'COSMOS',
|
|
11
|
+
'BTC',
|
|
12
|
+
'ECLIPSE',
|
|
13
|
+
];
|
|
14
|
+
const socialProviders = [
|
|
15
|
+
'google',
|
|
16
|
+
'facebook',
|
|
17
|
+
'apple',
|
|
18
|
+
'github',
|
|
19
|
+
'bitbucket',
|
|
20
|
+
'gitlab',
|
|
21
|
+
'linkedin',
|
|
22
|
+
'twitter',
|
|
23
|
+
'discord',
|
|
24
|
+
'twitch',
|
|
25
|
+
'microsoft',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
export { Chains, socialProviders };
|
package/src/index.cjs
CHANGED
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
|
-
var
|
|
9
|
-
var Wallet = require('./lib/wallets/Wallet/Wallet.cjs');
|
|
10
|
-
var walletConnectorEvents = require('./lib/events/walletConnectorEvents.cjs');
|
|
8
|
+
var walletConnectorEvents = require('./events/walletConnectorEvents.cjs');
|
|
11
9
|
var logger = require('./utils/logger.cjs');
|
|
12
10
|
var ProviderLookup = require('./utils/ProviderLookup/ProviderLookup.cjs');
|
|
13
11
|
var getChainInfo = require('./utils/getChainInfo/getChainInfo.cjs');
|
|
@@ -38,13 +36,12 @@ var isSendBalanceWalletConnector = require('./utils/isSendBalanceWalletConnector
|
|
|
38
36
|
var isSessionKeyCompatibleWallet = require('./utils/isSessionKeyCompatible/isSessionKeyCompatibleWallet/isSessionKeyCompatibleWallet.cjs');
|
|
39
37
|
var isSessionKeyCompatibleWalletConnector = require('./utils/isSessionKeyCompatible/isSessionKeyCompatibleWalletConnector/isSessionKeyCompatibleWalletConnector.cjs');
|
|
40
38
|
var getMobileExperience = require('./utils/getMobileExperience/getMobileExperience.cjs');
|
|
39
|
+
var Wallet = require('./Wallet/Wallet.cjs');
|
|
40
|
+
var WalletConnectorBase = require('./WalletConnectorBase/WalletConnectorBase.cjs');
|
|
41
|
+
var types = require('./WalletConnectorBase/types.cjs');
|
|
41
42
|
|
|
42
43
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-connector-core', _package.version);
|
|
43
44
|
|
|
44
|
-
exports.Chains = WalletConnector.Chains;
|
|
45
|
-
exports.WalletConnectorBase = WalletConnector.WalletConnectorBase;
|
|
46
|
-
exports.socialProviders = WalletConnector.socialProviders;
|
|
47
|
-
exports.Wallet = Wallet.Wallet;
|
|
48
45
|
exports.walletConnectorEvents = walletConnectorEvents.walletConnectorEvents;
|
|
49
46
|
exports.logger = logger.logger;
|
|
50
47
|
exports.ProviderLookup = ProviderLookup.ProviderLookup;
|
|
@@ -80,3 +77,7 @@ exports.isSendBalanceWalletConnector = isSendBalanceWalletConnector.isSendBalanc
|
|
|
80
77
|
exports.isSessionKeyCompatibleWallet = isSessionKeyCompatibleWallet.isSessionKeyCompatibleWallet;
|
|
81
78
|
exports.isSessionKeyCompatibleWalletConnector = isSessionKeyCompatibleWalletConnector.isSessionKeyCompatibleWalletConnector;
|
|
82
79
|
exports.getMobileExperience = getMobileExperience.getMobileExperience;
|
|
80
|
+
exports.Wallet = Wallet.Wallet;
|
|
81
|
+
exports.WalletConnectorBase = WalletConnectorBase.WalletConnectorBase;
|
|
82
|
+
exports.Chains = types.Chains;
|
|
83
|
+
exports.socialProviders = types.socialProviders;
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type
|
|
3
|
-
export {
|
|
4
|
-
export
|
|
5
|
-
export {
|
|
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';
|
|
3
|
+
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, } from './types';
|
|
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, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, } from './utils';
|
|
5
|
+
export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
|
|
6
|
+
export { Chains, socialProviders, WalletConnectorBase, type Chain, type ChainInfo, type GetAddressOpts, type InternalWalletConnector, type NameServiceData, type PayloadParams, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorEventTypes, type WalletConnectorExtension, type WalletConnectorsMethod, } from './WalletConnectorBase';
|
package/src/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
3
|
import { version } from '../package.js';
|
|
4
|
-
export {
|
|
5
|
-
export { Wallet } from './lib/wallets/Wallet/Wallet.js';
|
|
6
|
-
export { walletConnectorEvents } from './lib/events/walletConnectorEvents.js';
|
|
4
|
+
export { walletConnectorEvents } from './events/walletConnectorEvents.js';
|
|
7
5
|
export { logger } from './utils/logger.js';
|
|
8
6
|
export { ProviderLookup } from './utils/ProviderLookup/ProviderLookup.js';
|
|
9
7
|
export { getChainInfo, getChainInfoWithOverrides, setChainInfoOverrides } from './utils/getChainInfo/getChainInfo.js';
|
|
@@ -34,5 +32,8 @@ export { isSendBalanceWalletConnector } from './utils/isSendBalanceWalletConnect
|
|
|
34
32
|
export { isSessionKeyCompatibleWallet } from './utils/isSessionKeyCompatible/isSessionKeyCompatibleWallet/isSessionKeyCompatibleWallet.js';
|
|
35
33
|
export { isSessionKeyCompatibleWalletConnector } from './utils/isSessionKeyCompatible/isSessionKeyCompatibleWalletConnector/isSessionKeyCompatibleWalletConnector.js';
|
|
36
34
|
export { getMobileExperience } from './utils/getMobileExperience/getMobileExperience.js';
|
|
35
|
+
export { Wallet } from './Wallet/Wallet.js';
|
|
36
|
+
export { WalletConnectorBase } from './WalletConnectorBase/WalletConnectorBase.js';
|
|
37
|
+
export { Chains, socialProviders } from './WalletConnectorBase/types.js';
|
|
37
38
|
|
|
38
39
|
assertPackageVersion('@dynamic-labs/wallet-connector-core', version);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IUITransaction } from '@dynamic-labs/types';
|
|
2
|
-
import { WalletConnector, WalletConnectorBase } from '
|
|
2
|
+
import { WalletConnector, WalletConnectorBase } from '../WalletConnectorBase';
|
|
3
3
|
type GetAccountAbstractionProviderProps = {
|
|
4
4
|
withSponsorship?: boolean;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletConnectorBase } from '
|
|
1
|
+
import { WalletConnectorBase } from '../WalletConnectorBase';
|
|
2
2
|
export interface ISMSWalletConnector extends WalletConnectorBase {
|
|
3
3
|
get phone(): string | undefined | null;
|
|
4
4
|
setPhone(phone: ISMSWalletConnector['phone']): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransactionReceipt, IUITransaction } from '@dynamic-labs/types';
|
|
2
|
-
import { WalletConnectorBase } from '
|
|
2
|
+
import { WalletConnectorBase } from '../WalletConnectorBase';
|
|
3
3
|
export interface ISendBalanceWalletConnector extends WalletConnectorBase {
|
|
4
4
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
5
5
|
confirmTransactionStatus?(txHash: string): Promise<TransactionReceipt>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JwtVerifiedCredential, TurnkeyWalletProperties } from '@dynamic-labs/sdk-api-core';
|
|
2
|
-
import { WalletConnectorBase } from '
|
|
2
|
+
import { WalletConnectorBase } from '../WalletConnectorBase';
|
|
3
3
|
type JwtVerifiedCredentialWithSmartWalletRef = JwtVerifiedCredential & {
|
|
4
4
|
smartWalletRefId?: string;
|
|
5
5
|
smartWalletRefAddress?: string;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
export * from './IEmailOTPWalletConnector';
|
|
2
|
-
export * from './IEmailWalletConnector';
|
|
3
|
-
export * from './WalletConnector';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './IPasskeyWalletConnector';
|
|
6
|
-
export * from './ITurnkeyWalletConnector';
|
|
7
|
-
export * from './ITurnkeyWalletConnectorStamper';
|
|
8
1
|
export * from './IAccountAbstractionWalletConnector';
|
|
9
2
|
export * from './IBitcoinWalletConnector';
|
|
3
|
+
export * from './ICoinbaseMPCWalletConnector';
|
|
4
|
+
export * from './IEmailOTPWalletConnector';
|
|
5
|
+
export * from './IEmailWalletConnector';
|
|
10
6
|
export * from './IHardwareWalletConnector';
|
|
7
|
+
export * from './IPasskeyWalletConnector';
|
|
11
8
|
export * from './IPhantomRedirectConnector';
|
|
12
|
-
export * from './ICoinbaseMPCWalletConnector';
|
|
13
|
-
export * from './IWalletConnectConnector';
|
|
14
9
|
export * from './ISendBalanceWalletConnector';
|
|
15
10
|
export * from './ISessionKeyCompatibleWalletConnector';
|
|
16
11
|
export * from './ISMSWalletConnector';
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
12
|
+
export * from './ITurnkeyWalletConnector';
|
|
13
|
+
export * from './ITurnkeyWalletConnectorStamper';
|
|
14
|
+
export * from './IWalletConnectConnector';
|
package/src/types.d.ts
CHANGED
|
@@ -3,3 +3,11 @@ export type ChainChangeEventHandler = (chainId: string | number) => Promise<void
|
|
|
3
3
|
export type DisconnectEventHandler = (error?: {
|
|
4
4
|
code: number;
|
|
5
5
|
}) => Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* @property id - A key that can be used to identify the wallet/connector, based on the wallet name.
|
|
8
|
+
* Example: 'metamask', 'magiceden', 'phantom', etc
|
|
9
|
+
*/
|
|
10
|
+
export type WalletMetadata = {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
export declare namespace WalletConnectorCore { }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
1
|
+
import { WalletConnector } from '..';
|
|
2
2
|
import { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler } from '../types';
|
|
3
3
|
export declare const eventListenerHandlers: (walletConnector: WalletConnector) => {
|
|
4
4
|
handleAccountChange: AccountChangeEventHandler;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainInfo } from '
|
|
1
|
+
import { ChainInfo } from '../..';
|
|
2
2
|
export type ChainName = 'algorand' | 'eclipse' | 'bitcoin' | 'evm' | 'flow' | 'solana' | 'starknet' | 'cosmos';
|
|
3
3
|
export type ChainDisplayOverrides = Partial<Record<ChainName, {
|
|
4
4
|
displayName?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InternalWalletConnector } from '
|
|
1
|
+
import { InternalWalletConnector } from '..';
|
|
2
2
|
export declare const getWalletConnectorByKey: (wallets: InternalWalletConnector[], key: string) => InternalWalletConnector | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IAccountAbstractionWalletConnector } from '
|
|
1
|
+
import { IAccountAbstractionWalletConnector } from '../..';
|
|
2
2
|
export declare const isAccountAbstractionConnector: (walletConnector: IAccountAbstractionWalletConnector | unknown) => walletConnector is IAccountAbstractionWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IBitcoinWalletConnector, WalletConnector } from '
|
|
1
|
+
import { IBitcoinWalletConnector, WalletConnector } from '../..';
|
|
2
2
|
export declare const isBitcoinConnector: (connector: WalletConnector | IBitcoinWalletConnector) => connector is IBitcoinWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
1
|
+
import { WalletConnector } from '../..';
|
|
2
2
|
export declare const isBloctoConnector: (connector: WalletConnector) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ICoinbaseMPCWalletConnector, WalletConnector } from '
|
|
1
|
+
import { ICoinbaseMPCWalletConnector, WalletConnector } from '../..';
|
|
2
2
|
export declare const isCoinbaseMpcWalletConnector: (connector?: WalletConnector | ICoinbaseMPCWalletConnector) => connector is ICoinbaseMPCWalletConnector;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WalletSchema } from '@dynamic-labs/wallet-book';
|
|
2
|
-
import { InternalWalletConnector } from '
|
|
2
|
+
import { InternalWalletConnector } from '../..';
|
|
3
3
|
export declare const isConnectorMethodSupported: (connector: InternalWalletConnector, method: string, platform: keyof NonNullable<WalletSchema['walletLimitations']>) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IEmailOTPWalletConnector, WalletConnector } from '
|
|
1
|
+
import { IEmailOTPWalletConnector, WalletConnector } from '../..';
|
|
2
2
|
export declare const isEmailOTPWalletConnector: (walletConnector: WalletConnector | IEmailOTPWalletConnector) => walletConnector is IEmailOTPWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector, IEmailWalletConnector } from '
|
|
1
|
+
import { WalletConnector, IEmailWalletConnector } from '../..';
|
|
2
2
|
export declare const isEmailWalletConnector: (walletConnector: WalletConnector | IEmailWalletConnector) => walletConnector is IEmailWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
1
|
+
import { WalletConnector } from '../..';
|
|
2
2
|
export declare const isEmbeddedConnector: (connector: WalletConnector) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IHardwareWalletConnector, WalletConnector } from '
|
|
1
|
+
import { IHardwareWalletConnector, WalletConnector } from '../..';
|
|
2
2
|
export declare const isHardwareWalletConnector: (connector: WalletConnector | IHardwareWalletConnector) => connector is IHardwareWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
1
|
+
import { WalletConnector } from '../..';
|
|
2
2
|
export declare const isMagicConnector: (connector: WalletConnector) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector, IPasskeyWalletConnector } from '
|
|
1
|
+
import { WalletConnector, IPasskeyWalletConnector } from '../..';
|
|
2
2
|
export declare const isPasskeyWalletConnector: (walletConnector: WalletConnector | IPasskeyWalletConnector) => walletConnector is IPasskeyWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IPhantomRedirectConnectorWithEvents } from '
|
|
1
|
+
import { IPhantomRedirectConnectorWithEvents } from '../..';
|
|
2
2
|
export declare const isPhantomRedirectConnector: (connector: unknown) => connector is IPhantomRedirectConnectorWithEvents;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
2
|
-
import { ISendBalanceWalletConnector } from '../../
|
|
1
|
+
import { WalletConnector } from '../..';
|
|
2
|
+
import { ISendBalanceWalletConnector } from '../../interfaces/ISendBalanceWalletConnector';
|
|
3
3
|
export declare const isSendBalanceWalletConnector: (walletConnector: WalletConnector | ISendBalanceWalletConnector) => walletConnector is ISendBalanceWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Wallet } from '../../../
|
|
1
|
+
import { Wallet } from '../../../Wallet';
|
|
2
2
|
export declare const isSessionKeyCompatibleWallet: (wallet: Wallet) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ISessionKeyCompatibleWalletConnector } from '../../../
|
|
2
|
-
import { WalletConnector } from '../../../
|
|
1
|
+
import { ISessionKeyCompatibleWalletConnector } from '../../../interfaces/ISessionKeyCompatibleWalletConnector';
|
|
2
|
+
import { WalletConnector } from '../../../WalletConnectorBase';
|
|
3
3
|
export declare const isSessionKeyCompatibleWalletConnector: (walletConnector: WalletConnector | ISessionKeyCompatibleWalletConnector | undefined | null) => walletConnector is ISessionKeyCompatibleWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector } from '
|
|
1
|
+
import { WalletConnector } from '../..';
|
|
2
2
|
export declare const isSocialWalletConnector: (walletConnector: WalletConnector) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WalletConnector, ITurnkeyWalletConnector } from '
|
|
1
|
+
import { WalletConnector, ITurnkeyWalletConnector } from '../..';
|
|
2
2
|
export declare const isTurnkeyWalletConnector: (walletConnector: WalletConnector) => walletConnector is ITurnkeyWalletConnector;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IWalletConnectConnector, WalletConnector } from '
|
|
1
|
+
import { IWalletConnectConnector, WalletConnector } from '../..';
|
|
2
2
|
export declare const isWalletConnectConnector: (connector?: WalletConnector) => connector is IWalletConnectConnector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { WalletSchema } from '@dynamic-labs/wallet-book';
|
|
2
|
-
import type { GetAddressOpts } from '
|
|
2
|
+
import type { GetAddressOpts } from '../..';
|
|
3
3
|
import { DeepLinkVariant } from './walletConnectDeepLinks';
|
|
4
4
|
export declare const performPlatformSpecificConnectionMethod: (uri: string, metadata: WalletSchema, opts: Pick<GetAddressOpts, 'onDesktopUri' | 'onDisplayUri'>, preference: DeepLinkVariant) => void;
|
package/src/lib/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Wallet';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|