@dedot/chaintypes 0.248.0 → 0.250.0

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 (45) hide show
  1. package/package.json +2 -2
  2. package/paseo/errors.d.ts +5 -0
  3. package/paseo/events.d.ts +94 -16
  4. package/paseo/index.d.ts +1 -1
  5. package/paseo/json-rpc.d.ts +1 -0
  6. package/paseo/query.d.ts +85 -46
  7. package/paseo/runtime.d.ts +90 -79
  8. package/paseo/tx.d.ts +81 -32
  9. package/paseo/types.d.ts +278 -209
  10. package/paseo-asset-hub/consts.d.ts +87 -0
  11. package/paseo-asset-hub/errors.d.ts +170 -0
  12. package/paseo-asset-hub/events.d.ts +359 -6
  13. package/paseo-asset-hub/index.d.ts +3 -1
  14. package/paseo-asset-hub/json-rpc.d.ts +1 -0
  15. package/paseo-asset-hub/query.d.ts +261 -17
  16. package/paseo-asset-hub/runtime.d.ts +11 -6
  17. package/paseo-asset-hub/tx.d.ts +729 -1
  18. package/paseo-asset-hub/types.d.ts +1426 -155
  19. package/paseo-asset-hub/view-functions.d.ts +195 -2
  20. package/paseo-people/errors.d.ts +5 -0
  21. package/paseo-people/events.d.ts +78 -2
  22. package/paseo-people/index.d.ts +1 -1
  23. package/paseo-people/query.d.ts +44 -16
  24. package/paseo-people/runtime.d.ts +9 -5
  25. package/paseo-people/tx.d.ts +30 -0
  26. package/paseo-people/types.d.ts +107 -25
  27. package/paseo-people/view-functions.d.ts +46 -1
  28. package/polkadot-asset-hub/consts.d.ts +87 -0
  29. package/polkadot-asset-hub/errors.d.ts +170 -0
  30. package/polkadot-asset-hub/events.d.ts +359 -6
  31. package/polkadot-asset-hub/index.d.ts +3 -1
  32. package/polkadot-asset-hub/query.d.ts +261 -17
  33. package/polkadot-asset-hub/runtime.d.ts +11 -6
  34. package/polkadot-asset-hub/tx.d.ts +729 -1
  35. package/polkadot-asset-hub/types.d.ts +1426 -155
  36. package/polkadot-asset-hub/view-functions.d.ts +195 -2
  37. package/polkadot-people/consts.d.ts +75 -0
  38. package/polkadot-people/errors.d.ts +170 -0
  39. package/polkadot-people/events.d.ts +377 -3
  40. package/polkadot-people/index.d.ts +5 -4
  41. package/polkadot-people/query.d.ts +169 -16
  42. package/polkadot-people/runtime.d.ts +9 -5
  43. package/polkadot-people/tx.d.ts +1316 -2
  44. package/polkadot-people/types.d.ts +1857 -182
  45. package/polkadot-people/view-functions.d.ts +46 -1
@@ -9,8 +9,9 @@ import type {
9
9
  AccountId32,
10
10
  MultiAddressLike,
11
11
  AccountId32Like,
12
- FixedBytes,
13
12
  FixedArray,
13
+ FixedBytes,
14
+ FixedU128,
14
15
  Data,
15
16
  Era,
16
17
  Phase,
@@ -27,6 +28,8 @@ export type PeoplePolkadotRuntimeRuntimeCall =
27
28
  | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall }
28
29
  | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
29
30
  | { pallet: 'Balances'; palletCall: PalletBalancesCall }
31
+ | { pallet: 'Assets'; palletCall: PalletAssetsCall }
32
+ | { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
30
33
  | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
31
34
  | { pallet: 'Session'; palletCall: PalletSessionCall }
32
35
  | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall }
@@ -45,6 +48,8 @@ export type PeoplePolkadotRuntimeRuntimeCallLike =
45
48
  | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
46
49
  | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
47
50
  | { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
51
+ | { pallet: 'Assets'; palletCall: PalletAssetsCallLike }
52
+ | { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
48
53
  | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
49
54
  | { pallet: 'Session'; palletCall: PalletSessionCallLike }
50
55
  | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike }
@@ -249,13 +254,13 @@ export type CumulusPalletParachainSystemCallLike =
249
254
  | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } };
250
255
 
251
256
  export type CumulusPalletParachainSystemParachainInherentBasicParachainInherentData = {
252
- validationData: PolkadotPrimitivesV8PersistedValidationData;
257
+ validationData: PolkadotPrimitivesV9PersistedValidationData;
253
258
  relayChainState: SpTrieStorageProof;
254
259
  relayParentDescendants: Array<Header>;
255
260
  collatorPeerId?: Bytes | undefined;
256
261
  };
257
262
 
258
- export type PolkadotPrimitivesV8PersistedValidationData = {
263
+ export type PolkadotPrimitivesV9PersistedValidationData = {
259
264
  parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
260
265
  relayParentNumber: number;
261
266
  relayParentStorageRoot: H256;
@@ -454,160 +459,1454 @@ export type PalletBalancesCall =
454
459
  **/
455
460
  | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } }
