@storagehub/api-augment 0.2.14 → 0.4.0
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/dist/parachain/interfaces/augment-api-consts.js +1 -1
- package/dist/parachain/interfaces/augment-api-errors.js +1 -1
- package/dist/parachain/interfaces/augment-api-events.js +1 -1
- package/dist/parachain/interfaces/augment-api-query.js +1 -1
- package/dist/parachain/interfaces/augment-api-rpc.js +1 -1
- package/dist/parachain/interfaces/augment-api-runtime.js +1 -1
- package/dist/parachain/interfaces/augment-api-tx.js +1 -1
- package/dist/parachain/interfaces/augment-api.js +7 -7
- package/dist/parachain/interfaces/augment-types.js +1 -1
- package/dist/parachain/interfaces/index.js +1 -1
- package/dist/parachain/interfaces/lookup.js +2785 -2373
- package/dist/parachain/interfaces/lookup.js.map +1 -1
- package/dist/parachain/interfaces/registry.js +1 -1
- package/dist/parachain/interfaces/storagehubclient/index.js +1 -1
- package/dist/parachain/interfaces/storagehubclient/runtime.js +5 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -1
- package/dist/parachain/interfaces/types-lookup.js +1 -1
- package/dist/parachain/interfaces/types.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-consts.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-errors.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-events.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-query.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api-tx.js +1 -1
- package/dist/solochain-evm/interfaces/augment-api.js +7 -7
- package/dist/solochain-evm/interfaces/augment-types.js +1 -1
- package/dist/solochain-evm/interfaces/index.js +1 -1
- package/dist/solochain-evm/interfaces/lookup.js +2029 -1659
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -1
- package/dist/solochain-evm/interfaces/registry.js +1 -1
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +1 -1
- package/dist/solochain-evm/interfaces/types-lookup.js +1 -1
- package/dist/solochain-evm/interfaces/types.js +1 -1
- package/dist/types/parachain/interfaces/augment-api-consts.d.ts +7 -7
- package/dist/types/parachain/interfaces/augment-api-errors.d.ts +7 -3
- package/dist/types/parachain/interfaces/augment-api-events.d.ts +828 -174
- package/dist/types/parachain/interfaces/augment-api-query.d.ts +330 -112
- package/dist/types/parachain/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +33 -25
- package/dist/types/parachain/interfaces/augment-api-tx.d.ts +639 -149
- package/dist/types/parachain/interfaces/augment-api.d.ts +7 -7
- package/dist/types/parachain/interfaces/augment-types.d.ts +75 -75
- package/dist/types/parachain/interfaces/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/lookup.d.ts +227 -217
- package/dist/types/parachain/interfaces/registry.d.ts +3 -3
- package/dist/types/parachain/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +34 -34
- package/dist/types/parachain/interfaces/types-lookup.d.ts +536 -406
- package/dist/types/parachain/interfaces/types.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +7 -7
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +7 -3
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +674 -139
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +302 -100
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +33 -25
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +584 -132
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -7
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +75 -75
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +183 -173
- package/dist/types/solochain-evm/interfaces/registry.d.ts +3 -3
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +35 -35
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +412 -312
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -1
- package/metadata-sh-parachain.json +1 -1
- package/metadata-sh-solochain-evm.json +1 -1
- package/package.json +2 -2
- package/src/parachain/interfaces/augment-api-errors.ts +4 -0
- package/src/parachain/interfaces/augment-api-events.ts +8 -0
- package/src/parachain/interfaces/augment-api-query.ts +12 -0
- package/src/parachain/interfaces/augment-api-runtime.ts +14 -0
- package/src/parachain/interfaces/augment-api-tx.ts +13 -0
- package/src/parachain/interfaces/lookup.ts +233 -222
- package/src/parachain/interfaces/storagehubclient/runtime.ts +5 -0
- package/src/parachain/interfaces/types-lookup.ts +237 -224
- package/src/solochain-evm/interfaces/augment-api-errors.ts +4 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +8 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +12 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +14 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +13 -0
- package/src/solochain-evm/interfaces/lookup.ts +189 -178
- package/src/solochain-evm/interfaces/types-lookup.ts +193 -180
- package/storagehub-api-augment-0.2.14.tgz +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { AugmentedRpc } from
|
|
3
|
-
import type { Metadata, StorageKey } from
|
|
4
|
-
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from
|
|
5
|
-
import type { AnyNumber, Codec, ITuple } from
|
|
6
|
-
import type { ExtrinsicOrHash, ExtrinsicStatus } from
|
|
7
|
-
import type { EpochAuthorship } from
|
|
8
|
-
import type { BeefyVersionedFinalityProof } from
|
|
9
|
-
import type { BlockHash } from
|
|
10
|
-
import type { PrefixedStorageKey } from
|
|
11
|
-
import type { AuthorityId } from
|
|
12
|
-
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from
|
|
13
|
-
import type { BlockStats } from
|
|
14
|
-
import type { CreatedBlock } from
|
|
15
|
-
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from
|
|
16
|
-
import type { Extrinsic } from
|
|
17
|
-
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from
|
|
18
|
-
import type { MmrHash, MmrLeafBatchProof } from
|
|
19
|
-
import type { StorageKind } from
|
|
20
|
-
import type { FeeDetails, RuntimeDispatchInfoV1 } from
|
|
21
|
-
import type { RpcMethods } from
|
|
22
|
-
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from
|
|
23
|
-
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from
|
|
24
|
-
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from
|
|
25
|
-
import type { IExtrinsic, Observable } from
|
|
26
|
-
import type { AddFilesToForestStorageResult, CheckpointChallenge, FileMetadata, GetFileFromFileStorageResult, GetValuePropositionsResult, LoadFileInStorageResult, RemoveFilesFromForestStorageResult, RpcProviderId, SaveFileToDisk } from
|
|
1
|
+
import "@polkadot/rpc-core/types/jsonrpc";
|
|
2
|
+
import type { AugmentedRpc } from "@polkadot/rpc-core/types";
|
|
3
|
+
import type { Metadata, StorageKey } from "@polkadot/types";
|
|
4
|
+
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from "@polkadot/types-codec";
|
|
5
|
+
import type { AnyNumber, Codec, ITuple } from "@polkadot/types-codec/types";
|
|
6
|
+
import type { ExtrinsicOrHash, ExtrinsicStatus } from "@polkadot/types/interfaces/author";
|
|
7
|
+
import type { EpochAuthorship } from "@polkadot/types/interfaces/babe";
|
|
8
|
+
import type { BeefyVersionedFinalityProof } from "@polkadot/types/interfaces/beefy";
|
|
9
|
+
import type { BlockHash } from "@polkadot/types/interfaces/chain";
|
|
10
|
+
import type { PrefixedStorageKey } from "@polkadot/types/interfaces/childstate";
|
|
11
|
+
import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
|
|
12
|
+
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequestV1 } from "@polkadot/types/interfaces/contracts";
|
|
13
|
+
import type { BlockStats } from "@polkadot/types/interfaces/dev";
|
|
14
|
+
import type { CreatedBlock } from "@polkadot/types/interfaces/engine";
|
|
15
|
+
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from "@polkadot/types/interfaces/eth";
|
|
16
|
+
import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
|
|
17
|
+
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from "@polkadot/types/interfaces/grandpa";
|
|
18
|
+
import type { MmrHash, MmrLeafBatchProof } from "@polkadot/types/interfaces/mmr";
|
|
19
|
+
import type { StorageKind } from "@polkadot/types/interfaces/offchain";
|
|
20
|
+
import type { FeeDetails, RuntimeDispatchInfoV1 } from "@polkadot/types/interfaces/payment";
|
|
21
|
+
import type { RpcMethods } from "@polkadot/types/interfaces/rpc";
|
|
22
|
+
import type { AccountId, BlockNumber, H160, H256, H64, Hash, Header, Index, Justification, KeyValue, SignedBlock, StorageData } from "@polkadot/types/interfaces/runtime";
|
|
23
|
+
import type { MigrationStatusResult, ReadProof, RuntimeVersion, TraceBlockResponse } from "@polkadot/types/interfaces/state";
|
|
24
|
+
import type { ApplyExtrinsicResult, ChainProperties, ChainType, Health, NetworkState, NodeRole, PeerInfo, SyncState } from "@polkadot/types/interfaces/system";
|
|
25
|
+
import type { IExtrinsic, Observable } from "@polkadot/types/types";
|
|
26
|
+
import type { AddFilesToForestStorageResult, CheckpointChallenge, FileMetadata, GetFileFromFileStorageResult, GetValuePropositionsResult, LoadFileInStorageResult, RemoveFilesFromForestStorageResult, RpcProviderId, SaveFileToDisk } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
|
|
27
27
|
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
|
28
|
-
declare module
|
|
28
|
+
declare module "@polkadot/rpc-core/types/jsonrpc" {
|
|
29
29
|
interface RpcInterface {
|
|
30
30
|
author: {
|
|
31
31
|
/**
|
|
@@ -242,7 +242,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
242
242
|
/**
|
|
243
243
|
* Returns fee history for given block count & reward percentiles
|
|
244
244
|
**/
|
|
245
|
-
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> |
|
|
245
|
+
feeHistory: AugmentedRpc<(blockCount: U256 | AnyNumber | Uint8Array, newestBlock: BlockNumber | AnyNumber | Uint8Array, rewardPercentiles: Option<Vec<f64>> | null | Uint8Array | Vec<f64> | f64[]) => Observable<EthFeeHistory>>;
|
|
246
246
|
/**
|
|
247
247
|
* Returns current gas price.
|
|
248
248
|
**/
|
|
@@ -398,7 +398,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
398
398
|
/**
|
|
399
399
|
* Subscribe to Eth subscription.
|
|
400
400
|
**/
|
|
401
|
-
subscribe: AugmentedRpc<(kind: EthSubKind |
|
|
401
|
+
subscribe: AugmentedRpc<(kind: EthSubKind | "newHeads" | "logs" | "newPendingTransactions" | "syncing" | number | Uint8Array, params?: EthSubParams | {
|
|
402
402
|
None: any;
|
|
403
403
|
} | {
|
|
404
404
|
Logs: any;
|
|
@@ -470,15 +470,15 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
470
470
|
/**
|
|
471
471
|
* Clear offchain local storage under given key and prefix
|
|
472
472
|
**/
|
|
473
|
-
localStorageClear: AugmentedRpc<(kind: StorageKind |
|
|
473
|
+
localStorageClear: AugmentedRpc<(kind: StorageKind | "PERSISTENT" | "LOCAL" | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Null>>;
|
|
474
474
|
/**
|
|
475
475
|
* Get offchain local storage under given key and prefix
|
|
476
476
|
**/
|
|
477
|
-
localStorageGet: AugmentedRpc<(kind: StorageKind |
|
|
477
|
+
localStorageGet: AugmentedRpc<(kind: StorageKind | "PERSISTENT" | "LOCAL" | number | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
478
478
|
/**
|
|
479
479
|
* Set offchain local storage under given key and prefix
|
|
480
480
|
**/
|
|
481
|
-
localStorageSet: AugmentedRpc<(kind: StorageKind |
|
|
481
|
+
localStorageSet: AugmentedRpc<(kind: StorageKind | "PERSISTENT" | "LOCAL" | number | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => Observable<Null>>;
|
|
482
482
|
};
|
|
483
483
|
payment: {
|
|
484
484
|
/**
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, Result, Vec, bool, u128, u32 } from
|
|
4
|
-
import type { AnyNumber, IMethod, ITuple } from
|
|
5
|
-
import type { CheckInherentsResult, InherentData } from
|
|
6
|
-
import type { BlockHash } from
|
|
7
|
-
import type { AuthorityId } from
|
|
8
|
-
import type { CollationInfo } from
|
|
9
|
-
import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from
|
|
10
|
-
import type { Extrinsic } from
|
|
11
|
-
import type { GenesisBuildErr } from
|
|
12
|
-
import type { OpaqueMetadata } from
|
|
13
|
-
import type { FeeDetails, RuntimeDispatchInfo } from
|
|
14
|
-
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, H256, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, SlotDuration, Weight, WeightV2 } from
|
|
15
|
-
import type { RuntimeVersion } from
|
|
16
|
-
import type { ApplyExtrinsicResult, Key } from
|
|
17
|
-
import type { TransactionSource, TransactionValidity } from
|
|
18
|
-
import type { VersionedMultiLocation, VersionedXcm } from
|
|
19
|
-
import type { XcmPaymentApiError } from
|
|
20
|
-
import type { Error } from
|
|
21
|
-
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from
|
|
22
|
-
import type { IExtrinsic, Observable } from
|
|
23
|
-
import type { BackupStorageProvider, BackupStorageProviderId, BucketId, ChunkId, GenericApplyDeltaEventInfoError, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetNextDeadlineTickError, GetProofSubmissionRecordError, GetStakeError, GetUsersWithDebtOverThresholdError, IncompleteStorageRequestMetadataResponse, IsStorageRequestOpenToVolunteersError, MainStorageProviderId, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryBspsVolunteeredForFileError, QueryBucketsForMspError, QueryBucketsOfUserStoredByMspError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryIncompleteStorageRequestMetadataError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, StorageDataUnit, StorageProviderId, StorageRequestMetadata, TrieRemoveMutation, ValuePropositionWithId } from
|
|
1
|
+
import "@polkadot/api-base/types/calls";
|
|
2
|
+
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from "@polkadot/api-base/types";
|
|
3
|
+
import type { BTreeMap, Bytes, Null, Option, Result, Vec, bool, u128, u32 } from "@polkadot/types-codec";
|
|
4
|
+
import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
|
|
5
|
+
import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
|
|
6
|
+
import type { BlockHash } from "@polkadot/types/interfaces/chain";
|
|
7
|
+
import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
|
|
8
|
+
import type { CollationInfo } from "@polkadot/types/interfaces/cumulus";
|
|
9
|
+
import type { CallDryRunEffects, XcmDryRunApiError, XcmDryRunEffects } from "@polkadot/types/interfaces/dryRunApi";
|
|
10
|
+
import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
|
|
11
|
+
import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
|
|
12
|
+
import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
|
|
13
|
+
import type { FeeDetails, RuntimeDispatchInfo } from "@polkadot/types/interfaces/payment";
|
|
14
|
+
import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, H256, Header, Index, KeyTypeId, OriginCaller, RuntimeCall, Slot, SlotDuration, Weight, WeightV2 } from "@polkadot/types/interfaces/runtime";
|
|
15
|
+
import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
|
|
16
|
+
import type { ApplyExtrinsicResult, Key } from "@polkadot/types/interfaces/system";
|
|
17
|
+
import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
|
|
18
|
+
import type { VersionedMultiLocation, VersionedXcm } from "@polkadot/types/interfaces/xcm";
|
|
19
|
+
import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi";
|
|
20
|
+
import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi";
|
|
21
|
+
import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from "@polkadot/types/lookup";
|
|
22
|
+
import type { IExtrinsic, Observable } from "@polkadot/types/types";
|
|
23
|
+
import type { BackupStorageProvider, BackupStorageProviderId, BucketId, ChunkId, GenericApplyDeltaEventInfoError, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetNextDeadlineTickError, GetProofSubmissionRecordError, GetStakeError, GetUsersWithDebtOverThresholdError, IncompleteStorageRequestMetadataResponse, IsStorageRequestOpenToVolunteersError, MainStorageProviderId, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryBspsVolunteeredForFileError, QueryBucketsForMspError, QueryBucketsOfUserStoredByMspError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryIncompleteStorageRequestMetadataError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, StorageDataUnit, StorageProviderId, StorageRequestMetadata, TrieRemoveMutation, ValuePropositionWithId } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
|
|
24
24
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
25
25
|
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
|
26
|
-
declare module
|
|
26
|
+
declare module "@polkadot/api-base/types/calls" {
|
|
27
27
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
28
28
|
/** 0xbc9d89904f5b923f/1 */
|
|
29
29
|
accountNonceApi: {
|
|
@@ -184,6 +184,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
184
184
|
* Decodes the BucketId expected to be found in the event info of a generic apply delta.
|
|
185
185
|
**/
|
|
186
186
|
decodeGenericApplyDeltaEventInfo: AugmentedCall<ApiType, (encodedEventInfo: Bytes | string | Uint8Array) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>>;
|
|
187
|
+
/**
|
|
188
|
+
* Get the maximum batch size for confirm storage requests.
|
|
189
|
+
**/
|
|
190
|
+
getMaxBatchConfirmStorageRequests: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
187
191
|
/**
|
|
188
192
|
* Check if a storage request is open to volunteers.
|
|
189
193
|
**/
|
|
@@ -216,6 +220,10 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
216
220
|
* Query the chunks that a MSP needs to prove to confirm that it is storing a file.
|
|
217
221
|
**/
|
|
218
222
|
queryMspConfirmChunksToProveForFile: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>>;
|
|
223
|
+
/**
|
|
224
|
+
* Query the file keys that a BSP still needs to confirm storing after volunteering.
|
|
225
|
+
**/
|
|
226
|
+
queryPendingBspConfirmStorageRequests: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKeys: Vec<H256> | (H256 | string | Uint8Array)[]) => Observable<Vec<H256>>>;
|
|
219
227
|
/**
|
|
220
228
|
* Get the storage requests for a given MSP.
|
|
221
229
|
**/
|
|
@@ -450,7 +458,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
450
458
|
/**
|
|
451
459
|
* Validate the transaction.
|
|
452
460
|
**/
|
|
453
|
-
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource |
|
|
461
|
+
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | "InBlock" | "Local" | "External" | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
|
454
462
|
/**
|
|
455
463
|
* Generic call
|
|
456
464
|
**/
|