@polkadot/api-augment 8.11.3 → 8.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/cjs/kusama/consts.js +3 -1
  2. package/cjs/kusama/errors.js +3 -1
  3. package/cjs/kusama/events.js +3 -1
  4. package/cjs/kusama/query.js +3 -1
  5. package/cjs/kusama/runtime.js +3 -1
  6. package/cjs/kusama/tx.js +3 -1
  7. package/cjs/package.json +1 -1
  8. package/cjs/packageInfo.js +1 -1
  9. package/cjs/polkadot/consts.js +3 -1
  10. package/cjs/polkadot/errors.js +3 -1
  11. package/cjs/polkadot/events.js +3 -1
  12. package/cjs/polkadot/query.js +3 -1
  13. package/cjs/polkadot/runtime.js +3 -1
  14. package/cjs/polkadot/tx.js +3 -1
  15. package/cjs/substrate/consts.js +3 -1
  16. package/cjs/substrate/errors.js +3 -1
  17. package/cjs/substrate/events.js +3 -1
  18. package/cjs/substrate/query.js +3 -1
  19. package/cjs/substrate/runtime.js +3 -1
  20. package/cjs/substrate/tx.js +3 -1
  21. package/kusama/consts.d.ts +10 -2
  22. package/kusama/consts.js +6 -1
  23. package/kusama/errors.d.ts +5 -4
  24. package/kusama/errors.js +6 -1
  25. package/kusama/events.d.ts +1 -0
  26. package/kusama/events.js +6 -1
  27. package/kusama/query.d.ts +1 -0
  28. package/kusama/query.js +6 -1
  29. package/kusama/runtime.d.ts +2 -1
  30. package/kusama/runtime.js +6 -1
  31. package/kusama/tx.d.ts +73 -26
  32. package/kusama/tx.js +6 -1
  33. package/package.json +8 -8
  34. package/packageInfo.js +1 -1
  35. package/polkadot/consts.d.ts +1 -0
  36. package/polkadot/consts.js +6 -1
  37. package/polkadot/errors.d.ts +5 -4
  38. package/polkadot/errors.js +6 -1
  39. package/polkadot/events.d.ts +1 -0
  40. package/polkadot/events.js +6 -1
  41. package/polkadot/query.d.ts +1 -0
  42. package/polkadot/query.js +6 -1
  43. package/polkadot/runtime.d.ts +2 -1
  44. package/polkadot/runtime.js +6 -1
  45. package/polkadot/tx.d.ts +63 -24
  46. package/polkadot/tx.js +6 -1
  47. package/substrate/consts.d.ts +10 -2
  48. package/substrate/consts.js +6 -1
  49. package/substrate/errors.d.ts +21 -13
  50. package/substrate/errors.js +6 -1
  51. package/substrate/events.d.ts +27 -0
  52. package/substrate/events.js +6 -1
  53. package/substrate/query.d.ts +6 -1
  54. package/substrate/query.js +6 -1
  55. package/substrate/runtime.d.ts +5 -4
  56. package/substrate/runtime.js +6 -1
  57. package/substrate/tx.d.ts +111 -29
  58. package/substrate/tx.js +6 -1
package/substrate/tx.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import '@polkadot/api-base/types/submittable';
1
2
  import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
2
3
  import type { Data } from '@polkadot/types';
3
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
@@ -268,7 +269,7 @@ declare module '@polkadot/api-base/types/submittable' {
268
269
  * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
269
270
  * # </weight>
270
271
  **/
271
- setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
272
+ setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
272
273
  /**
273
274
  * Add an aye or nay vote for the sender to the given proposal.
274
275
  *
@@ -1590,7 +1591,7 @@ declare module '@polkadot/api-base/types/submittable' {
1590
1591
  Address32: any;
1591
1592
  } | {
1592
1593
  Address20: any;
1593
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
1594
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes]>;
1594
1595
  /**
1595
1596
  * Instantiates a contract from a previously deployed wasm binary.
1596
1597
  *
@@ -1598,7 +1599,7 @@ declare module '@polkadot/api-base/types/submittable' {
1598
1599
  * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
1599
1600
  * must be supplied.
1600
1601
  **/
1601
- instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1602
+ instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1602
1603
  /**
1603
1604
  * Instantiates a new contract from the supplied `code` optionally transferring
1604
1605
  * some balance.
@@ -1627,7 +1628,7 @@ declare module '@polkadot/api-base/types/submittable' {
1627
1628
  * - The `value` is transferred to the new account.
1628
1629
  * - The `deploy` function is executed in the context of the newly-created account.
1629
1630
  **/
1630
- instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1631
+ instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1631
1632
  /**
1632
1633
  * Remove the code stored under `code_hash` and refund the deposit to its owner.
1633
1634
  *
@@ -1676,7 +1677,7 @@ declare module '@polkadot/api-base/types/submittable' {
1676
1677
  * only be instantiated by permissioned entities. The same is true when uploading
1677
1678
  * through [`Self::instantiate_with_code`].
1678
1679
  **/
1679
- uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>]>;
1680
+ uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber) => SubmittableExtrinsic<ApiType>, [Bytes, Option<Compact<u128>>]>;
1680
1681
  /**
1681
1682
  * Generic tx
1682
1683
  **/
