Svyatoslav Nikolsky
2f9d8e33e0
Add missing parts to rialto parachain bridge (part 1) ( #1454 )
...
* add proper parameter names to bridge declaration
* associate RialtoParachain token with DOT
* RialtoParachain<>Millau message pallet owners
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4d36321e77
Fix deployments again ( #1452 )
...
* Revert "try to fix nonces collisions (#1450 )"
This reverts commit 5a91ddf4cca0b81f9b04fe7a362298c3863851fa.
* Revert "Revert "try to fix nonces collisions (#1450 )""
This reverts commit e6350e839b97946541c1468235575c4bad4c75c1.
* added some accounts to RialtoParachain
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
19c73ce0b7
Signed extension for rejecting obsolete messages pallet transactions ( #1446 )
...
* BridgeRejectObsoleteMessages
* add obsolete confirmations verification to the BridgeRejectObsoleteMessages
* move tests where they belong
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ee5b692f72
fix another clippy warning ( #1448 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
631111ef7f
fix clippy errors ( #1447 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
53780cfd1a
remove duplicate parachain heads exension ( #1444 )
...
* remove duplicate parachain heads exension
* fix benchmarks compilation
* actually fix it
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
db2bc11476
CheckBridgedBlockNumber -> BridgeRejectObsoleteGrandpaHeader ( #1442 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5e2e5906e8
remove unused RialtoParachainGrandpaInstance ( #1441 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b870fe74f8
Parachains pallet benchmarks ( #1436 )
...
* added parachains pallet benchmarks
* deduplicate insertion of bridged header
* pruning weight
* fixes
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
690a929cf6
added one more test to parachains finality pallet ( #1435 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5340ee5ab5
Added tracked parachains filter ( #1432 )
...
* added trackerd parachains filter + changed some docs
* fix compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f0d05de080
Get dispatch weight from the target chain (when DispatchFeePayment::AtTargetChain is used) ( #1430 )
...
* reintroduce From<SourceChain>InboundLaneApi
* impl From<Chain>InboundLaneApi for testnet runtimes
* use inboundlaneapi in relay
* remove unused OutboundXcmWeigher
* spelling
* added the only test to messages pallet
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
78a43c561a
ensure that the bridge GRANDPA pallet is initialized in the finality relay ( #1423 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4001cfb758
Add RialtoParachain <> Millau bridge to test deployments ( #1412 )
...
* add RialtoParachain <> Millau bridge to test deployments
* flush (still not working, but possible fix in comments)
* proper fix
* fixed on-demand parachains relay case: if better relay header is delivered, then we must select para header that may be proved using this relay header
* dashboards
* fmt
* removing debugging code
* more cleanup
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0a3f8ace26
fixed on-demand parachains relay case: if better relay header is delivered, then we must select para header that may be proved using this relay header ( #1419 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
188f16beb0
Fix XCM instruction weight in RialtoParachain to match Millau weight ( #1418 )
...
* fix XCM instruction weight in RialtoParachain to match Millau weight
* fix spelling
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1a8066472a
allow(clippy::too_many_arguments) for on-demand relays startup ( #1414 )
...
* allow(clippy::too_many_arguments) for on-demand relays startup
* add TODO
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7a92b40eab
Fix clippy warnings + try to enable proper (no-warning) clippy on CI ( #1410 )
...
* fix clippy warnings
* try to reenable proper clippy on CI
* fix clippy error
* more Eqs
* ignore clippy::derive-partial-eq-without-eq - clippy seems to be broken now :/
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
542ebb5654
Complex RialtoParachain <> Millau relay ( #1405 )
...
* complex parachain relay
* fix spelling
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5f2f61ced5
messages bridge between RialtoParachain and Millau ( #1218 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
03c2f06a27
Parachains finality relay ( #1199 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f64357e7e8
CheckBridgedBlockNumber signed extension to reject duplicate header-submit transactions ( #1352 )
...
* CheckBridgedBlockNumber signed extension to reject duplicate header submit transactions
* fix depends_on
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
748c265c47
Xcm in Rialto<>Millau bridge ( #1379 )
...
* add XCM pallet to Millau runtime
* some progress
* messages are delivered (no fee)
* temp
* flush
* flush
* some progress
* progress
* Trap(42) is dispatched successfully
* fix spelling
* no more manual sending
* parametrize weight credit for tests
* actually charge fees
* enable send-using-messages-pallet to keep our test deployments alive + send valid XCM sometimes
* fix benchmarks build
* fix tests
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f54bd6c779
Parachains finality pallet ( #1068 )
...
* parachains finality
* parachains pallet test
* demo of how to configure GRANDPA pallet instance
* allow instances in parachains pallet
* spellcheck
* TODO + fix
* fmt
* removed invalid storage_keys file
* change all hashers to Blake2_128Concat
* use Twox64Concat for insertion position
* fix build
* fix compilation
* change ParaId and ParaHead types
* TODOs -> TODOs with issues refs
2024-04-10 10:28:37 +02:00
echo
f2a8ca1d3e
Small opt when prune messages ( #1389 )
...
* Small opt when prune messages
* Fix typing error
2024-04-10 10:28:37 +02:00
Sergei Shulepov
afb6fb6e5a
Generalize error text ( #1388 )
...
* Generalize error text
Right now, each time there is an error while executing `substrate-relay`
it will be reported as:
ERROR bridge Failed to start relay: <Actual cause of error>
This is the case even if the invoked command did not have anything to do
with starting a relayer. Thus this removes this text. Now something like
this would be written:
ERROR bridge <Actual cause of error>
* Use substrate-relay prefix
2024-04-10 10:28:37 +02:00
Sergei Shulepov
e07b931476
Update spec_version for Rococo ( #1387 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d582061dff
Remove support for encoded-call messaging from relay and runtime integration code ( #1376 )
...
* remove support for encoded-call messaging
* continue cleanup
* continue cleanup
* continue cleanup
* more cleanpup
* more cleanup
* fmt
* continue cleanup
* spellcheck
* rename
* fix benchmarks
* mention encoded-calls-messaging tag
* fixing deployments
* fix messages generation
* fmt
2024-04-10 10:28:37 +02:00
Adrian Catangiu
dc96aeea35
Update Substrate/Polkadot refs for latest BEEFY + xcm-v3 capability ( #1381 )
...
* Update Substrate/Polkadot xcm-v3-capable references
Branches below are based on gav-xcm-v3 + cherry-picked BEEFY commits.
polkadot: 'locked-for-gav-xcm-v3-and-bridges#6e00638f0a2d07ba3bb1c7430a539c15b5a79b74'
substrate: 'sv-locked-for-gav-xcm-v3-and-bridges#a42bef088f173f54aba152ca63eb301ba44dd339'
Signed-off-by: acatangiu <adrian@parity.io >
* millau: reduce beefy min block delta to 2
* bump substrate, polkadot refs to include beefy fixes
* grafana: fix beefy dashboards
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c538a39816
Switch to gav-xcm-v3 branch to be able to test bridges + XCMv3 integration ( #1378 )
...
* switch to gav-xcm-v3 branch (wip)
* add comment
* play with CI
* keep playing with CI
* play with CI
* trigger CI
* Revert "trigger CI"
This reverts commit fc35ac648fe6a3ea8e710a2e07dfee7d8762c6c4.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
cf15c0d91b
Revert "mention encoded-calls-messaging tag"
...
This reverts commit 3e23097b0fef199d3e6a77c87bdb4948d54c5afe.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a1c04728c4
mention encoded-calls-messaging tag
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8859a313cc
Revert "add api data() for inbound_lane ( #1373 )" ( #1375 )
...
This reverts commit 9e3cb0c7615a8f06bd32b2f0fcc99a8cc481cd80.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b3c8852bcf
FinalityEngine in substrate relay ( #1374 )
...
* introduce FinalityEngine in relay code
* add FinalityEngine to relay
* spelling
* fix test compilation
* Update relays/lib-substrate-relay/src/finality/source.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
xiaoch05
6a4144e8f2
add api data() for inbound_lane ( #1373 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
eb1e48edba
pub use WeightInfo in Grandpa + Messsages pallets ( #1370 )
2024-04-10 10:28:37 +02:00
Adrian Catangiu
14b27a0209
Update Substrate/Polkadot/Cumulus references ( #1364 )
...
cumulus: b468d0c33e
polkadot: 827792ca833396c82c726eda0bc2ad32ecddba73
substrate: 666f39b8a22108f57732215de006518738034ba2
bump serde_json to 1.0.79
sync changes from https://github.com/paritytech/substrate/pull/11022
fixed clippy warnings
Signed-off-by: acatangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Adrian Catangiu
d04b018630
Few typos and clippy fixes ( #1362 )
...
* fix typos
* clippy fixes
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
133934df7c
fix parse_transaction on Rialto+Millau ( #1360 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c29bfcccc3
update chain versions ( #1358 )
2024-04-10 10:28:37 +02:00
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
ed2a3082ef
Support dedicated lanes for pallets ( #962 )
...
* pass call origin to the message verifier
* is_outbound_lane_enabled -> is_message_accepted
* trait SenderOrigin
* only accept messages from token swap pallet to token swap lane
* tests for edge cases of pay_delivery_and_dispatch_fee
* fixed origin verification
* fmt
* fix benchmarks compilation
* fix TODO with None account and non-zero message fee (already covered by tests)
* revert cargo fmt changes temporarily
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
7b7b8baa60
added no_stack_overflow_when_decoding_nested_call_during_dispatch test ( #1349 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f95456d4ea
replace From<>InboundLaneApi with direct storage reads ( #1348 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ba2b0b086c
Mortal conversion rate updater transactions ( #1257 )
...
* merge all similar update_conversion_rate functions
* stall timeout in conversion rate update loop
* fmt
* fix
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2bf5b23262
edition = "2021" ( #1346 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
814f23584c
use DecodeLimit when decoding incoming calls ( #1344 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9b4d44bcfa
Increase rate from metric when estimating fee ( #1340 )
...
* ignore errors when dumping logs and container is missing
* fixed typo
* print correct payload length
* increase conversion rate a bit when estimating fee (to avoid message rejects when rate update tx is active)
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e822bbf8ab
fixed mess with conversion rates ( #1338 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dd7404f249
fix conversion rate override in token swap ( #1336 )
2024-04-10 10:28:37 +02:00