2.0.32 • Published 2 months ago

@dcentralab/wc-ledger v2.0.32

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Ledger Cold Wallet connector

Instalation

npm install @dcentralab/wc-ledger

or

yarn add @dcentralab/wc-ledger

Getting started

Ledger wallet connector for web3-wc-modal, package that implement wallet connection with Ledger Cold Wallet https://www.ledger.com/

CREATE-REACT-APP

To support hardware wallets in create-react-app you need to use react-app-rewired

const NodePolyfill = require('node-polyfill-webpack-plugin');

module.exports = function override (config, env) {
  console.log('override')
  config.plugins.push(new NodePolyfill())

  return config
}

Interface

export type TConnect = (connectingWalletType: string, options?: IConnectionOptions) => void
export type TDisconnect = (clearDerivationPath?: boolean) => void

export interface IConnectionOptions {
  rpcUrl?: string
  networkId?: number
  derivationPath?: string
  blockchainType?: BLOCKCHAIN_TYPE
  connectionType?: TWalletType
  onConnectStart?: () => void
  savePath?: boolean
  removeLSKey?: boolean,
  showModalOnError?: boolean,
  showToast?: (msg: string, duration?: number) => any
  connectWallet?: TConnect
  disconnectWallet?: TDisconnect
  internal?: boolean
}

export interface IConnectionResult {
  provider: any
  providerName?: string
}

export interface IConnector {
  type: TWalletType,
  blockchainType: BLOCKCHAIN_TYPE
  mobile: boolean
  enabled: () => boolean;
  connector: (opts: IConnectionOptions) => Promise<IConnectionResult>

  disconnector?: () => Promise<void>

  getAccount: (provider: AbstractProvider | IBinanceProvider | ICardanoProvider) => Promise<string | undefined>
  getBalance: (provider: AbstractProvider | IBinanceProvider | ICardanoProvider, address: string) => Promise<string | undefined>
  getHWAccounts?: (opts: IGetHWAccounts) => Promise<string[]>
  showToast?: (msg: string, duration?: number) => void
  localStorageKey?: string
  connectWallet?: TConnect
  disconnectWallet?: TDisconnect
  unsubscribeEvents?: () => void
}
2.0.31

2 months ago

2.0.32

2 months ago

2.0.30

3 months ago

2.0.29

4 months ago

2.0.27

4 months ago

2.0.28

4 months ago

2.0.0-alpha.7

6 months ago

2.0.0-alpha.8

6 months ago

2.0.0-alpha.9

6 months ago

2.0.0-alpha.4

6 months ago

2.0.0-alpha.5

6 months ago

2.0.0-alpha.6

6 months ago

2.0.0-alpha.2

6 months ago

2.0.0-alpha.12

6 months ago

1.3.35

6 months ago

2.0.15

5 months ago

2.0.16

5 months ago

2.0.13

5 months ago

2.0.1-alpha.0

6 months ago

2.0.14

5 months ago

2.0.11

5 months ago

2.0.12

5 months ago

2.0.10

5 months ago

2.0.19

4 months ago

2.0.17

5 months ago

2.0.18

4 months ago

2.0.26

4 months ago

2.0.24

4 months ago

2.0.25

4 months ago

2.0.22

4 months ago

2.0.23

4 months ago

2.0.20

4 months ago

2.0.21

4 months ago

2.0.3

6 months ago

2.0.2

6 months ago

2.0.5

6 months ago

2.0.7

6 months ago

2.0.6

6 months ago

2.0.9

5 months ago

2.0.8

5 months ago

2.0.1

6 months ago

2.0.0

6 months ago

1.3.32

7 months ago

1.3.34

7 months ago

1.3.31

8 months ago

1.3.30

8 months ago

1.3.29

8 months ago

1.3.26

8 months ago

1.3.27

8 months ago

1.3.25

8 months ago

1.3.24

8 months ago

1.3.22

8 months ago

1.3.23

8 months ago

1.3.21

8 months ago

1.3.20

9 months ago

1.3.18

9 months ago

1.3.19

9 months ago

1.3.17

9 months ago

1.3.13

9 months ago

1.3.14

9 months ago

1.3.12

9 months ago

1.3.11

10 months ago

1.3.10

10 months ago

1.3.9

10 months ago

