Svyatoslav Nikolsky
b84d0e4028
Use same endowed accounts set on dev/local chains ( #1244 )
...
* use same accounts set on dev/local chains
* run altruistic relayers in local demo scripts
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4cdd959057
Refactor message relay helpers ( #1234 )
...
* refactor message relay helpers
* single standalone_metrics function
* fixed tests
* clippy + fmt
* removed commented code
* add calls tracing
* fix spelling
* cargo fmt
* -commented code
* fix build again
* post-merge build fix
* clippy + fmt
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
Antonio Dropulic
7b30098a12
update dependencies ( #1229 )
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
hacpy
bd70de8b8b
Match substrate's fmt ( #1148 )
...
* Alter gitlab.
* Use substrate's rustfmt.toml
* cargo +nightly fmt --all
* Fix spellcheck.
* cargo +nightly fmt --all
* format.
* Fix spellcheck and fmt
* fmt?
* Fix spellcheck
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
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
5dbf6ba78c
Relay subcommand that performs token RLT <> MLAU token swap ( #1141 )
...
* token swap relay
* token swap subcommand fixes
* fmt
* removed debug traces
* removed commented code
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2db84b74cc
Polkadot <> Kusama relayers ( #1122 )
...
* relay headers between Kusama and Polkadot
* relay messages between Kusama and Polkadot
* complex Kusama <> Polkadot relayer
* expose relayer_fund_account_id from messages pallet
* create relayers fund accounts on Kusama/Polkadot + some more fixes
* fmt
* fix compilation
* compilation + clippy
* compilation
* MAXIMAL_BALANCE_DECREASE_PER_DAY for K<>P header relays
* fmt
* deduplicate tests
* Update modules/messages/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* extract storage_parameter_key function
* other grumbles
* fix
* fmt
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
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
3ef4574594
Stored conversion rate updater ( #1005 )
...
* update conversion rate: initial commit
* Rialto=Polkadot && Millau=Kusama + actually update conversion rates
* update deployment scripts and readme
* allow non-zero difference between stored and real rates
* dummy commit
* Revert "dummy commit"
This reverts commit a438198180a8385feeaaca60c9d2da0950465215.
* clippy
* #[allow(clippy::float_cmp)] in conversion rate update
* dummy
* Revert "dummy"
This reverts commit 90cd6e47cda56f655e94dbef76138e6cc58d664a.
* spell
* shared_value_ref() -> get()
* Revert "shared_value_ref() -> get()"
This reverts commit 20aa30de6a59b2099cfba3e9676e71200b7bb468.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
fc9363619a
[BREAKING] Migrate messages pallet to frame v2 ( #1088 )
...
* get rid of frame_support::traits::Instance usage in messaging
* migrate messages pallet to frame v2
* fix benchmarks
* remove dummy event + add Parameter to metadata
* review
* typo
2024-04-10 10:28:37 +02:00
Hector Bulgarini
b1db3df199
Bridge/This Chain Ids should be exposed as constants on pallet level. ( #1085 )
...
* Adding BridgedChainId constant to message pallet
* Addressing PR feedback
2024-04-10 10:28:37 +02:00
Hector Bulgarini
c99fb933ca
Change ChainSpec::from_genesis for Rialto and Millau chains to reflect the chain names. ( #1079 )
...
* Changing chain_spec of Rialto and Millau chains to retrieve their respective name
* Adding development as well
* Addressing PR feedback
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
75df85f52a
Make CI happy again ( #1086 )
...
* Appease `cargo-spellcheck`
* Increase logging for `cargo-spellcheck`
* Fix config file name
2024-04-10 10:28:37 +02:00
Tomasz Waszczyk
f86d101d7c
Fix full spellcheck ( #1076 )
...
* fix(spellcheck): test of fixing
* fix(hunspell): improved many typos etc.
* fix(hunspell): all errors solved
* fix(hunspell): extended scope of files - the build should fail
* Return error code.
* Fix spelling, sort dictionary.
* fix(hunspell): added fix to gitlabs check
* fix(typo): one typo and test of verification on github
* fix(typo): one typo
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
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
kaichao
79e7845544
Fix insufficient balance when send message. ( #1020 )
...
* fix insufficient balance when send message.
* Revert "fix insufficient balance when send message."
This reverts commit b7a539c77b1eb0c6f7ccb1333e9fd2c4e18f8cbc.
* More derived account used for send messages.
* typo fix
* trigger build
2024-04-10 10:28:37 +02:00
Hernando Castano
613803a15d
Bump Substrate to 286d7ce ( #1006 )
...
* Bump dependencies
- Substrate to `74a1bfdcc`
- `finality-grandpa` to `0.14.1`
- `fs-swap` to `0.2.6`
* Add `pallet_randomness_collective_flip` to runtimes
* Rename GenesisConfig fields
See Substrate PR: https://github.com/paritytech/substrate/pull/8990
* Missed PoA renames in Rialto GenesisConfig
* Use `spawn_essential_handle` for transaction pool
See Substrate PR: https://github.com/paritytech/substrate/pull/9074
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
812e782904
fix clippy issues ( #991 )
2024-04-10 10:28:37 +02:00
Roman Useinov
cab4c7cd05
Make sure GRANDPA shares state with RPC. ( #987 )
...
* Make sure GRANDPA shares state with RPC.
* RPC shared state with GRANDPA rialto.
* fmt
* cargo fix
* fix clippy
2024-04-10 10:28:37 +02:00
Hernando Castano
a6379d2968
Bump Substrate ( #986 )
...
* Bump Substrate to commit `0495ead4`
* Derive MaxEncodedLen for MillauHash
* Add new config params to Balances pallet
* Update Millau and Rialto service files
* Add new Config items to mock runtime
* Bump Substrate to `37bb3ae7`
* Update Aura worker params
2024-04-10 10:28:37 +02:00
Dan Shields
1f75777085
Revert to use InspectCmd, bump substrate 6bef4f4 ( #966 )
...
* revert to use InspectCmd
* rust toolchain 1.52
* Bump `finality-grandpa` and `parity-scale-codec`
* bump to same version for substrate as polkadot v0.9.1
* bump to polkadot 0.9.2 deps for substrate `6bef4f4`
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ff7f8ad098
pass source and target chain ids to account_ownership_proof ( #963 )
2024-04-10 10:28:37 +02:00
Hernando Castano
d85cf36685
Increase account endowment amount ( #960 )
2024-04-10 10:28:37 +02:00
Hernando Castano
d53ecbdb3b
Bump Substrate to b094edaf ( #958 )
...
* Bump Substrate to commit `b094edafd1cd5d26e49ecbf92b0ce7553cfad717`
* Remove unsafe random seed method
See: https://github.com/paritytech/substrate/pull/8718
* Update Subkey syntax
See: https://github.com/paritytech/substrate/pull/8678
2024-04-10 10:28:37 +02:00
Hernando Castano
1a662c7bb3
Bump endowment amounts on Rialto and Millau ( #957 )
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
92b1860f5a
Bump Substrate to ec180313 ( #955 )
...
* Bump Substrate to commit `0856e0729c5f9cd5d398b93680ab154fe486e588`
* Update service to use new inherent data client
Relevant Substrate PR: https://github.com/paritytech/substrate/pull/8526
* Appease Clippy
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
d85240b539
Endow accounts and add bridgeIds to chainspec. ( #951 )
...
* Endow more accounts.
* Add bridge ids to properties.
* Change accounts on Millau.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
fd44cab992
Add properties to Chain Spec ( #917 )
...
* Add properties to chainspec.
* Update bin/millau/node/src/chain_spec.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0d60f42b5e
Use Substrate state_getReadProof RPC method to get storage proofs ( #893 )
...
* use Substrate state_getReadProof method instead of pallet-bridge-messages-rpc
* Fix typo
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
c6ae74725b
Bump Substrate ( #871 )
...
* Bump Substrate
* Change usage of "Module" to "Pallet"
Related Substrate PR: https://github.com/paritytech/substrate/pull/8372
* Add `OnSetCode` config param
Related Substrate PR: https://github.com/paritytech/substrate/pull/8496
* Update Aura Slot duration time type
Related Substrate PR: https://github.com/paritytech/substrate/pull/8386
* Add `OnSetCode` to mock runtimes
* Add support for multiple justifications
Related Substrate PR: https://github.com/paritytech/substrate/pull/7640
* Use updated justification type in more places
* Make GenesisConfig type non-optional
Related Substrate PR: https://github.com/paritytech/substrate/pull/8275
* Update service to use updated telemetry
Related Substrate PR: https://github.com/paritytech/substrate/pull/8143
* Appease Clippy
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
21baffc832
Update Copyright Date to 2021 ( #864 )
...
* Update copyright date to 2021
* Bump date in license header template
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
647eb80165
Westend->Millau headers relay in deployments ( #831 )
...
* reorganize monitoring
* Westend->Millau bridge
* support multiple bridges
* initialize Westend -> Millau bridge byMillau.George
* fix intersecting ports
* ignore dashboards
* single bridged network
* deal with multple --env-file args
* fix chain name
* use images from docker hub
* update show_help
* updated comment
* mount whole dashboards directory
* removed unneeded network
* reverted reverse-proxy changes
* prometheus -> targets
* separate Grafana.Dockerfile with builtin /etc/grafana
* Revert "separate Grafana.Dockerfile with builtin /etc/grafana"
This reverts commit 53e04c4556f882d19e3af0fac581a926b8e0c167.
* read dashboards from /etc/grafana/dashboards
* stop comment
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
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
Hernando Castano
f1553e3de9
Update Substrate Node build script ( #786 )
...
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
c3d651d29a
Add inspect command to take a look at extrinsics. ( #762 )
...
* Add inspect command to take a look at extrinsics.
* cargo fmt --all
* New weight for on-chain remark in tests
* Minor style tweaks.
Co-authored-by: adoerr <0xad@gmx.net >
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
82739314a8
Bump substrate in subtree import preparation. ( #759 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
441c95ba2b
Set weird substrate global state for custom SS58 prefixes ( #754 )
...
* Issue with SS58 decoding.
* Switch to test branch.
* Fix set.
* Revert "Switch to test branch."
This reverts commit d79e42ea9bc780edb20296dae546d534f1916fc7.
* cargo fmt --all
Co-authored-by: adoerr <0xad@gmx.net >
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
Hernando Castano
ac1d12e607
Bump Substrate Dependency ( #684 )
...
* Bump Substrate to commit `0b0d124d5`
* Get Millau node compiling
* Get Rialto node compiling
* Increase account reference count before test
* Fix Clippy warnings for Millau node
* Fix Clippy warnings for Rialto node
* Trigger build.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Hernando Castano
e4f195d14c
Make Account Derivation More Unique ( #686 )
...
* Use more unique prefix when generating account IDs
* Update derived addresses used in tests
* Make `account` prefix more unique
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update test account IDs again
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00