git.delta.rocks / unique-network / refs/commits / 326c9b419cb9

difftreelog

feat evm migration pallet

Yaroslav Bolyukin2021-08-12parent: #b7be484.patch.diff
in: master

5 files changed

addedpallets/evm-migration/Cargo.tomldiffbeforeafterboth

no changes

addedpallets/evm-migration/src/benchmarking.rsdiffbeforeafterboth

no changes

addedpallets/evm-migration/src/lib.rsdiffbeforeafterboth

no changes

modifiedruntime/Cargo.tomldiffbeforeafterboth
23 'frame-support/runtime-benchmarks',23 'frame-support/runtime-benchmarks',
24 'frame-system-benchmarking',24 'frame-system-benchmarking',
25 'frame-system/runtime-benchmarks',25 'frame-system/runtime-benchmarks',
26 'pallet-evm-migration/runtime-benchmarks',
26 'pallet-balances/runtime-benchmarks',27 'pallet-balances/runtime-benchmarks',
27 'pallet-timestamp/runtime-benchmarks',28 'pallet-timestamp/runtime-benchmarks',
28 'pallet-nft/runtime-benchmarks',29 'pallet-nft/runtime-benchmarks',
56 'pallet-treasury/std',57 'pallet-treasury/std',
57 'pallet-vesting/std',58 'pallet-vesting/std',
58 'pallet-evm/std',59 'pallet-evm/std',
60 'pallet-evm-migration/std',
59 'pallet-evm-contract-helpers/std',61 'pallet-evm-contract-helpers/std',
60 'pallet-evm-transaction-payment/std',62 'pallet-evm-transaction-payment/std',
61 'pallet-evm-coder-substrate/std',63 'pallet-evm-coder-substrate/std',
392# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }394# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
393pallet-nft-transaction-payment = { path = '../pallets/nft-transaction-payment', default-features = false, version = '3.0.0' }395pallet-nft-transaction-payment = { path = '../pallets/nft-transaction-payment', default-features = false, version = '3.0.0' }
394pallet-nft-charge-transaction = { path = '../pallets/nft-charge-transaction', default-features = false, version = '3.0.0' }396pallet-nft-charge-transaction = { path = '../pallets/nft-charge-transaction', default-features = false, version = '3.0.0' }
397pallet-evm-migration = { path = '../pallets/evm-migration', default-features = false }
395pallet-evm-contract-helpers = { path = '../pallets/evm-contract-helpers', default-features = false }398pallet-evm-contract-helpers = { path = '../pallets/evm-contract-helpers', default-features = false }
396pallet-evm-transaction-payment = { path = '../pallets/evm-transaction-payment', default-features = false }399pallet-evm-transaction-payment = { path = '../pallets/evm-transaction-payment', default-features = false }
397pallet-evm-coder-substrate = { default-features = false, path = "../pallets/evm-coder-substrate" }400pallet-evm-coder-substrate = { default-features = false, path = "../pallets/evm-coder-substrate" }
modifiedruntime/src/lib.rsdiffbeforeafterboth
252 type Currency = Balances;252 type Currency = Balances;
253 type Event = Event;253 type Event = Event;
254 type OnMethodCall = (254 type OnMethodCall = (
255 pallet_evm_migration::OnMethodCall<Self>,
255 pallet_nft::NftErcSupport<Self>,256 pallet_nft::NftErcSupport<Self>,
256 pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,257 pallet_evm_contract_helpers::HelpersOnMethodCall<Self>,
257 );258 );
263 type FindAuthor = EthereumFindAuthor<Aura>;264 type FindAuthor = EthereumFindAuthor<Aura>;
264}265}
266
267impl pallet_evm_migration::Config for Runtime {
268 type WeightInfo = pallet_evm_migration::weights::SubstrateWeight<Self>;
269}
265270
266pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);271pub struct EthereumFindAuthor<F>(core::marker::PhantomData<F>);
267impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {272impl<F: FindAuthor<u32>> FindAuthor<H160> for EthereumFindAuthor<F> {
819 EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,824 EvmCoderSubstrate: pallet_evm_coder_substrate::{Pallet, Storage} = 150,
820 EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,825 EvmContractHelpers: pallet_evm_contract_helpers::{Pallet, Storage} = 151,
821 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,826 EvmTransactionPayment: pallet_evm_transaction_payment::{Pallet} = 152,
827 EvmMigration: pallet_evm_migration::{Pallet, Call, Storage} = 153,
822 }828 }
823);829);
824830
1180 let mut batches = Vec::<BenchmarkBatch>::new();1186 let mut batches = Vec::<BenchmarkBatch>::new();
1181 let params = (&config, &whitelist);1187 let params = (&config, &whitelist);
11821188
1189 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);
1183 add_benchmark!(params, batches, pallet_nft, Nft);1190 add_benchmark!(params, batches, pallet_nft, Nft);
1184 add_benchmark!(params, batches, pallet_inflation, Inflation);1191 add_benchmark!(params, batches, pallet_inflation, Inflation);
11851192