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

feat: add utility pallet to allow batch txs execution #246

Merged
merged 5 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
15 changes: 15 additions & 0 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 @@ -78,6 +78,7 @@ pallet-session = {git = 'https://github.com/paritytech/substrate', branch = 'roc
pallet-staking = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
pallet-staking-reward-curve = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
pallet-treasury = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
pallet-utility = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
sc-authority-discovery = {git = "https://github.com/paritytech/substrate.git", branch = 'rococo-v1'}
sc-consensus-babe = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
sc-consensus-babe-rpc = {git = 'https://github.com/paritytech/substrate', branch = 'rococo-v1'}
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pallet-staking = {default-features = false, version = '3.0.0'}
pallet-staking-reward-curve = {default-features = false, version = '3.0.0'}
pallet-tips = {default-features = false, version = '=3.0.0'}
pallet-treasury = {default-features = false, version = '3.0.0'}
pallet-utility = {default-features = false, version = '3.0.0'}
sp-authority-discovery = {default-features = false, version = '3.0.0'}
sp-consensus-babe = {default-features = false, version = '0.9.0'}

Expand Down Expand Up @@ -131,6 +132,7 @@ std = [
'pallet-randomness-collective-flip/std',
'pallet-scheduler/std',
'pallet-sudo/std',
'pallet-utility/std',
'pallet-timestamp/std',
'pallet-tips/std',
'pallet-transaction-payment/std',
Expand Down
8 changes: 8 additions & 0 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ impl Filter<Call> for BaseFilter {
| Call::Treasury(_)
| Call::Identity(_)
| Call::Offences(_)
| Call::Utility(_)
| Call::Sudo(_) => true,

Call::AMM(_)
Expand Down Expand Up @@ -416,6 +417,12 @@ impl pallet_identity::Config for Runtime {
type WeightInfo = ();
}

impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type WeightInfo = ();
}

/// ORML Configurations

impl orml_tokens::Config for Runtime {
Expand Down Expand Up @@ -990,6 +997,7 @@ construct_runtime!(
Offences: pallet_offences::{Pallet, Call, Storage, Event},
Historical: session_historical::{Pallet},
Tips: pallet_tips::{Pallet, Call, Storage, Event<T>},
Utility: pallet_utility::{Pallet, Call, Event},

// ORML related modules
Tokens: orml_tokens::{Pallet, Storage, Call, Event<T>, Config<T>},
Expand Down