Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Refactor Account Storage into Accounts Pallet #8254

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
00302af
Initial setup
shawntabrizi Mar 3, 2021
b650e71
more
shawntabrizi Mar 3, 2021
f30ab3b
Merge branch 'master' into shawntabrizi-refactor-accounts
shawntabrizi Mar 4, 2021
4f3634e
fixes
shawntabrizi Mar 4, 2021
f0b52de
updates
shawntabrizi Mar 4, 2021
6dc817f
more fixes
shawntabrizi Mar 4, 2021
c9be890
expose hashed key for
shawntabrizi Mar 4, 2021
48e2002
Introduce ReferencedAccount
shawntabrizi Mar 4, 2021
bfd0016
more ReferencedAccount
shawntabrizi Mar 4, 2021
b304543
node-template fix
shawntabrizi Mar 4, 2021
81a7749
Add Basic Account to FRAME System
shawntabrizi Mar 4, 2021
7e1e4c3
start moving tests
shawntabrizi Mar 4, 2021
bf6f729
more tests moved
shawntabrizi Mar 4, 2021
049e718
fix system tests
shawntabrizi Mar 4, 2021
7343111
downgrade from frame to pallet
shawntabrizi Mar 4, 2021
2244675
fixing up tests
shawntabrizi Mar 4, 2021
c96b5e5
fix more tests
shawntabrizi Mar 4, 2021
27d97cc
fix more tests
shawntabrizi Mar 5, 2021
a3d14fe
Update frame/accounts/src/lib.rs
gavofyork Mar 5, 2021
284fc25
Update frame/accounts/src/lib.rs
gavofyork Mar 5, 2021
3ff3748
Update frame/accounts/src/lib.rs
gavofyork Mar 5, 2021
e4cd56d
Merge branch 'master' into shawntabrizi-refactor-accounts
shawntabrizi Mar 8, 2021
f7ed2ba
fix more tests
shawntabrizi Mar 8, 2021
586bf73
fix more tests
shawntabrizi Mar 8, 2021
02fa345
fix more tests
shawntabrizi Mar 9, 2021
8e889f6
fix more tests
shawntabrizi Mar 9, 2021
3956a23
executor test fixes
shawntabrizi Mar 9, 2021
7c84785
use proper storage item for executor tests
shawntabrizi Mar 9, 2021
1e2185a
more test fixes
shawntabrizi Mar 9, 2021
b9fdb7e
move trait impls out of mod pallet
shawntabrizi Mar 9, 2021
9308566
Merge branch 'master' into shawntabrizi-refactor-accounts
shawntabrizi Mar 9, 2021
89303fd
merge patches
shawntabrizi Mar 9, 2021
add54ec
fix contract tests
shawntabrizi Mar 9, 2021
031a2b7
more fixes
shawntabrizi Mar 11, 2021
ccd5ad1
Merge branch 'master' into shawntabrizi-refactor-accounts
shawntabrizi Mar 11, 2021
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
56 changes: 56 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ members = [
"client/tracing/proc-macro",
"client/transaction-pool",
"client/transaction-pool/graph",
"frame/accounts",
"frame/system/rpc/runtime-api",
"frame/assets",
"frame/atomic-swap",
"frame/aura",
Expand Down Expand Up @@ -114,7 +116,6 @@ members = [
"frame/support/test",
"frame/system",
"frame/system/benchmarking",
"frame/system/rpc/runtime-api",
"frame/timestamp",
"frame/transaction-payment",
"frame/transaction-payment/rpc",
Expand Down
6 changes: 2 additions & 4 deletions bin/node-template/pallets/template/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use sp_runtime::{
use frame_system as system;

type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;
type Block = frame_system::mocking::MockBlock<Test>;

// Configure a mock runtime to test the pallet.
frame_support::construct_runtime!(
Expand Down Expand Up @@ -44,9 +44,7 @@ impl system::Config for Test {
type BlockHashCount = BlockHashCount;
type Version = ();
type PalletInfo = PalletInfo;
type AccountData = ();
type OnNewAccount = ();
type OnKilledAccount = ();
type AccountStorage = System;
type SystemWeightInfo = ();
type SS58Prefix = SS58Prefix;
}
Expand Down
1 change: 1 addition & 0 deletions bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ codec = { package = "parity-scale-codec", version = "2.0.0", default-features =

pallet-aura = { version = "3.0.0", default-features = false, path = "../../../frame/aura" }
pallet-balances = { version = "3.0.0", default-features = false, path = "../../../frame/balances" }
pallet-accounts = { version = "3.0.0", default-features = false, path = "../../../frame/accounts" }
frame-support = { version = "3.0.0", default-features = false, path = "../../../frame/support" }
pallet-grandpa = { version = "3.0.0", default-features = false, path = "../../../frame/grandpa" }
pallet-randomness-collective-flip = { version = "3.0.0", default-features = false, path = "../../../frame/randomness-collective-flip" }
Expand Down
Loading