@rango-dev/provider-ledger 0.23.1-next.0 → 0.23.1-next.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/provider-ledger",
3
- "version": "0.23.1-next.0",
3
+ "version": "0.23.1-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/mod.ts",
@@ -28,8 +28,8 @@
28
28
  "@ledgerhq/types-cryptoassets": "^7.11.0",
29
29
  "@ledgerhq/types-devices": "^6.24.0",
30
30
  "@rango-dev/signer-solana": "^0.44.1-next.0",
31
- "@rango-dev/wallets-core": "^0.51.1-next.0",
32
- "@rango-dev/wallets-shared": "^0.52.1-next.0",
31
+ "@rango-dev/wallets-core": "^0.51.1-next.1",
32
+ "@rango-dev/wallets-shared": "^0.52.1-next.1",
33
33
  "@solana/web3.js": "^1.91.4",
34
34
  "@types/w3c-web-hid": "^1.0.2",
35
35
  "bs58": "^5.0.0",
@@ -10,6 +10,7 @@ import {
10
10
  CAIP_NAMESPACE,
11
11
  } from '@rango-dev/wallets-core/namespaces/evm';
12
12
  import { CAIP } from '@rango-dev/wallets-core/utils';
13
+ import { ETHEREUM_CHAIN_ID } from '@rango-dev/wallets-shared';
13
14
 
14
15
  import { WALLET_ID } from '../constants.js';
15
16
  import { setDerivationPath } from '../state.js';
@@ -50,9 +51,15 @@ const connect = builders
50
51
 
51
52
  const disconnect = commonBuilders.disconnect<EvmActions>().build();
52
53
 
54
+ const getChainId = builders
55
+ .getChainId()
56
+ .action(() => ETHEREUM_CHAIN_ID)
57
+ .build();
58
+
53
59
  const evm = new NamespaceBuilder<EvmActions>('EVM', WALLET_ID)
54
60
  .action(connect)
55
61
  .action(disconnect)
62
+ .action(getChainId)
56
63
  .build();
57
64
 
58
65
  export { evm };