@hub3js/namespaces 0.0.0-experimental-50628b1e-20260603

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/mod.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export type { Namespace, DefaultNamespaces } from './namespaces.js';
2
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/mod.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.js","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { EvmActions } from '@hub3js/evm';
2
+ import type { SolanaActions } from '@hub3js/solana';
3
+ import type { CosmosActions } from '@rango-dev/wallets-core/namespaces/cosmos';
4
+ import type { StarknetActions } from '@rango-dev/wallets-core/namespaces/starknet';
5
+ import type { StellarActions } from '@rango-dev/wallets-core/namespaces/stellar';
6
+ import type { SuiActions } from '@rango-dev/wallets-core/namespaces/sui';
7
+ import type { TonActions } from '@rango-dev/wallets-core/namespaces/ton';
8
+ import type { TronActions } from '@rango-dev/wallets-core/namespaces/tron';
9
+ import type { UtxoActions } from '@rango-dev/wallets-core/namespaces/utxo';
10
+ import type { XRPLActions } from '@rango-dev/wallets-core/namespaces/xrpl';
11
+ export interface DefaultNamespaces {
12
+ evm: EvmActions;
13
+ solana: SolanaActions;
14
+ cosmos: CosmosActions;
15
+ sui: SuiActions;
16
+ utxo: UtxoActions;
17
+ tron: TronActions;
18
+ starknet: StarknetActions;
19
+ xrpl: XRPLActions;
20
+ ton: TonActions;
21
+ stellar: StellarActions;
22
+ }
23
+ type KnownNamespace = 'EVM' | 'Solana' | 'Cosmos' | 'UTXO' | 'Starknet' | 'Tron' | 'Ton' | 'Sui' | 'XRPL' | 'Stellar';
24
+ export type Namespace = KnownNamespace | (string & {});
25
+ export {};
26
+ //# sourceMappingURL=namespaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaces.d.ts","sourceRoot":"","sources":["../src/namespaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,GAAG,EAAE,UAAU,CAAC;IAChB,OAAO,EAAE,cAAc,CAAC;CACzB;AAOD,KAAK,cAAc,GACf,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=namespaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/namespaces.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1 @@
1
+ {"name":"@hub3js/namespaces","version":"0.0.0-experimental-50628b1e-20260603","license":"MIT","type":"module","source":"./src/mod.ts","main":"./dist/mod.js","typings":"./dist/mod.d.ts","exports":{".":{"default":"./dist/mod.js","types":"./dist/mod.d.ts"}},"files":["dist","src"],"scripts":{"build":"tsc -p tsconfig.build.json","ts-check":"tsc --declaration --emitDeclarationOnly -p tsconfig.json","clean":"rimraf dist","format":"prettier --write '{.,src}/**/*.{ts,tsx}'","lint":"eslint \"**/*.{ts,tsx}\""},"peerDependencies":{"@rango-dev/wallets-core":"^0.59.0"},"devDependencies":{"@mysten/sui":"^1.21.2","@mysten/wallet-standard":"^0.13.26","@rango-dev/wallets-core":"^0.59.0","@types/urijs":"^1.19.26","urijs":"^1.19.11","xrpl":"^4.6.0"},"dependencies":{"@hub3js/evm":"^0.0.0-experimental-50628b1e-20260603","@hub3js/solana":"^0.0.0-experimental-50628b1e-20260603"},"publishConfig":{"access":"public"}}
package/readme.md ADDED
@@ -0,0 +1,3 @@
1
+ # @hub3js/namespaces
2
+
3
+ Package for handling Namespaces
package/src/mod.ts ADDED
@@ -0,0 +1 @@
1
+ export type { Namespace, DefaultNamespaces } from './namespaces.js';
@@ -0,0 +1,42 @@
1
+ import type { EvmActions } from '@hub3js/evm';
2
+ import type { SolanaActions } from '@hub3js/solana';
3
+ import type { CosmosActions } from '@rango-dev/wallets-core/namespaces/cosmos';
4
+ import type { StarknetActions } from '@rango-dev/wallets-core/namespaces/starknet';
5
+ import type { StellarActions } from '@rango-dev/wallets-core/namespaces/stellar';
6
+ import type { SuiActions } from '@rango-dev/wallets-core/namespaces/sui';
7
+ import type { TonActions } from '@rango-dev/wallets-core/namespaces/ton';
8
+ import type { TronActions } from '@rango-dev/wallets-core/namespaces/tron';
9
+ import type { UtxoActions } from '@rango-dev/wallets-core/namespaces/utxo';
10
+ import type { XRPLActions } from '@rango-dev/wallets-core/namespaces/xrpl';
11
+
12
+ export interface DefaultNamespaces {
13
+ evm: EvmActions;
14
+ solana: SolanaActions;
15
+ cosmos: CosmosActions;
16
+ sui: SuiActions;
17
+ utxo: UtxoActions;
18
+ tron: TronActions;
19
+ starknet: StarknetActions;
20
+ xrpl: XRPLActions;
21
+ ton: TonActions;
22
+ stellar: StellarActions;
23
+ }
24
+
25
+ /*
26
+ * These are the supported namespace tags. The opaque `(string & {})` widening
27
+ * keeps the union open — downstream packages can register arbitrary names —
28
+ * while preserving autocomplete for the well-known ones.
29
+ */
30
+ type KnownNamespace =
31
+ | 'EVM'
32
+ | 'Solana'
33
+ | 'Cosmos'
34
+ | 'UTXO'
35
+ | 'Starknet'
36
+ | 'Tron'
37
+ | 'Ton'
38
+ | 'Sui'
39
+ | 'XRPL'
40
+ | 'Stellar';
41
+
42
+ export type Namespace = KnownNamespace | (string & {});