Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
set web3.js packages versions to dev
Browse files Browse the repository at this point in the history
and update Web3 imports
  • Loading branch information
Muhammad-Altabba committed Sep 21, 2023
1 parent 36abbd4 commit 4ace25c
Show file tree
Hide file tree
Showing 44 changed files with 232 additions and 232 deletions.
2 changes: 1 addition & 1 deletion packages/abi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"change-case": "3.0.2",
"fast-check": "3.1.1",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/artifactor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"tmp": "^0.2.1",
"ts-node": "10.7.0",
"typescript": "^4.9.5",
"web3": "4.1.1"
"web3": "dev"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/blockchain-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"types": "./typings/index.d.ts",
"dependencies": {
"web3-types": "^1.1.1"
"web3-types": "dev"
},
"devDependencies": {
"@types/assert": "^1.4.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"lodash": "^4.17.21",
"semver": "^7.5.4",
"utf8": "^3.0.0",
"web3-utils": "4.0.5",
"web3-validator": "2.0.1"
"web3-utils": "dev",
"web3-validator": "dev"
},
"devDependencies": {
"@truffle/contract-schema": "^3.4.16",
Expand Down
2 changes: 1 addition & 1 deletion packages/contract-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ganache": "7.9.1",
"mocha": "10.1.0",
"sinon": "^9.0.2",
"web3": "4.1.1"
"web3": "dev"
},
"engines": {
"node": "^16.20 || ^18.16 || >=20"
Expand Down
8 changes: 4 additions & 4 deletions packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"ethers": "^4.0.32",
"web3": "4.1.1",
"web3-core": "4.1.1",
"web3-eth-abi": "4.1.1",
"web3-utils": "4.0.5"
"web3": "dev",
"web3-core": "dev",
"web3-eth-abi": "dev",
"web3-utils": "dev"
},
"devDependencies": {
"assert": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"spawn-args": "0.2.0",
"tmp": "^0.2.1",
"uuid": "^9.0.0",
"web3": "4.1.1",
"web3-utils": "4.0.5",
"web3": "dev",
"web3-utils": "dev",
"xregexp": "^4.2.4",
"yargs": "^13.3.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ganache, { EthereumProvider } from "ganache";
import { providers, utils } from "ethers";
import Web3 from "web3";
import { Web3 } from "web3";
import MockDashboard from "./MockDashboard";
import { DashboardServer } from "@truffle/dashboard";
import { DashboardMessageBusClientOptions } from "@truffle/dashboard-message-bus-client";
Expand Down
4 changes: 2 additions & 2 deletions packages/db-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"meow": "^9.0.0",
"react": "^16.8.0",
"source-map-support": "^0.5.19",
"web3": "4.1.1"
"web3": "dev"
},
"devDependencies": {
"@types/jest": "27.4.1",
Expand All @@ -69,7 +69,7 @@
"typedoc": "0.24.8",
"typescript": "^4.9.5",
"typescript-transform-paths": "3.3.1",
"web3-core": "4.1.1"
"web3-core": "dev"
},
"keywords": [
"smart-contract",
Expand Down
2 changes: 1 addition & 1 deletion packages/db-kit/src/cli/decodeAddress/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Spinner from "ink-spinner";
import Divider from "ink-divider";

import type { ProjectDecoder } from "@truffle/decoder";
import Web3 from "web3";
import { Web3 } from "web3";

import { useDecodedAddress } from "./useDecodedAddress";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect } from "react";
import type { Transaction, TransactionReceipt } from "web3-types";
import Web3 from "web3";
import { Web3 } from "web3";

import type TruffleConfig from "@truffle/config";

