@dedot/chaintypes 0.248.0 → 0.250.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/paseo/errors.d.ts +5 -0
- package/paseo/events.d.ts +94 -16
- package/paseo/index.d.ts +1 -1
- package/paseo/json-rpc.d.ts +1 -0
- package/paseo/query.d.ts +85 -46
- package/paseo/runtime.d.ts +90 -79
- package/paseo/tx.d.ts +81 -32
- package/paseo/types.d.ts +278 -209
- package/paseo-asset-hub/consts.d.ts +87 -0
- package/paseo-asset-hub/errors.d.ts +170 -0
- package/paseo-asset-hub/events.d.ts +359 -6
- package/paseo-asset-hub/index.d.ts +3 -1
- package/paseo-asset-hub/json-rpc.d.ts +1 -0
- package/paseo-asset-hub/query.d.ts +261 -17
- package/paseo-asset-hub/runtime.d.ts +11 -6
- package/paseo-asset-hub/tx.d.ts +729 -1
- package/paseo-asset-hub/types.d.ts +1426 -155
- package/paseo-asset-hub/view-functions.d.ts +195 -2
- package/paseo-people/errors.d.ts +5 -0
- package/paseo-people/events.d.ts +78 -2
- package/paseo-people/index.d.ts +1 -1
- package/paseo-people/query.d.ts +44 -16
- package/paseo-people/runtime.d.ts +9 -5
- package/paseo-people/tx.d.ts +30 -0
- package/paseo-people/types.d.ts +107 -25
- package/paseo-people/view-functions.d.ts +46 -1
- package/polkadot-asset-hub/consts.d.ts +87 -0
- package/polkadot-asset-hub/errors.d.ts +170 -0
- package/polkadot-asset-hub/events.d.ts +359 -6
- package/polkadot-asset-hub/index.d.ts +3 -1
- package/polkadot-asset-hub/query.d.ts +261 -17
- package/polkadot-asset-hub/runtime.d.ts +11 -6
- package/polkadot-asset-hub/tx.d.ts +729 -1
- package/polkadot-asset-hub/types.d.ts +1426 -155
- package/polkadot-asset-hub/view-functions.d.ts +195 -2
- package/polkadot-people/consts.d.ts +75 -0
- package/polkadot-people/errors.d.ts +170 -0
- package/polkadot-people/events.d.ts +377 -3
- package/polkadot-people/index.d.ts +5 -4
- package/polkadot-people/query.d.ts +169 -16
- package/polkadot-people/runtime.d.ts +9 -5
- package/polkadot-people/tx.d.ts +1316 -2
- package/polkadot-people/types.d.ts +1857 -182
- package/polkadot-people/view-functions.d.ts +46 -1
|
@@ -22,12 +22,12 @@ import type {
|
|
|
22
22
|
SpWeightsWeightV2Weight,
|
|
23
23
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
24
24
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
PolkadotPrimitivesV9PersistedValidationData,
|
|
26
|
+
PolkadotPrimitivesV9UpgradeRestriction,
|
|
27
|
+
PolkadotPrimitivesV9UpgradeGoAhead,
|
|
28
28
|
SpTrieStorageProof,
|
|
29
29
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
30
|
-
|
|
30
|
+
PolkadotPrimitivesV9AbridgedHostConfiguration,
|
|
31
31
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
33
|
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
@@ -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
|
PeoplePolkadotRuntimeSessionKeys,
|
|
45
50
|
SpStakingOffenceOffenceSeverity,
|
|
@@ -289,12 +294,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
289
294
|
|
|
290
295
|
/**
|
|
291
296
|
* The [`PersistedValidationData`] set for this block.
|
|
292
|
-
* This value is expected to be set only once per block and it's never stored
|
|
293
|
-
* in the trie.
|
|
294
297
|
*
|
|
295
|
-
*
|
|
298
|
+
* This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
|
|
299
|
+
*
|
|
300
|
+
* @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
|
|
296
301
|
**/
|
|
297
|
-
validationData: GenericStorageQuery<() =>
|
|
302
|
+
validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
|
|
298
303
|
|
|
299
304
|
/**
|
|
300
305
|
* Were the validation data set to notify the relay chain?
|
|
@@ -321,9 +326,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
321
326
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
322
327
|
* set after the inherent.
|
|
323
328
|
*
|
|
324
|
-
* @param {Callback<
|
|
329
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
|
|
325
330
|
**/
|
|
326
|
-
upgradeRestrictionSignal: GenericStorageQuery<() =>
|
|
331
|
+
upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
|
|
327
332
|
|
|
328
333
|
/**
|
|
329
334
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -332,9 +337,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
332
337
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
333
338
|
* set after the inherent.
|
|
334
339
|
*
|
|
335
|
-
* @param {Callback<
|
|
340
|
+
* @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
|
|
336
341
|
**/
|
|
337
|
-
upgradeGoAhead: GenericStorageQuery<() =>
|
|
342
|
+
upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
|
|
338
343
|
|
|
339
344
|
/**
|
|
340
345
|
* The state proof for the last relay parent block.
|
|
@@ -371,9 +376,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
371
376
|
*
|
|
372
377
|
* This data is also absent from the genesis.
|
|
373
378
|
*
|
|
374
|
-
* @param {Callback<
|
|
379
|
+
* @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
|
|
375
380
|
**/
|
|
376
|
-
hostConfiguration: GenericStorageQuery<() =>
|
|
381
|
+
hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
|
|
377
382
|
|
|
378
383
|
/**
|
|
379
384
|
* The last downward message queue chain head we have observed.
|
|
@@ -447,19 +452,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
447
452
|
/**
|
|
448
453
|
* Upward messages that were sent in a block.
|
|
449
454
|
*
|
|
450
|
-
* This will be cleared in `on_initialize`
|
|
455
|
+
* This will be cleared in `on_initialize` for each new block.
|
|
451
456
|
*
|
|
452
457
|
* @param {Callback<Array<Bytes>> =} callback
|
|
453
458
|
**/
|
|
454
459
|
upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
455
460
|
|
|
456
461
|
/**
|
|
457
|
-
* Upward messages that are still pending and not yet
|
|
462
|
+
* Upward messages that are still pending and not yet sent to the relay chain.
|
|
458
463
|
*
|
|
459
464
|
* @param {Callback<Array<Bytes>> =} callback
|
|
460
465
|
**/
|
|
461
466
|
pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
462
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Upward signals that are still pending and not yet sent to the relay chain.
|
|
470
|
+
*
|
|
471
|
+
* This will be cleared in `on_finalize` for each block.
|
|
472
|
+
*
|
|
473
|
+
* @param {Callback<Array<Bytes>> =} callback
|
|
474
|
+
**/
|
|
475
|
+
pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
|
|
476
|
+
|
|
463
477
|
/**
|
|
464
478
|
* The factor to multiply the base delivery fee by for UMP.
|
|
465
479
|
*
|
|
@@ -696,6 +710,134 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
696
710
|
**/
|
|
697
711
|
[storage: string]: GenericStorageQuery;
|
|
698
712
|
};
|
|
713
|
+
/**
|
|
714
|
+
* Pallet `Assets`'s storage queries
|
|
715
|
+
**/
|
|
716
|
+
assets: {
|
|
717
|
+
/**
|
|
718
|
+
* Details of an asset.
|
|
719
|
+
*
|
|
720
|
+
* @param {StagingXcmV5Location} arg
|
|
721
|
+
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
722
|
+
**/
|
|
723
|
+
asset: GenericStorageQuery<
|
|
724
|
+
(arg: StagingXcmV5Location) => PalletAssetsAssetDetails | undefined,
|
|
725
|
+
StagingXcmV5Location
|
|
726
|
+
>;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* The holdings of a specific account for a specific asset.
|
|
730
|
+
*
|
|
731
|
+
* @param {[StagingXcmV5Location, AccountId32Like]} arg
|
|
732
|
+
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
733
|
+
**/
|
|
734
|
+
account: GenericStorageQuery<
|
|
735
|
+
(arg: [StagingXcmV5Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
|
|
736
|
+
[StagingXcmV5Location, AccountId32]
|
|
737
|
+
>;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
741
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
742
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
743
|
+
*
|
|
744
|
+
* @param {[StagingXcmV5Location, AccountId32Like, AccountId32Like]} arg
|
|
745
|
+
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
746
|
+
**/
|
|
747
|
+
approvals: GenericStorageQuery<
|
|
748
|
+
(arg: [StagingXcmV5Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
|
|
749
|
+
[StagingXcmV5Location, AccountId32, AccountId32]
|
|
750
|
+
>;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Metadata of an asset.
|
|
754
|
+
*
|
|
755
|
+
* @param {StagingXcmV5Location} arg
|
|
756
|
+
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
757
|
+
**/
|
|
758
|
+
metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Maps an asset to a list of its configured reserve information.
|
|
762
|
+
*
|
|
763
|
+
* @param {StagingXcmV5Location} arg
|
|
764
|
+
* @param {Callback<Array<[]>> =} callback
|
|
765
|
+
**/
|
|
766
|
+
reserves: GenericStorageQuery<(arg: StagingXcmV5Location) => Array<[]>, StagingXcmV5Location>;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
770
|
+
* item has no effect.
|
|
771
|
+
*
|
|
772
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
773
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
774
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
775
|
+
*
|
|
776
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
777
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
778
|
+
*
|
|
779
|
+
* @param {Callback<StagingXcmV5Location | undefined> =} callback
|
|
780
|
+
**/
|
|
781
|
+
nextAssetId: GenericStorageQuery<() => StagingXcmV5Location | undefined>;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Generic pallet storage query
|
|
785
|
+
**/
|
|
786
|
+
[storage: string]: GenericStorageQuery;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Pallet `AssetRate`'s storage queries
|
|
790
|
+
**/
|
|
791
|
+
assetRate: {
|
|
792
|
+
/**
|
|
793
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
794
|
+
*
|
|
795
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
796
|
+
*
|
|
797
|
+
* @param {StagingXcmV5Location} arg
|
|
798
|
+
* @param {Callback<FixedU128 | undefined> =} callback
|
|
799
|
+
**/
|
|
800
|
+
conversionRateToNative: GenericStorageQuery<
|
|
801
|
+
(arg: StagingXcmV5Location) => FixedU128 | undefined,
|
|
802
|
+
StagingXcmV5Location
|
|
803
|
+
>;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Generic pallet storage query
|
|
807
|
+
**/
|
|
808
|
+
[storage: string]: GenericStorageQuery;
|
|
809
|
+
};
|
|
810
|
+
/**
|
|
811
|
+
* Pallet `AssetsHolder`'s storage queries
|
|
812
|
+
**/
|
|
813
|
+
assetsHolder: {
|
|
814
|
+
/**
|
|
815
|
+
* A map that stores holds applied on an account for a given AssetId.
|
|
816
|
+
*
|
|
817
|
+
* @param {[StagingXcmV5Location, AccountId32Like]} arg
|
|
818
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
819
|
+
**/
|
|
820
|
+
holds: GenericStorageQuery<
|
|
821
|
+
(arg: [StagingXcmV5Location, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmount>,
|
|
822
|
+
[StagingXcmV5Location, AccountId32]
|
|
823
|
+
>;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* A map that stores the current total balance on hold for every account on a given AssetId.
|
|
827
|
+
*
|
|
828
|
+
* @param {[StagingXcmV5Location, AccountId32Like]} arg
|
|
829
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
830
|
+
**/
|
|
831
|
+
balancesOnHold: GenericStorageQuery<
|
|
832
|
+
(arg: [StagingXcmV5Location, AccountId32Like]) => bigint | undefined,
|
|
833
|
+
[StagingXcmV5Location, AccountId32]
|
|
834
|
+
>;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Generic pallet storage query
|
|
838
|
+
**/
|
|
839
|
+
[storage: string]: GenericStorageQuery;
|
|
840
|
+
};
|
|
699
841
|
/**
|
|
700
842
|
* Pallet `Authorship`'s storage queries
|
|
701
843
|
**/
|
|
@@ -829,6 +971,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
829
971
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
830
972
|
>;
|
|
831
973
|
|
|
974
|
+
/**
|
|
975
|
+
* Accounts whose keys were set via `SessionInterface` (external path) without
|
|
976
|
+
* incrementing the consumer reference or placing a key deposit. `do_purge_keys`
|
|
977
|
+
* only decrements consumers for accounts that were registered through the local
|
|
978
|
+
* session pallet.
|
|
979
|
+
*
|
|
980
|
+
* @param {AccountId32Like} arg
|
|
981
|
+
* @param {Callback<[] | undefined> =} callback
|
|
982
|
+
**/
|
|
983
|
+
externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
984
|
+
|
|
832
985
|
/**
|
|
833
986
|
* Generic pallet storage query
|
|
834
987
|
**/
|
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
SpConsensusSlotsSlotDuration,
|
|
19
19
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
20
20
|
SpConsensusSlotsSlot,
|
|
21
|
-
|
|
21
|
+
SpRuntimeBlockLazyBlock,
|
|
22
22
|
SpRuntimeExtrinsicInclusionMode,
|
|
23
23
|
SpCoreOpaqueMetadata,
|
|
24
24
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -135,9 +135,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
135
135
|
* Execute the given block.
|
|
136
136
|
*
|
|
137
137
|
* @callname: Core_execute_block
|
|
138
|
-
* @param {
|
|
138
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
139
139
|
**/
|
|
140
|
-
executeBlock: GenericRuntimeApiMethod<(block:
|
|
140
|
+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Initialize a block with the given header and return the runtime executive mode.
|
|
@@ -228,11 +228,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
228
228
|
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
229
229
|
*
|
|
230
230
|
* @callname: BlockBuilder_check_inherents
|
|
231
|
-
* @param {
|
|
231
|
+
* @param {SpRuntimeBlockLazyBlock} block
|
|
232
232
|
* @param {SpInherentsInherentData} data
|
|
233
233
|
**/
|
|
234
234
|
checkInherents: GenericRuntimeApiMethod<
|
|
235
|
-
(block:
|
|
235
|
+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
236
236
|
>;
|
|
237
237
|
|
|
238
238
|
/**
|
|
@@ -506,6 +506,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
506
506
|
>;
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
|
+
* Query delivery fees V2.
|
|
510
|
+
*
|
|
509
511
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
510
512
|
* These always come in a specific asset, defined by the chain.
|
|
511
513
|
*
|
|
@@ -518,11 +520,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
518
520
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
519
521
|
* @param {XcmVersionedLocation} destination
|
|
520
522
|
* @param {XcmVersionedXcm} message
|
|
523
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
521
524
|
**/
|
|
522
525
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
523
526
|
(
|
|
524
527
|
destination: XcmVersionedLocation,
|
|
525
528
|
message: XcmVersionedXcm,
|
|
529
|
+
assetId: XcmVersionedAssetId,
|
|
526
530
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
527
531
|
>;
|
|
528
532
|
|