Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
e3fe321
Update branch
ukint-vs May 21, 2025
48c41db
Update deps
ukint-vs May 21, 2025
36b5b77
use primitive_types::H256
ukint-vs May 21, 2025
e402c56
Use call_weight
ukint-vs May 26, 2025
2ad7dad
use sp_core::H256
ukint-vs May 26, 2025
5c8bb49
Update gear eth bridge
ukint-vs May 26, 2025
2b5f470
feat(pallet-gear-payment): Implement TransactionExtension
ukint-vs May 27, 2025
ab64346
chore(gear-authorship): Update args
ukint-vs May 27, 2025
a0388ef
feat(vara-runtime): Update pallet configs, TxExtension
ukint-vs May 28, 2025
307c4c1
feat(node-service): Update TransactionPool, offchain_workers
ukint-vs May 29, 2025
ed86501
feat(node-testing): Update gear-authorship tests, node-testing
ukint-vs May 29, 2025
b64ddd0
Revert "use sp_core::H256"
ukint-vs May 29, 2025
8c6cd84
Update primitive-types, subxt
ukint-vs May 29, 2025
83e6cf4
clippy errors
ukint-vs May 29, 2025
856fa4f
add ExtensionsWeightInfo
ukint-vs Jun 3, 2025
7d7a1ff
Update StakingBlackList for TransactionExtension
ukint-vs Jun 3, 2025
7244eef
update staking-rewards tests
ukint-vs Jun 3, 2025
e6b5264
Merge branch 'master' into vs/polkadot-stable2412
ukint-vs Jun 15, 2025
7bccd77
update pallet tests
ukint-vs Jun 15, 2025
8ae2b1f
update node
ukint-vs Jun 15, 2025
688d9c6
Update non-dev params
ukint-vs Jun 16, 2025
171bbca
Update staking rewards, increase MaxLocks
ukint-vs Jun 17, 2025
39ed3de
Merge branch 'master' into vs/polkadot-stable2412
ukint-vs Jun 17, 2025
51876ea
rm unused deps
ukint-vs Jun 17, 2025
20ae08d
fmt
ukint-vs Jun 17, 2025
8b1a14a
Update rustls-platform-verifier
ukint-vs Jun 17, 2025
4de250b
Update rustls-webpki@0.101.4
ukint-vs Jun 17, 2025
6754008
Update deps
ukint-vs Jun 17, 2025
a6410be
Merge branch 'master' into vs/polkadot-stable2412
ukint-vs Jun 20, 2025
def2d11
rm unused deps
ukint-vs Jun 20, 2025
281eb48
Update Cargo.lock
ukint-vs Jun 20, 2025
602ac29
fix clippy
ukint-vs Jun 20, 2025
43f5eed
fix crunchy cross-compilation
ukint-vs Jun 20, 2025
b2c8d1f
fix clippy on windows
ukint-vs Jun 20, 2025
50456b9
fix clippy
ukint-vs Jun 21, 2025
59258f7
chore: Update substrate commit
ukint-vs Jun 22, 2025
6a1ab85
chore: Update substrate commit once more
ukint-vs Jun 22, 2025
8961345
fix check_changed_pages_in_storage test
ukint-vs Jun 22, 2025
8dea09d
Custom preset parsing
ukint-vs Jun 22, 2025
949b853
fix(pallet-gear-payment): Use IDENTIFIER from ChargeTransactionPayment
ukint-vs Jun 23, 2025
7057256
Update extension
ukint-vs Jun 26, 2025
9427466
fix: Don't override origin since its passed to prepare() later
ukint-vs Jun 30, 2025
ea0d425
patch payer in prepare too.
ukint-vs Jun 30, 2025
c304572
add migrations
ukint-vs Jun 30, 2025
312fb90
add BalanceTransferAllowDeath param
ukint-vs Jun 30, 2025
a3ecc18
feat: Add Multi Block Migrations pallet
ukint-vs Jul 1, 2025
2609b51
add features
ukint-vs Jul 1, 2025
bd9fcb4
WeightInfo
ukint-vs Jul 1, 2025
d0d90ee
update metadata
ukint-vs Jul 1, 2025
103aaa1
fmt
ukint-vs Jul 1, 2025
cbfddae
rm multi_block_migrations
ukint-vs Jul 2, 2025
1dcca5e
Merge remote-tracking branch 'origin/master' into vs/polkadot-stable2412
ukint-vs Jul 2, 2025
6dab4eb
add std feature
ukint-vs Jul 2, 2025
d168ce4
feat(gsdk): Update subxt to v0.41.0
ukint-vs Jul 2, 2025
cd0821d
fix(gsdk): Add multi_block_migrations export parsing
ukint-vs Jul 2, 2025
504fb2e
Revert "feat(gsdk): Update subxt to v0.41.0"
ukint-vs Jul 2, 2025
a02b930
clippy warn
ukint-vs Jul 2, 2025
cc62f0e
rm crunchy patch
ukint-vs Jul 8, 2025
5c0117b
rm sign-ext patches
ukint-vs Jul 8, 2025
527d2ad
Merge remote-tracking branch 'origin/master' into vs/polkadot-stable2412
ukint-vs Jul 8, 2025
93cf7e2
Update Cargo.lock
ukint-vs Jul 8, 2025
1856160
Merge branch 'master' into vs/polkadot-stable2412
ukint-vs Jul 15, 2025
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,989 changes: 3,990 additions & 2,999 deletions Cargo.lock

