Skip to content

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Jan 7, 2026

Describe your changes and provide context

Added a failfast precompile to be registered on the giga executor at v2's custom precompile range, so that custom precompile calls can be intercepted and fall back to v2 executor.

Testing performed to validate your change

to be tested when the executor is ready to wire up

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 9, 2026, 3:20 AM

@github-actions
Copy link

github-actions bot commented Jan 7, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJan 7, 2026, 3:41 AM

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

❌ Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.81%. Comparing base (426055b) to head (2edce7a).

Files with missing lines Patch % Lines
giga/executor/precompiles/failfast.go 0.00% 7 Missing ⚠️
giga/executor/utils/errors.go 0.00% 2 Missing ⚠️
giga/executor/vm/geth/vm.go 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2670      +/-   ##
==========================================
- Coverage   43.82%   43.81%   -0.01%     
==========================================
  Files        1908     1910       +2     
  Lines      159073   159084      +11     
==========================================
  Hits        69708    69708              
- Misses      82958    82972      +14     
+ Partials     6407     6404       -3     
Flag Coverage Δ
sei-chain 45.89% <0.00%> (+<0.01%) ⬆️
sei-cosmos 38.20% <ø> (-0.01%) ⬇️
sei-db 69.34% <ø> (+0.21%) ⬆️
sei-tendermint 47.27% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
giga/executor/utils/errors.go 0.00% <0.00%> (ø)
giga/executor/vm/geth/vm.go 0.00% <0.00%> (ø)
giga/executor/precompiles/failfast.go 0.00% <0.00%> (ø)

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@stevenlanders stevenlanders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just one comment - might be better to be explicit about the individual precompiles here just for clarity

var AllCustomPrecompilesFailFast = map[common.Address]vm.PrecompiledContract{}

func init() {
for addr := 0x1001; addr <= 0x100C; addr++ {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest actually just having a hardcoded list of addresses just for clarity, because SOME precompiles may still be allowed:

	common.HexToAddress(bank.BankAddress),             
	common.HexToAddress(wasmd.WasmdAddress),         
	common.HexToAddress(json.JSONAddress),             // Maybe okay?
	common.HexToAddress(addr.AddrAddress),             // Maybe okay?
	common.HexToAddress(staking.StakingAddress),       // Maybe okay?
	common.HexToAddress(gov.GovAddress),               // Maybe okay?
	common.HexToAddress(distribution.DistrAddress),    // Maybe okay?
	common.HexToAddress(oracle.OracleAddress),        
	common.HexToAddress(ibc.IBCAddress),               
	common.HexToAddress(pointerview.PointerViewAddress),
	common.HexToAddress(pointer.PointerAddress),      
	common.HexToAddress(solo.SoloAddress),           
	common.HexToAddress(p256.P256VerifyAddress),       // Maybe okay?

@codchen codchen force-pushed the tony/interop-detect branch from 01463bd to 2edce7a Compare January 9, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants