@dedot/chaintypes 0.232.0 → 0.234.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 (41) hide show
  1. package/hydration/consts.d.ts +119 -47
  2. package/hydration/errors.d.ts +91 -130
  3. package/hydration/events.d.ts +340 -432
  4. package/hydration/index.d.ts +2 -3
  5. package/hydration/json-rpc.d.ts +10 -17
  6. package/hydration/query.d.ts +157 -277
  7. package/hydration/runtime.d.ts +21 -123
  8. package/hydration/tx.d.ts +502 -315
  9. package/hydration/types.d.ts +1366 -1284
  10. package/package.json +2 -2
  11. package/paseo/consts.d.ts +87 -18
  12. package/paseo/errors.d.ts +187 -30
  13. package/paseo/events.d.ts +676 -80
  14. package/paseo/index.d.ts +1 -1
  15. package/paseo/query.d.ts +465 -71
  16. package/paseo/runtime.d.ts +85 -39
  17. package/paseo/tx.d.ts +1012 -165
  18. package/paseo/types.d.ts +8081 -6364
  19. package/paseo/view-functions.d.ts +75 -1
  20. package/paseo-asset-hub/consts.d.ts +0 -34
  21. package/paseo-asset-hub/errors.d.ts +0 -28
  22. package/paseo-asset-hub/events.d.ts +20 -205
  23. package/paseo-asset-hub/index.d.ts +3 -3
  24. package/paseo-asset-hub/query.d.ts +23 -66
  25. package/paseo-asset-hub/runtime.d.ts +15 -12
  26. package/paseo-asset-hub/tx.d.ts +127 -327
  27. package/paseo-asset-hub/types.d.ts +192 -513
  28. package/paseo-asset-hub/view-functions.d.ts +7 -7
  29. package/paseo-hydration/consts.d.ts +5 -0
  30. package/paseo-hydration/errors.d.ts +1 -1
  31. package/paseo-hydration/index.d.ts +1 -1
  32. package/paseo-hydration/json-rpc.d.ts +0 -10
  33. package/paseo-hydration/tx.d.ts +2 -1
  34. package/paseo-hydration/types.d.ts +5 -3
  35. package/paseo-people/consts.d.ts +75 -0
  36. package/paseo-people/errors.d.ts +165 -0
  37. package/paseo-people/events.d.ts +285 -2
  38. package/paseo-people/index.d.ts +5 -4
  39. package/paseo-people/query.d.ts +125 -0
  40. package/paseo-people/tx.d.ts +1286 -2
  41. package/paseo-people/types.d.ts +1776 -183
@@ -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 PeoplePaseoRuntimeRuntimeCall =
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 }
@@ -46,6 +49,8 @@ export type PeoplePaseoRuntimeRuntimeCallLike =
46
49
  | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
47
50
  | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
