Keith Yeung
18af89c601
Move XCM configurations out into its own module ( #981 )
...
* Move XCM configurations out into its own module
* Revert removal of the AccountNonceApi
2022-02-11 15:59:48 -08:00
Squirrel
b8eef1486c
bump tx version ( #966 ) ( #975 )
2022-02-10 16:19:16 +00:00
Squirrel
7a789ac2bc
collective flip migration removed, uniques added ( #965 ) ( #974 )
...
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-02-10 16:17:57 +00:00
Squirrel
cc7116dde6
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
19f0be8e08
Set statemin runtime versions ( #971 )
2022-02-10 16:15:49 +00:00
Keith Yeung
77491879cd
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
88928d09a4
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
2327eae5c9
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
9c977d66a3
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
ec751f8fca
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
Squirrel
6341fafe9d
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
9c4aa3b21f
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
Ignacio Palacios
60c3ccfd62
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
2d9123d456
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
joe petrowski
9452a64099
Remove Sudo from Westmint ( #897 )
...
* remove sudo from westmint
2022-01-13 11:32:19 +00:00
Bastian Köcher
2f9e97ce02
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
b9ba74892a
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
1856c5df34
Update serde to 1.0.132 ( #871 )
2021-12-21 09:15:50 +01:00
Keith Yeung
e27fd228fd
Update XCM MultiLocation prefixes for assets ( #831 )
2021-12-13 23:52:38 +00:00
Keith Yeung
1a71d006a7
Update serde to 1.0.131 ( #853 )
2021-12-11 14:10:51 +01:00
Gavin Wood
a4b3b378eb
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
1bfbc7fe0c
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
b5a7ab4d12
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
e70f7fd016
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
zjb0807
94988af02f
use double quotes instead of single quotes ( #815 )
2021-12-01 03:00:11 +00:00
Guillaume Thiolliere
6bcafd40ce
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
d246858d17
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
4a559a5872
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
ec401ce1d0
move to rust 2021 ( #759 )
...
* move to rust 2021
* fix formatting, more moves
2021-11-16 15:12:06 +01:00
Alexander Popiak
dea011282c
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
e65ee55d80
bump spec_version ( #733 )
2021-11-09 18:11:51 +01:00
Alexander Popiak
6146bd182c
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
Alexander Popiak
8301e17f88
adjust XCM unit weights to 1B ( #735 )
2021-11-09 17:14:16 +01:00
Ignacio Palacios
66310bd6ce
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
e304662f04
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
d21c7fd2b3
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
41c597faa7
Allow Queries and Subscriptions ( #700 )
...
* Allow Queries and Subscriptions
* Fixes
* Formatting
2021-10-27 18:14:27 +02:00
Gavin Wood
561e8eb349
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
Alexander Popiak
3520acc3f2
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
eff56f60f3
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
f499617c01
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
caa8b8172b
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
joe petrowski
9bfec25073
make asset creation on westmint low cost ( #642 )
2021-10-04 09:52:59 +02:00
Keith Yeung
1aab3349cc
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
85bde07641
bump deps ( #618 )
...
* bump deps
* update balances weights
* fix warnings
2021-09-17 13:18:30 -05:00
Chevdor
1dd000a011
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
035a576008
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
a0532634e1
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Robert Habermeier
6c8f1f7b3c
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
276e5bdd38
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