Skip to content

An easy tool to apply transactions to the current EVM state. Optimized for MEV.

License

Notifications You must be signed in to change notification settings

dialecticch/sibyl

Repository files navigation

sibyl

A more embedded version of fxfactorial/run-evm-code. This tool makes it easy to apply transactions to the current EVM state. Call it a transaction simulator or what not.

Usage

// Create a new simulator using geth chaindata.
simulator, err := sybil.NewGethSimulator("geth/chaindata")
if err != nil {
    log.Panic(err)
}

// Fork to a specified block number
err = simulator.Fork(blockNumber)
if err != nil {
    log.Panic(err)
}

// Simulate a static call.
ret, err := simulator.StaticCall(sender, to, input, gas)
if err != nil {
    log.Panic(err)
}

fmt.Println(hexutil.Encode(result))

About

An easy tool to apply transactions to the current EVM state. Optimized for MEV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published