Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated all pallets documentation #484

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
d0a226b
m1 fix for v.3.0.0
herou Jul 25, 2021
5ce858b
disable all local dependecies
herou Aug 3, 2021
e8b2cda
add pallet-template
herou Aug 4, 2021
4b74371
minor fix
herou Aug 4, 2021
bab2d29
node run with pallet-template v2
herou Aug 5, 2021
8f72831
add simple event pallet
herou Aug 7, 2021
d24a889
fix tests for simple_event
herou Aug 7, 2021
7cf7a32
delete pallet-template
herou Aug 8, 2021
d57cd60
add simple_map pallet v2
herou Aug 8, 2021
c5d37d7
add hello_substrate_v2 pallet
herou Aug 11, 2021
a6591ef
add double_map pallet v2
herou Aug 12, 2021
26b22b3
add basic_token v2 pallet
herou Aug 14, 2021
c590cc3
add default_instances v2 pallet
herou Aug 14, 2021
a0823dd
add fixed_point pallet v2
herou Aug 14, 2021
e80eaf9
add generic_event pallet v2
herou Aug 14, 2021
45530d7
add last_caller pallet v2
herou Aug 14, 2021
b708f8c
add lockable-currency pallet v2
herou Aug 14, 2021
2650808
add randomness pallet v2
herou Aug 17, 2021
e023d4c
quick fix
herou Aug 17, 2021
e15b2c4
add reservable-currency pallet v2
herou Aug 17, 2021
30e74cf
add vec-set pallet v2
herou Sep 5, 2021
1d5a593
add simple-map v2
herou Sep 6, 2021
a95420f
enable map-set v2
herou Sep 6, 2021
0521943
add storage_cache pallet v2
herou Sep 8, 2021
3cd3aad
add struct-storage pallet v2
herou Sep 11, 2021
d390be4
add ringbuffer-queue pallet v2
herou Sep 12, 2021
0ceb1ae
add check-membership pallet v2
herou Sep 12, 2021
6128ae1
add compound-interest pallet v2
herou Sep 15, 2021
fe6a9c1
add ringbuffer-queue pallet v2
herou Sep 15, 2021
9f31743
add charity pallet v2 (tests failing)
herou Sep 18, 2021
c038e63
add compounding-interest pallet v2
herou Sep 18, 2021
82dd765
call as static method so I can explicitly specify the type param
JoshOrndorff Sep 20, 2021
3a5c882
Merge pull request #6 from JoshOrndorff/joshy-fix-charity-test
herou Sep 20, 2021
0c89d1a
add constant-config v2 pallet
herou Sep 21, 2021
26cebf0
convert all pallets to frame v2 (simple-crowdfund tests are failing)
herou Sep 21, 2021
f891ddc
add simple-crowdfund pallet v2
herou Oct 2, 2021
7fb2034
minor changes
herou Oct 2, 2021
1f5a97e
run cargo fmt command for all pallets
herou Oct 2, 2021
071cf7d
add #![allow(clippy::unused_unit)] in each pallet
herou Oct 2, 2021
d039cf1
git clippy fix
herou Oct 7, 2021
c818a11
fix clippy for check-membership pallet
herou Oct 7, 2021
fe392a0
fix clippy errors
herou Oct 9, 2021
afa70f6
fix clippy needless_borrow
herou Oct 9, 2021
2bc9f5e
fix clippy neddless_borrow again
herou Oct 9, 2021
81badbe
Fix broken links
Oct 11, 2021
640341d
Updating events documentation according to substrate v2
herou Apr 5, 2022
57815fb
Text alignment
herou Apr 5, 2022
ef29054
Update basic-token.md documentation
herou Apr 10, 2022
e6b4025
Updated cache.md doc
herou Apr 12, 2022
4a0a0da
Update charity.md doc
herou Apr 17, 2022
6c6079a
Update constants.md documentation
herou Apr 18, 2022
3ea81f2
Update crowdfund.md documentation
herou Apr 19, 2022
ded6939
Update currency-imbalances.md documentation
herou Apr 20, 2022
a297e89
Update map-set.md documentation
herou Apr 21, 2022
34189b9
Update double.md documentation
herou Apr 22, 2022
b4b250e
Update vec-set.md documentation
herou Apr 25, 2022
d1bac01
Update randomness.md documentation
herou Apr 28, 2022
e501142
Update using-events.md documentation
herou Apr 28, 2022
372ed7e
update storage-maps.md
herou May 2, 2022
17ac6b2
Update fixed-point.md document
herou May 3, 2022
47bc9a8
Update currency.md
herou May 7, 2022
ace25d6
Update runtime-printing.md documentation
herou May 10, 2022
4f1440c
Update structs.md documentation
herou May 10, 2022
02598ab
Update pallet-coupling.md documentation
herou May 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 54 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ members = [
"consensus/sha3pow",
"traits/account-set",
]
librocksdb-sys = "6.17.3"
8 changes: 4 additions & 4 deletions nodes/basic-pow/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.

#![allow(clippy::needless_borrow)]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this? If it is in our code, we should remove the borrow. If this code comes from a Substrate macro, I'm fine with overriding adding this for now. But we should make an upstream PR to make the macro better. Here's an example of one I've done in the past paritytech/substrate#9053

use runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::{ExecutorProvider, RemoteBackend};
use sc_executor::native_executor_instance;
Expand All @@ -8,10 +8,10 @@ use sc_service::{error::Error as ServiceError, Configuration, PartialComponents,
use sha3pow::*;
use sp_api::TransactionFor;
use sp_consensus::import_queue::BasicQueue;
use sp_core::{Encode, U256};
use sp_inherents::InherentDataProviders;
use std::{sync::Arc, time::Duration};
use std::thread;
use sp_core::{U256, Encode};
use std::{sync::Arc, time::Duration};

// Our native executor instance.
native_executor_instance!(
Expand Down Expand Up @@ -195,7 +195,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
task_manager
.spawn_essential_handle()
.spawn_blocking("pow", worker_task);

// Start Mining
let mut nonce: U256 = U256::from(0);
thread::spawn(move || loop {
Expand Down
6 changes: 3 additions & 3 deletions nodes/hybrid-consensus/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.

#![allow(clippy::needless_borrow)]
use runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::{ExecutorProvider, RemoteBackend};
use sc_executor::native_executor_instance;
Expand All @@ -9,11 +9,11 @@ use sc_service::{error::Error as ServiceError, Configuration, PartialComponents,
use sha3pow::*;
use sp_api::TransactionFor;
use sp_consensus::import_queue::BasicQueue;
use sp_core::{Encode, U256};
use sp_inherents::InherentDataProviders;
use std::sync::Arc;
use std::time::Duration;
use std::thread;
use sp_core::{U256, Encode};
use std::time::Duration;

// Our native executor instance.
native_executor_instance!(
Expand Down
2 changes: 1 addition & 1 deletion nodes/kitchen-node/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.

#![allow(clippy::needless_borrow)]
use runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::RemoteBackend;
use sc_consensus_manual_seal::InstantSealParams;
Expand Down
2 changes: 1 addition & 1 deletion nodes/rpc-node/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.

#![allow(clippy::needless_borrow)]
use runtime::{self, opaque::Block, RuntimeApi};
use sc_client_api::RemoteBackend;
use sc_consensus_manual_seal::ManualSealParams;
Expand Down
Loading