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 Snowbridge versions and prep for publishing #2894

Merged
merged 22 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
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
34 changes: 16 additions & 18 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ members = [
"bridges/snowbridge/parachain/primitives/router",
"bridges/snowbridge/parachain/runtime/rococo-common",
"bridges/snowbridge/parachain/runtime/runtime-common",
"bridges/snowbridge/parachain/runtime/tests",
"bridges/snowbridge/parachain/runtime/test-common",
"cumulus/client/cli",
"cumulus/client/collator",
"cumulus/client/consensus/aura",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-ethereum-beacon-client"
claravanstaden marked this conversation as resolved.
Show resolved Hide resolved
description = "Snowbridge Beacon Client Pallet"
version = "0.0.1"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ethereum Beacon Client

The Ethereum Beacon Client is an on-chain light client that tracks Ethereum consensus using the beacon chain.
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 5 additions & 4 deletions bridges/snowbridge/parachain/pallets/inbound-queue/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-inbound-queue"
description = "Snowbridge Inbound Queue"
version = "0.1.1"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
claravanstaden marked this conversation as resolved.
Show resolved Hide resolved
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
3 changes: 3 additions & 0 deletions bridges/snowbridge/parachain/pallets/inbound-queue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ethereum Inbound Queue

Reads messages from Ethereum and sends it to intended destination on Polkadot, using XCM.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-outbound-queue"
description = "Snowbridge Outbound Queue"
version = "0.1.1"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
3 changes: 3 additions & 0 deletions bridges/snowbridge/parachain/pallets/outbound-queue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ethereum Outbound Queue

Sends messages from an origin in the Polkadot ecosystem to Ethereum.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-outbound-queue-merkle-tree"
description = "Snowbridge Outbound Queue Merkle Tree"
version = "0.1.1"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Snowbridge Outbound Queue Merkle Tree

This crate implements a simple binary Merkle Tree utilities required for inter-op with Ethereum
bridge & Solidity contract.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-outbound-queue-runtime-api"
description = "Snowbridge Outbound Queue Runtime API"
version = "0.1.0"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ethereum Outbound Queue Runtime API

Provides an API:

- to generate merkle proofs for outbound messages
- calculate delivery fee for delivering messages to Ethereum
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn process_message_fails_on_max_nonce_reached() {
channel_id,
command: mock_message(sibling_id).command,
};
let versioned_queued_message: VersionedQueuedMessage = message.into();
let versioned_queued_message: VersionedQueuedMessage = message.try_into().unwrap();
let encoded = versioned_queued_message.encode();
let mut meter = WeightMeter::with_limit(Weight::MAX);

Expand All @@ -134,7 +134,7 @@ fn process_message_fails_on_overweight_message() {
channel_id,
command: mock_message(sibling_id).command,
};
let versioned_queued_message: VersionedQueuedMessage = message.into();
let versioned_queued_message: VersionedQueuedMessage = message.try_into().unwrap();
let encoded = versioned_queued_message.encode();
let mut meter = WeightMeter::with_limit(Weight::from_parts(1, 1));
assert_noop!(
Expand Down
9 changes: 5 additions & 4 deletions bridges/snowbridge/parachain/pallets/system/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-system"
description = "Snowbridge System"
version = "0.1.1"
authors = ["Snowfork <[email protected]>"]
edition = "2021"
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
4 changes: 3 additions & 1 deletion bridges/snowbridge/parachain/pallets/system/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
License: MIT-0
# Ethereum System

Contains management functions to manage functions on Ethereum. For example, creating agents and channels.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[package]
name = "snowbridge-system-runtime-api"
description = "Snowbridge System Runtime API"
version = "0.1.0"
edition = "2021"
authors = ["Snowfork <[email protected]>"]
repository = "https://github.com/Snowfork/snowbridge"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ethereum System Runtime API

Provides an API for looking up an agent ID on Ethereum.
2 changes: 2 additions & 0 deletions bridges/snowbridge/parachain/pallets/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ use xcm_executor::traits::ConvertLocation;
#[cfg(feature = "runtime-benchmarks")]
use frame_support::traits::OriginTrait;

pub use pallet::*;

pub type BalanceOf<T> =
<<T as pallet::Config>::Token as Inspect<<T as frame_system::Config>::AccountId>>::Balance;
pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
Expand Down
8 changes: 5 additions & 3 deletions bridges/snowbridge/parachain/primitives/beacon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[package]
name = "snowbridge-beacon-primitives"
description = "Snowbridge Beacon Primitives"
version = "0.0.1"
authors = ["Snowfork <[email protected]>"]
edition = "2021"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[dependencies]
serde = { version = "1.0.195", optional = true, features = ["derive"] }
Expand Down
10 changes: 10 additions & 0 deletions bridges/snowbridge/parachain/primitives/beacon/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Beacon Primitives

Crate with low-level supporting functions for the beacon client, including:

- bls12-381 signature handling to verify signatures on the beacon chain
- merkle proofs
- receipt verification
- ssz types

The code in this crate relates to the Ethereum consensus chain, commonly referred to as the beacon chain.
8 changes: 5 additions & 3 deletions bridges/snowbridge/parachain/primitives/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[package]
name = "snowbridge-core"
description = "Snowbridge Core"
version = "0.1.1"
authors = ["Snowfork <[email protected]>"]
edition = "2021"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[dependencies]
serde = { version = "1.0.195", optional = true, features = ["alloc", "derive"], default-features = false }
Expand Down
4 changes: 4 additions & 0 deletions bridges/snowbridge/parachain/primitives/core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Core Primitives

Contains common code core to Snowbridge, such as inbound and outbound queue types, pricing structs, ringbuffer data
types (used in the beacon client).
8 changes: 5 additions & 3 deletions bridges/snowbridge/parachain/primitives/ethereum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[package]
name = "snowbridge-ethereum"
description = "Snowbridge Ethereum"
version = "0.1.0"
authors = ["Snowfork <[email protected]>"]
edition = "2021"
version = "0.9.0"
edition.workspace = true
authors.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]

[dependencies]
serde = { version = "1.0.195", optional = true, features = ["derive"] }
Expand Down
Loading
Loading