456
461
  /**
457
- * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
458
- * kill the origin account.
462
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
463
+ * kill the origin account.
464
+ *
465
+ * 99% of the time you want [`transfer_allow_death`] instead.
466
+ *
467
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
468
+ **/
469
+ | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } }
470
+ /**
471
+ * Transfer the entire transferable balance from the caller account.
472
+ *
473
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
474
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
475
+ * transferred by this function. To ensure that this function results in a killed account,
476
+ * you might need to prepare the account by removing any reference counters, storage
477
+ * deposits, etc...
478
+ *
479
+ * The dispatch origin of this call must be Signed.
480
+ *
481
+ * - `dest`: The recipient of the transfer.
482
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
483
+ * of the funds the account has, causing the sender account to be killed (false), or
484
+ * transfer everything except at least the existential deposit, which will guarantee to
485
+ * keep the sender account alive (true).
486
+ **/
487
+ | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } }
488
+ /**
489
+ * Unreserve some balance from a user by force.
490
+ *
491
+ * Can only be called by ROOT.
492
+ **/
493
+ | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } }
494
+ /**
495
+ * Upgrade a specified account.
496
+ *
497
+ * - `origin`: Must be `Signed`.
498
+ * - `who`: The account to be upgraded.
499
+ *
500
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
501
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
502
+ * possibility of churn).
503
+ **/
504
+ | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
505
+ /**
506
+ * Set the regular balance of a given account.
507
+ *
508
+ * The dispatch origin for this call is `root`.
509
+ **/
510
+ | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } }
511
+ /**
512
+ * Adjust the total issuance in a saturating way.
513
+ *
514
+ * Can only be called by root and always needs a positive `delta`.
515
+ *
516
+ * # Example
517
+ **/
518
+ | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
519
+ /**
520
+ * Burn the specified liquid free balance from the origin account.
521
+ *
522
+ * If the origin's account ends up below the existential deposit as a result
523
+ * of the burn and `keep_alive` is false, the account will be reaped.
524
+ *
525
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
526
+ * this `burn` operation will reduce total issuance by the amount _burned_.
527
+ **/
528
+ | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
529
+
530
+ export type PalletBalancesCallLike =
531
+ /**
532
+ * Transfer some liquid free balance to another account.
533
+ *
534
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
535
+ * If the sender's account is below the existential deposit as a result
536
+ * of the transfer, the account will be reaped.
537
+ *
538
+ * The dispatch origin for this call must be `Signed` by the transactor.
539
+ **/
540
+ | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } }
541
+ /**
542
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
543
+ * may be specified.
544
+ **/
545
+ | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } }
546
+ /**
547
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
548
+ * kill the origin account.
549
+ *
550
+ * 99% of the time you want [`transfer_allow_death`] instead.
551
+ *
552
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
553
+ **/
554
+ | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } }
555
+ /**
556
+ * Transfer the entire transferable balance from the caller account.
557
+ *
558
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
559
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
560
+ * transferred by this function. To ensure that this function results in a killed account,
561
+ * you might need to prepare the account by removing any reference counters, storage
562
+ * deposits, etc...
563
+ *
564
+ * The dispatch origin of this call must be Signed.
565
+ *
566
+ * - `dest`: The recipient of the transfer.
567
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
568
+ * of the funds the account has, causing the sender account to be killed (false), or
569
+ * transfer everything except at least the existential deposit, which will guarantee to
570
+ * keep the sender account alive (true).
571
+ **/
572
+ | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } }
573
+ /**
574
+ * Unreserve some balance from a user by force.
575
+ *
576
+ * Can only be called by ROOT.
577
+ **/
578
+ | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } }
579
+ /**
580
+ * Upgrade a specified account.
581
+ *
582
+ * - `origin`: Must be `Signed`.
583
+ * - `who`: The account to be upgraded.
584
+ *
585
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
586
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
587
+ * possibility of churn).
588
+ **/
589
+ | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
590
+ /**
591
+ * Set the regular balance of a given account.
592
+ *
593
+ * The dispatch origin for this call is `root`.
594
+ **/
595
+ | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } }
596
+ /**
597
+ * Adjust the total issuance in a saturating way.
598
+ *
599
+ * Can only be called by root and always needs a positive `delta`.
600
+ *
601
+ * # Example
602
+ **/
603
+ | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
604
+ /**
605
+ * Burn the specified liquid free balance from the origin account.
606
+ *
607
+ * If the origin's account ends up below the existential deposit as a result
608
+ * of the burn and `keep_alive` is false, the account will be reaped.
609
+ *
610
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
611
+ * this `burn` operation will reduce total issuance by the amount _burned_.
612
+ **/
613
+ | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
614
+
615
+ export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
616
+
617
+ /**
618
+ * Contains a variant per dispatchable extrinsic that this pallet has.
619
+ **/
620
+ export type PalletAssetsCall =
621
+ /**
622
+ * Issue a new class of fungible assets from a public origin.
623
+ *
624
+ * This new asset class has no assets initially and its owner is the origin.
625
+ *
626
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
627
+ *
628
+ * Funds of sender are reserved by `AssetDeposit`.
629
+ *
630
+ * Parameters:
631
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
632
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
633
+ * - `admin`: The admin of this class of assets. The admin is the initial address of each
634
+ * member of the asset class's admin team.
635
+ * - `min_balance`: The minimum balance of this new asset that any single account must
636
+ * have. If an account's balance is reduced below this, then it collapses to zero.
637
+ *
638
+ * Emits `Created` event when successful.
639
+ *
640
+ * Weight: `O(1)`
641
+ **/
642
+ | { name: 'Create'; params: { id: StagingXcmV5Location; admin: MultiAddress; minBalance: bigint } }
643
+ /**
644
+ * Issue a new class of fungible assets from a privileged origin.
645
+ *
646
+ * This new asset class has no assets initially.
647
+ *
648
+ * The origin must conform to `ForceOrigin`.
649
+ *
650
+ * Unlike `create`, no funds are reserved.
651
+ *
652
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
653
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
654
+ * - `owner`: The owner of this class of assets. The owner has full superuser permissions
655
+ * over this asset, but may later change and configure the permissions using
656
+ * `transfer_ownership` and `set_team`.
657
+ * - `min_balance`: The minimum balance of this new asset that any single account must
658
+ * have. If an account's balance is reduced below this, then it collapses to zero.
659
+ *
660
+ * Emits `ForceCreated` event when successful.
661
+ *
662
+ * Weight: `O(1)`
663
+ **/
664
+ | {
665
+ name: 'ForceCreate';
666
+ params: { id: StagingXcmV5Location; owner: MultiAddress; isSufficient: boolean; minBalance: bigint };
667
+ }
668
+ /**
669
+ * Start the process of destroying a fungible asset class.
670
+ *
671
+ * `start_destroy` is the first in a series of extrinsics that should be called, to allow
672
+ * destruction of an asset class.
673
+ *
674
+ * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
675
+ *
676
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
677
+ * asset.
678
+ *
679
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
680
+ * an account contains holds or freezes in place.
681
+ **/
682
+ | { name: 'StartDestroy'; params: { id: StagingXcmV5Location } }
683
+ /**
684
+ * Destroy all accounts associated with a given asset.
685
+ *
686
+ * `destroy_accounts` should only be called after `start_destroy` has been called, and the
687
+ * asset is in a `Destroying` state.
688
+ *
689
+ * Due to weight restrictions, this function may need to be called multiple times to fully
690
+ * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
691
+ *
692
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
693
+ * asset.
694
+ *
695
+ * Each call emits the `Event::DestroyedAccounts` event.
696
+ **/
697
+ | { name: 'DestroyAccounts'; params: { id: StagingXcmV5Location } }
698
+ /**
699
+ * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
700
+ *
701
+ * `destroy_approvals` should only be called after `start_destroy` has been called, and the
702
+ * asset is in a `Destroying` state.
703
+ *
704
+ * Due to weight restrictions, this function may need to be called multiple times to fully
705
+ * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
706
+ *
707
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
708
+ * asset.
709
+ *
710
+ * Each call emits the `Event::DestroyedApprovals` event.
711
+ **/
712
+ | { name: 'DestroyApprovals'; params: { id: StagingXcmV5Location } }
713
+ /**
714
+ * Complete destroying asset and unreserve currency.
715
+ *
716
+ * `finish_destroy` should only be called after `start_destroy` has been called, and the
717
+ * asset is in a `Destroying` state. All accounts or approvals should be destroyed before
718
+ * hand.
719
+ *
720
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
721
+ * asset.
722
+ *
723
+ * Each successful call emits the `Event::Destroyed` event.
724
+ **/
725
+ | { name: 'FinishDestroy'; params: { id: StagingXcmV5Location } }
726
+ /**
727
+ * Mint assets of a particular class.
728
+ *
729
+ * The origin must be Signed and the sender must be the Issuer of the asset `id`.
730
+ *
731
+ * - `id`: The identifier of the asset to have some amount minted.
732
+ * - `beneficiary`: The account to be credited with the minted assets.
733
+ * - `amount`: The amount of the asset to be minted.
734
+ *
735
+ * Emits `Issued` event when successful.
736
+ *
737
+ * Weight: `O(1)`
738
+ * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
739
+ **/
740
+ | { name: 'Mint'; params: { id: StagingXcmV5Location; beneficiary: MultiAddress; amount: bigint } }
741
+ /**
742
+ * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
743
+ *
744
+ * Origin must be Signed and the sender should be the Manager of the asset `id`.
745
+ *
746
+ * Bails with `NoAccount` if the `who` is already dead.
747
+ *
748
+ * - `id`: The identifier of the asset to have some amount burned.
749
+ * - `who`: The account to be debited from.
750
+ * - `amount`: The maximum amount by which `who`'s balance should be reduced.
751
+ *
752
+ * Emits `Burned` with the actual amount burned. If this takes the balance to below the
753
+ * minimum for the asset, then the amount burned is increased to take it to zero.
754
+ *
755
+ * Weight: `O(1)`
756
+ * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
757
+ **/
758
+ | { name: 'Burn'; params: { id: StagingXcmV5Location; who: MultiAddress; amount: bigint } }
759
+ /**
760
+ * Move some assets from the sender account to another.
761
+ *
762
+ * Origin must be Signed.
763
+ *
764
+ * - `id`: The identifier of the asset to have some amount transferred.
765
+ * - `target`: The account to be credited.
766
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
767
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
768
+ * the case that the transfer would otherwise take the sender balance above zero but below
769
+ * the minimum balance. Must be greater than zero.
770
+ *
771
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
772
+ * to below the minimum for the asset, then the amount transferred is increased to take it
773
+ * to zero.
774
+ *
775
+ * Weight: `O(1)`
776
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
777
+ * `target`.
778
+ **/
779
+ | { name: 'Transfer'; params: { id: StagingXcmV5Location; target: MultiAddress; amount: bigint } }
780
+ /**
781
+ * Move some assets from the sender account to another, keeping the sender account alive.
782
+ *
783
+ * Origin must be Signed.
784
+ *
785
+ * - `id`: The identifier of the asset to have some amount transferred.
786
+ * - `target`: The account to be credited.
787
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
788
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
789
+ * the case that the transfer would otherwise take the sender balance above zero but below
790
+ * the minimum balance. Must be greater than zero.
791
+ *
792
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
793
+ * to below the minimum for the asset, then the amount transferred is increased to take it
794
+ * to zero.
795
+ *
796
+ * Weight: `O(1)`
797
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
798
+ * `target`.
799
+ **/
800
+ | { name: 'TransferKeepAlive'; params: { id: StagingXcmV5Location; target: MultiAddress; amount: bigint } }
801
+ /**
802
+ * Move some assets from one account to another.
803
+ *
804
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
805
+ *
806
+ * - `id`: The identifier of the asset to have some amount transferred.
807
+ * - `source`: The account to be debited.
808
+ * - `dest`: The account to be credited.
809
+ * - `amount`: The amount by which the `source`'s balance of assets should be reduced and
810
+ * `dest`'s balance increased. The amount actually transferred may be slightly greater in
811
+ * the case that the transfer would otherwise take the `source` balance above zero but
812
+ * below the minimum balance. Must be greater than zero.
813
+ *
814
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
815
+ * to below the minimum for the asset, then the amount transferred is increased to take it
816
+ * to zero.
817
+ *
818
+ * Weight: `O(1)`
819
+ * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
820
+ * `dest`.
821
+ **/
822
+ | {
823
+ name: 'ForceTransfer';
824
+ params: { id: StagingXcmV5Location; source: MultiAddress; dest: MultiAddress; amount: bigint };
825
+ }
826
+ /**
827
+ * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
828
+ * must already exist as an entry in `Account`s of the asset. If you want to freeze an
829
+ * account that does not have an entry, use `touch_other` first.
830
+ *
831
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
832
+ *
833
+ * - `id`: The identifier of the asset to be frozen.
834
+ * - `who`: The account to be frozen.
835
+ *
836
+ * Emits `Frozen`.
837
+ *
838
+ * Weight: `O(1)`
839
+ **/
840
+ | { name: 'Freeze'; params: { id: StagingXcmV5Location; who: MultiAddress } }
841
+ /**
842
+ * Allow unprivileged transfers to and from an account again.
843
+ *
844
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
845
+ *
846
+ * - `id`: The identifier of the asset to be frozen.
847
+ * - `who`: The account to be unfrozen.
848
+ *
849
+ * Emits `Thawed`.
850
+ *
851
+ * Weight: `O(1)`
852
+ **/
853
+ | { name: 'Thaw'; params: { id: StagingXcmV5Location; who: MultiAddress } }
854
+ /**
855
+ * Disallow further unprivileged transfers for the asset class.
856
+ *
857
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
858
+ *
859
+ * - `id`: The identifier of the asset to be frozen.
860
+ *
861
+ * Emits `Frozen`.
862
+ *
863
+ * Weight: `O(1)`
864
+ **/
865
+ | { name: 'FreezeAsset'; params: { id: StagingXcmV5Location } }
866
+ /**
867
+ * Allow unprivileged transfers for the asset again.
868
+ *
869
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
870
+ *
871
+ * - `id`: The identifier of the asset to be thawed.
872
+ *
873
+ * Emits `Thawed`.
874
+ *
875
+ * Weight: `O(1)`
876
+ **/
877
+ | { name: 'ThawAsset'; params: { id: StagingXcmV5Location } }
878
+ /**
879
+ * Change the Owner of an asset.
880
+ *
881
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
882
+ *
883
+ * - `id`: The identifier of the asset.
884
+ * - `owner`: The new Owner of this asset.
885
+ *
886
+ * Emits `OwnerChanged`.
887
+ *
888
+ * Weight: `O(1)`
889
+ **/
890
+ | { name: 'TransferOwnership'; params: { id: StagingXcmV5Location; owner: MultiAddress } }
891
+ /**
892
+ * Change the Issuer, Admin and Freezer of an asset.
893
+ *
894
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
895
+ *
896
+ * - `id`: The identifier of the asset to be frozen.
897
+ * - `issuer`: The new Issuer of this asset.
898
+ * - `admin`: The new Admin of this asset.
899
+ * - `freezer`: The new Freezer of this asset.
900
+ *
901
+ * Emits `TeamChanged`.
902
+ *
903
+ * Weight: `O(1)`
904
+ **/
905
+ | {
906
+ name: 'SetTeam';
907
+ params: { id: StagingXcmV5Location; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress };
908
+ }
909
+ /**
910
+ * Set the metadata for an asset.
911
+ *
912
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
913
+ *
914
+ * Funds of sender are reserved according to the formula:
915
+ * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
916
+ * account any already reserved funds.
917
+ *
918
+ * - `id`: The identifier of the asset to update.
919
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
920
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
921
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
922
+ *
923
+ * Emits `MetadataSet`.
924
+ *
925
+ * Weight: `O(1)`
926
+ **/
927
+ | { name: 'SetMetadata'; params: { id: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number } }
928
+ /**
929
+ * Clear the metadata for an asset.
930
+ *
931
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
932
+ *
933
+ * Any deposit is freed for the asset owner.
934
+ *
935
+ * - `id`: The identifier of the asset to clear.
936
+ *
937
+ * Emits `MetadataCleared`.
938
+ *
939
+ * Weight: `O(1)`
940
+ **/
941
+ | { name: 'ClearMetadata'; params: { id: StagingXcmV5Location } }
942
+ /**
943
+ * Force the metadata for an asset to some value.
944
+ *
945
+ * Origin must be ForceOrigin.
946
+ *
947
+ * Any deposit is left alone.
948
+ *
949
+ * - `id`: The identifier of the asset to update.
950
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
951
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
952
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
953
+ *
954
+ * Emits `MetadataSet`.
955
+ *
956
+ * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
957
+ **/
958
+ | {
959
+ name: 'ForceSetMetadata';
960
+ params: { id: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean };
961
+ }
962
+ /**
963
+ * Clear the metadata for an asset.
964
+ *
965
+ * Origin must be ForceOrigin.
966
+ *
967
+ * Any deposit is returned.
968
+ *
969
+ * - `id`: The identifier of the asset to clear.
970
+ *
971
+ * Emits `MetadataCleared`.
972
+ *
973
+ * Weight: `O(1)`
974
+ **/
975
+ | { name: 'ForceClearMetadata'; params: { id: StagingXcmV5Location } }
976
+ /**
977
+ * Alter the attributes of a given asset.
978
+ *
979
+ * Origin must be `ForceOrigin`.
980
+ *
981
+ * - `id`: The identifier of the asset.
982
+ * - `owner`: The new Owner of this asset.
983
+ * - `issuer`: The new Issuer of this asset.
984
+ * - `admin`: The new Admin of this asset.
985
+ * - `freezer`: The new Freezer of this asset.
986
+ * - `min_balance`: The minimum balance of this new asset that any single account must
987
+ * have. If an account's balance is reduced below this, then it collapses to zero.
988
+ * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
989
+ * value to account for the state bloat associated with its balance storage. If set to
990
+ * `true`, then non-zero balances may be stored without a `consumer` reference (and thus
991
+ * an ED in the Balances pallet or whatever else is used to control user-account state
992
+ * growth).
993
+ * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
994
+ * instructions.
995
+ *
996
+ * Emits `AssetStatusChanged` with the identity of the asset.
997
+ *
998
+ * Weight: `O(1)`
999
+ **/
1000
+ | {
1001
+ name: 'ForceAssetStatus';
1002
+ params: {
1003
+ id: StagingXcmV5Location;
1004
+ owner: MultiAddress;
1005
+ issuer: MultiAddress;
1006
+ admin: MultiAddress;
1007
+ freezer: MultiAddress;
1008
+ minBalance: bigint;
1009
+ isSufficient: boolean;
1010
+ isFrozen: boolean;
1011
+ };
1012
+ }
1013
+ /**
1014
+ * Approve an amount of asset for transfer by a delegated third-party account.
1015
+ *
1016
+ * Origin must be Signed.
1017
+ *
1018
+ * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
1019
+ * for the purpose of holding the approval. If some non-zero amount of assets is already
1020
+ * approved from signing account to `delegate`, then it is topped up or unreserved to
1021
+ * meet the right value.
1022
+ *
1023
+ * NOTE: The signing account does not need to own `amount` of assets at the point of
1024
+ * making this call.
1025
+ *
1026
+ * - `id`: The identifier of the asset.
1027
+ * - `delegate`: The account to delegate permission to transfer asset.
1028
+ * - `amount`: The amount of asset that may be transferred by `delegate`. If there is
1029
+ * already an approval in place, then this acts additively.
1030
+ *
1031
+ * Emits `ApprovedTransfer` on success.
1032
+ *
1033
+ * Weight: `O(1)`
1034
+ **/
1035
+ | { name: 'ApproveTransfer'; params: { id: StagingXcmV5Location; delegate: MultiAddress; amount: bigint } }
1036
+ /**
1037
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
1038
+ *
1039
+ * Origin must be Signed and there must be an approval in place between signer and
1040
+ * `delegate`.
1041
+ *
1042
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1043
+ *
1044
+ * - `id`: The identifier of the asset.
1045
+ * - `delegate`: The account delegated permission to transfer asset.
1046
+ *
1047
+ * Emits `ApprovalCancelled` on success.
1048
+ *
1049
+ * Weight: `O(1)`
1050
+ **/
1051
+ | { name: 'CancelApproval'; params: { id: StagingXcmV5Location; delegate: MultiAddress } }
1052
+ /**
1053
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
1054
+ *
1055
+ * Origin must be either ForceOrigin or Signed origin with the signer being the Admin
1056
+ * account of the asset `id`.
1057
+ *
1058
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1059
+ *
1060
+ * - `id`: The identifier of the asset.
1061
+ * - `delegate`: The account delegated permission to transfer asset.
1062
+ *
1063
+ * Emits `ApprovalCancelled` on success.
1064
+ *
1065
+ * Weight: `O(1)`
1066
+ **/
1067
+ | { name: 'ForceCancelApproval'; params: { id: StagingXcmV5Location; owner: MultiAddress; delegate: MultiAddress } }
1068
+ /**
1069
+ * Transfer some asset balance from a previously delegated account to some third-party
1070
+ * account.
1071
+ *
1072
+ * Origin must be Signed and there must be an approval in place by the `owner` to the
1073
+ * signer.
1074
+ *
1075
+ * If the entire amount approved for transfer is transferred, then any deposit previously
1076
+ * reserved by `approve_transfer` is unreserved.
1077
+ *
1078
+ * - `id`: The identifier of the asset.
1079
+ * - `owner`: The account which previously approved for a transfer of at least `amount` and
1080
+ * from which the asset balance will be withdrawn.
1081
+ * - `destination`: The account to which the asset balance of `amount` will be transferred.
1082
+ * - `amount`: The amount of assets to transfer.
1083
+ *
1084
+ * Emits `TransferredApproved` on success.
1085
+ *
1086
+ * Weight: `O(1)`
1087
+ **/
1088
+ | {
1089
+ name: 'TransferApproved';
1090
+ params: { id: StagingXcmV5Location; owner: MultiAddress; destination: MultiAddress; amount: bigint };
1091
+ }
1092
+ /**
1093
+ * Create an asset account for non-provider assets.
1094
+ *
1095
+ * A deposit will be taken from the signer account.
1096
+ *
1097
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1098
+ * to be taken.
1099
+ * - `id`: The identifier of the asset for the account to be created.
1100
+ *
1101
+ * Emits `Touched` event when successful.
1102
+ **/
1103
+ | { name: 'Touch'; params: { id: StagingXcmV5Location } }
1104
+ /**
1105
+ * Return the deposit (if any) of an asset account or a consumer reference (if any) of an
1106
+ * account.
1107
+ *
1108
+ * The origin must be Signed.
1109
+ *
1110
+ * - `id`: The identifier of the asset for which the caller would like the deposit
1111
+ * refunded.
1112
+ * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
1113
+ *
1114
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1115
+ * the asset account contains holds or freezes in place.
1116
+ *
1117
+ * Emits `Refunded` event when successful.
1118
+ **/
1119
+ | { name: 'Refund'; params: { id: StagingXcmV5Location; allowBurn: boolean } }
1120
+ /**
1121
+ * Sets the minimum balance of an asset.
1122
+ *
1123
+ * Only works if there aren't any accounts that are holding the asset or if
1124
+ * the new value of `min_balance` is less than the old one.
1125
+ *
1126
+ * Origin must be Signed and the sender has to be the Owner of the
1127
+ * asset `id`.
1128
+ *
1129
+ * - `id`: The identifier of the asset.
1130
+ * - `min_balance`: The new value of `min_balance`.
1131
+ *
1132
+ * Emits `AssetMinBalanceChanged` event when successful.
1133
+ **/
1134
+ | { name: 'SetMinBalance'; params: { id: StagingXcmV5Location; minBalance: bigint } }
1135
+ /**
1136
+ * Create an asset account for `who`.
1137
+ *
1138
+ * A deposit will be taken from the signer account.
1139
+ *
1140
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1141
+ * to be taken.
1142
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
1143
+ * be live.
1144
+ * - `who`: The account to be created.
1145
+ *
1146
+ * Emits `Touched` event when successful.
1147
+ **/
1148
+ | { name: 'TouchOther'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1149
+ /**
1150
+ * Return the deposit (if any) of a target asset account. Useful if you are the depositor.
1151
+ *
1152
+ * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
1153
+ * order to burn a non-zero balance of the asset, the caller must be the account and should
1154
+ * use `refund`.
1155
+ *
1156
+ * - `id`: The identifier of the asset for the account holding a deposit.
1157
+ * - `who`: The account to refund.
1158
+ *
1159
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1160
+ * the asset account contains holds or freezes in place.
1161
+ *
1162
+ * Emits `Refunded` event when successful.
1163
+ **/
1164
+ | { name: 'RefundOther'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1165
+ /**
1166
+ * Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
1167
+ *
1168
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1169
+ *
1170
+ * - `id`: The identifier of the account's asset.
1171
+ * - `who`: The account to be unblocked.
1172
+ *
1173
+ * Emits `Blocked`.
1174
+ *
1175
+ * Weight: `O(1)`
1176
+ **/
1177
+ | { name: 'Block'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1178
+ /**
1179
+ * Transfer the entire transferable balance from the caller asset account.
1180
+ *
1181
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
1182
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
1183
+ * transferred by this function. To ensure that this function results in a killed account,
1184
+ * you might need to prepare the account by removing any reference counters, storage
1185
+ * deposits, etc...
1186
+ *
1187
+ * The dispatch origin of this call must be Signed.
1188
+ *
1189
+ * - `id`: The identifier of the asset for the account holding a deposit.
1190
+ * - `dest`: The recipient of the transfer.
1191
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1192
+ * of the funds the asset account has, causing the sender asset account to be killed
1193
+ * (false), or transfer everything except at least the minimum balance, which will
1194
+ * guarantee to keep the sender asset account alive (true).
1195
+ **/
1196
+ | { name: 'TransferAll'; params: { id: StagingXcmV5Location; dest: MultiAddress; keepAlive: boolean } }
1197
+ /**
1198
+ * Sets the trusted reserve information of an asset.
1199
+ *
1200
+ * Origin must be the Owner of the asset `id`. The origin must conform to the configured
1201
+ * `CreateOrigin` or be the signed `owner` configured during asset creation.
1202
+ *
1203
+ * - `id`: The identifier of the asset.
1204
+ * - `reserves`: The full list of trusted reserves information.
1205
+ *
1206
+ * Emits `AssetMinBalanceChanged` event when successful.
1207
+ **/
1208
+ | { name: 'SetReserves'; params: { id: StagingXcmV5Location; reserves: Array<[]> } };
1209
+
1210
+ export type PalletAssetsCallLike =
1211
+ /**
1212
+ * Issue a new class of fungible assets from a public origin.
1213
+ *
1214
+ * This new asset class has no assets initially and its owner is the origin.
1215
+ *
1216
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
1217
+ *
1218
+ * Funds of sender are reserved by `AssetDeposit`.
1219
+ *
1220
+ * Parameters:
1221
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
1222
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
1223
+ * - `admin`: The admin of this class of assets. The admin is the initial address of each
1224
+ * member of the asset class's admin team.
1225
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1226
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1227
+ *
1228
+ * Emits `Created` event when successful.
1229
+ *
1230
+ * Weight: `O(1)`
1231
+ **/
1232
+ | { name: 'Create'; params: { id: StagingXcmV5Location; admin: MultiAddressLike; minBalance: bigint } }
1233
+ /**
1234
+ * Issue a new class of fungible assets from a privileged origin.
1235
+ *
1236
+ * This new asset class has no assets initially.
1237
+ *
1238
+ * The origin must conform to `ForceOrigin`.
1239
+ *
1240
+ * Unlike `create`, no funds are reserved.
1241
+ *
1242
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
1243
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
1244
+ * - `owner`: The owner of this class of assets. The owner has full superuser permissions
1245
+ * over this asset, but may later change and configure the permissions using
1246
+ * `transfer_ownership` and `set_team`.
1247
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1248
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1249
+ *
1250
+ * Emits `ForceCreated` event when successful.
1251
+ *
1252
+ * Weight: `O(1)`
1253
+ **/
1254
+ | {
1255
+ name: 'ForceCreate';
1256
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint };
1257
+ }
1258
+ /**
1259
+ * Start the process of destroying a fungible asset class.
1260
+ *
1261
+ * `start_destroy` is the first in a series of extrinsics that should be called, to allow
1262
+ * destruction of an asset class.
1263
+ *
1264
+ * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
1265
+ *
1266
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1267
+ * asset.
1268
+ *
1269
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1270
+ * an account contains holds or freezes in place.
1271
+ **/
1272
+ | { name: 'StartDestroy'; params: { id: StagingXcmV5Location } }
1273
+ /**
1274
+ * Destroy all accounts associated with a given asset.
1275
+ *
1276
+ * `destroy_accounts` should only be called after `start_destroy` has been called, and the
1277
+ * asset is in a `Destroying` state.
1278
+ *
1279
+ * Due to weight restrictions, this function may need to be called multiple times to fully
1280
+ * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
1281
+ *
1282
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1283
+ * asset.
1284
+ *
1285
+ * Each call emits the `Event::DestroyedAccounts` event.
1286
+ **/
1287
+ | { name: 'DestroyAccounts'; params: { id: StagingXcmV5Location } }
1288
+ /**
1289
+ * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
1290
+ *
1291
+ * `destroy_approvals` should only be called after `start_destroy` has been called, and the
1292
+ * asset is in a `Destroying` state.
1293
+ *
1294
+ * Due to weight restrictions, this function may need to be called multiple times to fully
1295
+ * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
1296
+ *
1297
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1298
+ * asset.
1299
+ *
1300
+ * Each call emits the `Event::DestroyedApprovals` event.
1301
+ **/
1302
+ | { name: 'DestroyApprovals'; params: { id: StagingXcmV5Location } }
1303
+ /**
1304
+ * Complete destroying asset and unreserve currency.
1305
+ *
1306
+ * `finish_destroy` should only be called after `start_destroy` has been called, and the
1307
+ * asset is in a `Destroying` state. All accounts or approvals should be destroyed before
1308
+ * hand.
1309
+ *
1310
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1311
+ * asset.
1312
+ *
1313
+ * Each successful call emits the `Event::Destroyed` event.
1314
+ **/
1315
+ | { name: 'FinishDestroy'; params: { id: StagingXcmV5Location } }
1316
+ /**
1317
+ * Mint assets of a particular class.
1318
+ *
1319
+ * The origin must be Signed and the sender must be the Issuer of the asset `id`.
1320
+ *
1321
+ * - `id`: The identifier of the asset to have some amount minted.
1322
+ * - `beneficiary`: The account to be credited with the minted assets.
1323
+ * - `amount`: The amount of the asset to be minted.
1324
+ *
1325
+ * Emits `Issued` event when successful.
1326
+ *
1327
+ * Weight: `O(1)`
1328
+ * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
1329
+ **/
1330
+ | { name: 'Mint'; params: { id: StagingXcmV5Location; beneficiary: MultiAddressLike; amount: bigint } }
1331
+ /**
1332
+ * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
1333
+ *
1334
+ * Origin must be Signed and the sender should be the Manager of the asset `id`.
1335
+ *
1336
+ * Bails with `NoAccount` if the `who` is already dead.
1337
+ *
1338
+ * - `id`: The identifier of the asset to have some amount burned.
1339
+ * - `who`: The account to be debited from.
1340
+ * - `amount`: The maximum amount by which `who`'s balance should be reduced.
1341
+ *
1342
+ * Emits `Burned` with the actual amount burned. If this takes the balance to below the
1343
+ * minimum for the asset, then the amount burned is increased to take it to zero.
1344
+ *
1345
+ * Weight: `O(1)`
1346
+ * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
1347
+ **/
1348
+ | { name: 'Burn'; params: { id: StagingXcmV5Location; who: MultiAddressLike; amount: bigint } }
1349
+ /**
1350
+ * Move some assets from the sender account to another.
1351
+ *
1352
+ * Origin must be Signed.
1353
+ *
1354
+ * - `id`: The identifier of the asset to have some amount transferred.
1355
+ * - `target`: The account to be credited.
1356
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
1357
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
1358
+ * the case that the transfer would otherwise take the sender balance above zero but below
1359
+ * the minimum balance. Must be greater than zero.
1360
+ *
1361
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1362
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1363
+ * to zero.
1364
+ *
1365
+ * Weight: `O(1)`
1366
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
1367
+ * `target`.
1368
+ **/
1369
+ | { name: 'Transfer'; params: { id: StagingXcmV5Location; target: MultiAddressLike; amount: bigint } }
1370
+ /**
1371
+ * Move some assets from the sender account to another, keeping the sender account alive.
1372
+ *
1373
+ * Origin must be Signed.
1374
+ *
1375
+ * - `id`: The identifier of the asset to have some amount transferred.
1376
+ * - `target`: The account to be credited.
1377
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
1378
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
1379
+ * the case that the transfer would otherwise take the sender balance above zero but below
1380
+ * the minimum balance. Must be greater than zero.
1381
+ *
1382
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1383
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1384
+ * to zero.
1385
+ *
1386
+ * Weight: `O(1)`
1387
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
1388
+ * `target`.
1389
+ **/
1390
+ | { name: 'TransferKeepAlive'; params: { id: StagingXcmV5Location; target: MultiAddressLike; amount: bigint } }
1391
+ /**
1392
+ * Move some assets from one account to another.
1393
+ *
1394
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1395
+ *
1396
+ * - `id`: The identifier of the asset to have some amount transferred.
1397
+ * - `source`: The account to be debited.
1398
+ * - `dest`: The account to be credited.
1399
+ * - `amount`: The amount by which the `source`'s balance of assets should be reduced and
1400
+ * `dest`'s balance increased. The amount actually transferred may be slightly greater in
1401
+ * the case that the transfer would otherwise take the `source` balance above zero but
1402
+ * below the minimum balance. Must be greater than zero.
1403
+ *
1404
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1405
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1406
+ * to zero.
1407
+ *
1408
+ * Weight: `O(1)`
1409
+ * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
1410
+ * `dest`.
1411
+ **/
1412
+ | {
1413
+ name: 'ForceTransfer';
1414
+ params: { id: StagingXcmV5Location; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint };
1415
+ }
1416
+ /**
1417
+ * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
1418
+ * must already exist as an entry in `Account`s of the asset. If you want to freeze an
1419
+ * account that does not have an entry, use `touch_other` first.
1420
+ *
1421
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1422
+ *
1423
+ * - `id`: The identifier of the asset to be frozen.
1424
+ * - `who`: The account to be frozen.
1425
+ *
1426
+ * Emits `Frozen`.
1427
+ *
1428
+ * Weight: `O(1)`
1429
+ **/
1430
+ | { name: 'Freeze'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
1431
+ /**
1432
+ * Allow unprivileged transfers to and from an account again.
1433
+ *
1434
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1435
+ *
1436
+ * - `id`: The identifier of the asset to be frozen.
1437
+ * - `who`: The account to be unfrozen.
1438
+ *
1439
+ * Emits `Thawed`.
1440
+ *
1441
+ * Weight: `O(1)`
1442
+ **/
1443
+ | { name: 'Thaw'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
1444
+ /**
1445
+ * Disallow further unprivileged transfers for the asset class.
1446
+ *
1447
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1448
+ *
1449
+ * - `id`: The identifier of the asset to be frozen.
1450
+ *
1451
+ * Emits `Frozen`.
1452
+ *
1453
+ * Weight: `O(1)`
1454
+ **/
1455
+ | { name: 'FreezeAsset'; params: { id: StagingXcmV5Location } }
1456
+ /**
1457
+ * Allow unprivileged transfers for the asset again.
1458
+ *
1459
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1460
+ *
1461
+ * - `id`: The identifier of the asset to be thawed.
1462
+ *
1463
+ * Emits `Thawed`.
1464
+ *
1465
+ * Weight: `O(1)`
1466
+ **/
1467
+ | { name: 'ThawAsset'; params: { id: StagingXcmV5Location } }
1468
+ /**
1469
+ * Change the Owner of an asset.
1470
+ *
1471
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1472
+ *
1473
+ * - `id`: The identifier of the asset.
1474
+ * - `owner`: The new Owner of this asset.
1475
+ *
1476
+ * Emits `OwnerChanged`.
1477
+ *
1478
+ * Weight: `O(1)`
1479
+ **/
1480
+ | { name: 'TransferOwnership'; params: { id: StagingXcmV5Location; owner: MultiAddressLike } }
1481
+ /**
1482
+ * Change the Issuer, Admin and Freezer of an asset.
1483
+ *
1484
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1485
+ *
1486
+ * - `id`: The identifier of the asset to be frozen.
1487
+ * - `issuer`: The new Issuer of this asset.
1488
+ * - `admin`: The new Admin of this asset.
1489
+ * - `freezer`: The new Freezer of this asset.
1490
+ *
1491
+ * Emits `TeamChanged`.
1492
+ *
1493
+ * Weight: `O(1)`
1494
+ **/
1495
+ | {
1496
+ name: 'SetTeam';
1497
+ params: {
1498
+ id: StagingXcmV5Location;
1499
+ issuer: MultiAddressLike;
1500
+ admin: MultiAddressLike;
1501
+ freezer: MultiAddressLike;
1502
+ };
1503
+ }
1504
+ /**
1505
+ * Set the metadata for an asset.
1506
+ *
1507
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1508
+ *
1509
+ * Funds of sender are reserved according to the formula:
1510
+ * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
1511
+ * account any already reserved funds.
1512
+ *
1513
+ * - `id`: The identifier of the asset to update.
1514
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
1515
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
1516
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
1517
+ *
1518
+ * Emits `MetadataSet`.
1519
+ *
1520
+ * Weight: `O(1)`
1521
+ **/
1522
+ | { name: 'SetMetadata'; params: { id: StagingXcmV5Location; name: BytesLike; symbol: BytesLike; decimals: number } }
1523
+ /**
1524
+ * Clear the metadata for an asset.
1525
+ *
1526
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1527
+ *
1528
+ * Any deposit is freed for the asset owner.
1529
+ *
1530
+ * - `id`: The identifier of the asset to clear.
1531
+ *
1532
+ * Emits `MetadataCleared`.
1533
+ *
1534
+ * Weight: `O(1)`
1535
+ **/
1536
+ | { name: 'ClearMetadata'; params: { id: StagingXcmV5Location } }
1537
+ /**
1538
+ * Force the metadata for an asset to some value.
1539
+ *
1540
+ * Origin must be ForceOrigin.
1541
+ *
1542
+ * Any deposit is left alone.
1543
+ *
1544
+ * - `id`: The identifier of the asset to update.
1545
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
1546
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
1547
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
1548
+ *
1549
+ * Emits `MetadataSet`.
1550
+ *
1551
+ * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
1552
+ **/
1553
+ | {
1554
+ name: 'ForceSetMetadata';
1555
+ params: { id: StagingXcmV5Location; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean };
1556
+ }
1557
+ /**
1558
+ * Clear the metadata for an asset.
1559
+ *
1560
+ * Origin must be ForceOrigin.
1561
+ *
1562
+ * Any deposit is returned.
1563
+ *
1564
+ * - `id`: The identifier of the asset to clear.
1565
+ *
1566
+ * Emits `MetadataCleared`.
1567
+ *
1568
+ * Weight: `O(1)`
1569
+ **/
1570
+ | { name: 'ForceClearMetadata'; params: { id: StagingXcmV5Location } }
1571
+ /**
1572
+ * Alter the attributes of a given asset.
1573
+ *
1574
+ * Origin must be `ForceOrigin`.
1575
+ *
1576
+ * - `id`: The identifier of the asset.
1577
+ * - `owner`: The new Owner of this asset.
1578
+ * - `issuer`: The new Issuer of this asset.
1579
+ * - `admin`: The new Admin of this asset.
1580
+ * - `freezer`: The new Freezer of this asset.
1581
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1582
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1583
+ * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
1584
+ * value to account for the state bloat associated with its balance storage. If set to
1585
+ * `true`, then non-zero balances may be stored without a `consumer` reference (and thus
1586
+ * an ED in the Balances pallet or whatever else is used to control user-account state
1587
+ * growth).
1588
+ * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
1589
+ * instructions.
1590
+ *
1591
+ * Emits `AssetStatusChanged` with the identity of the asset.
1592
+ *
1593
+ * Weight: `O(1)`
1594
+ **/
1595
+ | {
1596
+ name: 'ForceAssetStatus';
1597
+ params: {
1598
+ id: StagingXcmV5Location;
1599
+ owner: MultiAddressLike;
1600
+ issuer: MultiAddressLike;
1601
+ admin: MultiAddressLike;
1602
+ freezer: MultiAddressLike;
1603
+ minBalance: bigint;
1604
+ isSufficient: boolean;
1605
+ isFrozen: boolean;
1606
+ };
1607
+ }
1608
+ /**
1609
+ * Approve an amount of asset for transfer by a delegated third-party account.
459
1610
  *
460
- * 99% of the time you want [`transfer_allow_death`] instead.
1611
+ * Origin must be Signed.
461
1612
  *
462
- * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1613
+ * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
1614
+ * for the purpose of holding the approval. If some non-zero amount of assets is already
1615
+ * approved from signing account to `delegate`, then it is topped up or unreserved to
1616
+ * meet the right value.
1617
+ *
1618
+ * NOTE: The signing account does not need to own `amount` of assets at the point of
1619
+ * making this call.
1620
+ *
1621
+ * - `id`: The identifier of the asset.
1622
+ * - `delegate`: The account to delegate permission to transfer asset.
1623
+ * - `amount`: The amount of asset that may be transferred by `delegate`. If there is
1624
+ * already an approval in place, then this acts additively.
1625
+ *
1626
+ * Emits `ApprovedTransfer` on success.
1627
+ *
1628
+ * Weight: `O(1)`
463
1629
  **/
464
- | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } }
1630
+ | { name: 'ApproveTransfer'; params: { id: StagingXcmV5Location; delegate: MultiAddressLike; amount: bigint } }
465
1631
  /**
466
- * Transfer the entire transferable balance from the caller account.
1632
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
467
1633
  *
468
- * NOTE: This function only attempts to transfer _transferable_ balances. This means that
469
- * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
470
- * transferred by this function. To ensure that this function results in a killed account,
471
- * you might need to prepare the account by removing any reference counters, storage
472
- * deposits, etc...
1634
+ * Origin must be Signed and there must be an approval in place between signer and
1635
+ * `delegate`.
473
1636
  *
474
- * The dispatch origin of this call must be Signed.
1637
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
475
1638
  *
476
- * - `dest`: The recipient of the transfer.
477
- * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
478
- * of the funds the account has, causing the sender account to be killed (false), or
479
- * transfer everything except at least the existential deposit, which will guarantee to
480
- * keep the sender account alive (true).
1639
+ * - `id`: The identifier of the asset.
1640
+ * - `delegate`: The account delegated permission to transfer asset.
1641
+ *
1642
+ * Emits `ApprovalCancelled` on success.
1643
+ *
1644
+ * Weight: `O(1)`
481
1645
  **/
482
- | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } }
1646
+ | { name: 'CancelApproval'; params: { id: StagingXcmV5Location; delegate: MultiAddressLike } }
483
1647
  /**
484
- * Unreserve some balance from a user by force.
1648
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
485
1649
  *
486
- * Can only be called by ROOT.
1650
+ * Origin must be either ForceOrigin or Signed origin with the signer being the Admin
1651
+ * account of the asset `id`.
1652
+ *
1653
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1654
+ *
1655
+ * - `id`: The identifier of the asset.
1656
+ * - `delegate`: The account delegated permission to transfer asset.
1657
+ *
1658
+ * Emits `ApprovalCancelled` on success.
1659
+ *
1660
+ * Weight: `O(1)`
487
1661
  **/
