Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c81e4fd3b | ||
|
|
27d21ce117 | ||
|
|
417e46016b | ||
|
|
fc7bb681f5 | ||
|
|
a0592986fa | ||
|
|
d9aa61c786 | ||
|
|
8883d355ff | ||
|
|
2ca657257c | ||
|
|
482471b878 | ||
|
|
627f990166 | ||
|
|
a73603cf0a | ||
|
|
1744544552 | ||
|
|
408de16495 | ||
|
|
2822c43df3 | ||
|
|
4fd3ac4097 | ||
|
|
2c33d3d452 | ||
|
|
65c1b8b26d | ||
|
|
7c6012ab07 |
@@ -1,5 +1,19 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 9.7.1 Nov 6, 2022
|
||||
|
||||
Contributed:
|
||||
|
||||
- Update `@substrate/connect` to latest (Thanks to https://github.com/wirednkod)
|
||||
- Add `api.rpc(method, ...params)` support (Thanks to https://github.com/xlc)
|
||||
|
||||
Changes:
|
||||
|
||||
- Align `ScProvider` code structure with other providers
|
||||
- Add `isClonable` getter on providers (some, e.g. sc doesn't support this)
|
||||
- Update to latest Substrate metadata
|
||||
|
||||
|
||||
## 9.6.2 Oct 30, 2022
|
||||
|
||||
Changes:
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
3263 Jaco 9.6.2 (#5304)
|
||||
3270 Jaco 9.7.1 (#5320)
|
||||
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)
|
||||
20 Luke Schoen fix: Fixes TypeError: Cannot read property 'vesting' of undefined (#1970)
|
||||
16 Xiliang Chen implement entriesPaged and keysPages for query at (#4701)
|
||||
17 Xiliang Chen able to send raw rpc methods (#5305)
|
||||
15 Jeremías Díaz feat(types): add correct tuple type to storage key (#3054)
|
||||
13 Nikos Kontakis Bump Substrate connect to 0.7.15 (#5275)
|
||||
14 Nikos Kontakis Bump substrate connect to 0.7.16 (#5307)
|
||||
11 Ian He HttpProvider support clone() (#3949)
|
||||
10 Axel Chalon Make Enum/Tuple constructor use value directly if instance (#1954)
|
||||
5 Chevdor Fix metadata package link (#3458)
|
||||
|
||||
+7
-7
@@ -11,10 +11,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"versions": {
|
||||
"git": "9.6.2",
|
||||
"npm": "9.6.2"
|
||||
"git": "9.7.1",
|
||||
"npm": "9.7.1"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -36,12 +36,12 @@
|
||||
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/dev": "^0.67.150",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/dev": "^0.67.154",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^29.2.0",
|
||||
"@types/jest": "^29.2.2",
|
||||
"copyfiles": "^2.4.1"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api-base": "9.6.2",
|
||||
"@polkadot/rpc-augment": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-augment": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-base": "9.7.1",
|
||||
"@polkadot/rpc-augment": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-augment": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types-support": "9.6.2"
|
||||
"@polkadot/types-support": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -247,8 +247,8 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum number of concurrent votes an account may have.
|
||||
*
|
||||
* Also used to compute weight, an overly large value can
|
||||
* lead to extrinsic with large weight estimation: see `delegate` for instance.
|
||||
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
||||
* weight estimation: see `delegate` for instance.
|
||||
**/
|
||||
maxVotes: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -624,7 +624,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
/**
|
||||
* The maximum amount of signatories allowed in the multisig.
|
||||
**/
|
||||
maxSignatories: u16 & AugmentedConst<ApiType>;
|
||||
maxSignatories: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
|
||||
@@ -458,6 +458,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The topics passed to `seal_deposit_events` contains at least one duplicate.
|
||||
**/
|
||||
DuplicateTopics: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An indetermistic code was used in a context where this is not permitted.
|
||||
**/
|
||||
Indeterministic: AugmentedError<ApiType>;
|
||||
/**
|
||||
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
||||
**/
|
||||
@@ -1006,6 +1010,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Judgement given.
|
||||
**/
|
||||
JudgementGiven: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Error that occurs when there is an issue paying for judgement.
|
||||
**/
|
||||
JudgementPaymentFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No identity found.
|
||||
**/
|
||||
@@ -1211,6 +1219,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* anymore to, for example, collect rewards).
|
||||
**/
|
||||
FullyUnbonding: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Pool id provided is not correct/usable.
|
||||
**/
|
||||
InvalidPoolId: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many members in the pool or system.
|
||||
**/
|
||||
@@ -1260,6 +1272,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Partial unbonding now allowed permissionlessly.
|
||||
**/
|
||||
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Pool id currently in use.
|
||||
**/
|
||||
PoolIdInUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An account is not a member.
|
||||
**/
|
||||
@@ -1401,7 +1417,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
BadTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There are already a full complement of referendums in progress for this track.
|
||||
* There are already a full complement of referenda in progress for this track.
|
||||
**/
|
||||
Full: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1521,7 +1537,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
BadTrack: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There are already a full complement of referendums in progress for this track.
|
||||
* There are already a full complement of referenda in progress for this track.
|
||||
**/
|
||||
Full: AugmentedError<ApiType>;
|
||||
/**
|
||||
|
||||
@@ -879,7 +879,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||
/**
|
||||
* The member `who`'s rank has been changed to the given `rank`.
|
||||
* The member `who`se rank has been changed to the given `rank`.
|
||||
**/
|
||||
RankChanged: AugmentedEvent<ApiType, [who: AccountId32, rank: u16], { who: AccountId32, rank: u16 }>;
|
||||
/**
|
||||
@@ -932,7 +932,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletRankedCollectiveTally], { index: u32, tally: PalletRankedCollectiveTally }>;
|
||||
/**
|
||||
* A referendum has being submitted.
|
||||
* A referendum has been submitted.
|
||||
**/
|
||||
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||
/**
|
||||
@@ -1014,7 +1014,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Rejected: AugmentedEvent<ApiType, [index: u32, tally: PalletConvictionVotingTally], { index: u32, tally: PalletConvictionVotingTally }>;
|
||||
/**
|
||||
* A referendum has being submitted.
|
||||
* A referendum has been submitted.
|
||||
**/
|
||||
Submitted: AugmentedEvent<ApiType, [index: u32, track: u16, proposal: FrameSupportPreimagesBounded], { index: u32, track: u16, proposal: FrameSupportPreimagesBounded }>;
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,7 @@ import '@polkadot/api-base/types/storage';
|
||||
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { Data } from '@polkadot/types';
|
||||
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
||||
@@ -544,14 +544,14 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
round: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A sorted, bounded set of `(score, index)`, where each `index` points to a value in
|
||||
* `SignedSubmissions`.
|
||||
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
||||
* value in `SignedSubmissions`.
|
||||
*
|
||||
* We never need to process more than a single signed submission at a time. Signed submissions
|
||||
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
||||
* them one at a time instead of reading and decoding all of them at once.
|
||||
**/
|
||||
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<BTreeMap<SpNposElectionsElectionScore, u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
signedSubmissionIndices: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpNposElectionsElectionScore, u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The next index to be assigned to an incoming signed submission.
|
||||
*
|
||||
@@ -1455,7 +1455,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletStakingUnappliedSlash>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The ideal number of staking participants.
|
||||
* The ideal number of active validators.
|
||||
**/
|
||||
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -1265,6 +1265,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* the in storage version to the current
|
||||
* [`InstructionWeights::version`](InstructionWeights).
|
||||
*
|
||||
* - `determinism`: If this is set to any other value but [`Determinism::Deterministic`]
|
||||
* then the only way to use this code is to delegate call into it from an offchain
|
||||
* execution. Set to [`Determinism::Deterministic`] if in doubt.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
||||
@@ -1272,7 +1276,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* only be instantiated by permissioned entities. The same is true when uploading
|
||||
* through [`Self::instantiate_with_code`].
|
||||
**/
|
||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>]>;
|
||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Deterministic' | 'AllowIndeterminism' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>, PalletContractsWasmDeterminism]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1360,7 +1364,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Undelegate the voting power of the sending account for a particular class of polls.
|
||||
*
|
||||
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
||||
* of the conviction with which the delegation was issued.
|
||||
* of the conviction with which the delegation was issued has passed.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
||||
* currently delegating.
|
||||
@@ -1374,7 +1378,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
|
||||
/**
|
||||
* Remove the lock caused prior voting/delegating which has expired within a particluar
|
||||
* Remove the lock caused by prior voting/delegating which has expired within a particular
|
||||
* class.
|
||||
*
|
||||
* The dispatch origin of this call must be _Signed_.
|
||||
@@ -2798,6 +2802,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* needs at have at least `amount + existential_deposit` transferrable.
|
||||
**/
|
||||
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
|
||||
/**
|
||||
* Create a new delegation pool with a previously used pool id
|
||||
*
|
||||
* # Arguments
|
||||
*
|
||||
* same as `create` with the inclusion of
|
||||
* * `pool_id` - `A valid PoolId.
|
||||
**/
|
||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, stateToggler: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||
/**
|
||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||
* pools account and immediately increases the pools bond.
|
||||
@@ -5414,13 +5427,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Send a batch of dispatch calls.
|
||||
*
|
||||
* May be called from any origin.
|
||||
* May be called from any origin except `None`.
|
||||
*
|
||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||
*
|
||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||
@@ -5437,13 +5450,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Send a batch of dispatch calls and atomically execute them.
|
||||
* The whole transaction will rollback and fail if any of the calls failed.
|
||||
*
|
||||
* May be called from any origin.
|
||||
* May be called from any origin except `None`.
|
||||
*
|
||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||
*
|
||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||
* If origin is root then the calls are dispatched without checking origin filter. (This
|
||||
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||
@@ -5467,13 +5480,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Send a batch of dispatch calls.
|
||||
* Unlike `batch`, it allows errors and won't interrupt.
|
||||
*
|
||||
* May be called from any origin.
|
||||
* May be called from any origin except `None`.
|
||||
*
|
||||
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
||||
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
||||
*
|
||||
* If origin is root then call are dispatch without checking origin filter. (This includes
|
||||
* bypassing `frame_system::Config::BaseCallFilter`).
|
||||
* If origin is root then the calls are dispatch without checking origin filter. (This
|
||||
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
||||
*
|
||||
* # <weight>
|
||||
* - Complexity: O(C) where C is the number of calls to be batched.
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/rpc-core": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"rxjs": "^7.5.7"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Observable } from 'rxjs';
|
||||
import type { AnyFunction, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
||||
|
||||
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
||||
|
||||
@@ -29,6 +29,8 @@ export type DecoratedRpcSection<ApiType extends ApiTypes, Section> = {
|
||||
: never
|
||||
}
|
||||
|
||||
export type RawRpcType<ApiType extends ApiTypes> = (method: string, ...params: unknown[]) => ApiType extends 'rxjs' ? Observable<AnyJson> : Promise<AnyJson>;
|
||||
|
||||
export type DecoratedRpc<ApiType extends ApiTypes, AllSections> = {
|
||||
[S in keyof AllSections]: DecoratedRpcSection<ApiType, AllSections[S]>
|
||||
}
|
||||
} & RawRpcType<ApiType>
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@polkadot/types-create": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/types-create": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"rxjs": "^7.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/keyring": "^10.1.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -20,25 +20,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api": "9.6.2",
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/api-base": "9.6.2",
|
||||
"@polkadot/rpc-core": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.7.1",
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/api-base": "9.7.1",
|
||||
"@polkadot/rpc-core": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"rxjs": "^7.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.6.2",
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/rpc-augment": "9.6.2",
|
||||
"@polkadot/rpc-provider": "9.6.2",
|
||||
"@polkadot/types-support": "9.6.2"
|
||||
"@polkadot/api": "9.7.1",
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/rpc-augment": "9.7.1",
|
||||
"@polkadot/rpc-provider": "9.7.1",
|
||||
"@polkadot/types-support": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
+15
-15
@@ -20,29 +20,29 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/api-base": "9.6.2",
|
||||
"@polkadot/api-derive": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/api-base": "9.7.1",
|
||||
"@polkadot/api-derive": "9.7.1",
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/rpc-augment": "9.6.2",
|
||||
"@polkadot/rpc-core": "9.6.2",
|
||||
"@polkadot/rpc-provider": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-augment": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@polkadot/types-create": "9.6.2",
|
||||
"@polkadot/types-known": "9.6.2",
|
||||
"@polkadot/rpc-augment": "9.7.1",
|
||||
"@polkadot/rpc-core": "9.7.1",
|
||||
"@polkadot/rpc-provider": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-augment": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/types-create": "9.7.1",
|
||||
"@polkadot/types-known": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"rxjs": "^7.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/types-support": "9.6.2"
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/types-support": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { StorageKey, Text, u64 } from '@polkadot/types';
|
||||
import type { Call, Hash, RuntimeVersion } from '@polkadot/types/interfaces';
|
||||
import type { DecoratedMeta } from '@polkadot/types/metadata/decorate/types';
|
||||
import type { StorageEntry } from '@polkadot/types/primitive/types';
|
||||
import type { AnyFunction, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
|
||||
import type { AnyFunction, AnyJson, AnyTuple, CallFunction, Codec, DefinitionCallNamed, DefinitionRpc, DefinitionRpcSub, DefinitionsCall, DefinitionsCallEntry, DetectCodec, IMethod, IStorageKey, Registry, RegistryError, RegistryTypes } from '@polkadot/types/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { SubmittableExtrinsic } from '../submittable/types';
|
||||
import type { ApiDecoration, ApiInterfaceRx, ApiOptions, ApiTypes, AugmentedQuery, DecoratedErrors, DecoratedEvents, DecoratedRpc, DecorateMethod, GenericStorageEntryFunction, PaginationOptions, QueryableConsts, QueryableStorage, QueryableStorageEntry, QueryableStorageEntryAt, QueryableStorageMulti, QueryableStorageMultiArg, SubmittableExtrinsicFunction, SubmittableExtrinsics } from '../types';
|
||||
@@ -21,7 +21,7 @@ import { memo, RpcCore } from '@polkadot/rpc-core';
|
||||
import { WsProvider } from '@polkadot/rpc-provider';
|
||||
import { expandMetadata, GenericExtrinsic, Metadata, typeDefinitions, TypeRegistry } from '@polkadot/types';
|
||||
import { getSpecRuntime } from '@polkadot/types-known';
|
||||
import { arrayChunk, arrayFlatten, assertReturn, BN, compactStripLength, lazyMethod, lazyMethods, logger, nextTick, objectSpread, stringCamelCase, stringUpperFirst, u8aConcatStrict, u8aToHex } from '@polkadot/util';
|
||||
import { arrayChunk, arrayFlatten, assertReturn, BN, compactStripLength, lazyMethod, lazyMethods, logger, nextTick, objectSpread, stringCamelCase, stringify, stringUpperFirst, u8aConcatStrict, u8aToHex } from '@polkadot/util';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
import { createSubmittable } from '../submittable';
|
||||
@@ -167,7 +167,9 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
this._rx.registry = this.#registry;
|
||||
|
||||
const thisProvider = options.source
|
||||
? options.source._rpcCore.provider.clone()
|
||||
? options.source._rpcCore.provider.isClonable
|
||||
? options.source._rpcCore.provider.clone()
|
||||
: options.source._rpcCore.provider
|
||||
: (options.provider || new WsProvider());
|
||||
|
||||
this._decorateMethod = decorateMethod;
|
||||
@@ -401,15 +403,23 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
const [k, { method, section }] = allKnown[i];
|
||||
|
||||
if (hasResults && !exposed.includes(k) && k !== 'rpc_methods') {
|
||||
if ((this._rpc as Record<string, Record<string, unknown>>)[section]) {
|
||||
delete (this._rpc as Record<string, Record<string, unknown>>)[section][method];
|
||||
delete (this._rx.rpc as Record<string, Record<string, unknown>>)[section][method];
|
||||
if ((this._rpc as unknown as Record<string, Record<string, unknown>>)[section]) {
|
||||
delete (this._rpc as unknown as Record<string, Record<string, unknown>>)[section][method];
|
||||
delete (this._rx.rpc as unknown as Record<string, Record<string, unknown>>)[section][method];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected _decorateRpc<ApiType extends ApiTypes> (rpc: RpcCore & RpcInterface, decorateMethod: DecorateMethod<ApiType>, input: Partial<DecoratedRpc<ApiType, RpcInterface>> = {}): DecoratedRpc<ApiType, RpcInterface> {
|
||||
private _rpcSubmitter<ApiType extends ApiTypes> (decorateMethod: DecorateMethod<ApiType>): DecoratedRpc<ApiType, RpcInterface> {
|
||||
const method = (method: string, ...params: any[]) => {
|
||||
return from(this._rpcCore.provider.send<AnyJson>(method, params.map((p) => stringify(p))));
|
||||
};
|
||||
|
||||
return decorateMethod(method) as DecoratedRpc<ApiType, RpcInterface>;
|
||||
}
|
||||
|
||||
protected _decorateRpc<ApiType extends ApiTypes> (rpc: RpcCore & RpcInterface, decorateMethod: DecorateMethod<ApiType>, input: Partial<DecoratedRpc<ApiType, RpcInterface>> = this._rpcSubmitter(decorateMethod)): DecoratedRpc<ApiType, RpcInterface> {
|
||||
const out: Record<string, Record<string, unknown>> = input;
|
||||
|
||||
const decorateFn = (section: string, method: string): unknown => {
|
||||
@@ -446,7 +456,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
}
|
||||
}
|
||||
|
||||
return out as DecoratedRpc<ApiType, RpcInterface>;
|
||||
return out as unknown as DecoratedRpc<ApiType, RpcInterface>;
|
||||
}
|
||||
|
||||
// add all definition entries
|
||||
|
||||
@@ -271,7 +271,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
|
||||
for (let s = 0; s < sections.length; s++) {
|
||||
const section = sections[s];
|
||||
const methods = Object.keys((source.rpc as Record<string, Record<string, unknown>>)[section]);
|
||||
const methods = Object.keys((source.rpc as unknown as Record<string, Record<string, unknown>>)[section]);
|
||||
|
||||
for (let m = 0; m < methods.length; m++) {
|
||||
rpcs.push(`${section}_${methods[m]}`);
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# @polkadot/api-augment
|
||||
# @polkadot/rpc-augment
|
||||
|
||||
Generated augmentation.
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/rpc-core": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-core": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -20,18 +20,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/rpc-augment": "9.6.2",
|
||||
"@polkadot/rpc-provider": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/rpc-augment": "9.7.1",
|
||||
"@polkadot/rpc-provider": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"rxjs": "^7.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/rpc-augment": "9.6.2"
|
||||
"@polkadot/rpc-augment": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -20,19 +20,19 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-support": "9.6.2",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-support": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"@polkadot/x-fetch": "^10.1.11",
|
||||
"@polkadot/x-global": "^10.1.11",
|
||||
"@polkadot/x-ws": "^10.1.11",
|
||||
"@substrate/connect": "0.7.15",
|
||||
"@substrate/connect": "0.7.16",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"mock-socket": "^9.1.5",
|
||||
"nock": "^13.2.9"
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
|
||||
export { HttpProvider } from './http';
|
||||
export { packageInfo } from './packageInfo';
|
||||
export { WsProvider } from './ws';
|
||||
export { ScProvider } from './substrate-connect';
|
||||
export { WsProvider } from './ws';
|
||||
|
||||
@@ -97,6 +97,13 @@ export class HttpProvider implements ProviderInterface {
|
||||
return this.#stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary `true` when this provider supports clone()
|
||||
*/
|
||||
public get isClonable (): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary Whether the node is connected or not.
|
||||
* @return {boolean} true if connected
|
||||
|
||||
@@ -114,6 +114,10 @@ export class MockProvider implements ProviderInterface {
|
||||
}
|
||||
}
|
||||
|
||||
public get isClonable (): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public get isConnected (): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { stringify } from '@polkadot/util';
|
||||
|
||||
export interface SmoldotHealth {
|
||||
isSyncing: boolean
|
||||
peers: number
|
||||
@@ -105,10 +107,7 @@ class InnerChecker {
|
||||
#isSyncing = false;
|
||||
#nextRequestId = 0;
|
||||
|
||||
constructor (
|
||||
healthCallback: (health: SmoldotHealth) => void,
|
||||
requestToSmoldot: (request: string) => void
|
||||
) {
|
||||
constructor (healthCallback: (health: SmoldotHealth) => void, requestToSmoldot: (request: string) => void) {
|
||||
this.#healthCallback = healthCallback;
|
||||
this.#requestToSmoldot = requestToSmoldot;
|
||||
}
|
||||
@@ -124,12 +123,12 @@ class InnerChecker {
|
||||
}
|
||||
|
||||
if (parsedRequest.id) {
|
||||
const newId = 'extern:' + JSON.stringify(parsedRequest.id);
|
||||
const newId = 'extern:' + stringify(parsedRequest.id);
|
||||
|
||||
parsedRequest.id = newId;
|
||||
}
|
||||
|
||||
this.#requestToSmoldot(JSON.stringify(parsedRequest));
|
||||
this.#requestToSmoldot(stringify(parsedRequest));
|
||||
};
|
||||
|
||||
responsePassThrough = (jsonRpcResponse: string): string | null => {
|
||||
@@ -220,7 +219,7 @@ class InnerChecker {
|
||||
parsedResponse.id = newId;
|
||||
}
|
||||
|
||||
return JSON.stringify(parsedResponse);
|
||||
return stringify(parsedResponse);
|
||||
};
|
||||
|
||||
update = (startNow: boolean): void => {
|
||||
@@ -241,12 +240,11 @@ class InnerChecker {
|
||||
}
|
||||
|
||||
// Actual request starting.
|
||||
this.#currentHealthCheckId = 'health-checker:'.concat(
|
||||
this.#nextRequestId.toString()
|
||||
);
|
||||
this.#currentHealthCheckId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
JSON.stringify({
|
||||
stringify({
|
||||
id: this.#currentHealthCheckId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'system_health',
|
||||
@@ -284,12 +282,11 @@ class InnerChecker {
|
||||
throw new Error('Internal error in health checker');
|
||||
}
|
||||
|
||||
this.#currentSubunsubRequestId = 'health-checker:'.concat(
|
||||
this.#nextRequestId.toString()
|
||||
);
|
||||
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
JSON.stringify({
|
||||
stringify({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_subscribeNewHeads',
|
||||
@@ -303,12 +300,11 @@ class InnerChecker {
|
||||
throw new Error('Internal error in health checker');
|
||||
}
|
||||
|
||||
this.#currentSubunsubRequestId = 'health-checker:'.concat(
|
||||
this.#nextRequestId.toString()
|
||||
);
|
||||
this.#currentSubunsubRequestId = `health-checker:${this.#nextRequestId}`;
|
||||
this.#nextRequestId += 1;
|
||||
|
||||
this.#requestToSmoldot(
|
||||
JSON.stringify({
|
||||
stringify({
|
||||
id: this.#currentSubunsubRequestId,
|
||||
jsonrpc: '2.0',
|
||||
method: 'chain_unsubscribeNewHeads',
|
||||
@@ -332,11 +328,9 @@ export class HealthCheckError extends Error {
|
||||
return this.#cause;
|
||||
}
|
||||
|
||||
constructor (
|
||||
response: unknown,
|
||||
message = 'Got error response asking for system health'
|
||||
) {
|
||||
constructor (response: unknown, message = 'Got error response asking for system health') {
|
||||
super(message);
|
||||
|
||||
this.#cause = response;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,394 +0,0 @@
|
||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Config as ScConfig } from '@substrate/connect';
|
||||
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
||||
|
||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
|
||||
import { isError, logger, objectSpread } from '@polkadot/util';
|
||||
|
||||
import { RpcCoder } from '../coder';
|
||||
import { healthChecker } from './Health';
|
||||
|
||||
type ResponseCallback = (response: string | Error) => void
|
||||
|
||||
const l = logger('api-substrate-connect');
|
||||
|
||||
// These methods have been taken from:
|
||||
// https://github.com/paritytech/smoldot/blob/17425040ddda47d539556eeaf62b88c4240d1d42/src/json_rpc/methods.rs#L338-L462
|
||||
// It's important to take into account that smoldot is adding support to the new
|
||||
// json-rpc-interface https://paritytech.github.io/json-rpc-interface-spec/
|
||||
// However, at the moment this list only includes methods that belong to the "old" API
|
||||
const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
||||
['author_submitAndWatchExtrinsic', 'author_unwatchExtrinsic'],
|
||||
['chain_subscribeAllHeads', 'chain_unsubscribeAllHeads'],
|
||||
['chain_subscribeFinalizedHeads', 'chain_unsubscribeFinalizedHeads'],
|
||||
['chain_subscribeFinalisedHeads', 'chain_subscribeFinalisedHeads'],
|
||||
['chain_subscribeNewHeads', 'chain_unsubscribeNewHeads'],
|
||||
['chain_subscribeNewHead', 'chain_unsubscribeNewHead'],
|
||||
['chain_subscribeRuntimeVersion', 'chain_unsubscribeRuntimeVersion'],
|
||||
['subscribe_newHead', 'unsubscribe_newHead'],
|
||||
['state_subscribeRuntimeVersion', 'state_unsubscribeRuntimeVersion'],
|
||||
['state_subscribeStorage', 'state_unsubscribeStorage']
|
||||
]);
|
||||
|
||||
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||
|
||||
export { WellKnownChain };
|
||||
|
||||
interface ActiveSubs {
|
||||
type: string,
|
||||
method: string,
|
||||
params: any[],
|
||||
callback: ProviderInterfaceCallback
|
||||
}
|
||||
|
||||
export class ScProvider implements ProviderInterface {
|
||||
readonly #coder: RpcCoder = new RpcCoder();
|
||||
readonly #spec: string | WellKnownChain;
|
||||
readonly #sharedSandbox?: ScProvider;
|
||||
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
||||
readonly #resubscribeMethods: Map<string, ActiveSubs> = new Map();
|
||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||
#chain: Promise<Chain> | null = null;
|
||||
#isChainReady = false;
|
||||
|
||||
static WellKnownChain = WellKnownChain;
|
||||
|
||||
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
||||
this.#spec = spec;
|
||||
this.#sharedSandbox = sharedSandbox;
|
||||
}
|
||||
|
||||
public get hasSubscriptions (): boolean {
|
||||
// Indicates that subscriptions are supported
|
||||
return true;
|
||||
}
|
||||
|
||||
public get isConnected (): boolean {
|
||||
return !!this.#chain && this.#isChainReady;
|
||||
}
|
||||
|
||||
public clone (): ProviderInterface {
|
||||
throw new Error('clone() is not supported.');
|
||||
}
|
||||
|
||||
// Config details can be found in @substrate/connect repo following the link:
|
||||
// https://github.com/paritytech/substrate-connect/blob/main/packages/connect/src/connector/index.ts
|
||||
async connect (config?: ScConfig, checkerFactory = healthChecker): Promise<void> {
|
||||
if (this.isConnected) {
|
||||
throw new Error('Already connected!');
|
||||
}
|
||||
|
||||
// it could happen that after emitting `disconnected` due to the fact taht
|
||||
// smoldot is syncing, the consumer tries to reconnect after a certain amount
|
||||
// of time... In which case we want to make sure that we don't create a new
|
||||
// chain.
|
||||
if (this.#chain) {
|
||||
await this.#chain;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.#sharedSandbox && !this.#sharedSandbox.isConnected) {
|
||||
await this.#sharedSandbox.connect();
|
||||
}
|
||||
|
||||
const client = this.#sharedSandbox
|
||||
? scClients.get(this.#sharedSandbox)
|
||||
: createScClient(config);
|
||||
|
||||
if (!client) {
|
||||
throw new Error('Unkown ScProvider!');
|
||||
}
|
||||
|
||||
scClients.set(this, client);
|
||||
|
||||
const hc = checkerFactory();
|
||||
|
||||
const onResponse = (res: string): void => {
|
||||
const hcRes = hc.responsePassThrough(res);
|
||||
|
||||
if (!hcRes) {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = JSON.parse(hcRes) as JsonRpcResponse;
|
||||
let decodedResponse: string | Error;
|
||||
|
||||
try {
|
||||
decodedResponse = this.#coder.decodeResponse(response) as string;
|
||||
} catch (e) {
|
||||
decodedResponse = e as Error;
|
||||
}
|
||||
|
||||
// It's not a subscription message, but rather a standar RPC response
|
||||
if (response.params?.subscription === undefined || !response.method) {
|
||||
return this.#requests.get(response.id)?.(decodedResponse);
|
||||
}
|
||||
|
||||
// We are dealing with a subscription message
|
||||
const subscriptionId = `${response.method}::${response.params.subscription}`;
|
||||
|
||||
const callback = this.#subscriptions.get(subscriptionId)?.[0];
|
||||
|
||||
callback?.(decodedResponse);
|
||||
};
|
||||
|
||||
const addChain = wellKnownChains.has(this.#spec as WellKnownChain)
|
||||
? client.addWellKnownChain
|
||||
: client.addChain;
|
||||
|
||||
this.#chain = addChain(this.#spec as WellKnownChain, onResponse).then((chain) => {
|
||||
hc.setSendJsonRpc(chain.sendJsonRpc);
|
||||
|
||||
this.#isChainReady = false;
|
||||
|
||||
const cleanup = () => {
|
||||
// If there are any callbacks left, we have to reject/error them.
|
||||
// Otherwise, that would cause a memory leak.
|
||||
const disconnectionError = new Error('Disconnected');
|
||||
|
||||
this.#requests.forEach((cb) => cb(disconnectionError));
|
||||
this.#subscriptions.forEach(([cb]) => cb(disconnectionError));
|
||||
this.#subscriptions.clear();
|
||||
};
|
||||
|
||||
const staleSubscriptions: {
|
||||
unsubscribeMethod: string
|
||||
id: number | string
|
||||
}[] = [];
|
||||
|
||||
const killStaleSubscriptions = () => {
|
||||
if (staleSubscriptions.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const stale = staleSubscriptions.pop();
|
||||
|
||||
if (!stale) {
|
||||
throw new Error('Unable to get stale subscription');
|
||||
}
|
||||
|
||||
const { id, unsubscribeMethod } = stale;
|
||||
|
||||
Promise
|
||||
.race([
|
||||
this.send(unsubscribeMethod, [id]).catch(() => undefined),
|
||||
new Promise((resolve) => setTimeout(resolve, 500))
|
||||
])
|
||||
.then(killStaleSubscriptions)
|
||||
.catch(() => undefined);
|
||||
};
|
||||
|
||||
hc.start((health) => {
|
||||
const isReady =
|
||||
!health.isSyncing && (health.peers > 0 || !health.shouldHavePeers);
|
||||
|
||||
// if it's the same as before, then nothing has changed and we are done
|
||||
if (this.#isChainReady === isReady) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.#isChainReady = isReady;
|
||||
|
||||
if (!isReady) {
|
||||
// If we've reached this point, that means that the chain used to be "ready"
|
||||
// and now we are about to emit `disconnected`.
|
||||
//
|
||||
// This will cause the PolkadotJs API think that the connection is
|
||||
// actually dead. In reality the smoldot chain is not dead, of course.
|
||||
// However, we have to cleanup all the existing callbacks because when
|
||||
// the smoldot chain stops syncing, then we will emit `connected` and
|
||||
// the PolkadotJs API will try to re-create the previous
|
||||
// subscriptions and requests. Although, now is not a good moment
|
||||
// to be sending unsubscription messages to the smoldot chain, we
|
||||
// should wait until is no longer syncing to send the unsubscription
|
||||
// messages from the stale subscriptions of the previous connection.
|
||||
//
|
||||
// That's why -before we perform the cleanup of `this.#subscriptions`-
|
||||
// we keep the necessary information that we will need later on to
|
||||
// kill the stale subscriptions.
|
||||
[...this.#subscriptions.values()].forEach((s) => {
|
||||
staleSubscriptions.push(s[1]);
|
||||
});
|
||||
cleanup();
|
||||
|
||||
this.#eventemitter.emit('disconnected');
|
||||
} else {
|
||||
killStaleSubscriptions();
|
||||
|
||||
this.#eventemitter.emit('connected');
|
||||
|
||||
if (this.#resubscribeMethods.size) {
|
||||
this.#resubscribe();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return objectSpread({}, chain, {
|
||||
remove: () => {
|
||||
hc.stop();
|
||||
chain.remove();
|
||||
cleanup();
|
||||
},
|
||||
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
||||
});
|
||||
});
|
||||
|
||||
try {
|
||||
await this.#chain;
|
||||
} catch (e) {
|
||||
this.#chain = null;
|
||||
this.#eventemitter.emit('error', e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
#resubscribe = (): void => {
|
||||
const promises: any[] = [];
|
||||
|
||||
this.#resubscribeMethods.forEach((subDetails: ActiveSubs): void => {
|
||||
// only re-create subscriptions which are not in author (only area where
|
||||
// transactions are created, i.e. submissions such as 'author_submitAndWatchExtrinsic'
|
||||
// are not included (and will not be re-broadcast)
|
||||
if (subDetails.type.startsWith('author_')) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const promise: Promise<void> = new Promise((resolve) => {
|
||||
this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error));
|
||||
resolve();
|
||||
});
|
||||
|
||||
promises.push(promise);
|
||||
} catch (error) {
|
||||
l.error(error);
|
||||
}
|
||||
});
|
||||
|
||||
Promise.all(promises).catch((err) => l.log(err));
|
||||
};
|
||||
|
||||
async disconnect (): Promise<void> {
|
||||
if (!this.#chain) {
|
||||
return;
|
||||
}
|
||||
|
||||
const chain = await this.#chain;
|
||||
|
||||
this.#chain = null;
|
||||
this.#isChainReady = false;
|
||||
|
||||
try {
|
||||
chain.remove();
|
||||
} catch (_) {}
|
||||
|
||||
this.#eventemitter.emit('disconnected');
|
||||
}
|
||||
|
||||
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
||||
// It's possible. Although, quite unlikely, that by the time that polkadot
|
||||
// subscribes to the `connected` event, the Provider is already connected.
|
||||
// In that case, we must emit to let the consumer know that we are connected.
|
||||
if (type === 'connected' && this.isConnected) {
|
||||
sub();
|
||||
}
|
||||
|
||||
this.#eventemitter.on(type, sub);
|
||||
|
||||
return (): void => {
|
||||
this.#eventemitter.removeListener(type, sub);
|
||||
};
|
||||
}
|
||||
|
||||
public async send<T = any> (method: string, params: unknown[]): Promise<T> {
|
||||
if (!this.isConnected || !this.#chain) {
|
||||
throw new Error('Provider is not connected');
|
||||
}
|
||||
|
||||
const chain = await this.#chain;
|
||||
const [id, json] = this.#coder.encodeJson(method, params);
|
||||
|
||||
const result = new Promise<T>((resolve, reject): void => {
|
||||
this.#requests.set(id, (response) => {
|
||||
(isError(response) ? reject : resolve)(response as unknown as T);
|
||||
});
|
||||
|
||||
try {
|
||||
chain.sendJsonRpc(json);
|
||||
} catch (e) {
|
||||
this.#chain = null;
|
||||
|
||||
try {
|
||||
chain.remove();
|
||||
} catch (_) {}
|
||||
|
||||
this.#eventemitter.emit('error', e);
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
return await result;
|
||||
} finally {
|
||||
// let's ensure that once the Promise is resolved/rejected, then we remove
|
||||
// remove its entry from the internal #requests
|
||||
this.#requests.delete(id);
|
||||
}
|
||||
}
|
||||
|
||||
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
||||
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
||||
throw new Error(`Unsupported subscribe method: ${method}`);
|
||||
}
|
||||
|
||||
const id = await this.send<number | string>(method, params);
|
||||
const subscriptionId = `${type}::${id}`;
|
||||
|
||||
const cb = (response: Error | string) => {
|
||||
if (response instanceof Error) {
|
||||
callback(response, undefined);
|
||||
} else {
|
||||
callback(null, response);
|
||||
}
|
||||
};
|
||||
|
||||
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method);
|
||||
|
||||
if (!unsubscribeMethod) {
|
||||
throw new Error('Invalid unsubscribe method found');
|
||||
}
|
||||
|
||||
this.#resubscribeMethods.set(subscriptionId, { callback, method, params, type });
|
||||
|
||||
this.#subscriptions.set(subscriptionId, [cb, { id, unsubscribeMethod }]);
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
||||
if (!this.isConnected) {
|
||||
throw new Error('Provider is not connected');
|
||||
}
|
||||
|
||||
const subscriptionId = `${type}::${id}`;
|
||||
|
||||
if (!this.#subscriptions.has(subscriptionId)) {
|
||||
return Promise.reject(
|
||||
new Error(`Unable to find active subscription=${subscriptionId}`)
|
||||
);
|
||||
}
|
||||
|
||||
this.#resubscribeMethods.delete(subscriptionId);
|
||||
this.#subscriptions.delete(subscriptionId);
|
||||
|
||||
return this.send(method, [id]);
|
||||
}
|
||||
}
|
||||
export type ScProviderClass = typeof ScProvider
|
||||
export type Config = ScConfig
|
||||
+2
-2
@@ -19,8 +19,8 @@
|
||||
// Jest has "some" issues with `await import` - we don't transform these
|
||||
|
||||
import type { Chain, JsonRpcCallback } from '@substrate/connect';
|
||||
import type { ScProviderClass } from '.';
|
||||
import type { HealthChecker, SmoldotHealth } from './Health';
|
||||
import type { ScProviderClass } from './ScProvider';
|
||||
|
||||
import { jest } from '@jest/globals';
|
||||
|
||||
@@ -198,7 +198,7 @@ const setChainSyncyingStatus = (isSyncing: boolean) => {
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
({ ScProvider } = await import('./ScProvider'));
|
||||
({ ScProvider } = await import('.'));
|
||||
mockedConnector = (await import(
|
||||
'@substrate/connect'
|
||||
)) as unknown as ReturnType<typeof connectorFactory>;
|
||||
@@ -1,4 +1,399 @@
|
||||
// Copyright 2017-2022 @polkadot/rpc-provider authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './ScProvider';
|
||||
import type { Config as ScConfig } from '@substrate/connect';
|
||||
import type { JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted } from '../types';
|
||||
|
||||
import { Chain, createScClient, ScClient, WellKnownChain } from '@substrate/connect';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
|
||||
import { isError, logger, objectSpread } from '@polkadot/util';
|
||||
|
||||
import { RpcCoder } from '../coder';
|
||||
import { healthChecker } from './Health';
|
||||
|
||||
type ResponseCallback = (response: string | Error) => void
|
||||
|
||||
const l = logger('api-substrate-connect');
|
||||
|
||||
// These methods have been taken from:
|
||||
// https://github.com/paritytech/smoldot/blob/17425040ddda47d539556eeaf62b88c4240d1d42/src/json_rpc/methods.rs#L338-L462
|
||||
// It's important to take into account that smoldot is adding support to the new
|
||||
// json-rpc-interface https://paritytech.github.io/json-rpc-interface-spec/
|
||||
// However, at the moment this list only includes methods that belong to the "old" API
|
||||
const subscriptionUnsubscriptionMethods = new Map<string, string>([
|
||||
['author_submitAndWatchExtrinsic', 'author_unwatchExtrinsic'],
|
||||
['chain_subscribeAllHeads', 'chain_unsubscribeAllHeads'],
|
||||
['chain_subscribeFinalizedHeads', 'chain_unsubscribeFinalizedHeads'],
|
||||
['chain_subscribeFinalisedHeads', 'chain_subscribeFinalisedHeads'],
|
||||
['chain_subscribeNewHeads', 'chain_unsubscribeNewHeads'],
|
||||
['chain_subscribeNewHead', 'chain_unsubscribeNewHead'],
|
||||
['chain_subscribeRuntimeVersion', 'chain_unsubscribeRuntimeVersion'],
|
||||
['subscribe_newHead', 'unsubscribe_newHead'],
|
||||
['state_subscribeRuntimeVersion', 'state_unsubscribeRuntimeVersion'],
|
||||
['state_subscribeStorage', 'state_unsubscribeStorage']
|
||||
]);
|
||||
|
||||
const wellKnownChains = new Set(Object.values(WellKnownChain));
|
||||
const scClients = new WeakMap<ScProvider, ScClient>();
|
||||
|
||||
export { WellKnownChain };
|
||||
|
||||
interface ActiveSubs {
|
||||
type: string,
|
||||
method: string,
|
||||
params: any[],
|
||||
callback: ProviderInterfaceCallback
|
||||
}
|
||||
|
||||
export class ScProvider implements ProviderInterface {
|
||||
readonly #coder: RpcCoder = new RpcCoder();
|
||||
readonly #spec: string | WellKnownChain;
|
||||
readonly #sharedSandbox?: ScProvider;
|
||||
readonly #subscriptions: Map<string, [ResponseCallback, { unsubscribeMethod: string; id: string | number }]> = new Map();
|
||||
readonly #resubscribeMethods: Map<string, ActiveSubs> = new Map();
|
||||
readonly #requests: Map<number, ResponseCallback> = new Map();
|
||||
readonly #eventemitter: EventEmitter = new EventEmitter();
|
||||
#chain: Promise<Chain> | null = null;
|
||||
#isChainReady = false;
|
||||
|
||||
static WellKnownChain = WellKnownChain;
|
||||
|
||||
public constructor (spec: string | WellKnownChain, sharedSandbox?: ScProvider) {
|
||||
this.#spec = spec;
|
||||
this.#sharedSandbox = sharedSandbox;
|
||||
}
|
||||
|
||||
public get hasSubscriptions (): boolean {
|
||||
// Indicates that subscriptions are supported
|
||||
return true;
|
||||
}
|
||||
|
||||
public get isClonable (): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
public get isConnected (): boolean {
|
||||
return !!this.#chain && this.#isChainReady;
|
||||
}
|
||||
|
||||
public clone (): ProviderInterface {
|
||||
throw new Error('clone() is not supported.');
|
||||
}
|
||||
|
||||
// Config details can be found in @substrate/connect repo following the link:
|
||||
// https://github.com/paritytech/substrate-connect/blob/main/packages/connect/src/connector/index.ts
|
||||
async connect (config?: ScConfig, checkerFactory = healthChecker): Promise<void> {
|
||||
if (this.isConnected) {
|
||||
throw new Error('Already connected!');
|
||||
}
|
||||
|
||||
// it could happen that after emitting `disconnected` due to the fact taht
|
||||
// smoldot is syncing, the consumer tries to reconnect after a certain amount
|
||||
// of time... In which case we want to make sure that we don't create a new
|
||||
// chain.
|
||||
if (this.#chain) {
|
||||
await this.#chain;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.#sharedSandbox && !this.#sharedSandbox.isConnected) {
|
||||
await this.#sharedSandbox.connect();
|
||||
}
|
||||
|
||||
const client = this.#sharedSandbox
|
||||
? scClients.get(this.#sharedSandbox)
|
||||
: createScClient(config);
|
||||
|
||||
if (!client) {
|
||||
throw new Error('Unkown ScProvider!');
|
||||
}
|
||||
|
||||
scClients.set(this, client);
|
||||
|
||||
const hc = checkerFactory();
|
||||
|
||||
const onResponse = (res: string): void => {
|
||||
const hcRes = hc.responsePassThrough(res);
|
||||
|
||||
if (!hcRes) {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = JSON.parse(hcRes) as JsonRpcResponse;
|
||||
let decodedResponse: string | Error;
|
||||
|
||||
try {
|
||||
decodedResponse = this.#coder.decodeResponse(response) as string;
|
||||
} catch (e) {
|
||||
decodedResponse = e as Error;
|
||||
}
|
||||
|
||||
// It's not a subscription message, but rather a standar RPC response
|
||||
if (response.params?.subscription === undefined || !response.method) {
|
||||
return this.#requests.get(response.id)?.(decodedResponse);
|
||||
}
|
||||
|
||||
// We are dealing with a subscription message
|
||||
const subscriptionId = `${response.method}::${response.params.subscription}`;
|
||||
|
||||
const callback = this.#subscriptions.get(subscriptionId)?.[0];
|
||||
|
||||
callback?.(decodedResponse);
|
||||
};
|
||||
|
||||
const addChain = wellKnownChains.has(this.#spec as WellKnownChain)
|
||||
? client.addWellKnownChain
|
||||
: client.addChain;
|
||||
|
||||
this.#chain = addChain(this.#spec as WellKnownChain, onResponse).then((chain) => {
|
||||
hc.setSendJsonRpc(chain.sendJsonRpc);
|
||||
|
||||
this.#isChainReady = false;
|
||||
|
||||
const cleanup = () => {
|
||||
// If there are any callbacks left, we have to reject/error them.
|
||||
// Otherwise, that would cause a memory leak.
|
||||
const disconnectionError = new Error('Disconnected');
|
||||
|
||||
this.#requests.forEach((cb) => cb(disconnectionError));
|
||||
this.#subscriptions.forEach(([cb]) => cb(disconnectionError));
|
||||
this.#subscriptions.clear();
|
||||
};
|
||||
|
||||
const staleSubscriptions: {
|
||||
unsubscribeMethod: string
|
||||
id: number | string
|
||||
}[] = [];
|
||||
|
||||
const killStaleSubscriptions = () => {
|
||||
if (staleSubscriptions.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
const stale = staleSubscriptions.pop();
|
||||
|
||||
if (!stale) {
|
||||
throw new Error('Unable to get stale subscription');
|
||||
}
|
||||
|
||||
const { id, unsubscribeMethod } = stale;
|
||||
|
||||
Promise
|
||||
.race([
|
||||
this.send(unsubscribeMethod, [id]).catch(() => undefined),
|
||||
new Promise((resolve) => setTimeout(resolve, 500))
|
||||
])
|
||||
.then(killStaleSubscriptions)
|
||||
.catch(() => undefined);
|
||||
};
|
||||
|
||||
hc.start((health) => {
|
||||
const isReady =
|
||||
!health.isSyncing && (health.peers > 0 || !health.shouldHavePeers);
|
||||
|
||||
// if it's the same as before, then nothing has changed and we are done
|
||||
if (this.#isChainReady === isReady) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.#isChainReady = isReady;
|
||||
|
||||
if (!isReady) {
|
||||
// If we've reached this point, that means that the chain used to be "ready"
|
||||
// and now we are about to emit `disconnected`.
|
||||
//
|
||||
// This will cause the PolkadotJs API think that the connection is
|
||||
// actually dead. In reality the smoldot chain is not dead, of course.
|
||||
// However, we have to cleanup all the existing callbacks because when
|
||||
// the smoldot chain stops syncing, then we will emit `connected` and
|
||||
// the PolkadotJs API will try to re-create the previous
|
||||
// subscriptions and requests. Although, now is not a good moment
|
||||
// to be sending unsubscription messages to the smoldot chain, we
|
||||
// should wait until is no longer syncing to send the unsubscription
|
||||
// messages from the stale subscriptions of the previous connection.
|
||||
//
|
||||
// That's why -before we perform the cleanup of `this.#subscriptions`-
|
||||
// we keep the necessary information that we will need later on to
|
||||
// kill the stale subscriptions.
|
||||
[...this.#subscriptions.values()].forEach((s) => {
|
||||
staleSubscriptions.push(s[1]);
|
||||
});
|
||||
cleanup();
|
||||
|
||||
this.#eventemitter.emit('disconnected');
|
||||
} else {
|
||||
killStaleSubscriptions();
|
||||
|
||||
this.#eventemitter.emit('connected');
|
||||
|
||||
if (this.#resubscribeMethods.size) {
|
||||
this.#resubscribe();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return objectSpread({}, chain, {
|
||||
remove: () => {
|
||||
hc.stop();
|
||||
chain.remove();
|
||||
cleanup();
|
||||
},
|
||||
sendJsonRpc: hc.sendJsonRpc.bind(hc)
|
||||
});
|
||||
});
|
||||
|
||||
try {
|
||||
await this.#chain;
|
||||
} catch (e) {
|
||||
this.#chain = null;
|
||||
this.#eventemitter.emit('error', e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
#resubscribe = (): void => {
|
||||
const promises: any[] = [];
|
||||
|
||||
this.#resubscribeMethods.forEach((subDetails: ActiveSubs): void => {
|
||||
// only re-create subscriptions which are not in author (only area where
|
||||
// transactions are created, i.e. submissions such as 'author_submitAndWatchExtrinsic'
|
||||
// are not included (and will not be re-broadcast)
|
||||
if (subDetails.type.startsWith('author_')) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const promise: Promise<void> = new Promise((resolve) => {
|
||||
this.subscribe(subDetails.type, subDetails.method, subDetails.params, subDetails.callback).catch((error) => console.log(error));
|
||||
resolve();
|
||||
});
|
||||
|
||||
promises.push(promise);
|
||||
} catch (error) {
|
||||
l.error(error);
|
||||
}
|
||||
});
|
||||
|
||||
Promise.all(promises).catch((err) => l.log(err));
|
||||
};
|
||||
|
||||
async disconnect (): Promise<void> {
|
||||
if (!this.#chain) {
|
||||
return;
|
||||
}
|
||||
|
||||
const chain = await this.#chain;
|
||||
|
||||
this.#chain = null;
|
||||
this.#isChainReady = false;
|
||||
|
||||
try {
|
||||
chain.remove();
|
||||
} catch (_) {}
|
||||
|
||||
this.#eventemitter.emit('disconnected');
|
||||
}
|
||||
|
||||
public on (type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => void {
|
||||
// It's possible. Although, quite unlikely, that by the time that polkadot
|
||||
// subscribes to the `connected` event, the Provider is already connected.
|
||||
// In that case, we must emit to let the consumer know that we are connected.
|
||||
if (type === 'connected' && this.isConnected) {
|
||||
sub();
|
||||
}
|
||||
|
||||
this.#eventemitter.on(type, sub);
|
||||
|
||||
return (): void => {
|
||||
this.#eventemitter.removeListener(type, sub);
|
||||
};
|
||||
}
|
||||
|
||||
public async send<T = any> (method: string, params: unknown[]): Promise<T> {
|
||||
if (!this.isConnected || !this.#chain) {
|
||||
throw new Error('Provider is not connected');
|
||||
}
|
||||
|
||||
const chain = await this.#chain;
|
||||
const [id, json] = this.#coder.encodeJson(method, params);
|
||||
|
||||
const result = new Promise<T>((resolve, reject): void => {
|
||||
this.#requests.set(id, (response) => {
|
||||
(isError(response) ? reject : resolve)(response as unknown as T);
|
||||
});
|
||||
|
||||
try {
|
||||
chain.sendJsonRpc(json);
|
||||
} catch (e) {
|
||||
this.#chain = null;
|
||||
|
||||
try {
|
||||
chain.remove();
|
||||
} catch (_) {}
|
||||
|
||||
this.#eventemitter.emit('error', e);
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
return await result;
|
||||
} finally {
|
||||
// let's ensure that once the Promise is resolved/rejected, then we remove
|
||||
// remove its entry from the internal #requests
|
||||
this.#requests.delete(id);
|
||||
}
|
||||
}
|
||||
|
||||
public async subscribe (type: string, method: string, params: any[], callback: ProviderInterfaceCallback): Promise<number | string> {
|
||||
if (!subscriptionUnsubscriptionMethods.has(method)) {
|
||||
throw new Error(`Unsupported subscribe method: ${method}`);
|
||||
}
|
||||
|
||||
const id = await this.send<number | string>(method, params);
|
||||
const subscriptionId = `${type}::${id}`;
|
||||
|
||||
const cb = (response: Error | string) => {
|
||||
if (response instanceof Error) {
|
||||
callback(response, undefined);
|
||||
} else {
|
||||
callback(null, response);
|
||||
}
|
||||
};
|
||||
|
||||
const unsubscribeMethod = subscriptionUnsubscriptionMethods.get(method);
|
||||
|
||||
if (!unsubscribeMethod) {
|
||||
throw new Error('Invalid unsubscribe method found');
|
||||
}
|
||||
|
||||
this.#resubscribeMethods.set(subscriptionId, { callback, method, params, type });
|
||||
|
||||
this.#subscriptions.set(subscriptionId, [cb, { id, unsubscribeMethod }]);
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
public unsubscribe (type: string, method: string, id: number | string): Promise<boolean> {
|
||||
if (!this.isConnected) {
|
||||
throw new Error('Provider is not connected');
|
||||
}
|
||||
|
||||
const subscriptionId = `${type}::${id}`;
|
||||
|
||||
if (!this.#subscriptions.has(subscriptionId)) {
|
||||
return Promise.reject(
|
||||
new Error(`Unable to find active subscription=${subscriptionId}`)
|
||||
);
|
||||
}
|
||||
|
||||
this.#resubscribeMethods.delete(subscriptionId);
|
||||
this.#subscriptions.delete(subscriptionId);
|
||||
|
||||
return this.send(method, [id]);
|
||||
}
|
||||
}
|
||||
|
||||
export type ScProviderClass = typeof ScProvider
|
||||
export type Config = ScConfig
|
||||
|
||||
@@ -49,8 +49,13 @@ export type ProviderInterfaceEmitted = 'connected' | 'disconnected' | 'error';
|
||||
export type ProviderInterfaceEmitCb = (value?: any) => any;
|
||||
|
||||
export interface ProviderInterface {
|
||||
/** true if the provider supports subscriptions (not available for HTTP) */
|
||||
readonly hasSubscriptions: boolean;
|
||||
/** true if the clone() functionality is available on the provider */
|
||||
readonly isClonable: boolean;
|
||||
/** true if the provider is currently connected (ws/sc has connection logic) */
|
||||
readonly isConnected: boolean;
|
||||
/** (optional) stats for the provider with connections/bytes */
|
||||
readonly stats?: ProviderStats;
|
||||
|
||||
clone (): ProviderInterface;
|
||||
|
||||
@@ -165,6 +165,13 @@ export class WsProvider implements ProviderInterface {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary `true` when this provider supports clone()
|
||||
*/
|
||||
public get isClonable (): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary Whether the node is connected or not.
|
||||
* @return {boolean} true if connected
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
|
||||
@@ -30,24 +30,24 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.19.6",
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/register": "^7.18.9",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/api": "9.6.2",
|
||||
"@polkadot/api-augment": "9.6.2",
|
||||
"@polkadot/rpc-augment": "9.6.2",
|
||||
"@polkadot/rpc-provider": "9.6.2",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-augment": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@polkadot/types-create": "9.6.2",
|
||||
"@polkadot/types-support": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/api": "9.7.1",
|
||||
"@polkadot/api-augment": "9.7.1",
|
||||
"@polkadot/rpc-augment": "9.7.1",
|
||||
"@polkadot/rpc-provider": "9.7.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-augment": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/types-create": "9.7.1",
|
||||
"@polkadot/types-support": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"@polkadot/x-ws": "^10.1.11",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.34",
|
||||
"yargs": "^17.6.0"
|
||||
"yargs": "^17.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/websocket": "^1.0.5",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# @polkadot/api-augment
|
||||
# @polkadot/types-augment
|
||||
|
||||
Generated augmentation.
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2327,6 +2327,7 @@ export default {
|
||||
upload_code: {
|
||||
code: 'Bytes',
|
||||
storageDepositLimit: 'Option<Compact<u128>>',
|
||||
determinism: 'PalletContractsWasmDeterminism',
|
||||
},
|
||||
remove_code: {
|
||||
codeHash: 'H256',
|
||||
@@ -2361,7 +2362,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup234: pallet_sudo::pallet::Call<T>
|
||||
* Lookup234: pallet_contracts::wasm::Determinism
|
||||
**/
|
||||
PalletContractsWasmDeterminism: {
|
||||
_enum: ['Deterministic', 'AllowIndeterminism']
|
||||
},
|
||||
/**
|
||||
* Lookup235: pallet_sudo::pallet::Call<T>
|
||||
**/
|
||||
PalletSudoCall: {
|
||||
_enum: {
|
||||
@@ -2385,7 +2392,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup235: pallet_im_online::pallet::Call<T>
|
||||
* Lookup236: pallet_im_online::pallet::Call<T>
|
||||
**/
|
||||
PalletImOnlineCall: {
|
||||
_enum: {
|
||||
@@ -2396,7 +2403,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup236: pallet_im_online::Heartbeat<BlockNumber>
|
||||
* Lookup237: pallet_im_online::Heartbeat<BlockNumber>
|
||||
**/
|
||||
PalletImOnlineHeartbeat: {
|
||||
blockNumber: 'u32',
|
||||
@@ -2406,22 +2413,22 @@ export default {
|
||||
validatorsLen: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup237: sp_core::offchain::OpaqueNetworkState
|
||||
* Lookup238: sp_core::offchain::OpaqueNetworkState
|
||||
**/
|
||||
SpCoreOffchainOpaqueNetworkState: {
|
||||
peerId: 'OpaquePeerId',
|
||||
externalAddresses: 'Vec<OpaqueMultiaddr>'
|
||||
},
|
||||
/**
|
||||
* Lookup241: pallet_im_online::sr25519::app_sr25519::Signature
|
||||
* Lookup242: pallet_im_online::sr25519::app_sr25519::Signature
|
||||
**/
|
||||
PalletImOnlineSr25519AppSr25519Signature: 'SpCoreSr25519Signature',
|
||||
/**
|
||||
* Lookup242: sp_core::sr25519::Signature
|
||||
* Lookup243: sp_core::sr25519::Signature
|
||||
**/
|
||||
SpCoreSr25519Signature: '[u8;64]',
|
||||
/**
|
||||
* Lookup243: pallet_identity::pallet::Call<T>
|
||||
* Lookup244: pallet_identity::pallet::Call<T>
|
||||
**/
|
||||
PalletIdentityCall: {
|
||||
_enum: {
|
||||
@@ -2481,7 +2488,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup244: pallet_identity::types::IdentityInfo<FieldLimit>
|
||||
* Lookup245: pallet_identity::types::IdentityInfo<FieldLimit>
|
||||
**/
|
||||
PalletIdentityIdentityInfo: {
|
||||
additional: 'Vec<(Data,Data)>',
|
||||
@@ -2495,7 +2502,7 @@ export default {
|
||||
twitter: 'Data'
|
||||
},
|
||||
/**
|
||||
* Lookup281: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
|
||||
* Lookup282: pallet_identity::types::BitFlags<pallet_identity::types::IdentityField>
|
||||
**/
|
||||
PalletIdentityBitFlags: {
|
||||
_bitLength: 64,
|
||||
@@ -2509,13 +2516,13 @@ export default {
|
||||
Twitter: 128
|
||||
},
|
||||
/**
|
||||
* Lookup282: pallet_identity::types::IdentityField
|
||||
* Lookup283: pallet_identity::types::IdentityField
|
||||
**/
|
||||
PalletIdentityIdentityField: {
|
||||
_enum: ['__Unused0', 'Display', 'Legal', '__Unused3', 'Web', '__Unused5', '__Unused6', '__Unused7', 'Riot', '__Unused9', '__Unused10', '__Unused11', '__Unused12', '__Unused13', '__Unused14', '__Unused15', 'Email', '__Unused17', '__Unused18', '__Unused19', '__Unused20', '__Unused21', '__Unused22', '__Unused23', '__Unused24', '__Unused25', '__Unused26', '__Unused27', '__Unused28', '__Unused29', '__Unused30', '__Unused31', 'PgpFingerprint', '__Unused33', '__Unused34', '__Unused35', '__Unused36', '__Unused37', '__Unused38', '__Unused39', '__Unused40', '__Unused41', '__Unused42', '__Unused43', '__Unused44', '__Unused45', '__Unused46', '__Unused47', '__Unused48', '__Unused49', '__Unused50', '__Unused51', '__Unused52', '__Unused53', '__Unused54', '__Unused55', '__Unused56', '__Unused57', '__Unused58', '__Unused59', '__Unused60', '__Unused61', '__Unused62', '__Unused63', 'Image', '__Unused65', '__Unused66', '__Unused67', '__Unused68', '__Unused69', '__Unused70', '__Unused71', '__Unused72', '__Unused73', '__Unused74', '__Unused75', '__Unused76', '__Unused77', '__Unused78', '__Unused79', '__Unused80', '__Unused81', '__Unused82', '__Unused83', '__Unused84', '__Unused85', '__Unused86', '__Unused87', '__Unused88', '__Unused89', '__Unused90', '__Unused91', '__Unused92', '__Unused93', '__Unused94', '__Unused95', '__Unused96', '__Unused97', '__Unused98', '__Unused99', '__Unused100', '__Unused101', '__Unused102', '__Unused103', '__Unused104', '__Unused105', '__Unused106', '__Unused107', '__Unused108', '__Unused109', '__Unused110', '__Unused111', '__Unused112', '__Unused113', '__Unused114', '__Unused115', '__Unused116', '__Unused117', '__Unused118', '__Unused119', '__Unused120', '__Unused121', '__Unused122', '__Unused123', '__Unused124', '__Unused125', '__Unused126', '__Unused127', 'Twitter']
|
||||
},
|
||||
/**
|
||||
* Lookup283: pallet_identity::types::Judgement<Balance>
|
||||
* Lookup284: pallet_identity::types::Judgement<Balance>
|
||||
**/
|
||||
PalletIdentityJudgement: {
|
||||
_enum: {
|
||||
@@ -2529,7 +2536,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup284: pallet_society::pallet::Call<T, I>
|
||||
* Lookup285: pallet_society::pallet::Call<T, I>
|
||||
**/
|
||||
PalletSocietyCall: {
|
||||
_enum: {
|
||||
@@ -2575,13 +2582,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup285: pallet_society::Judgement
|
||||
* Lookup286: pallet_society::Judgement
|
||||
**/
|
||||
PalletSocietyJudgement: {
|
||||
_enum: ['Rebid', 'Reject', 'Approve']
|
||||
},
|
||||
/**
|
||||
* Lookup286: pallet_recovery::pallet::Call<T>
|
||||
* Lookup287: pallet_recovery::pallet::Call<T>
|
||||
**/
|
||||
PalletRecoveryCall: {
|
||||
_enum: {
|
||||
@@ -2618,7 +2625,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup287: pallet_vesting::pallet::Call<T>
|
||||
* Lookup288: pallet_vesting::pallet::Call<T>
|
||||
**/
|
||||
PalletVestingCall: {
|
||||
_enum: {
|
||||
@@ -2642,7 +2649,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup288: pallet_vesting::vesting_info::VestingInfo<Balance, BlockNumber>
|
||||
* Lookup289: pallet_vesting::vesting_info::VestingInfo<Balance, BlockNumber>
|
||||
**/
|
||||
PalletVestingVestingInfo: {
|
||||
locked: 'u128',
|
||||
@@ -2650,7 +2657,7 @@ export default {
|
||||
startingBlock: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup289: pallet_scheduler::pallet::Call<T>
|
||||
* Lookup290: pallet_scheduler::pallet::Call<T>
|
||||
**/
|
||||
PalletSchedulerCall: {
|
||||
_enum: {
|
||||
@@ -2690,7 +2697,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup291: pallet_preimage::pallet::Call<T>
|
||||
* Lookup292: pallet_preimage::pallet::Call<T>
|
||||
**/
|
||||
PalletPreimageCall: {
|
||||
_enum: {
|
||||
@@ -2718,7 +2725,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup292: pallet_proxy::pallet::Call<T>
|
||||
* Lookup293: pallet_proxy::pallet::Call<T>
|
||||
**/
|
||||
PalletProxyCall: {
|
||||
_enum: {
|
||||
@@ -2771,7 +2778,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup294: pallet_multisig::pallet::Call<T>
|
||||
* Lookup295: pallet_multisig::pallet::Call<T>
|
||||
**/
|
||||
PalletMultisigCall: {
|
||||
_enum: {
|
||||
@@ -2802,7 +2809,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup296: pallet_bounties::pallet::Call<T, I>
|
||||
* Lookup297: pallet_bounties::pallet::Call<T, I>
|
||||
**/
|
||||
PalletBountiesCall: {
|
||||
_enum: {
|
||||
@@ -2841,7 +2848,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup297: pallet_tips::pallet::Call<T, I>
|
||||
* Lookup298: pallet_tips::pallet::Call<T, I>
|
||||
**/
|
||||
PalletTipsCall: {
|
||||
_enum: {
|
||||
@@ -2882,7 +2889,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup298: pallet_assets::pallet::Call<T, I>
|
||||
* Lookup299: pallet_assets::pallet::Call<T, I>
|
||||
**/
|
||||
PalletAssetsCall: {
|
||||
_enum: {
|
||||
@@ -3010,7 +3017,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup299: pallet_assets::types::DestroyWitness
|
||||
* Lookup300: pallet_assets::types::DestroyWitness
|
||||
**/
|
||||
PalletAssetsDestroyWitness: {
|
||||
accounts: 'Compact<u32>',
|
||||
@@ -3018,7 +3025,7 @@ export default {
|
||||
approvals: 'Compact<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup300: pallet_lottery::pallet::Call<T>
|
||||
* Lookup301: pallet_lottery::pallet::Call<T>
|
||||
**/
|
||||
PalletLotteryCall: {
|
||||
_enum: {
|
||||
@@ -3038,7 +3045,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup301: pallet_gilt::pallet::Call<T>
|
||||
* Lookup302: pallet_gilt::pallet::Call<T>
|
||||
**/
|
||||
PalletGiltCall: {
|
||||
_enum: {
|
||||
@@ -3059,7 +3066,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup304: pallet_uniques::pallet::Call<T, I>
|
||||
* Lookup305: pallet_uniques::pallet::Call<T, I>
|
||||
**/
|
||||
PalletUniquesCall: {
|
||||
_enum: {
|
||||
@@ -3188,7 +3195,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup305: pallet_uniques::types::DestroyWitness
|
||||
* Lookup306: pallet_uniques::types::DestroyWitness
|
||||
**/
|
||||
PalletUniquesDestroyWitness: {
|
||||
items: 'Compact<u32>',
|
||||
@@ -3196,7 +3203,7 @@ export default {
|
||||
attributes: 'Compact<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup308: pallet_transaction_storage::pallet::Call<T>
|
||||
* Lookup309: pallet_transaction_storage::pallet::Call<T>
|
||||
**/
|
||||
PalletTransactionStorageCall: {
|
||||
_enum: {
|
||||
@@ -3213,14 +3220,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup309: sp_transaction_storage_proof::TransactionStorageProof
|
||||
* Lookup310: sp_transaction_storage_proof::TransactionStorageProof
|
||||
**/
|
||||
SpTransactionStorageProofTransactionStorageProof: {
|
||||
chunk: 'Bytes',
|
||||
proof: 'Vec<Bytes>'
|
||||
},
|
||||
/**
|
||||
* Lookup310: pallet_bags_list::pallet::Call<T, I>
|
||||
* Lookup311: pallet_bags_list::pallet::Call<T, I>
|
||||
**/
|
||||
PalletBagsListCall: {
|
||||
_enum: {
|
||||
@@ -3233,7 +3240,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup311: pallet_state_trie_migration::pallet::Call<T>
|
||||
* Lookup312: pallet_state_trie_migration::pallet::Call<T>
|
||||
**/
|
||||
PalletStateTrieMigrationCall: {
|
||||
_enum: {
|
||||
@@ -3267,7 +3274,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup313: pallet_state_trie_migration::pallet::MigrationLimits
|
||||
* Lookup314: pallet_state_trie_migration::pallet::MigrationLimits
|
||||
**/
|
||||
PalletStateTrieMigrationMigrationLimits: {
|
||||
_alias: {
|
||||
@@ -3277,7 +3284,7 @@ export default {
|
||||
item: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup314: pallet_state_trie_migration::pallet::MigrationTask<T>
|
||||
* Lookup315: pallet_state_trie_migration::pallet::MigrationTask<T>
|
||||
**/
|
||||
PalletStateTrieMigrationMigrationTask: {
|
||||
_alias: {
|
||||
@@ -3290,7 +3297,7 @@ export default {
|
||||
childItems: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup315: pallet_state_trie_migration::pallet::Progress<MaxKeyLen>
|
||||
* Lookup316: pallet_state_trie_migration::pallet::Progress<MaxKeyLen>
|
||||
**/
|
||||
PalletStateTrieMigrationProgress: {
|
||||
_enum: {
|
||||
@@ -3300,7 +3307,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup317: pallet_child_bounties::pallet::Call<T>
|
||||
* Lookup318: pallet_child_bounties::pallet::Call<T>
|
||||
**/
|
||||
PalletChildBountiesCall: {
|
||||
_enum: {
|
||||
@@ -3339,7 +3346,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup318: pallet_referenda::pallet::Call<T, I>
|
||||
* Lookup319: pallet_referenda::pallet::Call<T, I>
|
||||
**/
|
||||
PalletReferendaCall: {
|
||||
_enum: {
|
||||
@@ -3369,7 +3376,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup319: frame_support::traits::schedule::DispatchTime<BlockNumber>
|
||||
* Lookup320: frame_support::traits::schedule::DispatchTime<BlockNumber>
|
||||
**/
|
||||
FrameSupportScheduleDispatchTime: {
|
||||
_enum: {
|
||||
@@ -3378,7 +3385,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup320: pallet_remark::pallet::Call<T>
|
||||
* Lookup321: pallet_remark::pallet::Call<T>
|
||||
**/
|
||||
PalletRemarkCall: {
|
||||
_enum: {
|
||||
@@ -3388,7 +3395,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup321: pallet_conviction_voting::pallet::Call<T, I>
|
||||
* Lookup322: pallet_conviction_voting::pallet::Call<T, I>
|
||||
**/
|
||||
PalletConvictionVotingCall: {
|
||||
_enum: {
|
||||
@@ -3421,7 +3428,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup322: pallet_conviction_voting::vote::AccountVote<Balance>
|
||||
* Lookup323: pallet_conviction_voting::vote::AccountVote<Balance>
|
||||
**/
|
||||
PalletConvictionVotingVoteAccountVote: {
|
||||
_enum: {
|
||||
@@ -3436,13 +3443,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup324: pallet_conviction_voting::conviction::Conviction
|
||||
* Lookup325: pallet_conviction_voting::conviction::Conviction
|
||||
**/
|
||||
PalletConvictionVotingConviction: {
|
||||
_enum: ['None', 'Locked1x', 'Locked2x', 'Locked3x', 'Locked4x', 'Locked5x', 'Locked6x']
|
||||
},
|
||||
/**
|
||||
* Lookup326: pallet_whitelist::pallet::Call<T>
|
||||
* Lookup327: pallet_whitelist::pallet::Call<T>
|
||||
**/
|
||||
PalletWhitelistCall: {
|
||||
_enum: {
|
||||
@@ -3462,7 +3469,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup328: pallet_alliance::pallet::Call<T, I>
|
||||
* Lookup329: pallet_alliance::pallet::Call<T, I>
|
||||
**/
|
||||
PalletAllianceCall: {
|
||||
_enum: {
|
||||
@@ -3529,14 +3536,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup329: pallet_alliance::types::DisbandWitness
|
||||
* Lookup330: pallet_alliance::types::DisbandWitness
|
||||
**/
|
||||
PalletAllianceDisbandWitness: {
|
||||
votingMembers: 'Compact<u32>',
|
||||
allyMembers: 'Compact<u32>'
|
||||
},
|
||||
/**
|
||||
* Lookup330: pallet_alliance::types::Cid
|
||||
* Lookup331: pallet_alliance::types::Cid
|
||||
**/
|
||||
PalletAllianceCid: {
|
||||
_alias: {
|
||||
@@ -3547,20 +3554,20 @@ export default {
|
||||
hash_: 'PalletAllianceMultihash'
|
||||
},
|
||||
/**
|
||||
* Lookup331: pallet_alliance::types::Version
|
||||
* Lookup332: pallet_alliance::types::Version
|
||||
**/
|
||||
PalletAllianceVersion: {
|
||||
_enum: ['V0', 'V1']
|
||||
},
|
||||
/**
|
||||
* Lookup332: pallet_alliance::types::Multihash
|
||||
* Lookup333: pallet_alliance::types::Multihash
|
||||
**/
|
||||
PalletAllianceMultihash: {
|
||||
code: 'u64',
|
||||
digest: 'Bytes'
|
||||
},
|
||||
/**
|
||||
* Lookup335: pallet_alliance::UnscrupulousItem<sp_core::crypto::AccountId32, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
|
||||
* Lookup336: pallet_alliance::UnscrupulousItem<sp_core::crypto::AccountId32, sp_core::bounded::bounded_vec::BoundedVec<T, S>>
|
||||
**/
|
||||
PalletAllianceUnscrupulousItem: {
|
||||
_enum: {
|
||||
@@ -3569,7 +3576,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup337: pallet_nomination_pools::pallet::Call<T>
|
||||
* Lookup338: pallet_nomination_pools::pallet::Call<T>
|
||||
**/
|
||||
PalletNominationPoolsCall: {
|
||||
_enum: {
|
||||
@@ -3599,6 +3606,13 @@ export default {
|
||||
nominator: 'MultiAddress',
|
||||
stateToggler: 'MultiAddress',
|
||||
},
|
||||
create_with_pool_id: {
|
||||
amount: 'Compact<u128>',
|
||||
root: 'MultiAddress',
|
||||
nominator: 'MultiAddress',
|
||||
stateToggler: 'MultiAddress',
|
||||
poolId: 'u32',
|
||||
},
|
||||
nominate: {
|
||||
poolId: 'u32',
|
||||
validators: 'Vec<AccountId32>',
|
||||
@@ -3630,7 +3644,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup338: pallet_nomination_pools::BondExtra<Balance>
|
||||
* Lookup339: pallet_nomination_pools::BondExtra<Balance>
|
||||
**/
|
||||
PalletNominationPoolsBondExtra: {
|
||||
_enum: {
|
||||
@@ -3639,13 +3653,13 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup339: pallet_nomination_pools::PoolState
|
||||
* Lookup340: pallet_nomination_pools::PoolState
|
||||
**/
|
||||
PalletNominationPoolsPoolState: {
|
||||
_enum: ['Open', 'Blocked', 'Destroying']
|
||||
},
|
||||
/**
|
||||
* Lookup340: pallet_nomination_pools::ConfigOp<T>
|
||||
* Lookup341: pallet_nomination_pools::ConfigOp<T>
|
||||
**/
|
||||
PalletNominationPoolsConfigOpU128: {
|
||||
_enum: {
|
||||
@@ -3655,7 +3669,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup341: pallet_nomination_pools::ConfigOp<T>
|
||||
* Lookup342: pallet_nomination_pools::ConfigOp<T>
|
||||
**/
|
||||
PalletNominationPoolsConfigOpU32: {
|
||||
_enum: {
|
||||
@@ -3665,7 +3679,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup342: pallet_nomination_pools::ConfigOp<sp_core::crypto::AccountId32>
|
||||
* Lookup343: pallet_nomination_pools::ConfigOp<sp_core::crypto::AccountId32>
|
||||
**/
|
||||
PalletNominationPoolsConfigOpAccountId32: {
|
||||
_enum: {
|
||||
@@ -3675,7 +3689,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup344: pallet_ranked_collective::pallet::Call<T, I>
|
||||
* Lookup345: pallet_ranked_collective::pallet::Call<T, I>
|
||||
**/
|
||||
PalletRankedCollectiveCall: {
|
||||
_enum: {
|
||||
@@ -3703,7 +3717,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup345: pallet_fast_unstake::pallet::Call<T>
|
||||
* Lookup346: pallet_fast_unstake::pallet::Call<T>
|
||||
**/
|
||||
PalletFastUnstakeCall: {
|
||||
_enum: {
|
||||
@@ -3715,7 +3729,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup347: pallet_conviction_voting::types::Tally<Votes, Total>
|
||||
* Lookup348: pallet_conviction_voting::types::Tally<Votes, Total>
|
||||
**/
|
||||
PalletConvictionVotingTally: {
|
||||
ayes: 'u128',
|
||||
@@ -3723,7 +3737,7 @@ export default {
|
||||
support: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup348: pallet_remark::pallet::Event<T>
|
||||
* Lookup349: pallet_remark::pallet::Event<T>
|
||||
**/
|
||||
PalletRemarkEvent: {
|
||||
_enum: {
|
||||
@@ -3734,7 +3748,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup349: pallet_conviction_voting::pallet::Event<T, I>
|
||||
* Lookup350: pallet_conviction_voting::pallet::Event<T, I>
|
||||
**/
|
||||
PalletConvictionVotingEvent: {
|
||||
_enum: {
|
||||
@@ -3743,7 +3757,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup350: pallet_whitelist::pallet::Event<T>
|
||||
* Lookup351: pallet_whitelist::pallet::Event<T>
|
||||
**/
|
||||
PalletWhitelistEvent: {
|
||||
_enum: {
|
||||
@@ -3760,21 +3774,21 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup352: frame_support::dispatch::PostDispatchInfo
|
||||
* Lookup353: frame_support::dispatch::PostDispatchInfo
|
||||
**/
|
||||
FrameSupportDispatchPostDispatchInfo: {
|
||||
actualWeight: 'Option<SpWeightsWeightV2Weight>',
|
||||
paysFee: 'FrameSupportDispatchPays'
|
||||
},
|
||||
/**
|
||||
* Lookup354: sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>
|
||||
* Lookup355: sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>
|
||||
**/
|
||||
SpRuntimeDispatchErrorWithPostInfo: {
|
||||
postInfo: 'FrameSupportDispatchPostDispatchInfo',
|
||||
error: 'SpRuntimeDispatchError'
|
||||
},
|
||||
/**
|
||||
* Lookup356: pallet_alliance::pallet::Event<T, I>
|
||||
* Lookup357: pallet_alliance::pallet::Event<T, I>
|
||||
**/
|
||||
PalletAllianceEvent: {
|
||||
_enum: {
|
||||
@@ -3825,7 +3839,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup357: pallet_nomination_pools::pallet::Event<T>
|
||||
* Lookup358: pallet_nomination_pools::pallet::Event<T>
|
||||
**/
|
||||
PalletNominationPoolsEvent: {
|
||||
_enum: {
|
||||
@@ -3885,7 +3899,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup359: pallet_ranked_collective::Tally<T, I, M>
|
||||
* Lookup360: pallet_ranked_collective::Tally<T, I, M>
|
||||
**/
|
||||
PalletRankedCollectiveTally: {
|
||||
bareAyes: 'u32',
|
||||
@@ -3893,7 +3907,7 @@ export default {
|
||||
nays: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup360: pallet_ranked_collective::pallet::Event<T, I>
|
||||
* Lookup361: pallet_ranked_collective::pallet::Event<T, I>
|
||||
**/
|
||||
PalletRankedCollectiveEvent: {
|
||||
_enum: {
|
||||
@@ -3917,7 +3931,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup361: pallet_ranked_collective::VoteRecord
|
||||
* Lookup362: pallet_ranked_collective::VoteRecord
|
||||
**/
|
||||
PalletRankedCollectiveVoteRecord: {
|
||||
_enum: {
|
||||
@@ -3926,7 +3940,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup362: pallet_fast_unstake::pallet::Event<T>
|
||||
* Lookup363: pallet_fast_unstake::pallet::Event<T>
|
||||
**/
|
||||
PalletFastUnstakeEvent: {
|
||||
_enum: {
|
||||
@@ -3949,7 +3963,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup363: frame_system::Phase
|
||||
* Lookup364: frame_system::Phase
|
||||
**/
|
||||
FrameSystemPhase: {
|
||||
_enum: {
|
||||
@@ -3959,14 +3973,14 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup366: frame_system::LastRuntimeUpgradeInfo
|
||||
* Lookup367: frame_system::LastRuntimeUpgradeInfo
|
||||
**/
|
||||
FrameSystemLastRuntimeUpgradeInfo: {
|
||||
specVersion: 'Compact<u32>',
|
||||
specName: 'Text'
|
||||
},
|
||||
/**
|
||||
* Lookup368: frame_system::limits::BlockWeights
|
||||
* Lookup369: frame_system::limits::BlockWeights
|
||||
**/
|
||||
FrameSystemLimitsBlockWeights: {
|
||||
baseBlock: 'SpWeightsWeightV2Weight',
|
||||
@@ -3974,7 +3988,7 @@ export default {
|
||||
perClass: 'FrameSupportDispatchPerDispatchClassWeightsPerClass'
|
||||
},
|
||||
/**
|
||||
* Lookup369: frame_support::dispatch::PerDispatchClass<frame_system::limits::WeightsPerClass>
|
||||
* Lookup370: frame_support::dispatch::PerDispatchClass<frame_system::limits::WeightsPerClass>
|
||||
**/
|
||||
FrameSupportDispatchPerDispatchClassWeightsPerClass: {
|
||||
normal: 'FrameSystemLimitsWeightsPerClass',
|
||||
@@ -3982,7 +3996,7 @@ export default {
|
||||
mandatory: 'FrameSystemLimitsWeightsPerClass'
|
||||
},
|
||||
/**
|
||||
* Lookup370: frame_system::limits::WeightsPerClass
|
||||
* Lookup371: frame_system::limits::WeightsPerClass
|
||||
**/
|
||||
FrameSystemLimitsWeightsPerClass: {
|
||||
baseExtrinsic: 'SpWeightsWeightV2Weight',
|
||||
@@ -3991,13 +4005,13 @@ export default {
|
||||
reserved: 'Option<SpWeightsWeightV2Weight>'
|
||||
},
|
||||
/**
|
||||
* Lookup371: frame_system::limits::BlockLength
|
||||
* Lookup372: frame_system::limits::BlockLength
|
||||
**/
|
||||
FrameSystemLimitsBlockLength: {
|
||||
max: 'FrameSupportDispatchPerDispatchClassU32'
|
||||
},
|
||||
/**
|
||||
* Lookup372: frame_support::dispatch::PerDispatchClass<T>
|
||||
* Lookup373: frame_support::dispatch::PerDispatchClass<T>
|
||||
**/
|
||||
FrameSupportDispatchPerDispatchClassU32: {
|
||||
normal: 'u32',
|
||||
@@ -4005,14 +4019,14 @@ export default {
|
||||
mandatory: 'u32'
|
||||
},
|
||||
/**
|
||||
* Lookup373: sp_weights::RuntimeDbWeight
|
||||
* Lookup374: sp_weights::RuntimeDbWeight
|
||||
**/
|
||||
SpWeightsRuntimeDbWeight: {
|
||||
read: 'u64',
|
||||
write: 'u64'
|
||||
},
|
||||
/**
|
||||
* Lookup374: sp_version::RuntimeVersion
|
||||
* Lookup375: sp_version::RuntimeVersion
|
||||
**/
|
||||
SpVersionRuntimeVersion: {
|
||||
specName: 'Text',
|
||||
@@ -4025,19 +4039,19 @@ export default {
|
||||
stateVersion: 'u8'
|
||||
},
|
||||
/**
|
||||
* Lookup378: frame_system::pallet::Error<T>
|
||||
* Lookup379: frame_system::pallet::Error<T>
|
||||
**/
|
||||
FrameSystemError: {
|
||||
_enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered']
|
||||
},
|
||||
/**
|
||||
* Lookup379: pallet_utility::pallet::Error<T>
|
||||
* Lookup380: pallet_utility::pallet::Error<T>
|
||||
**/
|
||||
PalletUtilityError: {
|
||||
_enum: ['TooManyCalls']
|
||||
},
|
||||
/**
|
||||
* Lookup386: sp_consensus_babe::digests::PreDigest
|
||||
* Lookup387: sp_consensus_babe::digests::PreDigest
|
||||
**/
|
||||
SpConsensusBabeDigestsPreDigest: {
|
||||
_enum: {
|
||||
@@ -4048,7 +4062,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup387: sp_consensus_babe::digests::PrimaryPreDigest
|
||||
* Lookup388: sp_consensus_babe::digests::PrimaryPreDigest
|
||||
**/
|
||||
SpConsensusBabeDigestsPrimaryPreDigest: {
|
||||
authorityIndex: 'u32',
|
||||
@@ -4057,14 +4071,14 @@ export default {
|
||||
vrfProof: '[u8;64]'
|
||||
},
|
||||
/**
|
||||
* Lookup388: sp_consensus_babe::digests::SecondaryPlainPreDigest
|
||||
* Lookup389: sp_consensus_babe::digests::SecondaryPlainPreDigest
|
||||
**/
|
||||
SpConsensusBabeDigestsSecondaryPlainPreDigest: {
|
||||
authorityIndex: 'u32',
|
||||
slot: 'u64'
|
||||
},
|
||||
/**
|
||||
* Lookup389: sp_consensus_babe::digests::SecondaryVRFPreDigest
|
||||
* Lookup390: sp_consensus_babe::digests::SecondaryVRFPreDigest
|
||||
**/
|
||||
SpConsensusBabeDigestsSecondaryVRFPreDigest: {
|
||||
authorityIndex: 'u32',
|
||||
@@ -4073,20 +4087,20 @@ export default {
|
||||
vrfProof: '[u8;64]'
|
||||
},
|
||||
/**
|
||||
* Lookup390: sp_consensus_babe::BabeEpochConfiguration
|
||||
* Lookup391: sp_consensus_babe::BabeEpochConfiguration
|
||||
**/
|
||||
SpConsensusBabeBabeEpochConfiguration: {
|
||||
c: '(u64,u64)',
|
||||
allowedSlots: 'SpConsensusBabeAllowedSlots'
|
||||
},
|
||||
/**
|
||||
* Lookup391: pallet_babe::pallet::Error<T>
|
||||
* Lookup392: pallet_babe::pallet::Error<T>
|
||||
**/
|
||||
PalletBabeError: {
|
||||
_enum: ['InvalidEquivocationProof', 'InvalidKeyOwnershipProof', 'DuplicateOffenceReport', 'InvalidConfiguration']
|
||||
},
|
||||
/**
|
||||
* Lookup393: pallet_authorship::UncleEntryItem<BlockNumber, primitive_types::H256, sp_core::crypto::AccountId32>
|
||||
* Lookup394: pallet_authorship::UncleEntryItem<BlockNumber, primitive_types::H256, sp_core::crypto::AccountId32>
|
||||
**/
|
||||
PalletAuthorshipUncleEntryItem: {
|
||||
_enum: {
|
||||
@@ -4095,19 +4109,19 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup395: pallet_authorship::pallet::Error<T>
|
||||
* Lookup396: pallet_authorship::pallet::Error<T>
|
||||
**/
|
||||
PalletAuthorshipError: {
|
||||
_enum: ['InvalidUncleParent', 'UnclesAlreadySet', 'TooManyUncles', 'GenesisUncle', 'TooHighUncle', 'UncleAlreadyIncluded', 'OldUncle']
|
||||
},
|
||||
/**
|
||||
* Lookup397: pallet_indices::pallet::Error<T>
|
||||
* Lookup398: pallet_indices::pallet::Error<T>
|
||||
**/
|
||||
PalletIndicesError: {
|
||||
_enum: ['NotAssigned', 'NotOwner', 'InUse', 'NotTransfer', 'Permanent']
|
||||
},
|
||||
/**
|
||||
* Lookup399: pallet_balances::BalanceLock<Balance>
|
||||
* Lookup400: pallet_balances::BalanceLock<Balance>
|
||||
**/
|
||||
PalletBalancesBalanceLock: {
|
||||
id: '[u8;8]',
|
||||
@@ -4115,38 +4129,38 @@ export default {
|
||||
reasons: 'PalletBalancesReasons'
|
||||
},
|
||||
/**
|
||||
* Lookup400: pallet_balances::Reasons
|
||||
* Lookup401: pallet_balances::Reasons
|
||||
**/
|
||||
PalletBalancesReasons: {
|
||||
_enum: ['Fee', 'Misc', 'All']
|
||||
},
|
||||
/**
|
||||
* Lookup403: pallet_balances::ReserveData<ReserveIdentifier, Balance>
|
||||
* Lookup404: pallet_balances::ReserveData<ReserveIdentifier, Balance>
|
||||
**/
|
||||
PalletBalancesReserveData: {
|
||||
id: '[u8;8]',
|
||||
amount: 'u128'
|
||||
},
|
||||
/**
|
||||
* Lookup405: pallet_balances::Releases
|
||||
* Lookup406: pallet_balances::Releases
|
||||
**/
|
||||
PalletBalancesReleases: {
|
||||
_enum: ['V1_0_0', 'V2_0_0']
|
||||
},
|
||||
/**
|
||||
* Lookup406: pallet_balances::pallet::Error<T, I>
|
||||
* Lookup407: pallet_balances::pallet::Error<T, I>
|
||||
**/
|
||||
PalletBalancesError: {
|
||||
_enum: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'KeepAlive', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves']
|
||||
},
|
||||
/**
|
||||
* Lookup408: pallet_transaction_payment::Releases
|
||||
* Lookup409: pallet_transaction_payment::Releases
|
||||
**/
|
||||
PalletTransactionPaymentReleases: {
|
||||
_enum: ['V1Ancient', 'V2']
|
||||
},
|
||||
/**
|
||||
* Lookup409: pallet_election_provider_multi_phase::Phase<Bn>
|
||||
* Lookup410: pallet_election_provider_multi_phase::Phase<Bn>
|
||||
**/
|
||||
PalletElectionProviderMultiPhasePhase: {
|
||||
_enum: {
|
||||
@@ -4157,7 +4171,7 @@ export default {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Lookup411: pallet_election_provider_multi_phase::ReadySolution<sp_core::crypto::AccountId32>
|
||||
* Lookup412: pallet_election_provider_multi_phase::ReadySolution<sp_core::crypto::AccountId32>
|
||||
**/
|
||||
PalletElectionProviderMultiPhaseReadySolution: {
|
||||
supports: 'Vec<(AccountId32,SpNposElectionsSupport)>',
|
||||
@@ -4165,7 +4179,7 @@ export default {
|
||||
compute: 'PalletElectionProviderMultiPhaseElectionCompute'
|
||||
},
|
||||
/**
|
||||
* Lookup412: pallet_election_provider_multi_phase::RoundSnapshot<T>
|
||||
* Lookup413: pallet_election_provider_multi_phase::RoundSnapshot<T>
|
||||
**/
|
||||
PalletElectionProviderMultiPhaseRoundSnapshot: {
|
||||
voters: 'Vec<(AccountId32,u64,Vec<AccountId32>)>',
|
||||
@@ -4447,7 +4461,8 @@ export default {
|
||||
instructionWeightsVersion: 'Compact<u32>',
|
||||
initial: 'Compact<u32>',
|
||||
maximum: 'Compact<u32>',
|
||||
code: 'Bytes'
|
||||
code: 'Bytes',
|
||||
determinism: 'PalletContractsWasmDeterminism'
|
||||
},
|
||||
/**
|
||||
* Lookup490: pallet_contracts::wasm::OwnerInfo<T>
|
||||
@@ -4506,6 +4521,7 @@ export default {
|
||||
r_if: 'r#if'
|
||||
},
|
||||
version: 'u32',
|
||||
fallback: 'u32',
|
||||
i64const: 'u32',
|
||||
i64load: 'u32',
|
||||
i64store: 'u32',
|
||||
@@ -4624,7 +4640,7 @@ export default {
|
||||
* Lookup499: pallet_contracts::pallet::Error<T>
|
||||
**/
|
||||
PalletContractsError: {
|
||||
_enum: ['InvalidScheduleVersion', 'InvalidCallFlags', 'OutOfGas', 'OutputBufferTooSmall', 'TransferFailed', 'MaxCallDepthReached', 'ContractNotFound', 'CodeTooLarge', 'CodeNotFound', 'OutOfBounds', 'DecodingFailed', 'ContractTrapped', 'ValueTooLarge', 'TerminatedWhileReentrant', 'InputForwarded', 'RandomSubjectTooLong', 'TooManyTopics', 'DuplicateTopics', 'NoChainExtension', 'DeletionQueueFull', 'DuplicateContract', 'TerminatedInConstructor', 'DebugMessageInvalidUTF8', 'ReentranceDenied', 'StorageDepositNotEnoughFunds', 'StorageDepositLimitExhausted', 'CodeInUse', 'ContractReverted', 'CodeRejected']
|
||||
_enum: ['InvalidScheduleVersion', 'InvalidCallFlags', 'OutOfGas', 'OutputBufferTooSmall', 'TransferFailed', 'MaxCallDepthReached', 'ContractNotFound', 'CodeTooLarge', 'CodeNotFound', 'OutOfBounds', 'DecodingFailed', 'ContractTrapped', 'ValueTooLarge', 'TerminatedWhileReentrant', 'InputForwarded', 'RandomSubjectTooLong', 'TooManyTopics', 'DuplicateTopics', 'NoChainExtension', 'DeletionQueueFull', 'DuplicateContract', 'TerminatedInConstructor', 'DebugMessageInvalidUTF8', 'ReentranceDenied', 'StorageDepositNotEnoughFunds', 'StorageDepositLimitExhausted', 'CodeInUse', 'ContractReverted', 'CodeRejected', 'Indeterministic']
|
||||
},
|
||||
/**
|
||||
* Lookup500: pallet_sudo::pallet::Error<T>
|
||||
@@ -4672,7 +4688,7 @@ export default {
|
||||
* Lookup524: pallet_identity::pallet::Error<T>
|
||||
**/
|
||||
PalletIdentityError: {
|
||||
_enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity']
|
||||
_enum: ['TooManySubAccounts', 'NotFound', 'NotNamed', 'EmptyIndex', 'FeeChanged', 'NoIdentity', 'StickyJudgement', 'JudgementGiven', 'InvalidJudgement', 'InvalidIndex', 'InvalidTarget', 'TooManyFields', 'TooManyRegistrars', 'AlreadyClaimed', 'NotSub', 'NotOwned', 'JudgementForDifferentIdentity', 'JudgementPaymentFailed']
|
||||
},
|
||||
/**
|
||||
* Lookup526: pallet_society::Bid<sp_core::crypto::AccountId32, Balance>
|
||||
@@ -4805,7 +4821,7 @@ export default {
|
||||
_enum: ['TooMany', 'NotFound', 'NotProxy', 'Unproxyable', 'Duplicate', 'NoPermission', 'Unannounced', 'NoSelfProxy']
|
||||
},
|
||||
/**
|
||||
* Lookup563: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32>
|
||||
* Lookup563: pallet_multisig::Multisig<BlockNumber, Balance, sp_core::crypto::AccountId32, MaxApprovals>
|
||||
**/
|
||||
PalletMultisigMultisig: {
|
||||
when: 'PalletMultisigTimepoint',
|
||||
@@ -5341,7 +5357,9 @@ export default {
|
||||
DoesNotHavePermission: 'Null',
|
||||
MetadataExceedsMaxLen: 'Null',
|
||||
Defensive: 'PalletNominationPoolsDefensiveError',
|
||||
PartialUnbondNotAllowedPermissionlessly: 'Null'
|
||||
PartialUnbondNotAllowedPermissionlessly: 'Null',
|
||||
PoolIdInUse: 'Null',
|
||||
InvalidPoolId: 'Null'
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -2477,6 +2477,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly asUploadCode: {
|
||||
readonly code: Bytes;
|
||||
readonly storageDepositLimit: Option<Compact<u128>>;
|
||||
readonly determinism: PalletContractsWasmDeterminism;
|
||||
} & Struct;
|
||||
readonly isRemoveCode: boolean;
|
||||
readonly asRemoveCode: {
|
||||
@@ -2516,7 +2517,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CallOldWeight' | 'InstantiateWithCodeOldWeight' | 'InstantiateOldWeight' | 'UploadCode' | 'RemoveCode' | 'SetCode' | 'Call' | 'InstantiateWithCode' | 'Instantiate';
|
||||
}
|
||||
|
||||
/** @name PalletSudoCall (234) */
|
||||
/** @name PalletContractsWasmDeterminism (234) */
|
||||
interface PalletContractsWasmDeterminism extends Enum {
|
||||
readonly isDeterministic: boolean;
|
||||
readonly isAllowIndeterminism: boolean;
|
||||
readonly type: 'Deterministic' | 'AllowIndeterminism';
|
||||
}
|
||||
|
||||
/** @name PalletSudoCall (235) */
|
||||
interface PalletSudoCall extends Enum {
|
||||
readonly isSudo: boolean;
|
||||
readonly asSudo: {
|
||||
@@ -2539,7 +2547,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
|
||||
}
|
||||
|
||||
/** @name PalletImOnlineCall (235) */
|
||||
/** @name PalletImOnlineCall (236) */
|
||||
interface PalletImOnlineCall extends Enum {
|
||||
readonly isHeartbeat: boolean;
|
||||
readonly asHeartbeat: {
|
||||
@@ -2549,7 +2557,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Heartbeat';
|
||||
}
|
||||
|
||||
/** @name PalletImOnlineHeartbeat (236) */
|
||||
/** @name PalletImOnlineHeartbeat (237) */
|
||||
interface PalletImOnlineHeartbeat extends Struct {
|
||||
readonly blockNumber: u32;
|
||||
readonly networkState: SpCoreOffchainOpaqueNetworkState;
|
||||
@@ -2558,19 +2566,19 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly validatorsLen: u32;
|
||||
}
|
||||
|
||||
/** @name SpCoreOffchainOpaqueNetworkState (237) */
|
||||
/** @name SpCoreOffchainOpaqueNetworkState (238) */
|
||||
interface SpCoreOffchainOpaqueNetworkState extends Struct {
|
||||
readonly peerId: OpaquePeerId;
|
||||
readonly externalAddresses: Vec<OpaqueMultiaddr>;
|
||||
}
|
||||
|
||||
/** @name PalletImOnlineSr25519AppSr25519Signature (241) */
|
||||
/** @name PalletImOnlineSr25519AppSr25519Signature (242) */
|
||||
interface PalletImOnlineSr25519AppSr25519Signature extends SpCoreSr25519Signature {}
|
||||
|
||||
/** @name SpCoreSr25519Signature (242) */
|
||||
/** @name SpCoreSr25519Signature (243) */
|
||||
interface SpCoreSr25519Signature extends U8aFixed {}
|
||||
|
||||
/** @name PalletIdentityCall (243) */
|
||||
/** @name PalletIdentityCall (244) */
|
||||
interface PalletIdentityCall extends Enum {
|
||||
readonly isAddRegistrar: boolean;
|
||||
readonly asAddRegistrar: {
|
||||
@@ -2638,7 +2646,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub';
|
||||
}
|
||||
|
||||
/** @name PalletIdentityIdentityInfo (244) */
|
||||
/** @name PalletIdentityIdentityInfo (245) */
|
||||
interface PalletIdentityIdentityInfo extends Struct {
|
||||
readonly additional: Vec<ITuple<[Data, Data]>>;
|
||||
readonly display: Data;
|
||||
@@ -2651,7 +2659,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly twitter: Data;
|
||||
}
|
||||
|
||||
/** @name PalletIdentityBitFlags (281) */
|
||||
/** @name PalletIdentityBitFlags (282) */
|
||||
interface PalletIdentityBitFlags extends Set {
|
||||
readonly isDisplay: boolean;
|
||||
readonly isLegal: boolean;
|
||||
@@ -2663,7 +2671,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isTwitter: boolean;
|
||||
}
|
||||
|
||||
/** @name PalletIdentityIdentityField (282) */
|
||||
/** @name PalletIdentityIdentityField (283) */
|
||||
interface PalletIdentityIdentityField extends Enum {
|
||||
readonly isDisplay: boolean;
|
||||
readonly isLegal: boolean;
|
||||
@@ -2676,7 +2684,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';
|
||||
}
|
||||
|
||||
/** @name PalletIdentityJudgement (283) */
|
||||
/** @name PalletIdentityJudgement (284) */
|
||||
interface PalletIdentityJudgement extends Enum {
|
||||
readonly isUnknown: boolean;
|
||||
readonly isFeePaid: boolean;
|
||||
@@ -2689,7 +2697,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';
|
||||
}
|
||||
|
||||
/** @name PalletSocietyCall (284) */
|
||||
/** @name PalletSocietyCall (285) */
|
||||
interface PalletSocietyCall extends Enum {
|
||||
readonly isBid: boolean;
|
||||
readonly asBid: {
|
||||
@@ -2743,7 +2751,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Bid' | 'Unbid' | 'Vouch' | 'Unvouch' | 'Vote' | 'DefenderVote' | 'Payout' | 'Found' | 'Unfound' | 'JudgeSuspendedMember' | 'JudgeSuspendedCandidate' | 'SetMaxMembers';
|
||||
}
|
||||
|
||||
/** @name PalletSocietyJudgement (285) */
|
||||
/** @name PalletSocietyJudgement (286) */
|
||||
interface PalletSocietyJudgement extends Enum {
|
||||
readonly isRebid: boolean;
|
||||
readonly isReject: boolean;
|
||||
@@ -2751,7 +2759,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Rebid' | 'Reject' | 'Approve';
|
||||
}
|
||||
|
||||
/** @name PalletRecoveryCall (286) */
|
||||
/** @name PalletRecoveryCall (287) */
|
||||
interface PalletRecoveryCall extends Enum {
|
||||
readonly isAsRecovered: boolean;
|
||||
readonly asAsRecovered: {
|
||||
@@ -2794,7 +2802,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AsRecovered' | 'SetRecovered' | 'CreateRecovery' | 'InitiateRecovery' | 'VouchRecovery' | 'ClaimRecovery' | 'CloseRecovery' | 'RemoveRecovery' | 'CancelRecovered';
|
||||
}
|
||||
|
||||
/** @name PalletVestingCall (287) */
|
||||
/** @name PalletVestingCall (288) */
|
||||
interface PalletVestingCall extends Enum {
|
||||
readonly isVest: boolean;
|
||||
readonly isVestOther: boolean;
|
||||
@@ -2820,14 +2828,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Vest' | 'VestOther' | 'VestedTransfer' | 'ForceVestedTransfer' | 'MergeSchedules';
|
||||
}
|
||||
|
||||
/** @name PalletVestingVestingInfo (288) */
|
||||
/** @name PalletVestingVestingInfo (289) */
|
||||
interface PalletVestingVestingInfo extends Struct {
|
||||
readonly locked: u128;
|
||||
readonly perBlock: u128;
|
||||
readonly startingBlock: u32;
|
||||
}
|
||||
|
||||
/** @name PalletSchedulerCall (289) */
|
||||
/** @name PalletSchedulerCall (290) */
|
||||
interface PalletSchedulerCall extends Enum {
|
||||
readonly isSchedule: boolean;
|
||||
readonly asSchedule: {
|
||||
@@ -2871,7 +2879,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter';
|
||||
}
|
||||
|
||||
/** @name PalletPreimageCall (291) */
|
||||
/** @name PalletPreimageCall (292) */
|
||||
interface PalletPreimageCall extends Enum {
|
||||
readonly isNotePreimage: boolean;
|
||||
readonly asNotePreimage: {
|
||||
@@ -2892,7 +2900,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NotePreimage' | 'UnnotePreimage' | 'RequestPreimage' | 'UnrequestPreimage';
|
||||
}
|
||||
|
||||
/** @name PalletProxyCall (292) */
|
||||
/** @name PalletProxyCall (293) */
|
||||
interface PalletProxyCall extends Enum {
|
||||
readonly isProxy: boolean;
|
||||
readonly asProxy: {
|
||||
@@ -2952,7 +2960,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Proxy' | 'AddProxy' | 'RemoveProxy' | 'RemoveProxies' | 'CreatePure' | 'KillPure' | 'Announce' | 'RemoveAnnouncement' | 'RejectAnnouncement' | 'ProxyAnnounced';
|
||||
}
|
||||
|
||||
/** @name PalletMultisigCall (294) */
|
||||
/** @name PalletMultisigCall (295) */
|
||||
interface PalletMultisigCall extends Enum {
|
||||
readonly isAsMultiThreshold1: boolean;
|
||||
readonly asAsMultiThreshold1: {
|
||||
@@ -2985,7 +2993,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AsMultiThreshold1' | 'AsMulti' | 'ApproveAsMulti' | 'CancelAsMulti';
|
||||
}
|
||||
|
||||
/** @name PalletBountiesCall (296) */
|
||||
/** @name PalletBountiesCall (297) */
|
||||
interface PalletBountiesCall extends Enum {
|
||||
readonly isProposeBounty: boolean;
|
||||
readonly asProposeBounty: {
|
||||
@@ -3031,7 +3039,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ProposeBounty' | 'ApproveBounty' | 'ProposeCurator' | 'UnassignCurator' | 'AcceptCurator' | 'AwardBounty' | 'ClaimBounty' | 'CloseBounty' | 'ExtendBountyExpiry';
|
||||
}
|
||||
|
||||
/** @name PalletTipsCall (297) */
|
||||
/** @name PalletTipsCall (298) */
|
||||
interface PalletTipsCall extends Enum {
|
||||
readonly isReportAwesome: boolean;
|
||||
readonly asReportAwesome: {
|
||||
@@ -3064,7 +3072,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ReportAwesome' | 'RetractTip' | 'TipNew' | 'Tip' | 'CloseTip' | 'SlashTip';
|
||||
}
|
||||
|
||||
/** @name PalletAssetsCall (298) */
|
||||
/** @name PalletAssetsCall (299) */
|
||||
interface PalletAssetsCall extends Enum {
|
||||
readonly isCreate: boolean;
|
||||
readonly asCreate: {
|
||||
@@ -3215,14 +3223,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Create' | 'ForceCreate' | 'Destroy' | 'Mint' | 'Burn' | 'Transfer' | 'TransferKeepAlive' | 'ForceTransfer' | 'Freeze' | 'Thaw' | 'FreezeAsset' | 'ThawAsset' | 'TransferOwnership' | 'SetTeam' | 'SetMetadata' | 'ClearMetadata' | 'ForceSetMetadata' | 'ForceClearMetadata' | 'ForceAssetStatus' | 'ApproveTransfer' | 'CancelApproval' | 'ForceCancelApproval' | 'TransferApproved' | 'Touch' | 'Refund';
|
||||
}
|
||||
|
||||
/** @name PalletAssetsDestroyWitness (299) */
|
||||
/** @name PalletAssetsDestroyWitness (300) */
|
||||
interface PalletAssetsDestroyWitness extends Struct {
|
||||
readonly accounts: Compact<u32>;
|
||||
readonly sufficients: Compact<u32>;
|
||||
readonly approvals: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name PalletLotteryCall (300) */
|
||||
/** @name PalletLotteryCall (301) */
|
||||
interface PalletLotteryCall extends Enum {
|
||||
readonly isBuyTicket: boolean;
|
||||
readonly asBuyTicket: {
|
||||
@@ -3243,7 +3251,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'BuyTicket' | 'SetCalls' | 'StartLottery' | 'StopRepeat';
|
||||
}
|
||||
|
||||
/** @name PalletGiltCall (301) */
|
||||
/** @name PalletGiltCall (302) */
|
||||
interface PalletGiltCall extends Enum {
|
||||
readonly isPlaceBid: boolean;
|
||||
readonly asPlaceBid: {
|
||||
@@ -3266,7 +3274,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'PlaceBid' | 'RetractBid' | 'SetTarget' | 'Thaw';
|
||||
}
|
||||
|
||||
/** @name PalletUniquesCall (304) */
|
||||
/** @name PalletUniquesCall (305) */
|
||||
interface PalletUniquesCall extends Enum {
|
||||
readonly isCreate: boolean;
|
||||
readonly asCreate: {
|
||||
@@ -3419,14 +3427,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Create' | 'ForceCreate' | 'Destroy' | 'Mint' | 'Burn' | 'Transfer' | 'Redeposit' | 'Freeze' | 'Thaw' | 'FreezeCollection' | 'ThawCollection' | 'TransferOwnership' | 'SetTeam' | 'ApproveTransfer' | 'CancelApproval' | 'ForceItemStatus' | 'SetAttribute' | 'ClearAttribute' | 'SetMetadata' | 'ClearMetadata' | 'SetCollectionMetadata' | 'ClearCollectionMetadata' | 'SetAcceptOwnership' | 'SetCollectionMaxSupply' | 'SetPrice' | 'BuyItem';
|
||||
}
|
||||
|
||||
/** @name PalletUniquesDestroyWitness (305) */
|
||||
/** @name PalletUniquesDestroyWitness (306) */
|
||||
interface PalletUniquesDestroyWitness extends Struct {
|
||||
readonly items: Compact<u32>;
|
||||
readonly itemMetadatas: Compact<u32>;
|
||||
readonly attributes: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name PalletTransactionStorageCall (308) */
|
||||
/** @name PalletTransactionStorageCall (309) */
|
||||
interface PalletTransactionStorageCall extends Enum {
|
||||
readonly isStore: boolean;
|
||||
readonly asStore: {
|
||||
@@ -3444,13 +3452,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Store' | 'Renew' | 'CheckProof';
|
||||
}
|
||||
|
||||
/** @name SpTransactionStorageProofTransactionStorageProof (309) */
|
||||
/** @name SpTransactionStorageProofTransactionStorageProof (310) */
|
||||
interface SpTransactionStorageProofTransactionStorageProof extends Struct {
|
||||
readonly chunk: Bytes;
|
||||
readonly proof: Vec<Bytes>;
|
||||
}
|
||||
|
||||
/** @name PalletBagsListCall (310) */
|
||||
/** @name PalletBagsListCall (311) */
|
||||
interface PalletBagsListCall extends Enum {
|
||||
readonly isRebag: boolean;
|
||||
readonly asRebag: {
|
||||
@@ -3463,7 +3471,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Rebag' | 'PutInFrontOf';
|
||||
}
|
||||
|
||||
/** @name PalletStateTrieMigrationCall (311) */
|
||||
/** @name PalletStateTrieMigrationCall (312) */
|
||||
interface PalletStateTrieMigrationCall extends Enum {
|
||||
readonly isControlAutoMigration: boolean;
|
||||
readonly asControlAutoMigration: {
|
||||
@@ -3498,13 +3506,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ControlAutoMigration' | 'ContinueMigrate' | 'MigrateCustomTop' | 'MigrateCustomChild' | 'SetSignedMaxLimits' | 'ForceSetProgress';
|
||||
}
|
||||
|
||||
/** @name PalletStateTrieMigrationMigrationLimits (313) */
|
||||
/** @name PalletStateTrieMigrationMigrationLimits (314) */
|
||||
interface PalletStateTrieMigrationMigrationLimits extends Struct {
|
||||
readonly size_: u32;
|
||||
readonly item: u32;
|
||||
}
|
||||
|
||||
/** @name PalletStateTrieMigrationMigrationTask (314) */
|
||||
/** @name PalletStateTrieMigrationMigrationTask (315) */
|
||||
interface PalletStateTrieMigrationMigrationTask extends Struct {
|
||||
readonly progressTop: PalletStateTrieMigrationProgress;
|
||||
readonly progressChild: PalletStateTrieMigrationProgress;
|
||||
@@ -3513,7 +3521,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly childItems: u32;
|
||||
}
|
||||
|
||||
/** @name PalletStateTrieMigrationProgress (315) */
|
||||
/** @name PalletStateTrieMigrationProgress (316) */
|
||||
interface PalletStateTrieMigrationProgress extends Enum {
|
||||
readonly isToStart: boolean;
|
||||
readonly isLastKey: boolean;
|
||||
@@ -3522,7 +3530,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ToStart' | 'LastKey' | 'Complete';
|
||||
}
|
||||
|
||||
/** @name PalletChildBountiesCall (317) */
|
||||
/** @name PalletChildBountiesCall (318) */
|
||||
interface PalletChildBountiesCall extends Enum {
|
||||
readonly isAddChildBounty: boolean;
|
||||
readonly asAddChildBounty: {
|
||||
@@ -3566,7 +3574,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AddChildBounty' | 'ProposeCurator' | 'AcceptCurator' | 'UnassignCurator' | 'AwardChildBounty' | 'ClaimChildBounty' | 'CloseChildBounty';
|
||||
}
|
||||
|
||||
/** @name PalletReferendaCall (318) */
|
||||
/** @name PalletReferendaCall (319) */
|
||||
interface PalletReferendaCall extends Enum {
|
||||
readonly isSubmit: boolean;
|
||||
readonly asSubmit: {
|
||||
@@ -3601,7 +3609,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Submit' | 'PlaceDecisionDeposit' | 'RefundDecisionDeposit' | 'Cancel' | 'Kill' | 'NudgeReferendum' | 'OneFewerDeciding';
|
||||
}
|
||||
|
||||
/** @name FrameSupportScheduleDispatchTime (319) */
|
||||
/** @name FrameSupportScheduleDispatchTime (320) */
|
||||
interface FrameSupportScheduleDispatchTime extends Enum {
|
||||
readonly isAt: boolean;
|
||||
readonly asAt: u32;
|
||||
@@ -3610,7 +3618,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'At' | 'After';
|
||||
}
|
||||
|
||||
/** @name PalletRemarkCall (320) */
|
||||
/** @name PalletRemarkCall (321) */
|
||||
interface PalletRemarkCall extends Enum {
|
||||
readonly isStore: boolean;
|
||||
readonly asStore: {
|
||||
@@ -3619,7 +3627,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Store';
|
||||
}
|
||||
|
||||
/** @name PalletConvictionVotingCall (321) */
|
||||
/** @name PalletConvictionVotingCall (322) */
|
||||
interface PalletConvictionVotingCall extends Enum {
|
||||
readonly isVote: boolean;
|
||||
readonly asVote: {
|
||||
@@ -3656,7 +3664,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Vote' | 'Delegate' | 'Undelegate' | 'Unlock' | 'RemoveVote' | 'RemoveOtherVote';
|
||||
}
|
||||
|
||||
/** @name PalletConvictionVotingVoteAccountVote (322) */
|
||||
/** @name PalletConvictionVotingVoteAccountVote (323) */
|
||||
interface PalletConvictionVotingVoteAccountVote extends Enum {
|
||||
readonly isStandard: boolean;
|
||||
readonly asStandard: {
|
||||
@@ -3671,7 +3679,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Standard' | 'Split';
|
||||
}
|
||||
|
||||
/** @name PalletConvictionVotingConviction (324) */
|
||||
/** @name PalletConvictionVotingConviction (325) */
|
||||
interface PalletConvictionVotingConviction extends Enum {
|
||||
readonly isNone: boolean;
|
||||
readonly isLocked1x: boolean;
|
||||
@@ -3683,7 +3691,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x';
|
||||
}
|
||||
|
||||
/** @name PalletWhitelistCall (326) */
|
||||
/** @name PalletWhitelistCall (327) */
|
||||
interface PalletWhitelistCall extends Enum {
|
||||
readonly isWhitelistCall: boolean;
|
||||
readonly asWhitelistCall: {
|
||||
@@ -3705,7 +3713,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'WhitelistCall' | 'RemoveWhitelistedCall' | 'DispatchWhitelistedCall' | 'DispatchWhitelistedCallWithPreimage';
|
||||
}
|
||||
|
||||
/** @name PalletAllianceCall (328) */
|
||||
/** @name PalletAllianceCall (329) */
|
||||
interface PalletAllianceCall extends Enum {
|
||||
readonly isPropose: boolean;
|
||||
readonly asPropose: {
|
||||
@@ -3785,33 +3793,33 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Propose' | 'Vote' | 'Veto' | 'CloseOldWeight' | 'InitMembers' | 'Disband' | 'SetRule' | 'Announce' | 'RemoveAnnouncement' | 'JoinAlliance' | 'NominateAlly' | 'ElevateAlly' | 'GiveRetirementNotice' | 'Retire' | 'KickMember' | 'AddUnscrupulousItems' | 'RemoveUnscrupulousItems' | 'Close';
|
||||
}
|
||||
|
||||
/** @name PalletAllianceDisbandWitness (329) */
|
||||
/** @name PalletAllianceDisbandWitness (330) */
|
||||
interface PalletAllianceDisbandWitness extends Struct {
|
||||
readonly votingMembers: Compact<u32>;
|
||||
readonly allyMembers: Compact<u32>;
|
||||
}
|
||||
|
||||
/** @name PalletAllianceCid (330) */
|
||||
/** @name PalletAllianceCid (331) */
|
||||
interface PalletAllianceCid extends Struct {
|
||||
readonly version: PalletAllianceVersion;
|
||||
readonly codec: u64;
|
||||
readonly hash_: PalletAllianceMultihash;
|
||||
}
|
||||
|
||||
/** @name PalletAllianceVersion (331) */
|
||||
/** @name PalletAllianceVersion (332) */
|
||||
interface PalletAllianceVersion extends Enum {
|
||||
readonly isV0: boolean;
|
||||
readonly isV1: boolean;
|
||||
readonly type: 'V0' | 'V1';
|
||||
}
|
||||
|
||||
/** @name PalletAllianceMultihash (332) */
|
||||
/** @name PalletAllianceMultihash (333) */
|
||||
interface PalletAllianceMultihash extends Struct {
|
||||
readonly code: u64;
|
||||
readonly digest: Bytes;
|
||||
}
|
||||
|
||||
/** @name PalletAllianceUnscrupulousItem (335) */
|
||||
/** @name PalletAllianceUnscrupulousItem (336) */
|
||||
interface PalletAllianceUnscrupulousItem extends Enum {
|
||||
readonly isAccountId: boolean;
|
||||
readonly asAccountId: AccountId32;
|
||||
@@ -3820,7 +3828,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AccountId' | 'Website';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsCall (337) */
|
||||
/** @name PalletNominationPoolsCall (338) */
|
||||
interface PalletNominationPoolsCall extends Enum {
|
||||
readonly isJoin: boolean;
|
||||
readonly asJoin: {
|
||||
@@ -3854,6 +3862,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly nominator: MultiAddress;
|
||||
readonly stateToggler: MultiAddress;
|
||||
} & Struct;
|
||||
readonly isCreateWithPoolId: boolean;
|
||||
readonly asCreateWithPoolId: {
|
||||
readonly amount: Compact<u128>;
|
||||
readonly root: MultiAddress;
|
||||
readonly nominator: MultiAddress;
|
||||
readonly stateToggler: MultiAddress;
|
||||
readonly poolId: u32;
|
||||
} & Struct;
|
||||
readonly isNominate: boolean;
|
||||
readonly asNominate: {
|
||||
readonly poolId: u32;
|
||||
@@ -3888,10 +3904,10 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly asChill: {
|
||||
readonly poolId: u32;
|
||||
} & Struct;
|
||||
readonly type: 'Join' | 'BondExtra' | 'ClaimPayout' | 'Unbond' | 'PoolWithdrawUnbonded' | 'WithdrawUnbonded' | 'Create' | 'Nominate' | 'SetState' | 'SetMetadata' | 'SetConfigs' | 'UpdateRoles' | 'Chill';
|
||||
readonly type: 'Join' | 'BondExtra' | 'ClaimPayout' | 'Unbond' | 'PoolWithdrawUnbonded' | 'WithdrawUnbonded' | 'Create' | 'CreateWithPoolId' | 'Nominate' | 'SetState' | 'SetMetadata' | 'SetConfigs' | 'UpdateRoles' | 'Chill';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsBondExtra (338) */
|
||||
/** @name PalletNominationPoolsBondExtra (339) */
|
||||
interface PalletNominationPoolsBondExtra extends Enum {
|
||||
readonly isFreeBalance: boolean;
|
||||
readonly asFreeBalance: u128;
|
||||
@@ -3899,7 +3915,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'FreeBalance' | 'Rewards';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsPoolState (339) */
|
||||
/** @name PalletNominationPoolsPoolState (340) */
|
||||
interface PalletNominationPoolsPoolState extends Enum {
|
||||
readonly isOpen: boolean;
|
||||
readonly isBlocked: boolean;
|
||||
@@ -3907,7 +3923,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Open' | 'Blocked' | 'Destroying';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsConfigOpU128 (340) */
|
||||
/** @name PalletNominationPoolsConfigOpU128 (341) */
|
||||
interface PalletNominationPoolsConfigOpU128 extends Enum {
|
||||
readonly isNoop: boolean;
|
||||
readonly isSet: boolean;
|
||||
@@ -3916,7 +3932,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Noop' | 'Set' | 'Remove';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsConfigOpU32 (341) */
|
||||
/** @name PalletNominationPoolsConfigOpU32 (342) */
|
||||
interface PalletNominationPoolsConfigOpU32 extends Enum {
|
||||
readonly isNoop: boolean;
|
||||
readonly isSet: boolean;
|
||||
@@ -3925,7 +3941,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Noop' | 'Set' | 'Remove';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsConfigOpAccountId32 (342) */
|
||||
/** @name PalletNominationPoolsConfigOpAccountId32 (343) */
|
||||
interface PalletNominationPoolsConfigOpAccountId32 extends Enum {
|
||||
readonly isNoop: boolean;
|
||||
readonly isSet: boolean;
|
||||
@@ -3934,7 +3950,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Noop' | 'Set' | 'Remove';
|
||||
}
|
||||
|
||||
/** @name PalletRankedCollectiveCall (344) */
|
||||
/** @name PalletRankedCollectiveCall (345) */
|
||||
interface PalletRankedCollectiveCall extends Enum {
|
||||
readonly isAddMember: boolean;
|
||||
readonly asAddMember: {
|
||||
@@ -3966,7 +3982,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'AddMember' | 'PromoteMember' | 'DemoteMember' | 'RemoveMember' | 'Vote' | 'CleanupPoll';
|
||||
}
|
||||
|
||||
/** @name PalletFastUnstakeCall (345) */
|
||||
/** @name PalletFastUnstakeCall (346) */
|
||||
interface PalletFastUnstakeCall extends Enum {
|
||||
readonly isRegisterFastUnstake: boolean;
|
||||
readonly isDeregister: boolean;
|
||||
@@ -3977,14 +3993,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'RegisterFastUnstake' | 'Deregister' | 'Control';
|
||||
}
|
||||
|
||||
/** @name PalletConvictionVotingTally (347) */
|
||||
/** @name PalletConvictionVotingTally (348) */
|
||||
interface PalletConvictionVotingTally extends Struct {
|
||||
readonly ayes: u128;
|
||||
readonly nays: u128;
|
||||
readonly support: u128;
|
||||
}
|
||||
|
||||
/** @name PalletRemarkEvent (348) */
|
||||
/** @name PalletRemarkEvent (349) */
|
||||
interface PalletRemarkEvent extends Enum {
|
||||
readonly isStored: boolean;
|
||||
readonly asStored: {
|
||||
@@ -3994,7 +4010,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Stored';
|
||||
}
|
||||
|
||||
/** @name PalletConvictionVotingEvent (349) */
|
||||
/** @name PalletConvictionVotingEvent (350) */
|
||||
interface PalletConvictionVotingEvent extends Enum {
|
||||
readonly isDelegated: boolean;
|
||||
readonly asDelegated: ITuple<[AccountId32, AccountId32]>;
|
||||
@@ -4003,7 +4019,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Delegated' | 'Undelegated';
|
||||
}
|
||||
|
||||
/** @name PalletWhitelistEvent (350) */
|
||||
/** @name PalletWhitelistEvent (351) */
|
||||
interface PalletWhitelistEvent extends Enum {
|
||||
readonly isCallWhitelisted: boolean;
|
||||
readonly asCallWhitelisted: {
|
||||
@@ -4021,19 +4037,19 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'CallWhitelisted' | 'WhitelistedCallRemoved' | 'WhitelistedCallDispatched';
|
||||
}
|
||||
|
||||
/** @name FrameSupportDispatchPostDispatchInfo (352) */
|
||||
/** @name FrameSupportDispatchPostDispatchInfo (353) */
|
||||
interface FrameSupportDispatchPostDispatchInfo extends Struct {
|
||||
readonly actualWeight: Option<SpWeightsWeightV2Weight>;
|
||||
readonly paysFee: FrameSupportDispatchPays;
|
||||
}
|
||||
|
||||
/** @name SpRuntimeDispatchErrorWithPostInfo (354) */
|
||||
/** @name SpRuntimeDispatchErrorWithPostInfo (355) */
|
||||
interface SpRuntimeDispatchErrorWithPostInfo extends Struct {
|
||||
readonly postInfo: FrameSupportDispatchPostDispatchInfo;
|
||||
readonly error: SpRuntimeDispatchError;
|
||||
}
|
||||
|
||||
/** @name PalletAllianceEvent (356) */
|
||||
/** @name PalletAllianceEvent (357) */
|
||||
interface PalletAllianceEvent extends Enum {
|
||||
readonly isNewRuleSet: boolean;
|
||||
readonly asNewRuleSet: {
|
||||
@@ -4094,7 +4110,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NewRuleSet' | 'Announced' | 'AnnouncementRemoved' | 'MembersInitialized' | 'NewAllyJoined' | 'AllyElevated' | 'MemberRetirementPeriodStarted' | 'MemberRetired' | 'MemberKicked' | 'UnscrupulousItemAdded' | 'UnscrupulousItemRemoved' | 'AllianceDisbanded';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsEvent (357) */
|
||||
/** @name PalletNominationPoolsEvent (358) */
|
||||
interface PalletNominationPoolsEvent extends Enum {
|
||||
readonly isCreated: boolean;
|
||||
readonly asCreated: {
|
||||
@@ -4163,14 +4179,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Created' | 'Bonded' | 'PaidOut' | 'Unbonded' | 'Withdrawn' | 'Destroyed' | 'StateChanged' | 'MemberRemoved' | 'RolesUpdated' | 'PoolSlashed' | 'UnbondingPoolSlashed';
|
||||
}
|
||||
|
||||
/** @name PalletRankedCollectiveTally (359) */
|
||||
/** @name PalletRankedCollectiveTally (360) */
|
||||
interface PalletRankedCollectiveTally extends Struct {
|
||||
readonly bareAyes: u32;
|
||||
readonly ayes: u32;
|
||||
readonly nays: u32;
|
||||
}
|
||||
|
||||
/** @name PalletRankedCollectiveEvent (360) */
|
||||
/** @name PalletRankedCollectiveEvent (361) */
|
||||
interface PalletRankedCollectiveEvent extends Enum {
|
||||
readonly isMemberAdded: boolean;
|
||||
readonly asMemberAdded: {
|
||||
@@ -4196,7 +4212,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'MemberAdded' | 'RankChanged' | 'MemberRemoved' | 'Voted';
|
||||
}
|
||||
|
||||
/** @name PalletRankedCollectiveVoteRecord (361) */
|
||||
/** @name PalletRankedCollectiveVoteRecord (362) */
|
||||
interface PalletRankedCollectiveVoteRecord extends Enum {
|
||||
readonly isAye: boolean;
|
||||
readonly asAye: u32;
|
||||
@@ -4205,7 +4221,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Aye' | 'Nay';
|
||||
}
|
||||
|
||||
/** @name PalletFastUnstakeEvent (362) */
|
||||
/** @name PalletFastUnstakeEvent (363) */
|
||||
interface PalletFastUnstakeEvent extends Enum {
|
||||
readonly isUnstaked: boolean;
|
||||
readonly asUnstaked: {
|
||||
@@ -4230,7 +4246,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Unstaked' | 'Slashed' | 'Checking' | 'Errored' | 'InternalError';
|
||||
}
|
||||
|
||||
/** @name FrameSystemPhase (363) */
|
||||
/** @name FrameSystemPhase (364) */
|
||||
interface FrameSystemPhase extends Enum {
|
||||
readonly isApplyExtrinsic: boolean;
|
||||
readonly asApplyExtrinsic: u32;
|
||||
@@ -4239,27 +4255,27 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
|
||||
}
|
||||
|
||||
/** @name FrameSystemLastRuntimeUpgradeInfo (366) */
|
||||
/** @name FrameSystemLastRuntimeUpgradeInfo (367) */
|
||||
interface FrameSystemLastRuntimeUpgradeInfo extends Struct {
|
||||
readonly specVersion: Compact<u32>;
|
||||
readonly specName: Text;
|
||||
}
|
||||
|
||||
/** @name FrameSystemLimitsBlockWeights (368) */
|
||||
/** @name FrameSystemLimitsBlockWeights (369) */
|
||||
interface FrameSystemLimitsBlockWeights extends Struct {
|
||||
readonly baseBlock: SpWeightsWeightV2Weight;
|
||||
readonly maxBlock: SpWeightsWeightV2Weight;
|
||||
readonly perClass: FrameSupportDispatchPerDispatchClassWeightsPerClass;
|
||||
}
|
||||
|
||||
/** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (369) */
|
||||
/** @name FrameSupportDispatchPerDispatchClassWeightsPerClass (370) */
|
||||
interface FrameSupportDispatchPerDispatchClassWeightsPerClass extends Struct {
|
||||
readonly normal: FrameSystemLimitsWeightsPerClass;
|
||||
readonly operational: FrameSystemLimitsWeightsPerClass;
|
||||
readonly mandatory: FrameSystemLimitsWeightsPerClass;
|
||||
}
|
||||
|
||||
/** @name FrameSystemLimitsWeightsPerClass (370) */
|
||||
/** @name FrameSystemLimitsWeightsPerClass (371) */
|
||||
interface FrameSystemLimitsWeightsPerClass extends Struct {
|
||||
readonly baseExtrinsic: SpWeightsWeightV2Weight;
|
||||
readonly maxExtrinsic: Option<SpWeightsWeightV2Weight>;
|
||||
@@ -4267,25 +4283,25 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly reserved: Option<SpWeightsWeightV2Weight>;
|
||||
}
|
||||
|
||||
/** @name FrameSystemLimitsBlockLength (371) */
|
||||
/** @name FrameSystemLimitsBlockLength (372) */
|
||||
interface FrameSystemLimitsBlockLength extends Struct {
|
||||
readonly max: FrameSupportDispatchPerDispatchClassU32;
|
||||
}
|
||||
|
||||
/** @name FrameSupportDispatchPerDispatchClassU32 (372) */
|
||||
/** @name FrameSupportDispatchPerDispatchClassU32 (373) */
|
||||
interface FrameSupportDispatchPerDispatchClassU32 extends Struct {
|
||||
readonly normal: u32;
|
||||
readonly operational: u32;
|
||||
readonly mandatory: u32;
|
||||
}
|
||||
|
||||
/** @name SpWeightsRuntimeDbWeight (373) */
|
||||
/** @name SpWeightsRuntimeDbWeight (374) */
|
||||
interface SpWeightsRuntimeDbWeight extends Struct {
|
||||
readonly read: u64;
|
||||
readonly write: u64;
|
||||
}
|
||||
|
||||
/** @name SpVersionRuntimeVersion (374) */
|
||||
/** @name SpVersionRuntimeVersion (375) */
|
||||
interface SpVersionRuntimeVersion extends Struct {
|
||||
readonly specName: Text;
|
||||
readonly implName: Text;
|
||||
@@ -4297,7 +4313,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly stateVersion: u8;
|
||||
}
|
||||
|
||||
/** @name FrameSystemError (378) */
|
||||
/** @name FrameSystemError (379) */
|
||||
interface FrameSystemError extends Enum {
|
||||
readonly isInvalidSpecName: boolean;
|
||||
readonly isSpecVersionNeedsToIncrease: boolean;
|
||||
@@ -4308,13 +4324,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
|
||||
}
|
||||
|
||||
/** @name PalletUtilityError (379) */
|
||||
/** @name PalletUtilityError (380) */
|
||||
interface PalletUtilityError extends Enum {
|
||||
readonly isTooManyCalls: boolean;
|
||||
readonly type: 'TooManyCalls';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeDigestsPreDigest (386) */
|
||||
/** @name SpConsensusBabeDigestsPreDigest (387) */
|
||||
interface SpConsensusBabeDigestsPreDigest extends Enum {
|
||||
readonly isPrimary: boolean;
|
||||
readonly asPrimary: SpConsensusBabeDigestsPrimaryPreDigest;
|
||||
@@ -4325,7 +4341,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Primary' | 'SecondaryPlain' | 'SecondaryVRF';
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeDigestsPrimaryPreDigest (387) */
|
||||
/** @name SpConsensusBabeDigestsPrimaryPreDigest (388) */
|
||||
interface SpConsensusBabeDigestsPrimaryPreDigest extends Struct {
|
||||
readonly authorityIndex: u32;
|
||||
readonly slot: u64;
|
||||
@@ -4333,13 +4349,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly vrfProof: U8aFixed;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeDigestsSecondaryPlainPreDigest (388) */
|
||||
/** @name SpConsensusBabeDigestsSecondaryPlainPreDigest (389) */
|
||||
interface SpConsensusBabeDigestsSecondaryPlainPreDigest extends Struct {
|
||||
readonly authorityIndex: u32;
|
||||
readonly slot: u64;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeDigestsSecondaryVRFPreDigest (389) */
|
||||
/** @name SpConsensusBabeDigestsSecondaryVRFPreDigest (390) */
|
||||
interface SpConsensusBabeDigestsSecondaryVRFPreDigest extends Struct {
|
||||
readonly authorityIndex: u32;
|
||||
readonly slot: u64;
|
||||
@@ -4347,13 +4363,13 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly vrfProof: U8aFixed;
|
||||
}
|
||||
|
||||
/** @name SpConsensusBabeBabeEpochConfiguration (390) */
|
||||
/** @name SpConsensusBabeBabeEpochConfiguration (391) */
|
||||
interface SpConsensusBabeBabeEpochConfiguration extends Struct {
|
||||
readonly c: ITuple<[u64, u64]>;
|
||||
readonly allowedSlots: SpConsensusBabeAllowedSlots;
|
||||
}
|
||||
|
||||
/** @name PalletBabeError (391) */
|
||||
/** @name PalletBabeError (392) */
|
||||
interface PalletBabeError extends Enum {
|
||||
readonly isInvalidEquivocationProof: boolean;
|
||||
readonly isInvalidKeyOwnershipProof: boolean;
|
||||
@@ -4362,7 +4378,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidEquivocationProof' | 'InvalidKeyOwnershipProof' | 'DuplicateOffenceReport' | 'InvalidConfiguration';
|
||||
}
|
||||
|
||||
/** @name PalletAuthorshipUncleEntryItem (393) */
|
||||
/** @name PalletAuthorshipUncleEntryItem (394) */
|
||||
interface PalletAuthorshipUncleEntryItem extends Enum {
|
||||
readonly isInclusionHeight: boolean;
|
||||
readonly asInclusionHeight: u32;
|
||||
@@ -4371,7 +4387,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InclusionHeight' | 'Uncle';
|
||||
}
|
||||
|
||||
/** @name PalletAuthorshipError (395) */
|
||||
/** @name PalletAuthorshipError (396) */
|
||||
interface PalletAuthorshipError extends Enum {
|
||||
readonly isInvalidUncleParent: boolean;
|
||||
readonly isUnclesAlreadySet: boolean;
|
||||
@@ -4383,7 +4399,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'InvalidUncleParent' | 'UnclesAlreadySet' | 'TooManyUncles' | 'GenesisUncle' | 'TooHighUncle' | 'UncleAlreadyIncluded' | 'OldUncle';
|
||||
}
|
||||
|
||||
/** @name PalletIndicesError (397) */
|
||||
/** @name PalletIndicesError (398) */
|
||||
interface PalletIndicesError extends Enum {
|
||||
readonly isNotAssigned: boolean;
|
||||
readonly isNotOwner: boolean;
|
||||
@@ -4393,14 +4409,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'NotAssigned' | 'NotOwner' | 'InUse' | 'NotTransfer' | 'Permanent';
|
||||
}
|
||||
|
||||
/** @name PalletBalancesBalanceLock (399) */
|
||||
/** @name PalletBalancesBalanceLock (400) */
|
||||
interface PalletBalancesBalanceLock extends Struct {
|
||||
readonly id: U8aFixed;
|
||||
readonly amount: u128;
|
||||
readonly reasons: PalletBalancesReasons;
|
||||
}
|
||||
|
||||
/** @name PalletBalancesReasons (400) */
|
||||
/** @name PalletBalancesReasons (401) */
|
||||
interface PalletBalancesReasons extends Enum {
|
||||
readonly isFee: boolean;
|
||||
readonly isMisc: boolean;
|
||||
@@ -4408,20 +4424,20 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Fee' | 'Misc' | 'All';
|
||||
}
|
||||
|
||||
/** @name PalletBalancesReserveData (403) */
|
||||
/** @name PalletBalancesReserveData (404) */
|
||||
interface PalletBalancesReserveData extends Struct {
|
||||
readonly id: U8aFixed;
|
||||
readonly amount: u128;
|
||||
}
|
||||
|
||||
/** @name PalletBalancesReleases (405) */
|
||||
/** @name PalletBalancesReleases (406) */
|
||||
interface PalletBalancesReleases extends Enum {
|
||||
readonly isV100: boolean;
|
||||
readonly isV200: boolean;
|
||||
readonly type: 'V100' | 'V200';
|
||||
}
|
||||
|
||||
/** @name PalletBalancesError (406) */
|
||||
/** @name PalletBalancesError (407) */
|
||||
interface PalletBalancesError extends Enum {
|
||||
readonly isVestingBalance: boolean;
|
||||
readonly isLiquidityRestrictions: boolean;
|
||||
@@ -4434,14 +4450,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
|
||||
}
|
||||
|
||||
/** @name PalletTransactionPaymentReleases (408) */
|
||||
/** @name PalletTransactionPaymentReleases (409) */
|
||||
interface PalletTransactionPaymentReleases extends Enum {
|
||||
readonly isV1Ancient: boolean;
|
||||
readonly isV2: boolean;
|
||||
readonly type: 'V1Ancient' | 'V2';
|
||||
}
|
||||
|
||||
/** @name PalletElectionProviderMultiPhasePhase (409) */
|
||||
/** @name PalletElectionProviderMultiPhasePhase (410) */
|
||||
interface PalletElectionProviderMultiPhasePhase extends Enum {
|
||||
readonly isOff: boolean;
|
||||
readonly isSigned: boolean;
|
||||
@@ -4451,14 +4467,14 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly type: 'Off' | 'Signed' | 'Unsigned' | 'Emergency';
|
||||
}
|
||||
|
||||
/** @name PalletElectionProviderMultiPhaseReadySolution (411) */
|
||||
/** @name PalletElectionProviderMultiPhaseReadySolution (412) */
|
||||
interface PalletElectionProviderMultiPhaseReadySolution extends Struct {
|
||||
readonly supports: Vec<ITuple<[AccountId32, SpNposElectionsSupport]>>;
|
||||
readonly score: SpNposElectionsElectionScore;
|
||||
readonly compute: PalletElectionProviderMultiPhaseElectionCompute;
|
||||
}
|
||||
|
||||
/** @name PalletElectionProviderMultiPhaseRoundSnapshot (412) */
|
||||
/** @name PalletElectionProviderMultiPhaseRoundSnapshot (413) */
|
||||
interface PalletElectionProviderMultiPhaseRoundSnapshot extends Struct {
|
||||
readonly voters: Vec<ITuple<[AccountId32, u64, Vec<AccountId32>]>>;
|
||||
readonly targets: Vec<AccountId32>;
|
||||
@@ -4831,6 +4847,7 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly initial: Compact<u32>;
|
||||
readonly maximum: Compact<u32>;
|
||||
readonly code: Bytes;
|
||||
readonly determinism: PalletContractsWasmDeterminism;
|
||||
}
|
||||
|
||||
/** @name PalletContractsWasmOwnerInfo (490) */
|
||||
@@ -4880,6 +4897,7 @@ declare module '@polkadot/types/lookup' {
|
||||
/** @name PalletContractsScheduleInstructionWeights (497) */
|
||||
interface PalletContractsScheduleInstructionWeights extends Struct {
|
||||
readonly version: u32;
|
||||
readonly fallback: u32;
|
||||
readonly i64const: u32;
|
||||
readonly i64load: u32;
|
||||
readonly i64store: u32;
|
||||
@@ -5022,7 +5040,8 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isCodeInUse: boolean;
|
||||
readonly isContractReverted: boolean;
|
||||
readonly isCodeRejected: boolean;
|
||||
readonly type: 'InvalidScheduleVersion' | 'InvalidCallFlags' | 'OutOfGas' | 'OutputBufferTooSmall' | 'TransferFailed' | 'MaxCallDepthReached' | 'ContractNotFound' | 'CodeTooLarge' | 'CodeNotFound' | 'OutOfBounds' | 'DecodingFailed' | 'ContractTrapped' | 'ValueTooLarge' | 'TerminatedWhileReentrant' | 'InputForwarded' | 'RandomSubjectTooLong' | 'TooManyTopics' | 'DuplicateTopics' | 'NoChainExtension' | 'DeletionQueueFull' | 'DuplicateContract' | 'TerminatedInConstructor' | 'DebugMessageInvalidUTF8' | 'ReentranceDenied' | 'StorageDepositNotEnoughFunds' | 'StorageDepositLimitExhausted' | 'CodeInUse' | 'ContractReverted' | 'CodeRejected';
|
||||
readonly isIndeterministic: boolean;
|
||||
readonly type: 'InvalidScheduleVersion' | 'InvalidCallFlags' | 'OutOfGas' | 'OutputBufferTooSmall' | 'TransferFailed' | 'MaxCallDepthReached' | 'ContractNotFound' | 'CodeTooLarge' | 'CodeNotFound' | 'OutOfBounds' | 'DecodingFailed' | 'ContractTrapped' | 'ValueTooLarge' | 'TerminatedWhileReentrant' | 'InputForwarded' | 'RandomSubjectTooLong' | 'TooManyTopics' | 'DuplicateTopics' | 'NoChainExtension' | 'DeletionQueueFull' | 'DuplicateContract' | 'TerminatedInConstructor' | 'DebugMessageInvalidUTF8' | 'ReentranceDenied' | 'StorageDepositNotEnoughFunds' | 'StorageDepositLimitExhausted' | 'CodeInUse' | 'ContractReverted' | 'CodeRejected' | 'Indeterministic';
|
||||
}
|
||||
|
||||
/** @name PalletSudoError (500) */
|
||||
@@ -5083,7 +5102,8 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isNotSub: boolean;
|
||||
readonly isNotOwned: boolean;
|
||||
readonly isJudgementForDifferentIdentity: boolean;
|
||||
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity';
|
||||
readonly isJudgementPaymentFailed: boolean;
|
||||
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned' | 'JudgementForDifferentIdentity' | 'JudgementPaymentFailed';
|
||||
}
|
||||
|
||||
/** @name PalletSocietyBid (526) */
|
||||
@@ -5914,7 +5934,9 @@ declare module '@polkadot/types/lookup' {
|
||||
readonly isDefensive: boolean;
|
||||
readonly asDefensive: PalletNominationPoolsDefensiveError;
|
||||
readonly isPartialUnbondNotAllowedPermissionlessly: boolean;
|
||||
readonly type: 'PoolNotFound' | 'PoolMemberNotFound' | 'RewardPoolNotFound' | 'SubPoolsNotFound' | 'AccountBelongsToOtherPool' | 'FullyUnbonding' | 'MaxUnbondingLimit' | 'CannotWithdrawAny' | 'MinimumBondNotMet' | 'OverflowRisk' | 'NotDestroying' | 'NotNominator' | 'NotKickerOrDestroying' | 'NotOpen' | 'MaxPools' | 'MaxPoolMembers' | 'CanNotChangeState' | 'DoesNotHavePermission' | 'MetadataExceedsMaxLen' | 'Defensive' | 'PartialUnbondNotAllowedPermissionlessly';
|
||||
readonly isPoolIdInUse: boolean;
|
||||
readonly isInvalidPoolId: boolean;
|
||||
readonly type: 'PoolNotFound' | 'PoolMemberNotFound' | 'RewardPoolNotFound' | 'SubPoolsNotFound' | 'AccountBelongsToOtherPool' | 'FullyUnbonding' | 'MaxUnbondingLimit' | 'CannotWithdrawAny' | 'MinimumBondNotMet' | 'OverflowRisk' | 'NotDestroying' | 'NotNominator' | 'NotKickerOrDestroying' | 'NotOpen' | 'MaxPools' | 'MaxPoolMembers' | 'CanNotChangeState' | 'DoesNotHavePermission' | 'MetadataExceedsMaxLen' | 'Defensive' | 'PartialUnbondNotAllowedPermissionlessly' | 'PoolIdInUse' | 'InvalidPoolId';
|
||||
}
|
||||
|
||||
/** @name PalletNominationPoolsDefensiveError (665) */
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
# @polkadot/types-codec
|
||||
|
||||
Base scale-codec types.
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/x-bigint": "^10.1.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-augment": "9.6.2",
|
||||
"@polkadot/types-support": "9.6.2",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-augment": "9.7.1",
|
||||
"@polkadot/types-support": "9.7.1",
|
||||
"@polkadot/util-crypto": "^10.1.11"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { Codec, CodecClass, Registry } from '../types';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
/** @internal */
|
||||
function formatFailure (registry: Registry, result: unknown[], { message }: Error, u8a: Uint8Array, i: number, count: number, Type: CodecClass, key?: string): string {
|
||||
function formatFailure (registry: Registry, fn: 'decodeU8a' | 'decodeU8aStruct' | 'decodeU8aVec', result: unknown[], { message }: Error, u8a: Uint8Array, i: number, count: number, Type: CodecClass, key?: string): string {
|
||||
let type = '';
|
||||
|
||||
try {
|
||||
@@ -19,7 +19,7 @@ function formatFailure (registry: Registry, result: unknown[], { message }: Erro
|
||||
// but at this point not quite sure how to include and format it (it can be quite massive)
|
||||
// console.error(JSON.stringify(result, null, 2));
|
||||
|
||||
return `decodeU8a: failed at ${u8aToHex(u8a.subarray(0, 16))}…${key ? ` on ${key}` : ''} (index ${i + 1}/${count})${type}:: ${message}`;
|
||||
return `${fn}: failed at ${u8aToHex(u8a.subarray(0, 16))}…${key ? ` on ${key}` : ''} (index ${i + 1}/${count})${type}:: ${message}`;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ export function decodeU8a <T extends Codec = Codec> (registry: Registry, result:
|
||||
i++;
|
||||
}
|
||||
} catch (error) {
|
||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||
throw new Error(formatFailure(registry, 'decodeU8a', result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||
}
|
||||
|
||||
return [result, offset];
|
||||
@@ -72,7 +72,7 @@ export function decodeU8aStruct (registry: Registry, result: [string, Codec][],
|
||||
i++;
|
||||
}
|
||||
} catch (error) {
|
||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||
throw new Error(formatFailure(registry, 'decodeU8aStruct', result, error as Error, u8a.subarray(offset), i, count, Types[i], keys[i]));
|
||||
}
|
||||
|
||||
return [result, offset];
|
||||
@@ -98,7 +98,7 @@ export function decodeU8aVec <T extends Codec = Codec> (registry: Registry, resu
|
||||
i++;
|
||||
}
|
||||
} catch (error) {
|
||||
throw new Error(formatFailure(registry, result, error as Error, u8a.subarray(offset), i, count, Type));
|
||||
throw new Error(formatFailure(registry, 'decodeU8aVec', result, error as Error, u8a.subarray(offset), i, count, Type));
|
||||
}
|
||||
|
||||
return [offset, offset - startAt];
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# @polkadot/types-create
|
||||
|
||||
Base type-creation functionality.
|
||||
@@ -20,14 +20,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.6.2"
|
||||
"@polkadot/types": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/networks": "^10.1.11",
|
||||
"@polkadot/types": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@polkadot/types-create": "9.6.2",
|
||||
"@polkadot/types": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/types-create": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "9.6.2"
|
||||
"@polkadot/api": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# @polkadot/types-known
|
||||
# @polkadot/types-support
|
||||
|
||||
Specific known base type overrides (e.g. `Address`, etc) for chains & specs. This does not contain user-specfic types.
|
||||
Supporting files for type operations, generally used in test environments.
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/util": "^10.1.11"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -162,7 +162,7 @@
|
||||
"Blake2_128Concat"
|
||||
],
|
||||
"key": 11,
|
||||
"value": 365
|
||||
"value": 366
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -183,7 +183,7 @@
|
||||
"name": "LastRuntimeUpgrade",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 366
|
||||
"plain": 367
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -217,7 +217,7 @@
|
||||
"name": "ExecutionPhase",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 363
|
||||
"plain": 364
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -235,7 +235,7 @@
|
||||
"constants": [
|
||||
{
|
||||
"name": "BlockWeights",
|
||||
"type": 368,
|
||||
"type": 369,
|
||||
"value": "0x07e0d1a93e01000b00204aa9d10113ffffffffffffffff4236931400010b70fae4a82e011366666666666666a6010b0098f73e5d0113ffffffffffffffbf0100004236931400010b70823713a3011366666666666666e6010b00204aa9d10113ffffffffffffffff01070088526a741300000000000000404236931400000000",
|
||||
"docs": [
|
||||
" Block & extrinsics weights: base values and limits."
|
||||
@@ -243,7 +243,7 @@
|
||||
},
|
||||
{
|
||||
"name": "BlockLength",
|
||||
"type": 371,
|
||||
"type": 372,
|
||||
"value": "0x00003c000000500000005000",
|
||||
"docs": [
|
||||
" The maximum length of a block (in bytes)."
|
||||
@@ -259,7 +259,7 @@
|
||||
},
|
||||
{
|
||||
"name": "DbWeight",
|
||||
"type": 373,
|
||||
"type": 374,
|
||||
"value": "0x40787d010000000000e1f50500000000",
|
||||
"docs": [
|
||||
" The weight of runtime database operations the runtime can invoke."
|
||||
@@ -267,7 +267,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Version",
|
||||
"type": 374,
|
||||
"type": 375,
|
||||
"value": "0x106e6f6465387375627374726174652d6e6f64650a0000000c010000000000003cdf6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000ed99c5acb25eedf50300000017a6bc0d0062aeb301000000cbca25e39f14238702000000687ad44ad37f03c201000000bc9d89904f5b923f0100000068b66ba122c93fa70100000037c8bb1350a9a2a801000000f3ff14d5ab5270590100000091d5df18b0d2cf5801000000ab3c0572291feb8b010000000200000001",
|
||||
"docs": [
|
||||
" Get the chain's current version."
|
||||
@@ -287,7 +287,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 378
|
||||
"type": 379
|
||||
},
|
||||
"index": 0
|
||||
},
|
||||
@@ -311,7 +311,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 379
|
||||
"type": 380
|
||||
},
|
||||
"index": 1
|
||||
},
|
||||
@@ -335,7 +335,7 @@
|
||||
"name": "Authorities",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 380
|
||||
"plain": 381
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -411,7 +411,7 @@
|
||||
"name": "NextAuthorities",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 380
|
||||
"plain": 381
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -446,7 +446,7 @@
|
||||
"Twox64Concat"
|
||||
],
|
||||
"key": 4,
|
||||
"value": 383
|
||||
"value": 384
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -458,7 +458,7 @@
|
||||
"name": "Initialized",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 385
|
||||
"plain": 386
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -514,7 +514,7 @@
|
||||
"name": "EpochConfig",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 390
|
||||
"plain": 391
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -526,7 +526,7 @@
|
||||
"name": "NextEpochConfig",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 390
|
||||
"plain": 391
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -573,7 +573,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 391
|
||||
"type": 392
|
||||
},
|
||||
"index": 2
|
||||
},
|
||||
@@ -635,7 +635,7 @@
|
||||
"name": "Uncles",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 392
|
||||
"plain": 393
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -683,7 +683,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 395
|
||||
"type": 396
|
||||
},
|
||||
"index": 4
|
||||
},
|
||||
@@ -701,7 +701,7 @@
|
||||
"Blake2_128Concat"
|
||||
],
|
||||
"key": 4,
|
||||
"value": 396
|
||||
"value": 397
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -728,7 +728,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 397
|
||||
"type": 398
|
||||
},
|
||||
"index": 5
|
||||
},
|
||||
@@ -797,7 +797,7 @@
|
||||
"Blake2_128Concat"
|
||||
],
|
||||
"key": 0,
|
||||
"value": 398
|
||||
"value": 399
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -815,7 +815,7 @@
|
||||
"Blake2_128Concat"
|
||||
],
|
||||
"key": 0,
|
||||
"value": 402
|
||||
"value": 403
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -827,7 +827,7 @@
|
||||
"name": "StorageVersion",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 405
|
||||
"plain": 406
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -872,7 +872,7 @@
|
||||
}
|
||||
],
|
||||
"errors": {
|
||||
"type": 406
|
||||
"type": 407
|
||||
},
|
||||
"index": 6
|
||||
},
|
||||
@@ -885,7 +885,7 @@
|
||||
"name": "NextFeeMultiplier",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 407
|
||||
"plain": 408
|
||||
},
|
||||
"fallback": "0x000064a7b3b6e00d0000000000000000",
|
||||
"docs": []
|
||||
@@ -894,7 +894,7 @@
|
||||
"name": "StorageVersion",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 408
|
||||
"plain": 409
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": []
|
||||
@@ -974,7 +974,7 @@
|
||||
"name": "CurrentPhase",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 409
|
||||
"plain": 410
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -985,7 +985,7 @@
|
||||
"name": "QueuedSolution",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 411
|
||||
"plain": 412
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -996,7 +996,7 @@
|
||||
"name": "Snapshot",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 412
|
||||
"plain": 413
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -1054,12 +1054,12 @@
|
||||
"name": "SignedSubmissionIndices",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 416
|
||||
"plain": 417
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
" A sorted, bounded set of `(score, index)`, where each `index` points to a value in",
|
||||
" `SignedSubmissions`.",
|
||||
" A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a",
|
||||
" value in `SignedSubmissions`.",
|
||||
"",
|
||||
" We never need to process more than a single signed submission at a time. Signed submissions",
|
||||
" can be quite large, so we're willing to pay the cost of multiple database accesses to access",
|
||||
@@ -1286,7 +1286,7 @@
|
||||
},
|
||||
"fallback": "0x00000000",
|
||||
"docs": [
|
||||
" The ideal number of staking participants."
|
||||
" The ideal number of active validators."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1729,7 +1729,7 @@
|
||||
"name": "BondedEras",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 365
|
||||
"plain": 366
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -2664,7 +2664,7 @@
|
||||
"constants": [
|
||||
{
|
||||
"name": "PalletId",
|
||||
"type": 255,
|
||||
"type": 256,
|
||||
"value": "0x706872656c656374",
|
||||
"docs": [
|
||||
" Identifier for the elections-phragmen pallet's lock"
|
||||
@@ -2969,7 +2969,7 @@
|
||||
},
|
||||
{
|
||||
"name": "ProposalBondMaximum",
|
||||
"type": 307,
|
||||
"type": 308,
|
||||
"value": "0x00",
|
||||
"docs": [
|
||||
" Maximum amount of funds that should be placed in a deposit for making a proposal."
|
||||
@@ -3148,7 +3148,7 @@
|
||||
{
|
||||
"name": "Schedule",
|
||||
"type": 495,
|
||||
"value": "0x040000000000010000800000001000000000100000000100002000000020000000004000000300000039120000d84f00007a440000d813000007300000941b0000011d0000d12400001e00000000fa0000e73001001b030000df160000c3140000dc1400002d2800002b2a0000431200008aa3ad009a100000ea10000086100000721000007c1000009a100000861000008b1000003b100000f9100000591000009f100000b3100000db100000c7100000a9100000ef100000a9100000d11000009f1000002d2d0000c9220000f12c0000bd2400005d1100005d1100000d1100003f1100009911000067110000bb1200000712000026c1060000000000e5f8a401000000002fc6b001000000006266070000000000c1040300000000009dc006000000000004b40600000000009e0615000000000088b7060000000000eab10600000000000a9a0600000000003ea20600000000005d0a1300000000006dfb0200000000009e62060000000000750000000000000010e41f0000000000b30000000000000018205d2e0000000047351a0000000000dc382e0000000000defa9407000000003603000000000000b40f050000000000fbd7c20700000000322e000000000000002d00000000000045ac880f000000006ff0c00700000000182d00000000000068b8b701000000004c0b0000000000007275bc0100000000a40f000000000000ff3fc50700000000733100000000000049247808000000008c90f11b000000007d0ec51500000000ad3768080000000025db010000000000c851433600000000f5050000000000000306000000000000d1800a0000000000460f0000000000000de60c0000000000d00b000000000000849d080000000000a504000000000000cb8d080000000000a504000000000000fa383602000000003a4c890100000000",
|
||||
"value": "0x040000000000010000800000001000000000100000000100002000000020000000004000000300000000000000ee1000006c4e0000504a000025180000192e0000dd1500000f1b0000c321000028000000ecdb0000dc1101000b040000aa120000a8140000921300009d270000922b0000bd1300008dadd8002b120000071200004e120000b11200003d110000cc1100005e1200002f1600003916000043160000691600004c160000481600004a160000cd160000741600003a160000841500000615000032150000782e0000132d0000283000007a2c0000701600008815000052150000f31600002b160000931600003716000067160000bac50600000000009405a40100000000bbdeae0100000000816607000000000070c502000000000036b0060000000000819c0600000000002985140000000000d0a00600000000006da506000000000002960600000000008498060000000000c00b140000000000fdf6020000000000e1450600000000007500000000000000c39e170000000000df00000000000000fc6c672e0000000002f518000000000094162c0000000000e2c395070000000057030000000000001300050000000000698ac207000000006e2e000000000000d92c00000000000054496310000000005abebe0700000000ee2c0000000000004499b701000000003c0b00000000000015acbc0100000000f40f000000000000d1f2c307000000008f31000000000000e220750800000000a972852100000000576ef21a000000008a3a6c08000000003eda0100000000000842a03b00000000f505000000000000c605000000000000c7100b0000000000730f00000000000097980d0000000000d80b0000000000009108090000000000bc04000000000000a905090000000000bc04000000000000741d35020000000059a8880100000000",
|
||||
"docs": [
|
||||
" Cost schedule and limits."
|
||||
]
|
||||
@@ -3237,7 +3237,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 234
|
||||
"type": 235
|
||||
},
|
||||
"events": {
|
||||
"type": 64
|
||||
@@ -3326,7 +3326,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 235
|
||||
"type": 236
|
||||
},
|
||||
"events": {
|
||||
"type": 66
|
||||
@@ -3416,7 +3416,7 @@
|
||||
"Twox64Concat"
|
||||
],
|
||||
"key": 512,
|
||||
"value": 364
|
||||
"value": 365
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -3524,7 +3524,7 @@
|
||||
"Blake2_128Concat"
|
||||
],
|
||||
"key": 0,
|
||||
"value": 280
|
||||
"value": 281
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -3571,7 +3571,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 243
|
||||
"type": 244
|
||||
},
|
||||
"events": {
|
||||
"type": 77
|
||||
@@ -3863,7 +3863,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 284
|
||||
"type": 285
|
||||
},
|
||||
"events": {
|
||||
"type": 78
|
||||
@@ -4014,7 +4014,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 286
|
||||
"type": 287
|
||||
},
|
||||
"events": {
|
||||
"type": 80
|
||||
@@ -4114,7 +4114,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 287
|
||||
"type": 288
|
||||
},
|
||||
"events": {
|
||||
"type": 81
|
||||
@@ -4194,7 +4194,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 289
|
||||
"type": 290
|
||||
},
|
||||
"events": {
|
||||
"type": 82
|
||||
@@ -4262,7 +4262,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 291
|
||||
"type": 292
|
||||
},
|
||||
"events": {
|
||||
"type": 85
|
||||
@@ -4316,7 +4316,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 292
|
||||
"type": 293
|
||||
},
|
||||
"events": {
|
||||
"type": 86
|
||||
@@ -4415,7 +4415,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 294
|
||||
"type": 295
|
||||
},
|
||||
"events": {
|
||||
"type": 89
|
||||
@@ -4446,8 +4446,8 @@
|
||||
},
|
||||
{
|
||||
"name": "MaxSignatories",
|
||||
"type": 88,
|
||||
"value": "0x6400",
|
||||
"type": 4,
|
||||
"value": "0x64000000",
|
||||
"docs": [
|
||||
" The maximum amount of signatories allowed in the multisig."
|
||||
]
|
||||
@@ -4522,7 +4522,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 296
|
||||
"type": 297
|
||||
},
|
||||
"events": {
|
||||
"type": 91
|
||||
@@ -4565,7 +4565,7 @@
|
||||
},
|
||||
{
|
||||
"name": "CuratorDepositMax",
|
||||
"type": 307,
|
||||
"type": 308,
|
||||
"value": "0x010000c16ff28623000000000000000000",
|
||||
"docs": [
|
||||
" Maximum amount of funds that should be placed in a deposit for making a proposal."
|
||||
@@ -4573,7 +4573,7 @@
|
||||
},
|
||||
{
|
||||
"name": "CuratorDepositMin",
|
||||
"type": 307,
|
||||
"type": 308,
|
||||
"value": "0x0100407a10f35a00000000000000000000",
|
||||
"docs": [
|
||||
" Minimum amount of funds that should be placed in a deposit for making a proposal."
|
||||
@@ -4656,7 +4656,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 297
|
||||
"type": 298
|
||||
},
|
||||
"events": {
|
||||
"type": 92
|
||||
@@ -4791,7 +4791,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 298
|
||||
"type": 299
|
||||
},
|
||||
"events": {
|
||||
"type": 93
|
||||
@@ -4996,7 +4996,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 300
|
||||
"type": 301
|
||||
},
|
||||
"events": {
|
||||
"type": 94
|
||||
@@ -5102,7 +5102,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 301
|
||||
"type": 302
|
||||
},
|
||||
"events": {
|
||||
"type": 96
|
||||
@@ -5373,7 +5373,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 304
|
||||
"type": 305
|
||||
},
|
||||
"events": {
|
||||
"type": 97
|
||||
@@ -5546,7 +5546,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 308
|
||||
"type": 309
|
||||
},
|
||||
"events": {
|
||||
"type": 102
|
||||
@@ -5614,7 +5614,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 310
|
||||
"type": 311
|
||||
},
|
||||
"events": {
|
||||
"type": 103
|
||||
@@ -5685,7 +5685,7 @@
|
||||
"name": "MigrationProcess",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 314
|
||||
"plain": 315
|
||||
},
|
||||
"fallback": "0x0000000000000000000000000000",
|
||||
"docs": [
|
||||
@@ -5699,7 +5699,7 @@
|
||||
"name": "AutoLimits",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": 312
|
||||
"plain": 313
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -5712,7 +5712,7 @@
|
||||
"name": "SignedMigrationMaxLimits",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 313
|
||||
"plain": 314
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -5724,7 +5724,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 311
|
||||
"type": 312
|
||||
},
|
||||
"events": {
|
||||
"type": 104
|
||||
@@ -5853,7 +5853,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 317
|
||||
"type": 318
|
||||
},
|
||||
"events": {
|
||||
"type": 107
|
||||
@@ -5954,7 +5954,7 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 318
|
||||
"type": 319
|
||||
},
|
||||
"events": {
|
||||
"type": 108
|
||||
@@ -6013,10 +6013,10 @@
|
||||
"name": "Remark",
|
||||
"storage": null,
|
||||
"calls": {
|
||||
"type": 320
|
||||
"type": 321
|
||||
},
|
||||
"events": {
|
||||
"type": 348
|
||||
"type": 349
|
||||
},
|
||||
"constants": [],
|
||||
"errors": {
|
||||
@@ -6070,10 +6070,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 321
|
||||
"type": 322
|
||||
},
|
||||
"events": {
|
||||
"type": 349
|
||||
"type": 350
|
||||
},
|
||||
"constants": [
|
||||
{
|
||||
@@ -6083,8 +6083,8 @@
|
||||
"docs": [
|
||||
" The maximum number of concurrent votes an account may have.",
|
||||
"",
|
||||
" Also used to compute weight, an overly large value can",
|
||||
" lead to extrinsic with large weight estimation: see `delegate` for instance."
|
||||
" Also used to compute weight, an overly large value can lead to extrinsics with large",
|
||||
" weight estimation: see `delegate` for instance."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -6127,10 +6127,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 326
|
||||
"type": 327
|
||||
},
|
||||
"events": {
|
||||
"type": 350
|
||||
"type": 351
|
||||
},
|
||||
"constants": [],
|
||||
"errors": {
|
||||
@@ -6224,10 +6224,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 327
|
||||
"type": 328
|
||||
},
|
||||
"events": {
|
||||
"type": 355
|
||||
"type": 356
|
||||
},
|
||||
"constants": [],
|
||||
"errors": {
|
||||
@@ -6244,7 +6244,7 @@
|
||||
"name": "Rule",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": 330
|
||||
"plain": 331
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"docs": [
|
||||
@@ -6343,10 +6343,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 328
|
||||
"type": 329
|
||||
},
|
||||
"events": {
|
||||
"type": 356
|
||||
"type": 357
|
||||
},
|
||||
"constants": [
|
||||
{
|
||||
@@ -6652,10 +6652,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 337
|
||||
"type": 338
|
||||
},
|
||||
"events": {
|
||||
"type": 357
|
||||
"type": 358
|
||||
},
|
||||
"constants": [
|
||||
{
|
||||
@@ -6764,10 +6764,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 343
|
||||
"type": 344
|
||||
},
|
||||
"events": {
|
||||
"type": 358
|
||||
"type": 359
|
||||
},
|
||||
"constants": [
|
||||
{
|
||||
@@ -6906,7 +6906,7 @@
|
||||
"Twox64Concat"
|
||||
],
|
||||
"key": 430,
|
||||
"value": 361
|
||||
"value": 362
|
||||
}
|
||||
},
|
||||
"fallback": "0x00",
|
||||
@@ -6932,10 +6932,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 344
|
||||
"type": 345
|
||||
},
|
||||
"events": {
|
||||
"type": 360
|
||||
"type": 361
|
||||
},
|
||||
"constants": [],
|
||||
"errors": {
|
||||
@@ -7008,10 +7008,10 @@
|
||||
]
|
||||
},
|
||||
"calls": {
|
||||
"type": 345
|
||||
"type": 346
|
||||
},
|
||||
"events": {
|
||||
"type": 362
|
||||
"type": 363
|
||||
},
|
||||
"constants": [],
|
||||
"errors": {
|
||||
|
||||
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-support', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
@@ -20,20 +20,20 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.6.2",
|
||||
"version": "9.7.1",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/types-augment": "9.6.2",
|
||||
"@polkadot/types-codec": "9.6.2",
|
||||
"@polkadot/types-create": "9.6.2",
|
||||
"@polkadot/types-augment": "9.7.1",
|
||||
"@polkadot/types-codec": "9.7.1",
|
||||
"@polkadot/types-create": "9.7.1",
|
||||
"@polkadot/util": "^10.1.11",
|
||||
"@polkadot/util-crypto": "^10.1.11",
|
||||
"rxjs": "^7.5.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^10.1.11",
|
||||
"@polkadot/types-support": "9.6.2"
|
||||
"@polkadot/types-support": "9.7.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.6.2' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.7.1' };
|
||||
|
||||
Reference in New Issue
Block a user