Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to hotshot rc-0.5.67 / marketplace #1784

Merged
merged 32 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7d813b0
update header::new
tbro Jul 24, 2024
e5507e3
Update to hotshot rc-0.5.66
tbro Jul 25, 2024
ee3aa28
update query-service
tbro Jul 26, 2024
f04b89f
Cargo.lock
tbro Jul 26, 2024
ff07652
cargo fmt
tbro Jul 26, 2024
ab55cf1
fix test
tbro Jul 26, 2024
89dc892
BlockMerkleTree should take Header enum
tbro Jul 26, 2024
2e1e213
bump some versions
tbro Jul 26, 2024
17ed30f
compilage
tbro Jul 26, 2024
23c2769
clippy
tbro Jul 26, 2024
0906697
lint
imabdulbasit Jul 25, 2024
8a2d6c2
lint tests
tbro Jul 26, 2024
c90c91e
fix pre-commit errors
tbro Jul 26, 2024
cafa8c9
Bump deps
QuentinI Jul 26, 2024
1a8f66e
fix charge_tx test
tbro Jul 29, 2024
faf9631
revert 1a8f66ec4aa0f0887327965aba110b83ac0d10f7
tbro Jul 29, 2024
30ebfc1
disable tx charge test for now
tbro Jul 29, 2024
85b8834
update reference headers for v3
tbro Jul 29, 2024
4e3b484
add `validate_builder_fee` test
tbro Jul 30, 2024
e7cf690
Merge remote-tracking branch 'origin/main' into tb/marketplace/update…
tbro Jul 30, 2024
908981a
remove duplicate lint thing
tbro Jul 30, 2024
def8b8b
conflict
tbro Jul 30, 2024
8205703
cargo sort
tbro Jul 30, 2024
bf97214
conflict
tbro Jul 30, 2024
6756e31
explicity test marketplace function
tbro Jul 30, 2024
c4a9a8e
Accept any signature verification that succeeds
tbro Jul 30, 2024
08e79cc
typo
tbro Jul 30, 2024
d4af112
Copy reference test changes from #1792
tbro Jul 30, 2024
f88f66a
revert unversioned data files
tbro Jul 30, 2024
212d82c
larger default max_block_size
tbro Jul 30, 2024
2622660
fix the lint thing again
tbro Jul 30, 2024
cd69ecc
fix typo
tbro Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 21 additions & 18 deletions Cargo.lock

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

71 changes: 36 additions & 35 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ edition = "2021"
resolver = "2"

members = [
"builder",
"contract-bindings",
"contracts/rust/adapter",
"contracts/rust/diff-test",
"contracts/rust/gen-vk-contract",
"hotshot-state-prover",
"sequencer",
"types",
"utils",
"builder",
"contract-bindings",
"contracts/rust/adapter",
"contracts/rust/diff-test",
"contracts/rust/gen-vk-contract",
"hotshot-state-prover",
"sequencer",
"types",
"utils",
]

[workspace.dependencies]
Expand All @@ -31,7 +31,7 @@ ark-poly = "0.4"
ark-serialize = "0.4"
ark-srs = "0.3.1"
async-compatibility-layer = { version = "1.1", default-features = false, features = [
"logging-utils",
"logging-utils",
] }
async-once-cell = "0.5"
async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
Expand All @@ -48,56 +48,57 @@ dotenvy = "0.15"
ethers = { version = "2.0", features = ["solc"] }
futures = "0.3"

hotshot = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
# Hotshot imports
hotshot-builder-api = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "rc-0.5.64" }
hotshot-builder-core = { git = "https://github.com/EspressoSystems/hotshot-builder-core", tag = "rc-0.1.36" }
hotshot-events-service = { git = "https://github.com/EspressoSystems/hotshot-events-service.git", tag = "rc-0.1.35" }
hotshot-orchestrator = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", tag = "rc-0.1.46" }
hotshot-stake-table = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-builder-api = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "rc-0.5.67" }
hotshot-builder-core = { git = "https://github.com/EspressoSystems/hotshot-builder-core", tag = "rc-0.1.38" }
marketplace-builder-core = { git = "https://github.com/EspressoSystems/marketplace-builder-core", rev = "c1e60e76893557f21e8aea7e86994ebe107b4914" }
hotshot-events-service = { git = "https://github.com/EspressoSystems/hotshot-events-service.git", tag = "rc-0.1.37" }
hotshot-orchestrator = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", tag = "rc-0.1.49" }
hotshot-stake-table = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
hotshot-state-prover = { version = "0.1.0", path = "hotshot-state-prover" }
hotshot-task = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-testing = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-task = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
hotshot-testing = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
hotshot-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }
hotshot-contract-adapter = { version = "0.1.0", path = "contracts/rust/adapter" }
# Temporary, used to pull in the mock auction results provider
hotshot-example-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.64" }
hotshot-example-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.67" }

# Push CDN imports
cdn-broker = { git = "https://github.com/EspressoSystems/Push-CDN", features = [
"runtime-async-std",
"global-permits",
"runtime-async-std",
"global-permits",
], tag = "0.4.3", package = "cdn-broker" }
cdn-marshal = { git = "https://github.com/EspressoSystems/Push-CDN", features = [
"runtime-async-std",
"global-permits",
"runtime-async-std",
"global-permits",
], tag = "0.4.3", package = "cdn-marshal" }