488
- | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } }
1662
+ | {
1663
+ name: 'ForceCancelApproval';
1664
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; delegate: MultiAddressLike };
1665
+ }
489
1666
  /**
490
- * Upgrade a specified account.
1667
+ * Transfer some asset balance from a previously delegated account to some third-party
1668
+ * account.
491
1669
  *
492
- * - `origin`: Must be `Signed`.
493
- * - `who`: The account to be upgraded.
1670
+ * Origin must be Signed and there must be an approval in place by the `owner` to the
1671
+ * signer.
494
1672
  *
495
- * This will waive the transaction fee if at least all but 10% of the accounts needed to
496
- * be upgraded. (We let some not have to be upgraded just in order to allow for the
497
- * possibility of churn).
1673
+ * If the entire amount approved for transfer is transferred, then any deposit previously
1674
+ * reserved by `approve_transfer` is unreserved.
1675
+ *
1676
+ * - `id`: The identifier of the asset.
1677
+ * - `owner`: The account which previously approved for a transfer of at least `amount` and
1678
+ * from which the asset balance will be withdrawn.
1679
+ * - `destination`: The account to which the asset balance of `amount` will be transferred.
1680
+ * - `amount`: The amount of assets to transfer.
1681
+ *
1682
+ * Emits `TransferredApproved` on success.
1683
+ *
1684
+ * Weight: `O(1)`
498
1685
  **/
