Svyatoslav Nikolsky
65c2c0ccce
Update Substrate/Polkadot/Cumulus references ( #1353 )
...
* cumulus: 4e95228291
polkadot: 975e780ae0d988dc033f400ba822d14b326ee5b9
substrate: 89fcb3e4f62d221d4e161a437768e77d6265889e
* fix refs
* sync changes from https://github.com/paritytech/polkadot/pull/3828
* sync changes from https://github.com/paritytech/polkadot/pull/4387
* sync changes from https://github.com/paritytech/polkadot/pull/3940
* sync with changes from https://github.com/paritytech/polkadot/pull/4493
* sync with changes from https://github.com/paritytech/polkadot/pull/4958
* sync with changes from https://github.com/paritytech/polkadot/pull/3889
* sync with changes from https://github.com/paritytech/polkadot/pull/5033
* sync with changes from https://github.com/paritytech/polkadot/pull/5065
* compilation fixes
* fixed prometheus endpoint startup (it now requires to be spawned within tokio context)
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2bf5b23262
edition = "2021" ( #1346 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
097a28418b
Add some tests to check integrity of chain constants + bridge configuration ( #1316 )
...
* add some tests to check integrity of chain constants + bridge configuration
* try to use named parameters where possible
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
00f68e7722
Move benchmarks from Rialto to Millau ( #1277 )
...
* move brnchmarks from Rialto to Millau
* fix limits test
2024-04-10 10:28:37 +02:00
Adrian Catangiu
1fb70c7ed7
Integrate BEEFY with Rialto & Millau runtimes ( #1227 )
...
* Add Beefy pallet to Rialto runtime
* Add Beefy gadget to Rialto node
* Add MMR pallet to Rialto runtime
* Add Beefy pallet to Millau runtime
* Add Beefy gadget to Millau node
* Add MMR pallet to Millau runtime
* Add pallet_beefy_mmr to Millau runtime
* Add pallet_beefy_mmr to Rialto runtime
* Implement MMR and BEEFY APIs in Rialto
* fix unit tests
- should_encode_bridge_send_message_call() tests for new
runtime encoding resulted from newly added pallets.
- runtime size_of::<Call>() slightly increased from newly
added pallets.
* fix grumbles
* tighten clippy allowances
* fix more grumbles
* Add MMR RPC to Rialto and Millau nodes
Also implement MmrApi in Millau runtime.
* rialto: use upstream polkadot_client::RuntimeApiCollection
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e23266c7e6
Bump dependencies ( #1180 )
...
* substrate: d0f6c1c60da22e04dd25c2eca46ebfe6f1571af0
polkadot: dd4b2e6a34a08a01b876d14641e99e7011be3463
cumulus: 9379cd6c18
* fmt
* fixed lost refs
* spelling
* benckhmarks
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4b525f4fe1
Token swap pallet benchmarks ( #1174 )
...
* token swap benchmarks
* spellcheck
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
70f87e826c
Add rialto-parachain runtime and node ( #1142 )
...
* Substrate: 63b32fbaa2764c0a8ee76b70cdfa0fcb59b7181f
Polkadot: 7229ab87acf5bc5d4d10655ad1a9819a1e317442
Cumulus: d5284b0e78
* rialto parachain runtime
* fixed tests
* add node + bump refs (not compiling yet):
Substrate: 630422d6108cbaaca893ab213dde69f3bdaa1f6b
Polkadot: 7229ab87acf5bc5d4d10655ad1a9819a1e317442
Cumulus: 5af2990cfd
GrandpaBridgeGadget: c152c45ac331eb8ab40d956ab1d008d181810ef4
* fix compilation (collator is not working)
* more fixes
* fmt
* spellcheck
* fix warnings
* fix compilation
* fmt
* trigger CI
* trigger CI
* Revert "trigger CI"
This reverts commit a31f53cec47909817b31a48f3c9f1abd9321f72c.
* benchmarks
* fix benchmarks
* fix again
* Revert "Revert "trigger CI""
This reverts commit 1dea8b42ac8bca830dea982fd2613eb89d607a6c.
* Revert "Revert "Revert "trigger CI"""
This reverts commit 8fb74fa5eba483b7f6a3ce3e25a60757aef4c6bc.
* try fix
* lost lock file
* spellcheck
* try to disable sccache for cargo check
* Revert "Revert "Revert "Revert "trigger CI""""
This reverts commit f157461482d4c1d19156715c4b1ee2acb169531b.
* try to disable again
* disable sccache for test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
24bd2d6c51
Integrate token swap pallet into Millau runtime ( #1099 )
...
* integrate token swap pallet into Millau runtime
* set OnDeliveryConfirmed callback in Millau runtime
2024-04-10 10:28:37 +02:00
Xavier Lau
3d4d66456d
Code Cleaning ( #1124 )
...
* Remove Trailing Space
* Correct Source Chain Name
2024-04-10 10:28:37 +02:00
Squirrel
8b52cd2593
Remove unused deps ( #1102 )
...
* remove unused dev deps
* Removing unused deps
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f5f73537a8
bump dependencies before start referencing polkadot repo ( #1048 )
2024-04-10 10:28:37 +02:00
Chevdor
c8aeb11b26
Update the wasm builder to substrate master ( #1029 )
...
* chore: update the wasm builder to substrate master
* Bump Substrate
* Update weight of sending remarks
ref https://github.com/paritytech/polkadot/pull/3354
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
7ebae6fa9e
Bump Substrate WASM builder ( #947 )
2024-04-10 10:28:37 +02:00
Hernando Castano
fe4c899594
Use new Cargo feature resolver ( #891 )
...
* Use new Cargo feature resolver
* Simplify runtime benchmark CI commands
* Add `runtime-benchmarks` feature to Millau runtime
2024-04-10 10:28:37 +02:00
Hernando Castano
2f1c4c23fc
Remove Substrate Pallet ( #866 )
...
* Remove `pallet-substrate-bridge`
* Fix transfer call encoding test
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Hernando Castano
8d122b03f1
Rename Finality Verifier and Call Dispatch Pallets ( #838 )
...
* Rename `pallet-finality-verifier` to `pallet-bridge-grandpa`
* Missed some CamelCase ones
* Update logging target in GRANDPA pallet
* Rename `pallet-bridge-call-dispatch` to `pallet-bridge-dispatch`
* Rename the dispatch pallet folder
* Update logging target in Dispatch pallet
* Missed a couple
* Format the repo
* Stop listing individual pallets in Compose logs
* Use correct pallet name in module doc comments
* Add `pallet-bridge-dispatch` to README project layout
* Sort crate names in TOML files
* Rename `pallet-bridge-grandpa` runtime Call alias
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
acb872fbb0
Flatten back the structure ( #837 )
...
* Remove chains.
* Move relay clients.
* Flatten generic.
* Fix fmt.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4105575794
Rename pallet-message-lane into pallet-bridge-messages ( #834 )
...
* use runtime:: prefix for message-lane pallet traces
* renamed message-lane (module and primitives) folder into messages
* replace "message lane" with "messages" where appropriate
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d749bc3a96
Sync Westend to Millau ( #824 )
...
* make finality verifier pallet instantiable
* add second instance of finality verifier pallet to the Millau runtime
* add Westend -> Millau headers relay
* use wss to connect to public westend nodes
* initialize with best_finalized_block
* typo
* Revert "initialize with best_finalized_block"
This reverts commit 954ed2832372d67618abc1a06d47e66faa93f674.
* pass VoterSet by ref
* new bridge initialization code
* loop upper bound
* Polkadot -> Westend
* fixed tests compilation
* default-features
* assert
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
84cd93f936
Add Westend & Rococo primitives ( #808 )
...
* Move chain primitives to a sub-folder.
* Update workspace members.
* Extract core parts of polkadot.
* cargo fmt --all
* Remove TODO.
* cargo fmt --all
* Fix crate names.
* Add to the latest API.
* cargo fmt --all
* Add nested lock files to ignore (generated during cargo fmt)
* Fix compilation.
* cargo fmt --all
* Fix ignore pattern.
* Address review comments.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
8f11732bb9
Uniform git dependencies (Backport of substrate#2589) ( #805 )
...
* Make Substrate deps uniform
* Rest of the deps.
* Fix broken merge.
* Revert substrate.
* Fix tests
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
903018db3d
Add Transaction Payment Custom RPC ( #806 )
...
* Transaction payment RPC.
* Add payment RuntimeApi to fix the build.
* cargo fmt --all
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
56354c7d1a
Bump serde from 1.0.123 to 1.0.124 ( #801 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7aa51f8d30
Update to latest substrate ( #723 )
...
* Bump substrate deps.
* Bump scale.
* Bump ethabi.
* Remove inherent from aura.
* Migrate to construct_runtime
* cargo fmt --all
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
0344d8de84
Bump serde from 1.0.121 to 1.0.123 ( #709 )
2024-04-10 10:28:37 +02:00
Hernando Castano
8c7d0ca35d
Wire Finality Verifier Pallet Into Runtimes ( #696 )
...
* Add Finality Verifier pallet to runtimes
* Implement simple ancestry checker
* Use the new checker in runtimes
* Remove unused import warning
* Bump max allowed ancestry proof size
* Add a few optimization suggestions when verifying ancestry
* Use session length as upper bound for ancestry proof size
* Remove unused time units
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
277167face
Bump serde from 1.0.118 to 1.0.121 ( #674 )
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
93b3d49047
Bump serde from 1.0.117 to 1.0.118 ( #564 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dd7242bc79
Migrate back to Substrate master ( #528 )
...
* migrate back to Substrate master
* fmt
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ddef170340
Actually use pinned nightly version when building runtimes ( #465 )
...
* try to fix build
* use pinned nightly for in stable
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e2d9b6393d
Integrate Rialto <-> Millau message lanes into Millau/Rialto runtimes ( #386 )
...
* millau -> rialto lanes integration
* extrace common message-lane integration types into bridge-runtime-common
* rialto_messages.rs in Millau runtime
* tests
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* RELAYER_INTEREST_PERCENT -> RELAYER_FEE_PERCENT
* Update bin/runtime-common/src/messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* estimate_message_dispatch_and_delivery_fee returns Result
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update bin/rialto/runtime/src/millau_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* fmt
* mowed weight formula to primitives
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
bf51e1cc6e
Bump serde from 1.0.116 to 1.0.117 ( #427 )
2024-04-10 10:28:37 +02:00
Hernando Castano
f52c839d6e
Add GenesisConfig for Millau and Rialto Runtimes ( #401 )
...
* Add Rialto as a target for the Millau node
* Rename Rialto module to Rialto-PoA
This will reduce confusion as the Millau runtime has a
Rialto module as well which refers to the Substrate chain.
* Add Millau as a target for the Rialto node
* Be more explicit about Rialto PoA related code
* Missed some name changes in the Ethereum PoA relay
* Re-export Substrate pallet structs used by node
* Remove `first_scheduled_change` of Millau in Rialto node
* Make Millau's genesis config for Rialto bridge more accurate
* Set initial header for Millau config
* Update initial Millau authorities
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
* RustFmt Millau authorities
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
86834e2fd6
Implement Substrate Pallet Runtime APIs ( #389 )
...
* Implement public helpers for querying header info
* Update `best_header` when importing headers
* Add BestHeader to GenesisConfig
* Define extra types for Millau primitives
* Start implementing runtime APIs in Millau runtime
* Add helper for getting headers which require a justification
* Add runtime API for getting headers requiring a justification
* Reword `expect()` proof for valid authority sets
* Fix typo
* Clean up Hasher comment
* Add the Call Dispatch Pallet back to the Millau runtime
* Use types from Rialto in bridge pallet config
* Use the Rialto runtime APIS in the Millau runtime
* Include Millau bridge instance in Rialto runtime
* Add missing doc comment
* Use one storage function for setting and clearing `RequiresJustification`
* Remove TODO comments
2024-04-10 10:28:37 +02:00
Hernando Castano
8b8248f83f
Split Rialto and Millau Nodes ( #372 )
...
* Split the Rialto Node into a standalone crate
* Split the Millau Node into a standalone crate
* Remove `bridge-node` crate
* Add benchmarking feature to nodes
* Check that benchmarks compile in CI
* Remove nodes from CI matrix
* Update Rialto node to Substrate 2.0
* Get Millau node compiling with Substrate 2.0
* Remove extra license text
* Remove comments in TOML files
* Move nodes and runtimes into Rialto and Millau folders
* Fix dependency paths
* Remove unused script
* Add issue to benchmarking TODO
* Fix benchmark manifest paths
2024-04-10 10:28:37 +02:00