1.3.8

10 months ago

1.3.7

10 months ago

1.3.6

10 months ago

1.3.5

10 months ago

1.3.4

10 months ago

1.3.3

10 months ago

0.3.54

11 months ago

1.3.2

11 months ago

0.3.53

11 months ago

1.3.1

11 months ago

1.2.9

12 months ago

1.3.0

12 months ago

1.2.8

12 months ago

1.2.7

12 months ago

1.2.6

12 months ago

1.2.5

12 months ago

0.3.52

1 year ago

1.2.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.34

1 year ago

0.3.51

1 year ago

1.1.9-alpha.0

1 year ago

1.0.4-alpha.0

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.0.23-alpha.0

1 year ago

1.1.14-alpha.0

1 year ago

1.0.18-alpha.0

1 year ago

1.1.30

1 year ago

1.0.0-alpha.0

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.18-alpha.0

1 year ago

1.1.11-alpha.0

1 year ago

1.0.27-alpha.0

1 year ago

1.1.5-alpha.0

1 year ago

1.0.10-alpha.0

1 year ago

1.1.22-alpha.0

1 year ago

1.0.14-alpha.4

1 year ago

1.0.14-alpha.3

1 year ago

1.0.14-alpha.5

1 year ago

1.1.1-alpha.0

1 year ago

1.0.14-alpha.0

1 year ago

1.0.14-alpha.2

1 year ago

1.0.14-alpha.1

1 year ago

1.0.22-alpha.0

1 year ago

0.3.50

1 year ago

1.1.15-alpha.0

1 year ago

1.0.17-alpha.0

1 year ago

1.0.7-alpha.0

1 year ago

1.1.19-alpha.0

1 year ago

1.0.3-alpha.0

1 year ago

0.3.42

1 year ago

0.3.41

1 year ago

1.0.13-alpha.0

1 year ago

0.3.40

1 year ago

1.0.26-alpha.0

1 year ago

0.3.49

1 year ago

0.3.48

1 year ago

1.1.12-alpha.0

1 year ago

0.3.47

1 year ago

0.3.46

1 year ago

0.3.45

1 year ago

0.3.44

1 year ago

0.3.43

1 year ago

1.1.6-alpha.0

1 year ago

1.1.21-alpha.0

1 year ago

1.1.2-alpha.0

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25-alpha.0

1 year ago

1.1.25

1 year ago

1.1.16-alpha.0

1 year ago

0.3.31

1 year ago

0.3.30

1 year ago

0.3.39

1 year ago

0.3.38

1 year ago

0.3.37

1 year ago

1.1.7-alpha.0

1 year ago

0.3.36

1 year ago

1.0.6-alpha.0

1 year ago

0.3.35

1 year ago

0.3.34

1 year ago

0.3.33

1 year ago

0.3.32

1 year ago

0.3.29

1 year ago

1.0.21-alpha.0

1 year ago

1.0.2-alpha.0

1 year ago

1.1.3-alpha.0

1 year ago

1.1.3-alpha.2

1 year ago

1.0.9-alpha.0

1 year ago

0.3.28

1 year ago

0.3.27

1 year ago

0.3.26

1 year ago

1.0.25-alpha.0

1 year ago

1.0.16-alpha.0

1 year ago

1.0.29-alpha.0

1 year ago

1.0.12-alpha.0

1 year ago

1.1.24-alpha.0

1 year ago

1.0.19-alpha.0

1 year ago

1.0.5-alpha.0

1 year ago

1.1.8-alpha.0

1 year ago

1.1.20-alpha.0

1 year ago

1.1.13-alpha.0

1 year ago

1.0.1-alpha.0

1 year ago

1.0.24-alpha.0

1 year ago

1.0.20-alpha.0

1 year ago

1.1.17-alpha.0

1 year ago

1.1.10-alpha.0

1 year ago

1.1.4-alpha.0

1 year ago

1.0.28-alpha.0

1 year ago

1.0.8-alpha.0

1 year ago

1.1.0-alpha.0

1 year ago

1.0.11-alpha.0

1 year ago

1.1.23-alpha.0

1 year ago

1.0.15-alpha.0

1 year ago

0.3.20

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.17

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.9

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.8

2 years ago

0.2.10

2 years ago

0.3.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago