@polkadot/api-augment 7.12.2-3 → 7.12.2-4

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.
@@ -289,10 +289,6 @@ declare module '@polkadot/api-base/types/storage' {
289
289
  [key: string]: QueryableStorageEntry<ApiType>;
290
290
  };
291
291
  contracts: {
292
- /**
293
- * The subtrie counter.
294
- **/
295
- accountCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
296
292
  /**
297
293
  * A mapping between an original code hash and instrumented wasm code, ready for execution.
298
294
  **/
@@ -310,6 +306,31 @@ declare module '@polkadot/api-base/types/storage' {
310
306
  * stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
311
307
  **/
312
308
  deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, []> & QueryableStorageEntry<ApiType, []>;
309
+ /**
310
+ * This is a **monotonic** counter incremented on contract instantiation.
311
+ *
312
+ * This is used in order to generate unique trie ids for contracts.
313
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
314
+ * The nonce is required because otherwise the following sequence would lead to
315
+ * a possible collision of storage:
316
+ *
317
+ * 1. Create a new contract.
318
+ * 2. Terminate the contract.
319
+ * 3. Immediately recreate the contract with the same account_id.
320
+ *
321
+ * This is bad because the contents of a trie are deleted lazily and there might be
322
+ * storage of the old instantiation still in it when the new contract is created. Please
323
+ * note that we can't replace the counter by the block number because the sequence above
324
+ * can happen in the same block. We also can't keep the account counter in memory only
325
+ * because storage is the only way to communicate across different extrinsics in the
326
+ * same block.
327
+ *
328
+ * # Note
329
+ *
330
+ * Do not use it to determine the number of contracts. It won't be decremented if
331
+ * a contract is destroyed.
332
+ **/
333
+ nonce: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
313
334
  /**
314
335
  * A mapping between an original code hash and its owner information.
315
336
  **/
@@ -858,8 +879,6 @@ declare module '@polkadot/api-base/types/storage' {
858
879
  referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
859
880
  /**
860
881
  * Information concerning any given referendum.
861
- *
862
- * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
863
882
  **/
864
883
  referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
865
884
  /**
@@ -1529,6 +1548,10 @@ declare module '@polkadot/api-base/types/storage' {
1529
1548
  * Metadata of an asset instance.
1530
1549
  **/
1531
1550
  instanceMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletUniquesInstanceMetadata>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
1551
+ /**
1552
+ * The class, if any, of which an account is willing to take ownership.
1553
+ **/
1554
+ ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1532
1555
  /**
1533
1556
  * Generic query
1534
1557
  **/
package/substrate/tx.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/submittable' {
8
8
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
9
9
  assets: {
@@ -760,12 +760,12 @@ declare module '@polkadot/api-base/types/submittable' {
760
760
  *
761
761
  * Only works if
762
762
  * - both nodes are within the same bag,
763
- * - and `origin` has a greater `VoteWeight` than `lighter`.
763
+ * - and `origin` has a greater `Score` than `lighter`.
764
764
  **/
765
765
  putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
766
766
  /**
767
767
  * Declare that some `dislocated` account has, through rewards or penalties, sufficiently
768
- * changed its weight that it should properly fall into a different bag than its current
768
+ * changed its score that it should properly fall into a different bag than its current
769
769
  * one.
770
770
  *
771
771
  * Anyone can call this function about any potentially dislocated account.
@@ -3537,11 +3537,11 @@ declare module '@polkadot/api-base/types/submittable' {
3537
3537
  Council: any;
3538
3538
  } | {
3539
3539
  TechnicalCommittee: any;
3540
- } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: PalletReferendaAtOrAfter | {
3540
+ } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
3541
3541
  At: any;
3542
3542
  } | {
3543
3543
  After: any;
3544
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, PalletReferendaAtOrAfter]>;
3544
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
3545
3545
  /**
3546
3546
  * Generic tx
3547
3547
  **/
@@ -4515,9 +4515,8 @@ declare module '@polkadot/api-base/types/submittable' {
4515
4515
  size_?: any;
4516
4516
  item?: any;
4517
4517
  } | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | {
4518
- lastTop?: any;
4519
- lastChild?: any;
4520
- prevTickChild?: any;
4518
+ progressTop?: any;
4519
+ progressChild?: any;
4521
4520
  size_?: any;
4522
4521
  topItems?: any;
4523
4522
  childItems?: any;
@@ -5186,7 +5185,7 @@ declare module '@polkadot/api-base/types/submittable' {
5186
5185
  *
5187
5186
  * Weight: `O(1)`
5188
5187
  **/
5189
- approveTransfer: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, delegate: MultiAddress | {
5188
+ approveTransfer: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, delegate: MultiAddress | {
5190
5189
  Id: any;
5191
5190
  } | {
5192
5191
  Index: any;
@@ -5196,7 +5195,7 @@ declare module '@polkadot/api-base/types/submittable' {
5196
5195
  Address32: any;
5197
5196
  } | {
5198
5197
  Address20: any;
5199
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress]>;
5198
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
5200
5199
  /**
5201
5200
  * Destroy a single asset instance.
5202
5201
  *
@@ -5212,7 +5211,7 @@ declare module '@polkadot/api-base/types/submittable' {
5212
5211
  * Weight: `O(1)`
5213
5212
  * Modes: `check_owner.is_some()`.
5214
5213
  **/
5215
- burn: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Option<MultiAddress>]>;
5214
+ burn: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, checkOwner: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5216
5215
  /**
5217
5216
  * Cancel the prior approval for the transfer of an asset by a delegate.
5218
5217
  *
@@ -5231,7 +5230,7 @@ declare module '@polkadot/api-base/types/submittable' {
5231
5230
  *
5232
5231
  * Weight: `O(1)`
5233
5232
  **/
5234
- cancelApproval: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Option<MultiAddress>]>;
5233
+ cancelApproval: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Option<MultiAddress>]>;
5235
5234
  /**
5236
5235
  * Clear an attribute for an asset class or instance.
5237
5236
  *
@@ -5248,7 +5247,7 @@ declare module '@polkadot/api-base/types/submittable' {
5248
5247
  *
5249
5248
  * Weight: `O(1)`
5250
5249
  **/
5251
- clearAttribute: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, maybeInstance: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u32>, Bytes]>;
5250
+ clearAttribute: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, maybeInstance: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes]>;
5252
5251
  /**
5253
5252
  * Clear the metadata for an asset class.
5254
5253
  *
@@ -5263,7 +5262,7 @@ declare module '@polkadot/api-base/types/submittable' {
5263
5262
  *
5264
5263
  * Weight: `O(1)`
5265
5264
  **/
5266
- clearClassMetadata: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5265
+ clearClassMetadata: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5267
5266
  /**
5268
5267
  * Clear the metadata for an asset instance.
5269
5268
  *
@@ -5279,7 +5278,7 @@ declare module '@polkadot/api-base/types/submittable' {
5279
5278
  *
5280
5279
  * Weight: `O(1)`
5281
5280
  **/
5282
- clearMetadata: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
5281
+ clearMetadata: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
5283
5282
  /**
5284
5283
  * Issue a new class of non-fungible assets from a public origin.
5285
5284
  *
@@ -5298,7 +5297,7 @@ declare module '@polkadot/api-base/types/submittable' {
5298
5297
  *
5299
5298
  * Weight: `O(1)`
5300
5299
  **/
5301
- create: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, admin: MultiAddress | {
5300
+ create: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, admin: MultiAddress | {
5302
5301
  Id: any;
5303
5302
  } | {
5304
5303
  Index: any;
@@ -5308,7 +5307,7 @@ declare module '@polkadot/api-base/types/submittable' {
5308
5307
  Address32: any;
5309
5308
  } | {
5310
5309
  Address20: any;
5311
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
5310
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
5312
5311
  /**
5313
5312
  * Destroy a class of fungible assets.
5314
5313
  *
@@ -5326,11 +5325,11 @@ declare module '@polkadot/api-base/types/submittable' {
5326
5325
  * - `m = witness.instance_metadatas`
5327
5326
  * - `a = witness.attributes`
5328
5327
  **/
5329
- destroy: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, witness: PalletUniquesDestroyWitness | {
5328
+ destroy: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, witness: PalletUniquesDestroyWitness | {
5330
5329
  instances?: any;
5331
5330
  instanceMetadatas?: any;
5332
5331
  attributes?: any;
5333
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletUniquesDestroyWitness]>;
5332
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletUniquesDestroyWitness]>;
5334
5333
  /**
5335
5334
  * Alter the attributes of a given asset.
5336
5335
  *
@@ -5350,7 +5349,7 @@ declare module '@polkadot/api-base/types/submittable' {
5350
5349
  *
5351
5350
  * Weight: `O(1)`
5352
5351
  **/
5353
- forceAssetStatus: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, owner: MultiAddress | {
5352
+ forceAssetStatus: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
5354
5353
  Id: any;
5355
5354
  } | {
5356
5355
  Index: any;
@@ -5390,7 +5389,7 @@ declare module '@polkadot/api-base/types/submittable' {
5390
5389
  Address32: any;
5391
5390
  } | {
5392
5391
  Address20: any;
5393
- } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress, MultiAddress, bool, bool]>;
5392
+ } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, MultiAddress, MultiAddress, MultiAddress, bool, bool]>;
5394
5393
  /**
5395
5394
  * Issue a new class of non-fungible assets from a privileged origin.
5396
5395
  *
@@ -5409,7 +5408,7 @@ declare module '@polkadot/api-base/types/submittable' {
5409
5408
  *
5410
5409
  * Weight: `O(1)`
5411
5410
  **/
5412
- forceCreate: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, owner: MultiAddress | {
5411
+ forceCreate: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
5413
5412
  Id: any;
5414
5413
  } | {
5415
5414
  Index: any;
@@ -5419,7 +5418,7 @@ declare module '@polkadot/api-base/types/submittable' {
5419
5418
  Address32: any;
5420
5419
  } | {
5421
5420
  Address20: any;
5422
- } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, bool]>;
5421
+ } | string | Uint8Array, freeHolding: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, bool]>;
5423
5422
  /**
5424
5423
  * Disallow further unprivileged transfer of an asset instance.
5425
5424
  *
@@ -5432,7 +5431,7 @@ declare module '@polkadot/api-base/types/submittable' {
5432
5431
  *
5433
5432
  * Weight: `O(1)`
5434
5433
  **/
5435
- freeze: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
5434
+ freeze: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
5436
5435
  /**
5437
5436
  * Disallow further unprivileged transfers for a whole asset class.
5438
5437
  *
@@ -5444,7 +5443,7 @@ declare module '@polkadot/api-base/types/submittable' {
5444
5443
  *
5445
5444
  * Weight: `O(1)`
5446
5445
  **/
5447
- freezeClass: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5446
+ freezeClass: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5448
5447
  /**
5449
5448
  * Mint an asset instance of a particular class.
5450
5449
  *
@@ -5458,7 +5457,7 @@ declare module '@polkadot/api-base/types/submittable' {
5458
5457
  *
5459
5458
  * Weight: `O(1)`
5460
5459
  **/
5461
- mint: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, owner: MultiAddress | {
5460
+ mint: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
5462
5461
  Id: any;
5463
5462
  } | {
5464
5463
  Index: any;
@@ -5468,7 +5467,7 @@ declare module '@polkadot/api-base/types/submittable' {
5468
5467
  Address32: any;
5469
5468
  } | {
5470
5469
  Address20: any;
5471
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress]>;
5470
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
5472
5471
  /**
5473
5472
  * Reevaluate the deposits on some assets.
5474
5473
  *
@@ -5488,7 +5487,20 @@ declare module '@polkadot/api-base/types/submittable' {
5488
5487
  *
5489
5488
  * Weight: `O(instances.len())`
5490
5489
  **/
5491
- redeposit: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instances: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Vec<u32>]>;
5490
+ redeposit: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instances: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
5491
+ /**
5492
+ * Set (or reset) the acceptance of ownership for a particular account.
5493
+ *
5494
+ * Origin must be `Signed` and if `maybe_class` is `Some`, then the signer must have a
5495
+ * provider reference.
5496
+ *
5497
+ * - `maybe_class`: The identifier of the asset class whose ownership the signer is willing
5498
+ * to accept, or if `None`, an indication that the signer is willing to accept no
5499
+ * ownership transferal.
5500
+ *
5501
+ * Emits `OwnershipAcceptanceChanged`.
5502
+ **/
5503
+ setAcceptOwnership: AugmentedSubmittable<(maybeClass: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>]>;
5492
5504
  /**
5493
5505
  * Set an attribute for an asset class or instance.
5494
5506
  *
@@ -5508,7 +5520,7 @@ declare module '@polkadot/api-base/types/submittable' {
5508
5520
  *
5509
5521
  * Weight: `O(1)`
5510
5522
  **/
5511
- setAttribute: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, maybeInstance: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u32>, Bytes, Bytes]>;
5523
+ setAttribute: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, maybeInstance: Option<u32> | null | object | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, Bytes, Bytes]>;
5512
5524
  /**
5513
5525
  * Set the metadata for an asset class.
5514
5526
  *
@@ -5527,7 +5539,7 @@ declare module '@polkadot/api-base/types/submittable' {
5527
5539
  *
5528
5540
  * Weight: `O(1)`
5529
5541
  **/
5530
- setClassMetadata: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, bool]>;
5542
+ setClassMetadata: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes, bool]>;
5531
5543
  /**
5532
5544
  * Set the metadata for an asset instance.
5533
5545
  *
@@ -5547,7 +5559,7 @@ declare module '@polkadot/api-base/types/submittable' {
5547
5559
  *
5548
5560
  * Weight: `O(1)`
5549
5561
  **/
