Squirrel
ce2fca24f0
new weights for release-parachains-v7.0.0 ( #951 ) ( #973 )
...
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-02-10 16:16:31 +00:00
Squirrel
acf37d29cc
Set statemin runtime versions ( #971 )
2022-02-10 16:15:49 +00:00
Keith Yeung
d793334bbd
Add the ability to suspend or resume XCM execution on the XCMP queue ( #896 )
...
* Add the ability to suspend or resume XCM execution on the XCMP queue
* Rename QueueActive to QueueSuspended
* Add the ability to suspend the DMP queue
* Rename XCMP to DMP in comments where appropriate
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Add a bypass for XCMP queue suspension
* Revert "Add the ability to suspend the DMP queue"
This reverts commit 363ca09b41e40fce3f2740e7ab78f5c54781ca5c.
* Change controller origin to either root or council-issued origin
* Rename to ControllerOriginConverter
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-31 12:12:09 +00:00
Squirrel
c69b749290
Add safe_xcm_version to Genesis Specs ( #743 ) ( #904 )
...
* Add safe_xcm_version to Genesis Specs (#743 )
* add safe_xcm_version to genesis specs
* cargo +nightly fmt
* Point to xcm latest version
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-26 11:11:03 +00:00
Oliver Tale-Yazdi
ab76ff5313
Use define_benchmarks! ( #926 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-01-21 17:13:23 +00:00
Keith Yeung
8c28d4c669
Companion for paritytech/polkadot#4712 ( #901 )
...
* Rename ParentIsDefault to ParentIsAllZeroes
* Fixes
* Create ParentAccounts for respective networks
* Fixes
* Use b"Parent" as the basis for generating parent AccountId
* Fixes
* Use preset parent account ID
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-01-21 11:40:27 +00:00
Squirrel
c262414e4a
merge of: Add system weights to Statemint ( #762 ) ( #918 )
...
* Add system weights to Statemint (#762 )
* waiting for weights from bm
* frame_system weights added
* cargo toml fix + fmt
* removed non-existent set_changes_trie_config
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-01-21 08:11:01 +00:00
Kian Paimani
76af7ee82c
Add the uniques migration for statemine ( #911 )
...
* Add the uniques migration for statemine
* return weight from on_runtime_upgrade (#914 )
need to return the weight from on_runtimie_upgrade().
* cargo update -p sp-io
* cargo update -p polkadot-primitives
Co-authored-by: hamidra <hamid.alipour@gmail.com >
2022-01-20 10:14:31 +01:00
Squirrel
eea1a655de
weights update statemine v6 ( #754 ) ( #915 )
...
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-01-19 15:12:24 +00:00
Squirrel
d03ef1d5ab
Configure Statemint and Statemine to Allow Teleports ( #912 )
...
* configure pallet-xcm to allow teleports but forbid generic sends
* bump spec_version
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-19 08:57:13 +00:00
Squirrel
fbae81ddb9
bump transaction_version due to parachain_system change ( #748 ) ( #903 )
...
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-18 20:01:34 +01:00
Ignacio Palacios
6f763b5e71
Add set custom header to Seedling Runtime ( #846 )
...
* before adding seedling client side
* seedling runtime compiles
* create seedling spec script added
* seedling node & BaseCallFilter fixes
* update AllPalets
* formatting
* CallFilter + SignedExtra + AccountData fix
* XCM removed
* cleanup
* solo-to-para pallet added & before testing
* fix runtime upgrade method
* soloToPara pallet + set header
* clean up
* clean up 2
* signed extension check sudo added
* fmt + cleanup
* Refac code and fixes
* fmt
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* small fixes
* OnValidationData used
* small changes
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* OnValidationData replaced by OnSystemEvent
* fmt + cargo fix
* disable-default-bootnodes for seedling script
Co-authored-by: Ricardo Rius <ricardo@parity.io >
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-01-14 14:21:10 +01:00
Doordashcon
60f5e0cf2d
Use Polkadot Constants instead of Hardcoding ( #868 )
...
* added Polkadot constants
* remove hardcoded constants
* cargo +nightly fmt
* add const existential deposit
* update
* cargo +nightly fmt
* not pulling
* readd constants.rs modules
* update
* Cargo.lock
* update
* add balance constants
* Update polkadot-parachains/statemine/src/constants.rs
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2022-01-13 11:54:59 +00:00
Bastian Köcher
7fb70d7530
Fix solo to para custom header return ( #882 )
...
* Adds an integration test for testing the migration
* Fix the custom validation header use case
2022-01-03 20:14:14 +01:00
cheme
0256fe73c0
Companion for substrate#9732 ( #678 )
...
* 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 <>
2021-12-24 11:28:43 +00:00
Keith Yeung
d78ea860ec
Update serde to 1.0.132 ( #871 )
2021-12-21 09:15:50 +01:00
Keith Yeung
8a2a86655f
Update XCM MultiLocation prefixes for assets ( #831 )
2021-12-13 23:52:38 +00:00
Keith Yeung
308cb3e76b
Update serde to 1.0.131 ( #853 )
2021-12-11 14:10:51 +01:00
Gavin Wood
90a7d1146a
Companion for #10382 (Insufficient asset quotes and deposits) ( #804 )
...
* MaxConsumers
* Fixes
* Fixes
* Fixes
* Fixes
* Bump
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-09 17:24:32 +01:00
Keith Yeung
9e9ff9e5d0
Add CheckNonZeroSender to runtime configs ( #847 )
...
* Add CheckNonZeroSender to runtime configs
* cargo update -p polkadot-primitives
* Fixes
* Fixes
2021-12-09 14:53:51 +01:00
Keith Yeung
b5135277f4
Support overweight messages in XCMP queue ( #799 )
...
* Support overweight messages in XCMP queue
* Add storage migration logic to XCMP queue pallet
* Check whether required weight is larger than max individual weight first
* cargo fmt
* Add some unit tests
* Remove review question comment
2021-12-08 18:07:08 -08:00
Kian Paimani
70ea98995a
Integrate try-runtime into cumulus ( #793 )
...
* almost integrate
* revert branch changes
* remove extra deps
* some review comments'
* Fix a bunch of stuff
* Update parachain-template/node/Cargo.toml
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix
* Fix
* fix benchmark
* fmt
* Remove wrong bench test
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 14:00:54 +01:00
Shawn Tabrizi
a3798775d8
Companion for #10379 (EnsureOneOf) ( #810 )
...
* new ensure one of
* Update Cargo.lock
* Update SUbstrate & Polkadot
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-12-01 23:06:50 +00:00
zjb0807
b51a6fa4cc
use double quotes instead of single quotes ( #815 )
2021-12-01 03:00:11 +00:00
Guillaume Thiolliere
9a76627938
companion for pallet order fix ( #711 )
...
* companion
* Run cargo update
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-12-01 01:51:58 +00:00
zjb0807
71ac3005ae
Companion for #10324 - update frame-benchmarking/runtime-benchmarks ( #802 )
...
* update frame-benchmarking/runtime-benchmarks
* cargo update
* add more feature flags
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-30 21:47:09 +01:00
Georges
69f030f81c
Moving pallet-asset-tx-payment from cumulus to substrate ( #712 )
...
* Moving `pallet-asset-tx-payment` to substrate
* Pointing `substrate` to my branch to fix the CI
* Fixing cargo.lock
Memmlock2 was in double
* Duplicate Prost-build
* cargo update
* Fixing cargo.lock post merge
* Changes to `Cargo.toml` after substrate merge
2021-11-19 14:06:38 +01:00
Dan Shields
70923da617
move to rust 2021 ( #759 )
...
* move to rust 2021
* fix formatting, more moves
2021-11-16 15:12:06 +01:00
Alexander Popiak
ece4188f2d
Align the Statemint Runtimes ( #736 )
...
* align the different Statemint runtimes so they are more similar in structure
* align Unpaid Execution filter
* revert changes to Unpaid execution filter for Westmint
2021-11-10 12:00:17 +01:00
Alexander Popiak
eaa5a0e663
bump spec_version ( #733 )
2021-11-09 18:11:51 +01:00
Alexander Popiak
1dd2605b95
Align Call Indices between Westmint and Statemint ( #731 )
...
* align construct_runtime calls between statemint runtimes
* bump westmint transaction_version
2021-11-09 17:39:50 +01:00
Ignacio Palacios
c16db9c66f
Remove randomness collective flip new ( #726 )
...
* randomess collective flip removed
* cargo.lock + fix
* remove migration for statemint
* fmt fix
* update cargo.lock
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-11-09 17:01:44 +01:00
Alexander Popiak
c63c5229ba
Upstream Statemine Release v5 Changes to Master ( #720 )
...
* 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: Chevdor <chevdor@users.noreply.github.com >
* 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: Bryan Chen <xlchen1291@gmail.com >
* 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: Bastian Köcher <info@kchr.de >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Gav Wood <gavin@parity.io >
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
Co-authored-by: joepetrowski <joe@parity.io >
2021-11-08 15:52:47 +01:00
Shawn Tabrizi
eec45a7232
Companion for dispatch_as ( #715 )
...
* dispatch as companion
* oops, forgot to save file
* Update Cargo.lock
2021-11-04 16:44:18 +00:00
Gavin Wood
aafc43352e
Allow Queries and Subscriptions ( #700 )
...
* Allow Queries and Subscriptions
* Fixes
* Formatting
2021-10-27 18:14:27 +02:00
Alexander Popiak
e55669cc3e
fix runtime import formatting ( #679 )
2021-10-19 18:13:27 +02:00
Gavin Wood
e70d5481b9
Make sure comments and code for local origins match ( #671 )
...
* Make sure comments and code for local origins match
* Fixes
2021-10-17 22:37:01 +02:00
Gavin Wood
634c39308e
Statemine cannot execute. ( #662 )
...
* Statemine cannot execute.
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-10-14 11:15:57 +00:00
Alexander Popiak
3b1446d791
Asset Transaction Payment ( #488 )
...
* 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: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update pallets/asset-tx-payment/src/payment.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* 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: Bastian Köcher <bkchr@users.noreply.github.com >
* 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: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-11 11:57:37 +02:00
Alexander Popiak
2647053fd3
Upstream Statemine v4 Changes ( #649 )
...
* 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: Alexander Popiak <alexander.popiak@parity.io >
* 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: Bastian Köcher <bkchr@users.noreply.github.com >
* Update deps
* Bump version to 4.0.0
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* cargo toml fix
* update deps and remove DisabledValidatorThreshold
* cargo +nightly fmt
* fix compile error
* fix client tests after Polkadot update
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-11 10:27:49 +02:00
Alexander Popiak
982dbff1b9
update Substrate and Polkadot (to include new transaction priority) ( #645 )
...
* update Substrate and Polkadot
* Update parachain-template/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-05 11:48:33 +00:00
Alexander Popiak
ca77ce153f
Statemint Reserve Asset Transfer ( #552 )
...
* add AssetId type alias in statemint-common
* add FungiblesAdapter to allow for asset transactions via XCM
* use custom Polkadot
* fix FungiblesAdapter usage and add CheckingAccount
* update deps
* remove polkadot overrides
* update deps
* pull NonZeroIssuance struct into common + add FungiblesTransactor to Statemine and Westmint
* remove unnecessary tuple wrapping + adjust asset transactor comments
* accept statemint as reserve in rococo test parachain
* adjust parachain config (add Statemint as reserve)
* add test and docs for AssetsFrom
* cargo fmt
Co-authored-by: Ricardo Rius <ricardo@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-05 11:35:03 +02:00
Keith Yeung
eeca16388c
Use DecodeLimit for decoding XCM messages ( #605 )
...
* Use DecodeLimit for decoding XCM messages
* Use decode_all_with_depth_limit in appropriate places
* Use decode_all while decoding byte vector
* cargo fmt
2021-09-19 15:29:34 +03:00
Robert Habermeier
7739dfe164
bump deps ( #618 )
...
* bump deps
* update balances weights
* fix warnings
2021-09-17 13:18:30 -05:00
Chevdor
6b20f7a2c5
ci: add quick-check with rustfmt ( #615 )
...
* ci: add quick-check with clippy and rustfmt
* chore: rustfmt round
* chore: set the same rustfmt config than substrate
* chore: fix formatting
* cI: remove clippy
* ci: switch to nightly for the checks
* ci: fix toolchains and naming
* ci: Limit the check to formatting
* chore: fix formatting
* Update .rustfmt.toml
* Update .rustfmt.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 16:57:52 +02:00
Andrew Jones
e3eb3a0a12
Metadata v14 (companion to #3336 ) ( #564 )
...
* Remove event pallet::metadata attributes
* Add scale-info deps, TypeInfo derives, update call variants
* Update metadata runtime APIs
* Add missing scale_info dependency, update rococo runtime API
* Add missing scale_info dependency
* Remove pushed diener patches
* Cargo.lock
* Add missing scale-info dependencies
* Fixes
* Statemint runtime fixes
* Call struct variant empty matches
* Add missing scale-info dependency
* Fixes
* scale-info 1.0
* cargo update -p xcm
* update lock
* Update Cargo.lock
* update to latest polkadot
* remove rpc_http_threads
https://github.com/paritytech/substrate/pull/9737
* replace task executor with tokio handler
https://github.com/paritytech/substrate/pull/9737
* fix test compilation?
* Update Cargo.lock
* cargo update
* remove unused
* Update substrate and polkadot
* Update test/client/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 12:11:05 +02:00
Squirrel
127b2608ec
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Robert Habermeier
cdbd4c12af
bump deps, fix aura-ext pallet, and fill in stubs for XCM ( #600 )
...
* bump deps, fix aura-ext pallet, and fill in stubs for XCM
* response handler, asset trap, asset claims
* subscription_service
* update xcmp-queue mock
* fix tests
* Update polkadot deps
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-04 14:57:48 -05:00
Gavin Wood
9cc277834c
Companion for #3629 (XCM v2) ( #571 )
...
* Update .gitignore and bring into line with XCM v2's SendError
* type
* Some work
* Weighed responses
* extra fields to xcm pallet
* Fixes
* Bump
2021-08-28 15:51:49 +02:00
Ricardo Rius
cfa88fe9f2
Fix Statemint benchmarks ( #589 )
2021-08-26 01:02:02 +00:00