@storagehub/api-augment 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/biome.json +2 -9
- package/dist/parachain/index.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
- package/dist/parachain/interfaces/augment-api.js.map +1 -0
- package/dist/parachain/interfaces/augment-types.js.map +1 -0
- package/dist/parachain/interfaces/definitions.js.map +1 -0
- package/dist/parachain/interfaces/index.js.map +1 -0
- package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
- package/dist/parachain/interfaces/lookup.js.map +1 -0
- package/dist/parachain/interfaces/registry.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/parachain/interfaces/types-lookup.js.map +1 -0
- package/dist/parachain/interfaces/types.js.map +1 -0
- package/dist/solochain-evm/index.js +4 -0
- package/dist/solochain-evm/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api.js +10 -0
- package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-types.js +6 -0
- package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
- package/dist/solochain-evm/interfaces/definitions.js +2 -0
- package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/index.js +4 -0
- package/dist/solochain-evm/interfaces/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/lookup.js +3744 -0
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/registry.js +6 -0
- package/dist/solochain-evm/interfaces/registry.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
- package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/types.js +4 -0
- package/dist/solochain-evm/interfaces/types.js.map +1 -0
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +105 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
- package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +145 -11
- package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
- package/dist/types/parachain/interfaces/registry.d.ts +311 -0
- package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +135 -18
- package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +543 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1419 -0
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
- package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +325 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
- package/metadata-sh-parachain.json +5 -0
- package/metadata-sh-solochain-evm.json +5 -0
- package/package.json +41 -26
- package/scripts/scrapeMetadata.ts +41 -29
- package/src/parachain/index.ts +3 -0
- package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
- package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
- package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
- package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
- package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +202 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
- package/src/{interfaces → parachain/interfaces}/augment-types.ts +280 -12
- package/src/parachain/interfaces/definitions.ts +1 -0
- package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
- package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
- package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +165 -18
- package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
- package/src/solochain-evm/index.ts +3 -0
- package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
- package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +977 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
- package/src/solochain-evm/interfaces/augment-api.ts +10 -0
- package/src/solochain-evm/interfaces/augment-types.ts +2776 -0
- package/src/solochain-evm/interfaces/definitions.ts +1 -0
- package/src/solochain-evm/interfaces/index.ts +4 -0
- package/src/solochain-evm/interfaces/lookup.ts +3788 -0
- package/src/solochain-evm/interfaces/registry.ts +506 -0
- package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +398 -0
- package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
- package/src/solochain-evm/interfaces/types.ts +4 -0
- package/tsconfig.json +17 -20
- package/tsconfig.parachain.json +17 -0
- package/tsconfig.solochain-evm.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/index.js.map +0 -1
- package/dist/interfaces/augment-api-consts.js.map +0 -1
- package/dist/interfaces/augment-api-errors.js.map +0 -1
- package/dist/interfaces/augment-api-events.js.map +0 -1
- package/dist/interfaces/augment-api-query.js.map +0 -1
- package/dist/interfaces/augment-api-rpc.js.map +0 -1
- package/dist/interfaces/augment-api-runtime.js.map +0 -1
- package/dist/interfaces/augment-api-tx.js.map +0 -1
- package/dist/interfaces/augment-api.js.map +0 -1
- package/dist/interfaces/augment-types.js.map +0 -1
- package/dist/interfaces/definitions.js.map +0 -1
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/lookup.js.map +0 -1
- package/dist/interfaces/registry.js.map +0 -1
- package/dist/interfaces/storagehubclient/definitions.js +0 -7
- package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
- package/dist/interfaces/storagehubclient/index.js.map +0 -1
- package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
- package/dist/interfaces/storagehubclient/types.js.map +0 -1
- package/dist/interfaces/types-lookup.js.map +0 -1
- package/dist/interfaces/types.js.map +0 -1
- package/dist/types/interfaces/registry.d.ts +0 -272
- package/src/interfaces/storagehubclient/definitions.ts +0 -7
- package/storagehub.json +0 -1
- /package/dist/{index.js → parachain/index.js} +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
- /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
- /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
- /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
- /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
|
@@ -41,7 +41,10 @@ import type {
|
|
|
41
41
|
PalletBalancesBalanceLock,
|
|
42
42
|
PalletBalancesReserveData,
|
|
43
43
|
PalletCollatorSelectionCandidateInfo,
|
|
44
|
+
PalletFileSystemIncompleteStorageRequestMetadata,
|
|
44
45
|
PalletFileSystemMoveBucketRequestMetadata,
|
|
46
|
+
PalletFileSystemPendingFileDeletionRequest,
|
|
47
|
+
PalletFileSystemPendingStopStoringRequest,
|
|
45
48
|
PalletFileSystemStorageRequestBspsMetadata,
|
|
46
49
|
PalletFileSystemStorageRequestMetadata,
|
|
47
50
|
PalletMessageQueueBookState,
|
|
@@ -58,31 +61,34 @@ import type {
|
|
|
58
61
|
PalletPaymentStreamsDynamicRatePaymentStream,
|
|
59
62
|
PalletPaymentStreamsFixedRatePaymentStream,
|
|
60
63
|
PalletPaymentStreamsProviderLastChargeableInfo,
|
|
64
|
+
PalletProofsDealerCustomChallenge,
|
|
65
|
+
PalletProofsDealerProofSubmissionRecord,
|
|
61
66
|
PalletStorageProvidersBackupStorageProvider,
|
|
62
67
|
PalletStorageProvidersBucket,
|
|
63
68
|
PalletStorageProvidersMainStorageProvider,
|
|
64
|
-
|
|
69
|
+
PalletStorageProvidersSignUpRequest,
|
|
70
|
+
PalletStorageProvidersStorageProviderId,
|
|
71
|
+
PalletStorageProvidersTopUpMetadata,
|
|
72
|
+
PalletStorageProvidersValueProposition,
|
|
65
73
|
PalletTransactionPaymentReleases,
|
|
66
74
|
PalletXcmQueryStatus,
|
|
67
75
|
PalletXcmRemoteLockedFungibleRecord,
|
|
68
76
|
PalletXcmVersionMigrationStage,
|
|
69
77
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
PolkadotPrimitivesV8AbridgedHostConfiguration,
|
|
79
|
+
PolkadotPrimitivesV8PersistedValidationData,
|
|
80
|
+
PolkadotPrimitivesV8UpgradeGoAhead,
|
|
81
|
+
PolkadotPrimitivesV8UpgradeRestriction,
|
|
82
|
+
ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey,
|
|
83
|
+
ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue,
|
|
84
|
+
ShParachainRuntimeRuntimeHoldReason,
|
|
85
|
+
ShParachainRuntimeSessionKeys,
|
|
75
86
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
76
87
|
SpCoreCryptoKeyTypeId,
|
|
77
88
|
SpRuntimeDigest,
|
|
78
89
|
SpTrieStorageProof,
|
|
79
90
|
SpWeightsWeightV2Weight,
|
|
80
|
-
|
|
81
|
-
StagingXcmV4Xcm,
|
|
82
|
-
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey,
|
|
83
|
-
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue,
|
|
84
|
-
StorageHubRuntimeRuntimeHoldReason,
|
|
85
|
-
StorageHubRuntimeSessionKeys,
|
|
91
|
+
StagingXcmV5Instruction,
|
|
86
92
|
XcmVersionedAssetId,
|
|
87
93
|
XcmVersionedLocation
|
|
88
94
|
} from "@polkadot/types/lookup";
|
|
@@ -202,7 +208,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
202
208
|
(arg: AccountId32 | string | Uint8Array) => Observable<
|
|
203
209
|
Vec<
|
|
204
210
|
{
|
|
205
|
-
readonly id:
|
|
211
|
+
readonly id: ShParachainRuntimeRuntimeHoldReason;
|
|
206
212
|
readonly amount: u128;
|
|
207
213
|
} & Struct
|
|
208
214
|
>
|
|
@@ -309,143 +315,125 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
309
315
|
> &
|
|
310
316
|
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
311
317
|
/**
|
|
312
|
-
*
|
|
318
|
+
* Incomplete storage requests with pending provider file removal.
|
|
319
|
+
*
|
|
320
|
+
* This mapping tracks storage requests that have been expired or rejected but still have
|
|
321
|
+
* confirmed providers storing files. Each entry tracks which providers still need to remove
|
|
322
|
+
* their files. Once all providers have removed their files, the entry is automatically cleaned up.
|
|
313
323
|
**/
|
|
314
|
-
|
|
324
|
+
incompleteStorageRequests: AugmentedQuery<
|
|
315
325
|
ApiType,
|
|
316
326
|
(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
[H256, H256]
|
|
321
|
-
> &
|
|
322
|
-
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
323
|
-
/**
|
|
324
|
-
* A map of blocks to expired file deletion requests.
|
|
325
|
-
**/
|
|
326
|
-
fileDeletionRequestExpirations: AugmentedQuery<
|
|
327
|
-
ApiType,
|
|
328
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, H256]>>>,
|
|
329
|
-
[u32]
|
|
327
|
+
arg: H256 | string | Uint8Array
|
|
328
|
+
) => Observable<Option<PalletFileSystemIncompleteStorageRequestMetadata>>,
|
|
329
|
+
[H256]
|
|
330
330
|
> &
|
|
331
|
-
QueryableStorageEntry<ApiType, [
|
|
331
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
332
332
|
/**
|
|
333
|
-
* A map of
|
|
333
|
+
* A map of ticks to expired move bucket requests.
|
|
334
334
|
**/
|
|
335
335
|
moveBucketRequestExpirations: AugmentedQuery<
|
|
336
336
|
ApiType,
|
|
337
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<
|
|
337
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
|
|
338
338
|
[u32]
|
|
339
339
|
> &
|
|
340
340
|
QueryableStorageEntry<ApiType, [u32]>;
|
|
341
341
|
/**
|
|
342
|
-
*
|
|
342
|
+
* Mapping from MSPs to the amount of pending file deletion requests they have.
|
|
343
343
|
*
|
|
344
|
-
* This
|
|
344
|
+
* This is used to keep track of the amount of pending file deletion requests each MSP has, so that MSPs are removed
|
|
345
|
+
* from the privileged providers list if they have at least one, and are added back if they have none.
|
|
346
|
+
* This is to ensure that MSPs are correctly incentivised to submit the required proofs for file deletions.
|
|
345
347
|
**/
|
|
346
|
-
|
|
348
|
+
mspsAmountOfPendingFileDeletionRequests: AugmentedQuery<
|
|
347
349
|
ApiType,
|
|
348
|
-
() => Observable<u32>,
|
|
349
|
-
[]
|
|
350
|
+
(arg: H256 | string | Uint8Array) => Observable<u32>,
|
|
351
|
+
[H256]
|
|
350
352
|
> &
|
|
351
|
-
QueryableStorageEntry<ApiType, []>;
|
|
353
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
352
354
|
/**
|
|
353
|
-
* A pointer to the earliest available
|
|
355
|
+
* A pointer to the earliest available tick to insert a new move bucket request expiration.
|
|
354
356
|
*
|
|
355
|
-
* This should always be greater or equal than current
|
|
357
|
+
* This should always be greater or equal than current tick + [`Config::MoveBucketRequestTtl`].
|
|
356
358
|
**/
|
|
357
|
-
|
|
359
|
+
nextAvailableMoveBucketRequestExpirationTick: AugmentedQuery<
|
|
358
360
|
ApiType,
|
|
359
361
|
() => Observable<u32>,
|
|
360
362
|
[]
|
|
361
363
|
> &
|
|
362
364
|
QueryableStorageEntry<ApiType, []>;
|
|
363
365
|
/**
|
|
364
|
-
* A pointer to the earliest available
|
|
366
|
+
* A pointer to the earliest available tick to insert a new storage request expiration.
|
|
365
367
|
*
|
|
366
|
-
* This should always be greater or equal than current
|
|
368
|
+
* This should always be greater or equal than current tick + [`Config::StorageRequestTtl`].
|
|
367
369
|
**/
|
|
368
|
-
|
|
370
|
+
nextAvailableStorageRequestExpirationTick: AugmentedQuery<
|
|
369
371
|
ApiType,
|
|
370
372
|
() => Observable<u32>,
|
|
371
373
|
[]
|
|
372
374
|
> &
|
|
373
375
|
QueryableStorageEntry<ApiType, []>;
|
|
374
376
|
/**
|
|
375
|
-
* A pointer to the starting
|
|
377
|
+
* A pointer to the starting tick to clean up expired items.
|
|
376
378
|
*
|
|
377
|
-
* If this
|
|
378
|
-
* attempt to
|
|
379
|
+
* If this tick is behind the current tick number, the cleanup algorithm in `on_idle` will
|
|
380
|
+
* attempt to advance this tick pointer as close to or up to the current tick number. This
|
|
379
381
|
* will execute provided that there is enough remaining weight to do so.
|
|
380
382
|
**/
|
|
381
|
-
|
|
383
|
+
nextStartingTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
382
384
|
QueryableStorageEntry<ApiType, []>;
|
|
383
|
-
/**
|
|
384
|
-
* Bookkeeping of buckets that are pending to be moved to a new MSP.
|
|
385
|
-
**/
|
|
386
|
-
pendingBucketsToMove: AugmentedQuery<
|
|
387
|
-
ApiType,
|
|
388
|
-
(arg: H256 | string | Uint8Array) => Observable<Null>,
|
|
389
|
-
[H256]
|
|
390
|
-
> &
|
|
391
|
-
QueryableStorageEntry<ApiType, [H256]>;
|
|
392
385
|
/**
|
|
393
386
|
* Pending file deletion requests.
|
|
394
387
|
*
|
|
395
|
-
* A mapping from a user
|
|
388
|
+
* A mapping from a user Account ID to a list of pending file deletion requests (which have the file information).
|
|
396
389
|
**/
|
|
397
390
|
pendingFileDeletionRequests: AugmentedQuery<
|
|
398
391
|
ApiType,
|
|
399
|
-
(
|
|
392
|
+
(
|
|
393
|
+
arg: AccountId32 | string | Uint8Array
|
|
394
|
+
) => Observable<Vec<PalletFileSystemPendingFileDeletionRequest>>,
|
|
400
395
|
[AccountId32]
|
|
401
396
|
> &
|
|
402
397
|
QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
403
398
|
/**
|
|
404
399
|
* Pending move bucket requests.
|
|
405
400
|
*
|
|
406
|
-
* A
|
|
407
|
-
*
|
|
401
|
+
* A mapping from Bucket ID to their move bucket request metadata, which includes the new MSP
|
|
402
|
+
* and value propositions that this bucket would take if accepted.
|
|
408
403
|
**/
|
|
409
404
|
pendingMoveBucketRequests: AugmentedQuery<
|
|
410
405
|
ApiType,
|
|
411
406
|
(
|
|
412
|
-
|
|
413
|
-
arg2: H256 | string | Uint8Array
|
|
407
|
+
arg: H256 | string | Uint8Array
|
|
414
408
|
) => Observable<Option<PalletFileSystemMoveBucketRequestMetadata>>,
|
|
415
|
-
[H256
|
|
409
|
+
[H256]
|
|
416
410
|
> &
|
|
417
|
-
QueryableStorageEntry<ApiType, [H256
|
|
411
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
418
412
|
/**
|
|
419
413
|
* Pending file stop storing requests.
|
|
420
414
|
*
|
|
421
|
-
* A double mapping from BSP IDs to a list of file keys pending stop storing requests to the block in which those requests were opened
|
|
422
|
-
*
|
|
415
|
+
* A double mapping from BSP IDs to a list of file keys pending stop storing requests to the block in which those requests were opened,
|
|
416
|
+
* the proven size of the file and the owner of the file.
|
|
423
417
|
* The block number is used to avoid BSPs being able to stop storing files immediately which would allow them to avoid challenges
|
|
424
418
|
* of missing files. The size is to be able to decrease their used capacity when they confirm to stop storing the file.
|
|
419
|
+
* The owner is to be able to update the payment stream between the user and the BSP.
|
|
425
420
|
**/
|
|
426
421
|
pendingStopStoringRequests: AugmentedQuery<
|
|
427
422
|
ApiType,
|
|
428
423
|
(
|
|
429
424
|
arg1: H256 | string | Uint8Array,
|
|
430
425
|
arg2: H256 | string | Uint8Array
|
|
431
|
-
) => Observable<Option<
|
|
426
|
+
) => Observable<Option<PalletFileSystemPendingStopStoringRequest>>,
|
|
432
427
|
[H256, H256]
|
|
433
428
|
> &
|
|
434
429
|
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
435
430
|
/**
|
|
436
|
-
*
|
|
431
|
+
* A double map from file key to the BSP IDs of the BSPs that volunteered to store the file to whether that BSP has confirmed storing it.
|
|
437
432
|
*
|
|
438
|
-
*
|
|
439
|
-
|
|
440
|
-
replicationTarget: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
441
|
-
QueryableStorageEntry<ApiType, []>;
|
|
442
|
-
/**
|
|
443
|
-
* A double map from storage request to BSP `AccountId`s that volunteered to store the file.
|
|
433
|
+
* Any BSP under a file key prefix is considered to be a volunteer and can be removed at any time.
|
|
434
|
+
* Once a BSP submits a valid proof via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
|
|
444
435
|
*
|
|
445
|
-
*
|
|
446
|
-
* Once a BSP submits a valid proof to the via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
|
|
447
|
-
*
|
|
448
|
-
* When a storage request is expired or removed, the corresponding storage request prefix in this map is removed.
|
|
436
|
+
* When a storage request is expired or removed, the corresponding file key prefix in this map is removed.
|
|
449
437
|
**/
|
|
450
438
|
storageRequestBsps: AugmentedQuery<
|
|
451
439
|
ApiType,
|
|
@@ -457,7 +445,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
457
445
|
> &
|
|
458
446
|
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
459
447
|
/**
|
|
460
|
-
* A map of
|
|
448
|
+
* A map of ticks to expired storage requests.
|
|
461
449
|
**/
|
|
462
450
|
storageRequestExpirations: AugmentedQuery<
|
|
463
451
|
ApiType,
|
|
@@ -473,11 +461,6 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
473
461
|
[H256]
|
|
474
462
|
> &
|
|
475
463
|
QueryableStorageEntry<ApiType, [H256]>;
|
|
476
|
-
/**
|
|
477
|
-
* Number of ticks until all BSPs would reach the [`Config::MaximumThreshold`] to ensure that all BSPs are able to volunteer.
|
|
478
|
-
**/
|
|
479
|
-
tickRangeToMaximumThreshold: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
480
|
-
QueryableStorageEntry<ApiType, []>;
|
|
481
464
|
/**
|
|
482
465
|
* Generic query
|
|
483
466
|
**/
|
|
@@ -762,7 +745,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
762
745
|
**/
|
|
763
746
|
hostConfiguration: AugmentedQuery<
|
|
764
747
|
ApiType,
|
|
765
|
-
() => Observable<Option<
|
|
748
|
+
() => Observable<Option<PolkadotPrimitivesV8AbridgedHostConfiguration>>,
|
|
766
749
|
[]
|
|
767
750
|
> &
|
|
768
751
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -908,7 +891,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
908
891
|
**/
|
|
909
892
|
upgradeGoAhead: AugmentedQuery<
|
|
910
893
|
ApiType,
|
|
911
|
-
() => Observable<Option<
|
|
894
|
+
() => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>,
|
|
912
895
|
[]
|
|
913
896
|
> &
|
|
914
897
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -923,7 +906,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
923
906
|
**/
|
|
924
907
|
upgradeRestrictionSignal: AugmentedQuery<
|
|
925
908
|
ApiType,
|
|
926
|
-
() => Observable<Option<
|
|
909
|
+
() => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>,
|
|
927
910
|
[]
|
|
928
911
|
> &
|
|
929
912
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -946,7 +929,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
946
929
|
**/
|
|
947
930
|
validationData: AugmentedQuery<
|
|
948
931
|
ApiType,
|
|
949
|
-
() => Observable<Option<
|
|
932
|
+
() => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>,
|
|
950
933
|
[]
|
|
951
934
|
> &
|
|
952
935
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -963,14 +946,17 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
963
946
|
ApiType,
|
|
964
947
|
(
|
|
965
948
|
arg:
|
|
966
|
-
|
|
|
949
|
+
| ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey
|
|
967
950
|
| { RuntimeConfig: any }
|
|
968
951
|
| string
|
|
969
952
|
| Uint8Array
|
|
970
|
-
) => Observable<Option<
|
|
971
|
-
[
|
|
953
|
+
) => Observable<Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>>,
|
|
954
|
+
[ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey]
|
|
972
955
|
> &
|
|
973
|
-
QueryableStorageEntry<
|
|
956
|
+
QueryableStorageEntry<
|
|
957
|
+
ApiType,
|
|
958
|
+
[ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey]
|
|
959
|
+
>;
|
|
974
960
|
/**
|
|
975
961
|
* Generic query
|
|
976
962
|
**/
|
|
@@ -980,7 +966,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
980
966
|
/**
|
|
981
967
|
* The accumulated price index since genesis, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
982
968
|
*
|
|
983
|
-
* This is equivalent to what it would have cost to
|
|
969
|
+
* This is equivalent to what it would have cost to provide one unit of the provided service since the beginning of the network.
|
|
984
970
|
* We use this to calculate the amount to charge for dynamic-rate payment streams, by checking out the difference between the index
|
|
985
971
|
* when the payment stream was last charged, and the index at the last chargeable tick.
|
|
986
972
|
*
|
|
@@ -990,14 +976,13 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
990
976
|
accumulatedPriceIndex: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
991
977
|
QueryableStorageEntry<ApiType, []>;
|
|
992
978
|
/**
|
|
993
|
-
* The current price per
|
|
979
|
+
* The current price per gigaunit per tick of the provided service, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
994
980
|
*
|
|
995
|
-
* This
|
|
981
|
+
* This can be updated each tick by the system manager.
|
|
996
982
|
*
|
|
997
|
-
*
|
|
998
|
-
* - [do_update_current_price_per_unit_per_tick](crate::utils::do_update_current_price_per_unit_per_tick), which updates the current price per unit per tick.
|
|
983
|
+
* It is in giga-units to allow for a more granular price per unit considering the limitations in decimal places that the Balance type might have.
|
|
999
984
|
**/
|
|
1000
|
-
|
|
985
|
+
currentPricePerGigaUnitPerTick: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
1001
986
|
QueryableStorageEntry<ApiType, []>;
|
|
1002
987
|
/**
|
|
1003
988
|
* The double mapping from a Provider, to its provided Users, to their dynamic-rate payment streams.
|
|
@@ -1005,7 +990,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1005
990
|
* This is used to store and manage dynamic-rate payment streams between Users and Providers.
|
|
1006
991
|
*
|
|
1007
992
|
* This storage is updated in:
|
|
1008
|
-
* - [
|
|
993
|
+
* - [create_dynamic_rate_payment_stream](crate::dispatchables::create_dynamic_rate_payment_stream), which adds a new entry to the map.
|
|
1009
994
|
* - [delete_dynamic_rate_payment_stream](crate::dispatchables::delete_dynamic_rate_payment_stream), which removes the corresponding entry from the map.
|
|
1010
995
|
* - [update_dynamic_rate_payment_stream](crate::dispatchables::update_dynamic_rate_payment_stream), which updates the entry's `amount_provided`.
|
|
1011
996
|
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `price_index_when_last_charged`.
|
|
@@ -1025,7 +1010,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1025
1010
|
* This is used to store and manage fixed-rate payment streams between Users and Providers.
|
|
1026
1011
|
*
|
|
1027
1012
|
* This storage is updated in:
|
|
1028
|
-
* - [
|
|
1013
|
+
* - [create_fixed_rate_payment_stream](crate::dispatchables::create_fixed_rate_payment_stream), which adds a new entry to the map.
|
|
1029
1014
|
* - [delete_fixed_rate_payment_stream](crate::dispatchables::delete_fixed_rate_payment_stream), which removes the corresponding entry from the map.
|
|
1030
1015
|
* - [update_fixed_rate_payment_stream](crate::dispatchables::update_fixed_rate_payment_stream), which updates the entry's `rate`.
|
|
1031
1016
|
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `last_charged_tick`.
|
|
@@ -1056,11 +1041,12 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1056
1041
|
> &
|
|
1057
1042
|
QueryableStorageEntry<ApiType, [H256]>;
|
|
1058
1043
|
/**
|
|
1059
|
-
* The last tick
|
|
1044
|
+
* The last tick that was processed by this pallet from the Proof Submitters interface.
|
|
1060
1045
|
*
|
|
1061
|
-
* This is used to keep track of the last tick
|
|
1062
|
-
*
|
|
1063
|
-
* a valid proof
|
|
1046
|
+
* This is used to keep track of the last tick processed by this pallet from the pallet that implements the from the ProvidersProofSubmitters interface.
|
|
1047
|
+
* This is done to know the last tick for which this pallet has registered the Providers that submitted a valid proof and updated their last chargeable info.
|
|
1048
|
+
* In the next `on_poll` hook execution, this pallet will update the last chargeable info of the Providers that submitted a valid proof in the tick that
|
|
1049
|
+
* follows the one saved in this storage element.
|
|
1064
1050
|
**/
|
|
1065
1051
|
lastSubmittersTickRegistered: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1066
1052
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -1074,6 +1060,18 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1074
1060
|
**/
|
|
1075
1061
|
onPollTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1076
1062
|
QueryableStorageEntry<ApiType, []>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Mapping of Privileged Providers.
|
|
1065
|
+
*
|
|
1066
|
+
* Privileged Providers are those who are allowed to charge up to the current tick in
|
|
1067
|
+
* fixed rate payment streams, regardless of their [`LastChargeableInfo`].
|
|
1068
|
+
**/
|
|
1069
|
+
privilegedProviders: AugmentedQuery<
|
|
1070
|
+
ApiType,
|
|
1071
|
+
(arg: H256 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1072
|
+
[H256]
|
|
1073
|
+
> &
|
|
1074
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1077
1075
|
/**
|
|
1078
1076
|
* The mapping from a user to if it has been registered to the network and the amount of payment streams it has.
|
|
1079
1077
|
*
|
|
@@ -1081,8 +1079,8 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1081
1079
|
* that a user has and it is also useful to check if a user has registered to the network.
|
|
1082
1080
|
*
|
|
1083
1081
|
* This storage is updated in:
|
|
1084
|
-
* - [
|
|
1085
|
-
* - [
|
|
1082
|
+
* - [create_fixed_rate_payment_stream](crate::dispatchables::create_fixed_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
1083
|
+
* - [create_dynamic_rate_payment_stream](crate::dispatchables::create_dynamic_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
1086
1084
|
* - [remove_fixed_rate_payment_stream](crate::dispatchables::remove_fixed_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
1087
1085
|
* - [remove_dynamic_rate_payment_stream](crate::dispatchables::remove_dynamic_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
1088
1086
|
**/
|
|
@@ -1099,8 +1097,9 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1099
1097
|
* can stop providing services to them.
|
|
1100
1098
|
*
|
|
1101
1099
|
* This storage is updated in:
|
|
1102
|
-
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map
|
|
1103
|
-
*
|
|
1100
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map
|
|
1101
|
+
* to that moment's tick number if it does not have enough funds.
|
|
1102
|
+
* - [clear_insolvent_flag](crate::utils::clear_insolvent_flag), which clears the user's entry in this map if the cooldown period has passed and the user has paid all its outstanding debt.
|
|
1104
1103
|
**/
|
|
1105
1104
|
usersWithoutFunds: AugmentedQuery<
|
|
1106
1105
|
ApiType,
|
|
@@ -1170,7 +1169,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1170
1169
|
**/
|
|
1171
1170
|
recordedXcm: AugmentedQuery<
|
|
1172
1171
|
ApiType,
|
|
1173
|
-
() => Observable<Option<Vec<
|
|
1172
|
+
() => Observable<Option<Vec<StagingXcmV5Instruction>>>,
|
|
1174
1173
|
[]
|
|
1175
1174
|
> &
|
|
1176
1175
|
QueryableStorageEntry<ApiType, []>;
|
|
@@ -1182,7 +1181,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1182
1181
|
(
|
|
1183
1182
|
arg1: u32 | AnyNumber | Uint8Array,
|
|
1184
1183
|
arg2: AccountId32 | string | Uint8Array,
|
|
1185
|
-
arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array
|
|
1184
|
+
arg3: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
|
|
1186
1185
|
) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>,
|
|
1187
1186
|
[u32, AccountId32, XcmVersionedAssetId]
|
|
1188
1187
|
> &
|
|
@@ -1211,7 +1210,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1211
1210
|
ApiType,
|
|
1212
1211
|
(
|
|
1213
1212
|
arg1: u32 | AnyNumber | Uint8Array,
|
|
1214
|
-
arg2: XcmVersionedLocation | {
|
|
1213
|
+
arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
|
|
1215
1214
|
) => Observable<Option<u32>>,
|
|
1216
1215
|
[u32, XcmVersionedLocation]
|
|
1217
1216
|
> &
|
|
@@ -1234,7 +1233,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1234
1233
|
ApiType,
|
|
1235
1234
|
(
|
|
1236
1235
|
arg1: u32 | AnyNumber | Uint8Array,
|
|
1237
|
-
arg2: XcmVersionedLocation | {
|
|
1236
|
+
arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
|
|
1238
1237
|
) => Observable<Option<u64>>,
|
|
1239
1238
|
[u32, XcmVersionedLocation]
|
|
1240
1239
|
> &
|
|
@@ -1247,7 +1246,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1247
1246
|
ApiType,
|
|
1248
1247
|
(
|
|
1249
1248
|
arg1: u32 | AnyNumber | Uint8Array,
|
|
1250
|
-
arg2: XcmVersionedLocation | {
|
|
1249
|
+
arg2: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
|
|
1251
1250
|
) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>,
|
|
1252
1251
|
[u32, XcmVersionedLocation]
|
|
1253
1252
|
> &
|
|
@@ -1314,28 +1313,13 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1314
1313
|
lastDeletedTick: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1315
1314
|
QueryableStorageEntry<ApiType, []>;
|
|
1316
1315
|
/**
|
|
1317
|
-
*
|
|
1318
|
-
* If for a Provider `p`, `LastTickProviderSubmittedAProofFor[p]` is `n`, then the
|
|
1319
|
-
* Provider should submit a proof for tick `n + stake_to_challenge_period(p)`.
|
|
1320
|
-
*
|
|
1321
|
-
* This gets updated when a Provider submits a proof successfully and is used to determine the
|
|
1322
|
-
* next tick for which the Provider should submit a proof, and it's deadline.
|
|
1323
|
-
*
|
|
1324
|
-
* If the Provider fails to submit a proof in time and is slashed, this will still get updated
|
|
1325
|
-
* to the tick it should have submitted a proof for.
|
|
1326
|
-
**/
|
|
1327
|
-
lastTickProviderSubmittedAProofFor: AugmentedQuery<
|
|
1328
|
-
ApiType,
|
|
1329
|
-
(arg: H256 | string | Uint8Array) => Observable<Option<u32>>,
|
|
1330
|
-
[H256]
|
|
1331
|
-
> &
|
|
1332
|
-
QueryableStorageEntry<ApiType, [H256]>;
|
|
1333
|
-
/**
|
|
1334
|
-
* The number of blocks that have been considered _not_ full in the last [`Config::BlockFullnessPeriod`].
|
|
1316
|
+
* The vector holding whether the last [`Config::BlockFullnessPeriod`] blocks were full or not.
|
|
1335
1317
|
*
|
|
1336
|
-
*
|
|
1318
|
+
* Each element in the vector represents a block, and is `true` if the block was full, and `false` otherwise.
|
|
1319
|
+
* Note: Ideally we would use a `BitVec` to reduce storage, but since there's no bounded `BitVec` implementation
|
|
1320
|
+
* we use a BoundedVec<bool> instead. This uses 7 more bits of storage per element.
|
|
1337
1321
|
**/
|
|
1338
|
-
|
|
1322
|
+
pastBlocksStatus: AugmentedQuery<ApiType, () => Observable<Vec<bool>>, []> &
|
|
1339
1323
|
QueryableStorageEntry<ApiType, []>;
|
|
1340
1324
|
/**
|
|
1341
1325
|
* A mapping from block number to the weight used in that block.
|
|
@@ -1363,10 +1347,31 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1363
1347
|
**/
|
|
1364
1348
|
priorityChallengesQueue: AugmentedQuery<
|
|
1365
1349
|
ApiType,
|
|
1366
|
-
() => Observable<Vec<
|
|
1350
|
+
() => Observable<Vec<PalletProofsDealerCustomChallenge>>,
|
|
1367
1351
|
[]
|
|
1368
1352
|
> &
|
|
1369
1353
|
QueryableStorageEntry<ApiType, []>;
|
|
1354
|
+
/**
|
|
1355
|
+
* A mapping from a Provider to its [`ProofSubmissionRecord`], which stores the last tick
|
|
1356
|
+
* the Provider submitted a proof for, and the next tick the Provider should submit a proof for.
|
|
1357
|
+
*
|
|
1358
|
+
* Normally the difference between these two ticks is equal to the Provider's challenge period,
|
|
1359
|
+
* but if the Provider's period is changed, this change only affects the next cycle. In other words,
|
|
1360
|
+
* for one cycle, `next_tick_to_submit_proof_for - last_tick_proven ≠ provider_challenge_period`.
|
|
1361
|
+
*
|
|
1362
|
+
* If a Provider submits a proof successfully, both fields are updated.
|
|
1363
|
+
*
|
|
1364
|
+
* If the Provider fails to submit a proof in time and is slashed, only `next_tick_to_submit_proof_for`
|
|
1365
|
+
* is updated.
|
|
1366
|
+
**/
|
|
1367
|
+
providerToProofSubmissionRecord: AugmentedQuery<
|
|
1368
|
+
ApiType,
|
|
1369
|
+
(
|
|
1370
|
+
arg: H256 | string | Uint8Array
|
|
1371
|
+
) => Observable<Option<PalletProofsDealerProofSubmissionRecord>>,
|
|
1372
|
+
[H256]
|
|
1373
|
+
> &
|
|
1374
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1370
1375
|
slashableProviders: AugmentedQuery<
|
|
1371
1376
|
ApiType,
|
|
1372
1377
|
(arg: H256 | string | Uint8Array) => Observable<Option<u32>>,
|
|
@@ -1385,6 +1390,20 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1385
1390
|
[u32]
|
|
1386
1391
|
> &
|
|
1387
1392
|
QueryableStorageEntry<ApiType, [u32]>;
|
|
1393
|
+
/**
|
|
1394
|
+
* The tick to check and see if Providers failed to submit proofs before their deadline.
|
|
1395
|
+
*
|
|
1396
|
+
* In a normal situation, this should always be equal to [`ChallengesTicker`].
|
|
1397
|
+
* However, in the unlikely scenario where a large number of Providers fail to submit proofs (larger
|
|
1398
|
+
* than [`Config::MaxSlashableProvidersPerTick`]), and all of them had the same deadline, not all of
|
|
1399
|
+
* them will be marked as slashable. Only the first [`Config::MaxSlashableProvidersPerTick`] will be.
|
|
1400
|
+
* In that case, this stored tick will lag behind [`ChallengesTicker`].
|
|
1401
|
+
*
|
|
1402
|
+
* It is expected that this tick should catch up to [`ChallengesTicker`], as blocks with less
|
|
1403
|
+
* slashable Providers follow.
|
|
1404
|
+
**/
|
|
1405
|
+
tickToCheckForSlashableProviders: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1406
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1388
1407
|
/**
|
|
1389
1408
|
* A mapping from challenges tick to a vector of custom challenged keys for that tick.
|
|
1390
1409
|
*
|
|
@@ -1397,7 +1416,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1397
1416
|
ApiType,
|
|
1398
1417
|
(
|
|
1399
1418
|
arg: u32 | AnyNumber | Uint8Array
|
|
1400
|
-
) => Observable<Option<Vec<
|
|
1419
|
+
) => Observable<Option<Vec<PalletProofsDealerCustomChallenge>>>,
|
|
1401
1420
|
[u32]
|
|
1402
1421
|
> &
|
|
1403
1422
|
QueryableStorageEntry<ApiType, [u32]>;
|
|
@@ -1470,6 +1489,33 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1470
1489
|
[AccountId32]
|
|
1471
1490
|
> &
|
|
1472
1491
|
QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1492
|
+
/**
|
|
1493
|
+
* Storage providers currently awaited for to top up their deposit (providers whom have been slashed and as
|
|
1494
|
+
* a result have a capacity deficit, i.e. their capacity is below their used capacity).
|
|
1495
|
+
*
|
|
1496
|
+
* This is primarily used to lookup providers and restrict certain operations while they are in this state.
|
|
1497
|
+
*
|
|
1498
|
+
* Providers can optionally call the `top_up_deposit` during the grace period to top up their held deposit to cover the capacity deficit.
|
|
1499
|
+
* As a result, their provider account would be cleared from this storage.
|
|
1500
|
+
*
|
|
1501
|
+
* The `on_idle` hook will process every provider in this storage and mark them as insolvent.
|
|
1502
|
+
* If a provider is marked as insolvent, the network (e.g users, other providers) can call `issue_storage_request`
|
|
1503
|
+
* with a replication target of 1 to fill a slot with another BSP if the provider who was marked as insolvent is in fact a BSP.
|
|
1504
|
+
* If it was an MSP, the user can decide to move their buckets to another MSP or delete their buckets (as they normally can).
|
|
1505
|
+
**/
|
|
1506
|
+
awaitingTopUpFromProviders: AugmentedQuery<
|
|
1507
|
+
ApiType,
|
|
1508
|
+
(
|
|
1509
|
+
arg:
|
|
1510
|
+
| PalletStorageProvidersStorageProviderId
|
|
1511
|
+
| { BackupStorageProvider: any }
|
|
1512
|
+
| { MainStorageProvider: any }
|
|
1513
|
+
| string
|
|
1514
|
+
| Uint8Array
|
|
1515
|
+
) => Observable<Option<PalletStorageProvidersTopUpMetadata>>,
|
|
1516
|
+
[PalletStorageProvidersStorageProviderId]
|
|
1517
|
+
> &
|
|
1518
|
+
QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1473
1519
|
/**
|
|
1474
1520
|
* The mapping from a BackupStorageProviderId to a BackupStorageProvider.
|
|
1475
1521
|
*
|
|
@@ -1509,7 +1555,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1509
1555
|
* This storage is updated in:
|
|
1510
1556
|
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket), which adds a new entry to the map.
|
|
1511
1557
|
* - [change_root_bucket](shp_traits::MutateProvidersInterface::change_root_bucket), which changes the corresponding bucket's root.
|
|
1512
|
-
* - [
|
|
1558
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket), which removes the entry of the corresponding bucket.
|
|
1513
1559
|
**/
|
|
1514
1560
|
buckets: AugmentedQuery<
|
|
1515
1561
|
ApiType,
|
|
@@ -1523,20 +1569,56 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1523
1569
|
globalBspsReputationWeight: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1524
1570
|
QueryableStorageEntry<ApiType, []>;
|
|
1525
1571
|
/**
|
|
1526
|
-
*
|
|
1572
|
+
* A map of insolvent providers who have failed to top up their deposit before the end of the expiration.
|
|
1573
|
+
*
|
|
1574
|
+
* Providers are marked insolvent by the `on_idle` hook.
|
|
1575
|
+
**/
|
|
1576
|
+
insolventProviders: AugmentedQuery<
|
|
1577
|
+
ApiType,
|
|
1578
|
+
(
|
|
1579
|
+
arg:
|
|
1580
|
+
| PalletStorageProvidersStorageProviderId
|
|
1581
|
+
| { BackupStorageProvider: any }
|
|
1582
|
+
| { MainStorageProvider: any }
|
|
1583
|
+
| string
|
|
1584
|
+
| Uint8Array
|
|
1585
|
+
) => Observable<Option<Null>>,
|
|
1586
|
+
[PalletStorageProvidersStorageProviderId]
|
|
1587
|
+
> &
|
|
1588
|
+
QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1589
|
+
/**
|
|
1590
|
+
* The double mapping from a MainStorageProviderId to a BucketIds.
|
|
1527
1591
|
*
|
|
1528
1592
|
* This is used to efficiently retrieve the list of buckets that a Main Storage Provider is currently storing.
|
|
1529
1593
|
*
|
|
1530
1594
|
* This storage is updated in:
|
|
1531
1595
|
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket)
|
|
1532
|
-
* - [
|
|
1596
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket)
|
|
1533
1597
|
**/
|
|
1534
1598
|
mainStorageProviderIdsToBuckets: AugmentedQuery<
|
|
1535
1599
|
ApiType,
|
|
1536
|
-
(
|
|
1537
|
-
|
|
1600
|
+
(
|
|
1601
|
+
arg1: H256 | string | Uint8Array,
|
|
1602
|
+
arg2: H256 | string | Uint8Array
|
|
1603
|
+
) => Observable<Option<Null>>,
|
|
1604
|
+
[H256, H256]
|
|
1538
1605
|
> &
|
|
1539
|
-
QueryableStorageEntry<ApiType, [H256]>;
|
|
1606
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1607
|
+
/**
|
|
1608
|
+
* Double mapping from a [`MainStorageProviderId`] to [`ValueProposition`]s.
|
|
1609
|
+
*
|
|
1610
|
+
* These are applied at the bucket level. Propositions are the price per [`Config::StorageDataUnit`] per block and the
|
|
1611
|
+
* limit of data that can be stored in the bucket.
|
|
1612
|
+
**/
|
|
1613
|
+
mainStorageProviderIdsToValuePropositions: AugmentedQuery<
|
|
1614
|
+
ApiType,
|
|
1615
|
+
(
|
|
1616
|
+
arg1: H256 | string | Uint8Array,
|
|
1617
|
+
arg2: H256 | string | Uint8Array
|
|
1618
|
+
) => Observable<Option<PalletStorageProvidersValueProposition>>,
|
|
1619
|
+
[H256, H256]
|
|
1620
|
+
> &
|
|
1621
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1540
1622
|
/**
|
|
1541
1623
|
* The mapping from a MainStorageProviderId to a MainStorageProvider.
|
|
1542
1624
|
*
|
|
@@ -1547,7 +1629,6 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1547
1629
|
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Main Storage Provider.
|
|
1548
1630
|
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1549
1631
|
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1550
|
-
* - [add_value_prop](crate::dispatchables::add_value_prop), which appends a new value proposition to the entry's existing `value_prop` bounded vector.
|
|
1551
1632
|
**/
|
|
1552
1633
|
mainStorageProviders: AugmentedQuery<
|
|
1553
1634
|
ApiType,
|
|
@@ -1568,6 +1649,43 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1568
1649
|
**/
|
|
1569
1650
|
mspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1570
1651
|
QueryableStorageEntry<ApiType, []>;
|
|
1652
|
+
/**
|
|
1653
|
+
* A pointer to the earliest available Storage Hub tick to insert a new provider top up expiration item.
|
|
1654
|
+
*
|
|
1655
|
+
* This should always be greater or equal than `current_sh_tick` + [`Config::ProviderTopUpTtl`].
|
|
1656
|
+
**/
|
|
1657
|
+
nextAvailableProviderTopUpExpirationShTick: AugmentedQuery<
|
|
1658
|
+
ApiType,
|
|
1659
|
+
() => Observable<u32>,
|
|
1660
|
+
[]
|
|
1661
|
+
> &
|
|
1662
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1663
|
+
/**
|
|
1664
|
+
* A pointer to the starting Storage Hub tick number to clean up expired items.
|
|
1665
|
+
*
|
|
1666
|
+
* If this Storage Hub tick is behind the one, the cleanup algorithm in `on_idle` will
|
|
1667
|
+
* attempt to advance this tick pointer as close to or up to the current one. This
|
|
1668
|
+
* will execute provided that there is enough remaining weight to do so.
|
|
1669
|
+
**/
|
|
1670
|
+
nextStartingShTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1671
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1672
|
+
/**
|
|
1673
|
+
* A map of Storage Hub tick numbers to expired provider top up expired items.
|
|
1674
|
+
*
|
|
1675
|
+
* Processed in the `on_idle` hook.
|
|
1676
|
+
*
|
|
1677
|
+
* Provider top up expiration items are ignored and cleared if the provider is not found in the [`AwaitingTopUpFromProviders`] storage.
|
|
1678
|
+
* Providers are removed from [`AwaitingTopUpFromProviders`] storage when they have successfully topped up their deposit.
|
|
1679
|
+
* If they are still part of the [`AwaitingTopUpFromProviders`] storage after the expiration period, they are marked as insolvent.
|
|
1680
|
+
**/
|
|
1681
|
+
providerTopUpExpirations: AugmentedQuery<
|
|
1682
|
+
ApiType,
|
|
1683
|
+
(
|
|
1684
|
+
arg: u32 | AnyNumber | Uint8Array
|
|
1685
|
+
) => Observable<Vec<PalletStorageProvidersStorageProviderId>>,
|
|
1686
|
+
[u32]
|
|
1687
|
+
> &
|
|
1688
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1571
1689
|
/**
|
|
1572
1690
|
* The mapping from an AccountId that requested to sign up to a tuple of the metadata with type of the request, and the block
|
|
1573
1691
|
* number when the request was made.
|
|
@@ -1584,7 +1702,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1584
1702
|
ApiType,
|
|
1585
1703
|
(
|
|
1586
1704
|
arg: AccountId32 | string | Uint8Array
|
|
1587
|
-
) => Observable<Option<
|
|
1705
|
+
) => Observable<Option<PalletStorageProvidersSignUpRequest>>,
|
|
1588
1706
|
[AccountId32]
|
|
1589
1707
|
> &
|
|
1590
1708
|
QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
@@ -1619,6 +1737,15 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1619
1737
|
**/
|
|
1620
1738
|
inherentIncluded: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> &
|
|
1621
1739
|
QueryableStorageEntry<ApiType, []>;
|
|
1740
|
+
/**
|
|
1741
|
+
* The relay chain block (and anchored parachain block) to use when epoch changes
|
|
1742
|
+
**/
|
|
1743
|
+
lastRelayBlockAndParaBlockValidForNextEpoch: AugmentedQuery<
|
|
1744
|
+
ApiType,
|
|
1745
|
+
() => Observable<ITuple<[u32, u32]>>,
|
|
1746
|
+
[]
|
|
1747
|
+
> &
|
|
1748
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1622
1749
|
/**
|
|
1623
1750
|
* Latest random seed obtained from the one epoch ago randomness from BABE, and the latest block that it can process randomness requests from
|
|
1624
1751
|
**/
|
|
@@ -1682,7 +1809,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1682
1809
|
ApiType,
|
|
1683
1810
|
(
|
|
1684
1811
|
arg: AccountId32 | string | Uint8Array
|
|
1685
|
-
) => Observable<Option<
|
|
1812
|
+
) => Observable<Option<ShParachainRuntimeSessionKeys>>,
|
|
1686
1813
|
[AccountId32]
|
|
1687
1814
|
> &
|
|
1688
1815
|
QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
@@ -1698,7 +1825,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1698
1825
|
**/
|
|
1699
1826
|
queuedKeys: AugmentedQuery<
|
|
1700
1827
|
ApiType,
|
|
1701
|
-
() => Observable<Vec<ITuple<[AccountId32,
|
|
1828
|
+
() => Observable<Vec<ITuple<[AccountId32, ShParachainRuntimeSessionKeys]>>>,
|
|
1702
1829
|
[]
|
|
1703
1830
|
> &
|
|
1704
1831
|
QueryableStorageEntry<ApiType, []>;
|