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

Cache milagro g1 pubkeys #19

Merged
merged 77 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
7d4319d
Bump futures from 0.3.26 to 0.3.27 (#2359)
dependabot[bot] Mar 27, 2023
ea6598c
Bump clap from 4.1.11 to 4.1.13 (#2388)
dependabot[bot] Mar 27, 2023
35d79f3
Remove HeaderBackend from RelayChainRPCClient (#2385)
skunert Mar 28, 2023
0ef1444
Bump scale-info from 2.3.1 to 2.4.0 (#2386)
dependabot[bot] Mar 28, 2023
066db6b
Bump serde_json from 1.0.94 to 1.0.95 (#2387)
dependabot[bot] Mar 28, 2023
1d8208b
Companion: wasm-builder support stable Rust (#2393)
bkchr Mar 29, 2023
559f3ca
Bump thiserror from 1.0.38 to 1.0.40 (#2396)
dependabot[bot] Mar 29, 2023
69dd6ae
Bump syn from 1.0.109 to 2.0.9 (#2397)
dependabot[bot] Mar 29, 2023
247e843
Bump serde from 1.0.156 to 1.0.159 (#2395)
dependabot[bot] Mar 29, 2023
2ce882f
Companion for https://github.com/paritytech/substrate/pull/13725 (#2401)
altonen Mar 30, 2023
3ce4e83
Bump syn from 2.0.9 to 2.0.11 (#2405)
dependabot[bot] Mar 30, 2023
693e973
Bump scale-info from 2.4.0 to 2.5.0 (#2404)
dependabot[bot] Mar 30, 2023
f5340e7
Bump tempfile from 3.4.0 to 3.5.0 (#2406)
dependabot[bot] Mar 30, 2023
337bd17
bump zombienet version (#2411)
pepoviola Mar 30, 2023
826e1aa
Bump tokio from 1.26.0 to 1.27.0 (#2413)
dependabot[bot] Mar 31, 2023
a4188ea
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Mar 31, 2023
93d9b6a
Bump syn from 2.0.11 to 2.0.12 (#2414)
dependabot[bot] Mar 31, 2023
b1cd3d5
Bump proc-macro2 from 1.0.52 to 1.0.54 (#2415)
dependabot[bot] Mar 31, 2023
9106fa8
Companion PR for contract deletion updates (#2409)
pgherveou Mar 31, 2023
e5035c8
Allow arbitrary key-values in RelayStateSproofBuilder (#2407)
tmpolaczyk Mar 31, 2023
e5d994b
help text examples + clean up (#2418)
skunert Apr 1, 2023
e67094e
Bump futures from 0.3.27 to 0.3.28 (#2420)
dependabot[bot] Apr 1, 2023
6bdcf1f
Bump clap from 4.1.13 to 4.1.14 (#2421)
dependabot[bot] Apr 1, 2023
66bfb2c
Update Substrate & Polkadot (#2422)
bkchr Apr 3, 2023
d12c6d0
Bump syn from 2.0.12 to 2.0.13 (#2428)
dependabot[bot] Apr 3, 2023
697f0cd
Bump hex-literal from 0.3.4 to 0.4.0 (#2426)
dependabot[bot] Apr 3, 2023
2b4467c
Updated scripts for transfer assets
bkontur Mar 27, 2023
53c6b8d
Companion for #6986 (#2416)
bkontur Apr 4, 2023
5ed3677
[backport] weights 9400 (#2425)
EgorPopelyaev Apr 4, 2023
88ead41
Cleanup: Remove polkadot-service dependency from minimal node (#2430)
skunert Apr 4, 2023
2cbaa39
Co #13699: Remove old calls (#2431)
ggwpez Apr 4, 2023
b49628f
[Backport] version bumps 9400 (#2424)
EgorPopelyaev Apr 5, 2023
d8d5781
Merge branch 'master' into bridge-hub-rococo-wococo
bkontur Apr 5, 2023
25b7b44
Cargo.lock
bkontur Apr 5, 2023
98f6ca7
Bump hex-literal from 0.4.0 to 0.4.1 (#2434)
dependabot[bot] Apr 5, 2023
a5a79db
Updated bridge-hub-polkadot.json (#2435)
bkontur Apr 6, 2023
b0715f9
The Polkadot Fellowship import (#2236)
muharem Apr 9, 2023
dcedafb
Script updates for `ping-via-bridge-from-statemine-rococo`
bkontur Apr 11, 2023
03763dd
Companion for #13302 (#2357)
lexnv Apr 11, 2023
b4a50e2
use stable rust toolchain in ci
Apr 11, 2023
4733416
Bump syn from 2.0.13 to 2.0.14 (#2446)
dependabot[bot] Apr 12, 2023
5a0ebad
Bump serde from 1.0.159 to 1.0.160 (#2445)
dependabot[bot] Apr 12, 2023
a9a6c30
Added `transfer-asset-from-statemine-rococo`
bkontur Apr 12, 2023
030db02
Invoke cargo build commands with `--locked` (#2444)
Apr 12, 2023
8252d87
Finished scripts
bkontur Apr 12, 2023
c70f503
README.md
bkontur Apr 12, 2023
df9ed24
Bump actions/checkout from 3.1.0 to 3.5.1 (#2448)
dependabot[bot] Apr 12, 2023
977587b
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
Apr 13, 2023
574f425
Bump serde_json from 1.0.95 to 1.0.96 (#2453)
dependabot[bot] Apr 13, 2023
b42855d
Bump actions/checkout from 3.5.1 to 3.5.2 (#2452)
dependabot[bot] Apr 14, 2023
f776496
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Apr 14, 2023
6a12724
Compile fix + log xcm trace all
bkontur Apr 14, 2023
a26ebb2
Bump syn from 2.0.14 to 2.0.15 (#2454)
dependabot[bot] Apr 14, 2023
863e94d
Bump assert_cmd from 2.0.10 to 2.0.11 (#2457)
dependabot[bot] Apr 15, 2023
795fe4e
Initial version of bridges pallet as subtree of https://github.com/pa…
bkontur Apr 14, 2023
f891b32
Merge remote-tracking branch 'origin/master' into bridge-hub-rococo-w…
bkontur Apr 17, 2023
3a8b6ea
Squashed 'bridges/' changes from ecddd4a31..d30927c08
bkontur Apr 17, 2023
4156016
Merge commit '3a8b6ea5290368cb0dbf39e76555d15d380fc194' into bridge-h…
bkontur Apr 17, 2023
20f7a55
Fixes
bkontur Apr 17, 2023
a9e2773
Squashed 'bridges/' content from commit d30927c08
bkontur Apr 17, 2023
71a1d47
Merge commit 'a9e27730296e3269b82cd315aed9d635610f076c' as 'bridges'
bkontur Apr 17, 2023
8f67dc5
Merge branch 'bridge-hub-subtree' into bridge-hub-rococo-wococo
bkontur Apr 17, 2023
1e489dd
Updated REAMDE.md and BRIDGES.md (inspired by original https://github…
bkontur Apr 17, 2023
0670d9f
Squashed 'bridges/' changes from d30927c08..d3970944b
bkontur Apr 17, 2023
71aad1e
Merge commit '0670d9fa5ae67f6f01028440318a723d1b330720' into bridge-h…
bkontur Apr 17, 2023
5b20c4e
Merge branch 'bridge-hub-subtree' into bridge-hub-rococo-wococo
bkontur Apr 17, 2023
60502b2
Merge branch 'bridge-hub-rococo-wococo' into alistair/merge-from-upst…
alistair-singh Apr 17, 2023
95c088b
updated lock file
alistair-singh Apr 17, 2023
7ca7ba4
Merge branch 'snowbridge' into alistair/merge-from-upstream
alistair-singh Apr 18, 2023
c6cc01d
refacor beacon light client
vgeddes Apr 27, 2023
9466630
Update Cargo.lock
yrong May 1, 2023
9fdbaf6
Update Cargo.lock
yrong May 1, 2023
f1aeb78
Update Cargo.lock
yrong May 2, 2023
7a8220c
Update Cargo.lock
yrong May 2, 2023
262f554
Update benchmark
yrong May 2, 2023
d45182d
Update Cargo.lock
yrong May 4, 2023
84043ce
Update benchmark
yrong May 4, 2023
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
18 changes: 14 additions & 4 deletions Cargo.lock

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

29 changes: 1 addition & 28 deletions parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,15 +580,6 @@ impl snowbridge_outbound_queue::Config for Runtime {

#[cfg(feature = "minimal")]
parameter_types! {
pub const MaxSyncCommitteeSize: u32 = 32;
pub const MaxProofBranchSize: u32 = 20;
pub const MaxExtraDataSize: u32 = 32;
pub const MaxLogsBloomSize: u32 = 256;
pub const MaxFeeRecipientSize: u32 = 20;
pub const MaxPublicKeySize: u32 = 48;
pub const MaxSignatureSize: u32 = 96;
pub const MaxSlotsPerHistoricalRoot: u64 = 64;
pub const MaxFinalizedHeaderSlotArray: u32 = 1000;
pub const WeakSubjectivityPeriodSeconds: u32 = 97200;
pub const ChainForkVersions: ForkVersions = ForkVersions{
genesis: Fork {
Expand All @@ -612,15 +603,6 @@ parameter_types! {

#[cfg(not(feature = "minimal"))]
parameter_types! {
pub const MaxSyncCommitteeSize: u32 = 512;
pub const MaxProofBranchSize: u32 = 20;
pub const MaxExtraDataSize: u32 = 32;
pub const MaxLogsBloomSize: u32 = 256;
pub const MaxFeeRecipientSize: u32 = 20;
pub const MaxPublicKeySize: u32 = 48;
pub const MaxSignatureSize: u32 = 96;
pub const MaxSlotsPerHistoricalRoot: u64 = 8192;
pub const MaxFinalizedHeaderSlotArray: u32 = 1000;
// accordingly to https://notes.ethereum.org/@adiasg/weak-subjectvity-eth2
// Epochs required is 3277 as 1258368 seconds about 2 weeks
pub const WeakSubjectivityPeriodSeconds: u32 = 1258368;
Expand All @@ -647,15 +629,6 @@ parameter_types! {
impl snowbridge_ethereum_beacon_client::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type TimeProvider = pallet_timestamp::Pallet<Runtime>;
type MaxSyncCommitteeSize = MaxSyncCommitteeSize;
type MaxProofBranchSize = MaxProofBranchSize;
type MaxExtraDataSize = MaxExtraDataSize;
type MaxLogsBloomSize = MaxLogsBloomSize;
type MaxFeeRecipientSize = MaxFeeRecipientSize;
type MaxPublicKeySize = MaxPublicKeySize;
type MaxSignatureSize = MaxSignatureSize;
type MaxSlotsPerHistoricalRoot = MaxSlotsPerHistoricalRoot;
type MaxFinalizedHeaderSlotArray = MaxFinalizedHeaderSlotArray;
type ForkVersions = ChainForkVersions;
type WeakSubjectivityPeriodSeconds = WeakSubjectivityPeriodSeconds;
type WeightInfo = weights::snowbridge_ethereum_beacon_client::WeightInfo<Runtime>;
Expand Down Expand Up @@ -717,7 +690,7 @@ construct_runtime!(
// Ethereum Bridge
EthereumInboundQueue: snowbridge_inbound_queue::{Pallet, Call, Config, Storage, Event<T>} = 48,
EthereumOutboundQueue: snowbridge_outbound_queue::{Pallet, Config<T>, Storage, Event<T>} = 49,
EthereumBeaconClient: snowbridge_ethereum_beacon_client::{Pallet, Call, Config<T>, Storage, Event<T>} = 50,
EthereumBeaconClient: snowbridge_ethereum_beacon_client::{Pallet, Call, Config, Storage, Event<T>} = 50,
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `snowbridge_ethereum_beacon_client`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-05-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-172-31-8-124`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-rococo-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -30,7 +30,7 @@
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `snowbridge_ethereum_beacon_client`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand All @@ -40,7 +40,7 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
/// Storage: EthereumBeaconClient LatestSyncCommitteePeriod (r:1 w:1)
/// Proof: EthereumBeaconClient LatestSyncCommitteePeriod (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient SyncCommittees (r:2 w:1)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(24634), added: 27109, mode: MaxEncodedLen)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(92348), added: 94823, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient ValidatorsRoot (r:1 w:0)
/// Proof: EthereumBeaconClient ValidatorsRoot (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient FinalizedBeaconHeaderSlots (r:1 w:1)
Expand All @@ -55,11 +55,11 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
/// Proof: EthereumBeaconClient FinalizedBeaconHeadersBlockRoot (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
fn sync_committee_period_update() -> Weight {
// Proof Size summary in bytes:
// Measured: `24964`
// Estimated: `72217`
// Minimum execution time: 125_394_127_000 picoseconds.
Weight::from_parts(125_431_125_000, 0)
.saturating_add(Weight::from_parts(0, 72217))
// Measured: `92678`
// Estimated: `207645`
// Minimum execution time: 134_980_480_000 picoseconds.
Weight::from_parts(135_073_514_000, 0)
.saturating_add(Weight::from_parts(0, 207645))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand All @@ -69,10 +69,10 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
/// Proof: EthereumBeaconClient LatestFinalizedHeaderState (max_values: Some(1), max_size: Some(48), added: 543, mode: MaxEncodedLen)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient SyncCommittees (r:1 w:0)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(24634), added: 27109, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient ValidatorsRoot (r:1 w:0)
/// Proof: EthereumBeaconClient ValidatorsRoot (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient SyncCommittees (r:1 w:0)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(92348), added: 94823, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient FinalizedBeaconHeaderSlots (r:1 w:1)
/// Proof: EthereumBeaconClient FinalizedBeaconHeaderSlots (max_values: Some(1), max_size: Some(8002), added: 8497, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient FinalizedBeaconHeaders (r:0 w:1)
Expand All @@ -81,11 +81,11 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
/// Proof: EthereumBeaconClient FinalizedBeaconHeadersBlockRoot (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
fn import_finalized_header() -> Weight {
// Proof Size summary in bytes:
// Measured: `24964`
// Estimated: `43615`
// Minimum execution time: 119_688_074_000 picoseconds.
Weight::from_parts(119_733_837_000, 0)
.saturating_add(Weight::from_parts(0, 43615))
// Measured: `92678`
// Estimated: `111329`
// Minimum execution time: 29_360_502_000 picoseconds.
Weight::from_parts(29_376_008_000, 0)
.saturating_add(Weight::from_parts(0, 111329))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand All @@ -98,18 +98,18 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
/// Storage: EthereumBeaconClient FinalizedBeaconHeadersBlockRoot (r:1 w:0)
/// Proof: EthereumBeaconClient FinalizedBeaconHeadersBlockRoot (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient SyncCommittees (r:1 w:0)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(24634), added: 27109, mode: MaxEncodedLen)
/// Proof: EthereumBeaconClient SyncCommittees (max_values: None, max_size: Some(92348), added: 94823, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient ValidatorsRoot (r:1 w:0)
/// Proof: EthereumBeaconClient ValidatorsRoot (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: EthereumBeaconClient ExecutionHeaders (r:0 w:1)
/// Proof: EthereumBeaconClient ExecutionHeaders (max_values: None, max_size: Some(188), added: 2663, mode: MaxEncodedLen)
/// Proof: EthereumBeaconClient ExecutionHeaders (max_values: None, max_size: Some(136), added: 2611, mode: MaxEncodedLen)
fn import_execution_header() -> Weight {
// Proof Size summary in bytes:
// Measured: `25008`
// Estimated: `37729`
// Minimum execution time: 119_457_513_000 picoseconds.
Weight::from_parts(119_497_745_000, 0)
.saturating_add(Weight::from_parts(0, 37729))
// Measured: `92722`
// Estimated: `105443`
// Minimum execution time: 29_353_288_000 picoseconds.
Weight::from_parts(29_372_047_000, 0)
.saturating_add(Weight::from_parts(0, 105443))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -119,33 +119,33 @@ impl<T: frame_system::Config> snowbridge_ethereum_beacon_client::WeightInfo for
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 13_651_000 picoseconds.
Weight::from_parts(13_941_000, 0)
// Minimum execution time: 20_465_000 picoseconds.
Weight::from_parts(20_720_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
fn bls_aggregate_pubkey() -> Weight {
fn bls_fast_aggregate_verify_pre_aggregated() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 94_456_150_000 picoseconds.
Weight::from_parts(94_487_034_000, 0)
// Minimum execution time: 27_741_612_000 picoseconds.
Weight::from_parts(27_755_115_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
fn bls_verify_message() -> Weight {
fn bls_fast_aggregate_verify_legacy() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 28_358_076_000 picoseconds.
Weight::from_parts(28_368_043_000, 0)
// Minimum execution time: 31_220_692_000 picoseconds.
Weight::from_parts(31_251_978_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
fn bls_fast_aggregate_verify() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 123_429_381_000 picoseconds.
Weight::from_parts(123_459_134_000, 0)
// Minimum execution time: 28_852_169_000 picoseconds.
Weight::from_parts(28_874_397_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
}