@storagehub/api-augment 0.2.10 → 0.2.14
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 +2406 -2869
- 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/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 +1686 -2107
- 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 +8 -107
- package/dist/types/parachain/interfaces/augment-api-events.d.ts +185 -917
- package/dist/types/parachain/interfaces/augment-api-query.d.ts +112 -319
- package/dist/types/parachain/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +25 -25
- package/dist/types/parachain/interfaces/augment-api-tx.d.ts +212 -637
- package/dist/types/parachain/interfaces/augment-api.d.ts +7 -7
- package/dist/types/parachain/interfaces/augment-types.d.ts +76 -75
- package/dist/types/parachain/interfaces/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/lookup.d.ts +289 -326
- package/dist/types/parachain/interfaces/registry.d.ts +4 -4
- package/dist/types/parachain/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/parachain/interfaces/storagehubclient/types.d.ts +46 -36
- package/dist/types/parachain/interfaces/types-lookup.d.ts +525 -712
- 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 +8 -107
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +150 -763
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +100 -291
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +32 -32
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +25 -25
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +195 -582
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -7
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +76 -75
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +239 -276
- package/dist/types/solochain-evm/interfaces/registry.d.ts +4 -4
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -1
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +47 -37
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +425 -582
- 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 +5 -104
- package/src/parachain/interfaces/augment-api-events.ts +14 -113
- package/src/parachain/interfaces/augment-api-tx.ts +63 -10
- package/src/parachain/interfaces/augment-types.ts +2 -0
- package/src/parachain/interfaces/lookup.ts +326 -388
- package/src/parachain/interfaces/registry.ts +2 -2
- package/src/parachain/interfaces/storagehubclient/types.ts +14 -4
- package/src/parachain/interfaces/types-lookup.ts +388 -486
- package/src/solochain-evm/interfaces/augment-api-errors.ts +5 -104
- package/src/solochain-evm/interfaces/augment-api-events.ts +14 -113
- package/src/solochain-evm/interfaces/augment-api-tx.ts +63 -10
- package/src/solochain-evm/interfaces/augment-types.ts +2 -0
- package/src/solochain-evm/interfaces/lookup.ts +276 -338
- package/src/solochain-evm/interfaces/registry.ts +2 -2
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +14 -4
- package/src/solochain-evm/interfaces/types-lookup.ts +338 -436
- package/storagehub-api-augment-0.2.14.tgz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionEip1559Eip1559Transaction, EthereumTransactionEip2930AccessListItem, EthereumTransactionEip2930Eip2930Transaction, EthereumTransactionLegacyLegacyTransaction, EthereumTransactionLegacyTransactionAction, EthereumTransactionLegacyTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FinalityGrandpaEquivocationPrecommit, FinalityGrandpaEquivocationPrevote, FinalityGrandpaPrecommit, FinalityGrandpaPrevote, FpAccountEthereumSignature, FpRpcTransactionStatus, FrameMetadataHashExtensionCheckMetadataHash, FrameMetadataHashExtensionMode, FrameSupportDispatchDispatchClass, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportTokensMiscBalanceStatus, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCall, FrameSystemCodeUpgradeAuthorization, FrameSystemDispatchEventInfo, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, PalletBabeCall, PalletBabeError, PalletBalancesAccountData, PalletBalancesAdjustmentDirection, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletBucketNftsCall, PalletBucketNftsError, PalletBucketNftsEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmError, PalletEvmEvent, PalletFileSystemBucketMoveRequestResponse, PalletFileSystemCall,
|
|
3
|
-
declare module
|
|
1
|
+
import '@polkadot/types/types/registry';
|
|
2
|
+
import type { EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionEip1559Eip1559Transaction, EthereumTransactionEip2930AccessListItem, EthereumTransactionEip2930Eip2930Transaction, EthereumTransactionLegacyLegacyTransaction, EthereumTransactionLegacyTransactionAction, EthereumTransactionLegacyTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FinalityGrandpaEquivocationPrecommit, FinalityGrandpaEquivocationPrevote, FinalityGrandpaPrecommit, FinalityGrandpaPrevote, FpAccountEthereumSignature, FpRpcTransactionStatus, FrameMetadataHashExtensionCheckMetadataHash, FrameMetadataHashExtensionMode, FrameSupportDispatchDispatchClass, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportTokensMiscBalanceStatus, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCall, FrameSystemCodeUpgradeAuthorization, FrameSystemDispatchEventInfo, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, PalletBabeCall, PalletBabeError, PalletBalancesAccountData, PalletBalancesAdjustmentDirection, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReserveData, PalletBucketNftsCall, PalletBucketNftsError, PalletBucketNftsEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmCall, PalletEvmCodeMetadata, PalletEvmError, PalletEvmEvent, PalletFileSystemBucketMoveRequestResponse, PalletFileSystemCall, PalletFileSystemError, PalletFileSystemEvent, PalletFileSystemFileDeletionRequest, PalletFileSystemFileKeyWithProof, PalletFileSystemFileOperation, PalletFileSystemFileOperationIntention, PalletFileSystemHoldReason, PalletFileSystemIncompleteStorageRequestMetadata, PalletFileSystemMoveBucketRequestMetadata, PalletFileSystemMspStorageRequestStatus, PalletFileSystemPendingFileDeletionRequest, PalletFileSystemPendingStopStoringRequest, PalletFileSystemRejectedStorageRequest, PalletFileSystemRejectedStorageRequestReason, PalletFileSystemReplicationTarget, PalletFileSystemStorageRequestBspsMetadata, PalletFileSystemStorageRequestMetadata, PalletFileSystemStorageRequestMspAcceptedFileKeys, PalletFileSystemStorageRequestMspBucketResponse, PalletGrandpaCall, PalletGrandpaError, PalletGrandpaEvent, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCall, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsCollectionRole, PalletNftsCollectionSetting, PalletNftsDestroyWitness, PalletNftsError, PalletNftsEvent, PalletNftsItemConfig, PalletNftsItemDeposit, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsItemMetadataDeposit, PalletNftsItemSetting, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintType, PalletNftsMintWitness, PalletNftsPalletAttributes, PalletNftsPalletFeature, PalletNftsPendingSwap, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceDirection, PalletNftsPriceWithDirection, PalletOffencesEvent, PalletParametersCall, PalletParametersEvent, PalletPaymentStreamsCall, PalletPaymentStreamsDynamicRatePaymentStream, PalletPaymentStreamsError, PalletPaymentStreamsEvent, PalletPaymentStreamsFixedRatePaymentStream, PalletPaymentStreamsHoldReason, PalletPaymentStreamsProviderLastChargeableInfo, PalletProofsDealerCall, PalletProofsDealerCustomChallenge, PalletProofsDealerError, PalletProofsDealerEvent, PalletProofsDealerKeyProof, PalletProofsDealerProof, PalletProofsDealerProofSubmissionRecord, PalletRandomnessCall, PalletRandomnessEvent, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletStorageProvidersBackupStorageProvider, PalletStorageProvidersBucket, PalletStorageProvidersCall, PalletStorageProvidersError, PalletStorageProvidersEvent, PalletStorageProvidersHoldReason, PalletStorageProvidersMainStorageProvider, PalletStorageProvidersMainStorageProviderSignUpRequest, PalletStorageProvidersSignUpRequest, PalletStorageProvidersSignUpRequestSpParams, PalletStorageProvidersStorageProviderId, PalletStorageProvidersTopUpMetadata, PalletStorageProvidersValueProposition, PalletStorageProvidersValuePropositionWithId, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTimestampCall, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigBasicReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigBspStopStoringFilePenalty, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigCheckpointChallengePeriod, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigDecayRate, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigHighSecurityReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigIdealUtilisationRate, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigLowerExponentFactor, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMaxPrice, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMaxReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMaximumTreasuryCut, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMinChallengePeriod, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMinPrice, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMinSeedPeriod, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMinWaitForStopStoring, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMinimumTreasuryCut, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigMostlyStablePrice, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigParameters, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigParametersKey, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigParametersValue, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigProviderTopUpTtl, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigSlashAmountPerMaxFileSize, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigStakeToChallengePeriod, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigStakeToSeedPeriod, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigStandardReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigStorageRequestTtl, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigSuperHighSecurityReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigSystemUtilisationLowerThresholdPercentage, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigSystemUtilisationUpperThresholdPercentage, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigTickRangeToMaximumThreshold, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigUltraHighSecurityReplicationTarget, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigUpfrontTicksToPay, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigUpperExponentFactor, ShSolochainEvmRuntimeConfigsRuntimeParamsDynamicParamsRuntimeConfigZeroSizeBucketFixedRate, ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParameters, ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey, ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue, ShSolochainEvmRuntimeRuntime, ShSolochainEvmRuntimeRuntimeFreezeReason, ShSolochainEvmRuntimeRuntimeHoldReason, ShSolochainEvmRuntimeSessionKeys, ShpFileKeyVerifierFileKeyProof, ShpFileMetadataFileMetadata, ShpFileMetadataFingerprint, ShpTraitsTrieAddMutation, ShpTraitsTrieMutation, ShpTraitsTrieRemoveMutation, SpArithmeticArithmeticError, SpConsensusBabeAllowedSlots, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBabeDigestsPrimaryPreDigest, SpConsensusBabeDigestsSecondaryPlainPreDigest, SpConsensusBabeDigestsSecondaryVRFPreDigest, SpConsensusGrandpaAppPublic, SpConsensusGrandpaAppSignature, SpConsensusGrandpaEquivocation, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpCoreSr25519VrfVrfSignature, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeProvingTrieTrieError, SpRuntimeTokenError, SpRuntimeTransactionalError, SpSessionMembershipProof, SpStakingOffenceOffenceDetails, SpTrieStorageProofCompactProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
3
|
+
declare module '@polkadot/types/types/registry' {
|
|
4
4
|
interface InterfaceTypes {
|
|
5
5
|
EthbloomBloom: EthbloomBloom;
|
|
6
6
|
EthereumBlock: EthereumBlock;
|
|
@@ -77,7 +77,6 @@ declare module "@polkadot/types/types/registry" {
|
|
|
77
77
|
PalletEvmEvent: PalletEvmEvent;
|
|
78
78
|
PalletFileSystemBucketMoveRequestResponse: PalletFileSystemBucketMoveRequestResponse;
|
|
79
79
|
PalletFileSystemCall: PalletFileSystemCall;
|
|
80
|
-
PalletFileSystemEitherAccountIdOrMspId: PalletFileSystemEitherAccountIdOrMspId;
|
|
81
80
|
PalletFileSystemError: PalletFileSystemError;
|
|
82
81
|
PalletFileSystemEvent: PalletFileSystemEvent;
|
|
83
82
|
PalletFileSystemFileDeletionRequest: PalletFileSystemFileDeletionRequest;
|
|
@@ -87,6 +86,7 @@ declare module "@polkadot/types/types/registry" {
|
|
|
87
86
|
PalletFileSystemHoldReason: PalletFileSystemHoldReason;
|
|
88
87
|
PalletFileSystemIncompleteStorageRequestMetadata: PalletFileSystemIncompleteStorageRequestMetadata;
|
|
89
88
|
PalletFileSystemMoveBucketRequestMetadata: PalletFileSystemMoveBucketRequestMetadata;
|
|
89
|
+
PalletFileSystemMspStorageRequestStatus: PalletFileSystemMspStorageRequestStatus;
|
|
90
90
|
PalletFileSystemPendingFileDeletionRequest: PalletFileSystemPendingFileDeletionRequest;
|
|
91
91
|
PalletFileSystemPendingStopStoringRequest: PalletFileSystemPendingStopStoringRequest;
|
|
92
92
|
PalletFileSystemRejectedStorageRequest: PalletFileSystemRejectedStorageRequest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './types.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Bytes, Enum, Null,
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { BalanceOf, BlockNumber, H256 } from "@polkadot/types/interfaces/runtime";
|
|
1
|
+
import type { Bytes, Enum, Null, Struct, U8aFixed, Vec, bool, u32, u64 } from '@polkadot/types-codec';
|
|
2
|
+
import type { EthereumAccountId } from '@polkadot/types/interfaces/eth';
|
|
3
|
+
import type { BalanceOf, BlockNumber, H256 } from '@polkadot/types/interfaces/runtime';
|
|
5
4
|
/** @name AccountId */
|
|
6
5
|
export interface AccountId extends EthereumAccountId {
|
|
7
6
|
}
|
|
@@ -9,7 +8,7 @@ export interface AccountId extends EthereumAccountId {
|
|
|
9
8
|
export interface AddFilesToForestStorageResult extends Enum {
|
|
10
9
|
readonly isSuccess: boolean;
|
|
11
10
|
readonly isForestNotFound: boolean;
|
|
12
|
-
readonly type:
|
|
11
|
+
readonly type: 'Success' | 'ForestNotFound';
|
|
13
12
|
}
|
|
14
13
|
/** @name Address */
|
|
15
14
|
export interface Address extends AccountId {
|
|
@@ -51,33 +50,33 @@ export interface FileMetadata extends Struct {
|
|
|
51
50
|
/** @name GenericApplyDeltaEventInfoError */
|
|
52
51
|
export interface GenericApplyDeltaEventInfoError extends Enum {
|
|
53
52
|
readonly isDecodeError: boolean;
|
|
54
|
-
readonly type:
|
|
53
|
+
readonly type: 'DecodeError';
|
|
55
54
|
}
|
|
56
55
|
/** @name GetBspInfoError */
|
|
57
56
|
export interface GetBspInfoError extends Enum {
|
|
58
57
|
readonly isBspNotRegistered: boolean;
|
|
59
58
|
readonly isInternalApiError: boolean;
|
|
60
|
-
readonly type:
|
|
59
|
+
readonly type: 'BspNotRegistered' | 'InternalApiError';
|
|
61
60
|
}
|
|
62
61
|
/** @name GetChallengePeriodError */
|
|
63
62
|
export interface GetChallengePeriodError extends Enum {
|
|
64
63
|
readonly isProviderNotRegistered: boolean;
|
|
65
64
|
readonly isInternalApiError: boolean;
|
|
66
|
-
readonly type:
|
|
65
|
+
readonly type: 'ProviderNotRegistered' | 'InternalApiError';
|
|
67
66
|
}
|
|
68
67
|
/** @name GetChallengeSeedError */
|
|
69
68
|
export interface GetChallengeSeedError extends Enum {
|
|
70
69
|
readonly isTickBeyondLastSeedStored: boolean;
|
|
71
70
|
readonly isTickIsInTheFuture: boolean;
|
|
72
71
|
readonly isInternalApiError: boolean;
|
|
73
|
-
readonly type:
|
|
72
|
+
readonly type: 'TickBeyondLastSeedStored' | 'TickIsInTheFuture' | 'InternalApiError';
|
|
74
73
|
}
|
|
75
74
|
/** @name GetCheckpointChallengesError */
|
|
76
75
|
export interface GetCheckpointChallengesError extends Enum {
|
|
77
76
|
readonly isTickGreaterThanLastCheckpointTick: boolean;
|
|
78
77
|
readonly isNoCheckpointChallengesInTick: boolean;
|
|
79
78
|
readonly isInternalApiError: boolean;
|
|
80
|
-
readonly type:
|
|
79
|
+
readonly type: 'TickGreaterThanLastCheckpointTick' | 'NoCheckpointChallengesInTick' | 'InternalApiError';
|
|
81
80
|
}
|
|
82
81
|
/** @name GetFileFromFileStorageResult */
|
|
83
82
|
export interface GetFileFromFileStorageResult extends Enum {
|
|
@@ -88,7 +87,7 @@ export interface GetFileFromFileStorageResult extends Enum {
|
|
|
88
87
|
readonly asIncompleteFile: IncompleteFileStatus;
|
|
89
88
|
readonly isFileFoundWithInconsistency: boolean;
|
|
90
89
|
readonly asFileFoundWithInconsistency: FileMetadata;
|
|
91
|
-
readonly type:
|
|
90
|
+
readonly type: 'FileNotFound' | 'FileFound' | 'IncompleteFile' | 'FileFoundWithInconsistency';
|
|
92
91
|
}
|
|
93
92
|
/** @name GetNextDeadlineTickError */
|
|
94
93
|
export interface GetNextDeadlineTickError extends Enum {
|
|
@@ -96,20 +95,20 @@ export interface GetNextDeadlineTickError extends Enum {
|
|
|
96
95
|
readonly isProviderNotInitialised: boolean;
|
|
97
96
|
readonly isArithmeticOverflow: boolean;
|
|
98
97
|
readonly isInternalApiError: boolean;
|
|
99
|
-
readonly type:
|
|
98
|
+
readonly type: 'ProviderNotRegistered' | 'ProviderNotInitialised' | 'ArithmeticOverflow' | 'InternalApiError';
|
|
100
99
|
}
|
|
101
100
|
/** @name GetProofSubmissionRecordError */
|
|
102
101
|
export interface GetProofSubmissionRecordError extends Enum {
|
|
103
102
|
readonly isProviderNotRegistered: boolean;
|
|
104
103
|
readonly isProviderNeverSubmittedProof: boolean;
|
|
105
104
|
readonly isInternalApiError: boolean;
|
|
106
|
-
readonly type:
|
|
105
|
+
readonly type: 'ProviderNotRegistered' | 'ProviderNeverSubmittedProof' | 'InternalApiError';
|
|
107
106
|
}
|
|
108
107
|
/** @name GetStakeError */
|
|
109
108
|
export interface GetStakeError extends Enum {
|
|
110
109
|
readonly isProviderNotRegistered: boolean;
|
|
111
110
|
readonly isInternalError: boolean;
|
|
112
|
-
readonly type:
|
|
111
|
+
readonly type: 'ProviderNotRegistered' | 'InternalError';
|
|
113
112
|
}
|
|
114
113
|
/** @name GetUsersWithDebtOverThresholdError */
|
|
115
114
|
export interface GetUsersWithDebtOverThresholdError extends Enum {
|
|
@@ -119,14 +118,14 @@ export interface GetUsersWithDebtOverThresholdError extends Enum {
|
|
|
119
118
|
readonly isAmountToChargeUnderflow: boolean;
|
|
120
119
|
readonly isDebtOverflow: boolean;
|
|
121
120
|
readonly isInternalApiError: boolean;
|
|
122
|
-
readonly type:
|
|
121
|
+
readonly type: 'ProviderNotRegistered' | 'ProviderWithoutPaymentStreams' | 'AmountToChargeOverflow' | 'AmountToChargeUnderflow' | 'DebtOverflow' | 'InternalApiError';
|
|
123
122
|
}
|
|
124
123
|
/** @name GetValuePropositionsResult */
|
|
125
124
|
export interface GetValuePropositionsResult extends Enum {
|
|
126
125
|
readonly isSuccess: boolean;
|
|
127
126
|
readonly asSuccess: Vec<Bytes>;
|
|
128
127
|
readonly isNotAnMsp: boolean;
|
|
129
|
-
readonly type:
|
|
128
|
+
readonly type: 'Success' | 'NotAnMsp';
|
|
130
129
|
}
|
|
131
130
|
/** @name IncompleteFileStatus */
|
|
132
131
|
export interface IncompleteFileStatus extends Struct {
|
|
@@ -148,7 +147,7 @@ export interface IncompleteStorageRequestMetadataResponse extends Struct {
|
|
|
148
147
|
export interface IsStorageRequestOpenToVolunteersError extends Enum {
|
|
149
148
|
readonly isStorageRequestNotFound: boolean;
|
|
150
149
|
readonly isInternalApiError: boolean;
|
|
151
|
-
readonly type:
|
|
150
|
+
readonly type: 'StorageRequestNotFound' | 'InternalApiError';
|
|
152
151
|
}
|
|
153
152
|
/** @name Key */
|
|
154
153
|
export interface Key extends H256 {
|
|
@@ -167,6 +166,17 @@ export interface MainStorageProviderId extends H256 {
|
|
|
167
166
|
/** @name MerklePatriciaRoot */
|
|
168
167
|
export interface MerklePatriciaRoot extends H256 {
|
|
169
168
|
}
|
|
169
|
+
/** @name MspStorageRequestStatus */
|
|
170
|
+
export interface MspStorageRequestStatus extends Enum {
|
|
171
|
+
readonly isNone: boolean;
|
|
172
|
+
readonly isPending: boolean;
|
|
173
|
+
readonly asPending: ProviderId;
|
|
174
|
+
readonly isAcceptedNewFile: boolean;
|
|
175
|
+
readonly asAcceptedNewFile: ProviderId;
|
|
176
|
+
readonly isAcceptedExistingFile: boolean;
|
|
177
|
+
readonly asAcceptedExistingFile: ProviderId;
|
|
178
|
+
readonly type: 'None' | 'Pending' | 'AcceptedNewFile' | 'AcceptedExistingFile';
|
|
179
|
+
}
|
|
170
180
|
/** @name Multiaddresses */
|
|
171
181
|
export interface Multiaddresses extends Vec<Bytes> {
|
|
172
182
|
}
|
|
@@ -177,7 +187,7 @@ export interface ProviderId extends H256 {
|
|
|
177
187
|
export interface QueryAvailableStorageCapacityError extends Enum {
|
|
178
188
|
readonly isProviderNotRegistered: boolean;
|
|
179
189
|
readonly isInternalApiError: boolean;
|
|
180
|
-
readonly type:
|
|
190
|
+
readonly type: 'ProviderNotRegistered' | 'InternalApiError';
|
|
181
191
|
}
|
|
182
192
|
/** @name QueryBspConfirmChunksToProveForFileError */
|
|
183
193
|
export interface QueryBspConfirmChunksToProveForFileError extends Enum {
|
|
@@ -185,38 +195,38 @@ export interface QueryBspConfirmChunksToProveForFileError extends Enum {
|
|
|
185
195
|
readonly isConfirmChunks: boolean;
|
|
186
196
|
readonly asConfirmChunks: QueryConfirmChunksToProveForFileError;
|
|
187
197
|
readonly isInternalError: boolean;
|
|
188
|
-
readonly type:
|
|
198
|
+
readonly type: 'StorageRequestNotFound' | 'ConfirmChunks' | 'InternalError';
|
|
189
199
|
}
|
|
190
200
|
/** @name QueryBspsVolunteeredForFileError */
|
|
191
201
|
export interface QueryBspsVolunteeredForFileError extends Enum {
|
|
192
202
|
readonly isStorageRequestNotFound: boolean;
|
|
193
203
|
readonly isInternalError: boolean;
|
|
194
|
-
readonly type:
|
|
204
|
+
readonly type: 'StorageRequestNotFound' | 'InternalError';
|
|
195
205
|
}
|
|
196
206
|
/** @name QueryBucketsForMspError */
|
|
197
207
|
export interface QueryBucketsForMspError extends Enum {
|
|
198
208
|
readonly isProviderNotRegistered: boolean;
|
|
199
209
|
readonly isInternalError: boolean;
|
|
200
|
-
readonly type:
|
|
210
|
+
readonly type: 'ProviderNotRegistered' | 'InternalError';
|
|
201
211
|
}
|
|
202
212
|
/** @name QueryBucketsOfUserStoredByMspError */
|
|
203
213
|
export interface QueryBucketsOfUserStoredByMspError extends Enum {
|
|
204
214
|
readonly isNotAnMsp: boolean;
|
|
205
215
|
readonly isInternalError: boolean;
|
|
206
|
-
readonly type:
|
|
216
|
+
readonly type: 'NotAnMsp' | 'InternalError';
|
|
207
217
|
}
|
|
208
218
|
/** @name QueryConfirmChunksToProveForFileError */
|
|
209
219
|
export interface QueryConfirmChunksToProveForFileError extends Enum {
|
|
210
220
|
readonly isChallengedChunkToChunkIdError: boolean;
|
|
211
221
|
readonly isFailedToCreateFileMetadata: boolean;
|
|
212
222
|
readonly isFailedToGenerateChunkChallenges: boolean;
|
|
213
|
-
readonly type:
|
|
223
|
+
readonly type: 'ChallengedChunkToChunkIdError' | 'FailedToCreateFileMetadata' | 'FailedToGenerateChunkChallenges';
|
|
214
224
|
}
|
|
215
225
|
/** @name QueryEarliestChangeCapacityBlockError */
|
|
216
226
|
export interface QueryEarliestChangeCapacityBlockError extends Enum {
|
|
217
227
|
readonly isProviderNotRegistered: boolean;
|
|
218
228
|
readonly isInternalApiError: boolean;
|
|
219
|
-
readonly type:
|
|
229
|
+
readonly type: 'ProviderNotRegistered' | 'InternalApiError';
|
|
220
230
|
}
|
|
221
231
|
/** @name QueryFileEarliestVolunteerBlockError */
|
|
222
232
|
export interface QueryFileEarliestVolunteerBlockError extends Enum {
|
|
@@ -225,13 +235,13 @@ export interface QueryFileEarliestVolunteerBlockError extends Enum {
|
|
|
225
235
|
readonly isThresholdArithmeticError: boolean;
|
|
226
236
|
readonly isStorageRequestNotFound: boolean;
|
|
227
237
|
readonly isInternalError: boolean;
|
|
228
|
-
readonly type:
|
|
238
|
+
readonly type: 'FailedToEncodeFingerprint' | 'FailedToEncodeBsp' | 'ThresholdArithmeticError' | 'StorageRequestNotFound' | 'InternalError';
|
|
229
239
|
}
|
|
230
240
|
/** @name QueryIncompleteStorageRequestMetadataError */
|
|
231
241
|
export interface QueryIncompleteStorageRequestMetadataError extends Enum {
|
|
232
242
|
readonly isStorageNotFound: boolean;
|
|
233
243
|
readonly isInternalError: boolean;
|
|
234
|
-
readonly type:
|
|
244
|
+
readonly type: 'StorageNotFound' | 'InternalError';
|
|
235
245
|
}
|
|
236
246
|
/** @name QueryMspConfirmChunksToProveForFileError */
|
|
237
247
|
export interface QueryMspConfirmChunksToProveForFileError extends Enum {
|
|
@@ -239,25 +249,25 @@ export interface QueryMspConfirmChunksToProveForFileError extends Enum {
|
|
|
239
249
|
readonly isConfirmChunks: boolean;
|
|
240
250
|
readonly asConfirmChunks: QueryConfirmChunksToProveForFileError;
|
|
241
251
|
readonly isInternalError: boolean;
|
|
242
|
-
readonly type:
|
|
252
|
+
readonly type: 'StorageRequestNotFound' | 'ConfirmChunks' | 'InternalError';
|
|
243
253
|
}
|
|
244
254
|
/** @name QueryMspIdOfBucketIdError */
|
|
245
255
|
export interface QueryMspIdOfBucketIdError extends Enum {
|
|
246
256
|
readonly isBucketNotFound: boolean;
|
|
247
257
|
readonly isInternalApiError: boolean;
|
|
248
|
-
readonly type:
|
|
258
|
+
readonly type: 'BucketNotFound' | 'InternalApiError';
|
|
249
259
|
}
|
|
250
260
|
/** @name QueryProviderMultiaddressesError */
|
|
251
261
|
export interface QueryProviderMultiaddressesError extends Enum {
|
|
252
262
|
readonly isProviderNotRegistered: boolean;
|
|
253
263
|
readonly isInternalApiError: boolean;
|
|
254
|
-
readonly type:
|
|
264
|
+
readonly type: 'ProviderNotRegistered' | 'InternalApiError';
|
|
255
265
|
}
|
|
256
266
|
/** @name QueryStorageProviderCapacityError */
|
|
257
267
|
export interface QueryStorageProviderCapacityError extends Enum {
|
|
258
268
|
readonly isProviderNotRegistered: boolean;
|
|
259
269
|
readonly isInternalApiError: boolean;
|
|
260
|
-
readonly type:
|
|
270
|
+
readonly type: 'ProviderNotRegistered' | 'InternalApiError';
|
|
261
271
|
}
|
|
262
272
|
/** @name RandomnessOutput */
|
|
263
273
|
export interface RandomnessOutput extends H256 {
|
|
@@ -266,7 +276,7 @@ export interface RandomnessOutput extends H256 {
|
|
|
266
276
|
export interface RemoveFilesFromForestStorageResult extends Enum {
|
|
267
277
|
readonly isSuccess: boolean;
|
|
268
278
|
readonly isForestNotFound: boolean;
|
|
269
|
-
readonly type:
|
|
279
|
+
readonly type: 'Success' | 'ForestNotFound';
|
|
270
280
|
}
|
|
271
281
|
/** @name ReputationWeightType */
|
|
272
282
|
export interface ReputationWeightType extends u32 {
|
|
@@ -278,7 +288,7 @@ export interface RpcProviderId extends Enum {
|
|
|
278
288
|
readonly asBsp: H256;
|
|
279
289
|
readonly isMsp: boolean;
|
|
280
290
|
readonly asMsp: H256;
|
|
281
|
-
readonly type:
|
|
291
|
+
readonly type: 'NotAProvider' | 'Bsp' | 'Msp';
|
|
282
292
|
}
|
|
283
293
|
/** @name SaveFileToDisk */
|
|
284
294
|
export interface SaveFileToDisk extends Enum {
|
|
@@ -287,7 +297,7 @@ export interface SaveFileToDisk extends Enum {
|
|
|
287
297
|
readonly asSuccess: FileMetadata;
|
|
288
298
|
readonly isIncompleteFile: boolean;
|
|
289
299
|
readonly asIncompleteFile: IncompleteFileStatus;
|
|
290
|
-
readonly type:
|
|
300
|
+
readonly type: 'FileNotFound' | 'Success' | 'IncompleteFile';
|
|
291
301
|
}
|
|
292
302
|
/** @name ShouldRemoveFile */
|
|
293
303
|
export interface ShouldRemoveFile extends bool {
|
|
@@ -304,7 +314,7 @@ export interface StorageProviderId extends Enum {
|
|
|
304
314
|
readonly asBackupStorageProvider: BackupStorageProviderId;
|
|
305
315
|
readonly isMainStorageProvider: boolean;
|
|
306
316
|
readonly asMainStorageProvider: MainStorageProviderId;
|
|
307
|
-
readonly type:
|
|
317
|
+
readonly type: 'BackupStorageProvider' | 'MainStorageProvider';
|
|
308
318
|
}
|
|
309
319
|
/** @name StorageRequestMetadata */
|
|
310
320
|
export interface StorageRequestMetadata extends Struct {
|
|
@@ -315,8 +325,8 @@ export interface StorageRequestMetadata extends Struct {
|
|
|
315
325
|
readonly location: Bytes;
|
|
316
326
|
readonly fingerprint: U8aFixed;
|
|
317
327
|
readonly file_size: StorageDataUnit;
|
|
318
|
-
readonly
|
|
319
|
-
readonly user_peer_ids: Vec<
|
|
328
|
+
readonly msp_status: MspStorageRequestStatus;
|
|
329
|
+
readonly user_peer_ids: Vec<Bytes>;
|
|
320
330
|
readonly bsps_required: u32;
|
|
321
331
|
readonly bsps_confirmed: u32;
|
|
322
332
|
readonly bsps_volunteered: u32;
|
|
@@ -338,4 +348,4 @@ export interface ValuePropositionWithId extends Struct {
|
|
|
338
348
|
readonly id: ValuePropId;
|
|
339
349
|
readonly value_prop: ValueProposition;
|
|
340
350
|
}
|
|
341
|
-
export type PHANTOM_STORAGEHUBCLIENT =
|
|
351
|
+
export type PHANTOM_STORAGEHUBCLIENT = 'storagehubclient';
|