499
- | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
1686
+ | {
1687
+ name: 'TransferApproved';
1688
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint };
1689
+ }
500
1690
  /**
501
- * Set the regular balance of a given account.
1691
+ * Create an asset account for non-provider assets.
502
1692
  *
503
- * The dispatch origin for this call is `root`.
1693
+ * A deposit will be taken from the signer account.
1694
+ *
1695
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1696
+ * to be taken.
1697
+ * - `id`: The identifier of the asset for the account to be created.
1698
+ *
1699
+ * Emits `Touched` event when successful.
504
1700
  **/
505
- | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } }
1701
+ | { name: 'Touch'; params: { id: StagingXcmV5Location } }
506
1702
  /**
507
- * Adjust the total issuance in a saturating way.
1703
+ * Return the deposit (if any) of an asset account or a consumer reference (if any) of an
1704
+ * account.
508
1705
  *
509
- * Can only be called by root and always needs a positive `delta`.
1706
+ * The origin must be Signed.
510
1707
  *
511
- * # Example
1708
+ * - `id`: The identifier of the asset for which the caller would like the deposit
1709
+ * refunded.
1710
+ * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
1711
+ *
1712
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1713
+ * the asset account contains holds or freezes in place.
1714
+ *
1715
+ * Emits `Refunded` event when successful.
512
1716
  **/