@@ -1759,7 +1760,7 @@ declare module '@polkadot/api-base/types/submittable' {
1759
1760
  * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
1760
1761
  * Weight is calculated for the maximum number of vote.
1761
1762
  **/
1762
- removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | object | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
1763
+ removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | Uint8Array | u16 | AnyNumber, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
1763
1764
  /**
1764
1765
  * Undelegate the voting power of the sending account for a particular class of polls.
1765
1766
  *
@@ -1941,7 +1942,7 @@ declare module '@polkadot/api-base/types/submittable' {
1941
1942
  * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
1942
1943
  * # </weight>
1943
1944
  **/
1944
- setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
1945
+ setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
1945
1946
  /**
1946
1947
  * Add an aye or nay vote for the sender to the given proposal.
1947
1948
  *
@@ -1983,7 +1984,7 @@ declare module '@polkadot/api-base/types/submittable' {
1983
1984
  * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a
1984
1985
  * reasonable value).
1985
1986
  **/
1986
- blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
1987
+ blacklist: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, maybeRefIndex: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [H256, Option<u32>]>;
1987
1988
  /**
1988
1989
  * Remove a proposal.
1989
1990
  *
@@ -2313,7 +2314,7 @@ declare module '@polkadot/api-base/types/submittable' {
2313
2314
  * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
2314
2315
  * calling [`Call::set_emergency_election_result`].
2315
2316
  **/
2316
- governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
2317
+ governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | Uint8Array | u32 | AnyNumber, maybeMaxTargets: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
2317
2318
  /**
2318
2319
  * Set a solution in the queue, to be handed out to the client of this pallet in the next
2319
2320
  * call to `ElectionProvider::elect`.
@@ -2335,7 +2336,11 @@ declare module '@polkadot/api-base/types/submittable' {
2335
2336
  *
2336
2337
  * This check can be turned off by setting the value to `None`.
2337
2338
  **/
2338
- setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
2339
+ setMinimumUntrustedScore: AugmentedSubmittable<(maybeNextScore: Option<SpNposElectionsElectionScore> | null | Uint8Array | SpNposElectionsElectionScore | {
2340
+ minimalStake?: any;
2341
+ sumStake?: any;
2342
+ sumStakeSquared?: any;
2343
+ } | string) => SubmittableExtrinsic<ApiType>, [Option<SpNposElectionsElectionScore>]>;
2339
2344
  /**
2340
2345
  * Submit a solution for the signed phase.
2341
2346
  *
@@ -2400,7 +2405,11 @@ declare module '@polkadot/api-base/types/submittable' {
2400
2405
  * the outgoing member is slashed.
2401
2406
  *
2402
2407
  * If a runner-up is available, then the best runner-up will be removed and replaces the
2403
- * outgoing member. Otherwise, a new phragmen election is started.
2408
+ * outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
2409
+ * started, else, nothing happens.
2410
+ *
2411
+ * If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
2412
+ * it is returned.
2404
2413
  *
2405
2414
  * The dispatch origin of this call must be root.
2406
2415
  *
@@ -2421,7 +2430,7 @@ declare module '@polkadot/api-base/types/submittable' {
2421
2430
  Address32: any;
2422
2431
  } | {
2423
2432
  Address20: any;
2424
- } | string | Uint8Array, hasReplacement: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
2433
+ } | string | Uint8Array, slashBond: bool | boolean | Uint8Array, rerunElection: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool, bool]>;
2425
2434
  /**
2426
2435
  * Remove `origin` as a voter.
2427
2436
  *
@@ -3215,7 +3224,10 @@ declare module '@polkadot/api-base/types/submittable' {
3215
3224
  * - Write: Multisig Storage, [Caller Account]
3216
3225
  * # </weight>
3217
3226
  **/
3218
- approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
3227
+ approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3228
+ height?: any;
3229
+ index?: any;
3230
+ } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, U8aFixed, u64]>;
3219
3231
  /**
3220
3232
  * Register approval for a dispatch to be made from a deterministic composite account if
3221
3233
  * approved by a total of `threshold - 1` of `other_signatories`.
@@ -3263,7 +3275,10 @@ declare module '@polkadot/api-base/types/submittable' {
3263
3275
  * - Plus Call Weight
3264
3276
  * # </weight>
3265
3277
  **/
