mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-20 18:56:29 +00:00
typegen: keep array and null inputs for types that contain an account
getSimilarTypes widened lookup types by name before its class checks, with
type.includes('AccountId32') and type.includes('MultiAddress'). Those also
match every type that only contains one: Vec<AccountId32>,
Option<AccountId32>, ITuple<[AccountId32, u32]>, Vec<MultiAddress>. They
were widened like a bare account and returned before reaching the Vec,
Option or Tuple branch, so the generated augment typed
multisig.asMulti(otherSignatories) as `Vec<AccountId32> | string |
Uint8Array` (no string[]), an Option<AccountId32> argument without null,
and a tuple key without its tuple form.
The names are now matched whole. The augment is regenerated
(yarn build:metadata); for these types it now matches what upstream
generates, e.g. `Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]`.
This commit is contained in:
1 parent
2a358917c7
commit
a0b19f4916
12 files changed
+157
-138
No files matched your search
@@ -1760,7 +1760,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
/**
|
||||
* All unapplied slashes that are queued for later.
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ITuple<[AccountId32, Perbill, u32]> | string | Uint8Array) => Observable<Option<PezpalletStakingAsyncUnappliedSlash>>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry<ApiType, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ITuple<[AccountId32, Perbill, u32]> | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PezpalletStakingAsyncUnappliedSlash>>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry<ApiType, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
/**
|
||||
* The ideal number of active validators.
|
||||
**/
|
||||
|
||||
@@ -105,7 +105,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
||||
* can not set the manager account id via `set_manager` call.
|
||||
**/
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Start the data migration.
|
||||
*
|
||||
@@ -136,7 +136,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Can be called by any signed origin. The condition that all contributions are withdrawn
|
||||
* is in place since the reserve acts as a storage deposit.
|
||||
**/
|
||||
unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Unreserve the deposit that was taken for creating a crowdloan.
|
||||
*
|
||||
@@ -147,7 +147,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Solo bidder accounts that won lease auctions can use this to unreserve their amount.
|
||||
**/
|
||||
unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Withdraw the contribution of a finished crowdloan.
|
||||
*
|
||||
@@ -157,7 +157,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Can be called by any signed origin.
|
||||
**/
|
||||
withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -895,7 +895,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibility of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1318,7 +1318,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* </weight>
|
||||
**/
|
||||
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PezkuwiRuntimeCommonClaimsStatementKind> | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PezkuwiRuntimeCommonClaimsStatementKind>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1387,7 +1387,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Must be called by the `UpdateOrigin`.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* The caller `origin` replaces a candidate `target` in the collator candidate list by
|
||||
* reserving `deposit`. The amount `deposit` reserved by the caller must be greater than
|
||||
@@ -2259,7 +2259,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Dispatch origin must the the same as [`crate::Config::AdminOrigin`].
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(inv: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(inv: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Submit a single page of a solution.
|
||||
*
|
||||
@@ -2377,7 +2377,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||
@@ -2419,7 +2419,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||
*
|
||||
@@ -2434,7 +2434,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* O(Z + C) where Z is the length of the call and C its execution weight.
|
||||
**/
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
/**
|
||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||
* for this operation will be unreserved on success.
|
||||
@@ -2458,7 +2458,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - I/O: 1 read `O(S)`, one remove.
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
@@ -2474,7 +2474,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2839,7 +2839,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
/**
|
||||
* Disallows specified settings for the whole collection.
|
||||
*
|
||||
@@ -3069,7 +3069,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
@@ -3088,7 +3088,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Move an item from the sender account to another.
|
||||
*
|
||||
@@ -3338,7 +3338,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
@@ -3365,7 +3365,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
@@ -4639,7 +4639,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
||||
* needs to pass before the account can be recovered.
|
||||
**/
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
/**
|
||||
* Initiate the process for recovering a recoverable account.
|
||||
*
|
||||
@@ -4679,7 +4679,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `DepositPoked` if any deposit is updated.
|
||||
* Multiple events may be emitted in case both types of deposits are updated.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(maybeAccount: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<MultiAddress>]>;
|
||||
pokeDeposit: AugmentedSubmittable<(maybeAccount: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [Option<MultiAddress>]>;
|
||||
/**
|
||||
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
||||
*
|
||||
@@ -5394,7 +5394,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Implement an **off-chain worker (OCW) task** to automatically apply slashes when there
|
||||
* is unused block space, improving efficiency.
|
||||
**/
|
||||
applySlash: AugmentedSubmittable<(slashEra: u32 | AnyNumber | Uint8Array, slashKey: ITuple<[AccountId32, Perbill, u32]> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
applySlash: AugmentedSubmittable<(slashEra: u32 | AnyNumber | Uint8Array, slashKey: ITuple<[AccountId32, Perbill, u32]> | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
/**
|
||||
* Take the origin account as a stash and lock up `value` of its balance. `controller` will
|
||||
* be the account that controls it.
|
||||
@@ -5436,7 +5436,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `validator_slashes`: A list of validator stash accounts and their slash fractions to
|
||||
* be cancelled.
|
||||
**/
|
||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec<ITuple<[AccountId32, Perbill]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<ITuple<[AccountId32, Perbill]>>]>;
|
||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec<ITuple<[AccountId32, Perbill]>> | ([AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<ITuple<[AccountId32, Perbill]>>]>;
|
||||
/**
|
||||
* Declare no desire to either validate or nominate.
|
||||
*
|
||||
@@ -5488,7 +5488,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
**/
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Force a validator to have at least the minimum commission. This will not affect a
|
||||
* validator who already has a commission greater than or equal to the minimum. Any account
|
||||
@@ -5563,7 +5563,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Note: Making this call only makes sense if you first set the validator preferences to
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Migrates permissionlessly a stash from locks to holds.
|
||||
*
|
||||
@@ -5581,7 +5581,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Pay out next page of the stakers behind a validator for the given era.
|
||||
*
|
||||
@@ -5672,7 +5672,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ledger associated with the stash. If the input parameters are not set, the ledger will
|
||||
* be reset values from on-chain state.
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | string | Uint8Array, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingAsyncLedgerUnlockChunk> | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>>]>;
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingAsyncLedgerUnlockChunk> | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>>]>;
|
||||
/**
|
||||
* Scale up the ideal number of validators by a factor up to maximum of
|
||||
* `T::MaxValidatorSet`.
|
||||
@@ -5696,7 +5696,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be Root.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Sets the minimum amount of commission that each validators must maintain.
|
||||
*
|
||||
@@ -6175,7 +6175,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Weight: `O(1)`
|
||||
* Modes: `check_owner.is_some()`.
|
||||
**/
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Allows to buy an item if it's up for sale.
|
||||
*
|
||||
@@ -6206,7 +6206,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Clear an attribute for a collection or item.
|
||||
*
|
||||
@@ -6489,7 +6489,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
|
||||
@@ -1569,7 +1569,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
/**
|
||||
* All unapplied slashes that are queued for later.
|
||||
**/
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ITuple<[AccountId32, Perbill, u32]> | string | Uint8Array) => Observable<Option<PezpalletStakingAsyncUnappliedSlash>>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry<ApiType, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ITuple<[AccountId32, Perbill, u32]> | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PezpalletStakingAsyncUnappliedSlash>>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry<ApiType, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
/**
|
||||
* The ideal number of active validators.
|
||||
**/
|
||||
|
||||
@@ -103,7 +103,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
||||
* can not set the manager account id via `set_manager` call.
|
||||
**/
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Start the data migration.
|
||||
*
|
||||
@@ -134,7 +134,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Can be called by any signed origin. The condition that all contributions are withdrawn
|
||||
* is in place since the reserve acts as a storage deposit.
|
||||
**/
|
||||
unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Unreserve the deposit that was taken for creating a crowdloan.
|
||||
*
|
||||
@@ -145,7 +145,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Solo bidder accounts that won lease auctions can use this to unreserve their amount.
|
||||
**/
|
||||
unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Withdraw the contribution of a finished crowdloan.
|
||||
*
|
||||
@@ -155,7 +155,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Can be called by any signed origin.
|
||||
**/
|
||||
withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option<AccountId32> | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -893,7 +893,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibility of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1316,7 +1316,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* </weight>
|
||||
**/
|
||||
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PezkuwiRuntimeCommonClaimsStatementKind> | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PezkuwiRuntimeCommonClaimsStatementKind>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1385,7 +1385,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Must be called by the `UpdateOrigin`.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(updated: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* The caller `origin` replaces a candidate `target` in the collator candidate list by
|
||||
* reserving `deposit`. The amount `deposit` reserved by the caller must be greater than
|
||||
@@ -2257,7 +2257,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Dispatch origin must the the same as [`crate::Config::AdminOrigin`].
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(inv: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(inv: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Submit a single page of a solution.
|
||||
*
|
||||
@@ -2337,7 +2337,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||
@@ -2379,7 +2379,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||
*
|
||||
@@ -2394,7 +2394,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* O(Z + C) where Z is the length of the call and C its execution weight.
|
||||
**/
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
/**
|
||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||
* for this operation will be unreserved on success.
|
||||
@@ -2418,7 +2418,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - I/O: 1 read `O(S)`, one remove.
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
@@ -2434,7 +2434,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2754,7 +2754,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
/**
|
||||
* Disallows specified settings for the whole collection.
|
||||
*
|
||||
@@ -2984,7 +2984,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
@@ -3003,7 +3003,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Move an item from the sender account to another.
|
||||
*
|
||||
@@ -3253,7 +3253,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
@@ -3280,7 +3280,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
@@ -4746,7 +4746,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Implement an **off-chain worker (OCW) task** to automatically apply slashes when there
|
||||
* is unused block space, improving efficiency.
|
||||
**/
|
||||
applySlash: AugmentedSubmittable<(slashEra: u32 | AnyNumber | Uint8Array, slashKey: ITuple<[AccountId32, Perbill, u32]> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
applySlash: AugmentedSubmittable<(slashEra: u32 | AnyNumber | Uint8Array, slashKey: ITuple<[AccountId32, Perbill, u32]> | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, ITuple<[AccountId32, Perbill, u32]>]>;
|
||||
/**
|
||||
* Take the origin account as a stash and lock up `value` of its balance. `controller` will
|
||||
* be the account that controls it.
|
||||
@@ -4788,7 +4788,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `validator_slashes`: A list of validator stash accounts and their slash fractions to
|
||||
* be cancelled.
|
||||
**/
|
||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec<ITuple<[AccountId32, Perbill]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<ITuple<[AccountId32, Perbill]>>]>;
|
||||
cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec<ITuple<[AccountId32, Perbill]>> | ([AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<ITuple<[AccountId32, Perbill]>>]>;
|
||||
/**
|
||||
* Declare no desire to either validate or nominate.
|
||||
*
|
||||
@@ -4840,7 +4840,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
**/
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Force a validator to have at least the minimum commission. This will not affect a
|
||||
* validator who already has a commission greater than or equal to the minimum. Any account
|
||||
@@ -4915,7 +4915,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Note: Making this call only makes sense if you first set the validator preferences to
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Migrates permissionlessly a stash from locks to holds.
|
||||
*
|
||||
@@ -4933,7 +4933,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Pay out next page of the stakers behind a validator for the given era.
|
||||
*
|
||||
@@ -5024,7 +5024,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ledger associated with the stash. If the input parameters are not set, the ledger will
|
||||
* be reset values from on-chain state.
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | string | Uint8Array, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingAsyncLedgerUnlockChunk> | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>>]>;
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingAsyncLedgerUnlockChunk> | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingAsyncLedgerUnlockChunk>>]>;
|
||||
/**
|
||||
* Scale up the ideal number of validators by a factor up to maximum of
|
||||
* `T::MaxValidatorSet`.
|
||||
@@ -5048,7 +5048,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be Root.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Sets the minimum amount of commission that each validators must maintain.
|
||||
*
|
||||
@@ -5527,7 +5527,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Weight: `O(1)`
|
||||
* Modes: `check_owner.is_some()`.
|
||||
**/
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Allows to buy an item if it's up for sale.
|
||||
*
|
||||
@@ -5558,7 +5558,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Clear an attribute for a collection or item.
|
||||
*
|
||||
@@ -5841,7 +5841,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
|
||||
@@ -2272,7 +2272,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
* Records information about the maximum slash of a stash within a slashing span,
|
||||
* as well as how much reward has been paid out.
|
||||
**/
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | string | Uint8Array) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
/**
|
||||
* All unapplied slashes that are queued for later.
|
||||
**/
|
||||
|
||||
@@ -61,7 +61,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Must be called by the Root origin.
|
||||
**/
|
||||
initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | string | Uint8Array, allies: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
|
||||
initMembers: AugmentedSubmittable<(fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Submit oneself for candidacy. A fixed deposit is reserved.
|
||||
**/
|
||||
@@ -229,7 +229,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `N` new-members-count (code- and governance-bounded)
|
||||
* - `P` proposals-count (code-bounded)
|
||||
**/
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | string | Uint8Array, prime: Option<AccountId32> | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Add an aye or nay vote for the sender to the given proposal.
|
||||
*
|
||||
@@ -379,7 +379,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* and receive the unutilized reward tokens back after the pool completion. If `None`,
|
||||
* the caller is set as an admin.
|
||||
**/
|
||||
createPool: AugmentedSubmittable<(stakedAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardRatePerBlock: u128 | AnyNumber | Uint8Array, expiry: PezframeSupportScheduleDispatchTime, admin: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PezframeSupportTokensFungibleUnionOfNativeOrWithId, PezframeSupportTokensFungibleUnionOfNativeOrWithId, u128, PezframeSupportScheduleDispatchTime, Option<AccountId32>]>;
|
||||
createPool: AugmentedSubmittable<(stakedAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardRatePerBlock: u128 | AnyNumber | Uint8Array, expiry: PezframeSupportScheduleDispatchTime, admin: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [PezframeSupportTokensFungibleUnionOfNativeOrWithId, PezframeSupportTokensFungibleUnionOfNativeOrWithId, u128, PezframeSupportScheduleDispatchTime, Option<AccountId32>]>;
|
||||
/**
|
||||
* Convenience method to deposit reward tokens into a pool.
|
||||
*
|
||||
@@ -396,7 +396,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
||||
harvestRewards: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, staker: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [u32, Option<AccountId32>]>;
|
||||
/**
|
||||
* Modify a pool admin.
|
||||
*
|
||||
@@ -436,7 +436,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u128, Option<AccountId32>]>;
|
||||
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
|
||||
**/
|
||||
@@ -1110,7 +1110,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibility of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2205,7 +2205,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `N` new-members-count (code- and governance-bounded)
|
||||
* - `P` proposals-count (code-bounded)
|
||||
**/
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | string | Uint8Array, prime: Option<AccountId32> | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Add an aye or nay vote for the sender to the given proposal.
|
||||
*
|
||||
@@ -2517,7 +2517,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* feasibility check itself can in principle cause the election process to fail (due to
|
||||
* memory/weight constrains).
|
||||
**/
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
/**
|
||||
* Set a new value for `MinimumUntrustedScore`.
|
||||
*
|
||||
@@ -2662,7 +2662,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
||||
* lock and keep some for further operations.
|
||||
**/
|
||||
vote: AugmentedSubmittable<(votes: Vec<AccountId32> | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
|
||||
vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3042,7 +3042,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - `subs`: The identity's (new) sub-accounts.
|
||||
**/
|
||||
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
||||
setSubs: AugmentedSubmittable<(subs: Vec<ITuple<[AccountId32, Data]>> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, Data]>>]>;
|
||||
/**
|
||||
* Set the username for `who`. Must be called by a username authority.
|
||||
*
|
||||
@@ -3346,7 +3346,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||
@@ -3388,7 +3388,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||
*
|
||||
@@ -3403,7 +3403,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* O(Z + C) where Z is the length of the call and C its execution weight.
|
||||
**/
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
/**
|
||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||
* for this operation will be unreserved on success.
|
||||
@@ -3427,7 +3427,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - I/O: 1 read `O(S)`, one remove.
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
@@ -3443,7 +3443,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -3808,7 +3808,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PezpalletNftsAttributeNamespace, Bytes, Bytes]>;
|
||||
/**
|
||||
* Disallows specified settings for the whole collection.
|
||||
*
|
||||
@@ -4038,7 +4038,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
@@ -4057,7 +4057,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, Option<MultiAddress>, Option<MultiAddress>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Move an item from the sender account to another.
|
||||
*
|
||||
@@ -4371,7 +4371,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
@@ -4398,7 +4398,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
@@ -5544,7 +5544,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
||||
* needs to pass before the account can be recovered.
|
||||
**/
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
/**
|
||||
* Initiate the process for recovering a recoverable account.
|
||||
*
|
||||
@@ -6423,7 +6423,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
**/
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Force a validator to have at least the minimum commission. This will not affect a
|
||||
* validator who already has a commission greater than or equal to the minimum. Any account
|
||||
@@ -6509,7 +6509,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Note: Making this call only makes sense if you first set the validator preferences to
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* This function allows governance to manually slash a validator and is a
|
||||
* **fallback mechanism**.
|
||||
@@ -6556,7 +6556,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||
* - Both the reads and writes follow a similar pattern.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Pay out next page of the stakers behind a validator for the given era.
|
||||
*
|
||||
@@ -6637,7 +6637,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ledger associated with the stash. If the input parameters are not set, the ledger will
|
||||
* be reset values from on-chain state.
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | string | Uint8Array, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
/**
|
||||
* Scale up the ideal number of validators by a factor up to maximum of
|
||||
* `ElectionProviderBase::MaxWinners`.
|
||||
@@ -6670,7 +6670,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be Root.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Sets the minimum amount of commission that each validators must maintain.
|
||||
*
|
||||
@@ -7090,7 +7090,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `N` new-members-count (code- and governance-bounded)
|
||||
* - `P` proposals-count (code-bounded)
|
||||
**/
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | string | Uint8Array, prime: Option<AccountId32> | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
|
||||
/**
|
||||
* Add an aye or nay vote for the sender to the given proposal.
|
||||
*
|
||||
@@ -7141,7 +7141,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* May only be called from `T::ResetOrigin`.
|
||||
**/
|
||||
resetMembers: AugmentedSubmittable<(members: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
resetMembers: AugmentedSubmittable<(members: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Set the prime member. Must be a current member.
|
||||
*
|
||||
@@ -7537,7 +7537,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Weight: `O(1)`
|
||||
* Modes: `check_owner.is_some()`.
|
||||
**/
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Allows to buy an item if it's up for sale.
|
||||
*
|
||||
@@ -7568,7 +7568,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Weight: `O(1)`
|
||||
**/
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Clear an attribute for a collection or item.
|
||||
*
|
||||
@@ -7851,7 +7851,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `ItemPriceSet` on success if the price is not `None`.
|
||||
* Emits `ItemPriceRemoved` on success if the price is `None`.
|
||||
**/
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
|
||||
/**
|
||||
* Change the Issuer, Admin and Freezer of a collection.
|
||||
*
|
||||
|
||||
@@ -47,7 +47,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
* Amounts currently reserved in the accounts of the bidders currently winning
|
||||
* (sub-)ranges.
|
||||
**/
|
||||
reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | string | Uint8Array) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
/**
|
||||
* The winning bids for each of the 10 ranges at each sample in the final Ending Period of
|
||||
* the current auction. The map's key is the 0-based index into the Sample Size. The
|
||||
@@ -2089,7 +2089,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
* Records information about the maximum slash of a stash within a slashing span,
|
||||
* as well as how much reward has been paid out.
|
||||
**/
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | string | Uint8Array) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
/**
|
||||
* All unapplied slashes that are queued for later.
|
||||
**/
|
||||
|
||||
@@ -198,7 +198,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibility of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -687,7 +687,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* </weight>
|
||||
**/
|
||||
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PezkuwiRuntimeCommonClaimsStatementKind> | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PezkuwiRuntimeCommonClaimsStatementKind>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1145,7 +1145,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* feasibility check itself can in principle cause the election process to fail (due to
|
||||
* memory/weight constrains).
|
||||
**/
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
/**
|
||||
* Set a new value for `MinimumUntrustedScore`.
|
||||
*
|
||||
@@ -1764,7 +1764,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||
@@ -1806,7 +1806,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||
*
|
||||
@@ -1821,7 +1821,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* O(Z + C) where Z is the length of the call and C its execution weight.
|
||||
**/
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
/**
|
||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||
* for this operation will be unreserved on success.
|
||||
@@ -1845,7 +1845,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - I/O: 1 read `O(S)`, one remove.
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
@@ -1861,7 +1861,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2055,7 +2055,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
@@ -2082,7 +2082,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
@@ -2634,7 +2634,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The accounts must have no consumers references.
|
||||
**/
|
||||
preserveAccounts: AugmentedSubmittable<(accounts: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
preserveAccounts: AugmentedSubmittable<(accounts: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Receive a query response from the Asset Hub for a previously sent xcm message.
|
||||
**/
|
||||
@@ -2684,14 +2684,14 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The canceller can only stop scheduled migration.
|
||||
**/
|
||||
setCanceller: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setCanceller: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Set the manager account id.
|
||||
*
|
||||
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
||||
* can not set the manager account id via `set_manager` call.
|
||||
**/
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Set the unprocessed message buffer size.
|
||||
*
|
||||
@@ -2788,7 +2788,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
||||
* needs to pass before the account can be recovered.
|
||||
**/
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
||||
/**
|
||||
* Initiate the process for recovering a recoverable account.
|
||||
*
|
||||
@@ -2828,7 +2828,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Emits `DepositPoked` if any deposit is updated.
|
||||
* Multiple events may be emitted in case both types of deposits are updated.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(maybeAccount: Option<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<MultiAddress>]>;
|
||||
pokeDeposit: AugmentedSubmittable<(maybeAccount: Option<MultiAddress> | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic<ApiType>, [Option<MultiAddress>]>;
|
||||
/**
|
||||
* Remove the recovery process for your account. Recovered accounts are still accessible.
|
||||
*
|
||||
@@ -3530,7 +3530,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
**/
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Force a validator to have at least the minimum commission. This will not affect a
|
||||
* validator who already has a commission greater than or equal to the minimum. Any account
|
||||
@@ -3616,7 +3616,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Note: Making this call only makes sense if you first set the validator preferences to
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* This function allows governance to manually slash a validator and is a
|
||||
* **fallback mechanism**.
|
||||
@@ -3663,7 +3663,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||
* - Both the reads and writes follow a similar pattern.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Pay out next page of the stakers behind a validator for the given era.
|
||||
*
|
||||
@@ -3744,7 +3744,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ledger associated with the stash. If the input parameters are not set, the ledger will
|
||||
* be reset values from on-chain state.
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | string | Uint8Array, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
/**
|
||||
* Scale up the ideal number of validators by a factor up to maximum of
|
||||
* `ElectionProviderBase::MaxWinners`.
|
||||
@@ -3777,7 +3777,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be Root.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Sets the minimum amount of commission that each validators must maintain.
|
||||
*
|
||||
|
||||
@@ -47,7 +47,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
* Amounts currently reserved in the accounts of the bidders currently winning
|
||||
* (sub-)ranges.
|
||||
**/
|
||||
reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | string | Uint8Array) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
reservedAmounts: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<u128>>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
/**
|
||||
* The winning bids for each of the 10 ranges at each sample in the final Ending Period of
|
||||
* the current auction. The map's key is the 0-based index into the Sample Size. The
|
||||
@@ -1916,7 +1916,7 @@ declare module '@pezkuwi/api-base/types/storage' {
|
||||
* Records information about the maximum slash of a stash within a slashing span,
|
||||
* as well as how much reward has been paid out.
|
||||
**/
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | string | Uint8Array) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId32, u32]> | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<PezpalletStakingSlashingSpanRecord>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[AccountId32, u32]>]>;
|
||||
/**
|
||||
* All unapplied slashes that are queued for later.
|
||||
**/
|
||||
|
||||
@@ -198,7 +198,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
||||
* possibility of churn).
|
||||
**/
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -687,7 +687,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* </weight>
|
||||
**/
|
||||
mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option<ITuple<[u128, u128, u32]>> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option<PezkuwiRuntimeCommonClaimsStatementKind> | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic<ApiType>, [EthereumAddress, u128, Option<ITuple<[u128, u128, u32]>>, Option<PezkuwiRuntimeCommonClaimsStatementKind>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [EthereumAddress, EthereumAddress, Option<AccountId32>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1145,7 +1145,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* feasibility check itself can in principle cause the election process to fail (due to
|
||||
* memory/weight constrains).
|
||||
**/
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic<ApiType>, [Vec<ITuple<[AccountId32, PezspNposElectionsSupport]>>]>;
|
||||
/**
|
||||
* Set a new value for `MinimumUntrustedScore`.
|
||||
*
|
||||
@@ -1589,7 +1589,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, U8aFixed, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Register approval for a dispatch to be made from a deterministic composite account if
|
||||
* approved by a total of `threshold - 1` of `other_signatories`.
|
||||
@@ -1631,7 +1631,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
* taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
**/
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PezpalletMultisigTimepoint> | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PezpalletMultisigTimepoint>, Call, PezspWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Immediately dispatch a multi-signature call using a single approval from the caller.
|
||||
*
|
||||
@@ -1646,7 +1646,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ## Complexity
|
||||
* O(Z + C) where Z is the length of the call and C its execution weight.
|
||||
**/
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
|
||||
/**
|
||||
* Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
|
||||
* for this operation will be unreserved on success.
|
||||
@@ -1670,7 +1670,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* - I/O: 1 read `O(S)`, one remove.
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PezpalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
@@ -1686,7 +1686,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -1880,7 +1880,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* 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> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
||||
/**
|
||||
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
||||
*
|
||||
@@ -1907,7 +1907,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* - If a `None` is supplied to `new_commission`, existing commission will be removed.
|
||||
**/
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option<ITuple<[Perbill, AccountId32]>> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[Perbill, AccountId32]>>]>;
|
||||
/**
|
||||
* Set the commission change rate for a pool.
|
||||
*
|
||||
@@ -2446,7 +2446,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The accounts must have no consumers references.
|
||||
**/
|
||||
preserveAccounts: AugmentedSubmittable<(accounts: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
preserveAccounts: AugmentedSubmittable<(accounts: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Receive a query response from the Asset Hub for a previously sent xcm message.
|
||||
**/
|
||||
@@ -2496,14 +2496,14 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The canceller can only stop scheduled migration.
|
||||
**/
|
||||
setCanceller: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setCanceller: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Set the manager account id.
|
||||
*
|
||||
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
||||
* can not set the manager account id via `set_manager` call.
|
||||
**/
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
setManager: AugmentedSubmittable<(updated: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>]>;
|
||||
/**
|
||||
* Set the migration settings. Can only be done by admin or manager.
|
||||
**/
|
||||
@@ -2977,7 +2977,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be `T::AdminOrigin`.
|
||||
**/
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Force a validator to have at least the minimum commission. This will not affect a
|
||||
* validator who already has a commission greater than or equal to the minimum. Any account
|
||||
@@ -3063,7 +3063,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* Note: Making this call only makes sense if you first set the validator preferences to
|
||||
* block any further nominations.
|
||||
**/
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
kick: AugmentedSubmittable<(who: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* This function allows governance to manually slash a validator and is a
|
||||
* **fallback mechanism**.
|
||||
@@ -3110,7 +3110,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* which is capped at CompactAssignments::LIMIT (T::MaxNominations).
|
||||
* - Both the reads and writes follow a similar pattern.
|
||||
**/
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
nominate: AugmentedSubmittable<(targets: Vec<MultiAddress> | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
|
||||
/**
|
||||
* Pay out next page of the stakers behind a validator for the given era.
|
||||
*
|
||||
@@ -3191,7 +3191,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
* ledger associated with the stash. If the input parameters are not set, the ledger will
|
||||
* be reset values from on-chain state.
|
||||
**/
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | string | Uint8Array, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PezpalletStakingUnlockChunk>> | null | Uint8Array | Vec<PezpalletStakingUnlockChunk> | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PezpalletStakingUnlockChunk>>]>;
|
||||
/**
|
||||
* Scale up the ideal number of validators by a factor up to maximum of
|
||||
* `ElectionProviderBase::MaxWinners`.
|
||||
@@ -3224,7 +3224,7 @@ declare module '@pezkuwi/api-base/types/submittable' {
|
||||
*
|
||||
* The dispatch origin must be Root.
|
||||
**/
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
||||
/**
|
||||
* Sets the minimum amount of commission that each validators must maintain.
|
||||
*
|
||||
|
||||
@@ -55,4 +55,20 @@ describe('getSimilarTypes', (): void => {
|
||||
} & Struct>`
|
||||
]);
|
||||
});
|
||||
|
||||
it('keeps the array input for vectors of accounts and addresses', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, 'Vec<AccountId32>', mockImports)).toEqual([
|
||||
'Vec<AccountId32>',
|
||||
'(AccountId32 | string | Uint8Array)[]'
|
||||
]);
|
||||
expect(getSimilarTypes(registry, {}, 'Vec<MultiAddress>', mockImports)).toEqual([
|
||||
'Vec<MultiAddress>',
|
||||
'(MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]'
|
||||
]);
|
||||
});
|
||||
|
||||
it('still widens the account and address lookup types themselves', (): void => {
|
||||
expect(getSimilarTypes(registry, {}, 'PezspCoreCryptoAccountId32', mockImports)).toEqual(['PezspCoreCryptoAccountId32', 'string', 'Uint8Array']);
|
||||
expect(getSimilarTypes(registry, {}, 'PezspRuntimeMultiAddress', mockImports)).toEqual(['PezspRuntimeMultiAddress', 'AccountId', 'AccountIndex', 'Address', 'LookupSource', 'string', 'Uint8Array']);
|
||||
});
|
||||
});
|
||||
@@ -44,13 +44,16 @@ export function getSimilarTypes (registry: Registry, definitions: Record<string,
|
||||
return ['null'];
|
||||
}
|
||||
|
||||
// Handle lookup types by name pattern before class-based checks
|
||||
// Lookup types like PezspRuntimeMultiAddress may not be properly registered as children of GenericMultiAddress
|
||||
if (type.includes('MultiAddress') || type.endsWith('RuntimeMultiAddress')) {
|
||||
// Handle lookup types by name before class-based checks: lookup types like
|
||||
// PezspRuntimeMultiAddress may not be registered as children of
|
||||
// GenericMultiAddress. Match the whole name; a type that only contains one,
|
||||
// such as Vec<AccountId32>, has to reach the Vec branch below, or it loses
|
||||
// its array input.
|
||||
if (/^\w*MultiAddress$/.test(type)) {
|
||||
possibleTypes.push('AccountId', 'AccountIndex', 'Address', 'LookupSource', 'string', 'Uint8Array');
|
||||
|
||||
return possibleTypes;
|
||||
} else if (type.includes('AccountId32') || type.endsWith('CryptoAccountId32')) {
|
||||
} else if (/^\w*AccountId32$/.test(type)) {
|
||||
possibleTypes.push('string', 'Uint8Array');
|
||||
|
||||
return possibleTypes;
|
||||
|
||||
Reference in new issue
Block a user