Skip to content

Commit 23efea3

Browse files
author
debot
committed
chore: regenerate chaintypes
1 parent 6b72fd5 commit 23efea3

17 files changed

Lines changed: 956 additions & 433 deletions

File tree

packages/chaintypes/src/paseo-asset-hub/json-rpc.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type ChainJsonRpcApis = Pick<
1111
| 'author_pendingExtrinsics'
1212
| 'author_removeExtrinsic'
1313
| 'author_rotateKeys'
14+
| 'author_rotateKeysWithOwner'
1415
| 'author_submitAndWatchExtrinsic'
1516
| 'author_submitExtrinsic'
1617
| 'chainHead_v1_body'

packages/chaintypes/src/paseo-people/errors.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ export interface ChainErrors extends GenericChainErrors {
306306
**/
307307
ContainsHolds: GenericPalletError;
308308

309+
/**
310+
* Tried setting too many reserves.
311+
**/
312+
TooManyReserves: GenericPalletError;
313+
309314
/**
310315
* Generic pallet error
311316
**/

packages/chaintypes/src/paseo-people/events.d.ts

Lines changed: 78 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import type {
66
FrameSystemDispatchEventInfo,
77
SpWeightsWeightV2Weight,
88
FrameSupportTokensMiscBalanceStatus,
9+
PeoplePaseoRuntimeRuntimeHoldReason,
910
PalletBalancesUnexpectedKind,
1011
StagingXcmV5Location,
11-
PeoplePaseoRuntimeRuntimeHoldReason,
1212
StagingXcmV5TraitsOutcome,
1313
StagingXcmV5Xcm,
1414
XcmV3TraitsSendError,
@@ -327,11 +327,21 @@ export interface ChainEvents extends GenericChainEvents {
327327
**/
328328
Minted: GenericPalletEvent<'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
329329

330+
/**
331+
* Some credit was balanced and added to the TotalIssuance.
332+
**/
333+
MintedCredit: GenericPalletEvent<'Balances', 'MintedCredit', { amount: bigint }>;
334+
330335
/**
331336
* Some amount was burned from an account.
332337
**/
333338
Burned: GenericPalletEvent<'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
334339

340+
/**
341+
* Some debt has been dropped from the Total Issuance.
342+
**/
343+
BurnedDebt: GenericPalletEvent<'Balances', 'BurnedDebt', { amount: bigint }>;
344+
335345
/**
336346
* Some amount was suspended from an account (it can be restored later).
337347
**/
@@ -382,6 +392,51 @@ export interface ChainEvents extends GenericChainEvents {
382392
**/
383393
TotalIssuanceForced: GenericPalletEvent<'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
384394

395+
/**
396+
* Some balance was placed on hold.
397+
**/
398+
Held: GenericPalletEvent<
399+
'Balances',
400+
'Held',
401+
{ reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
402+
>;
403+
404+
/**
405+
* Held balance was burned from an account.
406+
**/
407+
BurnedHeld: GenericPalletEvent<
408+
'Balances',
409+
'BurnedHeld',
410+
{ reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
411+
>;
412+
413+
/**
414+
* A transfer of `amount` on hold from `source` to `dest` was initiated.
415+
**/
416+
TransferOnHold: GenericPalletEvent<
417+
'Balances',
418+
'TransferOnHold',
419+
{ reason: PeoplePaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; amount: bigint }
420+
>;
421+
422+
/**
423+
* The `transferred` balance is placed on hold at the `dest` account.
424+
**/
425+
TransferAndHold: GenericPalletEvent<
426+
'Balances',
427+
'TransferAndHold',
428+
{ reason: PeoplePaseoRuntimeRuntimeHoldReason; source: AccountId32; dest: AccountId32; transferred: bigint }
429+
>;
430+
431+
/**
432+
* Some balance was released from hold.
433+
**/
434+
Released: GenericPalletEvent<
435+
'Balances',
436+
'Released',
437+
{ reason: PeoplePaseoRuntimeRuntimeHoldReason; who: AccountId32; amount: bigint }
438+
>;
439+
385440
/**
386441
* An unexpected/defensive event was triggered.
387442
**/
@@ -612,6 +667,20 @@ export interface ChainEvents extends GenericChainEvents {
612667
{ assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
613668
>;
614669

670+
/**
671+
* Reserve information was set or updated for `asset_id`.
672+
**/
673+
ReservesUpdated: GenericPalletEvent<
674+
'Assets',
675+
'ReservesUpdated',
676+
{ assetId: StagingXcmV5Location; reserves: Array<[]> }
677+
>;
678+
679+
/**
680+
* Reserve information was removed for `asset_id`.
681+
**/
682+
ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
683+
615684
/**
616685
* Generic pallet event
617686
**/
@@ -1405,7 +1474,14 @@ export interface ChainEvents extends GenericChainEvents {
14051474
PureCreated: GenericPalletEvent<
14061475
'Proxy',
14071476
'PureCreated',
1408-
{ pure: AccountId32; who: AccountId32; proxyType: PeoplePaseoRuntimeProxyType; disambiguationIndex: number }
1477+
{
1478+
pure: AccountId32;
1479+
who: AccountId32;
1480+
proxyType: PeoplePaseoRuntimeProxyType;
1481+
disambiguationIndex: number;
1482+
at: number;
1483+
extrinsicIndex: number;
1484+
}
14091485
>;
14101486

14111487
/**

packages/chaintypes/src/paseo-people/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
5050

5151
/**
5252
* @name: PaseoPeopleApi
53-
* @specVersion: 2000006
53+
* @specVersion: 2001000
5454
**/
5555
export interface PaseoPeopleApi extends GenericSubstrateApi {
5656
rpc: ChainJsonRpcApis;

packages/chaintypes/src/paseo-people/query.d.ts

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import type {
2222
SpWeightsWeightV2Weight,
2323
CumulusPalletParachainSystemUnincludedSegmentAncestor,
2424
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
25-
PolkadotPrimitivesV8PersistedValidationData,
26-
PolkadotPrimitivesV8UpgradeRestriction,
27-
PolkadotPrimitivesV8UpgradeGoAhead,
25+
PolkadotPrimitivesV9PersistedValidationData,
26+
PolkadotPrimitivesV9UpgradeRestriction,
27+
PolkadotPrimitivesV9UpgradeGoAhead,
2828
SpTrieStorageProof,
2929
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
30-
PolkadotPrimitivesV8AbridgedHostConfiguration,
30+
PolkadotPrimitivesV9AbridgedHostConfiguration,
3131
CumulusPrimitivesParachainInherentMessageQueueChain,
3232
PolkadotParachainPrimitivesPrimitivesId,
3333
CumulusPalletParachainSystemParachainInherentInboundMessageId,
@@ -294,12 +294,12 @@ export interface ChainStorage extends GenericChainStorage {
294294

295295
/**
296296
* The [`PersistedValidationData`] set for this block.
297-
* This value is expected to be set only once per block and it's never stored
298-
* in the trie.
299297
*
300-
* @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
298+
* This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
299+
*
300+
* @param {Callback<PolkadotPrimitivesV9PersistedValidationData | undefined> =} callback
301301
**/
302-
validationData: GenericStorageQuery<() => PolkadotPrimitivesV8PersistedValidationData | undefined>;
302+
validationData: GenericStorageQuery<() => PolkadotPrimitivesV9PersistedValidationData | undefined>;
303303

304304
/**
305305
* Were the validation data set to notify the relay chain?
@@ -326,9 +326,9 @@ export interface ChainStorage extends GenericChainStorage {
326326
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
327327
* set after the inherent.
328328
*
329-
* @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
329+
* @param {Callback<PolkadotPrimitivesV9UpgradeRestriction | undefined> =} callback
330330
**/
331-
upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
331+
upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeRestriction | undefined>;
332332

333333
/**
334334
* Optional upgrade go-ahead signal from the relay-chain.
@@ -337,9 +337,9 @@ export interface ChainStorage extends GenericChainStorage {
337337
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
338338
* set after the inherent.
339339
*
340-
* @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
340+
* @param {Callback<PolkadotPrimitivesV9UpgradeGoAhead | undefined> =} callback
341341
**/
342-
upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
342+
upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV9UpgradeGoAhead | undefined>;
343343

344344
/**
345345
* The state proof for the last relay parent block.
@@ -376,9 +376,9 @@ export interface ChainStorage extends GenericChainStorage {
376376
*
377377
* This data is also absent from the genesis.
378378
*
379-
* @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
379+
* @param {Callback<PolkadotPrimitivesV9AbridgedHostConfiguration | undefined> =} callback
380380
**/
381-
hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
381+
hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV9AbridgedHostConfiguration | undefined>;
382382

383383
/**
384384
* The last downward message queue chain head we have observed.
@@ -452,19 +452,28 @@ export interface ChainStorage extends GenericChainStorage {
452452
/**
453453
* Upward messages that were sent in a block.
454454
*
455-
* This will be cleared in `on_initialize` of each new block.
455+
* This will be cleared in `on_initialize` for each new block.
456456
*
457457
* @param {Callback<Array<Bytes>> =} callback
458458
**/
459459
upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
460460

461461
/**
462-
* Upward messages that are still pending and not yet send to the relay chain.
462+
* Upward messages that are still pending and not yet sent to the relay chain.
463463
*
464464
* @param {Callback<Array<Bytes>> =} callback
465465
**/
466466
pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
467467

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+
468477
/**
469478
* The factor to multiply the base delivery fee by for UMP.
470479
*
@@ -748,6 +757,14 @@ export interface ChainStorage extends GenericChainStorage {
748757
**/
749758
metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
750759

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+
751768
/**
752769
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
753770
* item has no effect.
@@ -954,6 +971,17 @@ export interface ChainStorage extends GenericChainStorage {
954971
[SpCoreCryptoKeyTypeId, Bytes]
955972
>;
956973

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+
957985
/**
958986
* Generic pallet storage query
959987
**/

packages/chaintypes/src/paseo-people/runtime.d.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {
1818
SpConsensusSlotsSlotDuration,
1919
SpConsensusAuraSr25519AppSr25519Public,
2020
SpConsensusSlotsSlot,
21-
SpRuntimeBlock,
21+
SpRuntimeBlockLazyBlock,
2222
SpRuntimeExtrinsicInclusionMode,
2323
SpCoreOpaqueMetadata,
2424
SpRuntimeTransactionValidityTransactionValidityError,
@@ -135,9 +135,9 @@ export interface RuntimeApis extends GenericRuntimeApis {
135135
* Execute the given block.
136136
*
137137
* @callname: Core_execute_block
138-
* @param {SpRuntimeBlock} block
138+
* @param {SpRuntimeBlockLazyBlock} block
139139
**/
140-
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
140+
executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlockLazyBlock) => Promise<[]>>;
141141

142142
/**
143143
* Initialize a block with the given header and return the runtime executive mode.
@@ -228,11 +228,11 @@ export interface RuntimeApis extends GenericRuntimeApis {
228228
* Check that the inherents are valid. The inherent data will vary from chain to chain.
229229
*
230230
* @callname: BlockBuilder_check_inherents
231-
* @param {SpRuntimeBlock} block
231+
* @param {SpRuntimeBlockLazyBlock} block
232232
* @param {SpInherentsInherentData} data
233233
**/
234234
checkInherents: GenericRuntimeApiMethod<
235-
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
235+
(block: SpRuntimeBlockLazyBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
236236
>;
237237

238238
/**
@@ -506,6 +506,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
506506
>;
507507

508508
/**
509+
* Query delivery fees V2.
510+
*
509511
* Get delivery fees for sending a specific `message` to a `destination`.
510512
* These always come in a specific asset, defined by the chain.
511513
*
@@ -518,11 +520,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
518520
* @callname: XcmPaymentApi_query_delivery_fees
519521
* @param {XcmVersionedLocation} destination
520522
* @param {XcmVersionedXcm} message
523+
* @param {XcmVersionedAssetId} asset_id
521524
**/
522525
queryDeliveryFees: GenericRuntimeApiMethod<
523526
(
524527
destination: XcmVersionedLocation,
525528
message: XcmVersionedXcm,
529+
assetId: XcmVersionedAssetId,
526530
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
527531
>;
528532

packages/chaintypes/src/paseo-people/tx.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,36 @@ export interface ChainTx<
19501950
>
19511951
>;
19521952

1953+
/**
1954+
* Sets the trusted reserve information of an asset.
1955+
*
1956+
* Origin must be the Owner of the asset `id`. The origin must conform to the configured
1957+
* `CreateOrigin` or be the signed `owner` configured during asset creation.
1958+
*
1959+
* - `id`: The identifier of the asset.
1960+
* - `reserves`: The full list of trusted reserves information.
1961+
*
1962+
* Emits `AssetMinBalanceChanged` event when successful.
1963+
*
1964+
* @param {StagingXcmV5Location} id
1965+
* @param {Array<[]>} reserves
1966+
**/
1967+
setReserves: GenericTxCall<
1968+
(
1969+
id: StagingXcmV5Location,
1970+
reserves: Array<[]>,
1971+
) => ChainSubmittableExtrinsic<
1972+
{
1973+
pallet: 'Assets';
1974+
palletCall: {
1975+
name: 'SetReserves';
1976+
params: { id: StagingXcmV5Location; reserves: Array<[]> };
1977+
};
1978+
},
1979+
ChainKnownTypes
1980+
>
1981+
>;
1982+
19531983
/**
19541984
* Generic pallet tx call
19551985
**/

0 commit comments

Comments
 (0)