Skip to content

feat: Update substrate to gear-polkadot-stable-2412 #4673

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

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 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 [email protected]
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
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
use sp_core::H256
  • Loading branch information
ukint-vs committed May 26, 2025
commit 2ad7dad2e1b2f20322d4b0131d5eb4fab9934b0b
136 changes: 25 additions & 111 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/src/auxiliary/gas_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{
};
use alloc::collections::BTreeMap;
use core::{cell::RefCell, ops::DerefMut};
use primitive_types::H256;
use sp_core::H256;

/// Balance type used in the gas tree.
pub(crate) type Balance = u64;
Expand Down
2 changes: 1 addition & 1 deletion common/src/gas_provider/property_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ use core::iter::FromIterator;
use enum_iterator::all;
use frame_support::{assert_err, assert_ok};
use gear_utils::{NonEmpty, RingGet};
use primitive_types::H256;
use proptest::prelude::*;
use sp_core::H256;
use std::collections::{BTreeSet, HashMap};
use strategies::GasTreeAction;

Expand Down
15 changes: 14 additions & 1 deletion common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ pub use gear_core::{
pages::GearPage,
program::{ActiveProgram, MemoryInfix, Program},
};
use primitive_types::H256;
use primitive_types;
use sp_arithmetic::traits::{BaseArithmetic, Saturating, UniqueSaturatedInto, Unsigned};
use sp_core::H256;
use sp_runtime::{
codec::{self, Decode, Encode},
scale_info::{self, TypeInfo},
Expand Down Expand Up @@ -121,6 +122,18 @@ impl Origin for H256 {
}
}

impl Origin for primitive_types::H256 {
fn into_origin(self) -> H256 {
// H256 here refers to sp_core::H256 due to the import
H256(self.0)
}

fn from_origin(val: H256) -> Self {
// val is sp_core::H256, Self is primitive_types::H256
primitive_types::H256(val.0)
}
}

impl Origin for MessageId {
fn into_origin(self) -> H256 {
H256(self.into())
Expand Down
1 change: 1 addition & 0 deletions pallets/gas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ gear-core.workspace = true
frame-support.workspace = true
frame-system.workspace = true
frame-benchmarking = { workspace = true, optional = true }
sp-core.workspace = true
sp-std.workspace = true
sp-runtime.workspace = true
pallet-balances.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion pallets/gas/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ use common::{
};
use frame_support::{pallet_prelude::*, traits::StorageVersion};
pub use pallet::*;
pub use primitive_types::H256;
pub use sp_core::H256;
use sp_runtime::DispatchError;
use sp_std::convert::TryInto;

Expand Down
2 changes: 1 addition & 1 deletion pallets/gas/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use frame_support::{
construct_runtime, parameter_types, traits::ConstU32, weights::constants::RocksDbWeight,
};
use frame_system::{self as system, pallet_prelude::BlockNumberFor};
use primitive_types::H256;
use sp_core::H256;
use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
BuildStorage,
Expand Down
2 changes: 1 addition & 1 deletion pallets/gas/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use common::{
};
use frame_support::{assert_noop, assert_ok};
use gear_core::ids::MessageId;
use primitive_types::H256;
use sp_core::H256;
use sp_runtime::traits::Zero;

type Gas = <Pallet<Test> as common::GasProvider>::GasTree;
Expand Down
2 changes: 1 addition & 1 deletion pallets/gear-bank/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ mod tests {
weights::constants::RocksDbWeight,
PalletId,
};
use primitive_types::H256;
use sp_core::H256;
use sp_runtime::{
traits::{BlakeTwo256, IdentityLookup},
AccountId32, BuildStorage,
Expand Down
Loading