Skip to content

Commit a5703c2

Browse files
committed
chore: remove hub from exporting
1 parent 6bb9abc commit a5703c2

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

wallets/core/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
"./namespaces/solana": {
3131
"types": "./dist/namespaces/solana/mod.d.ts",
3232
"default": "./dist/namespaces/solana/mod.js"
33-
},
34-
"./hub": {
35-
"types": "./dist/hub/mod.d.ts",
36-
"default": "./dist/hub/mod.js"
3733
}
3834
},
3935
"files": [
@@ -42,7 +38,7 @@
4238
"legacy"
4339
],
4440
"scripts": {
45-
"build": "node ../../scripts/build/command.mjs --path wallets/core --inputs src/mod.ts,src/utils/mod.ts,src/legacy/mod.ts,src/namespaces/evm/mod.ts,src/namespaces/solana/mod.ts,src/namespaces/common/mod.ts,src/hub/mod.ts",
41+
"build": "node ../../scripts/build/command.mjs --path wallets/core --inputs src/mod.ts,src/utils/mod.ts,src/legacy/mod.ts,src/namespaces/evm/mod.ts,src/namespaces/solana/mod.ts,src/namespaces/common/mod.ts",
4642
"ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
4743
"clean": "rimraf dist",
4844
"format": "prettier --write '{.,src}/**/*.{ts,tsx}'",

wallets/core/src/hub/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { Namespace } from './namespaces/mod.js';
2-
export type { Subscriber, SubscriberCleanUp } from './namespaces/mod.js';
2+
33
export { Provider } from './provider/mod.js';
44
export type { CommonNamespaces, CommonNamespaceKeys } from './provider/mod.js';
55

wallets/core/src/namespaces/common/mod.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ export type {
1616
Accounts,
1717
AccountsWithActiveChain,
1818
} from '../../types/accounts.js';
19+
20+
export type {
21+
Subscriber,
22+
SubscriberCleanUp,
23+
} from '../../hub/namespaces/mod.js';

wallets/provider-clover/src/actions/solana.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
22
Subscriber,
33
SubscriberCleanUp,
4-
} from '@rango-dev/wallets-core/hub';
4+
} from '@rango-dev/wallets-core/namespaces/common';
55

66
import {
77
CAIP_NAMESPACE,
@@ -12,6 +12,10 @@ import { AccountId } from 'caip';
1212

1313
import { evmClover, solanaClover } from '../utils.js';
1414

15+
/*
16+
* The EVM instance is used to listen for the accountsChanged event,
17+
* because Clover itself did not have a chain change event for the Solana namespace.
18+
*/
1519
export function changeAccountSubscriberAction(): [
1620
Subscriber<SolanaActions>,
1721
SubscriberCleanUp<SolanaActions>

0 commit comments

Comments
 (0)