Skip to content

Commit

Permalink
Tesseract v0.2.0 (#57)
Browse files Browse the repository at this point in the history
* some refactorings

* Respect module filter

* make delivery endpoints optional

* use debian bookworm slim

* clean up some interfaces

* if filter is empty, allow all modules

* fix log

* accumulate fees for all chains

* some more stuff

* intialize latest heights for L2s

* add execution layer state commitment

* verified that accumulate & withdraw works
  • Loading branch information
seunlanlege authored Feb 27, 2024
1 parent 4f62905 commit 1aaee5d
Show file tree
Hide file tree
Showing 83 changed files with 977 additions and 3,340 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: cargo test -p tesseract-evm --verbose

- name: Run Transaction Payment Tests
run: cargo test -p transaction-payment --verbose
run: cargo test -p transaction-fees --verbose

lint:
if: github.event.pull_request.draft == false
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.uuid

**/proofs/*
/payments/prisma/dev.db
/payments/prisma/dev.db-journal
/fees/prisma/dev.db
/fees/prisma/dev.db-journal
/
dev.db
76 changes: 39 additions & 37 deletions Cargo.lock

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

16 changes: 7 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@ members = [

"relayer",
"integration-tests",
"ethereum/sync-committee",
"ethereum/evm",
"ethereum/bsc-pos",
"payments",
"payments/prisma-cli",
"evm/sync-committee",
"evm/common",
"evm/bsc-pos",
"fees",
"fees/prisma-cli",
"fisherman",
"telemetry",
"tesseract-any-client"
"client"
]

[profile.release]
panic = "unwind"
opt-level = 3



[workspace.dependencies]
# wasm
frame-benchmarking = { version = "28.0.0" }
Expand Down Expand Up @@ -89,7 +87,7 @@ pallet-mmr = { version = "27.0.0" }

# client
frame-benchmarking-cli = "32.0.0"
pallet-transaction-payment-rpc = "30.0.0"
pallet-transaction-fees-rpc = "30.0.0"
sc-basic-authorship = "0.34.0"
sc-chain-spec = "27.0.0"
sc-cli = "0.36.0"
Expand Down
8 changes: 4 additions & 4 deletions tesseract-any-client/Cargo.toml → client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "tesseract-any-client"
name = "tesseract-client"
version = "0.1.0"
edition = "2021"

Expand All @@ -9,10 +9,10 @@ edition = "2021"
parachain = { package = "tesseract-parachain", path = "../substrate/parachain" }
tesseract-substrate = { path = "../substrate/common" }
primitives = { package = "tesseract-primitives", path = "../primitives" }
tesseract-evm = { path = "../ethereum/evm" }
tesseract-evm = { path = "../evm/common" }
#tesseract-polygon-pos = { path = "../ethereum/polygon-pos" }
tesseract-bsc-pos = { path = "../ethereum/bsc-pos" }
tesseract-sync-committee = { path = "../ethereum/sync-committee" }
tesseract-bsc-pos = { path = "../evm/bsc-pos" }
tesseract-sync-committee = { path = "../evm/sync-committee" }
tesseract-beefy = { path = "../substrate/beefy/naive" }

# polytope labs
Expand Down
1 change: 1 addition & 0 deletions tesseract-any-client/src/any.rs → client/src/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/// This will wrap the provided implementations into an [`AnyClient`] that implement the required
/// traits [`IsmpHost`], [`IsmpProvider`] & [`ByzantineHandler`].
#[macro_export]
Expand Down
2 changes: 1 addition & 1 deletion tesseract-any-client/src/lib.rs → client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl AnyConfig {
pub async fn into_client(self) -> Result<AnyClient, anyhow::Error> {
let client = match self {
AnyConfig::KeccakParachain(config) | AnyConfig::Parachain(config) => {
match config.hashing {
match config.hashing.clone().unwrap_or(HashAlgorithm::Keccak) {
HashAlgorithm::Keccak => {
let host = ParachainHost::default();
AnyClient::KeccakParachain(Parachain::new(Some(host), config).await?)
Expand Down
44 changes: 0 additions & 44 deletions ethereum/bsc-pos/Cargo.toml

This file was deleted.

71 changes: 0 additions & 71 deletions ethereum/bsc-pos/src/byzantine.rs

This file was deleted.

Loading

0 comments on commit 1aaee5d

Please sign in to comment.