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

feat: ✨ remove file deletion requests expiration #311

Open
wants to merge 12 commits into
base: feat/enforce-file-deletion-msps
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
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
84 changes: 33 additions & 51 deletions api-augment/dist/interfaces/lookup.js

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

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

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions api-augment/dist/types/interfaces/augment-api-consts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ declare module "@polkadot/api-base/types/consts" {
* Time-to-live for a move bucket request, after which the request is considered expired.
**/
moveBucketRequestTtl: u32 & AugmentedConst<ApiType>;
/**
* Time-to-live for a pending file deletion request, after which a priority challenge is sent out to enforce the deletion.
**/
pendingFileDeletionRequestTtl: u32 & AugmentedConst<ApiType>;
/**
* Deposit held from the User when creating a new storage request
**/
Expand Down
52 changes: 0 additions & 52 deletions api-augment/dist/types/interfaces/augment-api-events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,58 +580,6 @@ declare module "@polkadot/api-base/types/events" {
private: bool;
}
>;
/**
* Failed to decrease bucket size for expired file deletion request
**/
FailedToDecreaseBucketSize: AugmentedEvent<
ApiType,
[
user: AccountId32,
bucketId: H256,
fileKey: H256,
fileSize: u64,
error: SpRuntimeDispatchError
],
{
user: AccountId32;
bucketId: H256;
fileKey: H256;
fileSize: u64;
error: SpRuntimeDispatchError;
}
>;
/**
* Failed to decrease MSP's used capacity for expired file deletion request
**/
FailedToDecreaseMspUsedCapacity: AugmentedEvent<
ApiType,
[
user: AccountId32,
mspId: H256,
fileKey: H256,
fileSize: u64,
error: SpRuntimeDispatchError
],
{
user: AccountId32;
mspId: H256;
fileKey: H256;
fileSize: u64;
error: SpRuntimeDispatchError;
}
>;
/**
* Failed to get the MSP owner of the bucket for an expired file deletion request
* This is different from the bucket not having a MSP, which is allowed and won't error
**/
FailedToGetMspOfBucket: AugmentedEvent<
ApiType,
[bucketId: H256, error: SpRuntimeDispatchError],
{
bucketId: H256;
error: SpRuntimeDispatchError;
}
>;
/**
* Notifies that a priority challenge failed to be queued for pending file deletion.
**/
Expand Down
22 changes: 0 additions & 22 deletions api-augment/dist/types/interfaces/augment-api-query.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,6 @@ declare module "@polkadot/api-base/types/storage" {
[H256, H256]
> &
QueryableStorageEntry<ApiType, [H256, H256]>;
/**
* A map of blocks to expired file deletion requests.
**/
fileDeletionRequestExpirations: AugmentedQuery<
ApiType,
(
arg: u32 | AnyNumber | Uint8Array
) => Observable<Vec<PalletFileSystemPendingFileDeletionRequest>>,
[u32]
> &
QueryableStorageEntry<ApiType, [u32]>;
/**
* Maximum number replication target allowed to be set for a storage request to be fulfilled.
**/
Expand All @@ -330,17 +319,6 @@ declare module "@polkadot/api-base/types/storage" {
[u32]
> &
QueryableStorageEntry<ApiType, [u32]>;
/**
* A pointer to the earliest available block to insert a new file deletion request expiration.
*
* This should always be greater or equal than current block + [`Config::PendingFileDeletionRequestTtl`].
**/
nextAvailableFileDeletionRequestExpirationBlock: AugmentedQuery<
ApiType,
() => Observable<u32>,
[]
> &
QueryableStorageEntry<ApiType, []>;
/**
* A pointer to the earliest available block to insert a new move bucket request expiration.
*
Expand Down
Loading
Loading