Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd0bd21d88 | ||
|
|
58875b8125 | ||
|
|
7e0586794a | ||
|
|
d800886ee0 | ||
|
|
0bdfc37096 | ||
|
|
db3b3f606b | ||
|
|
717043c557 | ||
|
|
8cee4c462a | ||
|
|
f6f1646147 | ||
|
|
dd533f9831 | ||
|
|
5ba13358a5 | ||
|
|
3a3680194d | ||
|
|
d436e42bb0 | ||
|
|
d6d1575ba9 | ||
|
|
15e5f4d401 | ||
|
|
f4c2b150d3 | ||
|
|
c1d727fbe8 | ||
|
|
475891575b | ||
|
|
02b7807ba5 | ||
|
|
d15f0b3ac5 | ||
|
|
e8f782e1f2 | ||
|
|
0f627bed2d | ||
|
|
427cf3e105 | ||
|
|
9e98f81dc0 | ||
|
|
f98422c42b | ||
|
|
267c6242a3 | ||
|
|
94cbbf5356 | ||
|
|
c1b1ad7843 | ||
|
|
ce5769471f | ||
|
|
09222d9055 | ||
|
|
9c4554ddb3 | ||
|
|
1ba4c0c277 | ||
|
|
ac46305d15 | ||
|
|
ad59abfc37 | ||
|
|
5a48ca3a0a | ||
|
|
d3dabadf95 | ||
|
|
212d0e33ae | ||
|
|
a6adeb739f | ||
|
|
cd440ea3c4 | ||
|
|
eb480d7ce9 | ||
|
|
298397f499 | ||
|
|
6b17bf5a7a | ||
|
|
3b3da09f33 | ||
|
|
976d708fae |
@@ -1,5 +1,38 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 10.7.1 May 13, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
- Add `module` to `package.json` export map (ESM-only)
|
||||
|
||||
|
||||
## 10.6.1 May 7, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
- Extract runtime details for custom documentation (Thanks to https://github.com/FlorianFranzen)
|
||||
|
||||
Changes:
|
||||
|
||||
- Apply historic `Scheduled` types for Kusama (as reported, non-comprehensive)
|
||||
- Adjust Deno types inside `WsProvider`
|
||||
- Allow parsing of (experimental) metadata v15
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.5.1 Apr 29, 2023
|
||||
|
||||
Changes:
|
||||
|
||||
- Default to hex-only in `Int/UInt.toJSON` for > 128-bit values
|
||||
- Allow for disabling of `isPedantic` storage checks in API options
|
||||
- Adjust usage of `objectSpread`, default to runtime as required
|
||||
- Adjust compilation output for `__internal__` class fields
|
||||
- Update to latest Polkadot, Kusama & Substrate metadata
|
||||
|
||||
|
||||
## 10.4.1 Apr 22, 2023
|
||||
|
||||
Contributed:
|
||||
|
||||
+3
-1
@@ -1,4 +1,4 @@
|
||||
3440 Jaco 10.4.1 (#5607)
|
||||
3460 Jaco 10.7.1 (#5645)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -64,6 +64,7 @@
|
||||
1 Drew Stone Update evm definitions to include vicinity (#2279)
|
||||
1 Dylan Galea Updated users of the polkadot-js/api (#2027)
|
||||
1 flex Change BeefySignedCommitment signatures type to EcdsaSignature (#4204)
|
||||
1 Florian Franzen metadataMd: use endpoint for rpc and runtime details too (#5628)
|
||||
1 Furqan A fix: fixed 404 to the docs from the api readme (#3985)
|
||||
1 Gérard Dethier Fix LRUCache memory leak. (#4520)
|
||||
1 Gerben van de Wiel Adding some extra notes on changes in the specname (#2329)
|
||||
@@ -112,6 +113,7 @@
|
||||
1 Sergei Pepyakin INK! -> ink! (#1347)
|
||||
1 Shunji Zhan small polish (#5276)
|
||||
1 Stephen Shelton Add transaction-payment runtime API V3 (#5430)
|
||||
1 Tarik Gul Update .nvmrc (#5624)
|
||||
1 WoeOm adapt Darwinia, Crab Network types (#3498)
|
||||
1 Xat_MassacrE Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)
|
||||
1 yjh fix MetadataVersioned.asV12 (#2983)
|
||||
|
||||
+5
-5
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"versions": {
|
||||
"git": "10.4.1",
|
||||
"npm": "10.4.1"
|
||||
"git": "10.7.1",
|
||||
"npm": "10.7.1"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,9 +40,9 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.73.2",
|
||||
"@polkadot/dev": "^0.73.17",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^18.15.13"
|
||||
"@types/node": "^20.1.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"typescript": "^5.0.4"
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.4.1",
|
||||
"@polkadot/rpc-augment": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-augment": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/api-base": "10.7.1",
|
||||
"@polkadot/rpc-augment": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-augment": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1296,11 +1296,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Para is not registered in our system.
|
||||
**/
|
||||
NotRegistered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
|
||||
* is disabled.
|
||||
**/
|
||||
PvfCheckDisabled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given validator already has cast a vote.
|
||||
**/
|
||||
@@ -2103,7 +2098,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
Filtered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The unlock operation cannot succeed because there are still users of the lock.
|
||||
* The unlock operation cannot succeed because there are still consumers of the lock.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -1024,6 +1024,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||
Reserved: AugmentedEvent<ApiType, [paraId: u32, who: AccountId32], { paraId: u32, who: AccountId32 }>;
|
||||
Swapped: AugmentedEvent<ApiType, [paraId: u32, otherId: u32], { paraId: u32, otherId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
|
||||
@@ -413,6 +413,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -998,15 +1000,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The primary structure that holds all offence records keyed by report identifiers.
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -2115,6 +2108,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* of our versions we informed them of.
|
||||
**/
|
||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Global suspension state of the XCM executor.
|
||||
**/
|
||||
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -3493,7 +3493,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Make some on-chain remark.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(1)`
|
||||
**/
|
||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
@@ -3503,16 +3502,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
||||
**/
|
||||
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code without doing any checks of the given `code`.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C)` where `C` length of `code`
|
||||
**/
|
||||
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
@@ -3875,22 +3868,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||
* version a destination can accept is unknown).
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
||||
**/
|
||||
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
||||
/**
|
||||
* Ask a location to notify us regarding their XCM version and any changes to it.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The location to which we should subscribe for XCM version notifications.
|
||||
**/
|
||||
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Set or unset the global suspension state of the XCM executor.
|
||||
*
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `suspended`: `true` to suspend, `false` to resume.
|
||||
**/
|
||||
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
||||
/**
|
||||
* Require that a particular destination should no longer notify us regarding any XCM
|
||||
* version changes.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The location to which we are currently subscribed for XCM version
|
||||
* notifications which we no longer desire.
|
||||
**/
|
||||
@@ -3899,7 +3899,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Extoll that a particular destination can be communicated with through a particular
|
||||
* version of XCM.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The destination that is being described.
|
||||
* - `xcm_version`: The latest version of XCM that `location` supports.
|
||||
**/
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -1232,11 +1232,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Para is not registered in our system.
|
||||
**/
|
||||
NotRegistered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
|
||||
* is disabled.
|
||||
**/
|
||||
PvfCheckDisabled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given validator already has cast a vote.
|
||||
**/
|
||||
@@ -1308,6 +1303,37 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
parasSlashing: {
|
||||
/**
|
||||
* The given slashing report is valid but already previously reported.
|
||||
**/
|
||||
DuplicateSlashingReport: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The candidate hash is invalid.
|
||||
**/
|
||||
InvalidCandidateHash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The key ownership proof is invalid.
|
||||
**/
|
||||
InvalidKeyOwnershipProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The session index is too old or invalid.
|
||||
**/
|
||||
InvalidSessionIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no pending slash for the given validator index and time
|
||||
* slot.
|
||||
**/
|
||||
InvalidValidatorIndex: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The validator index does not match the validator id.
|
||||
**/
|
||||
ValidatorIndexIdMismatch: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* Duplicated candidate submission.
|
||||
@@ -2028,7 +2054,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
Filtered: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The unlock operation cannot succeed because there are still users of the lock.
|
||||
* The unlock operation cannot succeed because there are still consumers of the lock.
|
||||
**/
|
||||
InUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -934,6 +934,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
Deregistered: AugmentedEvent<ApiType, [paraId: u32], { paraId: u32 }>;
|
||||
Registered: AugmentedEvent<ApiType, [paraId: u32, manager: AccountId32], { paraId: u32, manager: AccountId32 }>;
|
||||
Reserved: AugmentedEvent<ApiType, [paraId: u32, who: AccountId32], { paraId: u32, who: AccountId32 }>;
|
||||
Swapped: AugmentedEvent<ApiType, [paraId: u32, otherId: u32], { paraId: u32, otherId: u32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4AssignmentAppPublic, PolkadotPrimitivesV4CandidateCommitments, PolkadotPrimitivesV4CoreOccupied, PolkadotPrimitivesV4DisputeState, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4ScrapedOnChainVotes, PolkadotPrimitivesV4SessionInfo, PolkadotPrimitivesV4UpgradeGoAhead, PolkadotPrimitivesV4UpgradeRestriction, PolkadotPrimitivesV4ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -512,6 +512,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -950,15 +952,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The primary structure that holds all offence records keyed by report identifiers.
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1271,6 +1264,20 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
parasSlashing: {
|
||||
/**
|
||||
* Validators pending dispute slashes.
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsDisputesSlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
||||
/**
|
||||
* `ValidatorSetCount` per session.
|
||||
**/
|
||||
validatorSetCounts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* The present candidate list. A current member or runner-up can never enter this vector
|
||||
@@ -2058,6 +2065,10 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* of our versions we informed them of.
|
||||
**/
|
||||
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Global suspension state of the XCM executor.
|
||||
**/
|
||||
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV4ExecutorParams, PolkadotPrimitivesV4InherentData, PolkadotPrimitivesV4PvfCheckStatement, PolkadotPrimitivesV4ValidatorAppSignature, PolkadotPrimitivesVstagingAsyncBackingParams, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -2379,6 +2379,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
parasSlashing: {
|
||||
reportDisputeLostUnsigned: AugmentedSubmittable<(disputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof | { timeSlot?: any; kind?: any; validatorIndex?: any; validatorId?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeParachainsDisputesSlashingDisputeProof, SpSessionMembershipProof]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
phragmenElection: {
|
||||
/**
|
||||
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
||||
@@ -3319,7 +3326,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Make some on-chain remark.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(1)`
|
||||
**/
|
||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
@@ -3329,16 +3335,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
||||
**/
|
||||
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code without doing any checks of the given `code`.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C)` where `C` length of `code`
|
||||
**/
|
||||
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
@@ -3987,22 +3987,29 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
||||
* version a destination can accept is unknown).
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
||||
**/
|
||||
forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
|
||||
/**
|
||||
* Ask a location to notify us regarding their XCM version and any changes to it.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The location to which we should subscribe for XCM version notifications.
|
||||
**/
|
||||
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedMultiLocation | { V2: any } | { V3: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedMultiLocation]>;
|
||||
/**
|
||||
* Set or unset the global suspension state of the XCM executor.
|
||||
*
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `suspended`: `true` to suspend, `false` to resume.
|
||||
**/
|
||||
forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
||||
/**
|
||||
* Require that a particular destination should no longer notify us regarding any XCM
|
||||
* version changes.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The location to which we are currently subscribed for XCM version
|
||||
* notifications which we no longer desire.
|
||||
**/
|
||||
@@ -4011,7 +4018,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Extoll that a particular destination can be communicated with through a particular
|
||||
* version of XCM.
|
||||
*
|
||||
* - `origin`: Must be Root.
|
||||
* - `origin`: Must be an origin specified by AdminOrigin.
|
||||
* - `location`: The destination that is being described.
|
||||
* - `xcm_version`: The latest version of XCM that `location` supports.
|
||||
**/
|
||||
|
||||
@@ -209,6 +209,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
contracts: {
|
||||
/**
|
||||
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
||||
**/
|
||||
defaultDepositLimit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of balance a caller has to pay for each byte of storage.
|
||||
*
|
||||
@@ -1141,6 +1145,36 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
statement: {
|
||||
/**
|
||||
* Cost of data byte used for priority calculation.
|
||||
**/
|
||||
byteCost: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum data bytes allowed per account.
|
||||
**/
|
||||
maxAllowedBytes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of statements allowed per account.
|
||||
**/
|
||||
maxAllowedStatements: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum data bytes allowed per account.
|
||||
**/
|
||||
minAllowedBytes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum number of statements allowed per account.
|
||||
**/
|
||||
minAllowedStatements: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Min balance for priority statements.
|
||||
**/
|
||||
statementCost: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* Maximal number of bytes that a key can have.
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -151,6 +151,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some asset `asset_id` was thawed.
|
||||
**/
|
||||
AssetThawed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
|
||||
/**
|
||||
* Some account `who` was blocked.
|
||||
**/
|
||||
Blocked: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were destroyed.
|
||||
**/
|
||||
@@ -199,6 +203,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Some account `who` was thawed.
|
||||
**/
|
||||
Thawed: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
|
||||
/**
|
||||
* Some account `who` was created with a deposit from `depositor`.
|
||||
**/
|
||||
Touched: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, depositor: AccountId32], { assetId: u32, who: AccountId32, depositor: AccountId32 }>;
|
||||
/**
|
||||
* Some assets were transferred.
|
||||
**/
|
||||
@@ -382,7 +390,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
Called: AugmentedEvent<ApiType, [caller: AccountId32, contract: AccountId32], { caller: AccountId32, contract: AccountId32 }>;
|
||||
Called: AugmentedEvent<ApiType, [caller: PalletContractsOrigin, contract: AccountId32], { caller: PalletContractsOrigin, contract: AccountId32 }>;
|
||||
/**
|
||||
* A code with the specified hash was removed.
|
||||
**/
|
||||
@@ -1646,6 +1654,16 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
statement: {
|
||||
/**
|
||||
* A new statement is submitted
|
||||
**/
|
||||
NewStatement: AugmentedEvent<ApiType, [account: AccountId32, statement: SpStatementStoreStatement], { account: AccountId32, statement: SpStatementStoreStatement }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
stateTrieMigration: {
|
||||
/**
|
||||
* The auto migration task finished.
|
||||
|
||||
@@ -586,6 +586,8 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
minimumUntrustedScore: AugmentedQuery<ApiType, () => Observable<Option<SpNposElectionsElectionScore>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
||||
*
|
||||
* Always sorted by score.
|
||||
**/
|
||||
queuedSolution: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseReadySolution>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
@@ -1150,15 +1152,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The primary structure that holds all offence records keyed by report identifiers.
|
||||
**/
|
||||
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Enumerates all reports of a kind along with the time they happened.
|
||||
*
|
||||
* All reports are sorted by the time of offence.
|
||||
*
|
||||
* Note that the actual type of this mapping is `Vec<u8>`, this is because values of
|
||||
* different types are not supported at the moment so we are doing the manual serialization.
|
||||
**/
|
||||
reportsByKindIndex: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Bytes>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
|
||||
@@ -276,6 +276,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
approveTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
||||
*
|
||||
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
||||
*
|
||||
* - `id`: The identifier of the account's asset.
|
||||
* - `who`: The account to be unblocked.
|
||||
*
|
||||
* Emits `Blocked`.
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
block: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
/**
|
||||
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
|
||||
*
|
||||
@@ -506,7 +519,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
forceTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Disallow further unprivileged transfers from an account.
|
||||
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
|
||||
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
|
||||
* account that does not have an entry, use `touch_other` first.
|
||||
*
|
||||
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
||||
*
|
||||
@@ -546,16 +561,31 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
mint: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
|
||||
/**
|
||||
* Return the deposit (if any) of an asset account.
|
||||
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
||||
* account.
|
||||
*
|
||||
* The origin must be Signed.
|
||||
*
|
||||
* - `id`: The identifier of the asset for the account to be created.
|
||||
* - `id`: The identifier of the asset for which the caller would like the deposit
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
||||
/**
|
||||
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
||||
*
|
||||
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
||||
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
||||
* use `refund`.
|
||||
*
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
/**
|
||||
* Set the metadata for an asset.
|
||||
*
|
||||
@@ -620,7 +650,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Allow unprivileged transfers from an account again.
|
||||
* Allow unprivileged transfers to and from an account again.
|
||||
*
|
||||
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
||||
*
|
||||
@@ -656,6 +686,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Emits `Touched` event when successful.
|
||||
**/
|
||||
touch: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
* Create an asset account for `who`.
|
||||
*
|
||||
* A deposit will be taken from the signer account.
|
||||
*
|
||||
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
||||
* must have sufficient funds for a deposit to be taken.
|
||||
* - `id`: The identifier of the asset for the account to be created.
|
||||
* - `who`: The account to be created.
|
||||
*
|
||||
* Emits `Touched` event when successful.
|
||||
**/
|
||||
touchOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
/**
|
||||
* Move some assets from the sender account to another.
|
||||
*
|
||||
@@ -4580,7 +4623,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
|
||||
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
|
||||
**/
|
||||
bond: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, PalletStakingRewardDestination]>;
|
||||
bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, PalletStakingRewardDestination]>;
|
||||
/**
|
||||
* Add some extra amount that have appeared in the stash `free_balance` into the balance up
|
||||
* for staking.
|
||||
@@ -4792,7 +4835,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
|
||||
/**
|
||||
* (Re-)set the controller of a stash.
|
||||
* (Re-)sets the controller of a stash to the stash itself. This function previously
|
||||
* accepted a `controller` argument to set the controller to an account other than the
|
||||
* stash itself. This functionality has now been removed, now only setting the controller
|
||||
* to the stash, if it is not already.
|
||||
*
|
||||
* Effects will be felt instantly (as soon as this function is completed successfully).
|
||||
*
|
||||
@@ -4804,7 +4850,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - Contains a limited number of reads.
|
||||
* - Writes are limited to the `origin` account key.
|
||||
**/
|
||||
setController: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
setController: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Set the validators who cannot be slashed (if any).
|
||||
*
|
||||
@@ -5043,7 +5089,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Make some on-chain remark.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(1)`
|
||||
**/
|
||||
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
@@ -5053,16 +5098,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
|
||||
**/
|
||||
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Set the new runtime code without doing any checks of the given `code`.
|
||||
*
|
||||
* ## Complexity
|
||||
* - `O(C)` where `C` length of `code`
|
||||
**/
|
||||
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"rxjs": "^7.8.0",
|
||||
"@polkadot/rpc-core": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/types-create": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"rxjs": "^7.8.0",
|
||||
"@polkadot/api": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/types-create": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/keyring": "^12.0.1"
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/keyring": "^12.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/api-contract authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// all named
|
||||
export { Abi } from './Abi/index.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
|
||||
// all starred
|
||||
export * from './promise/index.js';
|
||||
export * from './rx/index.js';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -5,7 +5,7 @@ export { default as delegator } from './delegator.json' assert { type: 'json' };
|
||||
export { default as dns } from './dns.json' assert { type: 'json' };
|
||||
export { default as erc20 } from './erc20.json' assert { type: 'json' };
|
||||
export { default as erc721 } from './erc721.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.json' assert { type: 'json' };
|
||||
export { default as flipperBundle } from './flipper.contract.json' assert { type: 'json' };
|
||||
export { default as flipper } from './flipper.json' assert { type: 'json' };
|
||||
export { default as incrementer } from './incrementer.json' assert { type: 'json' };
|
||||
export { default as multisigPlain } from './multisig_plain.json' assert { type: 'json' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.4.1",
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/api-base": "10.4.1",
|
||||
"@polkadot/rpc-core": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"rxjs": "^7.8.0",
|
||||
"@polkadot/api": "10.7.1",
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/api-base": "10.7.1",
|
||||
"@polkadot/rpc-core": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.4.1",
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/rpc-augment": "10.4.1",
|
||||
"@polkadot/rpc-provider": "10.4.1",
|
||||
"@polkadot/types-support": "10.4.1"
|
||||
"@polkadot/api": "10.7.1",
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/rpc-augment": "10.7.1",
|
||||
"@polkadot/rpc-provider": "10.7.1",
|
||||
"@polkadot/types-support": "10.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export function _flags (instanceId: string, api: DeriveApi): () => Observable<Fl
|
||||
map((values: Codec[]): FlagsIntermediate => {
|
||||
let resultIndex = -1;
|
||||
|
||||
for (let i = 0; i < calls.length; i++) {
|
||||
for (let i = 0, count = calls.length; i < count; i++) {
|
||||
if (isFunction(calls[i])) {
|
||||
results[i] = values[++resultIndex];
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
export * from './accountId.js';
|
||||
export * from './flags.js';
|
||||
export * from './idAndIndex.js';
|
||||
export * from './idToIndex.js';
|
||||
export * from './identity.js';
|
||||
export * from './indexToId.js';
|
||||
export * from './idToIndex.js';
|
||||
export * from './indexes.js';
|
||||
export * from './indexToId.js';
|
||||
export * from './info.js';
|
||||
|
||||
@@ -119,7 +119,7 @@ function injectFunctions (instanceId: string, api: DeriveApi, derives: DeriveCus
|
||||
)
|
||||
));
|
||||
|
||||
for (let i = 0; i < names.length; i++) {
|
||||
for (let i = 0, count = names.length; i < count; i++) {
|
||||
const name = names[i];
|
||||
|
||||
isIncluded(name) &&
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
export * from './bestNumber.js';
|
||||
export * from './bestNumberFinalized.js';
|
||||
export * from './bestNumberLag.js';
|
||||
export * from './getHeader.js';
|
||||
export * from './getBlock.js';
|
||||
export * from './getBlockByNumber.js';
|
||||
export * from './getHeader.js';
|
||||
export * from './subscribeFinalizedHeads.js';
|
||||
export * from './subscribeNewBlocks.js';
|
||||
export * from './subscribeNewHeads.js';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
export * from './account.js';
|
||||
export * from './currentPoints.js';
|
||||
export * from './electedInfo.js';
|
||||
export * from './erasExposure.js';
|
||||
export * from './erasHistoric.js';
|
||||
export * from './erasPoints.js';
|
||||
export * from './erasPrefs.js';
|
||||
export * from './erasRewards.js';
|
||||
export * from './erasSlashes.js';
|
||||
export * from './electedInfo.js';
|
||||
export * from './keys.js';
|
||||
export * from './overview.js';
|
||||
export * from './ownExposure.js';
|
||||
|
||||
@@ -9,8 +9,8 @@ import type { BN } from '@polkadot/util';
|
||||
import type { ExactDerive } from './derive.js';
|
||||
|
||||
export * from './accounts/types.js';
|
||||
export * from './balances/types.js';
|
||||
export * from './bagsList/types.js';
|
||||
export * from './balances/types.js';
|
||||
export * from './council/types.js';
|
||||
export * from './crowdloan/types.js';
|
||||
export * from './democracy/types.js';
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { ApprovalFlag } from '@polkadot/types/interfaces/elections';
|
||||
export function approvalFlagsToBools (flags: Vec<ApprovalFlag> | ApprovalFlag[]): boolean[] {
|
||||
const bools: boolean[] = [];
|
||||
|
||||
for (let i = 0; i < flags.length; i++) {
|
||||
for (let i = 0, count = flags.length; i < count; i++) {
|
||||
const str = flags[i].toString(2);
|
||||
|
||||
// read from lowest bit to highest
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// all named
|
||||
export { drr, memo } from '@polkadot/rpc-core';
|
||||
|
||||
// all starred
|
||||
export * from './approvalFlagsToBools.js';
|
||||
export * from './blockNumber.js';
|
||||
export * from './cache.js';
|
||||
|
||||
+19
-19
@@ -18,29 +18,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/api-base": "10.4.1",
|
||||
"@polkadot/api-derive": "10.4.1",
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/rpc-augment": "10.4.1",
|
||||
"@polkadot/rpc-core": "10.4.1",
|
||||
"@polkadot/rpc-provider": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-augment": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/types-create": "10.4.1",
|
||||
"@polkadot/types-known": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"rxjs": "^7.8.0",
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/api-base": "10.7.1",
|
||||
"@polkadot/api-derive": "10.7.1",
|
||||
"@polkadot/keyring": "^12.2.1",
|
||||
"@polkadot/rpc-augment": "10.7.1",
|
||||
"@polkadot/rpc-core": "10.7.1",
|
||||
"@polkadot/rpc-provider": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-augment": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/types-create": "10.7.1",
|
||||
"@polkadot/types-known": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/types-support": "10.4.1"
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/types-support": "10.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,19 +139,22 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
this._rx.queryAt = (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) =>
|
||||
from(this.at(blockHash, knownVersion)).pipe(map((a) => a.rx.query));
|
||||
this._rx.registry = this.#registry;
|
||||
this._decorateMethod = decorateMethod;
|
||||
this._options = options;
|
||||
this._type = type;
|
||||
|
||||
const thisProvider = options.source
|
||||
const provider = options.source
|
||||
? options.source._rpcCore.provider.isClonable
|
||||
? options.source._rpcCore.provider.clone()
|
||||
: options.source._rpcCore.provider
|
||||
: (options.provider || new WsProvider());
|
||||
|
||||
this._decorateMethod = decorateMethod;
|
||||
this._options = options;
|
||||
this._type = type;
|
||||
|
||||
// The RPC interface decorates the known interfaces on init
|
||||
this._rpcCore = new RpcCore(this.#instanceId, this.#registry, thisProvider, this._options.rpc) as (RpcCore & RpcInterface);
|
||||
this._rpcCore = new RpcCore(this.#instanceId, this.#registry, {
|
||||
isPedantic: this._options.isPedantic,
|
||||
provider,
|
||||
userRpc: this._options.rpc
|
||||
}) as (RpcCore & RpcInterface);
|
||||
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected);
|
||||
this._rx.hasSubscriptions = this._rpcCore.provider.hasSubscriptions;
|
||||
}
|
||||
@@ -319,7 +322,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
// we try and create mappings to runtime names via a hash mapping)
|
||||
const sectionMap: Record<string, boolean> = {};
|
||||
|
||||
for (let i = 0; i < methods.length; i++) {
|
||||
for (let i = 0, count = methods.length; i < count; i++) {
|
||||
const [section] = methods[i].split('_');
|
||||
|
||||
sectionMap[section] = true;
|
||||
@@ -328,7 +331,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
// convert the actual section names into an easy name lookup
|
||||
const sections = Object.keys(sectionMap);
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, count = sections.length; i < count; i++) {
|
||||
const nameA = stringUpperFirst(sections[i]);
|
||||
const nameB = `${nameA}Api`;
|
||||
|
||||
@@ -344,8 +347,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
const hasResults = exposed.length !== 0;
|
||||
const allKnown = [...this._rpcCore.mapping.entries()];
|
||||
const allKeys: string[] = [];
|
||||
const count = allKnown.length;
|
||||
|
||||
for (let i = 0; i < allKnown.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const [, { alias, endpoint, method, pubsub, section }] = allKnown[i];
|
||||
|
||||
allKeys.push(`${section}_${method}`);
|
||||
@@ -375,7 +379,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
// loop through all entries we have (populated in decorate) and filter as required
|
||||
// only remove when we have results and method missing, or with no results if optional
|
||||
for (let i = 0; i < allKnown.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const [k, { method, section }] = allKnown[i];
|
||||
|
||||
if (hasResults && !exposed.includes(k) && k !== 'rpc_methods') {
|
||||
@@ -408,7 +412,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
return fn;
|
||||
};
|
||||
|
||||
for (let s = 0; s < rpc.sections.length; s++) {
|
||||
for (let s = 0, scount = rpc.sections.length; s < scount; s++) {
|
||||
const section = rpc.sections[s];
|
||||
|
||||
if (!Object.prototype.hasOwnProperty.call(out, section)) {
|
||||
@@ -417,7 +421,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
const decorateInternal = (method: string) =>
|
||||
decorateFn(section, method);
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
for (let m = 0, mcount = methods.length; m < mcount; m++) {
|
||||
const method = methods[m];
|
||||
|
||||
// skip subscriptions where we have a non-subscribe interface
|
||||
@@ -443,13 +447,13 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
const entries = Object.entries(additional);
|
||||
|
||||
for (let j = 0; j < entries.length; j++) {
|
||||
for (let j = 0, ecount = entries.length; j < ecount; j++) {
|
||||
const [key, defs] = entries[j];
|
||||
|
||||
if (result[key]) {
|
||||
// we have this one already, step through for new versions or
|
||||
// new methods and add those as applicable
|
||||
for (let k = 0; k < defs.length; k++) {
|
||||
for (let k = 0, dcount = defs.length; k < dcount; k++) {
|
||||
const def = defs[k];
|
||||
const prev = result[key].find(({ version }) => def.version === version);
|
||||
|
||||
@@ -475,7 +479,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
// options > chain/spec > built-in, apply in reverse order with
|
||||
// methods overriding previous definitions (or interleave missing)
|
||||
for (let i = 0; i < defValues.length; i++) {
|
||||
for (let i = 0, count = defValues.length; i < count; i++) {
|
||||
this._addRuntimeDef(result, defValues[i].runtime);
|
||||
}
|
||||
|
||||
@@ -497,7 +501,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
this.#runtimeLog[implName] = true;
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, scount = sections.length; i < scount; i++) {
|
||||
const [_section, secs] = sections[i];
|
||||
const sectionHash = blake2AsHex(_section, 64);
|
||||
const rtApi = apis.find(([a]) => a.eq(sectionHash));
|
||||
@@ -517,7 +521,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
named[section] = {};
|
||||
}
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
for (let m = 0, mcount = methods.length; m < mcount; m++) {
|
||||
const [_method, def] = methods[m];
|
||||
const method = stringCamelCase(_method);
|
||||
|
||||
@@ -557,7 +561,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
const modules = Object.keys(named);
|
||||
|
||||
for (let i = 0; i < modules.length; i++) {
|
||||
for (let i = 0, count = modules.length; i < count; i++) {
|
||||
lazyMethod(result, modules[i], lazySection);
|
||||
}
|
||||
|
||||
@@ -642,7 +646,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
const sections = Object.keys(tx);
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, count = sections.length; i < count; i++) {
|
||||
lazyMethod(result, sections[i], lazySection);
|
||||
}
|
||||
|
||||
@@ -673,7 +677,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
|
||||
const sections = Object.keys(query);
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, count = sections.length; i < count; i++) {
|
||||
lazyMethod(result, sections[i], lazySection);
|
||||
}
|
||||
|
||||
|
||||
@@ -265,11 +265,11 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
const sections = Object.keys(source.rpc);
|
||||
const rpcs: string[] = [];
|
||||
|
||||
for (let s = 0; s < sections.length; s++) {
|
||||
for (let s = 0, scount = sections.length; s < scount; s++) {
|
||||
const section = sections[s];
|
||||
const methods = Object.keys((source.rpc as unknown as Record<string, Record<string, unknown>>)[section]);
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
for (let m = 0, mcount = methods.length; m < mcount; m++) {
|
||||
rpcs.push(`${section}_${methods[m]}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,14 @@
|
||||
|
||||
import '@polkadot/rpc-augment';
|
||||
|
||||
// all external
|
||||
export { Keyring } from '@polkadot/keyring';
|
||||
export { HttpProvider, ScProvider, WsProvider } from '@polkadot/rpc-provider';
|
||||
|
||||
// all named
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export { SubmittableResult } from './submittable/index.js';
|
||||
|
||||
// all starred
|
||||
export * from './promise/index.js';
|
||||
export * from './rx/index.js';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -14,7 +14,7 @@ import { toRxMethod } from './decorateMethod.js';
|
||||
/**
|
||||
* # @polkadot/api/rx
|
||||
*
|
||||
* ## Overview
|
||||
* ## Overview
|
||||
*
|
||||
* @name ApiRx
|
||||
*
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { AddressOrPair, SignerOptions, SubmittableDryRunResult, Submittable
|
||||
|
||||
import { catchError, first, map, mergeMap, of, switchMap, tap } from 'rxjs';
|
||||
|
||||
import { isBn, isFunction, isNumber, isString, isU8a, objectSpread } from '@polkadot/util';
|
||||
import { identity, isBn, isFunction, isNumber, isString, isU8a, objectSpread } from '@polkadot/util';
|
||||
|
||||
import { filterEvents, isKeyringPair } from '../util/index.js';
|
||||
import { SubmittableResult } from './Result.js';
|
||||
@@ -30,8 +30,6 @@ interface UpdateInfo {
|
||||
updateId: number;
|
||||
}
|
||||
|
||||
const identity = <T> (input: T): T => input;
|
||||
|
||||
function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions: Partial<SignerOptions>, { header, mortalLength, nonce }: { header: Header | null; mortalLength: number; nonce: Index }): SignatureOptions {
|
||||
if (!header) {
|
||||
if (partialOptions.era && !partialOptions.blockHash) {
|
||||
@@ -92,7 +90,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
class Submittable extends ExtrinsicBase implements SubmittableExtrinsic<ApiType> {
|
||||
readonly #ignoreStatusCb: boolean;
|
||||
|
||||
#transformResult: (input: ISubmittableResult) => ISubmittableResult = identity;
|
||||
#transformResult = identity<ISubmittableResult>;
|
||||
|
||||
constructor (registry: Registry, extrinsic: Call | Extrinsic | Uint8Array | string) {
|
||||
super(registry, extrinsic, { version: api.extrinsicType });
|
||||
|
||||
@@ -18,17 +18,20 @@ import type { ApiBase } from '../base/index.js';
|
||||
import type { SubmittableExtrinsic } from '../types/submittable.js';
|
||||
import type { AllDerives } from '../util/decorate.js';
|
||||
|
||||
export * from '@polkadot/api-base/types';
|
||||
// types
|
||||
export type { Signer, SignerResult } from '@polkadot/types/types';
|
||||
|
||||
// all named
|
||||
export { ApiBase } from '../base/index.js';
|
||||
|
||||
// all starred
|
||||
export * from '@polkadot/api/types/calls';
|
||||
export * from '@polkadot/api/types/consts';
|
||||
export * from '@polkadot/api/types/errors';
|
||||
export * from '@polkadot/api/types/events';
|
||||
export * from '@polkadot/api/types/storage';
|
||||
export * from '@polkadot/api/types/submittable';
|
||||
|
||||
export type { Signer, SignerResult } from '@polkadot/types/types';
|
||||
|
||||
export { ApiBase } from '../base/index.js';
|
||||
export * from '@polkadot/api-base/types';
|
||||
|
||||
// A smaller interface of ApiRx, used in derive and in SubmittableExtrinsic
|
||||
export interface ApiInterfaceRx extends ApiInterfaceBase {
|
||||
@@ -44,6 +47,10 @@ export interface ApiOptions extends RegisteredTypes {
|
||||
* @description Control the initialization of the wasm libraries. When not specified, it defaults to `true`, initializing the wasm libraries, set to `false` to not initialize wasm. (No sr25519 support)
|
||||
*/
|
||||
initWasm?: boolean;
|
||||
/**
|
||||
* @description Controls the checking of storage values once they have been contructed. When not specified this defaults to `true`. Set to `false` to forgo any checking on storage results.
|
||||
*/
|
||||
isPedantic?: boolean;
|
||||
/**
|
||||
* @description pre-bundles is a map of 'genesis hash and runtime spec version' as key to a metadata hex string
|
||||
* if genesis hash and runtime spec version matches, then use metadata, else fetch it from chain
|
||||
|
||||
@@ -53,12 +53,12 @@ function findMethodExcludes <T> (src: Sections<T>, dst: Sections<T>): string[] {
|
||||
const dstSections = findSectionIncludes(Object.keys(dst), srcSections);
|
||||
const excludes: string[] = [];
|
||||
|
||||
for (let s = 0; s < dstSections.length; s++) {
|
||||
for (let s = 0, scount = dstSections.length; s < scount; s++) {
|
||||
const section = dstSections[s];
|
||||
const srcMethods = Object.keys(src[section]);
|
||||
const dstMethods = Object.keys(dst[section]);
|
||||
|
||||
for (let d = 0; d < dstMethods.length; d++) {
|
||||
for (let d = 0, mcount = dstMethods.length; d < mcount; d++) {
|
||||
const method = dstMethods[d];
|
||||
|
||||
if (!srcMethods.includes(method)) {
|
||||
@@ -95,7 +95,7 @@ export function augmentObject <T> (prefix: string | null, src: Sections<T>, dst:
|
||||
|
||||
const sections = Object.keys(src);
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, count = sections.length; i < count; i++) {
|
||||
const section = sections[i];
|
||||
const methods = src[section];
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export function decorateDeriveSections<ApiType extends ApiTypes> (decorateMethod
|
||||
const result: AnyDerive = {};
|
||||
const names = Object.keys(derives);
|
||||
|
||||
for (let i = 0; i < names.length; i++) {
|
||||
for (let i = 0, count = names.length; i < count; i++) {
|
||||
lazyDeriveSection(result, names[i], getKeys, creator);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/api authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './decorate.js';
|
||||
|
||||
// all named
|
||||
export { filterEvents } from './filterEvents.js';
|
||||
export { isKeyringPair } from './isKeyringPair.js';
|
||||
export { l } from './logging.js';
|
||||
|
||||
// all starred
|
||||
export * from './decorate.js';
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/rpc-core": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.4.1",
|
||||
"@polkadot/rpc-provider": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"rxjs": "^7.8.0",
|
||||
"@polkadot/rpc-augment": "10.7.1",
|
||||
"@polkadot/rpc-provider": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/rpc-augment": "10.4.1"
|
||||
"@polkadot/keyring": "^12.2.1",
|
||||
"@polkadot/rpc-augment": "10.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,12 @@ type MemoizedRpcInterfaceMethod = Memoized<RpcInterfaceMethod> & {
|
||||
meta: DefinitionRpc;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
isPedantic?: boolean;
|
||||
provider: ProviderInterface;
|
||||
userRpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
||||
}
|
||||
|
||||
const l = logger('rpc-core');
|
||||
|
||||
const EMPTY_META = {
|
||||
@@ -47,11 +53,11 @@ function logErrorMessage (method: string, { noErrorLog, params, type }: Definiti
|
||||
return;
|
||||
}
|
||||
|
||||
const inputs = params.map(({ isOptional, name, type }): string =>
|
||||
`${name}${isOptional ? '?' : ''}: ${type}`
|
||||
).join(', ');
|
||||
|
||||
l.error(`${method}(${inputs}): ${type}:: ${error.message}`);
|
||||
l.error(`${method}(${
|
||||
params.map(({ isOptional, name, type }): string =>
|
||||
`${name}${isOptional ? '?' : ''}: ${type}`
|
||||
).join(', ')
|
||||
}): ${type}:: ${error.message}`);
|
||||
}
|
||||
|
||||
function isTreatAsHex (key: StorageKey): boolean {
|
||||
@@ -84,30 +90,31 @@ function isTreatAsHex (key: StorageKey): boolean {
|
||||
* ```
|
||||
*/
|
||||
export class RpcCore {
|
||||
#instanceId: string;
|
||||
#registryDefault: Registry;
|
||||
readonly #instanceId: string;
|
||||
readonly #isPedantic: boolean;
|
||||
readonly #registryDefault: Registry;
|
||||
readonly #storageCache = new Map<string, Codec>();
|
||||
|
||||
#getBlockRegistry?: (blockHash: Uint8Array) => Promise<{ registry: Registry }>;
|
||||
#getBlockHash?: (blockNumber: AnyNumber) => Promise<Uint8Array>;
|
||||
|
||||
readonly #storageCache = new Map<string, Codec>();
|
||||
|
||||
readonly mapping = new Map<string, DefinitionRpcExt>();
|
||||
readonly provider: ProviderInterface;
|
||||
readonly sections: string[] = [];
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* Default constructor for the Api Object
|
||||
* @param {ProviderInterface} provider An API provider using HTTP or WebSocket
|
||||
* Default constructor for the core RPC handler
|
||||
* @param {ProviderInterface} provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
|
||||
*/
|
||||
constructor (instanceId: string, registry: Registry, provider: ProviderInterface, userRpc: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>> = {}) {
|
||||
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, userRpc = {} }: Options) {
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
if (!provider || !isFunction(provider.send)) {
|
||||
throw new Error('Expected Provider to API create');
|
||||
}
|
||||
|
||||
this.#instanceId = instanceId;
|
||||
this.#isPedantic = isPedantic;
|
||||
this.#registryDefault = registry;
|
||||
this.provider = provider;
|
||||
|
||||
@@ -163,12 +170,12 @@ export class RpcCore {
|
||||
// add any extra user-defined sections
|
||||
this.sections.push(...Object.keys(userRpc).filter((k) => !this.sections.includes(k)));
|
||||
|
||||
for (let s = 0; s < this.sections.length; s++) {
|
||||
for (let s = 0, scount = this.sections.length; s < scount; s++) {
|
||||
const section = this.sections[s];
|
||||
const defs = objectSpread<Record<string, DefinitionRpc | DefinitionRpcSub>>({}, rpcDefinitions[section as 'babe'], userRpc[section]);
|
||||
const methods = Object.keys(defs);
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
for (let m = 0, mcount = methods.length; m < mcount; m++) {
|
||||
const method = methods[m];
|
||||
const def = defs[method];
|
||||
const jsonrpc = def.endpoint || `${section}_${method}`;
|
||||
@@ -227,7 +234,7 @@ export class RpcCore {
|
||||
? await this.#getBlockRegistry(u8aToU8a(blockHash))
|
||||
: { registry: this.#registryDefault };
|
||||
|
||||
const params = this._formatInputs(registry, null, def, values);
|
||||
const params = this._formatParams(registry, null, def, values);
|
||||
|
||||
// only cache .at(<blockHash>) queries, e.g. where valid blockHash was supplied
|
||||
const result = await this.provider.send<AnyJson>(rpcName, params.map((p) => p.toJSON()), !!blockHash);
|
||||
@@ -307,8 +314,7 @@ export class RpcCore {
|
||||
};
|
||||
|
||||
try {
|
||||
const params = this._formatInputs(registry, null, def, values);
|
||||
const paramsJson = params.map((p) => p.toJSON());
|
||||
const params = this._formatParams(registry, null, def, values);
|
||||
|
||||
const update = (error?: Error | null, result?: unknown): void => {
|
||||
if (error) {
|
||||
@@ -324,7 +330,7 @@ export class RpcCore {
|
||||
}
|
||||
};
|
||||
|
||||
subscriptionPromise = this._createSubscriber({ paramsJson, subName, subType, update }, errorHandler);
|
||||
subscriptionPromise = this._createSubscriber({ paramsJson: params.map((p) => p.toJSON()), subName, subType, update }, errorHandler);
|
||||
} catch (error) {
|
||||
errorHandler(error as Error);
|
||||
}
|
||||
@@ -355,19 +361,21 @@ export class RpcCore {
|
||||
return memoized;
|
||||
}
|
||||
|
||||
private _formatInputs (registry: Registry, blockHash: Uint8Array | string | null | undefined, def: DefinitionRpc, inputs: unknown[]): Codec[] {
|
||||
const reqArgCount = def.params.filter(({ isOptional }) => !isOptional).length;
|
||||
const optText = reqArgCount === def.params.length
|
||||
? ''
|
||||
: ` (${def.params.length - reqArgCount} optional)`;
|
||||
private _formatParams (registry: Registry, blockHash: Uint8Array | string | null | undefined, def: DefinitionRpc, inputs: unknown[]): Codec[] {
|
||||
const count = inputs.length;
|
||||
const reqCount = def.params.filter(({ isOptional }) => !isOptional).length;
|
||||
|
||||
if (inputs.length < reqArgCount || inputs.length > def.params.length) {
|
||||
throw new Error(`Expected ${def.params.length} parameters${optText}, ${inputs.length} found instead`);
|
||||
if (count < reqCount || count > def.params.length) {
|
||||
throw new Error(`Expected ${def.params.length} parameters${reqCount === def.params.length ? '' : ` (${def.params.length - reqCount} optional)`}, ${count} found instead`);
|
||||
}
|
||||
|
||||
return inputs.map((input, index): Codec =>
|
||||
registry.createTypeUnsafe(def.params[index].type, [input], { blockHash })
|
||||
);
|
||||
const params = new Array<Codec>(count);
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
params[i] = registry.createTypeUnsafe(def.params[i].type, [inputs[i]], { blockHash });
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
private _formatOutput (registry: Registry, blockHash: Uint8Array | string | null | undefined, method: string, rpc: DefinitionRpc, params: Codec[], result?: unknown): Codec | Codec[] {
|
||||
@@ -382,10 +390,18 @@ export class RpcCore {
|
||||
? this._formatStorageSet(registry, (result as StorageChangeSetJSON).block, keys, (result as StorageChangeSetJSON).changes)
|
||||
: registry.createType('StorageChangeSet', result);
|
||||
} else if (rpc.type === 'Vec<StorageChangeSet>') {
|
||||
const mapped = (result as StorageChangeSetJSON[]).map(({ block, changes }): [Hash, Codec[]] => [
|
||||
registry.createType('Hash', block),
|
||||
this._formatStorageSet(registry, block, params[0] as Vec<StorageKey>, changes)
|
||||
]);
|
||||
const jsonSet = (result as StorageChangeSetJSON[]);
|
||||
const count = jsonSet.length;
|
||||
const mapped = new Array<[Hash, Codec[]]>(count);
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
const { block, changes } = jsonSet[i];
|
||||
|
||||
mapped[i] = [
|
||||
registry.createType('BlockHash', block),
|
||||
this._formatStorageSet(registry, block, params[0] as Vec<StorageKey>, changes)
|
||||
];
|
||||
}
|
||||
|
||||
// we only query at a specific block, not a range - flatten
|
||||
return method === 'queryStorageAt'
|
||||
@@ -412,17 +428,17 @@ export class RpcCore {
|
||||
|
||||
private _formatStorageSet (registry: Registry, blockHash: string, keys: Vec<StorageKey>, changes: [string, string | null][]): Codec[] {
|
||||
// For StorageChangeSet, the changes has the [key, value] mappings
|
||||
const withCache = keys.length !== 1;
|
||||
const count = keys.length;
|
||||
const withCache = count !== 1;
|
||||
const values = new Array<Codec>(count);
|
||||
|
||||
// multiple return values (via state.storage subscription), decode the values
|
||||
// one at a time, all based on the query types. Three values can be returned -
|
||||
// - Codec - There is a valid value, non-empty
|
||||
// - null - The storage key is empty
|
||||
return keys.reduce((results: Codec[], key: StorageKey, index): Codec[] => {
|
||||
results.push(this._formatStorageSetEntry(registry, blockHash, key, changes, withCache, index));
|
||||
// multiple return values (via state.storage subscription), decode the
|
||||
// values one at a time, all based on the supplied query types
|
||||
for (let i = 0; i < count; i++) {
|
||||
values[i] = this._formatStorageSetEntry(registry, blockHash, keys[i], changes, withCache, i);
|
||||
}
|
||||
|
||||
return results;
|
||||
}, []);
|
||||
return values;
|
||||
}
|
||||
|
||||
private _formatStorageSetEntry (registry: Registry, blockHash: string, key: StorageKey, changes: [string, string | null][], withCache: boolean, entryIndex: number): Codec {
|
||||
@@ -478,9 +494,9 @@ export class RpcCore {
|
||||
: hexToU8a(meta.fallback.toHex())
|
||||
: undefined
|
||||
: meta.modifier.isOptional
|
||||
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: true })
|
||||
? registry.createTypeUnsafe(type, [input], { blockHash, isPedantic: this.#isPedantic })
|
||||
: input
|
||||
], { blockHash, isFallback: isEmpty && !!meta.fallback, isOptional: meta.modifier.isOptional, isPedantic: !meta.modifier.isOptional });
|
||||
], { blockHash, isFallback: isEmpty && !!meta.fallback, isOptional: meta.modifier.isOptional, isPedantic: this.#isPedantic && !meta.modifier.isOptional });
|
||||
} catch (error) {
|
||||
throw new Error(`Unable to decode storage ${key.section || 'unknown'}.${key.method || 'unknown'}:${entryNum}: ${(error as Error).message}`);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ describe('Cached Observables', (): void => {
|
||||
|
||||
beforeEach((): void => {
|
||||
provider = new MockProvider(registry);
|
||||
rpc = new RpcCore('123', registry, provider) as (RpcCore & RpcInterface);
|
||||
rpc = new RpcCore('123', registry, { provider }) as (RpcCore & RpcInterface);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -16,18 +16,21 @@ describe('Api', (): void => {
|
||||
|
||||
it('requires a provider with a send method', (): void => {
|
||||
expect(
|
||||
() => new RpcCore('234', registry, {} as unknown as ProviderInterface)
|
||||
() => new RpcCore('234', registry, { provider: {} as unknown as ProviderInterface })
|
||||
).toThrow(/Expected Provider/);
|
||||
});
|
||||
|
||||
it('allows for the definition of user RPCs', async () => {
|
||||
const provider = new MockProvider(registry);
|
||||
const rpc = new RpcCore('567', registry, provider, {
|
||||
testing: {
|
||||
foo: {
|
||||
description: 'foo',
|
||||
params: [{ name: 'bar', type: 'u32' }],
|
||||
type: 'Balance'
|
||||
const rpc = new RpcCore('567', registry, {
|
||||
provider,
|
||||
userRpc: {
|
||||
testing: {
|
||||
foo: {
|
||||
description: 'foo',
|
||||
params: [{ name: 'bar', type: 'u32' }],
|
||||
type: 'Balance'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('methodSend', (): void => {
|
||||
)
|
||||
} as unknown as ProviderInterface;
|
||||
|
||||
rpc = new RpcCore('987', registry, provider);
|
||||
rpc = new RpcCore('987', registry, { provider });
|
||||
});
|
||||
|
||||
it('checks for mismatched parameters', async (): Promise<void> => {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -17,7 +17,7 @@ describe('replay', (): void => {
|
||||
|
||||
beforeEach((): void => {
|
||||
provider = new MockProvider(registry);
|
||||
rpc = new RpcCore('653', registry, provider) as (RpcCore & RpcInterface);
|
||||
rpc = new RpcCore('653', registry, { provider }) as (RpcCore & RpcInterface);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
@@ -18,26 +18,26 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.0.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-support": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"@polkadot/x-fetch": "^12.0.1",
|
||||
"@polkadot/x-global": "^12.0.1",
|
||||
"@polkadot/x-ws": "^12.0.1",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"@polkadot/keyring": "^12.2.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-support": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"@polkadot/x-fetch": "^12.2.1",
|
||||
"@polkadot/x-global": "^12.2.1",
|
||||
"@polkadot/x-ws": "^12.2.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.2.1",
|
||||
"nock": "^13.3.0",
|
||||
"nock": "^13.3.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@substrate/connect": "0.7.24"
|
||||
"@substrate/connect": "0.7.26"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@substrate/connect": "0.7.24"
|
||||
"@substrate/connect": "0.7.26"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
|
||||
export { HttpProvider } from './http/index.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export { ScProvider } from './substrate-connect/index.js';
|
||||
export { WsProvider } from './ws/index.js';
|
||||
|
||||
@@ -16,55 +16,55 @@ describe('decodeResponse', (): void => {
|
||||
|
||||
it('expects a non-empty input object', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse(undefined as unknown as JsonRpcResponse)
|
||||
() => coder.decodeResponse(undefined as unknown as JsonRpcResponse<unknown>)
|
||||
).toThrow(/Invalid jsonrpc/);
|
||||
});
|
||||
|
||||
it('expects a valid jsonrpc field', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse({} as JsonRpcResponse)
|
||||
() => coder.decodeResponse({} as JsonRpcResponse<unknown>)
|
||||
).toThrow(/Invalid jsonrpc/);
|
||||
});
|
||||
|
||||
it('expects a valid id field', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse({ jsonrpc: '2.0' } as JsonRpcResponse)
|
||||
() => coder.decodeResponse({ jsonrpc: '2.0' } as JsonRpcResponse<unknown>)
|
||||
).toThrow(/Invalid id/);
|
||||
});
|
||||
|
||||
it('expects a valid result field', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse({ id: 1, jsonrpc: '2.0' } as JsonRpcResponse)
|
||||
() => coder.decodeResponse({ id: 1, jsonrpc: '2.0' } as JsonRpcResponse<unknown>)
|
||||
).toThrow(/No result/);
|
||||
});
|
||||
|
||||
it('throws any error found', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse({ error: { code: 123, message: 'test error' }, id: 1, jsonrpc: '2.0' } as JsonRpcResponse)
|
||||
() => coder.decodeResponse({ error: { code: 123, message: 'test error' }, id: 1, jsonrpc: '2.0' } as JsonRpcResponse<unknown>)
|
||||
).toThrow(/123: test error/);
|
||||
});
|
||||
|
||||
it('throws any error found, with data', (): void => {
|
||||
expect(
|
||||
() => coder.decodeResponse({ error: { code: 123, data: 'Error("Some random error description")', message: 'test error' }, id: 1, jsonrpc: '2.0' } as JsonRpcResponse)
|
||||
() => coder.decodeResponse({ error: { code: 123, data: 'Error("Some random error description")', message: 'test error' }, id: 1, jsonrpc: '2.0' } as JsonRpcResponse<unknown>)
|
||||
).toThrow(/123: test error: Some random error description/);
|
||||
});
|
||||
|
||||
it('allows for number subscription ids', (): void => {
|
||||
expect(
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', method: 'test', params: { result: 'test result', subscription: 1 } } as JsonRpcResponse)
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', method: 'test', params: { result: 'test result', subscription: 1 } } as JsonRpcResponse<unknown>)
|
||||
).toEqual('test result');
|
||||
});
|
||||
|
||||
it('allows for string subscription ids', (): void => {
|
||||
expect(
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', method: 'test', params: { result: 'test result', subscription: 'abc' } } as JsonRpcResponse)
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', method: 'test', params: { result: 'test result', subscription: 'abc' } } as JsonRpcResponse<unknown>)
|
||||
).toEqual('test result');
|
||||
});
|
||||
|
||||
it('returns the result', (): void => {
|
||||
expect(
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', result: 'some result' } as JsonRpcResponse)
|
||||
coder.decodeResponse({ id: 1, jsonrpc: '2.0', result: 'some result' } as JsonRpcResponse<unknown>)
|
||||
).toEqual('some result');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -29,10 +29,10 @@ function extend<Data, K extends keyof RpcError<Data>> (that: RpcError<Data>, nam
|
||||
* throw new RpcError('some message', RpcError.CODES.METHOD_NOT_FOUND); // => error.code = -32601
|
||||
* ```
|
||||
*/
|
||||
export default class RpcError<Data = never> extends Error implements RpcErrorInterface<Data> {
|
||||
export default class RpcError<T = never> extends Error implements RpcErrorInterface<T> {
|
||||
public code!: number;
|
||||
|
||||
public data?: Data;
|
||||
public data?: T;
|
||||
|
||||
public override message!: string;
|
||||
|
||||
@@ -40,7 +40,7 @@ export default class RpcError<Data = never> extends Error implements RpcErrorInt
|
||||
|
||||
public override stack!: string;
|
||||
|
||||
public constructor (message = '', code: number = UNKNOWN, data?: Data) {
|
||||
public constructor (message = '', code: number = UNKNOWN, data?: T) {
|
||||
super();
|
||||
|
||||
extend(this, 'message', String(message));
|
||||
|
||||
@@ -35,7 +35,7 @@ function checkError (error?: JsonRpcResponseBaseError): void {
|
||||
export class RpcCoder {
|
||||
#id = 0;
|
||||
|
||||
public decodeResponse (response?: JsonRpcResponse): unknown {
|
||||
public decodeResponse <T> (response?: JsonRpcResponse<T>): T {
|
||||
if (!response || response.jsonrpc !== '2.0') {
|
||||
throw new Error('Invalid jsonrpc field in decoded object');
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted, ProviderStats } from '../types.js';
|
||||
|
||||
import { logger } from '@polkadot/util';
|
||||
import { logger, noop } from '@polkadot/util';
|
||||
import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
import { RpcCoder } from '../coder/index.js';
|
||||
@@ -115,9 +115,7 @@ export class HttpProvider implements ProviderInterface {
|
||||
public on (_type: ProviderInterfaceEmitted, _sub: ProviderInterfaceEmitCb): () => void {
|
||||
l.error('HTTP Provider does not have \'on\' emitters, use WebSockets instead');
|
||||
|
||||
return (): void => {
|
||||
// noop
|
||||
};
|
||||
return noop;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -168,7 +166,7 @@ export class HttpProvider implements ProviderInterface {
|
||||
|
||||
this.#stats.total.bytesRecv += result.length;
|
||||
|
||||
const decoded = this.#coder.decodeResponse(JSON.parse(result) as JsonRpcResponse) as T;
|
||||
const decoded = this.#coder.decodeResponse(JSON.parse(result) as JsonRpcResponse<T>);
|
||||
|
||||
this.#stats.active.requests--;
|
||||
|
||||
|
||||
@@ -48,9 +48,10 @@ export class LRUCache {
|
||||
|
||||
entries (): [string, unknown][] {
|
||||
const keys = this.keys();
|
||||
const entries = new Array<[string, unknown]>(keys.length);
|
||||
const count = keys.length;
|
||||
const entries = new Array<[string, unknown]>(count);
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const key = keys[i];
|
||||
|
||||
entries[i] = [key, this.#data.get(key)];
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -132,11 +132,11 @@ export class ScProvider implements ProviderInterface {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = JSON.parse(hcRes) as JsonRpcResponse;
|
||||
const response = JSON.parse(hcRes) as JsonRpcResponse<string>;
|
||||
let decodedResponse: string | Error;
|
||||
|
||||
try {
|
||||
decodedResponse = this.#coder.decodeResponse(response) as string;
|
||||
decodedResponse = this.#coder.decodeResponse(response);
|
||||
} catch (e) {
|
||||
decodedResponse = e as Error;
|
||||
}
|
||||
|
||||
@@ -17,30 +17,30 @@ export interface JsonRpcResponseBaseError {
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface RpcErrorInterface<Data> {
|
||||
export interface RpcErrorInterface<T> {
|
||||
code: number;
|
||||
data?: Data;
|
||||
data?: T;
|
||||
message: string;
|
||||
stack: string;
|
||||
}
|
||||
|
||||
interface JsonRpcResponseSingle {
|
||||
interface JsonRpcResponseSingle<T> {
|
||||
error?: JsonRpcResponseBaseError;
|
||||
result?: unknown;
|
||||
result: T;
|
||||
}
|
||||
|
||||
interface JsonRpcResponseSubscription {
|
||||
interface JsonRpcResponseSubscription<T> {
|
||||
method?: string;
|
||||
params: {
|
||||
error?: JsonRpcResponseBaseError;
|
||||
result: unknown;
|
||||
result: T;
|
||||
subscription: number | string;
|
||||
};
|
||||
}
|
||||
|
||||
export type JsonRpcResponseBase = JsonRpcResponseSingle & JsonRpcResponseSubscription;
|
||||
export type JsonRpcResponseBase<T> = JsonRpcResponseSingle<T> & JsonRpcResponseSubscription<T>;
|
||||
|
||||
export type JsonRpcResponse = JsonRpcObject & JsonRpcResponseBase;
|
||||
export type JsonRpcResponse<T> = JsonRpcObject & JsonRpcResponseBase<T>;
|
||||
|
||||
export type ProviderInterfaceCallback = (error: Error | null, result: any) => void;
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable camelcase */
|
||||
|
||||
import type { Constructor } from '@polkadot/util/types';
|
||||
import type { EndpointStats, JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted, ProviderStats } from '../types.js';
|
||||
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
@@ -92,7 +91,7 @@ export class WsProvider implements ProviderInterface {
|
||||
readonly #handlers: Record<string, WsStateAwaiting> = {};
|
||||
readonly #isReadyPromise: Promise<WsProvider>;
|
||||
readonly #stats: ProviderStats;
|
||||
readonly #waitingForId: Record<string, JsonRpcResponse> = {};
|
||||
readonly #waitingForId: Record<string, JsonRpcResponse<unknown>> = {};
|
||||
|
||||
#autoConnectMs: number;
|
||||
#endpointIndex: number;
|
||||
@@ -209,8 +208,8 @@ export class WsProvider implements ProviderInterface {
|
||||
try {
|
||||
this.#endpointIndex = this.selectEndpointIndex(this.#endpoints);
|
||||
|
||||
// the as typeof WebSocket here is Deno-specific - not available on the globalThis
|
||||
this.#websocket = typeof xglobal.WebSocket !== 'undefined' && isChildClass(xglobal.WebSocket as typeof WebSocket, WebSocket)
|
||||
// the as here is Deno-specific - not available on the globalThis
|
||||
this.#websocket = typeof xglobal.WebSocket !== 'undefined' && isChildClass(xglobal.WebSocket as unknown as Constructor<WebSocket>, WebSocket)
|
||||
? new WebSocket(this.endpoint)
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore - WS may be an instance of ws, which supports options
|
||||
@@ -357,8 +356,12 @@ export class WsProvider implements ProviderInterface {
|
||||
start: Date.now(),
|
||||
subscription
|
||||
};
|
||||
this.#endpointStats.bytesSent += body.length;
|
||||
this.#stats.total.bytesSent += body.length;
|
||||
|
||||
const bytesSent = body.length;
|
||||
|
||||
this.#endpointStats.bytesSent += bytesSent;
|
||||
this.#stats.total.bytesSent += bytesSent;
|
||||
|
||||
this.#websocket.send(body);
|
||||
} catch (error) {
|
||||
this.#endpointStats.errors++;
|
||||
@@ -481,17 +484,19 @@ export class WsProvider implements ProviderInterface {
|
||||
#onSocketMessage = (message: MessageEvent<string>): void => {
|
||||
l.debug(() => ['received', message.data]);
|
||||
|
||||
this.#endpointStats.bytesRecv += message.data.length;
|
||||
this.#stats.total.bytesRecv += message.data.length;
|
||||
const bytesRecv = message.data.length;
|
||||
|
||||
const response = JSON.parse(message.data) as JsonRpcResponse;
|
||||
this.#endpointStats.bytesRecv += bytesRecv;
|
||||
this.#stats.total.bytesRecv += bytesRecv;
|
||||
|
||||
const response = JSON.parse(message.data) as JsonRpcResponse<string>;
|
||||
|
||||
return isUndefined(response.method)
|
||||
? this.#onSocketMessageResult(response)
|
||||
: this.#onSocketMessageSubscribe(response);
|
||||
};
|
||||
|
||||
#onSocketMessageResult = (response: JsonRpcResponse): void => {
|
||||
#onSocketMessageResult = (response: JsonRpcResponse<string>): void => {
|
||||
const handler = this.#handlers[response.id];
|
||||
|
||||
if (!handler) {
|
||||
@@ -502,7 +507,7 @@ export class WsProvider implements ProviderInterface {
|
||||
|
||||
try {
|
||||
const { method, params, subscription } = handler;
|
||||
const result = this.#coder.decodeResponse(response) as string;
|
||||
const result = this.#coder.decodeResponse<string>(response);
|
||||
|
||||
// first send the result - in case of subs, we may have an update
|
||||
// immediately if we have some queued results already
|
||||
@@ -531,7 +536,7 @@ export class WsProvider implements ProviderInterface {
|
||||
delete this.#handlers[response.id];
|
||||
};
|
||||
|
||||
#onSocketMessageSubscribe = (response: JsonRpcResponse): void => {
|
||||
#onSocketMessageSubscribe = (response: JsonRpcResponse<unknown>): void => {
|
||||
const method = ALIASES[response.method as string] || response.method || 'invalid';
|
||||
const subId = `${method}::${response.params.subscription}`;
|
||||
const handler = this.#subscriptions[subId];
|
||||
@@ -603,7 +608,7 @@ export class WsProvider implements ProviderInterface {
|
||||
const now = Date.now();
|
||||
const ids = Object.keys(this.#handlers);
|
||||
|
||||
for (let i = 0; i < ids.length; i++) {
|
||||
for (let i = 0, count = ids.length; i < count; i++) {
|
||||
const handler = this.#handlers[ids[i]];
|
||||
|
||||
if ((now - handler.start) > this.#timeout) {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,21 +28,21 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.4.1",
|
||||
"@polkadot/api-augment": "10.4.1",
|
||||
"@polkadot/rpc-augment": "10.4.1",
|
||||
"@polkadot/rpc-provider": "10.4.1",
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-augment": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/types-create": "10.4.1",
|
||||
"@polkadot/types-support": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/util-crypto": "^12.0.1",
|
||||
"@polkadot/x-ws": "^12.0.1",
|
||||
"@polkadot/api": "10.7.1",
|
||||
"@polkadot/api-augment": "10.7.1",
|
||||
"@polkadot/rpc-augment": "10.7.1",
|
||||
"@polkadot/rpc-provider": "10.7.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-augment": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/types-create": "10.7.1",
|
||||
"@polkadot/types-support": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/util-crypto": "^12.2.1",
|
||||
"@polkadot/x-ws": "^12.2.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"tslib": "^2.5.0",
|
||||
"yargs": "^17.7.1"
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
|
||||
@@ -24,13 +24,13 @@ function getDefs (apis: Apis | null, defs: Record<string, Definitions>): Record<
|
||||
const named: Record<string, Record<string, DefinitionCallNamed>> = {};
|
||||
const all = Object.values(defs);
|
||||
|
||||
for (let j = 0; j < all.length; j++) {
|
||||
for (let j = 0, jcount = all.length; j < jcount; j++) {
|
||||
const set = all[j].runtime;
|
||||
|
||||
if (set) {
|
||||
const sections = Object.entries(set);
|
||||
|
||||
for (let i = 0; i < sections.length; i++) {
|
||||
for (let i = 0, scount = sections.length; i < scount; i++) {
|
||||
const [_section, sec] = sections[i];
|
||||
const sectionHash = blake2AsHex(_section, 64);
|
||||
const api = apis && apis.find(([h]) => h === sectionHash);
|
||||
@@ -40,15 +40,16 @@ function getDefs (apis: Apis | null, defs: Record<string, Definitions>): Record<
|
||||
|
||||
if (ver) {
|
||||
const methods = Object.entries(ver.methods);
|
||||
const mcount = methods.length;
|
||||
|
||||
if (methods.length) {
|
||||
if (mcount) {
|
||||
const section = stringCamelCase(_section);
|
||||
|
||||
if (!named[section]) {
|
||||
named[section] = {};
|
||||
}
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
for (let m = 0; m < mcount; m++) {
|
||||
const [_method, def] = methods[m];
|
||||
const method = stringCamelCase(_method);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import substrateMeta from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { isHex, stringCamelCase, stringLowerFirst } from '@polkadot/util';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
import { assertFile, getMetadataViaWs } from './util/index.js';
|
||||
import { assertFile, getMetadataViaWs, getRpcMethodsViaWs, getRuntimeVersionViaWs } from './util/index.js';
|
||||
|
||||
interface SectionItem {
|
||||
link?: string;
|
||||
@@ -477,6 +477,8 @@ async function mainPromise (): Promise<void> {
|
||||
if (endpoint) {
|
||||
if (endpoint.startsWith('wss://') || endpoint.startsWith('ws://')) {
|
||||
metaHex = await getMetadataViaWs(endpoint);
|
||||
rpcMethods = await getRpcMethodsViaWs(endpoint);
|
||||
runtimeApis = await getRuntimeVersionViaWs(endpoint);
|
||||
} else {
|
||||
metaHex = (
|
||||
JSON.parse(
|
||||
@@ -505,12 +507,8 @@ async function mainPromise (): Promise<void> {
|
||||
const runtimeDesc = `default ${chainName} runtime`;
|
||||
const docRoot = `docs/${chainName.toLowerCase()}`;
|
||||
|
||||
// TODO Pass the result from `rpc_methods` (done via util/wsMeta.ts -> getRpcMethodsViaWs)
|
||||
// into here if we want to have a per-chain overview (via args)
|
||||
writeFile(`${docRoot}/rpc.md`, addRpc(runtimeDesc, rpcMethods));
|
||||
|
||||
// TODO Pass the result from `state_getRuntimeVersion` (done via util/wsMeta.ts -> getRuntimeVersionViaWs)
|
||||
// into here if we want to have a per-chain overview (via args)
|
||||
writeFile(`${docRoot}/runtime.md`, addRuntime(runtimeDesc, runtimeApis));
|
||||
|
||||
writeFile(`${docRoot}/constants.md`, addConstants(runtimeDesc, latest));
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -41,7 +41,7 @@ function splitAlternatives (type: string): string[] {
|
||||
let level = 0;
|
||||
|
||||
// we assume that the string starts with '['
|
||||
for (let i = 1; i < type.length; i++) {
|
||||
for (let i = 1, count = type.length; i < count; i++) {
|
||||
if (level === 0) {
|
||||
switch (type[i]) {
|
||||
case ']':
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-codec": "10.4.1",
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-codec": "10.7.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,39 +163,6 @@ export default {
|
||||
votes23: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);22],Compact<u16>)>',
|
||||
votes24: 'Vec<(Compact<u32>,[(Compact<u16>,Compact<PerU16>);23],Compact<u16>)>'
|
||||
},
|
||||
/**
|
||||
* Lookup368: polkadot_runtime_parachains::disputes::slashing::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletCall: {
|
||||
_enum: {
|
||||
report_dispute_lost_unsigned: {
|
||||
disputeProof: 'PolkadotRuntimeParachainsDisputesSlashingDisputeProof',
|
||||
keyOwnerProof: 'SpSessionMembershipProof'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup369: polkadot_runtime_parachains::disputes::slashing::DisputeProof
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputeProof: {
|
||||
timeSlot: 'PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind',
|
||||
validatorIndex: 'u32',
|
||||
validatorId: 'PolkadotPrimitivesV4ValidatorAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup370: polkadot_runtime_parachains::disputes::slashing::DisputesTimeSlot
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot: {
|
||||
sessionIndex: 'u32',
|
||||
candidateHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup371: polkadot_runtime_parachains::disputes::slashing::SlashingOffenceKind
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind: {
|
||||
_enum: ['ForInvalid', 'AgainstValid']
|
||||
},
|
||||
/**
|
||||
* Lookup540: kusama_runtime::RuntimeHoldReason
|
||||
**/
|
||||
@@ -249,23 +216,7 @@ export default {
|
||||
_enum: ['NftReceipt']
|
||||
},
|
||||
/**
|
||||
* Lookup810: polkadot_runtime_parachains::disputes::slashing::PendingSlashes
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPendingSlashes: {
|
||||
_alias: {
|
||||
keys_: 'keys'
|
||||
},
|
||||
keys_: 'BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind'
|
||||
},
|
||||
/**
|
||||
* Lookup814: polkadot_runtime_parachains::disputes::slashing::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletError: {
|
||||
_enum: ['InvalidKeyOwnershipProof', 'InvalidSessionIndex', 'InvalidCandidateHash', 'InvalidValidatorIndex', 'ValidatorIndexIdMismatch', 'DuplicateSlashingReport']
|
||||
},
|
||||
/**
|
||||
* Lookup857: kusama_runtime::Runtime
|
||||
* Lookup860: kusama_runtime::Runtime
|
||||
**/
|
||||
KusamaRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
@@ -919,7 +919,40 @@ export default {
|
||||
_enum: ['force_unfreeze']
|
||||
},
|
||||
/**
|
||||
* Lookup358: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
||||
* Lookup358: polkadot_runtime_parachains::disputes::slashing::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletCall: {
|
||||
_enum: {
|
||||
report_dispute_lost_unsigned: {
|
||||
disputeProof: 'PolkadotRuntimeParachainsDisputesSlashingDisputeProof',
|
||||
keyOwnerProof: 'SpSessionMembershipProof'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup359: polkadot_runtime_parachains::disputes::slashing::DisputeProof
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputeProof: {
|
||||
timeSlot: 'PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind',
|
||||
validatorIndex: 'u32',
|
||||
validatorId: 'PolkadotPrimitivesV4ValidatorAppPublic'
|
||||
},
|
||||
/**
|
||||
* Lookup360: polkadot_runtime_parachains::disputes::slashing::DisputesTimeSlot
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot: {
|
||||
sessionIndex: 'u32',
|
||||
candidateHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup361: polkadot_runtime_parachains::disputes::slashing::SlashingOffenceKind
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind: {
|
||||
_enum: ['ForInvalid', 'AgainstValid']
|
||||
},
|
||||
/**
|
||||
* Lookup362: polkadot_runtime_common::paras_registrar::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarPalletCall: {
|
||||
_enum: {
|
||||
@@ -960,7 +993,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup359: polkadot_runtime_common::slots::pallet::Call<T>
|
||||
* Lookup363: polkadot_runtime_common::slots::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonSlotsPalletCall: {
|
||||
_enum: {
|
||||
@@ -980,7 +1013,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup360: polkadot_runtime_common::auctions::pallet::Call<T>
|
||||
* Lookup364: polkadot_runtime_common::auctions::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonAuctionsPalletCall: {
|
||||
_enum: {
|
||||
@@ -999,7 +1032,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup362: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
||||
* Lookup366: polkadot_runtime_common::crowdloan::pallet::Call<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanPalletCall: {
|
||||
_enum: {
|
||||
@@ -1048,7 +1081,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup364: sp_runtime::MultiSigner
|
||||
* Lookup368: sp_runtime::MultiSigner
|
||||
**/
|
||||
SpRuntimeMultiSigner: {
|
||||
_enum: {
|
||||
@@ -1058,11 +1091,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup365: sp_core::ecdsa::Public
|
||||
* Lookup369: sp_core::ecdsa::Public
|
||||
**/
|
||||
SpCoreEcdsaPublic: '[u8;33]',
|
||||
/**
|
||||
* Lookup370: pallet_xcm::pallet::Call<T>
|
||||
* Lookup374: pallet_xcm::pallet::Call<T>
|
||||
**/
|
||||
PalletXcmCall: {
|
||||
_enum: {
|
||||
@@ -1111,12 +1144,15 @@ export default {
|
||||
beneficiary: 'XcmVersionedMultiLocation',
|
||||
assets: 'XcmVersionedMultiAssets',
|
||||
feeAssetItem: 'u32',
|
||||
weightLimit: 'XcmV3WeightLimit'
|
||||
weightLimit: 'XcmV3WeightLimit',
|
||||
},
|
||||
force_suspension: {
|
||||
suspended: 'bool'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup371: xcm::VersionedMultiLocation
|
||||
* Lookup375: xcm::VersionedMultiLocation
|
||||
**/
|
||||
XcmVersionedMultiLocation: {
|
||||
_enum: {
|
||||
@@ -1127,14 +1163,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup372: xcm::v2::multilocation::MultiLocation
|
||||
* Lookup376: xcm::v2::multilocation::MultiLocation
|
||||
**/
|
||||
XcmV2MultiLocation: {
|
||||
parents: 'u8',
|
||||
interior: 'XcmV2MultilocationJunctions'
|
||||
},
|
||||
/**
|
||||
* Lookup373: xcm::v2::multilocation::Junctions
|
||||
* Lookup377: xcm::v2::multilocation::Junctions
|
||||
**/
|
||||
XcmV2MultilocationJunctions: {
|
||||
_enum: {
|
||||
@@ -1150,7 +1186,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup374: xcm::v2::junction::Junction
|
||||
* Lookup378: xcm::v2::junction::Junction
|
||||
**/
|
||||
XcmV2Junction: {
|
||||
_enum: {
|
||||
@@ -1178,7 +1214,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup375: xcm::v2::NetworkId
|
||||
* Lookup379: xcm::v2::NetworkId
|
||||
**/
|
||||
XcmV2NetworkId: {
|
||||
_enum: {
|
||||
@@ -1189,7 +1225,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup377: xcm::v2::BodyId
|
||||
* Lookup381: xcm::v2::BodyId
|
||||
**/
|
||||
XcmV2BodyId: {
|
||||
_enum: {
|
||||
@@ -1206,7 +1242,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup378: xcm::v2::BodyPart
|
||||
* Lookup382: xcm::v2::BodyPart
|
||||
**/
|
||||
XcmV2BodyPart: {
|
||||
_enum: {
|
||||
@@ -1229,7 +1265,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup379: xcm::VersionedXcm<RuntimeCall>
|
||||
* Lookup383: xcm::VersionedXcm<RuntimeCall>
|
||||
**/
|
||||
XcmVersionedXcm: {
|
||||
_enum: {
|
||||
@@ -1240,11 +1276,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup380: xcm::v2::Xcm<RuntimeCall>
|
||||
* Lookup384: xcm::v2::Xcm<RuntimeCall>
|
||||
**/
|
||||
XcmV2Xcm: 'Vec<XcmV2Instruction>',
|
||||
/**
|
||||
* Lookup382: xcm::v2::Instruction<RuntimeCall>
|
||||
* Lookup386: xcm::v2::Instruction<RuntimeCall>
|
||||
**/
|
||||
XcmV2Instruction: {
|
||||
_enum: {
|
||||
@@ -1342,18 +1378,18 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup383: xcm::v2::multiasset::MultiAssets
|
||||
* Lookup387: xcm::v2::multiasset::MultiAssets
|
||||
**/
|
||||
XcmV2MultiassetMultiAssets: 'Vec<XcmV2MultiAsset>',
|
||||
/**
|
||||
* Lookup385: xcm::v2::multiasset::MultiAsset
|
||||
* Lookup389: xcm::v2::multiasset::MultiAsset
|
||||
**/
|
||||
XcmV2MultiAsset: {
|
||||
id: 'XcmV2MultiassetAssetId',
|
||||
fun: 'XcmV2MultiassetFungibility'
|
||||
},
|
||||
/**
|
||||
* Lookup386: xcm::v2::multiasset::AssetId
|
||||
* Lookup390: xcm::v2::multiasset::AssetId
|
||||
**/
|
||||
XcmV2MultiassetAssetId: {
|
||||
_enum: {
|
||||
@@ -1362,7 +1398,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup387: xcm::v2::multiasset::Fungibility
|
||||
* Lookup391: xcm::v2::multiasset::Fungibility
|
||||
**/
|
||||
XcmV2MultiassetFungibility: {
|
||||
_enum: {
|
||||
@@ -1371,7 +1407,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup388: xcm::v2::multiasset::AssetInstance
|
||||
* Lookup392: xcm::v2::multiasset::AssetInstance
|
||||
**/
|
||||
XcmV2MultiassetAssetInstance: {
|
||||
_enum: {
|
||||
@@ -1385,7 +1421,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup389: xcm::v2::Response
|
||||
* Lookup393: xcm::v2::Response
|
||||
**/
|
||||
XcmV2Response: {
|
||||
_enum: {
|
||||
@@ -1396,7 +1432,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup392: xcm::v2::traits::Error
|
||||
* Lookup396: xcm::v2::traits::Error
|
||||
**/
|
||||
XcmV2TraitsError: {
|
||||
_enum: {
|
||||
@@ -1429,19 +1465,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup393: xcm::v2::OriginKind
|
||||
* Lookup397: xcm::v2::OriginKind
|
||||
**/
|
||||
XcmV2OriginKind: {
|
||||
_enum: ['Native', 'SovereignAccount', 'Superuser', 'Xcm']
|
||||
},
|
||||
/**
|
||||
* Lookup394: xcm::double_encoded::DoubleEncoded<T>
|
||||
* Lookup398: xcm::double_encoded::DoubleEncoded<T>
|
||||
**/
|
||||
XcmDoubleEncoded: {
|
||||
encoded: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup395: xcm::v2::multiasset::MultiAssetFilter
|
||||
* Lookup399: xcm::v2::multiasset::MultiAssetFilter
|
||||
**/
|
||||
XcmV2MultiassetMultiAssetFilter: {
|
||||
_enum: {
|
||||
@@ -1450,7 +1486,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup396: xcm::v2::multiasset::WildMultiAsset
|
||||
* Lookup400: xcm::v2::multiasset::WildMultiAsset
|
||||
**/
|
||||
XcmV2MultiassetWildMultiAsset: {
|
||||
_enum: {
|
||||
@@ -1462,13 +1498,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup397: xcm::v2::multiasset::WildFungibility
|
||||
* Lookup401: xcm::v2::multiasset::WildFungibility
|
||||
**/
|
||||
XcmV2MultiassetWildFungibility: {
|
||||
_enum: ['Fungible', 'NonFungible']
|
||||
},
|
||||
/**
|
||||
* Lookup398: xcm::v2::WeightLimit
|
||||
* Lookup402: xcm::v2::WeightLimit
|
||||
**/
|
||||
XcmV2WeightLimit: {
|
||||
_enum: {
|
||||
@@ -1477,11 +1513,11 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup399: xcm::v3::Xcm<Call>
|
||||
* Lookup403: xcm::v3::Xcm<Call>
|
||||
**/
|
||||
XcmV3Xcm: 'Vec<XcmV3Instruction>',
|
||||
/**
|
||||
* Lookup401: xcm::v3::Instruction<Call>
|
||||
* Lookup405: xcm::v3::Instruction<Call>
|
||||
**/
|
||||
XcmV3Instruction: {
|
||||
_enum: {
|
||||
@@ -1623,18 +1659,18 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup402: xcm::v3::multiasset::MultiAssets
|
||||
* Lookup406: xcm::v3::multiasset::MultiAssets
|
||||
**/
|
||||
XcmV3MultiassetMultiAssets: 'Vec<XcmV3MultiAsset>',
|
||||
/**
|
||||
* Lookup404: xcm::v3::multiasset::MultiAsset
|
||||
* Lookup408: xcm::v3::multiasset::MultiAsset
|
||||
**/
|
||||
XcmV3MultiAsset: {
|
||||
id: 'XcmV3MultiassetAssetId',
|
||||
fun: 'XcmV3MultiassetFungibility'
|
||||
},
|
||||
/**
|
||||
* Lookup405: xcm::v3::multiasset::AssetId
|
||||
* Lookup409: xcm::v3::multiasset::AssetId
|
||||
**/
|
||||
XcmV3MultiassetAssetId: {
|
||||
_enum: {
|
||||
@@ -1643,7 +1679,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup406: xcm::v3::multiasset::Fungibility
|
||||
* Lookup410: xcm::v3::multiasset::Fungibility
|
||||
**/
|
||||
XcmV3MultiassetFungibility: {
|
||||
_enum: {
|
||||
@@ -1652,7 +1688,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup407: xcm::v3::multiasset::AssetInstance
|
||||
* Lookup411: xcm::v3::multiasset::AssetInstance
|
||||
**/
|
||||
XcmV3MultiassetAssetInstance: {
|
||||
_enum: {
|
||||
@@ -1665,7 +1701,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup408: xcm::v3::Response
|
||||
* Lookup412: xcm::v3::Response
|
||||
**/
|
||||
XcmV3Response: {
|
||||
_enum: {
|
||||
@@ -1678,7 +1714,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup411: xcm::v3::traits::Error
|
||||
* Lookup415: xcm::v3::traits::Error
|
||||
**/
|
||||
XcmV3TraitsError: {
|
||||
_enum: {
|
||||
@@ -1725,7 +1761,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup413: xcm::v3::PalletInfo
|
||||
* Lookup417: xcm::v3::PalletInfo
|
||||
**/
|
||||
XcmV3PalletInfo: {
|
||||
index: 'Compact<u32>',
|
||||
@@ -1736,7 +1772,7 @@ export default {
|
||||
patch: 'Compact<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup416: xcm::v3::MaybeErrorCode
|
||||
* Lookup420: xcm::v3::MaybeErrorCode
|
||||
**/
|
||||
XcmV3MaybeErrorCode: {
|
||||
_enum: {
|
||||
@@ -1746,7 +1782,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup419: xcm::v3::QueryResponseInfo
|
||||
* Lookup423: xcm::v3::QueryResponseInfo
|
||||
**/
|
||||
XcmV3QueryResponseInfo: {
|
||||
destination: 'XcmV3MultiLocation',
|
||||
@@ -1754,7 +1790,7 @@ export default {
|
||||
maxWeight: 'SpWeightsWeightV2Weight'
|
||||
},
|
||||
/**
|
||||
* Lookup420: xcm::v3::multiasset::MultiAssetFilter
|
||||
* Lookup424: xcm::v3::multiasset::MultiAssetFilter
|
||||
**/
|
||||
XcmV3MultiassetMultiAssetFilter: {
|
||||
_enum: {
|
||||
@@ -1763,7 +1799,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup421: xcm::v3::multiasset::WildMultiAsset
|
||||
* Lookup425: xcm::v3::multiasset::WildMultiAsset
|
||||
**/
|
||||
XcmV3MultiassetWildMultiAsset: {
|
||||
_enum: {
|
||||
@@ -1781,13 +1817,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup422: xcm::v3::multiasset::WildFungibility
|
||||
* Lookup426: xcm::v3::multiasset::WildFungibility
|
||||
**/
|
||||
XcmV3MultiassetWildFungibility: {
|
||||
_enum: ['Fungible', 'NonFungible']
|
||||
},
|
||||
/**
|
||||
* Lookup423: xcm::v3::WeightLimit
|
||||
* Lookup427: xcm::v3::WeightLimit
|
||||
**/
|
||||
XcmV3WeightLimit: {
|
||||
_enum: {
|
||||
@@ -1796,7 +1832,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup424: xcm::VersionedMultiAssets
|
||||
* Lookup428: xcm::VersionedMultiAssets
|
||||
**/
|
||||
XcmVersionedMultiAssets: {
|
||||
_enum: {
|
||||
@@ -1807,7 +1843,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup440: polkadot_runtime_common::claims::pallet::Event<T>
|
||||
* Lookup444: polkadot_runtime_common::claims::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1819,7 +1855,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup456: polkadot_runtime_parachains::inclusion::pallet::Event<T>
|
||||
* Lookup460: polkadot_runtime_parachains::inclusion::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1829,14 +1865,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup457: polkadot_primitives::v4::CandidateReceipt<primitive_types::H256>
|
||||
* Lookup461: polkadot_primitives::v4::CandidateReceipt<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV4CandidateReceipt: {
|
||||
descriptor: 'PolkadotPrimitivesV4CandidateDescriptor',
|
||||
commitmentsHash: 'H256'
|
||||
},
|
||||
/**
|
||||
* Lookup460: polkadot_runtime_parachains::paras::pallet::Event
|
||||
* Lookup464: polkadot_runtime_parachains::paras::pallet::Event
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1851,7 +1887,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup461: polkadot_runtime_parachains::ump::pallet::Event
|
||||
* Lookup465: polkadot_runtime_parachains::ump::pallet::Event
|
||||
**/
|
||||
PolkadotRuntimeParachainsUmpPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1865,7 +1901,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup462: xcm::v3::traits::Outcome
|
||||
* Lookup466: xcm::v3::traits::Outcome
|
||||
**/
|
||||
XcmV3TraitsOutcome: {
|
||||
_enum: {
|
||||
@@ -1875,7 +1911,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup463: polkadot_runtime_parachains::hrmp::pallet::Event<T>
|
||||
* Lookup467: polkadot_runtime_parachains::hrmp::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1887,7 +1923,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup464: polkadot_runtime_parachains::disputes::pallet::Event<T>
|
||||
* Lookup468: polkadot_runtime_parachains::disputes::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1897,19 +1933,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup465: polkadot_runtime_parachains::disputes::DisputeLocation
|
||||
* Lookup469: polkadot_runtime_parachains::disputes::DisputeLocation
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesDisputeLocation: {
|
||||
_enum: ['Local', 'Remote']
|
||||
},
|
||||
/**
|
||||
* Lookup466: polkadot_runtime_parachains::disputes::DisputeResult
|
||||
* Lookup470: polkadot_runtime_parachains::disputes::DisputeResult
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesDisputeResult: {
|
||||
_enum: ['Valid', 'Invalid']
|
||||
},
|
||||
/**
|
||||
* Lookup467: polkadot_runtime_common::paras_registrar::pallet::Event<T>
|
||||
* Lookup471: polkadot_runtime_common::paras_registrar::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1922,12 +1958,16 @@ export default {
|
||||
},
|
||||
Reserved: {
|
||||
paraId: 'u32',
|
||||
who: 'AccountId32'
|
||||
who: 'AccountId32',
|
||||
},
|
||||
Swapped: {
|
||||
paraId: 'u32',
|
||||
otherId: 'u32'
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup468: polkadot_runtime_common::slots::pallet::Event<T>
|
||||
* Lookup472: polkadot_runtime_common::slots::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonSlotsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1945,7 +1985,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup469: polkadot_runtime_common::auctions::pallet::Event<T>
|
||||
* Lookup473: polkadot_runtime_common::auctions::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonAuctionsPalletEvent: {
|
||||
_enum: {
|
||||
@@ -1985,7 +2025,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup470: polkadot_runtime_common::crowdloan::pallet::Event<T>
|
||||
* Lookup474: polkadot_runtime_common::crowdloan::pallet::Event<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanPalletEvent: {
|
||||
_enum: {
|
||||
@@ -2029,7 +2069,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup471: pallet_xcm::pallet::Event<T>
|
||||
* Lookup475: pallet_xcm::pallet::Event<T>
|
||||
**/
|
||||
PalletXcmEvent: {
|
||||
_enum: {
|
||||
@@ -2059,7 +2099,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup617: pallet_referenda::types::ReferendumInfo<TrackId, polkadot_runtime::OriginCaller, Moment, frame_support::traits::preimages::Bounded<polkadot_runtime::RuntimeCall>, Balance, pallet_conviction_voting::types::Tally<Votes, Total>, sp_core::crypto::AccountId32, ScheduleAddress>
|
||||
* Lookup621: pallet_referenda::types::ReferendumInfo<TrackId, polkadot_runtime::OriginCaller, Moment, frame_support::traits::preimages::Bounded<polkadot_runtime::RuntimeCall>, Balance, pallet_conviction_voting::types::Tally<Votes, Total>, sp_core::crypto::AccountId32, ScheduleAddress>
|
||||
**/
|
||||
PalletReferendaReferendumInfo: {
|
||||
_enum: {
|
||||
@@ -2072,7 +2112,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup618: pallet_referenda::types::ReferendumStatus<TrackId, polkadot_runtime::OriginCaller, Moment, frame_support::traits::preimages::Bounded<polkadot_runtime::RuntimeCall>, Balance, pallet_conviction_voting::types::Tally<Votes, Total>, sp_core::crypto::AccountId32, ScheduleAddress>
|
||||
* Lookup622: pallet_referenda::types::ReferendumStatus<TrackId, polkadot_runtime::OriginCaller, Moment, frame_support::traits::preimages::Bounded<polkadot_runtime::RuntimeCall>, Balance, pallet_conviction_voting::types::Tally<Votes, Total>, sp_core::crypto::AccountId32, ScheduleAddress>
|
||||
**/
|
||||
PalletReferendaReferendumStatus: {
|
||||
track: 'u16',
|
||||
@@ -2088,13 +2128,13 @@ export default {
|
||||
alarm: 'Option<(u32,(u32,u32))>'
|
||||
},
|
||||
/**
|
||||
* Lookup636: polkadot_runtime_common::claims::pallet::Error<T>
|
||||
* Lookup640: polkadot_runtime_common::claims::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPalletError: {
|
||||
_enum: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists']
|
||||
},
|
||||
/**
|
||||
* Lookup712: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||
* Lookup716: polkadot_runtime_parachains::configuration::HostConfiguration<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeParachainsConfigurationHostConfiguration: {
|
||||
maxCodeSize: 'u32',
|
||||
@@ -2142,20 +2182,20 @@ export default {
|
||||
minimumValidationUpgradeDelay: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup715: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||
* Lookup719: polkadot_runtime_parachains::configuration::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsConfigurationPalletError: {
|
||||
_enum: ['InvalidNewValue']
|
||||
},
|
||||
/**
|
||||
* Lookup718: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||
* Lookup722: polkadot_runtime_parachains::inclusion::AvailabilityBitfieldRecord<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord: {
|
||||
bitfield: 'BitVec',
|
||||
submittedAt: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup719: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||
* Lookup723: polkadot_runtime_parachains::inclusion::CandidatePendingAvailability<primitive_types::H256, N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability: {
|
||||
_alias: {
|
||||
@@ -2171,13 +2211,13 @@ export default {
|
||||
backingGroup: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup720: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
||||
* Lookup724: polkadot_runtime_parachains::inclusion::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsInclusionPalletError: {
|
||||
_enum: ['UnsortedOrDuplicateValidatorIndices', 'UnsortedOrDuplicateDisputeStatementSet', 'UnsortedOrDuplicateBackedCandidates', 'UnexpectedRelayParent', 'WrongBitfieldSize', 'BitfieldAllZeros', 'BitfieldDuplicateOrUnordered', 'ValidatorIndexOutOfBounds', 'InvalidBitfieldSignature', 'UnscheduledCandidate', 'CandidateScheduledBeforeParaFree', 'WrongCollator', 'ScheduledOutOfOrder', 'HeadDataTooLarge', 'PrematureCodeUpgrade', 'NewCodeTooLarge', 'CandidateNotInParentContext', 'InvalidGroupIndex', 'InsufficientBacking', 'InvalidBacking', 'NotCollatorSigned', 'ValidationDataHashMismatch', 'IncorrectDownwardMessageHandling', 'InvalidUpwardMessages', 'HrmpWatermarkMishandling', 'InvalidOutboundHrmp', 'InvalidValidationCodeHash', 'ParaHeadMismatch', 'BitfieldReferencesFreedCore']
|
||||
},
|
||||
/**
|
||||
* Lookup721: polkadot_primitives::v4::ScrapedOnChainVotes<primitive_types::H256>
|
||||
* Lookup725: polkadot_primitives::v4::ScrapedOnChainVotes<primitive_types::H256>
|
||||
**/
|
||||
PolkadotPrimitivesV4ScrapedOnChainVotes: {
|
||||
session: 'u32',
|
||||
@@ -2185,38 +2225,38 @@ export default {
|
||||
disputes: 'Vec<PolkadotPrimitivesV4DisputeStatementSet>'
|
||||
},
|
||||
/**
|
||||
* Lookup726: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
||||
* Lookup730: polkadot_runtime_parachains::paras_inherent::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasInherentPalletError: {
|
||||
_enum: ['TooManyInclusionInherents', 'InvalidParentHeader', 'CandidateConcludedInvalid', 'InherentOverweight', 'DisputeStatementsUnsortedOrDuplicates', 'DisputeInvalid']
|
||||
},
|
||||
/**
|
||||
* Lookup728: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||
* Lookup732: polkadot_runtime_parachains::scheduler::ParathreadClaimQueue
|
||||
**/
|
||||
PolkadotRuntimeParachainsSchedulerParathreadClaimQueue: {
|
||||
queue: 'Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>',
|
||||
nextCoreOffset: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup730: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||
* Lookup734: polkadot_runtime_parachains::scheduler::QueuedParathread
|
||||
**/
|
||||
PolkadotRuntimeParachainsSchedulerQueuedParathread: {
|
||||
claim: 'PolkadotPrimitivesV4ParathreadEntry',
|
||||
coreOffset: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup731: polkadot_primitives::v4::ParathreadEntry
|
||||
* Lookup735: polkadot_primitives::v4::ParathreadEntry
|
||||
**/
|
||||
PolkadotPrimitivesV4ParathreadEntry: {
|
||||
claim: 'PolkadotPrimitivesV4ParathreadClaim',
|
||||
retries: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup732: polkadot_primitives::v4::ParathreadClaim
|
||||
* Lookup736: polkadot_primitives::v4::ParathreadClaim
|
||||
**/
|
||||
PolkadotPrimitivesV4ParathreadClaim: '(u32,PolkadotPrimitivesV4CollatorAppPublic)',
|
||||
/**
|
||||
* Lookup735: polkadot_primitives::v4::CoreOccupied
|
||||
* Lookup739: polkadot_primitives::v4::CoreOccupied
|
||||
**/
|
||||
PolkadotPrimitivesV4CoreOccupied: {
|
||||
_enum: {
|
||||
@@ -2225,7 +2265,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup738: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||
* Lookup742: polkadot_runtime_parachains::scheduler::CoreAssignment
|
||||
**/
|
||||
PolkadotRuntimeParachainsSchedulerCoreAssignment: {
|
||||
core: 'u32',
|
||||
@@ -2234,7 +2274,7 @@ export default {
|
||||
groupIdx: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup739: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||
* Lookup743: polkadot_runtime_parachains::scheduler::AssignmentKind
|
||||
**/
|
||||
PolkadotRuntimeParachainsSchedulerAssignmentKind: {
|
||||
_enum: {
|
||||
@@ -2243,7 +2283,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup740: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
||||
* Lookup744: polkadot_runtime_parachains::paras::PvfCheckActiveVoteState<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState: {
|
||||
votesAccept: 'BitVec',
|
||||
@@ -2253,7 +2293,7 @@ export default {
|
||||
causes: 'Vec<PolkadotRuntimeParachainsParasPvfCheckCause>'
|
||||
},
|
||||
/**
|
||||
* Lookup742: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
||||
* Lookup746: polkadot_runtime_parachains::paras::PvfCheckCause<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPvfCheckCause: {
|
||||
_enum: {
|
||||
@@ -2265,39 +2305,39 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup744: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||
* Lookup748: polkadot_runtime_parachains::paras::ParaLifecycle
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasParaLifecycle: {
|
||||
_enum: ['Onboarding', 'Parathread', 'Parachain', 'UpgradingParathread', 'DowngradingParachain', 'OffboardingParathread', 'OffboardingParachain']
|
||||
},
|
||||
/**
|
||||
* Lookup746: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||
* Lookup750: polkadot_runtime_parachains::paras::ParaPastCodeMeta<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasParaPastCodeMeta: {
|
||||
upgradeTimes: 'Vec<PolkadotRuntimeParachainsParasReplacementTimes>',
|
||||
lastPruned: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup748: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||
* Lookup752: polkadot_runtime_parachains::paras::ReplacementTimes<N>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasReplacementTimes: {
|
||||
expectedAt: 'u32',
|
||||
activatedAt: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup750: polkadot_primitives::v4::UpgradeGoAhead
|
||||
* Lookup754: polkadot_primitives::v4::UpgradeGoAhead
|
||||
**/
|
||||
PolkadotPrimitivesV4UpgradeGoAhead: {
|
||||
_enum: ['Abort', 'GoAhead']
|
||||
},
|
||||
/**
|
||||
* Lookup751: polkadot_primitives::v4::UpgradeRestriction
|
||||
* Lookup755: polkadot_primitives::v4::UpgradeRestriction
|
||||
**/
|
||||
PolkadotPrimitivesV4UpgradeRestriction: {
|
||||
_enum: ['Present']
|
||||
},
|
||||
/**
|
||||
* Lookup752: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||
* Lookup756: polkadot_runtime_parachains::paras::ParaGenesisArgs
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasParaGenesisArgs: {
|
||||
genesisHead: 'Bytes',
|
||||
@@ -2305,13 +2345,13 @@ export default {
|
||||
paraKind: 'bool'
|
||||
},
|
||||
/**
|
||||
* Lookup753: polkadot_runtime_parachains::paras::pallet::Error<T>
|
||||
* Lookup757: polkadot_runtime_parachains::paras::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsParasPalletError: {
|
||||
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'PvfCheckDisabled', 'CannotUpgradeCode']
|
||||
_enum: ['NotRegistered', 'CannotOnboard', 'CannotOffboard', 'CannotUpgrade', 'CannotDowngrade', 'PvfCheckStatementStale', 'PvfCheckStatementFuture', 'PvfCheckValidatorIndexOutOfBounds', 'PvfCheckInvalidSignature', 'PvfCheckDoubleVote', 'PvfCheckSubjectInvalid', 'CannotUpgradeCode']
|
||||
},
|
||||
/**
|
||||
* Lookup755: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||
* Lookup759: polkadot_runtime_parachains::initializer::BufferedSessionChange
|
||||
**/
|
||||
PolkadotRuntimeParachainsInitializerBufferedSessionChange: {
|
||||
validators: 'Vec<PolkadotPrimitivesV4ValidatorAppPublic>',
|
||||
@@ -2319,20 +2359,20 @@ export default {
|
||||
sessionIndex: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup757: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||
* Lookup761: polkadot_core_primitives::InboundDownwardMessage<BlockNumber>
|
||||
**/
|
||||
PolkadotCorePrimitivesInboundDownwardMessage: {
|
||||
sentAt: 'u32',
|
||||
msg: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup759: polkadot_runtime_parachains::ump::pallet::Error<T>
|
||||
* Lookup763: polkadot_runtime_parachains::ump::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsUmpPalletError: {
|
||||
_enum: ['UnknownMessageIndex', 'WeightOverLimit']
|
||||
},
|
||||
/**
|
||||
* Lookup760: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||
* Lookup764: polkadot_runtime_parachains::hrmp::HrmpOpenChannelRequest
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest: {
|
||||
confirmed: 'bool',
|
||||
@@ -2343,7 +2383,7 @@ export default {
|
||||
maxTotalSize: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup762: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||
* Lookup766: polkadot_runtime_parachains::hrmp::HrmpChannel
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpHrmpChannel: {
|
||||
maxCapacity: 'u32',
|
||||
@@ -2356,20 +2396,20 @@ export default {
|
||||
recipientDeposit: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup764: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||
* Lookup768: polkadot_core_primitives::InboundHrmpMessage<BlockNumber>
|
||||
**/
|
||||
PolkadotCorePrimitivesInboundHrmpMessage: {
|
||||
sentAt: 'u32',
|
||||
data: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup767: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
||||
* Lookup771: polkadot_runtime_parachains::hrmp::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsHrmpPalletError: {
|
||||
_enum: ['OpenHrmpChannelToSelf', 'OpenHrmpChannelInvalidRecipient', 'OpenHrmpChannelZeroCapacity', 'OpenHrmpChannelCapacityExceedsLimit', 'OpenHrmpChannelZeroMessageSize', 'OpenHrmpChannelMessageSizeExceedsLimit', 'OpenHrmpChannelAlreadyExists', 'OpenHrmpChannelAlreadyRequested', 'OpenHrmpChannelLimitExceeded', 'AcceptHrmpChannelDoesntExist', 'AcceptHrmpChannelAlreadyConfirmed', 'AcceptHrmpChannelLimitExceeded', 'CloseHrmpChannelUnauthorized', 'CloseHrmpChannelDoesntExist', 'CloseHrmpChannelAlreadyUnderway', 'CancelHrmpOpenChannelUnauthorized', 'OpenHrmpChannelDoesntExist', 'OpenHrmpChannelAlreadyConfirmed', 'WrongWitness']
|
||||
},
|
||||
/**
|
||||
* Lookup769: polkadot_primitives::v4::SessionInfo
|
||||
* Lookup773: polkadot_primitives::v4::SessionInfo
|
||||
**/
|
||||
PolkadotPrimitivesV4SessionInfo: {
|
||||
activeValidatorIndices: 'Vec<u32>',
|
||||
@@ -2387,15 +2427,15 @@ export default {
|
||||
neededApprovals: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup770: polkadot_primitives::v4::IndexedVec<polkadot_primitives::v4::ValidatorIndex, polkadot_primitives::v4::validator_app::Public>
|
||||
* Lookup774: polkadot_primitives::v4::IndexedVec<polkadot_primitives::v4::ValidatorIndex, polkadot_primitives::v4::validator_app::Public>
|
||||
**/
|
||||
PolkadotPrimitivesV4IndexedVecValidatorIndex: 'Vec<PolkadotPrimitivesV4ValidatorAppPublic>',
|
||||
/**
|
||||
* Lookup772: polkadot_primitives::v4::IndexedVec<polkadot_primitives::v4::GroupIndex, V>
|
||||
* Lookup776: polkadot_primitives::v4::IndexedVec<polkadot_primitives::v4::GroupIndex, V>
|
||||
**/
|
||||
PolkadotPrimitivesV4IndexedVecGroupIndex: 'Vec<Vec<u32>>',
|
||||
/**
|
||||
* Lookup774: polkadot_primitives::v4::DisputeState<N>
|
||||
* Lookup778: polkadot_primitives::v4::DisputeState<N>
|
||||
**/
|
||||
PolkadotPrimitivesV4DisputeState: {
|
||||
validatorsFor: 'BitVec',
|
||||
@@ -2404,13 +2444,29 @@ export default {
|
||||
concludedAt: 'Option<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup776: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
||||
* Lookup780: polkadot_runtime_parachains::disputes::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesPalletError: {
|
||||
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'SingleSidedDispute', 'MaliciousBacker', 'MissingBackingVotes', 'UnconfirmedDispute']
|
||||
},
|
||||
/**
|
||||
* Lookup777: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||
* Lookup781: polkadot_runtime_parachains::disputes::slashing::PendingSlashes
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPendingSlashes: {
|
||||
_alias: {
|
||||
keys_: 'keys'
|
||||
},
|
||||
keys_: 'BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>',
|
||||
kind: 'PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind'
|
||||
},
|
||||
/**
|
||||
* Lookup785: polkadot_runtime_parachains::disputes::slashing::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletError: {
|
||||
_enum: ['InvalidKeyOwnershipProof', 'InvalidSessionIndex', 'InvalidCandidateHash', 'InvalidValidatorIndex', 'ValidatorIndexIdMismatch', 'DuplicateSlashingReport']
|
||||
},
|
||||
/**
|
||||
* Lookup786: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarParaInfo: {
|
||||
manager: 'AccountId32',
|
||||
@@ -2418,25 +2474,25 @@ export default {
|
||||
locked: 'bool'
|
||||
},
|
||||
/**
|
||||
* Lookup778: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
||||
* Lookup787: polkadot_runtime_common::paras_registrar::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonParasRegistrarPalletError: {
|
||||
_enum: ['NotRegistered', 'AlreadyRegistered', 'NotOwner', 'CodeTooLarge', 'HeadDataTooLarge', 'NotParachain', 'NotParathread', 'CannotDeregister', 'CannotDowngrade', 'CannotUpgrade', 'ParaLocked', 'NotReserved', 'EmptyCode', 'CannotSwap']
|
||||
},
|
||||
/**
|
||||
* Lookup780: polkadot_runtime_common::slots::pallet::Error<T>
|
||||
* Lookup789: polkadot_runtime_common::slots::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonSlotsPalletError: {
|
||||
_enum: ['ParaNotOnboarding', 'LeaseError']
|
||||
},
|
||||
/**
|
||||
* Lookup785: polkadot_runtime_common::auctions::pallet::Error<T>
|
||||
* Lookup794: polkadot_runtime_common::auctions::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonAuctionsPalletError: {
|
||||
_enum: ['AuctionInProgress', 'LeasePeriodInPast', 'ParaNotRegistered', 'NotCurrentAuction', 'NotAuction', 'AuctionEnded', 'AlreadyLeasedOut']
|
||||
},
|
||||
/**
|
||||
* Lookup786: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||
* Lookup795: polkadot_runtime_common::crowdloan::FundInfo<sp_core::crypto::AccountId32, Balance, BlockNumber, LeasePeriod>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanFundInfo: {
|
||||
depositor: 'AccountId32',
|
||||
@@ -2451,7 +2507,7 @@ export default {
|
||||
fundIndex: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup787: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||
* Lookup796: polkadot_runtime_common::crowdloan::LastContribution<BlockNumber>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanLastContribution: {
|
||||
_enum: {
|
||||
@@ -2461,13 +2517,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup788: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
||||
* Lookup797: polkadot_runtime_common::crowdloan::pallet::Error<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonCrowdloanPalletError: {
|
||||
_enum: ['FirstPeriodInPast', 'FirstPeriodTooFarInFuture', 'LastPeriodBeforeFirstPeriod', 'LastPeriodTooFarInFuture', 'CannotEndInPast', 'EndTooFarInFuture', 'Overflow', 'ContributionTooSmall', 'InvalidParaId', 'CapExceeded', 'ContributionPeriodOver', 'InvalidOrigin', 'NotParachain', 'LeaseActive', 'BidOrLeaseActive', 'FundNotEnded', 'NoContributions', 'NotReadyToDissolve', 'InvalidSignature', 'MemoTooLarge', 'AlreadyInNewRaise', 'VrfDelayInProgress', 'NoLeasePeriod']
|
||||
},
|
||||
/**
|
||||
* Lookup789: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||
* Lookup798: pallet_xcm::pallet::QueryStatus<BlockNumber>
|
||||
**/
|
||||
PalletXcmQueryStatus: {
|
||||
_enum: {
|
||||
@@ -2488,7 +2544,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup793: xcm::VersionedResponse
|
||||
* Lookup802: xcm::VersionedResponse
|
||||
**/
|
||||
XcmVersionedResponse: {
|
||||
_enum: {
|
||||
@@ -2499,7 +2555,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup799: pallet_xcm::pallet::VersionMigrationStage
|
||||
* Lookup808: pallet_xcm::pallet::VersionMigrationStage
|
||||
**/
|
||||
PalletXcmVersionMigrationStage: {
|
||||
_enum: {
|
||||
@@ -2510,7 +2566,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup802: xcm::VersionedAssetId
|
||||
* Lookup811: xcm::VersionedAssetId
|
||||
**/
|
||||
XcmVersionedAssetId: {
|
||||
_enum: {
|
||||
@@ -2521,30 +2577,30 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup803: pallet_xcm::pallet::RemoteLockedFungibleRecord
|
||||
* Lookup812: pallet_xcm::pallet::RemoteLockedFungibleRecord<ConsumerIdentifier, MaxConsumers>
|
||||
**/
|
||||
PalletXcmRemoteLockedFungibleRecord: {
|
||||
amount: 'u128',
|
||||
owner: 'XcmVersionedMultiLocation',
|
||||
locker: 'XcmVersionedMultiLocation',
|
||||
users: 'u32'
|
||||
consumers: 'Vec<(Null,u128)>'
|
||||
},
|
||||
/**
|
||||
* Lookup807: pallet_xcm::pallet::Error<T>
|
||||
* Lookup819: pallet_xcm::pallet::Error<T>
|
||||
**/
|
||||
PalletXcmError: {
|
||||
_enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'InvalidAsset', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse']
|
||||
},
|
||||
/**
|
||||
* Lookup818: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||
* Lookup830: pallet_transaction_payment::ChargeTransactionPayment<T>
|
||||
**/
|
||||
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
|
||||
/**
|
||||
* Lookup819: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||
* Lookup831: polkadot_runtime_common::claims::PrevalidateAttests<T>
|
||||
**/
|
||||
PolkadotRuntimeCommonClaimsPrevalidateAttests: 'Null',
|
||||
/**
|
||||
* Lookup820: polkadot_runtime::Runtime
|
||||
* Lookup832: polkadot_runtime::Runtime
|
||||
**/
|
||||
PolkadotRuntimeRuntime: 'Null'
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,9 +5,9 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { BTreeMap, Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { Compact, Enum, Null, Struct, Vec, u16, u32 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
|
||||
declare module '@polkadot/types/lookup' {
|
||||
/** @name KusamaRuntimeSessionKeys (96) */
|
||||
@@ -108,37 +108,6 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly votes24: Vec<ITuple<[Compact<u32>, Vec<ITuple<[Compact<u16>, Compact<PerU16>]>>, Compact<u16>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletCall (368) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletCall extends Enum {
|
||||
readonly isReportDisputeLostUnsigned: boolean;
|
||||
readonly asReportDisputeLostUnsigned: {
|
||||
readonly disputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof;
|
||||
readonly keyOwnerProof: SpSessionMembershipProof;
|
||||
} & Struct;
|
||||
readonly type: 'ReportDisputeLostUnsigned';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputeProof (369) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputeProof extends Struct {
|
||||
readonly timeSlot: PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
readonly validatorIndex: u32;
|
||||
readonly validatorId: PolkadotPrimitivesV4ValidatorAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot (370) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot extends Struct {
|
||||
readonly sessionIndex: u32;
|
||||
readonly candidateHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind (371) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind extends Enum {
|
||||
readonly isForInvalid: boolean;
|
||||
readonly isAgainstValid: boolean;
|
||||
readonly type: 'ForInvalid' | 'AgainstValid';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntimeHoldReason (540) */
|
||||
interface KusamaRuntimeRuntimeHoldReason extends Enum {
|
||||
readonly isNis: boolean;
|
||||
@@ -152,24 +121,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NftReceipt';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPendingSlashes (810) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPendingSlashes extends Struct {
|
||||
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletError (814) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletError extends Enum {
|
||||
readonly isInvalidKeyOwnershipProof: boolean;
|
||||
readonly isInvalidSessionIndex: boolean;
|
||||
readonly isInvalidCandidateHash: boolean;
|
||||
readonly isInvalidValidatorIndex: boolean;
|
||||
readonly isValidatorIndexIdMismatch: boolean;
|
||||
readonly isDuplicateSlashingReport: boolean;
|
||||
readonly type: 'InvalidKeyOwnershipProof' | 'InvalidSessionIndex' | 'InvalidCandidateHash' | 'InvalidValidatorIndex' | 'ValidatorIndexIdMismatch' | 'DuplicateSlashingReport';
|
||||
}
|
||||
|
||||
/** @name KusamaRuntimeRuntime (857) */
|
||||
/** @name KusamaRuntimeRuntime (860) */
|
||||
type KusamaRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/lookup';
|
||||
|
||||
import type { BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { BTreeMap, BitVec, Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
||||
import type { AccountId32, H256, PerU16 } from '@polkadot/types/interfaces/runtime';
|
||||
@@ -767,7 +767,38 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceUnfreeze';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (358) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletCall (358) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletCall extends Enum {
|
||||
readonly isReportDisputeLostUnsigned: boolean;
|
||||
readonly asReportDisputeLostUnsigned: {
|
||||
readonly disputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof;
|
||||
readonly keyOwnerProof: SpSessionMembershipProof;
|
||||
} & Struct;
|
||||
readonly type: 'ReportDisputeLostUnsigned';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputeProof (359) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputeProof extends Struct {
|
||||
readonly timeSlot: PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
readonly validatorIndex: u32;
|
||||
readonly validatorId: PolkadotPrimitivesV4ValidatorAppPublic;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot (360) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot extends Struct {
|
||||
readonly sessionIndex: u32;
|
||||
readonly candidateHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind (361) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind extends Enum {
|
||||
readonly isForInvalid: boolean;
|
||||
readonly isAgainstValid: boolean;
|
||||
readonly type: 'ForInvalid' | 'AgainstValid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (362) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletCall extends Enum {
|
||||
readonly isRegister: boolean;
|
||||
readonly asRegister: {
|
||||
@@ -814,7 +845,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'RemoveLock' | 'Reserve' | 'AddLock' | 'ScheduleCodeUpgrade' | 'SetCurrentHead';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (359) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletCall (363) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletCall extends Enum {
|
||||
readonly isForceLease: boolean;
|
||||
readonly asForceLease: {
|
||||
@@ -835,7 +866,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (360) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletCall (364) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletCall extends Enum {
|
||||
readonly isNewAuction: boolean;
|
||||
readonly asNewAuction: {
|
||||
@@ -854,7 +885,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (362) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (366) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletCall extends Enum {
|
||||
readonly isCreate: boolean;
|
||||
readonly asCreate: {
|
||||
@@ -910,7 +941,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke' | 'ContributeAll';
|
||||
}
|
||||
|
||||
/** @name SpRuntimeMultiSigner (364) */
|
||||
/** @name SpRuntimeMultiSigner (368) */
|
||||
interface SpRuntimeMultiSigner extends Enum {
|
||||
readonly isEd25519: boolean;
|
||||
readonly asEd25519: SpCoreEd25519Public;
|
||||
@@ -921,10 +952,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
|
||||
}
|
||||
|
||||
/** @name SpCoreEcdsaPublic (365) */
|
||||
/** @name SpCoreEcdsaPublic (369) */
|
||||
interface SpCoreEcdsaPublic extends U8aFixed {}
|
||||
|
||||
/** @name PalletXcmCall (370) */
|
||||
/** @name PalletXcmCall (374) */
|
||||
interface PalletXcmCall extends Enum {
|
||||
readonly isSend: boolean;
|
||||
readonly asSend: {
|
||||
@@ -983,10 +1014,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly feeAssetItem: u32;
|
||||
readonly weightLimit: XcmV3WeightLimit;
|
||||
} & Struct;
|
||||
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
|
||||
readonly isForceSuspension: boolean;
|
||||
readonly asForceSuspension: {
|
||||
readonly suspended: bool;
|
||||
} & Struct;
|
||||
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiLocation (371) */
|
||||
/** @name XcmVersionedMultiLocation (375) */
|
||||
interface XcmVersionedMultiLocation extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2MultiLocation;
|
||||
@@ -995,13 +1030,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiLocation (372) */
|
||||
/** @name XcmV2MultiLocation (376) */
|
||||
interface XcmV2MultiLocation extends Struct {
|
||||
readonly parents: u8;
|
||||
readonly interior: XcmV2MultilocationJunctions;
|
||||
}
|
||||
|
||||
/** @name XcmV2MultilocationJunctions (373) */
|
||||
/** @name XcmV2MultilocationJunctions (377) */
|
||||
interface XcmV2MultilocationJunctions extends Enum {
|
||||
readonly isHere: boolean;
|
||||
readonly isX1: boolean;
|
||||
@@ -1023,7 +1058,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
|
||||
}
|
||||
|
||||
/** @name XcmV2Junction (374) */
|
||||
/** @name XcmV2Junction (378) */
|
||||
interface XcmV2Junction extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly asParachain: Compact<u32>;
|
||||
@@ -1057,7 +1092,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
|
||||
}
|
||||
|
||||
/** @name XcmV2NetworkId (375) */
|
||||
/** @name XcmV2NetworkId (379) */
|
||||
interface XcmV2NetworkId extends Enum {
|
||||
readonly isAny: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -1067,7 +1102,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
|
||||
}
|
||||
|
||||
/** @name XcmV2BodyId (377) */
|
||||
/** @name XcmV2BodyId (381) */
|
||||
interface XcmV2BodyId extends Enum {
|
||||
readonly isUnit: boolean;
|
||||
readonly isNamed: boolean;
|
||||
@@ -1084,7 +1119,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial' | 'Defense' | 'Administration' | 'Treasury';
|
||||
}
|
||||
|
||||
/** @name XcmV2BodyPart (378) */
|
||||
/** @name XcmV2BodyPart (382) */
|
||||
interface XcmV2BodyPart extends Enum {
|
||||
readonly isVoice: boolean;
|
||||
readonly isMembers: boolean;
|
||||
@@ -1109,7 +1144,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedXcm (379) */
|
||||
/** @name XcmVersionedXcm (383) */
|
||||
interface XcmVersionedXcm extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2Xcm;
|
||||
@@ -1118,10 +1153,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name XcmV2Xcm (380) */
|
||||
/** @name XcmV2Xcm (384) */
|
||||
interface XcmV2Xcm extends Vec<XcmV2Instruction> {}
|
||||
|
||||
/** @name XcmV2Instruction (382) */
|
||||
/** @name XcmV2Instruction (386) */
|
||||
interface XcmV2Instruction extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: XcmV2MultiassetMultiAssets;
|
||||
@@ -1241,16 +1276,16 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetMultiAssets (383) */
|
||||
/** @name XcmV2MultiassetMultiAssets (387) */
|
||||
interface XcmV2MultiassetMultiAssets extends Vec<XcmV2MultiAsset> {}
|
||||
|
||||
/** @name XcmV2MultiAsset (385) */
|
||||
/** @name XcmV2MultiAsset (389) */
|
||||
interface XcmV2MultiAsset extends Struct {
|
||||
readonly id: XcmV2MultiassetAssetId;
|
||||
readonly fun: XcmV2MultiassetFungibility;
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetAssetId (386) */
|
||||
/** @name XcmV2MultiassetAssetId (390) */
|
||||
interface XcmV2MultiassetAssetId extends Enum {
|
||||
readonly isConcrete: boolean;
|
||||
readonly asConcrete: XcmV2MultiLocation;
|
||||
@@ -1259,7 +1294,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Concrete' | 'Abstract';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetFungibility (387) */
|
||||
/** @name XcmV2MultiassetFungibility (391) */
|
||||
interface XcmV2MultiassetFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly asFungible: Compact<u128>;
|
||||
@@ -1268,7 +1303,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetAssetInstance (388) */
|
||||
/** @name XcmV2MultiassetAssetInstance (392) */
|
||||
interface XcmV2MultiassetAssetInstance extends Enum {
|
||||
readonly isUndefined: boolean;
|
||||
readonly isIndex: boolean;
|
||||
@@ -1286,7 +1321,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
|
||||
}
|
||||
|
||||
/** @name XcmV2Response (389) */
|
||||
/** @name XcmV2Response (393) */
|
||||
interface XcmV2Response extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isAssets: boolean;
|
||||
@@ -1298,7 +1333,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
|
||||
}
|
||||
|
||||
/** @name XcmV2TraitsError (392) */
|
||||
/** @name XcmV2TraitsError (396) */
|
||||
interface XcmV2TraitsError extends Enum {
|
||||
readonly isOverflow: boolean;
|
||||
readonly isUnimplemented: boolean;
|
||||
@@ -1331,7 +1366,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
|
||||
}
|
||||
|
||||
/** @name XcmV2OriginKind (393) */
|
||||
/** @name XcmV2OriginKind (397) */
|
||||
interface XcmV2OriginKind extends Enum {
|
||||
readonly isNative: boolean;
|
||||
readonly isSovereignAccount: boolean;
|
||||
@@ -1340,12 +1375,12 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
||||
}
|
||||
|
||||
/** @name XcmDoubleEncoded (394) */
|
||||
/** @name XcmDoubleEncoded (398) */
|
||||
interface XcmDoubleEncoded extends Struct {
|
||||
readonly encoded: Bytes;
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetMultiAssetFilter (395) */
|
||||
/** @name XcmV2MultiassetMultiAssetFilter (399) */
|
||||
interface XcmV2MultiassetMultiAssetFilter extends Enum {
|
||||
readonly isDefinite: boolean;
|
||||
readonly asDefinite: XcmV2MultiassetMultiAssets;
|
||||
@@ -1354,7 +1389,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Definite' | 'Wild';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetWildMultiAsset (396) */
|
||||
/** @name XcmV2MultiassetWildMultiAsset (400) */
|
||||
interface XcmV2MultiassetWildMultiAsset extends Enum {
|
||||
readonly isAll: boolean;
|
||||
readonly isAllOf: boolean;
|
||||
@@ -1365,14 +1400,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'All' | 'AllOf';
|
||||
}
|
||||
|
||||
/** @name XcmV2MultiassetWildFungibility (397) */
|
||||
/** @name XcmV2MultiassetWildFungibility (401) */
|
||||
interface XcmV2MultiassetWildFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly isNonFungible: boolean;
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV2WeightLimit (398) */
|
||||
/** @name XcmV2WeightLimit (402) */
|
||||
interface XcmV2WeightLimit extends Enum {
|
||||
readonly isUnlimited: boolean;
|
||||
readonly isLimited: boolean;
|
||||
@@ -1380,10 +1415,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unlimited' | 'Limited';
|
||||
}
|
||||
|
||||
/** @name XcmV3Xcm (399) */
|
||||
/** @name XcmV3Xcm (403) */
|
||||
interface XcmV3Xcm extends Vec<XcmV3Instruction> {}
|
||||
|
||||
/** @name XcmV3Instruction (401) */
|
||||
/** @name XcmV3Instruction (405) */
|
||||
interface XcmV3Instruction extends Enum {
|
||||
readonly isWithdrawAsset: boolean;
|
||||
readonly asWithdrawAsset: XcmV3MultiassetMultiAssets;
|
||||
@@ -1565,16 +1600,16 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetMultiAssets (402) */
|
||||
/** @name XcmV3MultiassetMultiAssets (406) */
|
||||
interface XcmV3MultiassetMultiAssets extends Vec<XcmV3MultiAsset> {}
|
||||
|
||||
/** @name XcmV3MultiAsset (404) */
|
||||
/** @name XcmV3MultiAsset (408) */
|
||||
interface XcmV3MultiAsset extends Struct {
|
||||
readonly id: XcmV3MultiassetAssetId;
|
||||
readonly fun: XcmV3MultiassetFungibility;
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetAssetId (405) */
|
||||
/** @name XcmV3MultiassetAssetId (409) */
|
||||
interface XcmV3MultiassetAssetId extends Enum {
|
||||
readonly isConcrete: boolean;
|
||||
readonly asConcrete: XcmV3MultiLocation;
|
||||
@@ -1583,7 +1618,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Concrete' | 'Abstract';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetFungibility (406) */
|
||||
/** @name XcmV3MultiassetFungibility (410) */
|
||||
interface XcmV3MultiassetFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly asFungible: Compact<u128>;
|
||||
@@ -1592,7 +1627,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetAssetInstance (407) */
|
||||
/** @name XcmV3MultiassetAssetInstance (411) */
|
||||
interface XcmV3MultiassetAssetInstance extends Enum {
|
||||
readonly isUndefined: boolean;
|
||||
readonly isIndex: boolean;
|
||||
@@ -1608,7 +1643,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32';
|
||||
}
|
||||
|
||||
/** @name XcmV3Response (408) */
|
||||
/** @name XcmV3Response (412) */
|
||||
interface XcmV3Response extends Enum {
|
||||
readonly isNull: boolean;
|
||||
readonly isAssets: boolean;
|
||||
@@ -1624,7 +1659,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult';
|
||||
}
|
||||
|
||||
/** @name XcmV3TraitsError (411) */
|
||||
/** @name XcmV3TraitsError (415) */
|
||||
interface XcmV3TraitsError extends Enum {
|
||||
readonly isOverflow: boolean;
|
||||
readonly isUnimplemented: boolean;
|
||||
@@ -1671,7 +1706,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'LocationFull' | 'LocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'ExpectationFalse' | 'PalletNotFound' | 'NameMismatch' | 'VersionIncompatible' | 'HoldingWouldOverflow' | 'ExportError' | 'ReanchorFailed' | 'NoDeal' | 'FeesNotMet' | 'LockError' | 'NoPermission' | 'Unanchored' | 'NotDepositable' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable' | 'ExceedsStackLimit';
|
||||
}
|
||||
|
||||
/** @name XcmV3PalletInfo (413) */
|
||||
/** @name XcmV3PalletInfo (417) */
|
||||
interface XcmV3PalletInfo extends Struct {
|
||||
readonly index: Compact<u32>;
|
||||
readonly name: Bytes;
|
||||
@@ -1681,7 +1716,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly patch: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name XcmV3MaybeErrorCode (416) */
|
||||
/** @name XcmV3MaybeErrorCode (420) */
|
||||
interface XcmV3MaybeErrorCode extends Enum {
|
||||
readonly isSuccess: boolean;
|
||||
readonly isError: boolean;
|
||||
@@ -1691,14 +1726,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Success' | 'Error' | 'TruncatedError';
|
||||
}
|
||||
|
||||
/** @name XcmV3QueryResponseInfo (419) */
|
||||
/** @name XcmV3QueryResponseInfo (423) */
|
||||
interface XcmV3QueryResponseInfo extends Struct {
|
||||
readonly destination: XcmV3MultiLocation;
|
||||
readonly queryId: Compact<u64>;
|
||||
readonly maxWeight: SpWeightsWeightV2Weight;
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetMultiAssetFilter (420) */
|
||||
/** @name XcmV3MultiassetMultiAssetFilter (424) */
|
||||
interface XcmV3MultiassetMultiAssetFilter extends Enum {
|
||||
readonly isDefinite: boolean;
|
||||
readonly asDefinite: XcmV3MultiassetMultiAssets;
|
||||
@@ -1707,7 +1742,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Definite' | 'Wild';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetWildMultiAsset (421) */
|
||||
/** @name XcmV3MultiassetWildMultiAsset (425) */
|
||||
interface XcmV3MultiassetWildMultiAsset extends Enum {
|
||||
readonly isAll: boolean;
|
||||
readonly isAllOf: boolean;
|
||||
@@ -1726,14 +1761,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted';
|
||||
}
|
||||
|
||||
/** @name XcmV3MultiassetWildFungibility (422) */
|
||||
/** @name XcmV3MultiassetWildFungibility (426) */
|
||||
interface XcmV3MultiassetWildFungibility extends Enum {
|
||||
readonly isFungible: boolean;
|
||||
readonly isNonFungible: boolean;
|
||||
readonly type: 'Fungible' | 'NonFungible';
|
||||
}
|
||||
|
||||
/** @name XcmV3WeightLimit (423) */
|
||||
/** @name XcmV3WeightLimit (427) */
|
||||
interface XcmV3WeightLimit extends Enum {
|
||||
readonly isUnlimited: boolean;
|
||||
readonly isLimited: boolean;
|
||||
@@ -1741,7 +1776,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unlimited' | 'Limited';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedMultiAssets (424) */
|
||||
/** @name XcmVersionedMultiAssets (428) */
|
||||
interface XcmVersionedMultiAssets extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2MultiassetMultiAssets;
|
||||
@@ -1750,7 +1785,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (440) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletEvent (444) */
|
||||
interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
|
||||
readonly isClaimed: boolean;
|
||||
readonly asClaimed: {
|
||||
@@ -1761,7 +1796,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Claimed';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (456) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (460) */
|
||||
interface PolkadotRuntimeParachainsInclusionPalletEvent extends Enum {
|
||||
readonly isCandidateBacked: boolean;
|
||||
readonly asCandidateBacked: ITuple<[PolkadotPrimitivesV4CandidateReceipt, Bytes, u32, u32]>;
|
||||
@@ -1772,13 +1807,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CandidateBacked' | 'CandidateIncluded' | 'CandidateTimedOut';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4CandidateReceipt (457) */
|
||||
/** @name PolkadotPrimitivesV4CandidateReceipt (461) */
|
||||
interface PolkadotPrimitivesV4CandidateReceipt extends Struct {
|
||||
readonly descriptor: PolkadotPrimitivesV4CandidateDescriptor;
|
||||
readonly commitmentsHash: H256;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (460) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletEvent (464) */
|
||||
interface PolkadotRuntimeParachainsParasPalletEvent extends Enum {
|
||||
readonly isCurrentCodeUpdated: boolean;
|
||||
readonly asCurrentCodeUpdated: u32;
|
||||
@@ -1799,7 +1834,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued' | 'PvfCheckStarted' | 'PvfCheckAccepted' | 'PvfCheckRejected';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (461) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletEvent (465) */
|
||||
interface PolkadotRuntimeParachainsUmpPalletEvent extends Enum {
|
||||
readonly isInvalidFormat: boolean;
|
||||
readonly asInvalidFormat: U8aFixed;
|
||||
@@ -1818,7 +1853,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedUpward' | 'WeightExhausted' | 'UpwardMessagesReceived' | 'OverweightEnqueued' | 'OverweightServiced';
|
||||
}
|
||||
|
||||
/** @name XcmV3TraitsOutcome (462) */
|
||||
/** @name XcmV3TraitsOutcome (466) */
|
||||
interface XcmV3TraitsOutcome extends Enum {
|
||||
readonly isComplete: boolean;
|
||||
readonly asComplete: SpWeightsWeightV2Weight;
|
||||
@@ -1829,7 +1864,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Complete' | 'Incomplete' | 'Error';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (463) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (467) */
|
||||
interface PolkadotRuntimeParachainsHrmpPalletEvent extends Enum {
|
||||
readonly isOpenChannelRequested: boolean;
|
||||
readonly asOpenChannelRequested: ITuple<[u32, u32, u32, u32]>;
|
||||
@@ -1844,7 +1879,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'OpenChannelRequested' | 'OpenChannelCanceled' | 'OpenChannelAccepted' | 'ChannelClosed' | 'HrmpChannelForceOpened';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (464) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (468) */
|
||||
interface PolkadotRuntimeParachainsDisputesPalletEvent extends Enum {
|
||||
readonly isDisputeInitiated: boolean;
|
||||
readonly asDisputeInitiated: ITuple<[H256, PolkadotRuntimeParachainsDisputesDisputeLocation]>;
|
||||
@@ -1855,21 +1890,21 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'Revert';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (465) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (469) */
|
||||
interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
|
||||
readonly isLocal: boolean;
|
||||
readonly isRemote: boolean;
|
||||
readonly type: 'Local' | 'Remote';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (466) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (470) */
|
||||
interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
|
||||
readonly isValid: boolean;
|
||||
readonly isInvalid: boolean;
|
||||
readonly type: 'Valid' | 'Invalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (467) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletEvent (471) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletEvent extends Enum {
|
||||
readonly isRegistered: boolean;
|
||||
readonly asRegistered: {
|
||||
@@ -1885,10 +1920,15 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly paraId: u32;
|
||||
readonly who: AccountId32;
|
||||
} & Struct;
|
||||
readonly type: 'Registered' | 'Deregistered' | 'Reserved';
|
||||
readonly isSwapped: boolean;
|
||||
readonly asSwapped: {
|
||||
readonly paraId: u32;
|
||||
readonly otherId: u32;
|
||||
} & Struct;
|
||||
readonly type: 'Registered' | 'Deregistered' | 'Reserved' | 'Swapped';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (468) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletEvent (472) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletEvent extends Enum {
|
||||
readonly isNewLeasePeriod: boolean;
|
||||
readonly asNewLeasePeriod: {
|
||||
@@ -1906,7 +1946,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewLeasePeriod' | 'Leased';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (469) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (473) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletEvent extends Enum {
|
||||
readonly isAuctionStarted: boolean;
|
||||
readonly asAuctionStarted: {
|
||||
@@ -1951,7 +1991,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (470) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (474) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletEvent extends Enum {
|
||||
readonly isCreated: boolean;
|
||||
readonly asCreated: {
|
||||
@@ -2003,7 +2043,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
|
||||
}
|
||||
|
||||
/** @name PalletXcmEvent (471) */
|
||||
/** @name PalletXcmEvent (475) */
|
||||
interface PalletXcmEvent extends Enum {
|
||||
readonly isAttempted: boolean;
|
||||
readonly asAttempted: XcmV3TraitsOutcome;
|
||||
@@ -2054,7 +2094,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail' | 'InvalidQuerierVersion' | 'InvalidQuerier' | 'VersionNotifyStarted' | 'VersionNotifyRequested' | 'VersionNotifyUnrequested' | 'FeesPaid' | 'AssetsClaimed';
|
||||
}
|
||||
|
||||
/** @name PalletReferendaReferendumInfo (617) */
|
||||
/** @name PalletReferendaReferendumInfo (621) */
|
||||
interface PalletReferendaReferendumInfo extends Enum {
|
||||
readonly isOngoing: boolean;
|
||||
readonly asOngoing: PalletReferendaReferendumStatus;
|
||||
@@ -2071,7 +2111,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Ongoing' | 'Approved' | 'Rejected' | 'Cancelled' | 'TimedOut' | 'Killed';
|
||||
}
|
||||
|
||||
/** @name PalletReferendaReferendumStatus (618) */
|
||||
/** @name PalletReferendaReferendumStatus (622) */
|
||||
interface PalletReferendaReferendumStatus extends Struct {
|
||||
readonly track: u16;
|
||||
readonly origin: PolkadotRuntimeOriginCaller;
|
||||
@@ -2086,7 +2126,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly alarm: Option<ITuple<[u32, ITuple<[u32, u32]>]>>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletError (636) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPalletError (640) */
|
||||
interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
|
||||
readonly isInvalidEthereumSignature: boolean;
|
||||
readonly isSignerHasNoClaim: boolean;
|
||||
@@ -2097,7 +2137,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (712) */
|
||||
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (716) */
|
||||
interface PolkadotRuntimeParachainsConfigurationHostConfiguration extends Struct {
|
||||
readonly maxCodeSize: u32;
|
||||
readonly maxHeadDataSize: u32;
|
||||
@@ -2144,19 +2184,19 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly minimumValidationUpgradeDelay: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (715) */
|
||||
/** @name PolkadotRuntimeParachainsConfigurationPalletError (719) */
|
||||
interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
|
||||
readonly isInvalidNewValue: boolean;
|
||||
readonly type: 'InvalidNewValue';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (718) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (722) */
|
||||
interface PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord extends Struct {
|
||||
readonly bitfield: BitVec;
|
||||
readonly submittedAt: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (719) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionCandidatePendingAvailability (723) */
|
||||
interface PolkadotRuntimeParachainsInclusionCandidatePendingAvailability extends Struct {
|
||||
readonly core: u32;
|
||||
readonly hash_: H256;
|
||||
@@ -2168,7 +2208,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly backingGroup: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletError (720) */
|
||||
/** @name PolkadotRuntimeParachainsInclusionPalletError (724) */
|
||||
interface PolkadotRuntimeParachainsInclusionPalletError extends Enum {
|
||||
readonly isUnsortedOrDuplicateValidatorIndices: boolean;
|
||||
readonly isUnsortedOrDuplicateDisputeStatementSet: boolean;
|
||||
@@ -2202,14 +2242,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'UnsortedOrDuplicateValidatorIndices' | 'UnsortedOrDuplicateDisputeStatementSet' | 'UnsortedOrDuplicateBackedCandidates' | 'UnexpectedRelayParent' | 'WrongBitfieldSize' | 'BitfieldAllZeros' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4ScrapedOnChainVotes (721) */
|
||||
/** @name PolkadotPrimitivesV4ScrapedOnChainVotes (725) */
|
||||
interface PolkadotPrimitivesV4ScrapedOnChainVotes extends Struct {
|
||||
readonly session: u32;
|
||||
readonly backingValidatorsPerCandidate: Vec<ITuple<[PolkadotPrimitivesV4CandidateReceipt, Vec<ITuple<[u32, PolkadotPrimitivesV4ValidityAttestation]>>]>>;
|
||||
readonly disputes: Vec<PolkadotPrimitivesV4DisputeStatementSet>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletError (726) */
|
||||
/** @name PolkadotRuntimeParachainsParasInherentPalletError (730) */
|
||||
interface PolkadotRuntimeParachainsParasInherentPalletError extends Enum {
|
||||
readonly isTooManyInclusionInherents: boolean;
|
||||
readonly isInvalidParentHeader: boolean;
|
||||
@@ -2220,28 +2260,28 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight' | 'DisputeStatementsUnsortedOrDuplicates' | 'DisputeInvalid';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (728) */
|
||||
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (732) */
|
||||
interface PolkadotRuntimeParachainsSchedulerParathreadClaimQueue extends Struct {
|
||||
readonly queue: Vec<PolkadotRuntimeParachainsSchedulerQueuedParathread>;
|
||||
readonly nextCoreOffset: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (730) */
|
||||
/** @name PolkadotRuntimeParachainsSchedulerQueuedParathread (734) */
|
||||
interface PolkadotRuntimeParachainsSchedulerQueuedParathread extends Struct {
|
||||
readonly claim: PolkadotPrimitivesV4ParathreadEntry;
|
||||
readonly coreOffset: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4ParathreadEntry (731) */
|
||||
/** @name PolkadotPrimitivesV4ParathreadEntry (735) */
|
||||
interface PolkadotPrimitivesV4ParathreadEntry extends Struct {
|
||||
readonly claim: PolkadotPrimitivesV4ParathreadClaim;
|
||||
readonly retries: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4ParathreadClaim (732) */
|
||||
/** @name PolkadotPrimitivesV4ParathreadClaim (736) */
|
||||
interface PolkadotPrimitivesV4ParathreadClaim extends ITuple<[u32, PolkadotPrimitivesV4CollatorAppPublic]> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV4CoreOccupied (735) */
|
||||
/** @name PolkadotPrimitivesV4CoreOccupied (739) */
|
||||
interface PolkadotPrimitivesV4CoreOccupied extends Enum {
|
||||
readonly isParathread: boolean;
|
||||
readonly asParathread: PolkadotPrimitivesV4ParathreadEntry;
|
||||
@@ -2249,7 +2289,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parathread' | 'Parachain';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (738) */
|
||||
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (742) */
|
||||
interface PolkadotRuntimeParachainsSchedulerCoreAssignment extends Struct {
|
||||
readonly core: u32;
|
||||
readonly paraId: u32;
|
||||
@@ -2257,7 +2297,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly groupIdx: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (739) */
|
||||
/** @name PolkadotRuntimeParachainsSchedulerAssignmentKind (743) */
|
||||
interface PolkadotRuntimeParachainsSchedulerAssignmentKind extends Enum {
|
||||
readonly isParachain: boolean;
|
||||
readonly isParathread: boolean;
|
||||
@@ -2265,7 +2305,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Parachain' | 'Parathread';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (740) */
|
||||
/** @name PolkadotRuntimeParachainsParasPvfCheckActiveVoteState (744) */
|
||||
interface PolkadotRuntimeParachainsParasPvfCheckActiveVoteState extends Struct {
|
||||
readonly votesAccept: BitVec;
|
||||
readonly votesReject: BitVec;
|
||||
@@ -2274,7 +2314,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly causes: Vec<PolkadotRuntimeParachainsParasPvfCheckCause>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (742) */
|
||||
/** @name PolkadotRuntimeParachainsParasPvfCheckCause (746) */
|
||||
interface PolkadotRuntimeParachainsParasPvfCheckCause extends Enum {
|
||||
readonly isOnboarding: boolean;
|
||||
readonly asOnboarding: u32;
|
||||
@@ -2286,7 +2326,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Onboarding' | 'Upgrade';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (744) */
|
||||
/** @name PolkadotRuntimeParachainsParasParaLifecycle (748) */
|
||||
interface PolkadotRuntimeParachainsParasParaLifecycle extends Enum {
|
||||
readonly isOnboarding: boolean;
|
||||
readonly isParathread: boolean;
|
||||
@@ -2298,39 +2338,39 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (746) */
|
||||
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (750) */
|
||||
interface PolkadotRuntimeParachainsParasParaPastCodeMeta extends Struct {
|
||||
readonly upgradeTimes: Vec<PolkadotRuntimeParachainsParasReplacementTimes>;
|
||||
readonly lastPruned: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (748) */
|
||||
/** @name PolkadotRuntimeParachainsParasReplacementTimes (752) */
|
||||
interface PolkadotRuntimeParachainsParasReplacementTimes extends Struct {
|
||||
readonly expectedAt: u32;
|
||||
readonly activatedAt: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4UpgradeGoAhead (750) */
|
||||
/** @name PolkadotPrimitivesV4UpgradeGoAhead (754) */
|
||||
interface PolkadotPrimitivesV4UpgradeGoAhead extends Enum {
|
||||
readonly isAbort: boolean;
|
||||
readonly isGoAhead: boolean;
|
||||
readonly type: 'Abort' | 'GoAhead';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4UpgradeRestriction (751) */
|
||||
/** @name PolkadotPrimitivesV4UpgradeRestriction (755) */
|
||||
interface PolkadotPrimitivesV4UpgradeRestriction extends Enum {
|
||||
readonly isPresent: boolean;
|
||||
readonly type: 'Present';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (752) */
|
||||
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (756) */
|
||||
interface PolkadotRuntimeParachainsParasParaGenesisArgs extends Struct {
|
||||
readonly genesisHead: Bytes;
|
||||
readonly validationCode: Bytes;
|
||||
readonly paraKind: bool;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsParasPalletError (753) */
|
||||
/** @name PolkadotRuntimeParachainsParasPalletError (757) */
|
||||
interface PolkadotRuntimeParachainsParasPalletError extends Enum {
|
||||
readonly isNotRegistered: boolean;
|
||||
readonly isCannotOnboard: boolean;
|
||||
@@ -2343,32 +2383,31 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isPvfCheckInvalidSignature: boolean;
|
||||
readonly isPvfCheckDoubleVote: boolean;
|
||||
readonly isPvfCheckSubjectInvalid: boolean;
|
||||
readonly isPvfCheckDisabled: boolean;
|
||||
readonly isCannotUpgradeCode: boolean;
|
||||
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'PvfCheckDisabled' | 'CannotUpgradeCode';
|
||||
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade' | 'PvfCheckStatementStale' | 'PvfCheckStatementFuture' | 'PvfCheckValidatorIndexOutOfBounds' | 'PvfCheckInvalidSignature' | 'PvfCheckDoubleVote' | 'PvfCheckSubjectInvalid' | 'CannotUpgradeCode';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (755) */
|
||||
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (759) */
|
||||
interface PolkadotRuntimeParachainsInitializerBufferedSessionChange extends Struct {
|
||||
readonly validators: Vec<PolkadotPrimitivesV4ValidatorAppPublic>;
|
||||
readonly queued: Vec<PolkadotPrimitivesV4ValidatorAppPublic>;
|
||||
readonly sessionIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (757) */
|
||||
/** @name PolkadotCorePrimitivesInboundDownwardMessage (761) */
|
||||
interface PolkadotCorePrimitivesInboundDownwardMessage extends Struct {
|
||||
readonly sentAt: u32;
|
||||
readonly msg: Bytes;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletError (759) */
|
||||
/** @name PolkadotRuntimeParachainsUmpPalletError (763) */
|
||||
interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
|
||||
readonly isUnknownMessageIndex: boolean;
|
||||
readonly isWeightOverLimit: boolean;
|
||||
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (760) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (764) */
|
||||
interface PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest extends Struct {
|
||||
readonly confirmed: bool;
|
||||
readonly age: u32;
|
||||
@@ -2378,7 +2417,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly maxTotalSize: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (762) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpHrmpChannel (766) */
|
||||
interface PolkadotRuntimeParachainsHrmpHrmpChannel extends Struct {
|
||||
readonly maxCapacity: u32;
|
||||
readonly maxTotalSize: u32;
|
||||
@@ -2390,13 +2429,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly recipientDeposit: u128;
|
||||
}
|
||||
|
||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (764) */
|
||||
/** @name PolkadotCorePrimitivesInboundHrmpMessage (768) */
|
||||
interface PolkadotCorePrimitivesInboundHrmpMessage extends Struct {
|
||||
readonly sentAt: u32;
|
||||
readonly data: Bytes;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (767) */
|
||||
/** @name PolkadotRuntimeParachainsHrmpPalletError (771) */
|
||||
interface PolkadotRuntimeParachainsHrmpPalletError extends Enum {
|
||||
readonly isOpenHrmpChannelToSelf: boolean;
|
||||
readonly isOpenHrmpChannelInvalidRecipient: boolean;
|
||||
@@ -2420,7 +2459,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed' | 'WrongWitness';
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4SessionInfo (769) */
|
||||
/** @name PolkadotPrimitivesV4SessionInfo (773) */
|
||||
interface PolkadotPrimitivesV4SessionInfo extends Struct {
|
||||
readonly activeValidatorIndices: Vec<u32>;
|
||||
readonly randomSeed: U8aFixed;
|
||||
@@ -2437,13 +2476,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly neededApprovals: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotPrimitivesV4IndexedVecValidatorIndex (770) */
|
||||
/** @name PolkadotPrimitivesV4IndexedVecValidatorIndex (774) */
|
||||
interface PolkadotPrimitivesV4IndexedVecValidatorIndex extends Vec<PolkadotPrimitivesV4ValidatorAppPublic> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV4IndexedVecGroupIndex (772) */
|
||||
/** @name PolkadotPrimitivesV4IndexedVecGroupIndex (776) */
|
||||
interface PolkadotPrimitivesV4IndexedVecGroupIndex extends Vec<Vec<u32>> {}
|
||||
|
||||
/** @name PolkadotPrimitivesV4DisputeState (774) */
|
||||
/** @name PolkadotPrimitivesV4DisputeState (778) */
|
||||
interface PolkadotPrimitivesV4DisputeState extends Struct {
|
||||
readonly validatorsFor: BitVec;
|
||||
readonly validatorsAgainst: BitVec;
|
||||
@@ -2451,7 +2490,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly concludedAt: Option<u32>;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (776) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesPalletError (780) */
|
||||
interface PolkadotRuntimeParachainsDisputesPalletError extends Enum {
|
||||
readonly isDuplicateDisputeStatementSets: boolean;
|
||||
readonly isAncientDisputeStatement: boolean;
|
||||
@@ -2465,14 +2504,31 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'MaliciousBacker' | 'MissingBackingVotes' | 'UnconfirmedDispute';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (777) */
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPendingSlashes (781) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPendingSlashes extends Struct {
|
||||
readonly keys_: BTreeMap<u32, PolkadotPrimitivesV4ValidatorAppPublic>;
|
||||
readonly kind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeParachainsDisputesSlashingPalletError (785) */
|
||||
interface PolkadotRuntimeParachainsDisputesSlashingPalletError extends Enum {
|
||||
readonly isInvalidKeyOwnershipProof: boolean;
|
||||
readonly isInvalidSessionIndex: boolean;
|
||||
readonly isInvalidCandidateHash: boolean;
|
||||
readonly isInvalidValidatorIndex: boolean;
|
||||
readonly isValidatorIndexIdMismatch: boolean;
|
||||
readonly isDuplicateSlashingReport: boolean;
|
||||
readonly type: 'InvalidKeyOwnershipProof' | 'InvalidSessionIndex' | 'InvalidCandidateHash' | 'InvalidValidatorIndex' | 'ValidatorIndexIdMismatch' | 'DuplicateSlashingReport';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (786) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarParaInfo extends Struct {
|
||||
readonly manager: AccountId32;
|
||||
readonly deposit: u128;
|
||||
readonly locked: bool;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (778) */
|
||||
/** @name PolkadotRuntimeCommonParasRegistrarPalletError (787) */
|
||||
interface PolkadotRuntimeCommonParasRegistrarPalletError extends Enum {
|
||||
readonly isNotRegistered: boolean;
|
||||
readonly isAlreadyRegistered: boolean;
|
||||
@@ -2491,14 +2547,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode' | 'CannotSwap';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletError (780) */
|
||||
/** @name PolkadotRuntimeCommonSlotsPalletError (789) */
|
||||
interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
|
||||
readonly isParaNotOnboarding: boolean;
|
||||
readonly isLeaseError: boolean;
|
||||
readonly type: 'ParaNotOnboarding' | 'LeaseError';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (785) */
|
||||
/** @name PolkadotRuntimeCommonAuctionsPalletError (794) */
|
||||
interface PolkadotRuntimeCommonAuctionsPalletError extends Enum {
|
||||
readonly isAuctionInProgress: boolean;
|
||||
readonly isLeasePeriodInPast: boolean;
|
||||
@@ -2510,7 +2566,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (786) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (795) */
|
||||
interface PolkadotRuntimeCommonCrowdloanFundInfo extends Struct {
|
||||
readonly depositor: AccountId32;
|
||||
readonly verifier: Option<SpRuntimeMultiSigner>;
|
||||
@@ -2524,7 +2580,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly fundIndex: u32;
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (787) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanLastContribution (796) */
|
||||
interface PolkadotRuntimeCommonCrowdloanLastContribution extends Enum {
|
||||
readonly isNever: boolean;
|
||||
readonly isPreEnding: boolean;
|
||||
@@ -2534,7 +2590,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Never' | 'PreEnding' | 'Ending';
|
||||
}
|
||||
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (788) */
|
||||
/** @name PolkadotRuntimeCommonCrowdloanPalletError (797) */
|
||||
interface PolkadotRuntimeCommonCrowdloanPalletError extends Enum {
|
||||
readonly isFirstPeriodInPast: boolean;
|
||||
readonly isFirstPeriodTooFarInFuture: boolean;
|
||||
@@ -2562,7 +2618,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
|
||||
}
|
||||
|
||||
/** @name PalletXcmQueryStatus (789) */
|
||||
/** @name PalletXcmQueryStatus (798) */
|
||||
interface PalletXcmQueryStatus extends Enum {
|
||||
readonly isPending: boolean;
|
||||
readonly asPending: {
|
||||
@@ -2584,7 +2640,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedResponse (793) */
|
||||
/** @name XcmVersionedResponse (802) */
|
||||
interface XcmVersionedResponse extends Enum {
|
||||
readonly isV2: boolean;
|
||||
readonly asV2: XcmV2Response;
|
||||
@@ -2593,7 +2649,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'V2' | 'V3';
|
||||
}
|
||||
|
||||
/** @name PalletXcmVersionMigrationStage (799) */
|
||||
/** @name PalletXcmVersionMigrationStage (808) */
|
||||
interface PalletXcmVersionMigrationStage extends Enum {
|
||||
readonly isMigrateSupportedVersion: boolean;
|
||||
readonly isMigrateVersionNotifiers: boolean;
|
||||
@@ -2603,22 +2659,22 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
|
||||
}
|
||||
|
||||
/** @name XcmVersionedAssetId (802) */
|
||||
/** @name XcmVersionedAssetId (811) */
|
||||
interface XcmVersionedAssetId extends Enum {
|
||||
readonly isV3: boolean;
|
||||
readonly asV3: XcmV3MultiassetAssetId;
|
||||
readonly type: 'V3';
|
||||
}
|
||||
|
||||
/** @name PalletXcmRemoteLockedFungibleRecord (803) */
|
||||
/** @name PalletXcmRemoteLockedFungibleRecord (812) */
|
||||
interface PalletXcmRemoteLockedFungibleRecord extends Struct {
|
||||
readonly amount: u128;
|
||||
readonly owner: XcmVersionedMultiLocation;
|
||||
readonly locker: XcmVersionedMultiLocation;
|
||||
readonly users: u32;
|
||||
readonly consumers: Vec<ITuple<[Null, u128]>>;
|
||||
}
|
||||
|
||||
/** @name PalletXcmError (807) */
|
||||
/** @name PalletXcmError (819) */
|
||||
interface PalletXcmError extends Enum {
|
||||
readonly isUnreachable: boolean;
|
||||
readonly isSendFailure: boolean;
|
||||
@@ -2643,13 +2699,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'InvalidAsset' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse';
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentChargeTransactionPayment (818) */
|
||||
/** @name PalletTransactionPaymentChargeTransactionPayment (830) */
|
||||
interface PalletTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
|
||||
|
||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (819) */
|
||||
/** @name PolkadotRuntimeCommonClaimsPrevalidateAttests (831) */
|
||||
type PolkadotRuntimeCommonClaimsPrevalidateAttests = Null;
|
||||
|
||||
/** @name PolkadotRuntimeRuntime (820) */
|
||||
/** @name PolkadotRuntimeRuntime (832) */
|
||||
type PolkadotRuntimeRuntime = Null;
|
||||
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -41,7 +41,7 @@ import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, A
|
||||
import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';
|
||||
import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';
|
||||
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
|
||||
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV15, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletMetadataV15, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, RuntimeApiMetadataLatest, RuntimeApiMetadataV15, RuntimeApiMethodMetadataV15, RuntimeApiMethodParamMetadataV15, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrHash, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
@@ -648,6 +648,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
MetadataV12: MetadataV12;
|
||||
MetadataV13: MetadataV13;
|
||||
MetadataV14: MetadataV14;
|
||||
MetadataV15: MetadataV15;
|
||||
MetadataV9: MetadataV9;
|
||||
MigrationStatusResult: MigrationStatusResult;
|
||||
MmrBatchProof: MmrBatchProof;
|
||||
@@ -759,6 +760,7 @@ declare module '@polkadot/types/types/registry' {
|
||||
PalletId: PalletId;
|
||||
PalletMetadataLatest: PalletMetadataLatest;
|
||||
PalletMetadataV14: PalletMetadataV14;
|
||||
PalletMetadataV15: PalletMetadataV15;
|
||||
PalletsOrigin: PalletsOrigin;
|
||||
PalletStorageMetadataLatest: PalletStorageMetadataLatest;
|
||||
PalletStorageMetadataV14: PalletStorageMetadataV14;
|
||||
@@ -891,6 +893,10 @@ declare module '@polkadot/types/types/registry' {
|
||||
RoundSnapshot: RoundSnapshot;
|
||||
RoundState: RoundState;
|
||||
RpcMethods: RpcMethods;
|
||||
RuntimeApiMetadataLatest: RuntimeApiMetadataLatest;
|
||||
RuntimeApiMetadataV15: RuntimeApiMetadataV15;
|
||||
RuntimeApiMethodMetadataV15: RuntimeApiMethodMetadataV15;
|
||||
RuntimeApiMethodParamMetadataV15: RuntimeApiMethodParamMetadataV15;
|
||||
RuntimeCall: RuntimeCall;
|
||||
RuntimeDbWeight: RuntimeDbWeight;
|
||||
RuntimeDispatchInfo: RuntimeDispatchInfo;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@polkadot/types/types/registry';
|
||||
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletNisHoldReason, PolkadotRuntimeParachainsDisputesSlashingDisputeProof, PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot, PolkadotRuntimeParachainsDisputesSlashingPalletCall, PolkadotRuntimeParachainsDisputesSlashingPalletError, PolkadotRuntimeParachainsDisputesSlashingPendingSlashes, PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind } from '@polkadot/types/lookup';
|
||||
import type { KusamaRuntimeGovernanceOriginsPalletCustomOriginsOrigin, KusamaRuntimeNposCompactSolution24, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeRuntime, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletNisHoldReason } from '@polkadot/types/lookup';
|
||||
|
||||
declare module '@polkadot/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
@@ -17,11 +17,5 @@ declare module '@polkadot/types/types/registry' {
|
||||
KusamaRuntimeRuntimeHoldReason: KusamaRuntimeRuntimeHoldReason;
|
||||
KusamaRuntimeSessionKeys: KusamaRuntimeSessionKeys;
|
||||
PalletNisHoldReason: PalletNisHoldReason;
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputeProof: PolkadotRuntimeParachainsDisputesSlashingDisputeProof;
|
||||
PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot: PolkadotRuntimeParachainsDisputesSlashingDisputesTimeSlot;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletCall: PolkadotRuntimeParachainsDisputesSlashingPalletCall;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPalletError: PolkadotRuntimeParachainsDisputesSlashingPalletError;
|
||||
PolkadotRuntimeParachainsDisputesSlashingPendingSlashes: PolkadotRuntimeParachainsDisputesSlashingPendingSlashes;
|
||||
PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind: PolkadotRuntimeParachainsDisputesSlashingSlashingOffenceKind;
|
||||
} // InterfaceTypes
|
||||
} // declare module
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.4.1",
|
||||
"version": "10.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.0.1",
|
||||
"@polkadot/x-bigint": "^12.0.1",
|
||||
"@polkadot/util": "^12.2.1",
|
||||
"@polkadot/x-bigint": "^12.2.1",
|
||||
"tslib": "^2.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.4.1",
|
||||
"@polkadot/types-augment": "10.4.1",
|
||||
"@polkadot/types-support": "10.4.1",
|
||||
"@polkadot/util-crypto": "^12.0.1"
|
||||
"@polkadot/types": "10.7.1",
|
||||
"@polkadot/types-augment": "10.7.1",
|
||||
"@polkadot/types-support": "10.7.1",
|
||||
"@polkadot/util-crypto": "^12.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,9 +42,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
public get encodedLength (): number {
|
||||
// We need to loop through all entries since they may have a variable length themselves,
|
||||
// e.g. when a Vec or Compact is contained withing, it has a variable length based on data
|
||||
let total = compactToU8a(this.length).length;
|
||||
const count = this.length;
|
||||
let total = compactToU8a(count).length;
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
total += this[i].encodedLength;
|
||||
}
|
||||
|
||||
@@ -95,9 +96,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description Internal per-item inspection of internal values
|
||||
*/
|
||||
public inspectInner (): Inspect[] {
|
||||
const inner = new Array<Inspect>(this.length);
|
||||
const count = this.length;
|
||||
const inner = new Array<Inspect>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
inner[i] = this[i].inspect();
|
||||
}
|
||||
|
||||
@@ -122,9 +124,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information
|
||||
*/
|
||||
public toHuman (isExtended?: boolean): AnyJson {
|
||||
const result = new Array<AnyJson>(this.length);
|
||||
const count = this.length;
|
||||
const result = new Array<AnyJson>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
result[i] = this[i] && this[i].toHuman(isExtended);
|
||||
}
|
||||
|
||||
@@ -135,9 +138,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description Converts the Object to JSON, typically used for RPC transfers
|
||||
*/
|
||||
public toJSON (): AnyJson {
|
||||
const result = new Array<AnyJson>(this.length);
|
||||
const count = this.length;
|
||||
const result = new Array<AnyJson>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
// We actually log inside the U8a decoding and use JSON.stringify(...), which
|
||||
// means that the Vec may be partially populated (same applies to toHuman, same check)
|
||||
result[i] = this[i] && this[i].toJSON();
|
||||
@@ -150,9 +154,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description Converts the value in a best-fit primitive form
|
||||
*/
|
||||
public toPrimitive (): AnyJson {
|
||||
const result = new Array<AnyJson>(this.length);
|
||||
const count = this.length;
|
||||
const result = new Array<AnyJson>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
result[i] = this[i] && this[i].toPrimitive();
|
||||
}
|
||||
|
||||
@@ -168,9 +173,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @description Returns the string representation of the value
|
||||
*/
|
||||
public override toString (): string {
|
||||
const result = new Array<string>(this.length);
|
||||
const count = this.length;
|
||||
const result = new Array<string>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
result[i] = this[i].toString();
|
||||
}
|
||||
|
||||
@@ -195,9 +201,10 @@ export abstract class AbstractArray<T extends Codec> extends Array<T> implements
|
||||
* @param isBare true when the value has none of the type-specific prefixes (internal)
|
||||
*/
|
||||
public toU8aInner (isBare?: boolean): Uint8Array[] {
|
||||
const encoded = new Array<Uint8Array>(this.length);
|
||||
const count = this.length;
|
||||
const encoded = new Array<Uint8Array>(count);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
encoded[i] = this[i].toU8a(isBare);
|
||||
}
|
||||
|
||||
|
||||
@@ -221,9 +221,9 @@ export abstract class AbstractInt extends BN implements INumber {
|
||||
public override toJSON (onlyHex = false): any {
|
||||
// FIXME this return type should by string | number, however BN returns string
|
||||
// Options here are
|
||||
// - super.bitLength() - the actual used bits
|
||||
// - this.#bitLength - the type bits (this should be used, however contracts RPC is problematic)
|
||||
return onlyHex || (super.bitLength() > MAX_NUMBER_BITS)
|
||||
// - super.bitLength() - the actual used bits, use hex when close to MAX_SAFE_INTEGER
|
||||
// - this.#bitLength - the max used bits, use hex when larger than native Rust type
|
||||
return onlyHex || (this.#bitLength > 128) || (super.bitLength() > MAX_NUMBER_BITS)
|
||||
? this.toHex()
|
||||
: this.toNumber();
|
||||
}
|
||||
|
||||
@@ -5,14 +5,10 @@ import type { BN } from '@polkadot/util';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { AnyJson, AnyNumber, CodecClass, DefinitionSetter, ICompact, Inspect, INumber, IU8a, Registry } from '../types/index.js';
|
||||
|
||||
import { compactFromU8a, compactFromU8aLim, compactToU8a, isU8a } from '@polkadot/util';
|
||||
import { compactFromU8a, compactFromU8aLim, compactToU8a, identity, isU8a } from '@polkadot/util';
|
||||
|
||||
import { typeToConstructor } from '../utils/index.js';
|
||||
|
||||
function noopSetDefinition <T> (d: CodecClass<T>): CodecClass<T> {
|
||||
return d;
|
||||
}
|
||||
|
||||
function decodeCompact<T extends INumber> (registry: Registry, Type: CodecClass<T>, value: Compact<T> | AnyNumber): [T, number] {
|
||||
if (isU8a(value)) {
|
||||
const [decodedLength, bn] = (value[0] & 0b11) < 0b11
|
||||
@@ -51,7 +47,7 @@ export class Compact<T extends INumber> implements ICompact<T> {
|
||||
readonly #Type: CodecClass<T>;
|
||||
readonly #raw: T;
|
||||
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Compact<T> | AnyNumber = 0, { definition, setDefinition = noopSetDefinition }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Compact<T> | AnyNumber = 0, { definition, setDefinition = identity }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
this.registry = registry;
|
||||
this.#Type = definition || setDefinition(typeToConstructor(registry, Type));
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { AnyJson, Codec, CodecClass, DefinitionSetter, IEnum, Inspect, IU8a, Registry } from '../types/index.js';
|
||||
|
||||
import { isHex, isNumber, isObject, isString, isU8a, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { identity, isHex, isNumber, isObject, isString, isU8a, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcatStrict, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { mapToTypeMap, typesToMap } from '../utils/index.js';
|
||||
import { Null } from './Null.js';
|
||||
@@ -32,10 +32,6 @@ interface Decoded {
|
||||
value: Codec;
|
||||
}
|
||||
|
||||
function noopSetDefinition (d: Definition): Definition {
|
||||
return d;
|
||||
}
|
||||
|
||||
function isRustEnum (def: Record<string, string | CodecClass> | Record<string, number>): def is Record<string, string | CodecClass> {
|
||||
const defValues = Object.values(def);
|
||||
|
||||
@@ -56,7 +52,7 @@ function extractDef (registry: Registry, _def: Record<string, string | CodecClas
|
||||
let isIndexed: boolean;
|
||||
|
||||
if (Array.isArray(_def)) {
|
||||
for (let i = 0; i < _def.length; i++) {
|
||||
for (let i = 0, count = _def.length; i < count; i++) {
|
||||
def[_def[i]] = { Type: Null, index: i };
|
||||
}
|
||||
|
||||
@@ -65,7 +61,7 @@ function extractDef (registry: Registry, _def: Record<string, string | CodecClas
|
||||
} else if (isRustEnum(_def)) {
|
||||
const [Types, keys] = mapToTypeMap(registry, _def);
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0, count = keys.length; i < count; i++) {
|
||||
def[keys[i]] = { Type: Types[i], index: i };
|
||||
}
|
||||
|
||||
@@ -74,7 +70,7 @@ function extractDef (registry: Registry, _def: Record<string, string | CodecClas
|
||||
} else {
|
||||
const entries = Object.entries(_def);
|
||||
|
||||
for (let i = 0; i < entries.length; i++) {
|
||||
for (let i = 0, count = entries.length; i < count; i++) {
|
||||
const [key, index] = entries[i];
|
||||
|
||||
def[key] = { Type: Null, index };
|
||||
@@ -191,7 +187,7 @@ export class Enum implements IEnum {
|
||||
readonly #isIndexed: boolean;
|
||||
readonly #raw: Codec;
|
||||
|
||||
constructor (registry: Registry, Types: Record<string, string | CodecClass> | Record<string, number> | string[], value?: unknown, index?: number, { definition, setDefinition = noopSetDefinition }: DefinitionSetter<Definition> = {}) {
|
||||
constructor (registry: Registry, Types: Record<string, string | CodecClass> | Record<string, number> | string[], value?: unknown, index?: number, { definition, setDefinition = identity }: DefinitionSetter<Definition> = {}) {
|
||||
const { def, isBasic, isIndexed } = definition || setDefinition(extractDef(registry, Types));
|
||||
|
||||
// shortcut isU8a as used in SCALE decoding
|
||||
@@ -224,10 +220,11 @@ export class Enum implements IEnum {
|
||||
const keys = Array.isArray(Types)
|
||||
? Types
|
||||
: Object.keys(Types);
|
||||
const asKeys = new Array<string>(keys.length);
|
||||
const isKeys = new Array<string>(keys.length);
|
||||
const count = keys.length;
|
||||
const asKeys = new Array<string>(count);
|
||||
const isKeys = new Array<string>(count);
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const name = stringPascalCase(keys[i]);
|
||||
|
||||
asKeys[i] = `as${name}`;
|
||||
|
||||
@@ -4,15 +4,11 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { AnyJson, Codec, CodecClass, DefinitionSetter, Inspect, IOption, IU8a, Registry } from '../types/index.js';
|
||||
|
||||
import { isCodec, isNull, isU8a, isUndefined, u8aToHex } from '@polkadot/util';
|
||||
import { identity, isCodec, isNull, isU8a, isUndefined, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { typeToConstructor } from '../utils/index.js';
|
||||
import { Null } from './Null.js';
|
||||
|
||||
function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
||||
return d;
|
||||
}
|
||||
|
||||
class None extends Null {
|
||||
/**
|
||||
* @description Returns the base runtime type name for this instance
|
||||
@@ -70,7 +66,7 @@ export class Option<T extends Codec> implements IOption<T> {
|
||||
readonly #Type: CodecClass<T>;
|
||||
readonly #raw: T;
|
||||
|
||||
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { definition, setDefinition = noopSetDefinition }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
constructor (registry: Registry, typeName: CodecClass<T> | string, value?: unknown, { definition, setDefinition = identity }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
const Type = definition || setDefinition(typeToConstructor(registry, typeName));
|
||||
const decoded = isU8a(value) && value.length && !isCodec(value)
|
||||
? value[0] === 0
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
import type { AnyTupleValue, Codec, CodecClass, DefinitionSetter, Inspect, ITuple, Registry } from '../types/index.js';
|
||||
|
||||
import { isFunction, isHex, isString, isU8a, stringify, u8aConcatStrict, u8aToU8a } from '@polkadot/util';
|
||||
import { identity, isFunction, isHex, isString, isU8a, stringify, u8aConcatStrict, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/Array.js';
|
||||
import { decodeU8a, mapToTypeMap, typeToConstructor } from '../utils/index.js';
|
||||
import { decodeU8a, mapToTypeMap, typesToConstructors, typeToConstructor } from '../utils/index.js';
|
||||
|
||||
type TupleType = (CodecClass | string);
|
||||
|
||||
@@ -16,16 +16,12 @@ type TupleTypes = TupleType[] | {
|
||||
|
||||
type Definition = [CodecClass[], string[]];
|
||||
|
||||
function noopSetDefinition (d: Definition): Definition {
|
||||
return d;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTupleValue, Uint8Array> | undefined, Classes: Definition): [Codec[], number] {
|
||||
if (Array.isArray(value)) {
|
||||
const Types = Classes[0];
|
||||
|
||||
for (let i = 0; i < Types.length; i++) {
|
||||
for (let i = 0, count = Types.length; i < count; i++) {
|
||||
try {
|
||||
const entry = value?.[i];
|
||||
|
||||
@@ -43,7 +39,7 @@ function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTup
|
||||
} else if (!value || !result.length) {
|
||||
const Types = Classes[0];
|
||||
|
||||
for (let i = 0; i < Types.length; i++) {
|
||||
for (let i = 0, count = Types.length; i < count; i++) {
|
||||
result[i] = new Types[i](registry);
|
||||
}
|
||||
|
||||
@@ -62,10 +58,10 @@ function decodeTuple (registry: Registry, result: Codec[], value: Exclude<AnyTup
|
||||
export class Tuple extends AbstractArray<Codec> implements ITuple<Codec[]> {
|
||||
#Types: Definition;
|
||||
|
||||
constructor (registry: Registry, Types: TupleTypes | TupleType, value?: AnyTupleValue, { definition, setDefinition = noopSetDefinition }: DefinitionSetter<Definition> = {}) {
|
||||
constructor (registry: Registry, Types: TupleTypes | TupleType, value?: AnyTupleValue, { definition, setDefinition = identity }: DefinitionSetter<Definition> = {}) {
|
||||
const Classes = definition || setDefinition(
|
||||
Array.isArray(Types)
|
||||
? [Types.map((t) => typeToConstructor(registry, t)), []]
|
||||
? [typesToConstructors(registry, Types), []]
|
||||
: isFunction(Types) || isString(Types)
|
||||
? [[typeToConstructor(registry, Types)], []]
|
||||
: mapToTypeMap(registry, Types)
|
||||
@@ -101,7 +97,7 @@ export class Tuple extends AbstractArray<Codec> implements ITuple<Codec[]> {
|
||||
public override get encodedLength (): number {
|
||||
let total = 0;
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0, count = this.length; i < count; i++) {
|
||||
total += this[i].encodedLength;
|
||||
}
|
||||
|
||||
|
||||
@@ -123,8 +123,9 @@ describe('UInt', (): void => {
|
||||
|
||||
it('converts to JSON representation based on size', (): void => {
|
||||
expect(new UInt(registry, '0x12345678', 32).toJSON()).toEqual(0x12345678);
|
||||
expect(new UInt(registry, '0x1234567890', 64).toJSON()).toEqual(78187493520); // '0x0000001234567890');
|
||||
expect(new UInt(registry, '0x1234567890', 64).toJSON()).toEqual(78187493520);
|
||||
expect(new UInt(registry, '0x1234567890abcdef', 64).toJSON()).toEqual('0x1234567890abcdef');
|
||||
expect(new UInt(registry, 1, 256).toJSON()).toEqual('0x0000000000000000000000000000000000000000000000000000000000000001');
|
||||
});
|
||||
|
||||
it('has a sane inspect', (): void => {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Codec, CodecClass, DefinitionSetter, Registry } from '../types/index.js';
|
||||
|
||||
import { compactFromU8aLim, isHex, isU8a, logger, stringify, u8aToU8a } from '@polkadot/util';
|
||||
import { compactFromU8aLim, identity, isHex, isU8a, logger, stringify, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/Array.js';
|
||||
import { decodeU8aVec, typeToConstructor } from '../utils/index.js';
|
||||
@@ -13,10 +13,6 @@ const MAX_LENGTH = 64 * 1024;
|
||||
|
||||
const l = logger('Vec');
|
||||
|
||||
function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
||||
return d;
|
||||
}
|
||||
|
||||
function decodeVecLength (value: Uint8Array | HexString | unknown[]): [Uint8Array | unknown[] | null, number, number] {
|
||||
if (Array.isArray(value)) {
|
||||
return [value, value.length, 0];
|
||||
@@ -75,7 +71,7 @@ export function decodeVec<T extends Codec> (registry: Registry, result: T[], val
|
||||
export class Vec<T extends Codec> extends AbstractArray<T> {
|
||||
#Type: CodecClass<T>;
|
||||
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Uint8Array | HexString | unknown[] = [], { definition, setDefinition = noopSetDefinition }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, value: Uint8Array | HexString | unknown[] = [], { definition, setDefinition = identity }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
const [decodeFrom, length, startAt] = decodeVecLength(value);
|
||||
|
||||
super(registry, length);
|
||||
@@ -119,7 +115,7 @@ export class Vec<T extends Codec> extends AbstractArray<T> {
|
||||
? other
|
||||
: new this.#Type(this.registry, other);
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0, count = this.length; i < count; i++) {
|
||||
if (check.eq(this[i])) {
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -4,16 +4,12 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Codec, CodecClass, DefinitionSetter, Inspect, Registry } from '../types/index.js';
|
||||
|
||||
import { isU8a, u8aConcatStrict } from '@polkadot/util';
|
||||
import { identity, isU8a, u8aConcatStrict } from '@polkadot/util';
|
||||
|
||||
import { AbstractArray } from '../abstract/Array.js';
|
||||
import { decodeU8aVec, typeToConstructor } from '../utils/index.js';
|
||||
import { decodeVec } from './Vec.js';
|
||||
|
||||
function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
||||
return d;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name VecFixed
|
||||
* @description
|
||||
@@ -22,7 +18,7 @@ function noopSetDefinition <T extends Codec> (d: CodecClass<T>): CodecClass<T> {
|
||||
export class VecFixed<T extends Codec> extends AbstractArray<T> {
|
||||
#Type: CodecClass<T>;
|
||||
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, length: number, value: Uint8Array | HexString | unknown[] = [] as unknown[], { definition, setDefinition = noopSetDefinition }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
constructor (registry: Registry, Type: CodecClass<T> | string, length: number, value: Uint8Array | HexString | unknown[] = [] as unknown[], { definition, setDefinition = identity }: DefinitionSetter<CodecClass<T>> = {}) {
|
||||
super(registry, length);
|
||||
|
||||
this.#Type = definition || setDefinition(typeToConstructor<T>(registry, Type));
|
||||
@@ -61,7 +57,7 @@ export class VecFixed<T extends Codec> extends AbstractArray<T> {
|
||||
public override get encodedLength (): number {
|
||||
let total = 0;
|
||||
|
||||
for (let i = 0; i < this.length; i++) {
|
||||
for (let i = 0, count = this.length; i < count; i++) {
|
||||
total += this[i].encodedLength;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// all named
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
|
||||
// all starred
|
||||
export * from './abstract/index.js';
|
||||
export * from './base/index.js';
|
||||
export * from './extended/index.js';
|
||||
|
||||
@@ -87,9 +87,10 @@ export class BitVec extends Raw {
|
||||
!!(v & 0b0000_0010),
|
||||
!!(v & 0b0000_0001)
|
||||
]);
|
||||
const result = new Array<boolean>(8 * map.length);
|
||||
const count = map.length;
|
||||
const result = new Array<boolean>(8 * count);
|
||||
|
||||
for (let i = 0; i < map.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const off = i * 8;
|
||||
const v = map[i];
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ function decodeMapFromU8a<K extends Codec, V extends Codec> (registry: Registry,
|
||||
|
||||
const [values, decodedLength] = decodeU8a(registry, new Array(types.length), u8a.subarray(offset), [types, []]);
|
||||
|
||||
for (let i = 0; i < values.length; i += 2) {
|
||||
for (let i = 0, count = values.length; i < count; i += 2) {
|
||||
output.set(values[i] as K, values[i + 1] as V);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ type SetValues = Record<string, number | BN>;
|
||||
function encodeSet (setValues: SetValues, values: string[]): BN {
|
||||
const encoded = new BN(0);
|
||||
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
for (let i = 0, count = values.length; i < count; i++) {
|
||||
encoded.ior(bnToBn(setValues[values[i]] || 0));
|
||||
}
|
||||
|
||||
@@ -22,9 +22,10 @@ function encodeSet (setValues: SetValues, values: string[]): BN {
|
||||
|
||||
/** @internal */
|
||||
function decodeSetArray (setValues: SetValues, values: string[]): string[] {
|
||||
const result = new Array<string>(values.length);
|
||||
const count = values.length;
|
||||
const result = new Array<string>(count);
|
||||
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const key = values[i];
|
||||
|
||||
if (isUndefined(setValues[key])) {
|
||||
@@ -43,7 +44,7 @@ function decodeSetNumber (setValues: SetValues, _value: BN | number): string[] {
|
||||
const keys = Object.keys(setValues);
|
||||
const result: string[] = [];
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0, count = keys.length; i < count; i++) {
|
||||
const key = keys[i];
|
||||
|
||||
if (bn.and(bnToBn(setValues[key])).eq(bnToBn(setValues[key]))) {
|
||||
@@ -113,9 +114,10 @@ export class CodecSet extends Set<string> implements ISet<string> {
|
||||
return class extends CodecSet {
|
||||
static {
|
||||
const keys = Object.keys(values);
|
||||
const isKeys = new Array<string>(keys.length);
|
||||
const count = keys.length;
|
||||
const isKeys = new Array<string>(count);
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
isKeys[i] = `is${stringPascalCase(keys[i])}`;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,16 +21,17 @@ function decodeStructFromObject (registry: Registry, [Types, keys]: Definition,
|
||||
let jsonObj: Record<string, unknown> | undefined;
|
||||
const typeofArray = Array.isArray(value);
|
||||
const typeofMap = value instanceof Map;
|
||||
const count = keys.length;
|
||||
|
||||
if (!typeofArray && !typeofMap && !isObject(value)) {
|
||||
throw new Error(`Struct: Cannot decode value ${stringify(value)} (typeof ${typeof value}), expected an input object, map or array`);
|
||||
} else if (typeofArray && value.length !== keys.length) {
|
||||
} else if (typeofArray && value.length !== count) {
|
||||
throw new Error(`Struct: Unable to map ${stringify(value)} array to object with known keys ${keys.join(', ')}`);
|
||||
}
|
||||
|
||||
const raw = new Array<[string, Codec]>(keys.length);
|
||||
const raw = new Array<[string, Codec]>(count);
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0; i < count; i++) {
|
||||
const key = keys[i];
|
||||
const jsonKey = jsonMap.get(key) || key;
|
||||
const Type = Types[i];
|
||||
@@ -50,7 +51,7 @@ function decodeStructFromObject (registry: Registry, [Types, keys]: Definition,
|
||||
|
||||
jsonObj = {};
|
||||
|
||||
for (let e = 0; e < entries.length; e++) {
|
||||
for (let e = 0, ecount = entries.length; e < ecount; e++) {
|
||||
jsonObj[stringCamelCase(entries[e][0])] = entries[e][1];
|
||||
}
|
||||
}
|
||||
@@ -192,7 +193,7 @@ export class Struct<
|
||||
const result: Record<string, string> = {};
|
||||
const [Types, keys] = this.#Types;
|
||||
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
for (let i = 0, count = keys.length; i < count; i++) {
|
||||
result[keys[i]] = new Types[i](this.registry).toRawType();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { bool, bool as Bool } from './Bool.js';
|
||||
export { bool as Bool, bool } from './Bool.js';
|
||||
export { CodecDate, CodecDate as Date } from './Date.js';
|
||||
export { Float } from './Float.js';
|
||||
export { Json } from './Json.js';
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.4.1' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '10.7.1' };
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
// Copyright 2017-2023 @polkadot/types-codec authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { f32, f32 as F32 } from './F32.js';
|
||||
export { f64, f64 as F64 } from './F64.js';
|
||||
export { i8, i8 as I8 } from './I8.js';
|
||||
export { i16, i16 as I16 } from './I16.js';
|
||||
export { i32, i32 as I32 } from './I32.js';
|
||||
export { i64, i64 as I64 } from './I64.js';
|
||||
export { i128, i128 as I128 } from './I128.js';
|
||||
export { i256, i256 as I256 } from './I256.js';
|
||||
export { isize, isize as ISize } from './ISize.js';
|
||||
export { u8, u8 as U8 } from './U8.js';
|
||||
export { u16, u16 as U16 } from './U16.js';
|
||||
export { u32, u32 as U32 } from './U32.js';
|
||||
export { u64, u64 as U64 } from './U64.js';
|
||||
export { u128, u128 as U128 } from './U128.js';
|
||||
export { u256, u256 as U256 } from './U256.js';
|
||||
export { usize, usize as USize } from './USize.js';
|
||||
export { f32 as F32, f32 } from './F32.js';
|
||||
export { f64 as F64, f64 } from './F64.js';
|
||||
export { i8 as I8, i8 } from './I8.js';
|
||||
export { i16 as I16, i16 } from './I16.js';
|
||||
export { i32 as I32, i32 } from './I32.js';
|
||||
export { i64 as I64, i64 } from './I64.js';
|
||||
export { i128 as I128, i128 } from './I128.js';
|
||||
export { i256 as I256, i256 } from './I256.js';
|
||||
export { isize as ISize, isize } from './ISize.js';
|
||||
export { u8 as U8, u8 } from './U8.js';
|
||||
export { u16 as U16, u16 } from './U16.js';
|
||||
export { u32 as U32, u32 } from './U32.js';
|
||||
export { u64 as U64, u64 } from './U64.js';
|
||||
export { u128 as U128, u128 } from './U128.js';
|
||||
export { u256 as U256, u256 } from './U256.js';
|
||||
export { usize as USize, usize } from './USize.js';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user