@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
@@ -13,8 +13,9 @@ import type {
13
13
  FrameSystemExtensionsCheckMortality,
14
14
  FrameSystemExtensionsCheckNonce,
15
15
  FrameSystemExtensionsCheckWeight,
16
- PalletTransactionPaymentChargeTransactionPayment,
16
+ PalletAssetTxPaymentChargeAssetTxPayment,
17
17
  FrameMetadataHashExtensionCheckMetadataHash,
18
+ StagingXcmV5Location,
18
19
  } from './types.js';
19
20
  import { ChainConsts } from './consts.js';
20
21
  import { ChainStorage } from './query.js';
@@ -39,17 +40,17 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
39
40
  FrameSystemExtensionsCheckMortality,
40
41
  FrameSystemExtensionsCheckNonce,
41
42
  FrameSystemExtensionsCheckWeight,
42
- PalletTransactionPaymentChargeTransactionPayment,
43
+ PalletAssetTxPaymentChargeAssetTxPayment,
43
44
  FrameMetadataHashExtensionCheckMetadataHash,
44
45
  [],
45
46
  ];
46
- AssetId: undefined;
47
+ AssetId: StagingXcmV5Location;
47
48
  EventRecord: FrameSystemEventRecord;
48
49
  }
49
50
 
50
51
  /**
51
52
  * @name: PaseoPeopleApi
52
- * @specVersion: 2000005
53
+ * @specVersion: 2000006
53
54
  **/
54
55
  export interface PaseoPeopleApi extends GenericSubstrateApi {
55
56
  rpc: ChainJsonRpcApis;
@@ -40,6 +40,11 @@ import type {
40
40
  FrameSupportTokensMiscIdAmount002,
41
41
  PalletTransactionPaymentReleases,
42
42
  FrameSupportStorageNoDrop,
43
+ PalletAssetsAssetDetails,
44
+ StagingXcmV5Location,
45
+ PalletAssetsAssetAccount,
46
+ PalletAssetsApproval,
47
+ PalletAssetsAssetMetadata,
43
48
  PalletCollatorSelectionCandidateInfo,
44
49
  PeoplePaseoRuntimeSessionKeys,
45
50
  SpStakingOffenceOffenceSeverity,
@@ -696,6 +701,126 @@ export interface ChainStorage extends GenericChainStorage {
696
701
  **/
697
702
  [storage: string]: GenericStorageQuery;
698
703
  };
704
+ /**
705
+ * Pallet `Assets`'s storage queries
706
+ **/
707
+ assets: {
708
+ /**
709
+ * Details of an asset.
710
+ *
711
+ * @param {StagingXcmV5Location} arg
712
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
713
+ **/
714
+ asset: GenericStorageQuery<
715
+ (arg: StagingXcmV5Location) => PalletAssetsAssetDetails | undefined,
716
+ StagingXcmV5Location
717
+ >;
718
+
719
+ /**
720
+ * The holdings of a specific account for a specific asset.
721
+ *
722
+ * @param {[StagingXcmV5Location, AccountId32Like]} arg
723
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
724
+ **/
725
+ account: GenericStorageQuery<
726
+ (arg: [StagingXcmV5Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
727
+ [StagingXcmV5Location, AccountId32]
728
+ >;
729
+
730
+ /**
731
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
732
+ * is the amount of `T::Currency` reserved for storing this.
733
+ * First key is the asset ID, second key is the owner and third key is the delegate.
734
+ *
735
+ * @param {[StagingXcmV5Location, AccountId32Like, AccountId32Like]} arg
736
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
737
+ **/
738
+ approvals: GenericStorageQuery<
739
+ (arg: [StagingXcmV5Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
740
+ [StagingXcmV5Location, AccountId32, AccountId32]
741
+ >;
742
+
743
+ /**
744
+ * Metadata of an asset.
745
+ *
746
+ * @param {StagingXcmV5Location} arg
747
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
748
+ **/
749
+ metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
750
+
751
+ /**
752
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
753
+ * item has no effect.
754
+ *
755
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
756
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
757
+ * auto-increment model can be applied to all new asset IDs.
758
+ *
759
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
760
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
761
+ *
762
+ * @param {Callback<StagingXcmV5Location | undefined> =} callback
763
+ **/
764
+ nextAssetId: GenericStorageQuery<() => StagingXcmV5Location | undefined>;
765
+
766
+ /**
767
+ * Generic pallet storage query
768
+ **/
769
+ [storage: string]: GenericStorageQuery;
770
+ };
771
+ /**
772
+ * Pallet `AssetRate`'s storage queries
773
+ **/
774
+ assetRate: {
775
+ /**
776
+ * Maps an asset to its fixed point representation in the native balance.
777
+ *
778
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
779
+ *
780
+ * @param {StagingXcmV5Location} arg
781
+ * @param {Callback<FixedU128 | undefined> =} callback
782
+ **/
783
+ conversionRateToNative: GenericStorageQuery<
784
+ (arg: StagingXcmV5Location) => FixedU128 | undefined,
785
+ StagingXcmV5Location
786
+ >;
787
+
788
+ /**
789
+ * Generic pallet storage query
790
+ **/
791
+ [storage: string]: GenericStorageQuery;
792
+ };
793
+ /**
794
+ * Pallet `AssetsHolder`'s storage queries
795
+ **/
796
+ assetsHolder: {
797
+ /**
798
+ * A map that stores holds applied on an account for a given AssetId.
799
+ *
800
+ * @param {[StagingXcmV5Location, AccountId32Like]} arg
801
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
802
+ **/
803
+ holds: GenericStorageQuery<
804
+ (arg: [StagingXcmV5Location, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmount>,
805
+ [StagingXcmV5Location, AccountId32]
806
+ >;
807
+
808
+ /**
809
+ * A map that stores the current total balance on hold for every account on a given AssetId.
810
+ *
811
+ * @param {[StagingXcmV5Location, AccountId32Like]} arg
812
+ * @param {Callback<bigint | undefined> =} callback
813
+ **/
814
+ balancesOnHold: GenericStorageQuery<
815
+ (arg: [StagingXcmV5Location, AccountId32Like]) => bigint | undefined,
816
+ [StagingXcmV5Location, AccountId32]
817
+ >;
818
+
819
+ /**
820
+ * Generic pallet storage query
821
+ **/
822
+ [storage: string]: GenericStorageQuery;
823
+ };
699
824
  /**
700
825
  * Pallet `Authorship`'s storage queries
701
826
  **/