From 3b6a542110530340cb142e9773e8c285b5166249 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Sun, 2 Feb 2020 14:22:53 -0600 Subject: [PATCH] build(deps): bump web3[-*] from 1.2.4 to 1.2.6 Remove `bignumber.js` workaround (in the root, from PR #2152) because it's no longer needed (verified locally). Remove the `"skipLibCheck"` workaround (in `packages/plugins/solidity-tests`, from PR #2152) because it's no longer needed (verified locally). Refactor a typing in `packages/plugins/geth`. What's happening is that in web v1.2.4 `sendTransaction` has a return type of `PromiEvent` but in v1.2.6 it has a return type of `PromiEvent`. Compare: * [v1.2.4/packages/web3-eth/types/index.d.ts#L291-L294](https://github.com/ethereum/web3.js/blob/v1.2.4/packages/web3-eth/types/index.d.ts#L291-L294) * [v1.2.6/packages/web3-eth/types/index.d.ts#L295-L298](https://github.com/ethereum/web3.js/blob/v1.2.6/packages/web3-eth/types/index.d.ts#L295-L298) The problem is that the `TransactionRevertInstructionError` type doesn't have a `transactionHash` property. Since at present the code in `packages/plugins/geth/src/devtxs.ts` only deals with the success case re: `sendTransaction`, import the `TransactionReceipt` type from `web3-eth` and cast the return value's type using TypeScript's `as` operator. --- package.json | 2 - packages/cockpit/ui/package.json | 2 +- packages/core/code-runner/package.json | 2 +- packages/core/core/package.json | 4 +- packages/core/utils/package.json | 6 +- packages/embark/package.json | 38 +-- packages/embarkjs/embarkjs/package.json | 2 +- packages/embarkjs/embarkjs/src/lib/index.js | 2 +- packages/embarkjs/ens/package.json | 2 +- packages/embarkjs/swarm/package.json | 2 +- packages/embarkjs/web3/package.json | 2 +- packages/embarkjs/whisper/package.json | 2 +- .../plugins/accounts-manager/package.json | 2 +- packages/plugins/coverage/package.json | 4 +- packages/plugins/deploy-tracker/package.json | 2 +- packages/plugins/ens/package.json | 2 +- .../ethereum-blockchain-client/package.json | 4 +- packages/plugins/geth/package.json | 3 +- packages/plugins/geth/src/devtxs.ts | 3 +- packages/plugins/mocha-tests/package.json | 2 +- packages/plugins/profiler/package.json | 4 +- packages/plugins/rpc-manager/package.json | 2 +- packages/plugins/scaffolding/package.json | 2 +- packages/plugins/solidity-tests/package.json | 9 +- packages/plugins/solidity-tests/tsconfig.json | 1 - .../plugins/transaction-logger/package.json | 4 +- packages/plugins/whisper-geth/package.json | 2 +- packages/plugins/whisper-parity/package.json | 2 +- packages/stack/blockchain-client/package.json | 2 +- packages/stack/contracts-manager/package.json | 4 +- packages/stack/library-manager/package.json | 2 +- packages/stack/proxy/package.json | 4 +- packages/stack/test-runner/package.json | 2 +- .../2019-12-09-web3-what-are-your-options.md | 2 +- site/source/docs/installing_embarkjs.md | 2 +- site/source/docs/javascript_usage.md | 2 +- site/source/docs/smart_contract_objects.md | 2 +- site/source/docs/web3js.md | 2 +- yarn.lock | 254 +++++++++++++++++- 39 files changed, 314 insertions(+), 78 deletions(-) diff --git a/package.json b/package.json index d2c7818a71..88f98f1923 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "babel-eslint": "10.0.3", "babel-plugin-dynamic-import-node": "2.3.0", "babel-plugin-macros": "2.7.1", - "bignumber.js": "5.0.0", "chalk": "2.4.2", "coveralls": "3.0.9", "eslint": "6.2.2", @@ -102,7 +101,6 @@ "embark-dapp-test-app/embark-dapp-test-service", "embark-dapp-test-app/zeppelin-solidity", "embark-ui/@storybook/**", - "embark-ui/bignumber.js", "embark-ui/react-scripts", "embark-ui/react-scripts/**", "embark/embark-test-contract-0", diff --git a/packages/cockpit/ui/package.json b/packages/cockpit/ui/package.json index 247f32ee29..a4ef026c18 100644 --- a/packages/cockpit/ui/package.json +++ b/packages/cockpit/ui/package.json @@ -104,7 +104,7 @@ "typescript": "3.7.2", "uuid": "3.3.2", "velocity-react": "1.4.3", - "web3": "1.2.4", + "web3": "1.2.6", "webpack": "4.41.2" }, "eslintConfig": { diff --git a/packages/core/code-runner/package.json b/packages/core/code-runner/package.json index a55b38c4ea..80d928a497 100644 --- a/packages/core/code-runner/package.json +++ b/packages/core/code-runner/package.json @@ -59,7 +59,7 @@ "fs-extra": "8.1.0", "parse-json": "5.0.0", "vm2": "3.8.4", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "@babel/core": "7.7.7", diff --git a/packages/core/core/package.json b/packages/core/core/package.json index 36a974c3eb..6cd244777d 100644 --- a/packages/core/core/package.json +++ b/packages/core/core/package.json @@ -66,8 +66,8 @@ "parse-json": "4.0.0", "shelljs": "0.8.3", "uuid": "3.3.2", - "web3": "1.2.4", - "web3-utils": "1.2.4", + "web3": "1.2.6", + "web3-utils": "1.2.6", "window-size": "1.1.1" }, "devDependencies": { diff --git a/packages/core/utils/package.json b/packages/core/utils/package.json index 24f362cd90..e67228898f 100644 --- a/packages/core/utils/package.json +++ b/packages/core/utils/package.json @@ -69,9 +69,9 @@ "ora": "4.0.3", "pretty-ms": "5.1.0", "shelljs": "0.8.3", - "web3": "1.2.4", - "web3-eth": "1.2.4", - "web3-eth-abi": "1.2.4", + "web3": "1.2.6", + "web3-eth": "1.2.6", + "web3-eth-abi": "1.2.6", "ws": "7.1.2" }, "devDependencies": { diff --git a/packages/embark/package.json b/packages/embark/package.json index dd3893b39b..602d2c2907 100644 --- a/packages/embark/package.json +++ b/packages/embark/package.json @@ -117,25 +117,25 @@ "term.js": "0.0.7", "viz.js": "1.8.2", "vm2": "3.6.4", - "web3": "1.2.4", - "web3-bzz": "1.2.4", - "web3-core": "1.2.4", - "web3-core-helpers": "1.2.4", - "web3-core-method": "1.2.4", - "web3-core-promievent": "1.2.4", - "web3-core-subscriptions": "1.2.4", - "web3-eth": "1.2.4", - "web3-eth-abi": "1.2.4", - "web3-eth-accounts": "1.2.4", - "web3-eth-contract": "1.2.4", - "web3-eth-iban": "1.2.4", - "web3-eth-personal": "1.2.4", - "web3-net": "1.2.4", - "web3-providers-http": "1.2.4", - "web3-providers-ipc": "1.2.4", - "web3-providers-ws": "1.2.4", - "web3-shh": "1.2.4", - "web3-utils": "1.2.4", + "web3": "1.2.6", + "web3-bzz": "1.2.6", + "web3-core": "1.2.6", + "web3-core-helpers": "1.2.6", + "web3-core-method": "1.2.6", + "web3-core-promievent": "1.2.6", + "web3-core-subscriptions": "1.2.6", + "web3-eth": "1.2.6", + "web3-eth-abi": "1.2.6", + "web3-eth-accounts": "1.2.6", + "web3-eth-contract": "1.2.6", + "web3-eth-iban": "1.2.6", + "web3-eth-personal": "1.2.6", + "web3-net": "1.2.6", + "web3-providers-http": "1.2.6", + "web3-providers-ipc": "1.2.6", + "web3-providers-ws": "1.2.6", + "web3-shh": "1.2.6", + "web3-utils": "1.2.6", "window-size": "1.1.1" }, "devDependencies": { diff --git a/packages/embarkjs/embarkjs/package.json b/packages/embarkjs/embarkjs/package.json index a868e9b77e..3992ec8eec 100644 --- a/packages/embarkjs/embarkjs/package.json +++ b/packages/embarkjs/embarkjs/package.json @@ -79,7 +79,7 @@ "nyc": "13.1.0", "rimraf": "3.0.0", "source-map-support": "0.5.13", - "web3": "1.2.4" + "web3": "1.2.6" }, "engines": { "node": ">=10.17.0", diff --git a/packages/embarkjs/embarkjs/src/lib/index.js b/packages/embarkjs/embarkjs/src/lib/index.js index 04a15c0775..a87e9cef8b 100644 --- a/packages/embarkjs/embarkjs/src/lib/index.js +++ b/packages/embarkjs/embarkjs/src/lib/index.js @@ -28,7 +28,7 @@ EmbarkJS.Contract = function() { throw new Error('EmbarkJS.Contract is deprecated: please use EmbarkJS.Blockchain.Contract instead'); }; EmbarkJS.isNewWeb3 = function() { - throw new Error('EmbarkJS.isNewWeb3 is deprecated: only Web3 >=1.2.4 is supported now'); + throw new Error('EmbarkJS.isNewWeb3 is deprecated: only Web3 >=1.2.6 is supported now'); }; export default EmbarkJS; diff --git a/packages/embarkjs/ens/package.json b/packages/embarkjs/ens/package.json index 00ee98458d..a49a11f20e 100644 --- a/packages/embarkjs/ens/package.json +++ b/packages/embarkjs/ens/package.json @@ -51,7 +51,7 @@ "core-js": "3.4.3", "embarkjs": "^5.1.1-nightly.2", "eth-ens-namehash": "2.0.8", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "ajv": "6.10.2", diff --git a/packages/embarkjs/swarm/package.json b/packages/embarkjs/swarm/package.json index 4be64be101..3721fde721 100644 --- a/packages/embarkjs/swarm/package.json +++ b/packages/embarkjs/swarm/package.json @@ -50,7 +50,7 @@ "@babel/runtime-corejs3": "7.7.4", "core-js": "3.4.3", "swarm-api": "0.1.2", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "ajv": "6.10.2", diff --git a/packages/embarkjs/web3/package.json b/packages/embarkjs/web3/package.json index 01b86df310..c72510040e 100644 --- a/packages/embarkjs/web3/package.json +++ b/packages/embarkjs/web3/package.json @@ -49,7 +49,7 @@ "dependencies": { "@babel/runtime-corejs3": "7.7.4", "core-js": "3.4.3", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "ajv": "6.10.2", diff --git a/packages/embarkjs/whisper/package.json b/packages/embarkjs/whisper/package.json index 957c5c9dca..5d724f0ede 100644 --- a/packages/embarkjs/whisper/package.json +++ b/packages/embarkjs/whisper/package.json @@ -50,7 +50,7 @@ "@babel/runtime-corejs3": "7.7.4", "core-js": "3.4.3", "rxjs": "6.4.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "ajv": "6.10.2", diff --git a/packages/plugins/accounts-manager/package.json b/packages/plugins/accounts-manager/package.json index 1a5909240c..fd3adc7697 100644 --- a/packages/plugins/accounts-manager/package.json +++ b/packages/plugins/accounts-manager/package.json @@ -52,7 +52,7 @@ "embark-i18n": "^5.1.1-nightly.2", "embark-logger": "^5.1.1-nightly.2", "embark-utils": "^5.1.1-nightly.2", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/coverage/package.json b/packages/plugins/coverage/package.json index ababc33c1e..9c8d806849 100644 --- a/packages/plugins/coverage/package.json +++ b/packages/plugins/coverage/package.json @@ -57,8 +57,8 @@ "prettier-plugin-solidity": "1.0.0-alpha.25", "semver": "5.6.0", "solidity-parser-antlr": "0.4.5", - "web3-core": "1.2.4", - "web3-eth-contract": "1.2.4" + "web3-core": "1.2.6", + "web3-eth-contract": "1.2.6" }, "devDependencies": { "@babel/cli": "7.7.4", diff --git a/packages/plugins/deploy-tracker/package.json b/packages/plugins/deploy-tracker/package.json index ecebac5507..5123ae0f16 100644 --- a/packages/plugins/deploy-tracker/package.json +++ b/packages/plugins/deploy-tracker/package.json @@ -49,7 +49,7 @@ "embark-logger": "^5.1.1-nightly.2", "embark-utils": "^5.1.1-nightly.2", "fs-extra": "8.1.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/ens/package.json b/packages/plugins/ens/package.json index 3c9d6ffdb6..386e613eae 100644 --- a/packages/plugins/ens/package.json +++ b/packages/plugins/ens/package.json @@ -53,7 +53,7 @@ "embarkjs-ens": "^5.1.1-nightly.2", "eth-ens-namehash": "2.0.8", "lodash.clonedeep": "4.5.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "@babel/core": "7.7.4", diff --git a/packages/plugins/ethereum-blockchain-client/package.json b/packages/plugins/ethereum-blockchain-client/package.json index a61bd5681f..6548249206 100644 --- a/packages/plugins/ethereum-blockchain-client/package.json +++ b/packages/plugins/ethereum-blockchain-client/package.json @@ -52,8 +52,8 @@ "embark-utils": "^5.1.1-nightly.2", "embarkjs": "^5.1.1-nightly.2", "ethereumjs-util": "6.0.0", - "web3": "1.2.4", - "web3-core-requestmanager": "1.2.4" + "web3": "1.2.6", + "web3-core-requestmanager": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/geth/package.json b/packages/plugins/geth/package.json index a3b449e37b..81598ed627 100644 --- a/packages/plugins/geth/package.json +++ b/packages/plugins/geth/package.json @@ -56,7 +56,8 @@ "fs-extra": "8.1.0", "netcat": "1.3.5", "semver": "5.6.0", - "web3": "1.2.4", + "web3": "1.2.6", + "web3-eth": "1.2.6", "ws": "7.1.2" }, "devDependencies": { diff --git a/packages/plugins/geth/src/devtxs.ts b/packages/plugins/geth/src/devtxs.ts index 89044df600..1b9ac681b2 100644 --- a/packages/plugins/geth/src/devtxs.ts +++ b/packages/plugins/geth/src/devtxs.ts @@ -2,6 +2,7 @@ import { __ } from 'embark-i18n'; import { Embark, EmbarkEvents } from "embark-core"; import { Logger } from "embark-logger"; import Web3 from "web3"; +import { TransactionReceipt } from "web3-eth"; import constants from "embark-core/constants.json"; export default class DevTxs { private embark: Embark; @@ -65,7 +66,7 @@ export default class DevTxs { matches: ["senddevtx"], process: async (_cmd, callback) => { this.logger.info(__("Sending a tx from the dev account...")); - const receipt = await this.sendTx(); + const receipt = (await this.sendTx()) as TransactionReceipt; callback(null, __("Transaction sent. Tx hash: ") + `\n${JSON.stringify(receipt && receipt.transactionHash)}`); } }); diff --git a/packages/plugins/mocha-tests/package.json b/packages/plugins/mocha-tests/package.json index 2495b27501..d98ea684f1 100644 --- a/packages/plugins/mocha-tests/package.json +++ b/packages/plugins/mocha-tests/package.json @@ -55,7 +55,7 @@ "embark-utils": "^5.1.1-nightly.2", "embarkjs": "^5.1.1-nightly.2", "mocha": "6.2.2", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/profiler/package.json b/packages/plugins/profiler/package.json index 4fdbd952f8..fa8d8aa26c 100644 --- a/packages/plugins/profiler/package.json +++ b/packages/plugins/profiler/package.json @@ -48,8 +48,8 @@ "ascii-table": "0.0.9", "async": "2.6.1", "core-js": "3.4.3", - "web3": "1.2.4", - "web3-utils": "1.2.4" + "web3": "1.2.6", + "web3-utils": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/rpc-manager/package.json b/packages/plugins/rpc-manager/package.json index 4d8f87011e..7db15d9b83 100644 --- a/packages/plugins/rpc-manager/package.json +++ b/packages/plugins/rpc-manager/package.json @@ -53,7 +53,7 @@ "embark-i18n": "^5.1.1-nightly.2", "embark-logger": "^5.1.1-nightly.2", "embark-utils": "^5.1.1-nightly.2", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "cross-env": "5.2.0", diff --git a/packages/plugins/scaffolding/package.json b/packages/plugins/scaffolding/package.json index 6e5c5f7cfa..b0292e1684 100644 --- a/packages/plugins/scaffolding/package.json +++ b/packages/plugins/scaffolding/package.json @@ -50,7 +50,7 @@ "embark-logger": "^5.1.1-nightly.2", "embark-utils": "^5.1.1-nightly.2", "handlebars": "4.3.0", - "web3-utils": "1.2.4" + "web3-utils": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/solidity-tests/package.json b/packages/plugins/solidity-tests/package.json index 36e04afdf2..9909c46d36 100644 --- a/packages/plugins/solidity-tests/package.json +++ b/packages/plugins/solidity-tests/package.json @@ -27,11 +27,7 @@ "types": "./dist/lib/index.d.ts", "embark-collective": { "build:node": true, - "typecheck": { - "compilerOptions": { - "skipLibCheck": true - } - } + "typecheck": true }, "scripts": { "_build": "npm run solo -- build", @@ -54,12 +50,11 @@ "core-js": "3.4.3", "embark-utils": "^5.1.1-nightly.2", "remix-tests": "0.1.24", - "web3": "1.2.4", + "web3": "1.2.6", "yo-yoify": "4.3.0" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", - "embark-utils": "^5.0.0-alpha.4", "eslint": "5.7.0", "mocha": "6.2.2", "npm-run-all": "4.1.5", diff --git a/packages/plugins/solidity-tests/tsconfig.json b/packages/plugins/solidity-tests/tsconfig.json index 57aeeaeb46..d7e4a88e60 100644 --- a/packages/plugins/solidity-tests/tsconfig.json +++ b/packages/plugins/solidity-tests/tsconfig.json @@ -3,7 +3,6 @@ "composite": true, "declarationDir": "./dist", "rootDir": "./src", - "skipLibCheck": true, "tsBuildInfoFile": "./node_modules/.cache/tsc/tsconfig.embark-solidity-tests.tsbuildinfo" }, "extends": "../../../tsconfig.base.json", diff --git a/packages/plugins/transaction-logger/package.json b/packages/plugins/transaction-logger/package.json index cabf8b5ffa..f4262a2596 100644 --- a/packages/plugins/transaction-logger/package.json +++ b/packages/plugins/transaction-logger/package.json @@ -54,8 +54,8 @@ "embark-utils": "^5.1.1-nightly.2", "ethereumjs-tx": "1.3.7", "ethereumjs-util": "6.0.0", - "web3": "1.2.4", - "web3-utils": "1.2.4" + "web3": "1.2.6", + "web3-utils": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/plugins/whisper-geth/package.json b/packages/plugins/whisper-geth/package.json index 0d8a45974e..cc289bd35e 100644 --- a/packages/plugins/whisper-geth/package.json +++ b/packages/plugins/whisper-geth/package.json @@ -58,7 +58,7 @@ "eslint": "5.7.0", "npm-run-all": "4.1.5", "rimraf": "3.0.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "engines": { "node": ">=10.17.0", diff --git a/packages/plugins/whisper-parity/package.json b/packages/plugins/whisper-parity/package.json index f10a50a961..9562e6cbbf 100644 --- a/packages/plugins/whisper-parity/package.json +++ b/packages/plugins/whisper-parity/package.json @@ -58,7 +58,7 @@ "eslint": "5.7.0", "npm-run-all": "4.1.5", "rimraf": "3.0.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "engines": { "node": ">=10.17.0", diff --git a/packages/stack/blockchain-client/package.json b/packages/stack/blockchain-client/package.json index 4b4e21e937..e4a1a81c00 100644 --- a/packages/stack/blockchain-client/package.json +++ b/packages/stack/blockchain-client/package.json @@ -46,7 +46,7 @@ "dependencies": { "@babel/runtime-corejs3": "7.7.4", "core-js": "3.4.3", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/stack/contracts-manager/package.json b/packages/stack/contracts-manager/package.json index 741d43fa7f..fddcd7487b 100644 --- a/packages/stack/contracts-manager/package.json +++ b/packages/stack/contracts-manager/package.json @@ -54,8 +54,8 @@ "embark-i18n": "^5.1.1-nightly.2", "embark-logger": "^5.1.1-nightly.2", "embark-utils": "^5.1.1-nightly.2", - "web3": "1.2.4", - "web3-utils": "1.2.4" + "web3": "1.2.6", + "web3-utils": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/stack/library-manager/package.json b/packages/stack/library-manager/package.json index 93c2129f1d..7b5b23fe06 100644 --- a/packages/stack/library-manager/package.json +++ b/packages/stack/library-manager/package.json @@ -57,7 +57,7 @@ "eslint": "5.7.0", "npm-run-all": "4.1.5", "rimraf": "3.0.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "engines": { "node": ">=10.17.0", diff --git a/packages/stack/proxy/package.json b/packages/stack/proxy/package.json index 76826fe72b..6201903969 100644 --- a/packages/stack/proxy/package.json +++ b/packages/stack/proxy/package.json @@ -57,8 +57,8 @@ "embark-utils": "^5.1.1-nightly.2", "express": "4.17.1", "express-ws": "4.0.0", - "web3-core-requestmanager": "1.2.4", - "web3-providers-ws": "1.2.4" + "web3-core-requestmanager": "1.2.6", + "web3-providers-ws": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/packages/stack/test-runner/package.json b/packages/stack/test-runner/package.json index 7cc93296a0..5b71bc4b48 100644 --- a/packages/stack/test-runner/package.json +++ b/packages/stack/test-runner/package.json @@ -62,7 +62,7 @@ "istanbul-reports": "2.2.4", "mocha": "6.2.2", "open": "6.4.0", - "web3": "1.2.4" + "web3": "1.2.6" }, "devDependencies": { "embark-solo": "^5.1.1-nightly.2", diff --git a/site/source/_posts/2019-12-09-web3-what-are-your-options.md b/site/source/_posts/2019-12-09-web3-what-are-your-options.md index 63554182a4..3c06938610 100644 --- a/site/source/_posts/2019-12-09-web3-what-are-your-options.md +++ b/site/source/_posts/2019-12-09-web3-what-are-your-options.md @@ -19,7 +19,7 @@ It goes without saying, the entire web is JS. Look around you - JS. View the s JavaScript, specifically Node, really is in everything we use, and that now also applies to our wonderful world of Cryptocurrencies. -As I mentioned briefly in my [***last*** article](/news/2019/11/28/nim-vs-crystal-part-3-cryto-dapps-p2p/), my ***next*** article series is going to be about building your first DApp – from start to finish. Inevitably, the frontend of our DApp needs to be able to communicate with the Ethereum Network. This is where [Web3.js](https://web3js.readthedocs.io/en/v1.2.4/index.html) comes into the mix. `Web3.js` is a collection of APIs allowing us such functionality as: Reading & Writing data from Smart Contracts, sending and receiving Ether, encrypting / decrypting wallets & data, and *a whole bunch* of other stuff too. Basically, *most* of the backend functionality available on the Ethereum Network natively becomes available for use in the browser. +As I mentioned briefly in my [***last*** article](/news/2019/11/28/nim-vs-crystal-part-3-cryto-dapps-p2p/), my ***next*** article series is going to be about building your first DApp – from start to finish. Inevitably, the frontend of our DApp needs to be able to communicate with the Ethereum Network. This is where [Web3.js](https://web3js.readthedocs.io/en/v1.2.6/index.html) comes into the mix. `Web3.js` is a collection of APIs allowing us such functionality as: Reading & Writing data from Smart Contracts, sending and receiving Ether, encrypting / decrypting wallets & data, and *a whole bunch* of other stuff too. Basically, *most* of the backend functionality available on the Ethereum Network natively becomes available for use in the browser. This is how the `web3.js` library talks to the Ethereum Network: diff --git a/site/source/docs/installing_embarkjs.md b/site/source/docs/installing_embarkjs.md index 13af1c581e..af21c708cb 100644 --- a/site/source/docs/installing_embarkjs.md +++ b/site/source/docs/installing_embarkjs.md @@ -90,7 +90,7 @@ This will request account access and if the user grants access to his accounts, ### Components -* [EmbarkJS.Contract](contracts_javascript.html) - To interact with smart contracts. Typically Embark automatically initializes all your deployed contracts with this. uses web3.js 1.2.4 +* [EmbarkJS.Contract](contracts_javascript.html) - To interact with smart contracts. Typically Embark automatically initializes all your deployed contracts with this. uses web3.js 1.2.6 * [EmbarkJS.Storage](storage_javascript.html) - To interact with the configured decentralized storage. Includes bindings to save & retrieve data, upload & download files, etc.. * [EmbarkJS.Communication](messages_javascript.html) - To interact with the configured decentralized messages system. Includes bindings to listen to topics and send messages. * [EmbarkJS.Names](naming_javascript.html) - To interact with the configured decentralized naming system such as ENS. Includes bindings to look up the address of a domain name as well as retrieve a domain name given an address. diff --git a/site/source/docs/javascript_usage.md b/site/source/docs/javascript_usage.md index db038aeb58..ce6a558792 100644 --- a/site/source/docs/javascript_usage.md +++ b/site/source/docs/javascript_usage.md @@ -101,7 +101,7 @@ try { This guide only touched on getting started with EmbarkJS. There are many more APIs to explore, depending on what we're achieving to build. Have a look at the dedicated guides to learn more: -* [EmbarkJS.Contract](contracts_javascript.html) - To interact with smart contracts. Typically Embark automatically initializes all your deployed contracts with this. uses web3.js 1.2.4 +* [EmbarkJS.Contract](contracts_javascript.html) - To interact with smart contracts. Typically Embark automatically initializes all your deployed contracts with this. uses web3.js 1.2.6 * [EmbarkJS.Storage](storage_javascript.html) - To interact with the configured decentralized storage. Includes bindings to save & retrieve data, upload & download files, etc.. * [EmbarkJS.Communication](messages_javascript.html) - To interact with the configured decentralized messages system. Includes bindings to listen to topics and send messages. * [EmbarkJS.Names](naming_javascript.html) - To interact with the configured decentralized naming system such as ENS. Includes bindings to look up the address of a domain name as well as retrieve a domain name given an address. diff --git a/site/source/docs/smart_contract_objects.md b/site/source/docs/smart_contract_objects.md index 8d5a2793ad..67e5900de5 100644 --- a/site/source/docs/smart_contract_objects.md +++ b/site/source/docs/smart_contract_objects.md @@ -36,4 +36,4 @@ SimpleStorage.methods.get().call().then(function(value) { console.log(value) }); SimpleStorage.methods.storedData().call().then(function(value) { console.log(value) }); ``` -The syntax used is web3.js 1.2.4 +The syntax used is web3.js 1.2.6 diff --git a/site/source/docs/web3js.md b/site/source/docs/web3js.md index 7ee7e2c450..9697bdef32 100644 --- a/site/source/docs/web3js.md +++ b/site/source/docs/web3js.md @@ -1,4 +1,4 @@ title: Web3.js Documentation --- -The documentation for Web3.js can be found [here](https://web3js.readthedocs.io/en/v1.2.4/) +The documentation for Web3.js can be found [here](https://web3js.readthedocs.io/en/v1.2.6/) diff --git a/yarn.lock b/yarn.lock index 5a864c6b9d..12ca19dc9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6318,11 +6318,6 @@ bignumber.js@2.0.7: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-2.0.7.tgz#86eb0707cf6a5110909d23e6ea7434c14f500f1c" integrity sha1-husHB89qURCQnSPm6nQ0wU9QDxw= -bignumber.js@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-5.0.0.tgz#fbce63f09776b3000a83185badcde525daf34833" - integrity sha512-KWTu6ZMVk9sxlDJQh2YH1UOnfDP8O8TpxUxgQG/vKASoSnEjK9aVuOueFaPcQEYQ5fyNXNTOYwYw3099RYebWg== - bignumber.js@^2.3.0: version "2.4.0" resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-2.4.0.tgz#838a992da9f9d737e0f4b2db0be62bb09dd0c5e8" @@ -10048,6 +10043,15 @@ eth-lib@^0.1.26: ws "^3.0.0" xhr-request-promise "^0.1.2" +eth-lib@^0.2.8: + version "0.2.8" + resolved "https://registry.yarnpkg.com/eth-lib/-/eth-lib-0.2.8.tgz#b194058bef4b220ad12ea497431d6cb6aa0623c8" + integrity sha512-ArJ7x1WcWOlSpzdoTBX8vkwlkSQ85CjjifSZtV4co64vWxSV8geWfPI9x4SVYu3DSxnX4yWFVTtGL+j9DUFLNw== + dependencies: + bn.js "^4.11.6" + elliptic "^6.4.0" + xhr-request-promise "^0.1.2" + eth-sig-util@^2.1.1: version "2.4.4" resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-2.4.4.tgz#8804ead83de8648bcf81eadbfac1e3ccdd360aea" @@ -23162,6 +23166,16 @@ web3-bzz@1.2.4: swarm-js "0.1.39" underscore "1.9.1" +web3-bzz@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.2.6.tgz#0b88c0b96029eaf01b10cb47c4d5f79db4668883" + integrity sha512-9NiHLlxdI1XeFtbPJAmi2jnnIHVF+GNy517wvOS72P7ZfuJTPwZaSNXfT01vWgPPE9R96/uAHDWHOg+T4WaDQQ== + dependencies: + "@types/node" "^10.12.18" + got "9.6.0" + swarm-js "0.1.39" + underscore "1.9.1" + web3-core-helpers@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.2.4.tgz#ffd425861f4d66b3f38df032afdb39ea0971fc0f" @@ -23171,6 +23185,15 @@ web3-core-helpers@1.2.4: web3-eth-iban "1.2.4" web3-utils "1.2.4" +web3-core-helpers@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core-helpers/-/web3-core-helpers-1.2.6.tgz#7aacd25bf8015adcdfc0f3243d0dcfdff0373f7d" + integrity sha512-gYKWmC2HmO7RcDzpo4L1K8EIoy5L8iubNDuTC6q69UxczwqKF/Io0kbK/1Z10Av++NlzOSiuyGp2gc4t4UOsDw== + dependencies: + underscore "1.9.1" + web3-eth-iban "1.2.6" + web3-utils "1.2.6" + web3-core-method@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.2.4.tgz#a0fbc50b8ff5fd214021435cc2c6d1e115807aed" @@ -23182,6 +23205,17 @@ web3-core-method@1.2.4: web3-core-subscriptions "1.2.4" web3-utils "1.2.4" +web3-core-method@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core-method/-/web3-core-method-1.2.6.tgz#f5a3e4d304abaf382923c8ab88ec8eeef45c1b3b" + integrity sha512-r2dzyPEonqkBg7Mugq5dknhV5PGaZTHBZlS/C+aMxNyQs3T3eaAsCTqlQDitwNUh/sUcYPEGF0Vo7ahYK4k91g== + dependencies: + underscore "1.9.1" + web3-core-helpers "1.2.6" + web3-core-promievent "1.2.6" + web3-core-subscriptions "1.2.6" + web3-utils "1.2.6" + web3-core-promievent@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.2.4.tgz#75e5c0f2940028722cdd21ba503ebd65272df6cb" @@ -23190,6 +23224,14 @@ web3-core-promievent@1.2.4: any-promise "1.3.0" eventemitter3 "3.1.2" +web3-core-promievent@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core-promievent/-/web3-core-promievent-1.2.6.tgz#b1550a3a4163e48b8b704c1fe4b0084fc2dad8f5" + integrity sha512-km72kJef/qtQNiSjDJJVHIZvoVOm6ytW3FCYnOcCs7RIkviAb5JYlPiye0o4pJOLzCXYID7DK7Q9bhY8qWb1lw== + dependencies: + any-promise "1.3.0" + eventemitter3 "3.1.2" + web3-core-requestmanager@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.2.4.tgz#0a7020a23fb91c6913c611dfd3d8c398d1e4b4a8" @@ -23201,6 +23243,17 @@ web3-core-requestmanager@1.2.4: web3-providers-ipc "1.2.4" web3-providers-ws "1.2.4" +web3-core-requestmanager@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core-requestmanager/-/web3-core-requestmanager-1.2.6.tgz#5808c0edc0d6e2991a87b65508b3a1ab065b68ec" + integrity sha512-QU2cbsj9Dm0r6om40oSwk8Oqbp3wTa08tXuMpSmeOTkGZ3EMHJ1/4LiJ8shwg1AvPMrKVU0Nri6+uBNCdReZ+g== + dependencies: + underscore "1.9.1" + web3-core-helpers "1.2.6" + web3-providers-http "1.2.6" + web3-providers-ipc "1.2.6" + web3-providers-ws "1.2.6" + web3-core-subscriptions@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.2.4.tgz#0dc095b5cfd82baa527a39796e3515a846b21b99" @@ -23210,6 +23263,15 @@ web3-core-subscriptions@1.2.4: underscore "1.9.1" web3-core-helpers "1.2.4" +web3-core-subscriptions@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core-subscriptions/-/web3-core-subscriptions-1.2.6.tgz#9d44189e2321f8f1abc31f6c09103b5283461b57" + integrity sha512-M0PzRrP2Ct13x3wPulFtc5kENH4UtnPxO9YxkfQlX2WRKENWjt4Rfq+BCVGYEk3rTutDfWrjfzjmqMRvXqEY5Q== + dependencies: + eventemitter3 "3.1.2" + underscore "1.9.1" + web3-core-helpers "1.2.6" + web3-core@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.2.4.tgz#2df13b978dcfc59c2abaa887d27f88f21ad9a9d6" @@ -23223,6 +23285,18 @@ web3-core@1.2.4: web3-core-requestmanager "1.2.4" web3-utils "1.2.4" +web3-core@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-core/-/web3-core-1.2.6.tgz#bb42a1d7ae49a7258460f0d95ddb00906f59ef92" + integrity sha512-y/QNBFtr5cIR8vxebnotbjWJpOnO8LDYEAzZjeRRUJh2ijmhjoYk7dSNx9ExgC0UCfNFRoNCa9dGRu/GAxwRlw== + dependencies: + "@types/bn.js" "^4.11.4" + "@types/node" "^12.6.1" + web3-core-helpers "1.2.6" + web3-core-method "1.2.6" + web3-core-requestmanager "1.2.6" + web3-utils "1.2.6" + web3-eth-abi@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.4.tgz#5b73e5ef70b03999227066d5d1310b168845e2b8" @@ -23232,6 +23306,15 @@ web3-eth-abi@1.2.4: underscore "1.9.1" web3-utils "1.2.4" +web3-eth-abi@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-abi/-/web3-eth-abi-1.2.6.tgz#b495383cc5c0d8e2857b26e7fe25606685983b25" + integrity sha512-w9GAyyikn8nSifSDZxAvU9fxtQSX+W2xQWMmrtTXmBGCaE4/ywKOSPAO78gq8AoU4Wq5yqVGKZLLbfpt7/sHlA== + dependencies: + ethers "4.0.0-beta.3" + underscore "1.9.1" + web3-utils "1.2.6" + web3-eth-accounts@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.2.4.tgz#ada6edc49542354328a85cafab067acd7f88c288" @@ -23250,6 +23333,24 @@ web3-eth-accounts@1.2.4: web3-core-method "1.2.4" web3-utils "1.2.4" +web3-eth-accounts@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-accounts/-/web3-eth-accounts-1.2.6.tgz#a1ba4bf75fa8102a3ec6cddd0eccd72462262720" + integrity sha512-cDVtonHRgzqi/ZHOOf8kfCQWFEipcfQNAMzXIaKZwc0UUD9mgSI5oJrN45a89Ze+E6Lz9m77cDG5Ax9zscSkcw== + dependencies: + "@web3-js/scrypt-shim" "^0.1.0" + any-promise "1.3.0" + crypto-browserify "3.12.0" + eth-lib "^0.2.8" + ethereumjs-common "^1.3.2" + ethereumjs-tx "^2.1.1" + underscore "1.9.1" + uuid "3.3.2" + web3-core "1.2.6" + web3-core-helpers "1.2.6" + web3-core-method "1.2.6" + web3-utils "1.2.6" + web3-eth-contract@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.2.4.tgz#68ef7cc633232779b0a2c506a810fbe903575886" @@ -23265,6 +23366,21 @@ web3-eth-contract@1.2.4: web3-eth-abi "1.2.4" web3-utils "1.2.4" +web3-eth-contract@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-contract/-/web3-eth-contract-1.2.6.tgz#39111543960035ed94c597a239cf5aa1da796741" + integrity sha512-ak4xbHIhWgsbdPCkSN+HnQc1SH4c856y7Ly+S57J/DQVzhFZemK5HvWdpwadJrQTcHET3ZeId1vq3kmW7UYodw== + dependencies: + "@types/bn.js" "^4.11.4" + underscore "1.9.1" + web3-core "1.2.6" + web3-core-helpers "1.2.6" + web3-core-method "1.2.6" + web3-core-promievent "1.2.6" + web3-core-subscriptions "1.2.6" + web3-eth-abi "1.2.6" + web3-utils "1.2.6" + web3-eth-ens@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.2.4.tgz#b95b3aa99fb1e35c802b9e02a44c3046a3fa065e" @@ -23279,6 +23395,20 @@ web3-eth-ens@1.2.4: web3-eth-contract "1.2.4" web3-utils "1.2.4" +web3-eth-ens@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-ens/-/web3-eth-ens-1.2.6.tgz#bf86a624c4c72bc59913c2345180d3ea947e110d" + integrity sha512-8UEqt6fqR/dji/jBGPFAyBs16OJjwi0t2dPWXPyGXmty/fH+osnXwWXE4HRUyj4xuafiM5P1YkXMsPhKEadjiw== + dependencies: + eth-ens-namehash "2.0.8" + underscore "1.9.1" + web3-core "1.2.6" + web3-core-helpers "1.2.6" + web3-core-promievent "1.2.6" + web3-eth-abi "1.2.6" + web3-eth-contract "1.2.6" + web3-utils "1.2.6" + web3-eth-iban@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.2.4.tgz#8e0550fd3fd8e47a39357d87fe27dee9483ee476" @@ -23287,6 +23417,14 @@ web3-eth-iban@1.2.4: bn.js "4.11.8" web3-utils "1.2.4" +web3-eth-iban@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-iban/-/web3-eth-iban-1.2.6.tgz#0b22191fd1aa6e27f7ef0820df75820bfb4ed46b" + integrity sha512-TPMc3BW9Iso7H+9w+ytbqHK9wgOmtocyCD3PaAe5Eie50KQ/j7ThA60dGJnxItVo6yyRv5pZAYxPVob9x/fJlg== + dependencies: + bn.js "4.11.8" + web3-utils "1.2.6" + web3-eth-personal@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.2.4.tgz#3224cca6851c96347d9799b12c1b67b2a6eb232b" @@ -23299,6 +23437,18 @@ web3-eth-personal@1.2.4: web3-net "1.2.4" web3-utils "1.2.4" +web3-eth-personal@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth-personal/-/web3-eth-personal-1.2.6.tgz#47a0a0657ec04dd77f95451a6869d4751d324b6b" + integrity sha512-T2NUkh1plY8d7wePXSoHnaiKOd8dLNFaQfgBl9JHU6S7IJrG9jnYD9bVxLEgRUfHs9gKf9tQpDf7AcPFdq/A8g== + dependencies: + "@types/node" "^12.6.1" + web3-core "1.2.6" + web3-core-helpers "1.2.6" + web3-core-method "1.2.6" + web3-net "1.2.6" + web3-utils "1.2.6" + web3-eth@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.2.4.tgz#24c3b1f1ac79351bbfb808b2ab5c585fa57cdd00" @@ -23318,6 +23468,25 @@ web3-eth@1.2.4: web3-net "1.2.4" web3-utils "1.2.4" +web3-eth@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-eth/-/web3-eth-1.2.6.tgz#15a8c65fdde0727872848cae506758d302d8d046" + integrity sha512-ROWlDPzh4QX6tlGGGlAK6X4kA2n0/cNj/4kb0nNVWkRouGmYO0R8k6s47YxYHvGiXt0s0++FUUv5vAbWovtUQw== + dependencies: + underscore "1.9.1" + web3-core "1.2.6" + web3-core-helpers "1.2.6" + web3-core-method "1.2.6" + web3-core-subscriptions "1.2.6" + web3-eth-abi "1.2.6" + web3-eth-accounts "1.2.6" + web3-eth-contract "1.2.6" + web3-eth-ens "1.2.6" + web3-eth-iban "1.2.6" + web3-eth-personal "1.2.6" + web3-net "1.2.6" + web3-utils "1.2.6" + web3-net@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.2.4.tgz#1d246406d3aaffbf39c030e4e98bce0ca5f25458" @@ -23327,6 +23496,15 @@ web3-net@1.2.4: web3-core-method "1.2.4" web3-utils "1.2.4" +web3-net@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-net/-/web3-net-1.2.6.tgz#035ca0fbe55282fda848ca17ebb4c8966147e5ea" + integrity sha512-hsNHAPddrhgjWLmbESW0KxJi2GnthPcow0Sqpnf4oB6+/+ZnQHU9OsIyHb83bnC1OmunrK2vf9Ye2mLPdFIu3A== + dependencies: + web3-core "1.2.6" + web3-core-method "1.2.6" + web3-utils "1.2.6" + web3-providers-http@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.2.4.tgz#514fcad71ae77832c2c15574296282fbbc5f4a67" @@ -23335,6 +23513,14 @@ web3-providers-http@1.2.4: web3-core-helpers "1.2.4" xhr2-cookies "1.1.0" +web3-providers-http@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-providers-http/-/web3-providers-http-1.2.6.tgz#3c7b1252751fb37e53b873fce9dbb6340f5e31d9" + integrity sha512-2+SaFCspb5f82QKuHB3nEPQOF9iSWxRf7c18fHtmnLNVkfG9SwLN1zh67bYn3tZGUdOI3gj8aX4Uhfpwx9Ezpw== + dependencies: + web3-core-helpers "1.2.6" + xhr2-cookies "1.1.0" + web3-providers-ipc@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.2.4.tgz#9d6659f8d44943fb369b739f48df09092be459bd" @@ -23344,6 +23530,15 @@ web3-providers-ipc@1.2.4: underscore "1.9.1" web3-core-helpers "1.2.4" +web3-providers-ipc@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-providers-ipc/-/web3-providers-ipc-1.2.6.tgz#adabab5ac66b3ff8a26c7dc97af3f1a6a7609701" + integrity sha512-b0Es+/GTZyk5FG3SgUDW+2/mBwJAXWt5LuppODptiOas8bB2khLjG6+Gm1K4uwOb+1NJGPt5mZZ8Wi7vibtQ+A== + dependencies: + oboe "2.1.4" + underscore "1.9.1" + web3-core-helpers "1.2.6" + web3-providers-ws@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.2.4.tgz#099ee271ee03f6ea4f5df9cfe969e83f4ce0e36f" @@ -23353,6 +23548,15 @@ web3-providers-ws@1.2.4: underscore "1.9.1" web3-core-helpers "1.2.4" +web3-providers-ws@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-providers-ws/-/web3-providers-ws-1.2.6.tgz#3cecc49f7c99f07a75076d3c54247050bc4f7e11" + integrity sha512-20waSYX+gb5M5yKhug5FIwxBBvkKzlJH7sK6XEgdOx6BZ9YYamLmvg9wcRVtnSZO8hV/3cWenO/tRtTrHVvIgQ== + dependencies: + "@web3-js/websocket" "^1.0.29" + underscore "1.9.1" + web3-core-helpers "1.2.6" + web3-shh@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.2.4.tgz#5c8ff5ab624a3b14f08af0d24d2b16c10e9f70dd" @@ -23363,6 +23567,16 @@ web3-shh@1.2.4: web3-core-subscriptions "1.2.4" web3-net "1.2.4" +web3-shh@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-shh/-/web3-shh-1.2.6.tgz#2492616da4cac32d4c7534b890f43bac63190c14" + integrity sha512-rouWyOOM6YMbLQd65grpj8BBezQfgNeRRX+cGyW4xsn6Xgu+B73Zvr6OtA/ftJwwa9bqHGpnLrrLMeWyy4YLUw== + dependencies: + web3-core "1.2.6" + web3-core-method "1.2.6" + web3-core-subscriptions "1.2.6" + web3-net "1.2.6" + web3-utils@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.2.4.tgz#96832a39a66b05bf8862a5b0bdad2799d709d951" @@ -23377,7 +23591,35 @@ web3-utils@1.2.4: underscore "1.9.1" utf8 "3.0.0" -web3@1.2.4, web3@^1.2.4: +web3-utils@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.2.6.tgz#b9a25432da00976457fcc1094c4af8ac6d486db9" + integrity sha512-8/HnqG/l7dGmKMgEL9JeKPTtjScxOePTzopv5aaKFExPfaBrYRkgoMqhoowCiAl/s16QaTn4DoIF1QC4YsT7Mg== + dependencies: + bn.js "4.11.8" + eth-lib "0.2.7" + ethereum-bloom-filters "^1.0.6" + ethjs-unit "0.1.6" + number-to-bn "1.7.0" + randombytes "^2.1.0" + underscore "1.9.1" + utf8 "3.0.0" + +web3@1.2.6: + version "1.2.6" + resolved "https://registry.yarnpkg.com/web3/-/web3-1.2.6.tgz#c497dcb14cdd8d6d9fb6b445b3b68ff83f8ccf68" + integrity sha512-tpu9fLIComgxGrFsD8LUtA4s4aCZk7px8UfcdEy6kS2uDi/ZfR07KJqpXZMij7Jvlq+cQrTAhsPSiBVvoMaivA== + dependencies: + "@types/node" "^12.6.1" + web3-bzz "1.2.6" + web3-core "1.2.6" + web3-eth "1.2.6" + web3-eth-personal "1.2.6" + web3-net "1.2.6" + web3-shh "1.2.6" + web3-utils "1.2.6" + +web3@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/web3/-/web3-1.2.4.tgz#6e7ab799eefc9b4648c2dab63003f704a1d5e7d9" integrity sha512-xPXGe+w0x0t88Wj+s/dmAdASr3O9wmA9mpZRtixGZxmBexAF0MjfqYM+MS4tVl5s11hMTN3AZb8cDD4VLfC57A==