@rango-dev/provider-ledger 0.14.1-next.0 → 0.14.1-next.2
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/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/provider-ledger.build.json +1 -1
- package/package.json +4 -4
- package/src/index.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/provider-ledger",
|
|
3
|
-
"version": "0.14.1-next.
|
|
3
|
+
"version": "0.14.1-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@ledgerhq/hw-transport-webhid": "^6.28.6",
|
|
28
28
|
"@ledgerhq/types-cryptoassets": "^7.11.0",
|
|
29
29
|
"@ledgerhq/types-devices": "^6.24.0",
|
|
30
|
-
"@rango-dev/signer-solana": "^0.38.0",
|
|
31
|
-
"@rango-dev/wallets-shared": "^0.43.1-next.
|
|
30
|
+
"@rango-dev/signer-solana": "^0.38.1-next.0",
|
|
31
|
+
"@rango-dev/wallets-shared": "^0.43.1-next.2",
|
|
32
32
|
"@solana/web3.js": "^1.91.4",
|
|
33
33
|
"@types/w3c-web-hid": "^1.0.2",
|
|
34
34
|
"bs58": "^5.0.0",
|
|
35
35
|
"ethers": "^6.13.2",
|
|
36
|
-
"rango-types": "^0.1.
|
|
36
|
+
"rango-types": "^0.1.82"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,8 @@ import type {
|
|
|
5
5
|
WalletInfo,
|
|
6
6
|
} from '@rango-dev/wallets-shared';
|
|
7
7
|
|
|
8
|
+
import { chains as evmChains } from '@rango-dev/wallets-core/namespaces/evm';
|
|
9
|
+
import { chains as solanaChains } from '@rango-dev/wallets-core/namespaces/solana';
|
|
8
10
|
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
9
11
|
import { type BlockchainMeta, type SignerFactory } from 'rango-types';
|
|
10
12
|
|
|
@@ -17,6 +19,9 @@ import {
|
|
|
17
19
|
import signer from './signer.js';
|
|
18
20
|
import { setDerivationPath } from './state.js';
|
|
19
21
|
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
|
+
type InstanceType = any;
|
|
24
|
+
|
|
20
25
|
export const config = {
|
|
21
26
|
type: WalletTypes.LEDGER,
|
|
22
27
|
};
|
|
@@ -63,7 +68,8 @@ export const disconnect: Disconnect = async () => {
|
|
|
63
68
|
void transportDisconnect();
|
|
64
69
|
};
|
|
65
70
|
|
|
66
|
-
export const getSigners: (provider:
|
|
71
|
+
export const getSigners: (provider: InstanceType) => Promise<SignerFactory> =
|
|
72
|
+
signer;
|
|
67
73
|
|
|
68
74
|
export const getWalletInfo: (allBlockChains: BlockchainMeta[]) => WalletInfo = (
|
|
69
75
|
allBlockChains
|
|
@@ -136,11 +142,13 @@ export const getWalletInfo: (allBlockChains: BlockchainMeta[]) => WalletInfo = (
|
|
|
136
142
|
label: 'EVM',
|
|
137
143
|
value: 'EVM',
|
|
138
144
|
id: 'ETH',
|
|
145
|
+
chains: [evmChains.ethereum],
|
|
139
146
|
},
|
|
140
147
|
{
|
|
141
148
|
label: 'Solana',
|
|
142
149
|
value: 'Solana',
|
|
143
150
|
id: 'SOLANA',
|
|
151
|
+
chains: [solanaChains.solana],
|
|
144
152
|
},
|
|
145
153
|
],
|
|
146
154
|
},
|