mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
Composite accounts (#4820)
* Basic account composition. * Add try_mutate_exists * De-duplicate * Refactor away the UpdateBalanceOutcome * Expunge final UpdateBalanceOutcome refs * Refactor transfer * Refactor reservable currency stuff. * Test with the alternative setup. * Fixes * Test with both setups. * Fixes * Fix * Fix macros * Make indices opt-in * Remove CreationFee, and make indices opt-in. * Fix construct_runtime * Fix last few bits * Fix tests * Update trait impls * Don't hardcode the system event * Make tests build and fix some stuff. * Pointlessly bump runtime version * Fix benchmark * Another fix * Whitespace * Make indices module economically safe * Migrations for indices. * Fix * Whilespace * Trim defunct migrations * Remove unused storage item * More contains_key fixes * Docs. * Bump runtime * Remove unneeded code * Fix test * Fix test * Update frame/balances/src/lib.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com> * Fix ED logic * Repatriate reserved logic * Typo * Fix typo * Update frame/system/src/lib.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com> * Update frame/system/src/lib.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com> * Last few fixes * Another fix * Build fix Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Jaco Greeff <jacogr@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
error: `System` module declaration is missing. Please add this line: `System: system::{Module, Call, Storage, Config, Event},`
|
||||
error: `System` module declaration is missing. Please add this line: `System: system::{Module, Call, Storage, Config, Event<T>},`
|
||||
--> $DIR/missing_system_module.rs:8:2
|
||||
|
|
||||
8 | {
|
||||
|
||||
@@ -99,7 +99,7 @@ frame_support::construct_runtime!(
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
System: system::{Module, Call, Event},
|
||||
System: system::{Module, Call, Event<T>},
|
||||
Module1_1: module1::<Instance1>::{Module, Call, Storage},
|
||||
Module2: module2::{Module, Call, Storage},
|
||||
Module1_2: module1::<Instance2>::{Module, Call, Storage},
|
||||
|
||||
@@ -247,7 +247,7 @@ frame_support::construct_runtime!(
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
System: system::{Module, Call, Event},
|
||||
System: system::{Module, Call, Event<T>},
|
||||
Module1_1: module1::<Instance1>::{
|
||||
Module, Call, Storage, Event<T>, Config<T>, Origin<T>, Inherent
|
||||
},
|
||||
|
||||
@@ -173,7 +173,7 @@ frame_support::construct_runtime!(
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
System: system::{Module, Call, Event},
|
||||
System: system::{Module, Call, Event<T>},
|
||||
Module: module::{Module, Call, Storage, Config},
|
||||
}
|
||||
);
|
||||
|
||||
@@ -23,7 +23,7 @@ pub trait Trait: 'static + Eq + Clone {
|
||||
type BlockNumber: Decode + Encode + EncodeLike + Clone + Default;
|
||||
type Hash;
|
||||
type AccountId: Encode + EncodeLike + Decode;
|
||||
type Event: From<Event>;
|
||||
type Event: From<Event<Self>>;
|
||||
type ModuleToIndex: frame_support::traits::ModuleToIndex;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,10 @@ impl<T: Trait> Module<T> {
|
||||
}
|
||||
|
||||
frame_support::decl_event!(
|
||||
pub enum Event {
|
||||
pub enum Event<T> where BlockNumber = <T as Trait>::BlockNumber {
|
||||
ExtrinsicSuccess,
|
||||
ExtrinsicFailed,
|
||||
Ignore(BlockNumber),
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user