Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
2a2d3c9
WIP: Upgrade substrate
libredot Sep 15, 2021
69aab30
Upgrade substrate to ce1746ddf6588c8f9ecfb77411c3cac7a2c09db3
libredot Sep 15, 2021
9524050
Update Cargo.lock
libredot Sep 15, 2021
7b760ee
Fix cargo check --features=runtime-benchmarks
libredot Sep 15, 2021
5b87a51
Upgrade substrate to e1ddbb3ffec3c8f05de6cb05d9f5f7a922788c3f
libredot Sep 15, 2021
6943ae1
Add `LightSyncStateExtension` to the chain spec as an extension
libredot Sep 15, 2021
6f58f9a
Upgrade substrate to eb4de697ccd45948254db422abbcd735ae3c295a
libredot Sep 15, 2021
5b75278
cargo fmt
libredot Sep 15, 2021
07c9e9a
Upgrade substrate to ba153b9ae050eda022f002d74d76f98d1e339a81
libredot Sep 15, 2021
ad8aa08
Upgrade substrate to 435f56edc14a3a7e895ff5370f6e5179dc547cc4
libredot Dec 29, 2021
3b6a5e4
Upgrade substrate to 88b4fc861129b63b445492e3088d7f12382f0128
libredot Dec 29, 2021
fd65a3a
Upgrade substrate to ce3c31f2bfa7e10817a8a0833faddeaee818910d
libredot Dec 29, 2021
1d637a9
Upgrade substrate to 7fcebc86856164a346f6762d339e8cc3b6ec9d30
libredot Dec 29, 2021
be7e197
Upgrade substrate to bf9683eee40f82cc4e01a05cd375b0e8bba3c8ef
libredot Dec 29, 2021
6f64218
Upgrade substrate to 12b6441ef138303f50fa2fb20895fbf57c8e4735 (polkad…
libredot Dec 29, 2021
71c198e
Upgrade substrate to e09e70a3d14b3757de0be427c6ac22dfc6fcd498 (purest…
libredot Dec 29, 2021
b510cea
bump to edition 2021; fix compile errors
libredot Dec 29, 2021
e20551c
Upgrade substrate to 3a5aa8c1a48b015b12e2419fa76b2e2530b3ac75 (purest…
libredot Dec 29, 2021
b7f6221
Fix node compile error
libredot Dec 29, 2021
1b5126b
Downgrade substrate to c881b9c86df5d0e4e3607921598768a3ab8ccdc8 (Pure…
libredot Dec 29, 2021
e838715
init pallet-evm from purestake
libredot Dec 29, 2021
5f85b02
Use purestake/substrate branch moonbeam-polkadot-v0.9.13 for consistency
libredot Dec 30, 2021
97f015a
Add evm to genesis config
libredot Dec 30, 2021
194841d
CI: bump rust toolchain version to nightly-2021-12-13
libredot Dec 30, 2021
e14113e
add pallet-ethereum: init
libredot Dec 30, 2021
22e229d
install pallet ethereum and self contained unchecked extrinsic
libredot Jan 1, 2022
1f1bc0a
impl fp_rpc::EthereumRuntimeRPCApi<Block> for Runtime
libredot Jan 1, 2022
8bda1d8
disable node/testing
libredot Jan 1, 2022
06e92f9
Add NetApi RPC endpoint
libredot Jan 3, 2022
6b4b83f
debug1
libredot Jan 3, 2022
2146964
fix compile error
libredot Jan 3, 2022
00e5fb5
add transaction converter
libredot Jan 4, 2022
845e337
use opaque::Block
libredot Jan 4, 2022
4305198
Add Eth RPC
libredot Jan 4, 2022
f9d16dc
add pallet-deposit for transferring fund from substrate to evm
libredot Jan 5, 2022
a52ef77
prefund accounts
libredot Jan 5, 2022
447685f
set eth chainid to 12191
libredot Jan 5, 2022
c7d6c0d
set ss58prefix to 42
libredot Jan 5, 2022
c8234cc
use forked frontier
libredot Jan 5, 2022
b7c0335
bump frontier: add evm decimal converter
libredot Jan 5, 2022
6d56054
patch ss58-registry
libredot Jan 6, 2022
8a84fd4
Revert "set ss58prefix to 42"
libredot Jan 6, 2022
d9ef567
bump frontier: add TokenDecimals support in pallet-evm
libredot Jan 6, 2022
26ee956
pallet-evm: set CallOrigin/WithdrawOrigin to EnsureAddressTruncated
libredot Jan 7, 2022
cf92761
drop FrontierBlockImport consensus support to maintain backward compa…
libredot Jan 7, 2022
cf820f7
add pallet-template
libredot Jan 10, 2022
7ae4f4a
upgrade frontier(pallet-evm): add fn token_decimals() -> u8
libredot Jan 11, 2022
bcf1900
add standard precompiles
libredot Jan 11, 2022
0763912
add PalletTemplatePrecompile
libredot Jan 11, 2022
3de979c
create pallet-template-precompiles under /precompiles
libredot Jan 12, 2022
eaa5ac7
deposit: add benchmarking
libredot Jan 12, 2022
62b2692
add PalletTemplateInterface.sol
libredot Jan 12, 2022
bc50ad5
pallet-template-precompiles: fix do_something() dispatch
libredot Jan 12, 2022
46e2dc8
add pallet-evm-precompile-balances-erc20 from moonbeam
libredot Jan 12, 2022
bbdec64
pallet-template-precompiles: fix deps repo
libredot Jan 13, 2022
6527cb9
init withdraw-balance-precompiles
libredot Jan 13, 2022
d63fef9
add withdraw-balance-precompiles to runtime
libredot Jan 13, 2022
06b2850
pallet-evm: impl custom FeeCalculator and GasWeightMapping
libredot Jan 20, 2022
36a693f
withdraw balance debug
libredot Jan 20, 2022
ef51d77
withdraw-balance: fix compile errors
libredot Jan 20, 2022
a71b677
add nftmart-nft-precompiles
libredot Jan 20, 2022
75fced0
init nftmart-{auction,order}-precompiles
libredot Jan 20, 2022
108838e
update nftmart-* precompiles contract interface
libredot Jan 20, 2022
661cb97
add pallet-nop and precompiles for debugging
libredot Jan 25, 2022
d2c39e0
add frame-system-precompiles
libredot Feb 7, 2022
3df14ba
initialize precompile opcode placeholder to allow calling from other …
libredot Feb 11, 2022
8f94d48
nftmart-nft-precompiles: add arg parsing logic
libredot Feb 15, 2022
46443e2
add account type conversion
libredot Feb 17, 2022
2692b88
nftmart-nft-precompiles: dispatch_call: burn
libredot Feb 17, 2022
b836dbe
nftmart-nft-precompiles: dispatch_call: mint
libredot Feb 17, 2022
9f61529
nftmart-nft-precompiles: dispatch_call: destroy_class
libredot Feb 17, 2022
59b3606
nftmart-nft-precompiles: dispatch_call: create_class
libredot Feb 17, 2022
3694215
nftmart-nft-precompiles: dispatch_call: proxy_mint
libredot Feb 17, 2022
66cb1be
sp-arithmetic: turn off default-features to make compiler happy
libredot Feb 17, 2022
878db85
precompiles: add write methods for all nft pallets
libredot Feb 21, 2022
09659f5
rewrite precompiles with BTreeMap
libredot Feb 23, 2022
0ad6aca
Add return value to createClass()
libredot Feb 23, 2022
de996ae
impl EvmData for NftItem
libredot Feb 23, 2022
831bfe3
add pallet-ethereum-chain-id to make chain_id configurable
libredot Mar 1, 2022
0d381f6
fix token decimals
libredot Mar 1, 2022
0780585
fix withdraw-balance precompile gasometer
libredot Mar 1, 2022
9e9bd82
init pallet-staking-precompiles
libredot Mar 3, 2022
2251961
pallet-staking-precompiles: add chill()
libredot Mar 3, 2022
831370f
init pallet-identity
libredot Mar 4, 2022
3cc4caa
pallet-staking-precompiles: add more methods
libredot Mar 7, 2022
e9d1207
nftmart-nft-precompiles: add read methods
libredot Mar 8, 2022
b030cd6
debug: disable non essential precompiles
libredot Mar 17, 2022
a2d20a5
precompiles/utils: reduce warning
libredot Mar 17, 2022
d619bd8
pallet-identity-precompiles: add set_name()
libredot Mar 17, 2022
317ba02
ethereum-chain-id: add setter method
libredot Mar 17, 2022
1c09436
runtime: expose EthereumChainId's methods
libredot Mar 17, 2022
20bea18
bump runtime version to 280
libredot Mar 17, 2022
3c64b73
housekeeping
libredot Mar 29, 2022
b6f06e0
fix cargo bench --features runtime-benchmarks
libredot Mar 29, 2022
8418e80
bump frontier
libredot Mar 29, 2022
498aeab
fix readme
libredot Mar 29, 2022
6b2cb31
add cargo doc workflow build step
libredot Mar 29, 2022
ada86a8
frontier: use associated const for TOKEN_DECIMAL
libredot Apr 5, 2022
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
Prev Previous commit
Next Next commit
Fix cargo check --features=runtime-benchmarks
  • Loading branch information
navigaid committed Dec 23, 2021
commit 7b760eeb9b77d440466896e994885c0b137eae6c
31 changes: 22 additions & 9 deletions node/aura-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,14 +729,30 @@ impl_runtime_apis! {

#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(extra: bool) -> (
Vec<frame_benchmarking::BenchmarkList>,
Vec<frame_support::traits::StorageInfo>,
) {
use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};
use frame_support::traits::StorageInfoTrait;
use frame_system_benchmarking::Pallet as SystemBench;

let mut list = Vec::<BenchmarkList>::new();

list_benchmark!(list, extra, frame_system, SystemBench::<Runtime>);
list_benchmark!(list, extra, pallet_balances, Balances);
list_benchmark!(list, extra, pallet_timestamp, Timestamp);
list_benchmark!(list, extra, pallet_template, TemplateModule);

let storage_info = AllPalletsWithSystem::storage_info();

return (list, storage_info)
}

fn dispatch_benchmark(
config: frame_benchmarking::BenchmarkConfig
) -> Result<
(Vec<frame_benchmarking::BenchmarkBatch>, Vec<StorageInfo>),
sp_runtime::RuntimeString,
> {
) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {
use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark, TrackedStorageKey};
use frame_support::traits::StorageInfoTrait;

use frame_system_benchmarking::Pallet as SystemBench;
impl frame_system_benchmarking::Config for Runtime {}
Expand All @@ -754,20 +770,17 @@ impl_runtime_apis! {
hex_literal::hex!("26aa394eea5630e07c48ae0c9558cef780d41e5e16056765bc8461851072c9d7").to_vec().into(),
];

let storage_info = AllPalletsWithSystem::storage_info();

let mut batches = Vec::<BenchmarkBatch>::new();
let params = (&config, &whitelist);

add_benchmark!(params, batches, frame_system, SystemBench::<Runtime>);
add_benchmark!(params, batches, pallet_balances, Balances);
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
add_benchmark!(params, batches, pallet_utility, Utility);

add_benchmark!(params, batches, pallet_template, TemplateModule);

if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) }
Ok((batches, storage_info))
Ok(batches)
}
}
}