update web3.js import

pull/5167/head
yann300 3 months ago committed by Aniket
parent 27590dd40d
commit f91ecff661
  1. 2
      apps/etherscan/src/app/views/VerifyView.tsx
  2. 2
      apps/remix-ide/src/app/providers/injected-custom-provider.tsx
  3. 2
      apps/remix-ide/src/app/providers/injected-ephemery-testnet-provider.tsx
  4. 2
      apps/remix-ide/src/app/tabs/debugger-tab.js
  5. 2
      apps/remix-ide/src/blockchain/execution-context.js
  6. 2
      apps/remix-ide/src/blockchain/providers/injected.ts
  7. 2
      apps/remix-ide/src/blockchain/providers/node.ts
  8. 2
      apps/remix-ide/src/blockchain/providers/vm.ts
  9. 2
      libs/ghaction-helper/src/methods.ts
  10. 2
      libs/remix-debug/src/cmdline/index.ts
  11. 2
      libs/remix-debug/src/init.ts
  12. 2
      libs/remix-lib/src/execution/txRunnerWeb3.ts
  13. 2
      libs/remix-lib/src/init.ts
  14. 2
      libs/remix-simulator/test/accounts.ts
  15. 2
      libs/remix-simulator/test/blocks.ts
  16. 2
      libs/remix-simulator/test/events.ts
  17. 2
      libs/remix-simulator/test/misc.ts
  18. 2
      libs/remix-simulator/test/transactions.ts
  19. 2
      libs/remix-tests/src/deployer.ts
  20. 2
      libs/remix-tests/src/run.ts
  21. 2
      libs/remix-tests/src/runTestFiles.ts
  22. 2
      libs/remix-tests/src/runTestSources.ts
  23. 2
      libs/remix-tests/src/testRunner.ts
  24. 2
      libs/remix-tests/tests/testRunner.spec.ts
  25. 2
      libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts
  26. 2
      libs/remix-ui/run-tab/src/lib/actions/deploy.ts
  27. 2
      libs/remix-ui/run-tab/src/lib/actions/events.ts
  28. 2
      libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts
  29. 2
      libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts
  30. 2
      libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts
  31. 2
      libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts
  32. 2
      libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts
  33. 2
      libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts
  34. 2
      libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts
  35. 2
      libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts

