informalsystems / informalsystems/emerald

move `types/` into `crates/consensus/malachite`

Open
#223 0 comments 0 reactions 1 assignee Claimed by @rnbguy View on GitHub
Dominant language
Rust
Stars
25
Forks
9
PR merge metrics
No merged PRs in 30d

Description

pure file-move PR. all malachite-specific types (`Value`, `Vote`, `Proposal`, `ValidatorSet`, `Address`, `EmeraldContext`, codec, proto, signing) move to their final home under `crates/consensus/malachite/src/types/`. no logic changes.

### what moves

all files from `types/src/` to `crates/consensus/malachite/src/types/`:

`address.rs`, `aliases.rs`, `context.rs`, `genesis.rs`, `height.rs`, `proposal.rs`, `proposal_part.rs`, `proposer_selector.rs`, `retry_config.rs`, `signing/`, `validator_set.rs`, `value.rs`, `vote.rs`, `codec/`, `proto.rs`, `utils/`

also: `types/build.rs` -> `crates/consensus/malachite/build.rs`

### backward compat

`types/src/lib.rs` becomes `pub use emerald_consensus_malachite::types::*;`

### note

`types/` currently depends on `alloy-primitives` + `alloy-consensus` for EVM-specific aliases (`BlockHash`, `Block`, etc.). these stay temporarily; cleaned up in following work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.