48
51
  | { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
52
+ | { pallet: 'Assets'; palletCall: PalletAssetsCallLike }
53
+ | { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
49
54
  | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
50
55
  | { pallet: 'Session'; palletCall: PalletSessionCallLike }
51
56
  | { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike }
@@ -454,162 +459,1432 @@ export type PalletBalancesCall =
454
459
  * Exactly as `transfer_allow_death`, except the origin must be root and the source account
455
460
  * may be specified.
456
461
  **/
457
- | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } }
462
+ | { name: 'ForceTransfer'; params: { source: MultiAddress; dest: MultiAddress; value: bigint } }
463
+ /**
464
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
465
+ * kill the origin account.
466
+ *
467
+ * 99% of the time you want [`transfer_allow_death`] instead.
468
+ *
469
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
470
+ **/
471
+ | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } }
472
+ /**
473
+ * Transfer the entire transferable balance from the caller account.
474
+ *
475
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
476
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
477
+ * transferred by this function. To ensure that this function results in a killed account,
478
+ * you might need to prepare the account by removing any reference counters, storage
479
+ * deposits, etc...
480
+ *
481
+ * The dispatch origin of this call must be Signed.
482
+ *
483
+ * - `dest`: The recipient of the transfer.
484
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
485
+ * of the funds the account has, causing the sender account to be killed (false), or
486
+ * transfer everything except at least the existential deposit, which will guarantee to
487
+ * keep the sender account alive (true).
488
+ **/
489
+ | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } }
490
+ /**
491
+ * Unreserve some balance from a user by force.
492
+ *
493
+ * Can only be called by ROOT.
494
+ **/
495
+ | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } }
496
+ /**
497
+ * Upgrade a specified account.
498
+ *
499
+ * - `origin`: Must be `Signed`.
500
+ * - `who`: The account to be upgraded.
501
+ *
502
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
503
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
504
+ * possibility of churn).
505
+ **/
506
+ | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
507
+ /**
508
+ * Set the regular balance of a given account.
509
+ *
510
+ * The dispatch origin for this call is `root`.
511
+ **/
512
+ | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } }
513
+ /**
514
+ * Adjust the total issuance in a saturating way.
515
+ *
516
+ * Can only be called by root and always needs a positive `delta`.
517
+ *
518
+ * # Example
519
+ **/
520
+ | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
521
+ /**
522
+ * Burn the specified liquid free balance from the origin account.
523
+ *
524
+ * If the origin's account ends up below the existential deposit as a result
525
+ * of the burn and `keep_alive` is false, the account will be reaped.
526
+ *
527
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
528
+ * this `burn` operation will reduce total issuance by the amount _burned_.
529
+ **/
530
+ | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
531
+
532
+ export type PalletBalancesCallLike =
533
+ /**
534
+ * Transfer some liquid free balance to another account.
535
+ *
536
+ * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
537
+ * If the sender's account is below the existential deposit as a result
538
+ * of the transfer, the account will be reaped.
539
+ *
540
+ * The dispatch origin for this call must be `Signed` by the transactor.
541
+ **/
542
+ | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } }
543
+ /**
544
+ * Exactly as `transfer_allow_death`, except the origin must be root and the source account
545
+ * may be specified.
546
+ **/
547
+ | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } }
548
+ /**
549
+ * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
550
+ * kill the origin account.
551
+ *
552
+ * 99% of the time you want [`transfer_allow_death`] instead.
553
+ *
554
+ * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
555
+ **/
556
+ | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } }
557
+ /**
558
+ * Transfer the entire transferable balance from the caller account.
559
+ *
560
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
561
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
562
+ * transferred by this function. To ensure that this function results in a killed account,
563
+ * you might need to prepare the account by removing any reference counters, storage
564
+ * deposits, etc...
565
+ *
566
+ * The dispatch origin of this call must be Signed.
567
+ *
568
+ * - `dest`: The recipient of the transfer.
569
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
570
+ * of the funds the account has, causing the sender account to be killed (false), or
571
+ * transfer everything except at least the existential deposit, which will guarantee to
572
+ * keep the sender account alive (true).
573
+ **/
574
+ | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } }
575
+ /**
576
+ * Unreserve some balance from a user by force.
577
+ *
578
+ * Can only be called by ROOT.
579
+ **/
580
+ | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } }
581
+ /**
582
+ * Upgrade a specified account.
583
+ *
584
+ * - `origin`: Must be `Signed`.
585
+ * - `who`: The account to be upgraded.
586
+ *
587
+ * This will waive the transaction fee if at least all but 10% of the accounts needed to
588
+ * be upgraded. (We let some not have to be upgraded just in order to allow for the
589
+ * possibility of churn).
590
+ **/
591
+ | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
592
+ /**
593
+ * Set the regular balance of a given account.
594
+ *
595
+ * The dispatch origin for this call is `root`.
596
+ **/
597
+ | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } }
598
+ /**
599
+ * Adjust the total issuance in a saturating way.
600
+ *
601
+ * Can only be called by root and always needs a positive `delta`.
602
+ *
603
+ * # Example
604
+ **/
605
+ | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
606
+ /**
607
+ * Burn the specified liquid free balance from the origin account.
608
+ *
609
+ * If the origin's account ends up below the existential deposit as a result
610
+ * of the burn and `keep_alive` is false, the account will be reaped.
611
+ *
612
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
613
+ * this `burn` operation will reduce total issuance by the amount _burned_.
614
+ **/
615
+ | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
616
+
617
+ export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
618
+
619
+ /**
620
+ * Contains a variant per dispatchable extrinsic that this pallet has.
621
+ **/
622
+ export type PalletAssetsCall =
623
+ /**
624
+ * Issue a new class of fungible assets from a public origin.
625
+ *
626
+ * This new asset class has no assets initially and its owner is the origin.
627
+ *
628
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
629
+ *
630
+ * Funds of sender are reserved by `AssetDeposit`.
631
+ *
632
+ * Parameters:
633
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
634
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
635
+ * - `admin`: The admin of this class of assets. The admin is the initial address of each
636
+ * member of the asset class's admin team.
637
+ * - `min_balance`: The minimum balance of this new asset that any single account must
638
+ * have. If an account's balance is reduced below this, then it collapses to zero.
639
+ *
640
+ * Emits `Created` event when successful.
641
+ *
642
+ * Weight: `O(1)`
643
+ **/
644
+ | { name: 'Create'; params: { id: StagingXcmV5Location; admin: MultiAddress; minBalance: bigint } }
645
+ /**
646
+ * Issue a new class of fungible assets from a privileged origin.
647
+ *
648
+ * This new asset class has no assets initially.
649
+ *
650
+ * The origin must conform to `ForceOrigin`.
651
+ *
652
+ * Unlike `create`, no funds are reserved.
653
+ *
654
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
655
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
656
+ * - `owner`: The owner of this class of assets. The owner has full superuser permissions
657
+ * over this asset, but may later change and configure the permissions using
658
+ * `transfer_ownership` and `set_team`.
659
+ * - `min_balance`: The minimum balance of this new asset that any single account must
660
+ * have. If an account's balance is reduced below this, then it collapses to zero.
661
+ *
662
+ * Emits `ForceCreated` event when successful.
663
+ *
664
+ * Weight: `O(1)`
665
+ **/
666
+ | {
667
+ name: 'ForceCreate';
668
+ params: { id: StagingXcmV5Location; owner: MultiAddress; isSufficient: boolean; minBalance: bigint };
669
+ }
670
+ /**
671
+ * Start the process of destroying a fungible asset class.
672
+ *
673
+ * `start_destroy` is the first in a series of extrinsics that should be called, to allow
674
+ * destruction of an asset class.
675
+ *
676
+ * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
677
+ *
678
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
679
+ * asset.
680
+ *
681
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
682
+ * an account contains holds or freezes in place.
683
+ **/
684
+ | { name: 'StartDestroy'; params: { id: StagingXcmV5Location } }
685
+ /**
686
+ * Destroy all accounts associated with a given asset.
687
+ *
688
+ * `destroy_accounts` should only be called after `start_destroy` has been called, and the
689
+ * asset is in a `Destroying` state.
690
+ *
691
+ * Due to weight restrictions, this function may need to be called multiple times to fully
692
+ * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
693
+ *
694
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
695
+ * asset.
696
+ *
697
+ * Each call emits the `Event::DestroyedAccounts` event.
698
+ **/
699
+ | { name: 'DestroyAccounts'; params: { id: StagingXcmV5Location } }
700
+ /**
701
+ * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
702
+ *
703
+ * `destroy_approvals` should only be called after `start_destroy` has been called, and the
704
+ * asset is in a `Destroying` state.
705
+ *
706
+ * Due to weight restrictions, this function may need to be called multiple times to fully
707
+ * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
708
+ *
709
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
710
+ * asset.
711
+ *
712
+ * Each call emits the `Event::DestroyedApprovals` event.
713
+ **/
714
+ | { name: 'DestroyApprovals'; params: { id: StagingXcmV5Location } }
715
+ /**
716
+ * Complete destroying asset and unreserve currency.
717
+ *
718
+ * `finish_destroy` should only be called after `start_destroy` has been called, and the
719
+ * asset is in a `Destroying` state. All accounts or approvals should be destroyed before
720
+ * hand.
721
+ *
722
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
723
+ * asset.
724
+ *
725
+ * Each successful call emits the `Event::Destroyed` event.
726
+ **/
727
+ | { name: 'FinishDestroy'; params: { id: StagingXcmV5Location } }
728
+ /**
729
+ * Mint assets of a particular class.
730
+ *
731
+ * The origin must be Signed and the sender must be the Issuer of the asset `id`.
732
+ *
733
+ * - `id`: The identifier of the asset to have some amount minted.
734
+ * - `beneficiary`: The account to be credited with the minted assets.
735
+ * - `amount`: The amount of the asset to be minted.
736
+ *
737
+ * Emits `Issued` event when successful.
738
+ *
739
+ * Weight: `O(1)`
740
+ * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
741
+ **/
742
+ | { name: 'Mint'; params: { id: StagingXcmV5Location; beneficiary: MultiAddress; amount: bigint } }
743
+ /**
744
+ * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
745
+ *
746
+ * Origin must be Signed and the sender should be the Manager of the asset `id`.
747
+ *
748
+ * Bails with `NoAccount` if the `who` is already dead.
749
+ *
750
+ * - `id`: The identifier of the asset to have some amount burned.
751
+ * - `who`: The account to be debited from.
752
+ * - `amount`: The maximum amount by which `who`'s balance should be reduced.
753
+ *
754
+ * Emits `Burned` with the actual amount burned. If this takes the balance to below the
755
+ * minimum for the asset, then the amount burned is increased to take it to zero.
756
+ *
757
+ * Weight: `O(1)`
758
+ * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
759
+ **/
760
+ | { name: 'Burn'; params: { id: StagingXcmV5Location; who: MultiAddress; amount: bigint } }
761
+ /**
762
+ * Move some assets from the sender account to another.
763
+ *
764
+ * Origin must be Signed.
765
+ *
766
+ * - `id`: The identifier of the asset to have some amount transferred.
767
+ * - `target`: The account to be credited.
768
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
769
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
770
+ * the case that the transfer would otherwise take the sender balance above zero but below
771
+ * the minimum balance. Must be greater than zero.
772
+ *
773
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
774
+ * to below the minimum for the asset, then the amount transferred is increased to take it
775
+ * to zero.
776
+ *
777
+ * Weight: `O(1)`
778
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
779
+ * `target`.
780
+ **/
781
+ | { name: 'Transfer'; params: { id: StagingXcmV5Location; target: MultiAddress; amount: bigint } }
782
+ /**
783
+ * Move some assets from the sender account to another, keeping the sender account alive.
784
+ *
785
+ * Origin must be Signed.
786
+ *
787
+ * - `id`: The identifier of the asset to have some amount transferred.
788
+ * - `target`: The account to be credited.
789
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
790
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
791
+ * the case that the transfer would otherwise take the sender balance above zero but below
792
+ * the minimum balance. Must be greater than zero.
793
+ *
794
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
795
+ * to below the minimum for the asset, then the amount transferred is increased to take it
796
+ * to zero.
797
+ *
798
+ * Weight: `O(1)`
799
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
800
+ * `target`.
801
+ **/
802
+ | { name: 'TransferKeepAlive'; params: { id: StagingXcmV5Location; target: MultiAddress; amount: bigint } }
803
+ /**
804
+ * Move some assets from one account to another.
805
+ *
806
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
807
+ *
808
+ * - `id`: The identifier of the asset to have some amount transferred.
809
+ * - `source`: The account to be debited.
810
+ * - `dest`: The account to be credited.
811
+ * - `amount`: The amount by which the `source`'s balance of assets should be reduced and
812
+ * `dest`'s balance increased. The amount actually transferred may be slightly greater in
813
+ * the case that the transfer would otherwise take the `source` balance above zero but
814
+ * below the minimum balance. Must be greater than zero.
815
+ *
816
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
817
+ * to below the minimum for the asset, then the amount transferred is increased to take it
818
+ * to zero.
819
+ *
820
+ * Weight: `O(1)`
821
+ * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
822
+ * `dest`.
823
+ **/
824
+ | {
825
+ name: 'ForceTransfer';
826
+ params: { id: StagingXcmV5Location; source: MultiAddress; dest: MultiAddress; amount: bigint };
827
+ }
828
+ /**
829
+ * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
830
+ * must already exist as an entry in `Account`s of the asset. If you want to freeze an
831
+ * account that does not have an entry, use `touch_other` first.
832
+ *
833
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
834
+ *
835
+ * - `id`: The identifier of the asset to be frozen.
836
+ * - `who`: The account to be frozen.
837
+ *
838
+ * Emits `Frozen`.
839
+ *
840
+ * Weight: `O(1)`
841
+ **/
842
+ | { name: 'Freeze'; params: { id: StagingXcmV5Location; who: MultiAddress } }
843
+ /**
844
+ * Allow unprivileged transfers to and from an account again.
845
+ *
846
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
847
+ *
848
+ * - `id`: The identifier of the asset to be frozen.
849
+ * - `who`: The account to be unfrozen.
850
+ *
851
+ * Emits `Thawed`.
852
+ *
853
+ * Weight: `O(1)`
854
+ **/
855
+ | { name: 'Thaw'; params: { id: StagingXcmV5Location; who: MultiAddress } }
856
+ /**
857
+ * Disallow further unprivileged transfers for the asset class.
858
+ *
859
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
860
+ *
861
+ * - `id`: The identifier of the asset to be frozen.
862
+ *
863
+ * Emits `Frozen`.
864
+ *
865
+ * Weight: `O(1)`
866
+ **/
867
+ | { name: 'FreezeAsset'; params: { id: StagingXcmV5Location } }
868
+ /**
869
+ * Allow unprivileged transfers for the asset again.
870
+ *
871
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
872
+ *
873
+ * - `id`: The identifier of the asset to be thawed.
874
+ *
875
+ * Emits `Thawed`.
876
+ *
877
+ * Weight: `O(1)`
878
+ **/
879
+ | { name: 'ThawAsset'; params: { id: StagingXcmV5Location } }
880
+ /**
881
+ * Change the Owner of an asset.
882
+ *
883
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
884
+ *
885
+ * - `id`: The identifier of the asset.
886
+ * - `owner`: The new Owner of this asset.
887
+ *
888
+ * Emits `OwnerChanged`.
889
+ *
890
+ * Weight: `O(1)`
891
+ **/
892
+ | { name: 'TransferOwnership'; params: { id: StagingXcmV5Location; owner: MultiAddress } }
893
+ /**
894
+ * Change the Issuer, Admin and Freezer of an asset.
895
+ *
896
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
897
+ *
898
+ * - `id`: The identifier of the asset to be frozen.
899
+ * - `issuer`: The new Issuer of this asset.
900
+ * - `admin`: The new Admin of this asset.
901
+ * - `freezer`: The new Freezer of this asset.
902
+ *
903
+ * Emits `TeamChanged`.
904
+ *
905
+ * Weight: `O(1)`
906
+ **/
907
+ | {
908
+ name: 'SetTeam';
909
+ params: { id: StagingXcmV5Location; issuer: MultiAddress; admin: MultiAddress; freezer: MultiAddress };
910
+ }
911
+ /**
912
+ * Set the metadata for an asset.
913
+ *
914
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
915
+ *
916
+ * Funds of sender are reserved according to the formula:
917
+ * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
918
+ * account any already reserved funds.
919
+ *
920
+ * - `id`: The identifier of the asset to update.
921
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
922
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
923
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
924
+ *
925
+ * Emits `MetadataSet`.
926
+ *
927
+ * Weight: `O(1)`
928
+ **/
929
+ | { name: 'SetMetadata'; params: { id: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number } }
930
+ /**
931
+ * Clear the metadata for an asset.
932
+ *
933
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
934
+ *
935
+ * Any deposit is freed for the asset owner.
936
+ *
937
+ * - `id`: The identifier of the asset to clear.
938
+ *
939
+ * Emits `MetadataCleared`.
940
+ *
941
+ * Weight: `O(1)`
942
+ **/
943
+ | { name: 'ClearMetadata'; params: { id: StagingXcmV5Location } }
944
+ /**
945
+ * Force the metadata for an asset to some value.
946
+ *
947
+ * Origin must be ForceOrigin.
948
+ *
949
+ * Any deposit is left alone.
950
+ *
951
+ * - `id`: The identifier of the asset to update.
952
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
953
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
954
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
955
+ *
956
+ * Emits `MetadataSet`.
957
+ *
958
+ * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
959
+ **/
960
+ | {
961
+ name: 'ForceSetMetadata';
962
+ params: { id: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean };
963
+ }
964
+ /**
965
+ * Clear the metadata for an asset.
966
+ *
967
+ * Origin must be ForceOrigin.
968
+ *
969
+ * Any deposit is returned.
970
+ *
971
+ * - `id`: The identifier of the asset to clear.
972
+ *
973
+ * Emits `MetadataCleared`.
974
+ *
975
+ * Weight: `O(1)`
976
+ **/
977
+ | { name: 'ForceClearMetadata'; params: { id: StagingXcmV5Location } }
978
+ /**
979
+ * Alter the attributes of a given asset.
980
+ *
981
+ * Origin must be `ForceOrigin`.
982
+ *
983
+ * - `id`: The identifier of the asset.
984
+ * - `owner`: The new Owner of this asset.
985
+ * - `issuer`: The new Issuer of this asset.
986
+ * - `admin`: The new Admin of this asset.
987
+ * - `freezer`: The new Freezer of this asset.
988
+ * - `min_balance`: The minimum balance of this new asset that any single account must
989
+ * have. If an account's balance is reduced below this, then it collapses to zero.
990
+ * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
991
+ * value to account for the state bloat associated with its balance storage. If set to
992
+ * `true`, then non-zero balances may be stored without a `consumer` reference (and thus
993
+ * an ED in the Balances pallet or whatever else is used to control user-account state
994
+ * growth).
995
+ * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
996
+ * instructions.
997
+ *
998
+ * Emits `AssetStatusChanged` with the identity of the asset.
999
+ *
1000
+ * Weight: `O(1)`
1001
+ **/
1002
+ | {
1003
+ name: 'ForceAssetStatus';
1004
+ params: {
1005
+ id: StagingXcmV5Location;
1006
+ owner: MultiAddress;
1007
+ issuer: MultiAddress;
1008
+ admin: MultiAddress;
1009
+ freezer: MultiAddress;
1010
+ minBalance: bigint;
1011
+ isSufficient: boolean;
1012
+ isFrozen: boolean;
1013
+ };
1014
+ }
1015
+ /**
1016
+ * Approve an amount of asset for transfer by a delegated third-party account.
1017
+ *
1018
+ * Origin must be Signed.
1019
+ *
1020
+ * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
1021
+ * for the purpose of holding the approval. If some non-zero amount of assets is already
1022
+ * approved from signing account to `delegate`, then it is topped up or unreserved to
1023
+ * meet the right value.
1024
+ *
1025
+ * NOTE: The signing account does not need to own `amount` of assets at the point of
1026
+ * making this call.
1027
+ *
1028
+ * - `id`: The identifier of the asset.
1029
+ * - `delegate`: The account to delegate permission to transfer asset.
1030
+ * - `amount`: The amount of asset that may be transferred by `delegate`. If there is
1031
+ * already an approval in place, then this acts additively.
1032
+ *
1033
+ * Emits `ApprovedTransfer` on success.
1034
+ *
1035
+ * Weight: `O(1)`
1036
+ **/
1037
+ | { name: 'ApproveTransfer'; params: { id: StagingXcmV5Location; delegate: MultiAddress; amount: bigint } }
1038
+ /**
1039
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
1040
+ *
1041
+ * Origin must be Signed and there must be an approval in place between signer and
1042
+ * `delegate`.
1043
+ *
1044
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1045
+ *
1046
+ * - `id`: The identifier of the asset.
1047
+ * - `delegate`: The account delegated permission to transfer asset.
1048
+ *
1049
+ * Emits `ApprovalCancelled` on success.
1050
+ *
1051
+ * Weight: `O(1)`
1052
+ **/
1053
+ | { name: 'CancelApproval'; params: { id: StagingXcmV5Location; delegate: MultiAddress } }
1054
+ /**
1055
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
1056
+ *
1057
+ * Origin must be either ForceOrigin or Signed origin with the signer being the Admin
1058
+ * account of the asset `id`.
1059
+ *
1060
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1061
+ *
1062
+ * - `id`: The identifier of the asset.
1063
+ * - `delegate`: The account delegated permission to transfer asset.
1064
+ *
1065
+ * Emits `ApprovalCancelled` on success.
1066
+ *
1067
+ * Weight: `O(1)`
1068
+ **/
1069
+ | { name: 'ForceCancelApproval'; params: { id: StagingXcmV5Location; owner: MultiAddress; delegate: MultiAddress } }
1070
+ /**
1071
+ * Transfer some asset balance from a previously delegated account to some third-party
1072
+ * account.
1073
+ *
1074
+ * Origin must be Signed and there must be an approval in place by the `owner` to the
1075
+ * signer.
1076
+ *
1077
+ * If the entire amount approved for transfer is transferred, then any deposit previously
1078
+ * reserved by `approve_transfer` is unreserved.
1079
+ *
1080
+ * - `id`: The identifier of the asset.
1081
+ * - `owner`: The account which previously approved for a transfer of at least `amount` and
1082
+ * from which the asset balance will be withdrawn.
1083
+ * - `destination`: The account to which the asset balance of `amount` will be transferred.
1084
+ * - `amount`: The amount of assets to transfer.
1085
+ *
1086
+ * Emits `TransferredApproved` on success.
1087
+ *
1088
+ * Weight: `O(1)`
1089
+ **/
1090
+ | {
1091
+ name: 'TransferApproved';
1092
+ params: { id: StagingXcmV5Location; owner: MultiAddress; destination: MultiAddress; amount: bigint };
1093
+ }
1094
+ /**
1095
+ * Create an asset account for non-provider assets.
1096
+ *
1097
+ * A deposit will be taken from the signer account.
1098
+ *
1099
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1100
+ * to be taken.
1101
+ * - `id`: The identifier of the asset for the account to be created.
1102
+ *
1103
+ * Emits `Touched` event when successful.
1104
+ **/
1105
+ | { name: 'Touch'; params: { id: StagingXcmV5Location } }
1106
+ /**
1107
+ * Return the deposit (if any) of an asset account or a consumer reference (if any) of an
1108
+ * account.
1109
+ *
1110
+ * The origin must be Signed.
1111
+ *
1112
+ * - `id`: The identifier of the asset for which the caller would like the deposit
1113
+ * refunded.
1114
+ * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
1115
+ *
1116
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1117
+ * the asset account contains holds or freezes in place.
1118
+ *
1119
+ * Emits `Refunded` event when successful.
1120
+ **/
1121
+ | { name: 'Refund'; params: { id: StagingXcmV5Location; allowBurn: boolean } }
1122
+ /**
1123
+ * Sets the minimum balance of an asset.
1124
+ *
1125
+ * Only works if there aren't any accounts that are holding the asset or if
1126
+ * the new value of `min_balance` is less than the old one.
1127
+ *
1128
+ * Origin must be Signed and the sender has to be the Owner of the
1129
+ * asset `id`.
1130
+ *
1131
+ * - `id`: The identifier of the asset.
1132
+ * - `min_balance`: The new value of `min_balance`.
1133
+ *
1134
+ * Emits `AssetMinBalanceChanged` event when successful.
1135
+ **/
1136
+ | { name: 'SetMinBalance'; params: { id: StagingXcmV5Location; minBalance: bigint } }
1137
+ /**
1138
+ * Create an asset account for `who`.
1139
+ *
1140
+ * A deposit will be taken from the signer account.
1141
+ *
1142
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1143
+ * to be taken.
1144
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
1145
+ * be live.
1146
+ * - `who`: The account to be created.
1147
+ *
1148
+ * Emits `Touched` event when successful.
1149
+ **/
1150
+ | { name: 'TouchOther'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1151
+ /**
1152
+ * Return the deposit (if any) of a target asset account. Useful if you are the depositor.
1153
+ *
1154
+ * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
1155
+ * order to burn a non-zero balance of the asset, the caller must be the account and should
1156
+ * use `refund`.
1157
+ *
1158
+ * - `id`: The identifier of the asset for the account holding a deposit.
1159
+ * - `who`: The account to refund.
1160
+ *
1161
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1162
+ * the asset account contains holds or freezes in place.
1163
+ *
1164
+ * Emits `Refunded` event when successful.
1165
+ **/
1166
+ | { name: 'RefundOther'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1167
+ /**
1168
+ * Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
1169
+ *
1170
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1171
+ *
1172
+ * - `id`: The identifier of the account's asset.
1173
+ * - `who`: The account to be unblocked.
1174
+ *
1175
+ * Emits `Blocked`.
1176
+ *
1177
+ * Weight: `O(1)`
1178
+ **/
1179
+ | { name: 'Block'; params: { id: StagingXcmV5Location; who: MultiAddress } }
1180
+ /**
1181
+ * Transfer the entire transferable balance from the caller asset account.
1182
+ *
1183
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
1184
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
1185
+ * transferred by this function. To ensure that this function results in a killed account,
1186
+ * you might need to prepare the account by removing any reference counters, storage
1187
+ * deposits, etc...
1188
+ *
1189
+ * The dispatch origin of this call must be Signed.
1190
+ *
1191
+ * - `id`: The identifier of the asset for the account holding a deposit.
1192
+ * - `dest`: The recipient of the transfer.
1193
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
1194
+ * of the funds the asset account has, causing the sender asset account to be killed
1195
+ * (false), or transfer everything except at least the minimum balance, which will
1196
+ * guarantee to keep the sender asset account alive (true).
1197
+ **/
1198
+ | { name: 'TransferAll'; params: { id: StagingXcmV5Location; dest: MultiAddress; keepAlive: boolean } };
1199
+
1200
+ export type PalletAssetsCallLike =
1201
+ /**
1202
+ * Issue a new class of fungible assets from a public origin.
1203
+ *
1204
+ * This new asset class has no assets initially and its owner is the origin.
1205
+ *
1206
+ * The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
1207
+ *
1208
+ * Funds of sender are reserved by `AssetDeposit`.
1209
+ *
1210
+ * Parameters:
1211
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
1212
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
1213
+ * - `admin`: The admin of this class of assets. The admin is the initial address of each
1214
+ * member of the asset class's admin team.
1215
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1216
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1217
+ *
1218
+ * Emits `Created` event when successful.
1219
+ *
1220
+ * Weight: `O(1)`
1221
+ **/
1222
+ | { name: 'Create'; params: { id: StagingXcmV5Location; admin: MultiAddressLike; minBalance: bigint } }
1223
+ /**
1224
+ * Issue a new class of fungible assets from a privileged origin.
1225
+ *
1226
+ * This new asset class has no assets initially.
1227
+ *
1228
+ * The origin must conform to `ForceOrigin`.
1229
+ *
1230
+ * Unlike `create`, no funds are reserved.
1231
+ *
1232
+ * - `id`: The identifier of the new asset. This must not be currently in use to identify
1233
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
1234
+ * - `owner`: The owner of this class of assets. The owner has full superuser permissions
1235
+ * over this asset, but may later change and configure the permissions using
1236
+ * `transfer_ownership` and `set_team`.
1237
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1238
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1239
+ *
1240
+ * Emits `ForceCreated` event when successful.
1241
+ *
1242
+ * Weight: `O(1)`
1243
+ **/
1244
+ | {
1245
+ name: 'ForceCreate';
1246
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; isSufficient: boolean; minBalance: bigint };
1247
+ }
1248
+ /**
1249
+ * Start the process of destroying a fungible asset class.
1250
+ *
1251
+ * `start_destroy` is the first in a series of extrinsics that should be called, to allow
1252
+ * destruction of an asset class.
1253
+ *
1254
+ * The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
1255
+ *
1256
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1257
+ * asset.
1258
+ *
1259
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1260
+ * an account contains holds or freezes in place.
1261
+ **/
1262
+ | { name: 'StartDestroy'; params: { id: StagingXcmV5Location } }
1263
+ /**
1264
+ * Destroy all accounts associated with a given asset.
1265
+ *
1266
+ * `destroy_accounts` should only be called after `start_destroy` has been called, and the
1267
+ * asset is in a `Destroying` state.
1268
+ *
1269
+ * Due to weight restrictions, this function may need to be called multiple times to fully
1270
+ * destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
1271
+ *
1272
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1273
+ * asset.
1274
+ *
1275
+ * Each call emits the `Event::DestroyedAccounts` event.
1276
+ **/
1277
+ | { name: 'DestroyAccounts'; params: { id: StagingXcmV5Location } }
1278
+ /**
1279
+ * Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
1280
+ *
1281
+ * `destroy_approvals` should only be called after `start_destroy` has been called, and the
1282
+ * asset is in a `Destroying` state.
1283
+ *
1284
+ * Due to weight restrictions, this function may need to be called multiple times to fully
1285
+ * destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
1286
+ *
1287
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1288
+ * asset.
1289
+ *
1290
+ * Each call emits the `Event::DestroyedApprovals` event.
1291
+ **/
1292
+ | { name: 'DestroyApprovals'; params: { id: StagingXcmV5Location } }
1293
+ /**
1294
+ * Complete destroying asset and unreserve currency.
1295
+ *
1296
+ * `finish_destroy` should only be called after `start_destroy` has been called, and the
1297
+ * asset is in a `Destroying` state. All accounts or approvals should be destroyed before
1298
+ * hand.
1299
+ *
1300
+ * - `id`: The identifier of the asset to be destroyed. This must identify an existing
1301
+ * asset.
1302
+ *
1303
+ * Each successful call emits the `Event::Destroyed` event.
1304
+ **/
1305
+ | { name: 'FinishDestroy'; params: { id: StagingXcmV5Location } }
1306
+ /**
1307
+ * Mint assets of a particular class.
1308
+ *
1309
+ * The origin must be Signed and the sender must be the Issuer of the asset `id`.
1310
+ *
1311
+ * - `id`: The identifier of the asset to have some amount minted.
1312
+ * - `beneficiary`: The account to be credited with the minted assets.
1313
+ * - `amount`: The amount of the asset to be minted.
1314
+ *
1315
+ * Emits `Issued` event when successful.
1316
+ *
1317
+ * Weight: `O(1)`
1318
+ * Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
1319
+ **/
1320
+ | { name: 'Mint'; params: { id: StagingXcmV5Location; beneficiary: MultiAddressLike; amount: bigint } }
1321
+ /**
1322
+ * Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
1323
+ *
1324
+ * Origin must be Signed and the sender should be the Manager of the asset `id`.
1325
+ *
1326
+ * Bails with `NoAccount` if the `who` is already dead.
1327
+ *
1328
+ * - `id`: The identifier of the asset to have some amount burned.
1329
+ * - `who`: The account to be debited from.
1330
+ * - `amount`: The maximum amount by which `who`'s balance should be reduced.
1331
+ *
1332
+ * Emits `Burned` with the actual amount burned. If this takes the balance to below the
1333
+ * minimum for the asset, then the amount burned is increased to take it to zero.
1334
+ *
1335
+ * Weight: `O(1)`
1336
+ * Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
1337
+ **/
1338
+ | { name: 'Burn'; params: { id: StagingXcmV5Location; who: MultiAddressLike; amount: bigint } }
1339
+ /**
1340
+ * Move some assets from the sender account to another.
1341
+ *
1342
+ * Origin must be Signed.
1343
+ *
1344
+ * - `id`: The identifier of the asset to have some amount transferred.
1345
+ * - `target`: The account to be credited.
1346
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
1347
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
1348
+ * the case that the transfer would otherwise take the sender balance above zero but below
1349
+ * the minimum balance. Must be greater than zero.
1350
+ *
1351
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1352
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1353
+ * to zero.
1354
+ *
1355
+ * Weight: `O(1)`
1356
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
1357
+ * `target`.
1358
+ **/
1359
+ | { name: 'Transfer'; params: { id: StagingXcmV5Location; target: MultiAddressLike; amount: bigint } }
1360
+ /**
1361
+ * Move some assets from the sender account to another, keeping the sender account alive.
1362
+ *
1363
+ * Origin must be Signed.
1364
+ *
1365
+ * - `id`: The identifier of the asset to have some amount transferred.
1366
+ * - `target`: The account to be credited.
1367
+ * - `amount`: The amount by which the sender's balance of assets should be reduced and
1368
+ * `target`'s balance increased. The amount actually transferred may be slightly greater in
1369
+ * the case that the transfer would otherwise take the sender balance above zero but below
1370
+ * the minimum balance. Must be greater than zero.
1371
+ *
1372
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1373
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1374
+ * to zero.
1375
+ *
1376
+ * Weight: `O(1)`
1377
+ * Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
1378
+ * `target`.
1379
+ **/
1380
+ | { name: 'TransferKeepAlive'; params: { id: StagingXcmV5Location; target: MultiAddressLike; amount: bigint } }
1381
+ /**
1382
+ * Move some assets from one account to another.
1383
+ *
1384
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1385
+ *
1386
+ * - `id`: The identifier of the asset to have some amount transferred.
1387
+ * - `source`: The account to be debited.
1388
+ * - `dest`: The account to be credited.
1389
+ * - `amount`: The amount by which the `source`'s balance of assets should be reduced and
1390
+ * `dest`'s balance increased. The amount actually transferred may be slightly greater in
1391
+ * the case that the transfer would otherwise take the `source` balance above zero but
1392
+ * below the minimum balance. Must be greater than zero.
1393
+ *
1394
+ * Emits `Transferred` with the actual amount transferred. If this takes the source balance
1395
+ * to below the minimum for the asset, then the amount transferred is increased to take it
1396
+ * to zero.
1397
+ *
1398
+ * Weight: `O(1)`
1399
+ * Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
1400
+ * `dest`.
1401
+ **/
1402
+ | {
1403
+ name: 'ForceTransfer';
1404
+ params: { id: StagingXcmV5Location; source: MultiAddressLike; dest: MultiAddressLike; amount: bigint };
1405
+ }
1406
+ /**
1407
+ * Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
1408
+ * must already exist as an entry in `Account`s of the asset. If you want to freeze an
1409
+ * account that does not have an entry, use `touch_other` first.
1410
+ *
1411
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1412
+ *
1413
+ * - `id`: The identifier of the asset to be frozen.
1414
+ * - `who`: The account to be frozen.
1415
+ *
1416
+ * Emits `Frozen`.
1417
+ *
1418
+ * Weight: `O(1)`
1419
+ **/
1420
+ | { name: 'Freeze'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
1421
+ /**
1422
+ * Allow unprivileged transfers to and from an account again.
1423
+ *
1424
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1425
+ *
1426
+ * - `id`: The identifier of the asset to be frozen.
1427
+ * - `who`: The account to be unfrozen.
1428
+ *
1429
+ * Emits `Thawed`.
1430
+ *
1431
+ * Weight: `O(1)`
1432
+ **/
1433
+ | { name: 'Thaw'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
1434
+ /**
1435
+ * Disallow further unprivileged transfers for the asset class.
1436
+ *
1437
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
1438
+ *
1439
+ * - `id`: The identifier of the asset to be frozen.
1440
+ *
1441
+ * Emits `Frozen`.
1442
+ *
1443
+ * Weight: `O(1)`
1444
+ **/
1445
+ | { name: 'FreezeAsset'; params: { id: StagingXcmV5Location } }
1446
+ /**
1447
+ * Allow unprivileged transfers for the asset again.
1448
+ *
1449
+ * Origin must be Signed and the sender should be the Admin of the asset `id`.
1450
+ *
1451
+ * - `id`: The identifier of the asset to be thawed.
1452
+ *
1453
+ * Emits `Thawed`.
1454
+ *
1455
+ * Weight: `O(1)`
1456
+ **/
1457
+ | { name: 'ThawAsset'; params: { id: StagingXcmV5Location } }
1458
+ /**
1459
+ * Change the Owner of an asset.
1460
+ *
1461
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1462
+ *
1463
+ * - `id`: The identifier of the asset.
1464
+ * - `owner`: The new Owner of this asset.
1465
+ *
1466
+ * Emits `OwnerChanged`.
1467
+ *
1468
+ * Weight: `O(1)`
1469
+ **/
1470
+ | { name: 'TransferOwnership'; params: { id: StagingXcmV5Location; owner: MultiAddressLike } }
1471
+ /**
1472
+ * Change the Issuer, Admin and Freezer of an asset.
1473
+ *
1474
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1475
+ *
1476
+ * - `id`: The identifier of the asset to be frozen.
1477
+ * - `issuer`: The new Issuer of this asset.
1478
+ * - `admin`: The new Admin of this asset.
1479
+ * - `freezer`: The new Freezer of this asset.
1480
+ *
1481
+ * Emits `TeamChanged`.
1482
+ *
1483
+ * Weight: `O(1)`
1484
+ **/
1485
+ | {
1486
+ name: 'SetTeam';
1487
+ params: {
1488
+ id: StagingXcmV5Location;
1489
+ issuer: MultiAddressLike;
1490
+ admin: MultiAddressLike;
1491
+ freezer: MultiAddressLike;
1492
+ };
1493
+ }
1494
+ /**
1495
+ * Set the metadata for an asset.
1496
+ *
1497
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1498
+ *
1499
+ * Funds of sender are reserved according to the formula:
1500
+ * `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
1501
+ * account any already reserved funds.
1502
+ *
1503
+ * - `id`: The identifier of the asset to update.
1504
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
1505
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
1506
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
1507
+ *
1508
+ * Emits `MetadataSet`.
1509
+ *
1510
+ * Weight: `O(1)`
1511
+ **/
1512
+ | { name: 'SetMetadata'; params: { id: StagingXcmV5Location; name: BytesLike; symbol: BytesLike; decimals: number } }
1513
+ /**
1514
+ * Clear the metadata for an asset.
1515
+ *
1516
+ * Origin must be Signed and the sender should be the Owner of the asset `id`.
1517
+ *
1518
+ * Any deposit is freed for the asset owner.
1519
+ *
1520
+ * - `id`: The identifier of the asset to clear.
1521
+ *
1522
+ * Emits `MetadataCleared`.
1523
+ *
1524
+ * Weight: `O(1)`
1525
+ **/
1526
+ | { name: 'ClearMetadata'; params: { id: StagingXcmV5Location } }
1527
+ /**
1528
+ * Force the metadata for an asset to some value.
1529
+ *
1530
+ * Origin must be ForceOrigin.
1531
+ *
1532
+ * Any deposit is left alone.
1533
+ *
1534
+ * - `id`: The identifier of the asset to update.
1535
+ * - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
1536
+ * - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
1537
+ * - `decimals`: The number of decimals this asset uses to represent one unit.
1538
+ *
1539
+ * Emits `MetadataSet`.
1540
+ *
1541
+ * Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
1542
+ **/
1543
+ | {
1544
+ name: 'ForceSetMetadata';
1545
+ params: { id: StagingXcmV5Location; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean };
1546
+ }
1547
+ /**
1548
+ * Clear the metadata for an asset.
1549
+ *
1550
+ * Origin must be ForceOrigin.
1551
+ *
1552
+ * Any deposit is returned.
1553
+ *
1554
+ * - `id`: The identifier of the asset to clear.
1555
+ *
1556
+ * Emits `MetadataCleared`.
1557
+ *
1558
+ * Weight: `O(1)`
1559
+ **/
1560
+ | { name: 'ForceClearMetadata'; params: { id: StagingXcmV5Location } }
1561
+ /**
1562
+ * Alter the attributes of a given asset.
1563
+ *
1564
+ * Origin must be `ForceOrigin`.
1565
+ *
1566
+ * - `id`: The identifier of the asset.
1567
+ * - `owner`: The new Owner of this asset.
1568
+ * - `issuer`: The new Issuer of this asset.
1569
+ * - `admin`: The new Admin of this asset.
1570
+ * - `freezer`: The new Freezer of this asset.
1571
+ * - `min_balance`: The minimum balance of this new asset that any single account must
1572
+ * have. If an account's balance is reduced below this, then it collapses to zero.
1573
+ * - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
1574
+ * value to account for the state bloat associated with its balance storage. If set to
1575
+ * `true`, then non-zero balances may be stored without a `consumer` reference (and thus
1576
+ * an ED in the Balances pallet or whatever else is used to control user-account state
1577
+ * growth).
1578
+ * - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
1579
+ * instructions.
1580
+ *
1581
+ * Emits `AssetStatusChanged` with the identity of the asset.
1582
+ *
1583
+ * Weight: `O(1)`
1584
+ **/
1585
+ | {
1586
+ name: 'ForceAssetStatus';
1587
+ params: {
1588
+ id: StagingXcmV5Location;
1589
+ owner: MultiAddressLike;
1590
+ issuer: MultiAddressLike;
1591
+ admin: MultiAddressLike;
1592
+ freezer: MultiAddressLike;
1593
+ minBalance: bigint;
1594
+ isSufficient: boolean;
1595
+ isFrozen: boolean;
1596
+ };
1597
+ }
458
1598
  /**
459
- * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
460
- * kill the origin account.
1599
+ * Approve an amount of asset for transfer by a delegated third-party account.
461
1600
  *
462
- * 99% of the time you want [`transfer_allow_death`] instead.
1601
+ * Origin must be Signed.
463
1602
  *
464
- * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1603
+ * Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
1604
+ * for the purpose of holding the approval. If some non-zero amount of assets is already
1605
+ * approved from signing account to `delegate`, then it is topped up or unreserved to
1606
+ * meet the right value.
1607
+ *
1608
+ * NOTE: The signing account does not need to own `amount` of assets at the point of
1609
+ * making this call.
1610
+ *
1611
+ * - `id`: The identifier of the asset.
1612
+ * - `delegate`: The account to delegate permission to transfer asset.
1613
+ * - `amount`: The amount of asset that may be transferred by `delegate`. If there is
1614
+ * already an approval in place, then this acts additively.
1615
+ *
1616
+ * Emits `ApprovedTransfer` on success.
1617
+ *
1618
+ * Weight: `O(1)`
465
1619
  **/
466
- | { name: 'TransferKeepAlive'; params: { dest: MultiAddress; value: bigint } }
1620
+ | { name: 'ApproveTransfer'; params: { id: StagingXcmV5Location; delegate: MultiAddressLike; amount: bigint } }
467
1621
  /**
468
- * Transfer the entire transferable balance from the caller account.
1622
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
469
1623
  *
470
- * NOTE: This function only attempts to transfer _transferable_ balances. This means that
471
- * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
472
- * transferred by this function. To ensure that this function results in a killed account,
473
- * you might need to prepare the account by removing any reference counters, storage
474
- * deposits, etc...
1624
+ * Origin must be Signed and there must be an approval in place between signer and
1625
+ * `delegate`.
475
1626
  *
476
- * The dispatch origin of this call must be Signed.
1627
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
477
1628
  *
478
- * - `dest`: The recipient of the transfer.
479
- * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
480
- * of the funds the account has, causing the sender account to be killed (false), or
481
- * transfer everything except at least the existential deposit, which will guarantee to
482
- * keep the sender account alive (true).
1629
+ * - `id`: The identifier of the asset.
1630
+ * - `delegate`: The account delegated permission to transfer asset.
1631
+ *
1632
+ * Emits `ApprovalCancelled` on success.
1633
+ *
1634
+ * Weight: `O(1)`
483
1635
  **/
484
- | { name: 'TransferAll'; params: { dest: MultiAddress; keepAlive: boolean } }
1636
+ | { name: 'CancelApproval'; params: { id: StagingXcmV5Location; delegate: MultiAddressLike } }
485
1637
  /**
486
- * Unreserve some balance from a user by force.
1638
+ * Cancel all of some asset approved for delegated transfer by a third-party account.
487
1639
  *
488
- * Can only be called by ROOT.
1640
+ * Origin must be either ForceOrigin or Signed origin with the signer being the Admin
1641
+ * account of the asset `id`.
1642
+ *
1643
+ * Unreserves any deposit previously reserved by `approve_transfer` for the approval.
1644
+ *
1645
+ * - `id`: The identifier of the asset.
1646
+ * - `delegate`: The account delegated permission to transfer asset.
1647
+ *
1648
+ * Emits `ApprovalCancelled` on success.
1649
+ *
1650
+ * Weight: `O(1)`
489
1651
  **/
490
- | { name: 'ForceUnreserve'; params: { who: MultiAddress; amount: bigint } }
1652
+ | {
1653
+ name: 'ForceCancelApproval';
1654
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; delegate: MultiAddressLike };
1655
+ }
491
1656
  /**
492
- * Upgrade a specified account.
1657
+ * Transfer some asset balance from a previously delegated account to some third-party
1658
+ * account.
493
1659
  *
494
- * - `origin`: Must be `Signed`.
495
- * - `who`: The account to be upgraded.
1660
+ * Origin must be Signed and there must be an approval in place by the `owner` to the
1661
+ * signer.
496
1662
  *
497
- * This will waive the transaction fee if at least all but 10% of the accounts needed to
498
- * be upgraded. (We let some not have to be upgraded just in order to allow for the
499
- * possibility of churn).
1663
+ * If the entire amount approved for transfer is transferred, then any deposit previously
1664
+ * reserved by `approve_transfer` is unreserved.
1665
+ *
1666
+ * - `id`: The identifier of the asset.
1667
+ * - `owner`: The account which previously approved for a transfer of at least `amount` and
1668
+ * from which the asset balance will be withdrawn.
1669
+ * - `destination`: The account to which the asset balance of `amount` will be transferred.
1670
+ * - `amount`: The amount of assets to transfer.
1671
+ *
1672
+ * Emits `TransferredApproved` on success.
1673
+ *
1674
+ * Weight: `O(1)`
500
1675
  **/
501
- | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
1676
+ | {
1677
+ name: 'TransferApproved';
1678
+ params: { id: StagingXcmV5Location; owner: MultiAddressLike; destination: MultiAddressLike; amount: bigint };
1679
+ }
502
1680
  /**
503
- * Set the regular balance of a given account.
1681
+ * Create an asset account for non-provider assets.
504
1682
  *
505
- * The dispatch origin for this call is `root`.
1683
+ * A deposit will be taken from the signer account.
1684
+ *
1685
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1686
+ * to be taken.
1687
+ * - `id`: The identifier of the asset for the account to be created.
1688
+ *
1689
+ * Emits `Touched` event when successful.
506
1690
  **/
507
- | { name: 'ForceSetBalance'; params: { who: MultiAddress; newFree: bigint } }
1691
+ | { name: 'Touch'; params: { id: StagingXcmV5Location } }
508
1692
  /**
509
- * Adjust the total issuance in a saturating way.
1693
+ * Return the deposit (if any) of an asset account or a consumer reference (if any) of an
1694
+ * account.
510
1695
  *
511
- * Can only be called by root and always needs a positive `delta`.
1696
+ * The origin must be Signed.
512
1697
  *
513
- * # Example
1698
+ * - `id`: The identifier of the asset for which the caller would like the deposit
1699
+ * refunded.
1700
+ * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
1701
+ *
1702
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1703
+ * the asset account contains holds or freezes in place.
1704
+ *
1705
+ * Emits `Refunded` event when successful.
514
1706
  **/
515
- | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
1707
+ | { name: 'Refund'; params: { id: StagingXcmV5Location; allowBurn: boolean } }
516
1708
  /**
517
- * Burn the specified liquid free balance from the origin account.
1709
+ * Sets the minimum balance of an asset.
518
1710
  *
519
- * If the origin's account ends up below the existential deposit as a result
520
- * of the burn and `keep_alive` is false, the account will be reaped.
1711
+ * Only works if there aren't any accounts that are holding the asset or if
1712
+ * the new value of `min_balance` is less than the old one.
521
1713
  *
522
- * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
523
- * this `burn` operation will reduce total issuance by the amount _burned_.
1714
+ * Origin must be Signed and the sender has to be the Owner of the
1715
+ * asset `id`.
1716
+ *
1717
+ * - `id`: The identifier of the asset.
1718
+ * - `min_balance`: The new value of `min_balance`.
1719
+ *
1720
+ * Emits `AssetMinBalanceChanged` event when successful.
524
1721
  **/
525
- | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
526
-
527
- export type PalletBalancesCallLike =
1722
+ | { name: 'SetMinBalance'; params: { id: StagingXcmV5Location; minBalance: bigint } }
528
1723
  /**
529
- * Transfer some liquid free balance to another account.
1724
+ * Create an asset account for `who`.
530
1725
  *
531
- * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
532
- * If the sender's account is below the existential deposit as a result
533
- * of the transfer, the account will be reaped.
1726
+ * A deposit will be taken from the signer account.
534
1727
  *
535
- * The dispatch origin for this call must be `Signed` by the transactor.
1728
+ * - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
1729
+ * to be taken.
1730
+ * - `id`: The identifier of the asset for the account to be created, the asset status must
1731
+ * be live.
1732
+ * - `who`: The account to be created.
1733
+ *
1734
+ * Emits `Touched` event when successful.
536
1735
  **/
537
- | { name: 'TransferAllowDeath'; params: { dest: MultiAddressLike; value: bigint } }
1736
+ | { name: 'TouchOther'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
538
1737
  /**
539
- * Exactly as `transfer_allow_death`, except the origin must be root and the source account
540
- * may be specified.
1738
+ * Return the deposit (if any) of a target asset account. Useful if you are the depositor.
1739
+ *
1740
+ * The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
1741
+ * order to burn a non-zero balance of the asset, the caller must be the account and should
1742
+ * use `refund`.
1743
+ *
1744
+ * - `id`: The identifier of the asset for the account holding a deposit.
1745
+ * - `who`: The account to refund.
1746
+ *
1747
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
1748
+ * the asset account contains holds or freezes in place.
1749
+ *
1750
+ * Emits `Refunded` event when successful.
541
1751
  **/
542
- | { name: 'ForceTransfer'; params: { source: MultiAddressLike; dest: MultiAddressLike; value: bigint } }
1752
+ | { name: 'RefundOther'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
543
1753
  /**
544
- * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
545
- * kill the origin account.
1754
+ * Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
546
1755
  *
547
- * 99% of the time you want [`transfer_allow_death`] instead.
1756
+ * Origin must be Signed and the sender should be the Freezer of the asset `id`.
548
1757
  *
549
- * [`transfer_allow_death`]: struct.Pallet.html#method.transfer
1758
+ * - `id`: The identifier of the account's asset.
1759
+ * - `who`: The account to be unblocked.
1760
+ *
1761
+ * Emits `Blocked`.
1762
+ *
1763
+ * Weight: `O(1)`
550
1764
  **/
551
- | { name: 'TransferKeepAlive'; params: { dest: MultiAddressLike; value: bigint } }
1765
+ | { name: 'Block'; params: { id: StagingXcmV5Location; who: MultiAddressLike } }
552
1766
  /**
553
- * Transfer the entire transferable balance from the caller account.
1767
+ * Transfer the entire transferable balance from the caller asset account.
554
1768
  *
555
1769
  * NOTE: This function only attempts to transfer _transferable_ balances. This means that
556
- * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
1770
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
557
1771
  * transferred by this function. To ensure that this function results in a killed account,
558
1772
  * you might need to prepare the account by removing any reference counters, storage
559
1773
  * deposits, etc...
560
1774
  *
561
1775
  * The dispatch origin of this call must be Signed.
562
1776
  *
1777
+ * - `id`: The identifier of the asset for the account holding a deposit.
563
1778
  * - `dest`: The recipient of the transfer.
564
1779
  * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
565
- * of the funds the account has, causing the sender account to be killed (false), or
566
- * transfer everything except at least the existential deposit, which will guarantee to
567
- * keep the sender account alive (true).
1780
+ * of the funds the asset account has, causing the sender asset account to be killed
1781
+ * (false), or transfer everything except at least the minimum balance, which will
1782
+ * guarantee to keep the sender asset account alive (true).
568
1783
  **/
569
- | { name: 'TransferAll'; params: { dest: MultiAddressLike; keepAlive: boolean } }
1784
+ | { name: 'TransferAll'; params: { id: StagingXcmV5Location; dest: MultiAddressLike; keepAlive: boolean } };
1785
+
1786
+ export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
1787
+
1788
+ export type StagingXcmV5Junctions =
1789
+ | { type: 'Here' }
1790
+ | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
1791
+ | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
1792
+ | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
1793
+ | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
1794
+ | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
1795
+ | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
1796
+ | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
1797
+ | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
1798
+
1799
+ export type StagingXcmV5Junction =
1800
+ | { type: 'Parachain'; value: number }
1801
+ | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
1802
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
1803
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
1804
+ | { type: 'PalletInstance'; value: number }
1805
+ | { type: 'GeneralIndex'; value: bigint }
1806
+ | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1807
+ | { type: 'OnlyChild' }
1808
+ | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1809
+ | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
1810
+
1811
+ export type StagingXcmV5JunctionNetworkId =
1812
+ | { type: 'ByGenesis'; value: FixedBytes<32> }
1813
+ | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1814
+ | { type: 'Polkadot' }
1815
+ | { type: 'Kusama' }
1816
+ | { type: 'Ethereum'; value: { chainId: bigint } }
1817
+ | { type: 'BitcoinCore' }
1818
+ | { type: 'BitcoinCash' }
1819
+ | { type: 'PolkadotBulletin' };
1820
+
1821
+ export type XcmV3JunctionBodyId =
1822
+ | { type: 'Unit' }
1823
+ | { type: 'Moniker'; value: FixedBytes<4> }
1824
+ | { type: 'Index'; value: number }
1825
+ | { type: 'Executive' }
1826
+ | { type: 'Technical' }
1827
+ | { type: 'Legislative' }
1828
+ | { type: 'Judicial' }
1829
+ | { type: 'Defense' }
1830
+ | { type: 'Administration' }
1831
+ | { type: 'Treasury' };
1832
+
1833
+ export type XcmV3JunctionBodyPart =
1834
+ | { type: 'Voice' }
1835
+ | { type: 'Members'; value: { count: number } }
1836
+ | { type: 'Fraction'; value: { nom: number; denom: number } }
1837
+ | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
1838
+ | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
1839
+
1840
+ /**
1841
+ * Contains a variant per dispatchable extrinsic that this pallet has.
1842
+ **/
1843
+ export type PalletAssetRateCall =
570
1844
  /**
571
- * Unreserve some balance from a user by force.
1845
+ * Initialize a conversion rate to native balance for the given asset.
572
1846
  *
573
- * Can only be called by ROOT.
1847
+ * ## Complexity
1848
+ * - O(1)
574
1849
  **/
575
- | { name: 'ForceUnreserve'; params: { who: MultiAddressLike; amount: bigint } }
1850
+ | { name: 'Create'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
576
1851
  /**
577
- * Upgrade a specified account.
578
- *
579
- * - `origin`: Must be `Signed`.
580
- * - `who`: The account to be upgraded.
1852
+ * Update the conversion rate to native balance for the given asset.
581
1853
  *
582
- * This will waive the transaction fee if at least all but 10% of the accounts needed to
583
- * be upgraded. (We let some not have to be upgraded just in order to allow for the
584
- * possibility of churn).
1854
+ * ## Complexity
1855
+ * - O(1)
585
1856
  **/
586
- | { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
1857
+ | { name: 'Update'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
587
1858
  /**
588
- * Set the regular balance of a given account.
1859
+ * Remove an existing conversion rate to native balance for the given asset.
589
1860
  *
590
- * The dispatch origin for this call is `root`.
1861
+ * ## Complexity
1862
+ * - O(1)
591
1863
  **/
592
- | { name: 'ForceSetBalance'; params: { who: MultiAddressLike; newFree: bigint } }
1864
+ | { name: 'Remove'; params: { assetKind: StagingXcmV5Location } };
1865
+
1866
+ export type PalletAssetRateCallLike =
593
1867
  /**
594
- * Adjust the total issuance in a saturating way.
1868
+ * Initialize a conversion rate to native balance for the given asset.
595
1869
  *
596
- * Can only be called by root and always needs a positive `delta`.
597
- *
598
- * # Example
1870
+ * ## Complexity
1871
+ * - O(1)
599
1872
  **/
600
- | { name: 'ForceAdjustTotalIssuance'; params: { direction: PalletBalancesAdjustmentDirection; delta: bigint } }
1873
+ | { name: 'Create'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
601
1874
  /**
602
- * Burn the specified liquid free balance from the origin account.
1875
+ * Update the conversion rate to native balance for the given asset.
603
1876
  *
604
- * If the origin's account ends up below the existential deposit as a result
605
- * of the burn and `keep_alive` is false, the account will be reaped.
1877
+ * ## Complexity
1878
+ * - O(1)
1879
+ **/
1880
+ | { name: 'Update'; params: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
1881
+ /**
1882
+ * Remove an existing conversion rate to native balance for the given asset.
606
1883
  *
607
- * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
608
- * this `burn` operation will reduce total issuance by the amount _burned_.
1884
+ * ## Complexity
1885
+ * - O(1)
609
1886
  **/
610
- | { name: 'Burn'; params: { value: bigint; keepAlive: boolean } };
611
-
612
- export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
1887
+ | { name: 'Remove'; params: { assetKind: StagingXcmV5Location } };
613
1888
 
614
1889
  /**
615
1890
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -1637,79 +2912,22 @@ export type XcmV3Junctions =
1637
2912
  XcmV3Junction,
1638
2913
  XcmV3Junction,
1639
2914
  XcmV3Junction,
1640
- ];
1641
- };
1642
-
1643
- export type XcmV3Junction =
1644
- | { type: 'Parachain'; value: number }
1645
- | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } }
1646
- | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } }
1647
- | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } }
1648
- | { type: 'PalletInstance'; value: number }
1649
- | { type: 'GeneralIndex'; value: bigint }
1650
- | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1651
- | { type: 'OnlyChild' }
1652
- | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1653
- | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId };
1654
-
1655
- export type XcmV3JunctionNetworkId =
1656
- | { type: 'ByGenesis'; value: FixedBytes<32> }
1657
- | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1658
- | { type: 'Polkadot' }
1659
- | { type: 'Kusama' }
1660
- | { type: 'Westend' }
1661
- | { type: 'Rococo' }
1662
- | { type: 'Wococo' }
1663
- | { type: 'Ethereum'; value: { chainId: bigint } }
1664
- | { type: 'BitcoinCore' }
1665
- | { type: 'BitcoinCash' }
1666
- | { type: 'PolkadotBulletin' };
1667
-
1668
- export type XcmV3JunctionBodyId =
1669
- | { type: 'Unit' }
1670
- | { type: 'Moniker'; value: FixedBytes<4> }
1671
- | { type: 'Index'; value: number }
1672
- | { type: 'Executive' }
1673
- | { type: 'Technical' }
1674
- | { type: 'Legislative' }
1675
- | { type: 'Judicial' }
1676
- | { type: 'Defense' }
1677
- | { type: 'Administration' }
1678
- | { type: 'Treasury' };
1679
-
1680
- export type XcmV3JunctionBodyPart =
1681
- | { type: 'Voice' }
1682
- | { type: 'Members'; value: { count: number } }
1683
- | { type: 'Fraction'; value: { nom: number; denom: number } }
1684
- | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
1685
- | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
1686
-
1687
- export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
1688
-
1689
- export type StagingXcmV4Junctions =
1690
- | { type: 'Here' }
1691
- | { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
1692
- | { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
1693
- | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
1694
- | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
1695
- | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
1696
- | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
1697
- | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
1698
- | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
2915
+ ];
2916
+ };
1699
2917
 
1700
- export type StagingXcmV4Junction =
2918
+ export type XcmV3Junction =
1701
2919
  | { type: 'Parachain'; value: number }
1702
- | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
1703
- | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
1704
- | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
2920
+ | { type: 'AccountId32'; value: { network?: XcmV3JunctionNetworkId | undefined; id: FixedBytes<32> } }
2921
+ | { type: 'AccountIndex64'; value: { network?: XcmV3JunctionNetworkId | undefined; index: bigint } }
2922
+ | { type: 'AccountKey20'; value: { network?: XcmV3JunctionNetworkId | undefined; key: FixedBytes<20> } }
1705
2923
  | { type: 'PalletInstance'; value: number }
1706
2924
  | { type: 'GeneralIndex'; value: bigint }
1707
2925
  | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1708
2926
  | { type: 'OnlyChild' }
1709
2927
  | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1710
- | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
2928
+ | { type: 'GlobalConsensus'; value: XcmV3JunctionNetworkId };
1711
2929
 
1712
- export type StagingXcmV4JunctionNetworkId =
2930
+ export type XcmV3JunctionNetworkId =
1713
2931
  | { type: 'ByGenesis'; value: FixedBytes<32> }
1714
2932
  | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1715
2933
  | { type: 'Polkadot' }
@@ -1722,36 +2940,39 @@ export type StagingXcmV4JunctionNetworkId =
1722
2940
  | { type: 'BitcoinCash' }
1723
2941
  | { type: 'PolkadotBulletin' };
1724
2942
 
1725
- export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
2943
+ export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
1726
2944
 
1727
- export type StagingXcmV5Junctions =
2945
+ export type StagingXcmV4Junctions =
1728
2946
  | { type: 'Here' }
1729
- | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
1730
- | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
1731
- | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
1732
- | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
1733
- | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
1734
- | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
1735
- | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
1736
- | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
2947
+ | { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
2948
+ | { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
2949
+ | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
2950
+ | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
2951
+ | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
2952
+ | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
2953
+ | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
2954
+ | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
1737
2955
 
1738
- export type StagingXcmV5Junction =
2956
+ export type StagingXcmV4Junction =
1739
2957
  | { type: 'Parachain'; value: number }
1740
- | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
1741
- | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
1742
- | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
2958
+ | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
2959
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
2960
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
1743
2961
  | { type: 'PalletInstance'; value: number }
1744
2962
  | { type: 'GeneralIndex'; value: bigint }
1745
2963
  | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1746
2964
  | { type: 'OnlyChild' }
1747
2965
  | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1748
- | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
2966
+ | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
1749
2967
 
1750
- export type StagingXcmV5JunctionNetworkId =
2968
+ export type StagingXcmV4JunctionNetworkId =
1751
2969
  | { type: 'ByGenesis'; value: FixedBytes<32> }
1752
2970
  | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1753
2971
  | { type: 'Polkadot' }
1754
2972
  | { type: 'Kusama' }
2973
+ | { type: 'Westend' }
2974
+ | { type: 'Rococo' }
2975
+ | { type: 'Wococo' }
1755
2976
  | { type: 'Ethereum'; value: { chainId: bigint } }
1756
2977
  | { type: 'BitcoinCore' }
1757
2978
  | { type: 'BitcoinCash' }
@@ -4022,7 +5243,7 @@ export type FrameSystemExtensionsCheckNonce = number;
4022
5243
 
4023
5244
  export type FrameSystemExtensionsCheckWeight = {};
4024
5245
 
4025
- export type PalletTransactionPaymentChargeTransactionPayment = bigint;
5246
+ export type PalletAssetTxPaymentChargeAssetTxPayment = { tip: bigint; assetId?: StagingXcmV5Location | undefined };
4026
5247
 
4027
5248
  export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
4028
5249
 
@@ -4059,6 +5280,10 @@ export type PeoplePaseoRuntimeRuntimeEvent =
4059
5280
  | { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
4060
5281
  | { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
4061
5282
  | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
5283
+ | { pallet: 'Assets'; palletEvent: PalletAssetsEvent }
5284
+ | { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
5285
+ | { pallet: 'AssetTxPayment'; palletEvent: PalletAssetTxPaymentEvent }
5286
+ | { pallet: 'AssetsHolder'; palletEvent: PalletAssetsHolderEvent }
4062
5287
  | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
4063
5288
  | { pallet: 'Session'; palletEvent: PalletSessionEvent }
4064
5289
  | { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
@@ -4395,6 +5620,210 @@ export type PalletTransactionPaymentEvent =
4395
5620
  **/
4396
5621
  { name: 'TransactionFeePaid'; data: { who: AccountId32; actualFee: bigint; tip: bigint } };
4397
5622
 
5623
+ /**
5624
+ * The `Event` enum of this pallet
5625
+ **/
5626
+ export type PalletAssetsEvent =
5627
+ /**
5628
+ * Some asset class was created.
5629
+ **/
5630
+ | { name: 'Created'; data: { assetId: StagingXcmV5Location; creator: AccountId32; owner: AccountId32 } }
5631
+ /**
5632
+ * Some assets were issued.
5633
+ **/
5634
+ | { name: 'Issued'; data: { assetId: StagingXcmV5Location; owner: AccountId32; amount: bigint } }
5635
+ /**
5636
+ * Some assets were transferred.
5637
+ **/
5638
+ | { name: 'Transferred'; data: { assetId: StagingXcmV5Location; from: AccountId32; to: AccountId32; amount: bigint } }
5639
+ /**
5640
+ * Some assets were destroyed.
5641
+ **/
5642
+ | { name: 'Burned'; data: { assetId: StagingXcmV5Location; owner: AccountId32; balance: bigint } }
5643
+ /**
5644
+ * The management team changed.
5645
+ **/
5646
+ | {
5647
+ name: 'TeamChanged';
5648
+ data: { assetId: StagingXcmV5Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 };
5649
+ }
5650
+ /**
5651
+ * The owner changed.
5652
+ **/
5653
+ | { name: 'OwnerChanged'; data: { assetId: StagingXcmV5Location; owner: AccountId32 } }
5654
+ /**
5655
+ * Some account `who` was frozen.
5656
+ **/
5657
+ | { name: 'Frozen'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5658
+ /**
5659
+ * Some account `who` was thawed.
5660
+ **/
5661
+ | { name: 'Thawed'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5662
+ /**
5663
+ * Some asset `asset_id` was frozen.
5664
+ **/
5665
+ | { name: 'AssetFrozen'; data: { assetId: StagingXcmV5Location } }
5666
+ /**
5667
+ * Some asset `asset_id` was thawed.
5668
+ **/
5669
+ | { name: 'AssetThawed'; data: { assetId: StagingXcmV5Location } }
5670
+ /**
5671
+ * Accounts were destroyed for given asset.
5672
+ **/
5673
+ | {
5674
+ name: 'AccountsDestroyed';
5675
+ data: { assetId: StagingXcmV5Location; accountsDestroyed: number; accountsRemaining: number };
5676
+ }
5677
+ /**
5678
+ * Approvals were destroyed for given asset.
5679
+ **/
5680
+ | {
5681
+ name: 'ApprovalsDestroyed';
5682
+ data: { assetId: StagingXcmV5Location; approvalsDestroyed: number; approvalsRemaining: number };
5683
+ }
5684
+ /**
5685
+ * An asset class is in the process of being destroyed.
5686
+ **/
5687
+ | { name: 'DestructionStarted'; data: { assetId: StagingXcmV5Location } }
5688
+ /**
5689
+ * An asset class was destroyed.
5690
+ **/
5691
+ | { name: 'Destroyed'; data: { assetId: StagingXcmV5Location } }
5692
+ /**
5693
+ * Some asset class was force-created.
5694
+ **/
5695
+ | { name: 'ForceCreated'; data: { assetId: StagingXcmV5Location; owner: AccountId32 } }
5696
+ /**
5697
+ * New metadata has been set for an asset.
5698
+ **/
5699
+ | {
5700
+ name: 'MetadataSet';
5701
+ data: { assetId: StagingXcmV5Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean };
5702
+ }
5703
+ /**
5704
+ * Metadata has been cleared for an asset.
5705
+ **/
5706
+ | { name: 'MetadataCleared'; data: { assetId: StagingXcmV5Location } }
5707
+ /**
5708
+ * (Additional) funds have been approved for transfer to a destination account.
5709
+ **/
5710
+ | {
5711
+ name: 'ApprovedTransfer';
5712
+ data: { assetId: StagingXcmV5Location; source: AccountId32; delegate: AccountId32; amount: bigint };
5713
+ }
5714
+ /**
5715
+ * An approval for account `delegate` was cancelled by `owner`.
5716
+ **/
5717
+ | { name: 'ApprovalCancelled'; data: { assetId: StagingXcmV5Location; owner: AccountId32; delegate: AccountId32 } }
5718
+ /**
5719
+ * An `amount` was transferred in its entirety from `owner` to `destination` by
5720
+ * the approved `delegate`.
5721
+ **/
5722
+ | {
5723
+ name: 'TransferredApproved';
5724
+ data: {
5725
+ assetId: StagingXcmV5Location;
5726
+ owner: AccountId32;
5727
+ delegate: AccountId32;
5728
+ destination: AccountId32;
5729
+ amount: bigint;
5730
+ };
5731
+ }
5732
+ /**
5733
+ * An asset has had its attributes changed by the `Force` origin.
5734
+ **/
5735
+ | { name: 'AssetStatusChanged'; data: { assetId: StagingXcmV5Location } }
5736
+ /**
5737
+ * The min_balance of an asset has been updated by the asset owner.
5738
+ **/
5739
+ | { name: 'AssetMinBalanceChanged'; data: { assetId: StagingXcmV5Location; newMinBalance: bigint } }
5740
+ /**
5741
+ * Some account `who` was created with a deposit from `depositor`.
5742
+ **/
5743
+ | { name: 'Touched'; data: { assetId: StagingXcmV5Location; who: AccountId32; depositor: AccountId32 } }
5744
+ /**
5745
+ * Some account `who` was blocked.
5746
+ **/
5747
+ | { name: 'Blocked'; data: { assetId: StagingXcmV5Location; who: AccountId32 } }
5748
+ /**
5749
+ * Some assets were deposited (e.g. for transaction fees).
5750
+ **/
5751
+ | { name: 'Deposited'; data: { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint } }
5752
+ /**
5753
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
5754
+ **/
5755
+ | { name: 'Withdrawn'; data: { assetId: StagingXcmV5Location; who: AccountId32; amount: bigint } };
5756
+
5757
+ /**
5758
+ * The `Event` enum of this pallet
5759
+ **/
5760
+ export type PalletAssetRateEvent =
5761
+ | { name: 'AssetRateCreated'; data: { assetKind: StagingXcmV5Location; rate: FixedU128 } }
5762
+ | { name: 'AssetRateRemoved'; data: { assetKind: StagingXcmV5Location } }
5763
+ | { name: 'AssetRateUpdated'; data: { assetKind: StagingXcmV5Location; old: FixedU128; new: FixedU128 } };
5764
+
5765
+ /**
5766
+ * The `Event` enum of this pallet
5767
+ **/
5768
+ export type PalletAssetTxPaymentEvent =
5769
+ /**
5770
+ * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
5771
+ * has been paid by `who` in an asset `asset_id`.
5772
+ **/
5773
+ {
5774
+ name: 'AssetTxFeePaid';
5775
+ data: { who: AccountId32; actualFee: bigint; tip: bigint; assetId?: StagingXcmV5Location | undefined };
5776
+ };
5777
+
5778
+ /**
5779
+ * The `Event` enum of this pallet
5780
+ **/
5781
+ export type PalletAssetsHolderEvent =
5782
+ /**
5783
+ * `who`s balance on hold was increased by `amount`.
5784
+ **/
5785
+ | {
5786
+ name: 'Held';
5787
+ data: {
5788
+ who: AccountId32;
5789
+ assetId: StagingXcmV5Location;
5790
+ reason: PeoplePaseoRuntimeRuntimeHoldReason;
5791
+ amount: bigint;
5792
+ };
5793
+ }
5794
+ /**
5795
+ * `who`s balance on hold was decreased by `amount`.
5796
+ **/
5797
+ | {
5798
+ name: 'Released';
5799
+ data: {
5800
+ who: AccountId32;
5801
+ assetId: StagingXcmV5Location;
5802
+ reason: PeoplePaseoRuntimeRuntimeHoldReason;
5803
+ amount: bigint;
5804
+ };
5805
+ }
5806
+ /**
5807
+ * `who`s balance on hold was burned by `amount`.
5808
+ **/
5809
+ | {
5810
+ name: 'Burned';
5811
+ data: {
5812
+ who: AccountId32;
5813
+ assetId: StagingXcmV5Location;
5814
+ reason: PeoplePaseoRuntimeRuntimeHoldReason;
5815
+ amount: bigint;
5816
+ };
5817
+ };
5818
+
5819
+ export type PeoplePaseoRuntimeRuntimeHoldReason =
5820
+ | { type: 'Session'; value: PalletSessionHoldReason }
5821
+ | { type: 'PolkadotXcm'; value: PalletXcmHoldReason };
5822
+
5823
+ export type PalletSessionHoldReason = 'Keys';
5824
+
5825
+ export type PalletXcmHoldReason = 'AuthorizeAlias';
5826
+
4398
5827
  /**
4399
5828
  * The `Event` enum of this pallet
4400
5829
  **/
@@ -5219,7 +6648,7 @@ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
5219
6648
  FrameSystemExtensionsCheckMortality,
5220
6649
  FrameSystemExtensionsCheckNonce,
5221
6650
  FrameSystemExtensionsCheckWeight,
5222
- PalletTransactionPaymentChargeTransactionPayment,
6651
+ PalletAssetTxPaymentChargeAssetTxPayment,
5223
6652
  FrameMetadataHashExtensionCheckMetadataHash,
5224
6653
  ];
5225
6654
 
@@ -5344,14 +6773,6 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
5344
6773
 
5345
6774
  export type FrameSupportTokensMiscIdAmount = { id: PeoplePaseoRuntimeRuntimeHoldReason; amount: bigint };
5346
6775
 
5347
- export type PeoplePaseoRuntimeRuntimeHoldReason =
5348
- | { type: 'Session'; value: PalletSessionHoldReason }
5349
- | { type: 'PolkadotXcm'; value: PalletXcmHoldReason };
5350
-
5351
- export type PalletSessionHoldReason = 'Keys';
5352
-
5353
- export type PalletXcmHoldReason = 'AuthorizeAlias';
5354
-
5355
6776
  export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
5356
6777
 
5357
6778
  /**
@@ -5413,6 +6834,175 @@ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
5413
6834
 
5414
6835
  export type FrameSupportTokensFungibleImbalance = { amount: bigint };
5415
6836
 
6837
+ export type PalletAssetsAssetDetails = {
6838
+ owner: AccountId32;
6839
+ issuer: AccountId32;
6840
+ admin: AccountId32;
6841
+ freezer: AccountId32;
6842
+ supply: bigint;
6843
+ deposit: bigint;
6844
+ minBalance: bigint;
6845
+ isSufficient: boolean;
6846
+ accounts: number;
6847
+ sufficients: number;
6848
+ approvals: number;
6849
+ status: PalletAssetsAssetStatus;
6850
+ };
6851
+
6852
+ export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying';
6853
+
6854
+ export type PalletAssetsAssetAccount = {
6855
+ balance: bigint;
6856
+ status: PalletAssetsAccountStatus;
6857
+ reason: PalletAssetsExistenceReason;
6858
+ extra: [];
6859
+ };
6860
+
6861
+ export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked';
6862
+
6863
+ export type PalletAssetsExistenceReason =
6864
+ | { type: 'Consumer' }
6865
+ | { type: 'Sufficient' }
6866
+ | { type: 'DepositHeld'; value: bigint }
6867
+ | { type: 'DepositRefunded' }
6868
+ | { type: 'DepositFrom'; value: [AccountId32, bigint] };
6869
+
6870
+ export type PalletAssetsApproval = { amount: bigint; deposit: bigint };
6871
+
6872
+ export type PalletAssetsAssetMetadata = {
6873
+ deposit: bigint;
6874
+ name: Bytes;
6875
+ symbol: Bytes;
6876
+ decimals: number;
6877
+ isFrozen: boolean;
6878
+ };
6879
+
6880
+ /**
6881
+ * The `Error` enum of this pallet.
6882
+ **/
6883
+ export type PalletAssetsError =
6884
+ /**
6885
+ * Account balance must be greater than or equal to the transfer amount.
6886
+ **/
6887
+ | 'BalanceLow'
6888
+ /**
6889
+ * The account to alter does not exist.
6890
+ **/
6891
+ | 'NoAccount'
6892
+ /**
6893
+ * The signing account has no permission to do the operation.
6894
+ **/
6895
+ | 'NoPermission'
6896
+ /**
6897
+ * The given asset ID is unknown.
6898
+ **/
6899
+ | 'Unknown'
6900
+ /**
6901
+ * The origin account is frozen.
6902
+ **/
6903
+ | 'Frozen'
6904
+ /**
6905
+ * The asset ID is already taken.
6906
+ **/
6907
+ | 'InUse'
6908
+ /**
6909
+ * Invalid witness data given.
6910
+ **/
6911
+ | 'BadWitness'
6912
+ /**
6913
+ * Minimum balance should be non-zero.
6914
+ **/
6915
+ | 'MinBalanceZero'
6916
+ /**
6917
+ * Unable to increment the consumer reference counters on the account. Either no provider
6918
+ * reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
6919
+ * fewer then the maximum number of consumers has been reached.
6920
+ **/
6921
+ | 'UnavailableConsumer'
6922
+ /**
6923
+ * Invalid metadata given.
6924
+ **/
6925
+ | 'BadMetadata'
6926
+ /**
6927
+ * No approval exists that would allow the transfer.
6928
+ **/
6929
+ | 'Unapproved'
6930
+ /**
6931
+ * The source account would not survive the transfer and it needs to stay alive.
6932
+ **/
6933
+ | 'WouldDie'
6934
+ /**
6935
+ * The asset-account already exists.
6936
+ **/
6937
+ | 'AlreadyExists'
6938
+ /**
6939
+ * The asset-account doesn't have an associated deposit.
6940
+ **/
6941
+ | 'NoDeposit'
6942
+ /**
6943
+ * The operation would result in funds being burned.
6944
+ **/
6945
+ | 'WouldBurn'
6946
+ /**
6947
+ * The asset is a live asset and is actively being used. Usually emit for operations such
6948
+ * as `start_destroy` which require the asset to be in a destroying state.
6949
+ **/
6950
+ | 'LiveAsset'
6951
+ /**
6952
+ * The asset is not live, and likely being destroyed.
6953
+ **/
6954
+ | 'AssetNotLive'
6955
+ /**
6956
+ * The asset status is not the expected status.
6957
+ **/
6958
+ | 'IncorrectStatus'
6959
+ /**
6960
+ * The asset should be frozen before the given operation.
6961
+ **/
6962
+ | 'NotFrozen'
6963
+ /**
6964
+ * Callback action resulted in error
6965
+ **/
6966
+ | 'CallbackFailed'
6967
+ /**
6968
+ * The asset ID must be equal to the [`NextAssetId`].
6969
+ **/
6970
+ | 'BadAssetId'
6971
+ /**
6972
+ * The asset cannot be destroyed because some accounts for this asset contain freezes.
6973
+ **/
6974
+ | 'ContainsFreezes'
6975
+ /**
6976
+ * The asset cannot be destroyed because some accounts for this asset contain holds.
6977
+ **/
6978
+ | 'ContainsHolds';
6979
+
6980
+ /**
6981
+ * The `Error` enum of this pallet.
6982
+ **/
6983
+ export type PalletAssetRateError =
6984
+ /**
6985
+ * The given asset ID is unknown.
6986
+ **/
6987
+ | 'UnknownAssetKind'
6988
+ /**
6989
+ * The given asset ID already has an assigned conversion rate and cannot be re-created.
6990
+ **/
6991
+ | 'AlreadyExists'
6992
+ /**
6993
+ * Overflow ocurred when calculating the inverse rate.
6994
+ **/
6995
+ | 'Overflow';
6996
+
6997
+ /**
6998
+ * The `Error` enum of this pallet.
6999
+ **/
7000
+ export type PalletAssetsHolderError =
7001
+ /**
7002
+ * Number of holds on an account would exceed the count of `RuntimeHoldReason`.
7003
+ **/
7004
+ 'TooManyHolds';
7005
+
5416
7006
  export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
5417
7007
 
5418
7008
  export type FrameSupportPalletId = FixedBytes<8>;
@@ -6240,6 +7830,9 @@ export type PeoplePaseoRuntimeRuntimeError =
6240
7830
  | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
6241
7831
  | { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError }
6242
7832
  | { pallet: 'Balances'; palletError: PalletBalancesError }
7833
+ | { pallet: 'Assets'; palletError: PalletAssetsError }
7834
+ | { pallet: 'AssetRate'; palletError: PalletAssetRateError }
7835
+ | { pallet: 'AssetsHolder'; palletError: PalletAssetsHolderError }
6243
7836
  | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
6244
7837
  | { pallet: 'Session'; palletError: PalletSessionError }
6245
7838
  | { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError }