@tuwaio/nova-connect 1.0.0-fix-test-alpha.63.15a38cd → 1.0.0-fix-test-alpha.64.b02d4b2
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/evm/index.d.cts +31 -0
- package/dist/evm/index.d.ts +31 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OrbitAdapter } from '@tuwaio/orbit-core';
|
|
2
|
+
import { Chain } from 'viem/chains';
|
|
3
|
+
export { Chain } from 'viem/chains';
|
|
4
|
+
import { EVMWallet, ConnectorEVM } from '@tuwaio/satellite-evm';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get EVM chain IDs from app chains configuration
|
|
8
|
+
*/
|
|
9
|
+
declare function getEvmChains(appChains?: readonly [Chain, ...Chain[]]): number[];
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if a chain list contains EVM chain IDs
|
|
12
|
+
*/
|
|
13
|
+
declare function isEvmChainList(chains: (string | number)[]): chains is number[];
|
|
14
|
+
|
|
15
|
+
declare module '@tuwaio/nova-connect' {
|
|
16
|
+
interface AllChainConfigs {
|
|
17
|
+
/**
|
|
18
|
+
* EVM chains configuration - enhanced from default any type
|
|
19
|
+
* @override Replaces default `any` with specific Chain typing when viem is available
|
|
20
|
+
*/
|
|
21
|
+
appChains?: readonly [Chain, ...Chain[]];
|
|
22
|
+
}
|
|
23
|
+
interface AllWallets {
|
|
24
|
+
[OrbitAdapter.EVM]: EVMWallet;
|
|
25
|
+
}
|
|
26
|
+
interface AllConnectors {
|
|
27
|
+
[OrbitAdapter.EVM]: ConnectorEVM;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { getEvmChains, isEvmChainList };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OrbitAdapter } from '@tuwaio/orbit-core';
|
|
2
|
+
import { Chain } from 'viem/chains';
|
|
3
|
+
export { Chain } from 'viem/chains';
|
|
4
|
+
import { EVMWallet, ConnectorEVM } from '@tuwaio/satellite-evm';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Get EVM chain IDs from app chains configuration
|
|
8
|
+
*/
|
|
9
|
+
declare function getEvmChains(appChains?: readonly [Chain, ...Chain[]]): number[];
|
|
10
|
+
/**
|
|
11
|
+
* Type guard to check if a chain list contains EVM chain IDs
|
|
12
|
+
*/
|
|
13
|
+
declare function isEvmChainList(chains: (string | number)[]): chains is number[];
|
|
14
|
+
|
|
15
|
+
declare module '@tuwaio/nova-connect' {
|
|
16
|
+
interface AllChainConfigs {
|
|
17
|
+
/**
|
|
18
|
+
* EVM chains configuration - enhanced from default any type
|
|
19
|
+
* @override Replaces default `any` with specific Chain typing when viem is available
|
|
20
|
+
*/
|
|
21
|
+
appChains?: readonly [Chain, ...Chain[]];
|
|
22
|
+
}
|
|
23
|
+
interface AllWallets {
|
|
24
|
+
[OrbitAdapter.EVM]: EVMWallet;
|
|
25
|
+
}
|
|
26
|
+
interface AllConnectors {
|
|
27
|
+
[OrbitAdapter.EVM]: ConnectorEVM;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { getEvmChains, isEvmChainList };
|