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

Migrate pallet-balances to pallet attribute macro #7936

Merged
32 commits merged into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c43206a
Initial migration of balances pallet
ascjones Jan 20, 2021
bb0618b
Fix some errors
ascjones Jan 20, 2021
b59a92c
Remove unused imports
ascjones Jan 20, 2021
88aaa92
Formatting and removing some todos
ascjones Jan 20, 2021
8115047
Delete Subtrait
ascjones Jan 20, 2021
9886c96
Add genesis builder impls for tests
ascjones Jan 20, 2021
58c981f
Fix GenesisConfig impl
ascjones Jan 20, 2021
5a7f077
Make set_balance visible to tests, rename RawEvent to Event
ascjones Jan 20, 2021
33f5d6f
Fix tests with Event rename etc.
ascjones Jan 20, 2021
284d8be
More test RawEvent renames
ascjones Jan 20, 2021
8f25812
Even more RawEvent renames
ascjones Jan 20, 2021
dd415df
Merge branch 'master' into aj-migrate-balances
ascjones Jan 20, 2021
4347055
Merge branch 'master' into aj-migrate-balances
ascjones Jan 21, 2021
6fe2313
Rename module to pallet in comments
ascjones Jan 21, 2021
c147734
Add PalletInfo impl to avid storage collision, fixes tests
ascjones Jan 21, 2021
b8d727b
Merge branch 'master' into aj-migrate-balances
ascjones Jan 21, 2021
05e52eb
Apply review suggestion: remove trailing a
ascjones Jan 21, 2021
7ef8416
Merge branch 'master' into aj-migrate-balances
ascjones Jan 25, 2021
c6a8656
BalancesEvent alias
ascjones Jan 25, 2021
7e6d5a2
Remove BalancesEvent alias
ascjones Jan 25, 2021
f3b7f5e
Merge remote-tracking branch 'origin/aj-migrate-balances' into aj-mig…
ascjones Jan 25, 2021
aaedff0
Merge branch 'master' into aj-migrate-balances
ascjones Jan 25, 2021
da1f418
Merge branch 'master' into aj-migrate-balances
ascjones Jan 26, 2021
94c8404
Review suggestion: remove redundant comment
ascjones Jan 26, 2021
35e34ad
Apply review suggestion: make vis super
ascjones Jan 26, 2021
1a0b4e5
Fis doc links
ascjones Jan 26, 2021
b4fb4a8
Merge branch 'master' into aj-migrate-balances
ascjones Jan 26, 2021
46a4de6
Add RawEvent alias
ascjones Jan 26, 2021
e497f3f
Add missing Instance parameter to deprecated RawEvent alias
ascjones Jan 26, 2021
9cc51a9
Merge branch 'master' into aj-migrate-balances
ascjones Jan 27, 2021
0602d67
Merge branch 'master' into aj-migrate-balances
ascjones Feb 9, 2021
a610b39
Fix RawEvent deprecation warnings
ascjones Feb 9, 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
8 changes: 4 additions & 4 deletions bin/node/executor/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use codec::{Encode, Decode, Joiner};
use frame_support::{
StorageValue, StorageMap,
StorageMap,
traits::Currency,
weights::{GetDispatchInfo, DispatchInfo, DispatchClass},
};
Expand Down Expand Up @@ -336,7 +336,7 @@ fn full_native_block_import_works() {
},
EventRecord {
phase: Phase::ApplyExtrinsic(1),
event: Event::pallet_balances(pallet_balances::RawEvent::Transfer(
event: Event::pallet_balances(pallet_balances::Event::Transfer(
alice().into(),
bob().into(),
69 * DOLLARS,
Expand Down Expand Up @@ -389,7 +389,7 @@ fn full_native_block_import_works() {
EventRecord {
phase: Phase::ApplyExtrinsic(1),
event: Event::pallet_balances(
pallet_balances::RawEvent::Transfer(
pallet_balances::Event::Transfer(
bob().into(),
alice().into(),
5 * DOLLARS,
Expand All @@ -412,7 +412,7 @@ fn full_native_block_import_works() {
EventRecord {
phase: Phase::ApplyExtrinsic(2),
event: Event::pallet_balances(
pallet_balances::RawEvent::Transfer(
pallet_balances::Event::Transfer(
alice().into(),
bob().into(),
15 * DOLLARS,
Expand Down
1 change: 0 additions & 1 deletion bin/node/executor/tests/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

use codec::{Encode, Joiner};
use frame_support::{
StorageValue,
traits::Currency,
weights::{GetDispatchInfo, constants::ExtrinsicBaseWeight, IdentityFee, WeightToFeePolynomial},
};
Expand Down
Loading