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
Andronik Ordian
e0a0b5612e
docs: make collators actually work ( #638 )
...
* docs: make collators actually work
* bump polkadot
* include recent fix for overseer
2021-10-02 21:00:18 +02:00
Bastian Köcher
a8d84dba8e
Same procedure as not every day ( #636 )
...
* Same procedure as not every day
* Remove warning
* Update
2021-10-01 13:23:56 +02:00
Bastian Köcher
d902aa90ef
Fix purge-chain test ( #624 )
...
* Fix purge-chain test
* Update Substrate & Polkadot
2021-09-26 15:25:35 +02:00
Hernando Castano
2101d6ac64
Add Parachain Template ( #620 )
...
* Add Canvas node as Parachain template
* Remove `pallet-contracts`
* Point to local Cumulus dependency
* Use double quotes instead of single quotes
* Get rid of GPL licensing
* Remove references to Canvas
* Get rid of warnings
* Remove GLP-3 License copy-pasta file
* Copy in README from `substrate-parachain-template`
* Add mention of `polkadot-launch` tool
* Add missing screenshot asset
* Remove Canvas hidden files and scripts
* Rename `template` to `parachain-template`
* Remove a few more Canvas references
* Add `pallet-template`
* Get `pallet-template` compiling
* Remove TODOs about Weights
* Sort some dependencies
* Remove contracts specific const
* Change binary name back to `parachain-collator`
* RustFmt
* Fix mock tests
* Purge sneaky whitespace
* Add template pallet index to runtime
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
* Add force authoring to collator `polkadot-launch` config
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
* Refer README readers to `substrate-parachain-template`
* Remove license header in `build.rs`
Co-authored-by: Michael Müller <michi@parity.io >
* Fix punctuation nitpick
Co-authored-by: Michael Müller <michi@parity.io >
* Remove unused `lib.rs` file
* Add note about Rococo network
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Michael Müller <michi@parity.io >
2021-09-23 20:47:47 +03: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
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
Bastian Köcher
7364a773ef
Upgrade Substrate & Polkadot ( #612 )
2021-09-16 06:57:29 +02:00
Squirrel
127b2608ec
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Hernando Castano
eb7308b67b
Bump Substrate, Polkadot, and BEEFY ( #602 )
...
* Bump Substrate, Polkadot, and BEEFY
* Add `Sync` bound to Aura trait bounds
2021-09-10 23:24:16 +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
e3e6855490
Bump Tokio to 1.10 ( #592 )
...
* Bump Tokio to 1.10
* Missed one
2021-08-28 14:33:56 +00: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
Bastian Köcher
2a3fa819eb
Upgrade Substrate & Polkadot ( #583 )
2021-08-22 21:22:36 +02:00
hamidra
0436b76f93
Add Transaction Fee RPC to Statemint/Statemine ( #559 )
...
* add payment rpc to parachains
* connect payment rpc to parachains clients
* fix the rumtime_api bound/ add separate start node implementation for shell
* use cumulus/parachain specific primitives
* Update polkadot-parachains/src/rpc.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* rename txpool dependency
* fix the package name
* move parachain primitives to separate module
* Refactor Shared Primitves for Payment Info (#577 )
* rename to parachains-common
* refactor shared opaque
* remove primitives
* Update service.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-08-17 09:55:56 -07:00
Keith Yeung
da5634a712
Use new MultiLocation syntax everywhere ( #570 )
...
* Use new MultiLocation syntax everywhere
* Make tests compile
2021-08-12 11:26:49 +02:00
Gavin Wood
3f020f4540
Companion to #9514 (Remove Filter and use Contains instead) ( #566 )
...
* Remove Filter and use Contains instead
* Fixes
* Remove patch
* Bump Polkadot
* bump
2021-08-09 18:07:37 +02:00
Gavin Wood
e8dfb9b571
Support XCM v1 (Companion to #2815 ) ( #561 )
...
* support for XCM v1
* Fixes
* Fix.
* Use `xcm::latest`
* Bump Polkadot
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-08-06 19:13:33 +00:00
Bastian Köcher
9a0cfd9117
Update Substrate & Polkadot ( #563 )
2021-08-05 20:53:32 +02:00
Bastian Köcher
6c0abc6f7d
Update Substrate & Polkadot ( #557 )
...
* Update Substrate & Polkadot
* Format
* Update again
2021-08-03 11:59:37 +02:00
Bastian Köcher
1b92af9042
Update Substrate & Polkadot ( #551 )
...
* Update Substrate & Polkadot
* Update client/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update client/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-27 22:42:39 +02:00
Bastian Köcher
8d21ce602c
Update Substrate & Polkadot ( #540 )
2021-07-20 16:11:56 +02:00
Shawn Tabrizi
7e5ec0c596
Add Uniques to Westmint and Statemint ( #493 )
...
* Add uniques to westmint and statemint
* update cargo
* Update Cargo.lock
* Update lib.rs
* fix merge
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* fix build
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: joepetrowski <joe@parity.io >
2021-07-15 16:51:31 +02:00
Gavin Wood
9f6d29355c
Enable permissionless asset creation ( #476 )
...
* Enable permissionless asset creation
* Fixes
* Fixes
* Update polkadot-parachains/statemine-runtime/src/lib.rs
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com >
* update Cargo.lock
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
2021-07-15 16:51:14 +02:00
Sergei Shulepov
612efa740a
Update Polkadot and Substrate ( #528 )
...
One breaking change:
- https://github.com/paritytech/substrate/pull/9209
2021-07-07 11:43:12 +00:00
Shaun Wang
0966c8a4c3
Fix xcmp message processing condition. ( #510 )
...
* Fix xcmp message processing condition.
* add a very simple test
* Update Cargo.lock
* remove comment
* remove comment
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-07-06 16:35:59 +02:00
Bastian Köcher
9b85b5117e
Bring back runtime upgrade test ( #525 )
...
This brings back the runtime upgrade test and also updates Substrate &
Polkadot.
2021-07-06 16:21:19 +02:00
Bastian Köcher
a6bd34545e
Update Substrate & Polkadot ( #523 )
2021-07-05 23:35:28 +02:00
Sergei Shulepov
59a23c8d8d
Update Substrate & Polkadot ( #519 )
...
* Update Substrate & Polkadot
* Basti improvements
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-28 20:38:28 +00:00
Chevdor
5f96d5eea8
Refactor paths and runtime names ( #507 )
...
chore: refactor for consistant naming of the crates and paths of the runtimes
* tests: ignore folder created by the tests
* chore: refactoring
* Update polkadot-parachains/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-28 14:24:03 +02:00
Joshy Orndorff
a8c3f11c44
Adds a mock provider for the parachain inherent ( #484 )
...
* Bring in code from moonbeam
* move it to mock.rs
* Actually build it 🤦
2021-06-23 10:37:50 +02:00
André Silva
8f733a6c2c
use max_block_proposal_slot_portion ( #499 )
...
* use max_block_proposal_slot_portion
* remove patch now that Substrate PR is merged
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-06-20 11:05:08 +00:00
Bastian Köcher
a81071c1cb
Update Polkadot & Substrate ( #497 )
2021-06-17 11:18:30 +02:00
Sergei Shulepov
1f3458a0e3
WIP: Update Substrate & Polkadot ( #496 )
...
* WIP: Update Substrate
* Update Substrate & Polkadot
* fixes
* more fixes
* few missing origins
* use spawn_essential_handle
* bump polkadot dep
* remove newlines
* fix test
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-17 09:37:03 +02:00
Bastian Köcher
d8e3f8a4ae
Rename pallet-session-benchmarking crate ( #495 )
...
This is required to support patching Substrate, as otherwise there are
two crates with the same name.
2021-06-16 12:53:42 +02:00
Bastian Köcher
d6f06bf5d9
Adds support for checking the timestamp inherent while validating a block ( #494 )
...
* Adds support for checking the timestamp inherent while validating a block
This adds support for checking the timestamp inherent while validating a
block. This will use the relay chain slot number * relay chain slot
duration to calculate a timestamp. This timestamp is used to check the
timestamp in the timestamp inherent.
* Update polkadot-parachains/rococo-runtime/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update polkadot-parachains/statemine-runtime/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update primitives/timestamp/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Fix warnings
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-06-16 10:53:47 +02:00
Bastian Köcher
2dc281b482
Bring support for calling check_inherents ( #490 )
...
* Start
* More work
* Add proc-macro for `validate_block`
* Make everything compile
* Add some test
2021-06-12 20:21:46 +02:00
Bastian Köcher
c5819c9e78
Use polkadot-client instead of polkadot service where possible ( #489 )
2021-06-11 12:56:14 +02:00
Guillaume Thiolliere
b36e4dbca5
update substrate/polkadot with construct_runtime changes ( #485 )
...
* update substrate/polkadot with construct_runtime changes
* fix update
* Fixes
* More fixes
* fix test, but might be wrong fix
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-10 17:50:09 +02:00
JesseAbram
37e474a947
Add session weight ( #477 )
...
* session weight
* decouple session benchmarking and collator selection
* removed mock
* licensing
* benchmarking script
* set benchmarking into runtime
* Update scripts/benchmarks.sh
* real weights
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-08 13:24:19 +02:00
cheme
e8b4b36446
Compact proof. ( #295 )
...
* compact, need to be made optional and look into/compress child trie
roots/state.
* proto with child trie support
* Missing set_offchain_storage overload.
* right name
* Ignore offchain indexing in validation function.
* patch trie-db
* decompress from iter
* use compressed proof
* remove wasm blob from proof (no inject plugged yet)
* change lock
* update trie
* change in toml
* Revert "change in toml"
This reverts commit e588583b79e1a64e2a54157b40968aa6b586fbbe.
* use patch to branches
* i
* i:wq
* switch branch
* ii
* ok, needed to patch the runtime by putting substrate patch in polkadot
project.
* test passing with this conf
* actual lazy code fetch
* patch issue
* Code reorg
* restore commented tests.
* update deps.
* remove polka patch
* fixes
* remove patch
* revert cargo.lock
* cargo update -p sp-trie polkadot-service
* fix collator test (using parent state root).
* Update pallets/parachain-system/src/validate_block/implementation.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove encode_witness test function.
* Update pallets/parachain-system/src/validate_block/implementation.rs
* Fix compilation
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-08 11:51:32 +02:00
Xiliang Chen
0a5dbafd53
update substrate & polkadot ( #472 )
...
* update substrate
* try again
2021-06-04 16:43:29 +02:00
Bastian Köcher
782c0264ac
Update Substrate & Polkadot ( #469 )
2021-06-03 19:50:18 +02:00
Gavin Wood
fccdc2da9a
Add NFTs to Statemine ( #456 )
...
* Add NFTs to Statemine
* Update NFT deposits
* add_benchmark
* add feature flag
* std feature too
* add weights
* add `transfer_ownership` to `NonTransfer` blacklist
* fix merge
* add `approve_transfer` to `NonTransfer` blacklist
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 09:00:18 +02:00
Gavin Wood
eaa9f64671
Add Statemint ( #452 )
...
* Add Statemint
* Versioning.
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Benchmarking
* kick patch (paritytech/statemin#88 )
* Westmint Chain Spec (paritytech/statemint#90 )
* Tidy the common .toml
* Update weights
* add westmint sudo key comment
* Port consensus stuff
* fix typo
* fix typo ... again
* Recognise Westmint
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-01 21:31:03 +02:00
Bastian Köcher
5b2bc585de
Update Substrate & Polkadot ( #454 )
2021-05-31 07:54:31 +02:00
Bastian Köcher
07b3c44be8
Pov recovery for parachains ( #445 )
...
* Start with a failing integration test & some refactorings
* More work
* Make it "work"
* Add `NullConsensus` for the test
* More refactorings
* Move stuff over to its own crate
* Refactorings
* Integrate it into `service` and make the test working
* Docs and some exit condition
* Use the real import queue
* Fix tests
* Update client/pov-recovery/src/active_candidate_recovery.rs
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
* Fetch slot duration from the relay chain
* Docs
* Fixes
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2021-05-26 15:02:42 +02:00
Bastian Köcher
c884c10b88
Some changes for Statemint ( #448 )
...
* Make Aura and relay chain verifier buildable
* AHHH
* Ahhh2
* Ahhh3
* Move `ParachainBlockImport`
* Updates because of Substrate
* Revert "AHHH"
This reverts commit 3f7c84327e1036ed71a8e2bd30f6416d32bae5a2.
* Fix warning
2021-05-23 13:29:43 +02:00