- Mar 12, 2021
-
-
Tomasz Drwięga authored
* Nest some crates. * Alter command execution to make it easier to add new bridges. * Rename sub-dirs. * cargo fmt --all * Address clippy. * Update relays/substrate/src/rialto_millau/cli.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Mar 11, 2021
-
-
Svyatoslav Nikolsky authored
* more tests for finality relay * clippy * remove env_logger dep * fmt * more clippy * removed prune_unjustified_headers * review
-
- Mar 10, 2021
-
-
Hernando Castano authored
* Remove unused Config types from `pallet-finality-verifier` * Remove unused AncestryChecker trait * Remove ancestry proof parameter from relayer calls * Update docs to reflect current state of pallet * Remove mock ancestry checker * Remove unused error * Write headers outside of function used for authority set changes * Move justification verification into helper function * Add documentation suggestions Co-authored-by: Tomasz Drwięga <[email protected]> * Clean up module level documentation a bit Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Mar 08, 2021
-
-
Svyatoslav Nikolsky authored
* removed weight <-> fee mess * updated documentation Co-authored-by: Hernando Castano <[email protected]>
-
Svyatoslav Nikolsky authored
* finality proofs relay * SyncHeader::is_mandatory * empty ancestry proof * logs * fixed submit condition * fixed wrong split index * tick comment * recent_finality_proofs * basic finality loop tests * removed obsolete files * rename files in substrate relay * fmt * clippy * fixed TODOs * clippy * stop syncing if target node is out of sync * more clippy * more clippy * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Hernando Castano <[email protected]> * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Hernando Castano <[email protected]> * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Hernando Castano <[email protected]> * docs * moved doc * typo * Update relays/finality-relay/src/finality_loop_tests.rs Co-authored-by: Hernando Castano <[email protected]> * Update relays/finality-relay/src/finality_loop_tests.rs Co-authored-by: Hernando Castano <[email protected]> * header_and_finality_proof_by_number -> header_and_finality_proof * VecDeque isn't required (because of make_contiguous) * fixed wrong expect * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Hernando Castano <[email protected]> * Update relays/substrate/src/rialto_headers_to_millau.rs Co-authored-by: Hernando Castano <[email protected]> * Update relays/substrate/src/rialto_headers_to_millau.rs Co-authored-by: Hernando Castano <[email protected]> * RialtoSyncHeader * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Tomasz Drwięga <[email protected]> * removed wrong comment * Update relays/finality-relay/src/finality_loop.rs Co-authored-by: Tomasz Drwięga <[email protected]> * fix used runtime methods names * fix for new jsonrpsee * fix comment * initialize finality verifier pallet * fmt Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Mar 04, 2021
-
-
Svyatoslav Nikolsky authored
* POC jsonrpsee v2 * POC update ws client * connect to eth nodes using ws * fix for subscriptions * reverted unncecessary changes * reference jsonrpsee from crates.io * fixed eth port in deployments * fmt * order deps * remove unnecessary comment * clone is no longer required for subscriptions * treat RpcError::Internal as connection error * resubscribe on terminate * Update deployments/bridges/poa-rialto/entrypoints/poa-exchange-tx-generator-entrypoint.sh Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Mar 02, 2021
-
-
Tomasz Drwięga authored
* Bridge calls. * Allow encoding messages for both Rialto and Millua. * Add docs. * Display full extrinsics in debug. * cargo fmt --all * Use info instead of debug,. * Clarify units.
-
Tomasz Drwięga authored
* Add derivation support. * Add custom decoder for Accounts. * cargo fmt --all * Fix warn. * Fix articles. Co-authored-by: Hernando Castano <[email protected]>
-
- Mar 01, 2021
-
-
Tomasz Drwięga authored
* Adding call encoding. * Add message payload encoding. * Nicer output. * Add fee estimation. * cargo fmt --all * Split message payload encoding into separate command. * Use HexBytes. * cargo fmt --all * Fix compilation.
-
- Feb 25, 2021
-
-
Tomasz Drwięga authored
-
- Feb 22, 2021
-
-
Svyatoslav Nikolsky authored
* generate large messages * consider headers sync lag when computing number of rewards in confirmation * more fixes * fix logs * fix warnings * do not wait until tx that has delivered nonces will be finalized before submitting other tx * tests for maximal weight/size * cleanup * cleanup * clippy * compilation * args for dispatch weight and remark size * ExplicitOrMaximal * clippy
-
- Feb 16, 2021
-
-
Tomasz Drwięga authored
* Change CLI UX. * De-duplicate main. * De-duplicate send message. * Add more docs and extract functions. * Fix scripts. * cargo fmt --all * Add missing 'u'.
-
- Feb 12, 2021
-
-
Svyatoslav Nikolsky authored
* fix max weight in relay + logging * removed duplicate info
-
- Feb 10, 2021
-
-
Svyatoslav Nikolsky authored
* fix broken message lane benchmarks * proof-size related benchmarks * impl Size for proof parameters * include proof weight into weight formula * left TODO * fixed proof size * WeightInfoExt::receive_messages_proof_weight * charge for extra message bytes delivery in send_message * removed default impl of WeightsInfoExt * moved weight formulas to WeightInfoExt * receive_messages_proof_outbound_lane_state_overhead is included twice in weight * typo * typo * fixed TODO * more asserts * started wotk on message-lane documentation * expected_extra_storage_proof_size() is actually expected in delivery confirmation tx * update README.md * ensure_able_to_receive_confirmation * test rialto message lane weights * removed TODO * removed unnecessary trait requirements * fixed arguments * fix compilation * decreased basic delivery tx weight * fmt * clippy * Update modules/message-lane/src/benchmarking.rs Co-authored-by: Hernando Castano <[email protected]> * structs * Update primitives/millau/src/lib.rs Co-authored-by: Hernando Castano <[email protected]> * removed readme.md * removed obsolete trait bounds * Revert "removed readme.md" This reverts commit 50b7376a . * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update bin/runtime-common/src/messages.rs Co-authored-by: Tomasz Drwięga <[email protected]> * PreComputedSize Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Feb 02, 2021
-
-
Svyatoslav Nikolsky authored
-
- Jan 27, 2021
-
-
Svyatoslav Nikolsky authored
-
- Jan 26, 2021
-
-
Svyatoslav Nikolsky authored
* extract common parts of relay loops: begin * merge client impls * backoff in exchange loop * reconnect without clone
-
Andreas Doerr authored
* patch audit findings #42 * extend msg signature for substrate relay * signature verification test * make proof dependet on call_dispatch crate * silence clippy * revert deny exception * address code review * since it's not really a proof, call it digest
-
- Jan 25, 2021
-
-
Svyatoslav Nikolsky authored
* update weight-related parameters in relay * asserts + docs Co-authored-by: Hernando Castano <[email protected]>
-
- Jan 20, 2021
-
-
Svyatoslav Nikolsky authored
* fixed messages count check * explicit check of `messages_count` in the receive_messages_proof * change messages_count to be u32 * Update modules/message-lane/src/lib.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Jan 15, 2021
-
-
Hernando Castano authored
* Move justification module to header-chain primitives crate * Get justification module compiling in new location * Get justification module tests compiling * Use justification code from `header-chain` crate Mostly compiles, having issues with std/test feature flags across crates. * Move some code around * Move justification tests to integration testing crate * Add `test-utils` crate * Remove tests and test-helper module from justification code * Use `test-utils` in Substrate bridge pallet tests * Remove `sp-keyring` related code from `pallet-substrate-bridge` * Remove `helpers` module from `pallet-substrate-bridge` * Add some documentation * Add more documentation * Fix typo Co-authored-by: Tomasz Drwięga <[email protected]> Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Jan 13, 2021
-
-
Svyatoslav Nikolsky authored
-
- Jan 04, 2021
-
-
Svyatoslav Nikolsky authored
* estimate_message_delivery_and_dispatch_fee runtime API * auto-determine message fees in relay * remove fee argument from relay calls * Fix import of weight contant Co-authored-by: Hernando Castano <[email protected]>
-
- Dec 22, 2020
-
-
Svyatoslav Nikolsky authored
-
- Dec 17, 2020
-
-
Svyatoslav Nikolsky authored
* add messages count parameter to delivery transaction * fix benchmarks compilation
-
- Dec 16, 2020
-
-
Hernando Castano authored
* Add option to relay for sending transfers to Millau chain * Endow derived accounts on Millau chain * Update message generator entrypoint script to send transfers * Use correct command when sending messages * Send Root messages from Root origin on source chain * Wrap calls from Root Origin in Sudo Call * Allow Root to send messages without paying fees * Use correct variable when sending messages to Rialto * Print warning if no message type is provided to script. * Add note mentioning that certain source origins aren't supported yet * Use correct runtime when initializing header sync * Remove option to send messages as Root * Remove endowment of derived Root accounts * Fix indentation. Co-authored-by: Tomasz Drwięga <[email protected]>
-
Hernando Castano authored
* Update `sp-io` dependency * Rename Trait to Config * RustFmt * Bump `sp-io` again * Use new frame_system weight types in Rialto and Millau runtimes * Update test Runtimes to use new weight types * Bump `sp-io` again * Update to not-the latest first. * Update benchmarks. * Another Trai. * Move new weight types into runtime primitive crates This allows us to check limits for extrinsics from other parts of the codebase without pulling in the entire chain runtime. * Remove leftover comments * Move new functions to a better location * Small formatting fixes * Add actual documentation to new weight config types * Decrease maximum block weight of Millau chain * Decreease maximum block length of Millau chain Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Dec 15, 2020
-
-
Svyatoslav Nikolsky authored
* limit messages size in delivery transaction * docs
-
- Dec 09, 2020
-
-
Hernando Castano authored
* Attempt at adding Cross-Chain Transfer Generator * Add Transfer subcommand for sending messages to Rialto * Add temp helper script for sending messages * Remove Message and Lane Ids from Dispatch Event * Increase transfer amount used by script * Endow derived Dave account on Rialto with funds * Update Message generator to send more types of messages This commit first of all updates the script to use the new CLI commands for sending messages. Second, it adds messages which are sent from both Target and Source origins. * Generate messages from Root origin * Remove dbg! logs from relayer * Log AccountId as well as HexId * Remove Balances logs * Add InstanceId and MessageId back to Dispatch Event * Add InstanceId and MessageId types for Apps * Add missing comment * Document derived accounts as tests * Move shared commands to variables * Add example usage for send_message script * Add docs to message variants * Fix Clippy complaint
-
- Dec 08, 2020
-
-
Svyatoslav Nikolsky authored
* limit maximal number of unconfirmed messages at inbound lane * unrewarded_relayer_entries API * change relay to support max unrewarded relayer entries * Update modules/message-lane/src/inbound_lane.rs Co-authored-by: Tomasz Drwięga <[email protected]> * Update relays/messages-relay/src/message_lane_loop.rs Co-authored-by: Hernando Castano <[email protected]> * removed pub Co-authored-by: Tomasz Drwięga <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Dec 04, 2020
-
-
Svyatoslav Nikolsky authored
* kusama primitives + client * polkadot primitives + client * lost Chain definitions * fix compilation and fmt * Update primitives/runtime/src/lib.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Dec 03, 2020
-
-
Svyatoslav Nikolsky authored
* limit max number of messages in delivery tx * support max-messages-in-delivery-tx in relayer * clippy * clippy * Update modules/message-lane/src/lib.rs Co-authored-by: Tomasz Drwięga <[email protected]> Co-authored-by: Tomasz Drwięga <[email protected]>
-
- Nov 30, 2020
-
-
Hernando Castano authored
* Update some docs * Add derived account origin * Add tests for derived origin * Do a little bit of cleanup * Change Origin type to use AccountIds instead of Public keys * Update (most) tests to use new Origin types * Remove redundant test * Update `runtime-common` tests to use new Origin types * Remove unused import * Fix documentation around origin verification * Update config types to use AccountIds in runtime * Update Origin type used in message relay * Use correct type when verifying message origin * Make CallOrigin docs more consistent * Use AccountIds instead of Public keys in Runtime types * Introduce trait for converting AccountIds * Bring back standalone function for deriving account IDs * Remove AccountIdConverter configuration trait * Remove old bridge_account_id derivation function * Handle target ID decoding errors more gracefully * Update message-lane to use new AccountId derivation * Update merged code to use new Origin types * Use explicit conversion between H256 and AccountIds * Make relayer fund account a config option in `message-lane` pallet * Add note about deriving the same account on different chains * Fix test weight * Use AccountId instead of Public key when signing Calls * Semi-hardcode relayer fund address into Message Lane pallet
-
- Nov 27, 2020
-
-
Svyatoslav Nikolsky authored
* fixed missing else * really wake up when retry timeout is completed * do not query weights if target nonce is unknown * fix compilation
-
- Nov 25, 2020
-
-
Svyatoslav Nikolsky authored
* generic SyncHeader type * add panic condition to method description * extract -> into_inner * checked_sub + expect
-
- Nov 24, 2020
-
-
Svyatoslav Nikolsky authored
-
Svyatoslav Nikolsky authored
* relay Rialto messages to Millau * impl SubmitRialtoToMillauMessage * fmt
-
- Nov 23, 2020
-
-
Svyatoslav Nikolsky authored
* replace generic message lane APIs with chain-specific * moved SubstrateHeadersSyncPipeline to headers_pipeline.rs * substrate-specific message lane trait * Update relays/substrate/src/messages_lane.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
Svyatoslav Nikolsky authored
* use best block state to craft message relay transactions * removed obsolete TODO * Update relays/messages-relay/src/message_race_loop.rs Co-authored-by: Hernando Castano <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
- Nov 19, 2020
-
-
Hernando Castano authored
* Allow bridge pallet to return no finalized headers * Update Runtime APIs to optionally return best finalized header * Update relay to handle optional best finalized headers * Fix Clippy lints * Return a dummy header instead of an Option * Remove Option from runtime Apis * Remove support for handling optional finalized headers in relay
-