3266
- asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | object | string | Uint8Array, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
3278
+ asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3279
+ height?: any;
3280
+ index?: any;
3281
+ } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, u64]>;
3267
3282
  /**
3268
3283
  * Immediately dispatch a multi-signature call using a single approval from the caller.
3269
3284
  *
@@ -3326,6 +3341,8 @@ declare module '@polkadot/api-base/types/submittable' {
3326
3341
  *
3327
3342
  * Additional funds can come from either the free balance of the account, of from the
3328
3343
  * accumulated rewards, see [`BondExtra`].
3344
+ *
3345
+ * Bonding extra funds implies an automatic payout of all pending rewards as well.
3329
3346
  **/
3330
3347
  bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
3331
3348
  FreeBalance: any;
@@ -3456,8 +3473,14 @@ declare module '@polkadot/api-base/types/submittable' {
3456
3473
  /**
3457
3474
  * Set a new state for the pool.
3458
3475
  *
3459
- * The dispatch origin of this call must be signed by the state toggler, or the root role
3460
- * of the pool.
3476
+ * If a pool is already in the `Destroying` state, then under no condition can its state
3477
+ * change again.
3478
+ *
3479
+ * The dispatch origin of this call must be either:
3480
+ *
3481
+ * 1. signed by the state toggler, or the root role of the pool,
3482
+ * 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
3483
+ * then the state of the pool can be permissionlessly changed to `Destroying`.
3461
3484
  **/
3462
3485
  setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
3463
3486
  /**
@@ -3683,7 +3706,7 @@ declare module '@polkadot/api-base/types/submittable' {
3683
3706
  * Weight is a function of the number of proxies the user has (P).
3684
3707
  * # </weight>
3685
3708
  **/
3686
- proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3709
+ proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3687
3710
  /**
3688
3711
  * Dispatch the given `call` from an account that the sender is authorized for through
3689
3712
  * `add_proxy`.
@@ -3703,7 +3726,7 @@ declare module '@polkadot/api-base/types/submittable' {
3703
3726
  * - P: the number of proxies the user has.
3704
3727
  * # </weight>
3705
3728
  **/
3706
- proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3729
+ proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | Uint8Array | NodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3707
3730
  /**
3708
3731
  * Remove the given announcement of a delegate.
3709
3732
  *
@@ -4174,7 +4197,7 @@ declare module '@polkadot/api-base/types/submittable' {
4174
4197
  /**
4175
4198
  * Anonymously schedule a task.
4176
4199
  **/
4177
- schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4200
+ schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4178
4201
  Value: any;
4179
4202
  } | {
4180
4203
  Hash: any;
@@ -4186,7 +4209,7 @@ declare module '@polkadot/api-base/types/submittable' {
4186
4209
  * Same as [`schedule`].
4187
4210
  * # </weight>
4188
4211
  **/
4189
- scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4212
+ scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4190
4213
  Value: any;
4191
4214
  } | {
4192
4215
  Hash: any;
@@ -4194,7 +4217,7 @@ declare module '@polkadot/api-base/types/submittable' {
4194
4217
  /**
4195
4218
  * Schedule a named task.
4196
4219
  **/
4197
- scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4220
+ scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4198
4221
  Value: any;
4199
4222
  } | {
4200
4223
  Hash: any;
@@ -4206,7 +4229,7 @@ declare module '@polkadot/api-base/types/submittable' {
4206
4229
  * Same as [`schedule_named`](Self::schedule_named).
4207
4230
  * # </weight>
4208
4231
  **/
4209
- scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | object | string | Uint8Array, priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4232
+ scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4210
4233
  Value: any;
4211
4234
  } | {
4212
4235
  Hash: any;
@@ -5141,7 +5164,10 @@ declare module '@polkadot/api-base/types/submittable' {
5141
5164
  *
5142
5165
  * The dispatch origin of this call must be [`Config::ControlOrigin`].
5143
5166
  **/
5144
- controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
5167
+ controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | {
5168
+ size_?: any;
5169
+ item?: any;
5170
+ } | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
5145
5171
  /**
5146
5172
  * Forcefully set the progress the running migration.
5147
5173
  *
@@ -5472,7 +5498,7 @@ declare module '@polkadot/api-base/types/submittable' {
5472
5498
  * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
5473
5499
  * # </weight>
5474
5500
  **/
5475
- setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
5501
+ setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | Uint8Array | AccountId32 | string, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
5476
5502
  /**
5477
5503
  * Add an aye or nay vote for the sender to the given proposal.
5478
5504
  *
@@ -5881,7 +5907,29 @@ declare module '@polkadot/api-base/types/submittable' {
5881
5907
  * Weight: `O(1)`
5882
5908
  * Modes: `check_owner.is_some()`.
5883
5909
  **/
5884
- burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5910
+ burn: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
5911
+ Id: any;
5912
+ } | {
5913
+ Index: any;
5914
+ } | {
5915
+ Raw: any;
5916
+ } | {
5917
+ Address32: any;
5918
+ } | {
5919
+ Address20: any;
5920
+ } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5921
+ /**
5922
+ * Allows to buy an item if it's up for sale.
5923
+ *
5924
+ * Origin must be Signed and must not be the owner of the `item`.
5925
+ *
5926
+ * - `collection`: The collection of the item.
5927
+ * - `item`: The item the sender wants to buy.
5928
+ * - `bid_price`: The price the sender is willing to pay.
5929
+ *
5930
+ * Emits `ItemBought` on success.
5931
+ **/
5932
+ buyItem: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, bidPrice: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u128]>;
5885
5933
  /**
5886
5934
  * Cancel the prior approval for the transfer of an item by a delegate.
5887
5935
  *
@@ -5900,7 +5948,17 @@ declare module '@polkadot/api-base/types/submittable' {
5900
5948
  *
5901
5949
  * Weight: `O(1)`
5902
5950
  **/
5903
- cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5951
+ cancelApproval: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
5952
+ Id: any;
5953
+ } | {
5954
+ Index: any;
5955
+ } | {
5956
+ Raw: any;
5957
+ } | {
5958
+ Address32: any;
5959
+ } | {
5960
+ Address20: any;
5961
+ } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5904
5962
  /**
5905
5963
  * Clear an attribute for a collection or item.
5906
5964
  *
@@ -5917,7 +5975,7 @@ declare module '@polkadot/api-base/types/submittable' {
5917
5975
  *
5918
5976
  * Weight: `O(1)`
5919
5977
  **/
5920
- clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes]>;
5978
+ clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes]>;
5921
5979
  /**
5922
5980
  * Clear the metadata for a collection.
5923
5981
  *
@@ -6170,7 +6228,7 @@ declare module '@polkadot/api-base/types/submittable' {
6170
6228
  *
6171
6229
  * Emits `OwnershipAcceptanceChanged`.
6172
6230
  **/