513
- | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
1717
+ | { name: 'Refund'; params: { id: StagingXcmV5Location; allowBurn: boolean } }
514
1718
  /**
515
- * Burn the specified liquid free balance from the origin account.
1719
+ * Sets the minimum balance of an asset.
516
1720
  *
517
- * If the origin's account ends up below the existential deposit as a result
518
- * of the burn and `keep_alive` is false, the account will be reaped.
1721
+ * Only works if there aren't any accounts that are holding the asset or if
1722
+ * the new value of `min_balance` is less than the old one.
519
1723
  *
520
- * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
521
- * this `burn` operation will reduce total issuance by the amount _burned_.
1724
+ * Origin must be Signed and the sender has to be the Owner of the
1725
+ * asset `id`.
1726
+ *
1727
+ * - `id`: The identifier of the asset.
1728
+ * - `min_balance`: The new value of `min_balance`.
1729
+ *
1730
+ * Emits `AssetMinBalanceChanged` event when successful.
522
1731
  **/
523
- | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
524
-
525
- export type PalletBalancesCallLike =
1732
+ | { name: 'SetMinBalance'; params: { id: StagingXcmV5Location; minBalance: bigint } }
526
1733
  /**
527
- * Transfer some liquid free balance to another account.
1734
+ * Create an asset account for `who`.
528
1735
  *
529
- * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
530
- * If the sender's account is below the existential deposit as a result
531
- * of the transfer, the account will be reaped.
1736
+ * A deposit will be taken from the signer account.
532
1737
  *
533
- * The dispatch origin for this call must be `Signed` by the transactor.
1738
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1739
+ * to be taken.
1740
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
1741
+ * be live.
1742
+ * - `who`: The account to be created.
1743
+ *
1744
+ * Emits `Touched` event when successful.
534
1745
  **/
535
- | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } }
1746
+ | { name: 'TouchOther'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
536
1747
  /**
537
- * Exactly as `transfer_allow_death`, except the origin must be root and the source account
538
- * may be specified.
1748
+ * Return the deposit (if any) of a target asset account. Useful if you are the depositor.
1749
+ *
1750
+ * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
1751
+ * order to burn a non-zero balance of the asset, the caller must be the account and should
1752
+ * use `refund`.
1753
+ *
1754
+ * - `id`: The identifier of the asset for the account holding a deposit.
1755
+ * - `who`: The account to refund.
1756
+ *
1757
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1758
+ * the asset account contains holds or freezes in place.
1759
+ *
1760
+ * Emits `Refunded` event when successful.
539
1761
  **/
540
- | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } }
1762
+ | { name: 'RefundOther'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
541
1763
  /**
542
- * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
543
- * kill the origin account.
1764
+ * Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
544
1765
  *
545
- * 99% of the time you want [`transfer_allow_death`] instead.
1766
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
546
1767
  *
547
- * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1768
+ * - `id`: The identifier of the account's asset.
1769
+ * - `who`: The account to be unblocked.
1770
+ *
1771
+ * Emits `Blocked`.
1772
+ *
1773
+ * Weight: `O(1)`
548
1774
  **/
549
- | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } }
1775
+ | { name: 'Block'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
550
1776
  /**
551
- * Transfer the entire transferable balance from the caller account.
1777
+ * Transfer the entire transferable balance from the caller asset account.
552
1778
  *
553
1779
  * NOTE: This function only attempts to transfer _transferable_ balances. This means that
554
- * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
1780
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
555
1781
  * transferred by this function. To ensure that this function results in a killed account,
556
1782
  * you might need to prepare the account by removing any reference counters, storage
557
1783
  * deposits, etc...
558
1784
  *
559
1785
  * The dispatch origin of this call must be Signed.
560
1786
  *
1787
+ * - `id`: The identifier of the asset for the account holding a deposit.
561
1788
  * - `dest`: The recipient of the transfer.
562
1789
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
563
- * of the funds the account has, causing the sender account to be killed (false), or
564
- * transfer everything except at least the existential deposit, which will guarantee to
565
- * keep the sender account alive (true).
1790
+ * of the funds the asset account has, causing the sender asset account to be killed
1791
+ * (false), or transfer everything except at least the minimum balance, which will
1792
+ * guarantee to keep the sender asset account alive (true).
566
1793
  **/
567
- | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } }
1794
+ | { name: 'TransferAll'; params: { id: StagingXcmV5Location; dest: MultiAddressLike; keepAlive: boolean } }
568
1795
  /**
569
- * Unreserve some balance from a user by force.
1796
+ * Sets the trusted reserve information of an asset.
570
1797
  *
571
- * Can only be called by ROOT.
1798
+ * Origin must be the Owner of the asset `id`. The origin must conform to the configured
1799
+ * `CreateOrigin` or be the signed `owner` configured during asset creation.
1800
+ *
1801
+ * - `id`: The identifier of the asset.
1802
+ * - `reserves`: The full list of trusted reserves information.
1803
+ *
1804
+ * Emits `AssetMinBalanceChanged` event when successful.
572
1805
  **/
