@rango-dev/provider-ledger 0.7.1-next.1 → 0.7.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/dist/signer.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import type { SignerFactory } from 'rango-types';
2
- export default function getSigners(): Promise<SignerFactory>;
2
+ export default function getSigners(): SignerFactory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/provider-ledger",
3
- "version": "0.7.1-next.1",
3
+ "version": "0.7.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -14,7 +14,7 @@
14
14
  "src"
15
15
  ],
16
16
  "scripts": {
17
- "build": "node ../../scripts/build/command.mjs --path wallets/provider-ledger --external-all-except @ledgerhq/errors,@ledgerhq/hw-app-eth,@ledgerhq/hw-app-solana,@ledgerhq/hw-transport-webhid,@ledgerhq/types-cryptoassets,@ledgerhq/types-devices,",
17
+ "build": "node ../../scripts/build/command.mjs --path wallets/provider-ledger",
18
18
  "ts-check": "tsc --declaration --emitDeclarationOnly -p ./tsconfig.json",
19
19
  "clean": "rimraf dist",
20
20
  "format": "prettier --write '{.,src}/**/*.{ts,tsx}'",
@@ -28,7 +28,7 @@
28
28
  "@ledgerhq/types-cryptoassets": "^7.11.0",
29
29
  "@ledgerhq/types-devices": "^6.24.0",
30
30
  "@rango-dev/signer-solana": "^0.32.0",
31
- "@rango-dev/wallets-shared": "^0.37.1-next.1",
31
+ "@rango-dev/wallets-shared": "^0.37.0",
32
32
  "@solana/web3.js": "^1.91.4",
33
33
  "@types/w3c-web-hid": "^1.0.2",
34
34
  "bs58": "^5.0.0",
@@ -38,4 +38,4 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  }
41
- }
41
+ }
package/src/index.ts CHANGED
@@ -63,7 +63,7 @@ export const disconnect: Disconnect = async () => {
63
63
  void transportDisconnect();
64
64
  };
65
65
 
66
- export const getSigners: (provider: any) => Promise<SignerFactory> = signer;
66
+ export const getSigners: (provider: any) => SignerFactory = signer;
67
67
 
68
68
  export const getWalletInfo: (allBlockChains: BlockchainMeta[]) => WalletInfo = (
69
69
  allBlockChains
package/src/signer.ts CHANGED
@@ -2,10 +2,11 @@ import type { SignerFactory } from 'rango-types';
2
2
 
3
3
  import { DefaultSignerFactory, TransactionType as TxType } from 'rango-types';
4
4
 
5
- export default async function getSigners(): Promise<SignerFactory> {
5
+ import { EthereumSigner } from './signers/ethereum.js';
6
+ import { SolanaSigner } from './signers/solana.js';
7
+
8
+ export default function getSigners(): SignerFactory {
6
9
  const signers = new DefaultSignerFactory();
7
- const { EthereumSigner } = await import('./signers/ethereum.js');
8
- const { SolanaSigner } = await import('./signers/solana.js');
9
10
  signers.registerSigner(TxType.EVM, new EthereumSigner());
10
11
  signers.registerSigner(TxType.SOLANA, new SolanaSigner());
11
12
  return signers;