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

Add XCM DryRun and LocationToAccount runtime APIs to all runtimes #2980

Merged
merged 68 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1b0a25e
point dependencies to moonbeam-polkadot-sdk-stable2407
gonzamontiel Aug 26, 2024
0fa229f
bump packages versions to match polkadot-sdk
gonzamontiel Aug 30, 2024
4382107
apply TransactionPov changes
gonzamontiel Aug 30, 2024
740cd83
update runtime configs (wip)
gonzamontiel Aug 30, 2024
f1d5a15
update imports
gonzamontiel Sep 2, 2024
acb3659
mute hrmp channel moonriver - Litmus (#2914)
librelois Aug 24, 2024
42a12fd
Add step to Build workflow to check for WASM runtime sizes (#2888)
pLabarta Aug 27, 2024
22541c9
add log event (#2918)
RomarQ Aug 28, 2024
375d009
Extract Storage Read costs for dev tests involved in #2786 (#2915)
pLabarta Aug 29, 2024
9f7daa1
Fix auto-pause xcm: incoming XCMP messages where dropped when auto-pa…
librelois Aug 30, 2024
631077f
Set the block size to 60mln gas for moonbeam (#2921)
noandrea Aug 30, 2024
d84c61f
Add pallet_parameters (moonbase only) (#2923)
TarekkMA Aug 30, 2024
e0e8267
make moonbeam compile
gonzamontiel Sep 2, 2024
d95ff88
remove cumulus_pallet_dmp_queue
gonzamontiel Sep 2, 2024
fd33a25
remove unused import
gonzamontiel Sep 2, 2024
6362bb7
add proper para_id to MockValidationDataInherentDataProvider
gonzamontiel Sep 3, 2024
800d803
update config for tests
gonzamontiel Sep 3, 2024
5ba6607
add MockTimestampInherentDataProvider to simulate consistent and sequ…
gonzamontiel Sep 4, 2024
b9a8235
Merge remote-tracking branch 'origin' into moonbeam-polkadot-stable2407
gonzamontiel Sep 5, 2024
7b069da
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
gonzamontiel Sep 5, 2024
31637d3
Revert "apply TransactionPov changes"
gonzamontiel Sep 10, 2024
a008431
update cargo lock pins
gonzamontiel Sep 10, 2024
65eb283
remove import of deleted TransacionPoV
gonzamontiel Sep 10, 2024
a5a9048
Make cargo test compile
gonzamontiel Sep 12, 2024
4c00b9e
remove deprecated tresury pallet tests, add some for the new function…
gonzamontiel Sep 17, 2024
fd62226
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
gonzamontiel Sep 18, 2024
95783df
fix tests
gonzamontiel Sep 18, 2024
705eca7
fix remaining dev tests
gonzamontiel Sep 19, 2024
1c08dca
fix licenses
gonzamontiel Sep 20, 2024
b326d63
fix lazy loading backend for stable
gonzamontiel Sep 20, 2024
7456ad7
remove unused patch
gonzamontiel Sep 20, 2024
15086d6
fix linters
gonzamontiel Sep 20, 2024
87acd36
fix cargo test with benchmarking and tracing enabled
gonzamontiel Sep 20, 2024
66bbfc8
fix lazy loading
gonzamontiel Sep 20, 2024
22e52d3
fix command for lazy loading
gonzamontiel Sep 20, 2024
90e42e3
update frontier pin
gonzamontiel Sep 20, 2024
b8fff6b
support new 'stableYYMM' versioning for polkadot
gonzamontiel Sep 23, 2024
174674a
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
gonzamontiel Sep 23, 2024
10f3334
update polkadot sdk pin
gonzamontiel Sep 23, 2024
ed46225
fix download-polkadot script
gonzamontiel Sep 23, 2024
94d0daa
simplify script
gonzamontiel Sep 23, 2024
5307533
Replace thread_local with AtomicU64 (as per review request)
gonzamontiel Sep 23, 2024
e09df39
remove deprecated test code
gonzamontiel Sep 23, 2024
e473197
use latest version of nextest
RomarQ Sep 23, 2024
abd48b3
add DryRunApi and LocationToAccountApi
Agusrodri Sep 25, 2024
9cfc747
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
gonzamontiel Sep 26, 2024
f19c9ef
Update precompiles/collective/src/mock.rs
gonzamontiel Sep 26, 2024
6daef57
apply review suggestions
gonzamontiel Sep 26, 2024
f7b044c
Revert "apply review suggestions"
gonzamontiel Sep 26, 2024
912650e
apply review suggestions
gonzamontiel Sep 26, 2024
97fe208
fix lazy-loading
RomarQ Sep 26, 2024
e12e8e5
re add reset_issuance
gonzamontiel Sep 26, 2024
e96f38f
add missing weights
gonzamontiel Sep 26, 2024
23bc9be
remove unused var
gonzamontiel Sep 26, 2024
b9cf00e
add TS tests
Agusrodri Sep 27, 2024
d3a91c0
cleanup
Agusrodri Sep 27, 2024
c5a9d96
fmt
Agusrodri Sep 27, 2024
88e14af
Merge branch 'moonbeam-polkadot-stable2407' into agustin-xcm-dry-run-api
RomarQ Sep 28, 2024
a233a0a
Merge branch 'master' into moonbeam-polkadot-stable2407
gonzamontiel Sep 30, 2024
76ac5d3
fix download correct binaries
gonzamontiel Oct 1, 2024
fa1324d
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
gonzamontiel Oct 1, 2024
8111ba7
cargo fmt
gonzamontiel Oct 1, 2024
09eddbd
make polkadot worker binearies executable
gonzamontiel Oct 1, 2024
a0fb852
Merge branch 'moonbeam-polkadot-stable2407' into agustin-xcm-dry-run-api
RomarQ Oct 1, 2024
966083a
configure XcmRecorder for mocks
gonzamontiel Oct 1, 2024
eb1bbe5
Merge remote-tracking branch 'origin/master' into moonbeam-polkadot-s…
Agusrodri Oct 1, 2024
105fb2a
Merge branch 'moonbeam-polkadot-stable2407' into agustin-xcm-dry-run-api
gonzamontiel Oct 2, 2024
89bd68c
Merge branch 'master' into agustin-xcm-dry-run-api
Agusrodri Oct 2, 2024
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
Set the block size to 60mln gas for moonbeam (#2921)
* set the block size to 60mln gas for moonbeam

* update mbip-5 value in test
  • Loading branch information
noandrea authored and gonzamontiel committed Sep 4, 2024
commit 631077f2809eb73f727c56dcfc43cfff40d6577d
14 changes: 7 additions & 7 deletions runtime/moonbeam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ pub mod currency {

/// Maximum weight per block
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND, u64::MAX)
.saturating_mul(1)
.saturating_mul(2)
.set_proof_size(relay_chain::MAX_POV_SIZE as u64);

pub const MILLISECS_PER_BLOCK: u64 = 6_000;
Expand Down Expand Up @@ -399,8 +399,8 @@ impl pallet_evm_chain_id::Config for Runtime {}

/// Current approximation of the gas/s consumption considering
/// EVM execution over compiled WASM (on 4.4Ghz CPU).
/// Given the 1000ms Weight, from which 75% only are used for transactions,
/// the total EVM execution gas limit is: GAS_PER_SECOND * 1 * 0.75 ~= 30_000_000.
/// Given the 2000ms Weight, from which 75% only are used for transactions,
/// the total EVM execution gas limit is: GAS_PER_SECOND * 2 * 0.75 ~= 60_000_000.
pub const GAS_PER_SECOND: u64 = 40_000_000;

/// Approximate ratio of the amount of Weight per Gas.
Expand Down Expand Up @@ -433,9 +433,9 @@ parameter_types! {
/// (max_extrinsic.ref_time() / max_extrinsic.proof_size()) / WEIGHT_PER_GAS
/// )
/// We should re-check `xcm_config::Erc20XcmBridgeTransferGasLimit` when changing this value
pub const GasLimitPovSizeRatio: u64 = 8;
pub const GasLimitPovSizeRatio: u64 = 16;
/// The amount of gas per storage (in bytes): BLOCK_GAS_LIMIT / BLOCK_STORAGE_LIMIT
/// The current definition of BLOCK_STORAGE_LIMIT is 80 KB, resulting in a value of 366.
/// The current definition of BLOCK_STORAGE_LIMIT is 160 KB, resulting in a value of 366.
pub GasLimitStorageGrowthRatio: u64 = 366;
}

Expand Down Expand Up @@ -1824,8 +1824,8 @@ mod tests {

#[test]
fn test_storage_growth_ratio_is_correct() {
// This is the highest amount of new storage that can be created in a block 40 KB
let block_storage_limit = 80 * 1024;
// This is the highest amount of new storage that can be created in a block 160 KB
let block_storage_limit = 160 * 1024;
let expected_storage_growth_ratio = BlockGasLimit::get()
.low_u64()
.saturating_div(block_storage_limit);
Expand Down
2 changes: 1 addition & 1 deletion runtime/moonbeam/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ parameter_types! {

// To be able to support almost all erc20 implementations,
// we provide a sufficiently hight gas limit.
pub Erc20XcmBridgeTransferGasLimit: u64 = 400_000;
pub Erc20XcmBridgeTransferGasLimit: u64 = 800_000;
}

impl pallet_erc20_xcm_bridge::Config for Runtime {
Expand Down
4 changes: 2 additions & 2 deletions runtime/moonbeam/tests/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ impl pallet_timestamp::Config for Runtime {
use sp_core::U256;

const MAX_POV_SIZE: u64 = 5 * 1024 * 1024;
/// Block storage limit in bytes. Set to 80 KB.
const BLOCK_STORAGE_LIMIT: u64 = 80 * 1024;
/// Block storage limit in bytes. Set to 160 KB.
const BLOCK_STORAGE_LIMIT: u64 = 160 * 1024;

parameter_types! {
pub BlockGasLimit: U256 = U256::from(u64::MAX);
Expand Down
10 changes: 5 additions & 5 deletions test/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ export const RUNTIME_CONSTANTS = {
MAX_BASE_FEE_IN_WEI: "12500000000000000",
TARGET_FILL_PERMILL: new RuntimeConstant({ 3000: 350_000n, 2801: 500_000n, 0: 250_000n }),
// Deadline for block production in miliseconds
DEADLINE_MILISECONDS: 1000n,
DEADLINE_MILISECONDS: 2000n,
// Caclulated as the weight per second by the deadline in seconds
BLOCK_WEIGHT_LIMIT: 1_000_000_000_000n,
BLOCK_WEIGHT_LIMIT: 2_000_000_000_000n,
// Gas limit considering the block utilization threshold (75%)
GAS_LIMIT: 30_000_000n,
GAS_LIMIT: 60_000_000n,
// Maximum extrinsic weight is taken from the max allowed transaction weight per block (75%),
// minus the block initialization (10%) and minus the extrinsic base cost.
EXTRINSIC_GAS_LIMIT: 26_000_000n,
EXTRINSIC_GAS_LIMIT: 52_000_000n,
// Maximum Gas to PoV ratio used in the gasometer
GAS_PER_POV_BYTES: 8n,
GAS_PER_POV_BYTES: 16n,
},
} as const;

Expand Down