jf-plonk = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"test-apis",
"test-apis",
] }
jf-crhf = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5" }
jf-merkle-tree = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"std",
] }
jf-signature = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"std",
] }
jf-pcs = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"parallel",
"std",
"parallel",
] }
jf-vid = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"parallel",
"std",
"parallel",
] }
jf-rescue = { version = "0.1.0", git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"parallel",
"std",
"parallel",
] }
jf-relation = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5", features = [
"std",
"std",
] }
jf-utils = { git = "https://github.com/EspressoSystems/jellyfish", tag = "0.4.5" }
libp2p = { version = "0.53", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion builder/src/lib.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub mod testing {
use async_trait::async_trait;
use committable::Committable;
use espresso_types::{
mock::MockStateCatchup, ChainConfig, Event, FeeAccount, L1Client, NodeState, PrivKey,
mock::MockStateCatchup, v0_3::ChainConfig, Event, FeeAccount, L1Client, NodeState, PrivKey,
PubKey, Transaction, ValidatedState,
};
use ethers::{
Expand Down
4 changes: 2 additions & 2 deletions builder/src/non_permissioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use async_compatibility_layer::{
};
use async_std::sync::{Arc, RwLock};
use espresso_types::{
eth_signature_key::EthKeyPair, ChainConfig, FeeAmount, L1Client, NodeState, Payload, SeqTypes,
ValidatedState,
eth_signature_key::EthKeyPair, v0_3::ChainConfig, FeeAmount, L1Client, NodeState, Payload,
SeqTypes, ValidatedState,
};
use ethers::{
core::k256::ecdsa::SigningKey,
Expand Down
8 changes: 4 additions & 4 deletions data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ commitments. The objects in this directory have well-known commitments. They ser
by the Espresso Sequencer, and can be used as test cases for ports of the serialization and commitment algorithms to
other languages.

The Rust module `espresso-types::reference_tests` contains test cases which are designed to fail if the serialization format
or commitment scheme for any of these data types changes. If you make a breaking change, you may need to update these
reference objects as well. Running those tests will also print out information about the commitments of these reference
objects, which can be useful for generating test cases for ports. To run them and get the output, use
The Rust module `espresso-types::reference_tests` contains test cases which are designed to fail if the serialization
format or commitment scheme for any of these data types changes. If you make a breaking change, you may need to update
these reference objects as well. Running those tests will also print out information about the commitments of these
reference objects, which can be useful for generating test cases for ports. To run them and get the output, use

```bash
cargo test --all-features -p espresso-types -- --nocapture --test-threads 1 reference_tests
Expand Down
Binary file modified data/v2/header.bin
Binary file not shown.
Binary file added data/v3/chain_config.bin
Binary file not shown.
8 changes: 8 additions & 0 deletions data/v3/chain_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"base_fee": "0",
"bid_recipient": "0x0000000000000000000000000000000000000000",
"chain_id": "35353",
"fee_contract": "0x0000000000000000000000000000000000000000",
"fee_recipient": "0x0000000000000000000000000000000000000000",
"max_block_size": "10240"
}
Binary file modified data/v3/header.bin
Binary file not shown.
28 changes: 19 additions & 9 deletions data/v3/header.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
{
"fields": {
"auction_results": {
"reserve_bids": [],
"view_number": 0,
"winning_bids": []
},
"block_merkle_tree_root": "MERKLE_COMM~AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAQA",
"builder_commitment": "BUILDER_COMMITMENT~jlEvJoHPETCSwXF6UKcD22zOjfoHGuyVFTVkP_BNc-no",
"builder_signature": {
"r": "0xa1c3795850b7b490e616b60fead89753841fbc9fffe1a939d483f1d959ad1c45",
"s": "0x20228f5b63b14792d371dce479978e45020f19602189ef6d325b73029a2848ac",
"v": 27
},
"builder_signature": [
{
"r": "0xa1c3795850b7b490e616b60fead89753841fbc9fffe1a939d483f1d959ad1c45",
"s": "0x20228f5b63b14792d371dce479978e45020f19602189ef6d325b73029a2848ac",
"v": 27
}
],
"chain_config": {
"chain_config": {
"Left": {
"base_fee": "0",
"bid_recipient": "0x0000000000000000000000000000000000000000",
"chain_id": "35353",
"fee_contract": "0x0000000000000000000000000000000000000000",
"fee_recipient": "0x0000000000000000000000000000000000000000",
"max_block_size": "10240"
}
}
},
"fee_info": {
"account": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"amount": "0"
},
"fee_info": [
{
"account": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"amount": "0"
}
],
"fee_merkle_tree_root": "MERKLE_COMM~AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAKA",
"height": 42,
"l1_finalized": {
Expand Down
2 changes: 1 addition & 1 deletion sequencer/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use committable::Commitment;
use data_source::{CatchupDataSource, SubmitDataSource};
use derivative::Derivative;
use espresso_types::{
v0::traits::SequencerPersistence, AccountQueryData, BlockMerkleTree, ChainConfig,
v0::traits::SequencerPersistence, v0_3::ChainConfig, AccountQueryData, BlockMerkleTree,
FeeAccountProof, NodeState, PubKey, Transaction,
};
use ethers::prelude::Address;
Expand Down
3 changes: 2 additions & 1 deletion sequencer/src/api/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use async_trait::async_trait;
use committable::Commitment;
use espresso_types::{
v0::traits::{PersistenceOptions, SequencerPersistence},
ChainConfig, PubKey, Transaction,
v0_3::ChainConfig,
PubKey, Transaction,
};
use ethers::prelude::Address;
use futures::future::Future;
Expand Down
2 changes: 1 addition & 1 deletion sequencer/src/api/sql.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::{bail, Context};
use async_trait::async_trait;
use committable::Commitment;
use espresso_types::{BlockMerkleTree, ChainConfig, FeeAccountProof, FeeMerkleTree};
use espresso_types::{v0_3::ChainConfig, BlockMerkleTree, FeeAccountProof, FeeMerkleTree};
use ethers::prelude::Address;
use futures::FutureExt;
use hotshot_query_service::{
Expand Down
Loading
Loading