5550
- setMetadata: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Bytes, bool]>;
5562
+ setMetadata: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array, isFrozen: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, Bytes, bool]>;
5551
5563
  /**
5552
5564
  * Change the Issuer, Admin and Freezer of an asset class.
5553
5565
  *
@@ -5562,7 +5574,7 @@ declare module '@polkadot/api-base/types/submittable' {
5562
5574
  *
5563
5575
  * Weight: `O(1)`
5564
5576
  **/
5565
- setTeam: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, issuer: MultiAddress | {
5577
+ setTeam: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, issuer: MultiAddress | {
5566
5578
  Id: any;
5567
5579
  } | {
5568
5580
  Index: any;
@@ -5592,7 +5604,7 @@ declare module '@polkadot/api-base/types/submittable' {
5592
5604
  Address32: any;
5593
5605
  } | {
5594
5606
  Address20: any;
5595
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, MultiAddress]>;
5607
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress, MultiAddress, MultiAddress]>;
5596
5608
  /**
5597
5609
  * Re-allow unprivileged transfer of an asset instance.
5598
5610
  *
@@ -5605,7 +5617,7 @@ declare module '@polkadot/api-base/types/submittable' {
5605
5617
  *
5606
5618
  * Weight: `O(1)`
5607
5619
  **/
5608
- thaw: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
5620
+ thaw: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
5609
5621
  /**
5610
5622
  * Re-allow unprivileged transfers for a whole asset class.
5611
5623
  *
@@ -5617,7 +5629,7 @@ declare module '@polkadot/api-base/types/submittable' {
5617
5629
  *
5618
5630
  * Weight: `O(1)`
5619
5631
  **/
5620
- thawClass: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5632
+ thawClass: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
5621
5633
  /**
5622
5634
  * Move an asset from the sender account to another.
5623
5635
  *
@@ -5635,7 +5647,7 @@ declare module '@polkadot/api-base/types/submittable' {
5635
5647
  *
5636
5648
  * Weight: `O(1)`
5637
5649
  **/
5638
- transfer: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, dest: MultiAddress | {
5650
+ transfer: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, instance: u32 | AnyNumber | Uint8Array, dest: MultiAddress | {
5639
5651
  Id: any;
5640
5652
  } | {
5641
5653
  Index: any;
@@ -5645,20 +5657,21 @@ declare module '@polkadot/api-base/types/submittable' {
5645
5657
  Address32: any;
5646
5658
  } | {
5647
5659
  Address20: any;
5648
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, MultiAddress]>;
5660
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress]>;
5649
5661
  /**
5650
5662
  * Change the Owner of an asset class.
5651
5663
  *
5652
5664
  * Origin must be Signed and the sender should be the Owner of the asset `class`.
5653
5665
  *
5654
5666
  * - `class`: The asset class whose owner should be changed.
5655
- * - `owner`: The new Owner of this asset class.
5667
+ * - `owner`: The new Owner of this asset class. They must have called
5668
+ * `set_accept_ownership` with `class` in order for this operation to succeed.
5656
5669
  *
5657
5670
  * Emits `OwnerChanged`.
5658
5671
  *
5659
5672
  * Weight: `O(1)`
5660
5673
  **/
5661
- transferOwnership: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, owner: MultiAddress | {
5674
+ transferOwnership: AugmentedSubmittable<(clazz: u32 | AnyNumber | Uint8Array, owner: MultiAddress | {
5662
5675
  Id: any;
5663
5676
  } | {
5664
5677
  Index: any;
@@ -5668,7 +5681,7 @@ declare module '@polkadot/api-base/types/submittable' {
5668
5681
  Address32: any;
5669
5682
  } | {
5670
5683
  Address20: any;
5671
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
5684
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
5672
5685
  /**
5673
5686
  * Generic tx
5674
5687
  **/