diff --git a/Cargo.lock b/Cargo.lock index f36db27fbbb2..576e3836c943 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16797,7 +16797,6 @@ dependencies = [ name = "snowbridge-core" version = "0.1.1" dependencies = [ - "derivative", "ethabi-decode", "frame-support", "frame-system", @@ -16807,6 +16806,7 @@ dependencies = [ "serde", "snowbridge-beacon-primitives", "snowbridge-ethereum", + "sp-arithmetic", "sp-core", "sp-runtime", "sp-std", @@ -16898,7 +16898,6 @@ dependencies = [ "frame-system", "hex-literal", "parity-scale-codec", - "rlp", "scale-info", "serde", "snowbridge-core", diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index c1c4ca880826..a25355b93cea 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -492,7 +492,7 @@ impl pallet_message_queue::Config for Runtime { type ServiceWeight = MessageQueueServiceWeight; type MessageProcessor = EthereumOutboundQueue; type QueueChangeHandler = (); - type QueuePausedQuery = (); + type QueuePausedQuery = EthereumOutboundQueue; type WeightInfo = (); } @@ -530,28 +530,16 @@ impl snowbridge_inbound_queue::Config for Runtime { MessageToXcm; } -pub const GWEI: u128 = 1_000_000_000; - -parameter_types! { - pub const MaxMessagePayloadSize: u32 = 2048; - pub const MaxMessagesPerBlock: u32 = 32; - pub const DeliveryFeePerGas: u128 = 10; - pub const DeliveryRefundPerGas: u128 = 10 * GWEI; - pub const DeliveryReward: u128 = 1000 * GWEI; -} - impl snowbridge_outbound_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Hashing = Keccak256; type MessageQueue = MessageQueue; - type MaxMessagePayloadSize = MaxMessagePayloadSize; - type MaxMessagesPerBlock = MaxMessagesPerBlock; + type Decimals = ConstU8<12>; + type MaxMessagePayloadSize = ConstU32<2048>; + type MaxMessagesPerBlock = ConstU32<32>; type OwnParaId = ParachainInfo; type GasMeter = snowbridge_core::outbound::ConstantGasMeter; type Balance = Balance; - type DeliveryFeePerGas = DeliveryFeePerGas; - type DeliveryRefundPerGas = DeliveryRefundPerGas; - type DeliveryReward = DeliveryReward; type WeightToFee = WeightToFee; type WeightInfo = weights::snowbridge_outbound_queue::WeightInfo; } diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_outbound_queue.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_outbound_queue.rs index 4836c0f830f5..c5b872d7b362 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_outbound_queue.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/snowbridge_outbound_queue.rs @@ -50,7 +50,7 @@ impl snowbridge_outbound_queue::WeightInfo for WeightIn /// Proof Skipped: EthereumOutboundQueue MessageLeaves (max_values: Some(1), max_size: None, mode: Measured) /// Storage: System Digest (r:1 w:1) /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - fn commit_messages() -> Weight { + fn commit() -> Weight { // Proof Size summary in bytes: // Measured: `1094` // Estimated: `2579` @@ -60,7 +60,7 @@ impl snowbridge_outbound_queue::WeightInfo for WeightIn .saturating_add(T::DbWeight::get().writes(1_u64)) } - fn commit_one_message() -> Weight { + fn commit_single() -> Weight { // Proof Size summary in bytes: // Measured: `1094` // Estimated: `2579`