Skip to content
  1. Jan 19, 2022
    • Bastian Köcher's avatar
      xcmp-queue: Fix handling of encoded blobs (#889) · d988e383
      Bastian Köcher authored
      * xcmp-queue: Fix handling of encoded blobs
      
      With #701 we tried to fix some infinite loop related to encoded blobs, however that lead actually to
      not being able to process encoded blobs at all. The reason for this is that `decode_all` doesn't
      consume the given input. The point of this function is that it returns an error if the data couldn't
      be decoded or there is still data left. However, this means that the check
      `remaining_fragments.len() < last_remaining_fragments.len()` would always fail.
      
      We remove the while loop, because we decode the entire fragment anyway or it fails. Aka, we don't
      need to loop here. Next we remove the broken check and we directly reset the
      `remaining_fragments` (because `decode_all` doesn't consume anything).
      
      * Restore correct behavior
      
      We need to use a while loop, because there can be multiple `Vec<u8>`s. We also need to use `decode`,
      because `decode_all` would otherwise return an error if the input is not empty afterwards.
      
      * Remove unused import
      d988e383
  2. Jan 14, 2022
  3. Jan 12, 2022
  4. Jan 03, 2022
  5. Dec 31, 2021
  6. Dec 28, 2021
  7. Dec 24, 2021
    • Bastian Köcher's avatar
      Mock XCM (#876) · 229000c5
      Bastian Köcher authored
      
      
      * sketch downward messages
      
      * bring in attempt to mock mqc-head from moonbeam
      
      * just patch individual crates
      
      * fing comma
      
      * add some logs
      
      * Holy shit, we actually imported a block!
      
      * Actually mock the message queue chain
      
      * use relay parent number for `sent_at`
      
      * finish moving MQC to primitives
      
      * more complete mock and better config type
      
      * change name
      
      * fix export
      
      * better map types
      
      * fix dependencies after rebase
      
      * try-rejigging branches because this is an override
      
      * try to re-jig for hrmp mcqs
      
      * fix branches
      
      * actually fix branches better
      
      * even better
      
      * Removestray log lines
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Nicer handling of default `ParachainSystem` name
      
      * better docs
      
      * Default MockXcm for people who only who don't care to mock xcm.
      
      * cargo fmt
      
      * trailing commas
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * use the variable for hrmp to
      
      * fix deref
      
      * deduplicate MessageQueueChain
      
      * better docs for MessageQueueChain
      
      * Use `Vec<u8>` instead of `&'static [u8]`
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * cargo fmt
      
      * associated changes for using Vec<u8>
      
      * Unused import
      
      * Fix compilation
      
      Co-authored-by: default avatarJoshy Orndorff <[email protected]>
      Co-authored-by: default avatarJoshy Orndorff <[email protected]>
      229000c5
    • cheme's avatar
      Companion for substrate#9732 (#678) · 0256fe73
      cheme authored
      * state-update4 branch
      
      * new ref
      
      * Update to latest.
      
      * update deps
      
      * switch to host state version
      
      * update
      
      * fmt
      
      * up
      
      * remove trie patch
      
      * remove patch
      
      * fmt
      
      * update
      
      * set state_versions in runtimes
      
      * state version from storage
      
      * state version from storage
      
      * seedling compat
      
      * restore lock
      
      * update lockfile for substrate
      
      * update lockfile for polkadot
      
      Co-authored-by: parity-processbot <>
      0256fe73
  8. Dec 21, 2021
  9. Dec 14, 2021
  10. Dec 11, 2021
  11. Dec 10, 2021
  12. Dec 09, 2021
  13. Dec 03, 2021
    • Bastian Köcher's avatar
      Adds support for returning a custom header from `validate_block` (#825) · 32a86d8e
      Bastian Köcher authored
      * Adds support for returning a custom header from `validate_block`
      
      This adds support for returning a custom header from `validate_block`. Before this, we always
      returned the header of the block that was validated (and still do it by default). However, after
      this pr it is possible to set a custom header or better custom head data that will be returned
      instead from `validate_block`. This can be for example when a chain wants to fork.
      
      * FMT
      32a86d8e
  14. Dec 02, 2021
  15. Dec 01, 2021
  16. Nov 30, 2021
  17. Nov 24, 2021
  18. Nov 19, 2021
  19. Nov 16, 2021
  20. Nov 12, 2021
  21. Nov 11, 2021
    • Dan Shields's avatar
      Tweaks from template downstream review #80 (#705) · 3284976a
      Dan Shields authored
      * tweaks from template downstream review #80
      
      * more tweaks
      
      * Update parachain-template/node/src/command.rs
      
      * tweaks to template and other chainspecs
      
      * fmt
      
      * update more tweaks from downstream
      
      * fix build
      3284976a
  22. Nov 08, 2021
    • Alexander Popiak's avatar
      Upstream Statemine Release v5 Changes to Master (#720) · c63c5229
      Alexander Popiak authored
      
      
      * Update references
      
      * update deps
      
      * set substrate deps for pallet-asset-tx-payment
      
      * add DisabledValidatorsThreshold to parachain template
      
      * add DisabledValidatorsThreshold to statemint runtimes
      
      * adjust imports
      
      * update Cargo-lock
      
      * add DisabledValidatorsThreshold to mock config
      
      * cargo +nightly fmt
      
      * adjust on_disabled type
      
      * remove on_chain_votes function in ParachainHost impl
      
      * remove ScrapedOnChainVotes
      
      * bump polkadot-collator version
      
      Co-authored-by: default avatarChevdor <[email protected]>
      
      * update Cargo.lock
      
      * set spec_versions to 500
      
      * Statemine cannot execute.
      
      * disallow XCM execute on statemint
      
      * cargo fmt
      
      * remove unnecessary dep on node-primitives
      
      * select parachains-common/std feature when building rococo-runtime with std
      
      * adjust Statemint to the three digit spec_version format
      
      * Add script to generate simple changelogs (#668)
      
      * Update weights from v4 for v5 comparison (#673)
      
      * updates weights
      
      * pallet_unique benchmarks added + weights upstream from v4
      
      * Fix benchmarks after Parachain Template (#677)
      
      * updates weights
      
      * pallet_unique benchmarks added + weights upstream from v4
      
      * benchmarks fix for parachain template
      
      * Weights updates for Statemine v5 (#682)
      
      * updates weights
      
      * pallet_unique benchmarks added + weights upstream from v4
      
      * weights updates for statemine v5
      
      * mention Storage in construct_runtime macro for pallet-xcm (#680)
      
      * Use pallet-xcm for version wrapping (#689)
      
      * use PolkadotXcm for XcmRouter WrapVersion
      
      * use PolkadotXcm for version wrapping
      
      Co-authored-by: default avatarBryan Chen <[email protected]>
      
      * patch weight for batch_all from rerun
      
      * Runtime version bump to v503 (#694)
      
      * adjust genesis value generation scripts to output entries array + add script to derive encoded call
      
      * add script to generate shell spec from runtime wasm
      
      * Ensure a bad datastream cannot cause problems (#701)
      
      * Ensure a bad datastream cannot cause problems
      
      * Formatting
      
      * Formatting
      
      * update Polkadot (to 0.9.11 169bab55d)
      
      * bump spec versions
      
      * Allow Queries and Subscriptions
      
      Fixes
      
      Formatting
      
      * fix build
      
      * make fmt happy
      
      * statemint imports
      
      * slight naming changes in script
      
      * add shell genesis data + wasm + chainspec
      
      * adjust generated shell spec with production config values
      
      * update Substrate and Polkadot to master
      
      * fix deps
      
      * swap out bootnodes for statemint shell
      
      * add a script for verifying the shell chain spec
      
      * add sha checksum for head data
      
      * remove verification script
      
      * remove hex wasm file
      
      * update Substrate and Polkadot again and fix compilation
      
      * update and fix lock file
      
      * formatting
      
      * remove redundant dispatch_as weight
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarChevdor <[email protected]>
      Co-authored-by: default avatarGav Wood <[email protected]>
      Co-authored-by: default avatarIgnacio Palacios <[email protected]>
      Co-authored-by: default avatarBryan Chen <[email protected]>
      Co-authored-by: default avatarjoepetrowski <[email protected]>
      c63c5229
  23. Oct 31, 2021
  24. Oct 29, 2021
  25. Oct 27, 2021
  26. Oct 19, 2021
  27. Oct 15, 2021
  28. Oct 14, 2021
  29. Oct 12, 2021
  30. Oct 11, 2021
    • Alexander Popiak's avatar
      Asset Transaction Payment (#488) · 3b1446d7
      Alexander Popiak authored
      
      
      * use new pallet name based genesis config names
      
      * use custom substrate and update polkadot
      
      * add initial asset-tx-payment pallet
      
      * update cargo.toml
      
      * add (failing) tests
      
      * dispatch Calls instead of using Pallet functions
      
      * fix fee-refund split
      
      * add test for transaction payment with tip
      
      * update cargo.lock
      
      * update cargo.lock
      
      * remove mint workaround and use Mutable trait
      
      * extract fee charging logic into OnChargeAssetTransaction trait
      
      * use asset-tx-payment in statemint runtime
      
      * make extrinsics public
      
      * make extrinsics public
      
      * use ChargeAssetIdOf type alias
      
      * update deps
      
      * move back to AssetIdOf
      
      * remove extra rpc_http_threads
      
      * use different substrate branch
      
      * Update pallets/asset-tx-payment/src/payment.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * Update pallets/asset-tx-payment/src/payment.rs
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * remove overrides
      
      * override substrate deps (again)
      
      * increment spec_version and transaction_version (because we change transaction signing)
      
      * remove direct dependency on pallet-balances from asset-tx-payment
      
      * remove Assets pallet visibility workaround
      
      * add docs and comments
      
      * remove unused imports
      
      * more docs
      
      * add more debug asserts to document assumptions
      
      * add test for tx payment from account with only assets
      
      * add test for missing asset case
      
      * extend test to cover non-sufficient assets
      
      * add a test for Pays::No (refunded transaction)
      
      * add type alias comments
      
      * add more doc comments
      
      * add asset-tx-payment to statemine and westmint
      
      * improve formatting
      
      * update license headers
      
      * add default implementation of HandleCredit for ()
      
      * update doc comments and format imports
      
      * adjust Cargo.toml
      
      * update cargo.lock
      
      * cargo fmt
      
      * cargo fmt
      
      * cargo fmt
      
      * cargo +nightly fmt
      
      * add type alias for OnChargeTransaction
      
      * cargo +nightly fmt
      
      * convert ChargeAssetTxPayment from tuple struct to regular struct
      
      * add more comments
      
      * formatting
      
      * adjust imports and comment
      
      * cargo +nightly fmt
      
      * reformat comment
      
      * use ChargeTransactionPayment's own get_priority + update Substrate
      
      * update Substrate and Polkadot
      
      * cargo fmt
      
      * cargo fmt
      
      * add OperationalFeeMultiplier to asset tx payment tests
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * add doc links
      
      * charge a minimum converted asset fee of 1 if the input fee is greater zero
      
      * cargo +nightly fmt
      
      * bump spec and transaction version
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      3b1446d7
    • Alexander Popiak's avatar
      Upstream Statemine v4 Changes (#649) · 2647053f
      Alexander Popiak authored
      
      
      * bump runtime spec version
      
      * remove applied runtime migrations
      
      * bump transaction_version
      
      necessary because of extrinsic API changes to pallet-xcm
      https://github.com/paritytech/polkadot/pull/3693
      
      * Fix Benchmarks for Statemine-V4 release (#639)
      
      * register validators
      
      * register_as_candidate & leave_intent fixed
      
      * new_session benchmark fixed
      
      * intent_leave_modified
      
      * clean up
      
      * clean up
      
      * benchmark script updated
      
      * update cargo.lock
      
      * done
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      
      * Version bump (#648)
      
      * Version bump
      
      fix #646
      
      * Revert "Version bump"
      
      This reverts commit 07517e0e76a37a1dd67176fec0524d0211666635.
      
      * Bump polkadot-collator version
      
      * Update polkadot-parachains/Cargo.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update deps
      
      * Bump version to 4.0.0
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * cargo toml fix
      
      * update deps and remove DisabledValidatorThreshold
      
      * cargo +nightly fmt
      
      * fix compile error
      
      * fix client tests after Polkadot update
      
      Co-authored-by: default avatarIgnacio Palacios <[email protected]>
      Co-authored-by: default avatarChevdor <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2647053f
  31. Oct 01, 2021
  32. Sep 19, 2021