|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Vec, bool, u16, u32, u64 } from '@polkadot/types';
|
|
|
import type { AnyNumber, ITuple } from '@polkadot/types/types';
|
|
|
-import type { ActivateOpeningAt, Actor, AddOpeningParameters, ApplicationId, ApplicationIdSet, BagId, BalanceOfMint, CategoryId, ChannelContentType, ChannelCurationStatus, ChannelId, ChannelPublicationStatus, ClassId, ClassPermissions, ClassPermissionsType, ClassPropertyValue, ContentId, Credential, CredentialSet, CurationActor, CuratorApplicationId, CuratorApplicationIdSet, CuratorGroupId, CuratorId, CuratorOpeningId, DataObjectId, DynamicBagDeletionPrize, DynamicBagId, DynamicBagType, ElectionParameters, EntityController, EntityId, EntityPermissions, FillOpeningParameters, InputPropertyValue, InputValue, MemberId, MemoText, Nonce, OpeningId, OpeningPolicyCommitment, OpeningType, Operation, OperationType, OptionalText, PaidTermId, PostId, Property, PropertyId, ProposalId, ReferenceConstraint, RewardPolicy, SchemaId, StorageBucketId, TerminateRoleParameters, ThreadId, UploadParameters, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
|
|
|
+import type { ActivateOpeningAt, Actor, AddOpeningParameters, ApplicationId, ApplicationIdSet, BagId, BalanceOfMint, CategoryId, ChannelContentType, ChannelCurationStatus, ChannelId, ChannelPublicationStatus, ClassId, ClassPermissions, ClassPermissionsType, ClassPropertyValue, ContentId, Credential, CredentialSet, CurationActor, CuratorApplicationId, CuratorApplicationIdSet, CuratorGroupId, CuratorId, CuratorOpeningId, DataObjectId, DistributionBucketFamilyId, DistributionBucketId, DynamicBagDeletionPrize, DynamicBagId, DynamicBagType, ElectionParameters, EntityController, EntityId, EntityPermissions, FillOpeningParameters, InputPropertyValue, InputValue, MemberId, MemoText, Nonce, OpeningId, OpeningPolicyCommitment, OpeningType, Operation, OperationType, OptionalText, PaidTermId, PostId, Property, PropertyId, ProposalId, ReferenceConstraint, RewardPolicy, SchemaId, StorageBucketId, TerminateRoleParameters, ThreadId, UploadParameters, VecMaxLength, VoteKind, WorkerId, WorkingGroup } from './all';
|
|
|
import type { BabeEquivocationProof } from '@polkadot/types/interfaces/babe';
|
|
|
import type { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
|
|
|
import type { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
|
|
@@ -430,6 +430,83 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
setStageVoting: AugmentedSubmittable<(endsAt: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BlockNumber]>;
|
|
|
vote: AugmentedSubmittable<(commitment: Hash | string | Uint8Array, stake: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Hash, BalanceOf]>;
|
|
|
};
|
|
|
+ distributionWorkingGroup: {
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [OpeningId]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [ActivateOpeningAt, OpeningPolicyCommitment, Bytes, OpeningType]>;
|
|
|
+ /**
|
|
|
+ * Apply on a worker opening.
|
|
|
+ **/
|
|
|
+ applyOnOpening: AugmentedSubmittable<(memberId: MemberId | AnyNumber | Uint8Array, openingId: OpeningId | AnyNumber | Uint8Array, roleAccountId: AccountId | string | Uint8Array, optRoleStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, optApplicationStakeBalance: Option<BalanceOf> | null | object | string | Uint8Array, humanReadableText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MemberId, OpeningId, AccountId, Option<BalanceOf>, Option<BalanceOf>, Bytes]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [OpeningId]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, BalanceOf]>;
|
|
|
+ /**
|
|
|
+ * 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<RewardPolicy> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [OpeningId, ApplicationIdSet, Option<RewardPolicy>]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, BalanceOf]>;
|
|
|
+ /**
|
|
|
+ * Leave the role by the active worker.
|
|
|
+ **/
|
|
|
+ leaveRole: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, rationaleText: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, Bytes]>;
|
|
|
+ /**
|
|
|
+ * Sets the capacity to enable working group budget. Requires root origin.
|
|
|
+ **/
|
|
|
+ setMintCapacity: AugmentedSubmittable<(newCapacity: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, BalanceOf]>;
|
|
|
+ /**
|
|
|
+ * Terminate the worker application. Can be done by the lead only.
|
|
|
+ **/
|
|
|
+ terminateApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, Bytes, bool]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, AccountId]>;
|
|
|
+ /**
|
|
|
+ * 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<ApiType>, [WorkerId, BalanceOfMint]>;
|
|
|
+ /**
|
|
|
+ * Update the associated role account of the active worker/lead.
|
|
|
+ **/
|
|
|
+ updateRoleAccount: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, newRoleAccountId: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, AccountId]>;
|
|
|
+ /**
|
|
|
+ * Withdraw the worker application. Can be done by the worker itself only.
|
|
|
+ **/
|
|
|
+ withdrawApplication: AugmentedSubmittable<(applicationId: ApplicationId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [ApplicationId]>;
|
|
|
+ };
|
|
|
finalityTracker: {
|
|
|
/**
|
|
|
* Hint that the author of this block thinks the best finalized
|
|
@@ -1161,6 +1238,10 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
withdrawUnbonded: AugmentedSubmittable<(numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
|
};
|
|
|
storage: {
|
|
|
+ /**
|
|
|
+ * Accept pending invite.
|
|
|
+ **/
|
|
|
+ acceptDistributionBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId]>;
|
|
|
/**
|
|
|
* A storage provider signals that the data object was successfully uploaded to its storage.
|
|
|
**/
|
|
@@ -1169,26 +1250,62 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
* Accept the storage bucket invitation. An invitation must match the worker_id parameter.
|
|
|
**/
|
|
|
acceptStorageBucketInvitation: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, StorageBucketId]>;
|
|
|
+ /**
|
|
|
+ * Cancel pending invite. Must be pending.
|
|
|
+ **/
|
|
|
+ cancelDistributionBucketOperatorInvite: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
|
|
|
/**
|
|
|
* Cancel pending storage bucket invite. An invitation must be pending.
|
|
|
**/
|
|
|
cancelStorageBucketOperatorInvite: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
|
|
|
+ /**
|
|
|
+ * Create a distribution bucket.
|
|
|
+ **/
|
|
|
+ createDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, bool]>;
|
|
|
+ /**
|
|
|
+ * Create a distribution bucket family.
|
|
|
+ **/
|
|
|
+ createDistributionBucketFamily: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
|
/**
|
|
|
* Create storage bucket.
|
|
|
**/
|
|
|
createStorageBucket: AugmentedSubmittable<(inviteWorker: Option<WorkerId> | null | object | string | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array, sizeLimit: u64 | AnyNumber | Uint8Array, objectsLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<WorkerId>, bool, u64, u64]>;
|
|
|
+ /**
|
|
|
+ * Delete distribution bucket. Must be empty.
|
|
|
+ **/
|
|
|
+ deleteDistributionBucket: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId]>;
|
|
|
+ /**
|
|
|
+ * Deletes a distribution bucket family.
|
|
|
+ **/
|
|
|
+ deleteDistributionBucketFamily: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId]>;
|
|
|
/**
|
|
|
* Delete storage bucket. Must be empty. Storage operator must be missing.
|
|
|
**/
|
|
|
deleteStorageBucket: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
|
|
|
+ /**
|
|
|
+ * Invite an operator. Must be missing.
|
|
|
+ **/
|
|
|
+ inviteDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
|
|
|
/**
|
|
|
* Invite storage bucket operator. Must be missing.
|
|
|
**/
|
|
|
inviteStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array, operatorId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId, WorkerId]>;
|
|
|
/**
|
|
|
- * Removes storage bucket operator. Must be invited.
|
|
|
+ * Removes distribution bucket operator.
|
|
|
+ **/
|
|
|
+ removeDistributionBucketOperator: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, operatorWorkerId: WorkerId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, WorkerId]>;
|
|
|
+ /**
|
|
|
+ * Removes storage bucket operator.
|
|
|
**/
|
|
|
removeStorageBucketOperator: AugmentedSubmittable<(storageBucketId: StorageBucketId | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StorageBucketId]>;
|
|
|
+ /**
|
|
|
+ * Set distribution bucket family metadata.
|
|
|
+ **/
|
|
|
+ setDistributionBucketFamilyMetadata: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, Bytes]>;
|
|
|
+ /**
|
|
|
+ * Set distribution operator metadata for the distribution bucket.
|
|
|
+ **/
|
|
|
+ setDistributionOperatorMetadata: AugmentedSubmittable<(workerId: WorkerId | AnyNumber | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [WorkerId, DistributionBucketFamilyId, DistributionBucketId, Bytes]>;
|
|
|
/**
|
|
|
* Sets storage bucket voucher limits.
|
|
|
**/
|
|
@@ -1213,6 +1330,26 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
* Updates size-based pricing of new objects uploaded.
|
|
|
**/
|
|
|
updateDataSizeFee: AugmentedSubmittable<(newDataSizeFee: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [BalanceOf]>;
|
|
|
+ /**
|
|
|
+ * Updates 'distributing' flag for the distributing flag.
|
|
|
+ **/
|
|
|
+ updateDistributionBucketMode: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, distributing: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
|
|
|
+ /**
|
|
|
+ * Updates a distribution bucket 'accepts new bags' flag.
|
|
|
+ **/
|
|
|
+ updateDistributionBucketStatus: AugmentedSubmittable<(familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, distributionBucketId: DistributionBucketId | AnyNumber | Uint8Array, acceptingNewBags: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [DistributionBucketFamilyId, DistributionBucketId, bool]>;
|
|
|
+ /**
|
|
|
+ * Updates distribution buckets for a bag.
|
|
|
+ **/
|
|
|
+ updateDistributionBucketsForBag: AugmentedSubmittable<(bagId: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, familyId: DistributionBucketFamilyId | AnyNumber | Uint8Array, addBuckets: BTreeSet<DistributionBucketId>, removeBuckets: BTreeSet<DistributionBucketId>) => SubmittableExtrinsic<ApiType>, [BagId, DistributionBucketFamilyId, BTreeSet<DistributionBucketId>, BTreeSet<DistributionBucketId>]>;
|
|
|
+ /**
|
|
|
+ * Updates "Distribution buckets per bag" number limit.
|
|
|
+ **/
|
|
|
+ updateDistributionBucketsPerBagLimit: AugmentedSubmittable<(newLimit: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
|
|
|
+ /**
|
|
|
+ * Update number of distributed buckets used in given dynamic bag creation policy.
|
|
|
+ **/
|
|
|
+ updateFamiliesInDynamicBagCreationPolicy: AugmentedSubmittable<(dynamicBagType: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array, families: BTreeMap<DistributionBucketFamilyId, u32>) => SubmittableExtrinsic<ApiType>, [DynamicBagType, BTreeMap<DistributionBucketFamilyId, u32>]>;
|
|
|
/**
|
|
|
* Update number of storage buckets used in given dynamic bag creation policy.
|
|
|
**/
|
|
@@ -1234,7 +1371,7 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
**/
|
|
|
updateStorageBucketsVoucherMaxLimits: AugmentedSubmittable<(newObjectsSize: u64 | AnyNumber | Uint8Array, newObjectsNumber: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, u64]>;
|
|
|
/**
|
|
|
- * Update whether uploading is globally blocked.
|
|
|
+ * Updates global uploading flag.
|
|
|
**/
|
|
|
updateUploadingBlockedStatus: AugmentedSubmittable<(newStatus: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
|
|
|
};
|