@rango-dev/wallets-react 0.48.1-next.2 → 0.48.1-next.3
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/dist/helpers/index.js +1 -1
- package/dist/helpers/index.js.map +3 -3
- package/dist/hub/autoConnect.d.ts +1 -2
- package/dist/hub/autoConnect.d.ts.map +1 -1
- package/dist/hub/useHubAdapter.d.ts.map +1 -1
- package/dist/hub/utils.d.ts +5 -7
- package/dist/hub/utils.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/legacy/autoConnect.d.ts +2 -3
- package/dist/legacy/autoConnect.d.ts.map +1 -1
- package/dist/legacy/helpers.d.ts +14 -6
- package/dist/legacy/helpers.d.ts.map +1 -1
- package/dist/legacy/useLegacyProviders.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/hub/autoConnect.ts +1 -1
- package/src/hub/useHubAdapter.ts +6 -4
- package/src/hub/utils.ts +20 -16
- package/src/legacy/autoConnect.ts +7 -4
- package/src/legacy/helpers.ts +16 -6
- package/src/legacy/useLegacyProviders.ts +4 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { WalletActions, WalletProviders } from './types.js';
|
|
2
|
-
import type { LegacyWallet as Wallet } from '@rango-dev/wallets-core/legacy';
|
|
3
|
-
import type { WalletConfig } from '@rango-dev/wallets-shared';
|
|
2
|
+
import type { LegacyWallet as Wallet, LegacyWalletConfig as WalletConfig } from '@rango-dev/wallets-core/legacy';
|
|
4
3
|
export declare function autoConnect(wallets: WalletProviders, getWalletInstance: (wallet: {
|
|
5
4
|
actions: WalletActions;
|
|
6
5
|
config: WalletConfig;
|
|
7
|
-
}) => Wallet
|
|
6
|
+
}) => Wallet): Promise<void>;
|
|
8
7
|
//# sourceMappingURL=autoConnect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoConnect.d.ts","sourceRoot":"","sources":["../../src/legacy/autoConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"autoConnect.d.ts","sourceRoot":"","sources":["../../src/legacy/autoConnect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EACV,YAAY,IAAI,MAAM,EACtB,kBAAkB,IAAI,YAAY,EAEnC,MAAM,gCAAgC,CAAC;AAUxC,wBAAsB,WAAW,CAC/B,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,YAAY,CAAC;CACtB,KAAK,MAAM,iBAgDb"}
|
package/dist/legacy/helpers.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import type { ProviderInterface, State, WalletActions, WalletProviders } from './types.js';
|
|
2
|
-
import type { LegacyOptions as Options, LegacyEventHandler as WalletEventHandler, LegacyState as WalletState } from '@rango-dev/wallets-core/legacy';
|
|
3
|
-
import type {
|
|
4
|
-
export declare function choose
|
|
2
|
+
import type { LegacyOptions as Options, LegacyEventHandler as WalletEventHandler, LegacyState as WalletState, LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy';
|
|
3
|
+
import type { Dispatch } from 'react';
|
|
4
|
+
export declare function choose<T extends {
|
|
5
|
+
type: WalletType;
|
|
6
|
+
}>(wallets: T[], type: WalletType): T | null;
|
|
7
|
+
export type StateAction = {
|
|
8
|
+
type: string;
|
|
9
|
+
wallet: WalletType;
|
|
10
|
+
name: string;
|
|
11
|
+
value: unknown;
|
|
12
|
+
};
|
|
5
13
|
export declare const defaultWalletState: WalletState;
|
|
6
|
-
export declare function stateReducer(state: State, action:
|
|
14
|
+
export declare function stateReducer(state: State, action: StateAction): State;
|
|
7
15
|
export declare function connectedWallets(providersState: State): WalletType[];
|
|
8
16
|
export declare function availableWallets(providersState: State): WalletType[];
|
|
9
17
|
export declare function checkWalletProviders(list: ProviderInterface[]): WalletProviders;
|
|
10
|
-
export declare function isAsync(fn:
|
|
18
|
+
export declare function isAsync(fn: (...args: never[]) => unknown): boolean;
|
|
11
19
|
export declare function needsCheckInstallation(options: Options): boolean;
|
|
12
20
|
export declare function tryPersistWallet({ type, walletActions, getState, }: {
|
|
13
21
|
type: WalletType;
|
|
@@ -19,5 +27,5 @@ export declare function tryRemoveWalletFromPersistance({ type, walletActions, }:
|
|
|
19
27
|
walletActions: WalletActions;
|
|
20
28
|
}): void;
|
|
21
29
|
export declare function clearPersistance(): void;
|
|
22
|
-
export declare function makeEventHandler(dispatcher:
|
|
30
|
+
export declare function makeEventHandler(dispatcher: Dispatch<StateAction>, onUpdateState?: WalletEventHandler): WalletEventHandler;
|
|
23
31
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/legacy/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,aAAa,IAAI,OAAO,EACxB,kBAAkB,IAAI,kBAAkB,EACxC,WAAW,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/legacy/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,aAAa,IAAI,OAAO,EACxB,kBAAkB,IAAI,kBAAkB,EACxC,WAAW,IAAI,WAAW,EAC1B,gBAAgB,IAAI,UAAU,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOtC,wBAAgB,MAAM,CAAC,CAAC,SAAS;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,EACnD,OAAO,EAAE,CAAC,EAAE,EACZ,IAAI,EAAE,UAAU,GACf,CAAC,GAAG,IAAI,CAEV;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAOhC,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,SA0B7D;AAED,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,KAAK,GAAG,UAAU,EAAE,CAQpE;AAED,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,KAAK,GAAG,UAAU,EAAE,CAIpE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,iBAAiB,EAAE,GACxB,eAAe,CAYjB;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,WAExD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,WAGtD;AAED,wBAAsB,gBAAgB,CAAC,EACrC,IAAI,EACJ,aAAa,EACb,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,UAAU,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,WAAW,CAAC;CACnD,iBAoBA;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,IAAI,EACJ,aAAa,GACd,EAAE;IACD,IAAI,EAAE,UAAU,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;CAC9B,QAOA;AAED,wBAAgB,gBAAgB,SAM/B;AAQD,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,EACjC,aAAa,CAAC,EAAE,kBAAkB,sBAoBnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegacyProviders.d.ts","sourceRoot":"","sources":["../../src/legacy/useLegacyProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useLegacyProviders.d.ts","sourceRoot":"","sources":["../../src/legacy/useLegacyProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EACV,uBAAuB,EAExB,MAAM,gCAAgC,CAAC;AAsBxC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,GAAG;IACnE,SAAS,EAAE,uBAAuB,EAAE,CAAC;CACtC,CAAC;AAEF,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,mBAAmB,GACzB,eAAe,CAqNjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/wallets-react",
|
|
3
|
-
"version": "0.48.1-next.
|
|
3
|
+
"version": "0.48.1-next.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@hub3js/core": "^0.61.1",
|
|
39
|
-
"@hub3js/evm": "^0.
|
|
40
|
-
"@hub3js/namespaces": "^0.
|
|
41
|
-
"@hub3js/solana": "^0.
|
|
42
|
-
"@hub3js/std": "^0.
|
|
43
|
-
"@hub3js/sui": "^0.
|
|
44
|
-
"@hub3js/tvm": "^0.
|
|
39
|
+
"@hub3js/evm": "^0.4.0",
|
|
40
|
+
"@hub3js/namespaces": "^0.3.0",
|
|
41
|
+
"@hub3js/solana": "^0.4.0",
|
|
42
|
+
"@hub3js/std": "^0.3.0",
|
|
43
|
+
"@hub3js/sui": "^0.3.0",
|
|
44
|
+
"@hub3js/tvm": "^0.3.0",
|
|
45
|
+
"@rango-dev/internal-blockchains": "^0.1.1-next.0",
|
|
45
46
|
"@rango-dev/logging-core": "^0.14.0",
|
|
46
|
-
"@rango-dev/wallets-core": "^0.61.0",
|
|
47
|
-
"@rango-dev/wallets-shared": "^0.62.1-next.2",
|
|
47
|
+
"@rango-dev/wallets-core": "^0.61.1-next.0",
|
|
48
48
|
"caip": "^1.1.1",
|
|
49
49
|
"rango-types": "^0.5.0",
|
|
50
50
|
"ts-results": "^3.3.0"
|
package/src/hub/autoConnect.ts
CHANGED
|
@@ -6,8 +6,8 @@ import type { Accounts, AccountsWithActiveChain } from '@hub3js/std/types';
|
|
|
6
6
|
import type {
|
|
7
7
|
LegacyNamespaceInputForConnect,
|
|
8
8
|
LegacyProviderInterface,
|
|
9
|
+
LegacyWalletType as WalletType,
|
|
9
10
|
} from '@rango-dev/wallets-core/legacy';
|
|
10
|
-
import type { WalletType } from '@rango-dev/wallets-shared';
|
|
11
11
|
|
|
12
12
|
import { Provider } from '@hub3js/core';
|
|
13
13
|
import { legacyIsEvmNamespace } from '@rango-dev/wallets-core/legacy';
|
package/src/hub/useHubAdapter.ts
CHANGED
|
@@ -3,15 +3,17 @@ import type { ProviderContext } from '../index.js';
|
|
|
3
3
|
import type { Provider } from '@hub3js/core';
|
|
4
4
|
import type { VersionedProviders } from '@hub3js/core/utils';
|
|
5
5
|
import type { Accounts, AccountsWithActiveChain } from '@hub3js/std/types';
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
LegacyNamespaceInputForConnect,
|
|
8
|
+
LegacyWalletInfo as WalletInfo,
|
|
9
|
+
LegacyWalletType as WalletType,
|
|
10
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
7
11
|
|
|
8
12
|
import { utils } from '@hub3js/evm';
|
|
9
13
|
import {
|
|
10
14
|
getSupportedChainsFromNamespace,
|
|
11
15
|
getSupportedChainsFromProvider,
|
|
12
|
-
|
|
13
|
-
type WalletType,
|
|
14
|
-
} from '@rango-dev/wallets-shared';
|
|
16
|
+
} from '@rango-dev/internal-blockchains';
|
|
15
17
|
import { useEffect, useRef, useState } from 'react';
|
|
16
18
|
import { Ok, Result } from 'ts-results';
|
|
17
19
|
|
package/src/hub/utils.ts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import type { AllProxiedNamespaces } from './types.js';
|
|
2
2
|
import type { Hub, Provider, ProxiedNamespace } from '@hub3js/core';
|
|
3
3
|
import type { Event } from '@hub3js/core/store';
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
Chain as AddEthereumChainParameter,
|
|
6
|
+
EvmActions,
|
|
7
|
+
} from '@hub3js/evm';
|
|
5
8
|
import type { SolanaActions } from '@hub3js/solana';
|
|
6
|
-
import type { SuiActions } from '@hub3js/sui';
|
|
7
9
|
import type {
|
|
8
10
|
LegacyNamespaceInputForConnect,
|
|
9
11
|
LegacyProviderInterface,
|
|
10
12
|
LegacyEventHandler as WalletEventHandler,
|
|
13
|
+
LegacyWalletType as WalletType,
|
|
11
14
|
} from '@rango-dev/wallets-core/legacy';
|
|
12
15
|
import type { UtxoActions } from '@rango-dev/wallets-core/namespaces/utxo';
|
|
13
16
|
|
|
14
17
|
import { pickVersion, type VersionedProviders } from '@hub3js/core/utils';
|
|
18
|
+
import {
|
|
19
|
+
convertEvmBlockchainMetaToEvmChainInfo,
|
|
20
|
+
getSupportedChainsFromProvider,
|
|
21
|
+
} from '@rango-dev/internal-blockchains';
|
|
15
22
|
import {
|
|
16
23
|
LegacyEvents as Events,
|
|
17
24
|
legacyFormatAddressWithNetwork as formatAddressWithNetwork,
|
|
25
|
+
legacyGetBlockChainNameFromId as getBlockChainNameFromId,
|
|
18
26
|
} from '@rango-dev/wallets-core/legacy';
|
|
19
|
-
import {
|
|
20
|
-
type AddEthereumChainParameter,
|
|
21
|
-
convertEvmBlockchainMetaToEvmChainInfo,
|
|
22
|
-
getBlockChainNameFromId,
|
|
23
|
-
getSupportedChainsFromProvider,
|
|
24
|
-
type WalletType,
|
|
25
|
-
} from '@rango-dev/wallets-shared';
|
|
26
27
|
import { AccountId } from 'caip';
|
|
27
28
|
import { type BlockchainMeta, isEvmBlockchain } from 'rango-types';
|
|
28
29
|
|
|
@@ -293,7 +294,7 @@ export function getAllLegacyProviders(
|
|
|
293
294
|
export function convertNamespaceNetworkToEvmChainId(
|
|
294
295
|
namespace: LegacyNamespaceInputForConnect,
|
|
295
296
|
meta: BlockchainMeta[]
|
|
296
|
-
) {
|
|
297
|
+
): AddEthereumChainParameter | undefined {
|
|
297
298
|
if (!namespace.network) {
|
|
298
299
|
return undefined;
|
|
299
300
|
}
|
|
@@ -377,17 +378,20 @@ export function synchronizeHubWithConfigProviders(
|
|
|
377
378
|
}
|
|
378
379
|
|
|
379
380
|
export function isSolanaNamespace(
|
|
380
|
-
ns:
|
|
381
|
-
): ns is
|
|
381
|
+
ns: AllProxiedNamespaces
|
|
382
|
+
): ns is AllProxiedNamespaces &
|
|
383
|
+
ProxiedNamespace<SolanaActions> & { namespaceId: 'Solana' } {
|
|
382
384
|
return ns.namespaceId === 'Solana';
|
|
383
385
|
}
|
|
384
386
|
export function isEvmNamespace(
|
|
385
|
-
ns:
|
|
386
|
-
): ns is
|
|
387
|
+
ns: AllProxiedNamespaces
|
|
388
|
+
): ns is AllProxiedNamespaces &
|
|
389
|
+
ProxiedNamespace<EvmActions> & { namespaceId: 'EVM' } {
|
|
387
390
|
return ns.namespaceId === 'EVM';
|
|
388
391
|
}
|
|
389
392
|
export function isUtxoNamespace(
|
|
390
|
-
ns:
|
|
391
|
-
): ns is
|
|
393
|
+
ns: AllProxiedNamespaces
|
|
394
|
+
): ns is AllProxiedNamespaces &
|
|
395
|
+
ProxiedNamespace<UtxoActions> & { namespaceId: 'UTXO' } {
|
|
392
396
|
return ns.namespaceId === 'UTXO';
|
|
393
397
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { WalletActions, WalletProviders } from './types.js';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
LegacyWallet as Wallet,
|
|
4
|
+
LegacyWalletConfig as WalletConfig,
|
|
5
|
+
LegacyWalletType as WalletType,
|
|
6
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
4
7
|
|
|
5
8
|
import { LastConnectedWalletsFromStorage } from '../hub/lastConnectedWallets.js';
|
|
6
9
|
|
|
@@ -15,7 +18,7 @@ export async function autoConnect(
|
|
|
15
18
|
getWalletInstance: (wallet: {
|
|
16
19
|
actions: WalletActions;
|
|
17
20
|
config: WalletConfig;
|
|
18
|
-
}) => Wallet
|
|
21
|
+
}) => Wallet
|
|
19
22
|
) {
|
|
20
23
|
const lastConnectedWalletsFromStorage = new LastConnectedWalletsFromStorage(
|
|
21
24
|
LEGACY_LAST_CONNECTED_WALLETS
|
|
@@ -27,7 +30,7 @@ export async function autoConnect(
|
|
|
27
30
|
if (walletIds.length) {
|
|
28
31
|
const eagerConnectQueue: {
|
|
29
32
|
walletType: WalletType;
|
|
30
|
-
eagerConnect: () => Promise<
|
|
33
|
+
eagerConnect: () => Promise<unknown>;
|
|
31
34
|
}[] = [];
|
|
32
35
|
|
|
33
36
|
walletIds.forEach((walletType) => {
|
package/src/legacy/helpers.ts
CHANGED
|
@@ -8,18 +8,29 @@ import type {
|
|
|
8
8
|
LegacyOptions as Options,
|
|
9
9
|
LegacyEventHandler as WalletEventHandler,
|
|
10
10
|
LegacyState as WalletState,
|
|
11
|
+
LegacyWalletType as WalletType,
|
|
11
12
|
} from '@rango-dev/wallets-core/legacy';
|
|
12
|
-
import type {
|
|
13
|
+
import type { Dispatch } from 'react';
|
|
13
14
|
|
|
14
15
|
import { Persistor } from '@rango-dev/wallets-core/legacy';
|
|
15
16
|
|
|
16
17
|
import { LEGACY_LAST_CONNECTED_WALLETS } from '../hub/constants.js';
|
|
17
18
|
import { LastConnectedWalletsFromStorage } from '../hub/lastConnectedWallets.js';
|
|
18
19
|
|
|
19
|
-
export function choose
|
|
20
|
+
export function choose<T extends { type: WalletType }>(
|
|
21
|
+
wallets: T[],
|
|
22
|
+
type: WalletType
|
|
23
|
+
): T | null {
|
|
20
24
|
return wallets.find((wallet) => wallet.type === type) || null;
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
export type StateAction = {
|
|
28
|
+
type: string;
|
|
29
|
+
wallet: WalletType;
|
|
30
|
+
name: string;
|
|
31
|
+
value: unknown;
|
|
32
|
+
};
|
|
33
|
+
|
|
23
34
|
export const defaultWalletState: WalletState = {
|
|
24
35
|
connected: false,
|
|
25
36
|
connecting: false,
|
|
@@ -29,7 +40,7 @@ export const defaultWalletState: WalletState = {
|
|
|
29
40
|
network: null,
|
|
30
41
|
};
|
|
31
42
|
|
|
32
|
-
export function stateReducer(state: State, action:
|
|
43
|
+
export function stateReducer(state: State, action: StateAction) {
|
|
33
44
|
if (action.type === 'new_state') {
|
|
34
45
|
// TODO fix problem and remove ts-ignore
|
|
35
46
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -89,8 +100,7 @@ export function checkWalletProviders(
|
|
|
89
100
|
return wallets;
|
|
90
101
|
}
|
|
91
102
|
|
|
92
|
-
|
|
93
|
-
export function isAsync(fn: Function) {
|
|
103
|
+
export function isAsync(fn: (...args: never[]) => unknown) {
|
|
94
104
|
return fn?.constructor?.name === 'AsyncFunction';
|
|
95
105
|
}
|
|
96
106
|
|
|
@@ -159,7 +169,7 @@ export function clearPersistance() {
|
|
|
159
169
|
*we are using this function.
|
|
160
170
|
*/
|
|
161
171
|
export function makeEventHandler(
|
|
162
|
-
dispatcher:
|
|
172
|
+
dispatcher: Dispatch<StateAction>,
|
|
163
173
|
onUpdateState?: WalletEventHandler
|
|
164
174
|
) {
|
|
165
175
|
const handler: WalletEventHandler = (
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ProviderContext, ProviderProps } from './types.js';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type {
|
|
3
|
+
LegacyProviderInterface,
|
|
4
|
+
LegacyWalletType as WalletType,
|
|
5
|
+
} from '@rango-dev/wallets-core/legacy';
|
|
4
6
|
|
|
5
7
|
import { useEffect, useReducer } from 'react';
|
|
6
8
|
|