Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
bus-mapping: Extend circuit_input_builder
Browse files Browse the repository at this point in the history
Extend the types returned by the CircuitInputBuilder to match the
requirements from the circuits.

Rename CallContext to Call because the struct will be required for the
circuits.  Instead of keeping call metadata in a call stack, keep all
call metadata in a vector, and use a call stack with indices to this
vector.

Extend Call, Transaction, ExecStep and Block with fields required by the
circuits.

Calculate addresses in bus-mapping.

Integrate StateDB into CircuitInputBuilder and detect
InsufficientBalance and ContractAddressCollision execution errors.

Remove web3 dependency in favour of ethers-core for eth_types.

Resolve #190
Resolve #187
Resolve #180
Resolve #172
  • Loading branch information
ed255 committed Nov 29, 2021
1 parent ec315e8 commit 46090a1
Show file tree
Hide file tree
Showing 19 changed files with 781 additions and 203 deletions.
4 changes: 2 additions & 2 deletions bus-mapping/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ lazy_static = "1.4"
serde_json = "1.0.66"
hex = "0.4"
geth-utils = { path = "../geth-utils" }
web3 = {version = "0.17", default-features = false}
uint = "0.9.1"
ethers-providers = "0.5.5"
ethers-providers = "0.6.0"
ethers-core = "0.6.0"
regex = "1.5.4"

[dev-dependencies]
Expand Down
Loading

0 comments on commit 46090a1

Please sign in to comment.