@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,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> | f64[]) => Observable<EthFeeHistory>>;
|
|
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: {
|
|
@@ -450,7 +450,7 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
450
450
|
/**
|
|
451
451
|
* Validate the transaction.
|
|
452
452
|
**/
|
|
453
|
-
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource |
|
|
453
|
+
validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
|
|
454
454
|
/**
|
|
455
455
|
* Generic call
|
|
456
456
|
**/
|