12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253 |
- // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
- /* eslint-disable */
- import type { BTreeMap, BTreeSet, Bytes, Enum, GenericAccountId, Option, Struct, Text, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types';
- import type { ITuple } from '@polkadot/types/types';
- import type { AccountId, Balance, Hash } from '@polkadot/types/interfaces/runtime';
- import type { ValidatorPrefsWithCommission } from '@polkadot/types/interfaces/staking';
- import type { AccountInfoWithRefCount } from '@polkadot/types/interfaces/system';
- /** @name AccountInfo */
- export interface AccountInfo extends AccountInfoWithRefCount {}
- /** @name ActorId */
- export interface ActorId extends u64 {}
- /** @name Address */
- export interface Address extends AccountId {}
- /** @name Application */
- export interface Application extends Struct {
- readonly role_account_id: AccountId;
- readonly reward_account_id: AccountId;
- readonly staking_account_id: AccountId;
- readonly member_id: MemberId;
- readonly description_hash: Bytes;
- readonly opening_id: OpeningId;
- }
- /** @name ApplicationId */
- export interface ApplicationId extends u64 {}
- /** @name ApplicationIdSet */
- export interface ApplicationIdSet extends BTreeSet<ApplicationId> {}
- /** @name ApplicationIdToWorkerIdMap */
- export interface ApplicationIdToWorkerIdMap extends BTreeMap<ApplicationId, WorkerId> {}
- /** @name ApplicationInfo */
- export interface ApplicationInfo extends Struct {
- readonly application_id: ApplicationId;
- readonly application: Application;
- }
- /** @name ApplyOnOpeningParameters */
- export interface ApplyOnOpeningParameters extends Struct {
- readonly member_id: MemberId;
- readonly opening_id: OpeningId;
- readonly role_account_id: AccountId;
- readonly reward_account_id: AccountId;
- readonly description: Bytes;
- readonly stake_parameters: StakeParameters;
- }
- /** @name Approved */
- export interface Approved extends Enum {
- readonly isPendingExecution: boolean;
- readonly isPendingConstitutionality: boolean;
- }
- /** @name AssuranceContractType */
- export interface AssuranceContractType extends Enum {
- readonly isOpen: boolean;
- readonly isClosed: boolean;
- readonly asClosed: AssuranceContractType_Closed;
- }
- /** @name AssuranceContractType_Closed */
- export interface AssuranceContractType_Closed extends BTreeSet<MemberId> {}
- /** @name Auction */
- export interface Auction extends Struct {
- readonly starting_price: u128;
- readonly buy_now_price: Option<u128>;
- readonly auction_type: AuctionType;
- readonly minimal_bid_step: u128;
- readonly last_bid: Option<Bid>;
- readonly starts_at: u32;
- readonly whitelist: BTreeSet<MemberId>;
- }
- /** @name AuctionParams */
- export interface AuctionParams extends Struct {
- readonly auction_type: AuctionType;
- readonly starting_price: u128;
- readonly minimal_bid_step: u128;
- readonly buy_now_price: Option<u128>;
- readonly starts_at: Option<u32>;
- readonly whitelist: BTreeSet<MemberId>;
- }
- /** @name AuctionType */
- export interface AuctionType extends Enum {
- readonly isEnglish: boolean;
- readonly asEnglish: EnglishAuctionDetails;
- readonly isOpen: boolean;
- readonly asOpen: OpenAuctionDetails;
- }
- /** @name Bag */
- export interface Bag extends Struct {
- readonly stored_by: BTreeSet<StorageBucketId>;
- readonly distributed_by: BTreeSet<DistributionBucketId>;
- readonly deletion_prize: Option<u128>;
- readonly objects_total_size: u64;
- readonly objects_number: u64;
- }
- /** @name BagId */
- export interface BagId extends Enum {
- readonly isStatic: boolean;
- readonly asStatic: Static;
- readonly isDynamic: boolean;
- readonly asDynamic: Dynamic;
- }
- /** @name BagIdType */
- export interface BagIdType extends Enum {
- readonly isStatic: boolean;
- readonly asStatic: Static;
- readonly isDynamic: boolean;
- readonly asDynamic: Dynamic;
- }
- /** @name BalanceKind */
- export interface BalanceKind extends Enum {
- readonly isPositive: boolean;
- readonly isNegative: boolean;
- }
- /** @name Bid */
- export interface Bid extends Struct {
- readonly bidder: MemberId;
- readonly bidder_account_id: GenericAccountId;
- readonly amount: u128;
- readonly made_at_block: u32;
- }
- /** @name BlockAndTime */
- export interface BlockAndTime extends Struct {
- readonly block: u32;
- readonly time: u64;
- }
- /** @name Bounty */
- export interface Bounty extends Struct {
- readonly creation_params: BountyCreationParameters;
- readonly total_funding: u128;
- readonly milestone: BountyMilestone;
- readonly active_work_entry_count: u32;
- }
- /** @name BountyActor */
- export interface BountyActor extends Enum {
- readonly isCouncil: boolean;
- readonly isMember: boolean;
- readonly asMember: MemberId;
- }
- /** @name BountyCreationParameters */
- export interface BountyCreationParameters extends Struct {
- readonly oracle: BountyActor;
- readonly contract_type: AssuranceContractType;
- readonly creator: BountyActor;
- readonly cherry: u128;
- readonly entrant_stake: u128;
- readonly funding_type: FundingType;
- readonly work_period: u32;
- readonly judging_period: u32;
- }
- /** @name BountyId */
- export interface BountyId extends u64 {}
- /** @name BountyMilestone */
- export interface BountyMilestone extends Enum {
- readonly isCreated: boolean;
- readonly asCreated: BountyMilestone_Created;
- readonly isBountyMaxFundingReached: boolean;
- readonly asBountyMaxFundingReached: BountyMilestone_BountyMaxFundingReached;
- readonly isWorkSubmitted: boolean;
- readonly asWorkSubmitted: BountyMilestone_WorkSubmitted;
- readonly isJudgmentSubmitted: boolean;
- readonly asJudgmentSubmitted: BountyMilestone_JudgmentSubmitted;
- }
- /** @name BountyMilestone_BountyMaxFundingReached */
- export interface BountyMilestone_BountyMaxFundingReached extends Struct {
- readonly max_funding_reached_at: u32;
- }
- /** @name BountyMilestone_Created */
- export interface BountyMilestone_Created extends Struct {
- readonly created_at: u32;
- readonly has_contributions: bool;
- }
- /** @name BountyMilestone_JudgmentSubmitted */
- export interface BountyMilestone_JudgmentSubmitted extends Struct {
- readonly successful_bounty: bool;
- }
- /** @name BountyMilestone_WorkSubmitted */
- export interface BountyMilestone_WorkSubmitted extends Struct {
- readonly work_period_started_at: u32;
- }
- /** @name BuyMembershipParameters */
- export interface BuyMembershipParameters extends Struct {
- readonly root_account: AccountId;
- readonly controller_account: AccountId;
- readonly handle: Option<Text>;
- readonly metadata: Bytes;
- readonly referrer_id: Option<MemberId>;
- }
- /** @name Candidate */
- export interface Candidate extends Struct {
- readonly staking_account_id: AccountId;
- readonly reward_account_id: AccountId;
- readonly cycle_id: u64;
- readonly stake: u32;
- readonly vote_power: VotePower;
- readonly note_hash: Option<Hash>;
- }
- /** @name CastVoteOf */
- export interface CastVoteOf extends Struct {
- readonly commitment: Hash;
- readonly cycle_id: u64;
- readonly stake: u128;
- readonly vote_for: Option<MemberId>;
- }
- /** @name Category */
- export interface Category extends Struct {
- readonly title_hash: Hash;
- readonly description_hash: Hash;
- readonly archived: bool;
- readonly num_direct_subcategories: u32;
- readonly num_direct_threads: u32;
- readonly num_direct_moderators: u32;
- readonly parent_category_id: Option<CategoryId>;
- readonly sticky_thread_ids: Vec<ThreadId>;
- }
- /** @name CategoryId */
- export interface CategoryId extends u64 {}
- /** @name Channel */
- export interface Channel extends Struct {
- readonly owner: ChannelOwner;
- readonly num_videos: u64;
- readonly is_censored: bool;
- readonly reward_account: Option<GenericAccountId>;
- readonly collaborators: BTreeSet<MemberId>;
- readonly moderators: BTreeSet<MemberId>;
- readonly cumulative_payout_earned: u128;
- }
- /** @name ChannelCategory */
- export interface ChannelCategory extends Struct {}
- /** @name ChannelCategoryCreationParameters */
- export interface ChannelCategoryCreationParameters extends Struct {
- readonly meta: Bytes;
- }
- /** @name ChannelCategoryId */
- export interface ChannelCategoryId extends u64 {}
- /** @name ChannelCategoryUpdateParameters */
- export interface ChannelCategoryUpdateParameters extends Struct {
- readonly new_meta: Bytes;
- }
- /** @name ChannelCreationParameters */
- export interface ChannelCreationParameters extends Struct {
- readonly assets: Option<StorageAssets>;
- readonly meta: Option<Bytes>;
- readonly reward_account: Option<GenericAccountId>;
- readonly collaborators: BTreeSet<MemberId>;
- readonly moderators: BTreeSet<MemberId>;
- }
- /** @name ChannelId */
- export interface ChannelId extends u64 {}
- /** @name ChannelOwner */
- export interface ChannelOwner extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isCurators: boolean;
- readonly asCurators: CuratorGroupId;
- }
- /** @name ChannelUpdateParameters */
- export interface ChannelUpdateParameters extends Struct {
- readonly assets_to_upload: Option<StorageAssets>;
- readonly new_meta: Option<Bytes>;
- readonly reward_account: Option<Option<GenericAccountId>>;
- readonly assets_to_remove: BTreeSet<DataObjectId>;
- readonly collaborators: Option<BTreeSet<MemberId>>;
- }
- /** @name Cid */
- export interface Cid extends Bytes {}
- /** @name ConstitutionInfo */
- export interface ConstitutionInfo extends Struct {
- readonly text_hash: Hash;
- }
- /** @name ContentActor */
- export interface ContentActor extends Enum {
- readonly isCurator: boolean;
- readonly asCurator: ITuple<[CuratorGroupId, CuratorId]>;
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isLead: boolean;
- }
- /** @name ContentIdSet */
- export interface ContentIdSet extends BTreeSet<Cid> {}
- /** @name CouncilMemberOf */
- export interface CouncilMemberOf extends Struct {
- readonly staking_account_id: AccountId;
- readonly reward_account_id: AccountId;
- readonly membership_id: MemberId;
- readonly stake: u128;
- readonly last_payment_block: u32;
- readonly unpaid_reward: u128;
- }
- /** @name CouncilStage */
- export interface CouncilStage extends Enum {
- readonly isAnnouncing: boolean;
- readonly asAnnouncing: CouncilStageAnnouncing;
- readonly isElection: boolean;
- readonly asElection: CouncilStageElection;
- readonly isIdle: boolean;
- }
- /** @name CouncilStageAnnouncing */
- export interface CouncilStageAnnouncing extends Struct {
- readonly candidatesCount: u64;
- }
- /** @name CouncilStageElection */
- export interface CouncilStageElection extends Struct {
- readonly candidatesCount: u64;
- }
- /** @name CouncilStageUpdate */
- export interface CouncilStageUpdate extends Struct {
- readonly stage: CouncilStage;
- readonly changed_at: u32;
- }
- /** @name CreateOpeningParameters */
- export interface CreateOpeningParameters extends Struct {
- readonly description: Bytes;
- readonly stake_policy: StakePolicy;
- readonly reward_per_block: Option<u128>;
- readonly working_group: WorkingGroup;
- }
- /** @name CuratorGroup */
- export interface CuratorGroup extends Struct {
- readonly curators: BTreeSet<CuratorId>;
- readonly active: bool;
- }
- /** @name CuratorGroupId */
- export interface CuratorGroupId extends u64 {}
- /** @name CuratorId */
- export interface CuratorId extends u64 {}
- /** @name CurrencyAmount */
- export interface CurrencyAmount extends u128 {}
- /** @name CurrencyOf */
- export interface CurrencyOf extends u128 {}
- /** @name DataObject */
- export interface DataObject extends Struct {
- readonly accepted: bool;
- readonly deletion_prize: u128;
- readonly ipfsContentId: Bytes;
- }
- /** @name DataObjectCreationParameters */
- export interface DataObjectCreationParameters extends Struct {
- readonly ipfsContentId: Bytes;
- }
- /** @name DataObjectId */
- export interface DataObjectId extends u64 {}
- /** @name DataObjectIdMap */
- export interface DataObjectIdMap extends BTreeMap<DataObjectId, DataObject> {}
- /** @name DataObjectIdSet */
- export interface DataObjectIdSet extends BTreeSet<DataObjectId> {}
- /** @name DiscussionPost */
- export interface DiscussionPost extends Struct {
- readonly author_id: u64;
- }
- /** @name DiscussionThread */
- export interface DiscussionThread extends Struct {
- readonly activated_at: u32;
- readonly author_id: u64;
- readonly mode: ThreadMode;
- }
- /** @name DistributionBucket */
- export interface DistributionBucket extends Struct {
- readonly accepting_new_bags: bool;
- readonly distributing: bool;
- readonly pending_invitations: BTreeSet<WorkerId>;
- readonly operators: BTreeSet<WorkerId>;
- readonly assigned_bags: u64;
- }
- /** @name DistributionBucketFamily */
- export interface DistributionBucketFamily extends Struct {
- readonly next_distribution_bucket_index: DistributionBucketIndex;
- }
- /** @name DistributionBucketFamilyId */
- export interface DistributionBucketFamilyId extends u64 {}
- /** @name DistributionBucketId */
- export interface DistributionBucketId extends Struct {
- readonly distribution_bucket_family_id: DistributionBucketFamilyId;
- readonly distribution_bucket_index: DistributionBucketIndex;
- }
- /** @name DistributionBucketIndex */
- export interface DistributionBucketIndex extends u64 {}
- /** @name DistributionBucketIndexSet */
- export interface DistributionBucketIndexSet extends BTreeSet<DistributionBucketIndex> {}
- /** @name Dynamic */
- export interface Dynamic extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isChannel: boolean;
- readonly asChannel: u64;
- }
- /** @name DynamicBagCreationPolicy */
- export interface DynamicBagCreationPolicy extends Struct {
- readonly numberOfStorageBuckets: u64;
- readonly families: BTreeMap<DistributionBucketFamilyId, u32>;
- }
- /** @name DynamicBagCreationPolicyDistributorFamiliesMap */
- export interface DynamicBagCreationPolicyDistributorFamiliesMap extends BTreeMap<DistributionBucketFamilyId, u32> {}
- /** @name DynamicBagDeletionPrize */
- export interface DynamicBagDeletionPrize extends Struct {
- readonly account_id: GenericAccountId;
- readonly prize: u128;
- }
- /** @name DynamicBagDeletionPrizeRecord */
- export interface DynamicBagDeletionPrizeRecord extends Struct {
- readonly account_id: GenericAccountId;
- readonly prize: u128;
- }
- /** @name DynamicBagId */
- export interface DynamicBagId extends Enum {
- readonly isMember: boolean;
- readonly asMember: MemberId;
- readonly isChannel: boolean;
- readonly asChannel: u64;
- }
- /** @name DynamicBagType */
- export interface DynamicBagType extends Enum {
- readonly isMember: boolean;
- readonly isChannel: boolean;
- }
- /** @name EnglishAuctionDetails */
- export interface EnglishAuctionDetails extends Struct {
- readonly extension_period: u32;
- readonly auction_duration: u32;
- }
- /** @name Entry */
- export interface Entry extends Struct {
- readonly member_id: MemberId;
- readonly staking_account_id: AccountId;
- readonly submitted_at: u32;
- readonly work_submitted: bool;
- readonly oracle_judgment_result: Option<OracleWorkEntryJudgment>;
- }
- /** @name EntryId */
- export interface EntryId extends u64 {}
- /** @name ExecutionFailed */
- export interface ExecutionFailed extends Struct {
- readonly error: Text;
- }
- /** @name ExecutionStatus */
- export interface ExecutionStatus extends Enum {
- readonly isExecuted: boolean;
- readonly isExecutionFailed: boolean;
- readonly asExecutionFailed: ExecutionFailed;
- }
- /** @name ExtendedPostId */
- export interface ExtendedPostId extends Struct {
- readonly category_id: CategoryId;
- readonly thread_id: ThreadId;
- readonly post_id: PostId;
- }
- /** @name FillOpeningParameters */
- export interface FillOpeningParameters extends Struct {
- readonly opening_id: OpeningId;
- readonly successful_application_id: ApplicationId;
- readonly working_group: WorkingGroup;
- }
- /** @name ForumUserId */
- export interface ForumUserId extends u64 {}
- /** @name FundingRequestParameters */
- export interface FundingRequestParameters extends Struct {
- readonly account: AccountId;
- readonly amount: u128;
- }
- /** @name FundingType */
- export interface FundingType extends Enum {
- readonly isPerpetual: boolean;
- readonly asPerpetual: FundingType_Perpetual;
- readonly isLimited: boolean;
- readonly asLimited: FundingType_Limited;
- }
- /** @name FundingType_Limited */
- export interface FundingType_Limited extends Struct {
- readonly min_funding_amount: u128;
- readonly max_funding_amount: u128;
- readonly funding_period: u32;
- }
- /** @name FundingType_Perpetual */
- export interface FundingType_Perpetual extends Struct {
- readonly target: u128;
- }
- /** @name GeneralProposalParameters */
- export interface GeneralProposalParameters extends Struct {
- readonly member_id: MemberId;
- readonly title: Text;
- readonly description: Text;
- readonly staking_account_id: Option<AccountId>;
- readonly exact_execution_block: Option<u32>;
- }
- /** @name InitTransactionalStatus */
- export interface InitTransactionalStatus extends Enum {
- readonly isIdle: boolean;
- readonly isInitiatedOfferToMember: boolean;
- readonly asInitiatedOfferToMember: ITuple<[MemberId, Option<u128>]>;
- readonly isAuction: boolean;
- readonly asAuction: AuctionParams;
- }
- /** @name InputValidationLengthConstraint */
- export interface InputValidationLengthConstraint extends Struct {
- readonly min: u16;
- readonly max_min_diff: u16;
- }
- /** @name InviteMembershipParameters */
- export interface InviteMembershipParameters extends Struct {
- readonly inviting_member_id: MemberId;
- readonly root_account: AccountId;
- readonly controller_account: AccountId;
- readonly handle: Option<Text>;
- readonly metadata: Bytes;
- }
- /** @name IsCensored */
- export interface IsCensored extends bool {}
- /** @name IsExtended */
- export interface IsExtended extends bool {}
- /** @name LookupSource */
- export interface LookupSource extends AccountId {}
- /** @name MaxNumber */
- export interface MaxNumber extends u32 {}
- /** @name MemberId */
- export interface MemberId extends u64 {}
- /** @name Membership */
- export interface Membership extends Struct {
- readonly handle_hash: Bytes;
- readonly root_account: AccountId;
- readonly controller_account: AccountId;
- readonly verified: bool;
- readonly invites: u32;
- }
- /** @name ModeratorId */
- export interface ModeratorId extends u64 {}
- /** @name ModeratorSet */
- export interface ModeratorSet extends BTreeSet<MemberId> {}
- /** @name NftIssuanceParameters */
- export interface NftIssuanceParameters extends Struct {
- readonly royalty: Option<Royalty>;
- readonly nft_metadata: Bytes;
- readonly non_channel_owner: Option<MemberId>;
- readonly init_transactional_status: InitTransactionalStatus;
- }
- /** @name NftMetadata */
- export interface NftMetadata extends Bytes {}
- /** @name NftOwner */
- export interface NftOwner extends Enum {
- readonly isChannelOwner: boolean;
- readonly isMember: boolean;
- readonly asMember: MemberId;
- }
- /** @name OpenAuctionDetails */
- export interface OpenAuctionDetails extends Struct {
- readonly bid_lock_duration: u32;
- }
- /** @name Opening */
- export interface Opening extends Struct {
- readonly opening_type: OpeningType;
- readonly created: u32;
- readonly description_hash: Bytes;
- readonly stake_policy: StakePolicy;
- readonly reward_per_block: Option<u128>;
- readonly creation_stake: u128;
- }
- /** @name OpeningId */
- export interface OpeningId extends u64 {}
- /** @name OpeningType */
- export interface OpeningType extends Enum {
- readonly isLeader: boolean;
- readonly isRegular: boolean;
- }
- /** @name OptionResult */
- export interface OptionResult extends Struct {
- readonly option_id: MemberId;
- readonly vote_power: VotePower;
- }
- /** @name OracleJudgment */
- export interface OracleJudgment extends BTreeMap<EntryId, OracleWorkEntryJudgment> {}
- /** @name OracleWorkEntryJudgment */
- export interface OracleWorkEntryJudgment extends Enum {
- readonly isWinner: boolean;
- readonly asWinner: OracleWorkEntryJudgment_Winner;
- readonly isRejected: boolean;
- }
- /** @name OracleWorkEntryJudgment_Winner */
- export interface OracleWorkEntryJudgment_Winner extends Struct {
- readonly reward: u128;
- }
- /** @name OwnedNft */
- export interface OwnedNft extends Struct {
- readonly owner: NftOwner;
- readonly transactional_status: TransactionalStatus;
- readonly creator_royalty: Option<Royalty>;
- }
- /** @name ParticipantId */
- export interface ParticipantId extends u64 {}
- /** @name Penalty */
- export interface Penalty extends Struct {
- readonly slashing_text: Text;
- readonly slashing_amount: u128;
- }
- /** @name Poll */
- export interface Poll extends Struct {
- readonly description_hash: Hash;
- readonly end_time: u64;
- readonly poll_alternatives: Vec<PollAlternative>;
- }
- /** @name PollAlternative */
- export interface PollAlternative extends Struct {
- readonly alternative_text_hash: Hash;
- readonly vote_count: u32;
- }
- /** @name PollInput */
- export interface PollInput extends Struct {
- readonly description: Bytes;
- readonly end_time: u64;
- readonly poll_alternatives: Vec<Bytes>;
- }
- /** @name Post */
- export interface Post extends Struct {
- readonly thread_id: ThreadId;
- readonly text_hash: Hash;
- readonly author_id: ForumUserId;
- readonly cleanup_pay_off: u128;
- readonly last_edited: u32;
- }
- /** @name PostId */
- export interface PostId extends u64 {}
- /** @name PostReactionId */
- export interface PostReactionId extends u64 {}
- /** @name PrivilegedActor */
- export interface PrivilegedActor extends Enum {
- readonly isLead: boolean;
- readonly isModerator: boolean;
- readonly asModerator: ModeratorId;
- }
- /** @name ProofElement */
- export interface ProofElement extends Struct {
- readonly side: Side;
- }
- /** @name ProposalDecision */
- export interface ProposalDecision extends Enum {
- readonly isCanceled: boolean;
- readonly isCanceledByRuntime: 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 isSignal: boolean;
- readonly asSignal: Text;
- readonly isRuntimeUpgrade: boolean;
- readonly asRuntimeUpgrade: Bytes;
- readonly isFundingRequest: boolean;
- readonly asFundingRequest: Vec<FundingRequestParameters>;
- readonly isSetMaxValidatorCount: boolean;
- readonly asSetMaxValidatorCount: u32;
- readonly isCreateWorkingGroupLeadOpening: boolean;
- readonly asCreateWorkingGroupLeadOpening: CreateOpeningParameters;
- readonly isFillWorkingGroupLeadOpening: boolean;
- readonly asFillWorkingGroupLeadOpening: FillOpeningParameters;
- readonly isUpdateWorkingGroupBudget: boolean;
- readonly asUpdateWorkingGroupBudget: ITuple<[Balance, WorkingGroup, BalanceKind]>;
- readonly isDecreaseWorkingGroupLeadStake: boolean;
- readonly asDecreaseWorkingGroupLeadStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSlashWorkingGroupLead: boolean;
- readonly asSlashWorkingGroupLead: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSetWorkingGroupLeadReward: boolean;
- readonly asSetWorkingGroupLeadReward: ITuple<[WorkerId, Option<Balance>, WorkingGroup]>;
- readonly isTerminateWorkingGroupLead: boolean;
- readonly asTerminateWorkingGroupLead: TerminateRoleParameters;
- readonly isAmendConstitution: boolean;
- readonly asAmendConstitution: Text;
- readonly isCancelWorkingGroupLeadOpening: boolean;
- readonly asCancelWorkingGroupLeadOpening: ITuple<[OpeningId, WorkingGroup]>;
- readonly isSetMembershipPrice: boolean;
- readonly asSetMembershipPrice: u128;
- readonly isSetCouncilBudgetIncrement: boolean;
- readonly asSetCouncilBudgetIncrement: u128;
- readonly isSetCouncilorReward: boolean;
- readonly asSetCouncilorReward: u128;
- readonly isSetInitialInvitationBalance: boolean;
- readonly asSetInitialInvitationBalance: u128;
- readonly isSetInitialInvitationCount: boolean;
- readonly asSetInitialInvitationCount: u32;
- readonly isSetMembershipLeadInvitationQuota: boolean;
- readonly asSetMembershipLeadInvitationQuota: u32;
- readonly isSetReferralCut: boolean;
- readonly asSetReferralCut: u8;
- readonly isCreateBlogPost: boolean;
- readonly asCreateBlogPost: ITuple<[Text, Text]>;
- readonly isEditBlogPost: boolean;
- readonly asEditBlogPost: ITuple<[PostId, Option<Text>, Option<Text>]>;
- readonly isLockBlogPost: boolean;
- readonly asLockBlogPost: PostId;
- readonly isUnlockBlogPost: boolean;
- readonly asUnlockBlogPost: PostId;
- readonly isVetoProposal: boolean;
- readonly asVetoProposal: ProposalId;
- }
- /** @name ProposalDetailsOf */
- export interface ProposalDetailsOf extends Enum {
- readonly isSignal: boolean;
- readonly asSignal: Text;
- readonly isRuntimeUpgrade: boolean;
- readonly asRuntimeUpgrade: Bytes;
- readonly isFundingRequest: boolean;
- readonly asFundingRequest: Vec<FundingRequestParameters>;
- readonly isSetMaxValidatorCount: boolean;
- readonly asSetMaxValidatorCount: u32;
- readonly isCreateWorkingGroupLeadOpening: boolean;
- readonly asCreateWorkingGroupLeadOpening: CreateOpeningParameters;
- readonly isFillWorkingGroupLeadOpening: boolean;
- readonly asFillWorkingGroupLeadOpening: FillOpeningParameters;
- readonly isUpdateWorkingGroupBudget: boolean;
- readonly asUpdateWorkingGroupBudget: ITuple<[Balance, WorkingGroup, BalanceKind]>;
- readonly isDecreaseWorkingGroupLeadStake: boolean;
- readonly asDecreaseWorkingGroupLeadStake: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSlashWorkingGroupLead: boolean;
- readonly asSlashWorkingGroupLead: ITuple<[WorkerId, Balance, WorkingGroup]>;
- readonly isSetWorkingGroupLeadReward: boolean;
- readonly asSetWorkingGroupLeadReward: ITuple<[WorkerId, Option<Balance>, WorkingGroup]>;
- readonly isTerminateWorkingGroupLead: boolean;
- readonly asTerminateWorkingGroupLead: TerminateRoleParameters;
- readonly isAmendConstitution: boolean;
- readonly asAmendConstitution: Text;
- readonly isCancelWorkingGroupLeadOpening: boolean;
- readonly asCancelWorkingGroupLeadOpening: ITuple<[OpeningId, WorkingGroup]>;
- readonly isSetMembershipPrice: boolean;
- readonly asSetMembershipPrice: u128;
- readonly isSetCouncilBudgetIncrement: boolean;
- readonly asSetCouncilBudgetIncrement: u128;
- readonly isSetCouncilorReward: boolean;
- readonly asSetCouncilorReward: u128;
- readonly isSetInitialInvitationBalance: boolean;
- readonly asSetInitialInvitationBalance: u128;
- readonly isSetInitialInvitationCount: boolean;
- readonly asSetInitialInvitationCount: u32;
- readonly isSetMembershipLeadInvitationQuota: boolean;
- readonly asSetMembershipLeadInvitationQuota: u32;
- readonly isSetReferralCut: boolean;
- readonly asSetReferralCut: u8;
- readonly isCreateBlogPost: boolean;
- readonly asCreateBlogPost: ITuple<[Text, Text]>;
- readonly isEditBlogPost: boolean;
- readonly asEditBlogPost: ITuple<[PostId, Option<Text>, Option<Text>]>;
- readonly isLockBlogPost: boolean;
- readonly asLockBlogPost: PostId;
- readonly isUnlockBlogPost: boolean;
- readonly asUnlockBlogPost: PostId;
- readonly isVetoProposal: boolean;
- readonly asVetoProposal: ProposalId;
- }
- /** @name ProposalId */
- export interface ProposalId extends u32 {}
- /** @name ProposalOf */
- export interface ProposalOf extends Struct {
- readonly parameters: ProposalParameters;
- readonly proposerId: MemberId;
- readonly activatedAt: u32;
- readonly status: ProposalStatus;
- readonly votingResults: VotingResults;
- readonly exactExecutionBlock: Option<u32>;
- readonly nrOfCouncilConfirmations: u32;
- readonly stakingAccountId: Option<AccountId>;
- }
- /** @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<u128>;
- readonly constitutionality: u32;
- }
- /** @name ProposalStatus */
- export interface ProposalStatus extends Enum {
- readonly isActive: boolean;
- readonly isPendingExecution: boolean;
- readonly asPendingExecution: u32;
- readonly isPendingConstitutionality: boolean;
- }
- /** @name PullPayment */
- export interface PullPayment extends Struct {
- readonly channel_id: ChannelId;
- readonly cumulative_payout_claimed: u128;
- readonly reason: Hash;
- }
- /** @name ReactionId */
- export interface ReactionId extends u64 {}
- /** @name ReferendumStage */
- export interface ReferendumStage extends Enum {
- readonly isInactive: boolean;
- readonly isVoting: boolean;
- readonly asVoting: ReferendumStageVoting;
- readonly isRevealing: boolean;
- readonly asRevealing: ReferendumStageRevealing;
- }
- /** @name ReferendumStageRevealing */
- export interface ReferendumStageRevealing extends Struct {
- readonly started: u32;
- readonly winning_target_count: u64;
- readonly intermediate_winners: Vec<OptionResult>;
- readonly current_cycle_id: u64;
- }
- /** @name ReferendumStageVoting */
- export interface ReferendumStageVoting extends Struct {
- readonly started: u32;
- readonly winning_target_count: u64;
- readonly current_cycle_id: u64;
- }
- /** @name Reply */
- export interface Reply extends Struct {
- readonly text_hash: Hash;
- readonly owner: ParticipantId;
- readonly parent_id: PostId;
- }
- /** @name ReplyId */
- export interface ReplyId extends u64 {}
- /** @name ReplyToDelete */
- export interface ReplyToDelete extends Struct {
- readonly post_id: PostId;
- readonly reply_id: ReplyId;
- readonly hide: bool;
- }
- /** @name RewardPaymentType */
- export interface RewardPaymentType extends Enum {
- readonly isMissedReward: boolean;
- readonly isRegularReward: boolean;
- }
- /** @name Royalty */
- export interface Royalty extends u64 {}
- /** @name SetLeadParams */
- export interface SetLeadParams extends ITuple<[MemberId, AccountId]> {}
- /** @name Side */
- export interface Side extends Enum {
- readonly isLeft: boolean;
- readonly isRight: boolean;
- }
- /** @name StakeParameters */
- export interface StakeParameters extends Struct {
- readonly stake: u128;
- readonly staking_account_id: AccountId;
- }
- /** @name StakePolicy */
- export interface StakePolicy extends Struct {
- readonly stake_amount: u128;
- readonly leaving_unstaking_period: u32;
- }
- /** @name StakingAccountMemberBinding */
- export interface StakingAccountMemberBinding extends Struct {
- readonly member_id: MemberId;
- readonly confirmed: bool;
- }
- /** @name Static */
- export interface Static extends Enum {
- readonly isCouncil: boolean;
- readonly isWorkingGroup: boolean;
- readonly asWorkingGroup: WorkingGroup;
- }
- /** @name StaticBagId */
- export interface StaticBagId extends Enum {
- readonly isCouncil: boolean;
- readonly isWorkingGroup: boolean;
- readonly asWorkingGroup: WorkingGroup;
- }
- /** @name StorageAssets */
- export interface StorageAssets extends Struct {
- readonly object_creation_list: Vec<DataObjectCreationParameters>;
- readonly expected_data_size_fee: u128;
- }
- /** @name StorageBucket */
- export interface StorageBucket extends Struct {
- readonly operator_status: StorageBucketOperatorStatus;
- readonly accepting_new_bags: bool;
- readonly voucher: Voucher;
- readonly assigned_bags: u64;
- }
- /** @name StorageBucketId */
- export interface StorageBucketId extends u64 {}
- /** @name StorageBucketIdSet */
- export interface StorageBucketIdSet extends BTreeSet<StorageBucketId> {}
- /** @name StorageBucketOperatorStatus */
- export interface StorageBucketOperatorStatus extends Enum {
- readonly isMissing: boolean;
- readonly isInvitedStorageWorker: boolean;
- readonly asInvitedStorageWorker: WorkerId;
- readonly isStorageWorker: boolean;
- readonly asStorageWorker: ITuple<[WorkerId, GenericAccountId]>;
- }
- /** @name StorageBucketsPerBagValueConstraint */
- export interface StorageBucketsPerBagValueConstraint extends Struct {
- readonly min: u64;
- readonly max_min_diff: u64;
- }
- /** @name StorageProviderId */
- export interface StorageProviderId extends u64 {}
- /** @name TerminateRoleParameters */
- export interface TerminateRoleParameters extends Struct {
- readonly worker_id: WorkerId;
- readonly slashing_amount: Option<u128>;
- readonly working_group: WorkingGroup;
- }
- /** @name Thread */
- export interface Thread extends Struct {
- readonly category_id: CategoryId;
- readonly author_id: ForumUserId;
- readonly poll: Option<Poll>;
- readonly cleanup_pay_off: u128;
- readonly number_of_posts: u64;
- }
- /** @name ThreadId */
- export interface ThreadId extends u64 {}
- /** @name ThreadMode */
- export interface ThreadMode extends Enum {
- readonly isOpen: boolean;
- readonly isClosed: boolean;
- readonly asClosed: Vec<MemberId>;
- }
- /** @name ThreadOf */
- export interface ThreadOf extends Struct {
- readonly category_id: CategoryId;
- readonly author_id: ForumUserId;
- readonly poll: Option<Poll>;
- readonly cleanup_pay_off: u128;
- readonly number_of_posts: u64;
- }
- /** @name Title */
- export interface Title extends Text {}
- /** @name TransactionalStatus */
- export interface TransactionalStatus extends Enum {
- readonly isIdle: boolean;
- readonly isInitiatedOfferToMember: boolean;
- readonly asInitiatedOfferToMember: ITuple<[MemberId, Option<u128>]>;
- readonly isAuction: boolean;
- readonly asAuction: Auction;
- readonly isBuyNow: boolean;
- readonly asBuyNow: u128;
- }
- /** @name UpdatedBody */
- export interface UpdatedBody extends Option<Text> {}
- /** @name UpdatedTitle */
- export interface UpdatedTitle extends Option<Text> {}
- /** @name UploadParameters */
- export interface UploadParameters extends Struct {
- readonly bagId: BagId;
- readonly objectCreationList: Vec<DataObjectCreationParameters>;
- readonly deletionPrizeSourceAccountId: GenericAccountId;
- readonly expectedDataSizeFee: u128;
- }
- /** @name Url */
- export interface Url extends Text {}
- /** @name ValidatorPrefs */
- export interface ValidatorPrefs extends ValidatorPrefsWithCommission {}
- /** @name Video */
- export interface Video extends Struct {
- readonly in_channel: ChannelId;
- readonly is_censored: bool;
- readonly enable_comments: bool;
- readonly video_post_id: Option<VideoPostId>;
- readonly nft_status: Option<OwnedNft>;
- }
- /** @name VideoCategory */
- export interface VideoCategory extends Struct {}
- /** @name VideoCategoryCreationParameters */
- export interface VideoCategoryCreationParameters extends Struct {
- readonly meta: Bytes;
- }
- /** @name VideoCategoryId */
- export interface VideoCategoryId extends u64 {}
- /** @name VideoCategoryUpdateParameters */
- export interface VideoCategoryUpdateParameters extends Struct {
- readonly new_meta: Bytes;
- }
- /** @name VideoCreationParameters */
- export interface VideoCreationParameters extends Struct {
- readonly assets: Option<StorageAssets>;
- readonly meta: Option<Bytes>;
- readonly enable_comments: bool;
- readonly auto_issue_nft: Option<NftIssuanceParameters>;
- }
- /** @name VideoId */
- export interface VideoId extends u64 {}
- /** @name VideoPost */
- export interface VideoPost extends Struct {
- readonly author: ContentActor;
- readonly bloat_bond: u128;
- readonly replies_count: VideoPostId;
- readonly post_type: VideoPostType;
- readonly video_reference: VideoId;
- }
- /** @name VideoPostCreationParameters */
- export interface VideoPostCreationParameters extends Struct {
- readonly post_type: VideoPostType;
- readonly video_reference: VideoId;
- }
- /** @name VideoPostDeletionParameters */
- export interface VideoPostDeletionParameters extends Struct {
- readonly witness: Option<Hash>;
- readonly rationale: Option<Bytes>;
- }
- /** @name VideoPostId */
- export interface VideoPostId extends u64 {}
- /** @name VideoPostType */
- export interface VideoPostType extends Enum {
- readonly isDescription: boolean;
- readonly isComment: boolean;
- readonly asComment: VideoPostId;
- }
- /** @name VideoUpdateParameters */
- export interface VideoUpdateParameters extends Struct {
- readonly assets_to_upload: Option<StorageAssets>;
- readonly new_meta: Option<Bytes>;
- readonly assets_to_remove: BTreeSet<DataObjectId>;
- readonly enable_comments: Option<bool>;
- }
- /** @name VoteKind */
- export interface VoteKind extends Enum {
- readonly isApprove: boolean;
- readonly isReject: boolean;
- readonly isSlash: boolean;
- readonly isAbstain: boolean;
- }
- /** @name VotePower */
- export interface VotePower extends u128 {}
- /** @name VotingResults */
- export interface VotingResults extends Struct {
- readonly abstensions: u32;
- readonly approvals: u32;
- readonly rejections: u32;
- readonly slashes: u32;
- }
- /** @name Voucher */
- export interface Voucher extends Struct {
- readonly sizeLimit: u64;
- readonly objectsLimit: u64;
- readonly sizeUsed: u64;
- readonly objectsUsed: u64;
- }
- /** @name Worker */
- export interface Worker extends Struct {
- readonly member_id: MemberId;
- readonly role_account_id: AccountId;
- readonly staking_account_id: AccountId;
- readonly reward_account_id: AccountId;
- readonly started_leaving_at: Option<u32>;
- readonly job_unstaking_period: u32;
- readonly reward_per_block: Option<u128>;
- readonly missed_reward: Option<u128>;
- readonly created_at: u32;
- }
- /** @name WorkerId */
- export interface WorkerId extends u64 {}
- /** @name WorkerInfo */
- export interface WorkerInfo extends Struct {
- readonly worker_id: WorkerId;
- readonly worker: Worker;
- }
- /** @name WorkingGroup */
- export interface WorkingGroup extends Enum {
- readonly isForum: boolean;
- readonly isStorage: boolean;
- readonly isContent: boolean;
- readonly isOperationsAlpha: boolean;
- readonly isGateway: boolean;
- readonly isDistribution: boolean;
- readonly isOperationsBeta: boolean;
- readonly isOperationsGamma: boolean;
- readonly isMembership: boolean;
- }
- export type PHANTOM_ALL = 'all';
|