Large diffs are not rendered by default.

248 changes: 122 additions & 126 deletions Cargo.toml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ gear-wasm-instrument = { workspace = true, optional = true }
gsys.workspace = true

# Substrate deps
sp-core.workspace = true
sp-io.workspace = true
sp-std.workspace = true
sp-arithmetic.workspace = true
Expand All @@ -46,7 +45,6 @@ gear-utils.workspace = true
[features]
default = ["std"]
std = [
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
"sp-io/std",
Expand Down
2 changes: 1 addition & 1 deletion common/src/gas_provider/auxiliary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use core::{
cell::{Ref, RefMut},
marker::PhantomData,
};
use sp_core::H256;
use primitive_types::H256;
use std::thread::LocalKey;

/// Balance type used in the gas tree.
Expand Down
4 changes: 2 additions & 2 deletions common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use frame_support::{
sp_runtime::{
self,
generic::{CheckedExtrinsic, UncheckedExtrinsic},
traits::{Dispatchable, SignedExtension},
traits::Dispatchable,
},
traits::Get,
};
Expand Down Expand Up @@ -234,7 +234,7 @@ impl<Address, Call, Signature, Extra> ExtractCall<Call>
for UncheckedExtrinsic<Address, Call, Signature, Extra>
where
Call: Dispatchable + Clone,
Extra: SignedExtension,
Extra: Decode,
{
fn extract_call(&self) -> Call {
self.function.clone()
Expand Down
17 changes: 8 additions & 9 deletions common/src/pallet_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ macro_rules! impl_pallet_balances {
macro_rules! impl_pallet_balances_inner {
($runtime:ty) => {
impl pallet_balances::Config for $runtime {
type MaxLocks = ();
type MaxLocks = frame_support::traits::ConstU32<1024>;
type MaxFreezes = ConstU32<1>;
type MaxReserves = ();
type RuntimeFreezeReason = RuntimeFreezeReason;
Expand All @@ -53,6 +53,7 @@ macro_rules! impl_pallet_balances_inner {
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type DoneSlashHandler = ();
type WeightInfo = ();
}
};
Expand Down Expand Up @@ -126,6 +127,7 @@ macro_rules! impl_pallet_system_inner {
type PreInherents = ();
type PostInherents = ();
type PostTransactions = ();
type ExtensionsWeightInfo = ();
}
};

Expand Down Expand Up @@ -250,6 +252,7 @@ macro_rules! impl_pallet_staking {
#[macro_export]
macro_rules! impl_pallet_staking_inner {
($runtime:ty$(,)?) => {
use frame_support::derive_impl;
parameter_types! {
// 6 sessions in an era
pub const SessionsPerEra: u32 = 6;
Expand All @@ -263,35 +266,31 @@ macro_rules! impl_pallet_staking_inner {
pub const MaxControllersInDeprecationBatch: u32 = 5900;
}

impl pallet_staking::Config for Test {
#[derive_impl(pallet_staking::config_preludes::TestDefaultConfig)]
impl pallet_staking::Config for $runtime {
type Currency = Balances;
type UnixTime = Timestamp;
type CurrencyBalance = <Self as pallet_balances::Config>::Balance;
type CurrencyToVote = ();
type ElectionProvider = StakingConfigElectionProvider;
type GenesisElectionProvider = StakingConfigGenesisElectionProvider;
type RewardRemainder = ();
type RuntimeEvent = RuntimeEvent;
type Slash = StakingConfigSlash;
type Reward = StakingConfigReward;
type SessionsPerEra = SessionsPerEra;
type BondingDuration = BondingDuration;
type SlashDeferDuration = SlashDeferDuration;
type AdminOrigin = frame_system::EnsureRoot<AccountId>;
type SessionInterface = ();
type AdminOrigin = frame_system::EnsureRoot<Self::AccountId>;
type EraPayout = StakingConfigEraPayout;
type NextNewSession = StakingConfigNextNewSession;
type MaxExposurePageSize = MaxExposurePageSize;
type VoterList = pallet_staking::UseNominatorsAndValidatorsMap<Self>;
type TargetList = pallet_staking::UseValidatorsMap<Self>;
type NominationsQuota = pallet_staking::FixedNominationsQuota<16>;
type MaxUnlockingChunks = ConstU32<32>;
type HistoryDepth = HistoryDepth;
type EventListeners = ();
type WeightInfo = ();
type BenchmarkingConfig = pallet_staking::TestBenchmarkingConfig;
type MaxControllersInDeprecationBatch = MaxControllersInDeprecationBatch;
type DisablingStrategy = pallet_staking::UpToLimitDisablingStrategy;
type WeightInfo = ();
}
};

Expand Down
6 changes: 3 additions & 3 deletions ethexe/common/src/gear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl ToDigest for OperatorRewardsCommitment {
fn update_hasher(&self, hasher: &mut sha3::Keccak256) {
let OperatorRewardsCommitment { amount, root } = self;

hasher.update(<[u8; 32]>::from(*amount));
hasher.update(amount.to_little_endian());
hasher.update(root);
}
}
Expand Down Expand Up @@ -157,10 +157,10 @@ impl ToDigest for StakerRewardsCommitment {
.iter()
.for_each(|StakerRewards { vault, amount }| {
hasher.update(vault);
hasher.update(<[u8; 32]>::from(*amount));
hasher.update(amount.to_little_endian());
});

hasher.update(<[u8; 32]>::from(*total_amount));
hasher.update(total_amount.to_little_endian());
hasher.update(token);
}
}
Expand Down
3 changes: 1 addition & 2 deletions ethexe/ethereum/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ pub(crate) mod utils {
}

pub fn u256_to_uint256(value: U256) -> Uint256 {
let mut bytes = [0u8; Uint256::BYTES];
value.to_little_endian(&mut bytes);
let bytes = value.to_little_endian();
Uint256::from_le_bytes(bytes)
}

Expand Down
1 change: 1 addition & 0 deletions gclient/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
//! }
//! ```

#![allow(clippy::result_large_err)]
#![warn(missing_docs)]
#![doc(html_logo_url = "https://docs.gear.rs/logo.svg")]
#![doc(html_favicon_url = "https://gear-tech.io/favicons/favicon.ico")]
Expand Down
2 changes: 1 addition & 1 deletion gsdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
anyhow.workspace = true
anyhow = { workspace = true, features = ["std"] }
base64.workspace = true
colored.workspace = true
futures-util.workspace = true
Expand Down
1 change: 1 addition & 0 deletions gsdk/api-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ fn generate_impls(metadata: &Metadata) -> TokenStream {
"system" => "frame_system".into(),
"fellowship_collective" => "pallet_ranked_collective".into(),
"fellowship_referenda" => "pallet_referenda".into(),
"multi_block_migrations" => "pallet_migrations".into(),
"staking_rewards" => "pallet_gear_staking_rewards".into(),
_ => "pallet_".to_string() + &pallet_name,
}
Expand Down
1 change: 1 addition & 0 deletions gsdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#![doc(html_logo_url = "https://docs.gear.rs/logo.svg")]
#![doc(html_favicon_url = "https://gear-tech.io/favicons/favicon.ico")]
#![allow(clippy::result_large_err)]

//! Gear api
pub use crate::{
Expand Down
Loading
Loading