573
- | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } }
1806
+ | { name: 'SetReserves'; params: { id: StagingXcmV5Location; reserves: Array<[]> } };
1807
+
1808
+ export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
1809
+
1810
+ export type StagingXcmV5Junctions =
1811
+ | { type: 'Here' }
1812
+ | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
1813
+ | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
1814
+ | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
1815
+ | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
1816
+ | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
1817
+ | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
1818
+ | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
1819
+ | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
1820
+
1821
+ export type StagingXcmV5Junction =
1822
+ | { type: 'Parachain'; value: number }
1823
+ | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
1824
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
1825
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
1826
+ | { type: 'PalletInstance'; value: number }
1827
+ | { type: 'GeneralIndex'; value: bigint }
1828
+ | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1829
+ | { type: 'OnlyChild' }
1830
+ | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1831
+ | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
1832
+
1833
+ export type StagingXcmV5JunctionNetworkId =
1834
+ | { type: 'ByGenesis'; value: FixedBytes<32> }
1835
+ | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1836
+ | { type: 'Polkadot' }
1837
+ | { type: 'Kusama' }
1838
+ | { type: 'Ethereum'; value: { chainId: bigint } }
1839
+ | { type: 'BitcoinCore' }
1840
+ | { type: 'BitcoinCash' }
1841
+ | { type: 'PolkadotBulletin' };
1842
+
1843
+ export type XcmV3JunctionBodyId =
1844
+ | { type: 'Unit' }
1845
+ | { type: 'Moniker'; value: FixedBytes<4> }
1846
+ | { type: 'Index'; value: number }
1847
+ | { type: 'Executive' }
1848
+ | { type: 'Technical' }
1849
+ | { type: 'Legislative' }
1850
+ | { type: 'Judicial' }
1851
+ | { type: 'Defense' }
1852
+ | { type: 'Administration' }
1853
+ | { type: 'Treasury' };
1854
+
1855
+ export type XcmV3JunctionBodyPart =
1856
+ | { type: 'Voice' }
1857
+ | { type: 'Members'; value: { count: number } }
1858
+ | { type: 'Fraction'; value: { nom: number; denom: number } }
1859
+ | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
1860
+ | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
1861
+
1862
+ /**
1863
+ * Contains a variant per dispatchable extrinsic that this pallet has.
1864
+ **/
1865
+ export type PalletAssetRateCall =
574
1866
  /**
575
- * Upgrade a specified account.
1867
+ * Initialize a conversion rate to native balance for the given asset.
576
1868
  *
577
- * - `origin`: Must be `Signed`.
578
- * - `who`: The account to be upgraded.
579
- *
580
- * This will waive the transaction fee if at least all but 10% of the accounts needed to
581
- * be upgraded. (We let some not have to be upgraded just in order to allow for the
582
- * possibility of churn).
1869
+ * ## Complexity
1870
+ * - O(1)
583
1871
  **/
