This repository contains Seismic's fork of alloy-core
The upstream repository lives here. This fork is up-to-date with it through commit c268e8d. You can see this by viewing the main branch on this repository
You can view all of our changes vs. upstream on this pull request. The sole purpose of this PR is display our diff; it will never be merged in to the main branch of this repo
The repository was forked to support Seismic's modifications to Solidity. Seismic introduces new types that represent shielded state in smart contracts.
These shielded types include:
saddresssuintand thesuint{n}familysintand thesint{n}familysbool
Each of these types behaves similarly to its unshielded counterpart, with one key exception: the values are hidden from the state tree.
Seismic's forks of the reth stack all have the same branch structure:
mainormaster: this branch only consists of commits from the upstream repository. However it will rarely be up-to-date with upstream. The latest commit from this branch reflects how recently Seismic has merged in upstream commits to the seismic branchseismic: the default and production branch for these repositories. This includes all Seismic-specific code essential to make our network run
This repository contains the following crates:
alloy-core: Meta-crate for the entire projectalloy-primitives- Primitive integer and byte typesalloy-sol-types- Compile-time ABI and EIP-712 implementationsalloy-sol-macro- Thesol!procedural macroalloy-dyn-abi- Run-time ABI and EIP-712 implementationsalloy-json-abi- Full Ethereum JSON-ABI implementationalloy-sol-type-parser- A simple parser for Solidity type stringssyn-solidity-syn-powered Solidity parser
The current MSRV (minimum supported rust version) is 1.85.
Alloy will keep a rolling MSRV policy of at least two versions behind the latest stable release (so if the latest stable release is 1.58, we would support 1.56).
Note that the MSRV is not increased automatically, and only as part of a patch (pre-1.0) or minor (post-1.0) release.
Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Alloy project.
Pull requests will not be merged unless CI passes, so please ensure that your contribution follows the linting rules and passes clippy.
We provide full support for all the wasm*-* targets. If a crate does not
build on a WASM target, please open an issue.
When building for the wasm32-unknown-unknown target and the "getrandom"
feature is enabled, compilation for the getrandom crate will fail. This is
expected: see their documentation for more details.
To fix this, either disable the "getrandom" feature on alloy-core or add
getrandom to your dependencies with the "wasm_js" feature enabled:
getrandom = { version = "0.3", features = ["wasm_js"] }There is currently no plan to provide an official JS/TS-accessible library interface, as we believe viem or ethers.js serve that need very well.
All crates in this workspace should support no_std environments, with the
alloc crate. If you find a crate that does not support no_std, please
open an issue.
None of these crates would have been possible without the great work done in:
ethers.jsrust-web3ruintethabiethcontract-rsguac_rs- and of course:
alloy-core
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.