diff --git a/pioneer/tsconfig.json b/pioneer/tsconfig.json index 2226b26297..a8ebcad35e 100644 --- a/pioneer/tsconfig.json +++ b/pioneer/tsconfig.json @@ -20,7 +20,7 @@ "resolveJsonModule": true, "baseUrl": ".", "paths": { - "@polkadot/types/augment": [ "../types/src/definitions/augment-types.ts" ], + "@polkadot/types/augment": [ "../types/augment-codec/augment-types.ts" ], // "@joystream/types/": [ "../types/src/" ], // "@joystream/types/*": [ "../types/src/*" ], // "@polkadot/joy-election/": [ "packages/joy-election/src/" ], diff --git a/types/.eslintignore b/types/.eslintignore index 5b29e1583e..784e6edbf6 100644 --- a/types/.eslintignore +++ b/types/.eslintignore @@ -1 +1,3 @@ **/*.d.ts +augment/ +augment-types/ diff --git a/types/.prettierignore b/types/.prettierignore index af795fe3ab..cf97865545 100644 --- a/types/.prettierignore +++ b/types/.prettierignore @@ -4,4 +4,5 @@ hiring/schemas/role.schema.json lib/ build/ -src/definitions +augment/ +augment-codec/ diff --git a/types/src/definitions/augment-types.ts b/types/augment-codec/augment-types.ts similarity index 98% rename from types/src/definitions/augment-types.ts rename to types/augment-codec/augment-types.ts index a5f75ca2a5..26253c5c36 100644 --- a/types/src/definitions/augment-types.ts +++ b/types/augment-codec/augment-types.ts @@ -1,6 +1,24 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ +/** CUSTOMIMPORTS **/ +import { Credential as Credential, CredentialSet as CredentialSet, BlockAndTime as BlockAndTime, ThreadId as ThreadId, PostId as PostId, InputValidationLengthConstraint as InputValidationLengthConstraint, WorkingGroup as WorkingGroup, SlashingTerms as SlashingTerms, SlashableTerms as SlashableTerms } from '../common' +import { EntryMethod as EntryMethod, MemberId as MemberId, PaidTermId as PaidTermId, SubscriptionId as SubscriptionId, Membership as Membership, PaidMembershipTerms as PaidMembershipTerms, ActorId as ActorId } from '../members' +import { ElectionStage as ElectionStage, ElectionStake as ElectionStake, SealedVote as SealedVote, TransferableStake as TransferableStake, ElectionParameters as ElectionParameters, Seat as Seat, Seats as Seats, Backer as Backer, Backers as Backers } from '../council' +import { RoleParameters as RoleParameters } from '../roles' +import { PostTextChange as PostTextChange, ModerationAction as ModerationAction, ChildPositionInParentCategory as ChildPositionInParentCategory, CategoryId as CategoryId, Category as Category, Thread as Thread, Post as Post, ReplyId as ReplyId, Reply as Reply } from '../forum' +import { Stake as Stake, StakingStatus as StakingStatus, Staked as Staked, StakedStatus as StakedStatus, Unstaking as Unstaking, Slash as Slash } from '../stake' +import { Mint as Mint, NextAdjustment as NextAdjustment, AdjustOnInterval as AdjustOnInterval, AdjustCapacityBy as AdjustCapacityBy } from '../mint' +import { Recipient as Recipient, RewardRelationship as RewardRelationship } from '../recurring-rewards' +import { Application as Application, ApplicationStage as ApplicationStage, ActivateOpeningAt as ActivateOpeningAt, ApplicationRationingPolicy as ApplicationRationingPolicy, OpeningStage as OpeningStage, StakingPolicy as StakingPolicy, Opening as Opening, WaitingToBeingOpeningStageVariant as WaitingToBeingOpeningStageVariant, ActiveOpeningStageVariant as ActiveOpeningStageVariant, ActiveOpeningStage as ActiveOpeningStage, AcceptingApplications as AcceptingApplications, ReviewPeriod as ReviewPeriod, Deactivated as Deactivated, OpeningDeactivationCause as OpeningDeactivationCause, InactiveApplicationStage as InactiveApplicationStage, UnstakingApplicationStage as UnstakingApplicationStage, ApplicationDeactivationCause as ApplicationDeactivationCause, StakingAmountLimitMode as StakingAmountLimitMode } from '../hiring' +import { Class as Class, Entity as Entity, ClassSchema as ClassSchema, Property as Property, PropertyType as PropertyType, PropertyValue as PropertyValue, ClassPropertyValue as ClassPropertyValue } from '../versioned-store' +import { EntityPermissions as EntityPermissions, ReferenceConstraint as ReferenceConstraint, ClassPermissionsType as ClassPermissionsType, Operation as Operation, OperationType as OperationType, CreateEntity as CreateEntity, UpdatePropertyValues as UpdatePropertyValues, AddSchemaSupportToEntity as AddSchemaSupportToEntity, ParametrizedEntity as ParametrizedEntity, ParametrizedClassPropertyValue as ParametrizedClassPropertyValue, ParametrizedPropertyValue as ParametrizedPropertyValue, PropertyOfClass as PropertyOfClass } from '../versioned-store/permissions' +import { OptionalText as OptionalText, Channel as Channel, ChannelContentType as ChannelContentType, ChannelCurationStatus as ChannelCurationStatus, ChannelPublicationStatus as ChannelPublicationStatus, CurationActor as CurationActor, Curator as Curator, CuratorApplication as CuratorApplication, CuratorOpening as CuratorOpening, Lead as Lead, OpeningPolicyCommitment as OpeningPolicyCommitment, Principal as Principal, WorkingGroupUnstaker as WorkingGroupUnstaker, CuratorApplicationIdToCuratorIdMap as CuratorApplicationIdToCuratorIdMap, CuratorApplicationIdSet as CuratorApplicationIdSet, CuratorRoleStakeProfile as CuratorRoleStakeProfile, CuratorRoleStage as CuratorRoleStage, CuratorExitSummary as CuratorExitSummary, CuratorExitInitiationOrigin as CuratorExitInitiationOrigin, LeadRoleState as LeadRoleState, ExitedLeadRole as ExitedLeadRole, CuratorInduction as CuratorInduction } from '../content-working-group' +import { RationaleText as RationaleText, Application as ApplicationOf, ApplicationIdSet as ApplicationIdSet, ApplicationIdToWorkerIdMap as ApplicationIdToWorkerIdMap, WorkerId as WorkerId, Worker as WorkerOf, Opening as OpeningOf, StorageProviderId as StorageProviderId, OpeningType as OpeningType, ApplicationId as HiringApplicationId, RewardPolicy as RewardPolicy, WorkingGroupOpeningPolicyCommitment as WorkingGroupOpeningPolicyCommitment, RoleStakeProfile as RoleStakeProfile } from '../working-group' +import { Url as Url, IPNSIdentity as IPNSIdentity, ServiceProviderRecord as ServiceProviderRecord } from '../discovery' +import { ContentId as ContentId, LiaisonJudgement as LiaisonJudgement, DataObject as DataObject, DataObjectStorageRelationshipId as DataObjectStorageRelationshipId, DataObjectStorageRelationship as DataObjectStorageRelationship, DataObjectTypeId as DataObjectTypeId, DataObjectType as DataObjectType, DataObjectsMap as DataObjectsMap } from '../media' +import { ProposalId as ProposalId, ProposalStatus as ProposalStatus, Proposal as ProposalOf, ProposalDetails as ProposalDetails, ProposalDetails as ProposalDetailsOf, VotingResults as VotingResults, ProposalParameters as ProposalParameters, VoteKind as VoteKind, ThreadCounter as ThreadCounter, DiscussionThread as DiscussionThread, DiscussionPost as DiscussionPost, AddOpeningParameters as AddOpeningParameters, FillOpeningParameters as FillOpeningParameters, TerminateRoleParameters as TerminateRoleParameters, ActiveStake as ActiveStake, Finalized as Finalized, ProposalDecisionStatus as ProposalDecisionStatus, ExecutionFailed as ExecutionFailed, Approved as Approved, SetLeadParams as SetLeadParams } from '../proposals' +/** /CUSTOMIMPORTS **/ import { Compact, Option, Raw, Vec } from '@polkadot/types/codec'; import { BitVec, Bytes, Data, DoNotConstruct, Null, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive'; import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; @@ -45,1831 +63,9 @@ import { OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal import { Multiplier } from '@polkadot/types/interfaces/txpayment'; import { CallHash, Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; import { VestingInfo } from '@polkadot/types/interfaces/vesting'; -/** CUSTOMIMPORTS **/ -import { Credential as Credential, CredentialSet as CredentialSet, BlockAndTime as BlockAndTime, ThreadId as ThreadId, PostId as PostId, InputValidationLengthConstraint as InputValidationLengthConstraint, WorkingGroup as WorkingGroup, SlashingTerms as SlashingTerms, SlashableTerms as SlashableTerms } from '../common' -import { EntryMethod as EntryMethod, MemberId as MemberId, PaidTermId as PaidTermId, SubscriptionId as SubscriptionId, Membership as Membership, PaidMembershipTerms as PaidMembershipTerms, ActorId as ActorId } from '../members' -import { ElectionStage as ElectionStage, ElectionStake as ElectionStake, SealedVote as SealedVote, TransferableStake as TransferableStake, ElectionParameters as ElectionParameters, Seat as Seat, Seats as Seats, Backer as Backer, Backers as Backers } from '../council' -import { RoleParameters as RoleParameters } from '../roles' -import { PostTextChange as PostTextChange, ModerationAction as ModerationAction, ChildPositionInParentCategory as ChildPositionInParentCategory, CategoryId as CategoryId, Category as Category, Thread as Thread, Post as Post, ReplyId as ReplyId, Reply as Reply } from '../forum' -import { Stake as Stake, StakingStatus as StakingStatus, Staked as Staked, StakedStatus as StakedStatus, Unstaking as Unstaking, Slash as Slash } from '../stake' -import { Mint as Mint, NextAdjustment as NextAdjustment, AdjustOnInterval as AdjustOnInterval, AdjustCapacityBy as AdjustCapacityBy } from '../mint' -import { Recipient as Recipient, RewardRelationship as RewardRelationship } from '../recurring-rewards' -import { Application as Application, ApplicationStage as ApplicationStage, ActivateOpeningAt as ActivateOpeningAt, ApplicationRationingPolicy as ApplicationRationingPolicy, OpeningStage as OpeningStage, StakingPolicy as StakingPolicy, Opening as Opening, WaitingToBeingOpeningStageVariant as WaitingToBeingOpeningStageVariant, ActiveOpeningStageVariant as ActiveOpeningStageVariant, ActiveOpeningStage as ActiveOpeningStage, AcceptingApplications as AcceptingApplications, ReviewPeriod as ReviewPeriod, Deactivated as Deactivated, OpeningDeactivationCause as OpeningDeactivationCause, InactiveApplicationStage as InactiveApplicationStage, UnstakingApplicationStage as UnstakingApplicationStage, ApplicationDeactivationCause as ApplicationDeactivationCause } from '../hiring' -import { Class as Class, Entity as Entity, ClassSchema as ClassSchema, Property as Property, PropertyType as PropertyType, PropertyValue as PropertyValue, ClassPropertyValue as ClassPropertyValue } from '../versioned-store' -import { EntityPermissions as EntityPermissions, ReferenceConstraint as ReferenceConstraint, ClassPermissionsType as ClassPermissionsType, Operation as Operation, OperationType as OperationType, CreateEntity as CreateEntity, UpdatePropertyValues as UpdatePropertyValues, AddSchemaSupportToEntity as AddSchemaSupportToEntity, ParametrizedEntity as ParametrizedEntity, ParametrizedClassPropertyValue as ParametrizedClassPropertyValue, ParametrizedPropertyValue as ParametrizedPropertyValue } from '../versioned-store/permissions' -import { OptionalText as OptionalText, Channel as Channel, ChannelContentType as ChannelContentType, ChannelCurationStatus as ChannelCurationStatus, ChannelPublicationStatus as ChannelPublicationStatus, CurationActor as CurationActor, Curator as Curator, CuratorApplication as CuratorApplication, CuratorOpening as CuratorOpening, Lead as Lead, OpeningPolicyCommitment as OpeningPolicyCommitment, Principal as Principal, WorkingGroupUnstaker as WorkingGroupUnstaker, CuratorApplicationIdToCuratorIdMap as CuratorApplicationIdToCuratorIdMap, CuratorApplicationIdSet as CuratorApplicationIdSet, CuratorRoleStakeProfile as CuratorRoleStakeProfile, CuratorRoleStage as CuratorRoleStage, CuratorExitSummary as CuratorExitSummary, CuratorExitInitiationOrigin as CuratorExitInitiationOrigin, ExitedLeadRole as ExitedLeadRole, CuratorInduction as CuratorInduction } from '../content-working-group' -import { RationaleText as RationaleText, Application as ApplicationOf, ApplicationIdSet as ApplicationIdSet, ApplicationIdToWorkerIdMap as ApplicationIdToWorkerIdMap, WorkerId as WorkerId, Worker as WorkerOf, Opening as OpeningOf, StorageProviderId as StorageProviderId, OpeningType as OpeningType, ApplicationId as HiringApplicationId, RewardPolicy as RewardPolicy, OpeningId as working_group__OpeningId, WorkerId as working_group__WorkerId, WorkingGroupOpeningPolicyCommitment as WorkingGroupOpeningPolicyCommitment, RoleStakeProfile as RoleStakeProfile } from '../working-group' -import { Url as Url, IPNSIdentity as IPNSIdentity, ServiceProviderRecord as ServiceProviderRecord } from '../discovery' -import { ContentId as ContentId, LiaisonJudgement as LiaisonJudgement, DataObject as DataObject, DataObjectStorageRelationshipId as DataObjectStorageRelationshipId, DataObjectStorageRelationship as DataObjectStorageRelationship, DataObjectTypeId as DataObjectTypeId, DataObjectType as DataObjectType, DataObjectsMap as DataObjectsMap } from '../media' -import { ProposalId as ProposalId, ProposalStatus as ProposalStatus, Proposal as ProposalOf, ProposalDetails as ProposalDetails, ProposalDetails as ProposalDetailsOf, VotingResults as VotingResults, ProposalParameters as ProposalParameters, VoteKind as VoteKind, ThreadCounter as ThreadCounter, DiscussionThread as DiscussionThread, DiscussionPost as DiscussionPost, AddOpeningParameters as AddOpeningParameters, FillOpeningParameters as FillOpeningParameters, TerminateRoleParameters as TerminateRoleParameters, ActiveStake as ActiveStake, FinalizationData as FinalizationData, ProposalDecisionStatus as ProposalDecisionStatus, ExecutionFailed as ExecutionFailed } from '../proposals' -/** /CUSTOMIMPORTS **/ declare module '@polkadot/types/types/registry' { export interface InterfaceTypes { - BitVec: BitVec; - 'Option': Option; - 'Vec': Vec; - bool: bool; - 'Option': Option; - 'Vec': Vec; - Bytes: Bytes; - 'Option': Option; - 'Vec': Vec; - Data: Data; - 'Option': Option; - 'Vec': Vec; - DoNotConstruct: DoNotConstruct; - 'Option': Option; - 'Vec': Vec; - i8: i8; - 'Option': Option; - 'Vec': Vec; - i16: i16; - 'Option': Option; - 'Vec': Vec; - i32: i32; - 'Option': Option; - 'Vec': Vec; - i64: i64; - 'Option': Option; - 'Vec': Vec; - i128: i128; - 'Option': Option; - 'Vec': Vec; - i256: i256; - 'Option': Option; - 'Vec': Vec; - Null: Null; - 'Option': Option; - 'Vec': Vec; - StorageKey: StorageKey; - 'Option': Option; - 'Vec': Vec; - Text: Text; - 'Option': Option; - 'Vec': Vec; - Type: Type; - 'Option': Option; - 'Vec': Vec; - u8: u8; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - u16: u16; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - u32: u32; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - u64: u64; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - u128: u128; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - u256: u256; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - U256: U256; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - usize: usize; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Raw: Raw; - 'Option': Option; - 'Vec': Vec; - AccountId: AccountId; - 'Option': Option; - 'Vec': Vec; - AccountIdOf: AccountIdOf; - 'Option': Option; - 'Vec': Vec; - AccountIndex: AccountIndex; - 'Option': Option; - 'Vec': Vec; - Address: Address; - 'Option
': Option
; - 'Vec
': Vec
; - AssetId: AssetId; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Balance: Balance; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - BalanceOf: BalanceOf; - 'Option': Option; - 'Vec': Vec; - Block: Block; - 'Option': Option; - 'Vec': Vec; - BlockNumber: BlockNumber; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Call: Call; - 'Option': Option; - 'Vec': Vec; - ChangesTrieConfiguration: ChangesTrieConfiguration; - 'Option': Option; - 'Vec': Vec; - ConsensusEngineId: ConsensusEngineId; - 'Option': Option; - 'Vec': Vec; - Digest: Digest; - 'Option': Option; - 'Vec': Vec; - DigestItem: DigestItem; - 'Option': Option; - 'Vec': Vec; - ExtrinsicsWeight: ExtrinsicsWeight; - 'Option': Option; - 'Vec': Vec; - Fixed64: Fixed64; - 'Option': Option; - 'Vec': Vec; - Fixed128: Fixed128; - 'Option': Option; - 'Vec': Vec; - H160: H160; - 'Option': Option; - 'Vec': Vec; - H256: H256; - 'Option': Option; - 'Vec': Vec; - H512: H512; - 'Option': Option; - 'Vec': Vec; - Hash: Hash; - 'Option': Option; - 'Vec': Vec; - Header: Header; - 'Option
': Option
; - 'Vec
': Vec
; - Index: Index; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Justification: Justification; - 'Option': Option; - 'Vec': Vec; - KeyValue: KeyValue; - 'Option': Option; - 'Vec': Vec; - KeyTypeId: KeyTypeId; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - LockIdentifier: LockIdentifier; - 'Option': Option; - 'Vec': Vec; - LookupSource: LookupSource; - 'Option': Option; - 'Vec': Vec; - LookupTarget: LookupTarget; - 'Option': Option; - 'Vec': Vec; - ModuleId: ModuleId; - 'Option': Option; - 'Vec': Vec; - Moment: Moment; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - OpaqueCall: OpaqueCall; - 'Option': Option; - 'Vec': Vec; - Origin: Origin; - 'Option': Option; - 'Vec': Vec; - Pays: Pays; - 'Option': Option; - 'Vec': Vec; - Perbill: Perbill; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Percent: Percent; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Permill: Permill; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Perquintill: Perquintill; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Phantom: Phantom; - 'Option': Option; - 'Vec': Vec; - PhantomData: PhantomData; - 'Option': Option; - 'Vec': Vec; - ProxyType: ProxyType; - 'Option': Option; - 'Vec': Vec; - Releases: Releases; - 'Option': Option; - 'Vec': Vec; - RuntimeDbWeight: RuntimeDbWeight; - 'Option': Option; - 'Vec': Vec; - SignedBlock: SignedBlock; - 'Option': Option; - 'Vec': Vec; - StorageData: StorageData; - 'Option': Option; - 'Vec': Vec; - ValidatorId: ValidatorId; - 'Option': Option; - 'Vec': Vec; - Weight: Weight; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - WeightMultiplier: WeightMultiplier; - 'Option': Option; - 'Vec': Vec; - PreRuntime: PreRuntime; - 'Option': Option; - 'Vec': Vec; - SealV0: SealV0; - 'Option': Option; - 'Vec': Vec; - Seal: Seal; - 'Option': Option; - 'Vec': Vec; - Consensus: Consensus; - 'Option': Option; - 'Vec': Vec; - UncleEntryItem: UncleEntryItem; - 'Option': Option; - 'Vec': Vec; - RawAuraPreDigest: RawAuraPreDigest; - 'Option': Option; - 'Vec': Vec; - AllowedSlots: AllowedSlots; - 'Option': Option; - 'Vec': Vec; - BabeAuthorityWeight: BabeAuthorityWeight; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - BabeBlockWeight: BabeBlockWeight; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - BabeEquivocationProof: BabeEquivocationProof; - 'Option': Option; - 'Vec': Vec; - BabeWeight: BabeWeight; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - MaybeRandomness: MaybeRandomness; - 'Option': Option; - 'Vec': Vec; - MaybeVrf: MaybeVrf; - 'Option': Option; - 'Vec': Vec; - EpochAuthorship: EpochAuthorship; - 'Option': Option; - 'Vec': Vec; - NextConfigDescriptor: NextConfigDescriptor; - 'Option': Option; - 'Vec': Vec; - NextConfigDescriptorV1: NextConfigDescriptorV1; - 'Option': Option; - 'Vec': Vec; - Randomness: Randomness; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigest: RawBabePreDigest; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestPrimary: RawBabePreDigestPrimary; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestTo159: RawBabePreDigestTo159; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159; - 'Option': Option; - 'Vec': Vec; - RawBabePreDigestCompat: RawBabePreDigestCompat; - 'Option': Option; - 'Vec': Vec; - SlotNumber: SlotNumber; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - VrfData: VrfData; - 'Option': Option; - 'Vec': Vec; - VrfOutput: VrfOutput; - 'Option': Option; - 'Vec': Vec; - VrfProof: VrfProof; - 'Option': Option; - 'Vec': Vec; - AccountData: AccountData; - 'Option': Option; - 'Vec': Vec; - BalanceLockTo212: BalanceLockTo212; - 'Option': Option; - 'Vec': Vec; - BalanceLock: BalanceLock; - 'Option': Option; - 'Vec': Vec; - BalanceStatus: BalanceStatus; - 'Option': Option; - 'Vec': Vec; - Reasons: Reasons; - 'Option': Option; - 'Vec': Vec; - VestingSchedule: VestingSchedule; - 'Option': Option; - 'Vec': Vec; - WithdrawReasons: WithdrawReasons; - 'Option': Option; - 'Vec': Vec; - MemberCount: MemberCount; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - ProposalIndex: ProposalIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - VotesTo230: VotesTo230; - 'Option': Option; - 'Vec': Vec; - Votes: Votes; - 'Option': Option; - 'Vec': Vec; - AuthorityId: AuthorityId; - 'Option': Option; - 'Vec': Vec; - RawVRFOutput: RawVRFOutput; - 'Option': Option; - 'Vec': Vec; - AliveContractInfo: AliveContractInfo; - 'Option': Option; - 'Vec': Vec; - CodeHash: CodeHash; - 'Option': Option; - 'Vec': Vec; - ContractCallRequest: ContractCallRequest; - 'Option': Option; - 'Vec': Vec; - ContractExecResultSuccessTo255: ContractExecResultSuccessTo255; - 'Option': Option; - 'Vec': Vec; - ContractExecResultTo255: ContractExecResultTo255; - 'Option': Option; - 'Vec': Vec; - ContractExecResultSuccess: ContractExecResultSuccess; - 'Option': Option; - 'Vec': Vec; - ContractExecResult: ContractExecResult; - 'Option': Option; - 'Vec': Vec; - ContractInfo: ContractInfo; - 'Option': Option; - 'Vec': Vec; - ContractStorageKey: ContractStorageKey; - 'Option': Option; - 'Vec': Vec; - Gas: Gas; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - PrefabWasmModule: PrefabWasmModule; - 'Option': Option; - 'Vec': Vec; - PrefabWasmModuleReserved: PrefabWasmModuleReserved; - 'Option': Option; - 'Vec': Vec; - ScheduleTo212: ScheduleTo212; - 'Option': Option; - 'Vec': Vec; - Schedule: Schedule; - 'Option': Option; - 'Vec': Vec; - SeedOf: SeedOf; - 'Option': Option; - 'Vec': Vec; - TombstoneContractInfo: TombstoneContractInfo; - 'Option': Option; - 'Vec': Vec; - TrieId: TrieId; - 'Option': Option; - 'Vec': Vec; - AccountVote: AccountVote; - 'Option': Option; - 'Vec': Vec; - AccountVoteSplit: AccountVoteSplit; - 'Option': Option; - 'Vec': Vec; - AccountVoteStandard: AccountVoteStandard; - 'Option': Option; - 'Vec': Vec; - Conviction: Conviction; - 'Option': Option; - 'Vec': Vec; - Delegations: Delegations; - 'Option': Option; - 'Vec': Vec; - PreimageStatus: PreimageStatus; - 'Option': Option; - 'Vec': Vec; - PreimageStatusAvailable: PreimageStatusAvailable; - 'Option': Option; - 'Vec': Vec; - PriorLock: PriorLock; - 'Option': Option; - 'Vec': Vec; - PropIndex: PropIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Proposal: Proposal; - 'Option': Option; - 'Vec': Vec; - ProxyState: ProxyState; - 'Option': Option; - 'Vec': Vec; - ReferendumIndex: ReferendumIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - ReferendumInfoTo239: ReferendumInfoTo239; - 'Option': Option; - 'Vec': Vec; - ReferendumInfo: ReferendumInfo; - 'Option': Option; - 'Vec': Vec; - ReferendumInfoFinished: ReferendumInfoFinished; - 'Option': Option; - 'Vec': Vec; - ReferendumStatus: ReferendumStatus; - 'Option': Option; - 'Vec': Vec; - Tally: Tally; - 'Option': Option; - 'Vec': Vec; - Voting: Voting; - 'Option': Option; - 'Vec': Vec; - VotingDirect: VotingDirect; - 'Option': Option; - 'Vec': Vec; - VotingDirectVote: VotingDirectVote; - 'Option': Option; - 'Vec': Vec; - VotingDelegating: VotingDelegating; - 'Option': Option; - 'Vec': Vec; - ApprovalFlag: ApprovalFlag; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - DefunctVoter: DefunctVoter; - 'Option': Option; - 'Vec': Vec; - Renouncing: Renouncing; - 'Option': Option; - 'Vec': Vec; - SetIndex: SetIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Vote: Vote; - 'Option': Option; - 'Vec': Vec; - VoteIndex: VoteIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - VoterInfo: VoterInfo; - 'Option': Option; - 'Vec': Vec; - VoteThreshold: VoteThreshold; - 'Option': Option; - 'Vec': Vec; - CreatedBlock: CreatedBlock; - 'Option': Option; - 'Vec': Vec; - ImportedAux: ImportedAux; - 'Option': Option; - 'Vec': Vec; - Account: Account; - 'Option': Option; - 'Vec': Vec; - Log: Log; - 'Option': Option; - 'Vec': Vec; - Vicinity: Vicinity; - 'Option': Option; - 'Vec': Vec; - Extrinsic: Extrinsic; - 'Option': Option; - 'Vec': Vec; - ExtrinsicEra: ExtrinsicEra; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayload: ExtrinsicPayload; - 'Option': Option; - 'Vec': Vec; - ExtrinsicV1: ExtrinsicV1; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayloadV1: ExtrinsicPayloadV1; - 'Option': Option; - 'Vec': Vec; - ExtrinsicSignatureV1: ExtrinsicSignatureV1; - 'Option': Option; - 'Vec': Vec; - ExtrinsicV2: ExtrinsicV2; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayloadV2: ExtrinsicPayloadV2; - 'Option': Option; - 'Vec': Vec; - ExtrinsicSignatureV2: ExtrinsicSignatureV2; - 'Option': Option; - 'Vec': Vec; - ExtrinsicV3: ExtrinsicV3; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayloadV3: ExtrinsicPayloadV3; - 'Option': Option; - 'Vec': Vec; - ExtrinsicSignatureV3: ExtrinsicSignatureV3; - 'Option': Option; - 'Vec': Vec; - ExtrinsicV4: ExtrinsicV4; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayloadV4: ExtrinsicPayloadV4; - 'Option': Option; - 'Vec': Vec; - ExtrinsicSignatureV4: ExtrinsicSignatureV4; - 'Option': Option; - 'Vec': Vec; - ExtrinsicUnknown: ExtrinsicUnknown; - 'Option': Option; - 'Vec': Vec; - ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown; - 'Option': Option; - 'Vec': Vec; - ImmortalEra: ImmortalEra; - 'Option': Option; - 'Vec': Vec; - MortalEra: MortalEra; - 'Option': Option; - 'Vec': Vec; - MultiSignature: MultiSignature; - 'Option': Option; - 'Vec': Vec; - Signature: Signature; - 'Option': Option; - 'Vec': Vec; - SignerPayload: SignerPayload; - 'Option': Option; - 'Vec': Vec; - EcdsaSignature: EcdsaSignature; - 'Option': Option; - 'Vec': Vec; - Ed25519Signature: Ed25519Signature; - 'Option': Option; - 'Vec': Vec; - Sr25519Signature: Sr25519Signature; - 'Option': Option; - 'Vec': Vec; - AssetOptions: AssetOptions; - 'Option': Option; - 'Vec': Vec; - Owner: Owner; - 'Option': Option; - 'Vec': Vec; - PermissionsV1: PermissionsV1; - 'Option': Option; - 'Vec': Vec; - PermissionVersions: PermissionVersions; - 'Option': Option; - 'Vec': Vec; - PermissionLatest: PermissionLatest; - 'Option': Option; - 'Vec': Vec; - AuthorityIndex: AuthorityIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - AuthorityList: AuthorityList; - 'Option': Option; - 'Vec': Vec; - AuthorityWeight: AuthorityWeight; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - GrandpaEquivocation: GrandpaEquivocation; - 'Option': Option; - 'Vec': Vec; - GrandpaEquivocationProof: GrandpaEquivocationProof; - 'Option': Option; - 'Vec': Vec; - GrandpaEquivocationValue: GrandpaEquivocationValue; - 'Option': Option; - 'Vec': Vec; - GrandpaPrevote: GrandpaPrevote; - 'Option': Option; - 'Vec': Vec; - KeyOwnerProof: KeyOwnerProof; - 'Option': Option; - 'Vec': Vec; - NextAuthority: NextAuthority; - 'Option': Option; - 'Vec': Vec; - PendingPause: PendingPause; - 'Option': Option; - 'Vec': Vec; - PendingResume: PendingResume; - 'Option': Option; - 'Vec': Vec; - Precommits: Precommits; - 'Option': Option; - 'Vec': Vec; - Prevotes: Prevotes; - 'Option': Option; - 'Vec': Vec; - ReportedRoundStates: ReportedRoundStates; - 'Option': Option; - 'Vec': Vec; - RoundState: RoundState; - 'Option': Option; - 'Vec': Vec; - SetId: SetId; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - StoredPendingChange: StoredPendingChange; - 'Option': Option; - 'Vec': Vec; - StoredState: StoredState; - 'Option': Option; - 'Vec': Vec; - IdentityFields: IdentityFields; - 'Option': Option; - 'Vec': Vec; - IdentityInfoAdditional: IdentityInfoAdditional; - 'Option': Option; - 'Vec': Vec; - IdentityInfo: IdentityInfo; - 'Option': Option; - 'Vec': Vec; - IdentityJudgement: IdentityJudgement; - 'Option': Option; - 'Vec': Vec; - RegistrationJudgement: RegistrationJudgement; - 'Option': Option; - 'Vec': Vec; - Registration: Registration; - 'Option': Option; - 'Vec': Vec; - RegistrarIndex: RegistrarIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - RegistrarInfo: RegistrarInfo; - 'Option': Option; - 'Vec': Vec; - AuthIndex: AuthIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - AuthoritySignature: AuthoritySignature; - 'Option': Option; - 'Vec': Vec; - Heartbeat: Heartbeat; - 'Option': Option; - 'Vec': Vec; - HeartbeatTo244: HeartbeatTo244; - 'Option': Option; - 'Vec': Vec; - OpaqueMultiaddr: OpaqueMultiaddr; - 'Option': Option; - 'Vec': Vec; - OpaquePeerId: OpaquePeerId; - 'Option': Option; - 'Vec': Vec; - OpaqueNetworkState: OpaqueNetworkState; - 'Option': Option; - 'Vec': Vec; - DeferredOffenceOf: DeferredOffenceOf; - 'Option': Option; - 'Vec': Vec; - Kind: Kind; - 'Option': Option; - 'Vec': Vec; - OffenceDetails: OffenceDetails; - 'Option': Option; - 'Vec': Vec; - Offender: Offender; - 'Option': Option; - 'Vec': Vec; - OpaqueTimeSlot: OpaqueTimeSlot; - 'Option': Option; - 'Vec': Vec; - ReportIdOf: ReportIdOf; - 'Option': Option; - 'Vec': Vec; - Reporter: Reporter; - 'Option': Option; - 'Vec': Vec; - ActiveRecovery: ActiveRecovery; - 'Option': Option; - 'Vec': Vec; - RecoveryConfig: RecoveryConfig; - 'Option': Option; - 'Vec': Vec; - Period: Period; - 'Option': Option; - 'Vec': Vec; - Priority: Priority; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - SchedulePeriod: SchedulePeriod; - 'Option': Option; - 'Vec': Vec; - SchedulePriority: SchedulePriority; - 'Option': Option; - 'Vec': Vec; - Scheduled: Scheduled; - 'Option': Option; - 'Vec': Vec; - TaskAddress: TaskAddress; - 'Option': Option; - 'Vec': Vec; - Keys: Keys; - 'Option': Option; - 'Vec': Vec; - SessionKeys1: SessionKeys1; - 'Option': Option; - 'Vec': Vec; - SessionKeys2: SessionKeys2; - 'Option': Option; - 'Vec': Vec; - SessionKeys3: SessionKeys3; - 'Option': Option; - 'Vec': Vec; - SessionKeys4: SessionKeys4; - 'Option': Option; - 'Vec': Vec; - SessionKeys5: SessionKeys5; - 'Option': Option; - 'Vec': Vec; - SessionKeys6: SessionKeys6; - 'Option': Option; - 'Vec': Vec; - FullIdentification: FullIdentification; - 'Option': Option; - 'Vec': Vec; - IdentificationTuple: IdentificationTuple; - 'Option': Option; - 'Vec': Vec; - MembershipProof: MembershipProof; - 'Option': Option; - 'Vec': Vec; - SessionIndex: SessionIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - ValidatorCount: ValidatorCount; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Bid: Bid; - 'Option': Option; - 'Vec': Vec; - BidKind: BidKind; - 'Option': Option; - 'Vec': Vec; - SocietyJudgement: SocietyJudgement; - 'Option': Option; - 'Vec': Vec; - SocietyVote: SocietyVote; - 'Option': Option; - 'Vec': Vec; - StrikeCount: StrikeCount; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - VouchingStatus: VouchingStatus; - 'Option': Option; - 'Vec': Vec; - Points: Points; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - EraPoints: EraPoints; - 'Option': Option; - 'Vec': Vec; - ActiveEraInfo: ActiveEraInfo; - 'Option': Option; - 'Vec': Vec; - CompactAssignments: CompactAssignments; - 'Option': Option; - 'Vec': Vec; - CompactScore: CompactScore; - 'Option': Option; - 'Vec': Vec; - ElectionCompute: ElectionCompute; - 'Option': Option; - 'Vec': Vec; - ElectionResult: ElectionResult; - 'Option': Option; - 'Vec': Vec; - ElectionScore: ElectionScore; - 'Option': Option; - 'Vec': Vec; - ElectionSize: ElectionSize; - 'Option': Option; - 'Vec': Vec; - ElectionStatus: ElectionStatus; - 'Option': Option; - 'Vec': Vec; - EraIndex: EraIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - EraRewardPoints: EraRewardPoints; - 'Option': Option; - 'Vec': Vec; - EraRewards: EraRewards; - 'Option': Option; - 'Vec': Vec; - Exposure: Exposure; - 'Option': Option; - 'Vec': Vec; - Forcing: Forcing; - 'Option': Option; - 'Vec': Vec; - IndividualExposure: IndividualExposure; - 'Option': Option; - 'Vec': Vec; - KeyType: KeyType; - 'Option': Option; - 'Vec': Vec; - MomentOf: MomentOf; - 'Option': Option; - 'Vec': Vec; - Nominations: Nominations; - 'Option': Option; - 'Vec': Vec; - NominatorIndex: NominatorIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - OffchainAccuracy: OffchainAccuracy; - 'Option': Option; - 'Vec': Vec; - PerU16: PerU16; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - PhragmenScore: PhragmenScore; - 'Option': Option; - 'Vec': Vec; - RewardDestination: RewardDestination; - 'Option': Option; - 'Vec': Vec; - RewardPoint: RewardPoint; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - SlashJournalEntry: SlashJournalEntry; - 'Option': Option; - 'Vec': Vec; - SlashingSpansTo204: SlashingSpansTo204; - 'Option': Option; - 'Vec': Vec; - SlashingSpans: SlashingSpans; - 'Option': Option; - 'Vec': Vec; - SpanIndex: SpanIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - SpanRecord: SpanRecord; - 'Option': Option; - 'Vec': Vec; - StakingLedgerTo223: StakingLedgerTo223; - 'Option': Option; - 'Vec': Vec; - StakingLedgerTo240: StakingLedgerTo240; - 'Option': Option; - 'Vec': Vec; - StakingLedger: StakingLedger; - 'Option': Option; - 'Vec': Vec; - UnappliedSlashOther: UnappliedSlashOther; - 'Option': Option; - 'Vec': Vec; - UnappliedSlash: UnappliedSlash; - 'Option': Option; - 'Vec': Vec; - UnlockChunk: UnlockChunk; - 'Option': Option; - 'Vec': Vec; - ValidatorIndex: ValidatorIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - ValidatorPrefs: ValidatorPrefs; - 'Option': Option; - 'Vec': Vec; - ValidatorPrefsTo196: ValidatorPrefsTo196; - 'Option': Option; - 'Vec': Vec; - ValidatorPrefsTo145: ValidatorPrefsTo145; - 'Option': Option; - 'Vec': Vec; - WeightToFeeCoefficient: WeightToFeeCoefficient; - 'Option': Option; - 'Vec': Vec; - AccountInfo: AccountInfo; - 'Option': Option; - 'Vec': Vec; - ApplyExtrinsicResult: ApplyExtrinsicResult; - 'Option': Option; - 'Vec': Vec; - ChainProperties: ChainProperties; - 'Option': Option; - 'Vec': Vec; - ChainType: ChainType; - 'Option': Option; - 'Vec': Vec; - DigestOf: DigestOf; - 'Option': Option; - 'Vec': Vec; - DispatchClass: DispatchClass; - 'Option': Option; - 'Vec': Vec; - DispatchError: DispatchError; - 'Option': Option; - 'Vec': Vec; - DispatchErrorModule: DispatchErrorModule; - 'Option': Option; - 'Vec': Vec; - DispatchErrorTo198: DispatchErrorTo198; - 'Option': Option; - 'Vec': Vec; - DispatchInfo: DispatchInfo; - 'Option': Option; - 'Vec': Vec; - DispatchInfoTo190: DispatchInfoTo190; - 'Option': Option; - 'Vec': Vec; - DispatchInfoTo244: DispatchInfoTo244; - 'Option': Option; - 'Vec': Vec; - DispatchOutcome: DispatchOutcome; - 'Option': Option; - 'Vec': Vec; - DispatchResult: DispatchResult; - 'Option': Option; - 'Vec': Vec; - DispatchResultOf: DispatchResultOf; - 'Option': Option; - 'Vec': Vec; - DispatchResultTo198: DispatchResultTo198; - 'Option': Option; - 'Vec': Vec; - Event: Event; - 'Option': Option; - 'Vec': Vec; - EventId: EventId; - 'Option': Option; - 'Vec': Vec; - EventIndex: EventIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - EventRecord: EventRecord; - 'Option': Option; - 'Vec': Vec; - EventRecordTo76: EventRecordTo76; - 'Option': Option; - 'Vec': Vec; - Health: Health; - 'Option': Option; - 'Vec': Vec; - InvalidTransaction: InvalidTransaction; - 'Option': Option; - 'Vec': Vec; - Key: Key; - 'Option': Option; - 'Vec': Vec; - LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo; - 'Option': Option; - 'Vec': Vec; - NetworkState: NetworkState; - 'Option': Option; - 'Vec': Vec; - NetworkStatePeerset: NetworkStatePeerset; - 'Option': Option; - 'Vec': Vec; - NetworkStatePeersetInfo: NetworkStatePeersetInfo; - 'Option': Option; - 'Vec': Vec; - NodeRole: NodeRole; - 'Option': Option; - 'Vec': Vec; - NotConnectedPeer: NotConnectedPeer; - 'Option': Option; - 'Vec': Vec; - Peer: Peer; - 'Option': Option; - 'Vec': Vec; - PeerEndpoint: PeerEndpoint; - 'Option': Option; - 'Vec': Vec; - PeerEndpointAddr: PeerEndpointAddr; - 'Option': Option; - 'Vec': Vec; - PeerPing: PeerPing; - 'Option': Option; - 'Vec': Vec; - PeerInfo: PeerInfo; - 'Option': Option; - 'Vec': Vec; - Phase: Phase; - 'Option': Option; - 'Vec': Vec; - RefCount: RefCount; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - TransactionValidityError: TransactionValidityError; - 'Option': Option; - 'Vec': Vec; - UnknownTransaction: UnknownTransaction; - 'Option': Option; - 'Vec': Vec; - OpenTip: OpenTip; - 'Option': Option; - 'Vec': Vec; - OpenTipTo225: OpenTipTo225; - 'Option': Option; - 'Vec': Vec; - OpenTipFinderTo225: OpenTipFinderTo225; - 'Option': Option; - 'Vec': Vec; - OpenTipTip: OpenTipTip; - 'Option': Option; - 'Vec': Vec; - TreasuryProposal: TreasuryProposal; - 'Option': Option; - 'Vec': Vec; - Multiplier: Multiplier; - 'Option': Option; - 'Vec': Vec; - CallHash: CallHash; - 'Option': Option; - 'Vec': Vec; - Multisig: Multisig; - 'Option': Option; - 'Vec': Vec; - Timepoint: Timepoint; - 'Option': Option; - 'Vec': Vec; - VestingInfo: VestingInfo; - 'Option': Option; - 'Vec': Vec; - BlockAttestations: BlockAttestations; - 'Option': Option; - 'Vec': Vec; - IncludedBlocks: IncludedBlocks; - 'Option': Option; - 'Vec': Vec; - MoreAttestations: MoreAttestations; - 'Option': Option; - 'Vec': Vec; - EthereumAddress: EthereumAddress; - 'Option': Option; - 'Vec': Vec; - StatementKind: StatementKind; - 'Option': Option; - 'Vec': Vec; - AbridgedCandidateReceipt: AbridgedCandidateReceipt; - 'Option': Option; - 'Vec': Vec; - AttestedCandidate: AttestedCandidate; - 'Option': Option; - 'Vec': Vec; - AuctionIndex: AuctionIndex; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - Bidder: Bidder; - 'Option': Option; - 'Vec': Vec; - CandidateCommitments: CandidateCommitments; - 'Option': Option; - 'Vec': Vec; - CandidateReceipt: CandidateReceipt; - 'Option': Option; - 'Vec': Vec; - CollatorId: CollatorId; - 'Option': Option; - 'Vec': Vec; - CollatorSignature: CollatorSignature; - 'Option': Option; - 'Vec': Vec; - DoubleVoteReport: DoubleVoteReport; - 'Option': Option; - 'Vec': Vec; - DownwardMessage: DownwardMessage; - 'Option': Option; - 'Vec': Vec; - GlobalValidationSchedule: GlobalValidationSchedule; - 'Option': Option; - 'Vec': Vec; - HeadData: HeadData; - 'Option': Option; - 'Vec': Vec; - IncomingParachain: IncomingParachain; - 'Option': Option; - 'Vec': Vec; - IncomingParachainFixed: IncomingParachainFixed; - 'Option': Option; - 'Vec': Vec; - IncomingParachainDeploy: IncomingParachainDeploy; - 'Option': Option; - 'Vec': Vec; - LeasePeriod: LeasePeriod; - 'Option': Option; - 'Vec': Vec; - LeasePeriodOf: LeasePeriodOf; - 'Option': Option; - 'Vec': Vec; - LocalValidationData: LocalValidationData; - 'Option': Option; - 'Vec': Vec; - NewBidder: NewBidder; - 'Option': Option; - 'Vec': Vec; - ParachainDispatchOrigin: ParachainDispatchOrigin; - 'Option': Option; - 'Vec': Vec; - ParaId: ParaId; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - ParaInfo: ParaInfo; - 'Option': Option; - 'Vec': Vec; - ParaPastCodeMeta: ParaPastCodeMeta; - 'Option': Option; - 'Vec': Vec; - ParaScheduling: ParaScheduling; - 'Option': Option; - 'Vec': Vec; - Remark: Remark; - 'Option': Option; - 'Vec': Vec; - Retriable: Retriable; - 'Option': Option; - 'Vec': Vec; - Scheduling: Scheduling; - 'Option': Option; - 'Vec': Vec; - SigningContext: SigningContext; - 'Option': Option; - 'Vec': Vec; - SlotRange: SlotRange; - 'Option': Option; - 'Vec': Vec; - Statement: Statement; - 'Option': Option; - 'Vec': Vec; - SubId: SubId; - 'Compact': Compact; - 'Option': Option; - 'Vec': Vec; - UpwardMessage: UpwardMessage; - 'Option': Option; - 'Vec': Vec; - ValidationCode: ValidationCode; - 'Option': Option; - 'Vec': Vec; - ValidatorSignature: ValidatorSignature; - 'Option': Option; - 'Vec': Vec; - ValidityAttestation: ValidityAttestation; - 'Option': Option; - 'Vec': Vec; - WinningData: WinningData; - 'Option': Option; - 'Vec': Vec; - WinningDataEntry: WinningDataEntry; - 'Option': Option; - 'Vec': Vec; - Approvals: Approvals; - 'Option': Option; - 'Vec': Vec; - AccountStatus: AccountStatus; - 'Option': Option; - 'Vec': Vec; - AccountValidity: AccountValidity; - 'Option': Option; - 'Vec': Vec; - CallMetadataV0: CallMetadataV0; - 'Option': Option; - 'Vec': Vec; - EventMetadataV0: EventMetadataV0; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV0: FunctionArgumentMetadataV0; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV0: FunctionMetadataV0; - 'Option': Option; - 'Vec': Vec; - MapTypeV0: MapTypeV0; - 'Option': Option; - 'Vec': Vec; - MetadataV0: MetadataV0; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV0: ModuleMetadataV0; - 'Option': Option; - 'Vec': Vec; - OuterDispatchCallV0: OuterDispatchCallV0; - 'Option': Option; - 'Vec': Vec; - OuterDispatchMetadataV0: OuterDispatchMetadataV0; - 'Option': Option; - 'Vec': Vec; - OuterEventEventMetadataEventsV0: OuterEventEventMetadataEventsV0; - 'Option': Option; - 'Vec': Vec; - OuterEventEventMetadataV0: OuterEventEventMetadataV0; - 'Option': Option; - 'Vec': Vec; - OuterEventMetadataV0: OuterEventMetadataV0; - 'Option': Option; - 'Vec': Vec; - PlainTypeV0: PlainTypeV0; - 'Option': Option; - 'Vec': Vec; - RuntimeModuleMetadataV0: RuntimeModuleMetadataV0; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV0: StorageFunctionMetadataV0; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV0: StorageFunctionModifierV0; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV0: StorageFunctionTypeV0; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV0: StorageMetadataV0; - 'Option': Option; - 'Vec': Vec; - EventMetadataV1: EventMetadataV1; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV1: FunctionArgumentMetadataV1; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV1: FunctionMetadataV1; - 'Option': Option; - 'Vec': Vec; - MetadataV1: MetadataV1; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV1: ModuleMetadataV1; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV1: StorageFunctionMetadataV1; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV1: StorageFunctionModifierV1; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV1: StorageFunctionTypeV1; - 'Option': Option; - 'Vec': Vec; - EventMetadataV2: EventMetadataV2; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV2: FunctionArgumentMetadataV2; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV2: FunctionMetadataV2; - 'Option': Option; - 'Vec': Vec; - MapTypeV2: MapTypeV2; - 'Option': Option; - 'Vec': Vec; - MetadataV2: MetadataV2; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV2: ModuleMetadataV2; - 'Option': Option; - 'Vec': Vec; - PlainTypeV2: PlainTypeV2; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV2: StorageFunctionMetadataV2; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV2: StorageFunctionModifierV2; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV2: StorageFunctionTypeV2; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV3: DoubleMapTypeV3; - 'Option': Option; - 'Vec': Vec; - EventMetadataV3: EventMetadataV3; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV3: FunctionArgumentMetadataV3; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV3: FunctionMetadataV3; - 'Option': Option; - 'Vec': Vec; - MapTypeV3: MapTypeV3; - 'Option': Option; - 'Vec': Vec; - MetadataV3: MetadataV3; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV3: ModuleMetadataV3; - 'Option': Option; - 'Vec': Vec; - PlainTypeV3: PlainTypeV3; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV3: StorageFunctionMetadataV3; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV3: StorageFunctionModifierV3; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV3: StorageFunctionTypeV3; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV4: DoubleMapTypeV4; - 'Option': Option; - 'Vec': Vec; - EventMetadataV4: EventMetadataV4; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV4: FunctionArgumentMetadataV4; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV4: FunctionMetadataV4; - 'Option': Option; - 'Vec': Vec; - MapTypeV4: MapTypeV4; - 'Option': Option; - 'Vec': Vec; - MetadataV4: MetadataV4; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV4: ModuleMetadataV4; - 'Option': Option; - 'Vec': Vec; - PlainTypeV4: PlainTypeV4; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV4: StorageFunctionMetadataV4; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV4: StorageFunctionModifierV4; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV4: StorageFunctionTypeV4; - 'Option': Option; - 'Vec': Vec; - StorageHasherV4: StorageHasherV4; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV5: DoubleMapTypeV5; - 'Option': Option; - 'Vec': Vec; - EventMetadataV5: EventMetadataV5; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV5: FunctionArgumentMetadataV5; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV5: FunctionMetadataV5; - 'Option': Option; - 'Vec': Vec; - MapTypeV5: MapTypeV5; - 'Option': Option; - 'Vec': Vec; - MetadataV5: MetadataV5; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV5: ModuleMetadataV5; - 'Option': Option; - 'Vec': Vec; - PlainTypeV5: PlainTypeV5; - 'Option': Option; - 'Vec': Vec; - StorageFunctionMetadataV5: StorageFunctionMetadataV5; - 'Option': Option; - 'Vec': Vec; - StorageFunctionModifierV5: StorageFunctionModifierV5; - 'Option': Option; - 'Vec': Vec; - StorageFunctionTypeV5: StorageFunctionTypeV5; - 'Option': Option; - 'Vec': Vec; - StorageHasherV5: StorageHasherV5; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV6: DoubleMapTypeV6; - 'Option': Option; - 'Vec': Vec; - EventMetadataV6: EventMetadataV6; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV6: FunctionArgumentMetadataV6; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV6: FunctionMetadataV6; - 'Option': Option; - 'Vec': Vec; - MapTypeV6: MapTypeV6; - 'Option': Option; - 'Vec': Vec; - MetadataV6: MetadataV6; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV6: ModuleConstantMetadataV6; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV6: ModuleMetadataV6; - 'Option': Option; - 'Vec': Vec; - PlainTypeV6: PlainTypeV6; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV6: StorageEntryModifierV6; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV6: StorageEntryMetadataV6; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV6: StorageEntryTypeV6; - 'Option': Option; - 'Vec': Vec; - StorageHasherV6: StorageHasherV6; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV7: DoubleMapTypeV7; - 'Option': Option; - 'Vec': Vec; - EventMetadataV7: EventMetadataV7; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV7: FunctionArgumentMetadataV7; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV7: FunctionMetadataV7; - 'Option': Option; - 'Vec': Vec; - MapTypeV7: MapTypeV7; - 'Option': Option; - 'Vec': Vec; - MetadataV7: MetadataV7; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV7: ModuleConstantMetadataV7; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV7: ModuleMetadataV7; - 'Option': Option; - 'Vec': Vec; - PlainTypeV7: PlainTypeV7; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV7: StorageEntryModifierV7; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV7: StorageEntryMetadataV7; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV7: StorageEntryTypeV7; - 'Option': Option; - 'Vec': Vec; - StorageHasherV7: StorageHasherV7; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV7: StorageMetadataV7; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV8: DoubleMapTypeV8; - 'Option': Option; - 'Vec': Vec; - ErrorMetadataV8: ErrorMetadataV8; - 'Option': Option; - 'Vec': Vec; - EventMetadataV8: EventMetadataV8; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV8: FunctionArgumentMetadataV8; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV8: FunctionMetadataV8; - 'Option': Option; - 'Vec': Vec; - MapTypeV8: MapTypeV8; - 'Option': Option; - 'Vec': Vec; - MetadataV8: MetadataV8; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV8: ModuleConstantMetadataV8; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV8: ModuleMetadataV8; - 'Option': Option; - 'Vec': Vec; - PlainTypeV8: PlainTypeV8; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV8: StorageEntryModifierV8; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV8: StorageEntryMetadataV8; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV8: StorageEntryTypeV8; - 'Option': Option; - 'Vec': Vec; - StorageHasherV8: StorageHasherV8; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV8: StorageMetadataV8; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV9: DoubleMapTypeV9; - 'Option': Option; - 'Vec': Vec; - ErrorMetadataV9: ErrorMetadataV9; - 'Option': Option; - 'Vec': Vec; - EventMetadataV9: EventMetadataV9; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV9: FunctionArgumentMetadataV9; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV9: FunctionMetadataV9; - 'Option': Option; - 'Vec': Vec; - MapTypeV9: MapTypeV9; - 'Option': Option; - 'Vec': Vec; - MetadataV9: MetadataV9; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV9: ModuleConstantMetadataV9; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV9: ModuleMetadataV9; - 'Option': Option; - 'Vec': Vec; - PlainTypeV9: PlainTypeV9; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV9: StorageEntryModifierV9; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV9: StorageEntryMetadataV9; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV9: StorageEntryTypeV9; - 'Option': Option; - 'Vec': Vec; - StorageHasherV9: StorageHasherV9; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV9: StorageMetadataV9; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV10: DoubleMapTypeV10; - 'Option': Option; - 'Vec': Vec; - ErrorMetadataV10: ErrorMetadataV10; - 'Option': Option; - 'Vec': Vec; - EventMetadataV10: EventMetadataV10; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV10: FunctionArgumentMetadataV10; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV10: FunctionMetadataV10; - 'Option': Option; - 'Vec': Vec; - MapTypeV10: MapTypeV10; - 'Option': Option; - 'Vec': Vec; - MetadataV10: MetadataV10; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV10: ModuleConstantMetadataV10; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV10: ModuleMetadataV10; - 'Option': Option; - 'Vec': Vec; - PlainTypeV10: PlainTypeV10; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV10: StorageEntryModifierV10; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV10: StorageEntryMetadataV10; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV10: StorageEntryTypeV10; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV10: StorageMetadataV10; - 'Option': Option; - 'Vec': Vec; - StorageHasherV10: StorageHasherV10; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeV11: DoubleMapTypeV11; - 'Option': Option; - 'Vec': Vec; - ErrorMetadataV11: ErrorMetadataV11; - 'Option': Option; - 'Vec': Vec; - EventMetadataV11: EventMetadataV11; - 'Option': Option; - 'Vec': Vec; - ExtrinsicMetadataV11: ExtrinsicMetadataV11; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataV11: FunctionArgumentMetadataV11; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataV11: FunctionMetadataV11; - 'Option': Option; - 'Vec': Vec; - MapTypeV11: MapTypeV11; - 'Option': Option; - 'Vec': Vec; - MetadataV11: MetadataV11; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataV11: ModuleConstantMetadataV11; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataV11: ModuleMetadataV11; - 'Option': Option; - 'Vec': Vec; - PlainTypeV11: PlainTypeV11; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierV11: StorageEntryModifierV11; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataV11: StorageEntryMetadataV11; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeV11: StorageEntryTypeV11; - 'Option': Option; - 'Vec': Vec; - StorageMetadataV11: StorageMetadataV11; - 'Option': Option; - 'Vec': Vec; - StorageHasherV11: StorageHasherV11; - 'Option': Option; - 'Vec': Vec; - DoubleMapTypeLatest: DoubleMapTypeLatest; - 'Option': Option; - 'Vec': Vec; - EventMetadataLatest: EventMetadataLatest; - 'Option': Option; - 'Vec': Vec; - ExtrinsicMetadataLatest: ExtrinsicMetadataLatest; - 'Option': Option; - 'Vec': Vec; - FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest; - 'Option': Option; - 'Vec': Vec; - FunctionMetadataLatest: FunctionMetadataLatest; - 'Option': Option; - 'Vec': Vec; - MapTypeLatest: MapTypeLatest; - 'Option': Option; - 'Vec': Vec; - MetadataLatest: MetadataLatest; - 'Option': Option; - 'Vec': Vec; - ModuleConstantMetadataLatest: ModuleConstantMetadataLatest; - 'Option': Option; - 'Vec': Vec; - ModuleMetadataLatest: ModuleMetadataLatest; - 'Option': Option; - 'Vec': Vec; - PlainTypeLatest: PlainTypeLatest; - 'Option': Option; - 'Vec': Vec; - StorageEntryMetadataLatest: StorageEntryMetadataLatest; - 'Option': Option; - 'Vec': Vec; - StorageEntryModifierLatest: StorageEntryModifierLatest; - 'Option': Option; - 'Vec': Vec; - StorageEntryTypeLatest: StorageEntryTypeLatest; - 'Option': Option; - 'Vec': Vec; - StorageMetadataLatest: StorageMetadataLatest; - 'Option': Option; - 'Vec': Vec; - StorageHasher: StorageHasher; - 'Option': Option; - 'Vec': Vec; - MetadataAll: MetadataAll; - 'Option': Option; - 'Vec': Vec; - RpcMethods: RpcMethods; - 'Option': Option; - 'Vec': Vec; - ExtrinsicOrHash: ExtrinsicOrHash; - 'Option': Option; - 'Vec': Vec; - ExtrinsicStatus: ExtrinsicStatus; - 'Option': Option; - 'Vec': Vec; - BlockHash: BlockHash; - 'Option': Option; - 'Vec': Vec; - PrefixedStorageKey: PrefixedStorageKey; - 'Option': Option; - 'Vec': Vec; - StorageKind: StorageKind; - 'Option': Option; - 'Vec': Vec; - RuntimeDispatchInfo: RuntimeDispatchInfo; - 'Option': Option; - 'Vec': Vec; - ApiId: ApiId; - 'Option': Option; - 'Vec': Vec; - KeyValueOption: KeyValueOption; - 'Option': Option; - 'Vec': Vec; - ReadProof: ReadProof; - 'Option': Option; - 'Vec': Vec; - RuntimeVersionApi: RuntimeVersionApi; - 'Option': Option; - 'Vec': Vec; - RuntimeVersion: RuntimeVersion; - 'Option': Option; - 'Vec': Vec; - StorageChangeSet: StorageChangeSet; - 'Option': Option; - 'Vec': Vec; /** CUSTOMTYPES **/ "Credential": Credential; "Option": Option; @@ -2009,9 +205,6 @@ declare module '@polkadot/types/types/registry' { "BalanceOfMint": Balance; "Option": Option; "Vec": Vec; - "minting::BalanceOf": Balance; - "Option": Option; - "Vec": Vec; "NextAdjustment": NextAdjustment; "Option": Option; "Vec": Vec; @@ -2090,6 +283,9 @@ declare module '@polkadot/types/types/registry' { "ApplicationDeactivationCause": ApplicationDeactivationCause; "Option": Option; "Vec": Vec; + "StakingAmountLimitMode": StakingAmountLimitMode; + "Option": Option; + "Vec": Vec; "ClassId": u64; "Option": Option; "Vec": Vec; @@ -2150,6 +346,9 @@ declare module '@polkadot/types/types/registry' { "ParametrizedPropertyValue": ParametrizedPropertyValue; "Option": Option; "Vec": Vec; + "PropertyOfClass": PropertyOfClass; + "Option": Option; + "Vec": Vec; "ChannelId": u64; "Option": Option; "Vec": Vec; @@ -2225,6 +424,9 @@ declare module '@polkadot/types/types/registry' { "CuratorExitInitiationOrigin": CuratorExitInitiationOrigin; "Option": Option; "Vec": Vec; + "LeadRoleState": LeadRoleState; + "Option": Option; + "Vec": Vec; "ExitedLeadRole": ExitedLeadRole; "Option": Option; "Vec": Vec; @@ -2264,12 +466,6 @@ declare module '@polkadot/types/types/registry' { "RewardPolicy": RewardPolicy; "Option": Option; "Vec": Vec; - "working_group::OpeningId": working_group__OpeningId; - "Option": Option; - "Vec": Vec; - "working_group::WorkerId": working_group__WorkerId; - "Option": Option; - "Vec": Vec; "WorkingGroupOpeningPolicyCommitment": WorkingGroupOpeningPolicyCommitment; "Option": Option; "Vec": Vec; @@ -2354,15 +550,1825 @@ declare module '@polkadot/types/types/registry' { "ActiveStake": ActiveStake; "Option": Option; "Vec": Vec; - "FinalizationData": FinalizationData; - "Option": Option; - "Vec": Vec; + "Finalized": Finalized; + "Option": Option; + "Vec": Vec; "ProposalDecisionStatus": ProposalDecisionStatus; "Option": Option; "Vec": Vec; "ExecutionFailed": ExecutionFailed; "Option": Option; "Vec": Vec; + "Approved": Approved; + "Option": Option; + "Vec": Vec; + "SetLeadParams": SetLeadParams; + "Option": Option; + "Vec": Vec; /** /CUSTOMTYPES **/ + BitVec: BitVec; + 'Option': Option; + 'Vec': Vec; + bool: bool; + 'Option': Option; + 'Vec': Vec; + Bytes: Bytes; + 'Option': Option; + 'Vec': Vec; + Data: Data; + 'Option': Option; + 'Vec': Vec; + DoNotConstruct: DoNotConstruct; + 'Option': Option; + 'Vec': Vec; + i8: i8; + 'Option': Option; + 'Vec': Vec; + i16: i16; + 'Option': Option; + 'Vec': Vec; + i32: i32; + 'Option': Option; + 'Vec': Vec; + i64: i64; + 'Option': Option; + 'Vec': Vec; + i128: i128; + 'Option': Option; + 'Vec': Vec; + i256: i256; + 'Option': Option; + 'Vec': Vec; + Null: Null; + 'Option': Option; + 'Vec': Vec; + StorageKey: StorageKey; + 'Option': Option; + 'Vec': Vec; + Text: Text; + 'Option': Option; + 'Vec': Vec; + Type: Type; + 'Option': Option; + 'Vec': Vec; + u8: u8; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u16: u16; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u32: u32; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u64: u64; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u128: u128; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u256: u256; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + U256: U256; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + usize: usize; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Raw: Raw; + 'Option': Option; + 'Vec': Vec; + AccountId: AccountId; + 'Option': Option; + 'Vec': Vec; + AccountIdOf: AccountIdOf; + 'Option': Option; + 'Vec': Vec; + AccountIndex: AccountIndex; + 'Option': Option; + 'Vec': Vec; + Address: Address; + 'Option
': Option
; + 'Vec
': Vec
; + AssetId: AssetId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Balance: Balance; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BalanceOf: BalanceOf; + 'Option': Option; + 'Vec': Vec; + Block: Block; + 'Option': Option; + 'Vec': Vec; + BlockNumber: BlockNumber; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Call: Call; + 'Option': Option; + 'Vec': Vec; + ChangesTrieConfiguration: ChangesTrieConfiguration; + 'Option': Option; + 'Vec': Vec; + ConsensusEngineId: ConsensusEngineId; + 'Option': Option; + 'Vec': Vec; + Digest: Digest; + 'Option': Option; + 'Vec': Vec; + DigestItem: DigestItem; + 'Option': Option; + 'Vec': Vec; + ExtrinsicsWeight: ExtrinsicsWeight; + 'Option': Option; + 'Vec': Vec; + Fixed64: Fixed64; + 'Option': Option; + 'Vec': Vec; + Fixed128: Fixed128; + 'Option': Option; + 'Vec': Vec; + H160: H160; + 'Option': Option; + 'Vec': Vec; + H256: H256; + 'Option': Option; + 'Vec': Vec; + H512: H512; + 'Option': Option; + 'Vec': Vec; + Hash: Hash; + 'Option': Option; + 'Vec': Vec; + Header: Header; + 'Option
': Option
; + 'Vec
': Vec
; + Index: Index; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Justification: Justification; + 'Option': Option; + 'Vec': Vec; + KeyValue: KeyValue; + 'Option': Option; + 'Vec': Vec; + KeyTypeId: KeyTypeId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + LockIdentifier: LockIdentifier; + 'Option': Option; + 'Vec': Vec; + LookupSource: LookupSource; + 'Option': Option; + 'Vec': Vec; + LookupTarget: LookupTarget; + 'Option': Option; + 'Vec': Vec; + ModuleId: ModuleId; + 'Option': Option; + 'Vec': Vec; + Moment: Moment; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OpaqueCall: OpaqueCall; + 'Option': Option; + 'Vec': Vec; + Origin: Origin; + 'Option': Option; + 'Vec': Vec; + Pays: Pays; + 'Option': Option; + 'Vec': Vec; + Perbill: Perbill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Percent: Percent; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Permill: Permill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Perquintill: Perquintill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Phantom: Phantom; + 'Option': Option; + 'Vec': Vec; + PhantomData: PhantomData; + 'Option': Option; + 'Vec': Vec; + ProxyType: ProxyType; + 'Option': Option; + 'Vec': Vec; + Releases: Releases; + 'Option': Option; + 'Vec': Vec; + RuntimeDbWeight: RuntimeDbWeight; + 'Option': Option; + 'Vec': Vec; + SignedBlock: SignedBlock; + 'Option': Option; + 'Vec': Vec; + StorageData: StorageData; + 'Option': Option; + 'Vec': Vec; + ValidatorId: ValidatorId; + 'Option': Option; + 'Vec': Vec; + Weight: Weight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + WeightMultiplier: WeightMultiplier; + 'Option': Option; + 'Vec': Vec; + PreRuntime: PreRuntime; + 'Option': Option; + 'Vec': Vec; + SealV0: SealV0; + 'Option': Option; + 'Vec': Vec; + Seal: Seal; + 'Option': Option; + 'Vec': Vec; + Consensus: Consensus; + 'Option': Option; + 'Vec': Vec; + UncleEntryItem: UncleEntryItem; + 'Option': Option; + 'Vec': Vec; + RawAuraPreDigest: RawAuraPreDigest; + 'Option': Option; + 'Vec': Vec; + AllowedSlots: AllowedSlots; + 'Option': Option; + 'Vec': Vec; + BabeAuthorityWeight: BabeAuthorityWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BabeBlockWeight: BabeBlockWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BabeEquivocationProof: BabeEquivocationProof; + 'Option': Option; + 'Vec': Vec; + BabeWeight: BabeWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + MaybeRandomness: MaybeRandomness; + 'Option': Option; + 'Vec': Vec; + MaybeVrf: MaybeVrf; + 'Option': Option; + 'Vec': Vec; + EpochAuthorship: EpochAuthorship; + 'Option': Option; + 'Vec': Vec; + NextConfigDescriptor: NextConfigDescriptor; + 'Option': Option; + 'Vec': Vec; + NextConfigDescriptorV1: NextConfigDescriptorV1; + 'Option': Option; + 'Vec': Vec; + Randomness: Randomness; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigest: RawBabePreDigest; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestPrimary: RawBabePreDigestPrimary; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestTo159: RawBabePreDigestTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestCompat: RawBabePreDigestCompat; + 'Option': Option; + 'Vec': Vec; + SlotNumber: SlotNumber; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VrfData: VrfData; + 'Option': Option; + 'Vec': Vec; + VrfOutput: VrfOutput; + 'Option': Option; + 'Vec': Vec; + VrfProof: VrfProof; + 'Option': Option; + 'Vec': Vec; + AccountData: AccountData; + 'Option': Option; + 'Vec': Vec; + BalanceLockTo212: BalanceLockTo212; + 'Option': Option; + 'Vec': Vec; + BalanceLock: BalanceLock; + 'Option': Option; + 'Vec': Vec; + BalanceStatus: BalanceStatus; + 'Option': Option; + 'Vec': Vec; + Reasons: Reasons; + 'Option': Option; + 'Vec': Vec; + VestingSchedule: VestingSchedule; + 'Option': Option; + 'Vec': Vec; + WithdrawReasons: WithdrawReasons; + 'Option': Option; + 'Vec': Vec; + MemberCount: MemberCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ProposalIndex: ProposalIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VotesTo230: VotesTo230; + 'Option': Option; + 'Vec': Vec; + Votes: Votes; + 'Option': Option; + 'Vec': Vec; + AuthorityId: AuthorityId; + 'Option': Option; + 'Vec': Vec; + RawVRFOutput: RawVRFOutput; + 'Option': Option; + 'Vec': Vec; + AliveContractInfo: AliveContractInfo; + 'Option': Option; + 'Vec': Vec; + CodeHash: CodeHash; + 'Option': Option; + 'Vec': Vec; + ContractCallRequest: ContractCallRequest; + 'Option': Option; + 'Vec': Vec; + ContractExecResultSuccessTo255: ContractExecResultSuccessTo255; + 'Option': Option; + 'Vec': Vec; + ContractExecResultTo255: ContractExecResultTo255; + 'Option': Option; + 'Vec': Vec; + ContractExecResultSuccess: ContractExecResultSuccess; + 'Option': Option; + 'Vec': Vec; + ContractExecResult: ContractExecResult; + 'Option': Option; + 'Vec': Vec; + ContractInfo: ContractInfo; + 'Option': Option; + 'Vec': Vec; + ContractStorageKey: ContractStorageKey; + 'Option': Option; + 'Vec': Vec; + Gas: Gas; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PrefabWasmModule: PrefabWasmModule; + 'Option': Option; + 'Vec': Vec; + PrefabWasmModuleReserved: PrefabWasmModuleReserved; + 'Option': Option; + 'Vec': Vec; + ScheduleTo212: ScheduleTo212; + 'Option': Option; + 'Vec': Vec; + Schedule: Schedule; + 'Option': Option; + 'Vec': Vec; + SeedOf: SeedOf; + 'Option': Option; + 'Vec': Vec; + TombstoneContractInfo: TombstoneContractInfo; + 'Option': Option; + 'Vec': Vec; + TrieId: TrieId; + 'Option': Option; + 'Vec': Vec; + AccountVote: AccountVote; + 'Option': Option; + 'Vec': Vec; + AccountVoteSplit: AccountVoteSplit; + 'Option': Option; + 'Vec': Vec; + AccountVoteStandard: AccountVoteStandard; + 'Option': Option; + 'Vec': Vec; + Conviction: Conviction; + 'Option': Option; + 'Vec': Vec; + Delegations: Delegations; + 'Option': Option; + 'Vec': Vec; + PreimageStatus: PreimageStatus; + 'Option': Option; + 'Vec': Vec; + PreimageStatusAvailable: PreimageStatusAvailable; + 'Option': Option; + 'Vec': Vec; + PriorLock: PriorLock; + 'Option': Option; + 'Vec': Vec; + PropIndex: PropIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Proposal: Proposal; + 'Option': Option; + 'Vec': Vec; + ProxyState: ProxyState; + 'Option': Option; + 'Vec': Vec; + ReferendumIndex: ReferendumIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ReferendumInfoTo239: ReferendumInfoTo239; + 'Option': Option; + 'Vec': Vec; + ReferendumInfo: ReferendumInfo; + 'Option': Option; + 'Vec': Vec; + ReferendumInfoFinished: ReferendumInfoFinished; + 'Option': Option; + 'Vec': Vec; + ReferendumStatus: ReferendumStatus; + 'Option': Option; + 'Vec': Vec; + Tally: Tally; + 'Option': Option; + 'Vec': Vec; + Voting: Voting; + 'Option': Option; + 'Vec': Vec; + VotingDirect: VotingDirect; + 'Option': Option; + 'Vec': Vec; + VotingDirectVote: VotingDirectVote; + 'Option': Option; + 'Vec': Vec; + VotingDelegating: VotingDelegating; + 'Option': Option; + 'Vec': Vec; + ApprovalFlag: ApprovalFlag; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + DefunctVoter: DefunctVoter; + 'Option': Option; + 'Vec': Vec; + Renouncing: Renouncing; + 'Option': Option; + 'Vec': Vec; + SetIndex: SetIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Vote: Vote; + 'Option': Option; + 'Vec': Vec; + VoteIndex: VoteIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VoterInfo: VoterInfo; + 'Option': Option; + 'Vec': Vec; + VoteThreshold: VoteThreshold; + 'Option': Option; + 'Vec': Vec; + CreatedBlock: CreatedBlock; + 'Option': Option; + 'Vec': Vec; + ImportedAux: ImportedAux; + 'Option': Option; + 'Vec': Vec; + Account: Account; + 'Option': Option; + 'Vec': Vec; + Log: Log; + 'Option': Option; + 'Vec': Vec; + Vicinity: Vicinity; + 'Option': Option; + 'Vec': Vec; + Extrinsic: Extrinsic; + 'Option': Option; + 'Vec': Vec; + ExtrinsicEra: ExtrinsicEra; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayload: ExtrinsicPayload; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV1: ExtrinsicV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV1: ExtrinsicPayloadV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV1: ExtrinsicSignatureV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV2: ExtrinsicV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV2: ExtrinsicPayloadV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV2: ExtrinsicSignatureV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV3: ExtrinsicV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV3: ExtrinsicPayloadV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV3: ExtrinsicSignatureV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV4: ExtrinsicV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV4: ExtrinsicPayloadV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV4: ExtrinsicSignatureV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicUnknown: ExtrinsicUnknown; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown; + 'Option': Option; + 'Vec': Vec; + ImmortalEra: ImmortalEra; + 'Option': Option; + 'Vec': Vec; + MortalEra: MortalEra; + 'Option': Option; + 'Vec': Vec; + MultiSignature: MultiSignature; + 'Option': Option; + 'Vec': Vec; + Signature: Signature; + 'Option': Option; + 'Vec': Vec; + SignerPayload: SignerPayload; + 'Option': Option; + 'Vec': Vec; + EcdsaSignature: EcdsaSignature; + 'Option': Option; + 'Vec': Vec; + Ed25519Signature: Ed25519Signature; + 'Option': Option; + 'Vec': Vec; + Sr25519Signature: Sr25519Signature; + 'Option': Option; + 'Vec': Vec; + AssetOptions: AssetOptions; + 'Option': Option; + 'Vec': Vec; + Owner: Owner; + 'Option': Option; + 'Vec': Vec; + PermissionsV1: PermissionsV1; + 'Option': Option; + 'Vec': Vec; + PermissionVersions: PermissionVersions; + 'Option': Option; + 'Vec': Vec; + PermissionLatest: PermissionLatest; + 'Option': Option; + 'Vec': Vec; + AuthorityIndex: AuthorityIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + AuthorityList: AuthorityList; + 'Option': Option; + 'Vec': Vec; + AuthorityWeight: AuthorityWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocation: GrandpaEquivocation; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocationProof: GrandpaEquivocationProof; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocationValue: GrandpaEquivocationValue; + 'Option': Option; + 'Vec': Vec; + GrandpaPrevote: GrandpaPrevote; + 'Option': Option; + 'Vec': Vec; + KeyOwnerProof: KeyOwnerProof; + 'Option': Option; + 'Vec': Vec; + NextAuthority: NextAuthority; + 'Option': Option; + 'Vec': Vec; + PendingPause: PendingPause; + 'Option': Option; + 'Vec': Vec; + PendingResume: PendingResume; + 'Option': Option; + 'Vec': Vec; + Precommits: Precommits; + 'Option': Option; + 'Vec': Vec; + Prevotes: Prevotes; + 'Option': Option; + 'Vec': Vec; + ReportedRoundStates: ReportedRoundStates; + 'Option': Option; + 'Vec': Vec; + RoundState: RoundState; + 'Option': Option; + 'Vec': Vec; + SetId: SetId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + StoredPendingChange: StoredPendingChange; + 'Option': Option; + 'Vec': Vec; + StoredState: StoredState; + 'Option': Option; + 'Vec': Vec; + IdentityFields: IdentityFields; + 'Option': Option; + 'Vec': Vec; + IdentityInfoAdditional: IdentityInfoAdditional; + 'Option': Option; + 'Vec': Vec; + IdentityInfo: IdentityInfo; + 'Option': Option; + 'Vec': Vec; + IdentityJudgement: IdentityJudgement; + 'Option': Option; + 'Vec': Vec; + RegistrationJudgement: RegistrationJudgement; + 'Option': Option; + 'Vec': Vec; + Registration: Registration; + 'Option': Option; + 'Vec': Vec; + RegistrarIndex: RegistrarIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + RegistrarInfo: RegistrarInfo; + 'Option': Option; + 'Vec': Vec; + AuthIndex: AuthIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + AuthoritySignature: AuthoritySignature; + 'Option': Option; + 'Vec': Vec; + Heartbeat: Heartbeat; + 'Option': Option; + 'Vec': Vec; + HeartbeatTo244: HeartbeatTo244; + 'Option': Option; + 'Vec': Vec; + OpaqueMultiaddr: OpaqueMultiaddr; + 'Option': Option; + 'Vec': Vec; + OpaquePeerId: OpaquePeerId; + 'Option': Option; + 'Vec': Vec; + OpaqueNetworkState: OpaqueNetworkState; + 'Option': Option; + 'Vec': Vec; + DeferredOffenceOf: DeferredOffenceOf; + 'Option': Option; + 'Vec': Vec; + Kind: Kind; + 'Option': Option; + 'Vec': Vec; + OffenceDetails: OffenceDetails; + 'Option': Option; + 'Vec': Vec; + Offender: Offender; + 'Option': Option; + 'Vec': Vec; + OpaqueTimeSlot: OpaqueTimeSlot; + 'Option': Option; + 'Vec': Vec; + ReportIdOf: ReportIdOf; + 'Option': Option; + 'Vec': Vec; + Reporter: Reporter; + 'Option': Option; + 'Vec': Vec; + ActiveRecovery: ActiveRecovery; + 'Option': Option; + 'Vec': Vec; + RecoveryConfig: RecoveryConfig; + 'Option': Option; + 'Vec': Vec; + Period: Period; + 'Option': Option; + 'Vec': Vec; + Priority: Priority; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SchedulePeriod: SchedulePeriod; + 'Option': Option; + 'Vec': Vec; + SchedulePriority: SchedulePriority; + 'Option': Option; + 'Vec': Vec; + Scheduled: Scheduled; + 'Option': Option; + 'Vec': Vec; + TaskAddress: TaskAddress; + 'Option': Option; + 'Vec': Vec; + Keys: Keys; + 'Option': Option; + 'Vec': Vec; + SessionKeys1: SessionKeys1; + 'Option': Option; + 'Vec': Vec; + SessionKeys2: SessionKeys2; + 'Option': Option; + 'Vec': Vec; + SessionKeys3: SessionKeys3; + 'Option': Option; + 'Vec': Vec; + SessionKeys4: SessionKeys4; + 'Option': Option; + 'Vec': Vec; + SessionKeys5: SessionKeys5; + 'Option': Option; + 'Vec': Vec; + SessionKeys6: SessionKeys6; + 'Option': Option; + 'Vec': Vec; + FullIdentification: FullIdentification; + 'Option': Option; + 'Vec': Vec; + IdentificationTuple: IdentificationTuple; + 'Option': Option; + 'Vec': Vec; + MembershipProof: MembershipProof; + 'Option': Option; + 'Vec': Vec; + SessionIndex: SessionIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ValidatorCount: ValidatorCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Bid: Bid; + 'Option': Option; + 'Vec': Vec; + BidKind: BidKind; + 'Option': Option; + 'Vec': Vec; + SocietyJudgement: SocietyJudgement; + 'Option': Option; + 'Vec': Vec; + SocietyVote: SocietyVote; + 'Option': Option; + 'Vec': Vec; + StrikeCount: StrikeCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VouchingStatus: VouchingStatus; + 'Option': Option; + 'Vec': Vec; + Points: Points; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EraPoints: EraPoints; + 'Option': Option; + 'Vec': Vec; + ActiveEraInfo: ActiveEraInfo; + 'Option': Option; + 'Vec': Vec; + CompactAssignments: CompactAssignments; + 'Option': Option; + 'Vec': Vec; + CompactScore: CompactScore; + 'Option': Option; + 'Vec': Vec; + ElectionCompute: ElectionCompute; + 'Option': Option; + 'Vec': Vec; + ElectionResult: ElectionResult; + 'Option': Option; + 'Vec': Vec; + ElectionScore: ElectionScore; + 'Option': Option; + 'Vec': Vec; + ElectionSize: ElectionSize; + 'Option': Option; + 'Vec': Vec; + ElectionStatus: ElectionStatus; + 'Option': Option; + 'Vec': Vec; + EraIndex: EraIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EraRewardPoints: EraRewardPoints; + 'Option': Option; + 'Vec': Vec; + EraRewards: EraRewards; + 'Option': Option; + 'Vec': Vec; + Exposure: Exposure; + 'Option': Option; + 'Vec': Vec; + Forcing: Forcing; + 'Option': Option; + 'Vec': Vec; + IndividualExposure: IndividualExposure; + 'Option': Option; + 'Vec': Vec; + KeyType: KeyType; + 'Option': Option; + 'Vec': Vec; + MomentOf: MomentOf; + 'Option': Option; + 'Vec': Vec; + Nominations: Nominations; + 'Option': Option; + 'Vec': Vec; + NominatorIndex: NominatorIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OffchainAccuracy: OffchainAccuracy; + 'Option': Option; + 'Vec': Vec; + PerU16: PerU16; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PhragmenScore: PhragmenScore; + 'Option': Option; + 'Vec': Vec; + RewardDestination: RewardDestination; + 'Option': Option; + 'Vec': Vec; + RewardPoint: RewardPoint; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SlashJournalEntry: SlashJournalEntry; + 'Option': Option; + 'Vec': Vec; + SlashingSpansTo204: SlashingSpansTo204; + 'Option': Option; + 'Vec': Vec; + SlashingSpans: SlashingSpans; + 'Option': Option; + 'Vec': Vec; + SpanIndex: SpanIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SpanRecord: SpanRecord; + 'Option': Option; + 'Vec': Vec; + StakingLedgerTo223: StakingLedgerTo223; + 'Option': Option; + 'Vec': Vec; + StakingLedgerTo240: StakingLedgerTo240; + 'Option': Option; + 'Vec': Vec; + StakingLedger: StakingLedger; + 'Option': Option; + 'Vec': Vec; + UnappliedSlashOther: UnappliedSlashOther; + 'Option': Option; + 'Vec': Vec; + UnappliedSlash: UnappliedSlash; + 'Option': Option; + 'Vec': Vec; + UnlockChunk: UnlockChunk; + 'Option': Option; + 'Vec': Vec; + ValidatorIndex: ValidatorIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefs: ValidatorPrefs; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefsTo196: ValidatorPrefsTo196; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefsTo145: ValidatorPrefsTo145; + 'Option': Option; + 'Vec': Vec; + WeightToFeeCoefficient: WeightToFeeCoefficient; + 'Option': Option; + 'Vec': Vec; + AccountInfo: AccountInfo; + 'Option': Option; + 'Vec': Vec; + ApplyExtrinsicResult: ApplyExtrinsicResult; + 'Option': Option; + 'Vec': Vec; + ChainProperties: ChainProperties; + 'Option': Option; + 'Vec': Vec; + ChainType: ChainType; + 'Option': Option; + 'Vec': Vec; + DigestOf: DigestOf; + 'Option': Option; + 'Vec': Vec; + DispatchClass: DispatchClass; + 'Option': Option; + 'Vec': Vec; + DispatchError: DispatchError; + 'Option': Option; + 'Vec': Vec; + DispatchErrorModule: DispatchErrorModule; + 'Option': Option; + 'Vec': Vec; + DispatchErrorTo198: DispatchErrorTo198; + 'Option': Option; + 'Vec': Vec; + DispatchInfo: DispatchInfo; + 'Option': Option; + 'Vec': Vec; + DispatchInfoTo190: DispatchInfoTo190; + 'Option': Option; + 'Vec': Vec; + DispatchInfoTo244: DispatchInfoTo244; + 'Option': Option; + 'Vec': Vec; + DispatchOutcome: DispatchOutcome; + 'Option': Option; + 'Vec': Vec; + DispatchResult: DispatchResult; + 'Option': Option; + 'Vec': Vec; + DispatchResultOf: DispatchResultOf; + 'Option': Option; + 'Vec': Vec; + DispatchResultTo198: DispatchResultTo198; + 'Option': Option; + 'Vec': Vec; + Event: Event; + 'Option': Option; + 'Vec': Vec; + EventId: EventId; + 'Option': Option; + 'Vec': Vec; + EventIndex: EventIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EventRecord: EventRecord; + 'Option': Option; + 'Vec': Vec; + EventRecordTo76: EventRecordTo76; + 'Option': Option; + 'Vec': Vec; + Health: Health; + 'Option': Option; + 'Vec': Vec; + InvalidTransaction: InvalidTransaction; + 'Option': Option; + 'Vec': Vec; + Key: Key; + 'Option': Option; + 'Vec': Vec; + LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo; + 'Option': Option; + 'Vec': Vec; + NetworkState: NetworkState; + 'Option': Option; + 'Vec': Vec; + NetworkStatePeerset: NetworkStatePeerset; + 'Option': Option; + 'Vec': Vec; + NetworkStatePeersetInfo: NetworkStatePeersetInfo; + 'Option': Option; + 'Vec': Vec; + NodeRole: NodeRole; + 'Option': Option; + 'Vec': Vec; + NotConnectedPeer: NotConnectedPeer; + 'Option': Option; + 'Vec': Vec; + Peer: Peer; + 'Option': Option; + 'Vec': Vec; + PeerEndpoint: PeerEndpoint; + 'Option': Option; + 'Vec': Vec; + PeerEndpointAddr: PeerEndpointAddr; + 'Option': Option; + 'Vec': Vec; + PeerPing: PeerPing; + 'Option': Option; + 'Vec': Vec; + PeerInfo: PeerInfo; + 'Option': Option; + 'Vec': Vec; + Phase: Phase; + 'Option': Option; + 'Vec': Vec; + RefCount: RefCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + TransactionValidityError: TransactionValidityError; + 'Option': Option; + 'Vec': Vec; + UnknownTransaction: UnknownTransaction; + 'Option': Option; + 'Vec': Vec; + OpenTip: OpenTip; + 'Option': Option; + 'Vec': Vec; + OpenTipTo225: OpenTipTo225; + 'Option': Option; + 'Vec': Vec; + OpenTipFinderTo225: OpenTipFinderTo225; + 'Option': Option; + 'Vec': Vec; + OpenTipTip: OpenTipTip; + 'Option': Option; + 'Vec': Vec; + TreasuryProposal: TreasuryProposal; + 'Option': Option; + 'Vec': Vec; + Multiplier: Multiplier; + 'Option': Option; + 'Vec': Vec; + CallHash: CallHash; + 'Option': Option; + 'Vec': Vec; + Multisig: Multisig; + 'Option': Option; + 'Vec': Vec; + Timepoint: Timepoint; + 'Option': Option; + 'Vec': Vec; + VestingInfo: VestingInfo; + 'Option': Option; + 'Vec': Vec; + BlockAttestations: BlockAttestations; + 'Option': Option; + 'Vec': Vec; + IncludedBlocks: IncludedBlocks; + 'Option': Option; + 'Vec': Vec; + MoreAttestations: MoreAttestations; + 'Option': Option; + 'Vec': Vec; + EthereumAddress: EthereumAddress; + 'Option': Option; + 'Vec': Vec; + StatementKind: StatementKind; + 'Option': Option; + 'Vec': Vec; + AbridgedCandidateReceipt: AbridgedCandidateReceipt; + 'Option': Option; + 'Vec': Vec; + AttestedCandidate: AttestedCandidate; + 'Option': Option; + 'Vec': Vec; + AuctionIndex: AuctionIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Bidder: Bidder; + 'Option': Option; + 'Vec': Vec; + CandidateCommitments: CandidateCommitments; + 'Option': Option; + 'Vec': Vec; + CandidateReceipt: CandidateReceipt; + 'Option': Option; + 'Vec': Vec; + CollatorId: CollatorId; + 'Option': Option; + 'Vec': Vec; + CollatorSignature: CollatorSignature; + 'Option': Option; + 'Vec': Vec; + DoubleVoteReport: DoubleVoteReport; + 'Option': Option; + 'Vec': Vec; + DownwardMessage: DownwardMessage; + 'Option': Option; + 'Vec': Vec; + GlobalValidationSchedule: GlobalValidationSchedule; + 'Option': Option; + 'Vec': Vec; + HeadData: HeadData; + 'Option': Option; + 'Vec': Vec; + IncomingParachain: IncomingParachain; + 'Option': Option; + 'Vec': Vec; + IncomingParachainFixed: IncomingParachainFixed; + 'Option': Option; + 'Vec': Vec; + IncomingParachainDeploy: IncomingParachainDeploy; + 'Option': Option; + 'Vec': Vec; + LeasePeriod: LeasePeriod; + 'Option': Option; + 'Vec': Vec; + LeasePeriodOf: LeasePeriodOf; + 'Option': Option; + 'Vec': Vec; + LocalValidationData: LocalValidationData; + 'Option': Option; + 'Vec': Vec; + NewBidder: NewBidder; + 'Option': Option; + 'Vec': Vec; + ParachainDispatchOrigin: ParachainDispatchOrigin; + 'Option': Option; + 'Vec': Vec; + ParaId: ParaId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ParaInfo: ParaInfo; + 'Option': Option; + 'Vec': Vec; + ParaPastCodeMeta: ParaPastCodeMeta; + 'Option': Option; + 'Vec': Vec; + ParaScheduling: ParaScheduling; + 'Option': Option; + 'Vec': Vec; + Remark: Remark; + 'Option': Option; + 'Vec': Vec; + Retriable: Retriable; + 'Option': Option; + 'Vec': Vec; + Scheduling: Scheduling; + 'Option': Option; + 'Vec': Vec; + SigningContext: SigningContext; + 'Option': Option; + 'Vec': Vec; + SlotRange: SlotRange; + 'Option': Option; + 'Vec': Vec; + Statement: Statement; + 'Option': Option; + 'Vec': Vec; + SubId: SubId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + UpwardMessage: UpwardMessage; + 'Option': Option; + 'Vec': Vec; + ValidationCode: ValidationCode; + 'Option': Option; + 'Vec': Vec; + ValidatorSignature: ValidatorSignature; + 'Option': Option; + 'Vec': Vec; + ValidityAttestation: ValidityAttestation; + 'Option': Option; + 'Vec': Vec; + WinningData: WinningData; + 'Option': Option; + 'Vec': Vec; + WinningDataEntry: WinningDataEntry; + 'Option': Option; + 'Vec': Vec; + Approvals: Approvals; + 'Option': Option; + 'Vec': Vec; + AccountStatus: AccountStatus; + 'Option': Option; + 'Vec': Vec; + AccountValidity: AccountValidity; + 'Option': Option; + 'Vec': Vec; + CallMetadataV0: CallMetadataV0; + 'Option': Option; + 'Vec': Vec; + EventMetadataV0: EventMetadataV0; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV0: FunctionArgumentMetadataV0; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV0: FunctionMetadataV0; + 'Option': Option; + 'Vec': Vec; + MapTypeV0: MapTypeV0; + 'Option': Option; + 'Vec': Vec; + MetadataV0: MetadataV0; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV0: ModuleMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterDispatchCallV0: OuterDispatchCallV0; + 'Option': Option; + 'Vec': Vec; + OuterDispatchMetadataV0: OuterDispatchMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterEventEventMetadataEventsV0: OuterEventEventMetadataEventsV0; + 'Option': Option; + 'Vec': Vec; + OuterEventEventMetadataV0: OuterEventEventMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterEventMetadataV0: OuterEventMetadataV0; + 'Option': Option; + 'Vec': Vec; + PlainTypeV0: PlainTypeV0; + 'Option': Option; + 'Vec': Vec; + RuntimeModuleMetadataV0: RuntimeModuleMetadataV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV0: StorageFunctionMetadataV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV0: StorageFunctionModifierV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV0: StorageFunctionTypeV0; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV0: StorageMetadataV0; + 'Option': Option; + 'Vec': Vec; + EventMetadataV1: EventMetadataV1; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV1: FunctionArgumentMetadataV1; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV1: FunctionMetadataV1; + 'Option': Option; + 'Vec': Vec; + MetadataV1: MetadataV1; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV1: ModuleMetadataV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV1: StorageFunctionMetadataV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV1: StorageFunctionModifierV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV1: StorageFunctionTypeV1; + 'Option': Option; + 'Vec': Vec; + EventMetadataV2: EventMetadataV2; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV2: FunctionArgumentMetadataV2; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV2: FunctionMetadataV2; + 'Option': Option; + 'Vec': Vec; + MapTypeV2: MapTypeV2; + 'Option': Option; + 'Vec': Vec; + MetadataV2: MetadataV2; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV2: ModuleMetadataV2; + 'Option': Option; + 'Vec': Vec; + PlainTypeV2: PlainTypeV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV2: StorageFunctionMetadataV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV2: StorageFunctionModifierV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV2: StorageFunctionTypeV2; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV3: DoubleMapTypeV3; + 'Option': Option; + 'Vec': Vec; + EventMetadataV3: EventMetadataV3; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV3: FunctionArgumentMetadataV3; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV3: FunctionMetadataV3; + 'Option': Option; + 'Vec': Vec; + MapTypeV3: MapTypeV3; + 'Option': Option; + 'Vec': Vec; + MetadataV3: MetadataV3; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV3: ModuleMetadataV3; + 'Option': Option; + 'Vec': Vec; + PlainTypeV3: PlainTypeV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV3: StorageFunctionMetadataV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV3: StorageFunctionModifierV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV3: StorageFunctionTypeV3; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV4: DoubleMapTypeV4; + 'Option': Option; + 'Vec': Vec; + EventMetadataV4: EventMetadataV4; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV4: FunctionArgumentMetadataV4; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV4: FunctionMetadataV4; + 'Option': Option; + 'Vec': Vec; + MapTypeV4: MapTypeV4; + 'Option': Option; + 'Vec': Vec; + MetadataV4: MetadataV4; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV4: ModuleMetadataV4; + 'Option': Option; + 'Vec': Vec; + PlainTypeV4: PlainTypeV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV4: StorageFunctionMetadataV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV4: StorageFunctionModifierV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV4: StorageFunctionTypeV4; + 'Option': Option; + 'Vec': Vec; + StorageHasherV4: StorageHasherV4; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV5: DoubleMapTypeV5; + 'Option': Option; + 'Vec': Vec; + EventMetadataV5: EventMetadataV5; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV5: FunctionArgumentMetadataV5; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV5: FunctionMetadataV5; + 'Option': Option; + 'Vec': Vec; + MapTypeV5: MapTypeV5; + 'Option': Option; + 'Vec': Vec; + MetadataV5: MetadataV5; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV5: ModuleMetadataV5; + 'Option': Option; + 'Vec': Vec; + PlainTypeV5: PlainTypeV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV5: StorageFunctionMetadataV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV5: StorageFunctionModifierV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV5: StorageFunctionTypeV5; + 'Option': Option; + 'Vec': Vec; + StorageHasherV5: StorageHasherV5; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV6: DoubleMapTypeV6; + 'Option': Option; + 'Vec': Vec; + EventMetadataV6: EventMetadataV6; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV6: FunctionArgumentMetadataV6; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV6: FunctionMetadataV6; + 'Option': Option; + 'Vec': Vec; + MapTypeV6: MapTypeV6; + 'Option': Option; + 'Vec': Vec; + MetadataV6: MetadataV6; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV6: ModuleConstantMetadataV6; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV6: ModuleMetadataV6; + 'Option': Option; + 'Vec': Vec; + PlainTypeV6: PlainTypeV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV6: StorageEntryModifierV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV6: StorageEntryMetadataV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV6: StorageEntryTypeV6; + 'Option': Option; + 'Vec': Vec; + StorageHasherV6: StorageHasherV6; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV7: DoubleMapTypeV7; + 'Option': Option; + 'Vec': Vec; + EventMetadataV7: EventMetadataV7; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV7: FunctionArgumentMetadataV7; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV7: FunctionMetadataV7; + 'Option': Option; + 'Vec': Vec; + MapTypeV7: MapTypeV7; + 'Option': Option; + 'Vec': Vec; + MetadataV7: MetadataV7; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV7: ModuleConstantMetadataV7; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV7: ModuleMetadataV7; + 'Option': Option; + 'Vec': Vec; + PlainTypeV7: PlainTypeV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV7: StorageEntryModifierV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV7: StorageEntryMetadataV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV7: StorageEntryTypeV7; + 'Option': Option; + 'Vec': Vec; + StorageHasherV7: StorageHasherV7; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV7: StorageMetadataV7; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV8: DoubleMapTypeV8; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV8: ErrorMetadataV8; + 'Option': Option; + 'Vec': Vec; + EventMetadataV8: EventMetadataV8; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV8: FunctionArgumentMetadataV8; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV8: FunctionMetadataV8; + 'Option': Option; + 'Vec': Vec; + MapTypeV8: MapTypeV8; + 'Option': Option; + 'Vec': Vec; + MetadataV8: MetadataV8; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV8: ModuleConstantMetadataV8; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV8: ModuleMetadataV8; + 'Option': Option; + 'Vec': Vec; + PlainTypeV8: PlainTypeV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV8: StorageEntryModifierV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV8: StorageEntryMetadataV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV8: StorageEntryTypeV8; + 'Option': Option; + 'Vec': Vec; + StorageHasherV8: StorageHasherV8; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV8: StorageMetadataV8; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV9: DoubleMapTypeV9; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV9: ErrorMetadataV9; + 'Option': Option; + 'Vec': Vec; + EventMetadataV9: EventMetadataV9; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV9: FunctionArgumentMetadataV9; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV9: FunctionMetadataV9; + 'Option': Option; + 'Vec': Vec; + MapTypeV9: MapTypeV9; + 'Option': Option; + 'Vec': Vec; + MetadataV9: MetadataV9; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV9: ModuleConstantMetadataV9; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV9: ModuleMetadataV9; + 'Option': Option; + 'Vec': Vec; + PlainTypeV9: PlainTypeV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV9: StorageEntryModifierV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV9: StorageEntryMetadataV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV9: StorageEntryTypeV9; + 'Option': Option; + 'Vec': Vec; + StorageHasherV9: StorageHasherV9; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV9: StorageMetadataV9; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV10: DoubleMapTypeV10; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV10: ErrorMetadataV10; + 'Option': Option; + 'Vec': Vec; + EventMetadataV10: EventMetadataV10; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV10: FunctionArgumentMetadataV10; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV10: FunctionMetadataV10; + 'Option': Option; + 'Vec': Vec; + MapTypeV10: MapTypeV10; + 'Option': Option; + 'Vec': Vec; + MetadataV10: MetadataV10; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV10: ModuleConstantMetadataV10; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV10: ModuleMetadataV10; + 'Option': Option; + 'Vec': Vec; + PlainTypeV10: PlainTypeV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV10: StorageEntryModifierV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV10: StorageEntryMetadataV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV10: StorageEntryTypeV10; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV10: StorageMetadataV10; + 'Option': Option; + 'Vec': Vec; + StorageHasherV10: StorageHasherV10; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV11: DoubleMapTypeV11; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV11: ErrorMetadataV11; + 'Option': Option; + 'Vec': Vec; + EventMetadataV11: EventMetadataV11; + 'Option': Option; + 'Vec': Vec; + ExtrinsicMetadataV11: ExtrinsicMetadataV11; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV11: FunctionArgumentMetadataV11; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV11: FunctionMetadataV11; + 'Option': Option; + 'Vec': Vec; + MapTypeV11: MapTypeV11; + 'Option': Option; + 'Vec': Vec; + MetadataV11: MetadataV11; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV11: ModuleConstantMetadataV11; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV11: ModuleMetadataV11; + 'Option': Option; + 'Vec': Vec; + PlainTypeV11: PlainTypeV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV11: StorageEntryModifierV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV11: StorageEntryMetadataV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV11: StorageEntryTypeV11; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV11: StorageMetadataV11; + 'Option': Option; + 'Vec': Vec; + StorageHasherV11: StorageHasherV11; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeLatest: DoubleMapTypeLatest; + 'Option': Option; + 'Vec': Vec; + EventMetadataLatest: EventMetadataLatest; + 'Option': Option; + 'Vec': Vec; + ExtrinsicMetadataLatest: ExtrinsicMetadataLatest; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataLatest: FunctionMetadataLatest; + 'Option': Option; + 'Vec': Vec; + MapTypeLatest: MapTypeLatest; + 'Option': Option; + 'Vec': Vec; + MetadataLatest: MetadataLatest; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataLatest: ModuleConstantMetadataLatest; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataLatest: ModuleMetadataLatest; + 'Option': Option; + 'Vec': Vec; + PlainTypeLatest: PlainTypeLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataLatest: StorageEntryMetadataLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierLatest: StorageEntryModifierLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeLatest: StorageEntryTypeLatest; + 'Option': Option; + 'Vec': Vec; + StorageMetadataLatest: StorageMetadataLatest; + 'Option': Option; + 'Vec': Vec; + StorageHasher: StorageHasher; + 'Option': Option; + 'Vec': Vec; + MetadataAll: MetadataAll; + 'Option': Option; + 'Vec': Vec; + RpcMethods: RpcMethods; + 'Option': Option; + 'Vec': Vec; + ExtrinsicOrHash: ExtrinsicOrHash; + 'Option': Option; + 'Vec': Vec; + ExtrinsicStatus: ExtrinsicStatus; + 'Option': Option; + 'Vec': Vec; + BlockHash: BlockHash; + 'Option': Option; + 'Vec': Vec; + PrefixedStorageKey: PrefixedStorageKey; + 'Option': Option; + 'Vec': Vec; + StorageKind: StorageKind; + 'Option': Option; + 'Vec': Vec; + RuntimeDispatchInfo: RuntimeDispatchInfo; + 'Option': Option; + 'Vec': Vec; + ApiId: ApiId; + 'Option': Option; + 'Vec': Vec; + KeyValueOption: KeyValueOption; + 'Option': Option; + 'Vec': Vec; + ReadProof: ReadProof; + 'Option': Option; + 'Vec': Vec; + RuntimeVersionApi: RuntimeVersionApi; + 'Option': Option; + 'Vec': Vec; + RuntimeVersion: RuntimeVersion; + 'Option': Option; + 'Vec': Vec; + StorageChangeSet: StorageChangeSet; + 'Option': Option; + 'Vec': Vec; } } diff --git a/types/augment/all/definitions.ts b/types/augment/all/definitions.ts new file mode 100644 index 0000000000..ba857e4bfd --- /dev/null +++ b/types/augment/all/definitions.ts @@ -0,0 +1,5 @@ +const defs = require('./defs.json'); + +export default { + types: defs +} diff --git a/types/augment/all/defs.json b/types/augment/all/defs.json new file mode 100644 index 0000000000..cfc58e020e --- /dev/null +++ b/types/augment/all/defs.json @@ -0,0 +1,867 @@ +{ + "MemoText": "Text", + "Credential": "u64", + "CredentialSet": "Vec", + "BlockAndTime": { + "block": "u32", + "time": "u64" + }, + "ThreadId": "u64", + "PostId": "u64", + "InputValidationLengthConstraint": { + "min": "u16", + "max_min_diff": "u16" + }, + "WorkingGroup": { + "_enum": [ + "Storage" + ] + }, + "SlashingTerms": { + "_enum": { + "Unslashable": "Null", + "Slashable": "SlashableTerms" + } + }, + "SlashableTerms": { + "max_count": "u16", + "max_percent_pts_per_time": "u16" + }, + "EntryMethod": { + "_enum": { + "Paid": "u64", + "Screening": "AccountId", + "Genesis": "Null" + } + }, + "MemberId": "u64", + "PaidTermId": "u64", + "SubscriptionId": "u64", + "Membership": { + "handle": "Text", + "avatar_uri": "Text", + "about": "Text", + "registered_at_block": "u32", + "registered_at_time": "u64", + "entry": "EntryMethod", + "suspended": "bool", + "subscription": "Option", + "root_account": "GenericAccountId", + "controller_account": "GenericAccountId" + }, + "PaidMembershipTerms": { + "fee": "u128", + "text": "Text" + }, + "ActorId": "u64", + "ElectionStage": { + "_enum": { + "Announcing": "u32", + "Voting": "u32", + "Revealing": "u32" + } + }, + "ElectionStake": { + "new": "u128", + "transferred": "u128" + }, + "SealedVote": { + "voter": "GenericAccountId", + "commitment": "[u8;32]", + "stake": "ElectionStake", + "vote": "Option" + }, + "TransferableStake": { + "seat": "u128", + "backing": "u128" + }, + "ElectionParameters": { + "announcing_period": "u32", + "voting_period": "u32", + "revealing_period": "u32", + "council_size": "u32", + "candidacy_limit": "u32", + "new_term_duration": "u32", + "min_council_stake": "u128", + "min_voting_stake": "u128" + }, + "Seat": { + "member": "GenericAccountId", + "stake": "u128", + "backers": "Backers" + }, + "Seats": "Vec", + "Backer": { + "member": "GenericAccountId", + "stake": "u128" + }, + "Backers": "Vec", + "RoleParameters": { + "min_stake": "u128", + "min_actors": "u32", + "max_actors": "u32", + "reward": "u128", + "reward_period": "u32", + "bonding_period": "u32", + "unbonding_period": "u32", + "min_service_period": "u32", + "startup_grace_period": "u32", + "entry_request_fee": "u128" + }, + "PostTextChange": { + "expired_at": "BlockAndTime", + "text": "Text" + }, + "ModerationAction": { + "moderated_at": "BlockAndTime", + "moderator_id": "GenericAccountId", + "rationale": "Text" + }, + "ChildPositionInParentCategory": { + "parent_id": "CategoryId", + "child_nr_in_parent_category": "u32" + }, + "CategoryId": "u64", + "Category": { + "id": "CategoryId", + "title": "Text", + "description": "Text", + "created_at": "BlockAndTime", + "deleted": "bool", + "archived": "bool", + "num_direct_subcategories": "u32", + "num_direct_unmoderated_threads": "u32", + "num_direct_moderated_threads": "u32", + "position_in_parent_category": "Option", + "moderator_id": "GenericAccountId" + }, + "Thread": { + "id": "ThreadId", + "title": "Text", + "category_id": "CategoryId", + "nr_in_category": "u32", + "moderation": "Option", + "num_unmoderated_posts": "u32", + "num_moderated_posts": "u32", + "created_at": "BlockAndTime", + "author_id": "GenericAccountId" + }, + "Post": { + "id": "PostId", + "thread_id": "ThreadId", + "nr_in_thread": "u32", + "current_text": "Text", + "moderation": "Option", + "text_change_history": "Vec", + "created_at": "BlockAndTime", + "author_id": "GenericAccountId" + }, + "ReplyId": "u64", + "Reply": { + "owner": "GenericAccountId", + "thread_id": "ThreadId", + "text": "Text", + "moderation": "Option" + }, + "StakeId": "u64", + "Stake": { + "created": "u32", + "staking_status": "StakingStatus" + }, + "StakingStatus": { + "_enum": { + "NotStaked": "Null", + "Staked": "Staked" + } + }, + "Staked": { + "staked_amount": "u128", + "staked_status": "StakedStatus", + "next_slash_id": "u64", + "ongoing_slashes": "BTreeMap" + }, + "StakedStatus": { + "_enum": { + "Normal": "Null", + "Unstaking": "Unstaking" + } + }, + "Unstaking": { + "started_at_block": "u32", + "is_active": "bool", + "blocks_remaining_in_active_period_for_unstaking": "u32" + }, + "Slash": { + "started_at_block": "u32", + "is_active": "bool", + "blocks_remaining_in_active_period_for_slashing": "u32", + "slash_amount": "u128" + }, + "MintId": "u64", + "Mint": { + "capacity": "u128", + "next_adjustment": "Option", + "created_at": "u32", + "total_minted": "u128" + }, + "MintBalanceOf": "Balance", + "BalanceOfMint": "Balance", + "NextAdjustment": { + "adjustment": "AdjustOnInterval", + "at_block": "u32" + }, + "AdjustOnInterval": { + "block_interval": "u32", + "adjustment_type": "AdjustCapacityBy" + }, + "AdjustCapacityBy": { + "_enum": { + "Setting": "u128", + "Adding": "u128", + "Reducing": "u128" + } + }, + "RecipientId": "u64", + "RewardRelationshipId": "u64", + "Recipient": { + "total_reward_received": "u128", + "total_reward_missed": "u128" + }, + "RewardRelationship": { + "recipient": "u64", + "mint_id": "u64", + "account": "GenericAccountId", + "amount_per_payout": "u128", + "next_payment_at_block": "Option", + "payout_interval": "Option", + "total_reward_received": "u128", + "total_reward_missed": "u128" + }, + "ApplicationId": "u64", + "OpeningId": "u64", + "Application": { + "opening_id": "u64", + "application_index_in_opening": "u32", + "add_to_opening_in_block": "u32", + "active_role_staking_id": "Option", + "active_application_staking_id": "Option", + "stage": "ApplicationStage", + "human_readable_text": "Text" + }, + "ApplicationStage": { + "_enum": { + "Active": "Null", + "Unstaking": "UnstakingApplicationStage", + "Inactive": "InactiveApplicationStage" + } + }, + "ActivateOpeningAt": { + "_enum": { + "CurrentBlock": "Null", + "ExactBlock": "u32" + } + }, + "ApplicationRationingPolicy": { + "max_active_applicants": "u32" + }, + "OpeningStage": { + "_enum": { + "WaitingToBegin": "WaitingToBeingOpeningStageVariant", + "Active": "ActiveOpeningStageVariant" + } + }, + "StakingPolicy": { + "amount": "u128", + "amount_mode": "StakingAmountLimitMode", + "crowded_out_unstaking_period_length": "Option", + "review_period_expired_unstaking_period_length": "Option" + }, + "Opening": { + "created": "u32", + "stage": "OpeningStage", + "max_review_period_length": "u32", + "application_rationing_policy": "Option", + "application_staking_policy": "Option", + "role_staking_policy": "Option", + "human_readable_text": "Text" + }, + "WaitingToBeingOpeningStageVariant": { + "begins_at_block": "u32" + }, + "ActiveOpeningStageVariant": { + "stage": "ActiveOpeningStage", + "applications_added": "Vec", + "active_application_count": "u32", + "unstaking_application_count": "u32", + "deactivated_application_count": "u32" + }, + "ActiveOpeningStage": { + "_enum": { + "AcceptingApplications": "AcceptingApplications", + "ReviewPeriod": "ReviewPeriod", + "Deactivated": "Deactivated" + } + }, + "AcceptingApplications": { + "started_accepting_applicants_at_block": "u32" + }, + "ReviewPeriod": { + "started_accepting_applicants_at_block": "u32", + "started_review_period_at_block": "u32" + }, + "Deactivated": { + "cause": "OpeningDeactivationCause", + "deactivated_at_block": "u32", + "started_accepting_applicants_at_block": "u32", + "started_review_period_at_block": "Option" + }, + "OpeningDeactivationCause": { + "_enum": [ + "CancelledBeforeActivation", + "CancelledAcceptingApplications", + "CancelledInReviewPeriod", + "ReviewPeriodExpired", + "Filled" + ] + }, + "InactiveApplicationStage": { + "deactivation_initiated": "u32", + "deactivated": "u32", + "cause": "ApplicationDeactivationCause" + }, + "UnstakingApplicationStage": { + "deactivation_initiated": "u32", + "cause": "ApplicationDeactivationCause" + }, + "ApplicationDeactivationCause": { + "_enum": [ + "External", + "Hired", + "NotHired", + "CrowdedOut", + "OpeningCancelled", + "ReviewPeriodExpired", + "OpeningFilled" + ] + }, + "StakingAmountLimitMode": { + "_enum": [ + "AtLeast", + "Exact" + ] + }, + "ClassId": "u64", + "EntityId": "u64", + "Class": { + "id": "u64", + "properties": "Vec", + "schemas": "Vec", + "name": "Text", + "description": "Text" + }, + "Entity": { + "id": "u64", + "class_id": "u64", + "in_class_schema_indexes": "Vec" + }, + "ClassSchema": { + "properties": "Vec" + }, + "Property": { + "prop_type": "PropertyType", + "required": "bool", + "name": "Text", + "description": "Text" + }, + "PropertyType": { + "_enum": { + "None": "Null", + "Bool": "Null", + "Uint16": "Null", + "Uint32": "Null", + "Uint64": "Null", + "Int16": "Null", + "Int32": "Null", + "Int64": "Null", + "Text": "u16", + "Internal": "u64", + "BoolVec": "u16", + "Uint16Vec": "u16", + "Uint32Vec": "u16", + "Uint64Vec": "u16", + "Int16Vec": "u16", + "Int32Vec": "u16", + "Int64Vec": "u16", + "TextVec": "(u16,u16)", + "InternalVec": "(u16,u64)" + } + }, + "PropertyValue": { + "_enum": { + "None": "Null", + "Bool": "bool", + "Uint16": "u16", + "Uint32": "u32", + "Uint64": "u64", + "Int16": "i16", + "Int32": "i32", + "Int64": "i64", + "Text": "Text", + "Internal": "u64", + "BoolVec": "Vec", + "Uint16Vec": "Vec", + "Uint32Vec": "Vec", + "Uint64Vec": "Vec", + "Int16Vec": "Vec", + "Int32Vec": "Vec", + "Int64Vec": "Vec", + "TextVec": "Vec", + "InternalVec": "Vec" + } + }, + "ClassPropertyValue": { + "in_class_index": "u16", + "value": "PropertyValue" + }, + "EntityPermissions": { + "update": "CredentialSet", + "maintainer_has_all_permissions": "bool" + }, + "ReferenceConstraint": { + "_enum": { + "NoReferencingAllowed": "Null", + "NoConstraint": "Null", + "Restricted": "Vec" + } + }, + "ClassPermissionsType": { + "entity_permissions": "EntityPermissions", + "entities_can_be_created": "bool", + "add_schemas": "CredentialSet", + "create_entities": "CredentialSet", + "reference_constraint": "ReferenceConstraint", + "admins": "CredentialSet", + "last_permissions_update": "u32" + }, + "Operation": { + "with_credential": "Option", + "as_entity_maintainer": "bool", + "operation_type": "OperationType" + }, + "OperationType": { + "_enum": { + "CreateEntity": "CreateEntity", + "UpdatePropertyValues": "UpdatePropertyValues", + "AddSchemaSupportToEntity": "AddSchemaSupportToEntity" + } + }, + "CreateEntity": { + "class_id": "u64" + }, + "UpdatePropertyValues": { + "entity_id": "ParametrizedEntity", + "parametrized_property_values": "Vec" + }, + "AddSchemaSupportToEntity": { + "entity_id": "ParametrizedEntity", + "schema_id": "u16", + "parametrized_property_values": "Vec" + }, + "ParametrizedEntity": { + "_enum": { + "InternalEntityJustAdded": "u32", + "ExistingEntity": "u64" + } + }, + "ParametrizedClassPropertyValue": { + "in_class_index": "u16", + "value": "ParametrizedPropertyValue" + }, + "ParametrizedPropertyValue": { + "_enum": { + "PropertyValue": "PropertyValue", + "InternalEntityJustAdded": "u32", + "InternalEntityVec": "Vec" + } + }, + "PropertyOfClass": { + "class_id": "u64", + "property_index": "u16" + }, + "ChannelId": "u64", + "CuratorId": "u64", + "CuratorOpeningId": "u64", + "CuratorApplicationId": "u64", + "LeadId": "u64", + "PrincipalId": "u64", + "OptionalText": "Option", + "Channel": { + "verified": "bool", + "handle": "Text", + "title": "OptionalText", + "description": "OptionalText", + "avatar": "OptionalText", + "banner": "OptionalText", + "content": "ChannelContentType", + "owner": "MemberId", + "role_account": "GenericAccountId", + "publication_status": "ChannelPublicationStatus", + "curation_status": "ChannelCurationStatus", + "created": "u32", + "principal_id": "u64" + }, + "ChannelContentType": { + "_enum": [ + "Video", + "Music", + "Ebook" + ] + }, + "ChannelCurationStatus": { + "_enum": [ + "Normal", + "Censored" + ] + }, + "ChannelPublicationStatus": { + "_enum": [ + "Public", + "Unlisted" + ] + }, + "CurationActor": { + "_enum": { + "Lead": "Null", + "Curator": "u64" + } + }, + "Curator": { + "role_account": "GenericAccountId", + "reward_relationship": "Option", + "role_stake_profile": "Option", + "stage": "CuratorRoleStage", + "induction": "CuratorInduction", + "principal_id": "u64" + }, + "CuratorApplication": { + "role_account": "GenericAccountId", + "curator_opening_id": "u64", + "member_id": "MemberId", + "application_id": "HiringApplicationId" + }, + "CuratorOpening": { + "opening_id": "u64", + "curator_applications": "Vec", + "policy_commitment": "OpeningPolicyCommitment" + }, + "Lead": { + "member_id": "MemberId", + "role_account": "GenericAccountId", + "reward_relationship": "Option", + "inducted": "u32", + "stage": "LeadRoleState" + }, + "OpeningPolicyCommitment": { + "application_rationing_policy": "Option", + "max_review_period_length": "u32", + "application_staking_policy": "Option", + "role_staking_policy": "Option", + "role_slashing_terms": "SlashingTerms", + "fill_opening_successful_applicant_application_stake_unstaking_period": "Option", + "fill_opening_failed_applicant_application_stake_unstaking_period": "Option", + "fill_opening_failed_applicant_role_stake_unstaking_period": "Option", + "terminate_curator_application_stake_unstaking_period": "Option", + "terminate_curator_role_stake_unstaking_period": "Option", + "exit_curator_role_application_stake_unstaking_period": "Option", + "exit_curator_role_stake_unstaking_period": "Option" + }, + "Principal": { + "_enum": { + "Lead": "Null", + "Curator": "u64", + "ChannelOwner": "u64" + } + }, + "WorkingGroupUnstaker": { + "_enum": { + "Lead": "u64", + "Curator": "u64" + } + }, + "CuratorApplicationIdToCuratorIdMap": "BTreeMap", + "CuratorApplicationIdSet": "Vec", + "CuratorRoleStakeProfile": { + "stake_id": "u64", + "termination_unstaking_period": "Option", + "exit_unstaking_period": "Option" + }, + "CuratorRoleStage": { + "_enum": { + "Active": "Null", + "Unstaking": "CuratorExitSummary", + "Exited": "CuratorExitSummary" + } + }, + "CuratorExitSummary": { + "origin": "CuratorExitInitiationOrigin", + "initiated_at_block_number": "u32", + "rationale_text": "Text" + }, + "CuratorExitInitiationOrigin": { + "_enum": [ + "Lead", + "Curator" + ] + }, + "LeadRoleState": { + "_enum": { + "Active": "Null", + "Exited": "ExitedLeadRole" + } + }, + "ExitedLeadRole": { + "initiated_at_block_number": "u32" + }, + "CuratorInduction": { + "lead": "u64", + "curator_application_id": "u64", + "at_block": "u32" + }, + "RationaleText": "Bytes", + "ApplicationOf": { + "role_account_id": "GenericAccountId", + "opening_id": "u64", + "member_id": "MemberId", + "application_id": "HiringApplicationId" + }, + "ApplicationIdSet": "BTreeSet", + "ApplicationIdToWorkerIdMap": "BTreeMap", + "WorkerId": "u64", + "WorkerOf": { + "member_id": "MemberId", + "role_account_id": "GenericAccountId", + "reward_relationship": "Option", + "role_stake_profile": "Option" + }, + "OpeningOf": { + "hiring_opening_id": "u64", + "applications": "Vec", + "policy_commitment": "WorkingGroupOpeningPolicyCommitment", + "opening_type": "OpeningType" + }, + "StorageProviderId": "u64", + "OpeningType": { + "_enum": { + "Leader": "Null", + "Worker": "Null" + } + }, + "HiringApplicationId": "u64", + "RewardPolicy": { + "amount_per_payout": "u128", + "next_payment_at_block": "u32", + "payout_interval": "Option" + }, + "WorkingGroupOpeningPolicyCommitment": { + "application_rationing_policy": "Option", + "max_review_period_length": "u32", + "application_staking_policy": "Option", + "role_staking_policy": "Option", + "role_slashing_terms": "SlashingTerms", + "fill_opening_successful_applicant_application_stake_unstaking_period": "Option", + "fill_opening_failed_applicant_application_stake_unstaking_period": "Option", + "fill_opening_failed_applicant_role_stake_unstaking_period": "Option", + "terminate_application_stake_unstaking_period": "Option", + "terminate_role_stake_unstaking_period": "Option", + "exit_role_application_stake_unstaking_period": "Option", + "exit_role_stake_unstaking_period": "Option" + }, + "RoleStakeProfile": { + "stake_id": "u64", + "termination_unstaking_period": "Option", + "exit_unstaking_period": "Option" + }, + "Url": "Text", + "IPNSIdentity": "Text", + "ServiceProviderRecord": { + "identity": "IPNSIdentity", + "expires_at": "u32" + }, + "ContentId": "[u8;32]", + "LiaisonJudgement": { + "_enum": [ + "Pending", + "Accepted", + "Rejected" + ] + }, + "DataObject": { + "owner": "MemberId", + "added_at": "BlockAndTime", + "type_id": "DataObjectTypeId", + "liaison": "StorageProviderId", + "liaison_judgement": "LiaisonJudgement", + "ipfs_content_id": "Text" + }, + "DataObjectStorageRelationshipId": "u64", + "DataObjectStorageRelationship": { + "content_id": "ContentId", + "storage_provider": "StorageProviderId", + "ready": "bool" + }, + "DataObjectTypeId": "u64", + "DataObjectType": { + "description": "Text", + "active": "bool" + }, + "DataObjectsMap": "BTreeMap", + "ProposalId": "u32", + "ProposalStatus": { + "_enum": { + "Active": "Option", + "Finalized": "Finalized" + } + }, + "ProposalOf": { + "parameters": "ProposalParameters", + "proposerId": "MemberId", + "title": "Text", + "description": "Text", + "createdAt": "u32", + "status": "ProposalStatus", + "votingResults": "VotingResults" + }, + "ProposalDetails": { + "_enum": { + "Text": "Text", + "RuntimeUpgrade": "Vec", + "SetElectionParameters": "ElectionParameters", + "Spending": "(Balance,AccountId)", + "SetLead": "Option", + "SetContentWorkingGroupMintCapacity": "u128", + "EvictStorageProvider": "GenericAccountId", + "SetValidatorCount": "u32", + "SetStorageRoleParameters": "RoleParameters", + "AddWorkingGroupLeaderOpening": "AddOpeningParameters", + "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)", + "FillWorkingGroupLeaderOpening": "FillOpeningParameters", + "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)", + "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)", + "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)", + "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)", + "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters" + } + }, + "ProposalDetailsOf": { + "_enum": { + "Text": "Text", + "RuntimeUpgrade": "Vec", + "SetElectionParameters": "ElectionParameters", + "Spending": "(Balance,AccountId)", + "SetLead": "Option", + "SetContentWorkingGroupMintCapacity": "u128", + "EvictStorageProvider": "GenericAccountId", + "SetValidatorCount": "u32", + "SetStorageRoleParameters": "RoleParameters", + "AddWorkingGroupLeaderOpening": "AddOpeningParameters", + "BeginReviewWorkingGroupLeaderApplication": "(u64,WorkingGroup)", + "FillWorkingGroupLeaderOpening": "FillOpeningParameters", + "SetWorkingGroupMintCapacity": "(Balance,WorkingGroup)", + "DecreaseWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)", + "SlashWorkingGroupLeaderStake": "(WorkerId,Balance,WorkingGroup)", + "SetWorkingGroupLeaderReward": "(WorkerId,Balance,WorkingGroup)", + "TerminateWorkingGroupLeaderRole": "TerminateRoleParameters" + } + }, + "VotingResults": { + "abstensions": "u32", + "approvals": "u32", + "rejections": "u32", + "slashes": "u32" + }, + "ProposalParameters": { + "votingPeriod": "u32", + "gracePeriod": "u32", + "approvalQuorumPercentage": "u32", + "approvalThresholdPercentage": "u32", + "slashingQuorumPercentage": "u32", + "slashingThresholdPercentage": "u32", + "requiredStake": "Option" + }, + "VoteKind": { + "_enum": [ + "Approve", + "Reject", + "Slash", + "Abstain" + ] + }, + "ThreadCounter": { + "author_id": "MemberId", + "counter": "u32" + }, + "DiscussionThread": { + "title": "Bytes", + "created_at": "u32", + "author_id": "MemberId" + }, + "DiscussionPost": { + "text": "Bytes", + "created_at": "u32", + "updated_at": "u32", + "author_id": "MemberId", + "thread_id": "ThreadId", + "edition_number": "u32" + }, + "AddOpeningParameters": { + "activate_at": "ActivateOpeningAt", + "commitment": "WorkingGroupOpeningPolicyCommitment", + "human_readable_text": "Bytes", + "working_group": "WorkingGroup" + }, + "FillOpeningParameters": { + "opening_id": "u64", + "successful_application_id": "HiringApplicationId", + "reward_policy": "Option", + "working_group": "WorkingGroup" + }, + "TerminateRoleParameters": { + "worker_id": "WorkerId", + "rationale": "Bytes", + "slash": "bool", + "working_group": "WorkingGroup" + }, + "ActiveStake": { + "stake_id": "u64", + "source_account_id": "GenericAccountId" + }, + "Finalized": { + "proposalStatus": "ProposalDecisionStatus", + "finalizedAt": "u32", + "encodedUnstakingErrorDueToBrokenRuntime": "Option>", + "stakeDataAfterUnstakingError": "Option" + }, + "ProposalDecisionStatus": { + "_enum": { + "Canceled": "Null", + "Vetoed": "Null", + "Rejected": "Null", + "Slashed": "Null", + "Expired": "Null", + "Approved": "Approved" + } + }, + "ExecutionFailed": { + "error": "Vec" + }, + "Approved": { + "_enum": { + "PendingExecution": "Null", + "Executed": "Null", + "ExecutionFailed": "ExecutionFailed" + } + }, + "SetLeadParams": "(MemberId,GenericAccountId)", + "Address": "AccountId", + "LookupSource": "AccountId" +} \ No newline at end of file diff --git a/types/augment/all/index.ts b/types/augment/all/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/types/augment/all/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/types/augment/all/types.ts b/types/augment/all/types.ts new file mode 100644 index 0000000000..7182bcdfc3 --- /dev/null +++ b/types/augment/all/types.ts @@ -0,0 +1,1242 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import { ITuple } from '@polkadot/types/types'; +import { BTreeMap, BTreeSet, Enum, Option, Struct, U8aFixed, Vec } from '@polkadot/types/codec'; +import { GenericAccountId } from '@polkadot/types/generic'; +import { Bytes, Text, bool, i16, i32, i64, u128, u16, u32, u64 } from '@polkadot/types/primitive'; +import { AccountId, Balance } from '@polkadot/types/interfaces/runtime'; + +/** @name AcceptingApplications */ +export interface AcceptingApplications extends Struct { + readonly started_accepting_applicants_at_block: u32; +} + +/** @name ActivateOpeningAt */ +export interface ActivateOpeningAt extends Enum { + readonly isCurrentBlock: boolean; + readonly isExactBlock: boolean; + readonly asExactBlock: u32; +} + +/** @name ActiveOpeningStage */ +export interface ActiveOpeningStage extends Enum { + readonly isAcceptingApplications: boolean; + readonly asAcceptingApplications: AcceptingApplications; + readonly isReviewPeriod: boolean; + readonly asReviewPeriod: ReviewPeriod; + readonly isDeactivated: boolean; + readonly asDeactivated: Deactivated; +} + +/** @name ActiveOpeningStageVariant */ +export interface ActiveOpeningStageVariant extends Struct { + readonly stage: ActiveOpeningStage; + readonly applications_added: Vec; + readonly active_application_count: u32; + readonly unstaking_application_count: u32; + readonly deactivated_application_count: u32; +} + +/** @name ActiveStake */ +export interface ActiveStake extends Struct { + readonly stake_id: u64; + readonly source_account_id: GenericAccountId; +} + +/** @name ActorId */ +export interface ActorId extends u64 {} + +/** @name AddOpeningParameters */ +export interface AddOpeningParameters extends Struct { + readonly activate_at: ActivateOpeningAt; + readonly commitment: WorkingGroupOpeningPolicyCommitment; + readonly human_readable_text: Bytes; + readonly working_group: WorkingGroup; +} + +/** @name Address */ +export interface Address extends AccountId {} + +/** @name AddSchemaSupportToEntity */ +export interface AddSchemaSupportToEntity extends Struct { + readonly entity_id: ParametrizedEntity; + readonly schema_id: u16; + readonly parametrized_property_values: Vec; +} + +/** @name AdjustCapacityBy */ +export interface AdjustCapacityBy extends Enum { + readonly isSetting: boolean; + readonly asSetting: u128; + readonly isAdding: boolean; + readonly asAdding: u128; + readonly isReducing: boolean; + readonly asReducing: u128; +} + +/** @name AdjustOnInterval */ +export interface AdjustOnInterval extends Struct { + readonly block_interval: u32; + readonly adjustment_type: AdjustCapacityBy; +} + +/** @name Application */ +export interface Application extends Struct { + readonly opening_id: u64; + readonly application_index_in_opening: u32; + readonly add_to_opening_in_block: u32; + readonly active_role_staking_id: Option; + readonly active_application_staking_id: Option; + readonly stage: ApplicationStage; + readonly human_readable_text: Text; +} + +/** @name ApplicationDeactivationCause */ +export interface ApplicationDeactivationCause extends Enum { + readonly isExternal: boolean; + readonly isHired: boolean; + readonly isNotHired: boolean; + readonly isCrowdedOut: boolean; + readonly isOpeningCancelled: boolean; + readonly isReviewPeriodExpired: boolean; + readonly isOpeningFilled: boolean; +} + +/** @name ApplicationId */ +export interface ApplicationId extends u64 {} + +/** @name ApplicationIdSet */ +export interface ApplicationIdSet extends BTreeSet {} + +/** @name ApplicationIdToWorkerIdMap */ +export interface ApplicationIdToWorkerIdMap extends BTreeMap {} + +/** @name ApplicationOf */ +export interface ApplicationOf extends Struct { + readonly role_account_id: GenericAccountId; + readonly opening_id: u64; + readonly member_id: MemberId; + readonly application_id: HiringApplicationId; +} + +/** @name ApplicationRationingPolicy */ +export interface ApplicationRationingPolicy extends Struct { + readonly max_active_applicants: u32; +} + +/** @name ApplicationStage */ +export interface ApplicationStage extends Enum { + readonly isActive: boolean; + readonly isUnstaking: boolean; + readonly asUnstaking: UnstakingApplicationStage; + readonly isInactive: boolean; + readonly asInactive: InactiveApplicationStage; +} + +/** @name Approved */ +export interface Approved extends Enum { + readonly isPendingExecution: boolean; + readonly isExecuted: boolean; + readonly isExecutionFailed: boolean; + readonly asExecutionFailed: ExecutionFailed; +} + +/** @name Backer */ +export interface Backer extends Struct { + readonly member: GenericAccountId; + readonly stake: u128; +} + +/** @name Backers */ +export interface Backers extends Vec {} + +/** @name BalanceOfMint */ +export interface BalanceOfMint extends Balance {} + +/** @name BlockAndTime */ +export interface BlockAndTime extends Struct { + readonly block: u32; + readonly time: u64; +} + +/** @name Category */ +export interface Category extends Struct { + readonly id: CategoryId; + readonly title: Text; + readonly description: Text; + readonly created_at: BlockAndTime; + readonly deleted: bool; + readonly archived: bool; + readonly num_direct_subcategories: u32; + readonly num_direct_unmoderated_threads: u32; + readonly num_direct_moderated_threads: u32; + readonly position_in_parent_category: Option; + readonly moderator_id: GenericAccountId; +} + +/** @name CategoryId */ +export interface CategoryId extends u64 {} + +/** @name Channel */ +export interface Channel extends Struct { + readonly verified: bool; + readonly handle: Text; + readonly title: OptionalText; + readonly description: OptionalText; + readonly avatar: OptionalText; + readonly banner: OptionalText; + readonly content: ChannelContentType; + readonly owner: MemberId; + readonly role_account: GenericAccountId; + readonly publication_status: ChannelPublicationStatus; + readonly curation_status: ChannelCurationStatus; + readonly created: u32; + readonly principal_id: u64; +} + +/** @name ChannelContentType */ +export interface ChannelContentType extends Enum { + readonly isVideo: boolean; + readonly isMusic: boolean; + readonly isEbook: boolean; +} + +/** @name ChannelCurationStatus */ +export interface ChannelCurationStatus extends Enum { + readonly isNormal: boolean; + readonly isCensored: boolean; +} + +/** @name ChannelId */ +export interface ChannelId extends u64 {} + +/** @name ChannelPublicationStatus */ +export interface ChannelPublicationStatus extends Enum { + readonly isPublic: boolean; + readonly isUnlisted: boolean; +} + +/** @name ChildPositionInParentCategory */ +export interface ChildPositionInParentCategory extends Struct { + readonly parent_id: CategoryId; + readonly child_nr_in_parent_category: u32; +} + +/** @name Class */ +export interface Class extends Struct { + readonly id: u64; + readonly properties: Vec; + readonly schemas: Vec; + readonly name: Text; + readonly description: Text; +} + +/** @name ClassId */ +export interface ClassId extends u64 {} + +/** @name ClassPermissionsType */ +export interface ClassPermissionsType extends Struct { + readonly entity_permissions: EntityPermissions; + readonly entities_can_be_created: bool; + readonly add_schemas: CredentialSet; + readonly create_entities: CredentialSet; + readonly reference_constraint: ReferenceConstraint; + readonly admins: CredentialSet; + readonly last_permissions_update: u32; +} + +/** @name ClassPropertyValue */ +export interface ClassPropertyValue extends Struct { + readonly in_class_index: u16; + readonly value: PropertyValue; +} + +/** @name ClassSchema */ +export interface ClassSchema extends Struct { + readonly properties: Vec; +} + +/** @name ContentId */ +export interface ContentId extends U8aFixed {} + +/** @name CreateEntity */ +export interface CreateEntity extends Struct { + readonly class_id: u64; +} + +/** @name Credential */ +export interface Credential extends u64 {} + +/** @name CredentialSet */ +export interface CredentialSet extends Vec {} + +/** @name CurationActor */ +export interface CurationActor extends Enum { + readonly isLead: boolean; + readonly isCurator: boolean; + readonly asCurator: u64; +} + +/** @name Curator */ +export interface Curator extends Struct { + readonly role_account: GenericAccountId; + readonly reward_relationship: Option; + readonly role_stake_profile: Option; + readonly stage: CuratorRoleStage; + readonly induction: CuratorInduction; + readonly principal_id: u64; +} + +/** @name CuratorApplication */ +export interface CuratorApplication extends Struct { + readonly role_account: GenericAccountId; + readonly curator_opening_id: u64; + readonly member_id: MemberId; + readonly application_id: HiringApplicationId; +} + +/** @name CuratorApplicationId */ +export interface CuratorApplicationId extends u64 {} + +/** @name CuratorApplicationIdSet */ +export interface CuratorApplicationIdSet extends Vec {} + +/** @name CuratorApplicationIdToCuratorIdMap */ +export interface CuratorApplicationIdToCuratorIdMap extends BTreeMap {} + +/** @name CuratorExitInitiationOrigin */ +export interface CuratorExitInitiationOrigin extends Enum { + readonly isLead: boolean; + readonly isCurator: boolean; +} + +/** @name CuratorExitSummary */ +export interface CuratorExitSummary extends Struct { + readonly origin: CuratorExitInitiationOrigin; + readonly initiated_at_block_number: u32; + readonly rationale_text: Text; +} + +/** @name CuratorId */ +export interface CuratorId extends u64 {} + +/** @name CuratorInduction */ +export interface CuratorInduction extends Struct { + readonly lead: u64; + readonly curator_application_id: u64; + readonly at_block: u32; +} + +/** @name CuratorOpening */ +export interface CuratorOpening extends Struct { + readonly opening_id: u64; + readonly curator_applications: Vec; + readonly policy_commitment: OpeningPolicyCommitment; +} + +/** @name CuratorOpeningId */ +export interface CuratorOpeningId extends u64 {} + +/** @name CuratorRoleStage */ +export interface CuratorRoleStage extends Enum { + readonly isActive: boolean; + readonly isUnstaking: boolean; + readonly asUnstaking: CuratorExitSummary; + readonly isExited: boolean; + readonly asExited: CuratorExitSummary; +} + +/** @name CuratorRoleStakeProfile */ +export interface CuratorRoleStakeProfile extends Struct { + readonly stake_id: u64; + readonly termination_unstaking_period: Option; + readonly exit_unstaking_period: Option; +} + +/** @name DataObject */ +export interface DataObject extends Struct { + readonly owner: MemberId; + readonly added_at: BlockAndTime; + readonly type_id: DataObjectTypeId; + readonly liaison: StorageProviderId; + readonly liaison_judgement: LiaisonJudgement; + readonly ipfs_content_id: Text; +} + +/** @name DataObjectsMap */ +export interface DataObjectsMap extends BTreeMap {} + +/** @name DataObjectStorageRelationship */ +export interface DataObjectStorageRelationship extends Struct { + readonly content_id: ContentId; + readonly storage_provider: StorageProviderId; + readonly ready: bool; +} + +/** @name DataObjectStorageRelationshipId */ +export interface DataObjectStorageRelationshipId extends u64 {} + +/** @name DataObjectType */ +export interface DataObjectType extends Struct { + readonly description: Text; + readonly active: bool; +} + +/** @name DataObjectTypeId */ +export interface DataObjectTypeId extends u64 {} + +/** @name Deactivated */ +export interface Deactivated extends Struct { + readonly cause: OpeningDeactivationCause; + readonly deactivated_at_block: u32; + readonly started_accepting_applicants_at_block: u32; + readonly started_review_period_at_block: Option; +} + +/** @name DiscussionPost */ +export interface DiscussionPost extends Struct { + readonly text: Bytes; + readonly created_at: u32; + readonly updated_at: u32; + readonly author_id: MemberId; + readonly thread_id: ThreadId; + readonly edition_number: u32; +} + +/** @name DiscussionThread */ +export interface DiscussionThread extends Struct { + readonly title: Bytes; + readonly created_at: u32; + readonly author_id: MemberId; +} + +/** @name ElectionParameters */ +export interface ElectionParameters extends Struct { + readonly announcing_period: u32; + readonly voting_period: u32; + readonly revealing_period: u32; + readonly council_size: u32; + readonly candidacy_limit: u32; + readonly new_term_duration: u32; + readonly min_council_stake: u128; + readonly min_voting_stake: u128; +} + +/** @name ElectionStage */ +export interface ElectionStage extends Enum { + readonly isAnnouncing: boolean; + readonly asAnnouncing: u32; + readonly isVoting: boolean; + readonly asVoting: u32; + readonly isRevealing: boolean; + readonly asRevealing: u32; +} + +/** @name ElectionStake */ +export interface ElectionStake extends Struct { + readonly new: u128; + readonly transferred: u128; +} + +/** @name Entity */ +export interface Entity extends Struct { + readonly id: u64; + readonly class_id: u64; + readonly in_class_schema_indexes: Vec; +} + +/** @name EntityId */ +export interface EntityId extends u64 {} + +/** @name EntityPermissions */ +export interface EntityPermissions extends Struct { + readonly update: CredentialSet; + readonly maintainer_has_all_permissions: bool; +} + +/** @name EntryMethod */ +export interface EntryMethod extends Enum { + readonly isPaid: boolean; + readonly asPaid: u64; + readonly isScreening: boolean; + readonly asScreening: AccountId; + readonly isGenesis: boolean; +} + +/** @name ExecutionFailed */ +export interface ExecutionFailed extends Struct { + readonly error: Bytes; +} + +/** @name ExitedLeadRole */ +export interface ExitedLeadRole extends Struct { + readonly initiated_at_block_number: u32; +} + +/** @name FillOpeningParameters */ +export interface FillOpeningParameters extends Struct { + readonly opening_id: u64; + readonly successful_application_id: HiringApplicationId; + readonly reward_policy: Option; + readonly working_group: WorkingGroup; +} + +/** @name Finalized */ +export interface Finalized extends Struct { + readonly proposalStatus: ProposalDecisionStatus; + readonly finalizedAt: u32; + readonly encodedUnstakingErrorDueToBrokenRuntime: Option; + readonly stakeDataAfterUnstakingError: Option; +} + +/** @name HiringApplicationId */ +export interface HiringApplicationId extends u64 {} + +/** @name InactiveApplicationStage */ +export interface InactiveApplicationStage extends Struct { + readonly deactivation_initiated: u32; + readonly deactivated: u32; + readonly cause: ApplicationDeactivationCause; +} + +/** @name InputValidationLengthConstraint */ +export interface InputValidationLengthConstraint extends Struct { + readonly min: u16; + readonly max_min_diff: u16; +} + +/** @name IPNSIdentity */ +export interface IPNSIdentity extends Text {} + +/** @name Lead */ +export interface Lead extends Struct { + readonly member_id: MemberId; + readonly role_account: GenericAccountId; + readonly reward_relationship: Option; + readonly inducted: u32; + readonly stage: LeadRoleState; +} + +/** @name LeadId */ +export interface LeadId extends u64 {} + +/** @name LeadRoleState */ +export interface LeadRoleState extends Enum { + readonly isActive: boolean; + readonly isExited: boolean; + readonly asExited: ExitedLeadRole; +} + +/** @name LiaisonJudgement */ +export interface LiaisonJudgement extends Enum { + readonly isPending: boolean; + readonly isAccepted: boolean; + readonly isRejected: boolean; +} + +/** @name LookupSource */ +export interface LookupSource extends AccountId {} + +/** @name MemberId */ +export interface MemberId extends u64 {} + +/** @name Membership */ +export interface Membership extends Struct { + readonly handle: Text; + readonly avatar_uri: Text; + readonly about: Text; + readonly registered_at_block: u32; + readonly registered_at_time: u64; + readonly entry: EntryMethod; + readonly suspended: bool; + readonly subscription: Option; + readonly root_account: GenericAccountId; + readonly controller_account: GenericAccountId; +} + +/** @name MemoText */ +export interface MemoText extends Text {} + +/** @name Mint */ +export interface Mint extends Struct { + readonly capacity: u128; + readonly next_adjustment: Option; + readonly created_at: u32; + readonly total_minted: u128; +} + +/** @name MintBalanceOf */ +export interface MintBalanceOf extends Balance {} + +/** @name MintId */ +export interface MintId extends u64 {} + +/** @name ModerationAction */ +export interface ModerationAction extends Struct { + readonly moderated_at: BlockAndTime; + readonly moderator_id: GenericAccountId; + readonly rationale: Text; +} + +/** @name NextAdjustment */ +export interface NextAdjustment extends Struct { + readonly adjustment: AdjustOnInterval; + readonly at_block: u32; +} + +/** @name Opening */ +export interface Opening extends Struct { + readonly created: u32; + readonly stage: OpeningStage; + readonly max_review_period_length: u32; + readonly application_rationing_policy: Option; + readonly application_staking_policy: Option; + readonly role_staking_policy: Option; + readonly human_readable_text: Text; +} + +/** @name OpeningDeactivationCause */ +export interface OpeningDeactivationCause extends Enum { + readonly isCancelledBeforeActivation: boolean; + readonly isCancelledAcceptingApplications: boolean; + readonly isCancelledInReviewPeriod: boolean; + readonly isReviewPeriodExpired: boolean; + readonly isFilled: boolean; +} + +/** @name OpeningId */ +export interface OpeningId extends u64 {} + +/** @name OpeningOf */ +export interface OpeningOf extends Struct { + readonly hiring_opening_id: u64; + readonly applications: Vec; + readonly policy_commitment: WorkingGroupOpeningPolicyCommitment; + readonly opening_type: OpeningType; +} + +/** @name OpeningPolicyCommitment */ +export interface OpeningPolicyCommitment extends Struct { + readonly application_rationing_policy: Option; + readonly max_review_period_length: u32; + readonly application_staking_policy: Option; + readonly role_staking_policy: Option; + readonly role_slashing_terms: SlashingTerms; + readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option; + readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option; + readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option; + readonly terminate_curator_application_stake_unstaking_period: Option; + readonly terminate_curator_role_stake_unstaking_period: Option; + readonly exit_curator_role_application_stake_unstaking_period: Option; + readonly exit_curator_role_stake_unstaking_period: Option; +} + +/** @name OpeningStage */ +export interface OpeningStage extends Enum { + readonly isWaitingToBegin: boolean; + readonly asWaitingToBegin: WaitingToBeingOpeningStageVariant; + readonly isActive: boolean; + readonly asActive: ActiveOpeningStageVariant; +} + +/** @name OpeningType */ +export interface OpeningType extends Enum { + readonly isLeader: boolean; + readonly isWorker: boolean; +} + +/** @name Operation */ +export interface Operation extends Struct { + readonly with_credential: Option; + readonly as_entity_maintainer: bool; + readonly operation_type: OperationType; +} + +/** @name OperationType */ +export interface OperationType extends Enum { + readonly isCreateEntity: boolean; + readonly asCreateEntity: CreateEntity; + readonly isUpdatePropertyValues: boolean; + readonly asUpdatePropertyValues: UpdatePropertyValues; + readonly isAddSchemaSupportToEntity: boolean; + readonly asAddSchemaSupportToEntity: AddSchemaSupportToEntity; +} + +/** @name OptionalText */ +export interface OptionalText extends Option {} + +/** @name PaidMembershipTerms */ +export interface PaidMembershipTerms extends Struct { + readonly fee: u128; + readonly text: Text; +} + +/** @name PaidTermId */ +export interface PaidTermId extends u64 {} + +/** @name ParametrizedClassPropertyValue */ +export interface ParametrizedClassPropertyValue extends Struct { + readonly in_class_index: u16; + readonly value: ParametrizedPropertyValue; +} + +/** @name ParametrizedEntity */ +export interface ParametrizedEntity extends Enum { + readonly isInternalEntityJustAdded: boolean; + readonly asInternalEntityJustAdded: u32; + readonly isExistingEntity: boolean; + readonly asExistingEntity: u64; +} + +/** @name ParametrizedPropertyValue */ +export interface ParametrizedPropertyValue extends Enum { + readonly isPropertyValue: boolean; + readonly asPropertyValue: PropertyValue; + readonly isInternalEntityJustAdded: boolean; + readonly asInternalEntityJustAdded: u32; + readonly isInternalEntityVec: boolean; + readonly asInternalEntityVec: Vec; +} + +/** @name Post */ +export interface Post extends Struct { + readonly id: PostId; + readonly thread_id: ThreadId; + readonly nr_in_thread: u32; + readonly current_text: Text; + readonly moderation: Option; + readonly text_change_history: Vec; + readonly created_at: BlockAndTime; + readonly author_id: GenericAccountId; +} + +/** @name PostId */ +export interface PostId extends u64 {} + +/** @name PostTextChange */ +export interface PostTextChange extends Struct { + readonly expired_at: BlockAndTime; + readonly text: Text; +} + +/** @name Principal */ +export interface Principal extends Enum { + readonly isLead: boolean; + readonly isCurator: boolean; + readonly asCurator: u64; + readonly isChannelOwner: boolean; + readonly asChannelOwner: u64; +} + +/** @name PrincipalId */ +export interface PrincipalId extends u64 {} + +/** @name Property */ +export interface Property extends Struct { + readonly prop_type: PropertyType; + readonly required: bool; + readonly name: Text; + readonly description: Text; +} + +/** @name PropertyOfClass */ +export interface PropertyOfClass extends Struct { + readonly class_id: u64; + readonly property_index: u16; +} + +/** @name PropertyType */ +export interface PropertyType extends Enum { + readonly isNone: boolean; + readonly isBool: boolean; + readonly isUint16: boolean; + readonly isUint32: boolean; + readonly isUint64: boolean; + readonly isInt16: boolean; + readonly isInt32: boolean; + readonly isInt64: boolean; + readonly isText: boolean; + readonly asText: u16; + readonly isInternal: boolean; + readonly asInternal: u64; + readonly isBoolVec: boolean; + readonly asBoolVec: u16; + readonly isUint16Vec: boolean; + readonly asUint16Vec: u16; + readonly isUint32Vec: boolean; + readonly asUint32Vec: u16; + readonly isUint64Vec: boolean; + readonly asUint64Vec: u16; + readonly isInt16Vec: boolean; + readonly asInt16Vec: u16; + readonly isInt32Vec: boolean; + readonly asInt32Vec: u16; + readonly isInt64Vec: boolean; + readonly asInt64Vec: u16; + readonly isTextVec: boolean; + readonly asTextVec: ITuple<[u16, u16]>; + readonly isInternalVec: boolean; + readonly asInternalVec: ITuple<[u16, u64]>; +} + +/** @name PropertyValue */ +export interface PropertyValue extends Enum { + readonly isNone: boolean; + readonly isBool: boolean; + readonly asBool: bool; + readonly isUint16: boolean; + readonly asUint16: u16; + readonly isUint32: boolean; + readonly asUint32: u32; + readonly isUint64: boolean; + readonly asUint64: u64; + readonly isInt16: boolean; + readonly asInt16: i16; + readonly isInt32: boolean; + readonly asInt32: i32; + readonly isInt64: boolean; + readonly asInt64: i64; + readonly isText: boolean; + readonly asText: Text; + readonly isInternal: boolean; + readonly asInternal: u64; + readonly isBoolVec: boolean; + readonly asBoolVec: Vec; + readonly isUint16Vec: boolean; + readonly asUint16Vec: Vec; + readonly isUint32Vec: boolean; + readonly asUint32Vec: Vec; + readonly isUint64Vec: boolean; + readonly asUint64Vec: Vec; + readonly isInt16Vec: boolean; + readonly asInt16Vec: Vec; + readonly isInt32Vec: boolean; + readonly asInt32Vec: Vec; + readonly isInt64Vec: boolean; + readonly asInt64Vec: Vec; + readonly isTextVec: boolean; + readonly asTextVec: Vec; + readonly isInternalVec: boolean; + readonly asInternalVec: Vec; +} + +/** @name ProposalDecisionStatus */ +export interface ProposalDecisionStatus extends Enum { + readonly isCanceled: boolean; + readonly isVetoed: boolean; + readonly isRejected: boolean; + readonly isSlashed: boolean; + readonly isExpired: boolean; + readonly isApproved: boolean; + readonly asApproved: Approved; +} + +/** @name ProposalDetails */ +export interface ProposalDetails extends Enum { + readonly isText: boolean; + readonly asText: Text; + readonly isRuntimeUpgrade: boolean; + readonly asRuntimeUpgrade: Bytes; + readonly isSetElectionParameters: boolean; + readonly asSetElectionParameters: ElectionParameters; + readonly isSpending: boolean; + readonly asSpending: ITuple<[Balance, AccountId]>; + readonly isSetLead: boolean; + readonly asSetLead: Option; + readonly isSetContentWorkingGroupMintCapacity: boolean; + readonly asSetContentWorkingGroupMintCapacity: u128; + readonly isEvictStorageProvider: boolean; + readonly asEvictStorageProvider: GenericAccountId; + readonly isSetValidatorCount: boolean; + readonly asSetValidatorCount: u32; + readonly isSetStorageRoleParameters: boolean; + readonly asSetStorageRoleParameters: RoleParameters; + readonly isAddWorkingGroupLeaderOpening: boolean; + readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters; + readonly isBeginReviewWorkingGroupLeaderApplication: boolean; + readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[u64, WorkingGroup]>; + readonly isFillWorkingGroupLeaderOpening: boolean; + readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters; + readonly isSetWorkingGroupMintCapacity: boolean; + readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>; + readonly isDecreaseWorkingGroupLeaderStake: boolean; + readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isSlashWorkingGroupLeaderStake: boolean; + readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isSetWorkingGroupLeaderReward: boolean; + readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isTerminateWorkingGroupLeaderRole: boolean; + readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters; +} + +/** @name ProposalDetailsOf */ +export interface ProposalDetailsOf extends Enum { + readonly isText: boolean; + readonly asText: Text; + readonly isRuntimeUpgrade: boolean; + readonly asRuntimeUpgrade: Bytes; + readonly isSetElectionParameters: boolean; + readonly asSetElectionParameters: ElectionParameters; + readonly isSpending: boolean; + readonly asSpending: ITuple<[Balance, AccountId]>; + readonly isSetLead: boolean; + readonly asSetLead: Option; + readonly isSetContentWorkingGroupMintCapacity: boolean; + readonly asSetContentWorkingGroupMintCapacity: u128; + readonly isEvictStorageProvider: boolean; + readonly asEvictStorageProvider: GenericAccountId; + readonly isSetValidatorCount: boolean; + readonly asSetValidatorCount: u32; + readonly isSetStorageRoleParameters: boolean; + readonly asSetStorageRoleParameters: RoleParameters; + readonly isAddWorkingGroupLeaderOpening: boolean; + readonly asAddWorkingGroupLeaderOpening: AddOpeningParameters; + readonly isBeginReviewWorkingGroupLeaderApplication: boolean; + readonly asBeginReviewWorkingGroupLeaderApplication: ITuple<[u64, WorkingGroup]>; + readonly isFillWorkingGroupLeaderOpening: boolean; + readonly asFillWorkingGroupLeaderOpening: FillOpeningParameters; + readonly isSetWorkingGroupMintCapacity: boolean; + readonly asSetWorkingGroupMintCapacity: ITuple<[Balance, WorkingGroup]>; + readonly isDecreaseWorkingGroupLeaderStake: boolean; + readonly asDecreaseWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isSlashWorkingGroupLeaderStake: boolean; + readonly asSlashWorkingGroupLeaderStake: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isSetWorkingGroupLeaderReward: boolean; + readonly asSetWorkingGroupLeaderReward: ITuple<[WorkerId, Balance, WorkingGroup]>; + readonly isTerminateWorkingGroupLeaderRole: boolean; + readonly asTerminateWorkingGroupLeaderRole: TerminateRoleParameters; +} + +/** @name ProposalId */ +export interface ProposalId extends u32 {} + +/** @name ProposalOf */ +export interface ProposalOf extends Struct { + readonly parameters: ProposalParameters; + readonly proposerId: MemberId; + readonly title: Text; + readonly description: Text; + readonly createdAt: u32; + readonly status: ProposalStatus; + readonly votingResults: VotingResults; +} + +/** @name ProposalParameters */ +export interface ProposalParameters extends Struct { + readonly votingPeriod: u32; + readonly gracePeriod: u32; + readonly approvalQuorumPercentage: u32; + readonly approvalThresholdPercentage: u32; + readonly slashingQuorumPercentage: u32; + readonly slashingThresholdPercentage: u32; + readonly requiredStake: Option; +} + +/** @name ProposalStatus */ +export interface ProposalStatus extends Enum { + readonly isActive: boolean; + readonly asActive: Option; + readonly isFinalized: boolean; + readonly asFinalized: Finalized; +} + +/** @name RationaleText */ +export interface RationaleText extends Bytes {} + +/** @name Recipient */ +export interface Recipient extends Struct { + readonly total_reward_received: u128; + readonly total_reward_missed: u128; +} + +/** @name RecipientId */ +export interface RecipientId extends u64 {} + +/** @name ReferenceConstraint */ +export interface ReferenceConstraint extends Enum { + readonly isNoReferencingAllowed: boolean; + readonly isNoConstraint: boolean; + readonly isRestricted: boolean; + readonly asRestricted: Vec; +} + +/** @name Reply */ +export interface Reply extends Struct { + readonly owner: GenericAccountId; + readonly thread_id: ThreadId; + readonly text: Text; + readonly moderation: Option; +} + +/** @name ReplyId */ +export interface ReplyId extends u64 {} + +/** @name ReviewPeriod */ +export interface ReviewPeriod extends Struct { + readonly started_accepting_applicants_at_block: u32; + readonly started_review_period_at_block: u32; +} + +/** @name RewardPolicy */ +export interface RewardPolicy extends Struct { + readonly amount_per_payout: u128; + readonly next_payment_at_block: u32; + readonly payout_interval: Option; +} + +/** @name RewardRelationship */ +export interface RewardRelationship extends Struct { + readonly recipient: u64; + readonly mint_id: u64; + readonly account: GenericAccountId; + readonly amount_per_payout: u128; + readonly next_payment_at_block: Option; + readonly payout_interval: Option; + readonly total_reward_received: u128; + readonly total_reward_missed: u128; +} + +/** @name RewardRelationshipId */ +export interface RewardRelationshipId extends u64 {} + +/** @name RoleParameters */ +export interface RoleParameters extends Struct { + readonly min_stake: u128; + readonly min_actors: u32; + readonly max_actors: u32; + readonly reward: u128; + readonly reward_period: u32; + readonly bonding_period: u32; + readonly unbonding_period: u32; + readonly min_service_period: u32; + readonly startup_grace_period: u32; + readonly entry_request_fee: u128; +} + +/** @name RoleStakeProfile */ +export interface RoleStakeProfile extends Struct { + readonly stake_id: u64; + readonly termination_unstaking_period: Option; + readonly exit_unstaking_period: Option; +} + +/** @name SealedVote */ +export interface SealedVote extends Struct { + readonly voter: GenericAccountId; + readonly commitment: U8aFixed; + readonly stake: ElectionStake; + readonly vote: Option; +} + +/** @name Seat */ +export interface Seat extends Struct { + readonly member: GenericAccountId; + readonly stake: u128; + readonly backers: Backers; +} + +/** @name Seats */ +export interface Seats extends Vec {} + +/** @name ServiceProviderRecord */ +export interface ServiceProviderRecord extends Struct { + readonly identity: IPNSIdentity; + readonly expires_at: u32; +} + +/** @name SetLeadParams */ +export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {} + +/** @name Slash */ +export interface Slash extends Struct { + readonly started_at_block: u32; + readonly is_active: bool; + readonly blocks_remaining_in_active_period_for_slashing: u32; + readonly slash_amount: u128; +} + +/** @name SlashableTerms */ +export interface SlashableTerms extends Struct { + readonly max_count: u16; + readonly max_percent_pts_per_time: u16; +} + +/** @name SlashingTerms */ +export interface SlashingTerms extends Enum { + readonly isUnslashable: boolean; + readonly isSlashable: boolean; + readonly asSlashable: SlashableTerms; +} + +/** @name Stake */ +export interface Stake extends Struct { + readonly created: u32; + readonly staking_status: StakingStatus; +} + +/** @name Staked */ +export interface Staked extends Struct { + readonly staked_amount: u128; + readonly staked_status: StakedStatus; + readonly next_slash_id: u64; + readonly ongoing_slashes: BTreeMap; +} + +/** @name StakedStatus */ +export interface StakedStatus extends Enum { + readonly isNormal: boolean; + readonly isUnstaking: boolean; + readonly asUnstaking: Unstaking; +} + +/** @name StakeId */ +export interface StakeId extends u64 {} + +/** @name StakingAmountLimitMode */ +export interface StakingAmountLimitMode extends Enum { + readonly isAtLeast: boolean; + readonly isExact: boolean; +} + +/** @name StakingPolicy */ +export interface StakingPolicy extends Struct { + readonly amount: u128; + readonly amount_mode: StakingAmountLimitMode; + readonly crowded_out_unstaking_period_length: Option; + readonly review_period_expired_unstaking_period_length: Option; +} + +/** @name StakingStatus */ +export interface StakingStatus extends Enum { + readonly isNotStaked: boolean; + readonly isStaked: boolean; + readonly asStaked: Staked; +} + +/** @name StorageProviderId */ +export interface StorageProviderId extends u64 {} + +/** @name SubscriptionId */ +export interface SubscriptionId extends u64 {} + +/** @name TerminateRoleParameters */ +export interface TerminateRoleParameters extends Struct { + readonly worker_id: WorkerId; + readonly rationale: Bytes; + readonly slash: bool; + readonly working_group: WorkingGroup; +} + +/** @name Thread */ +export interface Thread extends Struct { + readonly id: ThreadId; + readonly title: Text; + readonly category_id: CategoryId; + readonly nr_in_category: u32; + readonly moderation: Option; + readonly num_unmoderated_posts: u32; + readonly num_moderated_posts: u32; + readonly created_at: BlockAndTime; + readonly author_id: GenericAccountId; +} + +/** @name ThreadCounter */ +export interface ThreadCounter extends Struct { + readonly author_id: MemberId; + readonly counter: u32; +} + +/** @name ThreadId */ +export interface ThreadId extends u64 {} + +/** @name TransferableStake */ +export interface TransferableStake extends Struct { + readonly seat: u128; + readonly backing: u128; +} + +/** @name Unstaking */ +export interface Unstaking extends Struct { + readonly started_at_block: u32; + readonly is_active: bool; + readonly blocks_remaining_in_active_period_for_unstaking: u32; +} + +/** @name UnstakingApplicationStage */ +export interface UnstakingApplicationStage extends Struct { + readonly deactivation_initiated: u32; + readonly cause: ApplicationDeactivationCause; +} + +/** @name UpdatePropertyValues */ +export interface UpdatePropertyValues extends Struct { + readonly entity_id: ParametrizedEntity; + readonly parametrized_property_values: Vec; +} + +/** @name Url */ +export interface Url extends Text {} + +/** @name VoteKind */ +export interface VoteKind extends Enum { + readonly isApprove: boolean; + readonly isReject: boolean; + readonly isSlash: boolean; + readonly isAbstain: boolean; +} + +/** @name VotingResults */ +export interface VotingResults extends Struct { + readonly abstensions: u32; + readonly approvals: u32; + readonly rejections: u32; + readonly slashes: u32; +} + +/** @name WaitingToBeingOpeningStageVariant */ +export interface WaitingToBeingOpeningStageVariant extends Struct { + readonly begins_at_block: u32; +} + +/** @name WorkerId */ +export interface WorkerId extends u64 {} + +/** @name WorkerOf */ +export interface WorkerOf extends Struct { + readonly member_id: MemberId; + readonly role_account_id: GenericAccountId; + readonly reward_relationship: Option; + readonly role_stake_profile: Option; +} + +/** @name WorkingGroup */ +export interface WorkingGroup extends Enum { + readonly isStorage: boolean; +} + +/** @name WorkingGroupOpeningPolicyCommitment */ +export interface WorkingGroupOpeningPolicyCommitment extends Struct { + readonly application_rationing_policy: Option; + readonly max_review_period_length: u32; + readonly application_staking_policy: Option; + readonly role_staking_policy: Option; + readonly role_slashing_terms: SlashingTerms; + readonly fill_opening_successful_applicant_application_stake_unstaking_period: Option; + readonly fill_opening_failed_applicant_application_stake_unstaking_period: Option; + readonly fill_opening_failed_applicant_role_stake_unstaking_period: Option; + readonly terminate_application_stake_unstaking_period: Option; + readonly terminate_role_stake_unstaking_period: Option; + readonly exit_role_application_stake_unstaking_period: Option; + readonly exit_role_stake_unstaking_period: Option; +} + +/** @name WorkingGroupUnstaker */ +export interface WorkingGroupUnstaker extends Enum { + readonly isLead: boolean; + readonly asLead: u64; + readonly isCurator: boolean; + readonly asCurator: u64; +} + +export type PHANTOM_ALL = 'all'; diff --git a/types/augment/augment-api-consts.ts b/types/augment/augment-api-consts.ts new file mode 100644 index 0000000000..0e7f33ac72 --- /dev/null +++ b/types/augment/augment-api-consts.ts @@ -0,0 +1,197 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import { Vec } from '@polkadot/types/codec'; +import { u32, u64 } from '@polkadot/types/primitive'; +import { Balance, BalanceOf, BlockNumber, Moment, Perbill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime'; +import { SessionIndex } from '@polkadot/types/interfaces/session'; +import { EraIndex } from '@polkadot/types/interfaces/staking'; +import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; + +declare module '@polkadot/metadata/Decorated/consts/types' { + export interface Constants { + babe: { + /** + * The number of **slots** that an epoch takes. We couple sessions to + * epochs, i.e. we start a new session once the new epoch begins. + **/ + epochDuration: AugmentedConst; + /** + * The expected average block time at which BABE should be creating + * blocks. Since BABE is probabilistic it is not trivial to figure out + * what the expected average block time should be based on the slot + * duration and the security parameter `c` (where `1 - c` represents + * the probability of a slot being empty). + **/ + expectedBlockTime: AugmentedConst; + }; + balances: { + /** + * The minimum amount required to keep an account open. + **/ + existentialDeposit: AugmentedConst; + }; + dataDirectory: { + /** + * Maximum objects allowed per inject_data_objects() transaction + **/ + maxObjectsPerInjection: AugmentedConst; + }; + finalityTracker: { + /** + * The delay after which point things become suspicious. Default is 1000. + **/ + reportLatency: AugmentedConst; + /** + * The number of recent samples to keep from this chain. Default is 101. + **/ + windowSize: AugmentedConst; + }; + proposalsCodex: { + /** + * Exports max wasm code length of the runtime upgrade proposal const. + **/ + runtimeUpgradeWasmProposalMaxLength: AugmentedConst; + /** + * Exports max allowed text proposal length const. + **/ + textProposalMaxLength: AugmentedConst; + }; + proposalsDiscussion: { + /** + * Exports post edition number limit const. + **/ + maxPostEditionNumber: AugmentedConst; + /** + * Exports max thread by same author in a row number limit const. + **/ + maxThreadInARowNumber: AugmentedConst; + /** + * Exports post length limit const. + **/ + postLengthLimit: AugmentedConst; + /** + * Exports thread title length limit const. + **/ + threadTitleLengthLimit: AugmentedConst; + }; + proposalsEngine: { + /** + * Exports const - the fee is applied when cancel the proposal. A fee would be slashed (burned). + **/ + cancellationFee: AugmentedConst; + /** + * Exports const - max allowed proposal description length. + **/ + descriptionMaxLength: AugmentedConst; + /** + * Exports const - max simultaneous active proposals number. + **/ + maxActiveProposalLimit: AugmentedConst; + /** + * Exports const - the fee is applied when the proposal gets rejected. A fee would be slashed (burned). + **/ + rejectionFee: AugmentedConst; + /** + * Exports const - max allowed proposal title length. + **/ + titleMaxLength: AugmentedConst; + }; + staking: { + /** + * Number of eras that staked funds must remain bonded for. + **/ + bondingDuration: AugmentedConst; + /** + * The number of blocks before the end of the era from which election submissions are allowed. + * + * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will + * be used. + * + * This is bounded by being within the last session. Hence, setting it to a value more than the + * length of a session will be pointless. + **/ + electionLookahead: AugmentedConst; + /** + * Maximum number of balancing iterations to run in the offchain submission. + * + * If set to 0, balance_solution will not be executed at all. + **/ + maxIterations: AugmentedConst; + /** + * The maximum number of nominators rewarded for each validator. + * + * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim + * their reward. This used to limit the i/o cost for the nominator payout. + **/ + maxNominatorRewardedPerValidator: AugmentedConst; + /** + * The threshold of improvement that should be provided for a new solution to be accepted. + **/ + minSolutionScoreBump: AugmentedConst; + /** + * Number of sessions per era. + **/ + sessionsPerEra: AugmentedConst; + /** + * Number of eras that slashes are deferred by, after computation. + * + * This should be less than the bonding duration. + * Set to 0 if slashes should be applied immediately, without opportunity for + * intervention. + **/ + slashDeferDuration: AugmentedConst; + }; + storageWorkingGroup: { + /** + * Exports const - max simultaneous active worker number. + **/ + maxWorkerNumberLimit: AugmentedConst; + }; + system: { + /** + * The base weight of executing a block, independent of the transactions in the block. + **/ + blockExecutionWeight: AugmentedConst; + /** + * The maximum number of blocks to allow in mortal eras. + **/ + blockHashCount: AugmentedConst; + /** + * The weight of runtime database operations the runtime can invoke. + **/ + dbWeight: AugmentedConst; + /** + * The base weight of an Extrinsic in the block, independent of the of extrinsic being executed. + **/ + extrinsicBaseWeight: AugmentedConst; + /** + * The maximum length of a block (in bytes). + **/ + maximumBlockLength: AugmentedConst; + /** + * The maximum weight of a block. + **/ + maximumBlockWeight: AugmentedConst; + }; + timestamp: { + /** + * The minimum period between blocks. Beware that this is different to the *expected* period + * that the block production apparatus provides. Your chosen consensus system will generally + * work with this to determine a sensible block time. e.g. For Aura, it will be double this + * period on default settings. + **/ + minimumPeriod: AugmentedConst; + }; + transactionPayment: { + /** + * The fee to be paid for making a transaction; the per-byte portion. + **/ + transactionByteFee: AugmentedConst; + /** + * The polynomial that is applied in order to derive fee from weight. + **/ + weightToFee: AugmentedConst>; + }; + } +} diff --git a/types/augment/augment-api-query.ts b/types/augment/augment-api-query.ts new file mode 100644 index 0000000000..34a34091c7 --- /dev/null +++ b/types/augment/augment-api-query.ts @@ -0,0 +1,1124 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import { AnyNumber, ITuple, Observable } from '@polkadot/types/types'; +import { Option, Vec } from '@polkadot/types/codec'; +import { Bytes, bool, u32, u64 } from '@polkadot/types/primitive'; +import { Application, ApplicationId, ApplicationOf, Category, CategoryId, Channel, ChannelId, Class, ClassId, ClassPermissionsType, ContentId, Credential, Curator, CuratorApplication, CuratorApplicationId, CuratorId, CuratorOpening, CuratorOpeningId, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DiscussionPost, DiscussionThread, ElectionStage, ElectionStake, Entity, EntityId, HiringApplicationId, InputValidationLengthConstraint, Lead, LeadId, MemberId, Membership, MemoText, Mint, MintId, Opening, OpeningId, OpeningOf, PaidMembershipTerms, PaidTermId, Post, PostId, Principal, PrincipalId, ProposalDetailsOf, ProposalId, ProposalOf, Recipient, RecipientId, RewardRelationship, RewardRelationshipId, SealedVote, Seats, ServiceProviderRecord, Stake, StakeId, StorageProviderId, Thread, ThreadCounter, ThreadId, TransferableStake, Url, VoteKind, WorkerId, WorkerOf, WorkingGroupUnstaker } from './all'; +import { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; +import { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe'; +import { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances'; +import { AuthorityId } from '@polkadot/types/interfaces/consensus'; +import { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; +import { AuthIndex } from '@polkadot/types/interfaces/imOnline'; +import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences'; +import { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime'; +import { Keys, SessionIndex } from '@polkadot/types/interfaces/session'; +import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; +import { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system'; +import { Multiplier } from '@polkadot/types/interfaces/txpayment'; +import { ApiTypes } from '@polkadot/api/types'; + +declare module '@polkadot/api/types/storage' { + export interface AugmentedQueries { + authorship: { + /** + * Author of current block. + **/ + author: AugmentedQuery Observable>>; + /** + * Whether uncles were already set in this block. + **/ + didSetUncles: AugmentedQuery Observable>; + /** + * Uncles + **/ + uncles: AugmentedQuery Observable>>; + }; + babe: { + /** + * Current epoch authorities. + **/ + authorities: AugmentedQuery Observable>>>; + /** + * Current slot number. + **/ + currentSlot: AugmentedQuery Observable>; + /** + * Current epoch index. + **/ + epochIndex: AugmentedQuery Observable>; + /** + * The slot at which the first epoch actually started. This is 0 + * until the first block of the chain. + **/ + genesisSlot: AugmentedQuery Observable>; + /** + * Temporary value (cleared at block finalization) which is `Some` + * if per-block initialization has already been called for current block. + **/ + initialized: AugmentedQuery Observable>>; + /** + * How late the current block is compared to its parent. + * + * This entry is populated as part of block execution and is cleaned up + * on block finalization. Querying this storage entry outside of block + * execution context should always yield zero. + **/ + lateness: AugmentedQuery Observable>; + /** + * Next epoch configuration, if changed. + **/ + nextEpochConfig: AugmentedQuery Observable>>; + /** + * Next epoch randomness. + **/ + nextRandomness: AugmentedQuery Observable>; + /** + * The epoch randomness for the *current* epoch. + * + * # Security + * + * This MUST NOT be used for gambling, as it can be influenced by a + * malicious validator in the short term. It MAY be used in many + * cryptographic protocols, however, so long as one remembers that this + * (like everything else on-chain) it is public. For example, it can be + * used where a number is needed that cannot have been chosen by an + * adversary, for purposes such as public-coin zero-knowledge proofs. + **/ + randomness: AugmentedQuery Observable>; + /** + * Randomness under construction. + * + * We make a tradeoff between storage accesses and list length. + * We store the under-construction randomness in segments of up to + * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`. + * + * Once a segment reaches this length, we begin the next one. + * We reset all segments and return to `0` at the beginning of every + * epoch. + **/ + segmentIndex: AugmentedQuery Observable>; + /** + * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. + **/ + underConstruction: AugmentedQuery Observable>>; + }; + balances: { + /** + * The balance of an account. + * + * NOTE: This is only used in the case that this module is used to store balances. + **/ + account: AugmentedQuery Observable>; + /** + * Any liquidity locks on some account balances. + * NOTE: Should only be accessed when setting, changing and freeing a lock. + **/ + locks: AugmentedQuery Observable>>; + /** + * Storage version of the pallet. + * + * This is set to v2.0.0 for new networks. + **/ + storageVersion: AugmentedQuery Observable>; + /** + * The total units issued in the system. + **/ + totalIssuance: AugmentedQuery Observable>; + }; + contentWorkingGroup: { + channelAvatarConstraint: AugmentedQuery Observable>; + channelBannerConstraint: AugmentedQuery Observable>; + /** + * Maps identifier to corresponding channel. + **/ + channelById: AugmentedQuery Observable>; + /** + * Whether it is currently possible to create a channel via `create_channel` extrinsic. + **/ + channelCreationEnabled: AugmentedQuery Observable>; + channelDescriptionConstraint: AugmentedQuery Observable>; + channelHandleConstraint: AugmentedQuery Observable>; + /** + * Maps (unique) channel handle to the corresponding identifier for the channel. + * Mapping is required to allow efficient (O(log N)) on-chain verification that a proposed handle is indeed unique + * at the time it is being proposed. + **/ + channelIdByHandle: AugmentedQuery Observable>; + channelTitleConstraint: AugmentedQuery Observable>; + /** + * Maps identifier to curator application on opening. + **/ + curatorApplicationById: AugmentedQuery Observable>; + curatorApplicationHumanReadableText: AugmentedQuery Observable>; + /** + * Maps identifier to corresponding curator. + **/ + curatorById: AugmentedQuery Observable>; + curatorExitRationaleText: AugmentedQuery Observable>; + /** + * Maps identifeir to curator opening. + **/ + curatorOpeningById: AugmentedQuery Observable>; + /** + * The current lead. + **/ + currentLeadId: AugmentedQuery Observable>>; + /** + * Maps identifier to corresponding lead. + **/ + leadById: AugmentedQuery Observable>; + /** + * The mint currently funding the rewards for this module. + **/ + mint: AugmentedQuery Observable>; + /** + * Identifier to be used by the next channel introduced. + **/ + nextChannelId: AugmentedQuery Observable>; + /** + * Next identifier value for new curator application. + **/ + nextCuratorApplicationId: AugmentedQuery Observable>; + /** + * Next identifier for new curator. + **/ + nextCuratorId: AugmentedQuery Observable>; + /** + * Next identifier valuefor new curator opening. + **/ + nextCuratorOpeningId: AugmentedQuery Observable>; + /** + * Next identifier for new current lead. + **/ + nextLeadId: AugmentedQuery Observable>; + /** + * Next identifier for + **/ + nextPrincipalId: AugmentedQuery Observable>; + openingHumanReadableText: AugmentedQuery Observable>; + /** + * Maps identifier to principal. + **/ + principalById: AugmentedQuery Observable>; + /** + * Recover curator by the role stake which is currently unstaking. + **/ + unstakerByStakeId: AugmentedQuery Observable>; + }; + council: { + activeCouncil: AugmentedQuery Observable>; + /** + * Reward amount paid out at each PayoutInterval + **/ + amountPerPayout: AugmentedQuery Observable>; + /** + * The mint that funds council member rewards and spending proposals budget. It is an Option + * because it was introduced in a runtime upgrade. It will be automatically created when + * a successful call to set_council_mint_capacity() is made. + **/ + councilMint: AugmentedQuery Observable>>; + /** + * How many blocks after the reward is created, the first payout will be made + **/ + firstPayoutAfterRewardCreated: AugmentedQuery Observable>; + /** + * Optional interval in blocks on which a reward payout will be made to each council member + **/ + payoutInterval: AugmentedQuery Observable>>; + /** + * The reward relationships currently in place. There may not necessarily be a 1-1 correspondance with + * the active council, since there are multiple ways of setting/adding/removing council members, some of which + * do not involve creating a relationship. + **/ + rewardRelationships: AugmentedQuery Observable>; + termEndsAt: AugmentedQuery Observable>; + }; + councilElection: { + announcingPeriod: AugmentedQuery Observable>; + applicants: AugmentedQuery Observable>>; + applicantStakes: AugmentedQuery Observable>; + autoStart: AugmentedQuery Observable>; + candidacyLimit: AugmentedQuery Observable>; + commitments: AugmentedQuery Observable>>; + councilSize: AugmentedQuery Observable>; + existingStakeHolders: AugmentedQuery Observable>>; + minCouncilStake: AugmentedQuery Observable>; + minVotingStake: AugmentedQuery Observable>; + newTermDuration: AugmentedQuery Observable>; + revealingPeriod: AugmentedQuery Observable>; + round: AugmentedQuery Observable>; + stage: AugmentedQuery Observable>>; + transferableStakes: AugmentedQuery Observable>; + votes: AugmentedQuery Observable>; + votingPeriod: AugmentedQuery Observable>; + }; + dataDirectory: { + /** + * Maps data objects by their content id. + **/ + dataObjectByContentId: AugmentedQuery Observable>>; + /** + * List of ids known to the system. + **/ + knownContentIds: AugmentedQuery Observable>>; + }; + dataObjectStorageRegistry: { + /** + * Defines first relationship id. + **/ + firstRelationshipId: AugmentedQuery Observable>; + /** + * Defines next relationship id. + **/ + nextRelationshipId: AugmentedQuery Observable>; + /** + * Mapping of Data object types + **/ + relationships: AugmentedQuery Observable>>; + /** + * Keeps a list of storage relationships per content id. + **/ + relationshipsByContentId: AugmentedQuery Observable>>; + }; + dataObjectTypeRegistry: { + /** + * Mapping of Data object types. + **/ + dataObjectTypes: AugmentedQuery Observable>>; + /** + * Data object type ids should start at this value. + **/ + firstDataObjectTypeId: AugmentedQuery Observable>; + /** + * Provides id counter for the data object types. + **/ + nextDataObjectTypeId: AugmentedQuery Observable>; + }; + discovery: { + /** + * Mapping of service providers' storage provider id to their ServiceProviderRecord + **/ + accountInfoByStorageProviderId: AugmentedQuery Observable>; + /** + * Bootstrap endpoints maintained by root + **/ + bootstrapEndpoints: AugmentedQuery Observable>>; + /** + * Lifetime of an ServiceProviderRecord record in AccountInfoByAccountId map + **/ + defaultLifetime: AugmentedQuery Observable>; + }; + forum: { + /** + * Map category identifier to corresponding category. + **/ + categoryById: AugmentedQuery Observable>; + categoryDescriptionConstraint: AugmentedQuery Observable>; + /** + * Input constraints + * These are all forward looking, that is they are enforced on all + * future calls. + **/ + categoryTitleConstraint: AugmentedQuery Observable>; + /** + * Account of forum sudo. + **/ + forumSudo: AugmentedQuery Observable>>; + /** + * Category identifier value to be used for the next Category created. + **/ + nextCategoryId: AugmentedQuery Observable>; + /** + * Post identifier value to be used for for next post created. + **/ + nextPostId: AugmentedQuery Observable>; + /** + * Thread identifier value to be used for next Thread in threadById. + **/ + nextThreadId: AugmentedQuery Observable>; + /** + * Map post identifier to corresponding post. + **/ + postById: AugmentedQuery Observable>; + postModerationRationaleConstraint: AugmentedQuery Observable>; + postTextConstraint: AugmentedQuery Observable>; + /** + * Map thread identifier to corresponding thread. + **/ + threadById: AugmentedQuery Observable>; + threadModerationRationaleConstraint: AugmentedQuery Observable>; + threadTitleConstraint: AugmentedQuery Observable>; + }; + grandpa: { + /** + * The number of changes (both in terms of keys and underlying economic responsibilities) + * in the "set" of Grandpa validators from genesis. + **/ + currentSetId: AugmentedQuery Observable>; + /** + * next block number where we can force a change. + **/ + nextForced: AugmentedQuery Observable>>; + /** + * Pending change: (signaled at, scheduled change). + **/ + pendingChange: AugmentedQuery Observable>>; + /** + * A mapping from grandpa set ID to the index of the *most recent* session for which its + * members were responsible. + * + * TWOX-NOTE: `SetId` is not under user control. + **/ + setIdSession: AugmentedQuery Observable>>; + /** + * `true` if we are currently stalled. + **/ + stalled: AugmentedQuery Observable>>>; + /** + * State of the current authority set. + **/ + state: AugmentedQuery Observable>; + }; + hiring: { + /** + * Applications + **/ + applicationById: AugmentedQuery Observable>; + /** + * Internal purpose of given stake, i.e. fro what application, and whether for the role or for the application. + **/ + applicationIdByStakingId: AugmentedQuery Observable>; + /** + * Identifier for next application to be added. + **/ + nextApplicationId: AugmentedQuery Observable>; + /** + * Identifier for next opening to be added. + **/ + nextOpeningId: AugmentedQuery Observable>; + /** + * Openings. + **/ + openingById: AugmentedQuery Observable>; + }; + imOnline: { + /** + * For each session index, we keep a mapping of `T::ValidatorId` to the + * number of blocks authored by the given authority. + **/ + authoredBlocks: AugmentedQueryDoubleMap Observable>; + /** + * The block number after which it's ok to send heartbeats in current session. + * + * At the beginning of each session we set this to a value that should + * fall roughly in the middle of the session duration. + * The idea is to first wait for the validators to produce a block + * in the current session, so that the heartbeat later on will not be necessary. + **/ + heartbeatAfter: AugmentedQuery Observable>; + /** + * The current set of keys that may issue a heartbeat. + **/ + keys: AugmentedQuery Observable>>; + /** + * For each session index, we keep a mapping of `AuthIndex` to + * `offchain::OpaqueNetworkState`. + **/ + receivedHeartbeats: AugmentedQueryDoubleMap Observable>>; + }; + members: { + /** + * Active Paid membership terms + **/ + activePaidMembershipTerms: AugmentedQuery Observable>>; + maxAboutTextLength: AugmentedQuery Observable>; + maxAvatarUriLength: AugmentedQuery Observable>; + maxHandleLength: AugmentedQuery Observable>; + /** + * Registered unique handles and their mapping to their owner + **/ + memberIdByHandle: AugmentedQuery Observable>; + /** + * Mapping of a controller account id to vector of member ids it controls + **/ + memberIdsByControllerAccountId: AugmentedQuery Observable>>; + /** + * Mapping of a root account id to vector of member ids it controls. + **/ + memberIdsByRootAccountId: AugmentedQuery Observable>>; + /** + * Mapping of member's id to their membership profile + **/ + membershipById: AugmentedQuery Observable>; + minHandleLength: AugmentedQuery Observable>; + /** + * Is the platform is accepting new members or not + **/ + newMembershipsAllowed: AugmentedQuery Observable>; + /** + * MemberId to assign to next member that is added to the registry, and is also the + * total number of members created. MemberIds start at Zero. + **/ + nextMemberId: AugmentedQuery Observable>; + /** + * Next paid membership terms id + **/ + nextPaidMembershipTermsId: AugmentedQuery Observable>; + /** + * Paid membership terms record + **/ + paidMembershipTermsById: AugmentedQuery Observable>; + screeningAuthority: AugmentedQuery Observable>; + }; + memo: { + maxMemoLength: AugmentedQuery Observable>; + memo: AugmentedQuery Observable>; + }; + minting: { + /** + * Mints + **/ + mints: AugmentedQuery Observable>; + /** + * The number of mints created. + **/ + mintsCreated: AugmentedQuery Observable>; + }; + offences: { + /** + * A vector of reports of the same kind that happened at the same time slot. + **/ + concurrentReportsIndex: AugmentedQueryDoubleMap Observable>>; + /** + * Deferred reports that have been rejected by the offence handler and need to be submitted + * at a later time. + **/ + deferredOffences: AugmentedQuery Observable>>; + /** + * The primary structure that holds all offence records keyed by report identifiers. + **/ + reports: AugmentedQuery Observable>>; + /** + * Enumerates all reports of a kind along with the time they happened. + * + * All reports are sorted by the time of offence. + * + * Note that the actual type of this mapping is `Vec`, this is because values of + * different types are not supported at the moment so we are doing the manual serialization. + **/ + reportsByKindIndex: AugmentedQuery Observable>; + }; + proposalsCodex: { + /** + * Grace period for the 'add working group opening' proposal + **/ + addWorkingGroupOpeningProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'add working group opening' proposal + **/ + addWorkingGroupOpeningProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'begin review working group leader applications' proposal + **/ + beginReviewWorkingGroupLeaderApplicationsProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'begin review working group leader applications' proposal + **/ + beginReviewWorkingGroupLeaderApplicationsProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'decrease working group leader stake' proposal + **/ + decreaseWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'decrease working group leader stake' proposal + **/ + decreaseWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'fill working group leader opening' proposal + **/ + fillWorkingGroupLeaderOpeningProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'fill working group leader opening' proposal + **/ + fillWorkingGroupLeaderOpeningProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Map proposal id to proposal details + **/ + proposalDetailsByProposalId: AugmentedQuery Observable>; + /** + * Grace period for the 'runtime upgrade' proposal + **/ + runtimeUpgradeProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'runtime upgrade' proposal + **/ + runtimeUpgradeProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set content working group mint capacity' proposal + **/ + setContentWorkingGroupMintCapacityProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set content working group mint capacity' proposal + **/ + setContentWorkingGroupMintCapacityProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set election parameters' proposal + **/ + setElectionParametersProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set election parameters' proposal + **/ + setElectionParametersProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set lead' proposal + **/ + setLeadProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set lead' proposal + **/ + setLeadProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set validator count' proposal + **/ + setValidatorCountProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set validator count' proposal + **/ + setValidatorCountProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set working group leader reward' proposal + **/ + setWorkingGroupLeaderRewardProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set working group leader reward' proposal + **/ + setWorkingGroupLeaderRewardProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'set working group mint capacity' proposal + **/ + setWorkingGroupMintCapacityProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'set working group mint capacity' proposal + **/ + setWorkingGroupMintCapacityProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'slash working group leader stake' proposal + **/ + slashWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'slash working group leader stake' proposal + **/ + slashWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'spending' proposal + **/ + spendingProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'spending' proposal + **/ + spendingProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'terminate working group leader role' proposal + **/ + terminateWorkingGroupLeaderRoleProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'terminate working group leader role' proposal + **/ + terminateWorkingGroupLeaderRoleProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Grace period for the 'text' proposal + **/ + textProposalGracePeriod: AugmentedQuery Observable>; + /** + * Voting period for the 'text' proposal + **/ + textProposalVotingPeriod: AugmentedQuery Observable>; + /** + * Map proposal id to its discussion thread id + **/ + threadIdByProposalId: AugmentedQuery Observable>; + }; + proposalsDiscussion: { + /** + * Last author thread counter (part of the antispam mechanism) + **/ + lastThreadAuthorCounter: AugmentedQuery Observable>>; + /** + * Count of all posts that have been created. + **/ + postCount: AugmentedQuery Observable>; + /** + * Map thread id and post id to corresponding post. + **/ + postThreadIdByPostId: AugmentedQueryDoubleMap Observable>; + /** + * Map thread identifier to corresponding thread. + **/ + threadById: AugmentedQuery Observable>; + /** + * Count of all threads that have been created. + **/ + threadCount: AugmentedQuery Observable>; + }; + proposalsEngine: { + /** + * Count of active proposals. + **/ + activeProposalCount: AugmentedQuery Observable>; + /** + * Ids of proposals that are open for voting (have not been finalized yet). + **/ + activeProposalIds: AugmentedQuery Observable>>; + /** + * Map proposal executable code by proposal id. + **/ + dispatchableCallCode: AugmentedQuery Observable>; + /** + * Ids of proposals that were approved and theirs grace period was not expired. + **/ + pendingExecutionProposalIds: AugmentedQuery Observable>>; + /** + * Count of all proposals that have been created. + **/ + proposalCount: AugmentedQuery Observable>; + /** + * Map proposal by its id. + **/ + proposals: AugmentedQuery Observable>; + /** + * Map proposal id by stake id. Required by StakingEventsHandler callback call + **/ + stakesProposals: AugmentedQuery Observable>; + /** + * Double map for preventing duplicate votes. Should be cleaned after usage. + **/ + voteExistsByProposalByVoter: AugmentedQueryDoubleMap Observable>; + }; + randomnessCollectiveFlip: { + /** + * Series of block headers from the last 81 blocks that acts as random seed material. This + * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of + * the oldest hash. + **/ + randomMaterial: AugmentedQuery Observable>>; + }; + recurringRewards: { + recipients: AugmentedQuery Observable>; + recipientsCreated: AugmentedQuery Observable>; + rewardRelationships: AugmentedQuery Observable>; + rewardRelationshipsCreated: AugmentedQuery Observable>; + }; + session: { + /** + * Current index of the session. + **/ + currentIndex: AugmentedQuery Observable>; + /** + * Indices of disabled validators. + * + * The set is cleared when `on_session_ending` returns a new set of identities. + **/ + disabledValidators: AugmentedQuery Observable>>; + /** + * The owner of a key. The key is the `KeyTypeId` + the encoded key. + **/ + keyOwner: AugmentedQuery | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable>>; + /** + * The next session keys for a validator. + **/ + nextKeys: AugmentedQuery Observable>>; + /** + * True if the underlying economic identities or weighting behind the validators + * has changed in the queued validator set. + **/ + queuedChanged: AugmentedQuery Observable>; + /** + * The queued keys for the next session. When the next session begins, these keys + * will be used to determine the validator's session keys. + **/ + queuedKeys: AugmentedQuery Observable>>>; + /** + * The current set of validators. + **/ + validators: AugmentedQuery Observable>>; + }; + stake: { + /** + * Maps identifiers to a stake. + **/ + stakes: AugmentedQuery Observable>; + /** + * Identifier value for next stake, and count of total stakes created (not necessarily the number of current + * stakes in the Stakes map as stakes can be removed.) + **/ + stakesCreated: AugmentedQuery Observable>; + }; + staking: { + /** + * The active era information, it holds index and start. + * + * The active era is the era currently rewarded. + * Validator set of this era must be equal to `SessionInterface::validators`. + **/ + activeEra: AugmentedQuery Observable>>; + /** + * Map from all locked "stash" accounts to the controller account. + **/ + bonded: AugmentedQuery Observable>>; + /** + * A mapping from still-bonded eras to the first session index of that era. + * + * Must contains information for eras for the range: + * `[active_era - bounding_duration; active_era]` + **/ + bondedEras: AugmentedQuery Observable>>>; + /** + * The amount of currency given to reporters of a slash event which was + * canceled by extraordinary circumstances (e.g. governance). + **/ + canceledSlashPayout: AugmentedQuery Observable>; + /** + * The current era index. + * + * This is the latest planned era, depending on how the Session pallet queues the validator + * set, it might be active or not. + **/ + currentEra: AugmentedQuery Observable>>; + /** + * The earliest era for which we have a pending, unapplied slash. + **/ + earliestUnappliedSlash: AugmentedQuery Observable>>; + /** + * Flag to control the execution of the offchain election. When `Open(_)`, we accept + * solutions to be submitted. + **/ + eraElectionStatus: AugmentedQuery Observable>; + /** + * Rewards for the last `HISTORY_DEPTH` eras. + * If reward hasn't been set or has been removed then 0 reward is returned. + **/ + erasRewardPoints: AugmentedQuery Observable>; + /** + * Exposure of validator at era. + * + * This is keyed first by the era index to allow bulk deletion and then the stash account. + * + * Is it removed after `HISTORY_DEPTH` eras. + * If stakers hasn't been set or has been removed then empty exposure is returned. + **/ + erasStakers: AugmentedQueryDoubleMap Observable>; + /** + * Clipped Exposure of validator at era. + * + * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the + * `T::MaxNominatorRewardedPerValidator` biggest stakers. + * (Note: the field `total` and `own` of the exposure remains unchanged). + * This is used to limit the i/o cost for the nominator payout. + * + * This is keyed fist by the era index to allow bulk deletion and then the stash account. + * + * Is it removed after `HISTORY_DEPTH` eras. + * If stakers hasn't been set or has been removed then empty exposure is returned. + **/ + erasStakersClipped: AugmentedQueryDoubleMap Observable>; + /** + * The session index at which the era start for the last `HISTORY_DEPTH` eras. + **/ + erasStartSessionIndex: AugmentedQuery Observable>>; + /** + * The total amount staked for the last `HISTORY_DEPTH` eras. + * If total hasn't been set or has been removed then 0 stake is returned. + **/ + erasTotalStake: AugmentedQuery Observable>; + /** + * Similar to `ErasStakers`, this holds the preferences of validators. + * + * This is keyed first by the era index to allow bulk deletion and then the stash account. + * + * Is it removed after `HISTORY_DEPTH` eras. + **/ + erasValidatorPrefs: AugmentedQueryDoubleMap Observable>; + /** + * The total validator era payout for the last `HISTORY_DEPTH` eras. + * + * Eras that haven't finished yet or has been removed doesn't have reward. + **/ + erasValidatorReward: AugmentedQuery Observable>>; + /** + * Mode of era forcing. + **/ + forceEra: AugmentedQuery Observable>; + /** + * Number of eras to keep in history. + * + * Information is kept for eras in `[current_era - history_depth; current_era]`. + * + * Must be more than the number of eras delayed by session otherwise. I.e. active era must + * always be in history. I.e. `active_era > current_era - history_depth` must be + * guaranteed. + **/ + historyDepth: AugmentedQuery Observable>; + /** + * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're + * easy to initialize and the performance hit is minimal (we expect no more than four + * invulnerables) and restricted to testnets. + **/ + invulnerables: AugmentedQuery Observable>>; + /** + * True if the current **planned** session is final. Note that this does not take era + * forcing into account. + **/ + isCurrentSessionFinal: AugmentedQuery Observable>; + /** + * Map from all (unlocked) "controller" accounts to the info regarding the staking. + **/ + ledger: AugmentedQuery Observable>>; + /** + * Minimum number of staking participants before emergency conditions are imposed. + **/ + minimumValidatorCount: AugmentedQuery Observable>; + /** + * The map from nominator stash key to the set of stash keys of all validators to nominate. + **/ + nominators: AugmentedQuery Observable>>; + /** + * All slashing events on nominators, mapped by era to the highest slash value of the era. + **/ + nominatorSlashInEra: AugmentedQueryDoubleMap Observable>>; + /** + * Where the reward payment should be made. Keyed by stash. + **/ + payee: AugmentedQuery Observable>; + /** + * The next validator set. At the end of an era, if this is available (potentially from the + * result of an offchain worker), it is immediately used. Otherwise, the on-chain election + * is executed. + **/ + queuedElected: AugmentedQuery Observable>>; + /** + * The score of the current [`QueuedElected`]. + **/ + queuedScore: AugmentedQuery Observable>>; + /** + * Slashing spans for stash accounts. + **/ + slashingSpans: AugmentedQuery Observable>>; + /** + * The percentage of the slash that is distributed to reporters. + * + * The rest of the slashed value is handled by the `Slash`. + **/ + slashRewardFraction: AugmentedQuery Observable>; + /** + * Snapshot of nominators at the beginning of the current election window. This should only + * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`. + **/ + snapshotNominators: AugmentedQuery Observable>>>; + /** + * Snapshot of validators at the beginning of the current election window. This should only + * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`. + **/ + snapshotValidators: AugmentedQuery Observable>>>; + /** + * Records information about the maximum slash of a stash within a slashing span, + * as well as how much reward has been paid out. + **/ + spanSlash: AugmentedQuery | [AccountId | string | Uint8Array, SpanIndex | AnyNumber | Uint8Array]) => Observable>; + /** + * True if network has been upgraded to this version. + * Storage version of the pallet. + * + * This is set to v3.0.0 for new networks. + **/ + storageVersion: AugmentedQuery Observable>; + /** + * All unapplied slashes that are queued for later. + **/ + unappliedSlashes: AugmentedQuery Observable>>; + /** + * The ideal number of staking participants. + **/ + validatorCount: AugmentedQuery Observable>; + /** + * The map from (wannabe) validator stash key to the preferences of that validator. + **/ + validators: AugmentedQuery Observable>; + /** + * All slashing events on validators, mapped by era to the highest slash proportion + * and slash value of the era. + **/ + validatorSlashInEra: AugmentedQueryDoubleMap Observable>>>; + }; + storageWorkingGroup: { + /** + * Count of active workers. + **/ + activeWorkerCount: AugmentedQuery Observable>; + /** + * Maps identifier to worker application on opening. + **/ + applicationById: AugmentedQuery Observable>; + /** + * The current lead. + **/ + currentLead: AugmentedQuery Observable>>; + /** + * Map member id by hiring application id. + * Required by StakingEventsHandler callback call to refund the balance on unstaking. + **/ + memberIdByHiringApplicationId: AugmentedQuery Observable>; + /** + * The mint currently funding the rewards for this module. + **/ + mint: AugmentedQuery Observable>; + /** + * Next identifier value for new worker application. + **/ + nextApplicationId: AugmentedQuery Observable>; + /** + * Next identifier value for new worker opening. + **/ + nextOpeningId: AugmentedQuery Observable>; + /** + * Next identifier for new worker. + **/ + nextWorkerId: AugmentedQuery Observable>; + /** + * Maps identifier to worker opening. + **/ + openingById: AugmentedQuery Observable>; + /** + * Opening human readable text length limits + **/ + openingHumanReadableText: AugmentedQuery Observable>; + /** + * Worker application human readable text length limits + **/ + workerApplicationHumanReadableText: AugmentedQuery Observable>; + /** + * Maps identifier to corresponding worker. + **/ + workerById: AugmentedQuery Observable>; + /** + * Worker exit rationale text length limits. + **/ + workerExitRationaleText: AugmentedQuery Observable>; + }; + sudo: { + /** + * The `AccountId` of the sudo key. + **/ + key: AugmentedQuery Observable>; + }; + system: { + /** + * The full account information for a particular account ID. + **/ + account: AugmentedQuery Observable>; + /** + * Total length (in bytes) for all extrinsics put together, for the current block. + **/ + allExtrinsicsLen: AugmentedQuery Observable>>; + /** + * Map of block numbers to block hashes. + **/ + blockHash: AugmentedQuery Observable>; + /** + * The current weight for the block. + **/ + blockWeight: AugmentedQuery Observable>; + /** + * Digest of the current block, also part of the block header. + **/ + digest: AugmentedQuery Observable>; + /** + * The number of events in the `Events` list. + **/ + eventCount: AugmentedQuery Observable>; + /** + * Events deposited for the current block. + **/ + events: AugmentedQuery Observable>>; + /** + * Mapping between a topic (represented by T::Hash) and a vector of indexes + * of events in the `>` list. + * + * All topic vectors have deterministic storage locations depending on the topic. This + * allows light-clients to leverage the changes trie storage tracking mechanism and + * in case of changes fetch the list of events of interest. + * + * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + * the `EventIndex` then in case if the topic has the same contents on the next block + * no notification will be triggered thus the event might be lost. + **/ + eventTopics: AugmentedQuery Observable>>>; + /** + * The execution phase of the block. + **/ + executionPhase: AugmentedQuery Observable>>; + /** + * Total extrinsics count for the current block. + **/ + extrinsicCount: AugmentedQuery Observable>>; + /** + * Extrinsics data for the current block (maps an extrinsic's index to its data). + **/ + extrinsicData: AugmentedQuery Observable>; + /** + * Extrinsics root of the current block, also part of the block header. + **/ + extrinsicsRoot: AugmentedQuery Observable>; + /** + * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. + **/ + lastRuntimeUpgrade: AugmentedQuery Observable>>; + /** + * The current block number being processed. Set by `execute_block`. + **/ + number: AugmentedQuery Observable>; + /** + * Hash of the previous block. + **/ + parentHash: AugmentedQuery Observable>; + }; + timestamp: { + /** + * Did the timestamp get updated in this block? + **/ + didUpdate: AugmentedQuery Observable>; + /** + * Current time for the current block. + **/ + now: AugmentedQuery Observable>; + }; + transactionPayment: { + nextFeeMultiplier: AugmentedQuery Observable>; + storageVersion: AugmentedQuery Observable>; + }; + versionedStore: { + classById: AugmentedQuery Observable>; + classDescriptionConstraint: AugmentedQuery Observable>; + classNameConstraint: AugmentedQuery Observable>; + entityById: AugmentedQuery Observable>; + nextClassId: AugmentedQuery Observable>; + nextEntityId: AugmentedQuery Observable>; + propertyDescriptionConstraint: AugmentedQuery Observable>; + propertyNameConstraint: AugmentedQuery Observable>; + }; + versionedStorePermissions: { + /** + * ClassPermissions of corresponding Classes in the versioned store + **/ + classPermissionsByClassId: AugmentedQuery Observable>; + /** + * Owner of an entity in the versioned store. If it is None then it is owned by the system. + **/ + entityMaintainerByEntityId: AugmentedQuery Observable>>; + }; + } + + export interface QueryableStorage extends AugmentedQueries { + } +} diff --git a/types/augment/augment-api-tx.ts b/types/augment/augment-api-tx.ts new file mode 100644 index 0000000000..a6e99c6b10 --- /dev/null +++ b/types/augment/augment-api-tx.ts @@ -0,0 +1,1344 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import { AnyNumber, ITuple } from '@polkadot/types/types'; +import { Compact, Option, Vec } from '@polkadot/types/codec'; +import { Bytes, bool, u16, u32, u64 } from '@polkadot/types/primitive'; +import { ActivateOpeningAt, AddOpeningParameters, ApplicationId, ApplicationIdSet, BalanceOfMint, CategoryId, ChannelContentType, ChannelCurationStatus, ChannelId, ChannelPublicationStatus, ClassId, ClassPermissionsType, ClassPropertyValue, ContentId, Credential, CredentialSet, CurationActor, CuratorApplicationId, CuratorApplicationIdSet, CuratorId, CuratorOpeningId, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, ElectionParameters, EntityId, EntityPermissions, FillOpeningParameters, MemberId, MemoText, OpeningId, OpeningPolicyCommitment, OpeningType, Operation, OptionalText, PaidTermId, PostId, Property, ProposalId, ReferenceConstraint, RewardPolicy, StorageProviderId, TerminateRoleParameters, ThreadId, Url, VoteKind, WorkerId, WorkingGroup } from './all'; +import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics'; +import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa'; +import { Heartbeat } from '@polkadot/types/interfaces/imOnline'; +import { AccountId, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime'; +import { Keys } from '@polkadot/types/interfaces/session'; +import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; +import { Key } from '@polkadot/types/interfaces/system'; +import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; + +declare module '@polkadot/api/types/submittable' { + export interface AugmentedSubmittables { + authorship: { + /** + * Provide a set of uncles. + **/ + setUncles: AugmentedSubmittable<(newUncles: Vec
| (Header | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + }; + balances: { + /** + * Exactly as `transfer`, except the origin must be root and the source account may be + * specified. + * # + * - Same as transfer, but additional read and write because the source account is + * not assumed to be in the overlay. + * # + **/ + forceTransfer: AugmentedSubmittable<(source: LookupSource | string | Uint8Array, dest: LookupSource | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the balances of a given account. + * + * This will alter `FreeBalance` and `ReservedBalance` in storage. it will + * also decrease the total issuance of the system (`TotalIssuance`). + * If the new free or reserved balance is below the existential deposit, + * it will reset the account nonce (`frame_system::AccountNonce`). + * + * The dispatch origin for this call is `root`. + * + * # + * - Independent of the arguments. + * - Contains a limited number of reads and writes. + * --------------------- + * - Base Weight: + * - Creating: 27.56 µs + * - Killing: 35.11 µs + * - DB Weight: 1 Read, 1 Write to `who` + * # + **/ + setBalance: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array, newReserved: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Transfer some liquid free balance to another account. + * + * `transfer` will set the `FreeBalance` of the sender and receiver. + * It will decrease the total issuance of the system by the `TransferFee`. + * If the sender's account is below the existential deposit as a result + * of the transfer, the account will be reaped. + * + * The dispatch origin for this call must be `Signed` by the transactor. + * + * # + * - Dependent on arguments but not critical, given proper implementations for + * input config types. See related functions below. + * - It contains a limited number of reads and writes internally and no complex computation. + * + * Related functions: + * + * - `ensure_can_withdraw` is always called internally but has a bounded complexity. + * - Transferring balances to accounts that did not exist before will cause + * `T::OnNewAccount::on_new_account` to be called. + * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`. + * - `transfer_keep_alive` works the same way as `transfer`, but has an additional + * check that the transfer will not kill the origin account. + * --------------------------------- + * - Base Weight: 73.64 µs, worst case scenario (account created, account removed) + * - DB Weight: 1 Read and 1 Write to destination account + * - Origin account is already in memory, so no DB operations for them. + * # + **/ + transfer: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Same as the [`transfer`] call, but with a check that the transfer will not kill the + * origin account. + * + * 99% of the time you want [`transfer`] instead. + * + * [`transfer`]: struct.Module.html#method.transfer + * # + * - Cheaper than transfer because account cannot be killed. + * - Base Weight: 51.4 µs + * - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already) + * # + **/ + transferKeepAlive: AugmentedSubmittable<(dest: LookupSource | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + contentWorkingGroup: { + /** + * Begin accepting curator applications to an opening that is active. + **/ + acceptCuratorApplications: AugmentedSubmittable<(curatorOpeningId: CuratorOpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Add an opening for a curator role. + **/ + addCuratorOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_curator_application_stake_unstaking_period?: any; terminate_curator_role_stake_unstaking_period?: any; exit_curator_role_application_stake_unstaking_period?: any; exit_curator_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Apply on a curator opening. + **/ + applyOnCuratorOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, curatorOpeningId: CuratorOpeningId | AnyNumber | Uint8Array, roleAccount: AccountId | string | Uint8Array, optRoleStakeBalance: Option | null | object | string | Uint8Array, optApplicationStakeBalance: Option | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Begin reviewing, and therefore not accepting new applications. + **/ + beginCuratorApplicantReview: AugmentedSubmittable<(curatorOpeningId: CuratorOpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Create a new channel. + **/ + createChannel: AugmentedSubmittable<(owner: MemberId | AnyNumber | Uint8Array, roleAccount: AccountId | string | Uint8Array, content: ChannelContentType | 'Video'|'Music'|'Ebook' | number | Uint8Array, handle: Bytes | string | Uint8Array, title: OptionalText | null | object | string | Uint8Array, description: OptionalText | null | object | string | Uint8Array, avatar: OptionalText | null | object | string | Uint8Array, banner: OptionalText | null | object | string | Uint8Array, publicationStatus: ChannelPublicationStatus | 'Public'|'Unlisted' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Fill opening for curator + **/ + fillCuratorOpening: AugmentedSubmittable<(curatorOpeningId: CuratorOpeningId | AnyNumber | Uint8Array, successfulCuratorApplicationIds: CuratorApplicationIdSet, rewardPolicy: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Add to capacity of current acive mint. + * This may be deprecated in the future, since set_mint_capacity is sufficient to + * both increase and decrease capacity. Although when considering that it may be executed + * by a proposal, given the temporal delay in approving a proposal, it might be more suitable + * than set_mint_capacity? + **/ + increaseMintCapacity: AugmentedSubmittable<(additionalCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * An active curator leaves role + **/ + leaveCuratorRole: AugmentedSubmittable<(curatorId: CuratorId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Replace the current lead. First unsets the active lead if there is one. + * If a value is provided for new_lead it will then set that new lead. + * It is responsibility of the caller to ensure the new lead can be set + * to avoid the lead role being vacant at the end of the call. + **/ + replaceLead: AugmentedSubmittable<(newLead: Option> | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Add an opening for a curator role. + **/ + setChannelCreationEnabled: AugmentedSubmittable<(enabled: bool | boolean | Uint8Array) => SubmittableExtrinsic>; + /** + * Sets the capacity of the current active mint + **/ + setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Lead terminate curator application + **/ + terminateCuratorApplication: AugmentedSubmittable<(curatorApplicationId: CuratorApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Lead can terminate and active curator + **/ + terminateCuratorRole: AugmentedSubmittable<(curatorId: CuratorId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * An owner transfers channel ownership to a new owner. + * + * Notice that working group participants cannot do this. + * Notice that censored or unlisted channel may still be transferred. + * Notice that transfers are unilateral, so new owner cannot block. This may be problematic: https://github.com/Joystream/substrate-runtime-joystream/issues/95 + **/ + transferChannelOwnership: AugmentedSubmittable<(channelId: ChannelId | AnyNumber | Uint8Array, newOwner: MemberId | AnyNumber | Uint8Array, newRoleAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Update channel as a curation actor + **/ + updateChannelAsCurationActor: AugmentedSubmittable<(curationActor: CurationActor | { Lead: any } | { Curator: any } | string | Uint8Array, channelId: ChannelId | AnyNumber | Uint8Array, newVerified: Option | null | object | string | Uint8Array, newCurationStatus: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Channel owner updates some channel properties + **/ + updateChannelAsOwner: AugmentedSubmittable<(channelId: ChannelId | AnyNumber | Uint8Array, newHandle: Option | null | object | string | Uint8Array, newTitle: Option | null | object | string | Uint8Array, newDescription: Option | null | object | string | Uint8Array, newAvatar: Option | null | object | string | Uint8Array, newBanner: Option | null | object | string | Uint8Array, newPublicationStatus: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * An active curator can update the reward account associated + * with a set reward relationship. + **/ + updateCuratorRewardAccount: AugmentedSubmittable<(curatorId: CuratorId | AnyNumber | Uint8Array, newRewardAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * An active curator can update the associated role account. + **/ + updateCuratorRoleAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, curatorId: CuratorId | AnyNumber | Uint8Array, newRoleAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + withdrawCuratorApplication: AugmentedSubmittable<(curatorApplicationId: CuratorApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + council: { + /** + * Adds a zero staked council member. A member added in this way does not get a recurring reward. + **/ + addCouncilMember: AugmentedSubmittable<(account: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Remove a single council member and their reward. + **/ + removeCouncilMember: AugmentedSubmittable<(accountToRemove: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Force set a zero staked council. Stakes in existing council seats are not returned. + * Existing council rewards are removed and new council members do NOT get any rewards. + * Avoid using this call if possible, will be deprecated. The term of the new council is + * not extended. + **/ + setCouncil: AugmentedSubmittable<(accounts: Vec | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * Sets the capacity of the the council mint, if it doesn't exist, attempts to + * create a new one. + **/ + setCouncilMintCapacity: AugmentedSubmittable<(capacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Sets the council rewards which is only applied on new council being elected. + **/ + setCouncilRewards: AugmentedSubmittable<(amountPerPayout: BalanceOf | AnyNumber | Uint8Array, payoutInterval: Option | null | object | string | Uint8Array, firstPayoutAfterRewardCreated: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Set blocknumber when council term will end + **/ + setTermEndsAt: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Attempts to mint and transfer amount to destination account + **/ + spendFromCouncilMint: AugmentedSubmittable<(amount: BalanceOf | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + }; + councilElection: { + apply: AugmentedSubmittable<(stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + forceStartElection: AugmentedSubmittable<() => SubmittableExtrinsic>; + forceStopElection: AugmentedSubmittable<() => SubmittableExtrinsic>; + reveal: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, vote: AccountId | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + setAutoStart: AugmentedSubmittable<(flag: bool | boolean | Uint8Array) => SubmittableExtrinsic>; + /** + * Sets new election parameters. Some combination of parameters that are not desirable, so + * the parameters are checked for validity. + * The call will fail if an election is in progress. If a council is not being elected for some + * reaon after multiple rounds, force_stop_election() can be called to stop elections and followed by + * set_election_parameters(). + **/ + setElectionParameters: AugmentedSubmittable<(params: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic>; + setStageAnnouncing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + setStageRevealing: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + setStageVoting: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + dataDirectory: { + /** + * Storage provider accepts a content. Requires signed storage provider account and its id. + * The LiaisonJudgement can be updated, but only by the liaison. + **/ + acceptContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Adds the content to the system. Member id should match its origin. The created DataObject + * awaits liaison to accept or reject it. + **/ + addContent: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array, typeId: DataObjectTypeId | AnyNumber | Uint8Array, size: u64 | AnyNumber | Uint8Array, ipfsContentId: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Injects a set of data objects and their corresponding content id into the directory. + * The operation is "silent" - no events will be emitted as objects are added. + * The number of objects that can be added per call is limited to prevent the dispatch + * from causing the block production to fail if it takes too much time to process. + * Existing data objects will be overwritten. + **/ + injectDataObjects: AugmentedSubmittable<(objects: DataObjectsMap) => SubmittableExtrinsic>; + /** + * Storage provider rejects a content. Requires signed storage provider account and its id. + * The LiaisonJudgement can be updated, but only by the liaison. + **/ + rejectContent: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Removes the content id from the list of known content ids. Requires root privileges. + **/ + removeKnownContentId: AugmentedSubmittable<(contentId: ContentId | string | Uint8Array) => SubmittableExtrinsic>; + }; + dataObjectStorageRegistry: { + /** + * Add storage provider-to-content relationship. The storage provider should be registered + * in the storage working group. + **/ + addRelationship: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, cid: ContentId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Activates storage provider-to-content relationship. The storage provider should be registered + * in the storage working group. A storage provider may flip their own ready state, but nobody else. + **/ + setRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Deactivates storage provider-to-content relationship. The storage provider should be registered + * in the storage working group. A storage provider may flip their own ready state, but nobody else. + **/ + unsetRelationshipReady: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: DataObjectStorageRelationshipId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + dataObjectTypeRegistry: { + /** + * Activates existing data object type. Requires leader privileges. + **/ + activateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Deactivates existing data object type. Requires leader privileges. + **/ + deactivateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Registers the new data object type. Requires leader privileges. + **/ + registerDataObjectType: AugmentedSubmittable<(dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Updates existing data object type. Requires leader privileges. + **/ + updateDataObjectType: AugmentedSubmittable<(id: DataObjectTypeId | AnyNumber | Uint8Array, dataObjectType: DataObjectType | { description?: any; active?: any } | string | Uint8Array) => SubmittableExtrinsic>; + }; + discovery: { + /** + * Sets bootstrap endpoints for the Colossus. Requires root privileges. + **/ + setBootstrapEndpoints: AugmentedSubmittable<(endpoints: Vec | (Url | string)[]) => SubmittableExtrinsic>; + /** + * Sets default lifetime for storage providers accounts info. Requires root privileges. + **/ + setDefaultLifetime: AugmentedSubmittable<(lifetime: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Creates the ServiceProviderRecord to save an IPNS identity for the storage provider. + * Requires signed storage provider credentials. + **/ + setIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array, id: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Deletes the ServiceProviderRecord with the IPNS identity for the storage provider. + * Requires signed storage provider credentials. + **/ + unsetIpnsId: AugmentedSubmittable<(storageProviderId: StorageProviderId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + finalityTracker: { + /** + * Hint that the author of this block thinks the best finalized + * block is the given number. + **/ + finalHint: AugmentedSubmittable<(hint: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + forum: { + /** + * Edit post text + **/ + addPost: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Add a new category. + **/ + createCategory: AugmentedSubmittable<(parent: Option | null | object | string | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create new thread in category + **/ + createThread: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Edit post text + **/ + editPostText: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, newText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Moderate post + **/ + moderatePost: AugmentedSubmittable<(postId: PostId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Moderate thread + **/ + moderateThread: AugmentedSubmittable<(threadId: ThreadId | AnyNumber | Uint8Array, rationale: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set forum sudo. + **/ + setForumSudo: AugmentedSubmittable<(newForumSudo: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Update category + **/ + updateCategory: AugmentedSubmittable<(categoryId: CategoryId | AnyNumber | Uint8Array, newArchivalStatus: Option | null | object | string | Uint8Array, newDeletionStatus: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + }; + grandpa: { + /** + * Report voter equivocation/misbehavior. This method will verify the + * equivocation proof and validate the given key ownership proof + * against the extracted offender. If both are valid, the offence + * will be reported. + * + * Since the weight of the extrinsic is 0, in order to avoid DoS by + * submission of invalid equivocation reports, a mandatory pre-validation of + * the extrinsic is implemented in a `SignedExtension`. + **/ + reportEquivocation: AugmentedSubmittable<(equivocationProof: GrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, keyOwnerProof: KeyOwnerProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic>; + }; + imOnline: { + /** + * # + * - Complexity: `O(K + E)` where K is length of `Keys` and E is length of + * `Heartbeat.network_state.external_address` + * + * - `O(K)`: decoding of length `K` + * - `O(E)`: decoding/encoding of length `E` + * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`, + * `ReceivedHeartbeats` + * - DbWrites: `ReceivedHeartbeats` + * # + **/ + heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic>; + }; + members: { + addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option | null | object | string | Uint8Array, avatarUri: Option | null | object | string | Uint8Array, about: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Non-members can buy membership + **/ + buyMembership: AugmentedSubmittable<(paidTermsId: PaidTermId | AnyNumber | Uint8Array, handle: Option | null | object | string | Uint8Array, avatarUri: Option | null | object | string | Uint8Array, about: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Change member's about text + **/ + changeMemberAboutText: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Change member's avatar + **/ + changeMemberAvatar: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, uri: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Change member's handle. Will ensure new handle is unique and old one will be available + * for other members to use. + **/ + changeMemberHandle: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + setControllerAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newControllerAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + setRootAccount: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, newRootAccount: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + setScreeningAuthority: AugmentedSubmittable<(authority: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Update member's all or some of handle, avatar and about text. + **/ + updateMembership: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, handle: Option | null | object | string | Uint8Array, avatarUri: Option | null | object | string | Uint8Array, about: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + }; + memo: { + updateMemo: AugmentedSubmittable<(memo: MemoText | string) => SubmittableExtrinsic>; + }; + proposalsCodex: { + /** + * Create 'Add working group leader opening' proposal type. + * This proposal uses `add_opening()` extrinsic from the Joystream `working group` module. + **/ + createAddWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, addOpeningParameters: AddOpeningParameters | { activate_at?: any; commitment?: any; human_readable_text?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Begin review working group leader applications' proposal type. + * This proposal uses `begin_applicant_review()` extrinsic from the Joystream `working group` module. + **/ + createBeginReviewWorkingGroupLeaderApplicationsProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'decrease working group leader stake' proposal type. + * This proposal uses `decrease_stake()` extrinsic from the `working-group` module. + **/ + createDecreaseWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, decreasingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Fill working group leader opening' proposal type. + * This proposal uses `fill_opening()` extrinsic from the Joystream `working group` module. + **/ + createFillWorkingGroupLeaderOpeningProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, fillOpeningParameters: FillOpeningParameters | { opening_id?: any; successful_application_id?: any; reward_policy?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Runtime upgrade' proposal type. Runtime upgrade can be initiated only by + * members from the hardcoded list `RuntimeUpgradeProposalAllowedProposers` + **/ + createRuntimeUpgradeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Set content working group mint capacity' proposal type. + * This proposal uses `set_mint_capacity()` extrinsic from the `content-working-group` module. + **/ + createSetContentWorkingGroupMintCapacityProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, mintBalance: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Set election parameters' proposal type. This proposal uses `set_election_parameters()` + * extrinsic from the `governance::election module`. + **/ + createSetElectionParametersProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, electionParameters: ElectionParameters | { announcing_period?: any; voting_period?: any; revealing_period?: any; council_size?: any; candidacy_limit?: any; new_term_duration?: any; min_council_stake?: any; min_voting_stake?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Set lead' proposal type. + * This proposal uses `replace_lead()` extrinsic from the `content_working_group` module. + **/ + createSetLeadProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, newLead: Option> | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Evict storage provider' proposal type. + * This proposal uses `set_validator_count()` extrinsic from the Substrate `staking` module. + **/ + createSetValidatorCountProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, newValidatorCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'set working group leader reward' proposal type. + * This proposal uses `update_reward_amount()` extrinsic from the `working-group` module. + **/ + createSetWorkingGroupLeaderRewardProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, rewardAmount: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Set working group mint capacity' proposal type. + * This proposal uses `set_mint_capacity()` extrinsic from the `working-group` module. + **/ + createSetWorkingGroupMintCapacityProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, mintBalance: BalanceOfMint | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'slash working group leader stake' proposal type. + * This proposal uses `slash_stake()` extrinsic from the `working-group` module. + **/ + createSlashWorkingGroupLeaderStakeProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, workerId: WorkerId | AnyNumber | Uint8Array, slashingStake: BalanceOf | AnyNumber | Uint8Array, workingGroup: WorkingGroup | 'Storage' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Spending' proposal type. + * This proposal uses `spend_from_council_mint()` extrinsic from the `governance::council` module. + **/ + createSpendingProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, balance: BalanceOfMint | AnyNumber | Uint8Array, destination: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'terminate working group leader rolw' proposal type. + * This proposal uses `terminate_role()` extrinsic from the `working-group` module. + **/ + createTerminateWorkingGroupLeaderRoleProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, terminateRoleParameters: TerminateRoleParameters | { worker_id?: any; rationale?: any; slash?: any; working_group?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Create 'Text (signal)' proposal type. + **/ + createTextProposal: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, title: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, stakeBalance: Option | null | object | string | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Runtime upgrade proposal extrinsic. + * Should be used as callable object to pass to the `engine` module. + **/ + executeRuntimeUpgradeProposal: AugmentedSubmittable<(wasm: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Text proposal extrinsic. Should be used as callable object to pass to the `engine` module. + **/ + executeTextProposal: AugmentedSubmittable<(text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + }; + proposalsDiscussion: { + /** + * Adds a post with author origin check. + **/ + addPost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Updates a post with author origin check. Update attempts number is limited. + **/ + updatePost: AugmentedSubmittable<(postAuthorId: MemberId | AnyNumber | Uint8Array, threadId: ThreadId | AnyNumber | Uint8Array, postId: PostId | AnyNumber | Uint8Array, text: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + }; + proposalsEngine: { + /** + * Cancel a proposal by its original proposer. + **/ + cancelProposal: AugmentedSubmittable<(proposerId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Veto a proposal. Must be root. + **/ + vetoProposal: AugmentedSubmittable<(proposalId: ProposalId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Vote extrinsic. Conditions: origin must allow votes. + **/ + vote: AugmentedSubmittable<(voterId: MemberId | AnyNumber | Uint8Array, proposalId: ProposalId | AnyNumber | Uint8Array, vote: VoteKind | 'Approve'|'Reject'|'Slash'|'Abstain' | number | Uint8Array) => SubmittableExtrinsic>; + }; + session: { + /** + * Removes any session key(s) of the function caller. + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be signed. + * + * # + * - Complexity: `O(1)` in number of key types. + * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed. + * - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account` + * - DbWrites: `NextKeys`, `origin account` + * - DbWrites per key id: `KeyOwnder` + * # + **/ + purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Sets the session key(s) of the function caller to `keys`. + * Allows an account to set its session key prior to becoming a validator. + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be signed. + * + * # + * - Complexity: `O(1)` + * Actual cost depends on the number of length of `T::Keys::key_ids()` which is fixed. + * - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys` + * - DbWrites: `origin account`, `NextKeys` + * - DbReads per key id: `KeyOwner` + * - DbWrites per key id: `KeyOwner` + * # + **/ + setKeys: AugmentedSubmittable<(keys: Keys, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + }; + staking: { + /** + * Take the origin account as a stash and lock up `value` of its balance. `controller` will + * be the account that controls it. + * + * `value` must be more than the `minimum_balance` specified by `T::Currency`. + * + * The dispatch origin for this call must be _Signed_ by the stash account. + * + * Emits `Bonded`. + * + * # + * - Independent of the arguments. Moderate complexity. + * - O(1). + * - Three extra DB entries. + * + * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned + * unless the `origin` falls below _existential deposit_ and gets removed as dust. + * ------------------ + * Base Weight: 67.87 µs + * DB Weight: + * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks + * - Write: Bonded, Payee, [Origin Account], Locks, Ledger + * # + **/ + bond: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array, value: Compact | AnyNumber | Uint8Array, payee: RewardDestination | 'Staked'|'Stash'|'Controller' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Add some extra amount that have appeared in the stash `free_balance` into the balance up + * for staking. + * + * Use this if there are additional funds in your stash account that you wish to bond. + * Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount + * that can be added. + * + * The dispatch origin for this call must be _Signed_ by the stash, not the controller and + * it can be only called when [`EraElectionStatus`] is `Closed`. + * + * Emits `Bonded`. + * + * # + * - Independent of the arguments. Insignificant complexity. + * - O(1). + * - One DB entry. + * ------------ + * Base Weight: 54.88 µs + * DB Weight: + * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks + * - Write: [Origin Account], Locks, Ledger + * # + **/ + bondExtra: AugmentedSubmittable<(maxAdditional: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Cancel enactment of a deferred slash. + * + * Can be called by the `T::SlashCancelOrigin`. + * + * Parameters: era and indices of the slashes for that era to kill. + * + * # + * Complexity: O(U + S) + * with U unapplied slashes weighted with U=1000 + * and S is the number of slash indices to be canceled. + * - Base: 5870 + 34.61 * S µs + * - Read: Unapplied Slashes + * - Write: Unapplied Slashes + * # + **/ + cancelDeferredSlash: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, slashIndices: Vec | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * Declare no desire to either validate or nominate. + * + * Effects will be felt at the beginning of the next era. + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * + * # + * - Independent of the arguments. Insignificant complexity. + * - Contains one read. + * - Writes are limited to the `origin` account key. + * -------- + * Base Weight: 16.53 µs + * DB Weight: + * - Read: EraElectionStatus, Ledger + * - Write: Validators, Nominators + * # + **/ + chill: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Force there to be a new era at the end of the next session. After this, it will be + * reset to normal (non-forced) behaviour. + * + * The dispatch origin must be Root. + * + * # + * - No arguments. + * - Base Weight: 1.959 µs + * - Write ForceEra + * # + **/ + forceNewEra: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Force there to be a new era at the end of sessions indefinitely. + * + * The dispatch origin must be Root. + * + * # + * - Base Weight: 2.05 µs + * - Write: ForceEra + * # + **/ + forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Force there to be no new eras indefinitely. + * + * The dispatch origin must be Root. + * + * # + * - No arguments. + * - Base Weight: 1.857 µs + * - Write: ForceEra + * # + **/ + forceNoEras: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Force a current staker to become completely unstaked, immediately. + * + * The dispatch origin must be Root. + * + * # + * O(S) where S is the number of slashing spans to be removed + * Base Weight: 53.07 + 2.365 * S µs + * Reads: Bonded, Slashing Spans, Account, Locks + * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks + * Writes Each: SpanSlash * S + * # + **/ + forceUnstake: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Increments the ideal number of validators. + * + * The dispatch origin must be Root. + * + * # + * Base Weight: 1.717 µs + * Read/Write: Validator Count + * # + **/ + increaseValidatorCount: AugmentedSubmittable<(additional: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Declare the desire to nominate `targets` for the origin controller. + * + * Effects will be felt at the beginning of the next era. This can only be called when + * [`EraElectionStatus`] is `Closed`. + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * + * # + * - The transaction's complexity is proportional to the size of `targets` (N) + * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS). + * - Both the reads and writes follow a similar pattern. + * --------- + * Base Weight: 22.34 + .36 * N µs + * where N is the number of targets + * DB Weight: + * - Reads: Era Election Status, Ledger, Current Era + * - Writes: Validators, Nominators + * # + **/ + nominate: AugmentedSubmittable<(targets: Vec | (LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * Pay out all the stakers behind a single validator for a single era. + * + * - `validator_stash` is the stash account of the validator. Their nominators, up to + * `T::MaxNominatorRewardedPerValidator`, will also receive their rewards. + * - `era` may be any era between `[current_era - history_depth; current_era]`. + * + * The origin of this call must be _Signed_. Any account can call this function, even if + * it is not one of the stakers. + * + * This can only be called when [`EraElectionStatus`] is `Closed`. + * + * # + * - Time complexity: at most O(MaxNominatorRewardedPerValidator). + * - Contains a limited number of reads and writes. + * ----------- + * N is the Number of payouts for the validator (including the validator) + * Base Weight: + * - Reward Destination Staked: 110 + 54.2 * N µs (Median Slopes) + * - Reward Destination Controller (Creating): 120 + 41.95 * N µs (Median Slopes) + * DB Weight: + * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward, + * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items) + * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items) + * - Write Each: System Account, Locks, Ledger (3 items) + * # + **/ + payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Remove all data structure concerning a staker/stash once its balance is zero. + * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone + * and the target `stash` must have no funds left. + * + * This can be called from any origin. + * + * - `stash`: The stash account to reap. Its balance must be zero. + * + * # + * Complexity: O(S) where S is the number of slashing spans on the account. + * Base Weight: 75.94 + 2.396 * S µs + * DB Weight: + * - Reads: Stash Account, Bonded, Slashing Spans, Locks + * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks + * - Writes Each: SpanSlash * S + * # + **/ + reapStash: AugmentedSubmittable<(stash: AccountId | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Rebond a portion of the stash scheduled to be unlocked. + * + * The dispatch origin must be signed by the controller, and it can be only called when + * [`EraElectionStatus`] is `Closed`. + * + * # + * - Time complexity: O(L), where L is unlocking chunks + * - Bounded by `MAX_UNLOCKING_CHUNKS`. + * - Storage changes: Can't increase storage, only decrease it. + * --------------- + * - Base Weight: 34.51 µs * .048 L µs + * - DB Weight: + * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account] + * - Writes: [Origin Account], Locks, Ledger + * # + **/ + rebond: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Scale up the ideal number of validators by a factor. + * + * The dispatch origin must be Root. + * + * # + * Base Weight: 1.717 µs + * Read/Write: Validator Count + * # + **/ + scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * (Re-)set the controller of a stash. + * + * Effects will be felt at the beginning of the next era. + * + * The dispatch origin for this call must be _Signed_ by the stash, not the controller. + * + * # + * - Independent of the arguments. Insignificant complexity. + * - Contains a limited number of reads. + * - Writes are limited to the `origin` account key. + * ---------- + * Base Weight: 25.22 µs + * DB Weight: + * - Read: Bonded, Ledger New Controller, Ledger Old Controller + * - Write: Bonded, Ledger New Controller, Ledger Old Controller + * # + **/ + setController: AugmentedSubmittable<(controller: LookupSource | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set `HistoryDepth` value. This function will delete any history information + * when `HistoryDepth` is reduced. + * + * Parameters: + * - `new_history_depth`: The new history depth you would like to set. + * - `era_items_deleted`: The number of items that will be deleted by this dispatch. + * This should report all the storage items that will be deleted by clearing old + * era history. Needed to report an accurate weight for the dispatch. Trusted by + * `Root` to report an accurate number. + * + * Origin must be root. + * + * # + * - E: Number of history depths removed, i.e. 10 -> 7 = 3 + * - Base Weight: 29.13 * E µs + * - DB Weight: + * - Reads: Current Era, History Depth + * - Writes: History Depth + * - Clear Prefix Each: Era Stakers, EraStakersClipped, ErasValidatorPrefs + * - Writes Each: ErasValidatorReward, ErasRewardPoints, ErasTotalStake, ErasStartSessionIndex + * # + **/ + setHistoryDepth: AugmentedSubmittable<(newHistoryDepth: Compact | AnyNumber | Uint8Array, eraItemsDeleted: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the validators who cannot be slashed (if any). + * + * The dispatch origin must be Root. + * + * # + * - O(V) + * - Base Weight: 2.208 + .006 * V µs + * - Write: Invulnerables + * # + **/ + setInvulnerables: AugmentedSubmittable<(validators: Vec | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * (Re-)set the payment target for a controller. + * + * Effects will be felt at the beginning of the next era. + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * + * # + * - Independent of the arguments. Insignificant complexity. + * - Contains a limited number of reads. + * - Writes are limited to the `origin` account key. + * --------- + * - Base Weight: 11.33 µs + * - DB Weight: + * - Read: Ledger + * - Write: Payee + * # + **/ + setPayee: AugmentedSubmittable<(payee: RewardDestination | 'Staked'|'Stash'|'Controller' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Sets the ideal number of validators. + * + * The dispatch origin must be Root. + * + * # + * Base Weight: 1.717 µs + * Write: Validator Count + * # + **/ + setValidatorCount: AugmentedSubmittable<(updated: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Submit an election result to the chain. If the solution: + * + * 1. is valid. + * 2. has a better score than a potentially existing solution on chain. + * + * then, it will be _put_ on chain. + * + * A solution consists of two pieces of data: + * + * 1. `winners`: a flat vector of all the winners of the round. + * 2. `assignments`: the compact version of an assignment vector that encodes the edge + * weights. + * + * Both of which may be computed using _phragmen_, or any other algorithm. + * + * Additionally, the submitter must provide: + * + * - The `score` that they claim their solution has. + * + * Both validators and nominators will be represented by indices in the solution. The + * indices should respect the corresponding types ([`ValidatorIndex`] and + * [`NominatorIndex`]). Moreover, they should be valid when used to index into + * [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the + * solution to be rejected. These two storage items are set during the election window and + * may be used to determine the indices. + * + * A solution is valid if: + * + * 0. It is submitted when [`EraElectionStatus`] is `Open`. + * 1. Its claimed score is equal to the score computed on-chain. + * 2. Presents the correct number of winners. + * 3. All indexes must be value according to the snapshot vectors. All edge values must + * also be correct and should not overflow the granularity of the ratio type (i.e. 256 + * or billion). + * 4. For each edge, all targets are actually nominated by the voter. + * 5. Has correct self-votes. + * + * A solutions score is consisted of 3 parameters: + * + * 1. `min { support.total }` for each support of a winner. This value should be maximized. + * 2. `sum { support.total }` for each support of a winner. This value should be minimized. + * 3. `sum { support.total^2 }` for each support of a winner. This value should be + * minimized (to ensure less variance) + * + * # + * See `crate::weight` module. + * # + **/ + submitElectionSolution: AugmentedSubmittable<(winners: Vec | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Unsigned version of `submit_election_solution`. + * + * Note that this must pass the [`ValidateUnsigned`] check which only allows transactions + * from the local node to be included. In other words, only the block author can include a + * transaction in the block. + * + * # + * See `crate::weight` module. + * # + **/ + submitElectionSolutionUnsigned: AugmentedSubmittable<(winners: Vec | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Schedule a portion of the stash to be unlocked ready for transfer out after the bond + * period ends. If this leaves an amount actively bonded less than + * T::Currency::minimum_balance(), then it is increased to the full amount. + * + * Once the unlock period is done, you can call `withdraw_unbonded` to actually move + * the funds out of management ready for transfer. + * + * No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`) + * can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need + * to be called first to remove some of the chunks (if possible). + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * + * Emits `Unbonded`. + * + * See also [`Call::withdraw_unbonded`]. + * + * # + * - Independent of the arguments. Limited but potentially exploitable complexity. + * - Contains a limited number of reads. + * - Each call (requires the remainder of the bonded balance to be above `minimum_balance`) + * will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage. + * The only way to clean the aforementioned storage item is also user-controlled via + * `withdraw_unbonded`. + * - One DB entry. + * ---------- + * Base Weight: 50.34 µs + * DB Weight: + * - Read: Era Election Status, Ledger, Current Era, Locks, [Origin Account] + * - Write: [Origin Account], Locks, Ledger + * + **/ + unbond: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Declare the desire to validate for the origin controller. + * + * Effects will be felt at the beginning of the next era. + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * + * # + * - Independent of the arguments. Insignificant complexity. + * - Contains a limited number of reads. + * - Writes are limited to the `origin` account key. + * ----------- + * Base Weight: 17.13 µs + * DB Weight: + * - Read: Era Election Status, Ledger + * - Write: Nominators, Validators + * # + **/ + validate: AugmentedSubmittable<(prefs: ValidatorPrefs | { commission?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Remove any unlocked chunks from the `unlocking` queue from our management. + * + * This essentially frees up that balance to be used by the stash account to do + * whatever it wants. + * + * The dispatch origin for this call must be _Signed_ by the controller, not the stash. + * And, it can be only called when [`EraElectionStatus`] is `Closed`. + * + * Emits `Withdrawn`. + * + * See also [`Call::unbond`]. + * + * # + * - Could be dependent on the `origin` argument and how much `unlocking` chunks exist. + * It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is + * indirectly user-controlled. See [`unbond`] for more detail. + * - Contains a limited number of reads, yet the size of which could be large based on `ledger`. + * - Writes are limited to the `origin` account key. + * --------------- + * Complexity O(S) where S is the number of slashing spans to remove + * Base Weight: + * Update: 50.52 + .028 * S µs + * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account] + * - Writes: [Origin Account], Locks, Ledger + * Kill: 79.41 + 2.366 * S µs + * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin Account], Locks + * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, [Origin Account], Locks + * - Writes Each: SpanSlash * S + * NOTE: Weight annotation is the kill scenario, we refund otherwise. + * # + **/ + withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + storageWorkingGroup: { + /** + * Begin accepting worker applications to an opening that is active. + * Require signed leader origin or the root (to accept applications for the leader position). + **/ + acceptApplications: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Add an opening for a worker role. + * Require signed leader origin or the root (to add opening for the leader position). + **/ + addOpening: AugmentedSubmittable<(activateAt: ActivateOpeningAt | { CurrentBlock: any } | { ExactBlock: any } | string | Uint8Array, commitment: OpeningPolicyCommitment | { application_rationing_policy?: any; max_review_period_length?: any; application_staking_policy?: any; role_staking_policy?: any; role_slashing_terms?: any; fill_opening_successful_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_application_stake_unstaking_period?: any; fill_opening_failed_applicant_role_stake_unstaking_period?: any; terminate_curator_application_stake_unstaking_period?: any; terminate_curator_role_stake_unstaking_period?: any; exit_curator_role_application_stake_unstaking_period?: any; exit_curator_role_stake_unstaking_period?: any } | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array, openingType: OpeningType | 'Leader'|'Worker' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Apply on a worker opening. + **/ + applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option | null | object | string | Uint8Array, optApplicationStakeBalance: Option | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Begin reviewing, and therefore not accepting new applications. + * Require signed leader origin or the root (to begin review applications for the leader position). + **/ + beginApplicantReview: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Decreases the worker/lead stake and returns the remainder to the worker role_account_id. + * Can be decreased to zero, no actions on zero stake. + * Require signed leader origin or the root (to decrease the leader stake). + **/ + decreaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Fill opening for worker/lead. + * Require signed leader origin or the root (to fill opening for the leader position). + **/ + fillOpening: AugmentedSubmittable<(openingId: OpeningId | AnyNumber | Uint8Array, successfulApplicationIds: ApplicationIdSet, rewardPolicy: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Increases the worker/lead stake, demands a worker origin. Transfers tokens from the worker + * role_account_id to the stake. No limits on the stake. + **/ + increaseStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Leave the role by the active worker. + **/ + leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Sets the capacity to enable working group budget. Requires root origin. + **/ + setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Slashes the worker stake, demands a leader origin. No limits, no actions on zero stake. + * If slashing balance greater than the existing stake - stake is slashed to zero. + * Require signed leader origin or the root (to slash the leader stake). + **/ + slashStake: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Terminate the worker application. Can be done by the lead only. + **/ + terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Terminate the active worker by the lead. + * Require signed leader origin or the root (to terminate the leader role). + **/ + terminateRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array, slashStake: bool | boolean | Uint8Array) => SubmittableExtrinsic>; + /** + * Update the reward account associated with a set reward relationship for the active worker. + **/ + updateRewardAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRewardAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Update the reward amount associated with a set reward relationship for the active worker. + * Require signed leader origin or the root (to update leader reward amount). + **/ + updateRewardAmount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newAmount: BalanceOfMint | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Update the associated role account of the active worker/lead. + **/ + updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Withdraw the worker application. Can be done by the worker itself only. + **/ + withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + sudo: { + /** + * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key. + * + * The dispatch origin for this call must be _Signed_. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB change. + * # + **/ + setKey: AugmentedSubmittable<(updated: LookupSource | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * + * The dispatch origin for this call must be _Signed_. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB write (event). + * - Weight of derivative `call` execution + 10,000. + * # + **/ + sudo: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Authenticates the sudo key and dispatches a function call with `Signed` origin from + * a given account. + * + * The dispatch origin for this call must be _Signed_. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB write (event). + * - Weight of derivative `call` execution + 10,000. + * # + **/ + sudoAs: AugmentedSubmittable<(who: LookupSource | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * This function does not check the weight of the call, and instead allows the + * Sudo user to specify the weight of the call. + * + * The dispatch origin for this call must be _Signed_. + * + * # + * - O(1). + * - The weight of this call is defined by the caller. + * # + **/ + sudoUncheckedWeight: AugmentedSubmittable<(call: Call | { callIndex?: any; args?: any } | string | Uint8Array, weight: Weight | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + system: { + /** + * A dispatch that will fill the block weight up to the given ratio. + **/ + fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Kill all storage items with a key that starts with the given prefix. + * + * **NOTE:** We rely on the Root origin to provide us the number of subkeys under + * the prefix we are removing to accurately calculate the weight of this function. + * + * # + * - `O(P)` where `P` amount of keys with prefix `prefix` + * - `P` storage deletions. + * - Base Weight: 0.834 * P µs + * - Writes: Number of subkeys + 1 + * # + **/ + killPrefix: AugmentedSubmittable<(prefix: Key | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Kill some items from storage. + * + * # + * - `O(IK)` where `I` length of `keys` and `K` length of one key + * - `I` storage deletions. + * - Base Weight: .378 * i µs + * - Writes: Number of items + * # + **/ + killStorage: AugmentedSubmittable<(keys: Vec | (Key | string | Uint8Array)[]) => SubmittableExtrinsic>; + /** + * Make some on-chain remark. + * + * # + * - `O(1)` + * - Base Weight: 0.665 µs, independent of remark length. + * - No DB operations. + * # + **/ + remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the new changes trie configuration. + * + * # + * - `O(1)` + * - 1 storage write or delete (codec `O(1)`). + * - 1 call to `deposit_log`: Uses `append` API, so O(1) + * - Base Weight: 7.218 µs + * - DB Weight: + * - Writes: Changes Trie, System Digest + * # + **/ + setChangesTrieConfig: AugmentedSubmittable<(changesTrieConfig: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the new runtime code. + * + * # + * - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` + * - 1 storage write (codec `O(C)`). + * - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive). + * - 1 event. + * The weight of this function is dependent on the runtime, but generally this is very expensive. + * We will treat this as a full block. + * # + **/ + setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the new runtime code without doing any checks of the given `code`. + * + * # + * - `O(C)` where `C` length of `code` + * - 1 storage write (codec `O(C)`). + * - 1 event. + * The weight of this function is dependent on the runtime. We will treat this as a full block. + * # + **/ + setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Set the number of pages in the WebAssembly environment's heap. + * + * # + * - `O(1)` + * - 1 storage write. + * - Base Weight: 1.405 µs + * - 1 write to HEAP_PAGES + * # + **/ + setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Set some items of storage. + * + * # + * - `O(I)` where `I` length of `items` + * - `I` storage writes (`O(1)`). + * - Base Weight: 0.568 * i µs + * - Writes: Number of items + * # + **/ + setStorage: AugmentedSubmittable<(items: Vec | (KeyValue)[]) => SubmittableExtrinsic>; + /** + * Kill the sending account, assuming there are no references outstanding and the composite + * data is equal to its default value. + * + * # + * - `O(1)` + * - 1 storage read and deletion. + * -------------------- + * Base Weight: 8.626 µs + * No DB Read or Write operations because caller is already in overlay + * # + **/ + suicide: AugmentedSubmittable<() => SubmittableExtrinsic>; + }; + timestamp: { + /** + * Set the current time. + * + * This call should be invoked exactly once per block. It will panic at the finalization + * phase, if this call hasn't been invoked by that time. + * + * The timestamp should be greater than the previous one by the amount specified by + * `MinimumPeriod`. + * + * The dispatch origin for this call must be `Inherent`. + * + * # + * - `O(T)` where `T` complexity of `on_timestamp_set` + * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`) + * - 1 event handler `on_timestamp_set` `O(T)`. + * - Benchmark: 7.678 (min squares analysis) + * - NOTE: This benchmark was done for a runtime with insignificant `on_timestamp_set` handlers. + * New benchmarking is needed when adding new handlers. + * # + **/ + set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + }; + versionedStorePermissions: { + addClassSchema: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, existingProperties: Vec | (u16 | AnyNumber | Uint8Array)[], newProperties: Vec | (Property | { prop_type?: any; required?: any; name?: any; description?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + addSchemaSupportToEntity: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, asEntityMaintainer: bool | boolean | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, schemaId: u16 | AnyNumber | Uint8Array, propertyValues: Vec | (ClassPropertyValue | { in_class_index?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + createClass: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array, classPermissions: ClassPermissionsType | { entity_permissions?: any; entities_can_be_created?: any; add_schemas?: any; create_entities?: any; reference_constraint?: any; admins?: any; last_permissions_update?: any } | string | Uint8Array) => SubmittableExtrinsic>; + createClassWithDefaultPermissions: AugmentedSubmittable<(name: Bytes | string | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Creates a new entity of type class_id. The maintainer is set to be either None if the origin is root, or the provided credential + * associated with signer. + **/ + createEntity: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + setClassAddSchemasSet: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, credentialSet: CredentialSet) => SubmittableExtrinsic>; + /** + * Sets the admins for a class + **/ + setClassAdmins: AugmentedSubmittable<(classId: ClassId | AnyNumber | Uint8Array, admins: CredentialSet) => SubmittableExtrinsic>; + setClassCreateEntitiesSet: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, credentialSet: CredentialSet) => SubmittableExtrinsic>; + setClassEntitiesCanBeCreated: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, canBeCreated: bool | boolean | Uint8Array) => SubmittableExtrinsic>; + setClassEntityPermissions: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, entityPermissions: EntityPermissions | { update?: any; maintainer_has_all_permissions?: any } | string | Uint8Array) => SubmittableExtrinsic>; + setClassReferenceConstraint: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, classId: ClassId | AnyNumber | Uint8Array, constraint: ReferenceConstraint | { NoReferencingAllowed: any } | { NoConstraint: any } | { Restricted: any } | string | Uint8Array) => SubmittableExtrinsic>; + transaction: AugmentedSubmittable<(operations: Vec | (Operation | { with_credential?: any; as_entity_maintainer?: any; operation_type?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + updateEntityPropertyValues: AugmentedSubmittable<(withCredential: Option | null | object | string | Uint8Array, asEntityMaintainer: bool | boolean | Uint8Array, entityId: EntityId | AnyNumber | Uint8Array, propertyValues: Vec | (ClassPropertyValue | { in_class_index?: any; value?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; + }; + } + + export interface SubmittableExtrinsics extends AugmentedSubmittables { + (extrinsic: Call | Extrinsic | Uint8Array | string): SubmittableExtrinsic; + } +} diff --git a/types/augment/augment-api.ts b/types/augment/augment-api.ts new file mode 100644 index 0000000000..7669e6442c --- /dev/null +++ b/types/augment/augment-api.ts @@ -0,0 +1,7 @@ +// Auto-generated via `yarn polkadot-types-from-chain`, do not edit +/* eslint-disable */ + +import '@polkadot/api/augment/rpc'; +import './augment-api-consts'; +import './augment-api-query'; +import './augment-api-tx'; diff --git a/types/augment/augment-types.ts b/types/augment/augment-types.ts new file mode 100644 index 0000000000..8a01b37bea --- /dev/null +++ b/types/augment/augment-types.ts @@ -0,0 +1,2387 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import { Compact, Option, Raw, Vec } from '@polkadot/types/codec'; +import { BitVec, Bytes, Data, DoNotConstruct, Null, StorageKey, Text, Type, U256, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types/primitive'; +import { AcceptingApplications, ActivateOpeningAt, ActiveOpeningStage, ActiveOpeningStageVariant, ActiveStake, ActorId, AddOpeningParameters, AddSchemaSupportToEntity, AdjustCapacityBy, AdjustOnInterval, Application, ApplicationDeactivationCause, ApplicationId, ApplicationIdSet, ApplicationIdToWorkerIdMap, ApplicationOf, ApplicationRationingPolicy, ApplicationStage, Approved, Backer, Backers, BalanceOfMint, BlockAndTime, Category, CategoryId, Channel, ChannelContentType, ChannelCurationStatus, ChannelId, ChannelPublicationStatus, ChildPositionInParentCategory, Class, ClassId, ClassPermissionsType, ClassPropertyValue, ClassSchema, ContentId, CreateEntity, Credential, CredentialSet, CurationActor, Curator, CuratorApplication, CuratorApplicationId, CuratorApplicationIdSet, CuratorApplicationIdToCuratorIdMap, CuratorExitInitiationOrigin, CuratorExitSummary, CuratorId, CuratorInduction, CuratorOpening, CuratorOpeningId, CuratorRoleStage, CuratorRoleStakeProfile, DataObject, DataObjectStorageRelationship, DataObjectStorageRelationshipId, DataObjectType, DataObjectTypeId, DataObjectsMap, Deactivated, DiscussionPost, DiscussionThread, ElectionParameters, ElectionStage, ElectionStake, Entity, EntityId, EntityPermissions, EntryMethod, ExecutionFailed, ExitedLeadRole, FillOpeningParameters, Finalized, HiringApplicationId, IPNSIdentity, InactiveApplicationStage, InputValidationLengthConstraint, Lead, LeadId, LeadRoleState, LiaisonJudgement, MemberId, Membership, MemoText, Mint, MintBalanceOf, MintId, ModerationAction, NextAdjustment, Opening, OpeningDeactivationCause, OpeningId, OpeningOf, OpeningPolicyCommitment, OpeningStage, OpeningType, Operation, OperationType, OptionalText, PaidMembershipTerms, PaidTermId, ParametrizedClassPropertyValue, ParametrizedEntity, ParametrizedPropertyValue, Post, PostId, PostTextChange, Principal, PrincipalId, Property, PropertyOfClass, PropertyType, PropertyValue, ProposalDecisionStatus, ProposalDetails, ProposalDetailsOf, ProposalId, ProposalOf, ProposalParameters, ProposalStatus, RationaleText, Recipient, RecipientId, ReferenceConstraint, Reply, ReplyId, ReviewPeriod, RewardPolicy, RewardRelationship, RewardRelationshipId, RoleParameters, RoleStakeProfile, SealedVote, Seat, Seats, ServiceProviderRecord, SetLeadParams, Slash, SlashableTerms, SlashingTerms, Stake, StakeId, Staked, StakedStatus, StakingAmountLimitMode, StakingPolicy, StakingStatus, StorageProviderId, SubscriptionId, TerminateRoleParameters, Thread, ThreadCounter, ThreadId, TransferableStake, Unstaking, UnstakingApplicationStage, UpdatePropertyValues, Url, VoteKind, VotingResults, WaitingToBeingOpeningStageVariant, WorkerId, WorkerOf, WorkingGroup, WorkingGroupOpeningPolicyCommitment, WorkingGroupUnstaker } from './all'; +import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations'; +import { RawAuraPreDigest } from '@polkadot/types/interfaces/aura'; +import { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author'; +import { UncleEntryItem } from '@polkadot/types/interfaces/authorship'; +import { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe'; +import { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances'; +import { BlockHash } from '@polkadot/types/interfaces/chain'; +import { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; +import { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims'; +import { MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective'; +import { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; +import { AliveContractInfo, CodeHash, ContractCallRequest, ContractExecResult, ContractExecResultSuccess, ContractExecResultSuccessTo255, ContractExecResultTo255, ContractInfo, ContractStorageKey, Gas, PrefabWasmModule, PrefabWasmModuleReserved, Schedule, ScheduleTo212, SeedOf, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts'; +import { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy'; +import { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections'; +import { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine'; +import { Account, Log, Vicinity } from '@polkadot/types/interfaces/evm'; +import { EcdsaSignature, Ed25519Signature, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV1, ExtrinsicPayloadV2, ExtrinsicPayloadV3, ExtrinsicPayloadV4, ExtrinsicSignatureV1, ExtrinsicSignatureV2, ExtrinsicSignatureV3, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV1, ExtrinsicV2, ExtrinsicV3, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics'; +import { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset'; +import { AuthorityIndex, AuthorityList, AuthorityWeight, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaPrevote, KeyOwnerProof, NextAuthority, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; +import { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement } from '@polkadot/types/interfaces/identity'; +import { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; +import { CallMetadataV0, DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapTypeLatest, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV4, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataLatest, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata'; +import { StorageKind } from '@polkadot/types/interfaces/offchain'; +import { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences'; +import { AbridgedCandidateReceipt, AttestedCandidate, AuctionIndex, Bidder, CandidateCommitments, CandidateReceipt, CollatorId, CollatorSignature, DoubleVoteReport, DownwardMessage, GlobalValidationSchedule, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, LocalValidationData, NewBidder, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, Remark, Retriable, Scheduling, SigningContext, SlotRange, Statement, SubId, UpwardMessage, ValidationCode, ValidatorSignature, ValidityAttestation, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains'; +import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; +import { Approvals } from '@polkadot/types/interfaces/poll'; +import { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase'; +import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; +import { RpcMethods } from '@polkadot/types/interfaces/rpc'; +import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, OpaqueCall, Origin, Pays, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, ProxyType, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime'; +import { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler'; +import { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, ValidatorCount } from '@polkadot/types/interfaces/session'; +import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; +import { ActiveEraInfo, CompactAssignments, CompactScore, ElectionCompute, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, OffchainAccuracy, PerU16, PhragmenScore, Points, RewardDestination, RewardPoint, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196 } from '@polkadot/types/interfaces/staking'; +import { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state'; +import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; +import { AccountInfo, ApplyExtrinsicResult, ChainProperties, ChainType, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount, TransactionValidityError, UnknownTransaction } from '@polkadot/types/interfaces/system'; +import { OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; +import { Multiplier } from '@polkadot/types/interfaces/txpayment'; +import { CallHash, Multisig, Timepoint } from '@polkadot/types/interfaces/utility'; +import { VestingInfo } from '@polkadot/types/interfaces/vesting'; + +declare module '@polkadot/types/types/registry' { + export interface InterfaceTypes { + BitVec: BitVec; + 'Option': Option; + 'Vec': Vec; + bool: bool; + 'Option': Option; + 'Vec': Vec; + Bytes: Bytes; + 'Option': Option; + 'Vec': Vec; + Data: Data; + 'Option': Option; + 'Vec': Vec; + DoNotConstruct: DoNotConstruct; + 'Option': Option; + 'Vec': Vec; + i8: i8; + 'Option': Option; + 'Vec': Vec; + i16: i16; + 'Option': Option; + 'Vec': Vec; + i32: i32; + 'Option': Option; + 'Vec': Vec; + i64: i64; + 'Option': Option; + 'Vec': Vec; + i128: i128; + 'Option': Option; + 'Vec': Vec; + i256: i256; + 'Option': Option; + 'Vec': Vec; + Null: Null; + 'Option': Option; + 'Vec': Vec; + StorageKey: StorageKey; + 'Option': Option; + 'Vec': Vec; + Text: Text; + 'Option': Option; + 'Vec': Vec; + Type: Type; + 'Option': Option; + 'Vec': Vec; + u8: u8; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u16: u16; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u32: u32; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u64: u64; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u128: u128; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + u256: u256; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + U256: U256; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + usize: usize; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Raw: Raw; + 'Option': Option; + 'Vec': Vec; + AccountId: AccountId; + 'Option': Option; + 'Vec': Vec; + AccountIdOf: AccountIdOf; + 'Option': Option; + 'Vec': Vec; + AccountIndex: AccountIndex; + 'Option': Option; + 'Vec': Vec; + Address: Address; + 'Option
': Option
; + 'Vec
': Vec
; + AssetId: AssetId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Balance: Balance; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BalanceOf: BalanceOf; + 'Option': Option; + 'Vec': Vec; + Block: Block; + 'Option': Option; + 'Vec': Vec; + BlockNumber: BlockNumber; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Call: Call; + 'Option': Option; + 'Vec': Vec; + ChangesTrieConfiguration: ChangesTrieConfiguration; + 'Option': Option; + 'Vec': Vec; + ConsensusEngineId: ConsensusEngineId; + 'Option': Option; + 'Vec': Vec; + Digest: Digest; + 'Option': Option; + 'Vec': Vec; + DigestItem: DigestItem; + 'Option': Option; + 'Vec': Vec; + ExtrinsicsWeight: ExtrinsicsWeight; + 'Option': Option; + 'Vec': Vec; + Fixed64: Fixed64; + 'Option': Option; + 'Vec': Vec; + Fixed128: Fixed128; + 'Option': Option; + 'Vec': Vec; + H160: H160; + 'Option': Option; + 'Vec': Vec; + H256: H256; + 'Option': Option; + 'Vec': Vec; + H512: H512; + 'Option': Option; + 'Vec': Vec; + Hash: Hash; + 'Option': Option; + 'Vec': Vec; + Header: Header; + 'Option
': Option
; + 'Vec
': Vec
; + Index: Index; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Justification: Justification; + 'Option': Option; + 'Vec': Vec; + KeyValue: KeyValue; + 'Option': Option; + 'Vec': Vec; + KeyTypeId: KeyTypeId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + LockIdentifier: LockIdentifier; + 'Option': Option; + 'Vec': Vec; + LookupSource: LookupSource; + 'Option': Option; + 'Vec': Vec; + LookupTarget: LookupTarget; + 'Option': Option; + 'Vec': Vec; + ModuleId: ModuleId; + 'Option': Option; + 'Vec': Vec; + Moment: Moment; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OpaqueCall: OpaqueCall; + 'Option': Option; + 'Vec': Vec; + Origin: Origin; + 'Option': Option; + 'Vec': Vec; + Pays: Pays; + 'Option': Option; + 'Vec': Vec; + Perbill: Perbill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Percent: Percent; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Permill: Permill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Perquintill: Perquintill; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Phantom: Phantom; + 'Option': Option; + 'Vec': Vec; + PhantomData: PhantomData; + 'Option': Option; + 'Vec': Vec; + ProxyType: ProxyType; + 'Option': Option; + 'Vec': Vec; + Releases: Releases; + 'Option': Option; + 'Vec': Vec; + RuntimeDbWeight: RuntimeDbWeight; + 'Option': Option; + 'Vec': Vec; + SignedBlock: SignedBlock; + 'Option': Option; + 'Vec': Vec; + StorageData: StorageData; + 'Option': Option; + 'Vec': Vec; + ValidatorId: ValidatorId; + 'Option': Option; + 'Vec': Vec; + Weight: Weight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + WeightMultiplier: WeightMultiplier; + 'Option': Option; + 'Vec': Vec; + PreRuntime: PreRuntime; + 'Option': Option; + 'Vec': Vec; + SealV0: SealV0; + 'Option': Option; + 'Vec': Vec; + Seal: Seal; + 'Option': Option; + 'Vec': Vec; + Consensus: Consensus; + 'Option': Option; + 'Vec': Vec; + UncleEntryItem: UncleEntryItem; + 'Option': Option; + 'Vec': Vec; + RawAuraPreDigest: RawAuraPreDigest; + 'Option': Option; + 'Vec': Vec; + AllowedSlots: AllowedSlots; + 'Option': Option; + 'Vec': Vec; + BabeAuthorityWeight: BabeAuthorityWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BabeBlockWeight: BabeBlockWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + BabeEquivocationProof: BabeEquivocationProof; + 'Option': Option; + 'Vec': Vec; + BabeWeight: BabeWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + MaybeRandomness: MaybeRandomness; + 'Option': Option; + 'Vec': Vec; + MaybeVrf: MaybeVrf; + 'Option': Option; + 'Vec': Vec; + EpochAuthorship: EpochAuthorship; + 'Option': Option; + 'Vec': Vec; + NextConfigDescriptor: NextConfigDescriptor; + 'Option': Option; + 'Vec': Vec; + NextConfigDescriptorV1: NextConfigDescriptorV1; + 'Option': Option; + 'Vec': Vec; + Randomness: Randomness; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigest: RawBabePreDigest; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestPrimary: RawBabePreDigestPrimary; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestTo159: RawBabePreDigestTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159; + 'Option': Option; + 'Vec': Vec; + RawBabePreDigestCompat: RawBabePreDigestCompat; + 'Option': Option; + 'Vec': Vec; + SlotNumber: SlotNumber; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VrfData: VrfData; + 'Option': Option; + 'Vec': Vec; + VrfOutput: VrfOutput; + 'Option': Option; + 'Vec': Vec; + VrfProof: VrfProof; + 'Option': Option; + 'Vec': Vec; + AccountData: AccountData; + 'Option': Option; + 'Vec': Vec; + BalanceLockTo212: BalanceLockTo212; + 'Option': Option; + 'Vec': Vec; + BalanceLock: BalanceLock; + 'Option': Option; + 'Vec': Vec; + BalanceStatus: BalanceStatus; + 'Option': Option; + 'Vec': Vec; + Reasons: Reasons; + 'Option': Option; + 'Vec': Vec; + VestingSchedule: VestingSchedule; + 'Option': Option; + 'Vec': Vec; + WithdrawReasons: WithdrawReasons; + 'Option': Option; + 'Vec': Vec; + MemberCount: MemberCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ProposalIndex: ProposalIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VotesTo230: VotesTo230; + 'Option': Option; + 'Vec': Vec; + Votes: Votes; + 'Option': Option; + 'Vec': Vec; + AuthorityId: AuthorityId; + 'Option': Option; + 'Vec': Vec; + RawVRFOutput: RawVRFOutput; + 'Option': Option; + 'Vec': Vec; + AliveContractInfo: AliveContractInfo; + 'Option': Option; + 'Vec': Vec; + CodeHash: CodeHash; + 'Option': Option; + 'Vec': Vec; + ContractCallRequest: ContractCallRequest; + 'Option': Option; + 'Vec': Vec; + ContractExecResultSuccessTo255: ContractExecResultSuccessTo255; + 'Option': Option; + 'Vec': Vec; + ContractExecResultTo255: ContractExecResultTo255; + 'Option': Option; + 'Vec': Vec; + ContractExecResultSuccess: ContractExecResultSuccess; + 'Option': Option; + 'Vec': Vec; + ContractExecResult: ContractExecResult; + 'Option': Option; + 'Vec': Vec; + ContractInfo: ContractInfo; + 'Option': Option; + 'Vec': Vec; + ContractStorageKey: ContractStorageKey; + 'Option': Option; + 'Vec': Vec; + Gas: Gas; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PrefabWasmModule: PrefabWasmModule; + 'Option': Option; + 'Vec': Vec; + PrefabWasmModuleReserved: PrefabWasmModuleReserved; + 'Option': Option; + 'Vec': Vec; + ScheduleTo212: ScheduleTo212; + 'Option': Option; + 'Vec': Vec; + Schedule: Schedule; + 'Option': Option; + 'Vec': Vec; + SeedOf: SeedOf; + 'Option': Option; + 'Vec': Vec; + TombstoneContractInfo: TombstoneContractInfo; + 'Option': Option; + 'Vec': Vec; + TrieId: TrieId; + 'Option': Option; + 'Vec': Vec; + AccountVote: AccountVote; + 'Option': Option; + 'Vec': Vec; + AccountVoteSplit: AccountVoteSplit; + 'Option': Option; + 'Vec': Vec; + AccountVoteStandard: AccountVoteStandard; + 'Option': Option; + 'Vec': Vec; + Conviction: Conviction; + 'Option': Option; + 'Vec': Vec; + Delegations: Delegations; + 'Option': Option; + 'Vec': Vec; + PreimageStatus: PreimageStatus; + 'Option': Option; + 'Vec': Vec; + PreimageStatusAvailable: PreimageStatusAvailable; + 'Option': Option; + 'Vec': Vec; + PriorLock: PriorLock; + 'Option': Option; + 'Vec': Vec; + PropIndex: PropIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Proposal: Proposal; + 'Option': Option; + 'Vec': Vec; + ProxyState: ProxyState; + 'Option': Option; + 'Vec': Vec; + ReferendumIndex: ReferendumIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ReferendumInfoTo239: ReferendumInfoTo239; + 'Option': Option; + 'Vec': Vec; + ReferendumInfo: ReferendumInfo; + 'Option': Option; + 'Vec': Vec; + ReferendumInfoFinished: ReferendumInfoFinished; + 'Option': Option; + 'Vec': Vec; + ReferendumStatus: ReferendumStatus; + 'Option': Option; + 'Vec': Vec; + Tally: Tally; + 'Option': Option; + 'Vec': Vec; + Voting: Voting; + 'Option': Option; + 'Vec': Vec; + VotingDirect: VotingDirect; + 'Option': Option; + 'Vec': Vec; + VotingDirectVote: VotingDirectVote; + 'Option': Option; + 'Vec': Vec; + VotingDelegating: VotingDelegating; + 'Option': Option; + 'Vec': Vec; + ApprovalFlag: ApprovalFlag; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + DefunctVoter: DefunctVoter; + 'Option': Option; + 'Vec': Vec; + Renouncing: Renouncing; + 'Option': Option; + 'Vec': Vec; + SetIndex: SetIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Vote: Vote; + 'Option': Option; + 'Vec': Vec; + VoteIndex: VoteIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VoterInfo: VoterInfo; + 'Option': Option; + 'Vec': Vec; + VoteThreshold: VoteThreshold; + 'Option': Option; + 'Vec': Vec; + CreatedBlock: CreatedBlock; + 'Option': Option; + 'Vec': Vec; + ImportedAux: ImportedAux; + 'Option': Option; + 'Vec': Vec; + Account: Account; + 'Option': Option; + 'Vec': Vec; + Log: Log; + 'Option': Option; + 'Vec': Vec; + Vicinity: Vicinity; + 'Option': Option; + 'Vec': Vec; + Extrinsic: Extrinsic; + 'Option': Option; + 'Vec': Vec; + ExtrinsicEra: ExtrinsicEra; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayload: ExtrinsicPayload; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV1: ExtrinsicV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV1: ExtrinsicPayloadV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV1: ExtrinsicSignatureV1; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV2: ExtrinsicV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV2: ExtrinsicPayloadV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV2: ExtrinsicSignatureV2; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV3: ExtrinsicV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV3: ExtrinsicPayloadV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV3: ExtrinsicSignatureV3; + 'Option': Option; + 'Vec': Vec; + ExtrinsicV4: ExtrinsicV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadV4: ExtrinsicPayloadV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicSignatureV4: ExtrinsicSignatureV4; + 'Option': Option; + 'Vec': Vec; + ExtrinsicUnknown: ExtrinsicUnknown; + 'Option': Option; + 'Vec': Vec; + ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown; + 'Option': Option; + 'Vec': Vec; + ImmortalEra: ImmortalEra; + 'Option': Option; + 'Vec': Vec; + MortalEra: MortalEra; + 'Option': Option; + 'Vec': Vec; + MultiSignature: MultiSignature; + 'Option': Option; + 'Vec': Vec; + Signature: Signature; + 'Option': Option; + 'Vec': Vec; + SignerPayload: SignerPayload; + 'Option': Option; + 'Vec': Vec; + EcdsaSignature: EcdsaSignature; + 'Option': Option; + 'Vec': Vec; + Ed25519Signature: Ed25519Signature; + 'Option': Option; + 'Vec': Vec; + Sr25519Signature: Sr25519Signature; + 'Option': Option; + 'Vec': Vec; + AssetOptions: AssetOptions; + 'Option': Option; + 'Vec': Vec; + Owner: Owner; + 'Option': Option; + 'Vec': Vec; + PermissionsV1: PermissionsV1; + 'Option': Option; + 'Vec': Vec; + PermissionVersions: PermissionVersions; + 'Option': Option; + 'Vec': Vec; + PermissionLatest: PermissionLatest; + 'Option': Option; + 'Vec': Vec; + AuthorityIndex: AuthorityIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + AuthorityList: AuthorityList; + 'Option': Option; + 'Vec': Vec; + AuthorityWeight: AuthorityWeight; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocation: GrandpaEquivocation; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocationProof: GrandpaEquivocationProof; + 'Option': Option; + 'Vec': Vec; + GrandpaEquivocationValue: GrandpaEquivocationValue; + 'Option': Option; + 'Vec': Vec; + GrandpaPrevote: GrandpaPrevote; + 'Option': Option; + 'Vec': Vec; + KeyOwnerProof: KeyOwnerProof; + 'Option': Option; + 'Vec': Vec; + NextAuthority: NextAuthority; + 'Option': Option; + 'Vec': Vec; + PendingPause: PendingPause; + 'Option': Option; + 'Vec': Vec; + PendingResume: PendingResume; + 'Option': Option; + 'Vec': Vec; + Precommits: Precommits; + 'Option': Option; + 'Vec': Vec; + Prevotes: Prevotes; + 'Option': Option; + 'Vec': Vec; + ReportedRoundStates: ReportedRoundStates; + 'Option': Option; + 'Vec': Vec; + RoundState: RoundState; + 'Option': Option; + 'Vec': Vec; + SetId: SetId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + StoredPendingChange: StoredPendingChange; + 'Option': Option; + 'Vec': Vec; + StoredState: StoredState; + 'Option': Option; + 'Vec': Vec; + IdentityFields: IdentityFields; + 'Option': Option; + 'Vec': Vec; + IdentityInfoAdditional: IdentityInfoAdditional; + 'Option': Option; + 'Vec': Vec; + IdentityInfo: IdentityInfo; + 'Option': Option; + 'Vec': Vec; + IdentityJudgement: IdentityJudgement; + 'Option': Option; + 'Vec': Vec; + RegistrationJudgement: RegistrationJudgement; + 'Option': Option; + 'Vec': Vec; + Registration: Registration; + 'Option': Option; + 'Vec': Vec; + RegistrarIndex: RegistrarIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + RegistrarInfo: RegistrarInfo; + 'Option': Option; + 'Vec': Vec; + AuthIndex: AuthIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + AuthoritySignature: AuthoritySignature; + 'Option': Option; + 'Vec': Vec; + Heartbeat: Heartbeat; + 'Option': Option; + 'Vec': Vec; + HeartbeatTo244: HeartbeatTo244; + 'Option': Option; + 'Vec': Vec; + OpaqueMultiaddr: OpaqueMultiaddr; + 'Option': Option; + 'Vec': Vec; + OpaquePeerId: OpaquePeerId; + 'Option': Option; + 'Vec': Vec; + OpaqueNetworkState: OpaqueNetworkState; + 'Option': Option; + 'Vec': Vec; + DeferredOffenceOf: DeferredOffenceOf; + 'Option': Option; + 'Vec': Vec; + Kind: Kind; + 'Option': Option; + 'Vec': Vec; + OffenceDetails: OffenceDetails; + 'Option': Option; + 'Vec': Vec; + Offender: Offender; + 'Option': Option; + 'Vec': Vec; + OpaqueTimeSlot: OpaqueTimeSlot; + 'Option': Option; + 'Vec': Vec; + ReportIdOf: ReportIdOf; + 'Option': Option; + 'Vec': Vec; + Reporter: Reporter; + 'Option': Option; + 'Vec': Vec; + ActiveRecovery: ActiveRecovery; + 'Option': Option; + 'Vec': Vec; + RecoveryConfig: RecoveryConfig; + 'Option': Option; + 'Vec': Vec; + Period: Period; + 'Option': Option; + 'Vec': Vec; + Priority: Priority; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SchedulePeriod: SchedulePeriod; + 'Option': Option; + 'Vec': Vec; + SchedulePriority: SchedulePriority; + 'Option': Option; + 'Vec': Vec; + Scheduled: Scheduled; + 'Option': Option; + 'Vec': Vec; + TaskAddress: TaskAddress; + 'Option': Option; + 'Vec': Vec; + Keys: Keys; + 'Option': Option; + 'Vec': Vec; + SessionKeys1: SessionKeys1; + 'Option': Option; + 'Vec': Vec; + SessionKeys2: SessionKeys2; + 'Option': Option; + 'Vec': Vec; + SessionKeys3: SessionKeys3; + 'Option': Option; + 'Vec': Vec; + SessionKeys4: SessionKeys4; + 'Option': Option; + 'Vec': Vec; + SessionKeys5: SessionKeys5; + 'Option': Option; + 'Vec': Vec; + SessionKeys6: SessionKeys6; + 'Option': Option; + 'Vec': Vec; + FullIdentification: FullIdentification; + 'Option': Option; + 'Vec': Vec; + IdentificationTuple: IdentificationTuple; + 'Option': Option; + 'Vec': Vec; + MembershipProof: MembershipProof; + 'Option': Option; + 'Vec': Vec; + SessionIndex: SessionIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ValidatorCount: ValidatorCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Bid: Bid; + 'Option': Option; + 'Vec': Vec; + BidKind: BidKind; + 'Option': Option; + 'Vec': Vec; + SocietyJudgement: SocietyJudgement; + 'Option': Option; + 'Vec': Vec; + SocietyVote: SocietyVote; + 'Option': Option; + 'Vec': Vec; + StrikeCount: StrikeCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + VouchingStatus: VouchingStatus; + 'Option': Option; + 'Vec': Vec; + Points: Points; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EraPoints: EraPoints; + 'Option': Option; + 'Vec': Vec; + ActiveEraInfo: ActiveEraInfo; + 'Option': Option; + 'Vec': Vec; + CompactAssignments: CompactAssignments; + 'Option': Option; + 'Vec': Vec; + CompactScore: CompactScore; + 'Option': Option; + 'Vec': Vec; + ElectionCompute: ElectionCompute; + 'Option': Option; + 'Vec': Vec; + ElectionResult: ElectionResult; + 'Option': Option; + 'Vec': Vec; + ElectionScore: ElectionScore; + 'Option': Option; + 'Vec': Vec; + ElectionSize: ElectionSize; + 'Option': Option; + 'Vec': Vec; + ElectionStatus: ElectionStatus; + 'Option': Option; + 'Vec': Vec; + EraIndex: EraIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EraRewardPoints: EraRewardPoints; + 'Option': Option; + 'Vec': Vec; + EraRewards: EraRewards; + 'Option': Option; + 'Vec': Vec; + Exposure: Exposure; + 'Option': Option; + 'Vec': Vec; + Forcing: Forcing; + 'Option': Option; + 'Vec': Vec; + IndividualExposure: IndividualExposure; + 'Option': Option; + 'Vec': Vec; + KeyType: KeyType; + 'Option': Option; + 'Vec': Vec; + MomentOf: MomentOf; + 'Option': Option; + 'Vec': Vec; + Nominations: Nominations; + 'Option': Option; + 'Vec': Vec; + NominatorIndex: NominatorIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OffchainAccuracy: OffchainAccuracy; + 'Option': Option; + 'Vec': Vec; + PerU16: PerU16; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PhragmenScore: PhragmenScore; + 'Option': Option; + 'Vec': Vec; + RewardDestination: RewardDestination; + 'Option': Option; + 'Vec': Vec; + RewardPoint: RewardPoint; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SlashJournalEntry: SlashJournalEntry; + 'Option': Option; + 'Vec': Vec; + SlashingSpansTo204: SlashingSpansTo204; + 'Option': Option; + 'Vec': Vec; + SlashingSpans: SlashingSpans; + 'Option': Option; + 'Vec': Vec; + SpanIndex: SpanIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SpanRecord: SpanRecord; + 'Option': Option; + 'Vec': Vec; + StakingLedgerTo223: StakingLedgerTo223; + 'Option': Option; + 'Vec': Vec; + StakingLedgerTo240: StakingLedgerTo240; + 'Option': Option; + 'Vec': Vec; + StakingLedger: StakingLedger; + 'Option': Option; + 'Vec': Vec; + UnappliedSlashOther: UnappliedSlashOther; + 'Option': Option; + 'Vec': Vec; + UnappliedSlash: UnappliedSlash; + 'Option': Option; + 'Vec': Vec; + UnlockChunk: UnlockChunk; + 'Option': Option; + 'Vec': Vec; + ValidatorIndex: ValidatorIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefs: ValidatorPrefs; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefsTo196: ValidatorPrefsTo196; + 'Option': Option; + 'Vec': Vec; + ValidatorPrefsTo145: ValidatorPrefsTo145; + 'Option': Option; + 'Vec': Vec; + WeightToFeeCoefficient: WeightToFeeCoefficient; + 'Option': Option; + 'Vec': Vec; + AccountInfo: AccountInfo; + 'Option': Option; + 'Vec': Vec; + ApplyExtrinsicResult: ApplyExtrinsicResult; + 'Option': Option; + 'Vec': Vec; + ChainProperties: ChainProperties; + 'Option': Option; + 'Vec': Vec; + ChainType: ChainType; + 'Option': Option; + 'Vec': Vec; + DigestOf: DigestOf; + 'Option': Option; + 'Vec': Vec; + DispatchClass: DispatchClass; + 'Option': Option; + 'Vec': Vec; + DispatchError: DispatchError; + 'Option': Option; + 'Vec': Vec; + DispatchErrorModule: DispatchErrorModule; + 'Option': Option; + 'Vec': Vec; + DispatchErrorTo198: DispatchErrorTo198; + 'Option': Option; + 'Vec': Vec; + DispatchInfo: DispatchInfo; + 'Option': Option; + 'Vec': Vec; + DispatchInfoTo190: DispatchInfoTo190; + 'Option': Option; + 'Vec': Vec; + DispatchInfoTo244: DispatchInfoTo244; + 'Option': Option; + 'Vec': Vec; + DispatchOutcome: DispatchOutcome; + 'Option': Option; + 'Vec': Vec; + DispatchResult: DispatchResult; + 'Option': Option; + 'Vec': Vec; + DispatchResultOf: DispatchResultOf; + 'Option': Option; + 'Vec': Vec; + DispatchResultTo198: DispatchResultTo198; + 'Option': Option; + 'Vec': Vec; + Event: Event; + 'Option': Option; + 'Vec': Vec; + EventId: EventId; + 'Option': Option; + 'Vec': Vec; + EventIndex: EventIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EventRecord: EventRecord; + 'Option': Option; + 'Vec': Vec; + EventRecordTo76: EventRecordTo76; + 'Option': Option; + 'Vec': Vec; + Health: Health; + 'Option': Option; + 'Vec': Vec; + InvalidTransaction: InvalidTransaction; + 'Option': Option; + 'Vec': Vec; + Key: Key; + 'Option': Option; + 'Vec': Vec; + LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo; + 'Option': Option; + 'Vec': Vec; + NetworkState: NetworkState; + 'Option': Option; + 'Vec': Vec; + NetworkStatePeerset: NetworkStatePeerset; + 'Option': Option; + 'Vec': Vec; + NetworkStatePeersetInfo: NetworkStatePeersetInfo; + 'Option': Option; + 'Vec': Vec; + NodeRole: NodeRole; + 'Option': Option; + 'Vec': Vec; + NotConnectedPeer: NotConnectedPeer; + 'Option': Option; + 'Vec': Vec; + Peer: Peer; + 'Option': Option; + 'Vec': Vec; + PeerEndpoint: PeerEndpoint; + 'Option': Option; + 'Vec': Vec; + PeerEndpointAddr: PeerEndpointAddr; + 'Option': Option; + 'Vec': Vec; + PeerPing: PeerPing; + 'Option': Option; + 'Vec': Vec; + PeerInfo: PeerInfo; + 'Option': Option; + 'Vec': Vec; + Phase: Phase; + 'Option': Option; + 'Vec': Vec; + RefCount: RefCount; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + TransactionValidityError: TransactionValidityError; + 'Option': Option; + 'Vec': Vec; + UnknownTransaction: UnknownTransaction; + 'Option': Option; + 'Vec': Vec; + OpenTip: OpenTip; + 'Option': Option; + 'Vec': Vec; + OpenTipTo225: OpenTipTo225; + 'Option': Option; + 'Vec': Vec; + OpenTipFinderTo225: OpenTipFinderTo225; + 'Option': Option; + 'Vec': Vec; + OpenTipTip: OpenTipTip; + 'Option': Option; + 'Vec': Vec; + TreasuryProposal: TreasuryProposal; + 'Option': Option; + 'Vec': Vec; + Multiplier: Multiplier; + 'Option': Option; + 'Vec': Vec; + CallHash: CallHash; + 'Option': Option; + 'Vec': Vec; + Multisig: Multisig; + 'Option': Option; + 'Vec': Vec; + Timepoint: Timepoint; + 'Option': Option; + 'Vec': Vec; + VestingInfo: VestingInfo; + 'Option': Option; + 'Vec': Vec; + BlockAttestations: BlockAttestations; + 'Option': Option; + 'Vec': Vec; + IncludedBlocks: IncludedBlocks; + 'Option': Option; + 'Vec': Vec; + MoreAttestations: MoreAttestations; + 'Option': Option; + 'Vec': Vec; + EthereumAddress: EthereumAddress; + 'Option': Option; + 'Vec': Vec; + StatementKind: StatementKind; + 'Option': Option; + 'Vec': Vec; + AbridgedCandidateReceipt: AbridgedCandidateReceipt; + 'Option': Option; + 'Vec': Vec; + AttestedCandidate: AttestedCandidate; + 'Option': Option; + 'Vec': Vec; + AuctionIndex: AuctionIndex; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Bidder: Bidder; + 'Option': Option; + 'Vec': Vec; + CandidateCommitments: CandidateCommitments; + 'Option': Option; + 'Vec': Vec; + CandidateReceipt: CandidateReceipt; + 'Option': Option; + 'Vec': Vec; + CollatorId: CollatorId; + 'Option': Option; + 'Vec': Vec; + CollatorSignature: CollatorSignature; + 'Option': Option; + 'Vec': Vec; + DoubleVoteReport: DoubleVoteReport; + 'Option': Option; + 'Vec': Vec; + DownwardMessage: DownwardMessage; + 'Option': Option; + 'Vec': Vec; + GlobalValidationSchedule: GlobalValidationSchedule; + 'Option': Option; + 'Vec': Vec; + HeadData: HeadData; + 'Option': Option; + 'Vec': Vec; + IncomingParachain: IncomingParachain; + 'Option': Option; + 'Vec': Vec; + IncomingParachainFixed: IncomingParachainFixed; + 'Option': Option; + 'Vec': Vec; + IncomingParachainDeploy: IncomingParachainDeploy; + 'Option': Option; + 'Vec': Vec; + LeasePeriod: LeasePeriod; + 'Option': Option; + 'Vec': Vec; + LeasePeriodOf: LeasePeriodOf; + 'Option': Option; + 'Vec': Vec; + LocalValidationData: LocalValidationData; + 'Option': Option; + 'Vec': Vec; + NewBidder: NewBidder; + 'Option': Option; + 'Vec': Vec; + ParachainDispatchOrigin: ParachainDispatchOrigin; + 'Option': Option; + 'Vec': Vec; + ParaId: ParaId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ParaInfo: ParaInfo; + 'Option': Option; + 'Vec': Vec; + ParaPastCodeMeta: ParaPastCodeMeta; + 'Option': Option; + 'Vec': Vec; + ParaScheduling: ParaScheduling; + 'Option': Option; + 'Vec': Vec; + Remark: Remark; + 'Option': Option; + 'Vec': Vec; + Retriable: Retriable; + 'Option': Option; + 'Vec': Vec; + Scheduling: Scheduling; + 'Option': Option; + 'Vec': Vec; + SigningContext: SigningContext; + 'Option': Option; + 'Vec': Vec; + SlotRange: SlotRange; + 'Option': Option; + 'Vec': Vec; + Statement: Statement; + 'Option': Option; + 'Vec': Vec; + SubId: SubId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + UpwardMessage: UpwardMessage; + 'Option': Option; + 'Vec': Vec; + ValidationCode: ValidationCode; + 'Option': Option; + 'Vec': Vec; + ValidatorSignature: ValidatorSignature; + 'Option': Option; + 'Vec': Vec; + ValidityAttestation: ValidityAttestation; + 'Option': Option; + 'Vec': Vec; + WinningData: WinningData; + 'Option': Option; + 'Vec': Vec; + WinningDataEntry: WinningDataEntry; + 'Option': Option; + 'Vec': Vec; + Approvals: Approvals; + 'Option': Option; + 'Vec': Vec; + AccountStatus: AccountStatus; + 'Option': Option; + 'Vec': Vec; + AccountValidity: AccountValidity; + 'Option': Option; + 'Vec': Vec; + CallMetadataV0: CallMetadataV0; + 'Option': Option; + 'Vec': Vec; + EventMetadataV0: EventMetadataV0; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV0: FunctionArgumentMetadataV0; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV0: FunctionMetadataV0; + 'Option': Option; + 'Vec': Vec; + MapTypeV0: MapTypeV0; + 'Option': Option; + 'Vec': Vec; + MetadataV0: MetadataV0; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV0: ModuleMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterDispatchCallV0: OuterDispatchCallV0; + 'Option': Option; + 'Vec': Vec; + OuterDispatchMetadataV0: OuterDispatchMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterEventEventMetadataEventsV0: OuterEventEventMetadataEventsV0; + 'Option': Option; + 'Vec': Vec; + OuterEventEventMetadataV0: OuterEventEventMetadataV0; + 'Option': Option; + 'Vec': Vec; + OuterEventMetadataV0: OuterEventMetadataV0; + 'Option': Option; + 'Vec': Vec; + PlainTypeV0: PlainTypeV0; + 'Option': Option; + 'Vec': Vec; + RuntimeModuleMetadataV0: RuntimeModuleMetadataV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV0: StorageFunctionMetadataV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV0: StorageFunctionModifierV0; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV0: StorageFunctionTypeV0; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV0: StorageMetadataV0; + 'Option': Option; + 'Vec': Vec; + EventMetadataV1: EventMetadataV1; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV1: FunctionArgumentMetadataV1; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV1: FunctionMetadataV1; + 'Option': Option; + 'Vec': Vec; + MetadataV1: MetadataV1; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV1: ModuleMetadataV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV1: StorageFunctionMetadataV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV1: StorageFunctionModifierV1; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV1: StorageFunctionTypeV1; + 'Option': Option; + 'Vec': Vec; + EventMetadataV2: EventMetadataV2; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV2: FunctionArgumentMetadataV2; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV2: FunctionMetadataV2; + 'Option': Option; + 'Vec': Vec; + MapTypeV2: MapTypeV2; + 'Option': Option; + 'Vec': Vec; + MetadataV2: MetadataV2; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV2: ModuleMetadataV2; + 'Option': Option; + 'Vec': Vec; + PlainTypeV2: PlainTypeV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV2: StorageFunctionMetadataV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV2: StorageFunctionModifierV2; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV2: StorageFunctionTypeV2; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV3: DoubleMapTypeV3; + 'Option': Option; + 'Vec': Vec; + EventMetadataV3: EventMetadataV3; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV3: FunctionArgumentMetadataV3; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV3: FunctionMetadataV3; + 'Option': Option; + 'Vec': Vec; + MapTypeV3: MapTypeV3; + 'Option': Option; + 'Vec': Vec; + MetadataV3: MetadataV3; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV3: ModuleMetadataV3; + 'Option': Option; + 'Vec': Vec; + PlainTypeV3: PlainTypeV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV3: StorageFunctionMetadataV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV3: StorageFunctionModifierV3; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV3: StorageFunctionTypeV3; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV4: DoubleMapTypeV4; + 'Option': Option; + 'Vec': Vec; + EventMetadataV4: EventMetadataV4; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV4: FunctionArgumentMetadataV4; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV4: FunctionMetadataV4; + 'Option': Option; + 'Vec': Vec; + MapTypeV4: MapTypeV4; + 'Option': Option; + 'Vec': Vec; + MetadataV4: MetadataV4; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV4: ModuleMetadataV4; + 'Option': Option; + 'Vec': Vec; + PlainTypeV4: PlainTypeV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV4: StorageFunctionMetadataV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV4: StorageFunctionModifierV4; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV4: StorageFunctionTypeV4; + 'Option': Option; + 'Vec': Vec; + StorageHasherV4: StorageHasherV4; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV5: DoubleMapTypeV5; + 'Option': Option; + 'Vec': Vec; + EventMetadataV5: EventMetadataV5; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV5: FunctionArgumentMetadataV5; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV5: FunctionMetadataV5; + 'Option': Option; + 'Vec': Vec; + MapTypeV5: MapTypeV5; + 'Option': Option; + 'Vec': Vec; + MetadataV5: MetadataV5; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV5: ModuleMetadataV5; + 'Option': Option; + 'Vec': Vec; + PlainTypeV5: PlainTypeV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionMetadataV5: StorageFunctionMetadataV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionModifierV5: StorageFunctionModifierV5; + 'Option': Option; + 'Vec': Vec; + StorageFunctionTypeV5: StorageFunctionTypeV5; + 'Option': Option; + 'Vec': Vec; + StorageHasherV5: StorageHasherV5; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV6: DoubleMapTypeV6; + 'Option': Option; + 'Vec': Vec; + EventMetadataV6: EventMetadataV6; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV6: FunctionArgumentMetadataV6; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV6: FunctionMetadataV6; + 'Option': Option; + 'Vec': Vec; + MapTypeV6: MapTypeV6; + 'Option': Option; + 'Vec': Vec; + MetadataV6: MetadataV6; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV6: ModuleConstantMetadataV6; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV6: ModuleMetadataV6; + 'Option': Option; + 'Vec': Vec; + PlainTypeV6: PlainTypeV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV6: StorageEntryModifierV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV6: StorageEntryMetadataV6; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV6: StorageEntryTypeV6; + 'Option': Option; + 'Vec': Vec; + StorageHasherV6: StorageHasherV6; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV7: DoubleMapTypeV7; + 'Option': Option; + 'Vec': Vec; + EventMetadataV7: EventMetadataV7; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV7: FunctionArgumentMetadataV7; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV7: FunctionMetadataV7; + 'Option': Option; + 'Vec': Vec; + MapTypeV7: MapTypeV7; + 'Option': Option; + 'Vec': Vec; + MetadataV7: MetadataV7; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV7: ModuleConstantMetadataV7; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV7: ModuleMetadataV7; + 'Option': Option; + 'Vec': Vec; + PlainTypeV7: PlainTypeV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV7: StorageEntryModifierV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV7: StorageEntryMetadataV7; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV7: StorageEntryTypeV7; + 'Option': Option; + 'Vec': Vec; + StorageHasherV7: StorageHasherV7; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV7: StorageMetadataV7; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV8: DoubleMapTypeV8; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV8: ErrorMetadataV8; + 'Option': Option; + 'Vec': Vec; + EventMetadataV8: EventMetadataV8; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV8: FunctionArgumentMetadataV8; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV8: FunctionMetadataV8; + 'Option': Option; + 'Vec': Vec; + MapTypeV8: MapTypeV8; + 'Option': Option; + 'Vec': Vec; + MetadataV8: MetadataV8; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV8: ModuleConstantMetadataV8; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV8: ModuleMetadataV8; + 'Option': Option; + 'Vec': Vec; + PlainTypeV8: PlainTypeV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV8: StorageEntryModifierV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV8: StorageEntryMetadataV8; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV8: StorageEntryTypeV8; + 'Option': Option; + 'Vec': Vec; + StorageHasherV8: StorageHasherV8; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV8: StorageMetadataV8; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV9: DoubleMapTypeV9; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV9: ErrorMetadataV9; + 'Option': Option; + 'Vec': Vec; + EventMetadataV9: EventMetadataV9; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV9: FunctionArgumentMetadataV9; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV9: FunctionMetadataV9; + 'Option': Option; + 'Vec': Vec; + MapTypeV9: MapTypeV9; + 'Option': Option; + 'Vec': Vec; + MetadataV9: MetadataV9; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV9: ModuleConstantMetadataV9; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV9: ModuleMetadataV9; + 'Option': Option; + 'Vec': Vec; + PlainTypeV9: PlainTypeV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV9: StorageEntryModifierV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV9: StorageEntryMetadataV9; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV9: StorageEntryTypeV9; + 'Option': Option; + 'Vec': Vec; + StorageHasherV9: StorageHasherV9; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV9: StorageMetadataV9; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV10: DoubleMapTypeV10; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV10: ErrorMetadataV10; + 'Option': Option; + 'Vec': Vec; + EventMetadataV10: EventMetadataV10; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV10: FunctionArgumentMetadataV10; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV10: FunctionMetadataV10; + 'Option': Option; + 'Vec': Vec; + MapTypeV10: MapTypeV10; + 'Option': Option; + 'Vec': Vec; + MetadataV10: MetadataV10; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV10: ModuleConstantMetadataV10; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV10: ModuleMetadataV10; + 'Option': Option; + 'Vec': Vec; + PlainTypeV10: PlainTypeV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV10: StorageEntryModifierV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV10: StorageEntryMetadataV10; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV10: StorageEntryTypeV10; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV10: StorageMetadataV10; + 'Option': Option; + 'Vec': Vec; + StorageHasherV10: StorageHasherV10; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeV11: DoubleMapTypeV11; + 'Option': Option; + 'Vec': Vec; + ErrorMetadataV11: ErrorMetadataV11; + 'Option': Option; + 'Vec': Vec; + EventMetadataV11: EventMetadataV11; + 'Option': Option; + 'Vec': Vec; + ExtrinsicMetadataV11: ExtrinsicMetadataV11; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataV11: FunctionArgumentMetadataV11; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataV11: FunctionMetadataV11; + 'Option': Option; + 'Vec': Vec; + MapTypeV11: MapTypeV11; + 'Option': Option; + 'Vec': Vec; + MetadataV11: MetadataV11; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataV11: ModuleConstantMetadataV11; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataV11: ModuleMetadataV11; + 'Option': Option; + 'Vec': Vec; + PlainTypeV11: PlainTypeV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierV11: StorageEntryModifierV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataV11: StorageEntryMetadataV11; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeV11: StorageEntryTypeV11; + 'Option': Option; + 'Vec': Vec; + StorageMetadataV11: StorageMetadataV11; + 'Option': Option; + 'Vec': Vec; + StorageHasherV11: StorageHasherV11; + 'Option': Option; + 'Vec': Vec; + DoubleMapTypeLatest: DoubleMapTypeLatest; + 'Option': Option; + 'Vec': Vec; + EventMetadataLatest: EventMetadataLatest; + 'Option': Option; + 'Vec': Vec; + ExtrinsicMetadataLatest: ExtrinsicMetadataLatest; + 'Option': Option; + 'Vec': Vec; + FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest; + 'Option': Option; + 'Vec': Vec; + FunctionMetadataLatest: FunctionMetadataLatest; + 'Option': Option; + 'Vec': Vec; + MapTypeLatest: MapTypeLatest; + 'Option': Option; + 'Vec': Vec; + MetadataLatest: MetadataLatest; + 'Option': Option; + 'Vec': Vec; + ModuleConstantMetadataLatest: ModuleConstantMetadataLatest; + 'Option': Option; + 'Vec': Vec; + ModuleMetadataLatest: ModuleMetadataLatest; + 'Option': Option; + 'Vec': Vec; + PlainTypeLatest: PlainTypeLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryMetadataLatest: StorageEntryMetadataLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryModifierLatest: StorageEntryModifierLatest; + 'Option': Option; + 'Vec': Vec; + StorageEntryTypeLatest: StorageEntryTypeLatest; + 'Option': Option; + 'Vec': Vec; + StorageMetadataLatest: StorageMetadataLatest; + 'Option': Option; + 'Vec': Vec; + StorageHasher: StorageHasher; + 'Option': Option; + 'Vec': Vec; + MetadataAll: MetadataAll; + 'Option': Option; + 'Vec': Vec; + RpcMethods: RpcMethods; + 'Option': Option; + 'Vec': Vec; + ExtrinsicOrHash: ExtrinsicOrHash; + 'Option': Option; + 'Vec': Vec; + ExtrinsicStatus: ExtrinsicStatus; + 'Option': Option; + 'Vec': Vec; + BlockHash: BlockHash; + 'Option': Option; + 'Vec': Vec; + PrefixedStorageKey: PrefixedStorageKey; + 'Option': Option; + 'Vec': Vec; + StorageKind: StorageKind; + 'Option': Option; + 'Vec': Vec; + RuntimeDispatchInfo: RuntimeDispatchInfo; + 'Option': Option; + 'Vec': Vec; + ApiId: ApiId; + 'Option': Option; + 'Vec': Vec; + KeyValueOption: KeyValueOption; + 'Option': Option; + 'Vec': Vec; + ReadProof: ReadProof; + 'Option': Option; + 'Vec': Vec; + RuntimeVersionApi: RuntimeVersionApi; + 'Option': Option; + 'Vec': Vec; + RuntimeVersion: RuntimeVersion; + 'Option': Option; + 'Vec': Vec; + StorageChangeSet: StorageChangeSet; + 'Option': Option; + 'Vec': Vec; + MemoText: MemoText; + 'Option': Option; + 'Vec': Vec; + Credential: Credential; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + CredentialSet: CredentialSet; + 'Option': Option; + 'Vec': Vec; + BlockAndTime: BlockAndTime; + 'Option': Option; + 'Vec': Vec; + ThreadId: ThreadId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PostId: PostId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + InputValidationLengthConstraint: InputValidationLengthConstraint; + 'Option': Option; + 'Vec': Vec; + WorkingGroup: WorkingGroup; + 'Option': Option; + 'Vec': Vec; + SlashingTerms: SlashingTerms; + 'Option': Option; + 'Vec': Vec; + SlashableTerms: SlashableTerms; + 'Option': Option; + 'Vec': Vec; + EntryMethod: EntryMethod; + 'Option': Option; + 'Vec': Vec; + MemberId: MemberId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PaidTermId: PaidTermId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + SubscriptionId: SubscriptionId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Membership: Membership; + 'Option': Option; + 'Vec': Vec; + PaidMembershipTerms: PaidMembershipTerms; + 'Option': Option; + 'Vec': Vec; + ActorId: ActorId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ElectionStage: ElectionStage; + 'Option': Option; + 'Vec': Vec; + ElectionStake: ElectionStake; + 'Option': Option; + 'Vec': Vec; + SealedVote: SealedVote; + 'Option': Option; + 'Vec': Vec; + TransferableStake: TransferableStake; + 'Option': Option; + 'Vec': Vec; + ElectionParameters: ElectionParameters; + 'Option': Option; + 'Vec': Vec; + Seat: Seat; + 'Option': Option; + 'Vec': Vec; + Seats: Seats; + 'Option': Option; + 'Vec': Vec; + Backer: Backer; + 'Option': Option; + 'Vec': Vec; + Backers: Backers; + 'Option': Option; + 'Vec': Vec; + RoleParameters: RoleParameters; + 'Option': Option; + 'Vec': Vec; + PostTextChange: PostTextChange; + 'Option': Option; + 'Vec': Vec; + ModerationAction: ModerationAction; + 'Option': Option; + 'Vec': Vec; + ChildPositionInParentCategory: ChildPositionInParentCategory; + 'Option': Option; + 'Vec': Vec; + CategoryId: CategoryId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Category: Category; + 'Option': Option; + 'Vec': Vec; + Thread: Thread; + 'Option': Option; + 'Vec': Vec; + Post: Post; + 'Option': Option; + 'Vec': Vec; + ReplyId: ReplyId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Reply: Reply; + 'Option': Option; + 'Vec': Vec; + StakeId: StakeId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Stake: Stake; + 'Option': Option; + 'Vec': Vec; + StakingStatus: StakingStatus; + 'Option': Option; + 'Vec': Vec; + Staked: Staked; + 'Option': Option; + 'Vec': Vec; + StakedStatus: StakedStatus; + 'Option': Option; + 'Vec': Vec; + Unstaking: Unstaking; + 'Option': Option; + 'Vec': Vec; + Slash: Slash; + 'Option': Option; + 'Vec': Vec; + MintId: MintId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Mint: Mint; + 'Option': Option; + 'Vec': Vec; + MintBalanceOf: MintBalanceOf; + 'Option': Option; + 'Vec': Vec; + BalanceOfMint: BalanceOfMint; + 'Option': Option; + 'Vec': Vec; + NextAdjustment: NextAdjustment; + 'Option': Option; + 'Vec': Vec; + AdjustOnInterval: AdjustOnInterval; + 'Option': Option; + 'Vec': Vec; + AdjustCapacityBy: AdjustCapacityBy; + 'Option': Option; + 'Vec': Vec; + RecipientId: RecipientId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + RewardRelationshipId: RewardRelationshipId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Recipient: Recipient; + 'Option': Option; + 'Vec': Vec; + RewardRelationship: RewardRelationship; + 'Option': Option; + 'Vec': Vec; + ApplicationId: ApplicationId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OpeningId: OpeningId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Application: Application; + 'Option': Option; + 'Vec': Vec; + ApplicationStage: ApplicationStage; + 'Option': Option; + 'Vec': Vec; + ActivateOpeningAt: ActivateOpeningAt; + 'Option': Option; + 'Vec': Vec; + ApplicationRationingPolicy: ApplicationRationingPolicy; + 'Option': Option; + 'Vec': Vec; + OpeningStage: OpeningStage; + 'Option': Option; + 'Vec': Vec; + StakingPolicy: StakingPolicy; + 'Option': Option; + 'Vec': Vec; + Opening: Opening; + 'Option': Option; + 'Vec': Vec; + WaitingToBeingOpeningStageVariant: WaitingToBeingOpeningStageVariant; + 'Option': Option; + 'Vec': Vec; + ActiveOpeningStageVariant: ActiveOpeningStageVariant; + 'Option': Option; + 'Vec': Vec; + ActiveOpeningStage: ActiveOpeningStage; + 'Option': Option; + 'Vec': Vec; + AcceptingApplications: AcceptingApplications; + 'Option': Option; + 'Vec': Vec; + ReviewPeriod: ReviewPeriod; + 'Option': Option; + 'Vec': Vec; + Deactivated: Deactivated; + 'Option': Option; + 'Vec': Vec; + OpeningDeactivationCause: OpeningDeactivationCause; + 'Option': Option; + 'Vec': Vec; + InactiveApplicationStage: InactiveApplicationStage; + 'Option': Option; + 'Vec': Vec; + UnstakingApplicationStage: UnstakingApplicationStage; + 'Option': Option; + 'Vec': Vec; + ApplicationDeactivationCause: ApplicationDeactivationCause; + 'Option': Option; + 'Vec': Vec; + StakingAmountLimitMode: StakingAmountLimitMode; + 'Option': Option; + 'Vec': Vec; + ClassId: ClassId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + EntityId: EntityId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + Class: Class; + 'Option': Option; + 'Vec': Vec; + Entity: Entity; + 'Option': Option; + 'Vec': Vec; + ClassSchema: ClassSchema; + 'Option': Option; + 'Vec': Vec; + Property: Property; + 'Option': Option; + 'Vec': Vec; + PropertyType: PropertyType; + 'Option': Option; + 'Vec': Vec; + PropertyValue: PropertyValue; + 'Option': Option; + 'Vec': Vec; + ClassPropertyValue: ClassPropertyValue; + 'Option': Option; + 'Vec': Vec; + EntityPermissions: EntityPermissions; + 'Option': Option; + 'Vec': Vec; + ReferenceConstraint: ReferenceConstraint; + 'Option': Option; + 'Vec': Vec; + ClassPermissionsType: ClassPermissionsType; + 'Option': Option; + 'Vec': Vec; + Operation: Operation; + 'Option': Option; + 'Vec': Vec; + OperationType: OperationType; + 'Option': Option; + 'Vec': Vec; + CreateEntity: CreateEntity; + 'Option': Option; + 'Vec': Vec; + UpdatePropertyValues: UpdatePropertyValues; + 'Option': Option; + 'Vec': Vec; + AddSchemaSupportToEntity: AddSchemaSupportToEntity; + 'Option': Option; + 'Vec': Vec; + ParametrizedEntity: ParametrizedEntity; + 'Option': Option; + 'Vec': Vec; + ParametrizedClassPropertyValue: ParametrizedClassPropertyValue; + 'Option': Option; + 'Vec': Vec; + ParametrizedPropertyValue: ParametrizedPropertyValue; + 'Option': Option; + 'Vec': Vec; + PropertyOfClass: PropertyOfClass; + 'Option': Option; + 'Vec': Vec; + ChannelId: ChannelId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + CuratorId: CuratorId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + CuratorOpeningId: CuratorOpeningId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + CuratorApplicationId: CuratorApplicationId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + LeadId: LeadId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + PrincipalId: PrincipalId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OptionalText: OptionalText; + 'Option': Option; + 'Vec': Vec; + Channel: Channel; + 'Option': Option; + 'Vec': Vec; + ChannelContentType: ChannelContentType; + 'Option': Option; + 'Vec': Vec; + ChannelCurationStatus: ChannelCurationStatus; + 'Option': Option; + 'Vec': Vec; + ChannelPublicationStatus: ChannelPublicationStatus; + 'Option': Option; + 'Vec': Vec; + CurationActor: CurationActor; + 'Option': Option; + 'Vec': Vec; + Curator: Curator; + 'Option': Option; + 'Vec': Vec; + CuratorApplication: CuratorApplication; + 'Option': Option; + 'Vec': Vec; + CuratorOpening: CuratorOpening; + 'Option': Option; + 'Vec': Vec; + Lead: Lead; + 'Option': Option; + 'Vec': Vec; + OpeningPolicyCommitment: OpeningPolicyCommitment; + 'Option': Option; + 'Vec': Vec; + Principal: Principal; + 'Option': Option; + 'Vec': Vec; + WorkingGroupUnstaker: WorkingGroupUnstaker; + 'Option': Option; + 'Vec': Vec; + CuratorApplicationIdToCuratorIdMap: CuratorApplicationIdToCuratorIdMap; + 'Option': Option; + 'Vec': Vec; + CuratorApplicationIdSet: CuratorApplicationIdSet; + 'Option': Option; + 'Vec': Vec; + CuratorRoleStakeProfile: CuratorRoleStakeProfile; + 'Option': Option; + 'Vec': Vec; + CuratorRoleStage: CuratorRoleStage; + 'Option': Option; + 'Vec': Vec; + CuratorExitSummary: CuratorExitSummary; + 'Option': Option; + 'Vec': Vec; + CuratorExitInitiationOrigin: CuratorExitInitiationOrigin; + 'Option': Option; + 'Vec': Vec; + LeadRoleState: LeadRoleState; + 'Option': Option; + 'Vec': Vec; + ExitedLeadRole: ExitedLeadRole; + 'Option': Option; + 'Vec': Vec; + CuratorInduction: CuratorInduction; + 'Option': Option; + 'Vec': Vec; + RationaleText: RationaleText; + 'Option': Option; + 'Vec': Vec; + ApplicationOf: ApplicationOf; + 'Option': Option; + 'Vec': Vec; + ApplicationIdSet: ApplicationIdSet; + 'Option': Option; + 'Vec': Vec; + ApplicationIdToWorkerIdMap: ApplicationIdToWorkerIdMap; + 'Option': Option; + 'Vec': Vec; + WorkerId: WorkerId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + WorkerOf: WorkerOf; + 'Option': Option; + 'Vec': Vec; + OpeningOf: OpeningOf; + 'Option': Option; + 'Vec': Vec; + StorageProviderId: StorageProviderId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + OpeningType: OpeningType; + 'Option': Option; + 'Vec': Vec; + HiringApplicationId: HiringApplicationId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + RewardPolicy: RewardPolicy; + 'Option': Option; + 'Vec': Vec; + WorkingGroupOpeningPolicyCommitment: WorkingGroupOpeningPolicyCommitment; + 'Option': Option; + 'Vec': Vec; + RoleStakeProfile: RoleStakeProfile; + 'Option': Option; + 'Vec': Vec; + Url: Url; + 'Option': Option; + 'Vec': Vec; + IPNSIdentity: IPNSIdentity; + 'Option': Option; + 'Vec': Vec; + ServiceProviderRecord: ServiceProviderRecord; + 'Option': Option; + 'Vec': Vec; + ContentId: ContentId; + 'Option': Option; + 'Vec': Vec; + LiaisonJudgement: LiaisonJudgement; + 'Option': Option; + 'Vec': Vec; + DataObject: DataObject; + 'Option': Option; + 'Vec': Vec; + DataObjectStorageRelationshipId: DataObjectStorageRelationshipId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + DataObjectStorageRelationship: DataObjectStorageRelationship; + 'Option': Option; + 'Vec': Vec; + DataObjectTypeId: DataObjectTypeId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + DataObjectType: DataObjectType; + 'Option': Option; + 'Vec': Vec; + DataObjectsMap: DataObjectsMap; + 'Option': Option; + 'Vec': Vec; + ProposalId: ProposalId; + 'Compact': Compact; + 'Option': Option; + 'Vec': Vec; + ProposalStatus: ProposalStatus; + 'Option': Option; + 'Vec': Vec; + ProposalOf: ProposalOf; + 'Option': Option; + 'Vec': Vec; + ProposalDetails: ProposalDetails; + 'Option': Option; + 'Vec': Vec; + ProposalDetailsOf: ProposalDetailsOf; + 'Option': Option; + 'Vec': Vec; + VotingResults: VotingResults; + 'Option': Option; + 'Vec': Vec; + ProposalParameters: ProposalParameters; + 'Option': Option; + 'Vec': Vec; + VoteKind: VoteKind; + 'Option': Option; + 'Vec': Vec; + ThreadCounter: ThreadCounter; + 'Option': Option; + 'Vec': Vec; + DiscussionThread: DiscussionThread; + 'Option': Option; + 'Vec': Vec; + DiscussionPost: DiscussionPost; + 'Option': Option; + 'Vec': Vec; + AddOpeningParameters: AddOpeningParameters; + 'Option': Option; + 'Vec': Vec; + FillOpeningParameters: FillOpeningParameters; + 'Option': Option; + 'Vec': Vec; + TerminateRoleParameters: TerminateRoleParameters; + 'Option': Option; + 'Vec': Vec; + ActiveStake: ActiveStake; + 'Option': Option; + 'Vec': Vec; + Finalized: Finalized; + 'Option': Option; + 'Vec': Vec; + ProposalDecisionStatus: ProposalDecisionStatus; + 'Option': Option; + 'Vec': Vec; + ExecutionFailed: ExecutionFailed; + 'Option': Option; + 'Vec': Vec; + Approved: Approved; + 'Option': Option; + 'Vec': Vec; + SetLeadParams: SetLeadParams; + 'Option': Option; + 'Vec': Vec; + } +} diff --git a/types/augment/definitions.ts b/types/augment/definitions.ts new file mode 100644 index 0000000000..35d81ee3ef --- /dev/null +++ b/types/augment/definitions.ts @@ -0,0 +1 @@ +export { default as all } from './all/definitions' diff --git a/types/augment/index.ts b/types/augment/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/types/augment/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/types/augment/types.ts b/types/augment/types.ts new file mode 100644 index 0000000000..aa1dd5e43d --- /dev/null +++ b/types/augment/types.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './all/types'; diff --git a/types/package.json b/types/package.json index 0bf23c3dcb..4836d49dbd 100644 --- a/types/package.json +++ b/types/package.json @@ -9,10 +9,14 @@ "build": "tsc --build tsconfig.json", "lint": "eslint ./ --quiet --ext .ts", "format": "prettier ./ --write", - "checks": "yarn build && madge --circular ./ && yarn lint && prettier ./ --check", - "generate:defs": "ts-node node_modules/.bin/polkadot-types-from-defs --package ./src --input ./src/definitions", - "update:augment-types": "tsc --build tsconfig-scripts.json && node ./src/scripts/updateAugmentTypes.js", - "print:typedef": "tsc --build tsconfig-scripts.json && node ./src/scripts/defsFromTypes.js" + "check:augment": "tsc --build tsconfig-augment.json && tsc --build tsconfig-augment-codec.json", + "checks": "yarn build && madge --circular ./ && yarn lint && prettier ./ --check && yarn check:augment", + "generate:defs": "ts-node node_modules/.bin/polkadot-types-from-defs --package . --input ./augment", + "generate:meta": "ts-node node_modules/.bin/polkadot-types-from-chain --package . --endpoint ws://127.0.0.1:9944 --output ./augment --strict", + "generate:codec-defs": "ts-node ./src/scripts/generateCodecDefs.ts", + "generate:registry-json": "ts-node ./src/scripts/generateRegistryJson.ts", + "generate:augment": "yarn generate:registry-json && yarn generate:defs && yarn generate:meta", + "generate:all": "yarn generate:augment && yarn generate:codec-defs" }, "author": "Joystream contributors", "maintainers": [], diff --git a/types/src/JoyEnum.ts b/types/src/JoyEnum.ts index 4598eb5018..147a230a15 100644 --- a/types/src/JoyEnum.ts +++ b/types/src/JoyEnum.ts @@ -31,12 +31,16 @@ export function JoyEnum>(types: Types) ) { return new JoyEnumObject(registry, { [typeKey]: value }) } + + // eslint-disable-next-line no-useless-constructor constructor(registry: Registry, value?: any, index?: number) { super(registry, value, index) } + public isOfType(typeKey: keyof Types) { return this.type === typeKey } + public asType(typeKey: TypeKey) { if (!this.isOfType(typeKey)) { throw new Error(`Enum.asType(${typeKey}) - value is not of type ${typeKey}`) diff --git a/types/src/JoyStruct.ts b/types/src/JoyStruct.ts index 582b9e4230..7d83438015 100644 --- a/types/src/JoyStruct.ts +++ b/types/src/JoyStruct.ts @@ -42,15 +42,19 @@ export function JoyStructCustom>( fields: FieldTypes ): ExtendedStructConstructor { return class JoyStructObject extends Struct.with(fields) { + // eslint-disable-next-line no-useless-constructor constructor(registry: Registry, value?: { [k in keyof FieldTypes]: InstanceType }) { super(registry, value) } + getField(key: FieldKey): InstanceType { return this.get(key as string) as InstanceType } + getString(key: FieldKey): string { return this.getField(key).toString() } + // TODO: Check why would this ever be needed cloneValues(): { [k in keyof FieldTypes]: FieldTypes[k] } { const objectClone = {} as Partial<{ [k in keyof FieldTypes]: Codec }> diff --git a/types/src/common.ts b/types/src/common.ts index 4914811d4e..c1ddb30149 100644 --- a/types/src/common.ts +++ b/types/src/common.ts @@ -61,7 +61,7 @@ export type InputValidationLengthConstraintType = { export class InputValidationLengthConstraint extends JoyStructDecorated({ min: u16, max_min_diff: u16 }) implements InputValidationLengthConstraintType { get max(): u16 { - return new u16(this.registry, this.min.add(this.max_min_diff)) + return this.registry.createType('u16', this.min.add(this.max_min_diff)) } } diff --git a/types/src/content-working-group/index.ts b/types/src/content-working-group/index.ts index 6cf2dfa598..eaddb032b9 100644 --- a/types/src/content-working-group/index.ts +++ b/types/src/content-working-group/index.ts @@ -175,7 +175,7 @@ export class Curator } get is_active(): boolean { - return this.stage.type == CuratorRoleStageKeys.Active + return this.stage.isOfType('Active') } } @@ -197,6 +197,7 @@ export class CuratorApplication get role_account_id(): AccountId { return this.role_account } + // Helper for working-group compatibility get opening_id(): CuratorOpeningId { return this.curator_opening_id @@ -325,6 +326,7 @@ export const contentWorkingGroupTypes = { CuratorRoleStage, CuratorExitSummary, CuratorExitInitiationOrigin, + LeadRoleState, ExitedLeadRole, CuratorInduction, } diff --git a/types/src/definitions/definitions.ts b/types/src/definitions/definitions.ts deleted file mode 100644 index 9cbb7a973c..0000000000 --- a/types/src/definitions/definitions.ts +++ /dev/null @@ -1,2 +0,0 @@ -// We can put our types definitions here in the future (in order to use @polkadot/typegen) -export {} diff --git a/types/src/forum.ts b/types/src/forum.ts index 770dd101ed..9f931108e0 100644 --- a/types/src/forum.ts +++ b/types/src/forum.ts @@ -144,7 +144,7 @@ export class Category extends JoyStructCustom({ } get num_threads_created(): u32 { - return new u32(this.registry, this.num_direct_unmoderated_threads.add(this.num_direct_moderated_threads)) + return this.registry.createType('u32', this.num_direct_unmoderated_threads.add(this.num_direct_moderated_threads)) } get hasSubcategories(): boolean { @@ -236,7 +236,7 @@ export class Thread extends JoyStructCustom({ } get num_posts_ever_created(): u32 { - return new u32(this.registry, this.num_unmoderated_posts.add(this.num_moderated_posts)) + return this.registry.createType('u32', this.num_unmoderated_posts.add(this.num_moderated_posts)) } get created_at(): BlockAndTime { diff --git a/types/src/hiring/index.ts b/types/src/hiring/index.ts index 9c2be810b8..5ba083f432 100644 --- a/types/src/hiring/index.ts +++ b/types/src/hiring/index.ts @@ -6,7 +6,7 @@ import { StakeId } from '../stake' import { GenericJoyStreamRoleSchema } from './schemas/role.schema.typings' -import ajv from 'ajv' +import Ajv from 'ajv' import * as role_schema_json from './schemas/role.schema.json' import { RegistryTypes } from '@polkadot/types/types' @@ -220,7 +220,7 @@ export class StakingPolicy review_period_expired_unstaking_period_length: Option.with(u32), }) implements IStakingPolicy {} -export const schemaValidator: ajv.ValidateFunction = new ajv({ allErrors: true }).compile(role_schema_json) +export const schemaValidator: Ajv.ValidateFunction = new Ajv({ allErrors: true }).compile(role_schema_json) const OpeningHRTFallback: GenericJoyStreamRoleSchema = { version: 1, @@ -355,6 +355,7 @@ export const hiringTypes: RegistryTypes = { InactiveApplicationStage, UnstakingApplicationStage, ApplicationDeactivationCause, + StakingAmountLimitMode, } export default hiringTypes diff --git a/types/src/mint/index.ts b/types/src/mint/index.ts index c2c1d080d2..461bb125bf 100644 --- a/types/src/mint/index.ts +++ b/types/src/mint/index.ts @@ -53,7 +53,6 @@ export const mintTypes: RegistryTypes = { Mint, MintBalanceOf: 'Balance', BalanceOfMint: 'Balance', - 'minting::BalanceOf': 'Balance', // Expose in registry for api.createType purposes: NextAdjustment, AdjustOnInterval, diff --git a/types/src/proposals.ts b/types/src/proposals.ts index a70ab6df0e..c6ff7a9b6f 100644 --- a/types/src/proposals.ts +++ b/types/src/proposals.ts @@ -153,7 +153,7 @@ export class ProposalId extends u32 {} export class SpendingParams extends Tuple.with(['Balance', 'AccountId']) {} -class SetLeadParams extends Tuple.with([MemberId, AccountId]) {} +export class SetLeadParams extends Tuple.with([MemberId, AccountId]) {} export class SetLead extends Option.with(SetLeadParams) {} @@ -287,9 +287,11 @@ export const proposalsTypes = { TerminateRoleParameters, // Expose in registry for api.createType purposes: ActiveStake, - FinalizationData, + Finalized, ProposalDecisionStatus, ExecutionFailed, + Approved, + SetLeadParams, } export default proposalsTypes diff --git a/types/src/scripts/defsFromTypes.ts b/types/src/scripts/defsFromTypes.ts deleted file mode 100644 index 78b3704e87..0000000000 --- a/types/src/scripts/defsFromTypes.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Conversion of Joystream types into @polkadot/typegen compatible RegistryTypes object -// (will require a few additonal tweaks to work, currently just logs the output in the console) - -import { types } from '../index' -import { Constructor, Codec, RegistryTypes, Registry } from '@polkadot/types/types' -import { TypeRegistry } from '@polkadot/types' - -function normalizeDef(registry: Registry, defOrConstructor: any, typeName: string) { - if (typeof defOrConstructor === 'string') { - return defOrConstructor - } else if (typeof defOrConstructor === 'function') { - const defString = new (defOrConstructor as Constructor)(registry).toRawType().toString() - try { - const obj = JSON.parse(defString) - // def is an object: - return obj - } catch (e) { - // def if just a type name: - return defString - } - } - - throw new Error(`Unkown type entry for ${typeName} found in registry!`) -} - -async function defsFromTypes() { - const registry = new TypeRegistry() - registry.setKnownTypes({ types }) - registry.register(types) - const defs: RegistryTypes = {} - Object.entries(registry.knownTypes.types as any).forEach(([typeName, defOrConstructor]) => { - const def = normalizeDef(registry, defOrConstructor, typeName) - defs[typeName] = def - }) - - return defs -} - -defsFromTypes() - .then((defs) => console.log(defs)) - .catch(console.error) diff --git a/types/src/scripts/updateAugmentTypes.ts b/types/src/scripts/generateCodecDefs.ts similarity index 63% rename from types/src/scripts/updateAugmentTypes.ts rename to types/src/scripts/generateCodecDefs.ts index 52e3cd90d8..400c295eaa 100644 --- a/types/src/scripts/updateAugmentTypes.ts +++ b/types/src/scripts/generateCodecDefs.ts @@ -1,4 +1,5 @@ -// Adds Joystream types to /definitions/augment-types.ts allowing better api.createType TS support +// Creates /augment-codec/augment-types.ts file with api augmentation that allows +// creating custom Joystream "Codec types" with api.createType import common from '../common' import members from '../members' @@ -18,6 +19,11 @@ import media from '../media' import proposals from '../proposals' import fs from 'fs' import path from 'path' +import * as defaultDefinitions from '@polkadot/types/interfaces/definitions' +import { generateInterfaceTypes } from '@polkadot/typegen/generate/interfaceRegistry' + +const OUTPUT_PATH = path.join(__dirname, '../../augment-codec/augment-types.ts') +const IMPORTS_DIR = '..' const typesByModule = { 'common': common, @@ -44,7 +50,10 @@ type AugmentTypes = { [typeName: string]: string } const imports: Imports = {} const augmentTypes: AugmentTypes = {} -const populateFileByTemplateTag = (fileContent: string, tag: string, lines: string[]) => { +const CUSTOM_IMPORTS_TAG = 'CUSTOMIMPORTS' +const CUSTOM_TYPES_TAG = 'CUSTOMTYPES' + +const populateFileByTemplateTag = (fileContent: string, tag: string, insertLines: string[]) => { const fileLines = fileContent.split('\n') const startIndex = fileLines.findIndex((line) => line.includes(`/** ${tag} **/`)) const endIndex = fileLines.findIndex((line) => line.includes(`/** /${tag} **/`)) @@ -53,28 +62,49 @@ const populateFileByTemplateTag = (fileContent: string, tag: string, lines: stri throw new Error(`populateFileByTemplateTag: Invalid tag (${tag})`) } - const whitespaceMatch = fileLines[startIndex].match(/^(\s)+/) - const whitespace = whitespaceMatch ? whitespaceMatch[0] : '' + const [whitespace] = fileLines[startIndex].match(/^(\s)+/) || [''] + fileLines.splice(startIndex + 1, endIndex - (startIndex + 1), ...insertLines.map((line) => `${whitespace}${line}`)) + + return fileLines.join('\n') +} - fileLines.splice(startIndex + 1, endIndex - (startIndex + 1), ...lines.map((line) => `${whitespace}${line}`)) +const addTagsIfDontExist = (fileContent: string): string => { + const fileLines = fileContent.split('\n') + // Custom imports + if (fileLines.findIndex((line) => line.includes(`/** ${CUSTOM_IMPORTS_TAG} **/`)) === -1) { + const firstImportIndex = fileLines.findIndex((line) => line.includes('import')) + fileLines.splice(firstImportIndex, 0, `/** ${CUSTOM_IMPORTS_TAG} **/`, `/** /${CUSTOM_IMPORTS_TAG} **/`) + } + // Custom types + if (fileLines.findIndex((line) => line.includes(`/** ${CUSTOM_TYPES_TAG} **/`)) === -1) { + const firstTypeIndex = fileLines.findIndex((line) => line.includes('export interface InterfaceTypes')) + 1 + const [whitespace] = fileLines[firstTypeIndex].match(/^(\s)+/) || [''] + fileLines.splice( + firstTypeIndex, + 0, + `${whitespace}/** ${CUSTOM_TYPES_TAG} **/`, + `${whitespace}/** /${CUSTOM_TYPES_TAG} **/` + ) + } return fileLines.join('\n') } const updateAugmentTypesFile = (filePath: string, imports: Imports, augmentTypes: AugmentTypes) => { let fileContent = fs.readFileSync(filePath).toString() + fileContent = addTagsIfDontExist(fileContent) fileContent = populateFileByTemplateTag( fileContent, - 'CUSTOMIMPORTS', + CUSTOM_IMPORTS_TAG, Object.entries(imports).map( ([moduleName, importStatements]) => // import as to avoid namespace clashes - `import { ${importStatements.join(', ')} } from '../${moduleName}'` + `import { ${importStatements.join(', ')} } from '${IMPORTS_DIR}/${moduleName}'` ) ) fileContent = populateFileByTemplateTag( fileContent, - 'CUSTOMTYPES', + CUSTOM_TYPES_TAG, Object.entries(augmentTypes).map(([typeName, constructorName]) => `"${typeName}": ${constructorName};`) ) @@ -87,6 +117,10 @@ const addAugmentTypes = (typeName: string, constructorName: string) => { augmentTypes[`Vec<${typeName}>`] = `Vec<${constructorName}>` } +console.log('Generating default interface types based on current @polkadot/types definitions...') +generateInterfaceTypes({ '@polkadot/types/interfaces': defaultDefinitions }, OUTPUT_PATH) + +console.log('Adding custom Joystream types...') Object.entries(typesByModule).forEach(([moduleName, types]) => { console.log('Module: ', moduleName) console.log('Types found:', Object.keys(types)) @@ -107,4 +141,4 @@ Object.entries(typesByModule).forEach(([moduleName, types]) => { }) }) -updateAugmentTypesFile(path.join(__dirname, '../definitions/augment-types.ts'), imports, augmentTypes) +updateAugmentTypesFile(OUTPUT_PATH, imports, augmentTypes) diff --git a/types/src/scripts/generateRegistryJson.ts b/types/src/scripts/generateRegistryJson.ts new file mode 100644 index 0000000000..a746a0aa5e --- /dev/null +++ b/types/src/scripts/generateRegistryJson.ts @@ -0,0 +1,87 @@ +// Conversion of Joystream types into @polkadot/typegen compatible RegistryTypes json file + +import { types } from '../index' +import { Constructor, Codec, RegistryTypes, Registry } from '@polkadot/types/types' +import { Struct } from '@polkadot/types/codec' +import { TypeRegistry } from '@polkadot/types' +import fs from 'fs' +import path from 'path' + +const OUTPUT_PATH = path.join(__dirname, '../../augment/all/defs.json') + +function normalizeDef(registry: Registry, defOrConstructor: any, typeName: string): RegistryTypes[string] { + if (typeof defOrConstructor === 'string') { + // Replace unhandled BTreeSet with Vec + defOrConstructor = defOrConstructor.replace('BTreeSet<', 'Vec<') + return defOrConstructor + } else if (typeof defOrConstructor === 'function') { + const defString = new (defOrConstructor as Constructor)(registry).toRawType().toString() + let obj: any + + try { + obj = JSON.parse(defString) + } catch (e) { + // def if just a type name: + return defString + } + + // def is an object: + const normalizedObj: any = {} + if (obj._enum && Array.isArray(obj._enum)) { + // Enum as array - No need to normalize + return obj + } else if (obj._enum && !Array.isArray(obj._enum)) { + // Enum as object - normalize properties + normalizedObj._enum = {} + Object.entries(obj._enum).forEach(([key, value]) => { + const normalizedValue = normalizeDef(registry, value, `${typeName}[${key}]`) + if (typeof normalizedValue !== 'string') { + throw new Error( + `Too many nested definitions in ${typeName} enum. Did you forget to expose some types in the registry?` + ) + } + normalizedObj._enum[key] = normalizedValue + }) + } else if (obj._set) { + // Set - we don't need those now, but perhaps worth looking into at some point + throw new Error('_set definitions are not supported yet!') + } else { + // Struct - normalize properties + const emptyStruct = new Struct(registry, {}) as any + for (const [key, value] of Object.entries(obj)) { + // Prevent interface clashes + // FIXME: Would be way better if this was actually done by @polkadot/typegen tool + if (emptyStruct[key] !== undefined) { + continue + } + const normalizedValue = normalizeDef(registry, value, `${typeName}[${key}]`) + if (typeof normalizedValue !== 'string') { + throw new Error( + `Too many nested definitions in ${typeName} struct. Did you forget to expose some types in the registry?` + ) + } + normalizedObj[key] = normalizedValue + } + } + + return normalizedObj + } + + throw new Error(`Unkown type entry for ${typeName} found in registry!`) +} + +function defsFromTypes(types: RegistryTypes) { + const registry = new TypeRegistry() + registry.setKnownTypes({ types }) + registry.register(types) + const defs: RegistryTypes = {} + Object.entries(registry.knownTypes.types as any).forEach(([typeName, defOrConstructor]) => { + const def = normalizeDef(registry, defOrConstructor, typeName) + defs[typeName] = def + }) + + return defs +} + +const defs = defsFromTypes(types) +fs.writeFileSync(OUTPUT_PATH, JSON.stringify(defs, undefined, 4)) diff --git a/types/src/stake/index.ts b/types/src/stake/index.ts index 584da2293b..05b1741421 100644 --- a/types/src/stake/index.ts +++ b/types/src/stake/index.ts @@ -80,7 +80,7 @@ export class Stake return this.staking_status.asType('Staked').staked_amount } - return new u128(this.registry, 0) + return this.registry.createType('Balance', 0) } } diff --git a/types/src/versioned-store/EntityCodec.ts b/types/src/versioned-store/EntityCodec.ts index f35f47dd8e..7d0942dc54 100644 --- a/types/src/versioned-store/EntityCodec.ts +++ b/types/src/versioned-store/EntityCodec.ts @@ -1,5 +1,5 @@ import BN from 'bn.js' -import { Text, bool, Vec, u16 } from '@polkadot/types' +import { Text, bool, Vec } from '@polkadot/types' import { Codec, Registry } from '@polkadot/types/types' import { Class, Entity, VecClassPropertyValue, ClassPropertyValue, EntityId, ClassId, unifyPropName } from '.' import * as PV from './PropertyValue' @@ -12,7 +12,7 @@ import ChannelId from '../content-working-group/ChannelId' * like string, number, boolean, etc. */ function substrateToPlain(x: Codec): T | undefined { - let res: any = undefined + let res: any if (x instanceof PV.None) { res = undefined @@ -262,7 +262,7 @@ export abstract class EntityCodec { new ClassPropertyValue( this.registry, // FIXME: createType? { - in_class_index: new u16(this.registry, meta.index), + in_class_index: this.registry.createType('u16', meta.index), value: codecValue, } ) diff --git a/types/src/versioned-store/permissions/batching/parametrized-property-value.ts b/types/src/versioned-store/permissions/batching/parametrized-property-value.ts index 9bfea379b1..8a7296f8a3 100644 --- a/types/src/versioned-store/permissions/batching/parametrized-property-value.ts +++ b/types/src/versioned-store/permissions/batching/parametrized-property-value.ts @@ -1,10 +1,9 @@ import { u32, Vec } from '@polkadot/types' -import { PropertyValue as VersionedStorePropertyValue, PropertyValueEnumValue } from '../../PropertyValue' +import { PropertyValue, PropertyValueEnumValue } from '../../PropertyValue' import { ParametrizedEntity } from './parametrized-entity' import { Registry } from '@polkadot/types/types' import { JoyEnum } from '../../../common' -export class PropertyValue extends VersionedStorePropertyValue {} export class InternalEntityJustAdded extends u32 {} export class InternalEntityVec extends Vec.with(ParametrizedEntity) {} @@ -16,7 +15,7 @@ export const ParametrizedPropertyValueDef = { export class ParametrizedPropertyValue extends JoyEnum(ParametrizedPropertyValueDef) { // TODO: Are those worth preserving? static PropertyValue(registry: Registry, value: PropertyValueEnumValue): ParametrizedPropertyValue { - return new ParametrizedPropertyValue(registry, { PropertyValue: new VersionedStorePropertyValue(registry, value) }) + return new ParametrizedPropertyValue(registry, { PropertyValue: new PropertyValue(registry, value) }) } static InternalEntityJustAdded(registry: Registry, index: number | u32): ParametrizedPropertyValue { diff --git a/types/src/versioned-store/permissions/index.ts b/types/src/versioned-store/permissions/index.ts index af1215a8e7..f790d46a09 100644 --- a/types/src/versioned-store/permissions/index.ts +++ b/types/src/versioned-store/permissions/index.ts @@ -7,6 +7,7 @@ import { ParametrizedEntity } from './batching/parametrized-entity' import { RegistryTypes } from '@polkadot/types/types' import ParametrizedClassPropertyValue from './batching/ParametrizedClassPropertyValue' import { ParametrizedPropertyValue } from './batching/parametrized-property-value' +import PropertyOfClass from './PropertyOfClass' export { EntityPermissions, @@ -20,6 +21,7 @@ export { ParametrizedEntity, ParametrizedClassPropertyValue, ParametrizedPropertyValue, + PropertyOfClass, } export const versionedStorePermissionsTypes: RegistryTypes = { @@ -35,6 +37,7 @@ export const versionedStorePermissionsTypes: RegistryTypes = { ParametrizedEntity, ParametrizedClassPropertyValue, ParametrizedPropertyValue, + PropertyOfClass, } export default versionedStorePermissionsTypes diff --git a/types/src/working-group/index.ts b/types/src/working-group/index.ts index a2e5edce0e..15c2e15ebe 100644 --- a/types/src/working-group/index.ts +++ b/types/src/working-group/index.ts @@ -175,8 +175,6 @@ export const workingGroupTypes: RegistryTypes = { /// Alias used by the runtime working-group module HiringApplicationId: ApplicationId, RewardPolicy, - 'working_group::OpeningId': OpeningId, - 'working_group::WorkerId': WorkerId, // Expose in registry for api.createType purposes: WorkingGroupOpeningPolicyCommitment, RoleStakeProfile, diff --git a/types/tsconfig-augment-codec.json b/types/tsconfig-augment-codec.json new file mode 100644 index 0000000000..e571738842 --- /dev/null +++ b/types/tsconfig-augment-codec.json @@ -0,0 +1,12 @@ +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "noEmit": true, // No need to actually create any output + "paths": { + "@polkadot/types/augment": ["augment-codec/augment-types.ts"] + } + }, + "include": [ + "augment-codec/**/*.ts" + ] +} diff --git a/types/tsconfig-augment.json b/types/tsconfig-augment.json new file mode 100644 index 0000000000..e44e9d87f3 --- /dev/null +++ b/types/tsconfig-augment.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig-base.json", + "compilerOptions": { + "noEmit": true, // No need to actually create any output + "paths": { + "@polkadot/types/augment": ["augment/augment-types.ts"], + "@polkadot/api/augment": ["augment/augment-api.ts"] + } + }, + "include": [ + "augment/**/*.ts" + ] +} diff --git a/types/tsconfig-base.json b/types/tsconfig-base.json index 43cdbce3a4..d235a17f57 100644 --- a/types/tsconfig-base.json +++ b/types/tsconfig-base.json @@ -16,10 +16,7 @@ "node" ], "forceConsistentCasingInFileNames": true, - "baseUrl": ".", - "paths": { - "@polkadot/types/augment": ["src/definitions/augment-types.ts"] - } + "baseUrl": "." }, "exclude": [ "node_modules", diff --git a/types/tsconfig-scripts.json b/types/tsconfig-scripts.json deleted file mode 100644 index cb2cc7ce7d..0000000000 --- a/types/tsconfig-scripts.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig-base.json", - "include": [ - "src/**/*.ts" // Include all files to make sure they're always up-to-date when running scripts - ], -} diff --git a/utils/api-examples/tsconfig.json b/utils/api-examples/tsconfig.json index 45be35edff..6c8445c0fc 100644 --- a/utils/api-examples/tsconfig.json +++ b/utils/api-examples/tsconfig.json @@ -12,7 +12,7 @@ "noUnusedLocals": true, "baseUrl": "./", "paths": { - "@polkadot/types/augment": ["../../types/src/definitions/augment-types.ts"] + "@polkadot/types/augment": ["../../types/augment-codec/augment-types.ts"] } }, "include": ["src/**/*"]