From 4159c5dfa2ea4e51c784887e4358b70410ca528a Mon Sep 17 00:00:00 2001 From: Marko Gajin <42877612+g4zyn@users.noreply.github.com> Date: Thu, 16 May 2024 12:48:21 +0200 Subject: [PATCH] Update module name --- Dockerfile | 2 +- README.md | 2 +- RELEASES.md | 78 ++++----- SECURITY.md | 2 +- accounts/abi/bind/auth.go | 8 +- accounts/abi/bind/backend.go | 4 +- accounts/abi/bind/backends/simulated.go | 32 ++-- accounts/abi/bind/backends/simulated_test.go | 12 +- accounts/abi/bind/base.go | 8 +- accounts/abi/bind/base_test.go | 10 +- accounts/abi/bind/bind.go | 2 +- accounts/abi/bind/bind_test.go | 152 +++++++++--------- accounts/abi/bind/template.go | 10 +- accounts/abi/bind/util.go | 4 +- accounts/abi/bind/util_test.go | 8 +- accounts/accounts.go | 4 +- accounts/external/backend.go | 10 +- accounts/keystore/account_cache.go | 2 +- accounts/keystore/account_cache_test.go | 2 +- accounts/keystore/key.go | 2 +- accounts/keystore/keystore.go | 4 +- accounts/keystore/keystore_test.go | 2 +- accounts/keystore/passphrase.go | 2 +- accounts/keystore/presale.go | 2 +- accounts/keystore/wallet.go | 6 +- accounts/scwallet/hub.go | 2 +- accounts/scwallet/wallet.go | 6 +- cmd/abigen/main.go | 6 +- consensus/consensus.go | 6 +- consensus/dummy/consensus.go | 12 +- consensus/dummy/consensus_test.go | 2 +- consensus/dummy/dynamic_fees.go | 4 +- consensus/dummy/dynamic_fees_test.go | 4 +- consensus/misc/eip4844/eip4844.go | 4 +- consensus/misc/eip4844/eip4844_test.go | 2 +- core/bench_test.go | 10 +- core/block_validator.go | 10 +- core/blockchain.go | 26 +-- core/blockchain_iterator.go | 2 +- core/blockchain_log_test.go | 12 +- core/blockchain_reader.go | 16 +- core/blockchain_repair_test.go | 12 +- core/blockchain_sethead_test.go | 2 +- core/blockchain_snapshot_test.go | 12 +- core/blockchain_test.go | 16 +- core/bloom_indexer.go | 6 +- core/bloombits/generator.go | 2 +- core/bloombits/generator_test.go | 2 +- core/chain_indexer.go | 4 +- core/chain_indexer_test.go | 4 +- core/chain_makers.go | 18 +-- core/chain_makers_test.go | 12 +- core/error.go | 2 +- core/events.go | 2 +- core/evm.go | 10 +- core/gen_genesis.go | 2 +- core/genesis.go | 12 +- core/genesis_test.go | 18 +-- core/headerchain.go | 8 +- core/headerchain_test.go | 12 +- core/main_test.go | 4 +- core/mkalloc.go | 2 +- core/predicate_check.go | 8 +- core/predicate_check_test.go | 6 +- core/rawdb/accessors_chain.go | 6 +- core/rawdb/accessors_chain_test.go | 4 +- core/rawdb/accessors_indexes.go | 4 +- core/rawdb/accessors_indexes_test.go | 4 +- core/rawdb/accessors_metadata.go | 2 +- core/rawdb/chain_iterator.go | 2 +- core/rawdb/chain_iterator_test.go | 2 +- core/rawdb/schema.go | 2 +- core/rlp_test.go | 6 +- core/sender_cacher.go | 2 +- core/state/database.go | 10 +- core/state/dump.go | 4 +- core/state/iterator.go | 4 +- core/state/iterator_test.go | 2 +- core/state/metrics.go | 2 +- core/state/pruner/bloom.go | 2 +- core/state/pruner/pruner.go | 8 +- core/state/snapshot/conversion.go | 6 +- core/state/snapshot/difflayer.go | 2 +- core/state/snapshot/difflayer_test.go | 2 +- core/state/snapshot/disklayer.go | 8 +- core/state/snapshot/disklayer_test.go | 2 +- core/state/snapshot/generate.go | 8 +- core/state/snapshot/generate_test.go | 12 +- core/state/snapshot/iterator.go | 2 +- core/state/snapshot/iterator_test.go | 2 +- core/state/snapshot/journal.go | 4 +- core/state/snapshot/snapshot.go | 8 +- core/state/snapshot/snapshot_ext.go | 2 +- core/state/snapshot/snapshot_test.go | 4 +- core/state/snapshot/utils.go | 2 +- core/state/snapshot/wipe.go | 2 +- core/state/snapshot/wipe_test.go | 2 +- core/state/state_object.go | 6 +- core/state/state_test.go | 6 +- core/state/statedb.go | 18 +-- core/state/statedb_fuzz_test.go | 12 +- core/state/statedb_test.go | 14 +- core/state/sync_test.go | 10 +- core/state/test_statedb.go | 4 +- core/state/trie_prefetcher.go | 4 +- core/state/trie_prefetcher_test.go | 4 +- core/state_manager.go | 2 +- core/state_manager_test.go | 2 +- core/state_processor.go | 14 +- core/state_processor_test.go | 18 +-- core/state_transition.go | 10 +- core/state_transition_test.go | 12 +- core/test_blockchain.go | 10 +- core/txpool/blobpool/blobpool.go | 16 +- core/txpool/blobpool/blobpool_test.go | 16 +- core/txpool/blobpool/evictheap_test.go | 2 +- core/txpool/blobpool/interface.go | 6 +- core/txpool/blobpool/limbo.go | 2 +- core/txpool/blobpool/metrics.go | 2 +- core/txpool/legacypool/journal.go | 2 +- core/txpool/legacypool/legacypool.go | 16 +- core/txpool/legacypool/legacypool2_test.go | 6 +- core/txpool/legacypool/legacypool_test.go | 16 +- core/txpool/legacypool/list.go | 2 +- core/txpool/legacypool/list_test.go | 2 +- core/txpool/legacypool/noncer.go | 2 +- core/txpool/subpool.go | 4 +- core/txpool/txpool.go | 6 +- core/txpool/validation.go | 10 +- core/types.go | 6 +- core/types/block_test.go | 4 +- core/types/hashing_test.go | 6 +- core/types/receipt.go | 2 +- core/types/receipt_test.go | 2 +- core/types/transaction_signing.go | 2 +- core/types/tx_blob.go | 2 +- core/vm/contracts.go | 8 +- core/vm/contracts_stateful.go | 2 +- core/vm/contracts_stateful_native_asset.go | 4 +- core/vm/contracts_stateful_test.go | 8 +- core/vm/eips.go | 4 +- core/vm/evm.go | 16 +- core/vm/gas.go | 2 +- core/vm/gas_table.go | 4 +- core/vm/gas_table_test.go | 10 +- core/vm/instructions.go | 4 +- core/vm/instructions_test.go | 10 +- core/vm/interface.go | 4 +- core/vm/interpreter.go | 2 +- core/vm/interpreter_test.go | 8 +- core/vm/jump_table.go | 2 +- core/vm/jump_table_export.go | 2 +- core/vm/operations_acl.go | 4 +- core/vm/runtime/env.go | 4 +- core/vm/runtime/runtime.go | 10 +- core/vm/runtime/runtime_example_test.go | 2 +- core/vm/runtime/runtime_test.go | 22 +-- core/vm/stack_table.go | 2 +- eth/api_admin.go | 4 +- eth/api_backend.go | 26 +-- eth/api_backend_test.go | 2 +- eth/api_debug.go | 12 +- eth/api_debug_test.go | 8 +- eth/backend.go | 42 ++--- eth/bloombits.go | 2 +- eth/chain_with_final_block.go | 4 +- eth/ethconfig/config.go | 12 +- eth/filters/api.go | 8 +- eth/filters/api_test.go | 2 +- eth/filters/bench_test.go | 6 +- eth/filters/filter.go | 6 +- eth/filters/filter_system.go | 12 +- eth/filters/filter_system_test.go | 18 +-- eth/filters/filter_test.go | 18 +-- eth/gasestimator/gasestimator.go | 12 +- eth/gasprice/fee_info_provider.go | 6 +- eth/gasprice/fee_info_provider_test.go | 6 +- eth/gasprice/feehistory.go | 4 +- eth/gasprice/feehistory_test.go | 8 +- eth/gasprice/gasprice.go | 10 +- eth/gasprice/gasprice_test.go | 16 +- eth/state_accessor.go | 14 +- eth/tracers/api.go | 18 +-- eth/tracers/api_test.go | 22 +-- .../internal/tracetest/calltrace_test.go | 14 +- .../internal/tracetest/flat_calltrace_test.go | 12 +- .../internal/tracetest/prestate_test.go | 12 +- eth/tracers/internal/tracetest/util.go | 4 +- eth/tracers/js/goja.go | 6 +- eth/tracers/js/tracer_test.go | 8 +- eth/tracers/logger/access_list_tracer.go | 4 +- eth/tracers/logger/gen_structlog.go | 2 +- eth/tracers/logger/logger.go | 8 +- eth/tracers/logger/logger_json.go | 2 +- eth/tracers/logger/logger_test.go | 8 +- eth/tracers/native/4byte.go | 4 +- eth/tracers/native/call.go | 8 +- eth/tracers/native/call_flat.go | 6 +- eth/tracers/native/gen_callframe_json.go | 2 +- eth/tracers/native/mux.go | 4 +- eth/tracers/native/noop.go | 4 +- eth/tracers/native/prestate.go | 4 +- eth/tracers/tracers.go | 2 +- eth/tracers/tracers_test.go | 14 +- ethclient/corethclient/corethclient.go | 8 +- ethclient/ethclient.go | 10 +- ethclient/signer.go | 2 +- go.mod | 2 +- interfaces/interfaces.go | 2 +- internal/debug/flags.go | 2 +- internal/ethapi/api.go | 26 +-- internal/ethapi/api_extra.go | 6 +- internal/ethapi/api_test.go | 24 +-- internal/ethapi/backend.go | 18 +-- internal/ethapi/errors.go | 4 +- internal/ethapi/transaction_args.go | 8 +- internal/ethapi/transaction_args_test.go | 6 +- internal/flags/helpers.go | 4 +- internal/shutdowncheck/shutdown_tracker.go | 2 +- internal/version/version.go | 4 +- metrics/prometheus/prometheus.go | 2 +- metrics/prometheus/prometheus_test.go | 2 +- miner/miner.go | 12 +- miner/ordering.go | 4 +- miner/ordering_ext.go | 4 +- miner/ordering_test.go | 4 +- miner/worker.go | 22 +-- node/api.go | 4 +- node/config.go | 6 +- node/node.go | 4 +- params/config.go | 6 +- params/config_extra.go | 2 +- params/config_test.go | 2 +- params/precompile_upgrade.go | 6 +- params/precompiles.go | 4 +- peer/network.go | 4 +- peer/network_test.go | 2 +- peer/peer_tracker.go | 2 +- peer/stats/stats.go | 2 +- peer/waiting_handler.go | 2 +- plugin/evm/atomic_backend.go | 4 +- plugin/evm/atomic_syncer.go | 6 +- plugin/evm/atomic_syncer_test.go | 14 +- plugin/evm/atomic_trie.go | 12 +- plugin/evm/atomic_trie_height_map_repair.go | 4 +- plugin/evm/atomic_trie_iterator.go | 2 +- plugin/evm/atomic_trie_repair.go | 4 +- plugin/evm/atomic_trie_repair_test.go | 2 +- plugin/evm/block.go | 12 +- plugin/evm/block_builder.go | 6 +- plugin/evm/block_verification.go | 8 +- plugin/evm/config.go | 4 +- plugin/evm/export_tx.go | 4 +- plugin/evm/export_tx_test.go | 2 +- plugin/evm/gossip.go | 8 +- plugin/evm/gossip_stats.go | 2 +- plugin/evm/gossip_test.go | 16 +- plugin/evm/gossiper_atomic_gossiping_test.go | 2 +- plugin/evm/gossiper_eth_gossiping_test.go | 8 +- plugin/evm/handler.go | 6 +- plugin/evm/import_tx.go | 4 +- plugin/evm/import_tx_test.go | 2 +- plugin/evm/log.go | 2 +- plugin/evm/mempool.go | 2 +- plugin/evm/message/cross_chain_handler.go | 4 +- plugin/evm/network_handler.go | 14 +- plugin/evm/service.go | 2 +- plugin/evm/shared_memory_writer.go | 2 +- plugin/evm/static_service.go | 2 +- plugin/evm/syncervm_client.go | 14 +- plugin/evm/syncervm_server.go | 4 +- plugin/evm/syncervm_test.go | 24 +-- plugin/evm/test_tx.go | 4 +- plugin/evm/tx.go | 4 +- plugin/evm/tx_gossip_test.go | 6 +- plugin/evm/tx_test.go | 2 +- plugin/evm/vm.go | 60 +++---- plugin/evm/vm_test.go | 28 ++-- plugin/evm/vm_warp_test.go | 16 +- plugin/main.go | 2 +- precompile/contract/interfaces.go | 2 +- precompile/contract/mocks.go | 6 +- precompile/contract/utils.go | 4 +- precompile/contracts/warp/README.md | 2 +- precompile/contracts/warp/config.go | 6 +- precompile/contracts/warp/config_test.go | 6 +- precompile/contracts/warp/contract.go | 6 +- precompile/contracts/warp/contract_test.go | 12 +- .../contracts/warp/contract_warp_handler.go | 6 +- precompile/contracts/warp/module.go | 6 +- precompile/contracts/warp/predicate_test.go | 8 +- precompile/modules/module.go | 2 +- precompile/modules/registerer.go | 4 +- precompile/modules/registerer_test.go | 2 +- precompile/precompileconfig/mocks.go | 4 +- precompile/precompileconfig/upgradeable.go | 2 +- precompile/registry/registry.go | 2 +- precompile/testutils/test_config.go | 2 +- precompile/testutils/test_precompile.go | 8 +- precompile/testutils/test_predicate.go | 2 +- predicate/predicate_bytes.go | 2 +- predicate/predicate_bytes_test.go | 2 +- predicate/predicate_slots.go | 6 +- predicate/predicate_tx.go | 4 +- rpc/client_opt_test.go | 2 +- rpc/handler.go | 2 +- rpc/metrics.go | 2 +- rpc/subscription_test.go | 2 +- scripts/build.sh | 2 +- scripts/mocks.mockgen.txt | 4 +- scripts/tests.e2e.sh | 2 +- signer/core/apitypes/types.go | 2 +- sync/client/client.go | 14 +- sync/client/client_test.go | 22 +-- sync/client/leaf_syncer.go | 4 +- sync/client/mock_client.go | 6 +- sync/client/mock_network.go | 2 +- sync/client/stats/stats.go | 4 +- sync/handlers/block_request.go | 4 +- sync/handlers/block_request_test.go | 16 +- sync/handlers/code_request.go | 6 +- sync/handlers/code_request_test.go | 8 +- sync/handlers/handler.go | 4 +- sync/handlers/leafs_request.go | 14 +- sync/handlers/leafs_request_test.go | 14 +- sync/handlers/stats/stats.go | 2 +- sync/handlers/test_providers.go | 4 +- sync/statesync/code_syncer.go | 6 +- sync/statesync/code_syncer_test.go | 10 +- sync/statesync/state_syncer.go | 6 +- sync/statesync/sync_helpers.go | 6 +- sync/statesync/sync_test.go | 18 +-- sync/statesync/test_sync.go | 10 +- sync/statesync/trie_queue.go | 2 +- sync/statesync/trie_segments.go | 10 +- sync/statesync/trie_sync_stats.go | 2 +- sync/statesync/trie_sync_tasks.go | 8 +- sync/syncutils/iterators.go | 4 +- sync/syncutils/test_trie.go | 8 +- tests/init.go | 4 +- tests/state_test_util.go | 16 +- trie/committer.go | 2 +- trie/database.go | 8 +- trie/database_test.go | 6 +- trie/iterator.go | 2 +- trie/iterator_test.go | 6 +- trie/node_test.go | 12 +- trie/preimages.go | 2 +- trie/proof_test.go | 2 +- trie/secure_trie.go | 4 +- trie/secure_trie_test.go | 6 +- trie/stacktrie.go | 4 +- trie/stacktrie_fuzzer_test.go | 6 +- trie/stacktrie_test.go | 4 +- trie/sync_test.go | 6 +- trie/testutil/utils.go | 2 +- trie/tracer_test.go | 6 +- trie/trie.go | 4 +- trie/trie_reader.go | 4 +- trie/trie_test.go | 6 +- trie/triedb/hashdb/database.go | 12 +- trie/triedb/pathdb/database.go | 10 +- trie/triedb/pathdb/database_test.go | 10 +- trie/triedb/pathdb/difflayer.go | 4 +- trie/triedb/pathdb/difflayer_test.go | 14 +- trie/triedb/pathdb/disklayer.go | 6 +- trie/triedb/pathdb/history.go | 2 +- trie/triedb/pathdb/history_test.go | 6 +- trie/triedb/pathdb/journal.go | 8 +- trie/triedb/pathdb/layertree.go | 6 +- trie/triedb/pathdb/metrics.go | 2 +- trie/triedb/pathdb/nodebuffer.go | 4 +- trie/triedb/pathdb/testutils.go | 6 +- trie/triestate/state.go | 4 +- trie/utils/verkle.go | 2 +- trie/utils/verkle_test.go | 8 +- trie/verkle.go | 6 +- trie/verkle_test.go | 8 +- utils/metered_cache.go | 2 +- warp/aggregator/aggregator.go | 2 +- warp/aggregator/mock_signature_getter.go | 2 +- warp/aggregator/signature_getter.go | 2 +- warp/client.go | 2 +- warp/fetcher.go | 2 +- warp/handlers/signature_request.go | 4 +- warp/handlers/signature_request_test.go | 6 +- warp/handlers/stats.go | 2 +- warp/service.go | 6 +- warp/validators/state_test.go | 2 +- 389 files changed, 1396 insertions(+), 1396 deletions(-) diff --git a/Dockerfile b/Dockerfile index 841a65dd4f..f4cf533ecf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ WORKDIR $GOPATH/src/github.com/ava-labs/avalanchego # Run go mod download here to improve caching of AvalancheGo specific depednencies RUN go mod download # Replace the coreth dependency -RUN go mod edit -replace github.com/ava-labs/coreth=../coreth +RUN go mod edit -replace github.com/tenderly/coreth=../coreth RUN go mod download && go mod tidy -compat=1.21 # Build the AvalancheGo binary with local version of coreth. diff --git a/README.md b/README.md index 69a11a6c43..fdd14d920b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Coreth is a dependency of AvalancheGo which is used to implement the EVM based V ```bash cd $GOPATH/src/github.com/ava-labs/avalanchego -go mod edit -replace github.com/ava-labs/coreth=../coreth +go mod edit -replace github.com/tenderly/coreth=../coreth ``` Now that AvalancheGo depends on the local version of Coreth, we can build with the normal build script: diff --git a/RELEASES.md b/RELEASES.md index 60f47400d9..7cc414ea68 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,6 +1,6 @@ # Release Notes -## [v0.13.3](https://github.com/ava-labs/coreth/releases/tag/v0.13.3) +## [v0.13.3](https://github.com/tenderly/coreth/releases/tag/v0.13.3) - Update go-ethereum to v1.13.2 - Bump AvalancheGo to v1.11.5 - Bump golang version requirement to 1.21.9 @@ -8,54 +8,54 @@ - Disable blobpool - Testing improvements -## [v0.13.2](https://github.com/ava-labs/coreth/releases/tag/v0.13.2) +## [v0.13.2](https://github.com/tenderly/coreth/releases/tag/v0.13.2) - Integrate stake weighted gossip selection - Update go-ethereum to v1.12.2 - Force precompile modules registration in ethclient - Bump Avalanchego to v1.11.3 -## [v0.13.1](https://github.com/ava-labs/coreth/releases/tag/v0.13.1) +## [v0.13.1](https://github.com/tenderly/coreth/releases/tag/v0.13.1) - Bump AvalancheGo to v1.11.2 - Remove Legacy Gossipper - Tune default gossip parameters -## [v0.13.0](https://github.com/ava-labs/coreth/releases/tag/v0.13.0) +## [v0.13.0](https://github.com/tenderly/coreth/releases/tag/v0.13.0) - Bump AvalancheGo to v1.11.1 - Bump minimum Go version to 1.21.7 - Add more error messages to warp backend -## [v0.12.10](https://github.com/ava-labs/coreth/releases/tag/v0.12.10) +## [v0.12.10](https://github.com/tenderly/coreth/releases/tag/v0.12.10) - Add support for off-chain warp messages - Add support for getBlockReceipts RPC API - Fix issue with state sync for large blocks - Migrating Push Gossip to avalanchego network SDK handlers -## [v0.12.9](https://github.com/ava-labs/coreth/releases/tag/v0.12.9) +## [v0.12.9](https://github.com/tenderly/coreth/releases/tag/v0.12.9) - Add concurrent prefetching of trie nodes during block processing - Add `skip-tx-indexing` flag to disable transaction indexing and unindexing - Update acceptor tip before sending chain events to subscribers - Add soft cap on total block data size for state sync block requests -## [v0.12.8](https://github.com/ava-labs/coreth/releases/tag/v0.12.8) +## [v0.12.8](https://github.com/tenderly/coreth/releases/tag/v0.12.8) - Bump AvalancheGo to v1.10.15 - Fix crash in prestate tracer on memory read -## [v0.12.7](https://github.com/ava-labs/coreth/releases/tag/v0.12.7) +## [v0.12.7](https://github.com/tenderly/coreth/releases/tag/v0.12.7) - Bump AvalancheGo to v1.10.14 -## [v0.12.6](https://github.com/ava-labs/coreth/releases/tag/v0.12.6) +## [v0.12.6](https://github.com/tenderly/coreth/releases/tag/v0.12.6) - Remove lock options from HTTP handlers - Fix deadlock in `eth_getLogs` when matcher session hits a missing block - Replace Kurtosis E2E tests with avctl test framework -## [v0.12.5](https://github.com/ava-labs/coreth/releases/tag/v0.12.5) +## [v0.12.5](https://github.com/tenderly/coreth/releases/tag/v0.12.5) - Add P2P SDK Pull Gossip to mempool - Fix hanging requests on shutdown that could cause ungraceful shutdown @@ -63,23 +63,23 @@ - Migrate geth changes from v1.11.4 through v1.12.0 - Bump AvalancheGo dependency to v1.10.10 -## [v0.12.4](https://github.com/ava-labs/coreth/releases/tag/v0.12.4) +## [v0.12.4](https://github.com/tenderly/coreth/releases/tag/v0.12.4) - Fix API handler crash for `lookupState` in `prestate` tracer - Fix API handler crash for LOG edge cases in the `callTracer` - Fix regression in `eth_getLogs` serving request for blocks containing no Ethereum transactions - Export `CalculateDynamicFee` -## [v0.12.3](https://github.com/ava-labs/coreth/releases/tag/v0.12.3) +## [v0.12.3](https://github.com/tenderly/coreth/releases/tag/v0.12.3) - Migrate go-ethereum changes through v1.11.4 - Downgrade API error log from `Warn` to `Info` -## [v0.12.2](https://github.com/ava-labs/coreth/releases/tag/v0.12.2) +## [v0.12.2](https://github.com/tenderly/coreth/releases/tag/v0.12.2) - Increase default trie dirty cache size from 256MB to 512MB -## [v0.12.1](https://github.com/ava-labs/coreth/releases/tag/v0.12.1) +## [v0.12.1](https://github.com/tenderly/coreth/releases/tag/v0.12.1) - Bump AvalancheGo dependency to v1.10.1 - Improve block building logic @@ -88,39 +88,39 @@ - Fail outstanding requests on shutdown - Make state sync request sizes configurable -## [v0.12.0](https://github.com/ava-labs/coreth/releases/tag/v0.12.0) +## [v0.12.0](https://github.com/tenderly/coreth/releases/tag/v0.12.0) - Increase C-Chain block gas limit to 15M in Cortina - Add Mainnet and Fuji Cortina Activation timestamps -## [v0.11.9](https://github.com/ava-labs/coreth/releases/tag/v0.11.9) +## [v0.11.9](https://github.com/tenderly/coreth/releases/tag/v0.11.9) - Downgrade SetPreference log from warn to debug -## [v0.11.8](https://github.com/ava-labs/coreth/releases/tag/v0.11.8) +## [v0.11.8](https://github.com/tenderly/coreth/releases/tag/v0.11.8) - Fix shutdown hanging during state sync - Add pre-check for imported UTXOs - Fix bug in `BadBlockReason` output to display error string correctly - Update golangci-lint version to v1.51.2 -## [v0.11.7](https://github.com/ava-labs/coreth/releases/tag/v0.11.7) +## [v0.11.7](https://github.com/tenderly/coreth/releases/tag/v0.11.7) - Enable state sync by default when syncing from an empty database - Increase block gas limit to 15M for Cortina Network Upgrade - Add back file tracer endpoint - Add back JS tracer -## [v0.11.6](https://github.com/ava-labs/coreth/releases/tag/v0.11.6) +## [v0.11.6](https://github.com/tenderly/coreth/releases/tag/v0.11.6) - Bump AvalancheGo to v1.9.6 -## [v0.11.5](https://github.com/ava-labs/coreth/releases/tag/v0.11.5) +## [v0.11.5](https://github.com/tenderly/coreth/releases/tag/v0.11.5) - Add support for eth_call over VM2VM messaging - Add config flags for tx pool behavior -## [v0.11.4](https://github.com/ava-labs/coreth/releases/tag/v0.11.4) +## [v0.11.4](https://github.com/tenderly/coreth/releases/tag/v0.11.4) - Add config option to perform database inspection on startup - Add configurable transaction indexing to reduce disk usage @@ -128,7 +128,7 @@ - Add counter metrics for number of accepted/processed logs - Improve header and logs caching using maximum accepted depth cache -## [v0.11.3](https://github.com/ava-labs/coreth/releases/tag/v0.11.3) +## [v0.11.3](https://github.com/tenderly/coreth/releases/tag/v0.11.3) - Add counter for number of processed and accepted transactions - Wait for state sync goroutines to complete on shutdown @@ -137,13 +137,13 @@ - Add back isForkIncompatible checks for all existing forks - Clean up Apricot Phase 6 code -## [v0.11.2](https://github.com/ava-labs/coreth/releases/tag/v0.11.2) +## [v0.11.2](https://github.com/tenderly/coreth/releases/tag/v0.11.2) - Add trie clean cache journaling to disk to improve processing time on restart - Fix regression where snapshot could be marked as stale by async acceptor during block processing - Add fine-grained block processing metrics -## [v0.11.1](https://github.com/ava-labs/coreth/releases/tag/v0.11.1) +## [v0.11.1](https://github.com/tenderly/coreth/releases/tag/v0.11.1) - Add cache size config parameters for `trie-clean-cache`, `trie-dirty-cache`, `trie-dirty-commit-target`, and `snapshot-cache` - Increase default `trie-clean-cache` size from 256 MB to 512 MB @@ -157,25 +157,25 @@ - Add Opentelemetry support - Simplify caching logic for gas price estimation -## [v0.11.0](https://github.com/ava-labs/coreth/releases/tag/v0.11.0) +## [v0.11.0](https://github.com/tenderly/coreth/releases/tag/v0.11.0) - Update Chain Config compatibility check to compare against last accepted block timestamp - Bump go-ethereum dependency to v1.10.25 - Add Banff activation times for Mainnet and Fuji for October 18 4pm UTC and October 3 2pm UTC respectively - Banff cleanup -## [v0.10.0](https://github.com/ava-labs/coreth/releases/tag/v0.10.0) +## [v0.10.0](https://github.com/tenderly/coreth/releases/tag/v0.10.0) - Deprecate Native Asset Call and Native Asset Balance - Deprecate Import/Export of non-AVAX Avalanche Native Tokens via Atomic Transactions - Add failure reason to bad block API -## [v0.9.0](https://github.com/ava-labs/coreth/releases/tag/v0.9.0) +## [v0.9.0](https://github.com/tenderly/coreth/releases/tag/v0.9.0) - Migrate to go-ethereum v1.10.23 - Add API to fetch Chain Config -## [v0.8.16](https://github.com/ava-labs/coreth/releases/tag/v0.8.16) +## [v0.8.16](https://github.com/tenderly/coreth/releases/tag/v0.8.16) - Fix bug in `codeToFetch` database accessors that caused an error when starting/stopping state sync - Bump go-ethereum version to v1.10.21 @@ -186,7 +186,7 @@ - Remove deprecated gossiper/block building logic from pre-Apricot Phase 4 - Add marshal function for duration to improve config output -## [v0.8.15](https://github.com/ava-labs/coreth/releases/tag/v0.8.15) +## [v0.8.15](https://github.com/tenderly/coreth/releases/tag/v0.8.15) - Add optional JSON logging - Bump minimum go version to v1.18.1 @@ -196,7 +196,7 @@ - Fix atomic trie sync bug that could result in storing incorrect metadata - Update state sync metrics to use counter for number of items received -## [v0.8.14](https://github.com/ava-labs/coreth/releases/tag/v0.8.14) +## [v0.8.14](https://github.com/tenderly/coreth/releases/tag/v0.8.14) - Bump go-ethereum dependency to v1.10.20 - Update API names used to enable services in `eth-api` config flag. Prior names are supported but deprecated, please update your configuration [accordingly](https://docs.avax.network/nodes/maintain/chain-config-flags#c-chain-configs) @@ -205,13 +205,13 @@ - Adds metrics to atomic transaction mempool - Adds metrics for incoming/outgoing mempool gossip -## [v0.8.13](https://github.com/ava-labs/coreth/releases/tag/v0.8.13) +## [v0.8.13](https://github.com/tenderly/coreth/releases/tag/v0.8.13) - Bump go-ethereum dependency to v1.10.18 - Parallelize state sync code fetching - Deprecated CB58 format for API calls -## [v0.8.12](https://github.com/ava-labs/coreth/releases/tag/v0.8.12) +## [v0.8.12](https://github.com/tenderly/coreth/releases/tag/v0.8.12) - Add peer bandwidth tracking to optimize state sync message routing - Fix leaf request handler bug to ensure the handler delivers a valid range proof @@ -220,7 +220,7 @@ - Improve state sync handler metrics - Improve state sync ETA -## [v0.8.11](https://github.com/ava-labs/coreth/releases/tag/v0.8.11) +## [v0.8.11](https://github.com/tenderly/coreth/releases/tag/v0.8.11) - Improve state sync leaf request serving by optimistically reading leaves from snapshot - Add acceptor queue within `core/blockchain.go` @@ -228,39 +228,39 @@ - Refactor state sync block fetching - Improve state sync metrics -## [v0.8.10](https://github.com/ava-labs/coreth/releases/tag/v0.8.10) +## [v0.8.10](https://github.com/tenderly/coreth/releases/tag/v0.8.10) - Add beta support for fast sync - Bump trie tip buffer size to 32 - Fix bug in metrics initialization -## [v0.8.9](https://github.com/ava-labs/coreth/releases/tag/v0.8.9) +## [v0.8.9](https://github.com/tenderly/coreth/releases/tag/v0.8.9) - Fix deadlock bug on shutdown causing historical re-generation on restart - Add API endpoint to fetch running VM Config - Add AvalancheGo custom log formatting to C-Chain logs - Deprecate support for JS Tracer -## [v0.8.8](https://github.com/ava-labs/coreth/releases/tag/v0.8.8) +## [v0.8.8](https://github.com/tenderly/coreth/releases/tag/v0.8.8) - Reduced log level of snapshot regeneration logs - Enabled atomic tx replacement with higher gas fees - Parallelize trie index re-generation -## [v0.8.7](https://github.com/ava-labs/coreth/releases/tag/v0.8.7) +## [v0.8.7](https://github.com/tenderly/coreth/releases/tag/v0.8.7) - Optimize FeeHistory API - Add protection to prevent accidental corruption of archival node trie index - Add capability to restore complete trie index on best effort basis - Round up fastcache sizes to utilize all mmap'd memory in chunks of 64MB -## [v0.8.6](https://github.com/ava-labs/coreth/releases/tag/v0.8.6) +## [v0.8.6](https://github.com/tenderly/coreth/releases/tag/v0.8.6) - Migrate go-ethereum v1.10.16 changes - Increase FeeHistory maximum historical limit to improve MetaMask UI on C-Chain - Enable chain state metrics -## [v0.8.5](https://github.com/ava-labs/coreth/releases/tag/v0.8.5) +## [v0.8.5](https://github.com/tenderly/coreth/releases/tag/v0.8.5) - Add support for offline pruning - Refactor VM networking layer diff --git a/SECURITY.md b/SECURITY.md index 90dd1fb37f..025d8db518 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -16,5 +16,5 @@ Please refer to the [Bug Bounty Page](https://hackenproof.com/avalanche) for the ## Supported Versions -Please use the [most recently released version](https://github.com/ava-labs/coreth/releases/latest) to perform testing and to validate security issues. +Please use the [most recently released version](https://github.com/tenderly/coreth/releases/latest) to perform testing and to validate security issues. diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index cdce77d0d8..89d40f9d89 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -33,13 +33,13 @@ import ( "io" "math/big" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/accounts/external" - "github.com/ava-labs/coreth/accounts/keystore" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/accounts/external" + "github.com/tenderly/coreth/accounts/keystore" + "github.com/tenderly/coreth/core/types" ) // ErrNoChainID is returned whenever the user failed to specify a chain id. diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go index 846ffbca05..c6ea293d83 100644 --- a/accounts/abi/bind/backend.go +++ b/accounts/abi/bind/backend.go @@ -31,9 +31,9 @@ import ( "errors" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" ) var ( diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index 31aa31b0ce..7d11999ad5 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -34,28 +34,28 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/eth" - "github.com/ava-labs/coreth/vmerrs" - - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/filters" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" + "github.com/tenderly/coreth/eth" + "github.com/tenderly/coreth/vmerrs" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/filters" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // Verify that SimulatedBackend implements required interfaces diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index b3eaf65048..6a4220e486 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -37,14 +37,14 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/params" ) func TestSimulatedBackend(t *testing.T) { diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index 958128ffa8..0923e0d429 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -34,13 +34,13 @@ import ( "strings" "sync" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/interfaces" ) const basefeeWiggleMultiplier = 2 diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go index 141df4657e..63fd272ca0 100644 --- a/accounts/abi/bind/base_test.go +++ b/accounts/abi/bind/base_test.go @@ -35,16 +35,16 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/interfaces" ) func mockSign(addr common.Address, tx *types.Transaction) (*types.Transaction, error) { return tx, nil } diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go index 0a4223c5e5..bf206c48b9 100644 --- a/accounts/abi/bind/bind.go +++ b/accounts/abi/bind/bind.go @@ -39,8 +39,8 @@ import ( "text/template" "unicode" - "github.com/ava-labs/coreth/accounts/abi" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts/abi" ) // Lang is a target programming language selector to generate bindings for. diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index 3da6421150..3e8efda4a4 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -297,9 +297,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -352,9 +352,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -398,9 +398,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -455,10 +455,10 @@ var bindTests = []struct { "math/big" "reflect" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -504,9 +504,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -570,9 +570,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -615,10 +615,10 @@ var bindTests = []struct { []string{`6060604052609f8060106000396000f3606060405260e060020a6000350463f97a60058114601a575b005b600060605260c0604052600d60809081527f4920646f6e27742065786973740000000000000000000000000000000000000060a052602060c0908152600d60e081905281906101009060a09080838184600060046012f15050815172ffffffffffffffffffffffffffffffffffffff1916909152505060405161012081900392509050f3`}, []string{`[{"constant":true,"inputs":[],"name":"String","outputs":[{"name":"","type":"string"}],"type":"function"}]`}, ` - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" `, ` // Create a simulator and wrap a non-deployed contract @@ -654,10 +654,10 @@ var bindTests = []struct { []string{`6080604052348015600f57600080fd5b5060888061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063d5f6622514602d575b600080fd5b6033604c565b6040805192835260208301919091528051918290030190f35b600a809156fea264697066735822beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef64736f6c6343decafe0033`}, []string{`[{"inputs":[],"name":"Struct","outputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"stateMutability":"pure","type":"function"}]`}, ` - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" `, ` // Create a simulator and wrap a non-deployed contract @@ -702,9 +702,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -751,10 +751,10 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -827,9 +827,9 @@ var bindTests = []struct { "fmt" "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -920,10 +920,10 @@ var bindTests = []struct { "math/big" "time" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1111,9 +1111,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1246,9 +1246,9 @@ var bindTests = []struct { "math/big" "reflect" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, @@ -1388,9 +1388,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1454,9 +1454,9 @@ var bindTests = []struct { "math/big" "time" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1563,10 +1563,10 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/crypto" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" `, ` // Initialize test accounts @@ -1626,10 +1626,10 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/crypto" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" `, ` key, _ := crypto.GenerateKey() @@ -1688,9 +1688,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1749,9 +1749,9 @@ var bindTests = []struct { "bytes" "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1838,9 +1838,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1907,9 +1907,9 @@ var bindTests = []struct { ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, ` @@ -1958,9 +1958,9 @@ var bindTests = []struct { imports: ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, tester: ` @@ -2005,9 +2005,9 @@ var bindTests = []struct { imports: ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, tester: ` @@ -2045,9 +2045,9 @@ var bindTests = []struct { imports: ` "math/big" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" "github.com/ethereum/go-ethereum/crypto" `, tester: ` @@ -2169,7 +2169,7 @@ func golangBindings(t *testing.T, overload bool) { t.Fatalf("failed to convert binding test to modules: %v\n%s", err, out) } pwd, _ := os.Getwd() - replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ava-labs/coreth@v0.0.0", "-replace", "github.com/ava-labs/coreth="+filepath.Join(pwd, "..", "..", "..")) // Repo root + replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/tenderly/coreth@v0.0.0", "-replace", "github.com/tenderly/coreth="+filepath.Join(pwd, "..", "..", "..")) // Repo root replacer.Dir = pkg if out, err := replacer.CombinedOutput(); err != nil { t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index 22dca1e71d..4203c96e7e 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -26,7 +26,7 @@ package bind -import "github.com/ava-labs/coreth/accounts/abi" +import "github.com/tenderly/coreth/accounts/abi" // tmplData is the data structure required to fill the binding template. type tmplData struct { @@ -101,10 +101,10 @@ import ( "strings" "errors" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" ) diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go index 378f7ef877..bff6c1b366 100644 --- a/accounts/abi/bind/util.go +++ b/accounts/abi/bind/util.go @@ -31,10 +31,10 @@ import ( "errors" "time" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" ) // WaitMined waits for tx to be mined on the blockchain. diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go index 2acf86fb0c..4b6865a84b 100644 --- a/accounts/abi/bind/util_test.go +++ b/accounts/abi/bind/util_test.go @@ -33,12 +33,12 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/accounts/abi/bind/backends" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/accounts/abi/bind/backends" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" ) var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") diff --git a/accounts/accounts.go b/accounts/accounts.go index acde6b436a..d645e65dfb 100644 --- a/accounts/accounts.go +++ b/accounts/accounts.go @@ -31,10 +31,10 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" "golang.org/x/crypto/sha3" ) diff --git a/accounts/external/backend.go b/accounts/external/backend.go index 31f8d6804e..1cc85e2d4b 100644 --- a/accounts/external/backend.go +++ b/accounts/external/backend.go @@ -32,15 +32,15 @@ import ( "math/big" "sync" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/rpc" - "github.com/ava-labs/coreth/signer/core/apitypes" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/rpc" + "github.com/tenderly/coreth/signer/core/apitypes" ) type ExternalBackend struct { diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go index 4284d29f47..0970e50937 100644 --- a/accounts/keystore/account_cache.go +++ b/accounts/keystore/account_cache.go @@ -37,10 +37,10 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/accounts" mapset "github.com/deckarep/golang-set/v2" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts" "golang.org/x/exp/slices" ) diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go index 32c2ae3330..bc8261ed83 100644 --- a/accounts/keystore/account_cache_test.go +++ b/accounts/keystore/account_cache_test.go @@ -36,10 +36,10 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts" "github.com/cespare/cp" "github.com/davecgh/go-spew/spew" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/accounts" "golang.org/x/exp/slices" ) diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go index 23b39fa584..58bb860fbb 100644 --- a/accounts/keystore/key.go +++ b/accounts/keystore/key.go @@ -38,10 +38,10 @@ import ( "strings" "time" - "github.com/ava-labs/coreth/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/google/uuid" + "github.com/tenderly/coreth/accounts" ) const ( diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go index fb72f0eb14..e956cb5859 100644 --- a/accounts/keystore/keystore.go +++ b/accounts/keystore/keystore.go @@ -42,11 +42,11 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/core/types" ) var ( diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go index ed51fb8e76..58c7ac2230 100644 --- a/accounts/keystore/keystore_test.go +++ b/accounts/keystore/keystore_test.go @@ -36,10 +36,10 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/accounts" "golang.org/x/exp/slices" ) diff --git a/accounts/keystore/passphrase.go b/accounts/keystore/passphrase.go index acf944f717..1b427ba782 100644 --- a/accounts/keystore/passphrase.go +++ b/accounts/keystore/passphrase.go @@ -47,11 +47,11 @@ import ( "os" "path/filepath" - "github.com/ava-labs/coreth/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" "github.com/google/uuid" + "github.com/tenderly/coreth/accounts" "golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/scrypt" ) diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go index 1dfbd9c2a9..2e18c9abfb 100644 --- a/accounts/keystore/presale.go +++ b/accounts/keystore/presale.go @@ -35,9 +35,9 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/accounts" "github.com/ethereum/go-ethereum/crypto" "github.com/google/uuid" + "github.com/tenderly/coreth/accounts" "golang.org/x/crypto/pbkdf2" ) diff --git a/accounts/keystore/wallet.go b/accounts/keystore/wallet.go index 7193526399..6311ccfbb8 100644 --- a/accounts/keystore/wallet.go +++ b/accounts/keystore/wallet.go @@ -29,10 +29,10 @@ package keystore import ( "math/big" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" ) // keystoreWallet implements the accounts.Wallet interface for the original diff --git a/accounts/scwallet/hub.go b/accounts/scwallet/hub.go index d2449bfd81..2ba473252f 100644 --- a/accounts/scwallet/hub.go +++ b/accounts/scwallet/hub.go @@ -51,11 +51,11 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" pcsc "github.com/gballet/go-libpcsclite" + "github.com/tenderly/coreth/accounts" ) // Scheme is the URI prefix for smartcard wallets. diff --git a/accounts/scwallet/wallet.go b/accounts/scwallet/wallet.go index 327339c222..6e706110a4 100644 --- a/accounts/scwallet/wallet.go +++ b/accounts/scwallet/wallet.go @@ -43,14 +43,14 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" pcsc "github.com/gballet/go-libpcsclite" "github.com/status-im/keycard-go/derivationpath" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" ) // ErrPairingPasswordNeeded is returned if opening the smart card requires pairing with a pairing diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index a6f670ea4d..cd58c742dc 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -34,12 +34,12 @@ import ( "regexp" "strings" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/cmd/utils" - "github.com/ava-labs/coreth/internal/flags" "github.com/ethereum/go-ethereum/common/compiler" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/cmd/utils" + "github.com/tenderly/coreth/internal/flags" "github.com/urfave/cli/v2" ) diff --git a/consensus/consensus.go b/consensus/consensus.go index d4e247ceaf..043e261234 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -30,10 +30,10 @@ package consensus import ( "math/big" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) // ChainHeaderReader defines a small collection of methods needed to access the local diff --git a/consensus/dummy/consensus.go b/consensus/dummy/consensus.go index 797966156b..3cccda511a 100644 --- a/consensus/dummy/consensus.go +++ b/consensus/dummy/consensus.go @@ -11,13 +11,13 @@ import ( "time" "github.com/ava-labs/avalanchego/utils/timer/mockable" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) var ( diff --git a/consensus/dummy/consensus_test.go b/consensus/dummy/consensus_test.go index 64a8439817..95f56500b2 100644 --- a/consensus/dummy/consensus_test.go +++ b/consensus/dummy/consensus_test.go @@ -8,8 +8,8 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) func TestVerifyBlockFee(t *testing.T) { diff --git a/consensus/dummy/dynamic_fees.go b/consensus/dummy/dynamic_fees.go index 1f7d375deb..ba46d70752 100644 --- a/consensus/dummy/dynamic_fees.go +++ b/consensus/dummy/dynamic_fees.go @@ -9,10 +9,10 @@ import ( "math/big" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) var ( diff --git a/consensus/dummy/dynamic_fees_test.go b/consensus/dummy/dynamic_fees_test.go index c8218140c0..e7cd1dcd25 100644 --- a/consensus/dummy/dynamic_fees_test.go +++ b/consensus/dummy/dynamic_fees_test.go @@ -8,11 +8,11 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/log" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) func testRollup(t *testing.T, longs []uint64, roll int) { diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index 4d57af555c..3eea5fbf84 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -31,8 +31,8 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) var ( diff --git a/consensus/misc/eip4844/eip4844_test.go b/consensus/misc/eip4844/eip4844_test.go index e66334ed89..19a3c9af31 100644 --- a/consensus/misc/eip4844/eip4844_test.go +++ b/consensus/misc/eip4844/eip4844_test.go @@ -21,7 +21,7 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" ) func TestCalcExcessBlobGas(t *testing.T) { diff --git a/core/bench_test.go b/core/bench_test.go index 34d46e09f7..ded4999a5c 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -31,15 +31,15 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) func BenchmarkInsertChain_empty_memdb(b *testing.B) { diff --git a/core/block_validator.go b/core/block_validator.go index a75eeb01a1..283cee8abf 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -30,11 +30,11 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) // BlockValidator is responsible for validating block headers, uncles and diff --git a/core/blockchain.go b/core/blockchain.go index cac2bb82b9..aa4398d7e4 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -39,24 +39,24 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/internal/version" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/lru" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/internal/version" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" ) var ( diff --git a/core/blockchain_iterator.go b/core/blockchain_iterator.go index e81d4a5761..782c5f7114 100644 --- a/core/blockchain_iterator.go +++ b/core/blockchain_iterator.go @@ -33,7 +33,7 @@ import ( "fmt" "sync" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) type blockAndState struct { diff --git a/core/blockchain_log_test.go b/core/blockchain_log_test.go index 5c7df458d3..f19eac3d93 100644 --- a/core/blockchain_log_test.go +++ b/core/blockchain_log_test.go @@ -8,15 +8,15 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) func TestAcceptedLogsSubscription(t *testing.T) { diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index 4c2f81e14b..5b99a2f7d6 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -27,16 +27,16 @@ package core import ( - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) // CurrentHeader retrieves the current head header of the canonical chain. The diff --git a/core/blockchain_repair_test.go b/core/blockchain_repair_test.go index 9fbf21da6e..03aac7c6b4 100644 --- a/core/blockchain_repair_test.go +++ b/core/blockchain_repair_test.go @@ -34,15 +34,15 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) // rewindTest is a test case for chain rollback upon user request. diff --git a/core/blockchain_sethead_test.go b/core/blockchain_sethead_test.go index 6695ea0464..b0fb98e532 100644 --- a/core/blockchain_sethead_test.go +++ b/core/blockchain_sethead_test.go @@ -32,7 +32,7 @@ package core import ( "testing" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) // verifyNoGaps checks that there are no gaps after the initial set of blocks in diff --git a/core/blockchain_snapshot_test.go b/core/blockchain_snapshot_test.go index 4c2fa821a5..91d16226ac 100644 --- a/core/blockchain_snapshot_test.go +++ b/core/blockchain_snapshot_test.go @@ -38,14 +38,14 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) // snapshotTestBasic wraps the common testing fields in the snapshot tests. diff --git a/core/blockchain_test.go b/core/blockchain_test.go index 069d8fd8fc..0f4245daa9 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -9,18 +9,18 @@ import ( "os" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/state/pruner" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/state/pruner" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/params" ) var ( diff --git a/core/bloom_indexer.go b/core/bloom_indexer.go index ab8bc706f1..e5d6fdba1d 100644 --- a/core/bloom_indexer.go +++ b/core/bloom_indexer.go @@ -20,12 +20,12 @@ import ( "context" "time" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/bitutil" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) const ( diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go index c0422caad5..f5e7edd38b 100644 --- a/core/bloombits/generator.go +++ b/core/bloombits/generator.go @@ -29,7 +29,7 @@ package bloombits import ( "errors" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) var ( diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go index 40a4749c15..ed1000616d 100644 --- a/core/bloombits/generator_test.go +++ b/core/bloombits/generator_test.go @@ -32,7 +32,7 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) // Tests that batched bloom bits are correctly rotated from the input bloom diff --git a/core/chain_indexer.go b/core/chain_indexer.go index 05cbc54c76..340207ca0e 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -35,12 +35,12 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) // ChainIndexerBackend defines the methods needed to process chain segments in diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go index 3edf175d3d..8194cc0396 100644 --- a/core/chain_indexer_test.go +++ b/core/chain_indexer_test.go @@ -35,9 +35,9 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) // Runs multiple tests with randomized parameters. diff --git a/core/chain_makers.go b/core/chain_makers.go index df0175bc9b..b8f5c4014d 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -30,17 +30,17 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) // BlockGen creates blocks for testing. diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index 668cfba6f6..4ebc344442 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -30,14 +30,14 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) func ExampleGenerateChain() { diff --git a/core/error.go b/core/error.go index 461efa3e28..8c3b8045f8 100644 --- a/core/error.go +++ b/core/error.go @@ -29,7 +29,7 @@ package core import ( "errors" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) var ( diff --git a/core/events.go b/core/events.go index 462d26d9ee..9ad589a10c 100644 --- a/core/events.go +++ b/core/events.go @@ -27,8 +27,8 @@ package core import ( - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) // NewTxsEvent is posted when a batch of transactions enter the transaction pool. diff --git a/core/evm.go b/core/evm.go index 896cbfac12..b94ce29e28 100644 --- a/core/evm.go +++ b/core/evm.go @@ -29,13 +29,13 @@ package core import ( "math/big" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/predicate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/predicate" //"github.com/ethereum/go-ethereum/log" ) diff --git a/core/gen_genesis.go b/core/gen_genesis.go index a05cee87f1..7ad2d0e9fc 100644 --- a/core/gen_genesis.go +++ b/core/gen_genesis.go @@ -7,7 +7,7 @@ import ( "errors" "math/big" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" diff --git a/core/genesis.go b/core/genesis.go index bb8de14c80..61ba2df77b 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -34,17 +34,17 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/pathdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/pathdb" ) //go:generate go run github.com/fjl/gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go diff --git a/core/genesis_test.go b/core/genesis_test.go index 5deb4a8bf9..ed4ba69fa7 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -33,19 +33,19 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/contracts/warp" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/utils" "github.com/davecgh/go-spew/spew" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/contracts/warp" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/utils" ) func setupGenesisBlock(db ethdb.Database, triedb *trie.Database, genesis *Genesis, lastAcceptedHash common.Hash) (*params.ChainConfig, common.Hash, error) { diff --git a/core/headerchain.go b/core/headerchain.go index fe8f752d41..3f5c987b45 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -33,13 +33,13 @@ import ( mrand "math/rand" "sync/atomic" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/lru" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) const ( diff --git a/core/headerchain_test.go b/core/headerchain_test.go index b70a9802f0..5fce1e0768 100644 --- a/core/headerchain_test.go +++ b/core/headerchain_test.go @@ -32,13 +32,13 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) func verifyUnbrokenCanonchain(bc *BlockChain) error { diff --git a/core/main_test.go b/core/main_test.go index 1d0e299f4a..0a204af0ba 100644 --- a/core/main_test.go +++ b/core/main_test.go @@ -14,8 +14,8 @@ import ( func TestMain(m *testing.M) { opts := []goleak.Option{ // No good way to shut down these goroutines: - goleak.IgnoreTopFunction("github.com/ava-labs/coreth/core/state/snapshot.(*diskLayer).generate"), - goleak.IgnoreTopFunction("github.com/ava-labs/coreth/metrics.(*meterArbiter).tick"), + goleak.IgnoreTopFunction("github.com/tenderly/coreth/core/state/snapshot.(*diskLayer).generate"), + goleak.IgnoreTopFunction("github.com/tenderly/coreth/metrics.(*meterArbiter).tick"), goleak.IgnoreTopFunction("github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain"), } goleak.VerifyTestMain(m, opts...) diff --git a/core/mkalloc.go b/core/mkalloc.go index f481249c60..f7dc9276fb 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -42,9 +42,9 @@ import ( "os" "strconv" - "github.com/ava-labs/coreth/core" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core" "golang.org/x/exp/slices" ) diff --git a/core/predicate_check.go b/core/predicate_check.go index b4694a251f..cf74fff15c 100644 --- a/core/predicate_check.go +++ b/core/predicate_check.go @@ -8,12 +8,12 @@ import ( "fmt" "github.com/ava-labs/avalanchego/utils/set" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/predicate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/predicate" ) var ErrMissingPredicateContext = errors.New("missing predicate context") diff --git a/core/predicate_check_test.go b/core/predicate_check_test.go index 3d98416fc3..cf4b9af682 100644 --- a/core/predicate_check_test.go +++ b/core/predicate_check_test.go @@ -9,11 +9,11 @@ import ( "github.com/ava-labs/avalanchego/snow/engine/snowman/block" "github.com/ava-labs/avalanchego/utils/set" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/precompileconfig" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/precompileconfig" "go.uber.org/mock/gomock" ) diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index d63da4782a..054651f2f3 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -32,13 +32,13 @@ import ( "errors" "math/big" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) // ReadCanonicalHash retrieves the hash assigned to a canonical block number. diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go index 27c7cf4a95..47728504cf 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -25,10 +25,10 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" "golang.org/x/crypto/sha3" ) diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go index 511fa39d8f..e74b74fa74 100644 --- a/core/rawdb/accessors_indexes.go +++ b/core/rawdb/accessors_indexes.go @@ -30,12 +30,12 @@ import ( "bytes" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) // ReadTxLookupEntry retrieves the positional metadata associated with a transaction diff --git a/core/rawdb/accessors_indexes_test.go b/core/rawdb/accessors_indexes_test.go index 1930d81e91..c604cf1059 100644 --- a/core/rawdb/accessors_indexes_test.go +++ b/core/rawdb/accessors_indexes_test.go @@ -21,11 +21,11 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/internal/blocktest" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/internal/blocktest" ) var newTestHasher = blocktest.NewHasher diff --git a/core/rawdb/accessors_metadata.go b/core/rawdb/accessors_metadata.go index c6ad7645a3..b7a44639e9 100644 --- a/core/rawdb/accessors_metadata.go +++ b/core/rawdb/accessors_metadata.go @@ -30,11 +30,11 @@ import ( "encoding/json" "time" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/params" ) // ReadDatabaseVersion retrieves the version number of the database. diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go index f302c99cb6..224497d47e 100644 --- a/core/rawdb/chain_iterator.go +++ b/core/rawdb/chain_iterator.go @@ -31,12 +31,12 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/prque" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" ) type blockTxHashes struct { diff --git a/core/rawdb/chain_iterator_test.go b/core/rawdb/chain_iterator_test.go index 178946e7f8..5a0f4b6731 100644 --- a/core/rawdb/chain_iterator_test.go +++ b/core/rawdb/chain_iterator_test.go @@ -33,8 +33,8 @@ import ( "sync" "testing" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) func TestChainIterator(t *testing.T) { diff --git a/core/rawdb/schema.go b/core/rawdb/schema.go index 71dff23127..995773c4b1 100644 --- a/core/rawdb/schema.go +++ b/core/rawdb/schema.go @@ -32,9 +32,9 @@ import ( "encoding/binary" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/metrics" ) // The fields below define the low level database schema prefixing. diff --git a/core/rlp_test.go b/core/rlp_test.go index 9c9614f800..9b8e8f2604 100644 --- a/core/rlp_test.go +++ b/core/rlp_test.go @@ -31,12 +31,12 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" "golang.org/x/crypto/sha3" ) diff --git a/core/sender_cacher.go b/core/sender_cacher.go index a1c09ec362..e42988cd02 100644 --- a/core/sender_cacher.go +++ b/core/sender_cacher.go @@ -29,7 +29,7 @@ package core import ( "sync" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" ) // txSenderCacherRequest is a request for recovering transaction senders with a diff --git a/core/state/database.go b/core/state/database.go index f65fd75821..ca40c443b5 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -30,16 +30,16 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/utils" "github.com/crate-crypto/go-ipa/banderwagon" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/lru" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/utils" ) const ( diff --git a/core/state/dump.go b/core/state/dump.go index a18184ca8c..1ce699cc4e 100644 --- a/core/state/dump.go +++ b/core/state/dump.go @@ -31,12 +31,12 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) // DumpConfig is a set of options to control what portions of the state will be diff --git a/core/state/iterator.go b/core/state/iterator.go index 6db22d9634..802708bdc1 100644 --- a/core/state/iterator.go +++ b/core/state/iterator.go @@ -31,10 +31,10 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) // nodeIterator is an iterator to traverse the entire state trie post-order, diff --git a/core/state/iterator_test.go b/core/state/iterator_test.go index 53590d040e..83bebfa420 100644 --- a/core/state/iterator_test.go +++ b/core/state/iterator_test.go @@ -29,9 +29,9 @@ package state import ( "testing" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/rawdb" ) // Tests that the node iterator indeed walks over the entire database contents. diff --git a/core/state/metrics.go b/core/state/metrics.go index 5e2f060c3a..01f9fd6089 100644 --- a/core/state/metrics.go +++ b/core/state/metrics.go @@ -26,7 +26,7 @@ package state -import "github.com/ava-labs/coreth/metrics" +import "github.com/tenderly/coreth/metrics" var ( accountUpdatedMeter = metrics.NewRegisteredMeter("state/update/account", nil) diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go index 158077a4a9..9fde3e640c 100644 --- a/core/state/pruner/bloom.go +++ b/core/state/pruner/bloom.go @@ -31,10 +31,10 @@ import ( "errors" "os" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" bloomfilter "github.com/holiman/bloomfilter/v2" + "github.com/tenderly/coreth/core/rawdb" ) // stateBloomHasher is a wrapper around a byte blob to satisfy the interface API diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index 27f7be0b1f..199d6b0179 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -37,14 +37,14 @@ import ( "strings" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) const ( diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go index 64a2cd3421..5d3c5c932d 100644 --- a/core/state/snapshot/conversion.go +++ b/core/state/snapshot/conversion.go @@ -35,13 +35,13 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) // trieKV represents a trie key-value pair diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go index 0674839fe4..d9c8db3fc2 100644 --- a/core/state/snapshot/difflayer.go +++ b/core/state/snapshot/difflayer.go @@ -35,10 +35,10 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" bloomfilter "github.com/holiman/bloomfilter/v2" + "github.com/tenderly/coreth/core/types" "golang.org/x/exp/slices" ) diff --git a/core/state/snapshot/difflayer_test.go b/core/state/snapshot/difflayer_test.go index 24fc3fdc69..432eda6225 100644 --- a/core/state/snapshot/difflayer_test.go +++ b/core/state/snapshot/difflayer_test.go @@ -32,10 +32,10 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb/memorydb" + "github.com/tenderly/coreth/utils" ) func copyDestructs(destructs map[common.Hash]struct{}) map[common.Hash]struct{} { diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go index b2a0aa4f5a..e9c2fea4e9 100644 --- a/core/state/snapshot/disklayer.go +++ b/core/state/snapshot/disklayer.go @@ -31,13 +31,13 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" ) // diskLayer is a low level persistent snapshot built on top of a key-value store. diff --git a/core/state/snapshot/disklayer_test.go b/core/state/snapshot/disklayer_test.go index 3dede62341..5bd8cdf0f0 100644 --- a/core/state/snapshot/disklayer_test.go +++ b/core/state/snapshot/disklayer_test.go @@ -30,10 +30,10 @@ import ( "bytes" "testing" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" ) // reverse reverses the contents of a byte slice. It's used to update random accs diff --git a/core/state/snapshot/generate.go b/core/state/snapshot/generate.go index f051fcd5c4..d846664e16 100644 --- a/core/state/snapshot/generate.go +++ b/core/state/snapshot/generate.go @@ -31,14 +31,14 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" ) const ( diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go index c805348925..fe99f1ab89 100644 --- a/core/state/snapshot/generate_test.go +++ b/core/state/snapshot/generate_test.go @@ -33,16 +33,16 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/trie/trienode" "golang.org/x/crypto/sha3" ) diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go index b7cf84ec91..7f95a0c55e 100644 --- a/core/state/snapshot/iterator.go +++ b/core/state/snapshot/iterator.go @@ -31,9 +31,9 @@ import ( "fmt" "sort" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" ) // Iterator is an iterator to step over all the accounts or the specific diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go index 7fc374a15a..2486be257f 100644 --- a/core/state/snapshot/iterator_test.go +++ b/core/state/snapshot/iterator_test.go @@ -34,8 +34,8 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" ) // TestAccountIteratorBasics tests some simple single-layer(diff and disk) iteration diff --git a/core/state/snapshot/journal.go b/core/state/snapshot/journal.go index cc73974ef0..20fa9b4f43 100644 --- a/core/state/snapshot/journal.go +++ b/core/state/snapshot/journal.go @@ -32,12 +32,12 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie" ) // journalGenerator is a disk layer entry containing the generator progress marker. diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go index f0d25bc86e..ef06618ada 100644 --- a/core/state/snapshot/snapshot.go +++ b/core/state/snapshot/snapshot.go @@ -34,13 +34,13 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/trie" ) const ( diff --git a/core/state/snapshot/snapshot_ext.go b/core/state/snapshot/snapshot_ext.go index 1274e4805d..93f838b81e 100644 --- a/core/state/snapshot/snapshot_ext.go +++ b/core/state/snapshot/snapshot_ext.go @@ -3,9 +3,9 @@ package snapshot import ( "time" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/utils" ) func (t *Tree) DiskAccountIterator(seek common.Hash) AccountIterator { diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go index 7ca901c241..0c4bb2a6a9 100644 --- a/core/state/snapshot/snapshot_test.go +++ b/core/state/snapshot/snapshot_test.go @@ -34,10 +34,10 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) // randomHash generates a random blob of data and returns it as a hash. diff --git a/core/state/snapshot/utils.go b/core/state/snapshot/utils.go index f9e2db5ad6..c05f36bcd0 100644 --- a/core/state/snapshot/utils.go +++ b/core/state/snapshot/utils.go @@ -31,10 +31,10 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" ) // CheckDanglingStorage iterates the snap storage data, and verifies that all diff --git a/core/state/snapshot/wipe.go b/core/state/snapshot/wipe.go index 37963032e6..7331f7b7dd 100644 --- a/core/state/snapshot/wipe.go +++ b/core/state/snapshot/wipe.go @@ -30,10 +30,10 @@ import ( "bytes" "time" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" ) // WipeSnapshot starts a goroutine to iterate over the entire key-value database diff --git a/core/state/snapshot/wipe_test.go b/core/state/snapshot/wipe_test.go index 74afec5fce..7a439eb241 100644 --- a/core/state/snapshot/wipe_test.go +++ b/core/state/snapshot/wipe_test.go @@ -30,9 +30,9 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb/memorydb" + "github.com/tenderly/coreth/core/rawdb" ) // Tests that given a database with random data content, all parts of a snapshot diff --git a/core/state/state_object.go b/core/state/state_object.go index e8c8879871..49fb05f02b 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -33,12 +33,12 @@ import ( "math/big" "time" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/trie/trienode" ) type Code []byte diff --git a/core/state/state_test.go b/core/state/state_test.go index ad096e9cbf..8cf6339085 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -32,12 +32,12 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) type stateEnv struct { diff --git a/core/state/statedb.go b/core/state/statedb.go index 6d49444cfb..b7fbe9464b 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -33,18 +33,18 @@ import ( "sort" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/predicate" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/predicate" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) const ( diff --git a/core/state/statedb_fuzz_test.go b/core/state/statedb_fuzz_test.go index 7187d574ec..0cfc66bd5d 100644 --- a/core/state/statedb_fuzz_test.go +++ b/core/state/statedb_fuzz_test.go @@ -39,15 +39,15 @@ import ( "testing" "testing/quick" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/trie/triestate" ) // A stateTest checks that the state changes are correctly captured. Instances diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index 19f1a5198f..0d07376fa0 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -40,17 +40,17 @@ import ( "testing" "testing/quick" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/uint256" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/trie/trienode" ) // Tests that updating a state trie does not leak any database writes prior to diff --git a/core/state/sync_test.go b/core/state/sync_test.go index 22eda7fa8d..3be58946e3 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -19,14 +19,14 @@ package state import ( "math/big" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" ) // testAccount is the data associated with an account used by the state tests. diff --git a/core/state/test_statedb.go b/core/state/test_statedb.go index c34fdec80d..4d2f786896 100644 --- a/core/state/test_statedb.go +++ b/core/state/test_statedb.go @@ -6,10 +6,10 @@ package state import ( "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/precompile/contract" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/precompile/contract" ) func NewTestStateDB(t testing.TB) contract.StateDB { diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 5b01083f59..0b2bc7671d 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -30,10 +30,10 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/utils" ) // triePrefetchMetricsPrefix is the prefix under which to publish the metrics. diff --git a/core/state/trie_prefetcher_test.go b/core/state/trie_prefetcher_test.go index 285a7b16da..d22226f9f7 100644 --- a/core/state/trie_prefetcher_test.go +++ b/core/state/trie_prefetcher_test.go @@ -31,9 +31,9 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) const maxConcurrency = 4 diff --git a/core/state_manager.go b/core/state_manager.go index 8fc7de11c3..dba3088752 100644 --- a/core/state_manager.go +++ b/core/state_manager.go @@ -31,9 +31,9 @@ import ( "math/rand" "time" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/types" ) func init() { diff --git a/core/state_manager_test.go b/core/state_manager_test.go index 2fb47add49..3000e568fc 100644 --- a/core/state_manager_test.go +++ b/core/state_manager_test.go @@ -7,7 +7,7 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/assert" diff --git a/core/state_processor.go b/core/state_processor.go index 4304744e3d..c1aa36309d 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -31,16 +31,16 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/modules" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/modules" ) // StateProcessor is a basic Processor, which takes care of transitioning diff --git a/core/state_processor_test.go b/core/state_processor_test.go index f6dcb789a6..a0b1453bea 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -31,18 +31,18 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/holiman/uint256" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" "golang.org/x/crypto/sha3" ) diff --git a/core/state_transition.go b/core/state_transition.go index 3bb37897e7..9df2378bc3 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -32,13 +32,13 @@ import ( "math" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" cmath "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" + "github.com/tenderly/coreth/vmerrs" ) // ExecutionResult includes all output after executing given evm diff --git a/core/state_transition_test.go b/core/state_transition_test.go index 9aae990e2a..ddff8d5f5c 100644 --- a/core/state_transition_test.go +++ b/core/state_transition_test.go @@ -31,16 +31,16 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" ethCrypto "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) var ( diff --git a/core/test_blockchain.go b/core/test_blockchain.go index 7c0807b829..397086c188 100644 --- a/core/test_blockchain.go +++ b/core/test_blockchain.go @@ -10,16 +10,16 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) var TestCallbacks = dummy.ConsensusCallbacks{ diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index ad28c69ba4..e79a29791f 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -39,20 +39,20 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/billy" "github.com/holiman/uint256" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/params" ) const ( diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index ecd15f828f..b2442f2344 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -39,14 +39,6 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/kzg4844" @@ -55,6 +47,14 @@ import ( "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/billy" "github.com/holiman/uint256" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) var ( diff --git a/core/txpool/blobpool/evictheap_test.go b/core/txpool/blobpool/evictheap_test.go index 69b02447bf..f4f96e9f79 100644 --- a/core/txpool/blobpool/evictheap_test.go +++ b/core/txpool/blobpool/evictheap_test.go @@ -31,9 +31,9 @@ import ( mrand "math/rand" "testing" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/holiman/uint256" + "github.com/tenderly/coreth/params" ) var rand = mrand.New(mrand.NewSource(1)) diff --git a/core/txpool/blobpool/interface.go b/core/txpool/blobpool/interface.go index c544efa872..c114318bee 100644 --- a/core/txpool/blobpool/interface.go +++ b/core/txpool/blobpool/interface.go @@ -27,10 +27,10 @@ package blobpool import ( - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) // BlockChain defines the minimal set of methods needed to back a blob pool with diff --git a/core/txpool/blobpool/limbo.go b/core/txpool/blobpool/limbo.go index bb00d920e7..42d018fb7d 100644 --- a/core/txpool/blobpool/limbo.go +++ b/core/txpool/blobpool/limbo.go @@ -29,11 +29,11 @@ package blobpool import ( "errors" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/billy" + "github.com/tenderly/coreth/core/types" ) // limboBlob is a wrapper around an opaque blobset that also contains the tx hash diff --git a/core/txpool/blobpool/metrics.go b/core/txpool/blobpool/metrics.go index 6e98de0855..501204459a 100644 --- a/core/txpool/blobpool/metrics.go +++ b/core/txpool/blobpool/metrics.go @@ -26,7 +26,7 @@ package blobpool -import "github.com/ava-labs/coreth/metrics" +import "github.com/tenderly/coreth/metrics" var ( // datacapGauge tracks the user's configured capacity for the blob pool. It diff --git a/core/txpool/legacypool/journal.go b/core/txpool/legacypool/journal.go index 68769933bd..8297a2b22a 100644 --- a/core/txpool/legacypool/journal.go +++ b/core/txpool/legacypool/journal.go @@ -32,10 +32,10 @@ import ( "io/fs" "os" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" ) // errNoActiveJournal is returned if a transaction is attempted to be inserted diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 3ef445d8c6..a36cf88a58 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -36,18 +36,18 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/prque" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" ) const ( diff --git a/core/txpool/legacypool/legacypool2_test.go b/core/txpool/legacypool/legacypool2_test.go index 3110f66caf..8542d7e885 100644 --- a/core/txpool/legacypool/legacypool2_test.go +++ b/core/txpool/legacypool/legacypool2_test.go @@ -30,12 +30,12 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" ) func pricedValuedTransaction(nonce uint64, value int64, gaslimit uint64, gasprice *big.Int, key *ecdsa.PrivateKey) *types.Transaction { diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index f2bc9d402e..881a523c99 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -39,17 +39,17 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" ) var ( diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index f544556cdb..0a25da486d 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -35,8 +35,8 @@ import ( "sync/atomic" "time" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) // nonceHeap is a heap.Interface implementation over 64bit unsigned integers for diff --git a/core/txpool/legacypool/list_test.go b/core/txpool/legacypool/list_test.go index d8aaa31644..c17c0f2b2b 100644 --- a/core/txpool/legacypool/list_test.go +++ b/core/txpool/legacypool/list_test.go @@ -31,8 +31,8 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/types" ) // Tests that transactions can be added to strict lists and list contents and diff --git a/core/txpool/legacypool/noncer.go b/core/txpool/legacypool/noncer.go index dd880a6ba3..4003e59031 100644 --- a/core/txpool/legacypool/noncer.go +++ b/core/txpool/legacypool/noncer.go @@ -29,8 +29,8 @@ package legacypool import ( "sync" - "github.com/ava-labs/coreth/core/state" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state" ) // noncer is a tiny virtual state database to manage the executable nonces of diff --git a/core/txpool/subpool.go b/core/txpool/subpool.go index 28064a2fd8..440e570d0c 100644 --- a/core/txpool/subpool.go +++ b/core/txpool/subpool.go @@ -30,10 +30,10 @@ import ( "math/big" "time" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" ) // LazyTransaction contains a small subset of the transaction properties that is diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 847576a05c..a88d635416 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -33,12 +33,12 @@ import ( "sync" "sync/atomic" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" ) var ( diff --git a/core/txpool/validation.go b/core/txpool/validation.go index 56cc1de453..bcbb3a5569 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -31,14 +31,14 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto/kzg4844" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) // ValidationOptions define certain differences between transaction validation diff --git a/core/types.go b/core/types.go index 77e6dd4d2b..4d3931e32d 100644 --- a/core/types.go +++ b/core/types.go @@ -27,9 +27,9 @@ package core import ( - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" ) // Validator is an interface which defines the standard for block validation. It diff --git a/core/types/block_test.go b/core/types/block_test.go index 6da8f441f9..71dae393bd 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -32,12 +32,12 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/internal/blocktest" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/internal/blocktest" + "github.com/tenderly/coreth/params" ) // This test has been modified from https://github.com/ethereum/go-ethereum/blob/v1.9.21/core/types/block_test.go#L35 to fit diff --git a/core/types/hashing_test.go b/core/types/hashing_test.go index 17874cf747..f83cb40e36 100644 --- a/core/types/hashing_test.go +++ b/core/types/hashing_test.go @@ -34,13 +34,13 @@ import ( mrand "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) func TestDeriveSha(t *testing.T) { diff --git a/core/types/receipt.go b/core/types/receipt.go index 1686b8d217..23e9f2b236 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -34,11 +34,11 @@ import ( "math/big" "unsafe" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/params" ) //go:generate go run github.com/fjl/gencodec -type Receipt -field-override receiptMarshaling -out gen_receipt_json.go diff --git a/core/types/receipt_test.go b/core/types/receipt_test.go index 32da193c60..5abbbcb4b5 100644 --- a/core/types/receipt_test.go +++ b/core/types/receipt_test.go @@ -34,11 +34,11 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/uint256" "github.com/kylelemons/godebug/diff" + "github.com/tenderly/coreth/params" ) var ( diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index ac6e432893..60a897b3f7 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -32,9 +32,9 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/params" ) var ErrInvalidChainId = errors.New("invalid chain id for signer") diff --git a/core/types/tx_blob.go b/core/types/tx_blob.go index 631ddaa511..0a05207386 100644 --- a/core/types/tx_blob.go +++ b/core/types/tx_blob.go @@ -21,11 +21,11 @@ import ( "crypto/sha256" "math/big" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto/kzg4844" "github.com/ethereum/go-ethereum/rlp" "github.com/holiman/uint256" + "github.com/tenderly/coreth/params" ) // BlobTx represents an EIP-4844 transaction. diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 77d0ecc808..6094cc5a30 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -33,10 +33,6 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" @@ -44,6 +40,10 @@ import ( "github.com/ethereum/go-ethereum/crypto/bls12381" "github.com/ethereum/go-ethereum/crypto/bn256" "github.com/ethereum/go-ethereum/crypto/kzg4844" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/vmerrs" "golang.org/x/crypto/ripemd160" ) diff --git a/core/vm/contracts_stateful.go b/core/vm/contracts_stateful.go index 64a34ffcf5..f14899cb3e 100644 --- a/core/vm/contracts_stateful.go +++ b/core/vm/contracts_stateful.go @@ -4,8 +4,8 @@ package vm import ( - "github.com/ava-labs/coreth/precompile/contract" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/precompile/contract" ) // wrappedPrecompiledContract implements StatefulPrecompiledContract by wrapping stateless native precompiled contracts diff --git a/core/vm/contracts_stateful_native_asset.go b/core/vm/contracts_stateful_native_asset.go index 6791efe2e7..e369e6611a 100644 --- a/core/vm/contracts_stateful_native_asset.go +++ b/core/vm/contracts_stateful_native_asset.go @@ -7,10 +7,10 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/holiman/uint256" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/vmerrs" ) // PrecompiledContractsApricot contains the default set of pre-compiled Ethereum diff --git a/core/vm/contracts_stateful_test.go b/core/vm/contracts_stateful_test.go index ef3eb24a8e..e44bfa15f2 100644 --- a/core/vm/contracts_stateful_test.go +++ b/core/vm/contracts_stateful_test.go @@ -7,13 +7,13 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) func TestPrecompiledContractSpendsGas(t *testing.T) { diff --git a/core/vm/eips.go b/core/vm/eips.go index de98b10850..3b60f6f966 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -30,10 +30,10 @@ import ( "fmt" "sort" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/holiman/uint256" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) var activators = map[int]func(*JumpTable){ diff --git a/core/vm/evm.go b/core/vm/evm.go index 9cfc38413d..2b9f075bf7 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -32,17 +32,17 @@ import ( "time" "github.com/ava-labs/avalanchego/snow" - "github.com/ava-labs/coreth/constants" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/predicate" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/holiman/uint256" + "github.com/tenderly/coreth/constants" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/predicate" + "github.com/tenderly/coreth/vmerrs" ) var ( diff --git a/core/vm/gas.go b/core/vm/gas.go index 1a195acf2a..1c4f2cb157 100644 --- a/core/vm/gas.go +++ b/core/vm/gas.go @@ -27,8 +27,8 @@ package vm import ( - "github.com/ava-labs/coreth/vmerrs" "github.com/holiman/uint256" + "github.com/tenderly/coreth/vmerrs" ) // Gas costs diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index f97d0fd1ba..1df45f5ed6 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -29,10 +29,10 @@ package vm import ( "errors" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) // memoryGasCost calculates the quadratic gas for memory expansion. It does so diff --git a/core/vm/gas_table_test.go b/core/vm/gas_table_test.go index a6ae777ddc..7a03094690 100644 --- a/core/vm/gas_table_test.go +++ b/core/vm/gas_table_test.go @@ -33,13 +33,13 @@ import ( "sort" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) func TestMemoryGasCost(t *testing.T) { diff --git a/core/vm/instructions.go b/core/vm/instructions.go index e31282dc2d..47a6ebb356 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -29,11 +29,11 @@ package vm import ( "errors" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/holiman/uint256" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) func opAdd(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) { diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index 1c6c874c37..a45b88c9d9 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -35,15 +35,15 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" "github.com/holiman/uint256" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) type TwoOperandTestcase struct { diff --git a/core/vm/interface.go b/core/vm/interface.go index b044b74482..e0848dc9d5 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -29,9 +29,9 @@ package vm import ( "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) // StateDB is an EVM database for full state querying. diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index bbcac5b6a4..36fc543860 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -27,11 +27,11 @@ package vm import ( - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/vmerrs" ) var BuiltinAddr = common.Address{ diff --git a/core/vm/interpreter_test.go b/core/vm/interpreter_test.go index 018d7af188..9419bfd9f1 100644 --- a/core/vm/interpreter_test.go +++ b/core/vm/interpreter_test.go @@ -31,12 +31,12 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) var loopInterruptTests = []string{ diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index c2cbf8c668..73bc44b0e3 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -29,7 +29,7 @@ package vm import ( "fmt" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" ) type ( diff --git a/core/vm/jump_table_export.go b/core/vm/jump_table_export.go index cb57e20b1b..b6eb2c10db 100644 --- a/core/vm/jump_table_export.go +++ b/core/vm/jump_table_export.go @@ -17,7 +17,7 @@ package vm import ( - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" ) // LookupInstructionSet returns the instruction set for the fork configured by diff --git a/core/vm/operations_acl.go b/core/vm/operations_acl.go index 5e946590d5..2d97577ed6 100644 --- a/core/vm/operations_acl.go +++ b/core/vm/operations_acl.go @@ -29,10 +29,10 @@ package vm import ( "errors" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) func makeGasSStoreFunc() gasFunc { diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 41fa4f54d3..d8faa594ff 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -27,8 +27,8 @@ package runtime import ( - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/vm" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/vm" ) func NewEnv(cfg *Config) *vm.EVM { diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 338c1c53b3..77edd9d214 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -30,13 +30,13 @@ import ( "math" "math/big" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) // Config is a basic type specifying certain configuration flags for running diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go index 9850e283be..22fdf1becc 100644 --- a/core/vm/runtime/runtime_example_test.go +++ b/core/vm/runtime/runtime_example_test.go @@ -29,8 +29,8 @@ package runtime_test import ( "fmt" - "github.com/ava-labs/coreth/core/vm/runtime" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/vm/runtime" ) func ExampleExecute() { diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 624da0f71f..3a2159d69f 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -33,21 +33,21 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/asm" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/params" // force-load js tracers to trigger registration - _ "github.com/ava-labs/coreth/eth/tracers/js" + _ "github.com/tenderly/coreth/eth/tracers/js" ) func TestDefaults(t *testing.T) { diff --git a/core/vm/stack_table.go b/core/vm/stack_table.go index 487acaefdb..0ee3c12611 100644 --- a/core/vm/stack_table.go +++ b/core/vm/stack_table.go @@ -27,7 +27,7 @@ package vm import ( - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" ) func minSwapStack(n int) int { diff --git a/eth/api_admin.go b/eth/api_admin.go index f8945c1d2d..7c252ee0bd 100644 --- a/eth/api_admin.go +++ b/eth/api_admin.go @@ -34,9 +34,9 @@ import ( "os" "strings" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" ) // AdminAPI is the collection of Ethereum full node related APIs for node diff --git a/eth/api_backend.go b/eth/api_backend.go index f64466cede..7fa9984da2 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -32,22 +32,22 @@ import ( "math/big" "time" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/gasprice" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/gasprice" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) var ErrUnfinalizedData = errors.New("cannot query unfinalized data") diff --git a/eth/api_backend_test.go b/eth/api_backend_test.go index e58fab0954..09504255e7 100644 --- a/eth/api_backend_test.go +++ b/eth/api_backend_test.go @@ -30,11 +30,11 @@ import ( "fmt" "testing" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/types" ) func TestUnprotectedAllowed(t *testing.T) { diff --git a/eth/api_debug.go b/eth/api_debug.go index 7269fab769..4eff821de4 100644 --- a/eth/api_debug.go +++ b/eth/api_debug.go @@ -32,17 +32,17 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/rpc" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/rpc" + "github.com/tenderly/coreth/trie" ) // DebugAPI is the collection of Ethereum full node APIs for debugging the diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index c67284fb6c..fce89537e1 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -34,10 +34,10 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" "github.com/davecgh/go-spew/spew" diff --git a/eth/backend.go b/eth/backend.go index 1dbb48fd19..f6de545b97 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -35,31 +35,31 @@ import ( "time" "github.com/ava-labs/avalanchego/utils/timer/mockable" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/pruner" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/txpool/legacypool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/ethconfig" - "github.com/ava-labs/coreth/eth/filters" - "github.com/ava-labs/coreth/eth/gasprice" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/internal/shutdowncheck" - "github.com/ava-labs/coreth/miner" - "github.com/ava-labs/coreth/node" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/pruner" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/txpool/legacypool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/ethconfig" + "github.com/tenderly/coreth/eth/filters" + "github.com/tenderly/coreth/eth/gasprice" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/internal/shutdowncheck" + "github.com/tenderly/coreth/miner" + "github.com/tenderly/coreth/node" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // Config contains the configuration options of the ETH protocol. diff --git a/eth/bloombits.go b/eth/bloombits.go index ecc0aaf157..6ec7e564c1 100644 --- a/eth/bloombits.go +++ b/eth/bloombits.go @@ -29,8 +29,8 @@ package eth import ( "time" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common/bitutil" + "github.com/tenderly/coreth/core/rawdb" ) const ( diff --git a/eth/chain_with_final_block.go b/eth/chain_with_final_block.go index 6e2afba475..36d3db1493 100644 --- a/eth/chain_with_final_block.go +++ b/eth/chain_with_final_block.go @@ -2,8 +2,8 @@ package eth import ( - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" ) const blocksToKeep = 604_800 // Approx. 2 weeks worth of blocks assuming 2s block time diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 7f28c81721..64f4d2b99f 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -29,13 +29,13 @@ package ethconfig import ( "time" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/txpool/blobpool" - "github.com/ava-labs/coreth/core/txpool/legacypool" - "github.com/ava-labs/coreth/eth/gasprice" - "github.com/ava-labs/coreth/miner" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/txpool/blobpool" + "github.com/tenderly/coreth/core/txpool/legacypool" + "github.com/tenderly/coreth/eth/gasprice" + "github.com/tenderly/coreth/miner" + "github.com/tenderly/coreth/params" ) // DefaultFullGPOConfig contains default gasprice oracle settings for full node. diff --git a/eth/filters/api.go b/eth/filters/api.go index c51117968d..463d2a7c88 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -35,13 +35,13 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/rpc" ) var ( diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 72838b4d8c..d976ef0bb5 100644 --- a/eth/filters/api_test.go +++ b/eth/filters/api_test.go @@ -21,8 +21,8 @@ import ( "fmt" "testing" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/rpc" ) func TestUnmarshalJSONNewFilterArgs(t *testing.T) { diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index 77f0567870..1e80d8b197 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -32,12 +32,12 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/bitutil" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" ) func BenchmarkBloomBits512(b *testing.B) { diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 6b77ee68e1..503f63ac30 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -32,10 +32,10 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/rpc" ) // Filter can be used to retrieve and filter logs. diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 3987826a88..78b9abb2b3 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -34,16 +34,16 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // Config represents the configuration of the filter system. diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 65774dc4e8..89ff01c3ee 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -37,19 +37,19 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) type testBackend struct { diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index b4867ab1a9..67705f3ca1 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -34,18 +34,18 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" + "github.com/tenderly/coreth/trie" ) func makeReceipt(addr common.Address) *types.Receipt { diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index b4699c07c8..6c0cae325e 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -33,14 +33,14 @@ import ( "math" "math/big" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) // Options are the contextual parameters to execute the requested call. diff --git a/eth/gasprice/fee_info_provider.go b/eth/gasprice/fee_info_provider.go index 61a874edb9..08320225b9 100644 --- a/eth/gasprice/fee_info_provider.go +++ b/eth/gasprice/fee_info_provider.go @@ -30,10 +30,10 @@ import ( "context" "math/big" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/rpc" lru "github.com/hashicorp/golang-lru" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/rpc" ) // additional slots in the header cache to allow processing queries diff --git a/eth/gasprice/fee_info_provider_test.go b/eth/gasprice/fee_info_provider_test.go index 182c3378ea..8a7eea7a34 100644 --- a/eth/gasprice/fee_info_provider_test.go +++ b/eth/gasprice/fee_info_provider_test.go @@ -9,11 +9,11 @@ import ( "sync" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" ) func TestFeeInfoProvider(t *testing.T) { diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go index 521d48e98e..b8807fbe08 100644 --- a/eth/gasprice/feehistory.go +++ b/eth/gasprice/feehistory.go @@ -33,10 +33,10 @@ import ( "math/big" "slices" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/rpc" ) var ( diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go index f8234d1d18..fba8ee0bbe 100644 --- a/eth/gasprice/feehistory_test.go +++ b/eth/gasprice/feehistory_test.go @@ -32,13 +32,13 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) func TestFeeHistory(t *testing.T) { diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 31a2c7b554..610b775504 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -32,16 +32,16 @@ import ( "sync" "github.com/ava-labs/avalanchego/utils/timer/mockable" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/lru" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" "golang.org/x/exp/slices" ) diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go index 82941c015e..835d3768d1 100644 --- a/eth/gasprice/gasprice_test.go +++ b/eth/gasprice/gasprice_test.go @@ -32,18 +32,18 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/event" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) var ( diff --git a/eth/state_accessor.go b/eth/state_accessor.go index 60d2849160..a4615116c6 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -32,15 +32,15 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/trie" ) // noopReleaser is returned in case there is no operation expected diff --git a/eth/tracers/api.go b/eth/tracers/api.go index f596bf2638..7c3a15927f 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -37,20 +37,20 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) const ( diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index ecf4741dc6..ff82e084d1 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -37,21 +37,21 @@ import ( "sync/atomic" "testing" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" "golang.org/x/exp/slices" ) diff --git a/eth/tracers/internal/tracetest/calltrace_test.go b/eth/tracers/internal/tracetest/calltrace_test.go index e3f1b1a0cc..e18b81f87f 100644 --- a/eth/tracers/internal/tracetest/calltrace_test.go +++ b/eth/tracers/internal/tracetest/calltrace_test.go @@ -34,17 +34,17 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/tests" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/tests" ) type callContext struct { diff --git a/eth/tracers/internal/tracetest/flat_calltrace_test.go b/eth/tracers/internal/tracetest/flat_calltrace_test.go index c7e06f6e58..e47ce899ac 100644 --- a/eth/tracers/internal/tracetest/flat_calltrace_test.go +++ b/eth/tracers/internal/tracetest/flat_calltrace_test.go @@ -19,17 +19,17 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/tests" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/tests" // Force-load the native, to trigger registration - "github.com/ava-labs/coreth/eth/tracers" + "github.com/tenderly/coreth/eth/tracers" ) // flatCallTrace is the result of a callTracerParity run. diff --git a/eth/tracers/internal/tracetest/prestate_test.go b/eth/tracers/internal/tracetest/prestate_test.go index e84d34f5ef..89c8335a52 100644 --- a/eth/tracers/internal/tracetest/prestate_test.go +++ b/eth/tracers/internal/tracetest/prestate_test.go @@ -34,13 +34,13 @@ import ( "strings" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/tests" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/tests" ) // prestateTrace is the result of a prestateTrace run. diff --git a/eth/tracers/internal/tracetest/util.go b/eth/tracers/internal/tracetest/util.go index 3cecbf84ab..cacbd573e9 100644 --- a/eth/tracers/internal/tracetest/util.go +++ b/eth/tracers/internal/tracetest/util.go @@ -14,8 +14,8 @@ import ( "unicode" // Force-load native and js packages, to trigger registration - _ "github.com/ava-labs/coreth/eth/tracers/js" - _ "github.com/ava-labs/coreth/eth/tracers/native" + _ "github.com/tenderly/coreth/eth/tracers/js" + _ "github.com/tenderly/coreth/eth/tracers/native" ) // To generate a new callTracer test, copy paste the makeTest method below into diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go index 92b9beeed4..119001ed7d 100644 --- a/eth/tracers/js/goja.go +++ b/eth/tracers/js/goja.go @@ -34,12 +34,12 @@ import ( "github.com/dop251/goja" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - jsassets "github.com/ava-labs/coreth/eth/tracers/js/internal/tracers" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + jsassets "github.com/tenderly/coreth/eth/tracers/js/internal/tracers" ) var assetTracers = make(map[string]string) diff --git a/eth/tracers/js/tracer_test.go b/eth/tracers/js/tracer_test.go index b0bc34ba0e..82d664560c 100644 --- a/eth/tracers/js/tracer_test.go +++ b/eth/tracers/js/tracer_test.go @@ -34,11 +34,11 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/params" ) type account struct{} diff --git a/eth/tracers/logger/access_list_tracer.go b/eth/tracers/logger/access_list_tracer.go index e2bb12f2d7..a761a33ed6 100644 --- a/eth/tracers/logger/access_list_tracer.go +++ b/eth/tracers/logger/access_list_tracer.go @@ -19,9 +19,9 @@ package logger import ( "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" ) // accessList is an accumulator for the set of accounts and storage slots an EVM diff --git a/eth/tracers/logger/gen_structlog.go b/eth/tracers/logger/gen_structlog.go index c41d569a96..fe5b34d558 100644 --- a/eth/tracers/logger/gen_structlog.go +++ b/eth/tracers/logger/gen_structlog.go @@ -5,7 +5,7 @@ package logger import ( "encoding/json" - "github.com/ava-labs/coreth/core/vm" + "github.com/tenderly/coreth/core/vm" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go index d94ffd3cf7..2fb2665be3 100644 --- a/eth/tracers/logger/logger.go +++ b/eth/tracers/logger/logger.go @@ -25,14 +25,14 @@ import ( "strings" "sync/atomic" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/holiman/uint256" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/vmerrs" ) // Storage represents a contract's storage. diff --git a/eth/tracers/logger/logger_json.go b/eth/tracers/logger/logger_json.go index 3b2b783252..e677cf67c6 100644 --- a/eth/tracers/logger/logger_json.go +++ b/eth/tracers/logger/logger_json.go @@ -21,9 +21,9 @@ import ( "io" "math/big" - "github.com/ava-labs/coreth/core/vm" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/core/vm" ) type JSONLogger struct { diff --git a/eth/tracers/logger/logger_test.go b/eth/tracers/logger/logger_test.go index 2d70cc5f8c..356c010c57 100644 --- a/eth/tracers/logger/logger_test.go +++ b/eth/tracers/logger/logger_test.go @@ -22,11 +22,11 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) type dummyContractRef struct { diff --git a/eth/tracers/native/4byte.go b/eth/tracers/native/4byte.go index 113dfa3a4a..8c6811a1b2 100644 --- a/eth/tracers/native/4byte.go +++ b/eth/tracers/native/4byte.go @@ -32,9 +32,9 @@ import ( "strconv" "sync/atomic" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" ) func init() { diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go index 65914df1c8..4c135d8a47 100644 --- a/eth/tracers/native/call.go +++ b/eth/tracers/native/call.go @@ -32,13 +32,13 @@ import ( "math/big" "sync/atomic" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/vmerrs" ) //go:generate go run github.com/fjl/gencodec -type callFrame -field-override callFrameMarshaling -out gen_callframe_json.go diff --git a/eth/tracers/native/call_flat.go b/eth/tracers/native/call_flat.go index 7f5f2ca287..de836b0ec7 100644 --- a/eth/tracers/native/call_flat.go +++ b/eth/tracers/native/call_flat.go @@ -33,11 +33,11 @@ import ( "math/big" "strings" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/vmerrs" ) //go:generate go run github.com/fjl/gencodec -type flatCallAction -field-override flatCallActionMarshaling -out gen_flatcallaction_json.go diff --git a/eth/tracers/native/gen_callframe_json.go b/eth/tracers/native/gen_callframe_json.go index 15e9f09654..8da1b63285 100644 --- a/eth/tracers/native/gen_callframe_json.go +++ b/eth/tracers/native/gen_callframe_json.go @@ -6,7 +6,7 @@ import ( "encoding/json" "math/big" - "github.com/ava-labs/coreth/core/vm" + "github.com/tenderly/coreth/core/vm" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ) diff --git a/eth/tracers/native/mux.go b/eth/tracers/native/mux.go index 02a606e21d..88d0f76fb0 100644 --- a/eth/tracers/native/mux.go +++ b/eth/tracers/native/mux.go @@ -30,9 +30,9 @@ import ( "encoding/json" "math/big" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" ) func init() { diff --git a/eth/tracers/native/noop.go b/eth/tracers/native/noop.go index 11daa94aa4..8290504a50 100644 --- a/eth/tracers/native/noop.go +++ b/eth/tracers/native/noop.go @@ -30,9 +30,9 @@ import ( "encoding/json" "math/big" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" ) func init() { diff --git a/eth/tracers/native/prestate.go b/eth/tracers/native/prestate.go index 5c800646c7..5c9aadd4f7 100644 --- a/eth/tracers/native/prestate.go +++ b/eth/tracers/native/prestate.go @@ -32,12 +32,12 @@ import ( "math/big" "sync/atomic" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers" ) //go:generate go run github.com/fjl/gencodec -type account -field-override accountMarshaling -out gen_account_json.go diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go index 7a754fa824..976243f619 100644 --- a/eth/tracers/tracers.go +++ b/eth/tracers/tracers.go @@ -23,8 +23,8 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/vm" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/vm" ) // Context contains some contextual infos for a transaction execution that is not diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index 2fe2676d75..4cbd863242 100644 --- a/eth/tracers/tracers_test.go +++ b/eth/tracers/tracers_test.go @@ -30,15 +30,15 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/tests" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/tests" ) func BenchmarkTransactionTrace(b *testing.B) { diff --git a/ethclient/corethclient/corethclient.go b/ethclient/corethclient/corethclient.go index aa3e328e76..a22aae45e3 100644 --- a/ethclient/corethclient/corethclient.go +++ b/ethclient/corethclient/corethclient.go @@ -33,12 +33,12 @@ import ( "runtime" "runtime/debug" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/ethclient" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/ethclient" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/rpc" ) // Client is a wrapper around rpc.Client that implements geth-specific functionality. diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index e2ed88d4ac..4971cf75f3 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -35,15 +35,15 @@ import ( "math/big" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/accounts/abi/bind" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/interfaces" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/accounts/abi/bind" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/interfaces" + "github.com/tenderly/coreth/rpc" // Force-load precompiles to trigger registration - _ "github.com/ava-labs/coreth/precompile/registry" + _ "github.com/tenderly/coreth/precompile/registry" ) // Verify that Client implements required interfaces diff --git a/ethclient/signer.go b/ethclient/signer.go index ba647de1a6..63c4304588 100644 --- a/ethclient/signer.go +++ b/ethclient/signer.go @@ -30,8 +30,8 @@ import ( "errors" "math/big" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) // senderFromServer is a types.Signer that remembers the sender address returned by the RPC diff --git a/go.mod b/go.mod index 8f84161069..71f6c977b1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ava-labs/coreth +module github.com/tenderly/coreth go 1.21.9 diff --git a/interfaces/interfaces.go b/interfaces/interfaces.go index 35b1855b11..7f5bd64352 100644 --- a/interfaces/interfaces.go +++ b/interfaces/interfaces.go @@ -32,8 +32,8 @@ import ( "errors" "math/big" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) // NotFound is returned by API methods if the requested item does not exist. diff --git a/internal/debug/flags.go b/internal/debug/flags.go index f912350a51..a68ad837f0 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -36,11 +36,11 @@ import ( "path/filepath" "runtime" - "github.com/ava-labs/coreth/internal/flags" "github.com/ethereum/go-ethereum/log" "github.com/fjl/memsize/memsizeui" "github.com/mattn/go-colorable" "github.com/mattn/go-isatty" + "github.com/tenderly/coreth/internal/flags" "github.com/urfave/cli/v2" "golang.org/x/exp/slog" "gopkg.in/natefinch/lumberjack.v2" diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3eee4bda66..9965b5af38 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -36,19 +36,6 @@ import ( "time" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/accounts/keystore" - "github.com/ava-labs/coreth/accounts/scwallet" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/eth/gasestimator" - "github.com/ava-labs/coreth/eth/tracers/logger" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" - "github.com/ava-labs/coreth/trie" "github.com/davecgh/go-spew/spew" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" @@ -56,6 +43,19 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/accounts/keystore" + "github.com/tenderly/coreth/accounts/scwallet" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/eth/gasestimator" + "github.com/tenderly/coreth/eth/tracers/logger" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" + "github.com/tenderly/coreth/trie" "github.com/tyler-smith/go-bip39" ) diff --git a/internal/ethapi/api_extra.go b/internal/ethapi/api_extra.go index a56830988f..e73a7e883d 100644 --- a/internal/ethapi/api_extra.go +++ b/internal/ethapi/api_extra.go @@ -7,12 +7,12 @@ import ( "context" "fmt" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // GetChainConfig returns the chain config. diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 9d8a26045a..af222e3aa7 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -39,18 +39,6 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/internal/blocktest" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" @@ -58,6 +46,18 @@ import ( "github.com/ethereum/go-ethereum/event" "github.com/holiman/uint256" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/internal/blocktest" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" "golang.org/x/exp/slices" ) diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index d269db702f..a9933bbca5 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -32,18 +32,18 @@ import ( "math/big" "time" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/bloombits" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/bloombits" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // Backend interface provides the common API services (that are provided by diff --git a/internal/ethapi/errors.go b/internal/ethapi/errors.go index 1098fb9334..49c1600983 100644 --- a/internal/ethapi/errors.go +++ b/internal/ethapi/errors.go @@ -29,9 +29,9 @@ package ethapi import ( "fmt" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/vmerrs" ) // revertError is an API error that encompasses an EVM revert with JSON error diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 77d4716575..16e96a83da 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -33,14 +33,14 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" ) // TransactionArgs represents the arguments to construct a new transaction diff --git a/internal/ethapi/transaction_args_test.go b/internal/ethapi/transaction_args_test.go index afb2b5e0c5..786bc91428 100644 --- a/internal/ethapi/transaction_args_test.go +++ b/internal/ethapi/transaction_args_test.go @@ -33,11 +33,11 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" ) var _ feeBackend = &backendMock{} diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index 0839450db8..4188d8da5a 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -32,9 +32,9 @@ import ( "regexp" "strings" - "github.com/ava-labs/coreth/internal/version" - "github.com/ava-labs/coreth/params" "github.com/mattn/go-isatty" + "github.com/tenderly/coreth/internal/version" + "github.com/tenderly/coreth/params" "github.com/urfave/cli/v2" ) diff --git a/internal/shutdowncheck/shutdown_tracker.go b/internal/shutdowncheck/shutdown_tracker.go index 35382305c4..9443021a36 100644 --- a/internal/shutdowncheck/shutdown_tracker.go +++ b/internal/shutdowncheck/shutdown_tracker.go @@ -29,10 +29,10 @@ package shutdowncheck import ( "time" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" ) // ShutdownTracker is a service that reports previous unclean shutdowns diff --git a/internal/version/version.go b/internal/version/version.go index 8b32ed317b..b21a50e18a 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -33,10 +33,10 @@ import ( "runtime/debug" "strings" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" ) -const ourPath = "github.com/ava-labs/coreth" // Path to our module +const ourPath = "github.com/tenderly/coreth" // Path to our module // These variables are set at build-time by the linker when the build is // done by build/ci.go. diff --git a/metrics/prometheus/prometheus.go b/metrics/prometheus/prometheus.go index 1d79cfbad7..4f17dcd60e 100644 --- a/metrics/prometheus/prometheus.go +++ b/metrics/prometheus/prometheus.go @@ -7,7 +7,7 @@ import ( "sort" "strings" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" "github.com/prometheus/client_golang/prometheus" diff --git a/metrics/prometheus/prometheus_test.go b/metrics/prometheus/prometheus_test.go index 967e3f2602..97bb7d627d 100644 --- a/metrics/prometheus/prometheus_test.go +++ b/metrics/prometheus/prometheus_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) func TestGatherer(t *testing.T) { diff --git a/miner/miner.go b/miner/miner.go index b6d02fedf4..93e064bf5c 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -29,14 +29,14 @@ package miner import ( "github.com/ava-labs/avalanchego/utils/timer/mockable" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/precompileconfig" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/precompileconfig" ) // Backend wraps all methods required for mining. diff --git a/miner/ordering.go b/miner/ordering.go index e9c80bca9e..5141f60522 100644 --- a/miner/ordering.go +++ b/miner/ordering.go @@ -30,10 +30,10 @@ import ( "container/heap" "math/big" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" ) // txWithMinerFee wraps a transaction with its gas price or effective miner gasTipCap diff --git a/miner/ordering_ext.go b/miner/ordering_ext.go index f9ce97ce90..20d6947b1a 100644 --- a/miner/ordering_ext.go +++ b/miner/ordering_ext.go @@ -3,9 +3,9 @@ package miner import ( "math/big" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" ) type TransactionsByPriceAndNonce = transactionsByPriceAndNonce diff --git a/miner/ordering_test.go b/miner/ordering_test.go index 3ff34418a3..eb182822c0 100644 --- a/miner/ordering_test.go +++ b/miner/ordering_test.go @@ -33,10 +33,10 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" ) func TestTransactionPriceNonceSortLegacy(t *testing.T) { diff --git a/miner/worker.go b/miner/worker.go index 9f617a454f..850466ddc8 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -38,20 +38,20 @@ import ( "github.com/ava-labs/avalanchego/utils/timer/mockable" "github.com/ava-labs/avalanchego/utils/units" - "github.com/ava-labs/coreth/consensus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/consensus/misc/eip4844" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/predicate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/event" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/consensus" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/consensus/misc/eip4844" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/predicate" ) const ( diff --git a/node/api.go b/node/api.go index f0be57313f..1f222bde92 100644 --- a/node/api.go +++ b/node/api.go @@ -27,10 +27,10 @@ package node import ( - "github.com/ava-labs/coreth/internal/debug" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/internal/debug" + "github.com/tenderly/coreth/rpc" ) // apis returns the collection of built-in RPC APIs. diff --git a/node/config.go b/node/config.go index 58290afea7..d58260bc63 100644 --- a/node/config.go +++ b/node/config.go @@ -31,10 +31,10 @@ import ( "os" "path/filepath" - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/accounts/external" - "github.com/ava-labs/coreth/accounts/keystore" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/accounts/external" + "github.com/tenderly/coreth/accounts/keystore" ) // Config represents a small collection of configuration values to fine tune the diff --git a/node/node.go b/node/node.go index 2cc4551c29..decf9b9a97 100644 --- a/node/node.go +++ b/node/node.go @@ -27,8 +27,8 @@ package node import ( - "github.com/ava-labs/coreth/accounts" - "github.com/ava-labs/coreth/rpc" + "github.com/tenderly/coreth/accounts" + "github.com/tenderly/coreth/rpc" ) // Node is a container on which services can be registered. diff --git a/params/config.go b/params/config.go index 509b325433..f6d2211db8 100644 --- a/params/config.go +++ b/params/config.go @@ -34,10 +34,10 @@ import ( "github.com/ava-labs/avalanchego/utils/constants" "github.com/ava-labs/avalanchego/version" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/utils" ) const maxJSONLen = 64 * 1024 * 1024 // 64MB diff --git a/params/config_extra.go b/params/config_extra.go index 908878f72f..40f73258e1 100644 --- a/params/config_extra.go +++ b/params/config_extra.go @@ -9,7 +9,7 @@ import ( "time" "github.com/ava-labs/avalanchego/snow" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/utils" ) // UpgradeConfig includes the following configs that may be specified in upgradeBytes: diff --git a/params/config_test.go b/params/config_test.go index a3a37effe6..83a2a95870 100644 --- a/params/config_test.go +++ b/params/config_test.go @@ -33,7 +33,7 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/utils" ) func TestCheckCompatible(t *testing.T) { diff --git a/params/precompile_upgrade.go b/params/precompile_upgrade.go index 8130db5d52..d83aef1107 100644 --- a/params/precompile_upgrade.go +++ b/params/precompile_upgrade.go @@ -8,10 +8,10 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/utils" ) var errNoKey = errors.New("PrecompileUpgrade cannot be empty") diff --git a/params/precompiles.go b/params/precompiles.go index 9b47b219fd..ed7641fb37 100644 --- a/params/precompiles.go +++ b/params/precompiles.go @@ -6,8 +6,8 @@ package params import ( "encoding/json" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" ) type Precompiles map[string]precompileconfig.Config diff --git a/peer/network.go b/peer/network.go index 69991e6fd7..b05c45c3e4 100644 --- a/peer/network.go +++ b/peer/network.go @@ -23,8 +23,8 @@ import ( "github.com/ava-labs/avalanchego/utils/set" "github.com/ava-labs/avalanchego/version" - "github.com/ava-labs/coreth/peer/stats" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/peer/stats" + "github.com/tenderly/coreth/plugin/evm/message" ) // Minimum amount of time to handle a request diff --git a/peer/network_test.go b/peer/network_test.go index 816ecdeef7..623b0ddd9e 100644 --- a/peer/network_test.go +++ b/peer/network_test.go @@ -19,9 +19,9 @@ import ( ethcommon "github.com/ethereum/go-ethereum/common" "github.com/prometheus/client_golang/prometheus" - "github.com/ava-labs/coreth/plugin/evm/message" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/plugin/evm/message" "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/codec/linearcodec" diff --git a/peer/peer_tracker.go b/peer/peer_tracker.go index 8070005ca6..29a16616c2 100644 --- a/peer/peer_tracker.go +++ b/peer/peer_tracker.go @@ -15,7 +15,7 @@ import ( "github.com/ethereum/go-ethereum/log" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) const ( diff --git a/peer/stats/stats.go b/peer/stats/stats.go index 4f4cdb6f48..287824e9cc 100644 --- a/peer/stats/stats.go +++ b/peer/stats/stats.go @@ -6,7 +6,7 @@ package stats import ( "time" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) // RequestHandlerStats provides the interface for metrics for both app requests and cross chain requests. diff --git a/peer/waiting_handler.go b/peer/waiting_handler.go index cf625131ed..99c54d9b5c 100644 --- a/peer/waiting_handler.go +++ b/peer/waiting_handler.go @@ -6,7 +6,7 @@ package peer import ( "context" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/plugin/evm/message" ) var _ message.ResponseHandler = &waitingResponseHandler{} diff --git a/plugin/evm/atomic_backend.go b/plugin/evm/atomic_backend.go index dc8c36a396..74bbb3f98c 100644 --- a/plugin/evm/atomic_backend.go +++ b/plugin/evm/atomic_backend.go @@ -15,10 +15,10 @@ import ( "github.com/ava-labs/avalanchego/database/versiondb" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core/types" - syncclient "github.com/ava-labs/coreth/sync/client" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + syncclient "github.com/tenderly/coreth/sync/client" ) var _ AtomicBackend = &atomicBackend{} diff --git a/plugin/evm/atomic_syncer.go b/plugin/evm/atomic_syncer.go index d68d61d597..79e1c5aadd 100644 --- a/plugin/evm/atomic_syncer.go +++ b/plugin/evm/atomic_syncer.go @@ -14,9 +14,9 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/plugin/evm/message" - syncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/trie" + "github.com/tenderly/coreth/plugin/evm/message" + syncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/trie" ) var ( diff --git a/plugin/evm/atomic_syncer_test.go b/plugin/evm/atomic_syncer_test.go index 07e07fe46a..37a31cef0e 100644 --- a/plugin/evm/atomic_syncer_test.go +++ b/plugin/evm/atomic_syncer_test.go @@ -16,14 +16,14 @@ import ( "github.com/ava-labs/avalanchego/database/memdb" "github.com/ava-labs/avalanchego/database/versiondb" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - syncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/handlers" - handlerstats "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + syncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/handlers" + handlerstats "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) const commitInterval = 1024 diff --git a/plugin/evm/atomic_trie.go b/plugin/evm/atomic_trie.go index 3b068b648d..f5e14a62eb 100644 --- a/plugin/evm/atomic_trie.go +++ b/plugin/evm/atomic_trie.go @@ -14,15 +14,15 @@ import ( "github.com/ava-labs/avalanchego/utils/units" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/trienode" ) const ( diff --git a/plugin/evm/atomic_trie_height_map_repair.go b/plugin/evm/atomic_trie_height_map_repair.go index 14e7593d6a..a42c8af57b 100644 --- a/plugin/evm/atomic_trie_height_map_repair.go +++ b/plugin/evm/atomic_trie_height_map_repair.go @@ -10,9 +10,9 @@ import ( "time" "github.com/ava-labs/avalanchego/database" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) const ( diff --git a/plugin/evm/atomic_trie_iterator.go b/plugin/evm/atomic_trie_iterator.go index 2bdf90b581..90f5445dcb 100644 --- a/plugin/evm/atomic_trie_iterator.go +++ b/plugin/evm/atomic_trie_iterator.go @@ -12,8 +12,8 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/trie" ) const atomicTrieKeyLen = wrappers.LongLen + common.HashLength diff --git a/plugin/evm/atomic_trie_repair.go b/plugin/evm/atomic_trie_repair.go index b84f78442b..a7e026051b 100644 --- a/plugin/evm/atomic_trie_repair.go +++ b/plugin/evm/atomic_trie_repair.go @@ -8,9 +8,9 @@ import ( "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) var repairedKey = []byte("atomicTrieHasBonusBlocks") diff --git a/plugin/evm/atomic_trie_repair_test.go b/plugin/evm/atomic_trie_repair_test.go index 7827fcb2b3..19ba460164 100644 --- a/plugin/evm/atomic_trie_repair_test.go +++ b/plugin/evm/atomic_trie_repair_test.go @@ -10,9 +10,9 @@ import ( "github.com/ava-labs/avalanchego/database/memdb" "github.com/ava-labs/avalanchego/database/versiondb" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/types" "golang.org/x/exp/maps" ) diff --git a/plugin/evm/block.go b/plugin/evm/block.go index 0d41ee060f..e598ec4037 100644 --- a/plugin/evm/block.go +++ b/plugin/evm/block.go @@ -16,12 +16,12 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/predicate" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/predicate" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow/choices" diff --git a/plugin/evm/block_builder.go b/plugin/evm/block_builder.go index d59015cffb..fa9f387626 100644 --- a/plugin/evm/block_builder.go +++ b/plugin/evm/block_builder.go @@ -8,9 +8,9 @@ import ( "time" "github.com/ava-labs/avalanchego/utils/timer" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/snow" commonEng "github.com/ava-labs/avalanchego/snow/engine/common" diff --git a/plugin/evm/block_verification.go b/plugin/evm/block_verification.go index 38f2bc29fa..e058d64c1d 100644 --- a/plugin/evm/block_verification.go +++ b/plugin/evm/block_verification.go @@ -12,10 +12,10 @@ import ( safemath "github.com/ava-labs/avalanchego/utils/math" - "github.com/ava-labs/coreth/constants" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie" + "github.com/tenderly/coreth/constants" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie" ) var ( diff --git a/plugin/evm/config.go b/plugin/evm/config.go index 2b35d32b1a..95231993e7 100644 --- a/plugin/evm/config.go +++ b/plugin/evm/config.go @@ -8,11 +8,11 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/core/txpool/legacypool" - "github.com/ava-labs/coreth/eth" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/spf13/cast" + "github.com/tenderly/coreth/core/txpool/legacypool" + "github.com/tenderly/coreth/eth" ) const ( diff --git a/plugin/evm/export_tx.go b/plugin/evm/export_tx.go index 44da333b49..88bd370435 100644 --- a/plugin/evm/export_tx.go +++ b/plugin/evm/export_tx.go @@ -9,8 +9,8 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/ids" diff --git a/plugin/evm/export_tx_test.go b/plugin/evm/export_tx_test.go index f7c0e92cc6..a1795751e7 100644 --- a/plugin/evm/export_tx_test.go +++ b/plugin/evm/export_tx_test.go @@ -17,8 +17,8 @@ import ( "github.com/ava-labs/avalanchego/utils/units" "github.com/ava-labs/avalanchego/vms/components/avax" "github.com/ava-labs/avalanchego/vms/secp256k1fx" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/params" ) // createExportTxOptions adds funds to shared memory, imports them, and returns a list of export transactions diff --git a/plugin/evm/gossip.go b/plugin/evm/gossip.go index b29f7897bb..5fb9926913 100644 --- a/plugin/evm/gossip.go +++ b/plugin/evm/gossip.go @@ -19,10 +19,10 @@ import ( "github.com/ava-labs/avalanchego/network/p2p" "github.com/ava-labs/avalanchego/network/p2p/gossip" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/eth" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/eth" ) const pendingTxsBuffer = 10 diff --git a/plugin/evm/gossip_stats.go b/plugin/evm/gossip_stats.go index 9805c7f1ff..8cc554eb8a 100644 --- a/plugin/evm/gossip_stats.go +++ b/plugin/evm/gossip_stats.go @@ -3,7 +3,7 @@ package evm -import "github.com/ava-labs/coreth/metrics" +import "github.com/tenderly/coreth/metrics" var _ GossipStats = &gossipStats{} diff --git a/plugin/evm/gossip_test.go b/plugin/evm/gossip_test.go index 47ca011836..9c687285c4 100644 --- a/plugin/evm/gossip_test.go +++ b/plugin/evm/gossip_test.go @@ -14,19 +14,19 @@ import ( "github.com/ava-labs/avalanchego/snow" "github.com/ava-labs/avalanchego/utils/crypto/secp256k1" "github.com/ava-labs/avalanchego/vms/components/verify" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/txpool/legacypool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/core/vm" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/prometheus/client_golang/prometheus" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/txpool/legacypool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/core/vm" + "github.com/tenderly/coreth/params" ) func TestGossipAtomicTxMarshaller(t *testing.T) { diff --git a/plugin/evm/gossiper_atomic_gossiping_test.go b/plugin/evm/gossiper_atomic_gossiping_test.go index c2aadeb575..4a8f5e83c9 100644 --- a/plugin/evm/gossiper_atomic_gossiping_test.go +++ b/plugin/evm/gossiper_atomic_gossiping_test.go @@ -16,7 +16,7 @@ import ( commonEng "github.com/ava-labs/avalanchego/snow/engine/common" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/plugin/evm/message" ) // show that a txID discovered from gossip is requested to the same node only if diff --git a/plugin/evm/gossiper_eth_gossiping_test.go b/plugin/evm/gossiper_eth_gossiping_test.go index 21b9bc6620..2fd76dce8a 100644 --- a/plugin/evm/gossiper_eth_gossiping_test.go +++ b/plugin/evm/gossiper_eth_gossiping_test.go @@ -25,10 +25,10 @@ import ( "github.com/stretchr/testify/assert" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/plugin/evm/message" ) func fundAddressByGenesis(addrs []common.Address) (string, error) { diff --git a/plugin/evm/handler.go b/plugin/evm/handler.go index ce970c822f..5e48953138 100644 --- a/plugin/evm/handler.go +++ b/plugin/evm/handler.go @@ -9,9 +9,9 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/plugin/evm/message" ) // GossipHandler handles incoming gossip messages diff --git a/plugin/evm/import_tx.go b/plugin/evm/import_tx.go index ee2eff0590..69eabc3702 100644 --- a/plugin/evm/import_tx.go +++ b/plugin/evm/import_tx.go @@ -10,8 +10,8 @@ import ( "math/big" "slices" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/ids" diff --git a/plugin/evm/import_tx_test.go b/plugin/evm/import_tx_test.go index ddcde4a879..f0fb4526b4 100644 --- a/plugin/evm/import_tx_test.go +++ b/plugin/evm/import_tx_test.go @@ -7,8 +7,8 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/ids" diff --git a/plugin/evm/log.go b/plugin/evm/log.go index d4ca12428d..27c3aa3152 100644 --- a/plugin/evm/log.go +++ b/plugin/evm/log.go @@ -10,8 +10,8 @@ import ( "runtime" "strings" - "github.com/ava-labs/coreth/log" gethlog "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/log" "golang.org/x/exp/slog" ) diff --git a/plugin/evm/mempool.go b/plugin/evm/mempool.go index 25b787754c..b619d95366 100644 --- a/plugin/evm/mempool.go +++ b/plugin/evm/mempool.go @@ -14,8 +14,8 @@ import ( "github.com/ava-labs/avalanchego/snow" "github.com/prometheus/client_golang/prometheus" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/metrics" ) const ( diff --git a/plugin/evm/message/cross_chain_handler.go b/plugin/evm/message/cross_chain_handler.go index dc568d7a2d..db02dca8a3 100644 --- a/plugin/evm/message/cross_chain_handler.go +++ b/plugin/evm/message/cross_chain_handler.go @@ -10,8 +10,8 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/rpc" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/rpc" "github.com/ethereum/go-ethereum/log" ) diff --git a/plugin/evm/network_handler.go b/plugin/evm/network_handler.go index 33670ed4cf..fb35b422a6 100644 --- a/plugin/evm/network_handler.go +++ b/plugin/evm/network_handler.go @@ -8,14 +8,14 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/plugin/evm/message" - syncHandlers "github.com/ava-labs/coreth/sync/handlers" - syncStats "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/warp" - warpHandlers "github.com/ava-labs/coreth/warp/handlers" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/plugin/evm/message" + syncHandlers "github.com/tenderly/coreth/sync/handlers" + syncStats "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/warp" + warpHandlers "github.com/tenderly/coreth/warp/handlers" ) var _ message.RequestHandler = &networkHandler{} diff --git a/plugin/evm/service.go b/plugin/evm/service.go index 7f57be5520..2691d8947d 100644 --- a/plugin/evm/service.go +++ b/plugin/evm/service.go @@ -16,10 +16,10 @@ import ( "github.com/ava-labs/avalanchego/utils/formatting" "github.com/ava-labs/avalanchego/utils/json" "github.com/ava-labs/avalanchego/utils/set" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/params" ) // test constants diff --git a/plugin/evm/shared_memory_writer.go b/plugin/evm/shared_memory_writer.go index 7e6de6f862..622741961a 100644 --- a/plugin/evm/shared_memory_writer.go +++ b/plugin/evm/shared_memory_writer.go @@ -6,7 +6,7 @@ package evm import ( "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/precompileconfig" ) var _ precompileconfig.SharedMemoryWriter = &sharedMemoryWriter{} diff --git a/plugin/evm/static_service.go b/plugin/evm/static_service.go index 7b0fa8bde5..e8d552500e 100644 --- a/plugin/evm/static_service.go +++ b/plugin/evm/static_service.go @@ -8,7 +8,7 @@ import ( "encoding/json" "github.com/ava-labs/avalanchego/utils/formatting" - "github.com/ava-labs/coreth/core" + "github.com/tenderly/coreth/core" ) // StaticService defines the static API services exposed by the evm diff --git a/plugin/evm/syncervm_client.go b/plugin/evm/syncervm_client.go index 6bccb0f494..e5ec7622ff 100644 --- a/plugin/evm/syncervm_client.go +++ b/plugin/evm/syncervm_client.go @@ -15,16 +15,16 @@ import ( commonEng "github.com/ava-labs/avalanchego/snow/engine/common" "github.com/ava-labs/avalanchego/snow/engine/snowman/block" "github.com/ava-labs/avalanchego/vms/components/chain" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/eth" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/plugin/evm/message" - syncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/statesync" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/eth" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/plugin/evm/message" + syncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/statesync" ) const ( diff --git a/plugin/evm/syncervm_server.go b/plugin/evm/syncervm_server.go index 3bf051bf87..c35845eee7 100644 --- a/plugin/evm/syncervm_server.go +++ b/plugin/evm/syncervm_server.go @@ -10,10 +10,10 @@ import ( "github.com/ava-labs/avalanchego/database" "github.com/ava-labs/avalanchego/snow/engine/snowman/block" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/plugin/evm/message" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/plugin/evm/message" ) type stateSyncServerConfig struct { diff --git a/plugin/evm/syncervm_test.go b/plugin/evm/syncervm_test.go index 23a461f0c0..e89b81cd69 100644 --- a/plugin/evm/syncervm_test.go +++ b/plugin/evm/syncervm_test.go @@ -27,22 +27,22 @@ import ( "github.com/ava-labs/avalanchego/utils/set" "github.com/ava-labs/avalanchego/utils/units" - "github.com/ava-labs/coreth/accounts/keystore" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/constants" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/predicate" - statesyncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/statesync" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/accounts/keystore" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/constants" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/predicate" + statesyncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/statesync" + "github.com/tenderly/coreth/trie" ) func TestSkipStateSync(t *testing.T) { diff --git a/plugin/evm/test_tx.go b/plugin/evm/test_tx.go index c057c874ad..686d07a26a 100644 --- a/plugin/evm/test_tx.go +++ b/plugin/evm/test_tx.go @@ -16,8 +16,8 @@ import ( "github.com/ava-labs/avalanchego/snow" "github.com/ava-labs/avalanchego/utils/set" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/params" ) type TestUnsignedTx struct { diff --git a/plugin/evm/tx.go b/plugin/evm/tx.go index 5c8497a3a3..ef314bebd1 100644 --- a/plugin/evm/tx.go +++ b/plugin/evm/tx.go @@ -12,8 +12,8 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/codec" diff --git a/plugin/evm/tx_gossip_test.go b/plugin/evm/tx_gossip_test.go index 67f3868435..ed95267226 100644 --- a/plugin/evm/tx_gossip_test.go +++ b/plugin/evm/tx_gossip_test.go @@ -32,9 +32,9 @@ import ( "google.golang.org/protobuf/proto" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" ) func TestEthTxGossip(t *testing.T) { diff --git a/plugin/evm/tx_test.go b/plugin/evm/tx_test.go index 1c72120065..e9d6d1fc18 100644 --- a/plugin/evm/tx_test.go +++ b/plugin/evm/tx_test.go @@ -13,7 +13,7 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/chains/atomic" "github.com/ava-labs/avalanchego/ids" diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index 9c0108137f..094cef9978 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -23,44 +23,44 @@ import ( avalanchegoConstants "github.com/ava-labs/avalanchego/utils/constants" "github.com/prometheus/client_golang/prometheus" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/constants" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/txpool" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/eth" - "github.com/ava-labs/coreth/eth/ethconfig" - "github.com/ava-labs/coreth/metrics" - corethPrometheus "github.com/ava-labs/coreth/metrics/prometheus" - "github.com/ava-labs/coreth/miner" - "github.com/ava-labs/coreth/node" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/peer" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - - warpPrecompile "github.com/ava-labs/coreth/precompile/contracts/warp" - "github.com/ava-labs/coreth/rpc" - statesyncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/client/stats" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" - "github.com/ava-labs/coreth/warp" - warpValidators "github.com/ava-labs/coreth/warp/validators" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/constants" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/txpool" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/eth" + "github.com/tenderly/coreth/eth/ethconfig" + "github.com/tenderly/coreth/metrics" + corethPrometheus "github.com/tenderly/coreth/metrics/prometheus" + "github.com/tenderly/coreth/miner" + "github.com/tenderly/coreth/node" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/peer" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/trie/triedb/hashdb" + + warpPrecompile "github.com/tenderly/coreth/precompile/contracts/warp" + "github.com/tenderly/coreth/rpc" + statesyncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/client/stats" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" + "github.com/tenderly/coreth/warp" + warpValidators "github.com/tenderly/coreth/warp/validators" // Force-load tracer engine to trigger registration // // We must import this package (not referenced elsewhere) so that the native "callTracer" // is added to a map of client-accessible tracers. In geth, this is done // inside of cmd/geth. - _ "github.com/ava-labs/coreth/eth/tracers/js" - _ "github.com/ava-labs/coreth/eth/tracers/native" + _ "github.com/tenderly/coreth/eth/tracers/js" + _ "github.com/tenderly/coreth/eth/tracers/native" - "github.com/ava-labs/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/precompileconfig" // Force-load precompiles to trigger registration - _ "github.com/ava-labs/coreth/precompile/registry" + _ "github.com/tenderly/coreth/precompile/registry" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" diff --git a/plugin/evm/vm_test.go b/plugin/evm/vm_test.go index 218c40fb60..1359b66309 100644 --- a/plugin/evm/vm_test.go +++ b/plugin/evm/vm_test.go @@ -22,12 +22,12 @@ import ( "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" - "github.com/ava-labs/coreth/eth/filters" - "github.com/ava-labs/coreth/internal/ethapi" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/eth/filters" + "github.com/tenderly/coreth/internal/ethapi" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -56,16 +56,16 @@ import ( commonEng "github.com/ava-labs/avalanchego/snow/engine/common" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/eth" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/rpc" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/eth" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/rpc" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" - "github.com/ava-labs/coreth/accounts/abi" - accountKeystore "github.com/ava-labs/coreth/accounts/keystore" + "github.com/tenderly/coreth/accounts/abi" + accountKeystore "github.com/tenderly/coreth/accounts/keystore" ) var ( diff --git a/plugin/evm/vm_warp_test.go b/plugin/evm/vm_warp_test.go index c35d287f48..56f54975aa 100644 --- a/plugin/evm/vm_warp_test.go +++ b/plugin/evm/vm_warp_test.go @@ -22,17 +22,17 @@ import ( "github.com/ava-labs/avalanchego/vms/components/chain" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/eth/tracers" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/contracts/warp" - "github.com/ava-labs/coreth/predicate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/eth/tracers" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/contracts/warp" + "github.com/tenderly/coreth/predicate" ) var ( diff --git a/plugin/main.go b/plugin/main.go index 4080476d15..0f4204fb45 100644 --- a/plugin/main.go +++ b/plugin/main.go @@ -12,7 +12,7 @@ import ( "github.com/ava-labs/avalanchego/utils/ulimit" "github.com/ava-labs/avalanchego/vms/rpcchainvm" - "github.com/ava-labs/coreth/plugin/evm" + "github.com/tenderly/coreth/plugin/evm" ) func main() { diff --git a/precompile/contract/interfaces.go b/precompile/contract/interfaces.go index 22035e04b9..02efb55396 100644 --- a/precompile/contract/interfaces.go +++ b/precompile/contract/interfaces.go @@ -8,8 +8,8 @@ import ( "math/big" "github.com/ava-labs/avalanchego/snow" - "github.com/ava-labs/coreth/precompile/precompileconfig" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/precompile/precompileconfig" ) // StatefulPrecompiledContract is the interface for executing a precompiled contract diff --git a/precompile/contract/mocks.go b/precompile/contract/mocks.go index 5f3e974b32..b47d68295c 100644 --- a/precompile/contract/mocks.go +++ b/precompile/contract/mocks.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/ava-labs/coreth/precompile/contract (interfaces: BlockContext,AccessibleState,StateDB) +// Source: github.com/tenderly/coreth/precompile/contract (interfaces: BlockContext,AccessibleState,StateDB) // // Generated by this command: // -// mockgen -package=contract -destination=precompile/contract/mocks.go github.com/ava-labs/coreth/precompile/contract BlockContext,AccessibleState,StateDB +// mockgen -package=contract -destination=precompile/contract/mocks.go github.com/tenderly/coreth/precompile/contract BlockContext,AccessibleState,StateDB // // Package contract is a generated GoMock package. @@ -14,7 +14,7 @@ import ( reflect "reflect" snow "github.com/ava-labs/avalanchego/snow" - precompileconfig "github.com/ava-labs/coreth/precompile/precompileconfig" + precompileconfig "github.com/tenderly/coreth/precompile/precompileconfig" common "github.com/ethereum/go-ethereum/common" gomock "go.uber.org/mock/gomock" ) diff --git a/precompile/contract/utils.go b/precompile/contract/utils.go index 6b8ed7c832..14056a82dc 100644 --- a/precompile/contract/utils.go +++ b/precompile/contract/utils.go @@ -8,9 +8,9 @@ import ( "regexp" "strings" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/vmerrs" ) // Gas costs for stateful precompiles diff --git a/precompile/contracts/warp/README.md b/precompile/contracts/warp/README.md index 10e1daaa38..7fa39e7dc3 100644 --- a/precompile/contracts/warp/README.md +++ b/precompile/contracts/warp/README.md @@ -75,7 +75,7 @@ Avalanche Warp Messages are encoded as a signed Avalanche [Warp Message](https:/ Since the predicate is encoded into the [Transaction Access List](https://eips.ethereum.org/EIPS/eip-2930), it is packed into 32 byte hashes intended to declare storage slots that should be pre-warmed into the cache prior to transaction execution. -Therefore, we use the [Predicate Utils](https://github.com/ava-labs/coreth/blob/master/predicate/Predicate.md) package to encode the actual byte slice of size N into the access list. +Therefore, we use the [Predicate Utils](https://github.com/tenderly/coreth/blob/master/predicate/Predicate.md) package to encode the actual byte slice of size N into the access list. ### Performance Optimization: C-Chain to Subnet diff --git a/precompile/contracts/warp/config.go b/precompile/contracts/warp/config.go index d564546e5a..e0a474415e 100644 --- a/precompile/contracts/warp/config.go +++ b/precompile/contracts/warp/config.go @@ -10,12 +10,12 @@ import ( "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/predicate" - warpValidators "github.com/ava-labs/coreth/warp/validators" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/predicate" + warpValidators "github.com/tenderly/coreth/warp/validators" ) const ( diff --git a/precompile/contracts/warp/config_test.go b/precompile/contracts/warp/config_test.go index 419b9bbeee..f7d7cf5b65 100644 --- a/precompile/contracts/warp/config_test.go +++ b/precompile/contracts/warp/config_test.go @@ -7,9 +7,9 @@ import ( "fmt" "testing" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/precompile/testutils" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/testutils" + "github.com/tenderly/coreth/utils" "go.uber.org/mock/gomock" ) diff --git a/precompile/contracts/warp/contract.go b/precompile/contracts/warp/contract.go index 7e30f9f9eb..2ab3ded335 100644 --- a/precompile/contracts/warp/contract.go +++ b/precompile/contracts/warp/contract.go @@ -9,9 +9,9 @@ import ( "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/accounts/abi" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/vmerrs" + "github.com/tenderly/coreth/accounts/abi" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/vmerrs" _ "embed" diff --git a/precompile/contracts/warp/contract_test.go b/precompile/contracts/warp/contract_test.go index 7650d5953a..9165500179 100644 --- a/precompile/contracts/warp/contract_test.go +++ b/precompile/contracts/warp/contract_test.go @@ -14,14 +14,14 @@ import ( "github.com/ava-labs/avalanchego/vms/platformvm/warp" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/testutils" - "github.com/ava-labs/coreth/predicate" - "github.com/ava-labs/coreth/utils" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/testutils" + "github.com/tenderly/coreth/predicate" + "github.com/tenderly/coreth/utils" + "github.com/tenderly/coreth/vmerrs" ) func TestGetBlockchainID(t *testing.T) { diff --git a/precompile/contracts/warp/contract_warp_handler.go b/precompile/contracts/warp/contract_warp_handler.go index 71142ed084..40c236b9a6 100644 --- a/precompile/contracts/warp/contract_warp_handler.go +++ b/precompile/contracts/warp/contract_warp_handler.go @@ -9,11 +9,11 @@ import ( "github.com/ava-labs/avalanchego/utils/set" "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/predicate" - "github.com/ava-labs/coreth/vmerrs" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/predicate" + "github.com/tenderly/coreth/vmerrs" ) var ( diff --git a/precompile/contracts/warp/module.go b/precompile/contracts/warp/module.go index 336100da34..4b62f7dee9 100644 --- a/precompile/contracts/warp/module.go +++ b/precompile/contracts/warp/module.go @@ -6,9 +6,9 @@ package warp import ( "fmt" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" "github.com/ethereum/go-ethereum/common" ) diff --git a/precompile/contracts/warp/predicate_test.go b/precompile/contracts/warp/predicate_test.go index b0af56447e..8625d28cd9 100644 --- a/precompile/contracts/warp/predicate_test.go +++ b/precompile/contracts/warp/predicate_test.go @@ -19,11 +19,11 @@ import ( "github.com/ava-labs/avalanchego/utils/set" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/precompile/testutils" - "github.com/ava-labs/coreth/predicate" - "github.com/ava-labs/coreth/utils" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/precompile/testutils" + "github.com/tenderly/coreth/predicate" + "github.com/tenderly/coreth/utils" "go.uber.org/mock/gomock" ) diff --git a/precompile/modules/module.go b/precompile/modules/module.go index fefa9fd2da..e77083e685 100644 --- a/precompile/modules/module.go +++ b/precompile/modules/module.go @@ -6,8 +6,8 @@ package modules import ( "bytes" - "github.com/ava-labs/coreth/precompile/contract" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/precompile/contract" ) type Module struct { diff --git a/precompile/modules/registerer.go b/precompile/modules/registerer.go index a7f3b92c60..582924c9ae 100644 --- a/precompile/modules/registerer.go +++ b/precompile/modules/registerer.go @@ -7,9 +7,9 @@ import ( "fmt" "sort" - "github.com/ava-labs/coreth/constants" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/constants" + "github.com/tenderly/coreth/utils" ) var ( diff --git a/precompile/modules/registerer_test.go b/precompile/modules/registerer_test.go index f2519046df..165bb2a1ae 100644 --- a/precompile/modules/registerer_test.go +++ b/precompile/modules/registerer_test.go @@ -7,9 +7,9 @@ import ( "math/big" "testing" - "github.com/ava-labs/coreth/constants" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/constants" ) func TestInsertSortedByAddress(t *testing.T) { diff --git a/precompile/precompileconfig/mocks.go b/precompile/precompileconfig/mocks.go index 4be7f046ec..3375746231 100644 --- a/precompile/precompileconfig/mocks.go +++ b/precompile/precompileconfig/mocks.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/ava-labs/coreth/precompile/precompileconfig (interfaces: Predicater,Config,ChainConfig,Accepter) +// Source: github.com/tenderly/coreth/precompile/precompileconfig (interfaces: Predicater,Config,ChainConfig,Accepter) // // Generated by this command: // -// mockgen -package=precompileconfig -destination=precompile/precompileconfig/mocks.go github.com/ava-labs/coreth/precompile/precompileconfig Predicater,Config,ChainConfig,Accepter +// mockgen -package=precompileconfig -destination=precompile/precompileconfig/mocks.go github.com/tenderly/coreth/precompile/precompileconfig Predicater,Config,ChainConfig,Accepter // // Package precompileconfig is a generated GoMock package. diff --git a/precompile/precompileconfig/upgradeable.go b/precompile/precompileconfig/upgradeable.go index d63f310599..cf77066cb5 100644 --- a/precompile/precompileconfig/upgradeable.go +++ b/precompile/precompileconfig/upgradeable.go @@ -3,7 +3,7 @@ package precompileconfig -import "github.com/ava-labs/coreth/utils" +import "github.com/tenderly/coreth/utils" // Upgrade contains the timestamp for the upgrade along with // a boolean [Disable]. If [Disable] is set, the upgrade deactivates diff --git a/precompile/registry/registry.go b/precompile/registry/registry.go index a0798ebd1f..ba469758e5 100644 --- a/precompile/registry/registry.go +++ b/precompile/registry/registry.go @@ -7,5 +7,5 @@ package registry // Force imports of each precompile to ensure each precompile's init function runs and registers itself // with the registry. import ( - _ "github.com/ava-labs/coreth/precompile/contracts/warp" + _ "github.com/tenderly/coreth/precompile/contracts/warp" ) diff --git a/precompile/testutils/test_config.go b/precompile/testutils/test_config.go index aee07c4a51..a58b1be352 100644 --- a/precompile/testutils/test_config.go +++ b/precompile/testutils/test_config.go @@ -6,8 +6,8 @@ package testutils import ( "testing" - "github.com/ava-labs/coreth/precompile/precompileconfig" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/precompile/precompileconfig" "go.uber.org/mock/gomock" ) diff --git a/precompile/testutils/test_precompile.go b/precompile/testutils/test_precompile.go index a0bc279ff9..5bb851ebfe 100644 --- a/precompile/testutils/test_precompile.go +++ b/precompile/testutils/test_precompile.go @@ -8,12 +8,12 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/precompile/contract" - "github.com/ava-labs/coreth/precompile/modules" - "github.com/ava-labs/coreth/precompile/precompileconfig" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/precompile/contract" + "github.com/tenderly/coreth/precompile/modules" + "github.com/tenderly/coreth/precompile/precompileconfig" + "github.com/tenderly/coreth/utils" "go.uber.org/mock/gomock" ) diff --git a/precompile/testutils/test_predicate.go b/precompile/testutils/test_predicate.go index 0b28075984..ed7da6d6cf 100644 --- a/precompile/testutils/test_predicate.go +++ b/precompile/testutils/test_predicate.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/precompile/precompileconfig" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/precompile/precompileconfig" ) // PredicateTest defines a unit test/benchmark for verifying a precompile predicate. diff --git a/predicate/predicate_bytes.go b/predicate/predicate_bytes.go index 71a266e3aa..e4dbcf46b2 100644 --- a/predicate/predicate_bytes.go +++ b/predicate/predicate_bytes.go @@ -6,8 +6,8 @@ package predicate import ( "fmt" - "github.com/ava-labs/coreth/params" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/params" ) // EndByte is used as a delimiter for the bytes packed into a precompile predicate. diff --git a/predicate/predicate_bytes_test.go b/predicate/predicate_bytes_test.go index 5184afb0a2..8d28570bb6 100644 --- a/predicate/predicate_bytes_test.go +++ b/predicate/predicate_bytes_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/ava-labs/avalanchego/utils" - "github.com/ava-labs/coreth/params" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/params" ) func testPackPredicate(t testing.TB, b []byte) { diff --git a/predicate/predicate_slots.go b/predicate/predicate_slots.go index 6eccc5bcae..2d2855fbd8 100644 --- a/predicate/predicate_slots.go +++ b/predicate/predicate_slots.go @@ -4,10 +4,10 @@ package predicate import ( - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" ) // PreparePredicateStorageSlots populates the the predicate storage slots of a transaction's access list diff --git a/predicate/predicate_tx.go b/predicate/predicate_tx.go index 76bb3ce6bd..0930843fb7 100644 --- a/predicate/predicate_tx.go +++ b/predicate/predicate_tx.go @@ -6,9 +6,9 @@ package predicate import ( "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/utils" ) // NewPredicateTx returns a transaction with the predicateAddress/predicateBytes tuple diff --git a/rpc/client_opt_test.go b/rpc/client_opt_test.go index 272d73cbe2..f09bdb3bec 100644 --- a/rpc/client_opt_test.go +++ b/rpc/client_opt_test.go @@ -14,7 +14,7 @@ import ( "net/http" "time" - "github.com/ava-labs/coreth/rpc" + "github.com/tenderly/coreth/rpc" ) // This example configures a HTTP-based RPC client with two options - one setting the diff --git a/rpc/handler.go b/rpc/handler.go index 2a5aee5244..1bf4da5188 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -35,8 +35,8 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/metrics" "golang.org/x/time/rate" ) diff --git a/rpc/metrics.go b/rpc/metrics.go index 889b48fcdc..a1fdebeb6d 100644 --- a/rpc/metrics.go +++ b/rpc/metrics.go @@ -30,7 +30,7 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) var ( diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index 5e3143c9fe..9594da85ae 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -38,8 +38,8 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) func TestNewID(t *testing.T) { diff --git a/scripts/build.sh b/scripts/build.sh index 8d99dcb7bd..2b6d7ded0a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -27,4 +27,4 @@ CORETH_COMMIT=${CORETH_COMMIT:-$(git rev-list -1 HEAD)} # Build Coreth, which runs as a subprocess echo "Building Coreth @ GitCommit: $CORETH_COMMIT" -go build -ldflags "-X github.com/ava-labs/coreth/plugin/evm.GitCommit=$CORETH_COMMIT" -o "$binary_path" "plugin/"*.go +go build -ldflags "-X github.com/tenderly/coreth/plugin/evm.GitCommit=$CORETH_COMMIT" -o "$binary_path" "plugin/"*.go diff --git a/scripts/mocks.mockgen.txt b/scripts/mocks.mockgen.txt index 694343e40e..ee355f2803 100644 --- a/scripts/mocks.mockgen.txt +++ b/scripts/mocks.mockgen.txt @@ -1,2 +1,2 @@ -github.com/ava-labs/coreth/precompile/precompileconfig=Predicater,Config,ChainConfig,Accepter=precompile/precompileconfig/mocks.go -github.com/ava-labs/coreth/precompile/contract=BlockContext,AccessibleState,StateDB=precompile/contract/mocks.go +github.com/tenderly/coreth/precompile/precompileconfig=Predicater,Config,ChainConfig,Accepter=precompile/precompileconfig/mocks.go +github.com/tenderly/coreth/precompile/contract=BlockContext,AccessibleState,StateDB=precompile/contract/mocks.go diff --git a/scripts/tests.e2e.sh b/scripts/tests.e2e.sh index 85f5bd3d48..d292e4da78 100755 --- a/scripts/tests.e2e.sh +++ b/scripts/tests.e2e.sh @@ -44,7 +44,7 @@ fi git checkout -B "test-${AVALANCHE_VERSION}" "${AVALANCHE_VERSION}" echo "updating coreth dependency to point to ${CORETH_PATH}" -go mod edit -replace "github.com/ava-labs/coreth=${CORETH_PATH}" +go mod edit -replace "github.com/tenderly/coreth=${CORETH_PATH}" go mod tidy echo "building avalanchego" diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index 2d5cb7f79b..bbb094af69 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -32,9 +32,9 @@ import ( "math/big" "strings" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/core/types" ) type ValidationInfo struct { diff --git a/sync/client/client.go b/sync/client/client.go index 0aaa5c00f9..7ba4ff7fbe 100644 --- a/sync/client/client.go +++ b/sync/client/client.go @@ -13,8 +13,8 @@ import ( "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/sync/client/stats" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/sync/client/stats" "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/version" @@ -23,12 +23,12 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/peer" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/peer" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/trie" ) const ( diff --git a/sync/client/client_test.go b/sync/client/client_test.go index 58a0d6f3b4..dbf5089b09 100644 --- a/sync/client/client_test.go +++ b/sync/client/client_test.go @@ -15,19 +15,19 @@ import ( "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/plugin/evm/message" - clientstats "github.com/ava-labs/coreth/sync/client/stats" - "github.com/ava-labs/coreth/sync/handlers" - handlerstats "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/plugin/evm/message" + clientstats "github.com/tenderly/coreth/sync/client/stats" + "github.com/tenderly/coreth/sync/handlers" + handlerstats "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) func TestGetCode(t *testing.T) { diff --git a/sync/client/leaf_syncer.go b/sync/client/leaf_syncer.go index 2ca82b7560..ba7d435ccb 100644 --- a/sync/client/leaf_syncer.go +++ b/sync/client/leaf_syncer.go @@ -9,10 +9,10 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/utils" "golang.org/x/sync/errgroup" ) diff --git a/sync/client/mock_client.go b/sync/client/mock_client.go index 038bdf73bf..cb42c9c73c 100644 --- a/sync/client/mock_client.go +++ b/sync/client/mock_client.go @@ -10,11 +10,11 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers" ) var ( diff --git a/sync/client/mock_network.go b/sync/client/mock_network.go index b841ffae45..318392f54f 100644 --- a/sync/client/mock_network.go +++ b/sync/client/mock_network.go @@ -8,7 +8,7 @@ import ( "errors" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/peer" + "github.com/tenderly/coreth/peer" "github.com/ava-labs/avalanchego/version" ) diff --git a/sync/client/stats/stats.go b/sync/client/stats/stats.go index 14af154423..93a5c6952c 100644 --- a/sync/client/stats/stats.go +++ b/sync/client/stats/stats.go @@ -7,8 +7,8 @@ import ( "fmt" "time" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/plugin/evm/message" ) var ( diff --git a/sync/handlers/block_request.go b/sync/handlers/block_request.go index 2bbb21b012..256ab33044 100644 --- a/sync/handlers/block_request.go +++ b/sync/handlers/block_request.go @@ -12,10 +12,10 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/units" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" ) const ( diff --git a/sync/handlers/block_request_test.go b/sync/handlers/block_request_test.go index 2ca5c629a3..c62d0dabd0 100644 --- a/sync/handlers/block_request_test.go +++ b/sync/handlers/block_request_test.go @@ -10,18 +10,18 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/units" - "github.com/ava-labs/coreth/consensus/dummy" - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/consensus/dummy" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/trie" ) type blockRequestTest struct { diff --git a/sync/handlers/code_request.go b/sync/handlers/code_request.go index b756507f75..de7cfb9fc9 100644 --- a/sync/handlers/code_request.go +++ b/sync/handlers/code_request.go @@ -10,12 +10,12 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" ) // CodeRequestHandler is a peer.RequestHandler for message.CodeRequest diff --git a/sync/handlers/code_request_test.go b/sync/handlers/code_request_test.go index 1bf5bd5223..fd4bab9c47 100644 --- a/sync/handlers/code_request_test.go +++ b/sync/handlers/code_request_test.go @@ -8,16 +8,16 @@ import ( "crypto/rand" "testing" - "github.com/ava-labs/coreth/params" + "github.com/tenderly/coreth/params" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" ) func TestCodeRequestHandler(t *testing.T) { diff --git a/sync/handlers/handler.go b/sync/handlers/handler.go index 71bff519de..d956ba3f40 100644 --- a/sync/handlers/handler.go +++ b/sync/handlers/handler.go @@ -4,9 +4,9 @@ package handlers import ( - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" ) type BlockProvider interface { diff --git a/sync/handlers/leafs_request.go b/sync/handlers/leafs_request.go index 9519a349f0..daf4ecd340 100644 --- a/sync/handlers/leafs_request.go +++ b/sync/handlers/leafs_request.go @@ -13,17 +13,17 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" ) const ( diff --git a/sync/handlers/leafs_request_test.go b/sync/handlers/leafs_request_test.go index 9be7c3f616..f1a9c7b347 100644 --- a/sync/handlers/leafs_request_test.go +++ b/sync/handlers/leafs_request_test.go @@ -10,17 +10,17 @@ import ( "testing" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) func TestLeafsRequestHandler_OnLeafsRequest(t *testing.T) { diff --git a/sync/handlers/stats/stats.go b/sync/handlers/stats/stats.go index 9dd04c4ea0..9105835f70 100644 --- a/sync/handlers/stats/stats.go +++ b/sync/handlers/stats/stats.go @@ -6,7 +6,7 @@ package stats import ( "time" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) // HandlerStats reports prometheus metrics for the state sync handlers diff --git a/sync/handlers/test_providers.go b/sync/handlers/test_providers.go index 81dafbfd00..24f683ecf0 100644 --- a/sync/handlers/test_providers.go +++ b/sync/handlers/test_providers.go @@ -4,9 +4,9 @@ package handlers import ( - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" ) var ( diff --git a/sync/statesync/code_syncer.go b/sync/statesync/code_syncer.go index 97164b2658..6f32925aa2 100644 --- a/sync/statesync/code_syncer.go +++ b/sync/statesync/code_syncer.go @@ -11,11 +11,11 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/set" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - statesyncclient "github.com/ava-labs/coreth/sync/client" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + statesyncclient "github.com/tenderly/coreth/sync/client" ) const ( diff --git a/sync/statesync/code_syncer_test.go b/sync/statesync/code_syncer_test.go index 574290e286..a434f76465 100644 --- a/sync/statesync/code_syncer_test.go +++ b/sync/statesync/code_syncer_test.go @@ -9,15 +9,15 @@ import ( "testing" "github.com/ava-labs/avalanchego/utils" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - statesyncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/handlers" - handlerstats "github.com/ava-labs/coreth/sync/handlers/stats" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb/memorydb" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + statesyncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/handlers" + handlerstats "github.com/tenderly/coreth/sync/handlers/stats" ) type codeSyncerTest struct { diff --git a/sync/statesync/state_syncer.go b/sync/statesync/state_syncer.go index 8d6312dbf6..275d7090ff 100644 --- a/sync/statesync/state_syncer.go +++ b/sync/statesync/state_syncer.go @@ -8,11 +8,11 @@ import ( "fmt" "sync" - "github.com/ava-labs/coreth/core/state/snapshot" - syncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/state/snapshot" + syncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/trie" "golang.org/x/sync/errgroup" ) diff --git a/sync/statesync/sync_helpers.go b/sync/statesync/sync_helpers.go index a6ff02c90d..166a50afb4 100644 --- a/sync/statesync/sync_helpers.go +++ b/sync/statesync/sync_helpers.go @@ -4,11 +4,11 @@ package statesync import ( - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" ) // writeAccountSnapshot stores the account represented by [acc] to the snapshot at [accHash], using diff --git a/sync/statesync/sync_test.go b/sync/statesync/sync_test.go index 82f063a864..2487871a2a 100644 --- a/sync/statesync/sync_test.go +++ b/sync/statesync/sync_test.go @@ -13,20 +13,20 @@ import ( "testing" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/plugin/evm/message" - statesyncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/sync/handlers" - handlerstats "github.com/ava-labs/coreth/sync/handlers/stats" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/plugin/evm/message" + statesyncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/sync/handlers" + handlerstats "github.com/tenderly/coreth/sync/handlers/stats" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) const testSyncTimeout = 30 * time.Second diff --git a/sync/statesync/test_sync.go b/sync/statesync/test_sync.go index 418eb675fd..ba11ddab5f 100644 --- a/sync/statesync/test_sync.go +++ b/sync/statesync/test_sync.go @@ -8,16 +8,16 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/accounts/keystore" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/accounts/keystore" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) // assertDBConsistency checks [serverTrieDB] and [clientTrieDB] have the same EVM state trie at [root], diff --git a/sync/statesync/trie_queue.go b/sync/statesync/trie_queue.go index 3ec7c87a49..4472bd9edc 100644 --- a/sync/statesync/trie_queue.go +++ b/sync/statesync/trie_queue.go @@ -4,9 +4,9 @@ package statesync import ( - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" ) // trieQueue persists storage trie roots with their associated diff --git a/sync/statesync/trie_segments.go b/sync/statesync/trie_segments.go index b992cd868b..581071be9a 100644 --- a/sync/statesync/trie_segments.go +++ b/sync/statesync/trie_segments.go @@ -11,14 +11,14 @@ import ( "sync" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/plugin/evm/message" - syncclient "github.com/ava-labs/coreth/sync/client" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/plugin/evm/message" + syncclient "github.com/tenderly/coreth/sync/client" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/utils" ) var ( diff --git a/sync/statesync/trie_sync_stats.go b/sync/statesync/trie_sync_stats.go index 3de1211dbd..b18fdbebbc 100644 --- a/sync/statesync/trie_sync_stats.go +++ b/sync/statesync/trie_sync_stats.go @@ -9,9 +9,9 @@ import ( "time" utils_math "github.com/ava-labs/avalanchego/utils/math" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/metrics" ) const ( diff --git a/sync/statesync/trie_sync_tasks.go b/sync/statesync/trie_sync_tasks.go index 0c7cad4239..95d2226028 100644 --- a/sync/statesync/trie_sync_tasks.go +++ b/sync/statesync/trie_sync_tasks.go @@ -6,14 +6,14 @@ package statesync import ( "fmt" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/sync/syncutils" - "github.com/ava-labs/coreth/trie" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/sync/syncutils" + "github.com/tenderly/coreth/trie" ) var ( diff --git a/sync/syncutils/iterators.go b/sync/syncutils/iterators.go index 2ae6bfcc80..983e0082b0 100644 --- a/sync/syncutils/iterators.go +++ b/sync/syncutils/iterators.go @@ -4,9 +4,9 @@ package syncutils import ( - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" ) var ( diff --git a/sync/syncutils/test_trie.go b/sync/syncutils/test_trie.go index ea1b7eff04..6f6b14bab3 100644 --- a/sync/syncutils/test_trie.go +++ b/sync/syncutils/test_trie.go @@ -11,10 +11,10 @@ import ( "testing" "github.com/ava-labs/avalanchego/utils/wrappers" - "github.com/ava-labs/coreth/accounts/keystore" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/trienode" + "github.com/tenderly/coreth/accounts/keystore" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" diff --git a/tests/init.go b/tests/init.go index a2080e861f..a59a02dbf4 100644 --- a/tests/init.go +++ b/tests/init.go @@ -31,8 +31,8 @@ import ( "math/big" "sort" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/utils" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/utils" ) // Forks table defines supported forks and their chain config. diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 29e934efe5..6efdc26a78 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -27,16 +27,16 @@ package tests import ( - "github.com/ava-labs/coreth/core" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/state" - "github.com/ava-labs/coreth/core/state/snapshot" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/state" + "github.com/tenderly/coreth/core/state/snapshot" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" ) func MakePreState(db ethdb.Database, accounts core.GenesisAlloc, snapshotter bool, scheme string) (*trie.Database, *snapshot.Tree, *state.StateDB) { diff --git a/trie/committer.go b/trie/committer.go index ac317ecb33..8391ca04b7 100644 --- a/trie/committer.go +++ b/trie/committer.go @@ -29,8 +29,8 @@ package trie import ( "fmt" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/trie/trienode" ) // committer is the tool used for the trie Commit operation. The committer will diff --git a/trie/database.go b/trie/database.go index a3bd3ecc65..717f546abd 100644 --- a/trie/database.go +++ b/trie/database.go @@ -19,13 +19,13 @@ package trie import ( "errors" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) // Config defines all necessary options for database. diff --git a/trie/database_test.go b/trie/database_test.go index 156e04d940..c28fb3dccc 100644 --- a/trie/database_test.go +++ b/trie/database_test.go @@ -27,10 +27,10 @@ package trie import ( - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie/triedb/hashdb" - "github.com/ava-labs/coreth/trie/triedb/pathdb" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie/triedb/hashdb" + "github.com/tenderly/coreth/trie/triedb/pathdb" ) // newTestDatabase initializes the trie database with specified scheme. diff --git a/trie/iterator.go b/trie/iterator.go index d590b66b24..1e53afcaf3 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -31,8 +31,8 @@ import ( "container/heap" "errors" - "github.com/ava-labs/coreth/core/types" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" ) // NodeResolver is used for looking up trie nodes before reaching into the real diff --git a/trie/iterator_test.go b/trie/iterator_test.go index 3cbd807897..1108e45917 100644 --- a/trie/iterator_test.go +++ b/trie/iterator_test.go @@ -32,11 +32,11 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) func TestEmptyIterator(t *testing.T) { diff --git a/trie/node_test.go b/trie/node_test.go index 4671b798de..d6f01fdde8 100644 --- a/trie/node_test.go +++ b/trie/node_test.go @@ -106,7 +106,7 @@ func TestDecodeFullNode(t *testing.T) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkEncodeShortNode // BenchmarkEncodeShortNode-8 16878850 70.81 ns/op 48 B/op 1 allocs/op func BenchmarkEncodeShortNode(b *testing.B) { @@ -124,7 +124,7 @@ func BenchmarkEncodeShortNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkEncodeFullNode // BenchmarkEncodeFullNode-8 4323273 284.4 ns/op 576 B/op 1 allocs/op func BenchmarkEncodeFullNode(b *testing.B) { @@ -142,7 +142,7 @@ func BenchmarkEncodeFullNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkDecodeShortNode // BenchmarkDecodeShortNode-8 7925638 151.0 ns/op 157 B/op 4 allocs/op func BenchmarkDecodeShortNode(b *testing.B) { @@ -163,7 +163,7 @@ func BenchmarkDecodeShortNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkDecodeShortNodeUnsafe // BenchmarkDecodeShortNodeUnsafe-8 9027476 128.6 ns/op 109 B/op 3 allocs/op func BenchmarkDecodeShortNodeUnsafe(b *testing.B) { @@ -184,7 +184,7 @@ func BenchmarkDecodeShortNodeUnsafe(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkDecodeFullNode // BenchmarkDecodeFullNode-8 1597462 761.9 ns/op 1280 B/op 18 allocs/op func BenchmarkDecodeFullNode(b *testing.B) { @@ -205,7 +205,7 @@ func BenchmarkDecodeFullNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkDecodeFullNodeUnsafe // BenchmarkDecodeFullNodeUnsafe-8 1789070 687.1 ns/op 704 B/op 17 allocs/op func BenchmarkDecodeFullNodeUnsafe(b *testing.B) { diff --git a/trie/preimages.go b/trie/preimages.go index 1502372f7c..d0666dfe83 100644 --- a/trie/preimages.go +++ b/trie/preimages.go @@ -29,9 +29,9 @@ package trie import ( "sync" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" ) const defaultPreimagesLimit = 4 * 1024 * 1024 // 4 MB diff --git a/trie/proof_test.go b/trie/proof_test.go index aae0a11b3a..5dcf764187 100644 --- a/trie/proof_test.go +++ b/trie/proof_test.go @@ -34,10 +34,10 @@ import ( mrand "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb/memorydb" + "github.com/tenderly/coreth/core/rawdb" "golang.org/x/exp/slices" ) diff --git a/trie/secure_trie.go b/trie/secure_trie.go index bb81f85819..a498b70bf1 100644 --- a/trie/secure_trie.go +++ b/trie/secure_trie.go @@ -27,10 +27,10 @@ package trie import ( - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) // SecureTrie is the old name of StateTrie. diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go index 8081f9b500..5c402bd9ec 100644 --- a/trie/secure_trie_test.go +++ b/trie/secure_trie_test.go @@ -33,11 +33,11 @@ import ( "sync" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) func newEmptySecure() *StateTrie { diff --git a/trie/stacktrie.go b/trie/stacktrie.go index a191252dbb..410fa2a739 100644 --- a/trie/stacktrie.go +++ b/trie/stacktrie.go @@ -31,10 +31,10 @@ import ( "errors" "sync" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" ) var ( diff --git a/trie/stacktrie_fuzzer_test.go b/trie/stacktrie_fuzzer_test.go index daf1185e49..19df6da5e0 100644 --- a/trie/stacktrie_fuzzer_test.go +++ b/trie/stacktrie_fuzzer_test.go @@ -22,11 +22,11 @@ import ( "fmt" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" "golang.org/x/crypto/sha3" "golang.org/x/exp/slices" ) diff --git a/trie/stacktrie_test.go b/trie/stacktrie_test.go index 3a7767d360..ac545fc455 100644 --- a/trie/stacktrie_test.go +++ b/trie/stacktrie_test.go @@ -32,11 +32,11 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie/testutil" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/assert" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie/testutil" "golang.org/x/exp/slices" ) diff --git a/trie/sync_test.go b/trie/sync_test.go index 71cf0d5530..8ade841ef9 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -29,11 +29,11 @@ package trie import ( "fmt" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) // makeTestTrie create a sample test trie to test node-wise reconstruction. diff --git a/trie/testutil/utils.go b/trie/testutil/utils.go index 9f6e6fac87..27d88e7878 100644 --- a/trie/testutil/utils.go +++ b/trie/testutil/utils.go @@ -31,9 +31,9 @@ import ( "encoding/binary" mrand "math/rand" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/trie/trienode" ) // Prng is a pseudo random number generator seeded by strong randomness. diff --git a/trie/tracer_test.go b/trie/tracer_test.go index 211b60a2ed..18e898543d 100644 --- a/trie/tracer_test.go +++ b/trie/tracer_test.go @@ -20,10 +20,10 @@ import ( "bytes" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) var ( diff --git a/trie/trie.go b/trie/trie.go index 66c3d60627..2c7ff34125 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -32,10 +32,10 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" ) // Trie is a Merkle Patricia Trie. Use New to create a trie that sits on diff --git a/trie/trie_reader.go b/trie/trie_reader.go index 99fce64436..043b8e80d3 100644 --- a/trie/trie_reader.go +++ b/trie/trie_reader.go @@ -27,10 +27,10 @@ package trie import ( - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/triestate" ) // Reader wraps the Node method of a backing trie store. diff --git a/trie/trie_test.go b/trie/trie_test.go index 81402d5cbd..06fdf5b62c 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -39,15 +39,15 @@ import ( "testing" "testing/quick" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/davecgh/go-spew/spew" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" "golang.org/x/crypto/sha3" ) diff --git a/trie/triedb/hashdb/database.go b/trie/triedb/hashdb/database.go index f5c55b3198..7e3bf0d6dc 100644 --- a/trie/triedb/hashdb/database.go +++ b/trie/triedb/hashdb/database.go @@ -33,16 +33,16 @@ import ( "sync" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/metrics" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" - "github.com/ava-labs/coreth/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/metrics" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" + "github.com/tenderly/coreth/utils" ) const ( diff --git a/trie/triedb/pathdb/database.go b/trie/triedb/pathdb/database.go index c4dd69cfcb..83cc6e3f86 100644 --- a/trie/triedb/pathdb/database.go +++ b/trie/triedb/pathdb/database.go @@ -32,14 +32,14 @@ import ( "io" "sync" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/params" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/params" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) const ( diff --git a/trie/triedb/pathdb/database_test.go b/trie/triedb/pathdb/database_test.go index 5f76c6dab4..6ce6f21638 100644 --- a/trie/triedb/pathdb/database_test.go +++ b/trie/triedb/pathdb/database_test.go @@ -34,15 +34,15 @@ import ( "math/rand" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/testutil" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/testutil" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) func updateTrie(addrHash common.Hash, root common.Hash, dirties, cleans map[common.Hash][]byte) (common.Hash, *trienode.NodeSet) { diff --git a/trie/triedb/pathdb/difflayer.go b/trie/triedb/pathdb/difflayer.go index 5294ef3fb9..cbcd61c932 100644 --- a/trie/triedb/pathdb/difflayer.go +++ b/trie/triedb/pathdb/difflayer.go @@ -30,10 +30,10 @@ import ( "fmt" "sync" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) // diffLayer represents a collection of modifications made to the in-memory tries diff --git a/trie/triedb/pathdb/difflayer_test.go b/trie/triedb/pathdb/difflayer_test.go index 9d4022aa95..592eeaae6f 100644 --- a/trie/triedb/pathdb/difflayer_test.go +++ b/trie/triedb/pathdb/difflayer_test.go @@ -30,10 +30,10 @@ import ( "bytes" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie/testutil" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie/testutil" + "github.com/tenderly/coreth/trie/trienode" ) func emptyLayer() *diskLayer { @@ -45,21 +45,21 @@ func emptyLayer() *diskLayer { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkSearch128Layers // BenchmarkSearch128Layers-8 243826 4755 ns/op func BenchmarkSearch128Layers(b *testing.B) { benchmarkSearch(b, 0, 128) } // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkSearch512Layers // BenchmarkSearch512Layers-8 49686 24256 ns/op func BenchmarkSearch512Layers(b *testing.B) { benchmarkSearch(b, 0, 512) } // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkSearch1Layer // BenchmarkSearch1Layer-8 14062725 88.40 ns/op func BenchmarkSearch1Layer(b *testing.B) { benchmarkSearch(b, 127, 128) } @@ -112,7 +112,7 @@ func benchmarkSearch(b *testing.B, depth int, total int) { // goos: darwin // goarch: arm64 -// pkg: github.com/ava-labs/coreth/trie +// pkg: github.com/tenderly/coreth/trie // BenchmarkPersist // BenchmarkPersist-8 10 111252975 ns/op func BenchmarkPersist(b *testing.B) { diff --git a/trie/triedb/pathdb/disklayer.go b/trie/triedb/pathdb/disklayer.go index b20e2118f1..842898a1c8 100644 --- a/trie/triedb/pathdb/disklayer.go +++ b/trie/triedb/pathdb/disklayer.go @@ -32,12 +32,12 @@ import ( "sync" "github.com/VictoriaMetrics/fastcache" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" "golang.org/x/crypto/sha3" ) diff --git a/trie/triedb/pathdb/history.go b/trie/triedb/pathdb/history.go index 368bfeb869..a942c8e06f 100644 --- a/trie/triedb/pathdb/history.go +++ b/trie/triedb/pathdb/history.go @@ -32,8 +32,8 @@ import ( "errors" "fmt" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/trie/triestate" "golang.org/x/exp/slices" ) diff --git a/trie/triedb/pathdb/history_test.go b/trie/triedb/pathdb/history_test.go index a2fe352187..b72b48d041 100644 --- a/trie/triedb/pathdb/history_test.go +++ b/trie/triedb/pathdb/history_test.go @@ -31,11 +31,11 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/testutil" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/testutil" + "github.com/tenderly/coreth/trie/triestate" ) // randomStateSet generates a random state change set. diff --git a/trie/triedb/pathdb/journal.go b/trie/triedb/pathdb/journal.go index 13f368cac4..0fb673900d 100644 --- a/trie/triedb/pathdb/journal.go +++ b/trie/triedb/pathdb/journal.go @@ -33,14 +33,14 @@ import ( "io" "time" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) var ( diff --git a/trie/triedb/pathdb/layertree.go b/trie/triedb/pathdb/layertree.go index 4ba9a8d0c1..3c49e41667 100644 --- a/trie/triedb/pathdb/layertree.go +++ b/trie/triedb/pathdb/layertree.go @@ -31,10 +31,10 @@ import ( "fmt" "sync" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" ) // layerTree is a group of state layers identified by the state root. diff --git a/trie/triedb/pathdb/metrics.go b/trie/triedb/pathdb/metrics.go index 8e3bb412d5..936cae5235 100644 --- a/trie/triedb/pathdb/metrics.go +++ b/trie/triedb/pathdb/metrics.go @@ -26,7 +26,7 @@ package pathdb -import "github.com/ava-labs/coreth/metrics" +import "github.com/tenderly/coreth/metrics" // nolint: unused var ( diff --git a/trie/triedb/pathdb/nodebuffer.go b/trie/triedb/pathdb/nodebuffer.go index 178e40821e..0a10c86c20 100644 --- a/trie/triedb/pathdb/nodebuffer.go +++ b/trie/triedb/pathdb/nodebuffer.go @@ -31,12 +31,12 @@ import ( "time" "github.com/VictoriaMetrics/fastcache" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/trie/trienode" ) // nodebuffer is a collection of modified trie nodes to aggregate the disk diff --git a/trie/triedb/pathdb/testutils.go b/trie/triedb/pathdb/testutils.go index 395e250f7d..133b07e376 100644 --- a/trie/triedb/pathdb/testutils.go +++ b/trie/triedb/pathdb/testutils.go @@ -30,11 +30,11 @@ import ( "bytes" "fmt" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/triestate" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/triestate" "golang.org/x/exp/slices" ) diff --git a/trie/triestate/state.go b/trie/triestate/state.go index 75c4e0bd69..67f8da6d62 100644 --- a/trie/triestate/state.go +++ b/trie/triestate/state.go @@ -31,11 +31,11 @@ import ( "fmt" "sync" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" "golang.org/x/crypto/sha3" ) diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index 7f46409852..9f4537c32d 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -20,11 +20,11 @@ import ( "encoding/binary" "sync" - "github.com/ava-labs/coreth/metrics" "github.com/crate-crypto/go-ipa/bandersnatch/fr" "github.com/ethereum/go-ethereum/common/lru" "github.com/gballet/go-verkle" "github.com/holiman/uint256" + "github.com/tenderly/coreth/metrics" ) const ( diff --git a/trie/utils/verkle_test.go b/trie/utils/verkle_test.go index b3877d5196..8fc4370567 100644 --- a/trie/utils/verkle_test.go +++ b/trie/utils/verkle_test.go @@ -64,7 +64,7 @@ func TestTreeKey(t *testing.T) { // goos: darwin // goarch: amd64 -// pkg: github.com/ava-labs/coreth/trie/utils +// pkg: github.com/tenderly/coreth/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkTreeKey // BenchmarkTreeKey-8 398731 2961 ns/op 32 B/op 1 allocs/op @@ -82,7 +82,7 @@ func BenchmarkTreeKey(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ava-labs/coreth/trie/utils +// pkg: github.com/tenderly/coreth/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkTreeKeyWithEvaluation // BenchmarkTreeKeyWithEvaluation-8 513855 2324 ns/op 32 B/op 1 allocs/op @@ -102,7 +102,7 @@ func BenchmarkTreeKeyWithEvaluation(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ava-labs/coreth/trie/utils +// pkg: github.com/tenderly/coreth/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkStorageKey // BenchmarkStorageKey-8 230516 4584 ns/op 96 B/op 3 allocs/op @@ -120,7 +120,7 @@ func BenchmarkStorageKey(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ava-labs/coreth/trie/utils +// pkg: github.com/tenderly/coreth/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkStorageKeyWithEvaluation // BenchmarkStorageKeyWithEvaluation-8 320125 3753 ns/op 96 B/op 3 allocs/op diff --git a/trie/verkle.go b/trie/verkle.go index a8b84431b6..312d4875c9 100644 --- a/trie/verkle.go +++ b/trie/verkle.go @@ -22,13 +22,13 @@ import ( "fmt" "math/big" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/trienode" - "github.com/ava-labs/coreth/trie/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/gballet/go-verkle" "github.com/holiman/uint256" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/trienode" + "github.com/tenderly/coreth/trie/utils" ) var ( diff --git a/trie/verkle_test.go b/trie/verkle_test.go index b0a382e2af..a8e970c771 100644 --- a/trie/verkle_test.go +++ b/trie/verkle_test.go @@ -22,11 +22,11 @@ import ( "reflect" "testing" - "github.com/ava-labs/coreth/core/rawdb" - "github.com/ava-labs/coreth/core/types" - "github.com/ava-labs/coreth/trie/triedb/pathdb" - "github.com/ava-labs/coreth/trie/utils" "github.com/ethereum/go-ethereum/common" + "github.com/tenderly/coreth/core/rawdb" + "github.com/tenderly/coreth/core/types" + "github.com/tenderly/coreth/trie/triedb/pathdb" + "github.com/tenderly/coreth/trie/utils" ) var ( diff --git a/utils/metered_cache.go b/utils/metered_cache.go index 148239dfc9..d74596def9 100644 --- a/utils/metered_cache.go +++ b/utils/metered_cache.go @@ -9,7 +9,7 @@ import ( "time" "github.com/VictoriaMetrics/fastcache" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) // MeteredCache wraps *fastcache.Cache and periodically pulls stats from it. diff --git a/warp/aggregator/aggregator.go b/warp/aggregator/aggregator.go index 9c6c3aa322..0bebbd0def 100644 --- a/warp/aggregator/aggregator.go +++ b/warp/aggregator/aggregator.go @@ -12,7 +12,7 @@ import ( "github.com/ava-labs/avalanchego/utils/crypto/bls" "github.com/ava-labs/avalanchego/utils/set" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" - "github.com/ava-labs/coreth/precompile/contracts/warp" + "github.com/tenderly/coreth/precompile/contracts/warp" ) type AggregateSignatureResult struct { diff --git a/warp/aggregator/mock_signature_getter.go b/warp/aggregator/mock_signature_getter.go index 144d8a2f98..60b51728f3 100644 --- a/warp/aggregator/mock_signature_getter.go +++ b/warp/aggregator/mock_signature_getter.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/ava-labs/coreth/warp/aggregator (interfaces: SignatureGetter) +// Source: github.com/tenderly/coreth/warp/aggregator (interfaces: SignatureGetter) // Package aggregator is a generated GoMock package. package aggregator diff --git a/warp/aggregator/signature_getter.go b/warp/aggregator/signature_getter.go index 8bdb60fea1..7fc7be83b4 100644 --- a/warp/aggregator/signature_getter.go +++ b/warp/aggregator/signature_getter.go @@ -12,7 +12,7 @@ import ( "github.com/ava-labs/avalanchego/utils/crypto/bls" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/plugin/evm/message" + "github.com/tenderly/coreth/plugin/evm/message" ) const ( diff --git a/warp/client.go b/warp/client.go index 90633d6b47..8d51957685 100644 --- a/warp/client.go +++ b/warp/client.go @@ -8,8 +8,8 @@ import ( "fmt" "github.com/ava-labs/avalanchego/ids" - "github.com/ava-labs/coreth/rpc" "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/tenderly/coreth/rpc" ) var _ Client = (*client)(nil) diff --git a/warp/fetcher.go b/warp/fetcher.go index 99c70e5431..2b88b3c783 100644 --- a/warp/fetcher.go +++ b/warp/fetcher.go @@ -11,7 +11,7 @@ import ( "github.com/ava-labs/avalanchego/utils/crypto/bls" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/warp/aggregator" + "github.com/tenderly/coreth/warp/aggregator" ) var _ aggregator.SignatureGetter = (*apiFetcher)(nil) diff --git a/warp/handlers/signature_request.go b/warp/handlers/signature_request.go index 7b03fc5296..40bc4dab47 100644 --- a/warp/handlers/signature_request.go +++ b/warp/handlers/signature_request.go @@ -10,9 +10,9 @@ import ( "github.com/ava-labs/avalanchego/codec" "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/utils/crypto/bls" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/warp" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/warp" ) // SignatureRequestHandler serves warp signature requests. It is a peer.RequestHandler for message.MessageSignatureRequest. diff --git a/warp/handlers/signature_request_test.go b/warp/handlers/signature_request_test.go index d8ae7387bc..87a8b83ee1 100644 --- a/warp/handlers/signature_request_test.go +++ b/warp/handlers/signature_request_test.go @@ -18,10 +18,10 @@ import ( "github.com/ava-labs/avalanchego/utils/crypto/bls" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/plugin/evm/message" - "github.com/ava-labs/coreth/utils" - "github.com/ava-labs/coreth/warp" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/plugin/evm/message" + "github.com/tenderly/coreth/utils" + "github.com/tenderly/coreth/warp" ) func TestMessageSignatureHandler(t *testing.T) { diff --git a/warp/handlers/stats.go b/warp/handlers/stats.go index 9e2ea373aa..85fee9851b 100644 --- a/warp/handlers/stats.go +++ b/warp/handlers/stats.go @@ -6,7 +6,7 @@ package handlers import ( "time" - "github.com/ava-labs/coreth/metrics" + "github.com/tenderly/coreth/metrics" ) type handlerStats struct { diff --git a/warp/service.go b/warp/service.go index 6eec775e37..292e0b9995 100644 --- a/warp/service.go +++ b/warp/service.go @@ -11,11 +11,11 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/vms/platformvm/warp" "github.com/ava-labs/avalanchego/vms/platformvm/warp/payload" - "github.com/ava-labs/coreth/peer" - "github.com/ava-labs/coreth/warp/aggregator" - "github.com/ava-labs/coreth/warp/validators" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/log" + "github.com/tenderly/coreth/peer" + "github.com/tenderly/coreth/warp/aggregator" + "github.com/tenderly/coreth/warp/validators" ) var errNoValidators = errors.New("cannot aggregate signatures from subnet with no validators") diff --git a/warp/validators/state_test.go b/warp/validators/state_test.go index e06d1374ad..c44dba4200 100644 --- a/warp/validators/state_test.go +++ b/warp/validators/state_test.go @@ -10,8 +10,8 @@ import ( "github.com/ava-labs/avalanchego/ids" "github.com/ava-labs/avalanchego/snow/validators" "github.com/ava-labs/avalanchego/utils/constants" - "github.com/ava-labs/coreth/utils" "github.com/stretchr/testify/require" + "github.com/tenderly/coreth/utils" "go.uber.org/mock/gomock" )