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

refactor: move gw-types and gw-common to gwos folder #905

Merged
merged 13 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
- name: Copy contracts from prebuild docker images
run: devtools/fetch-binaries.sh
- name: Test C Uint256
working-directory: gwos
run: cargo test
run: cargo test -p c-uint256-tests
- name: Script tests
run: cargo test --features scripts script_tests
104 changes: 102 additions & 2 deletions Cargo.lock

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

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
[workspace]
members = [
"gwos/crates/types",
"gwos/crates/common",
"gwos/crates/c-uint256-tests",
"crates/challenge",
"crates/chain",
"crates/config",
"crates/common",
"crates/mem-pool",
"crates/generator",
"crates/traits",
"crates/db",
"crates/store",
"crates/types",
"crates/block-producer",
"crates/jsonrpc-types",
"crates/rpc-server",
Expand All @@ -30,7 +31,8 @@ members = [
]

exclude = [
"gwos-evm/polyjuice-tests"
"gwos-evm/polyjuice-tests",
"gwos/contracts",
]

[profile.release]
Expand Down
5 changes: 3 additions & 2 deletions crates/benches/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ anyhow = "1.0.66"
criterion = { version = "0.3", features = ["html_reports"] }
pprof = { version = "0.6", features = ["flamegraph", "criterion"] }
gw-store = { path = "../store" }
gw-common = { path = "../common" }
gw-common = { path = "../../gwos/crates/common" }
gw-smt = { path = "../smt" }
gw-mem-pool = { path = "../mem-pool" }
gw-generator = { path = "../generator" }
gw-types = { path = "../types" }
gw-types = { path = "../../gwos/crates/types" }
gw-traits = { path = "../traits" }
gw-db = { path = "../db" }
gw-config = { path = "../config" }
Expand Down
8 changes: 3 additions & 5 deletions crates/benches/benches/benchmarks/fee_queue.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use criterion::{criterion_group, Bencher, Criterion};
use gw_common::{h256_ext::H256Ext, state::State, H256};
use gw_common::state::State;
use gw_config::GenesisConfig;
use gw_generator::genesis::init_genesis;
use gw_mem_pool::fee::{
Expand All @@ -13,6 +13,7 @@ use gw_store::{
};
use gw_types::{
bytes::Bytes,
h256::*,
packed::{AllowedTypeHash, L2Transaction, RawL2Transaction, RollupConfig},
prelude::{Builder, Entity, Pack, PackVec, Unpack},
};
Expand Down Expand Up @@ -165,10 +166,7 @@ fn setup_genesis(store: &Store) {
meta_contract_validator_type_hash: [0u8; 32].into(),
eth_registry_validator_type_hash: [1u8; 32].into(),
rollup_config: rollup_config.into(),
rollup_type_hash: {
let h: [u8; 32] = rollup_type_hash.into();
h.into()
},
rollup_type_hash: rollup_type_hash.into(),
secp_data_dep: Default::default(),
};
init_genesis(store, &genesis_config, &[0u8; 32], Bytes::default()).unwrap();
Expand Down
Loading