@polkadot/api-augment
Version:
API generated augmentation
919 lines • 268 kB
TypeScript
import '@polkadot/api-base/types/submittable';
import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, PalletBalancesAdjustmentDirection, PalletBrokerCoretimeInterfaceCoreAssignment, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletVestingVestingInfo, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV8ApprovalVotingParams, PolkadotPrimitivesV8AsyncBackingAsyncBackingParams, PolkadotPrimitivesV8ExecutorParams, PolkadotPrimitivesV8PvfCheckStatement, PolkadotPrimitivesV8SchedulerParams, PolkadotPrimitivesV8SlashingDisputeProof, PolkadotPrimitivesV8ValidatorAppSignature, PolkadotPrimitivesVstagingInherentData, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeConstantsProxyProxyType, PolkadotRuntimeOriginCaller, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV5Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
declare module '@polkadot/api-base/types/submittable' {
interface AugmentedSubmittables<ApiType extends ApiTypes> {
assetRate: {
/**
* Initialize a conversion rate to native balance for the given asset.
*
* ## Complexity
* - O(1)
**/
create: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | {
V3: any;
} | {
V4: any;
} | {
V5: any;
} | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* Remove an existing conversion rate to native balance for the given asset.
*
* ## Complexity
* - O(1)
**/
remove: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | {
V3: any;
} | {
V4: any;
} | {
V5: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
/**
* Update the conversion rate to native balance for the given asset.
*
* ## Complexity
* - O(1)
**/
update: AugmentedSubmittable<(assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset | {
V3: any;
} | {
V4: any;
} | {
V5: any;
} | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset, u128]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
auctions: {
/**
* Make a new bid from an account (including a parachain account) for deploying a new
* parachain.
*
* Multiple simultaneous bids from the same bidder are allowed only as long as all active
* bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted.
*
* - `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and
* funded by) the same account.
* - `auction_index` is the index of the auction to bid on. Should just be the present
* value of `AuctionCounter`.
* - `first_slot` is the first lease period index of the range to bid on. This is the
* absolute lease period index value, not an auction-specific offset.
* - `last_slot` is the last lease period index of the range to bid on. This is the
* absolute lease period index value, not an auction-specific offset.
* - `amount` is the amount to bid to be held as deposit for the parachain should the
* bid win. This amount is held throughout the range.
**/
bid: AugmentedSubmittable<(para: Compact<u32> | AnyNumber | Uint8Array, auctionIndex: Compact<u32> | AnyNumber | Uint8Array, firstSlot: Compact<u32> | AnyNumber | Uint8Array, lastSlot: Compact<u32> | AnyNumber | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Compact<u32>, Compact<u32>, Compact<u128>]>;
/**
* Cancel an in-progress auction.
*
* Can only be called by Root origin.
**/
cancelAuction: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Create a new auction.
*
* This can only happen when there isn't already an auction in progress and may only be
* called by the root origin. Accepts the `duration` of this auction and the
* `lease_period_index` of the initial lease period of the four that are to be auctioned.
**/
newAuction: AugmentedSubmittable<(duration: Compact<u32> | AnyNumber | Uint8Array, leasePeriodIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
babe: {
/**
* Plan an epoch config change. The epoch config change is recorded and will be enacted on
* the next call to `enact_epoch_change`. The config will be activated one epoch after.
* Multiple calls to this method will replace any existing planned config change that had
* not been enacted yet.
**/
planConfigChange: AugmentedSubmittable<(config: SpConsensusBabeDigestsNextConfigDescriptor | {
V1: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBabeDigestsNextConfigDescriptor]>;
/**
* Report authority 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.
**/
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
offender?: any;
slot?: any;
firstHeader?: any;
secondHeader?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
/**
* Report authority 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.
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusSlotsEquivocationProof | {
offender?: any;
slot?: any;
firstHeader?: any;
secondHeader?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusSlotsEquivocationProof, SpSessionMembershipProof]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
balances: {
/**
* Burn the specified liquid free balance from the origin account.
*
* If the origin's account ends up below the existential deposit as a result
* of the burn and `keep_alive` is false, the account will be reaped.
*
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
* this `burn` operation will reduce total issuance by the amount _burned_.
**/
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
/**
* Adjust the total issuance in a saturating way.
*
* Can only be called by root and always needs a positive `delta`.
*
* # Example
**/
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
/**
* Set the regular balance of a given account.
*
* The dispatch origin for this call is `root`.
**/
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
* may be specified.
**/
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
/**
* Unreserve some balance from a user by force.
*
* Can only be called by ROOT.
**/
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
/**
* Transfer the entire transferable balance from the caller account.
*
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
* transferred by this function. To ensure that this function results in a killed account,
* you might need to prepare the account by removing any reference counters, storage
* deposits, etc...
*
* The dispatch origin of this call must be Signed.
*
* - `dest`: The recipient of the transfer.
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
* of the funds the account has, causing the sender account to be killed (false), or
* transfer everything except at least the existential deposit, which will guarantee to
* keep the sender account alive (true).
**/
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
/**
* Transfer some liquid free balance to another account.
*
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
* 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.
**/
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
* kill the origin account.
*
* 99% of the time you want [`transfer_allow_death`] instead.
*
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
**/
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
/**
* Upgrade a specified account.
*
* - `origin`: Must be `Signed`.
* - `who`: The account to be upgraded.
*
* This will waive the transaction fee if at least all but 10% of the accounts needed to
* be upgraded. (We let some not have to be upgraded just in order to allow for the
* possibility of churn).
**/
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
beefy: {
/**
* 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.
**/
reportDoubleVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
first?: any;
second?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
/**
* 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.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportDoubleVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyDoubleVotingProof | {
first?: any;
second?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyDoubleVotingProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. 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.
**/
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
vote?: any;
ancestryProof?: any;
header?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
/**
* Report fork voting equivocation. 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.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | {
vote?: any;
ancestryProof?: any;
header?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. 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.
**/
reportFutureBlockVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
vote?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/**
* Report future block voting equivocation. 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.
*
* This extrinsic must be called unsigned and it is expected that only
* block authors will call it (validated in `ValidateUnsigned`), as such
* if the block author is defined it will be defined as the equivocation
* reporter.
**/
reportFutureBlockVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyFutureBlockVotingProof | {
vote?: any;
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
session?: any;
trieNodes?: any;
validatorCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyFutureBlockVotingProof, SpSessionMembershipProof]>;
/**
* Reset BEEFY consensus by setting a new BEEFY genesis at `delay_in_blocks` blocks in the
* future.
*
* Note: `delay_in_blocks` has to be at least 1.
**/
setNewGenesis: AugmentedSubmittable<(delayInBlocks: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
bounties: {
/**
* Accept the curator role for a bounty.
* A deposit will be reserved from curator and refund upon successful payout.
*
* May only be called from the curator.
*
* ## Complexity
* - O(1).
**/
acceptCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Approve a bounty proposal. At a later time, the bounty will be funded and become active
* and the original deposit will be returned.
*
* May only be called from `T::SpendOrigin`.
*
* ## Complexity
* - O(1).
**/
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Approve bountry and propose a curator simultaneously.
* This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
*
* May only be called from `T::SpendOrigin`.
*
* - `bounty_id`: Bounty ID to approve.
* - `curator`: The curator account whom will manage this bounty.
* - `fee`: The curator fee.
*
* ## Complexity
* - O(1).
**/
approveBountyWithCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
/**
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds
* after a delay.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to award.
* - `beneficiary`: The beneficiary account whom will receive the payout.
*
* ## Complexity
* - O(1).
**/
awardBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
/**
* Claim the payout from an awarded bounty after payout delay.
*
* The dispatch origin for this call must be the beneficiary of this bounty.
*
* - `bounty_id`: Bounty ID to claim.
*
* ## Complexity
* - O(1).
**/
claimBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Cancel a proposed or active bounty. All the funds will be sent to treasury and
* the curator deposit will be unreserved if possible.
*
* Only `T::RejectOrigin` is able to cancel a bounty.
*
* - `bounty_id`: Bounty ID to cancel.
*
* ## Complexity
* - O(1).
**/
closeBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Extend the expiry time of an active bounty.
*
* The dispatch origin for this call must be the curator of this bounty.
*
* - `bounty_id`: Bounty ID to extend.
* - `remark`: additional information.
*
* ## Complexity
* - O(1).
**/
extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes]>;
/**
* Propose a new bounty.
*
* The dispatch origin for this call must be _Signed_.
*
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
* `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,
* or slashed when rejected.
*
* - `curator`: The curator account whom will manage this bounty.
* - `fee`: The curator fee.
* - `value`: The total payment amount of this bounty, curator fee included.
* - `description`: The description of this bounty.
**/
proposeBounty: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Bytes]>;
/**
* Propose a curator to a funded bounty.
*
* May only be called from `T::SpendOrigin`.
*
* ## Complexity
* - O(1).
**/
proposeCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
/**
* Unassign curator from a bounty.
*
* This function can only be called by the `RejectOrigin` a signed origin.
*
* If this function is called by the `RejectOrigin`, we assume that the curator is
* malicious or inactive. As a result, we will slash the curator when possible.
*
* If the origin is the curator, we take this as a sign they are unable to do their job and
* they willingly give up. We could slash them, but for now we allow them to recover their
* deposit and exit without issue. (We may want to change this if it is abused.)
*
* Finally, the origin can be anyone if and only if the curator is "inactive". This allows
* anyone in the community to call out that a curator is not doing their due diligence, and
* we should pick a new curator. In this case the curator should also be slashed.
*
* ## Complexity
* - O(1).
**/
unassignCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
childBounties: {
/**
* Accept the curator role for the child-bounty.
*
* The dispatch origin for this call must be the curator of this
* child-bounty.
*
* A deposit will be reserved from the curator and refund upon
* successful payout or cancellation.
*
* Fee for curator is deducted from curator fee of parent bounty.
*
* Parent bounty must be in active state, for this child-bounty call to
* work.
*
* Child-bounty must be in "CuratorProposed" state, for processing the
* call. And state of child-bounty is moved to "Active" on successful
* call completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
**/
acceptCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
/**
* Add a new child-bounty.
*
* The dispatch origin for this call must be the curator of parent
* bounty and the parent bounty must be in "active" state.
*
* Child-bounty gets added successfully & fund gets transferred from
* parent bounty to child-bounty account, if parent bounty has enough
* funds, else the call fails.
*
* Upper bound to maximum number of active child bounties that can be
* added are managed via runtime trait config
* [`Config::MaxActiveChildBountyCount`].
*
* If the call is success, the status of child-bounty is updated to
* "Added".
*
* - `parent_bounty_id`: Index of parent bounty for which child-bounty is being added.
* - `value`: Value for executing the proposal.
* - `description`: Text description for the child-bounty.
**/
addChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u128>, Bytes]>;
/**
* Award child-bounty to a beneficiary.
*
* The beneficiary will be able to claim the funds after a delay.
*
* The dispatch origin for this call must be the parent curator or
* curator of this child-bounty.
*
* Parent bounty must be in active state, for this child-bounty call to
* work.
*
* Child-bounty must be in active state, for processing the call. And
* state of child-bounty is moved to "PendingPayout" on successful call
* completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
* - `beneficiary`: Beneficiary account.
**/
awardChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress]>;
/**
* Claim the payout from an awarded child-bounty after payout delay.
*
* The dispatch origin for this call may be any signed origin.
*
* Call works independent of parent bounty state, No need for parent
* bounty to be in active state.
*
* The Beneficiary is paid out with agreed bounty value. Curator fee is
* paid & curator deposit is unreserved.
*
* Child-bounty must be in "PendingPayout" state, for processing the
* call. And instance of child-bounty is removed from the state on
* successful call completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
**/
claimChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
/**
* Cancel a proposed or active child-bounty. Child-bounty account funds
* are transferred to parent bounty account. The child-bounty curator
* deposit may be unreserved if possible.
*
* The dispatch origin for this call must be either parent curator or
* `T::RejectOrigin`.
*
* If the state of child-bounty is `Active`, curator deposit is
* unreserved.
*
* If the state of child-bounty is `PendingPayout`, call fails &
* returns `PendingPayout` error.
*
* For the origin other than T::RejectOrigin, parent bounty must be in
* active state, for this child-bounty call to work. For origin
* T::RejectOrigin execution is forced.
*
* Instance of child-bounty is removed from the state on successful
* call completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
**/
closeChildBounty: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
/**
* Propose curator for funded child-bounty.
*
* The dispatch origin for this call must be curator of parent bounty.
*
* Parent bounty must be in active state, for this child-bounty call to
* work.
*
* Child-bounty must be in "Added" state, for processing the call. And
* state of child-bounty is moved to "CuratorProposed" on successful
* call completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
* - `curator`: Address of child-bounty curator.
* - `fee`: payment fee to child-bounty curator for execution.
**/
proposeCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
Id: any;
} | {
Index: any;
} | {
Raw: any;
} | {
Address32: any;
} | {
Address20: any;
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress, Compact<u128>]>;
/**
* Unassign curator from a child-bounty.
*
* The dispatch origin for this call can be either `RejectOrigin`, or
* the curator of the parent bounty, or any signed origin.
*
* For the origin other than T::RejectOrigin and the child-bounty
* curator, parent bounty must be in active state, for this call to
* work. We allow child-bounty curator and T::RejectOrigin to execute
* this call irrespective of the parent bounty state.
*
* If this function is called by the `RejectOrigin` or the
* parent bounty curator, we assume that the child-bounty curator is
* malicious or inactive. As a result, child-bounty curator deposit is
* slashed.
*
* If the origin is the child-bounty curator, we take this as a sign
* that they are unable to do their job, and are willingly giving up.
* We could slash the deposit, but for now we allow them to unreserve
* their deposit and exit without issue. (We may want to change this if
* it is abused.)
*
* Finally, the origin can be anyone iff the child-bounty curator is
* "inactive". Expiry update due of parent bounty is used to estimate
* inactive state of child-bounty curator.
*
* This allows anyone in the community to call out that a child-bounty
* curator is not doing their due diligence, and we should pick a new
* one. In this case the child-bounty curator deposit is slashed.
*
* State of child-bounty is moved to Added state on successful call
* completion.
*
* - `parent_bounty_id`: Index of parent bounty.
* - `child_bounty_id`: Index of child bounty.
**/
unassignCurator: AugmentedSubmittable<(parentBountyId: Compact<u32> | AnyNumber | Uint8Array, childBountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
claims: {
/**
* Attest to a statement, needed to finalize the claims process.
*
* WARNING: Insecure unless your chain includes `PrevalidateAttests` as a
* `TransactionExtension`.
*
* Unsigned Validation:
* A call to attest is deemed valid if the sender has a `Preclaim` registered
* and provides a `statement` which is expected for the account.
*
* Parameters:
* - `statement`: The identity of the statement which is being attested to in the
* signature.
*
* <weight>
* The weight of this call is invariant over the input parameters.
* Weight includes logic to do pre-validation on `attest` call.
*
* Total Complexity: O(1)
* </weight>
**/
attest: AugmentedSubmittable<(statement: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* Make a claim to collect your DOTs.
*
* The dispatch origin for this call must be _None_.
*
* Unsigned Validation:
* A call to claim is deemed valid if the signature provided matches
* the expected signed message of:
*
* > Ethereum Signed Message:
* > (configured prefix string)(address)
*
* and `address` matches the `dest` account.
*
* Parameters:
* - `dest`: The destination account to payout the claim.
* - `ethereum_signature`: The signature of an ethereum signed message matching the format
* described above.
*
* <weight>
* The weight of this call is invariant over the input parameters.
* Weight includes logic to validate unsigned `claim` call.
*
* Total Complexity: O(1)
* </weight>
**/
claim: AugmentedSubmittable<(dest: AccountId32 | string | Uint8Array, ethereumSignature: PolkadotRuntimeCommonClaimsEcdsaSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeCommonClaimsEcdsaSignature]>;
/**
* Make a claim to collect your DOTs by signing a statement.
*
* The dispatch origin for this call must be _None_.
*
* Unsigned Validation:
* A call to `claim_attest` is deemed valid if the signature provided matches
* the expected signed message of:
*
* > Ethereum Signed Message:
* > (configured prefix string)(address)(statement)
*
* and `address` matches the `dest` account; the `statement` must match that which is
* expected according to your purchase arrangement.
*
* Parameters:
* - `dest`: The destination account to payout the claim.
* - `ethereum_signature`: The signature of an ethereum signed message matching the format
* described above.
* - `statement`: The identity of the statement which is being attested to in the
* signature.
*
* <weight>
* The weight of this call is invariant over the input parameters.
* Weight includes logic to validate unsigned `claim_attest` call.
*
* Total Complexity: O(1)
* </weight>
**/
claimAttest: AugmentedSubmittable<(dest: AccountId32 | string | Uint8Array, ethereumSignature: PolkadotRuntimeCommonClaimsEcdsaSignature | string | Uint8Array, statement: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeCommonClaimsEcdsaSignature, Bytes]>;
/**
* Mint a new claim to collect DOTs.
*
* The dispatch origin for this call must be _Root_.
*
* Parameters:
* - `who`: The Ethereum address allowed to collect this claim.
* - `value`: The number of DOTs that will be claimed.
* - `vesting_schedule`: An optional vesting schedule for these DOTs.
*
* <weight>
* The weight of this call is invariant over the input parameters.
* We assume worst case that both vesting and statement is being inserted.
*
* Total Complexity: O(1)
* </weight>
**/
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PolkadotRuntimeCommonClaimsStatementKind> | null | Uint8Array | PolkadotRuntimeCommonClaimsStatementKind | 'Regular' | 'Saft' | number) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PolkadotRuntimeCommonClaimsStatementKind>]>;
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
configuration: {
/**
* Set approval-voting-params.
**/
setApprovalVotingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8ApprovalVotingParams | {
maxApprovalCoalesceCount?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8ApprovalVotingParams]>;
/**
* Set the asynchronous backing parameters.
**/
setAsyncBackingParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams | {
maxCandidateDepth?: any;
allowedAncestryLen?: any;
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8AsyncBackingAsyncBackingParams]>;
/**
* Setting this to true will disable consistency checks for the configuration setters.
* Use with caution.
**/
setBypassConsistencyCheck: AugmentedSubmittable<(updated: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [bool]>;
/**
* Set the acceptance period for an included candidate.
**/
setCodeRetentionPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the number of coretime execution cores.
*
* NOTE: that this configuration is managed by the coretime chain. Only manually change
* this, if you really know what you are doing!
**/
setCoretimeCores: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the dispute period, in number of sessions to keep for disputes.
**/
setDisputePeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the dispute post conclusion acceptance period.
**/
setDisputePostConclusionAcceptancePeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set PVF executor parameters.
**/
setExecutorParams: AugmentedSubmittable<(updated: PolkadotPrimitivesV8ExecutorParams) => SubmittableExtrinsic<ApiType>, [PolkadotPrimitivesV8ExecutorParams]>;
/**
* Set the parachain validator-group rotation frequency
**/
setGroupRotationFrequency: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Sets the maximum number of messages allowed in an HRMP channel at once.
**/
setHrmpChannelMaxCapacity: A