Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

seal: Add automated weights for contract API calls #7017

Merged
34 commits merged into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
407920b
seal: Add capability to put uninstrumented code (for benchmarks)
athei Jul 31, 2020
343f0fb
seal: Cap the the data length for deposited events
athei Aug 19, 2020
1235f26
seal: Fix error reporting in the case out of bound sandbox access
athei Aug 27, 2020
ec69d05
seal: Refactor existing benchmarks
athei Aug 3, 2020
b1a1133
seal: Convert benchmark file to tabs
athei Aug 5, 2020
dfa6076
seal: Add benchmarks for functions called by contracts
athei Aug 10, 2020
2cbe472
seal: Create a default schedule from benchmark generated WeightInfo
athei Aug 31, 2020
1e065cf
seal: Make use of WeightInfo in extrinsic weight annotations
athei Sep 1, 2020
c680745
seal: Replace the old schedule by the benchmark generated one
athei Sep 1, 2020
0132ede
Merge branch 'master' into at-seal-api-benchmarks
athei Sep 23, 2020
ca7742d
Review: Fix copy paste typo in schedule construction
athei Sep 23, 2020
cdec9ae
Review: Fix stale docs
athei Sep 23, 2020
0a2bd2a
Fix whitespace errors
athei Sep 23, 2020
771bf8a
Review: Use checked_div in order to be more defensive
athei Sep 23, 2020
a326fac
Merge branch 'master' into at-seal-api-benchmarks
athei Sep 24, 2020
d76bcde
Review: Rename no_charge to already_charged
athei Sep 24, 2020
b3aa6ac
Review: Whitelist caller of extrinsics
athei Sep 24, 2020
678f155
Review: Remove trailing whitespace
athei Sep 24, 2020
190144e
Review: Remove confusing "self::" syntax
athei Sep 24, 2020
dd2edeb
Review: Add docs for the benchmark prepration submodule
athei Sep 24, 2020
4e65609
Review: Move code generation functions to own module
athei Sep 24, 2020
687c2a5
Review: Refactor and document benchmark helper functions
athei Sep 24, 2020
b42e400
Remove additional empty line
athei Sep 24, 2020
56b8d31
Added missing comment on caller_funding
athei Sep 24, 2020
a7d3da1
Update frame/contracts/src/benchmarking/code.rs
athei Sep 24, 2020
09766bb
Fix missing sp_std::prelude import in code.rs
athei Sep 25, 2020
c54fa98
Merge branch 'master' into at-seal-api-benchmarks
athei Sep 25, 2020
9d1c66b
Merge remote-tracking branch 'origin/master' into at-seal-api-benchmarks
shawntabrizi Oct 6, 2020
e565433
cargo run --release --features runtime-benchmarks --manifest-path bin…
shawntabrizi Oct 6, 2020
036a8ba
Use weights from the benchmark machine for the substrate node
athei Oct 6, 2020
2c154dd
Remove prefixes from Schedule members
athei Oct 7, 2020
6f2f333
Data lengths in the WeightInfo Trait are specified in kilobytes
athei Oct 7, 2020
51a8c38
Rename ApiWeights to HostFunctionWeights
athei Oct 8, 2020
94a08b5
Merge branch 'master' into at-seal-api-benchmarks
athei Oct 8, 2020
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
6 changes: 3 additions & 3 deletions frame/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub use crate::gas::{Gas, GasMeter};
pub use crate::exec::{ExecResult, ExecReturnValue};
pub use crate::wasm::ReturnCode as RuntimeReturnCode;
pub use crate::weight_info::WeightInfo;
pub use crate::schedule::Schedule;
pub use crate::schedule::{Schedule, ApiWeights, InstructionWeights};

use sp_core::crypto::UncheckedFrom;
use sp_std::{prelude::*, marker::PhantomData, fmt::Debug};
Expand Down Expand Up @@ -704,7 +704,7 @@ decl_event! {

/// Contract has been evicted and is now in tombstone state.
/// \[contract, tombstone\]
///
///
/// # Params
///
/// - `contract`: `AccountId`: The account ID of the evicted contract.
Expand All @@ -713,7 +713,7 @@ decl_event! {

/// Restoration for a contract has been successful.
/// \[donor, dest, code_hash, rent_allowance\]
///
///
/// # Params
///
/// - `donor`: `AccountId`: Account ID of the restoring contract
Expand Down
Loading