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

Polkadot v0.9.43 #1577

Merged
merged 152 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 77 commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
f5c4328
fix: docker relay
wischli Aug 15, 2023
1a5c2c1
feat: update rococo local to polkadot v0.9.43
wischli Aug 15, 2023
5204f87
fix: bump relay docker img version
wischli Aug 15, 2023
3203739
Update most deps to 0.9.43
NunoAlexandre Sep 26, 2023
0b936e8
Drop dependency on randomness-collective pallet
NunoAlexandre Sep 26, 2023
e9b4421
Fix grandpa package
NunoAlexandre Sep 26, 2023
3917193
cargo update
NunoAlexandre Sep 26, 2023
ec95208
toolchain: bump to 1.71.0
NunoAlexandre Sep 26, 2023
fb417fe
bump
NunoAlexandre Sep 26, 2023
13bc273
Fix pool-system pallet
NunoAlexandre Sep 26, 2023
4db82c6
Rename purestake to moonbeam-foundation
NunoAlexandre Sep 27, 2023
3521720
Work on dup dependencies
NunoAlexandre Sep 28, 2023
ed32d86
Fix dup dependencies
NunoAlexandre Sep 28, 2023
16d6356
Fixes fixes fixes
NunoAlexandre Sep 28, 2023
895334a
fmt
NunoAlexandre Sep 28, 2023
eb67662
bump
NunoAlexandre Sep 28, 2023
67dff89
bump
NunoAlexandre Sep 29, 2023
4df0ca2
Fix restricted_tokens pallet
NunoAlexandre Sep 29, 2023
89cd13e
wip on order-book
NunoAlexandre Sep 29, 2023
cb17532
Fix order-book with Reason = ()
NunoAlexandre Sep 29, 2023
02c3de1
fmt
NunoAlexandre Sep 29, 2023
2c45369
Fix pallet-rewards
NunoAlexandre Oct 2, 2023
c96af3c
fix runtime-common
NunoAlexandre Oct 2, 2023
9dc647d
cu
NunoAlexandre Oct 2, 2023
6c9c18e
try: fix frame--system-benchmarking issues
NunoAlexandre Oct 2, 2023
421499a
nix
NunoAlexandre Oct 2, 2023
1b4fbb2
Fix lots of benchmarks
NunoAlexandre Oct 3, 2023
2b89155
bump
NunoAlexandre Oct 3, 2023
5c565de
Drop RandomnessCollectiveFlip
NunoAlexandre Oct 3, 2023
30b81bb
weights
NunoAlexandre Oct 3, 2023
b61b4b7
bump
NunoAlexandre Oct 4, 2023
daa4165
Lots of evm-related fixes
NunoAlexandre Oct 4, 2023
683a13a
more evm fixes
NunoAlexandre Oct 4, 2023
859f088
bump
NunoAlexandre Oct 4, 2023
430d462
bump: xcm stuff
NunoAlexandre Oct 4, 2023
3c8c03e
more fixes
NunoAlexandre Oct 5, 2023
b81980d
fix evm stuff
NunoAlexandre Oct 5, 2023
bf5205d
Deprecate Weight::from_ref_time
NunoAlexandre Oct 5, 2023
0210269
Deprecate Weight::from_proof_size with from_parts
NunoAlexandre Oct 5, 2023
f8c6857
more evm
NunoAlexandre Oct 5, 2023
44ee9cb
fixes++
NunoAlexandre Oct 5, 2023
140278a
More fixes
NunoAlexandre Oct 5, 2023
8353c19
fmt
NunoAlexandre Oct 5, 2023
fda9e26
Use polkadot xcm-simulator
NunoAlexandre Oct 5, 2023
5b77a98
Use sp_io::offchain::random_seed
NunoAlexandre Oct 9, 2023
c681d3d
wip: service + cli + command + evm + anchors
NunoAlexandre Oct 9, 2023
f884d85
wip
NunoAlexandre Oct 9, 2023
7338541
wip
NunoAlexandre Oct 10, 2023
7c886ae
Fix AuraConsensus::build SyncOracle trait bound issue
NunoAlexandre Oct 11, 2023
d7621a0
Fix new_partial instantiation of frontier_backend
NunoAlexandre Oct 11, 2023
d186568
Fix apis using FrontierBackend
NunoAlexandre Oct 11, 2023
251ad4f
Last node fix
NunoAlexandre Oct 11, 2023
b2973ff
Remove some todos
NunoAlexandre Oct 11, 2023
6ef42b7
wip: fix rpc/evm create
NunoAlexandre Oct 11, 2023
30ab312
bump
NunoAlexandre Oct 11, 2023
376432e
Done at rpc/evm create
NunoAlexandre Oct 11, 2023
16a9737
fmt
NunoAlexandre Oct 11, 2023
c463033
Address rpc/evm create todos
NunoAlexandre Oct 11, 2023
0f248cf
update todo
NunoAlexandre Oct 11, 2023
57f849f
bump toolchain to 1.74 nightly-2023-08-24
NunoAlexandre Oct 11, 2023
2100a72
Fix issue with assert_last_event
NunoAlexandre Oct 11, 2023
09febac
fix: collator compose
wischli Oct 12, 2023
a8a3bbf
Use my fork of substrate
NunoAlexandre Oct 12, 2023
e55c7b8
e2e: Fix complilation errors
NunoAlexandre Oct 12, 2023
b78e520
fmt
NunoAlexandre Oct 12, 2023
b8fab2e
wip: clippy
NunoAlexandre Oct 12, 2023
c88b200
wip: clippy
NunoAlexandre Oct 12, 2023
2a1c795
fixup
NunoAlexandre Oct 12, 2023
b7aa804
Fix runtime_integrity_tests
NunoAlexandre Oct 16, 2023
65ceccd
Fix tests::<router>::send::success
NunoAlexandre Oct 17, 2023
983f6ae
Fix ExistentialDeposit 0 issues
NunoAlexandre Oct 17, 2023
516a962
wip
NunoAlexandre Oct 17, 2023
30a3073
Fix fungible_transfer_on_hold
NunoAlexandre Oct 17, 2023
1a4c263
Fix pallets/restricted-tokens/src/tests
NunoAlexandre Oct 17, 2023
f34cbde
Fix block-rewards/tests/joining_leaving_collators
NunoAlexandre Oct 18, 2023
ec7cace
Add ExistentialDeposit to all block_rewards::Config
NunoAlexandre Oct 18, 2023
00778c5
Fix pallets/bridge tests
NunoAlexandre Oct 18, 2023
b47f336
fix Tokens fungible can_hold implementation
NunoAlexandre Oct 19, 2023
695142f
fix order-book tests
NunoAlexandre Oct 19, 2023
671a686
fix pallet-claims tests
NunoAlexandre Oct 19, 2023
c2daa47
block_rewards: Fix single_claim_rewards
NunoAlexandre Oct 24, 2023
797dedf
fix pallet-investments tests
NunoAlexandre Oct 25, 2023
622d26a
Fix most pallet-investments benchmarks
NunoAlexandre Oct 25, 2023
cada2ad
fmt
NunoAlexandre Oct 25, 2023
516e237
fix keystore benchmarking
NunoAlexandre Oct 25, 2023
fca536e
Merge remote-tracking branch 'origin/main' into polkadot-v0.9.43
wischli Oct 27, 2023
acc1e3e
chore: bump rust version
wischli Oct 27, 2023
daaf612
chore: bump srtool version
wischli Oct 27, 2023
151a2e9
Merge remote-tracking branch 'origin/main' into polkadot-v0.9.43
wischli Oct 27, 2023
249f688
loan and investment benchmarks fixed (#1602)
lemunozm Oct 27, 2023
0640e3d
bench: fix investments
wischli Oct 27, 2023
c5e6379
tests: fix runtime api declarations
wischli Oct 27, 2023
35f7bc3
tests: fix integration utils
wischli Oct 27, 2023
196e587
Merge remote-tracking branch 'origin/main' into polkadot-v0.9.43
lemunozm Oct 27, 2023
7c08e3d
reverting to Nuno's change
lemunozm Oct 27, 2023
1ba6cdd
fixup
NunoAlexandre Oct 30, 2023
0818f4a
fmt
NunoAlexandre Oct 30, 2023
ebcc07a
Migrate weight::from_deprecated
NunoAlexandre Oct 30, 2023
5c1944c
fix weights
NunoAlexandre Oct 30, 2023
b0e2b00
clippy wip
NunoAlexandre Oct 30, 2023
4bb7da1
clippy
NunoAlexandre Oct 30, 2023
77e0197
clippy is happy!!!
NunoAlexandre Oct 30, 2023
ec84ef1
fixup
NunoAlexandre Oct 30, 2023
ff3e0c7
fmt
NunoAlexandre Oct 30, 2023
5ee2a48
bench: fix anchors
wischli Oct 31, 2023
732bc93
bench: fix keystore
wischli Oct 31, 2023
26209e4
bench: fix pool-system
wischli Oct 31, 2023
9c9111c
bench: fix frame-system
wischli Oct 31, 2023
167e22c
Fix mocks/src/liquidity_pools_gateway_routers
NunoAlexandre Oct 31, 2023
008dd24
fmt
NunoAlexandre Oct 31, 2023
5932b43
Drop tmp workaround
NunoAlexandre Oct 31, 2023
62046f9
fix: Set MaxHolds to 1 for all mocks
wischli Oct 31, 2023
ce8e065
chore: fix + update restricted tokens
wischli Nov 1, 2023
c489940
refactor: use Currency API instead of hardcoded ED
wischli Nov 1, 2023
49e880d
wip: address todos and fix tests
NunoAlexandre Nov 1, 2023
32f0db7
drop more todos
NunoAlexandre Nov 1, 2023
835a856
fix: assert_last_event
wischli Nov 1, 2023
9417558
fix: warnings
wischli Nov 1, 2023
dc0b004
chore: cleanup comments in tomls
wischli Nov 1, 2023
473bb1f
Align pallet_elections_phragmen runtime values
NunoAlexandre Nov 1, 2023
ab2e4a7
clean up more todos
NunoAlexandre Nov 1, 2023
cd94d51
fixup
NunoAlexandre Nov 1, 2023
c58d519
docker: Bump local relay to 0.9.43
NunoAlexandre Nov 1, 2023
75a137d
docker: Update relayer command options
NunoAlexandre Nov 1, 2023
2deb292
Merge branch 'feat/docker-polkadot-v0.9.43' into polkadot-v0.9.43
wischli Nov 1, 2023
b617027
fix: run local relay in Polkadot v1.0.0
wischli Nov 2, 2023
c26da52
Delete cautios change note on db_config_dir fn
NunoAlexandre Nov 2, 2023
105d664
Drop leftover debug comments
NunoAlexandre Nov 3, 2023
03273db
fix: enable client block production
wischli Nov 3, 2023
b934c13
fix: run local collator
wischli Nov 3, 2023
35d93fd
fix: run docker collator
wischli Nov 3, 2023
29585ee
feat: add backwards cmp for para docker compose
wischli Nov 3, 2023
47ce8d1
ci: disable frame_system in check_benchmarks
wischli Nov 3, 2023
57923d2
integration-tests: Use latest version of fudge-polkadot-v0.9.43 (#1590)
cdamian Nov 8, 2023
3e7c824
fix: artifact Cargo.timl
mustermeiszer Nov 9, 2023
9ce82f5
fix: align compose platform
mustermeiszer Nov 9, 2023
2a59c28
fix: adapt evm ratios
mustermeiszer Nov 9, 2023
8ca2bae
fix: notes for unburned ED of stake currency
mustermeiszer Nov 9, 2023
fc607fa
fix: investments rm not needed order id update
mustermeiszer Nov 9, 2023
a803d98
fix: rm debug artifacts
mustermeiszer Nov 9, 2023
91f6f93
fix: warning, note for dust handler
mustermeiszer Nov 9, 2023
d5af072
fix: prt uses orml api and consistend non-dusting
mustermeiszer Nov 9, 2023
75f5a5f
fix: locks of balances
mustermeiszer Nov 9, 2023
4c56064
fix: impl metadata left overs
mustermeiszer Nov 9, 2023
50b4d12
fix: benches need holds. Moving it up to 10 for all
mustermeiszer Nov 9, 2023
6ec33f9
Merge remote-tracking branch 'origin/main' into polkadot-v0.9.43
mustermeiszer Nov 9, 2023
2e52aeb
fix: taplo
mustermeiszer Nov 9, 2023
af3b257
feat: weights altair
mustermeiszer Nov 10, 2023
e315008
feat: weights centrifuge
mustermeiszer Nov 10, 2023
56e87d5
feat: weights development
mustermeiszer Nov 10, 2023
a3e227e
fix: revoer develppment pallet-xcm weight file
mustermeiszer Nov 10, 2023
9dea3c7
fix: allowlist and other benches in dev
mustermeiszer Nov 10, 2023
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
4,421 changes: 2,476 additions & 1,945 deletions Cargo.lock

Large diffs are not rendered by default.

940 changes: 475 additions & 465 deletions Cargo.toml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# This selects a nightly Rust version, based on the date.
nightly-date = pkgs.lib.strings.removePrefix "nightly-" rustToolChainTOML.toolchain.channel;
# This is the hash of the Rust toolchain at nightly-date, required for reproducibility.
nightly-sha256 = "sha256-0HHSyIcGCh8bXZFzFMc2dSPJTtd02eijcok5YXHd+5A=";
nightly-sha256 = "sha256-hEf6+Lr/Pi7Mn6ESUrNYw9Wn8vKOpicKG/Y/3p5WQlo=";
# This is the git short commit of the current version of the program.
shortCommit = builtins.substring 0 7 (inputs.self.rev or "dirty");

Expand Down Expand Up @@ -93,7 +93,7 @@
};

# This is a hash of all the Cargo dependencies, for reproducibility.
cargoSha256 = "sha256-Y1HRgFCn990xP7o0CAOJ7DUYmecMedLj2dqdPm8AZTQ=";
cargoSha256 = "sha256-/idodSvHfn0LdkdMt1pznh72XzAZSjGMzJqVseyZ+JU=";

nativeBuildInputs = with pkgs; [ clang git-mock pkg-config ];
buildInputs = with pkgs; [ openssl ] ++ (
Expand Down
10 changes: 5 additions & 5 deletions libs/mock-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ version = "0.0.1"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38", default-features = false }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

[dev-dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
scale-info = { version = "2.3.0", features = ["derive"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }

[features]
default = ["std"]
Expand Down
6 changes: 2 additions & 4 deletions libs/mock-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@
//! # #[pallet::config]
//! # pub trait Config: frame_system::Config { }
//! # #[pallet::pallet]
//! # #[pallet::generate_store(pub(super) trait Store)]
//! # pub struct Pallet<T>(_);
//! # //! # pub struct Pallet<T>(_);
//!
//! #[pallet::storage]
//! pub(super) type CallIds<T: Config> = StorageMap<
Expand Down Expand Up @@ -194,8 +193,7 @@
//! }
//!
//! #[pallet::pallet]
//! #[pallet::generate_store(pub(super) trait Store)]
//! pub struct Pallet<T>(_);
//! //! pub struct Pallet<T>(_);
//!
//! #[pallet::storage]
//! pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
6 changes: 2 additions & 4 deletions libs/mock-builder/tests/pallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ pub mod pallet_mock_test {
pub trait Config: frame_system::Config {}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down Expand Up @@ -118,8 +117,7 @@ pub mod my_pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

impl<T: Config> Pallet<T> {
pub fn my_call(name: &str, value: u64) -> Result<(), String> {
Expand Down
14 changes: 7 additions & 7 deletions libs/mocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", default-features = false, version = "3.0.0", features = ["derive"] }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.38" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

cfg-primitives = { path = "../primitives", default-features = false }
cfg-traits = { path = "../traits", default-features = false }
cfg-types = { path = "../types", default-features = false }
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.38" }
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", default-features = false, branch = "polkadot-v0.9.43" }

mock-builder = { path = "../../libs/mock-builder" }

Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/change_guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ pub mod pallet_mock_change_guard {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
5 changes: 2 additions & 3 deletions libs/mocks/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down Expand Up @@ -88,7 +87,7 @@ pub mod pallet {
}

impl<T: Config> DataFeeder<T::DataId, T::DataElem, T::AccountId> for Pallet<T> {
fn feed_value(a: T::AccountId, b: T::DataId, c: T::DataElem) -> DispatchResult {
fn feed_value(a: Option<T::AccountId>, b: T::DataId, c: T::DataElem) -> DispatchResult {
execute_call!((a, b, c))
}
}
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/liquidity_pools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/liquidity_pools_gateway_routers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ pub mod pallet {
pub trait Config: frame_system::Config {}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/pools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ pub mod pallet {
pub trait Config: frame_system::Config {}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/try_convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T, I = ()>(_);
pub struct Pallet<T, I = ()>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config<I>, I: 'static = ()> = StorageMap<
Expand Down
3 changes: 1 addition & 2 deletions libs/mocks/src/write_off_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
pub struct Pallet<T>(_);

#[pallet::storage]
pub(super) type CallIds<T: Config> = StorageMap<
Expand Down
24 changes: 12 additions & 12 deletions libs/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ scale-info = { version = "2.3.0", default-features = false, features = ["derive"
serde = { version = "1.0.119" }

# substrate primitives dependencies
sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-arithmetic = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-consensus-aura = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

# substrate frame dependencies
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
pallet-collective = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
pallet-collective = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

# cumulus primitives dependencies
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.38" }
cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.43" }

# XCM primitives dependencies
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.38" }
xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.38" }
xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" }
xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.43" }

[features]
default = ["std"]
Expand Down
2 changes: 1 addition & 1 deletion libs/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub mod constants {
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 seconds of compute with a 6 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND)
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND, 0)
.saturating_div(2)
.set_proof_size(MAX_POV_SIZE as u64);

Expand Down
4 changes: 2 additions & 2 deletions libs/proofs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"], default-features = false }
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

[dev-dependencies]
sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.38" }
sp-core = { git = "https://github.com/paritytech/substrate", default-features = true, branch = "polkadot-v0.9.43" }

[features]
default = ["std"]
Expand Down
10 changes: 5 additions & 5 deletions libs/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive
scale-info = { version = "2.3.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.119", default-features = false }

frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.38" }
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }
sp-std = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.43" }

# Optional dependencies
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.38" }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.43" }

[features]
default = ["std"]
Expand Down
17 changes: 13 additions & 4 deletions libs/test-utils/src/mocks/accountant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ macro_rules! impl_mock_accountant {
use std::borrow::{Borrow as _, BorrowMut as _};

use __private::STATE as __private_STATE;
use frame_support::traits::tokens::{Fortitude, Precision, Preservation};

use super::*;

Expand Down Expand Up @@ -108,7 +109,7 @@ macro_rules! impl_mock_accountant {
impl<Tokens> cfg_traits::investments::InvestmentAccountant<$account_id> for $name<Tokens>
where
Tokens: frame_support::traits::tokens::fungibles::Mutate<$account_id>
+ frame_support::traits::tokens::fungibles::Transfer<$account_id>
// + frame_support::traits::tokens::fungibles::Transfer<$account_id>
+ frame_support::traits::tokens::fungibles::Inspect<
$account_id,
Balance = $balance,
Expand Down Expand Up @@ -142,7 +143,8 @@ macro_rules! impl_mock_accountant {
) -> Result<(), Self::Error> {
let _ = __private_STATE.with(|s| s.borrow().info(&id))?;

Tokens::transfer(id.into(), source, dest, amount, false).map(|_| ())
Tokens::transfer(id.into(), source, dest, amount, Preservation::Protect)
.map(|_| ())
}

fn deposit(
Expand All @@ -152,7 +154,7 @@ macro_rules! impl_mock_accountant {
) -> Result<(), Self::Error> {
let _ = __private_STATE.with(|s| s.borrow().info(&id))?;

Tokens::mint_into(id.into(), buyer, amount)
Tokens::mint_into(id.into(), buyer, amount).map(|_| ())
}

fn withdraw(
Expand All @@ -162,7 +164,14 @@ macro_rules! impl_mock_accountant {
) -> Result<(), Self::Error> {
let _ = __private_STATE.with(|s| s.borrow().info(&id))?;

Tokens::burn_from(id.into(), seller, amount).map(|_| ())
Tokens::burn_from(
id.into(),
seller,
amount,
Precision::Exact,
Fortitude::Polite,
)
.map(|_| ())
}
}

Expand Down
2 changes: 1 addition & 1 deletion libs/test-utils/src/mocks/nav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod pallet {
}

#[pallet::pallet]
#[pallet::generate_store(pub (super) trait Store)]

pub struct Pallet<T>(_);

#[pallet::storage]
Expand Down
Loading