Update substrate types for polkadot-sdk 2503-2-rc1 (#6137)
This commit is contained in:
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/consts';
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
@@ -85,6 +85,18 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
assetRewards: {
|
||||
/**
|
||||
* The pallet's unique identifier, used to derive the pool's account ID.
|
||||
*
|
||||
* The account ID is derived once during pool creation and stored in the storage.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* The amount of funds that must be reserved when creating a new approval.
|
||||
@@ -218,7 +230,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Bounty duration in blocks.
|
||||
* The time limit for a curator to act before a bounty expires.
|
||||
*
|
||||
* The period that starts when a curator is approved, during which they must execute or
|
||||
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
||||
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
||||
* removing the need for `extend_bounty_expiry`.
|
||||
**/
|
||||
bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -256,6 +273,9 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Given that we are performing all auto-renewals in a single block, it has to be limited.
|
||||
**/
|
||||
maxAutoRenewals: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of legacy leases.
|
||||
@@ -265,6 +285,12 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* Maximum number of system cores.
|
||||
**/
|
||||
maxReservedCores: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The smallest amount of credits a user can purchase.
|
||||
*
|
||||
* Needed to prevent spam attacks.
|
||||
**/
|
||||
minimumCreditPurchase: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Identifier from which the internal Pot is generated.
|
||||
**/
|
||||
@@ -426,6 +452,20 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
delegatedStaking: {
|
||||
/**
|
||||
* Injected identifier for the pallet.
|
||||
**/
|
||||
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
||||
**/
|
||||
slashRewardFraction: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
||||
@@ -1164,9 +1204,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Information concerning the different referendum tracks.
|
||||
* A list of tracks.
|
||||
*
|
||||
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
||||
**/
|
||||
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks after submission that a referendum must begin being decided by.
|
||||
* Once this passes, then anyone may cancel the referendum.
|
||||
@@ -1233,9 +1275,11 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Information concerning the different referendum tracks.
|
||||
* A list of tracks.
|
||||
*
|
||||
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
||||
**/
|
||||
tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
|
||||
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The number of blocks after submission that a referendum must begin being decided by.
|
||||
* Once this passes, then anyone may cancel the referendum.
|
||||
@@ -1247,7 +1291,6 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
revive: {
|
||||
apiVersion: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
||||
*
|
||||
@@ -1257,9 +1300,8 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
chainId: u64 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The percentage of the storage deposit that should be held for using a code hash.
|
||||
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
||||
* protects the code from being removed. In order to prevent abuse these actions are
|
||||
* protected with a percentage of the code deposit.
|
||||
* Instantiating a contract, protects the code from being removed. In order to prevent
|
||||
* abuse these actions are protected with a percentage of the code deposit.
|
||||
**/
|
||||
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
@@ -1701,6 +1743,10 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
* The period during which an approved treasury spend has to be claimed.
|
||||
**/
|
||||
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Gets this pallet's derived pot account.
|
||||
**/
|
||||
potAccount: AccountId32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Period between successive spends.
|
||||
**/
|
||||
|
||||
@@ -309,6 +309,52 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
assetRewards: {
|
||||
/**
|
||||
* There was an error converting a block number.
|
||||
**/
|
||||
BlockNumberConversionError: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The expiry block must be in the future.
|
||||
**/
|
||||
ExpiryBlockMustBeInTheFuture: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The expiry block can be only extended.
|
||||
**/
|
||||
ExpiryCut: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Insufficient funds to create the freeze.
|
||||
**/
|
||||
InsufficientFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pool still has staked tokens or rewards.
|
||||
**/
|
||||
NonEmptyPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An operation was attempted with a non-existent asset.
|
||||
**/
|
||||
NonExistentAsset: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An operation was attempted on a non-existent pool.
|
||||
**/
|
||||
NonExistentPool: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An operation was attempted for a non-existent staker.
|
||||
**/
|
||||
NonExistentStaker: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The staker does not have enough tokens to perform the operation.
|
||||
**/
|
||||
NotEnoughTokens: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The reward rate per block can be only increased.
|
||||
**/
|
||||
RewardRateCut: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* The asset-account already exists.
|
||||
@@ -338,6 +384,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
||||
**/
|
||||
ContainsFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
||||
**/
|
||||
ContainsHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
@@ -402,6 +456,16 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
assetsFreezer: {
|
||||
/**
|
||||
* Number of freezes on an account would exceed `MaxFreezes`.
|
||||
**/
|
||||
TooManyFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
babe: {
|
||||
/**
|
||||
* A given equivocation report is valid but already previously reported.
|
||||
@@ -568,6 +632,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The lease expiry time has already passed.
|
||||
**/
|
||||
AlreadyExpired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Attempted to force remove an assignment that doesn't exist.
|
||||
**/
|
||||
AssignmentNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Attempted to disable auto-renewal for a core that didn't have it enabled.
|
||||
**/
|
||||
@@ -580,6 +648,11 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The workplan of the pallet's state is invalid. This indicates a state corruption.
|
||||
**/
|
||||
CorruptWorkplan: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Needed to prevent spam attacks.The amount of credits the user attempted to purchase is
|
||||
* below `T::MinimumCreditPurchase`.
|
||||
**/
|
||||
CreditPurchaseTooSmall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pivot mask for the interlacing is not contained within the region's interlace mask.
|
||||
**/
|
||||
@@ -593,6 +666,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The configuration could not be applied because it is invalid.
|
||||
**/
|
||||
InvalidConfig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The lease does not exist.
|
||||
**/
|
||||
LeaseNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The revenue must be claimed for 1 or more timeslices.
|
||||
**/
|
||||
@@ -1054,6 +1131,64 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
delegatedStaking: {
|
||||
/**
|
||||
* An existing staker cannot perform this action.
|
||||
**/
|
||||
AlreadyStaking: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Some corruption in internal state.
|
||||
**/
|
||||
BadState: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Delegation conditions are not met.
|
||||
*
|
||||
* Possible issues are
|
||||
* 1) Cannot delegate to self,
|
||||
* 2) Cannot delegate to multiple delegates.
|
||||
**/
|
||||
InvalidDelegation: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Reward Destination cannot be same as `Agent` account.
|
||||
**/
|
||||
InvalidRewardDestination: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not an existing `Agent` account.
|
||||
**/
|
||||
NotAgent: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account cannot perform this operation.
|
||||
**/
|
||||
NotAllowed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Not a Delegator account.
|
||||
**/
|
||||
NotDelegator: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The account does not have enough funds to perform the operation.
|
||||
**/
|
||||
NotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* `Agent` has no pending slash to be applied.
|
||||
**/
|
||||
NothingToSlash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Operation not supported by this pallet.
|
||||
**/
|
||||
NotSupported: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unapplied pending slash restricts operation on `Agent`.
|
||||
**/
|
||||
UnappliedSlash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to withdraw amount from Core Staking.
|
||||
**/
|
||||
WithdrawFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* Cannot cancel the same proposal twice
|
||||
@@ -1630,6 +1765,36 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
metaTx: {
|
||||
/**
|
||||
* The meta transactions's birth block is ancient.
|
||||
**/
|
||||
AncientBirthBlock: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid proof (e.g. signature).
|
||||
**/
|
||||
BadProof: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The meta transaction is not yet valid (e.g. nonce too high).
|
||||
**/
|
||||
Future: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The meta transaction is invalid.
|
||||
**/
|
||||
Invalid: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The meta transaction is outdated (e.g. nonce too low).
|
||||
**/
|
||||
Stale: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction extension did not authorize any origin.
|
||||
**/
|
||||
UnknownOrigin: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The operation cannot complete since some MBMs are ongoing.
|
||||
@@ -1662,7 +1827,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoApprovalsNeeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Multisig operation not found when attempting to cancel.
|
||||
* Multisig operation not found in storage.
|
||||
**/
|
||||
NotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -1670,7 +1835,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoTimepoint: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Only the account that originally created the multisig is able to cancel it.
|
||||
* Only the account that originally created the multisig is able to cancel it or update
|
||||
* its deposits.
|
||||
**/
|
||||
NotOwner: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -2122,10 +2288,19 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* A (bonded) pool id does not exist.
|
||||
**/
|
||||
PoolNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is restricted from participation in pools. This may happen if the account is
|
||||
* staking in another way already.
|
||||
**/
|
||||
Restricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A reward pool does not exist. In all cases this is a system logic error.
|
||||
**/
|
||||
RewardPoolNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The slash amount is too low to be applied.
|
||||
**/
|
||||
SlashTooLow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A sub pool does not exist.
|
||||
**/
|
||||
@@ -2164,6 +2339,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
||||
**/
|
||||
ContainsFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
||||
**/
|
||||
ContainsHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
@@ -2623,6 +2806,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Contract trapped during execution.
|
||||
**/
|
||||
ContractTrapped: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to convert an EVM balance to a native balance.
|
||||
**/
|
||||
DecimalPrecisionLoss: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Input passed to a contract API function failed to decode as expected type.
|
||||
**/
|
||||
@@ -2651,6 +2838,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
||||
**/
|
||||
InvalidCallFlags: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The transaction used to dry-run a contract is invalid.
|
||||
**/
|
||||
InvalidGenericTransaction: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Immutable data can only be set during deploys and only be read during calls.
|
||||
* Additionally, it is only valid to set the data once and it must not be empty.
|
||||
@@ -2699,6 +2890,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Can not add more data to transient storage.
|
||||
**/
|
||||
OutOfTransientStorage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Precompile Error
|
||||
**/
|
||||
PrecompileFailure: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract called into the runtime which then called back into this pallet.
|
||||
**/
|
||||
@@ -2707,6 +2902,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* A call tried to invoke a contract that is flagged as non-reentrant.
|
||||
**/
|
||||
ReentranceDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The refcount of a code either over or underflowed.
|
||||
**/
|
||||
RefcountOverOrUnderflow: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
||||
**/
|
||||
@@ -2744,6 +2943,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* free balance in the sender's account.
|
||||
**/
|
||||
TransferFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Unsupported precompile address
|
||||
**/
|
||||
UnsupportedPrecompileAddress: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The size defined in `T::MaxValueSize` was exceeded.
|
||||
**/
|
||||
@@ -3045,6 +3248,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Rewards for this era have already been claimed for this validator.
|
||||
**/
|
||||
AlreadyClaimed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The stake of this account is already migrated to `Fungible` holds.
|
||||
**/
|
||||
AlreadyMigrated: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Controller is already paired.
|
||||
**/
|
||||
@@ -3065,6 +3272,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
||||
**/
|
||||
CannotChillOther: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Stash could not be reaped as other pallet might depend on it.
|
||||
**/
|
||||
CannotReapStash: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Cannot reset a ledger.
|
||||
**/
|
||||
@@ -3143,6 +3354,11 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Can not rebond without unlocking chunks.
|
||||
**/
|
||||
NoUnlockChunk: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Account is restricted from participation in staking. This may happen if the account is
|
||||
* staking in another way already, such as via pool.
|
||||
**/
|
||||
Restricted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Provided reward destination is not allowed.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H160, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReviveExecOrigin, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletProxyDepositKind, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -186,6 +186,44 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetRewards: {
|
||||
/**
|
||||
* A pool admin was modified.
|
||||
**/
|
||||
PoolAdminModified: AugmentedEvent<ApiType, [poolId: u32, newAdmin: AccountId32], { poolId: u32, newAdmin: AccountId32 }>;
|
||||
/**
|
||||
* A pool information was cleared after it's completion.
|
||||
**/
|
||||
PoolCleanedUp: AugmentedEvent<ApiType, [poolId: u32], { poolId: u32 }>;
|
||||
/**
|
||||
* A new reward pool was created.
|
||||
**/
|
||||
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: u32, stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId, rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId, rewardRatePerBlock: u128, expiryBlock: u32, admin: AccountId32], { creator: AccountId32, poolId: u32, stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId, rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId, rewardRatePerBlock: u128, expiryBlock: u32, admin: AccountId32 }>;
|
||||
/**
|
||||
* A pool expiry block was modified by the admin.
|
||||
**/
|
||||
PoolExpiryBlockModified: AugmentedEvent<ApiType, [poolId: u32, newExpiryBlock: u32], { poolId: u32, newExpiryBlock: u32 }>;
|
||||
/**
|
||||
* A pool reward rate was modified by the admin.
|
||||
**/
|
||||
PoolRewardRateModified: AugmentedEvent<ApiType, [poolId: u32, newRewardRatePerBlock: u128], { poolId: u32, newRewardRatePerBlock: u128 }>;
|
||||
/**
|
||||
* An account harvested some rewards.
|
||||
**/
|
||||
RewardsHarvested: AugmentedEvent<ApiType, [caller: AccountId32, staker: AccountId32, poolId: u32, amount: u128], { caller: AccountId32, staker: AccountId32, poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* An account staked some tokens in a pool.
|
||||
**/
|
||||
Staked: AugmentedEvent<ApiType, [staker: AccountId32, poolId: u32, amount: u128], { staker: AccountId32, poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* An account unstaked some tokens from a pool.
|
||||
**/
|
||||
Unstaked: AugmentedEvent<ApiType, [caller: AccountId32, staker: AccountId32, poolId: u32, amount: u128], { caller: AccountId32, staker: AccountId32, poolId: u32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* Accounts were destroyed for given asset.
|
||||
@@ -297,6 +335,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetsFreezer: {
|
||||
Frozen: AugmentedEvent<ApiType, [who: AccountId32, assetId: u32, amount: u128], { who: AccountId32, assetId: u32, amount: u128 }>;
|
||||
Thawed: AugmentedEvent<ApiType, [who: AccountId32, assetId: u32, amount: u128], { who: AccountId32, assetId: u32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
@@ -448,6 +494,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A Region has been assigned to a particular task.
|
||||
**/
|
||||
Assigned: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, task: u32], { regionId: PalletBrokerRegionId, duration: u32, task: u32 }>;
|
||||
/**
|
||||
* An assignment has been removed from the workplan.
|
||||
**/
|
||||
AssignmentRemoved: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId], { regionId: PalletBrokerRegionId }>;
|
||||
AutoRenewalDisabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
|
||||
AutoRenewalEnabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
|
||||
/**
|
||||
@@ -511,6 +561,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A lease is about to end.
|
||||
**/
|
||||
LeaseEnding: AugmentedEvent<ApiType, [task: u32, when: u32], { task: u32, when: u32 }>;
|
||||
/**
|
||||
* A lease has been removed.
|
||||
**/
|
||||
LeaseRemoved: AugmentedEvent<ApiType, [task: u32], { task: u32 }>;
|
||||
/**
|
||||
* A Region has been split into two non-overlapping Regions.
|
||||
**/
|
||||
@@ -671,13 +725,17 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* An account that has voted
|
||||
* An account has voted
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
|
||||
/**
|
||||
* A vote that been removed
|
||||
* A vote has been removed
|
||||
**/
|
||||
VoteRemoved: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
|
||||
/**
|
||||
* The lockup period of a conviction vote expired, and the funds have been unlocked.
|
||||
**/
|
||||
VoteUnlocked: AugmentedEvent<ApiType, [who: AccountId32, class_: u16], { who: AccountId32, class: u16 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -783,6 +841,28 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
delegatedStaking: {
|
||||
/**
|
||||
* Funds delegated by a delegator.
|
||||
**/
|
||||
Delegated: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Unclaimed delegation funds migrated to delegator.
|
||||
**/
|
||||
MigratedDelegation: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Funds released to a delegator.
|
||||
**/
|
||||
Released: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Funds slashed from a delegator.
|
||||
**/
|
||||
Slashed: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A proposal_hash has been blacklisted permanently.
|
||||
@@ -919,7 +999,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
MemberKicked: AugmentedEvent<ApiType, [member: AccountId32], { member: AccountId32 }>;
|
||||
/**
|
||||
* A new term with new_members. This indicates that enough candidates existed to run
|
||||
* the election, not that enough have has been elected. The inner value must be examined
|
||||
* the election, not that enough have been elected. The inner value must be examined
|
||||
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
||||
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
||||
* begin with.
|
||||
@@ -1115,13 +1195,17 @@ declare module '@polkadot/api-base/types/events' {
|
||||
/**
|
||||
* At the end of the session, at least one validator was found to be offline.
|
||||
**/
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, SpStakingExposure]>>], { offline: Vec<ITuple<[AccountId32, SpStakingExposure]>> }>;
|
||||
SomeOffline: AugmentedEvent<ApiType, [offline: Vec<ITuple<[AccountId32, Null]>>], { offline: Vec<ITuple<[AccountId32, Null]>> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
indices: {
|
||||
/**
|
||||
* A deposit to reserve an index has been poked/reconsidered.
|
||||
**/
|
||||
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, index: u32, oldDeposit: u128, newDeposit: u128], { who: AccountId32, index: u32, oldDeposit: u128, newDeposit: u128 }>;
|
||||
/**
|
||||
* A account index was assigned.
|
||||
**/
|
||||
@@ -1183,6 +1267,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
metaTx: {
|
||||
/**
|
||||
* A meta transaction has been dispatched.
|
||||
*
|
||||
* Contains the dispatch result of the meta transaction along with post-dispatch
|
||||
* information.
|
||||
**/
|
||||
Dispatched: AugmentedEvent<ApiType, [result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>], { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multiBlockMigrations: {
|
||||
/**
|
||||
* The set of historical migrations has been cleared.
|
||||
@@ -1230,6 +1327,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The deposit for a multisig operation has been updated/poked.
|
||||
**/
|
||||
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, callHash: U8aFixed, oldDeposit: u128, newDeposit: u128], { who: AccountId32, callHash: U8aFixed, oldDeposit: u128, newDeposit: u128 }>;
|
||||
/**
|
||||
* A multisig operation has been approved by someone.
|
||||
**/
|
||||
@@ -1473,6 +1574,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A pool has been destroyed.
|
||||
**/
|
||||
Destroyed: AugmentedEvent<ApiType, [poolId: u32], { poolId: u32 }>;
|
||||
/**
|
||||
* Global parameters regulating nomination pools have been updated.
|
||||
**/
|
||||
GlobalParamsUpdated: AugmentedEvent<ApiType, [minJoinBond: u128, minCreateBond: u128, maxPools: Option<u32>, maxMembers: Option<u32>, maxMembersPerPool: Option<u32>, globalMaxCommission: Option<Perbill>], { minJoinBond: u128, minCreateBond: u128, maxPools: Option<u32>, maxMembers: Option<u32>, maxMembersPerPool: Option<u32>, globalMaxCommission: Option<Perbill> }>;
|
||||
/**
|
||||
* A pool member's claim permission has been updated.
|
||||
**/
|
||||
MemberClaimPermissionUpdated: AugmentedEvent<ApiType, [member: AccountId32, permission: PalletNominationPoolsClaimPermission], { member: AccountId32, permission: PalletNominationPoolsClaimPermission }>;
|
||||
/**
|
||||
* A member has been removed from a pool.
|
||||
*
|
||||
@@ -1481,6 +1590,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* represented by `released_balance`.
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32, releasedBalance: u128], { poolId: u32, member: AccountId32, releasedBalance: u128 }>;
|
||||
/**
|
||||
* A pool's metadata was updated.
|
||||
**/
|
||||
MetadataUpdated: AugmentedEvent<ApiType, [poolId: u32, caller: AccountId32], { poolId: u32, caller: AccountId32 }>;
|
||||
/**
|
||||
* Topped up deficit in frozen ED of the reward pool.
|
||||
**/
|
||||
@@ -1513,6 +1626,15 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A pool's maximum commission setting has been changed.
|
||||
**/
|
||||
PoolMaxCommissionUpdated: AugmentedEvent<ApiType, [poolId: u32, maxCommission: Perbill], { poolId: u32, maxCommission: Perbill }>;
|
||||
/**
|
||||
* A pool's nominating account (or the pool's root account) has nominated a validator set
|
||||
* on behalf of the pool.
|
||||
**/
|
||||
PoolNominationMade: AugmentedEvent<ApiType, [poolId: u32, caller: AccountId32], { poolId: u32, caller: AccountId32 }>;
|
||||
/**
|
||||
* The pool is chilled i.e. no longer nominating.
|
||||
**/
|
||||
PoolNominatorChilled: AugmentedEvent<ApiType, [poolId: u32, caller: AccountId32], { poolId: u32, caller: AccountId32 }>;
|
||||
/**
|
||||
* The active balance of pool `pool_id` has been slashed to `balance`.
|
||||
**/
|
||||
@@ -1723,6 +1845,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An announcement was placed to make a call in the future.
|
||||
**/
|
||||
Announced: AugmentedEvent<ApiType, [real: AccountId32, proxy: AccountId32, callHash: H256], { real: AccountId32, proxy: AccountId32, callHash: H256 }>;
|
||||
/**
|
||||
* A deposit stored for proxies or announcements was poked / updated.
|
||||
**/
|
||||
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, kind: PalletProxyDepositKind, oldDeposit: u128, newDeposit: u128], { who: AccountId32, kind: PalletProxyDepositKind, oldDeposit: u128, newDeposit: u128 }>;
|
||||
/**
|
||||
* A proxy was added.
|
||||
**/
|
||||
@@ -1941,63 +2067,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* A contract was called either by a plain account or another contract.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Please keep in mind that like all events this is only emitted for successful
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
Called: AugmentedEvent<ApiType, [caller: PalletReviveExecOrigin, contract: H160], { caller: PalletReviveExecOrigin, contract: H160 }>;
|
||||
/**
|
||||
* A code with the specified hash was removed.
|
||||
**/
|
||||
CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256, depositReleased: u128, remover: H160], { codeHash: H256, depositReleased: u128, remover: H160 }>;
|
||||
/**
|
||||
* Code with the specified hash has been stored.
|
||||
**/
|
||||
CodeStored: AugmentedEvent<ApiType, [codeHash: H256, depositHeld: u128, uploader: H160], { codeHash: H256, depositHeld: u128, uploader: H160 }>;
|
||||
/**
|
||||
* A contract's code was updated.
|
||||
**/
|
||||
ContractCodeUpdated: AugmentedEvent<ApiType, [contract: H160, newCodeHash: H256, oldCodeHash: H256], { contract: H160, newCodeHash: H256, oldCodeHash: H256 }>;
|
||||
/**
|
||||
* A custom event emitted by the contract.
|
||||
**/
|
||||
ContractEmitted: AugmentedEvent<ApiType, [contract: H160, data: Bytes, topics: Vec<H256>], { contract: H160, data: Bytes, topics: Vec<H256> }>;
|
||||
/**
|
||||
* A contract delegate called a code hash.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Please keep in mind that like all events this is only emitted for successful
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
DelegateCalled: AugmentedEvent<ApiType, [contract: H160, codeHash: H256], { contract: H160, codeHash: H256 }>;
|
||||
/**
|
||||
* Contract deployed by address at the specified address.
|
||||
**/
|
||||
Instantiated: AugmentedEvent<ApiType, [deployer: H160, contract: H160], { deployer: H160, contract: H160 }>;
|
||||
/**
|
||||
* Some funds have been transferred and held as storage deposit.
|
||||
**/
|
||||
StorageDepositTransferredAndHeld: AugmentedEvent<ApiType, [from: H160, to: H160, amount: u128], { from: H160, to: H160, amount: u128 }>;
|
||||
/**
|
||||
* Some storage deposit funds have been transferred and released.
|
||||
**/
|
||||
StorageDepositTransferredAndReleased: AugmentedEvent<ApiType, [from: H160, to: H160, amount: u128], { from: H160, to: H160, amount: u128 }>;
|
||||
/**
|
||||
* Contract has been removed.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* The only way for a contract to be removed and emitting this event is by calling
|
||||
* `seal_terminate`.
|
||||
**/
|
||||
Terminated: AugmentedEvent<ApiType, [contract: H160, beneficiary: H160], { contract: H160, beneficiary: H160 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -2082,6 +2155,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
scheduler: {
|
||||
/**
|
||||
* Agenda is incomplete from `when`.
|
||||
**/
|
||||
AgendaIncomplete: AugmentedEvent<ApiType, [when: u32], { when: u32 }>;
|
||||
/**
|
||||
* The call for the provided hash was not found so the task has been aborted.
|
||||
**/
|
||||
@@ -2130,6 +2207,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* block number as the type might suggest.
|
||||
**/
|
||||
NewSession: AugmentedEvent<ApiType, [sessionIndex: u32], { sessionIndex: u32 }>;
|
||||
/**
|
||||
* Validator has been disabled.
|
||||
**/
|
||||
ValidatorDisabled: AugmentedEvent<ApiType, [validator: AccountId32], { validator: AccountId32 }>;
|
||||
/**
|
||||
* Validator has been re-enabled.
|
||||
**/
|
||||
ValidatorReenabled: AugmentedEvent<ApiType, [validator: AccountId32], { validator: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -2238,6 +2323,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* Report of a controller batch deprecation.
|
||||
**/
|
||||
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], { failures: u32 }>;
|
||||
/**
|
||||
* Staking balance migrated from locks to holds, with any balance that could not be held
|
||||
* is force withdrawn.
|
||||
**/
|
||||
CurrencyMigrated: AugmentedEvent<ApiType, [stash: AccountId32, forceWithdraw: u128], { stash: AccountId32, forceWithdraw: u128 }>;
|
||||
/**
|
||||
* The era payout has been set; the first balance is the validator-payout; the second is
|
||||
* the remainder from the maximum amount of reward.
|
||||
@@ -2383,6 +2473,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A new account was created.
|
||||
**/
|
||||
NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
|
||||
/**
|
||||
* An invalid authorized upgrade was rejected while trying to apply it.
|
||||
**/
|
||||
RejectedInvalidAuthorizedUpgrade: AugmentedEvent<ApiType, [codeHash: H256, error: SpRuntimeDispatchError], { codeHash: H256, error: SpRuntimeDispatchError }>;
|
||||
/**
|
||||
* On on-chain remark happened.
|
||||
**/
|
||||
@@ -2732,6 +2826,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A call was dispatched.
|
||||
**/
|
||||
DispatchedAs: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], { result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* The fallback call was dispatched.
|
||||
**/
|
||||
IfElseFallbackCalled: AugmentedEvent<ApiType, [mainError: SpRuntimeDispatchError], { mainError: SpRuntimeDispatchError }>;
|
||||
/**
|
||||
* Main call was dispatched.
|
||||
**/
|
||||
IfElseMainSuccess: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A single item within a Batch of dispatches has completed with no error.
|
||||
**/
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H160, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetRewardsPoolInfo, PalletAssetRewardsPoolStakerInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityProvider, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletIdentityUsernameInformation, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -120,6 +120,33 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assetRewards: {
|
||||
/**
|
||||
* Stores the [`PoolId`] to use for the next pool.
|
||||
*
|
||||
* Incremented when a new pool is created.
|
||||
**/
|
||||
nextPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The cost associated with storing pool information on-chain which was incurred by the pool
|
||||
* creator.
|
||||
*
|
||||
* This cost may be [`None`], as determined by [`Config::Consideration`].
|
||||
**/
|
||||
poolCost: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u128]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* State and configuration of each staking pool.
|
||||
**/
|
||||
pools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletAssetRewardsPoolInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* State of pool stakers.
|
||||
**/
|
||||
poolStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletAssetRewardsPoolStakerInfo>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* The holdings of a specific account for a specific asset.
|
||||
@@ -156,6 +183,20 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
assetsFreezer: {
|
||||
/**
|
||||
* A map that stores freezes applied on an account for a given AssetId.
|
||||
**/
|
||||
freezes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* A map that stores the current total frozen balance for every account on a given AssetId.
|
||||
**/
|
||||
frozenBalances: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
authorityDiscovery: {
|
||||
/**
|
||||
* Keys of the current authority set.
|
||||
@@ -660,6 +701,31 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
delegatedStaking: {
|
||||
/**
|
||||
* Map of `Agent` to their `Ledger`.
|
||||
**/
|
||||
agents: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingAgentLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForAgents: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Counter for the related counted storage map
|
||||
**/
|
||||
counterForDelegators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Map of Delegators to their `Delegation`.
|
||||
*
|
||||
* Implementation note: We are not using a double map with `delegator` and `agent` account
|
||||
* as keys since we want to restrict delegators to delegate only to one account at a time.
|
||||
**/
|
||||
delegators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletDelegatedStakingDelegation>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
democracy: {
|
||||
/**
|
||||
* A record of who vetoed what. Maps proposal hash to a possible existent block number
|
||||
@@ -1485,7 +1551,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
/**
|
||||
* Stored parameters.
|
||||
**/
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | { Storage: any } | { Referenda: any } | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -1723,14 +1789,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* Map a Ethereum address to its original `AccountId32`.
|
||||
*
|
||||
* Stores the last 12 byte for addresses that were originally an `AccountId32` instead
|
||||
* of an `H160`. Register your `AccountId32` using [`Pallet::map_account`] in order to
|
||||
* use it with this pallet.
|
||||
**/
|
||||
addressSuffix: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<U8aFixed>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
||||
/**
|
||||
* A mapping from a contract's code hash to its code info.
|
||||
**/
|
||||
@@ -1755,6 +1813,15 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* The immutable data associated with a given account.
|
||||
**/
|
||||
immutableDataOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Bytes>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
||||
/**
|
||||
* Map a Ethereum address to its original `AccountId32`.
|
||||
*
|
||||
* When deriving a `H160` from an `AccountId32` we use a hash function. In order to
|
||||
* reconstruct the original account we need to store the reverse mapping here.
|
||||
* Register your `AccountId32` using [`Pallet::map_account`] in order to
|
||||
* use it with this pallet.
|
||||
**/
|
||||
originalAccount: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<AccountId32>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
|
||||
/**
|
||||
* A mapping from a contract's code hash to its code.
|
||||
**/
|
||||
@@ -1804,6 +1871,9 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Items to be executed, indexed by the block number that they should be executed on.
|
||||
**/
|
||||
agenda: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Option<PalletSchedulerScheduled>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* Block number at which the agenda began incomplete execution.
|
||||
**/
|
||||
incompleteSince: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Lookup from a name to the block number and index of the task.
|
||||
@@ -1833,7 +1903,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
||||
* a new set of identities.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
||||
**/
|
||||
@@ -2014,16 +2084,6 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
||||
**/
|
||||
currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
||||
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
||||
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
||||
* implicitly means that the implementor also controls the max number of disabled validators.
|
||||
*
|
||||
* The vec is always kept sorted so that we can find whether a given validator has previously
|
||||
* offended using binary search.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Rewards for the last [`Config::HistoryDepth`] eras.
|
||||
* If reward hasn't been set or has been removed then 0 reward is returned.
|
||||
@@ -2345,6 +2405,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
||||
**/
|
||||
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The weight reclaimed for the extrinsic.
|
||||
*
|
||||
* This information is available until the end of the extrinsic execution.
|
||||
* More precisely this information is removed in `note_applied_extrinsic`.
|
||||
*
|
||||
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
||||
* reduction.
|
||||
**/
|
||||
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether all inherents have been applied.
|
||||
**/
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
import '@polkadot/api-base/types/calls';
|
||||
|
||||
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, Struct, Text, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Null, Option, Result, Struct, Text, U256, U8aFixed, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { AccountId32, H160, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthContractResult, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesCallTrace, PalletReviveEvmApiDebugRpcTypesTracerConfig, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -50,6 +50,17 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x65f855d6e093c2f1/ */
|
||||
assetRewards: {
|
||||
/**
|
||||
* Get the cost of creating a pool.,, This is especially useful when the cost is dynamic.
|
||||
**/
|
||||
poolCreationCost: AugmentedCall<ApiType, () => Observable<u128>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8453b50b22293977/ */
|
||||
assetsApi: {
|
||||
/**
|
||||
@@ -363,7 +374,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
memberNeedsDelegateMigration: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
* Returns the pending slash for a given pool member.
|
||||
* Returns the pending slash for a given pool member.,, If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on, chain.
|
||||
**/
|
||||
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
@@ -413,9 +424,13 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/** 0x8c403e5c4a9fd442/ */
|
||||
reviveApi: {
|
||||
/**
|
||||
* Returns the free balance of the given `[H160]` address.
|
||||
* Returns the free balance of the given `[H160]` address, using EVM decimals.
|
||||
**/
|
||||
balance: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<u128>>;
|
||||
balance: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<U256>>;
|
||||
/**
|
||||
* Returns the block gas limit.
|
||||
**/
|
||||
blockGasLimit: AugmentedCall<ApiType, () => Observable<U256>>;
|
||||
/**
|
||||
* Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
|
||||
**/
|
||||
@@ -423,7 +438,11 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/**
|
||||
* Perform an Ethereum call.,, See [`crate::Pallet::bare_eth_transact`]
|
||||
**/
|
||||
ethTransact: AugmentedCall<ApiType, (origin: H160 | string | Uint8Array, dest: Option<H160> | null | Uint8Array | H160 | string, value: u128 | AnyNumber | Uint8Array, input: Bytes | string | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<PalletRevivePrimitivesEthContractResult>>;
|
||||
ethTransact: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array) => Observable<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>>;
|
||||
/**
|
||||
* Returns the gas price.
|
||||
**/
|
||||
gasPrice: AugmentedCall<ApiType, () => Observable<U256>>;
|
||||
/**
|
||||
* Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
|
||||
**/
|
||||
@@ -436,6 +455,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns the nonce of the given `[H160]` address.
|
||||
**/
|
||||
nonce: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Traces the execution of an entire block and returns call traces.,, This is intended to be called through `state_call` to replay the block from the, parent block.,, See eth-rpc `debug_traceBlockByNumber` for usage.
|
||||
**/
|
||||
traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesCallTrace]>>>>;
|
||||
/**
|
||||
* Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
|
||||
**/
|
||||
traceCall: AugmentedCall<ApiType, (tx: PalletReviveEvmApiRpcTypesGenGenericTransaction | { accessList?: any; blobVersionedHashes?: any; blobs?: any; chainId?: any; from?: any; gas?: any; gasPrice?: any; input?: any; maxFeePerBlobGas?: any; maxFeePerGas?: any; maxPriorityFeePerGas?: any; nonce?: any; to?: any; r_type?: any; value?: any } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>>;
|
||||
/**
|
||||
* Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
|
||||
**/
|
||||
traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | { header?: any; extrinsics?: any } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | { CallTracer: any } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesCallTrace>>>;
|
||||
/**
|
||||
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
|
||||
**/
|
||||
@@ -445,6 +476,17 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xccd9de6396c899ca/ */
|
||||
runtimeViewFunction: {
|
||||
/**
|
||||
* Execute a view function query.
|
||||
**/
|
||||
executeViewFunction: AugmentedCall<ApiType, (query_id: FrameSupportViewFunctionsViewFunctionId | { prefix?: any; suffix?: any } | string | Uint8Array, input: Bytes | string | Uint8Array) => Observable<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/ */
|
||||
sessionKeys: {
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMetaTxMetaTx, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -355,6 +355,93 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
assetRewards: {
|
||||
/**
|
||||
* Cleanup a pool.
|
||||
*
|
||||
* Origin must be the pool admin.
|
||||
*
|
||||
* Cleanup storage, release any associated storage cost and return the remaining reward
|
||||
* tokens to the admin.
|
||||
**/
|
||||
cleanupPool: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Create a new reward pool.
|
||||
*
|
||||
* Parameters:
|
||||
* - `origin`: must be `Config::CreatePoolOrigin`;
|
||||
* - `staked_asset_id`: the asset to be staked in the pool;
|
||||
* - `reward_asset_id`: the asset to be distributed as rewards;
|
||||
* - `reward_rate_per_block`: the amount of reward tokens distributed per block;
|
||||
* - `expiry`: the block number at which the pool will cease to accumulate rewards. The
|
||||
* [`DispatchTime::After`] variant evaluated at the execution time.
|
||||
* - `admin`: the account allowed to extend the pool expiration, increase the rewards rate
|
||||
* and receive the unutilized reward tokens back after the pool completion. If `None`,
|
||||
* the caller is set as an admin.
|
||||
**/
|
||||
createPool: AugmentedSubmittable<(stakedAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, rewardAssetId: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, rewardRatePerBlock: u128 | AnyNumber | Uint8Array, expiry: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array, admin: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, FrameSupportScheduleDispatchTime, Option<AccountId32>]>;
|
||||
/**
|
||||
* Convenience method to deposit reward tokens into a pool.
|
||||
*
|
||||
* This method is not strictly necessary (tokens could be transferred directly to the
|
||||
* pool pot address), but is provided for convenience so manual derivation of the
|
||||
* account id is not required.
|
||||
**/
|
||||
depositRewardTokens: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
||||
/**
|
||||
* Harvest unclaimed pool rewards.
|
||||
*
|
||||
* Parameters:
|
||||
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
||||
* - pool_id: the pool to harvest from.
|
||||
* - staker: the account for which to harvest rewards. If `None`, the caller is used.
|
||||
**/
|
||||
harvestRewards: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, staker: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
||||
/**
|
||||
* Modify a pool admin.
|
||||
*
|
||||
* Only the pool admin may perform this operation.
|
||||
**/
|
||||
setPoolAdmin: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newAdmin: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, AccountId32]>;
|
||||
/**
|
||||
* Set when the pool should expire.
|
||||
*
|
||||
* Currently the expiry block can only be extended.
|
||||
*
|
||||
* Only the pool admin may perform this operation.
|
||||
**/
|
||||
setPoolExpiryBlock: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newExpiry: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Modify a pool reward rate.
|
||||
*
|
||||
* Currently the reward rate can only be increased.
|
||||
*
|
||||
* Only the pool admin may perform this operation.
|
||||
**/
|
||||
setPoolRewardRatePerBlock: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRewardRatePerBlock: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
||||
/**
|
||||
* Stake additional tokens in a pool.
|
||||
*
|
||||
* A freeze is placed on the staked tokens.
|
||||
**/
|
||||
stake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128]>;
|
||||
/**
|
||||
* Unstake tokens from a pool.
|
||||
*
|
||||
* Removes the freeze on the staked tokens.
|
||||
*
|
||||
* Parameters:
|
||||
* - origin: must be the `staker` if the pool is still active. Otherwise, any account.
|
||||
* - pool_id: the pool to unstake from.
|
||||
* - amount: the amount of tokens to unstake.
|
||||
* - staker: the account to unstake from. If `None`, the caller is used.
|
||||
**/
|
||||
unstake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array, staker: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, u128, Option<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
assets: {
|
||||
/**
|
||||
* Approve an amount of asset for transfer by a delegated third-party account.
|
||||
@@ -673,6 +760,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
||||
@@ -686,6 +776,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
@@ -748,6 +841,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* an account contains holds or freezes in place.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -1301,6 +1397,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* inefficient to look up when the core expires to schedule the next renewal.
|
||||
**/
|
||||
enableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array, workloadEndHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Option<u32>]>;
|
||||
/**
|
||||
* Reserve a core for a workload immediately.
|
||||
*
|
||||
* - `origin`: Must be Root or pass `AdminOrigin`.
|
||||
* - `workload`: The workload which should be permanently placed on a core starting
|
||||
* immediately.
|
||||
* - `core`: The core to which the assignment should be made until the reservation takes
|
||||
* effect. It is left to the caller to either add this new core or reassign any other
|
||||
* tasks to this existing core.
|
||||
*
|
||||
* This reserves the workload and then injects the workload into the Workplan for the next
|
||||
* two sale periods. This overwrites any existing assignments for this core at the start of
|
||||
* the next sale period.
|
||||
**/
|
||||
forceReserve: AugmentedSubmittable<(workload: Vec<PalletBrokerScheduleItem> | (PalletBrokerScheduleItem | { mask?: any; assignment?: any } | string | Uint8Array)[], core: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<PalletBrokerScheduleItem>, u16]>;
|
||||
/**
|
||||
* Split a Bulk Coretime Region into two wholly-overlapping Regions with complementary
|
||||
* interlace masks which together make up the original Region's interlace mask.
|
||||
@@ -1349,6 +1460,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* this will be the collator's hot wallet).
|
||||
**/
|
||||
purchaseCredit: AugmentedSubmittable<(amount: u128 | AnyNumber | Uint8Array, beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, AccountId32]>;
|
||||
/**
|
||||
* Remove an assignment from the Workplan.
|
||||
*
|
||||
* - `origin`: Must be Root or pass `AdminOrigin`.
|
||||
* - `region_id`: The Region to be removed from the workplan.
|
||||
**/
|
||||
removeAssignment: AugmentedSubmittable<(regionId: PalletBrokerRegionId | { begin?: any; core?: any; mask?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId]>;
|
||||
/**
|
||||
* Remove a lease.
|
||||
*
|
||||
* - `origin`: Must be Root or pass `AdminOrigin`.
|
||||
* - `task`: The task id of the lease which should be removed.
|
||||
**/
|
||||
removeLease: AugmentedSubmittable<(task: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Renew Bulk Coretime in the ongoing Sale or its prior Interlude Period.
|
||||
*
|
||||
@@ -1367,6 +1492,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
/**
|
||||
* Reserve a core for a workload.
|
||||
*
|
||||
* The workload will be given a reservation, but two sale period boundaries must pass
|
||||
* before the core is actually assigned.
|
||||
*
|
||||
* - `origin`: Must be Root or pass `AdminOrigin`.
|
||||
* - `workload`: The workload which should be permanently placed on a core.
|
||||
**/
|
||||
@@ -1863,15 +1991,28 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
bump: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Introduce an already-ranked individual of the collective into this pallet. The rank may
|
||||
* still be zero.
|
||||
* Introduce an already-ranked individual of the collective into this pallet.
|
||||
*
|
||||
* The rank may still be zero. This resets `last_proof` to the current block and
|
||||
* `last_promotion` will be set to zero, thereby delaying any automatic demotion but
|
||||
* allowing immediate promotion.
|
||||
*
|
||||
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
||||
**/
|
||||
import: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Introduce an already-ranked individual of the collective into this pallet.
|
||||
*
|
||||
* The rank may still be zero. Can be called by anyone on any collective member - including
|
||||
* the sender.
|
||||
*
|
||||
* This resets `last_proof` to the current block and `last_promotion` will be set to zero,
|
||||
* thereby delaying any automatic demotion but allowing immediate promotion.
|
||||
*
|
||||
* - `origin`: A signed origin of a ranked, but not tracked, account.
|
||||
* - `who`: The account ID of the collective member to be inducted.
|
||||
**/
|
||||
import: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
importMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Introduce a new and unranked candidate (rank zero).
|
||||
*
|
||||
@@ -3003,6 +3144,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `O(1)`.
|
||||
**/
|
||||
freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an index.
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
||||
* non-frozen account `index`.
|
||||
*
|
||||
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
||||
*
|
||||
* - `index`: the index whose deposit is to be poked/reconsidered.
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Assign an index already owned by the sender to another account. The balance reservation
|
||||
* is effectively transferred to the new account.
|
||||
@@ -3098,6 +3252,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
metaTx: {
|
||||
/**
|
||||
* Dispatch a given meta transaction.
|
||||
*
|
||||
* - `_origin`: Can be any kind of origin.
|
||||
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
||||
**/
|
||||
dispatch: AugmentedSubmittable<(metaTx: PalletMetaTxMetaTx | { call?: any; extensionVersion?: any; extension?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMetaTxMetaTx]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
mixnet: {
|
||||
/**
|
||||
* Register a mixnode for the following session.
|
||||
@@ -3261,6 +3428,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
||||
* the multisig operation.
|
||||
*
|
||||
* The transaction fee is waived if the deposit amount has changed.
|
||||
*
|
||||
* - `threshold`: The total number of approvals needed for this multisig.
|
||||
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
||||
* multisig.
|
||||
* - `call_hash`: The hash of the call this deposit is reserved for.
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -4017,8 +4200,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
|
||||
* [`adapter::StakeStrategyType::Delegate`].
|
||||
*
|
||||
* This call can be dispatched permissionlessly (i.e. by any account). If the member has
|
||||
* slash to be applied, caller may be rewarded with the part of the slash.
|
||||
* The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
|
||||
* This call can be dispatched permissionlessly (i.e. by any account). If the execution
|
||||
* is successful, fee is refunded and caller may be rewarded with a part of the slash
|
||||
* based on the [`crate::pallet::Config::StakeAdapter`] configuration.
|
||||
**/
|
||||
applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
||||
/**
|
||||
@@ -4049,25 +4234,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
||||
* root role, same as [`Pallet::nominate`].
|
||||
*
|
||||
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
||||
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
||||
*
|
||||
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
||||
* account).
|
||||
*
|
||||
* # Conditions for a permissionless dispatch:
|
||||
* * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
|
||||
* * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
|
||||
* are unable to unbond.
|
||||
*
|
||||
* # Conditions for permissioned dispatch:
|
||||
* * The caller has a nominator or root role of the pool.
|
||||
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
||||
* account.
|
||||
* * The caller is the pool's nominator or root.
|
||||
**/
|
||||
chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
* Claim pending commission.
|
||||
*
|
||||
* The dispatch origin of this call must be signed by the `root` role of the pool. Pending
|
||||
* commission is paid out and added to total claimed commission`. Total pending commission
|
||||
* is reset to zero. the current.
|
||||
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
||||
*
|
||||
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
||||
* trigger the process of claiming the pool's commission.
|
||||
*
|
||||
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
||||
* accounts
|
||||
* * `acc`, and
|
||||
* * the pool's root account
|
||||
*
|
||||
* may call this extrinsic on behalf of the pool.
|
||||
*
|
||||
* Pending commissions are paid out and added to the total claimed commission.
|
||||
* The total pending commission is reset to zero.
|
||||
**/
|
||||
claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
@@ -4118,8 +4315,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||
/**
|
||||
* Stake funds with a pool. The amount to bond is transferred from the member to the pool
|
||||
* account and immediately increases the pools bond.
|
||||
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
||||
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
||||
* increases the pool's bond.
|
||||
*
|
||||
* The method of transferring the amount to the pool account is determined by
|
||||
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
||||
@@ -4165,13 +4363,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
||||
* root role.
|
||||
*
|
||||
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
||||
* account.
|
||||
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
||||
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have
|
||||
* at least `depositor_min_bond` in the pool to start nominating.
|
||||
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
||||
* have at least `depositor_min_bond` in the pool to start nominating.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
@@ -4338,7 +4536,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
||||
* deleted by setting them to `None`.
|
||||
**/
|
||||
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
||||
setParameter: AugmentedSubmittable<(keyValue: KitchensinkRuntimeRuntimeParameters | { Storage: any } | { Referenda: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeParameters]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -4662,6 +4860,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
||||
@@ -4675,6 +4876,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
@@ -4737,6 +4941,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* an account contains holds or freezes in place.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -4899,7 +5106,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
};
|
||||
preimage: {
|
||||
/**
|
||||
* Ensure that the a bulk of pre-images is upgraded.
|
||||
* Ensure that the bulk of pre-images is upgraded.
|
||||
*
|
||||
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
||||
**/
|
||||
@@ -5009,6 +5216,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* account whose `pure` call has corresponding parameters.
|
||||
**/
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: KitchensinkRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, KitchensinkRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
/**
|
||||
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
||||
* This can be used by accounts to possibly lower their locked amount.
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_.
|
||||
*
|
||||
* The transaction fee is waived if the deposit amount has changed.
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||
* `add_proxy`.
|
||||
@@ -5254,7 +5472,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `Submitted`.
|
||||
**/
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -5356,7 +5574,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Allow ROOT to bypass the recovery process and set an a rescuer account
|
||||
* Allow ROOT to bypass the recovery process and set a rescuer account
|
||||
* for a lost account directly.
|
||||
*
|
||||
* The dispatch origin for this call must be _ROOT_.
|
||||
@@ -5476,7 +5694,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `Submitted`.
|
||||
**/
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||
submit: AugmentedSubmittable<(proposalOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | { Legacy: any } | { Inline: any } | { Lookup: any } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | { At: any } | { After: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -5525,7 +5743,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* # Parameters
|
||||
*
|
||||
* * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
|
||||
* * `payload`: The encoded [`crate::evm::TransactionSigned`].
|
||||
* * `gas_limit`: The gas limit enforced during contract execution.
|
||||
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
||||
* storage usage.
|
||||
@@ -5537,7 +5755,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
||||
* signer and validating the transaction.
|
||||
**/
|
||||
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, SpWeightsWeightV2Weight, Compact<u128>]>;
|
||||
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
||||
/**
|
||||
* Instantiates a contract from a previously deployed wasm binary.
|
||||
*
|
||||
@@ -6292,6 +6510,40 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* This function allows governance to manually slash a validator and is a
|
||||
* **fallback mechanism**.
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
*
|
||||
* ## Parameters
|
||||
* - `validator_stash` - The stash account of the validator to slash.
|
||||
* - `era` - The era in which the validator was in the active set.
|
||||
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
||||
*
|
||||
* ## Behavior
|
||||
*
|
||||
* The slash will be applied using the standard slashing mechanics, respecting the
|
||||
* configured `SlashDeferDuration`.
|
||||
*
|
||||
* This means:
|
||||
* - If the validator was already slashed by a higher percentage for the same era, this
|
||||
* slash will have no additional effect.
|
||||
* - If the validator was previously slashed by a lower percentage, only the difference
|
||||
* will be applied.
|
||||
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
||||
**/
|
||||
manualSlash: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, slashFraction: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Perbill]>;
|
||||
/**
|
||||
* Removes the legacy Staking locks if they exist.
|
||||
*
|
||||
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
||||
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
||||
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
||||
*
|
||||
* The fee is waived if the migration is successful.
|
||||
**/
|
||||
migrateCurrency: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
||||
/**
|
||||
* Declare the desire to nominate `targets` for the origin controller.
|
||||
*
|
||||
@@ -7741,7 +7993,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* - O(1).
|
||||
**/
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Void: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, Call]>;
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Dispatches a function call with a provided origin.
|
||||
*
|
||||
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
||||
*
|
||||
* The dispatch origin for this call must be _Root_.
|
||||
**/
|
||||
dispatchAsFallible: AugmentedSubmittable<(asOrigin: KitchensinkRuntimeOriginCaller | { system: any } | { Council: any } | { TechnicalCommittee: any } | { AllianceMotion: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Send a batch of dispatch calls.
|
||||
* Unlike `batch`, it allows errors and won't interrupt.
|
||||
@@ -7758,6 +8018,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - O(C) where C is the number of calls to be batched.
|
||||
**/
|
||||
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||
/**
|
||||
* Dispatch a fallback call in the event the main call fails to execute.
|
||||
* May be called from any origin except `None`.
|
||||
*
|
||||
* This function first attempts to dispatch the `main` call.
|
||||
* If the `main` call fails, the `fallback` is attemted.
|
||||
* if the fallback is successfully dispatched, the weights of both calls
|
||||
* are accumulated and an event containing the main call error is deposited.
|
||||
*
|
||||
* In the event of a fallback failure the whole call fails
|
||||
* with the weights returned.
|
||||
*
|
||||
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
||||
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
||||
*
|
||||
* ## Dispatch Logic
|
||||
* - If the origin is `root`, both the main and fallback calls are executed without
|
||||
* applying any origin filters.
|
||||
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
||||
* `fallback` calls.
|
||||
*
|
||||
* ## Use Case
|
||||
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
||||
* or both.
|
||||
**/
|
||||
ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
|
||||
/**
|
||||
* Dispatch a function call with a specified weight.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user