@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
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from "@polkadot/
|
|
|
3
3
|
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
|
|
4
4
|
import type { AnyNumber, ITuple } from "@polkadot/types-codec/types";
|
|
5
5
|
import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
|
|
6
|
-
import type { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletFileSystemMoveBucketRequestMetadata, PalletFileSystemStorageRequestBspsMetadata, PalletFileSystemStorageRequestMetadata, PalletMessageQueueBookState, PalletMessageQueuePage, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletPaymentStreamsDynamicRatePaymentStream, PalletPaymentStreamsFixedRatePaymentStream, PalletPaymentStreamsProviderLastChargeableInfo, PalletStorageProvidersBackupStorageProvider, PalletStorageProvidersBucket, PalletStorageProvidersMainStorageProvider,
|
|
6
|
+
import type { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletFileSystemIncompleteStorageRequestMetadata, PalletFileSystemMoveBucketRequestMetadata, PalletFileSystemPendingFileDeletionRequest, PalletFileSystemPendingStopStoringRequest, PalletFileSystemStorageRequestBspsMetadata, PalletFileSystemStorageRequestMetadata, PalletMessageQueueBookState, PalletMessageQueuePage, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletPaymentStreamsDynamicRatePaymentStream, PalletPaymentStreamsFixedRatePaymentStream, PalletPaymentStreamsProviderLastChargeableInfo, PalletProofsDealerCustomChallenge, PalletProofsDealerProofSubmissionRecord, PalletStorageProvidersBackupStorageProvider, PalletStorageProvidersBucket, PalletStorageProvidersMainStorageProvider, PalletStorageProvidersSignUpRequest, PalletStorageProvidersStorageProviderId, PalletStorageProvidersTopUpMetadata, PalletStorageProvidersValueProposition, PalletTransactionPaymentReleases, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey, ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue, ShParachainRuntimeRuntimeHoldReason, ShParachainRuntimeSessionKeys, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from "@polkadot/types/lookup";
|
|
7
7
|
import type { Observable } from "@polkadot/types/types";
|
|
8
8
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
9
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -97,7 +97,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
97
97
|
* Holds on account balances.
|
|
98
98
|
**/
|
|
99
99
|
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
|
100
|
-
readonly id:
|
|
100
|
+
readonly id: ShParachainRuntimeRuntimeHoldReason;
|
|
101
101
|
readonly amount: u128;
|
|
102
102
|
} & Struct>>, [
|
|
103
103
|
AccountId32
|
|
@@ -178,109 +178,97 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
178
178
|
H256
|
|
179
179
|
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Incomplete storage requests with pending provider file removal.
|
|
182
|
+
*
|
|
183
|
+
* This mapping tracks storage requests that have been expired or rejected but still have
|
|
184
|
+
* confirmed providers storing files. Each entry tracks which providers still need to remove
|
|
185
|
+
* their files. Once all providers have removed their files, the entry is automatically cleaned up.
|
|
182
186
|
**/
|
|
183
|
-
|
|
184
|
-
H256,
|
|
187
|
+
incompleteStorageRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemIncompleteStorageRequestMetadata>>, [
|
|
185
188
|
H256
|
|
186
|
-
]> & QueryableStorageEntry<ApiType, [H256
|
|
187
|
-
/**
|
|
188
|
-
* A map of blocks to expired file deletion requests.
|
|
189
|
-
**/
|
|
190
|
-
fileDeletionRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, H256]>>>, [
|
|
191
|
-
u32
|
|
192
|
-
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
189
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
193
190
|
/**
|
|
194
|
-
* A map of
|
|
191
|
+
* A map of ticks to expired move bucket requests.
|
|
195
192
|
**/
|
|
196
|
-
moveBucketRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<
|
|
193
|
+
moveBucketRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [
|
|
197
194
|
u32
|
|
198
195
|
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
199
196
|
/**
|
|
200
|
-
*
|
|
197
|
+
* Mapping from MSPs to the amount of pending file deletion requests they have.
|
|
201
198
|
*
|
|
202
|
-
* This
|
|
199
|
+
* This is used to keep track of the amount of pending file deletion requests each MSP has, so that MSPs are removed
|
|
200
|
+
* from the privileged providers list if they have at least one, and are added back if they have none.
|
|
201
|
+
* This is to ensure that MSPs are correctly incentivised to submit the required proofs for file deletions.
|
|
203
202
|
**/
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
mspsAmountOfPendingFileDeletionRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [
|
|
204
|
+
H256
|
|
205
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
206
206
|
/**
|
|
207
|
-
* A pointer to the earliest available
|
|
207
|
+
* A pointer to the earliest available tick to insert a new move bucket request expiration.
|
|
208
208
|
*
|
|
209
|
-
* This should always be greater or equal than current
|
|
209
|
+
* This should always be greater or equal than current tick + [`Config::MoveBucketRequestTtl`].
|
|
210
210
|
**/
|
|
211
|
-
|
|
211
|
+
nextAvailableMoveBucketRequestExpirationTick: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
212
212
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
213
213
|
/**
|
|
214
|
-
* A pointer to the earliest available
|
|
214
|
+
* A pointer to the earliest available tick to insert a new storage request expiration.
|
|
215
215
|
*
|
|
216
|
-
* This should always be greater or equal than current
|
|
216
|
+
* This should always be greater or equal than current tick + [`Config::StorageRequestTtl`].
|
|
217
217
|
**/
|
|
218
|
-
|
|
218
|
+
nextAvailableStorageRequestExpirationTick: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
219
219
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
220
220
|
/**
|
|
221
|
-
* A pointer to the starting
|
|
221
|
+
* A pointer to the starting tick to clean up expired items.
|
|
222
222
|
*
|
|
223
|
-
* If this
|
|
224
|
-
* attempt to
|
|
223
|
+
* If this tick is behind the current tick number, the cleanup algorithm in `on_idle` will
|
|
224
|
+
* attempt to advance this tick pointer as close to or up to the current tick number. This
|
|
225
225
|
* will execute provided that there is enough remaining weight to do so.
|
|
226
226
|
**/
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Bookkeeping of buckets that are pending to be moved to a new MSP.
|
|
230
|
-
**/
|
|
231
|
-
pendingBucketsToMove: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Null>, [
|
|
232
|
-
H256
|
|
233
|
-
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
227
|
+
nextStartingTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
234
228
|
/**
|
|
235
229
|
* Pending file deletion requests.
|
|
236
230
|
*
|
|
237
|
-
* A mapping from a user
|
|
231
|
+
* A mapping from a user Account ID to a list of pending file deletion requests (which have the file information).
|
|
238
232
|
**/
|
|
239
|
-
pendingFileDeletionRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<
|
|
233
|
+
pendingFileDeletionRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletFileSystemPendingFileDeletionRequest>>, [
|
|
240
234
|
AccountId32
|
|
241
235
|
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
242
236
|
/**
|
|
243
237
|
* Pending move bucket requests.
|
|
244
238
|
*
|
|
245
|
-
* A
|
|
246
|
-
*
|
|
239
|
+
* A mapping from Bucket ID to their move bucket request metadata, which includes the new MSP
|
|
240
|
+
* and value propositions that this bucket would take if accepted.
|
|
247
241
|
**/
|
|
248
|
-
pendingMoveBucketRequests: AugmentedQuery<ApiType, (
|
|
249
|
-
H256,
|
|
242
|
+
pendingMoveBucketRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemMoveBucketRequestMetadata>>, [
|
|
250
243
|
H256
|
|
251
|
-
]> & QueryableStorageEntry<ApiType, [H256
|
|
244
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
252
245
|
/**
|
|
253
246
|
* Pending file stop storing requests.
|
|
254
247
|
*
|
|
255
|
-
* 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
|
|
256
|
-
*
|
|
248
|
+
* 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,
|
|
249
|
+
* the proven size of the file and the owner of the file.
|
|
257
250
|
* The block number is used to avoid BSPs being able to stop storing files immediately which would allow them to avoid challenges
|
|
258
251
|
* of missing files. The size is to be able to decrease their used capacity when they confirm to stop storing the file.
|
|
252
|
+
* The owner is to be able to update the payment stream between the user and the BSP.
|
|
259
253
|
**/
|
|
260
|
-
pendingStopStoringRequests: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<
|
|
254
|
+
pendingStopStoringRequests: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemPendingStopStoringRequest>>, [
|
|
261
255
|
H256,
|
|
262
256
|
H256
|
|
263
257
|
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
264
258
|
/**
|
|
265
|
-
*
|
|
259
|
+
* 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.
|
|
266
260
|
*
|
|
267
|
-
*
|
|
268
|
-
|
|
269
|
-
replicationTarget: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
270
|
-
/**
|
|
271
|
-
* A double map from storage request to BSP `AccountId`s that volunteered to store the file.
|
|
272
|
-
*
|
|
273
|
-
* Any BSP under a storage request prefix is considered to be a volunteer and can be removed at any time.
|
|
274
|
-
* 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`.
|
|
261
|
+
* Any BSP under a file key prefix is considered to be a volunteer and can be removed at any time.
|
|
262
|
+
* Once a BSP submits a valid proof via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
|
|
275
263
|
*
|
|
276
|
-
* When a storage request is expired or removed, the corresponding
|
|
264
|
+
* When a storage request is expired or removed, the corresponding file key prefix in this map is removed.
|
|
277
265
|
**/
|
|
278
266
|
storageRequestBsps: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemStorageRequestBspsMetadata>>, [
|
|
279
267
|
H256,
|
|
280
268
|
H256
|
|
281
269
|
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
282
270
|
/**
|
|
283
|
-
* A map of
|
|
271
|
+
* A map of ticks to expired storage requests.
|
|
284
272
|
**/
|
|
285
273
|
storageRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [
|
|
286
274
|
u32
|
|
@@ -288,10 +276,6 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
288
276
|
storageRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemStorageRequestMetadata>>, [
|
|
289
277
|
H256
|
|
290
278
|
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
291
|
-
/**
|
|
292
|
-
* Number of ticks until all BSPs would reach the [`Config::MaximumThreshold`] to ensure that all BSPs are able to volunteer.
|
|
293
|
-
**/
|
|
294
|
-
tickRangeToMaximumThreshold: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
295
279
|
/**
|
|
296
280
|
* Generic query
|
|
297
281
|
**/
|
|
@@ -490,7 +474,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
490
474
|
*
|
|
491
475
|
* This data is also absent from the genesis.
|
|
492
476
|
**/
|
|
493
|
-
hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<
|
|
477
|
+
hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8AbridgedHostConfiguration>>, [
|
|
494
478
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
495
479
|
/**
|
|
496
480
|
* HRMP messages that were sent in a block.
|
|
@@ -601,7 +585,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
601
585
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
602
586
|
* set after the inherent.
|
|
603
587
|
**/
|
|
604
|
-
upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<
|
|
588
|
+
upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>, [
|
|
605
589
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
606
590
|
/**
|
|
607
591
|
* An option which indicates if the relay-chain restricts signalling a validation code upgrade.
|
|
@@ -612,7 +596,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
612
596
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
613
597
|
* set after the inherent.
|
|
614
598
|
**/
|
|
615
|
-
upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<
|
|
599
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>, [
|
|
616
600
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
617
601
|
/**
|
|
618
602
|
* The factor to multiply the base delivery fee by for UMP.
|
|
@@ -629,7 +613,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
629
613
|
* This value is expected to be set only once per block and it's never stored
|
|
630
614
|
* in the trie.
|
|
631
615
|
**/
|
|
632
|
-
validationData: AugmentedQuery<ApiType, () => Observable<Option<
|
|
616
|
+
validationData: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>, [
|
|
633
617
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
634
618
|
/**
|
|
635
619
|
* Generic query
|
|
@@ -640,11 +624,13 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
640
624
|
/**
|
|
641
625
|
* Stored parameters.
|
|
642
626
|
**/
|
|
643
|
-
parameters: AugmentedQuery<ApiType, (arg:
|
|
627
|
+
parameters: AugmentedQuery<ApiType, (arg: ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey | {
|
|
644
628
|
RuntimeConfig: any;
|
|
645
|
-
} | string | Uint8Array) => Observable<Option<
|
|
646
|
-
|
|
647
|
-
]> & QueryableStorageEntry<ApiType, [
|
|
629
|
+
} | string | Uint8Array) => Observable<Option<ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersValue>>, [
|
|
630
|
+
ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey
|
|
631
|
+
]> & QueryableStorageEntry<ApiType, [
|
|
632
|
+
ShParachainRuntimeConfigsRuntimeParamsRuntimeParametersKey
|
|
633
|
+
]>;
|
|
648
634
|
/**
|
|
649
635
|
* Generic query
|
|
650
636
|
**/
|
|
@@ -654,7 +640,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
654
640
|
/**
|
|
655
641
|
* The accumulated price index since genesis, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
656
642
|
*
|
|
657
|
-
* This is equivalent to what it would have cost to
|
|
643
|
+
* This is equivalent to what it would have cost to provide one unit of the provided service since the beginning of the network.
|
|
658
644
|
* We use this to calculate the amount to charge for dynamic-rate payment streams, by checking out the difference between the index
|
|
659
645
|
* when the payment stream was last charged, and the index at the last chargeable tick.
|
|
660
646
|
*
|
|
@@ -663,21 +649,20 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
663
649
|
**/
|
|
664
650
|
accumulatedPriceIndex: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
665
651
|
/**
|
|
666
|
-
* The current price per
|
|
652
|
+
* The current price per gigaunit per tick of the provided service, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
667
653
|
*
|
|
668
|
-
* This
|
|
654
|
+
* This can be updated each tick by the system manager.
|
|
669
655
|
*
|
|
670
|
-
*
|
|
671
|
-
* - [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.
|
|
656
|
+
* 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.
|
|
672
657
|
**/
|
|
673
|
-
|
|
658
|
+
currentPricePerGigaUnitPerTick: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
674
659
|
/**
|
|
675
660
|
* The double mapping from a Provider, to its provided Users, to their dynamic-rate payment streams.
|
|
676
661
|
*
|
|
677
662
|
* This is used to store and manage dynamic-rate payment streams between Users and Providers.
|
|
678
663
|
*
|
|
679
664
|
* This storage is updated in:
|
|
680
|
-
* - [
|
|
665
|
+
* - [create_dynamic_rate_payment_stream](crate::dispatchables::create_dynamic_rate_payment_stream), which adds a new entry to the map.
|
|
681
666
|
* - [delete_dynamic_rate_payment_stream](crate::dispatchables::delete_dynamic_rate_payment_stream), which removes the corresponding entry from the map.
|
|
682
667
|
* - [update_dynamic_rate_payment_stream](crate::dispatchables::update_dynamic_rate_payment_stream), which updates the entry's `amount_provided`.
|
|
683
668
|
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `price_index_when_last_charged`.
|
|
@@ -692,7 +677,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
692
677
|
* This is used to store and manage fixed-rate payment streams between Users and Providers.
|
|
693
678
|
*
|
|
694
679
|
* This storage is updated in:
|
|
695
|
-
* - [
|
|
680
|
+
* - [create_fixed_rate_payment_stream](crate::dispatchables::create_fixed_rate_payment_stream), which adds a new entry to the map.
|
|
696
681
|
* - [delete_fixed_rate_payment_stream](crate::dispatchables::delete_fixed_rate_payment_stream), which removes the corresponding entry from the map.
|
|
697
682
|
* - [update_fixed_rate_payment_stream](crate::dispatchables::update_fixed_rate_payment_stream), which updates the entry's `rate`.
|
|
698
683
|
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `last_charged_tick`.
|
|
@@ -713,11 +698,12 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
713
698
|
H256
|
|
714
699
|
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
715
700
|
/**
|
|
716
|
-
* The last tick
|
|
701
|
+
* The last tick that was processed by this pallet from the Proof Submitters interface.
|
|
717
702
|
*
|
|
718
|
-
* This is used to keep track of the last tick
|
|
719
|
-
*
|
|
720
|
-
* a valid proof
|
|
703
|
+
* This is used to keep track of the last tick processed by this pallet from the pallet that implements the from the ProvidersProofSubmitters interface.
|
|
704
|
+
* 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.
|
|
705
|
+
* 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
|
|
706
|
+
* follows the one saved in this storage element.
|
|
721
707
|
**/
|
|
722
708
|
lastSubmittersTickRegistered: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
723
709
|
/**
|
|
@@ -729,6 +715,15 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
729
715
|
* During MBMs, the block number increases, but `OnPollTicker` does not.
|
|
730
716
|
**/
|
|
731
717
|
onPollTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
718
|
+
/**
|
|
719
|
+
* Mapping of Privileged Providers.
|
|
720
|
+
*
|
|
721
|
+
* Privileged Providers are those who are allowed to charge up to the current tick in
|
|
722
|
+
* fixed rate payment streams, regardless of their [`LastChargeableInfo`].
|
|
723
|
+
**/
|
|
724
|
+
privilegedProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
725
|
+
H256
|
|
726
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
732
727
|
/**
|
|
733
728
|
* The mapping from a user to if it has been registered to the network and the amount of payment streams it has.
|
|
734
729
|
*
|
|
@@ -736,8 +731,8 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
736
731
|
* that a user has and it is also useful to check if a user has registered to the network.
|
|
737
732
|
*
|
|
738
733
|
* This storage is updated in:
|
|
739
|
-
* - [
|
|
740
|
-
* - [
|
|
734
|
+
* - [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.
|
|
735
|
+
* - [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.
|
|
741
736
|
* - [remove_fixed_rate_payment_stream](crate::dispatchables::remove_fixed_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
742
737
|
* - [remove_dynamic_rate_payment_stream](crate::dispatchables::remove_dynamic_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
743
738
|
**/
|
|
@@ -751,8 +746,9 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
751
746
|
* can stop providing services to them.
|
|
752
747
|
*
|
|
753
748
|
* This storage is updated in:
|
|
754
|
-
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map
|
|
755
|
-
*
|
|
749
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map
|
|
750
|
+
* to that moment's tick number if it does not have enough funds.
|
|
751
|
+
* - [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.
|
|
756
752
|
**/
|
|
757
753
|
usersWithoutFunds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
758
754
|
AccountId32
|
|
@@ -801,7 +797,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
801
797
|
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
802
798
|
* implementation in the XCM executor configuration.
|
|
803
799
|
**/
|
|
804
|
-
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<
|
|
800
|
+
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV5Instruction>>>, [
|
|
805
801
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
806
802
|
/**
|
|
807
803
|
* Fungible assets which we know are locked on a remote chain.
|
|
@@ -810,6 +806,8 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
810
806
|
V3: any;
|
|
811
807
|
} | {
|
|
812
808
|
V4: any;
|
|
809
|
+
} | {
|
|
810
|
+
V5: any;
|
|
813
811
|
} | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [
|
|
814
812
|
u32,
|
|
815
813
|
AccountId32,
|
|
@@ -834,11 +832,11 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
834
832
|
* The Latest versions that we know various locations support.
|
|
835
833
|
**/
|
|
836
834
|
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
837
|
-
V2: any;
|
|
838
|
-
} | {
|
|
839
835
|
V3: any;
|
|
840
836
|
} | {
|
|
841
837
|
V4: any;
|
|
838
|
+
} | {
|
|
839
|
+
V5: any;
|
|
842
840
|
} | string | Uint8Array) => Observable<Option<u32>>, [
|
|
843
841
|
u32,
|
|
844
842
|
XcmVersionedLocation
|
|
@@ -854,11 +852,11 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
854
852
|
* All locations that we have requested version notifications from.
|
|
855
853
|
**/
|
|
856
854
|
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
857
|
-
V2: any;
|
|
858
|
-
} | {
|
|
859
855
|
V3: any;
|
|
860
856
|
} | {
|
|
861
857
|
V4: any;
|
|
858
|
+
} | {
|
|
859
|
+
V5: any;
|
|
862
860
|
} | string | Uint8Array) => Observable<Option<u64>>, [
|
|
863
861
|
u32,
|
|
864
862
|
XcmVersionedLocation
|
|
@@ -868,11 +866,11 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
868
866
|
* of our versions we informed them of.
|
|
869
867
|
**/
|
|
870
868
|
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
871
|
-
V2: any;
|
|
872
|
-
} | {
|
|
873
869
|
V3: any;
|
|
874
870
|
} | {
|
|
875
871
|
V4: any;
|
|
872
|
+
} | {
|
|
873
|
+
V5: any;
|
|
876
874
|
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [
|
|
877
875
|
u32,
|
|
878
876
|
XcmVersionedLocation
|
|
@@ -933,25 +931,13 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
933
931
|
**/
|
|
934
932
|
lastDeletedTick: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
935
933
|
/**
|
|
936
|
-
*
|
|
937
|
-
* If for a Provider `p`, `LastTickProviderSubmittedAProofFor[p]` is `n`, then the
|
|
938
|
-
* Provider should submit a proof for tick `n + stake_to_challenge_period(p)`.
|
|
939
|
-
*
|
|
940
|
-
* This gets updated when a Provider submits a proof successfully and is used to determine the
|
|
941
|
-
* next tick for which the Provider should submit a proof, and it's deadline.
|
|
934
|
+
* The vector holding whether the last [`Config::BlockFullnessPeriod`] blocks were full or not.
|
|
942
935
|
*
|
|
943
|
-
*
|
|
944
|
-
* to
|
|
936
|
+
* Each element in the vector represents a block, and is `true` if the block was full, and `false` otherwise.
|
|
937
|
+
* Note: Ideally we would use a `BitVec` to reduce storage, but since there's no bounded `BitVec` implementation
|
|
938
|
+
* we use a BoundedVec<bool> instead. This uses 7 more bits of storage per element.
|
|
945
939
|
**/
|
|
946
|
-
|
|
947
|
-
H256
|
|
948
|
-
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
949
|
-
/**
|
|
950
|
-
* The number of blocks that have been considered _not_ full in the last [`Config::BlockFullnessPeriod`].
|
|
951
|
-
*
|
|
952
|
-
* This is used to check if the network is presumably under a spam attack.
|
|
953
|
-
**/
|
|
954
|
-
notFullBlocksCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
940
|
+
pastBlocksStatus: AugmentedQuery<ApiType, () => Observable<Vec<bool>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
955
941
|
/**
|
|
956
942
|
* A mapping from block number to the weight used in that block.
|
|
957
943
|
*
|
|
@@ -973,8 +959,24 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
973
959
|
* A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
|
|
974
960
|
* is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
|
|
975
961
|
**/
|
|
976
|
-
priorityChallengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<
|
|
962
|
+
priorityChallengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletProofsDealerCustomChallenge>>, [
|
|
977
963
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
964
|
+
/**
|
|
965
|
+
* A mapping from a Provider to its [`ProofSubmissionRecord`], which stores the last tick
|
|
966
|
+
* the Provider submitted a proof for, and the next tick the Provider should submit a proof for.
|
|
967
|
+
*
|
|
968
|
+
* Normally the difference between these two ticks is equal to the Provider's challenge period,
|
|
969
|
+
* but if the Provider's period is changed, this change only affects the next cycle. In other words,
|
|
970
|
+
* for one cycle, `next_tick_to_submit_proof_for - last_tick_proven ≠ provider_challenge_period`.
|
|
971
|
+
*
|
|
972
|
+
* If a Provider submits a proof successfully, both fields are updated.
|
|
973
|
+
*
|
|
974
|
+
* If the Provider fails to submit a proof in time and is slashed, only `next_tick_to_submit_proof_for`
|
|
975
|
+
* is updated.
|
|
976
|
+
**/
|
|
977
|
+
providerToProofSubmissionRecord: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletProofsDealerProofSubmissionRecord>>, [
|
|
978
|
+
H256
|
|
979
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
978
980
|
slashableProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
979
981
|
H256
|
|
980
982
|
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
@@ -987,6 +989,19 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
987
989
|
tickToChallengesSeed: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [
|
|
988
990
|
u32
|
|
989
991
|
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
992
|
+
/**
|
|
993
|
+
* The tick to check and see if Providers failed to submit proofs before their deadline.
|
|
994
|
+
*
|
|
995
|
+
* In a normal situation, this should always be equal to [`ChallengesTicker`].
|
|
996
|
+
* However, in the unlikely scenario where a large number of Providers fail to submit proofs (larger
|
|
997
|
+
* than [`Config::MaxSlashableProvidersPerTick`]), and all of them had the same deadline, not all of
|
|
998
|
+
* them will be marked as slashable. Only the first [`Config::MaxSlashableProvidersPerTick`] will be.
|
|
999
|
+
* In that case, this stored tick will lag behind [`ChallengesTicker`].
|
|
1000
|
+
*
|
|
1001
|
+
* It is expected that this tick should catch up to [`ChallengesTicker`], as blocks with less
|
|
1002
|
+
* slashable Providers follow.
|
|
1003
|
+
**/
|
|
1004
|
+
tickToCheckForSlashableProviders: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
990
1005
|
/**
|
|
991
1006
|
* A mapping from challenges tick to a vector of custom challenged keys for that tick.
|
|
992
1007
|
*
|
|
@@ -995,7 +1010,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
995
1010
|
* The vector is bounded by [`MaxCustomChallengesPerBlockFor`].
|
|
996
1011
|
* This mapping goes back only [`ChallengeHistoryLengthFor`] ticks. Previous challenges are removed.
|
|
997
1012
|
**/
|
|
998
|
-
tickToCheckpointChallenges: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<
|
|
1013
|
+
tickToCheckpointChallenges: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PalletProofsDealerCustomChallenge>>>, [
|
|
999
1014
|
u32
|
|
1000
1015
|
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1001
1016
|
/**
|
|
@@ -1053,6 +1068,27 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1053
1068
|
accountIdToMainStorageProviderId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<H256>>, [
|
|
1054
1069
|
AccountId32
|
|
1055
1070
|
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Storage providers currently awaited for to top up their deposit (providers whom have been slashed and as
|
|
1073
|
+
* a result have a capacity deficit, i.e. their capacity is below their used capacity).
|
|
1074
|
+
*
|
|
1075
|
+
* This is primarily used to lookup providers and restrict certain operations while they are in this state.
|
|
1076
|
+
*
|
|
1077
|
+
* Providers can optionally call the `top_up_deposit` during the grace period to top up their held deposit to cover the capacity deficit.
|
|
1078
|
+
* As a result, their provider account would be cleared from this storage.
|
|
1079
|
+
*
|
|
1080
|
+
* The `on_idle` hook will process every provider in this storage and mark them as insolvent.
|
|
1081
|
+
* If a provider is marked as insolvent, the network (e.g users, other providers) can call `issue_storage_request`
|
|
1082
|
+
* 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.
|
|
1083
|
+
* If it was an MSP, the user can decide to move their buckets to another MSP or delete their buckets (as they normally can).
|
|
1084
|
+
**/
|
|
1085
|
+
awaitingTopUpFromProviders: AugmentedQuery<ApiType, (arg: PalletStorageProvidersStorageProviderId | {
|
|
1086
|
+
BackupStorageProvider: any;
|
|
1087
|
+
} | {
|
|
1088
|
+
MainStorageProvider: any;
|
|
1089
|
+
} | string | Uint8Array) => Observable<Option<PalletStorageProvidersTopUpMetadata>>, [
|
|
1090
|
+
PalletStorageProvidersStorageProviderId
|
|
1091
|
+
]> & QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1056
1092
|
/**
|
|
1057
1093
|
* The mapping from a BackupStorageProviderId to a BackupStorageProvider.
|
|
1058
1094
|
*
|
|
@@ -1086,7 +1122,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1086
1122
|
* This storage is updated in:
|
|
1087
1123
|
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket), which adds a new entry to the map.
|
|
1088
1124
|
* - [change_root_bucket](shp_traits::MutateProvidersInterface::change_root_bucket), which changes the corresponding bucket's root.
|
|
1089
|
-
* - [
|
|
1125
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket), which removes the entry of the corresponding bucket.
|
|
1090
1126
|
**/
|
|
1091
1127
|
buckets: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersBucket>>, [
|
|
1092
1128
|
H256
|
|
@@ -1096,17 +1132,40 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1096
1132
|
**/
|
|
1097
1133
|
globalBspsReputationWeight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1098
1134
|
/**
|
|
1099
|
-
*
|
|
1135
|
+
* A map of insolvent providers who have failed to top up their deposit before the end of the expiration.
|
|
1136
|
+
*
|
|
1137
|
+
* Providers are marked insolvent by the `on_idle` hook.
|
|
1138
|
+
**/
|
|
1139
|
+
insolventProviders: AugmentedQuery<ApiType, (arg: PalletStorageProvidersStorageProviderId | {
|
|
1140
|
+
BackupStorageProvider: any;
|
|
1141
|
+
} | {
|
|
1142
|
+
MainStorageProvider: any;
|
|
1143
|
+
} | string | Uint8Array) => Observable<Option<Null>>, [
|
|
1144
|
+
PalletStorageProvidersStorageProviderId
|
|
1145
|
+
]> & QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1146
|
+
/**
|
|
1147
|
+
* The double mapping from a MainStorageProviderId to a BucketIds.
|
|
1100
1148
|
*
|
|
1101
1149
|
* This is used to efficiently retrieve the list of buckets that a Main Storage Provider is currently storing.
|
|
1102
1150
|
*
|
|
1103
1151
|
* This storage is updated in:
|
|
1104
1152
|
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket)
|
|
1105
|
-
* - [
|
|
1153
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket)
|
|
1106
1154
|
**/
|
|
1107
|
-
mainStorageProviderIdsToBuckets: AugmentedQuery<ApiType, (
|
|
1155
|
+
mainStorageProviderIdsToBuckets: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
1156
|
+
H256,
|
|
1108
1157
|
H256
|
|
1109
|
-
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1158
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Double mapping from a [`MainStorageProviderId`] to [`ValueProposition`]s.
|
|
1161
|
+
*
|
|
1162
|
+
* These are applied at the bucket level. Propositions are the price per [`Config::StorageDataUnit`] per block and the
|
|
1163
|
+
* limit of data that can be stored in the bucket.
|
|
1164
|
+
**/
|
|
1165
|
+
mainStorageProviderIdsToValuePropositions: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersValueProposition>>, [
|
|
1166
|
+
H256,
|
|
1167
|
+
H256
|
|
1168
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1110
1169
|
/**
|
|
1111
1170
|
* The mapping from a MainStorageProviderId to a MainStorageProvider.
|
|
1112
1171
|
*
|
|
@@ -1117,7 +1176,6 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1117
1176
|
* - [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.
|
|
1118
1177
|
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1119
1178
|
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1120
|
-
* - [add_value_prop](crate::dispatchables::add_value_prop), which appends a new value proposition to the entry's existing `value_prop` bounded vector.
|
|
1121
1179
|
**/
|
|
1122
1180
|
mainStorageProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersMainStorageProvider>>, [
|
|
1123
1181
|
H256
|
|
@@ -1132,6 +1190,33 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1132
1190
|
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which subtracts one from this storage.
|
|
1133
1191
|
**/
|
|
1134
1192
|
mspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1193
|
+
/**
|
|
1194
|
+
* A pointer to the earliest available Storage Hub tick to insert a new provider top up expiration item.
|
|
1195
|
+
*
|
|
1196
|
+
* This should always be greater or equal than `current_sh_tick` + [`Config::ProviderTopUpTtl`].
|
|
1197
|
+
**/
|
|
1198
|
+
nextAvailableProviderTopUpExpirationShTick: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
1199
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1200
|
+
/**
|
|
1201
|
+
* A pointer to the starting Storage Hub tick number to clean up expired items.
|
|
1202
|
+
*
|
|
1203
|
+
* If this Storage Hub tick is behind the one, the cleanup algorithm in `on_idle` will
|
|
1204
|
+
* attempt to advance this tick pointer as close to or up to the current one. This
|
|
1205
|
+
* will execute provided that there is enough remaining weight to do so.
|
|
1206
|
+
**/
|
|
1207
|
+
nextStartingShTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1208
|
+
/**
|
|
1209
|
+
* A map of Storage Hub tick numbers to expired provider top up expired items.
|
|
1210
|
+
*
|
|
1211
|
+
* Processed in the `on_idle` hook.
|
|
1212
|
+
*
|
|
1213
|
+
* Provider top up expiration items are ignored and cleared if the provider is not found in the [`AwaitingTopUpFromProviders`] storage.
|
|
1214
|
+
* Providers are removed from [`AwaitingTopUpFromProviders`] storage when they have successfully topped up their deposit.
|
|
1215
|
+
* If they are still part of the [`AwaitingTopUpFromProviders`] storage after the expiration period, they are marked as insolvent.
|
|
1216
|
+
**/
|
|
1217
|
+
providerTopUpExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStorageProvidersStorageProviderId>>, [
|
|
1218
|
+
u32
|
|
1219
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1135
1220
|
/**
|
|
1136
1221
|
* The mapping from an AccountId that requested to sign up to a tuple of the metadata with type of the request, and the block
|
|
1137
1222
|
* number when the request was made.
|
|
@@ -1144,7 +1229,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1144
1229
|
* - [request_msp_sign_up](crate::dispatchables::request_msp_sign_up) and [request_bsp_sign_up](crate::dispatchables::request_bsp_sign_up), which add a new entry to the map.
|
|
1145
1230
|
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up) and [cancel_sign_up](crate::dispatchables::cancel_sign_up), which remove an existing entry from the map.
|
|
1146
1231
|
**/
|
|
1147
|
-
signUpRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
1232
|
+
signUpRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStorageProvidersSignUpRequest>>, [
|
|
1148
1233
|
AccountId32
|
|
1149
1234
|
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1150
1235
|
/**
|
|
@@ -1175,6 +1260,11 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1175
1260
|
* Ensures the mandatory inherent was included in the block
|
|
1176
1261
|
**/
|
|
1177
1262
|
inherentIncluded: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1263
|
+
/**
|
|
1264
|
+
* The relay chain block (and anchored parachain block) to use when epoch changes
|
|
1265
|
+
**/
|
|
1266
|
+
lastRelayBlockAndParaBlockValidForNextEpoch: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, [
|
|
1267
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1178
1268
|
/**
|
|
1179
1269
|
* Latest random seed obtained from the one epoch ago randomness from BABE, and the latest block that it can process randomness requests from
|
|
1180
1270
|
**/
|
|
@@ -1216,7 +1306,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1216
1306
|
/**
|
|
1217
1307
|
* The next session keys for a validator.
|
|
1218
1308
|
**/
|
|
1219
|
-
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
1309
|
+
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ShParachainRuntimeSessionKeys>>, [
|
|
1220
1310
|
AccountId32
|
|
1221
1311
|
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1222
1312
|
/**
|
|
@@ -1228,7 +1318,7 @@ declare module "@polkadot/api-base/types/storage" {
|
|
|
1228
1318
|
* The queued keys for the next session. When the next session begins, these keys
|
|
1229
1319
|
* will be used to determine the validator's session keys.
|
|
1230
1320
|
**/
|
|
1231
|
-
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32,
|
|
1321
|
+
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, ShParachainRuntimeSessionKeys]>>>, [
|
|
1232
1322
|
]> & QueryableStorageEntry<ApiType, []>;
|
|
1233
1323
|
/**
|
|
1234
1324
|
* The current set of validators.
|