Squirrel
01c66da036
Allow missing docs for autogen weights. ( #14011 )
2023-04-25 22:48:37 +02:00
Squirrel
e7f9157cc9
Breakout mock runtimes to separate files ( #13150 )
...
* break out moch runtimes to separate files
* tranaction-payment: break out tests & mock runtime to separate files
2023-01-17 16:26:10 +00:00
Squirrel
deeaa1c8fd
Use the balance trait as we have one ( #13136 )
2023-01-13 14:47:18 +01:00
Squirrel
ba12f3af9d
Allow other pallets to check asset ids. ( #12666 )
...
* Make it easier for other pallets to check asset ids.
* Avoid boxing
* cargo fmt
2022-11-11 14:22:17 +00:00
Squirrel
2b80555902
drive by spelling fixes ( #12175 )
2022-09-05 16:04:14 +02:00
Squirrel
0fb0ef8c2f
clone not required as copy. ( #12110 )
2022-08-25 11:11:15 +00:00
Squirrel
a68a80fbae
declone and close the door ( #12035 )
...
* declone and close the door
* cargo fmt
* remove brackets
2022-08-15 19:38:36 +00:00
Squirrel and alvicsam
3ecb5306eb
Updating shell.nix nightly ( #11266 )
...
* The 2022-02-10 nightly can't build some deps
There's a sig that returns `impl IntoIterator<Item = (&'static str, OsString)>` and an Option is being retured but it's incorrectly not allowing a `?` in the method.
* removing duplicate test
* [ci] add job cargo-check-nixos
* add dummy variables nix check
* fix check-dependent jobs
* fix check-dependent-project template
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-04-27 17:19:07 +00:00
3dd32d5255
Make clippy _a little_ more annoying ( #10570 )
...
* Clippy: +complexity
* Update client/cli/src/arg_enums.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/node/inspect/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/keystore/src/testing.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/elections/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update primitives/npos-elections/fuzzer/src/reduce.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Incorporating feedback
* No need for Ok
* Additional
* Needed slice
* Wigy's suggestions on less derefs
* fix count
* reverting changes brought in by option_map_unit_fn
* add --all-targets
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-01-05 14:35:30 +00:00
Squirrel
409d810089
Tweak to pallet-nicks ( #10565 )
...
* Slightly easier for humans to parse
* cargo fmt
* Use the simpler format for construct_runtime.
2021-12-28 23:22:48 +00:00
Squirrel and Bastian Köcher
c4d903f945
upgrade ss58-registry with additional networks. ( #10224 )
...
* upgrade ss58-registry with additional networks.
* adding cargo lock
* Update primitives/core/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* turn on std
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-11-09 22:33:21 +00:00
Squirrel and Bastian Köcher
744bc44de2
Removal of light client from substrate ( #9684 )
...
* Removal of light client from substrate
* add missing import
* These tests relate to there being light and non light clients.
* removing lightnodes from test
* cargo fmt
* not needed
* LightDataChecker not needed any longer
* cargo fmt
* Update client/service/test/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/test/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* cargo fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-30 12:38:27 +00:00
Squirrel
9cb4567ab7
hint what to do if you didn't use bot merge ( #10009 )
2021-10-12 10:36:09 +00:00
98c157886c
Switch to using ss58-registry crate ( #9755 )
...
* Switch to using ss58-registry crate
* Custom(42) is now eq to Substrate
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-10-12 09:54:40 +01:00
Squirrel
9f1c3acb7d
Avoid hangs in tests ( #9949 )
...
* Avoid hangs in tests
* set timeout for 10 mins.
2021-10-07 09:08:57 +00:00
Squirrel
f4bffe6d0b
Less deps: Stop using old version of libsecp256k1 ( #9947 )
...
(Moving further to 0.7 would require upgrading rand first)
2021-10-07 07:15:33 +01:00
Squirrel
07761c22f7
remove dep on unmaintained difference crate ( #9946 )
2021-10-06 18:56:37 +02:00
Squirrel
d45aada6a7
First word should be Substrate not Polkadot ( #9935 )
...
(if we want something put in the substrate PR.)
2021-10-05 11:26:34 +00:00
Squirrel and Bastian Köcher
3a53892e2f
Improved file not found error message ( #9931 )
...
* Say where you looked for the file
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-05 09:42:33 +01:00
c9410186f1
add clippy to CI ( #9694 )
...
* Focus on correctness lints. This relies on a compiler patch that landed 8th July 2021.
If people are using an earlier version of the compiler everything will still work unless they try and run clippy.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-03 17:09:26 +01:00
Squirrel and Bastian Köcher
e64693933f
Less sleeps ( #9848 )
...
* Less sleeps
* No need to use tokio-test crate
* Less sleep
* Avoid leaving zombie substrates around
(when panicing in tests)
* Remove unused imports
* Incorporating feedback
* rename method
* Use rpc_api
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-29 10:55:31 +00:00
Squirrel
f95408b346
Point to nightly that can compile the code. ( #9873 )
2021-09-28 04:47:38 +00:00
Squirrel
29816054f6
check line width not needed ( #9820 )
...
* check line width not needed
(cargo fmt checks this)
* Fixing test to work in release mode.
2021-09-21 11:37:57 +00:00
Squirrel
f2d487d999
substrate depends on openssl at the moment ( #9556 )
...
in some circumstances...
2021-09-14 11:13:36 +01:00
Squirrel and Bastian Köcher
ffced22fb7
sp-utils => sc-utils ( #9677 )
...
* sp-utils => sc-utils
* cargo fmt
* These files are now in the client so should be licensed as GPL3
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-04 19:20:48 +00:00
Squirrel and Andronik Ordian
72adb1d858
Update contrib docs to reflect simplified process ( #9465 )
...
* Update contrib docs to reflect simplified process
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-01 17:58:53 +01:00
Squirrel
7e9b8d278e
depend-o-pocalipse ( #9450 )
...
Remove unneeded dependencies and dev-dependencies.
Made self_destruct test not dependent on wasm bin size.
Updated code related to deprecated warning on tracing-subscriber `scope()`
( See https://github.com/tokio-rs/tracing/issues/1429 )
2021-08-13 15:18:37 +01:00
Squirrel
2f4db88b41
Removing wasm unused import warnings ( #9492 )
...
* Removing wasm unused import warnings
* cargo fmt
2021-08-04 10:57:08 +00:00
Squirrel
6bd726bc6b
crate missing dependency when compiled on its own with std ( #9487 )
...
* Everything else in frame compiles in std.
This doesn't on its own as it needs Debug and that's
in the extra-traits syn feature.
* Incorporating feedback
2021-08-03 18:57:03 +00:00
Squirrel and André Silva
df59596ec0
Move client consensus parts out of primitives and into client/consensus/api ( #9319 )
...
* moved client code out of primitives
* bump ci
* Fixup from merge.
* Removed unused deps thanks to review feedback
* Removing unneeded deps
* updating lock file
* note about rustfmt
* fixed typo to bump ci
* Move lonely CacheKeyId to parent
* cargo fmt
* updating import style
* Update docs/STYLE_GUIDE.md
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-07-30 13:27:17 +00:00
Squirrel
060d564fc3
Remove old benchmark ( #9457 )
...
Apparently this should be rewritten when we need it again.
2021-07-29 13:19:26 +01:00
Squirrel and Giles Cope
ca3ee2e2a5
IDEs like rust-src ( #9443 )
...
Co-authored-by: Giles Cope <giles.cope@gmail.com >
2021-07-27 10:00:06 +00:00
Squirrel and Alexander Popiak
492523f1ae
post rustfmt whitespace fixup ( #9436 )
...
Taking best bits of rustfmt's format_strings
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-07-26 14:18:27 +01:00
Squirrel
ec047abbcf
clippy fixes ( #9173 )
2021-07-26 14:12:18 +01:00
Squirrel and Bastian Köcher
b3d16c9442
example typo ( #9416 )
...
* Think these types should be switched reading the doc.
* Update frame/support/procedural/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-07-23 09:15:39 +00:00
Squirrel
aafe64315a
Remove extra commas made redundent after rustfmt ( #9404 )
...
* Remove extra commas made redundent after rustfmt
2021-07-22 11:06:17 +01:00
4f5d3b334e
Docs only changes ( #9258 )
...
* Docs changes to improve clarity
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-06 18:05:10 +01:00
Squirrel and Bastian Köcher
f93074d086
Less duplication in test code ( #9270 )
...
* Less duplication
* Const
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* less comments
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-07-05 12:59:39 +02:00
Squirrel
d7804c0929
Move client only primitives to another dir ( #9220 )
...
* Move alloc primitive (not used in /pallets)
* Move to alternative location as not shared
* moved crates to different dir
* ren sp_chain_spec to sc_chain_spec_primatives
* merged sc-chain-spec and moved allocation up one.
* no no_std
* nudge
* Bump CI
2021-06-30 12:06:39 +02:00
Squirrel
20347c2edb
Use MIN associated const ( #9199 )
2021-06-24 15:48:39 +01:00
Squirrel
ea1f21a904
Use MAX associated const ( #9196 )
...
* Use MAX associated const
2021-06-24 11:53:49 +01:00
09d9c2c9f6
Fix to support u32::MAX ( #9188 )
...
* Fix to support u32::MAX
* Update primitives/runtime/src/random_number_generator.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-06-24 07:20:15 +00:00
Squirrel
6ccb5dc713
Result<Option<>> rather than Option<Option<>> ( #9119 )
...
* Clearer API to code against.
2021-06-23 13:41:46 +01:00
Squirrel and Bastian Köcher
07449840bd
Less slices ( #9176 )
...
* Less slices
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-23 13:33:48 +01:00
Squirrel
00ae1fa679
Stop sending network_state to telemetry ( #9026 )
...
(We send network information to prometheus)
2021-06-09 10:56:31 +01:00
Squirrel
c0dfe2c382
Spellling corrections (no code changes) ( #8971 )
...
* Spelling corrections
* As this might break let's do as a separate PR
2021-06-01 12:51:38 +02:00
Squirrel and Bastian Köcher
dc88e6dd7e
Reduce cargo doc warnings ( #8947 )
...
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-01 10:26:10 +01:00
Squirrel
5a1cc8cff7
fixed typos ( #8664 )
2021-05-03 03:35:18 +00:00