diff --git a/packages/web3-core/test/unit/formatters.test.ts b/packages/web3-core/test/unit/formatters.test.ts index 937468aa83a..ee3ca79be35 100644 --- a/packages/web3-core/test/unit/formatters.test.ts +++ b/packages/web3-core/test/unit/formatters.test.ts @@ -36,8 +36,8 @@ import { import * as formatters from '../../src/formatters'; /* eslint-disable deprecation/deprecation */ -jest.mock('web3-eth-iban'); -jest.mock('web3-utils'); +jest.mock('@etn-sc/web3-eth-iban'); +jest.mock('@etn-sc/web3-utils'); describe('formatters', () => { const toNumberResult = 12345; diff --git a/packages/web3-eth-contract/test/integration/contract_defaults_extra.test.ts b/packages/web3-eth-contract/test/integration/contract_defaults_extra.test.ts index 9d790db47d2..1b311d2556d 100644 --- a/packages/web3-eth-contract/test/integration/contract_defaults_extra.test.ts +++ b/packages/web3-eth-contract/test/integration/contract_defaults_extra.test.ts @@ -32,8 +32,8 @@ import { type Resolve = (value?: unknown) => void; const MAX_32_SIGNED_INTEGER = 2147483647; -jest.mock('web3-eth', () => { - const original = jest.requireActual('web3-eth'); +jest.mock('@etn-sc/web3-eth', () => { + const original = jest.requireActual('@etn-sc/web3-eth'); // eslint-disable-next-line @typescript-eslint/no-unsafe-return return { ...original, diff --git a/packages/web3-eth-contract/test/unit/contract.test.ts b/packages/web3-eth-contract/test/unit/contract.test.ts index a5b3a407463..2e54f2b5b0d 100644 --- a/packages/web3-eth-contract/test/unit/contract.test.ts +++ b/packages/web3-eth-contract/test/unit/contract.test.ts @@ -29,9 +29,9 @@ import { erc721Abi } from '../fixtures/erc721'; import { ERC20TokenAbi } from '../shared_fixtures/build/ERC20Token'; import { processAsync } from '../shared_fixtures/utils'; -jest.mock('web3-eth', () => { - const allAutoMocked = jest.createMockFromModule('web3-eth'); - const actual = jest.requireActual('web3-eth'); +jest.mock('@etn-sc/web3-eth', () => { + const allAutoMocked = jest.createMockFromModule('@etn-sc/web3-eth'); + const actual = jest.requireActual('@etn-sc/web3-eth'); // eslint-disable-next-line @typescript-eslint/no-unsafe-return return { __esModules: true, diff --git a/packages/web3-eth-ens/test/unit/ens.test.ts b/packages/web3-eth-ens/test/unit/ens.test.ts index e7a44cb22fc..0553730f68a 100644 --- a/packages/web3-eth-ens/test/unit/ens.test.ts +++ b/packages/web3-eth-ens/test/unit/ens.test.ts @@ -25,20 +25,20 @@ import { ENS } from '../../src/ens'; jest.useFakeTimers().setSystemTime(new Date('2020-01-01')); -jest.mock('web3-eth', () => ({ +jest.mock('@etn-sc/web3-eth', () => ({ __esModule: true, isSyncing: jest.fn(), })); // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const { isSyncing } = require('web3-eth'); +const { isSyncing } = require('@etn-sc/web3-eth'); const expectedNetworkId = '0x1'; -jest.mock('web3-net', () => ({ +jest.mock('@etn-sc/web3-net', () => ({ getId: jest.fn(), })); // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const { getId } = require('web3-net'); +const { getId } = require('@etn-sc/web3-net'); describe('ens', () => { let object: Web3ContextObject; diff --git a/packages/web3-eth-personal/test/unit/eth_personal.test.ts b/packages/web3-eth-personal/test/unit/eth_personal.test.ts index 67a79ae1755..a73557b578e 100644 --- a/packages/web3-eth-personal/test/unit/eth_personal.test.ts +++ b/packages/web3-eth-personal/test/unit/eth_personal.test.ts @@ -21,9 +21,9 @@ import * as eth from '@etn-sc/web3-eth'; import * as validator from '@etn-sc/web3-validator'; import { Personal } from '../../src/index'; -jest.mock('web3-utils'); -jest.mock('web3-eth'); -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-utils'); +jest.mock('@etn-sc/web3-eth'); +jest.mock('@etn-sc/web3-validator'); describe('Personal', () => { let personal: Personal; let sendSpy: jest.SpyInstance; diff --git a/packages/web3-eth/test/unit/default_transaction_builder.test.ts b/packages/web3-eth/test/unit/default_transaction_builder.test.ts index 6ecadaa8e78..ece82793abd 100644 --- a/packages/web3-eth/test/unit/default_transaction_builder.test.ts +++ b/packages/web3-eth/test/unit/default_transaction_builder.test.ts @@ -34,9 +34,9 @@ import { } from '@etn-sc/web3-errors'; import { defaultTransactionBuilder } from '../../src/utils/transaction_builder'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); const expectedNetworkId = '0x4'; -jest.mock('web3-net', () => ({ +jest.mock('@etn-sc/web3-net', () => ({ getId: jest.fn().mockImplementation(() => expectedNetworkId), })); diff --git a/packages/web3-eth/test/unit/format_rpc_methods.test.ts b/packages/web3-eth/test/unit/format_rpc_methods.test.ts index 915646fcc84..04f0bf711e1 100644 --- a/packages/web3-eth/test/unit/format_rpc_methods.test.ts +++ b/packages/web3-eth/test/unit/format_rpc_methods.test.ts @@ -22,7 +22,7 @@ import * as rpcMethodWrappers from '../../src/rpc_method_wrappers'; import { getPastLogsValidFormatData } from '../fixtures/web3_eth_methods_with_parameters'; import Web3Eth from '../../src/index'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('web3_eth_methods formatting', () => { let web3Eth: Web3Eth; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/call.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/call.test.ts index e983aa7cd09..685a598c1ea 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/call.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/call.test.ts @@ -30,7 +30,7 @@ import { call } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/call'; import { formatTransaction } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('call', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/createAccessList.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/createAccessList.test.ts index c3b4bfbbaf9..810cb1bb5fe 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/createAccessList.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/createAccessList.test.ts @@ -24,7 +24,7 @@ import { createAccessList } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/createAccessList'; import { formatTransaction } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('createAccessList', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/estimate_gas.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/estimate_gas.test.ts index c026caa4dad..1347e403b28 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/estimate_gas.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/estimate_gas.test.ts @@ -30,7 +30,7 @@ import { estimateGas } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/estimate_gas'; import { formatTransaction } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('call', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_balance.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_balance.test.ts index 22edd4e3f7a..2351ee4fbe7 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_balance.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_balance.test.ts @@ -29,7 +29,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getBalance } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_balance'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getBalance', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block.test.ts index 624fa4c3d8d..08d5b852d08 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block.test.ts @@ -31,7 +31,7 @@ import { getBlock } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, mockRpcResponseHydrated, testData } from './fixtures/get_block'; import { blockSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getBlock', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_number.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_number.test.ts index c7ff15a1aa5..4c8e7ae45e2 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_number.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_number.test.ts @@ -21,7 +21,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getBlockNumber } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getBlockNumber', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_transaction_count.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_transaction_count.test.ts index 4b42b4da55c..70e5e9cf153 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_transaction_count.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_transaction_count.test.ts @@ -30,7 +30,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getBlockTransactionCount } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_block_transaction_count'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getBlockTransactionCount', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_uncle_count.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_uncle_count.test.ts index 150870fde2b..aea114ff6ed 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_uncle_count.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_block_uncle_count.test.ts @@ -30,7 +30,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getBlockUncleCount } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_block_uncle_count'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getBlockUncleCount', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_chain_id.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_chain_id.test.ts index e977bf4fbf4..ac50645c1f0 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_chain_id.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_chain_id.test.ts @@ -21,7 +21,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getChainId } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getChainId', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_code.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_code.test.ts index 5fc07a34a0a..08336475bcc 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_code.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_code.test.ts @@ -29,7 +29,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getCode } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_code'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getCode', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_coinbase.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_coinbase.test.ts index 7df464e5159..447fbe49bdb 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_coinbase.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_coinbase.test.ts @@ -20,7 +20,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getCoinbase } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getCoinbase', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_fee_history.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_fee_history.test.ts index 5da39f4fcc5..044222a1629 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_fee_history.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_fee_history.test.ts @@ -31,7 +31,7 @@ import { mockRpcResponse, testData } from './fixtures/get_fee_history'; import { feeHistorySchema } from '../../../src/schemas'; import { NUMBER_DATA_FORMAT } from '../../../src/constants'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getFeeHistory', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_gas_price.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_gas_price.test.ts index d9dd9456406..89c04f80cc6 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_gas_price.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_gas_price.test.ts @@ -21,7 +21,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getGasPrice } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getGasPrice', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_hash_rate.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_hash_rate.test.ts index 05e16c7a0c2..8536b5a9f31 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_hash_rate.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_hash_rate.test.ts @@ -21,7 +21,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getHashRate } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getHashRate', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_logs.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_logs.test.ts index fca5b8619c5..775546fab0c 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_logs.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_logs.test.ts @@ -23,7 +23,7 @@ import { getLogs } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_logs'; import { logSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getLogs', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_pending_transactions.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_pending_transactions.test.ts index d1164b0fab4..4f58cf6de44 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_pending_transactions.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_pending_transactions.test.ts @@ -22,7 +22,7 @@ import { getPendingTransactions } from '../../../src/rpc_method_wrappers'; import { formatTransaction } from '../../../src'; import { mockRpcResponse } from './fixtures/get_pending_transactions'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getPendingTransactions', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_proof.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_proof.test.ts index 7e2954f0b0a..b172ad017f4 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_proof.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_proof.test.ts @@ -30,7 +30,7 @@ import { getProof } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_proof'; import { accountSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getProof', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_protocol_version.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_protocol_version.test.ts index 49bc2275217..f16d37cef7b 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_protocol_version.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_protocol_version.test.ts @@ -20,7 +20,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getProtocolVersion } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getProtocolVersion', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_storage_at.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_storage_at.test.ts index d347e90bf19..89e7055d26c 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_storage_at.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_storage_at.test.ts @@ -29,7 +29,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getStorageAt } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_storage_at'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getStorageAt', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction.test.ts index d9bd3a7513d..eb2937c8ab4 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction.test.ts @@ -23,7 +23,7 @@ import { getTransaction } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_transaction'; import { formatTransaction, transactionInfoSchema } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getTransaction', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_count.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_count.test.ts index 36025c656ec..66264561b6d 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_count.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_count.test.ts @@ -29,7 +29,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { getTransactionCount } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_transaction_count'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getTransactionCount', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_from_block.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_from_block.test.ts index 16947504b93..93496dfea22 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_from_block.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_from_block.test.ts @@ -31,7 +31,7 @@ import { getTransactionFromBlock } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_transaction_from_block'; import { formatTransaction, transactionInfoSchema } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getTransactionFromBlock', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_receipt.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_receipt.test.ts index ea0f0874cd2..53b79606d5d 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_receipt.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_transaction_receipt.test.ts @@ -23,7 +23,7 @@ import { getTransactionReceipt } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_transaction_receipt'; import { transactionReceiptSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getTransactionReceipt', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/get_uncle.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/get_uncle.test.ts index 81910bf732e..1aa95e4c040 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/get_uncle.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/get_uncle.test.ts @@ -31,7 +31,7 @@ import { getUncle } from '../../../src/rpc_method_wrappers'; import { mockRpcResponse, testData } from './fixtures/get_uncle'; import { blockSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('getUncle', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/is_mining.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/is_mining.test.ts index f15b6c11e01..9bcb961e400 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/is_mining.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/is_mining.test.ts @@ -20,7 +20,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { isMining } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('isMining', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/is_syncing.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/is_syncing.test.ts index f006a43ef2a..b3afe766589 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/is_syncing.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/is_syncing.test.ts @@ -20,7 +20,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import { isSyncing } from '../../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('isSyncing', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/send_signed_transaction.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/send_signed_transaction.test.ts index 00b8bc3a8dd..e560a863cc4 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/send_signed_transaction.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/send_signed_transaction.test.ts @@ -30,7 +30,7 @@ import { import { transactionReceiptSchema } from '../../../src/schemas'; import { SendTxHelper } from '../../../src/utils/send_tx_helper'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); jest.mock('../../../src/utils/wait_for_transaction_receipt'); jest.mock('../../../src/utils/watch_transaction_for_confirmations'); diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/send_transaction.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/send_transaction.test.ts index e06f4c82983..b39d65d5246 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/send_transaction.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/send_transaction.test.ts @@ -32,7 +32,7 @@ import { } from './fixtures/send_transaction'; import { transactionReceiptSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); jest.mock('../../../src/utils/wait_for_transaction_receipt'); jest.mock('../../../src/utils/watch_transaction_for_confirmations'); diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/sign.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/sign.test.ts index 7cb374b3e7e..221e56828c1 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/sign.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/sign.test.ts @@ -24,7 +24,7 @@ import { mockRpcResponse, testData, walletTestData } from './fixtures/sign'; import { createAccountProvider } from '../../fixtures/system_test_utils'; import { SignatureObjectSchema } from '../../../src/schemas'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('sign', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/sign_transaction.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/sign_transaction.test.ts index 60d164853cd..601d07ff2a2 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/sign_transaction.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/sign_transaction.test.ts @@ -28,7 +28,7 @@ import { signTransaction } from '../../../src/rpc_method_wrappers'; import { returnFormat, testData } from './fixtures/sign_transaction'; import { formatTransaction } from '../../../src'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('signTransaction', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/sign_typed_data.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/sign_typed_data.test.ts index 092d422dbe6..408f4f1b293 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/sign_typed_data.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/sign_typed_data.test.ts @@ -22,7 +22,7 @@ import { format } from '@etn-sc/web3-utils'; import { signTypedData } from '../../../src/rpc_method_wrappers'; import { testData, mockRpcResponse } from './fixtures/sign_typed_data'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('signTypedData', () => { let web3Context: Web3Context; diff --git a/packages/web3-eth/test/unit/utils/watch_transaction_by_polling.test.ts b/packages/web3-eth/test/unit/utils/watch_transaction_by_polling.test.ts index 5bb90d43689..4ea00193930 100644 --- a/packages/web3-eth/test/unit/utils/watch_transaction_by_polling.test.ts +++ b/packages/web3-eth/test/unit/utils/watch_transaction_by_polling.test.ts @@ -30,7 +30,7 @@ import { import { transactionReceiptSchema } from '../../../src/schemas'; import { sleep } from '../../shared_fixtures/utils'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); jest.mock('../../../src/utils/wait_for_transaction_receipt'); const mockBlockData = { diff --git a/packages/web3-eth/test/unit/utils/watch_transaction_for_confirmations.test.ts b/packages/web3-eth/test/unit/utils/watch_transaction_for_confirmations.test.ts index c38b0701d37..521baa8d97e 100644 --- a/packages/web3-eth/test/unit/utils/watch_transaction_for_confirmations.test.ts +++ b/packages/web3-eth/test/unit/utils/watch_transaction_for_confirmations.test.ts @@ -36,7 +36,7 @@ import { import { transactionReceiptSchema } from '../../../src/schemas'; import { SendSignedTransactionEvents } from '../../../src/types'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); jest.mock('../../../src/utils/wait_for_transaction_receipt'); jest.mock('../../../src/utils/watch_transaction_by_pooling'); jest.mock('../../../src/utils/watch_transaction_by_subscription'); diff --git a/packages/web3-eth/test/unit/web3_eth_methods_no_parameters.test.ts b/packages/web3-eth/test/unit/web3_eth_methods_no_parameters.test.ts index 4fedaa4eb21..154d643bd5e 100644 --- a/packages/web3-eth/test/unit/web3_eth_methods_no_parameters.test.ts +++ b/packages/web3-eth/test/unit/web3_eth_methods_no_parameters.test.ts @@ -18,7 +18,7 @@ import { ethRpcMethods } from '@etn-sc/web3-rpc-methods'; import Web3Eth from '../../src/index'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('web3_eth_methods_no_parameters', () => { let web3Eth: Web3Eth; diff --git a/packages/web3-eth/test/unit/web3_eth_methods_with_parameters.test.ts b/packages/web3-eth/test/unit/web3_eth_methods_with_parameters.test.ts index a7ec570d1a5..8676a2acb24 100644 --- a/packages/web3-eth/test/unit/web3_eth_methods_with_parameters.test.ts +++ b/packages/web3-eth/test/unit/web3_eth_methods_with_parameters.test.ts @@ -50,7 +50,7 @@ import { import { testData as createAccessListTestData } from './rpc_method_wrappers/fixtures/createAccessList'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); jest.mock('../../src/rpc_method_wrappers'); // eslint-disable-next-line @typescript-eslint/no-unsafe-call jest.spyOn(rpcMethodWrappers, 'getTransaction').mockResolvedValue(tx as TransactionInfoAPI); diff --git a/packages/web3-net/test/unit/rpc_method_wrappers.test.ts b/packages/web3-net/test/unit/rpc_method_wrappers.test.ts index fc0d12e7982..f705baa950b 100644 --- a/packages/web3-net/test/unit/rpc_method_wrappers.test.ts +++ b/packages/web3-net/test/unit/rpc_method_wrappers.test.ts @@ -20,7 +20,7 @@ import { Net } from '../../src'; import { getIdValidData, getPeerCountValidData } from '../fixtures/rpc_method_wrappers'; import { getId, getPeerCount, isListening } from '../../src/rpc_method_wrappers'; -jest.mock('web3-rpc-methods'); +jest.mock('@etn-sc/web3-rpc-methods'); describe('rpc_method_wrappers', () => { let web3Net: Net; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/call.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/call.test.ts index e4466be463c..5b31a984b64 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/call.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/call.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/call'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('call', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_lll.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_lll.test.ts index 66c143c993b..3f36d954470 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_lll.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_lll.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/compile_lll'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('compileLLL', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_serpent.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_serpent.test.ts index 1bdeb2c6d8b..4aadd9eb7cb 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_serpent.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_serpent.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/compile_lll'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('compileSerpent', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_solidity.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_solidity.test.ts index b519b7086be..425fa572af3 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_solidity.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/compile_solidity.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/compile_solidity'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('compileSolidity', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/estimate_gas.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/estimate_gas.test.ts index 088ca6bb352..24aa86feaec 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/estimate_gas.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/estimate_gas.test.ts @@ -35,7 +35,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/estimate_gas'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('estimateGas', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_balance.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_balance.test.ts index cf660852e18..ae79c71f4ff 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_balance.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_balance.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_balance'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getBalance', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_hash.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_hash.test.ts index 03192cd2934..42db897e3fa 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_hash.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_hash.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_block_by_hash'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getBlockByHash', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_number.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_number.test.ts index 2d0c0073aee..43f93347134 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_number.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_by_number.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_block_by_number'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getBlockByNumber', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_hash.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_hash.test.ts index 4a65e32e0ad..606b4899d27 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_hash.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_hash.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_block_transaction_count_by_hash'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getBlockTransactionCountByHash', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_number.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_number.test.ts index 488ad0da454..c001e722a3d 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_number.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_block_transaction_count_by_number.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_block_transaction_count_by_number'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getBlockTransactionCountByNumber', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_code.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_code.test.ts index 4974152a627..f550d63a2e1 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_code.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_code.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_code'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getCode', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_fee_history.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_fee_history.test.ts index a0f938c59f6..fa73358a9ea 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_fee_history.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_fee_history.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_fee_history'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getFeeHistory', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_changes.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_changes.test.ts index 3ff55dad91c..c68c6023d11 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_changes.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_changes.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/uninstall_filter'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getFilterChanges', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_logs.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_logs.test.ts index a9180cff16e..d097d58ce21 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_logs.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_filter_logs.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/uninstall_filter'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getFilterLogs', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_logs.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_logs.test.ts index 6608902f603..409684561f9 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_logs.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_logs.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/new_filter'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getLogs', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_proof.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_proof.test.ts index cf66e9b3032..07c9896efec 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_proof.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_proof.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_proof'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getProof', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_storage_at.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_storage_at.test.ts index 39de123cf06..e5a395f9826 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_storage_at.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_storage_at.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_storage_at'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getStorageAt', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_hash_and_index.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_hash_and_index.test.ts index c80da2e07ec..1877bc93341 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_hash_and_index.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_hash_and_index.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_transaction_by_block_hash_and_index'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getTransactionByBlockHashAndIndex', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_number_and_index.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_number_and_index.test.ts index 78606352d80..447cb78ba17 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_number_and_index.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_block_number_and_index.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_transaction_by_block_number_and_index'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getTransactionByBlockNumberAndIndex', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_hash.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_hash.test.ts index 575e6e4b3a2..e973b71e0a9 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_hash.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_by_hash.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_transaction_by_hash'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getTransactionByHash', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_count.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_count.test.ts index 7daca39ed05..dd2941e3de2 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_count.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_count.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_transaction_count'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getTransactionCount', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_receipt.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_receipt.test.ts index 2a4aea3fa8a..f65538b7aca 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_receipt.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_transaction_receipt.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_transaction_receipt'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getTransactionReceipt', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_by_block_hash_and_index.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_by_block_hash_and_index.test.ts index e773d70f260..802c5ac4e8d 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_by_block_hash_and_index.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_by_block_hash_and_index.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_uncle_by_block_hash_and_index'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getUncleByBlockHashAndIndex', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_hash.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_hash.test.ts index ae12f9958d9..8e2b774c88b 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_hash.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_hash.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_uncle_count_by_block_hash'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getUncleCountByBlockHash', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_number.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_number.test.ts index 2788f66c86c..24936fc8eff 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_number.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/get_uncle_count_by_block_number.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/get_uncle_count_by_block_number'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('getUncleCountByBlockNumber', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/new_filter.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/new_filter.test.ts index d46a7c63882..19418c7cdb3 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/new_filter.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/new_filter.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/new_filter'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('newFilter', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_raw_transaction.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_raw_transaction.test.ts index f45623a2d9f..c490bc666de 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_raw_transaction.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_raw_transaction.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/send_raw_transaction'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('sendRawTransaction', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_transaction.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_transaction.test.ts index ea2f0bd1746..3b22ae054d4 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_transaction.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/send_transaction.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/send_transaction'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('sendTransaction', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign.test.ts index d37c0c19c8b..0d41b59e4a7 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/sign'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('sign', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_transaction.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_transaction.test.ts index a6d35a13d97..c5c4b1868b6 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_transaction.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_transaction.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/sign_transaction'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('signTransaction', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_typed_data.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_typed_data.test.ts index 5cb0e527cf7..7b9f945683b 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_typed_data.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/sign_typed_data.test.ts @@ -20,7 +20,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/sign_typed_data'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('signTypedData', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_hashrate.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_hashrate.test.ts index b3338ada9a5..a0d94905283 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_hashrate.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_hashrate.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/submit_hashrate'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('submitHashrate', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_work.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_work.test.ts index b65573e2af9..21f86349503 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_work.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/submit_work.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/submit_work'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('submitWork', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/uninstall_filter.test.ts b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/uninstall_filter.test.ts index 508b13f7c21..1fd893ab9bc 100644 --- a/packages/web3-rpc-methods/test/unit/eth_rpc_methods/uninstall_filter.test.ts +++ b/packages/web3-rpc-methods/test/unit/eth_rpc_methods/uninstall_filter.test.ts @@ -34,7 +34,7 @@ import { validator } from '@etn-sc/web3-validator'; import { ethRpcMethods } from '../../../src/index'; import { testData } from './fixtures/uninstall_filter'; -jest.mock('web3-validator'); +jest.mock('@etn-sc/web3-validator'); describe('uninstallFilter', () => { let requestManagerSendSpy: jest.Mock; diff --git a/packages/web3/test/cjs_black_box/package.json b/packages/web3/test/cjs_black_box/package.json index 0ba123857f9..0c21b73e8b8 100644 --- a/packages/web3/test/cjs_black_box/package.json +++ b/packages/web3/test/cjs_black_box/package.json @@ -14,13 +14,13 @@ "test:infura:ws": "WEB3_SYSTEM_TEST_BACKEND=infura jest --forceExit" }, "dependencies": { - "web3": "5.0.0" + "@etn-sc/web3": "5.0.0" }, "devDependencies": { "jest": "^28.1.3", "ts-jest": "^28.0.7", - "web3-eth": "5.0.0", - "web3-eth-contract": "5.0.0", - "web3-validator": "5.0.0" + "@etn-sc/web3-eth": "5.0.0", + "@etn-sc/web3-eth-contract": "5.0.0", + "@etn-sc/web3-validator": "5.0.0" } } diff --git a/packages/web3/test/cjs_black_box/test/batchRequest.test.ts b/packages/web3/test/cjs_black_box/test/batchRequest.test.ts index 98035c0ce43..8f6e82f25d7 100644 --- a/packages/web3/test/cjs_black_box/test/batchRequest.test.ts +++ b/packages/web3/test/cjs_black_box/test/batchRequest.test.ts @@ -22,7 +22,7 @@ import { isWs, } from '../../shared_fixtures/system_tests_utils'; // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const Web3 = require('web3').default; +const Web3 = require('@etn-sc/web3').default; describe('CJS - Black Box Unit Tests - web3.BatchRequest', () => { let web3: typeof Web3; diff --git a/packages/web3/test/cjs_black_box/test/web3-eth-accounts/hashMessage.test.ts b/packages/web3/test/cjs_black_box/test/web3-eth-accounts/hashMessage.test.ts index 88959f84aa9..04a899e0c50 100644 --- a/packages/web3/test/cjs_black_box/test/web3-eth-accounts/hashMessage.test.ts +++ b/packages/web3/test/cjs_black_box/test/web3-eth-accounts/hashMessage.test.ts @@ -24,7 +24,7 @@ import { } from '../../../shared_fixtures/system_tests_utils'; /* eslint-disable @typescript-eslint/no-unsafe-call */ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const Web3 = require('web3').default; +const Web3 = require('@etn-sc/web3').default; jest.setTimeout(15000); diff --git a/packages/web3/test/cjs_black_box/test/web3-eth-contract/erc20.test.ts b/packages/web3/test/cjs_black_box/test/web3-eth-contract/erc20.test.ts index 45e95c69dac..50cbaee04c8 100644 --- a/packages/web3/test/cjs_black_box/test/web3-eth-contract/erc20.test.ts +++ b/packages/web3/test/cjs_black_box/test/web3-eth-contract/erc20.test.ts @@ -31,7 +31,7 @@ import { } from '../../../shared_fixtures/contracts/ERC20Token'; /* eslint-disable @typescript-eslint/no-unsafe-call */ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const Web3 = require('web3').default; +const Web3 = require('@etn-sc/web3').default; describeIf(getSystemTestBackend() === 'infura')( 'CJS - Black Box Unit Tests - web3.eth.Contract', diff --git a/packages/web3/test/cjs_black_box/test/web3-eth/getBlock.test.ts b/packages/web3/test/cjs_black_box/test/web3-eth/getBlock.test.ts index f33f0ed2fa1..91fd4bd1cec 100644 --- a/packages/web3/test/cjs_black_box/test/web3-eth/getBlock.test.ts +++ b/packages/web3/test/cjs_black_box/test/web3-eth/getBlock.test.ts @@ -24,7 +24,7 @@ import { } from '../../../shared_fixtures/system_tests_utils'; /* eslint-disable @typescript-eslint/no-unsafe-call */ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const Web3 = require('web3').default; +const Web3 = require('@etn-sc/web3').default; describe('CJS - Black Box Unit Tests - web3.eth.getBlock', () => { let web3: typeof Web3; diff --git a/packages/web3/test/cjs_black_box/test/web3-eth/getTransaction.test.ts b/packages/web3/test/cjs_black_box/test/web3-eth/getTransaction.test.ts index b65fe6e4135..2edbd9a5b6b 100644 --- a/packages/web3/test/cjs_black_box/test/web3-eth/getTransaction.test.ts +++ b/packages/web3/test/cjs_black_box/test/web3-eth/getTransaction.test.ts @@ -23,7 +23,7 @@ import { } from '../../../shared_fixtures/system_tests_utils'; /* eslint-disable @typescript-eslint/no-unsafe-call */ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires -const Web3 = require('web3').default; +const Web3 = require('@etn-sc/web3').default; describe('CJS - Black Box Unit Tests - web3.eth.getTransaction', () => { let web3: typeof Web3; diff --git a/packages/web3/test/e2e/web3_extend.test.ts b/packages/web3/test/e2e/web3_extend.test.ts index 67d2e375a59..5e0ddc35535 100644 --- a/packages/web3/test/e2e/web3_extend.test.ts +++ b/packages/web3/test/e2e/web3_extend.test.ts @@ -20,7 +20,7 @@ import Web3 from '../../src'; import { getSystemE2ETestProvider } from './e2e_utils'; import { closeOpenConnection, getSystemTestBackend } from '../shared_fixtures/system_tests_utils'; -declare module 'web3' { +declare module '@etn-sc/web3' { interface Web3Context { L2Module: { getL2BlockInfo(): Promise; diff --git a/packages/web3/test/esm_black_box/package.json b/packages/web3/test/esm_black_box/package.json index 67c4cb696f5..3472966eb7f 100644 --- a/packages/web3/test/esm_black_box/package.json +++ b/packages/web3/test/esm_black_box/package.json @@ -14,13 +14,13 @@ "test:infura:ws": "WEB3_SYSTEM_TEST_BACKEND=infura jest --forceExit" }, "dependencies": { - "web3": "5.0.0" + "@etn-sc/web3": "5.0.0" }, "devDependencies": { "jest": "^28.1.3", "ts-jest": "^28.0.7", - "web3-eth": "5.0.0", - "web3-eth-contract": "5.0.0", - "web3-validator": "5.0.0" + "@etn-sc/web3-eth": "5.0.0", + "@etn-sc/web3-eth-contract": "5.0.0", + "@etn-sc/web3-validator": "5.0.0" } } diff --git a/packages/web3/test/integration/web3.eth.transaction.test.ts b/packages/web3/test/integration/web3.eth.transaction.test.ts index 77a57de12f0..45e6a5652e7 100644 --- a/packages/web3/test/integration/web3.eth.transaction.test.ts +++ b/packages/web3/test/integration/web3.eth.transaction.test.ts @@ -20,7 +20,7 @@ import { Web3Account } from '@etn-sc/web3-eth-accounts'; import Web3, { DEFAULT_RETURN_FORMAT, Transaction } from '../../src'; import testsData from '../fixtures/transactions.json'; -jest.mock('web3-providers-http'); +jest.mock('@etn-sc/web3-providers-http'); describe('signTransaction', () => { let blockNum = 1; diff --git a/packages/web3/test/unit/accounts.test.ts b/packages/web3/test/unit/accounts.test.ts index f102a1a3965..8c625aeab6a 100644 --- a/packages/web3/test/unit/accounts.test.ts +++ b/packages/web3/test/unit/accounts.test.ts @@ -21,8 +21,8 @@ import { SignTransactionResult, Web3Account } from '@etn-sc/web3-eth-accounts'; import { Web3EthInterface } from '../../src/types'; import { Web3 } from '../../src'; -jest.mock('web3-eth-accounts'); -jest.mock('web3-eth'); +jest.mock('@etn-sc/web3-eth-accounts'); +jest.mock('@etn-sc/web3-eth'); describe('test new Web3().eth.accounts', () => { let accounts: Web3EthInterface['accounts']; diff --git a/packages/web3/test/unit/web3.extend.test.ts b/packages/web3/test/unit/web3.extend.test.ts index ac94d386365..cae04872a62 100644 --- a/packages/web3/test/unit/web3.extend.test.ts +++ b/packages/web3/test/unit/web3.extend.test.ts @@ -18,7 +18,7 @@ along with web3.js. If not, see . import { Address, BlockTag } from '@etn-sc/web3-types'; import { Web3 } from '../../src/web3'; -declare module 'web3' { +declare module '@etn-sc/web3' { interface Web3Context { // for first test like web3.myModule.getL2Balance(...) myModule: { diff --git a/scripts/gen_accounts.js b/scripts/gen_accounts.js index b67519a702e..6c0288e9081 100644 --- a/scripts/gen_accounts.js +++ b/scripts/gen_accounts.js @@ -1,5 +1,5 @@ -const { Personal } = require('web3-eth-personal'); -const { Web3Eth } = require('web3-eth'); +const { Personal } = require('@etn-sc/web3-eth-personal'); +const { Web3Eth } = require('@etn-sc/web3-eth'); const tempAccountList = require('./accounts.json'); const getEnvVar = name => (global.Cypress ? Cypress.env(name) : process.env[name]);