Expand Down
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"pouchdb-adapter-memory": "^7.1.1",
"pouchdb-debug": "^7.1.1",
"pouchdb-find": "^7.0.0",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down Expand Up @@ -81,7 +81,7 @@
"typedoc": "0.24.8",
"typescript": "^4.9.5",
"typescript-transform-paths": "3.3.1",
"web3": "4.1.1"
"web3": "dev"
},
"keywords": [
"database",
Expand Down
2 changes: 1 addition & 1 deletion packages/debugger/lib/web3/adapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import debugModule from "debug";
const debug = debugModule("debugger:web3:adapter");

import Web3 from "web3";
import { Web3 } from "web3";
import * as Codec from "@truffle/codec";
import ENS, { getEnsAddress } from "@ensdomains/ensjs";
import { promisify } from "util";
Expand Down
2 changes: 1 addition & 1 deletion packages/debugger/lib/web3/sagas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as actions from "../actions";
import * as session from "lib/session/actions";

import BN from "bn.js";
import Web3 from "web3"; //just for utils!
import { Web3 } from "web3"; //just for utils!
import * as Codec from "@truffle/codec";

import Web3Adapter from "../adapter";
Expand Down
4 changes: 2 additions & 2 deletions packages/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"redux-saga": "1.0.0",
"reselect-tree": "^1.3.7",
"semver": "^7.5.4",
"web3": "4.1.1",
"web3-eth-abi": "4.1.1"
"web3": "dev",
"web3-eth-abi": "dev"
},
"devDependencies": {
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/debugger/test/data/more-decoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import debugModule from "debug";
const debug = debugModule("debugger:test:data:more-decoding");

import { assert } from "chai";
import Web3 from "web3"; //just using for utils
import { Web3 } from "web3"; //just using for utils

import Ganache from "ganache";

Expand Down
2 changes: 1 addition & 1 deletion packages/debugger/test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import path from "path";
import fs from "fs-extra";
import WorkflowCompile from "@truffle/workflow-compile";
import Artifactor from "@truffle/artifactor";
import Web3 from "web3";
import { Web3 } from "web3";
import Migrate from "@truffle/migrate";
import { Resolver } from "@truffle/resolver";
import * as Codec from "@truffle/codec";
Expand Down
2 changes: 1 addition & 1 deletion packages/decoder/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function forContract(
settings: DecoderSettings = {}
): Promise<ContractDecoder> {
return await forArtifact(contract, {
provider: contract.web3.currentProvider as Web3BaseProvider,
provider: contract.web3.currentProvider as Web3BaseProvider | undefined,
...settings
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/decoder/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type BN from "bn.js";
import type Web3 from "web3";
import type { Web3 } from "web3";
import type { ContractObject as Artifact } from "@truffle/contract-schema/spec";
import type {
Format,
Expand Down
6 changes: 3 additions & 3 deletions packages/decoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"axios": "1.5.0",
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"web3-utils": "4.0.5"
"web3-utils": "dev",
"web3": "dev"
},
"devDependencies": {
"@truffle/config": "^1.3.61",
Expand All @@ -52,8 +53,7 @@
"mocha": "10.1.0",
"sinon": "^9.0.2",
"tmp": "^0.2.1",
"typescript": "^4.9.5",
"web3": "4.1.1"
"typescript": "^4.9.5"
},
"keywords": [
"abi",
Expand Down
4 changes: 2 additions & 2 deletions packages/deployer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@truffle/expect": "^0.1.7",
"debug": "^4.3.1",
"eth-ens-namehash": "^2.0.8",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"@truffle/config": "^1.3.61",
Expand All @@ -33,7 +33,7 @@
"ganache": "7.9.1",
"mocha": "10.1.0",
"sinon": "^9.0.2",
"web3": "4.1.1"
"web3": "dev"
},
"keywords": [
"contracts",
Expand Down
2 changes: 1 addition & 1 deletion packages/encoder/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export async function forContract(
settings: EncoderSettings = {}
): Promise<ContractEncoder> {
return await forArtifact(contract, {
provider: contract.web3.currentProvider as Web3BaseProvider,
provider: contract.web3.currentProvider as Web3BaseProvider | undefined,
networkId: parseInt(contract.network_id) || undefined, //NaN is falsy :)
...settings
});
Expand Down
2 changes: 1 addition & 1 deletion packages/encoder/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ContractObject as Artifact } from "@truffle/contract-schema/spec";
import type { Compilations, Format, Evm } from "@truffle/codec";
import type * as Codec from "@truffle/codec";
import type * as Abi from "@truffle/abi-utils";
import type Web3 from "web3";
import type { Web3 } from "web3";

/**
* This type contains options to be used when preparing transactions
Expand Down
6 changes: 3 additions & 3 deletions packages/encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"lodash": "^4.17.21",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down Expand Up @@ -64,8 +64,8 @@
"ts-jest": "29.0.3",
"typescript": "^4.9.5",
"utf8": "^3.0.0",
"web3": "4.1.1",
"web3-validator": "2.0.1"
"web3": "dev",
"web3-validator": "dev"
},
"keywords": [
"abi",
Expand Down
2 changes: 1 addition & 1 deletion packages/encoder/test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { assert } from "chai";
import BN from "bn.js";
import fs from "fs-extra";
import tmp from "tmp";
import Web3 from "web3";
import { Web3 } from "web3";
import type { Web3BaseProvider as Provider } from "web3-types";
import * as Codec from "@truffle/codec";
import TruffleConfig from "@truffle/config";
Expand Down
2 changes: 1 addition & 1 deletion packages/environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"chalk": "^4.1.2",
"ganache": "7.9.1",
"source-map-support": "^0.5.19",
"web3": "4.1.1"
"web3": "dev"
},
"devDependencies": {
"debug": "^4.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"emittery": "^0.4.1",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"engines": {
"node": "^16.20 || ^18.16 || >=20"
Expand Down
2 changes: 1 addition & 1 deletion packages/external-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@truffle/expect": "^0.1.7",
"debug": "^4.3.1",
"glob": "^7.1.6",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch-and-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@truffle/source-fetcher": "^1.0.44",
"debug": "^4.3.2",
"semver": "^7.5.4",
"web3-utils": "4.0.5"
"web3-utils": "dev"
},
"devDependencies": {
"@truffle/compile-common": "^0.9.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/hdwallet-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ethereum-cryptography": "1.1.2",
"ethereum-protocol": "^1.0.1",
"ethereumjs-util": "^7.1.5",
"web3": "4.1.1",
"web3": "dev",
"web3-provider-engine": "16.0.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hdwallet-provider/test/provider.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from "chai";
import Ganache from "ganache";
import * as EthUtil from "ethereumjs-util";
import Web3 from "web3";
import { Web3 } from "web3";
import HDWalletProvider from "..";
import { describe, it, before, after, afterEach } from "mocha";
import type { Web3BaseProvider as provider } from "web3-types";
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-adapter/lib/shim/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Web3 from "web3";
import { Web3 } from "web3";
import type { Web3BaseProvider as Provider } from "web3-types";

import { EthereumDefinition } from "./overloads/ethereum";
Expand Down
8 changes: 4 additions & 4 deletions packages/interface-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"dependencies": {
"bn.js": "^5.1.3",
"ethers": "^4.0.32",
"web3": "4.1.1",
"web3-utils": "4.0.5"
"web3": "dev",
"web3-utils": "dev"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand All @@ -42,8 +42,8 @@
"ganache": "7.9.1",
"mocha": "10.1.0",
"ts-node": "10.7.0",
"typescript": "^4.9.5",
"web3-types": "^1.1.1"
"typescript": "^4.9.5",
"web3-types": "dev"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"sinon": "^9.0.2",
"ts-node": "10.7.0",
"typescript": "^4.9.5",
"web3": "4.1.1"
"web3": "dev"
},
"keywords": [
"deployment",
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/src/Migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getTruffleDb } from "@truffle/db-loader";
import { emitEvent } from "./emitEvent";
import type Config from "@truffle/config";
import type { InterfaceAdapter } from "@truffle/interface-adapter";
import type Web3 from "web3";
import type { Web3 } from "web3";

// this is kind of a hacky interface to use to make TS happy until
// @truffle/deployer is converted to TS and has its own types
Expand Down
2 changes: 1 addition & 1 deletion packages/provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@truffle/error": "^0.2.2",
"@truffle/interface-adapter": "^0.5.37",
"debug": "^4.3.1",
"web3": "4.1.1"
"web3": "dev"
},
"devDependencies": {
"ganache": "7.9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/require/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"npm-run-all": "^4.1.5",
"ts-node": "10.7.0",
"typescript": "^4.9.5",
"web3": "4.1.1"
"web3": "dev"
},
"peerDependencies": {
"ts-node": "*"
Expand Down

0 comments on commit 4ace25c

Please sign in to comment.