@hub3js/namespaces 0.1.2-next.1 → 0.1.2-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.
@@ -1,10 +1,10 @@
1
1
  import type { EvmActions } from '@hub3js/evm';
2
2
  import type { SolanaActions } from '@hub3js/solana';
3
+ import type { StarknetActions } from '@hub3js/starknet';
4
+ import type { StellarActions } from '@hub3js/stellar';
5
+ import type { SuiActions } from '@hub3js/sui';
6
+ import type { TonActions } from '@hub3js/tvm';
3
7
  import type { XRPLActions } from '@hub3js/xrpl';
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
8
  import type { TronActions } from '@rango-dev/wallets-core/namespaces/tron';
9
9
  import type { UtxoActions } from '@rango-dev/wallets-core/namespaces/utxo';
10
10
  export interface DefaultNamespaces {
@@ -18,7 +18,16 @@ export interface DefaultNamespaces {
18
18
  ton: TonActions;
19
19
  stellar: StellarActions;
20
20
  }
21
- type KnownNamespace = 'EVM' | 'Solana' | 'UTXO' | 'Starknet' | 'Tron' | 'Ton' | 'Sui' | 'XRPL' | 'Stellar';
21
+ export declare const EVM_NAMESPACE = "EVM";
22
+ export declare const SOLANA_NAMESPACE = "Solana";
23
+ export declare const UTXO_NAMESPACE = "UTXO";
24
+ export declare const STARKNET_NAMESPACE = "Starknet";
25
+ export declare const TRON_NAMESPACE = "Tron";
26
+ export declare const TON_NAMESPACE = "Ton";
27
+ export declare const SUI_NAMESPACE = "Sui";
28
+ export declare const XRPL_NAMESPACE = "XRPL";
29
+ export declare const STELLAR_NAMESPACE = "Stellar";
30
+ type KnownNamespace = typeof EVM_NAMESPACE | typeof SOLANA_NAMESPACE | typeof UTXO_NAMESPACE | typeof STARKNET_NAMESPACE | typeof TRON_NAMESPACE | typeof TON_NAMESPACE | typeof SUI_NAMESPACE | typeof XRPL_NAMESPACE | typeof STELLAR_NAMESPACE;
22
31
  export type Namespace = KnownNamespace | (string & {});
23
32
  export {};
24
33
  //# sourceMappingURL=namespaces.d.ts.map
@@ -1 +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,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,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;AAE3E,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,UAAU,CAAC;IAChB,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,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,GACL,KAAK,GACL,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM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B,YAAY,CAAC;AAO3C,KAAK,cAAc,GACf,OAAO,aAAa,GACpB,OAAO,gBAAgB,GACvB,OAAO,cAAc,GACrB,OAAO,kBAAkB,GACzB,OAAO,cAAc,GACrB,OAAO,aAAa,GACpB,OAAO,aAAa,GACpB,OAAO,cAAc,GACrB,OAAO,iBAAiB,CAAC;AAE7B,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
@@ -1,2 +1,10 @@
1
- export {};
1
+ export const EVM_NAMESPACE = 'EVM';
2
+ export const SOLANA_NAMESPACE = 'Solana';
3
+ export const UTXO_NAMESPACE = 'UTXO';
4
+ export const STARKNET_NAMESPACE = 'Starknet';
5
+ export const TRON_NAMESPACE = 'Tron';
6
+ export const TON_NAMESPACE = 'Ton';
7
+ export const SUI_NAMESPACE = 'Sui';
8
+ export const XRPL_NAMESPACE = 'XRPL';
9
+ export const STELLAR_NAMESPACE = 'Stellar';
2
10
  //# sourceMappingURL=namespaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/namespaces.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"namespaces.js","sourceRoot":"","sources":["../src/namespaces.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC;AACzC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hub3js/namespaces",
3
- "version": "0.1.2-next.1",
3
+ "version": "0.1.2-next.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/mod.ts",
@@ -35,9 +35,13 @@
35
35
  "xrpl": "^4.6.0"
36
36
  },
37
37
  "dependencies": {
38
- "@hub3js/evm": "^0.2.2-next.0",
39
- "@hub3js/solana": "^0.2.2-next.0",
40
- "@hub3js/xrpl": "^0.1.1-next.0"
38
+ "@hub3js/evm": "^0.2.2-next.2",
39
+ "@hub3js/solana": "^0.2.2-next.2",
40
+ "@hub3js/starknet": "^0.1.1-next.2",
41
+ "@hub3js/stellar": "^0.1.1-next.2",
42
+ "@hub3js/sui": "^0.1.1-next.2",
43
+ "@hub3js/tvm": "^0.1.1-next.2",
44
+ "@hub3js/xrpl": "^0.1.1-next.2"
41
45
  },
42
46
  "publishConfig": {
43
47
  "access": "public"
package/src/namespaces.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { EvmActions } from '@hub3js/evm';
2
2
  import type { SolanaActions } from '@hub3js/solana';
3
+ import type { StarknetActions } from '@hub3js/starknet';
4
+ import type { StellarActions } from '@hub3js/stellar';
5
+ import type { SuiActions } from '@hub3js/sui';
6
+ import type { TonActions } from '@hub3js/tvm';
3
7
  import type { XRPLActions } from '@hub3js/xrpl';
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
8
  import type { TronActions } from '@rango-dev/wallets-core/namespaces/tron';
9
9
  import type { UtxoActions } from '@rango-dev/wallets-core/namespaces/utxo';
10
10
 
@@ -20,20 +20,30 @@ export interface DefaultNamespaces {
20
20
  stellar: StellarActions;
21
21
  }
22
22
 
23
+ export const EVM_NAMESPACE = 'EVM';
24
+ export const SOLANA_NAMESPACE = 'Solana';
25
+ export const UTXO_NAMESPACE = 'UTXO';
26
+ export const STARKNET_NAMESPACE = 'Starknet';
27
+ export const TRON_NAMESPACE = 'Tron';
28
+ export const TON_NAMESPACE = 'Ton';
29
+ export const SUI_NAMESPACE = 'Sui';
30
+ export const XRPL_NAMESPACE = 'XRPL';
31
+ export const STELLAR_NAMESPACE = 'Stellar';
32
+
23
33
  /*
24
34
  * These are the supported namespace tags. The opaque `(string & {})` widening
25
35
  * keeps the union open — downstream packages can register arbitrary names —
26
36
  * while preserving autocomplete for the well-known ones.
27
37
  */
28
38
  type KnownNamespace =
29
- | 'EVM'
30
- | 'Solana'
31
- | 'UTXO'
32
- | 'Starknet'
33
- | 'Tron'
34
- | 'Ton'
35
- | 'Sui'
36
- | 'XRPL'
37
- | 'Stellar';
39
+ | typeof EVM_NAMESPACE
40
+ | typeof SOLANA_NAMESPACE
41
+ | typeof UTXO_NAMESPACE
42
+ | typeof STARKNET_NAMESPACE
43
+ | typeof TRON_NAMESPACE
44
+ | typeof TON_NAMESPACE
45
+ | typeof SUI_NAMESPACE
46
+ | typeof XRPL_NAMESPACE
47
+ | typeof STELLAR_NAMESPACE;
38
48
 
39
49
  export type Namespace = KnownNamespace | (string & {});