Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
b9d86e1
DatabaseSource::Auto (#9500)
debris Aug 9, 2021
0dfb48c
Consistently use `I::from(Self::get())` in `parameter_types!` (#9526)
expenses Aug 9, 2021
00bb485
Remove unused pdqselect dependency from `sc-consensus-babe` (#9528)
nazar-pc Aug 10, 2021
026a849
Refactor `sc_executor::RuntimeInfo` trait into 2 parts (#9498)
expenses Aug 10, 2021
5675e9e
Make `UncheckedExtrinsic` encode more readable (#9531)
bkchr Aug 10, 2021
86783fe
Remove dependency on substrate-prometheus-endpoint that is no longer …
chevdor Aug 11, 2021
c34fc32
mega cleanup of staking tests (#9516)
kianenigma Aug 11, 2021
4c3a55e
Rewrap all comments to 100 line width (#9490)
kianenigma Aug 11, 2021
09c016b
Multi-Block Election part 0: preparation and some cleanup. (#9442)
kianenigma Aug 11, 2021
2717d98
fix rust docs for remove storage prefix and take storage item (#9544)
4meta5 Aug 12, 2021
ee76b9f
CI: publish rustdocs (#9527)
TriplEight Aug 12, 2021
78b535b
Stabilize `seal_debug_message` (#9550)
athei Aug 12, 2021
7342a2f
Upgrade jsonrpc to 0.18.0 (#9547)
bkchr Aug 13, 2021
52478c0
Bump env_logger from 0.8.3 to 0.9.0 (#9538)
dependabot[bot] Aug 13, 2021
e4a0cc4
depend-o-pocalipse (#9450)
gilescope Aug 13, 2021
28e1691
Upgrade hyper to 0.14.11 (#9557)
bkchr Aug 13, 2021
8951d42
Bump ip_network from 0.3.4 to 0.4.0 (#9524)
dependabot[bot] Aug 13, 2021
71e1c59
Add block hash to call data of TaggedTransactionQueue_validate_transa…
Aug 13, 2021
08cac00
RUSTSEC-2021-0076 bump libsecp256k1 (#9391)
trevor-crypto Aug 16, 2021
67f28cd
Simplify `NativeExecutionDispatch` and remove the `native_executor_in…
expenses Aug 16, 2021
c6c52d3
Fix prometheus after hyper 14 upgrade (#9571)
bkchr Aug 17, 2021
d2a43d4
Remove substrate-in-the-browser (#9541)
dvdplm Aug 17, 2021
3c2b267
Make choosing an executor (native/wasm) an explicit part of service c…
expenses Aug 18, 2021
287b5c5
upgrade simnet tests to v8 (#9573)
radupopa2010 Aug 18, 2021
44ee839
remove the uselsss weight return type from election provider API (#9569)
kianenigma Aug 19, 2021
643818d
Custom Benchmark Errors and Override (#9517)
shawntabrizi Aug 19, 2021
ecc76f3
Integrate Wasmer into Substrate sandbox environment (#5920)
0x7CFE Aug 19, 2021
74e839b
Do not implement () for Contains (#9582)
sorpaas Aug 19, 2021
c6c912c
Bump bitflags from 1.2.1 to 1.3.2 (#9568)
dependabot[bot] Aug 19, 2021
32f46ea
Bump prost from 0.7.0 to 0.8.0 (#9560)
dependabot[bot] Aug 19, 2021
7e44628
Bump directories from 3.0.1 to 3.0.2 (#9589)
dependabot[bot] Aug 19, 2021
bd2e5f3
Show storage info in the raw benchmark output. (#9588)
kianenigma Aug 20, 2021
7ef1c00
Change unhandled Kademlia events from warn to debug (#9599)
Aug 20, 2021
436d671
Display warning on try-runtime spec_name mismatch (#9593)
kianenigma Aug 20, 2021
1207934
continue in pow loop instead of returning (#9539)
OAyomide Aug 22, 2021
60fd8cd
Remove spurious debug_assert! (#9603)
tomaka Aug 23, 2021
60c6ec7
pallet-vesting: Support multiple, merge-able vesting schedules (#9202)
emostov Aug 24, 2021
e2c884c
rebranding SubstraTEE to integritee (#9248)
brenzi Aug 24, 2021
ed702e8
Fix spelling (#9614)
gavofyork Aug 24, 2021
16e17ae
Remove useless borrow (#9615)
athei Aug 24, 2021
b79e2b9
Fetch runtime code from storage cache when using proofing backend (#9…
bkchr Aug 24, 2021
4172dfb
Run tests for the wasmer sandbox (#9610)
rcny Aug 24, 2021
72aaab6
Better RPC prometheus metrics. (#9358)
tomusdrw Aug 24, 2021
b7a1a2c
Upgrade tokio to 1.10 (#9575)
bkchr Aug 24, 2021
87b6266
Fix `state_subscribeRuntimeVersion` for parachains (#9617)
bkchr Aug 25, 2021
b1a7585
pallet-proxy: emit events on proxy added. (#9546)
shaunxw Aug 25, 2021
bd69793
Remove dependency on sandboxing host functions (#9592)
athei Aug 25, 2021
17ce41a
Expose `storage_prefix` logic, and remove duplicate code (#9621)
shawntabrizi Aug 25, 2021
caa863a
improve doc of pallet macro (#9625)
gui1117 Aug 26, 2021
42d3170
Improve errors for `generate_solution_type` macro (#9553)
4meta5 Aug 26, 2021
69e5b50
Make System Events Private from the Runtime (#9619)
shawntabrizi Aug 26, 2021
831a95d
remove crate visibility limitation (#9565)
JoshOrndorff Aug 26, 2021
111e6c6
implement Add, Sub, CheckedAdd, CheckedSub, SaturatingAdd, Saturating…
KaiserKarel Aug 27, 2021
ae70e6e
rpc-api: use thiserror instead of derive_more for error handling (#9631)
koushiro Aug 27, 2021
70a3bca
fix perthing add (#9638)
gui1117 Aug 27, 2021
f7b6dca
Fix benchmark writer (#9626)
gui1117 Aug 27, 2021
ecf32b9
improve decode for UncheckedExtrinsic (#9646)
xlc Aug 29, 2021
d6847a7
Generate storage info for pallet authority_discovery (#9428)
Aug 30, 2021
864d096
Add methods param for RPC `state_traceBlock` (#9642)
koushiro Aug 30, 2021
856d0bd
Fix compilation issue of pallet_contracts (#9652)
athei Aug 31, 2021
b6e8afc
Fix clippy warnings (#9649)
nazar-pc Aug 31, 2021
0931571
fix tracker repeat writes (#9653)
gui1117 Aug 31, 2021
852bab0
doc: subkey documentation (#9639)
chevdor Aug 31, 2021
81cae8e
Update contrib docs to reflect simplified process (#9465)
gilescope Sep 1, 2021
152f764
Remove some browser leftovers (#9636)
bkchr Sep 1, 2021
6d0c04d
Generate storage info for aura pallet (#9371)
KiChjang Sep 2, 2021
4880660
remove unused origin (#9679)
gui1117 Sep 2, 2021
dd29788
Use coherent prost crate versions (#9676)
adoerr Sep 2, 2021
0f934e9
Add VoteLocking config (#9641)
xlc Sep 2, 2021
c7a6264
Clean up `node-template` (#9667)
Sep 3, 2021
f708278
Small syntax changes for staking and elections code (#9688)
emostov Sep 4, 2021
d73c37e
sp-utils => sc-utils (#9677)
gilescope Sep 4, 2021
e7b93e1
Fixed block response limit check (#9692)
arkpar Sep 6, 2021
b799ee3
Don't allow failure for cargo fmt (#9702)
athei Sep 6, 2021
60078b3
reset cache when storage possibly change (fix init of tests). (#9665)
cheme Sep 6, 2021
47ee91e
Add initial contract macro benchmarks (#9600)
athei Sep 6, 2021
1309f52
contracts: Remove state rent (#9669)
athei Sep 6, 2021
5e93ac7
Allow Skipping Benchmark Errors (#9699)
shawntabrizi Sep 6, 2021
b5defce
SimpleSlotWorker make `claim_slot` async (#9713)
bkchr Sep 7, 2021
cd21e62
Migrate `pallet-membership` to the new pallet attribute macro (#9080)
koushiro Sep 7, 2021
6c7adf1
Fix buildah issue 3500 (#9716)
sergejparity Sep 7, 2021
6e15de9
Store the database in a role specific subdirectory (#9645)
hirschenberger Sep 7, 2021
8b8eb75
Fix compact proof decoding unaccessed last child trie. (#9715)
cheme Sep 7, 2021
e45dab3
disable unleash-check (#9705)
joao-paulo-parity Sep 7, 2021
89cd02d
add query types to generate_storage_alias (#9659)
apopiak Sep 8, 2021
5be50ac
Improve sandbox internal api (#9709)
bkchr Sep 8, 2021
b391b82
`graph::ChainApi` and `graph::Pool` reexport (#9726)
tgmichel Sep 8, 2021
821496d
Fix flaky test (#9729)
tomaka Sep 8, 2021
37aa0bd
Improve instruction benchmarks (#9712)
athei Sep 9, 2021
a8a040c
Remove the last bits of unknown_os in the code base (#9718)
bkchr Sep 9, 2021
267dac2
Add setter configurable only for benchmarking or tests (#9668)
girazoki Sep 9, 2021
ea55619
Bump lru from 0.6.5 to 0.6.6 (#9635)
dependabot[bot] Sep 9, 2021
88c64e0
Bump zeroize from 1.2.0 to 1.4.1 (#9591)
dependabot[bot] Sep 9, 2021
f84ac63
Create trait for NPoS election algorithms (#9664)
emostov Sep 9, 2021
558a68f
Change ci pipeline to use vault secrets (#9662)
sergejparity Sep 10, 2021
873e6b1
Bump proc-macro2 from 1.0.28 to 1.0.29 (#9741)
dependabot[bot] Sep 10, 2021
7fa40a2
Implemented `seal_ecdsa_recovery` function in the contract pallet (#9…
xgreenx Sep 10, 2021
64c3ec0
Dont Convert Benchmark Error Too Early (#9743)
shawntabrizi Sep 10, 2021
63b32fb
remove unused state machine (#9747)
gui1117 Sep 10, 2021
31bf57f
Bump futures-util from 0.3.16 to 0.3.17 (#9748)
dependabot[bot] Sep 10, 2021
9b15da9
clean the interface of supports map (#9674)
kianenigma Sep 10, 2021
b674bd2
Use tokio runtime handle instead of `TaskExecutor` abstraction (#9737)
bkchr Sep 12, 2021
2ec7f55
Recursive election provider as fallback (#9648)
kianenigma Sep 12, 2021
5810c46
Use the precise number of approvals when constructing RawOrgin::Membe…
liuchengxu Sep 13, 2021
e232df1
update crate names and rand deps (#9762)
chevdor Sep 13, 2021
b13319a
Adds composable.finance to ss58 registry (#9608)
seunlanlege Sep 13, 2021
c022f88
Add `childstate_getStorageEntries` RPC (#9459)
hirschenberger Sep 13, 2021
6120eda
Purge addresses that fail to reach a peer (#8843)
tomaka Sep 13, 2021
5e5474d
More descriptive errors. (#9768)
eskimor Sep 13, 2021
7fbec2f
dockerfiles: upgrade to ubuntu:20.04 (#9753)
TriplEight Sep 13, 2021
1fca377
Clean up sc-network (#9761)
liuchengxu Sep 13, 2021
9d19a24
Bump primitive-types from 0.10.0 to 0.10.1 (#9754)
dependabot[bot] Sep 13, 2021
630422d
Migrate `pallet-tips` to the new pallet attribute macro (#9711)
koushiro Sep 14, 2021
82e0e63
substrate depends on openssl at the moment (#9556)
gilescope Sep 14, 2021
f022e14
Bump wat from 1.0.37 to 1.0.40 (#9771)
dependabot[bot] Sep 14, 2021
644c17e
Migrate `pallet-collective` to the new pallet attribute macro (#9115)
koushiro Sep 14, 2021
ce1746d
Add Clover Finance to SS58 Registry (#9236)
pangwa Sep 14, 2021
598d74b
Emit log on Runtime Code change. (#9580)
tomusdrw Sep 15, 2021
e1ddbb3
pallet-utility: use new pallet attribute macro for tests (#9780)
koushiro Sep 15, 2021
eb4de69
Bump serde_json from 1.0.64 to 1.0.68 (#9783)
dependabot[bot] Sep 15, 2021
ba153b9
Enrich metadata with type information (#8615)
ascjones Sep 15, 2021
435f56e
Implement a `CountedStorageMap` (#9125)
gui1117 Sep 16, 2021
d67e5f4
Fix Spellcheck for Template (#9795)
shawntabrizi Sep 16, 2021
25eb7ac
Reduce the number of types in build_transport for transport (#9793)
Sep 16, 2021
95a5337
Add Force Unreserve to Balances (#9764)
shawntabrizi Sep 16, 2021
88b4fc8
Fix buildah login (#9786)
sergejparity Sep 16, 2021
c000780
Implement `pallet-bags-list` and its interfaces with `pallet-staking`…
emostov Sep 17, 2021
91b386f
make nonce public (#9810)
xlc Sep 18, 2021
5825661
Added template and scripts for generating rustdocs (#9785)
Sep 20, 2021
e30db04
Generate storage info for pallet im_online (#9654)
Sep 20, 2021
50c84cb
add feature and fix ci (#9800)
gui1117 Sep 20, 2021
0997854
Don't answer peers with a low reputation (#9008)
Sep 21, 2021
3486a13
check line width not needed (#9820)
gilescope Sep 21, 2021
ce3c31f
Improve post and pre migration checks for pallet-membership (#9746)
gui1117 Sep 21, 2021
78ce061
Bounties Pallet to FrameV2 (#9566)
ferrell-code Sep 21, 2021
700c9e2
Silence Kademlia InboundRequestServed event (#9797)
tomaka Sep 21, 2021
04bb4e0
`follow-chain` testing mode for try-runtime (and revamp CLI configs).…
kianenigma Sep 21, 2021
da6094d
Pull Request Template Suggestions (#9717)
apopiak Sep 21, 2021
0a18fa0
Society Pallet to FrameV2 (#9472)
ferrell-code Sep 21, 2021
49e91e2
Adding storage_info to pallet grandpa (#9817)
Sep 22, 2021
1361206
Use the automated call decode weight for `submit_unsigned` benchmark …
kianenigma Sep 22, 2021
eded990
Generate storage info for pallet babe (#9760)
Sep 22, 2021
4f8e0cf
Add some docs about runtime migration best practices (#9837)
kianenigma Sep 23, 2021
0df7093
add test (#9822)
gui1117 Sep 23, 2021
7fcebc8
improve test (#9835)
gui1117 Sep 23, 2021
65ac6f3
Integrate BEEFY (#9833)
adoerr Sep 23, 2021
e254b24
Fix gitlab command (#9843)
Sep 23, 2021
68e3423
beefy-gadget-rpc: fix toml warnings (#9854)
koushiro Sep 24, 2021
b00e054
De-duplicate the dispatchable and the bare_* functions (#9838)
athei Sep 24, 2021
2ab5cd2
Prepare UI tests for rust 1.55 (#9637)
bkchr Sep 24, 2021
de06497
CI: undebug CI image (#9857)
TriplEight Sep 24, 2021
e02e90c
Remove unused sp-maybe-compressed-blob from sp-io (#9849)
ascjones Sep 24, 2021
6f1b223
Expose trait Balance & AssetId (#9863)
xlc Sep 25, 2021
45f8ec6
Removing a trailing `MaxSegmentLength` (#9850)
Sep 25, 2021
bba169c
Fix amount emitted in rebonded event (#9866)
shawntabrizi Sep 26, 2021
a3d128d
BEEFY code owner (#9852)
adoerr Sep 26, 2021
58649c4
Fungibles and Non-Fungibles Create and Destroy Traits + Assets and Un…
shawntabrizi Sep 26, 2021
b677b3a
Migrate the pallet macros of some tests and benches (#9853)
koushiro Sep 27, 2021
be28ab0
pallet macro: allow to declare individual unbounded storage for those…
gui1117 Sep 27, 2021
be8d846
Calling an unsafe fn so need to have an unsafe block
gilescope Sep 27, 2021
aa3ea04
Add weight for decoding the call to benchmarks (#9781)
hirschenberger Sep 27, 2021
03c2c2f
Migrate `pallet-session` to the new pallet macro (#9796)
koushiro Sep 28, 2021
0f3db4e
Point to nightly that can compile the code. (#9873)
gilescope Sep 28, 2021
fa92eaf
Add Polkadex to SS58 Registry (#9825)
Gauthamastro Sep 28, 2021
c11a0bf
Extend PalletInfoAccess with module_name and crate_version method (#9…
KiChjang Sep 28, 2021
7cf99b1
Fix flaky sync tests (#9889)
bkchr Sep 29, 2021
95c81d2
Fix WrapperOpaque max encded len and type info (#9881)
gui1117 Sep 29, 2021
5f750df
Bump async-std from 1.9.0 to 1.10.0 (#9759)
dependabot[bot] Sep 29, 2021
63ac521
Bump smallvec from 1.6.1 to 1.7.0 (#9894)
dependabot[bot] Sep 29, 2021
c73e3c2
remove unidiomatic (#9895)
gui1117 Sep 29, 2021
0a785f1
Less sleeps (#9848)
gilescope Sep 29, 2021
83ced6b
Update wasmtime to 0.29.0 (#9552)
bkchr Sep 29, 2021
4ecbb1f
Return `target_hash` for finality_target instead of an Option (#9867)
liuchengxu Sep 29, 2021
0d44d83
add feature wasmtime-jitdump (#9871)
librelois Sep 29, 2021
1e28e61
subkey readme update on install (#9900)
nuke-web3 Sep 30, 2021
0bc873d
contracts: Add event field names (#9896)
ascjones Sep 30, 2021
fb44376
Fix basic authorship flaky test (#9906)
bkchr Sep 30, 2021
e6b0150
Fix democracy on-initialize weight (#9890)
zjb0807 Sep 30, 2021
c21d3cf
Merge commit 'refs/pull/9872/head' of github.com:paritytech/substrate…
s3krit Oct 1, 2021
70c3954
Rework Transaction Priority calculation (#9834)
tomusdrw Oct 4, 2021
9ee94fa
Use correct db path for parity-db (#9971)
bkchr Oct 8, 2021
32e8250
add TypeInfo for DispatchTime (#9987)
zjb0807 Oct 9, 2021
11e6bb0
Add TypeInfo (#10010)
zjb0807 Oct 13, 2021
57346f6
add TypeInfo trait bound (#10031)
0x8f701 Oct 15, 2021
eca7bde
Merge remote-tracking branch 'upstream/polkadot-v0.9.11' into feature…
MRamanenkau Oct 10, 2022
6c69e48
Post merge fixes
MRamanenkau Oct 10, 2022
16702ad
Incremet impl version and update release notes
MRamanenkau Oct 10, 2022
df9ecb6
Post merge fixes
MRamanenkau Oct 10, 2022
1306447
Update DDC pallet
MRamanenkau Oct 10, 2022
c9fd7db
Make tests compile
MRamanenkau Oct 11, 2022
c7edbaa
Enable previously flaky test and get rid of diff with substrate
MRamanenkau Oct 11, 2022
ed57e11
Use two rustc versions as specified in release notes
MRamanenkau Oct 11, 2022
98cd5a6
Disable flaky tests
MRamanenkau Oct 12, 2022
1a46f11
Revert "Use two rustc versions as specified in release notes"
MRamanenkau Oct 12, 2022
51c818c
Use stable version of rustc
MRamanenkau Oct 12, 2022
db12333
Disable flaky test
MRamanenkau Oct 12, 2022
b9fbf01
Increment spec version as Polkadot did
MRamanenkau Oct 13, 2022
f6ac125
Update ddc pallet
MRamanenkau Oct 17, 2022
ffb2a27
Merge branch 'feature/update-to-polkadot-v0-9-10' into feature/update…
MRamanenkau Oct 19, 2022
b56fab8
Add storage migrations
MRamanenkau Nov 15, 2022
7b79a78
Merge branch 'dev-cere' into feature/update-to-polkadot-v0-9-11
MRamanenkau Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Enrich metadata with type information (paritytech#8615)
* Cargo.lock after merge

* Restore scale-info feature

* Fully qualify TypeInfo derive

* Skip PendingSwap T

* Add missing skip_type_params attr

* metadata docs features

* Reduce pallet event attribute to struct

* Cargo.lock

* Update frame/balances/src/tests_composite.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Line widths check

* Cargo.lock

* Add scale-info/std

* Update frame/system/src/lib.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Use `skip_type_params` to remove `TypeInfo` requirements on checks

* Revert "Remove unused Call metadata stuff"

This reverts commit 41311f8

* Skip BalanceSwapAction type parameter

* Remove unused event metadata macro

* Update frame-metadata

* Update primitives/npos-elections/compact/src/codec.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Manual TypeInfo for Header

* Remove TypeInfo requirement for consts in BoundedVec etc.

* Another TypeInfo bound removed

* review: fix indentation

* TypeInfo impls for Identity types

* Add some todos to add custom TypeInfo impls

* Update frame/support/procedural/src/pallet/expand/pallet_struct.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Add some todos to add custom TypeInfo impls

* Add a test for manual Data TypeInfo impl

* Add custom TypeInfo impl for Vote

* Era custom TypeInfo crimes

* Revert finality-grandpa version to 0.14.z

* review: renamed module to pallet_constants_metadata

* New line at end of file

* Add missing scale-info/std

* Update frame/support/src/storage/types/mod.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Remove StorageEntryType::Map unused flag

* Add missing scale-info dependency after merge

* SignedExtension::AdditionalSigned metadata

* Update frame-metadata, use abbreviated docs and args fields

* Update frame/example/Cargo.toml

Co-authored-by: Keith Yeung <[email protected]>

* Add scale_info/std and remove unused scale-info dependency

* Remove scale-info dependency

* Remove treasury pallet::metadata

* Remove redundant Event test

* Add back scale-info as dev dependency

* fix error metadata when no error defined in decl_module

* Add Module3 to tests

* Fix metadata test

* Add docs feature to frame-support test

* WIP fixing pallet metadata test

* Remove redundant FunctionMetadata, FunctionArgumentMetadata as per paritytech/frame-metadata#20

* Use main branch of frame-metadata

* Use patch of scale-info for latest changes

* Use latest patched scale-info

* Manual TypeInfo for DigestItem

* Manual TypeInfo for DigestItem

* Update scale-info

* Skip __Ignore variants for Error, depends on paritytech/scale-info#117

* Named fields for FRAME v2 pallet Call variants

* Named fields for FRAME v1 pallet Call variants

* Add missing scale-info dependency

* WIP expand benchmark call variant

* fix benchmark with new function

create a new function for each variant of a pallet call.
This function is called by benchmarking macro in order not to break call
creation with unnamed argument

* fix tests

* more fix

* Fix staking tests

* Fix offchain workers calls

* Cherry pick rustfmt.toml from master

* cargo +nightly-2021-06-22 fmt --all

* Update to new call variant structs

* More call variant struct updates

* Remove unused import

* More call variant structs

* More call variant structs

* Even more call variant structs

* Mooar variant structs

* Evermore variant structs

* Call variant structs ad infinitum

* Fmt

* More call variants

* Last call variant

* Call variants all done?

* Fix SS58Prefix type

* Potential workaround for BitFlags<IdentityFields> TypeInfo

* Enable docs capturing for Call, Event, and Error types

* Fix IdentityFields TypeInfo

* Remove metadata-docs feature

* Add capture_docs = true for legacy Call, Event and Error types

* Fmt

* Fix metadata test type

* Update benchmarks with call struct variants

* Fmt

* More test fixes

* Fmt

* Fix benches

* Use latest capture_docs attr

* Latest scale_info

* Fmt

* review: change &Vec to &[]

* Remove pallet metadata attr

* review: remove commented out test code

* review: skip_type_params trailing comma suggestion

* Update to scale-info 0.10.0

* Update construct_runtime ui tests, different because of metadata TypeInfo impls

* Add some TypeInfo derives for UI tests

* Update storage ensure span ui stderrs

* Update call argument bound ui tests

Possibly changed because change from tuple to struct variants?

* Add scale-info dev dependency

* Update to latest finality-grandpa release

* review: missing newline

* review: missing scale-info/std

* review: remove duplicate scale-info/std

* review: remove fully qualified TypeInfo

* review: add missing scale-info/std

* review: remove unnecessary imports.

* Fmt

* Use crates.io RC version of frame-metadata

* Remove scale-info/std because it is a dev dependency

* Add missing scale_info dev-dependency for test

* Delete empty metadata folder

* Fix sp_std import

* review: improve manual UncheckedExtrinsic TypeInfo impl

* review: use full scale-info for dev-dependency

* Remove DefaultByteGetter impl

* review: derive TypeInfo for generic header

* Fmt

* Update primitives/runtime/src/generic/unchecked_extrinsic.rs

Co-authored-by: Keith Yeung <[email protected]>

* Update primitives/runtime/src/generic/unchecked_extrinsic.rs

Co-authored-by: Keith Yeung <[email protected]>

* Update bin/node/executor/Cargo.toml

Co-authored-by: Bastian Köcher <[email protected]>

* Update frame/identity/src/types.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Update frame/support/src/dispatch.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Remove redundant derive

* Simplify scale-info dependency

* Strip underscore prefix from call variant struct names

* Another underscore field

* More underscore fields

* Another underscore field

* Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map

* Fmt

* Revert weights formatting

* Fix up some tests

* Fix up some tests for StorageEntryTypeMetadata

* scale-info dev dependency

* Fix test error

* Add missing TypeInfo derives

* Add back missing scale-info dependency

* Add back missing scale-info dependency

* Fix npos compact impls

* Cargo.lock

* Fmt

* Fix errors

* Fmt

* Fix renamed raw_solution field

* Fix error

* Fmt

* Fix some benchmarks

* Fmt

* Stray R

* Fix

* Add missing TypeInfos

* ui test fix

* Fix line widths

* Revert "ui test fix"

This reverts commit 2d15ec0.

* Upgrade to scale-info 0.11.0

* Revert "Upgrade to scale-info 0.11.0"

This reverts commit 047bb17.

* Add Runtime type

* Update to scale-info 0.12

* Update to scale-info 1.0

* Update frame-metadata to version 14.0.0

* Patch finality-grandpa until release available

* Fix metadata tests

* Fix metadata tests

* Fmt

* Remove patched finality-grandpa

* Fix tests, use scale_info imports

* Fix pallet tests

* Add BlockNumber TypeInfo bound

* ui test fix

* Cargo.lock

* Remove pallet metadata

* Cargo.lock

* Add missing scale-info dependency

* Remove pallet event metadata

* Fix error

* Fix collective errors

* Semicolol

* Fmt

* Remove another metadata attribute

* Add new variant to custom digest TypeInfo

* Fmt

* Cargo.lock from master

* Remove comma lol

* Fix example call error

* Fix example call error properly

Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Keith Yeung <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
  • Loading branch information
5 people authored Sep 15, 2021
commit ba153b9ae050eda022f002d74d76f98d1e339a81
126 changes: 120 additions & 6 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ members = [
"frame/merkle-mountain-range",
"frame/merkle-mountain-range/primitives",
"frame/merkle-mountain-range/rpc",
"frame/metadata",
"frame/multisig",
"frame/nicks",
"frame/node-authorization",
Expand Down Expand Up @@ -261,7 +260,6 @@ wasmi = { opt-level = 3 }
x25519-dalek = { opt-level = 3 }
yamux = { opt-level = 3 }
zeroize = { opt-level = 3 }

[profile.release]
# Substrate runtime requires unwinding.
panic = "unwind"
panic = "unwind"
2 changes: 2 additions & 0 deletions bin/node-template/pallets/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = [
"derive",
] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
frame-support = { default-features = false, version = "4.0.0-dev", path = "../../../../frame/support" }
frame-system = { default-features = false, version = "4.0.0-dev", path = "../../../../frame/system" }
frame-benchmarking = { default-features = false, version = "4.0.0-dev", path = "../../../../frame/benchmarking", optional = true }
Expand All @@ -30,6 +31,7 @@ sp-runtime = { default-features = false, version = "4.0.0-dev", path = "../../..
default = ['std']
std = [
'codec/std',
'scale-info/std',
'frame-support/std',
'frame-system/std',
'frame-benchmarking/std',
Expand Down
1 change: 0 additions & 1 deletion bin/node-template/pallets/template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ pub mod pallet {
// Pallets use events to inform users when important changes are made.
// https://substrate.dev/docs/en/knowledgebase/runtime/events
#[pallet::event]
#[pallet::metadata(T::AccountId = "AccountId")]
#[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> {
/// Event documentation should end with an array that provides descriptive names for event
Expand Down
2 changes: 2 additions & 0 deletions bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }

pallet-aura = { version = "4.0.0-dev", default-features = false, path = "../../../frame/aura" }
pallet-balances = { version = "4.0.0-dev", default-features = false, path = "../../../frame/balances" }
Expand Down Expand Up @@ -54,6 +55,7 @@ substrate-wasm-builder = { version = "5.0.0-dev", path = "../../../utils/wasm-bu
default = ["std"]
std = [
"codec/std",
"scale-info/std",
"frame-executive/std",
"frame-support/std",
"frame-system-rpc-runtime-api/std",
Expand Down
2 changes: 1 addition & 1 deletion bin/node-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ impl_runtime_apis! {

impl sp_api::Metadata<Block> for Runtime {
fn metadata() -> OpaqueMetadata {
Runtime::metadata().into()
OpaqueMetadata::new(Runtime::metadata().into())
}
}

Expand Down
3 changes: 2 additions & 1 deletion bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,8 @@ mod tests {
};
let signer = charlie.clone();

let function = Call::Balances(BalancesCall::transfer(to.into(), amount));
let function =
Call::Balances(BalancesCall::transfer { dest: to.into(), value: amount });

let check_spec_version = frame_system::CheckSpecVersion::new();
let check_tx_version = frame_system::CheckTxVersion::new();
Expand Down
1 change: 1 addition & 0 deletions bin/node/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0" }
scale-info = { version = "1.0", features = ["derive"] }
node-primitives = { version = "2.0.0", path = "../primitives" }
node-runtime = { version = "3.0.0-dev", path = "../runtime" }
sc-executor = { version = "0.10.0-dev", path = "../../../client/executor" }
Expand Down
7 changes: 5 additions & 2 deletions bin/node/executor/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,14 @@ fn test_blocks(
let mut test_ext = new_test_ext(genesis_config);
let mut block1_extrinsics = vec![CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(0)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: 0 }),
}];
block1_extrinsics.extend((0..20).map(|i| CheckedExtrinsic {
signed: Some((alice(), signed_extra(i, 0))),
function: Call::Balances(pallet_balances::Call::transfer(bob().into(), 1 * DOLLARS)),
function: Call::Balances(pallet_balances::Call::transfer {
dest: bob().into(),
value: 1 * DOLLARS,
}),
}));
let block1 =
construct_block(executor, &mut test_ext.ext(), 1, GENESIS_HASH.into(), block1_extrinsics);
Expand Down
72 changes: 36 additions & 36 deletions bin/node/executor/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ fn changes_trie_block() -> (Vec<u8>, Hash) {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time }),
},
CheckedExtrinsic {
signed: Some((alice(), signed_extra(0, 0))),
function: Call::Balances(pallet_balances::Call::transfer(
bob().into(),
69 * DOLLARS,
)),
function: Call::Balances(pallet_balances::Call::transfer {
dest: bob().into(),
value: 69 * DOLLARS,
}),
},
],
(time / SLOT_DURATION).into(),
Expand All @@ -111,14 +111,14 @@ fn blocks() -> ((Vec<u8>, Hash), (Vec<u8>, Hash)) {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time1)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time1 }),
},
CheckedExtrinsic {
signed: Some((alice(), signed_extra(0, 0))),
function: Call::Balances(pallet_balances::Call::transfer(
bob().into(),
69 * DOLLARS,
)),
function: Call::Balances(pallet_balances::Call::transfer {
dest: bob().into(),
value: 69 * DOLLARS,
}),
},
],
(time1 / SLOT_DURATION).into(),
Expand All @@ -131,21 +131,21 @@ fn blocks() -> ((Vec<u8>, Hash), (Vec<u8>, Hash)) {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time2)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time2 }),
},
CheckedExtrinsic {
signed: Some((bob(), signed_extra(0, 0))),
function: Call::Balances(pallet_balances::Call::transfer(
alice().into(),
5 * DOLLARS,
)),
function: Call::Balances(pallet_balances::Call::transfer {
dest: alice().into(),
value: 5 * DOLLARS,
}),
},
CheckedExtrinsic {
signed: Some((alice(), signed_extra(1, 0))),
function: Call::Balances(pallet_balances::Call::transfer(
bob().into(),
15 * DOLLARS,
)),
function: Call::Balances(pallet_balances::Call::transfer {
dest: bob().into(),
value: 15 * DOLLARS,
}),
},
],
(time2 / SLOT_DURATION).into(),
Expand All @@ -166,11 +166,11 @@ fn block_with_size(time: u64, nonce: u32, size: usize) -> (Vec<u8>, Hash) {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time * 1000)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time * 1000 }),
},
CheckedExtrinsic {
signed: Some((alice(), signed_extra(nonce, 0))),
function: Call::System(frame_system::Call::remark(vec![0; size])),
function: Call::System(frame_system::Call::remark { remark: vec![0; size] }),
},
],
(time * 1000 / SLOT_DURATION).into(),
Expand Down Expand Up @@ -357,7 +357,7 @@ fn full_native_block_import_works() {
let mut fees = t.execute_with(|| transfer_fee(&xt()));

let transfer_weight = default_transfer_call().get_dispatch_info().weight;
let timestamp_weight = pallet_timestamp::Call::set::<Runtime>(Default::default())
let timestamp_weight = pallet_timestamp::Call::set::<Runtime> { now: Default::default() }
.get_dispatch_info()
.weight;

Expand Down Expand Up @@ -646,28 +646,28 @@ fn deploying_wasm_contract_should_work() {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time }),
},
CheckedExtrinsic {
signed: Some((charlie(), signed_extra(0, 0))),
function: Call::Contracts(
pallet_contracts::Call::instantiate_with_code::<Runtime>(
1000 * DOLLARS + subsistence,
500_000_000,
transfer_code,
Vec::new(),
Vec::new(),
),
pallet_contracts::Call::instantiate_with_code::<Runtime> {
endowment: 1000 * DOLLARS + subsistence,
gas_limit: 500_000_000,
code: transfer_code,
data: Vec::new(),
salt: Vec::new(),
},
),
},
CheckedExtrinsic {
signed: Some((charlie(), signed_extra(1, 0))),
function: Call::Contracts(pallet_contracts::Call::call::<Runtime>(
sp_runtime::MultiAddress::Id(addr.clone()),
10,
500_000_000,
vec![0x00, 0x01, 0x02, 0x03],
)),
function: Call::Contracts(pallet_contracts::Call::call::<Runtime> {
dest: sp_runtime::MultiAddress::Id(addr.clone()),
value: 10,
gas_limit: 500_000_000,
data: vec![0x00, 0x01, 0x02, 0x03],
}),
},
],
(time / SLOT_DURATION).into(),
Expand Down
2 changes: 1 addition & 1 deletion bin/node/executor/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn sign(xt: CheckedExtrinsic) -> UncheckedExtrinsic {
}

pub fn default_transfer_call() -> pallet_balances::Call<Runtime> {
pallet_balances::Call::transfer::<Runtime>(bob().into(), 69 * DOLLARS)
pallet_balances::Call::<Runtime>::transfer { dest: bob().into(), value: 69 * DOLLARS }
}

pub fn from_block_number(n: u32) -> Header {
Expand Down
18 changes: 9 additions & 9 deletions bin/node/executor/tests/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time1)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time1 }),
},
CheckedExtrinsic {
signed: Some((charlie(), signed_extra(0, 0))),
function: Call::System(frame_system::Call::fill_block(Perbill::from_percent(60))),
function: Call::System(frame_system::Call::fill_block {
ratio: Perbill::from_percent(60),
}),
},
],
(time1 / SLOT_DURATION).into(),
Expand All @@ -75,11 +77,11 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
vec![
CheckedExtrinsic {
signed: None,
function: Call::Timestamp(pallet_timestamp::Call::set(time2)),
function: Call::Timestamp(pallet_timestamp::Call::set { now: time2 }),
},
CheckedExtrinsic {
signed: Some((charlie(), signed_extra(1, 0))),
function: Call::System(frame_system::Call::remark(vec![0; 1])),
function: Call::System(frame_system::Call::remark { remark: vec![0; 1] }),
},
],
(time2 / SLOT_DURATION).into(),
Expand Down Expand Up @@ -321,11 +323,9 @@ fn block_length_capacity_report() {
},
CheckedExtrinsic {
signed: Some((charlie(), signed_extra(nonce, 0))),
function: Call::System(frame_system::Call::remark(vec![
0u8;
(block_number * factor)
as usize
])),
function: Call::System(frame_system::Call::remark {
remark: vec![0u8; (block_number * factor) as usize],
}),
},
],
(time * 1000 / SLOT_DURATION).into(),
Expand Down
26 changes: 19 additions & 7 deletions bin/node/executor/tests/submit_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn should_submit_unsigned_transaction() {
validators_len: 0,
};

let call = pallet_im_online::Call::heartbeat(heartbeat_data, signature);
let call = pallet_im_online::Call::heartbeat { heartbeat: heartbeat_data, signature };
SubmitTransaction::<Runtime, pallet_im_online::Call<Runtime>>::submit_unsigned_transaction(
call.into(),
)
Expand Down Expand Up @@ -84,7 +84,10 @@ fn should_submit_signed_transaction() {
t.execute_with(|| {
let results =
Signer::<Runtime, TestAuthorityId>::all_accounts().send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer {
dest: Default::default(),
value: Default::default(),
}
});

let len = results.len();
Expand Down Expand Up @@ -118,7 +121,10 @@ fn should_submit_signed_twice_from_the_same_account() {
t.execute_with(|| {
let result =
Signer::<Runtime, TestAuthorityId>::any_account().send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer {
dest: Default::default(),
value: Default::default(),
}
});

assert!(result.is_some());
Expand All @@ -127,7 +133,10 @@ fn should_submit_signed_twice_from_the_same_account() {
// submit another one from the same account. The nonce should be incremented.
let result =
Signer::<Runtime, TestAuthorityId>::any_account().send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer {
dest: Default::default(),
value: Default::default(),
}
});

assert!(result.is_some());
Expand Down Expand Up @@ -163,7 +172,7 @@ fn should_submit_signed_twice_from_all_accounts() {
t.execute_with(|| {
let results = Signer::<Runtime, TestAuthorityId>::all_accounts()
.send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer { dest: Default::default(), value: Default::default() }
});

let len = results.len();
Expand All @@ -174,7 +183,7 @@ fn should_submit_signed_twice_from_all_accounts() {
// submit another one from the same account. The nonce should be incremented.
let results = Signer::<Runtime, TestAuthorityId>::all_accounts()
.send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer { dest: Default::default(), value: Default::default() }
});

let len = results.len();
Expand Down Expand Up @@ -227,7 +236,10 @@ fn submitted_transaction_should_be_valid() {
t.execute_with(|| {
let results =
Signer::<Runtime, TestAuthorityId>::all_accounts().send_signed_transaction(|_| {
pallet_balances::Call::transfer(Default::default(), Default::default())
pallet_balances::Call::transfer {
dest: Default::default(),
value: Default::default(),
}
});
let len = results.len();
assert_eq!(len, 1);
Expand Down
2 changes: 2 additions & 0 deletions bin/node/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = [
"derive",
] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../../frame/system" }
sp-application-crypto = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/application-crypto" }
sp-core = { version = "4.0.0-dev", default-features = false, path = "../../../primitives/core" }
Expand All @@ -23,6 +24,7 @@ sp-runtime = { version = "4.0.0-dev", default-features = false, path = "../../..
default = ["std"]
std = [
"codec/std",
"scale-info/std",
"frame-system/std",
"sp-application-crypto/std",
"sp-core/std",
Expand Down
2 changes: 2 additions & 0 deletions bin/node/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ codec = { package = "parity-scale-codec", version = "2.2.0", default-features =
"derive",
"max-encoded-len",
] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
static_assertions = "1.1.0"
hex-literal = { version = "0.3.1", optional = true }
log = { version = "0.4.14", default-features = false }
Expand Down Expand Up @@ -113,6 +114,7 @@ std = [
"pallet-bounties/std",
"sp-block-builder/std",
"codec/std",
"scale-info/std",
"pallet-collective/std",
"pallet-contracts/std",
"pallet-contracts-primitives/std",
Expand Down
Loading