6173
- setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
6231
+ setAcceptOwnership: AugmentedSubmittable<(maybeCollection: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
6174
6232
  /**
6175
6233
  * Set an attribute for a collection or item.
6176
6234
  *
@@ -6190,7 +6248,7 @@ declare module '@polkadot/api-base/types/submittable' {
6190
6248
  *
6191
6249
  * Weight: `O(1)`
6192
6250
  **/
6193
- setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes, Bytes]>;
6251
+ setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes, Bytes]>;
6194
6252
  /**
6195
6253
  * Set the maximum amount of items a collection could have.
6196
6254
  *
@@ -6244,6 +6302,30 @@ declare module '@polkadot/api-base/types/submittable' {
6244
6302
  * Weight: `O(1)`
6245
6303
  **/
6246
6304
  setMetadata: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes, bool]>;
6305
+ /**
6306
+ * Set (or reset) the price for an item.
6307
+ *
6308
+ * Origin must be Signed and must be the owner of the asset `item`.
6309
+ *
6310
+ * - `collection`: The collection of the item.
6311
+ * - `item`: The item to set the price for.
6312
+ * - `price`: The price for the item. Pass `None`, to reset the price.
6313
+ * - `buyer`: Restricts the buy operation to a specific account.
6314
+ *
6315
+ * Emits `ItemPriceSet` on success if the price is not `None`.
6316
+ * Emits `ItemPriceRemoved` on success if the price is `None`.
6317
+ **/
6318
+ setPrice: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, item: u32 | AnyNumber | Uint8Array, price: Option<u128> | null | Uint8Array | u128 | AnyNumber, whitelistedBuyer: Option<MultiAddress> | null | Uint8Array | MultiAddress | {
6319
+ Id: any;
6320
+ } | {
6321
+ Index: any;
6322
+ } | {
6323
+ Raw: any;
6324
+ } | {
6325
+ Address32: any;
6326
+ } | {
6327
+ Address20: any;
6328
+ } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<u128>, Option<MultiAddress>]>;
6247
6329
  /**
6248
6330
  * Change the Issuer, Admin and Freezer of a collection.
6249
6331
  *
package/substrate/tx.js CHANGED
@@ -1 +1,6 @@
1
- export {};
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+
3
+ /* eslint-disable */
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import '@polkadot/api-base/types/submittable'; // declare module