Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firehose #7

Merged
merged 45 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
edd0dc4
feat: add firehose tracer
arrivets Sep 22, 2024
b5b917d
chore: add firehose test case in TestApplyMessageWithConfig
arrivets Sep 23, 2024
8a39df1
chore: fix firehose test case
arrivets Sep 23, 2024
279bd42
chore: make firehose the default tracer
arrivets Sep 23, 2024
f3b5e0b
chore: cleanup comment about default tracer
arrivets Sep 30, 2024
2084cda
chore: move test case with firehose tracer
arrivets Sep 30, 2024
f19c3c0
- add firehose evm tracer hooks
Eduard-Voiculescu Oct 3, 2024
94e8033
Tracer refactoring
Eduard-Voiculescu Oct 4, 2024
5376e54
Adding EndBlock tracer and using the k.evmTracer instead of the trace…
Eduard-Voiculescu Oct 4, 2024
65f117b
Update finalized header when begin block hook is called
Eduard-Voiculescu Oct 4, 2024
7821ea6
Removing unused method and setting header values
Eduard-Voiculescu Oct 4, 2024
5f5cd2c
Update tracer with custom OnCosmosBlockStart and OnCosmosBlockEnd hooks
Eduard-Voiculescu Oct 9, 2024
091c32a
fix block header differences bet/ firehose tracer and eth_getBlock me…
Eduard-Voiculescu Oct 9, 2024
c6b80d9
removing debug log
Eduard-Voiculescu Oct 9, 2024
de3f90e
update statedb tracer
Eduard-Voiculescu Oct 9, 2024
5558c12
adding balance change setBalance changes
Eduard-Voiculescu Oct 9, 2024
929fec3
Update tracer tests for nonce changes, code changes and storage changes
Eduard-Voiculescu Oct 10, 2024
bcb4d47
Bumping cometbft and cosmos-sdk versions
Eduard-Voiculescu Oct 10, 2024
3f8d55e
Update cometbft dependency with sf fork with changes done to PartSetH…
Eduard-Voiculescu Oct 11, 2024
7867d50
Update tracer
Eduard-Voiculescu Oct 15, 2024
b7a2952
Fix on tx end hook call
Eduard-Voiculescu Oct 16, 2024
781d9ac
Fix outdated grpc_query tests
Eduard-Voiculescu Oct 16, 2024
34b4182
Adding firehose trace in the OnStorageChange call
Eduard-Voiculescu Oct 17, 2024
4e2ce71
Adding test for ApplyTransactionWithTracer to check that the hooks ar…
Eduard-Voiculescu Oct 17, 2024
bc9cb03
- address pr comments
Eduard-Voiculescu Oct 17, 2024
610f7b6
Fix issue in tracer not catching correct error in `state_transition.go`
Eduard-Voiculescu Oct 17, 2024
2eb08d9
removing todo
Eduard-Voiculescu Oct 17, 2024
81ed849
removing todo comment
Eduard-Voiculescu Oct 17, 2024
5d807a1
Removing global registry
Eduard-Voiculescu Oct 18, 2024
4a1c994
refactor: removce EVMConfigWithTracer
arrivets Oct 21, 2024
4c4cf62
refactor: comment choice of tracer in prepareTrace
arrivets Oct 21, 2024
ba1afe5
refactor: update comment on NewEVM about RANDAO
arrivets Oct 21, 2024
5d3ad48
chore: add nil check in StateDB.AddLog
arrivets Oct 21, 2024
f865e00
chore: remove duplicate package alias in statedb_test.go
arrivets Oct 22, 2024
6a35fc9
refactor: delete unused LiveTracerRegistry
arrivets Oct 22, 2024
753bad6
refactor: delete unused BlockchainTraceFactory
arrivets Oct 22, 2024
7f52fb5
refactor: change name of methods that get/set tracing hooks in context
arrivets Oct 22, 2024
aa2d647
refactor: fix imports in x/evm/types/tracer.go
arrivets Oct 22, 2024
0803635
refactor: remove unused NewLiveTracer
arrivets Oct 22, 2024
bd3ef46
removing the firehose switch case from the NewTracer method as we are…
Eduard-Voiculescu Oct 22, 2024
7789c56
chore: add tracer in app.go
arrivets Oct 23, 2024
7db3bd1
chore: refactor initializeEVM
arrivets Oct 23, 2024
e942116
chore: define error type for ErrConfigOverrides
arrivets Oct 23, 2024
5be6f4c
chore: update TestApplyMessage
arrivets Oct 23, 2024
ffcfd44
chore: remove manual call to OnNonceChange after evm.Call
arrivets Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ contracts/@openzeppelin/*
# direnv
/.envrc
/.direnv

# env file
.env
5 changes: 0 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ import (
"github.com/cosmos/ibc-go/modules/capability"
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"

"github.com/cosmos/ibc-go/v8/modules/apps/transfer"
ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
Expand All @@ -126,7 +125,6 @@ import (
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"

"github.com/evmos/ethermint/client/docs"

"github.com/evmos/ethermint/app/ante"
Expand Down Expand Up @@ -480,8 +478,6 @@ func NewEthermintApp(
authAddr,
)

tracer := cast.ToString(appOpts.Get(srvflags.EVMTracer))

// Create Ethermint keepers
feeMarketSs := app.GetSubspace(feemarkettypes.ModuleName)
app.FeeMarketKeeper = feemarketkeeper.NewKeeper(
Expand All @@ -497,7 +493,6 @@ func NewEthermintApp(
appCodec,
keys[evmtypes.StoreKey], okeys[evmtypes.ObjectStoreKey], authtypes.NewModuleAddress(govtypes.ModuleName),
app.AccountKeeper, app.BankKeeper, app.StakingKeeper, app.FeeMarketKeeper,
tracer,
evmSs,
nil,
)
Expand Down
31 changes: 16 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ toolchain go1.22.5
require (
cosmossdk.io/api v0.7.5
cosmossdk.io/client/v2 v2.0.0-beta.1
cosmossdk.io/core v0.11.0
cosmossdk.io/core v0.11.1
cosmossdk.io/errors v1.0.1
cosmossdk.io/log v1.3.1
cosmossdk.io/math v1.3.0
cosmossdk.io/store v1.1.0
cosmossdk.io/tools/confix v0.1.1
cosmossdk.io/x/evidence v0.1.0
cosmossdk.io/x/feegrant v0.1.0
cosmossdk.io/x/tx v0.13.3
cosmossdk.io/x/tx v0.13.4
cosmossdk.io/x/upgrade v0.1.1
github.com/btcsuite/btcd v0.24.2
github.com/btcsuite/btcd/btcutil v1.1.5
github.com/cometbft/cometbft v0.38.9
github.com/cometbft/cometbft v0.38.10
github.com/cosmos/cosmos-db v1.0.2
github.com/cosmos/cosmos-proto v1.0.0-beta.5
github.com/cosmos/cosmos-sdk v0.50.6
Expand Down Expand Up @@ -50,9 +50,10 @@ require (
github.com/tidwall/gjson v1.17.1
github.com/tidwall/sjson v1.2.5
github.com/tyler-smith/go-bip39 v1.1.0
golang.org/x/net v0.27.0
golang.org/x/sync v0.7.0
golang.org/x/text v0.16.0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
golang.org/x/net v0.29.0
golang.org/x/sync v0.8.0
golang.org/x/text v0.18.0
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157
google.golang.org/grpc v1.65.0
google.golang.org/protobuf v1.34.2
Expand All @@ -65,7 +66,7 @@ require (
cloud.google.com/go/iam v1.1.6 // indirect
cloud.google.com/go/storage v1.38.0 // indirect
cosmossdk.io/collections v0.4.0 // indirect
cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
cosmossdk.io/depinject v1.0.0 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.2 // indirect
Expand Down Expand Up @@ -206,7 +207,7 @@ require (
github.com/oklog/run v1.1.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/outcaste-io/ristretto v0.2.3 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
Expand Down Expand Up @@ -249,17 +250,16 @@ require (
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/oauth2 v0.20.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.22.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240709173604-40e1e62336c5 // indirect
gopkg.in/DataDog/dd-trace-go.v1 v1.62.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
Expand All @@ -275,7 +275,8 @@ replace (
cosmossdk.io/store => github.com/InjectiveLabs/cosmos-sdk/store v0.0.0-20240904140803-b4127ecb5410
cosmossdk.io/x/tx => github.com/InjectiveLabs/cosmos-sdk/x/tx v0.0.0-20240904140803-b4127ecb5410

github.com/cometbft/cometbft => github.com/InjectiveLabs/cometbft v0.38.11-inj-2
github.com/cosmos/cosmos-sdk => github.com/InjectiveLabs/cosmos-sdk v0.50.9-0.20240904140803-b4127ecb5410
github.com/cometbft/cometbft => github.com/Injectivelabs/cometbft v0.38.11-inj-5
github.com/cosmos/cosmos-sdk => github.com/InjectiveLabs/cosmos-sdk v0.50.10-0.20241014111010-224eb95c9eb1
github.com/ethereum/go-ethereum => github.com/InjectiveLabs/go-ethereum v1.9.22-0.20240923100242-5e28e23d353e
nhooyr.io/websocket => github.com/coder/websocket v1.8.10 // replaced as instructed here:https://coder.com/blog/websocket
)
Loading
Loading