chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
+22 -14
View File
@@ -176,11 +176,15 @@ fn block_with_size(time: u64, nonce: u32, size: usize) -> (Vec<u8>, Hash) {
vec![
CheckedExtrinsic {
format: pezsp_runtime::generic::ExtrinsicFormat::Bare,
function: RuntimeCall::Timestamp(pezpallet_timestamp::Call::set { now: time * 1000 }),
function: RuntimeCall::Timestamp(pezpallet_timestamp::Call::set {
now: time * 1000,
}),
},
CheckedExtrinsic {
format: pezsp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(nonce, 0)),
function: RuntimeCall::System(pezframe_system::Call::remark { remark: vec![0; size] }),
function: RuntimeCall::System(pezframe_system::Call::remark {
remark: vec![0; size],
}),
},
],
(time * 1000 / SLOT_DURATION).into(),
@@ -700,8 +704,12 @@ fn deploying_wasm_contract_should_work() {
let transfer_code = wat::parse_str(CODE_TRANSFER).unwrap();
let transfer_ch = <Runtime as pezframe_system::Config>::Hashing::hash(&transfer_code);
let addr =
pezpallet_contracts::Pezpallet::<Runtime>::contract_address(&charlie(), &transfer_ch, &[], &[]);
let addr = pezpallet_contracts::Pezpallet::<Runtime>::contract_address(
&charlie(),
&transfer_ch,
&[],
&[],
);
let time = 42 * 1000;
let b = construct_block(
@@ -715,16 +723,16 @@ fn deploying_wasm_contract_should_work() {
},
CheckedExtrinsic {
format: pezsp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(0, 0)),
function: RuntimeCall::Contracts(pezpallet_contracts::Call::instantiate_with_code::<
Runtime,
> {
value: 0,
gas_limit: Weight::from_parts(500_000_000, 0),
storage_deposit_limit: None,
code: transfer_code,
data: Vec::new(),
salt: Vec::new(),
}),
function: RuntimeCall::Contracts(
pezpallet_contracts::Call::instantiate_with_code::<Runtime> {
value: 0,
gas_limit: Weight::from_parts(500_000_000, 0),
storage_deposit_limit: None,
code: transfer_code,
data: Vec::new(),
salt: Vec::new(),
},
),
},
CheckedExtrinsic {
format: pezsp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(1, 0)),
@@ -42,11 +42,21 @@ fn benchmark_pallet_args_work() {
true,
);
benchmark_pallet_args(
&["--list", "--pezpallet=pezpallet_balances", "--chain=dev", "--genesis-builder=spec-genesis"],
&[
"--list",
"--pezpallet=pezpallet_balances",
"--chain=dev",
"--genesis-builder=spec-genesis",
],
true,
);
benchmark_pallet_args(
&["--list", "--pezpallet=pezpallet_balances", "--chain=dev", "--genesis-builder=spec-runtime"],
&[
"--list",
"--pezpallet=pezpallet_balances",
"--chain=dev",
"--genesis-builder=spec-runtime",
],
true,
);
// Error because no runtime is provided:
@@ -42,11 +42,21 @@ fn benchmark_pezpallet_args_work() {
true,
);
benchmark_pezpallet_args(
&["--list", "--pezpallet=pezpallet_balances", "--chain=dev", "--genesis-builder=spec-genesis"],
&[
"--list",
"--pezpallet=pezpallet_balances",
"--chain=dev",
"--genesis-builder=spec-genesis",
],
true,
);
benchmark_pezpallet_args(
&["--list", "--pezpallet=pezpallet_balances", "--chain=dev", "--genesis-builder=spec-runtime"],
&[
"--list",
"--pezpallet=pezpallet_balances",
"--chain=dev",
"--genesis-builder=spec-runtime",
],
true,
);
// Error because no runtime is provided:
+8 -6
View File
@@ -17,11 +17,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use codec::{Encode, Joiner};
use pezframe_support::{
dispatch::GetDispatchInfo,
traits::Currency,
weights::{constants::ExtrinsicBaseWeight, IdentityFee, WeightToFee},
};
use pez_kitchensink_runtime::{
constants::{currency::*, time::SLOT_DURATION},
Balances, CheckedExtrinsic, Multiplier, Runtime, RuntimeCall, TransactionByteFee,
@@ -29,6 +24,11 @@ use pez_kitchensink_runtime::{
};
use pez_node_primitives::Balance;
use pez_node_testing::keyring::*;
use pezframe_support::{
dispatch::GetDispatchInfo,
traits::Currency,
weights::{constants::ExtrinsicBaseWeight, IdentityFee, WeightToFee},
};
use pezkuwi_sdk::*;
use pezsp_runtime::{traits::One, Perbill};
@@ -63,7 +63,9 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
format: pezsp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(0, 0)),
function: RuntimeCall::Sudo(pezpallet_sudo::Call::sudo {
call: Box::new(RuntimeCall::RootTesting(
pezpallet_root_testing::Call::fill_block { ratio: Perbill::from_percent(60) },
pezpallet_root_testing::Call::fill_block {
ratio: Perbill::from_percent(60),
},
)),
}),
},
@@ -17,8 +17,10 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use codec::Decode;
use pez_kitchensink_runtime::{
Executive, ExistentialDeposit, Indices, Runtime, UncheckedExtrinsic,
};
use pezframe_system::offchain::{SendSignedTransaction, Signer, SubmitTransaction};
use pez_kitchensink_runtime::{Executive, ExistentialDeposit, Indices, Runtime, UncheckedExtrinsic};
use pezkuwi_sdk::*;
use pezsp_application_crypto::AppCrypto;
use pezsp_core::offchain::{testing::TestTransactionPoolExt, TransactionPoolExt};
+4 -1
View File
@@ -27,7 +27,10 @@ fn expected_regex() -> Regex {
#[test]
fn version_is_full() {
let expected = expected_regex();
let output = Command::new(cargo_bin("bizinikiwi-node")).args(&["--version"]).output().unwrap();
let output = Command::new(cargo_bin("bizinikiwi-node"))
.args(&["--version"])
.output()
.unwrap();
assert!(output.status.success(), "command returned with non-success exit code");