diff --git a/packages/api-augment/src/assetHubDicle/query.ts b/packages/api-augment/src/assetHubDicle/query.ts index 0ba56e3..48485bb 100644 --- a/packages/api-augment/src/assetHubDicle/query.ts +++ b/packages/api-augment/src/assetHubDicle/query.ts @@ -1760,7 +1760,7 @@ declare module '@pezkuwi/api-base/types/storage' { /** * All unapplied slashes that are queued for later. **/ - unappliedSlashes: AugmentedQuery | string | Uint8Array) => Observable>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry]>; + unappliedSlashes: AugmentedQuery | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry]>; /** * The ideal number of active validators. **/ diff --git a/packages/api-augment/src/assetHubDicle/tx.ts b/packages/api-augment/src/assetHubDicle/tx.ts index 100dcf0..fcca066 100644 --- a/packages/api-augment/src/assetHubDicle/tx.ts +++ b/packages/api-augment/src/assetHubDicle/tx.ts @@ -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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setManager: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Generic tx **/ @@ -1318,7 +1318,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * **/ mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic, [EthereumAddress, u128, Option>, Option]>; - moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | string | Uint8Array) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; + moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; /** * Generic tx **/ @@ -1387,7 +1387,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Must be called by the `UpdateOrigin`. **/ - setInvulnerables: AugmentedSubmittable<(updated: Vec | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(updated: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(inv: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, PezspWeightsWeightV2Weight]>; + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, Call, PezspWeightsWeightV2Weight]>; + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PezpalletMultisigTimepoint, U8aFixed]>; + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; + pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; /** * Generic tx **/ @@ -2839,7 +2839,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Weight: `O(1)` **/ - forceSetAttribute: AugmentedSubmittable<(setAs: Option | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, PezpalletNftsAttributeNamespace, Bytes, Bytes]>; + forceSetAttribute: AugmentedSubmittable<(setAs: Option | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Option, Option]>; + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, Option, Option, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec]>; + nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>]>; + setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic, [u32, Option>]>; /** * 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 | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, u16, u32]>; + createRecovery: AugmentedSubmittable<(friends: Vec | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + pokeDeposit: AugmentedSubmittable<(maybeAccount: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [Option]>; /** * 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, [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, [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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec>]>; + cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec> | ([AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic, [u32, Vec>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + kick: AugmentedSubmittable<(who: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + nominate: AugmentedSubmittable<(targets: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; + restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option | null | Uint8Array | AccountId32 | string, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * Change the Issuer, Admin and Freezer of a collection. * diff --git a/packages/api-augment/src/assetHubPezkuwi/query.ts b/packages/api-augment/src/assetHubPezkuwi/query.ts index 185d895..2133d9b 100644 --- a/packages/api-augment/src/assetHubPezkuwi/query.ts +++ b/packages/api-augment/src/assetHubPezkuwi/query.ts @@ -1569,7 +1569,7 @@ declare module '@pezkuwi/api-base/types/storage' { /** * All unapplied slashes that are queued for later. **/ - unappliedSlashes: AugmentedQuery | string | Uint8Array) => Observable>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry]>; + unappliedSlashes: AugmentedQuery | [AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>, [u32, ITuple<[AccountId32, Perbill, u32]>]> & QueryableStorageEntry]>; /** * The ideal number of active validators. **/ diff --git a/packages/api-augment/src/assetHubPezkuwi/tx.ts b/packages/api-augment/src/assetHubPezkuwi/tx.ts index e09949f..eeee43a 100644 --- a/packages/api-augment/src/assetHubPezkuwi/tx.ts +++ b/packages/api-augment/src/assetHubPezkuwi/tx.ts @@ -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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setManager: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + unreserveCrowdloanReserve: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + unreserveLeaseDeposit: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, u32]>; + withdrawCrowdloanContribution: AugmentedSubmittable<(block: u32 | AnyNumber | Uint8Array, depositor: Option | null | Uint8Array | AccountId32 | string, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, Option, 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Generic tx **/ @@ -1316,7 +1316,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * **/ mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic, [EthereumAddress, u128, Option>, Option]>; - moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | string | Uint8Array) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; + moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; /** * Generic tx **/ @@ -1385,7 +1385,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Must be called by the `UpdateOrigin`. **/ - setInvulnerables: AugmentedSubmittable<(updated: Vec | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(updated: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(inv: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, PezspWeightsWeightV2Weight]>; + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, Call, PezspWeightsWeightV2Weight]>; + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PezpalletMultisigTimepoint, U8aFixed]>; + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; + pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; /** * Generic tx **/ @@ -2754,7 +2754,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Weight: `O(1)` **/ - forceSetAttribute: AugmentedSubmittable<(setAs: Option | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, PezpalletNftsAttributeNamespace, Bytes, Bytes]>; + forceSetAttribute: AugmentedSubmittable<(setAs: Option | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Option, Option]>; + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, Option, Option, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec]>; + nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>]>; + setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic, [u32, Option>]>; /** * 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, [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, [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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec>]>; + cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, validatorSlashes: Vec> | ([AccountId32 | string | Uint8Array, Perbill | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic, [u32, Vec>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + kick: AugmentedSubmittable<(who: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + nominate: AugmentedSubmittable<(targets: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; + restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option | null | Uint8Array | AccountId32 | string, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingAsyncLedgerUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * Change the Issuer, Admin and Freezer of a collection. * diff --git a/packages/api-augment/src/bizinikiwi/query.ts b/packages/api-augment/src/bizinikiwi/query.ts index b5eb434..e6d66ae 100644 --- a/packages/api-augment/src/bizinikiwi/query.ts +++ b/packages/api-augment/src/bizinikiwi/query.ts @@ -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 | string | Uint8Array) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; + spanSlash: AugmentedQuery | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; /** * All unapplied slashes that are queued for later. **/ diff --git a/packages/api-augment/src/bizinikiwi/tx.ts b/packages/api-augment/src/bizinikiwi/tx.ts index dd43ad6..9725559 100644 --- a/packages/api-augment/src/bizinikiwi/tx.ts +++ b/packages/api-augment/src/bizinikiwi/tx.ts @@ -61,7 +61,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Must be called by the Root origin. **/ - initMembers: AugmentedSubmittable<(fellows: Vec | string | Uint8Array, allies: Vec | string | Uint8Array) => SubmittableExtrinsic, [Vec, Vec]>; + initMembers: AugmentedSubmittable<(fellows: Vec | (AccountId32 | string | Uint8Array)[], allies: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec, Vec]>; /** * 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 | string | Uint8Array, prime: Option | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, u32]>; + setMembers: AugmentedSubmittable<(newMembers: Vec | (AccountId32 | string | Uint8Array)[], prime: Option | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, 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 | string | Uint8Array) => SubmittableExtrinsic, [PezframeSupportTokensFungibleUnionOfNativeOrWithId, PezframeSupportTokensFungibleUnionOfNativeOrWithId, u128, PezframeSupportScheduleDispatchTime, Option]>; + createPool: AugmentedSubmittable<(stakedAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardAssetId: PezframeSupportTokensFungibleUnionOfNativeOrWithId, rewardRatePerBlock: u128 | AnyNumber | Uint8Array, expiry: PezframeSupportScheduleDispatchTime, admin: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [PezframeSupportTokensFungibleUnionOfNativeOrWithId, PezframeSupportTokensFungibleUnionOfNativeOrWithId, u128, PezframeSupportScheduleDispatchTime, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Option]>; + harvestRewards: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, staker: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [u32, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, u128, Option]>; + unstake: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array, staker: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [u32, u128, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, prime: Option | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, u32]>; + setMembers: AugmentedSubmittable<(newMembers: Vec | (AccountId32 | string | Uint8Array)[], prime: Option | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, 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> | string | Uint8Array) => SubmittableExtrinsic, [Vec>]>; + setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic, [Vec>]>; /** * 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 | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Compact]>; + vote: AugmentedSubmittable<(votes: Vec | (AccountId32 | string | Uint8Array)[], value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Compact]>; /** * Generic tx **/ @@ -3042,7 +3042,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * - `subs`: The identity's (new) sub-accounts. **/ - setSubs: AugmentedSubmittable<(subs: Vec> | string | Uint8Array) => SubmittableExtrinsic, [Vec>]>; + setSubs: AugmentedSubmittable<(subs: Vec> | ([AccountId32 | string | Uint8Array, Data | { None: any } | { Raw: any } | { BlakeTwo256: any } | { Sha256: any } | { Keccak256: any } | { ShaThree256: any } | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; /** * 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, PezspWeightsWeightV2Weight]>; + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, Call, PezspWeightsWeightV2Weight]>; + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PezpalletMultisigTimepoint, U8aFixed]>; + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; + pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; /** * Generic tx **/ @@ -3808,7 +3808,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * * Weight: `O(1)` **/ - forceSetAttribute: AugmentedSubmittable<(setAs: Option | string | Uint8Array, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, PezpalletNftsAttributeNamespace, Bytes, Bytes]>; + forceSetAttribute: AugmentedSubmittable<(setAs: Option | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option | null | Uint8Array | u32 | AnyNumber, namespace: PezpalletNftsAttributeNamespace, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Option, u32, Option, 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, admin: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array, freezer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, Option, Option, Option]>; + setTeam: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, issuer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, admin: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string, freezer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, Option, Option, Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec]>; + nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>]>; + setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic, [u32, Option>]>; /** * 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 | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, u16, u32]>; + createRecovery: AugmentedSubmittable<(friends: Vec | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + kick: AugmentedSubmittable<(who: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + nominate: AugmentedSubmittable<(targets: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; + restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option | null | Uint8Array | AccountId32 | string, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, prime: Option | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, u32]>; + setMembers: AugmentedSubmittable<(newMembers: Vec | (AccountId32 | string | Uint8Array)[], prime: Option | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, Option, 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + resetMembers: AugmentedSubmittable<(members: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option]>; + cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option]>; /** * 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 | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [u32, u32, Option, Option]>; + setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [u32, u32, Option, Option]>; /** * Change the Issuer, Admin and Freezer of a collection. * diff --git a/packages/api-augment/src/dicle/query.ts b/packages/api-augment/src/dicle/query.ts index 2101a69..9d5d5a2 100644 --- a/packages/api-augment/src/dicle/query.ts +++ b/packages/api-augment/src/dicle/query.ts @@ -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 | string | Uint8Array) => Observable>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; + reservedAmounts: AugmentedQuery | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; /** * 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 | string | Uint8Array) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; + spanSlash: AugmentedQuery | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; /** * All unapplied slashes that are queued for later. **/ diff --git a/packages/api-augment/src/dicle/tx.ts b/packages/api-augment/src/dicle/tx.ts index b06c24d..2104472 100644 --- a/packages/api-augment/src/dicle/tx.ts +++ b/packages/api-augment/src/dicle/tx.ts @@ -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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Generic tx **/ @@ -687,7 +687,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * **/ mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic, [EthereumAddress, u128, Option>, Option]>; - moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | string | Uint8Array) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; + moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [Vec>]>; + setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic, [Vec>]>; /** * 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, PezspWeightsWeightV2Weight]>; + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, Call, PezspWeightsWeightV2Weight]>; + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PezpalletMultisigTimepoint, U8aFixed]>; + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; + pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec]>; + nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>]>; + setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic, [u32, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + preserveAccounts: AugmentedSubmittable<(accounts: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setCanceller: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setManager: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array, threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, u16, u32]>; + createRecovery: AugmentedSubmittable<(friends: Vec | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + pokeDeposit: AugmentedSubmittable<(maybeAccount: Option | null | Uint8Array | MultiAddress | AccountId | AccountIndex | Address | LookupSource | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + kick: AugmentedSubmittable<(who: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + nominate: AugmentedSubmittable<(targets: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; + restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option | null | Uint8Array | AccountId32 | string, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Sets the minimum amount of commission that each validators must maintain. * diff --git a/packages/api-augment/src/pezkuwi/query.ts b/packages/api-augment/src/pezkuwi/query.ts index a5dd70c..b807658 100644 --- a/packages/api-augment/src/pezkuwi/query.ts +++ b/packages/api-augment/src/pezkuwi/query.ts @@ -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 | string | Uint8Array) => Observable>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; + reservedAmounts: AugmentedQuery | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable>, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; /** * 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 | string | Uint8Array) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; + spanSlash: AugmentedQuery | [AccountId32 | string | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable, [ITuple<[AccountId32, u32]>]> & QueryableStorageEntry]>; /** * All unapplied slashes that are queued for later. **/ diff --git a/packages/api-augment/src/pezkuwi/tx.ts b/packages/api-augment/src/pezkuwi/tx.ts index 406e073..d1030f3 100644 --- a/packages/api-augment/src/pezkuwi/tx.ts +++ b/packages/api-augment/src/pezkuwi/tx.ts @@ -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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Generic tx **/ @@ -687,7 +687,7 @@ declare module '@pezkuwi/api-base/types/submittable' { * **/ mintClaim: AugmentedSubmittable<(who: EthereumAddress | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, vestingSchedule: Option> | null | Uint8Array | ITuple<[u128, u128, u32]> | [u128 | AnyNumber | Uint8Array, u128 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], statement: Option | null | Uint8Array | PezkuwiRuntimeCommonClaimsStatementKind) => SubmittableExtrinsic, [EthereumAddress, u128, Option>, Option]>; - moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | string | Uint8Array) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; + moveClaim: AugmentedSubmittable<(old: EthereumAddress | string | Uint8Array, updated: EthereumAddress | string | Uint8Array, maybePreclaim: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [EthereumAddress, EthereumAddress, Option]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [Vec>]>; + setEmergencyElectionResult: AugmentedSubmittable<(supports: Vec> | ([AccountId32 | string | Uint8Array, PezspNposElectionsSupport])[]) => SubmittableExtrinsic, [Vec>]>; /** * 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, PezspWeightsWeightV2Weight]>; + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, Call, PezspWeightsWeightV2Weight]>; + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PezpalletMultisigTimepoint, call: Call | IMethod | string | Uint8Array, maxWeight: PezspWeightsWeightV2Weight) => SubmittableExtrinsic, [u16, Vec, Option, 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 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; + asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, 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 | string | Uint8Array, timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PezpalletMultisigTimepoint, U8aFixed]>; + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PezpalletMultisigTimepoint, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, U8aFixed]>; + pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, 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 | string | Uint8Array) => SubmittableExtrinsic, [u32, Vec]>; + nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [u32, Vec]>; /** * 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> | string | Uint8Array) => SubmittableExtrinsic, [u32, Option>]>; + setCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newCommission: Option> | null | Uint8Array | ITuple<[Perbill, AccountId32]> | [Perbill | AnyNumber | Uint8Array, AccountId32 | string | Uint8Array]) => SubmittableExtrinsic, [u32, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + preserveAccounts: AugmentedSubmittable<(accounts: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setCanceller: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Option]>; + setManager: AugmentedSubmittable<(updated: Option | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic, [Option]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + deprecateControllerBatch: AugmentedSubmittable<(controllers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + kick: AugmentedSubmittable<(who: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + nominate: AugmentedSubmittable<(targets: Vec | (MultiAddress | AccountId | AccountIndex | Address | LookupSource | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * 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 | string | Uint8Array, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; + restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option | null | Uint8Array | AccountId32 | string, maybeTotal: Option | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option> | null | Uint8Array | Vec | (PezpalletStakingUnlockChunk)[]) => SubmittableExtrinsic, [AccountId32, Option, Option, Option>]>; /** * 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 | string | Uint8Array) => SubmittableExtrinsic, [Vec]>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** * Sets the minimum amount of commission that each validators must maintain. * diff --git a/packages/typegen/src/util/derived.spec.ts b/packages/typegen/src/util/derived.spec.ts index 4d51849..88a1fab 100644 --- a/packages/typegen/src/util/derived.spec.ts +++ b/packages/typegen/src/util/derived.spec.ts @@ -55,4 +55,20 @@ describe('getSimilarTypes', (): void => { } & Struct>` ]); }); + + it('keeps the array input for vectors of accounts and addresses', (): void => { + expect(getSimilarTypes(registry, {}, 'Vec', mockImports)).toEqual([ + 'Vec', + '(AccountId32 | string | Uint8Array)[]' + ]); + expect(getSimilarTypes(registry, {}, 'Vec', mockImports)).toEqual([ + 'Vec', + '(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']); + }); }); diff --git a/packages/typegen/src/util/derived.ts b/packages/typegen/src/util/derived.ts index bb85272..2466085 100644 --- a/packages/typegen/src/util/derived.ts +++ b/packages/typegen/src/util/derived.ts @@ -44,13 +44,16 @@ export function getSimilarTypes (registry: Registry, definitions: Record, 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;