@ -1,5 +1,5 @@
import React, {useEffect, useRef, useState} from 'react'
import Web3 from 'web3'
import { Web3 } from 'web3'
import {PluginClient} from '@remixproject/plugin'
import {CustomTooltip} from '@remix-ui/helper'

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { InjectedProviderDefault } from './injected-provider-default'
export class InjectedCustomProvider extends InjectedProviderDefault {

@ -1,6 +1,6 @@
import * as packageJson from '../../../../../package.json'
import { InjectedCustomProvider } from './injected-custom-provider'
import Web3 from 'web3'
import { Web3 } from 'web3'
const profile = {
name: 'injected-ephemery-testnet-provider',

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { DebuggerUI } from '@remix-ui/debugger-ui' // eslint-disable-line
import { DebuggerApiMixin } from '@remix-ui/debugger-ui'
import { ViewPlugin } from '@remixproject/engine-web'

@ -1,6 +1,6 @@
/* global ethereum */
'use strict'
import Web3 from 'web3'
import { Web3 } from 'web3'
import { execution } from '@remix-project/remix-lib'
import EventManager from '../lib/events'
import { bytesToHex } from '@ethereumjs/util'

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { hashPersonalMessage, isHexString, bytesToHex } from '@ethereumjs/util'
import { ExecutionContext } from '../execution-context'

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { hashPersonalMessage, isHexString, bytesToHex } from '@ethereumjs/util'
import { Personal } from 'web3-eth-personal'
import { ExecutionContext } from '../execution-context'

@ -1,4 +1,4 @@
import Web3, { FMT_BYTES, FMT_NUMBER, LegacySendAsyncProvider } from 'web3'
import { Web3, FMT_BYTES, FMT_NUMBER, LegacySendAsyncProvider } from 'web3'
import { fromWei, toBigInt } from 'web3-utils'
import { privateToAddress, hashPersonalMessage, isHexString, bytesToHex } from '@ethereumjs/util'
import { extend, JSONRPCRequestPayload, JSONRPCResponseCallback } from '@remix-project/remix-simulator'

@ -3,7 +3,7 @@ import { ethers } from "ethers"
import { Provider } from '@remix-project/remix-simulator'
import { getArtifactsByContractName } from './artifacts-helper'
import { SignerWithAddress } from './signer'
import Web3 from "web3"
import { Web3 } from "web3"
const providerConfig = {
fork: global.fork || null,

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Debugger } from '../debugger/debugger'
import { EventEmitter } from 'events'

@ -1,5 +1,5 @@
'use strict'
import Web3, { Web3PluginBase } from 'web3'
import { Web3, Web3PluginBase } from 'web3'
import { toNumber } from 'web3-utils'
export function extendWeb3 (web3) {

@ -1,7 +1,7 @@
'use strict'
import { EventManager } from '../eventManager'
import type { Transaction as InternalTransaction } from './txRunner'
import Web3 from 'web3'
import { Web3 } from 'web3'
import { toBigInt, toHex } from 'web3-utils'
export class TxRunnerWeb3 {

@ -1,5 +1,5 @@
'use strict'
import Web3, { Web3PluginBase } from 'web3'
import { Web3, Web3PluginBase } from 'web3'
import { toNumber } from 'web3-utils'
export function extendWeb3 (web3) {

@ -1,5 +1,5 @@
/* global describe, before, it */
import Web3, { FMT_BYTES, FMT_NUMBER } from 'web3'
import { Web3, FMT_BYTES, FMT_NUMBER } from 'web3'
import { Provider } from '../src/index'
const web3 = new Web3()
import * as assert from 'assert'

@ -1,5 +1,5 @@
/* global describe, before, it */
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Provider } from '../src/index'
const web3 = new Web3()
import * as assert from 'assert'

@ -1,5 +1,5 @@
/* global describe, before, it */
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Provider } from '../src/index'
const web3 = new Web3()
import * as assert from 'assert'

@ -1,5 +1,5 @@
/* global describe, before, it */
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Provider } from '../src/index'
const web3 = new Web3()
import * as assert from 'assert'

@ -1,5 +1,5 @@
/* global describe, before, it */
import Web3 from 'web3'
import { Web3 } from 'web3'
import { LegacyTransaction, FeeMarketEIP1559Transaction } from '@ethereumjs/tx'
import { Provider } from '../src/index'
const web3 = new Web3()

@ -1,6 +1,6 @@
import async from 'async'
import { execution } from '@remix-project/remix-lib'
import Web3, { FMT_BYTES, FMT_NUMBER } from 'web3'
import { Web3, FMT_BYTES, FMT_NUMBER } from 'web3'
import { compilationInterface } from './types'
/**

@ -1,5 +1,5 @@
import { Command } from 'commander';
import Web3 from 'web3'
import { Web3 } from 'web3'
import path from 'path'
import axios, { AxiosResponse } from 'axios'
import { runTestFiles } from './runTestFiles'

@ -3,7 +3,7 @@ import fs from './fileSystem'
import { runTest } from './testRunner'
import { TestResultInterface, ResultsInterface, CompilerConfiguration, compilationInterface, ASTInterface, Options, AstNode } from './types'
import colors from 'colors'
import Web3 from 'web3'
import { Web3 } from 'web3'
import { format } from 'util'
import { compileFileOrFiles } from './compiler'
import { deployAll } from './deployer'

@ -2,7 +2,7 @@ import async, { ErrorCallback } from 'async'
import { compileContractSources, writeTestAccountsContract } from './compiler'
import { deployAll } from './deployer'
import { runTest } from './testRunner'
import Web3 from 'web3'
import { Web3 } from 'web3'
import { EventEmitter } from 'events'
import { Provider, extend } from '@remix-project/remix-simulator'
import {

@ -1,6 +1,6 @@
import async from 'async'
import * as changeCase from 'change-case'
import Web3 from 'web3'
import { Web3 } from 'web3'
import assertionEvents from './assertionEvents'
import {
RunListInterface, TestCbInterface, TestResultInterface, ResultCbInterface,

@ -1,5 +1,5 @@
import * as async from 'async'
import Web3 from 'web3';
import { Web3 } from 'web3';
import * as assert from 'assert'
import { Provider, extend } from '@remix-project/remix-simulator'

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { init , traceHelper, TransactionDebugger as Debugger } from '@remix-project/remix-debug'
import { CompilerAbstract } from '@remix-project/remix-solidity'
import { lineText } from '@remix-ui/editor'

@ -9,7 +9,7 @@ import { DeployMode, MainnetPrompt } from "../types"
import { displayNotification, fetchProxyDeploymentsSuccess, setDecodedResponse, updateInstancesBalance } from "./payload"
import { addInstance } from "./actions"
import { addressToString, logBuilder } from "@remix-ui/helper"
import Web3 from "web3"
import { Web3 } from "web3"
declare global {
interface Window {

@ -6,7 +6,7 @@ import { addDeployOption, clearAllInstances, clearAllPinnedInstances, clearRecor
import { updateInstanceBalance } from './deploy'
import { CompilerAbstract } from '@remix-project/remix-solidity'
import BN from 'bn.js'
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Plugin } from "@remixproject/engine"
import { getNetworkProxyAddresses } from "./deploy"
import { shortenAddress } from "@remix-ui/helper"

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
export class ExecutionContext {
event: any;

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

@ -1,4 +1,4 @@
import Web3 from 'web3'
import { Web3 } from 'web3'
import { Contract, ContractSendMethod, Options } from 'web3-eth-contract'
/**

Loading…
Cancel
Save