caver-js
Version:
caver-js is a JavaScript API library that allows developers to interact with a Kaia node
145 lines (144 loc) • 11 kB
JSON
{
"name": "caver-js",
"version": "1.12.2",
"description": "caver-js is a JavaScript API library that allows developers to interact with a Kaia node",
"main": "index.js",
"types": "types/index.d.ts",
"scripts": {
"dtslint": "echo \"dstlint pass\"",
"test": "npm run build && npm run dtslint && npm run unitTest",
"unitTest": " npm run txUnitTest && npm run utilUnitTest && npm run netUnitTest && npm run accountUnitTest && npm run serUnitTest && npm run walletUnitTest && npm run etcUnitTest && npm run validatorUnitTest",
"fullTest": " npm run unitTest && npm run rpcTest && npm run txTest && npm run etcTest && npm run accountKeyTest && npm run kctTest && npm run intTest",
"build": "./node_modules/.bin/webpack --mode production",
"lint": "./node_modules/.bin/eslint './**/*.js'",
"lintFix": "./node_modules/.bin/eslint './**/*.js' --fix",
"serUnitTest": "./node_modules/mocha/bin/_mocha test/transactionType/serializationTest.js && ./node_modules/mocha/bin/_mocha test/compressionPublicKey.js && ./node_modules/mocha/bin/_mocha test/encodeContractDeploy.js && ./node_modules/mocha/bin/_mocha test/parseAccountKey.js && ./node_modules/mocha/bin/_mocha test/decodeTransaction.js && ./node_modules/mocha/bin/_mocha ./test/abi.encodeParameter.js && ./node_modules/mocha/bin/_mocha ./test/abi.decodeParameter.js && ./node_modules/mocha/bin/_mocha ./test/abi.decodeLog.js",
"accountUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.account.js && ./node_modules/mocha/bin/_mocha test/packages/caver.account.accountKey.js",
"walletUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.wallet.js && ./node_modules/mocha/bin/_mocha test/packages/caver.wallet.keyring.js && ./node_modules/mocha/bin/_mocha test/accountLib.js && ./node_modules/mocha/bin/_mocha test/accounts.privateKeyToPublicKey.js && ./node_modules/mocha/bin/_mocha test/accounts.recover.js && ./node_modules/mocha/bin/_mocha test/packages/caver.klay.accounts.js && ./node_modules/mocha/bin/_mocha test/isValidPrivateKey.js && ./node_modules/mocha/bin/_mocha test/privateKeyToAccount.js",
"utilUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.utils.js",
"netUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.klay.net.js",
"validatorUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.validator.js",
"txUnitTest": "./node_modules/mocha/bin/_mocha test/packages/caver.transaction/*.js && ./node_modules/mocha/bin/_mocha test/createTest.js",
"etcUnitTest": "./node_modules/mocha/bin/_mocha test/decodeFunctionCall.js && ./node_modules/mocha/bin/_mocha test/contractError.js && ./node_modules/mocha/bin/_mocha test/contractOverloading.js && ./node_modules/mocha/bin/_mocha ./test/contract.setWallet.js && ./node_modules/mocha/bin/_mocha ./test/setRequestManager.js && ./node_modules/mocha/bin/_mocha test/reconnectTest.js && ./node_modules/mocha/bin/_mocha test/hashMessage.js && ./node_modules/mocha/bin/_mocha test/iban.* && ./node_modules/mocha/bin/_mocha test/randomHex.js && ./node_modules/mocha/bin/_mocha test/sha3.js && ./node_modules/mocha/bin/_mocha test/toChecksumAddress.js && ./node_modules/mocha/bin/_mocha test/default*&& ./node_modules/mocha/bin/_mocha test/getNodeInfo.js && ./node_modules/mocha/bin/_mocha test/getNetworkType.js && ./node_modules/mocha/bin/_mocha test/isContractDeployment.js && ./node_modules/mocha/bin/_mocha test/multiProviderTest.js && ./node_modules/mocha/bin/_mocha test/unitMap.js && ./node_modules/mocha/bin/_mocha test/invalidResponse.js && ./node_modules/mocha/bin/_mocha test/createTest.js && ./node_modules/mocha/bin/_mocha test/setProvider.js && ./node_modules/mocha/bin/_mocha test/contractOverloading.js && ./node_modules/mocha/bin/_mocha test/supportsSubscriptions.js && ./node_modules/mocha/bin/_mocha test/packages/caver.abi.js",
"rpcTest": "./node_modules/mocha/bin/_mocha test/packages/caver.rpc.js",
"txTest": "./node_modules/mocha/bin/_mocha test/dynamicBaseFee.js && ./node_modules/mocha/bin/_mocha test/methodErrorHandling.js && ./node_modules/mocha/bin/_mocha test/sendSignedTransaction.js && ./node_modules/mocha/bin/_mocha test/estimateComputationCost.js && ./node_modules/mocha/bin/_mocha test/getTransactionReceipt.js && ./node_modules/mocha/bin/_mocha test/setNonceWithPendingTag.js && ./node_modules/mocha/bin/_mocha test/getTransaction.js && ./node_modules/mocha/bin/_mocha test/setContractOptions.js && ./node_modules/mocha/bin/_mocha test/encodeContractDeploy.js && ./node_modules/mocha/bin/_mocha test/accounts.signTransaction.js && ./node_modules/mocha/bin/_mocha test/sendTransactionCallback.js && ./node_modules/mocha/bin/_mocha test/signWithMultiSig.js && ./node_modules/mocha/bin/_mocha test/transactionType/*",
"etcTest": "./node_modules/mocha/bin/_mocha ./test/packages/caver.contract.js && ./node_modules/mocha/bin/_mocha ./test/tupleTest.js && ./node_modules/mocha/bin/_mocha test/confirmationListener.js && ./node_modules/mocha/bin/_mocha test/eventEmitter.js && ./node_modules/mocha/bin/_mocha test/personal.js && ./node_modules/mocha/bin/_mocha test/subscription.js && ./node_modules/mocha/bin/_mocha test/contract.once.js && ./node_modules/mocha/bin/_mocha test/ipfsTest.js",
"accountKeyTest": "./node_modules/mocha/bin/_mocha test/scenarioTest/accountKeyPublic.js && ./node_modules/mocha/bin/_mocha test/scenarioTest/accountKeyMultiSig.js && ./node_modules/mocha/bin/_mocha test/scenarioTest/accountKeyRoleBased.js",
"kctTest": "./node_modules/mocha/bin/_mocha test/packages/caver.klay.KIP7.js && ./node_modules/mocha/bin/_mocha test/packages/caver.klay.KIP17.js && ./node_modules/mocha/bin/_mocha test/packages/caver.kct.kip37.js && ./node_modules/mocha/bin/_mocha test/createTest.js",
"intTest": "npm run intTxTest && npm run intSIGVALITest && npm run intAPITest && npm run intSOLTest",
"intTxTest": "npm run intLEGACYTest && npm run intVTTest && npm run intVTMTest && npm run intACCUPTest && npm run intDEPLTest && npm run intEXETest && npm run intCANCELTest && npm run intFDTest && npm run intFDRTest",
"intLEGACYTest": "./node_modules/mocha/bin/_mocha --grep INT-LEGACY/ test/intTest.js",
"intVTTest": "./node_modules/mocha/bin/_mocha --grep INT-VT/ test/intTest.js",
"intVTMTest": "./node_modules/mocha/bin/_mocha --grep INT-VTM/ test/intTest.js",
"intACCUPTest": "./node_modules/mocha/bin/_mocha --grep INT-ACCUP/ test/intTest.js",
"intDEPLTest": "./node_modules/mocha/bin/_mocha --grep INT-DEPL/ test/intTest.js",
"intEXETest": "./node_modules/mocha/bin/_mocha --grep INT-EXE/ test/intTest.js",
"intCANCELTest": "./node_modules/mocha/bin/_mocha --grep INT-CANCEL/ test/intTest.js",
"intFDTest": "./node_modules/mocha/bin/_mocha --grep INT-FD/ test/intTest.js",
"intFDRTest": "./node_modules/mocha/bin/_mocha --grep INT-FDR/ test/intTest.js",
"intSIGVALITest": "./node_modules/mocha/bin/_mocha --grep INT-SIGVALI/ test/intTest.js",
"intAPITest": "./node_modules/mocha/bin/_mocha --grep INT-API/ test/intTest.js",
"intSOLTest": "./node_modules/mocha/bin/_mocha --grep INT-SOL/00 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/01 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/02 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/03 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/04 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/05 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/06 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/07 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/08 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/09 test/intTest.js && ./node_modules/mocha/bin/_mocha --grep INT-SOL/1 test/intTest.js",
"cover": "npm run build && nyc --silent ./node_modules/mocha/bin/_mocha test/packages/caver.utils.js && nyc --silent --no-clean ./node_modules/mocha/bin/_mocha test/packages/caver.klay.net.js && npm run cover:serialization && npm run cover:wallet && npm run cover:report",
"cover:serialization": "nyc --silent --no-clean npm run serTest",
"cover:wallet": "nyc --silent --no-clean npm run walletTest",
"cover:report": "nyc report --reporter=html --reporter=text",
"generateDocs": "jsdoc -c jsdoc.json && node ./turndown.js"
},
"keywords": [
"caver",
"caverjs",
"caver-js",
"caver.js",
"kaia",
"kaia chain",
"kaia sdk",
"kaia api"
],
"repository": {
"type": "git",
"url": "https://github.com/kaiachain/caver-js.git"
},
"bugs": {
"url": "https://github.com/kaiachain/caver-js/issues"
},
"homepage": "https://github.com/kaiachain/caver-js",
"author": "Kaia Team",
"license": "LGPL-3.0",
"dependencies": {
"@babel/runtime": "7.3.1",
"@ethersproject/abi": "5.0.7",
"abortcontroller-polyfill": "^1.7.3",
"any-promise": "1.3.0",
"bignumber.js": "8.0.2",
"bn.js": "4.11.6",
"constants-browserify": "^1.0.0",
"cross-fetch": "^3.1.5",
"crypto-browserify": "^3.12.0",
"elliptic": "6.5.4",
"es6-promise": "^4.2.8",
"eth-lib": "0.2.8",
"ethers": "5.4.1",
"ethjs-unit": "0.1.6",
"eventemitter3": "4.0.0",
"http": "0.0.1-security",
"https": "^1.0.0",
"ipfs-http-client": "^49.0.4",
"lodash": "4.17.21",
"multiformats": "^9.7.1",
"number-to-bn": "1.7.0",
"oboe": "2.1.3",
"os": "^0.1.2",
"scrypt-js": "3.0.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"utf8": "2.1.1",
"uuid": "8.3.2",
"websocket": "1.0.31"
},
"devDependencies": {
"@babel/core": "^7.11.0",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-external-helpers": "7.0.0",
"@babel/plugin-transform-runtime": "7.1.0",
"@babel/preset-env": "7.3.1",
"@types/bn.js": "^5.1.0",
"@types/lodash": "^4.14.176",
"@types/websocket": "^1.0.4",
"babel-plugin-external-helpers": "6.22.0",
"babelrc-rollup": "3.0.0",
"browserify": "16.2.2",
"chai": "^4.1.2",
"chai-as-promised": "7.1.1",
"del": "3.0.0",
"docdash": "^1.2.0",
"dotenv": "^8.2.0",
"dtslint": "^3.4.2",
"eslint": "^8.2.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "6.4.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "3.1.1",
"eslint-plugin-react": "^7.28.0",
"exorcist": "2.0.0",
"fetch-mock": "^9.11.0",
"jsdoc": "^3.6.7",
"jsdoc-typeof-plugin": "^1.0.0",
"jshint": "^2.13.4",
"mocha": "^10.0.0",
"nock": "10.0.6",
"node-fetch": "^2.6.7",
"nyc": "^15.1.0",
"path": "0.12.7",
"prettier": "1.18.2",
"request": "^2.88.2",
"sinon": "9.0.0",
"sinon-chai": "3.5.0",
"turndown": "^7.1.1",
"typescript": "^4.4.4",
"vinyl-source-stream": "2.0.0",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1"
}
}