Catalog npm
Back to packageRELEASE DETAILS

6.0.8

npm

@0x-klaytn/subproviders

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

Published25 Feb 2020
Direct dependencies44
Transitive dependenciesNot calculated

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.

Declared dependencies 44

Native requirements
44 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x-klaytn/utils
Environment
{
  "local_name": "@0x-klaytn/utils",
  "alias": false,
  "peer_metadata": null
}
^5.4.0runtime
@0x-klaytn/web3-wrapper
Environment
{
  "local_name": "@0x-klaytn/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.0.6runtime
@0x/assert
Environment
{
  "local_name": "@0x/assert",
  "alias": false,
  "peer_metadata": null
}
^3.0.6runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.1.2runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.0.2runtime
@ledgerhq/hw-app-eth
Environment
{
  "local_name": "@ledgerhq/hw-app-eth",
  "alias": false,
  "peer_metadata": null
}
^4.3.0runtime
@ledgerhq/hw-transport-u2f
Environment
{
  "local_name": "@ledgerhq/hw-transport-u2f",
  "alias": false,
  "peer_metadata": null
}
4.24.0runtime
@types/hdkey
Environment
{
  "local_name": "@types/hdkey",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
@types/web3-provider-engine
Environment
{
  "local_name": "@types/web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
^14.0.0runtime
bip39
Environment
{
  "local_name": "bip39",
  "alias": false,
  "peer_metadata": null
}
^2.5.0runtime
bn.js
Environment
{
  "local_name": "bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.8runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
ethereumjs-tx
Environment
{
  "local_name": "ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
^1.3.5runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
ganache-core
Environment
{
  "local_name": "ganache-core",
  "alias": false,
  "peer_metadata": null
}
^2.9.0-istanbul.0runtime
hdkey
Environment
{
  "local_name": "hdkey",
  "alias": false,
  "peer_metadata": null
}
^0.7.1runtime
json-rpc-error
Environment
{
  "local_name": "json-rpc-error",
  "alias": false,
  "peer_metadata": null
}
2.0.0runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
semaphore-async-await
Environment
{
  "local_name": "semaphore-async-await",
  "alias": false,
  "peer_metadata": null
}
^1.5.1runtime
web3-provider-engine
Environment
{
  "local_name": "web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
14.0.6runtime
@0x/ts-doc-gen
Environment
{
  "local_name": "@0x/ts-doc-gen",
  "alias": false,
  "peer_metadata": null
}
^0.0.22development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
@types/bip39
Environment
{
  "local_name": "@types/bip39",
  "alias": false,
  "peer_metadata": null
}
^2.4.0development
@types/bn.js
Environment
{
  "local_name": "@types/bn.js",
  "alias": false,
  "peer_metadata": null
}
^4.11.0development
@types/ethereumjs-tx
Environment
{
  "local_name": "@types/ethereumjs-tx",
  "alias": false,
  "peer_metadata": null
}
^1.0.1development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.7development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
*development
@types/sinon
Environment
{
  "local_name": "@types/sinon",
  "alias": false,
  "peer_metadata": null
}
^2.2.2development
caver-js
Environment
{
  "local_name": "caver-js",
  "alias": false,
  "peer_metadata": null
}
^1.3.1development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
^11.0.1development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
sinon
Environment
{
  "local_name": "sinon",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.15.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^4.20.2development
@ledgerhq/hw-transport-node-hid
Environment
{
  "local_name": "@ledgerhq/hw-transport-node-hid",
  "alias": false,
  "peer_metadata": null
}
^4.3.0optional

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "b722ffc3aadc54f2b3ac0c28cf106943e0c406d9",
  "integrity": "sha512-xERHGLY3YEDNQcHO4EVpTBmuhjW2AsLqhgcJeOolLyb15bMjfBqMGJataIJ9rcrn9XnKO9MBigPZpflGLqUFug==",
  "tarball": "https://registry.npmjs.org/@0x-klaytn/subproviders/-/subproviders-6.0.8.tgz",
  "fileCount": 5,
  "unpackedSize": 31923,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVH38CRA9TVsSAnZWagAARCEP/1B3+yAIFQ9vMxQUsYns\nm/vXi+VlyHWZ5CPHYX0Vfob9te+iucWLHsDKMyvaJXsM752RH82y170zSx6U\nOmUAs0glTbEvwryzzEdrbdegmzwew6E9JDLIZl6SpkvejcVVr1J6mzXdF4k2\n7sNiiL1kQt5lSHe02tBtNxosHTgcrtxqBspd1/eEggbHiC4PmF700oH6M/yT\nCFuXiuqsDFWIzQV3lVNXUzYan5PJJftBMrretKaRDvwWhkVD7TWW5D48Q3lV\naPWlpK/FuAa0VkLBETdBT3BoC0vzw4XLSYILuw8XMOpLKVhN/afdp98c1A8+\nEo9jc6T00f1B2LxPBwazad1EY4cuBBFbOi1CMRRv5nNV2fdFdnNZdT24046k\nfLLCl8h4Dab8gRWFi04AQRJpttkpLTlIb7B7U9N6rIZPJ5G4ZGV75A06AM1X\np/ZI1cBB5yB+XrpglFL6Uw3BHYJlB1W8vflLG9uU6zuNokNjxtSP0RmkvyLI\n7x3FzHRG6JZgG7vOBXTD2yZghJmSNiU5zU7GRHBY3cTloWwfgcdjmfRHEq3B\njKwiDfdYVPVD7qDl/UUWTSRz0JdLiYDscBqmeUObid21euxmB0ExcSXFjpYd\n3XEKp02kenVSmgIjNvGY44cvgibx+176awL4Y9Yu4sTxhU9veTq/dVAQhbxE\n5d9a\r\n=7yBc\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCkOZy6Otfsn2MlqfrCwkBGWLfaEAY9AR6tL3Bc2d0DhwIhAM/h8WJekubrlvRCjMuCpAHN4zjDYIX7guwM33gEXoos"
    }
  ]
}

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_version:4618ee8c02c9bd8fa86aeee459488e54925fb660fd54cf6a668d2ebea36f81ed

Other collected versions

6.5.017 Jul6.4.117 Jul6.4.017 Jul6.3.1610 Jul6.3.1510 Jul6.3.1410 JulView all collected versions →