Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2eff08b
refactor: :art: moved runtime apis into their own file
TDemeco Sep 27, 2024
303feb3
fix: :arrow_up: fix upgrade to polkadot-sdk v1.10.0
TDemeco Sep 27, 2024
e5ba5bd
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 27, 2024
3e4328d
fix: :bug: add removed runtime api `get_worst_case_scenario_slashable…
TDemeco Sep 27, 2024
3605611
fix: :bug: add missing generic in storage providers runtime api
TDemeco Sep 27, 2024
3659377
chore: :label: run typegen
TDemeco Sep 27, 2024
c1219f1
style: :rotating_light: run cargo fmt
TDemeco Sep 27, 2024
5ac0258
fix: :art: fix cargo clippy
TDemeco Sep 28, 2024
e82a113
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 28, 2024
91ae601
fix: :ambulance: fix mocked relay chain randomness
TDemeco Sep 28, 2024
97c0b64
style: :rotating_light: run cargo fmt
TDemeco Sep 28, 2024
787d1df
chore: :rotating_light: temporary remove unused import (until v1.13.0)
TDemeco Sep 28, 2024
9653a4e
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 28, 2024
6fb8bd4
fix: :adhesive_bandage: update `query_earliest_file_volunteer_tick` r…
TDemeco Sep 28, 2024
cde6b90
fix: :ambulance: fix issues with merge from main
TDemeco Sep 28, 2024
570e548
style: :rotating_light: run cargo fmt
TDemeco Sep 28, 2024
9bb33cc
feat: :package: initial update to polkadot sdk v1.11.0
TDemeco Sep 30, 2024
e28f09b
feat: :arrow_up: finish upgrade to polkadot sdk v1.11.0
TDemeco Sep 30, 2024
2947b01
Merge branch 'main' into update/polkadot-sdk-1.10.0
TDemeco Sep 30, 2024
5c07140
chore: :label: run typegen
TDemeco Sep 30, 2024
f86f2c1
Merge branch 'update/polkadot-sdk-1.10.0' into update/polkadot-sdk-1.…
TDemeco Sep 30, 2024
f4964fc
chore: :label: run typegen
TDemeco Sep 30, 2024
f85735d
fix: :white_check_mark: fix node tests after rebenchmark of balances …
TDemeco Oct 1, 2024
b7090b5
feat: :arrow_up: update to Polkadot SDK v1.12.0
TDemeco Oct 3, 2024
889fa3c
feat: :arrow_up: update to Polkadot SDK v1.13.0
TDemeco Oct 4, 2024
9587713
fix: :arrow_up: finish upgrading to Polkadot SDK v1.13.0
TDemeco Oct 4, 2024
6bde3e8
Merge branch 'main' into update/polkadot-sdk-1.12.0
TDemeco Oct 4, 2024
d697a9b
merge 'main' into 'update/polkadot-sdk-1.12.0'
TDemeco Oct 4, 2024
22cf3ab
fix: :adhesive_bandage: fix merge from main
TDemeco Oct 4, 2024
a44a169
chore: :rotating_light: run pnpm fmt:fix
TDemeco Oct 4, 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
Merge branch 'main' into update/polkadot-sdk-1.10.0
  • Loading branch information
TDemeco committed Sep 28, 2024
commit 9653a4ea8a3c11a2febefbb5ac51a171439dc514
220 changes: 113 additions & 107 deletions api-augment/dist/interfaces/lookup.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-augment/dist/interfaces/lookup.js.map

Large diffs are not rendered by default.

196 changes: 102 additions & 94 deletions api-augment/dist/types/interfaces/lookup.d.ts

Large diffs are not rendered by default.

220 changes: 106 additions & 114 deletions api-augment/dist/types/interfaces/types-lookup.d.ts

Large diffs are not rendered by default.

220 changes: 113 additions & 107 deletions api-augment/src/interfaces/lookup.ts

Large diffs are not rendered by default.

224 changes: 110 additions & 114 deletions api-augment/src/interfaces/types-lookup.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-augment/storagehub.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pallets/file-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ pub mod pallet {

/// Number of ticks until all BSPs would reach the [`Config::MaximumThreshold`] to ensure that all BSPs are able to volunteer.
#[pallet::storage]
pub type BlockRangeToMaximumThreshold<T: Config> =
StorageValue<_, BlockNumberFor<T>, ValueQuery>;
pub type TickRangeToMaximumThreshold<T: Config> = StorageValue<_, TickNumber<T>, ValueQuery>;

#[pallet::genesis_config]
pub struct GenesisConfig<T: Config> {
Expand Down
58 changes: 27 additions & 31 deletions pallets/file-system/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1712,9 +1712,6 @@ mod request_storage {
let storage_request_ttl: BlockNumberFor<Test> = storage_request_ttl.into();
let expiration_block = System::block_number() + storage_request_ttl;

// Assert that the next starting block to clean up is set to 0 initially
assert_eq!(file_system::NextStartingBlockToCleanUp::<Test>::get(), 0);

// Assert that the next expiration block number is the storage request ttl since a single storage request was made
assert_eq!(
file_system::NextAvailableStorageRequestExpirationBlock::<Test>::get(),
Expand Down Expand Up @@ -1864,9 +1861,6 @@ mod request_storage {
let expected_expiration_block_number: BlockNumberFor<Test> =
expected_expiration_block_number.into();

// Assert that the `NextExpirationInsertionBlockNumber` storage is set to 0 initially
assert_eq!(file_system::NextStartingBlockToCleanUp::<Test>::get(), 0);

// Assert that the storage request expirations storage is at max capacity
assert_eq!(
file_system::StorageRequestExpirations::<Test>::get(
Expand All @@ -1890,9 +1884,6 @@ mod request_storage {
max_storage_request_expiry as usize
);

// Assert that the `NextExpirationInsertionBlockNumber` storage did not update
assert_eq!(file_system::NextStartingBlockToCleanUp::<Test>::get(), 0);

// Go to block number after which the storage request expirations should be removed
roll_to(expected_expiration_block_number + 1);

Expand Down Expand Up @@ -2016,9 +2007,6 @@ mod revoke_storage_request {
let storage_request_ttl: BlockNumberFor<Test> = storage_request_ttl.into();
let expiration_block = System::block_number() + storage_request_ttl;

// Assert that the NextExpirationInsertionBlockNumber storage is set to 0 initially
assert_eq!(file_system::NextStartingBlockToCleanUp::<Test>::get(), 0);

// Assert that the storage request expiration was appended to the list at `StorageRequestTtl`
assert_eq!(
file_system::StorageRequestExpirations::<Test>::get(expiration_block),
Expand Down Expand Up @@ -2230,7 +2218,9 @@ mod msp_accept_storage_request {

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(file_key).unwrap().msp,
file_system::StorageRequests::<Test>::get(file_key)
.unwrap()
.msp,
Some((msp_id, true))
);

Expand Down Expand Up @@ -2329,7 +2319,9 @@ mod msp_accept_storage_request {

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(first_file_key).unwrap().msp,
file_system::StorageRequests::<Test>::get(first_file_key)
.unwrap()
.msp,
Some((msp_id, true))
);

Expand Down Expand Up @@ -2366,11 +2358,11 @@ mod msp_accept_storage_request {
}
));

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(second_file_key).unwrap().msp,
Some((msp_id, true))
);
// Assert that the storage was updated
assert_eq!(
FileSystem::storage_requests(second_file_key).unwrap().msp,
Some((msp_id, true))
);

// Get the new root of the bucket.
let new_bucket_root = Providers::get_root_bucket(&bucket_id).unwrap();
Expand Down Expand Up @@ -2478,7 +2470,9 @@ mod msp_accept_storage_request {

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(first_file_key).unwrap().msp,
file_system::StorageRequests::<Test>::get(first_file_key)
.unwrap()
.msp,
Some((msp_id, true))
);

Expand Down Expand Up @@ -2515,11 +2509,11 @@ mod msp_accept_storage_request {
}
));

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(second_file_key).unwrap().msp,
Some((msp_id, true))
);
// Assert that the storage was updated
assert_eq!(
FileSystem::storage_requests(second_file_key).unwrap().msp,
Some((msp_id, true))
);

// Get the new root of the bucket.
let new_bucket_root = Providers::get_root_bucket(&second_bucket_id).unwrap();
Expand Down Expand Up @@ -2634,7 +2628,9 @@ mod msp_accept_storage_request {

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(first_file_key).unwrap().msp,
file_system::StorageRequests::<Test>::get(first_file_key)
.unwrap()
.msp,
Some((msp_id, true))
);

Expand Down Expand Up @@ -2671,11 +2667,11 @@ mod msp_accept_storage_request {
}
));

// Assert that the storage was updated
assert_eq!(
file_system::StorageRequests::<Test>::get(second_file_key).unwrap().msp,
Some((msp_id, true))
);
// Assert that the storage was updated
assert_eq!(
FileSystem::storage_requests(second_file_key).unwrap().msp,
Some((msp_id, true))
);

// Get the new root of the bucket.
let new_bucket_root = Providers::get_root_bucket(&second_bucket_id).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion pallets/proofs-dealer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub mod pallet {
/// Those who are still in the entry by the time the tick is reached are considered to
/// have failed to submit a proof and subject to slashing.
#[pallet::storage]
pub type ChallengeTickToChallengedProviders<T: Config> = StorageDoubleMap<
pub type TickToProvidersDeadlines<T: Config> = StorageDoubleMap<
_,
Blake2_128Concat,
BlockNumberFor<T>,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.