Skip to content
Snippets Groups Projects

Draft: recurring-transfer

Closed Pascal Engélibert requested to merge recurring-transfer into master
9 files
+ 438
0
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 36
0
 
// Copyright 2021 Axiom-Team
 
//
 
// This file is part of Substrate-Libre-Currency.
 
//
 
// Substrate-Libre-Currency is free software: you can redistribute it and/or modify
 
// it under the terms of the GNU Affero General Public License as published by
 
// the Free Software Foundation, version 3 of the License.
 
//
 
// Substrate-Libre-Currency is distributed in the hope that it will be useful,
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
// GNU Affero General Public License for more details.
 
//
 
// You should have received a copy of the GNU Affero General Public License
 
// along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>.
 
 
//! Benchmarking setup for pallet-template
 
 
use super::*;
 
 
#[allow(unused)]
 
use crate::Pallet as Template;
 
use frame_benchmarking::{benchmarks, impl_benchmark_test_suite, whitelisted_caller};
 
use frame_system::RawOrigin;
 
 
benchmarks! {
 
do_something {
 
let s in 0 .. 100;
 
let caller: T::AccountId = whitelisted_caller();
 
}: _(RawOrigin::Signed(caller), s)
 
verify {
 
assert_eq!(Something::<T>::get(), Some(s));
 
}
 
}
 
 
impl_benchmark_test_suite!(Template, crate::mock::new_test_ext(), crate::mock::Test,);
Loading