584
- | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
1872
+ | { name: 'Create'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
585
1873
  /**
586
- * Set the regular balance of a given account.
1874
+ * Update the conversion rate to native balance for the given asset.
587
1875
  *
588
- * The dispatch origin for this call is `root`.
1876
+ * ## Complexity
1877
+ * - O(1)
589
1878
  **/
590
- | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } }
1879
+ | { name: 'Update'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
591
1880
  /**
592
- * Adjust the total issuance in a saturating way.
1881
+ * Remove an existing conversion rate to native balance for the given asset.
593
1882
  *
594
- * Can only be called by root and always needs a positive `delta`.
1883
+ * ## Complexity
1884
+ * - O(1)
1885
+ **/
1886
+ | { name: 'Remove'; params: { assetKind: StagingXcmV5Location } };
1887
+
1888
+ export type PalletAssetRateCallLike =
1889
+ /**
1890
+ * Initialize a conversion rate to native balance for the given asset.
595
1891
  *
596
- * # Example
1892
+ * ## Complexity
1893
+ * - O(1)
597
1894
  **/
598
- | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
1895
+ | { name: 'Create'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
599
1896
  /**
600
- * Burn the specified liquid free balance from the origin account.
1897
+ * Update the conversion rate to native balance for the given asset.
601
1898
  *
602
- * If the origin's account ends up below the existential deposit as a result
603
- * of the burn and `keep_alive` is false, the account will be reaped.
1899
+ * ## Complexity
1900
+ * - O(1)
1901
+ **/
1902
+ | { name: 'Update'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
1903
+ /**
1904
+ * Remove an existing conversion rate to native balance for the given asset.
604
1905
  *
605
- * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
606
- * this `burn` operation will reduce total issuance by the amount _burned_.
1906
+ * ## Complexity
1907
+ * - O(1)
607
1908
  **/
608
- | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
609
-
610
- export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
1909
+ | { name: 'Remove'; params: { assetKind: StagingXcmV5Location } };
611
1910
 
612
1911
  /**
613
1912
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -1663,93 +2962,39 @@ export type XcmV3JunctionNetworkId =
1663
2962
  | { type: 'BitcoinCash' }
1664
2963
  | { type: 'PolkadotBulletin' };
1665
2964
 
1666
- export type XcmV3JunctionBodyId =
1667
- | { type: 'Unit' }
1668
- | { type: 'Moniker'; value: FixedBytes<4> }
1669
- | { type: 'Index'; value: number }
1670
- | { type: 'Executive' }
1671
- | { type: 'Technical' }
1672
- | { type: 'Legislative' }
1673
- | { type: 'Judicial' }
1674
- | { type: 'Defense' }
1675
- | { type: 'Administration' }
1676
- | { type: 'Treasury' };
1677
-
1678
- export type XcmV3JunctionBodyPart =
1679
- | { type: 'Voice' }
1680
- | { type: 'Members'; value: { count: number } }
1681
- | { type: 'Fraction'; value: { nom: number; denom: number } }
1682
- | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
1683
- | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
1684
-
1685
2965
  export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
1686
2966
 
1687
2967
  export type StagingXcmV4Junctions =
1688
2968
  | { type: 'Here' }
1689
2969
  | { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
1690
2970
  | { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
1691
- | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
1692
- | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
1693
- | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
1694
- | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
1695
- | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
1696
- | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
1697
-
1698
- export type StagingXcmV4Junction =
1699
- | { type: 'Parachain'; value: number }
1700
- | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
1701
- | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
1702
- | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
1703
- | { type: 'PalletInstance'; value: number }
1704
- | { type: 'GeneralIndex'; value: bigint }
1705
- | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1706
- | { type: 'OnlyChild' }
1707
- | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1708
- | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
1709
-
1710
- export type StagingXcmV4JunctionNetworkId =
1711
- | { type: 'ByGenesis'; value: FixedBytes<32> }
1712
- | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1713
- | { type: 'Polkadot' }
1714
- | { type: 'Kusama' }
1715
- | { type: 'Westend' }
1716
- | { type: 'Rococo' }
1717
- | { type: 'Wococo' }
1718
- | { type: 'Ethereum'; value: { chainId: bigint } }
1719
- | { type: 'BitcoinCore' }
1720
- | { type: 'BitcoinCash' }
1721
- | { type: 'PolkadotBulletin' };
1722
-
1723
- export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
1724
-
1725
- export type StagingXcmV5Junctions =
1726
- | { type: 'Here' }
1727
- | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
1728
- | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
1729
- | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
1730
- | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
1731
- | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
1732
- | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
1733
- | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
1734
- | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
2971
+ | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
2972
+ | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
2973
+ | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
2974
+ | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
2975
+ | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
2976
+ | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
1735
2977
 
1736
- export type StagingXcmV5Junction =
2978
+ export type StagingXcmV4Junction =
1737
2979
  | { type: 'Parachain'; value: number }
1738
- | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
1739
- | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
1740
- | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
2980
+ | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
2981
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
2982
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
1741
2983
  | { type: 'PalletInstance'; value: number }
1742
2984
  | { type: 'GeneralIndex'; value: bigint }
1743
2985
  | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1744
2986
  | { type: 'OnlyChild' }
1745
2987
  | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1746
- | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
2988
+ | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
1747
2989
 
1748
- export type StagingXcmV5JunctionNetworkId =
2990
+ export type StagingXcmV4JunctionNetworkId =
1749
2991
  | { type: 'ByGenesis'; value: FixedBytes<32> }
1750
2992
  | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1751
2993
  | { type: 'Polkadot' }
1752
2994
  | { type: 'Kusama' }
2995
+ | { type: 'Westend' }
2996
+ | { type: 'Rococo' }
2997
+ | { type: 'Wococo' }
1753
2998
  | { type: 'Ethereum'; value: { chainId: bigint } }
1754
2999
  | { type: 'BitcoinCore' }
1755
3000
  | { type: 'BitcoinCash' }
@@ -3949,7 +5194,8 @@ export type PalletIdentityJudgement =
3949
5194
  export type SpRuntimeMultiSignature =
3950
5195
  | { type: 'Ed25519'; value: FixedBytes<64> }
3951
5196
  | { type: 'Sr25519'; value: FixedBytes<64> }
3952
- | { type: 'Ecdsa'; value: FixedBytes<65> };
5197
+ | { type: 'Ecdsa'; value: FixedBytes<65> }
5198
+ | { type: 'Eth'; value: FixedBytes<65> };
3953
5199
 
3954
5200
  export type FrameSystemExtensionsCheckNonZeroSender = {};
3955
5201
 
@@ -3965,7 +5211,7 @@ export type FrameSystemExtensionsCheckNonce = number;
3965
5211
 
3966
5212
  export type FrameSystemExtensionsCheckWeight = {};
3967
5213
 
3968
- export type PalletTransactionPaymentChargeTransactionPayment = bigint;
5214
+ export type PalletAssetTxPaymentChargeAssetTxPayment = { tip: bigint; assetId?: StagingXcmV5Location | undefined };
3969
5215
 
3970
5216
  export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
3971
5217
 
@@ -4002,6 +5248,10 @@ export type PeoplePolkadotRuntimeRuntimeEvent =
4002
5248
  | { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
4003
5249
  | { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
4004
5250
  | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
5251
+ | { pallet: 'Assets'; palletEvent: PalletAssetsEvent }
5252
+ | { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
5253
+ | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetTxPaymentEvent }
5254
+ | { pallet: 'AssetsHolder'; palletEvent: PalletAssetsHolderEvent }
4005
5255
  | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
4006
5256
  | { pallet: 'Session'; palletEvent: PalletSessionEvent }
4007
5257
  | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
@@ -4274,10 +5524,18 @@ export type PalletBalancesEvent =
4274
5524
  * Some amount was minted into an account.
4275
5525
  **/
4276
5526
  | { name: 'Minted'; data: { who: AccountId32; amount: bigint } }
5527
+ /**
5528
+ * Some credit was balanced and added to the TotalIssuance.
5529
+ **/
5530
+ | { name: 'MintedCredit'; data: { amount: bigint } }
4277
5531
  /**
4278
5532
  * Some amount was burned from an account.
4279
5533
  **/
4280
5534
  | { name: 'Burned'; data: { who: AccountId32; amount: bigint } }
5535
+ /**
5536
+ * Some debt has been dropped from the Total Issuance.
5537
+ **/
5538
+ | { name: 'BurnedDebt'; data: { amount: bigint } }
4281
5539
  /**
4282
5540
  * Some amount was suspended from an account (it can be restored later).
4283
5541
  **/
@@ -4318,6 +5576,37 @@ export type PalletBalancesEvent =
4318
5576
  * The `TotalIssuance` was forcefully changed.
4319
5577
  **/
4320
5578
  | { name: 'TotalIssuanceForced'; data: { old: bigint; new: bigint } }
5579
+ /**
5580
+ * Some balance was placed on hold.
5581
+ **/
5582
+ | { name: 'Held'; data: { reason: PeoplePolkadotRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
5583
+ /**
5584
+ * Held balance was burned from an account.
5585
+ **/
5586
+ | { name: 'BurnedHeld'; data: { reason: PeoplePolkadotRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
5587
+ /**
5588
+ * A transfer of `amount` on hold from `source` to `dest` was initiated.
5589
+ **/
5590
+ | {
5591
+ name: 'TransferOnHold';
5592
+ data: { reason: PeoplePolkadotRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint };
5593
+ }
5594
+ /**
5595
+ * The `transferred` balance is placed on hold at the `dest` account.
5596
+ **/
5597
+ | {
5598
+ name: 'TransferAndHold';
5599
+ data: {
5600
+ reason: PeoplePolkadotRuntimeRuntimeHoldReason;
5601
+ source: AccountId32;
5602
+ dest: AccountId32;
5603
+ transferred: bigint;
5604
+ };
5605
+ }
5606
+ /**
5607
+ * Some balance was released from hold.
5608
+ **/
5609
+ | { name: 'Released'; data: { reason: PeoplePolkadotRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint } }
4321
5610
  /**
4322
5611
  * An unexpected/defensive event was triggered.
4323
5612
  **/
@@ -4325,6 +5614,14 @@ export type PalletBalancesEvent =
4325
5614
 
4326
5615
  export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved';
4327
5616
 
5617
+ export type PeoplePolkadotRuntimeRuntimeHoldReason =
5618
+ | { type: 'Session'; value: PalletSessionHoldReason }
5619
+ | { type: 'PolkadotXcm'; value: PalletXcmHoldReason };
5620
+
5621
+ export type PalletSessionHoldReason = 'Keys';
5622
+
5623
+ export type PalletXcmHoldReason = 'AuthorizeAlias';
5624
+
4328
5625
  export type PalletBalancesUnexpectedKind = 'BalanceUpdated' | 'FailedToMutateAccount';
4329
5626
 
4330
5627
  /**
@@ -4337,6 +5634,210 @@ export type PalletTransactionPaymentEvent =
4337
5634
  **/
4338
5635
  { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } };
4339
5636
 
5637
+ /**
5638
+ * The `Event` enum of this pallet
5639
+ **/
5640
+ export type PalletAssetsEvent =
5641
+ /**
5642
+ * Some asset class was created.
5643
+ **/
5644
+ | { name: 'Created'; data: { assetId: StagingXcmV5Location; creator: AccountId32; owner: AccountId32 } }
5645
+ /**
5646
+ * Some assets were issued.
5647
+ **/
5648
+ | { name: 'Issued'; data: { assetId: StagingXcmV5Location; owner: AccountId32; amount: bigint } }
5649
+ /**
5650
+ * Some assets were transferred.
5651
+ **/
5652
+ | { name: 'Transferred'; data: { assetId: StagingXcmV5Location; from: AccountId32; to: AccountId32; amount: bigint } }
5653
+ /**
5654
+ * Some assets were destroyed.
5655
+ **/
5656
+ | { name: 'Burned'; data: { assetId: StagingXcmV5Location; owner: AccountId32; balance: bigint } }
5657
+ /**
5658
+ * The management team changed.
5659
+ **/
5660
+ | {
5661
+ name: 'TeamChanged';
5662
+ data: { assetId: StagingXcmV5Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 };
5663
+ }
5664
+ /**
5665
+ * The owner changed.
5666
+ **/
5667
+ | { name: 'OwnerChanged'; data: { assetId: StagingXcmV5Location; owner: AccountId32 } }
5668
+ /**
5669
+ * Some account `who` was frozen.
5670
+ **/
5671
+ | { name: 'Frozen'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5672
+ /**
5673
+ * Some account `who` was thawed.
5674
+ **/
5675
+ | { name: 'Thawed'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5676
+ /**
5677
+ * Some asset `asset_id` was frozen.
5678
+ **/
5679
+ | { name: 'AssetFrozen'; data: { assetId: StagingXcmV5Location } }
5680
+ /**
5681
+ * Some asset `asset_id` was thawed.
5682
+ **/
5683
+ | { name: 'AssetThawed'; data: { assetId: StagingXcmV5Location } }
5684
+ /**
5685
+ * Accounts were destroyed for given asset.
5686
+ **/
5687
+ | {
5688
+ name: 'AccountsDestroyed';
5689
+ data: { assetId: StagingXcmV5Location; accountsDestroyed: number; accountsRemaining: number };
5690
+ }
5691
+ /**
5692
+ * Approvals were destroyed for given asset.
5693
+ **/
5694
+ | {
5695
+ name: 'ApprovalsDestroyed';
5696
+ data: { assetId: StagingXcmV5Location; approvalsDestroyed: number; approvalsRemaining: number };
5697
+ }
5698
+ /**
5699
+ * An asset class is in the process of being destroyed.
5700
+ **/
5701
+ | { name: 'DestructionStarted'; data: { assetId: StagingXcmV5Location } }
5702
+ /**
5703
+ * An asset class was destroyed.
5704
+ **/
5705
+ | { name: 'Destroyed'; data: { assetId: StagingXcmV5Location } }
5706
+ /**
5707
+ * Some asset class was force-created.
5708
+ **/
5709
+ | { name: 'ForceCreated'; data: { assetId: StagingXcmV5Location; owner: AccountId32 } }
5710
+ /**
5711
+ * New metadata has been set for an asset.
5712
+ **/
5713
+ | {
5714
+ name: 'MetadataSet';
5715
+ data: { assetId: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean };
5716
+ }
5717
+ /**
5718
+ * Metadata has been cleared for an asset.
5719
+ **/
5720
+ | { name: 'MetadataCleared'; data: { assetId: StagingXcmV5Location } }
5721
+ /**
5722
+ * (Additional) funds have been approved for transfer to a destination account.
5723
+ **/
5724
+ | {
5725
+ name: 'ApprovedTransfer';
5726
+ data: { assetId: StagingXcmV5Location; source: AccountId32; delegate: AccountId32; amount: bigint };
5727
+ }
5728
+ /**
5729
+ * An approval for account `delegate` was cancelled by `owner`.
5730
+ **/
5731
+ | { name: 'ApprovalCancelled'; data: { assetId: StagingXcmV5Location; owner: AccountId32; delegate: AccountId32 } }
5732
+ /**
5733
+ * An `amount` was transferred in its entirety from `owner` to `destination` by
5734
+ * the approved `delegate`.
5735
+ **/
5736
+ | {
5737
+ name: 'TransferredApproved';
5738
+ data: {
5739
+ assetId: StagingXcmV5Location;
5740
+ owner: AccountId32;
5741
+ delegate: AccountId32;
5742
+ destination: AccountId32;
5743
+ amount: bigint;
5744
+ };
5745
+ }
5746
+ /**
5747
+ * An asset has had its attributes changed by the `Force` origin.
5748
+ **/
5749
+ | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV5Location } }
5750
+ /**
5751
+ * The min_balance of an asset has been updated by the asset owner.
5752
+ **/
5753
+ | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV5Location; newMinBalance: bigint } }
5754
+ /**
5755
+ * Some account `who` was created with a deposit from `depositor`.
5756
+ **/
5757
+ | { name: 'Touched'; data: { assetId: StagingXcmV5Location; who: AccountId32; depositor: AccountId32 } }
5758
+ /**
5759
+ * Some account `who` was blocked.
5760
+ **/
5761
+ | { name: 'Blocked'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5762
+ /**
5763
+ * Some assets were deposited (e.g. for transaction fees).
5764
+ **/
5765
+ | { name: 'Deposited'; data: { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint } }
5766
+ /**
5767
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
5768
+ **/
5769
+ | { name: 'Withdrawn'; data: { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint } }
5770
+ /**
5771
+ * Reserve information was set or updated for `asset_id`.
5772
+ **/
5773
+ | { name: 'ReservesUpdated'; data: { assetId: StagingXcmV5Location; reserves: Array<[]> } }
5774
+ /**
5775
+ * Reserve information was removed for `asset_id`.
5776
+ **/
5777
+ | { name: 'ReservesRemoved'; data: { assetId: StagingXcmV5Location } };
5778
+
5779
+ /**
5780
+ * The `Event` enum of this pallet
5781
+ **/
5782
+ export type PalletAssetRateEvent =
5783
+ | { name: 'AssetRateCreated'; data: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
5784
+ | { name: 'AssetRateRemoved'; data: { assetKind: StagingXcmV5Location } }
5785
+ | { name: 'AssetRateUpdated'; data: { assetKind: StagingXcmV5Location; old: FixedU128; new: FixedU128 } };
5786
+
5787
+ /**
5788
+ * The `Event` enum of this pallet
5789
+ **/
5790
+ export type PalletAssetTxPaymentEvent =
5791
+ /**
5792
+ * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
5793
+ * has been paid by `who` in an asset `asset_id`.
5794
+ **/
5795
+ {
5796
+ name: 'AssetTxFeePaid';
5797
+ data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId?: StagingXcmV5Location | undefined };
5798
+ };
5799
+
5800
+ /**
5801
+ * The `Event` enum of this pallet
5802
+ **/
5803
+ export type PalletAssetsHolderEvent =
5804
+ /**
5805
+ * `who`s balance on hold was increased by `amount`.
5806
+ **/
5807
+ | {
5808
+ name: 'Held';
5809
+ data: {
5810
+ who: AccountId32;
5811
+ assetId: StagingXcmV5Location;
5812
+ reason: PeoplePolkadotRuntimeRuntimeHoldReason;
5813
+ amount: bigint;
5814
+ };
5815
+ }
5816
+ /**
5817
+ * `who`s balance on hold was decreased by `amount`.
5818
+ **/
5819
+ | {
5820
+ name: 'Released';
5821
+ data: {
5822
+ who: AccountId32;
5823
+ assetId: StagingXcmV5Location;
5824
+ reason: PeoplePolkadotRuntimeRuntimeHoldReason;
5825
+ amount: bigint;
5826
+ };
5827
+ }
5828
+ /**
5829
+ * `who`s balance on hold was burned by `amount`.
5830
+ **/
5831
+ | {
5832
+ name: 'Burned';
5833
+ data: {
5834
+ who: AccountId32;
5835
+ assetId: StagingXcmV5Location;
5836
+ reason: PeoplePolkadotRuntimeRuntimeHoldReason;
5837
+ amount: bigint;
5838
+ };
5839
+ };
5840
+
4340
5841
  /**
4341
5842
  * The `Event` enum of this pallet
4342
5843
  **/
@@ -4888,6 +6389,8 @@ export type PalletProxyEvent =
4888
6389
  who: AccountId32;
4889
6390
  proxyType: PeoplePolkadotRuntimeProxyType;
4890
6391
  disambiguationIndex: number;
6392
+ at: number;
6393
+ extrinsicIndex: number;
4891
6394
  };
4892
6395
  }
4893
6396
  /**
@@ -5121,14 +6624,14 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
5121
6624
  FrameSystemExtensionsCheckMortality,
5122
6625
  FrameSystemExtensionsCheckNonce,
5123
6626
  FrameSystemExtensionsCheckWeight,
5124
- PalletTransactionPaymentChargeTransactionPayment,
6627
+ PalletAssetTxPaymentChargeAssetTxPayment,
5125
6628
  FrameMetadataHashExtensionCheckMetadataHash,
5126
6629
  ];
5127
6630
 
5128
6631
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
5129
6632
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
5130
6633
  paraHeadHash?: H256 | undefined;
5131
- consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
6634
+ consumedGoAheadSignal?: PolkadotPrimitivesV9UpgradeGoAhead | undefined;
5132
6635
  };
5133
6636
 
5134
6637
  export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
@@ -5141,21 +6644,21 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
5141
6644
 
5142
6645
  export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
5143
6646
 
5144
- export type PolkadotPrimitivesV8UpgradeGoAhead = 'Abort' | 'GoAhead';
6647
+ export type PolkadotPrimitivesV9UpgradeGoAhead = 'Abort' | 'GoAhead';
5145
6648
 
5146
6649
  export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
5147
6650
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
5148
6651
  hrmpWatermark?: number | undefined;
5149
- consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
6652
+ consumedGoAheadSignal?: PolkadotPrimitivesV9UpgradeGoAhead | undefined;
5150
6653
  };
5151
6654
 
5152
- export type PolkadotPrimitivesV8UpgradeRestriction = 'Present';
6655
+ export type PolkadotPrimitivesV9UpgradeRestriction = 'Present';
5153
6656
 
5154
6657
  export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
5155
6658
  dmqMqcHead: H256;
5156
6659
  relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
5157
- ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
5158
- egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
6660
+ ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV9AbridgedHrmpChannel]>;
6661
+ egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV9AbridgedHrmpChannel]>;
5159
6662
  };
5160
6663
 
5161
6664
  export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
@@ -5163,7 +6666,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
5163
6666
  remainingSize: number;
5164
6667
  };
5165
6668
 
5166
- export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
6669
+ export type PolkadotPrimitivesV9AbridgedHrmpChannel = {
5167
6670
  maxCapacity: number;
5168
6671
  maxTotalSize: number;
5169
6672
  maxMessageSize: number;
@@ -5172,7 +6675,7 @@ export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
5172
6675
  mqcHead?: H256 | undefined;
5173
6676
  };
5174
6677
 
5175
- export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
6678
+ export type PolkadotPrimitivesV9AbridgedHostConfiguration = {
5176
6679
  maxCodeSize: number;
5177
6680
  maxHeadDataSize: number;
5178
6681
  maxUpwardQueueCount: number;
@@ -5182,10 +6685,10 @@ export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
5182
6685
  hrmpMaxMessageNumPerCandidate: number;
5183
6686
  validationUpgradeCooldown: number;
5184
6687
  validationUpgradeDelay: number;
5185
- asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
6688
+ asyncBackingParams: PolkadotPrimitivesV9AsyncBackingAsyncBackingParams;
5186
6689
  };
5187
6690
 
5188
- export type PolkadotPrimitivesV8AsyncBackingAsyncBackingParams = {
6691
+ export type PolkadotPrimitivesV9AsyncBackingAsyncBackingParams = {
5189
6692
  maxCandidateDepth: number;
5190
6693
  allowedAncestryLen: number;
5191
6694
  };
@@ -5246,14 +6749,6 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
5246
6749
 
5247
6750
  export type FrameSupportTokensMiscIdAmount = { id: PeoplePolkadotRuntimeRuntimeHoldReason; amount: bigint };
5248
6751
 
5249
- export type PeoplePolkadotRuntimeRuntimeHoldReason =
5250
- | { type: 'Session'; value: PalletSessionHoldReason }
5251
- | { type: 'PolkadotXcm'; value: PalletXcmHoldReason };
5252
-
5253
- export type PalletSessionHoldReason = 'Keys';
5254
-
5255
- export type PalletXcmHoldReason = 'AuthorizeAlias';
5256
-
5257
6752
  export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
5258
6753
 
5259
6754
  /**
@@ -5315,6 +6810,179 @@ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
5315
6810
 
5316
6811
  export type FrameSupportTokensFungibleImbalance = { amount: bigint };
5317
6812
 
6813
+ export type PalletAssetsAssetDetails = {
6814
+ owner: AccountId32;
6815
+ issuer: AccountId32;
6816
+ admin: AccountId32;
6817
+ freezer: AccountId32;
6818
+ supply: bigint;
6819
+ deposit: bigint;
6820
+ minBalance: bigint;
6821
+ isSufficient: boolean;
6822
+ accounts: number;
6823
+ sufficients: number;
6824
+ approvals: number;
6825
+ status: PalletAssetsAssetStatus;
6826
+ };
6827
+
6828
+ export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying';
6829
+
6830
+ export type PalletAssetsAssetAccount = {
6831
+ balance: bigint;
6832
+ status: PalletAssetsAccountStatus;
6833
+ reason: PalletAssetsExistenceReason;
6834
+ extra: [];
6835
+ };
6836
+
6837
+ export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked';
6838
+
6839
+ export type PalletAssetsExistenceReason =
6840
+ | { type: 'Consumer' }
6841
+ | { type: 'Sufficient' }
6842
+ | { type: 'DepositHeld'; value: bigint }
6843
+ | { type: 'DepositRefunded' }
6844
+ | { type: 'DepositFrom'; value: [AccountId32, bigint] };
6845
+
6846
+ export type PalletAssetsApproval = { amount: bigint; deposit: bigint };
6847
+
6848
+ export type PalletAssetsAssetMetadata = {
6849
+ deposit: bigint;
6850
+ name: Bytes;
6851
+ symbol: Bytes;
6852
+ decimals: number;
6853
+ isFrozen: boolean;
6854
+ };
6855
+
6856
+ /**
6857
+ * The `Error` enum of this pallet.
6858
+ **/
6859
+ export type PalletAssetsError =
6860
+ /**
6861
+ * Account balance must be greater than or equal to the transfer amount.
6862
+ **/
6863
+ | 'BalanceLow'
6864
+ /**
6865
+ * The account to alter does not exist.
6866
+ **/
6867
+ | 'NoAccount'
6868
+ /**
6869
+ * The signing account has no permission to do the operation.
6870
+ **/
6871
+ | 'NoPermission'
6872
+ /**
6873
+ * The given asset ID is unknown.
6874
+ **/
6875
+ | 'Unknown'
6876
+ /**
6877
+ * The origin account is frozen.
6878
+ **/
6879
+ | 'Frozen'
6880
+ /**
6881
+ * The asset ID is already taken.
6882
+ **/
6883
+ | 'InUse'
6884
+ /**
6885
+ * Invalid witness data given.
6886
+ **/
6887
+ | 'BadWitness'
6888
+ /**
6889
+ * Minimum balance should be non-zero.
6890
+ **/
6891
+ | 'MinBalanceZero'
6892
+ /**
6893
+ * Unable to increment the consumer reference counters on the account. Either no provider
6894
+ * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
6895
+ * fewer then the maximum number of consumers has been reached.
6896
+ **/
6897
+ | 'UnavailableConsumer'
6898
+ /**
6899
+ * Invalid metadata given.
6900
+ **/
6901
+ | 'BadMetadata'
6902
+ /**
6903
+ * No approval exists that would allow the transfer.
6904
+ **/
6905
+ | 'Unapproved'
6906
+ /**
6907
+ * The source account would not survive the transfer and it needs to stay alive.
6908
+ **/
6909
+ | 'WouldDie'
6910
+ /**
6911
+ * The asset-account already exists.
6912
+ **/
6913
+ | 'AlreadyExists'
6914
+ /**
6915
+ * The asset-account doesn't have an associated deposit.
6916
+ **/
6917
+ | 'NoDeposit'
6918
+ /**
6919
+ * The operation would result in funds being burned.
6920
+ **/
6921
+ | 'WouldBurn'
6922
+ /**
6923
+ * The asset is a live asset and is actively being used. Usually emit for operations such
6924
+ * as `start_destroy` which require the asset to be in a destroying state.
6925
+ **/
6926
+ | 'LiveAsset'
6927
+ /**
6928
+ * The asset is not live, and likely being destroyed.
6929
+ **/
6930
+ | 'AssetNotLive'
6931
+ /**
6932
+ * The asset status is not the expected status.
6933
+ **/
6934
+ | 'IncorrectStatus'
6935
+ /**
6936
+ * The asset should be frozen before the given operation.
6937
+ **/
6938
+ | 'NotFrozen'
6939
+ /**
6940
+ * Callback action resulted in error
6941
+ **/
6942
+ | 'CallbackFailed'
6943
+ /**
6944
+ * The asset ID must be equal to the [`NextAssetId`].
6945
+ **/
6946
+ | 'BadAssetId'
6947
+ /**
6948
+ * The asset cannot be destroyed because some accounts for this asset contain freezes.
6949
+ **/
6950
+ | 'ContainsFreezes'
6951
+ /**
6952
+ * The asset cannot be destroyed because some accounts for this asset contain holds.
6953
+ **/
6954
+ | 'ContainsHolds'
6955
+ /**
6956
+ * Tried setting too many reserves.
6957
+ **/
6958
+ | 'TooManyReserves';
6959
+
6960
+ /**
6961
+ * The `Error` enum of this pallet.
6962
+ **/
6963
+ export type PalletAssetRateError =
6964
+ /**
6965
+ * The given asset ID is unknown.
6966
+ **/
6967
+ | 'UnknownAssetKind'
6968
+ /**
6969
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
6970
+ **/
6971
+ | 'AlreadyExists'
6972
+ /**
6973
+ * Overflow ocurred when calculating the inverse rate.
6974
+ **/
6975
+ | 'Overflow';
6976
+
6977
+ /**
6978
+ * The `Error` enum of this pallet.
6979
+ **/
6980
+ export type PalletAssetsHolderError =
6981
+ /**
6982
+ * Number of holds on an account would exceed the count of `RuntimeHoldReason`.
6983
+ **/
6984
+ 'TooManyHolds';
6985
+
5318
6986
  export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
5319
6987
 
5320
6988
  export type FrameSupportPalletId = FixedBytes<8>;
@@ -6011,6 +7679,10 @@ export type PalletIdentityError =
6011
7679
 
6012
7680
  export type SpConsensusSlotsSlotDuration = bigint;
6013
7681
 
7682
+ export type SpRuntimeBlockLazyBlock = { header: Header; extrinsics: Array<SpRuntimeOpaqueExtrinsic> };
7683
+
7684
+ export type SpRuntimeOpaqueExtrinsic = Bytes;
7685
+
6014
7686
  export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
6015
7687
 
6016
7688
  export type SpCoreOpaqueMetadata = Bytes;
@@ -6133,6 +7805,9 @@ export type PeoplePolkadotRuntimeRuntimeError =
6133
7805
  | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
6134
7806
  | { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError }
6135
7807
  | { pallet: 'Balances'; palletError: PalletBalancesError }
7808
+ | { pallet: 'Assets'; palletError: PalletAssetsError }
7809
+ | { pallet: 'AssetRate'; palletError: PalletAssetRateError }
7810
+ | { pallet: 'AssetsHolder'; palletError: PalletAssetsHolderError }
6136
7811
  | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
6137
7812
  | { pallet: 'Session'; palletError: PalletSessionError }
6138
7813
  | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError }