Skip to content

Commit

Permalink
chore(aptos): Release 1.0.1 (#135)
Browse files Browse the repository at this point in the history
* chore(aptos): Release 1.0.1

* feat: bootstrap client (#75)

* feat: fetch checkpoint and bootstrap

Signed-off-by: Thomas Chataigner <[email protected]>

* docs: started doc for client

* docs: rust doc

* chore: clean deps + fmt + xclippy

* refactor: simplify readability for serde methods

* refactor: apply suggestion from review

Co-authored-by: wwared <[email protected]>

* refactor: rename const var & check no leftover bytes

* fix: fix base length for LightClientHeader

---------

Signed-off-by: Thomas Chataigner <[email protected]>
Co-authored-by: wwared <[email protected]>

* ci: Add `cargo-deny` workflow (#79)

* ci: Add `cargo-deny` workflow (WIP)

* chore: use workspace dependencies

* chore: Refactor uneeded dependencies in aptos core Cargo.toml

- Removed `move-core-types` from workspace dependencies and the aptos feature in Cargo.toml file
- Stripped `reqwest` from the dev-dependencies within the aptos/core module

* fix: update deny.toml exceptions

- Modified various Cargo.toml files within the aptos project to standardize the `edition` field and reference the workspace.
- Added the "BUSL-1.1" license to multiple packages throughout the aptos codebase, including `proof-server`, `aptos-lc-core`, `aptos-programs`, `fixture-generator`, and `light-client`.
- Updated the deny.toml file, removing redundant sections and updating the list of exceptions to allow `aptos-lc-core` to use the "BUSL-1.1" license.
- Set edition 2021 in the workspace package configuration within the main aptos project's Cargo.toml.

* chore: add exception for number_range

* ci: fix deny action

* ci: Use `ssh-key` input for `cargo-deny-action`

* Test regular `cargo-deny` CLI

* Ignore `aptos` advisories

---------

Co-authored-by: François Garillot <[email protected]>

* ci: Update licenses (#86)

* ci: Update fixtures in nightly job (#92)

* ci: Update fixtures on a nightly job

* Parallelize and test flow

* Test E2E

* Prep for review

* Set to 1 retention day instead of the default (90)

* chore: Update fixtures (#94)

Co-authored-by: samuelburnham <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore: Update fixtures (#95)

Co-authored-by: tchataigner <[email protected]>

* chore: Update fixtures (#98)

Co-authored-by: tchataigner <[email protected]>

* chore: Update fixtures (#107)

Co-authored-by: tchataigner <[email protected]>

* chore: Update fixtures (#114)

Co-authored-by: tchataigner <[email protected]>

* feat: Wrapper contract with additional LC protocol-specific checks  (#111)

* feat: Add stub for Wrapper contract

* feat: Refactoring

* feat: Add logic for updating the signer hash

* chore: Fix compiler warnings

* chore: Add access control to signer hash setter

* feat: Include block_id, key and value into inclusion program output

* chore: Update wrapper contract testing

* feat: Use block hash as unique block identifier

* chore: Requested changes

* chore: Update fixtures (#116)

Co-authored-by: tchataigner <[email protected]>

* chore: Update fixtures (#120)

Co-authored-by: tchataigner <[email protected]>

* feat: Lookahead Move verifier (#119)

* feat: Restructured fixture generator

* feat: Add epoch change fixture generating using ethereum program

* chore: Bind foundry/forge dependencies to particular versions

* chore: Update CI to generate Move fixtures as well

* feat: Add initial Move wrapper that implements lookahead verification

* feat: Generating inclusion proof fixture using Ethereum program

* chore: Update Move fixtures

* feat: Update core verifier

* feat: Update Move wrapper contract

* chore: Update Move Readme

* chore: Properly update submodules

* ci: Update fixture CI workflow

* chore: Move fixture-generator to root of the repository

* docs: Update documentation about on-chain verification (Aptos / Ethereum)

* chore: Move test utilities to separate module

* chore: Addressing review comments related to Move wrapper contract

* chore: Address review comments

* feat: update deps to fit release branch

* chore: Update fixtures (#124)

Co-authored-by: tchataigner <[email protected]>

* feat: compact data inclusion (#125)

* feat: compact data

* feat: more clippy rules

* refactor: move test utils to core

* fix: needed feature for eth-lc-core

* refactor: refactor visibility to move

* Revert "chore: Update fixtures (#124)" (#129)

This reverts commit 73bd552.

* fix: fixtures (#130)

* fix: fixture generation

* ci: Fix `fixtures.yml`

* Test `fixtures.yml`

* Fixup and test `fixtures.yml`

* fix: update fixtures

* Fixup

* Prep for review

---------

Co-authored-by: Samuel Burnham <[email protected]>

* docs: update doc (#132)

* docs: update doc

* refactor: apply suggestions

Co-authored-by: wwared <[email protected]>

* refactor: second batch of suggestion

Co-authored-by: wwared <[email protected]>

---------

Co-authored-by: wwared <[email protected]>

---------

Signed-off-by: Thomas Chataigner <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: tchataigner <[email protected]>
Co-authored-by: wwared <[email protected]>
Co-authored-by: Samuel Burnham <[email protected]>
Co-authored-by: François Garillot <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: tchataigner <[email protected]>
Co-authored-by: Artem Storozhuk <[email protected]>
  • Loading branch information
8 people committed Aug 2, 2024
1 parent 4966481 commit bbc6e3b
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 22 deletions.
8 changes: 4 additions & 4 deletions aptos/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aptos/aptos-programs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-programs"
version = "1.0.0"
version = "1.0.1"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand All @@ -10,4 +10,4 @@ glob = { workspace = true }
sphinx-helper = { workspace = true }

[features]
bench = []
bench = []
2 changes: 1 addition & 1 deletion aptos/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-lc-core"
version = "1.0.0"
version = "1.0.1"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion aptos/core/src/types/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl ValidatorVerifier {
/// # Returns
///
/// A new `ValidatorVerifier`.
pub fn new(validator_infos: Vec<ValidatorConsensusInfo>) -> Self {
pub const fn new(validator_infos: Vec<ValidatorConsensusInfo>) -> Self {
Self { validator_infos }
}

Expand Down
1 change: 0 additions & 1 deletion aptos/docs/src/benchmark/on_chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export the fixture file to the relevant place (`solidity/contracts/src/plonk_fix
To run the `fixture-generator` for the inclusion program, execute the following command:

```bash
cd fixture-generator
RUST_LOG=info RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable -C opt-level=3" SHARD_SIZE=4194304 SHARD_BATCH_SIZE=0 cargo +nightly-2024-05-31 run --release --bin generate-fixture -- --program inclusion --language solidity
```

Expand Down
2 changes: 1 addition & 1 deletion aptos/light-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aptos-lc"
version = "1.0.0"
version = "1.0.1"
edition = { workspace = true }
repository = { workspace = true }
license = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions aptos/light-client/src/inclusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct SparseMerkleProofAssets {
}

impl SparseMerkleProofAssets {
pub fn new(
pub const fn new(
sparse_merkle_proof: Vec<u8>,
leaf_key: [u8; 32],
leaf_hash: [u8; 32],
Expand All @@ -40,7 +40,7 @@ pub struct TransactionProofAssets {
}

impl TransactionProofAssets {
pub fn new(
pub const fn new(
transaction: Vec<u8>,
transaction_index: u64,
transaction_proof: Vec<u8>,
Expand All @@ -62,7 +62,7 @@ pub struct ValidatorVerifierAssets {
}

impl ValidatorVerifierAssets {
pub fn new(validator_verifier: Vec<u8>) -> ValidatorVerifierAssets {
pub const fn new(validator_verifier: Vec<u8>) -> ValidatorVerifierAssets {
ValidatorVerifierAssets { validator_verifier }
}
}
Expand Down
2 changes: 1 addition & 1 deletion aptos/programs/epoch-change/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
[package]
version = "1.0.0"
version = "1.0.1"
name = "epoch-change-program"
edition = "2021"
license = "BUSL-1.1"
Expand Down
4 changes: 2 additions & 2 deletions aptos/programs/inclusion/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion aptos/programs/inclusion/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
[package]
version = "1.0.0"
version = "1.0.1"
name = "inclusion-program"
edition = "2021"
license = "BUSL-1.1"
Expand Down
2 changes: 1 addition & 1 deletion aptos/proof-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proof-server"
version = "1.0.0"
version = "1.0.1"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion ethereum/core/src/merkle/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fn calculate_root(mut leaves: Vec<HashValue>) -> Result<HashValue, CryptoError>
///
/// The mixed hash.
pub fn mix_size(base_hash: &HashValue, size: usize) -> Result<HashValue, CryptoError> {
let usize_len = std::mem::size_of::<usize>();
let usize_len = size_of::<usize>();

let mut length_bytes = [0; BYTES_32_LEN];
length_bytes[0..usize_len].copy_from_slice(&size.to_le_bytes());
Expand Down
6 changes: 3 additions & 3 deletions fixture-generator/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bbc6e3b

Please sign in to comment.