Catalog npm
PACKAGE EXPLORERView in registry

@0x-klaytn/subproviders

npm

A few useful web3 subproviders, private key wallet adapter for use with Caver.js for Klaytn.

Versions collected50
Direct dependencies43From release 6.5.0
Last observed20 Oct, 22:17 UTC

README

Current package documentation

@0x-klaytn/subproviders

A few useful web3 subproviders, private key wallet adapter for use with Caver.js for Klaytn.

Installation

yarn add @0x-klaytn/subproviders

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x-klaytn/typescript-typings/types", "node_modules/@types"],
}

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x-klaytn/subproviders yarn build

Or continuously rebuild on change:

PKG=@0x-klaytn/subproviders yarn watch

Clean

yarn clean

Lint

yarn lint

Run tests

Unit tests

yarn run test:unit

Integration tests

In order to run the integration tests, make sure you have a Ledger Nano S available.

  • Setup your Ledger with the development mnemonic seed: concert load couple harbor equip island argue ramp clarify fence smart topic
  • Plug it into your computer
  • Unlock the device
  • Open the on-device Ethereum app
  • Make sure "browser support" and "contract data" are disabled
  • Start TestRPC locally at port 8545

Then run:

yarn test:integration

Note: We assume a derivation path of m/44'/60'/0'/0 which is already configured in the tests. With this setup and derivation path, your first account should be 0x5409ed021d9299bf6814279a6a1411a7e866a631, exactly like TestRPC.

All tests

yarn run test:all

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 50

Collected releases
VersionPublishedDirect dependenciesOpen version
6.5.0Registry latest17 Jul 202043
6.4.117 Jul 202043
6.4.017 Jul 202043
6.3.1610 Jul 202043
6.3.1510 Jul 202043
6.3.1410 Jul 202043
6.3.1310 Jul 202043
6.3.1210 Jul 202043
6.3.1110 Jul 202043
6.3.1010 Jul 202043
6.3.910 Jul 202043
6.3.810 Jul 202043
6.3.710 Jul 202043
6.3.610 Jul 202043
6.3.510 Jul 202043
6.3.410 Jul 202043
6.3.310 Jul 202043
6.3.210 Jul 202043
6.3.110 Jul 202043
6.3.010 Jul 202043

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:17 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:2c49f549369f0a53629a8200bb4a01469c530ed643d183f1407efb0d215f791d