@dedot/chaintypes 0.68.0 → 0.69.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.
@@ -722,11 +722,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
722
722
  **/
723
723
  ContractNotExist: GenericPalletError<Rv>;
724
724
 
725
- /**
726
- * The key lengths exceeds the maximum allowed
727
- **/
728
- KeyTooLong: GenericPalletError<Rv>;
729
-
730
725
  /**
731
726
  * The symbol length exceeds the maximum allowed
732
727
  **/
@@ -948,11 +943,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
948
943
  **/
949
944
  TooFew: GenericPalletError<Rv>;
950
945
 
951
- /**
952
- * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
953
- **/
954
- NoCost: GenericPalletError<Rv>;
955
-
956
946
  /**
957
947
  * Generic pallet error
958
948
  **/
@@ -28,6 +28,7 @@ import type {
28
28
  MoonbeamRuntimeRuntimeParamsRuntimeParametersValue,
29
29
  EthereumLog,
30
30
  EvmCoreErrorExitReason,
31
+ PalletConvictionVotingVoteAccountVote,
31
32
  FrameSupportPreimagesBounded,
32
33
  PalletConvictionVotingTally,
33
34
  FrameSupportDispatchPostDispatchInfo,
@@ -1380,6 +1381,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1380
1381
  **/
1381
1382
  Undelegated: GenericPalletEvent<Rv, 'ConvictionVoting', 'Undelegated', AccountId20>;
1382
1383
 
1384
+ /**
1385
+ * An account that has voted
1386
+ **/
1387
+ Voted: GenericPalletEvent<
1388
+ Rv,
1389
+ 'ConvictionVoting',
1390
+ 'Voted',
1391
+ { who: AccountId20; vote: PalletConvictionVotingVoteAccountVote }
1392
+ >;
1393
+
1394
+ /**
1395
+ * A vote that been removed
1396
+ **/
1397
+ VoteRemoved: GenericPalletEvent<
1398
+ Rv,
1399
+ 'ConvictionVoting',
1400
+ 'VoteRemoved',
1401
+ { who: AccountId20; vote: PalletConvictionVotingVoteAccountVote }
1402
+ >;
1403
+
1383
1404
  /**
1384
1405
  * Generic pallet event
1385
1406
  **/
@@ -23,7 +23,7 @@ export interface VersionedMoonbeamApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: MoonbeamApi
26
- * @specVersion: 3401
26
+ * @specVersion: 3501
27
27
  **/
28
28
  export interface MoonbeamApi {
29
29
  legacy: VersionedMoonbeamApi<RpcLegacy>;
@@ -25,12 +25,12 @@ import type {
25
25
  FrameSystemCodeUpgradeAuthorization,
26
26
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
27
27
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
28
- PolkadotPrimitivesV7PersistedValidationData,
29
- PolkadotPrimitivesV7UpgradeRestriction,
30
- PolkadotPrimitivesV7UpgradeGoAhead,
28
+ PolkadotPrimitivesV8PersistedValidationData,
29
+ PolkadotPrimitivesV8UpgradeRestriction,
30
+ PolkadotPrimitivesV8UpgradeGoAhead,
31
31
  SpTrieStorageProof,
32
32
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
33
- PolkadotPrimitivesV7AbridgedHostConfiguration,
33
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
34
34
  CumulusPrimitivesParachainInherentMessageQueueChain,
35
35
  PolkadotParachainPrimitivesPrimitivesId,
36
36
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -321,9 +321,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
321
321
  * This value is expected to be set only once per block and it's never stored
322
322
  * in the trie.
323
323
  *
324
- * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
324
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
325
325
  **/
326
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
326
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
327
327
 
328
328
  /**
329
329
  * Were the validation data set to notify the relay chain?
@@ -350,9 +350,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
350
350
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
351
351
  * set after the inherent.
352
352
  *
353
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
353
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
354
354
  **/
355
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
355
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
356
356
 
357
357
  /**
358
358
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -361,9 +361,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
361
361
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
362
362
  * set after the inherent.
363
363
  *
364
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
364
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
365
365
  **/
366
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
366
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
367
367
 
368
368
  /**
369
369
  * The state proof for the last relay parent block.
@@ -401,9 +401,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
401
401
  *
402
402
  * This data is also absent from the genesis.
403
403
  *
404
- * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
404
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
405
405
  **/
406
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
406
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
407
407
 
408
408
  /**
409
409
  * The last downward message queue chain head we have observed.
@@ -818,6 +818,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
818
818
  [number, AccountId20]
819
819
  >;
820
820
 
821
+ /**
822
+ * Records collators' inactivity.
823
+ * Data persists for MaxOfflineRounds + 1 rounds before being pruned.
824
+ *
825
+ * @param {[number, AccountId20Like]} arg
826
+ * @param {Callback<[] | undefined> =} callback
827
+ **/
828
+ wasInactive: GenericStorageQuery<Rv, (arg: [number, AccountId20Like]) => [] | undefined, [number, AccountId20]>;
829
+
821
830
  /**
822
831
  * Delayed payouts
823
832
  *
@@ -294,62 +294,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
294
294
  **/
295
295
  [method: string]: GenericRuntimeApiMethod<Rv>;
296
296
  };
297
- /**
298
- * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
299
- **/
300
- genesisBuilder: {
301
- /**
302
- * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
303
- * storage.
304
- *
305
- * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
306
- * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
307
- * deserialization fails, an error is returned.
308
- *
309
- * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
310
- * defaults will be used.
311
- *
312
- * @callname: GenesisBuilder_build_state
313
- * @param {BytesLike} json
314
- **/
315
- buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
316
-
317
- /**
318
- * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
319
- * `id`.
320
- *
321
- * If `id` is `None` the function returns JSON blob representation of the default
322
- * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
323
- * `RuntimeGenesisConfig`.
324
- *
325
- * Otherwise function returns a JSON representation of the built-in, named
326
- * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
327
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
328
- * (potentially nested) key-value pairs that are intended for customizing the default
329
- * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
330
- * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
331
- * be used in `build_state` method.
332
- *
333
- * @callname: GenesisBuilder_get_preset
334
- * @param {string | undefined} id
335
- **/
336
- getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
337
-
338
- /**
339
- * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
340
- *
341
- * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
342
- * no named presets are provided by the runtime the list is empty.
343
- *
344
- * @callname: GenesisBuilder_preset_names
345
- **/
346
- presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
347
-
348
- /**
349
- * Generic runtime api call
350
- **/
351
- [method: string]: GenericRuntimeApiMethod<Rv>;
352
- };
353
297
  /**
354
298
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
355
299
  **/
package/moonbeam/tx.d.ts CHANGED
@@ -370,63 +370,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
370
370
  >
371
371
  >;
372
372
 
373
- /**
374
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
375
- * later.
376
- *
377
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
378
- * version and name should be verified on upgrade. Since the authorization only has a hash,
379
- * it cannot actually perform the verification.
380
- *
381
- * This call requires Root origin.
382
- *
383
- * @param {H256} codeHash
384
- * @param {boolean} checkVersion
385
- **/
386
- authorizeUpgrade: GenericTxCall<
387
- Rv,
388
- (
389
- codeHash: H256,
390
- checkVersion: boolean,
391
- ) => ChainSubmittableExtrinsic<
392
- Rv,
393
- {
394
- pallet: 'ParachainSystem';
395
- palletCall: {
396
- name: 'AuthorizeUpgrade';
397
- params: { codeHash: H256; checkVersion: boolean };
398
- };
399
- }
400
- >
401
- >;
402
-
403
- /**
404
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
405
- *
406
- * If the authorization required a version check, this call will ensure the spec name
407
- * remains unchanged and that the spec version has increased.
408
- *
409
- * Note that this function will not apply the new `code`, but only attempt to schedule the
410
- * upgrade with the Relay Chain.
411
- *
412
- * All origins are allowed.
413
- *
414
- * @param {BytesLike} code
415
- **/
416
- enactAuthorizedUpgrade: GenericTxCall<
417
- Rv,
418
- (code: BytesLike) => ChainSubmittableExtrinsic<
419
- Rv,
420
- {
421
- pallet: 'ParachainSystem';
422
- palletCall: {
423
- name: 'EnactAuthorizedUpgrade';
424
- params: { code: BytesLike };
425
- };
426
- }
427
- >
428
- >;
429
-
430
373
  /**
431
374
  * Generic pallet tx call
432
375
  **/
@@ -2552,7 +2495,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2552
2495
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
2553
2496
  *
2554
2497
  * ```nocompile
2555
- * Self::registrars().get(reg_index).unwrap().fee
2498
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
2556
2499
  * ```
2557
2500
  *
2558
2501
  * Emits `JudgementRequested` if successful.
@@ -6181,8 +6124,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6181
6124
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6182
6125
  * asset.
6183
6126
  *
6184
- * The asset class must be frozen before calling `start_destroy`.
6185
- *
6186
6127
  * @param {bigint} id
6187
6128
  **/
6188
6129
  startDestroy: GenericTxCall<
@@ -7237,6 +7178,46 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7237
7178
  >
7238
7179
  >;
7239
7180
 
7181
+ /**
7182
+ * Transfer the entire transferable balance from the caller asset account.
7183
+ *
7184
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7185
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7186
+ * transferred by this function. To ensure that this function results in a killed account,
7187
+ * you might need to prepare the account by removing any reference counters, storage
7188
+ * deposits, etc...
7189
+ *
7190
+ * The dispatch origin of this call must be Signed.
7191
+ *
7192
+ * - `id`: The identifier of the asset for the account holding a deposit.
7193
+ * - `dest`: The recipient of the transfer.
7194
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7195
+ * of the funds the asset account has, causing the sender asset account to be killed
7196
+ * (false), or transfer everything except at least the minimum balance, which will
7197
+ * guarantee to keep the sender asset account alive (true).
7198
+ *
7199
+ * @param {bigint} id
7200
+ * @param {AccountId20Like} dest
7201
+ * @param {boolean} keepAlive
7202
+ **/
7203
+ transferAll: GenericTxCall<
7204
+ Rv,
7205
+ (
7206
+ id: bigint,
7207
+ dest: AccountId20Like,
7208
+ keepAlive: boolean,
7209
+ ) => ChainSubmittableExtrinsic<
7210
+ Rv,
7211
+ {
7212
+ pallet: 'Assets';
7213
+ palletCall: {
7214
+ name: 'TransferAll';
7215
+ params: { id: bigint; dest: AccountId20Like; keepAlive: boolean };
7216
+ };
7217
+ }
7218
+ >
7219
+ >;
7220
+
7240
7221
  /**
7241
7222
  * Generic pallet tx call
7242
7223
  **/
@@ -1047,7 +1047,22 @@ export type PalletConvictionVotingEvent =
1047
1047
  /**
1048
1048
  * An \[account\] has cancelled a previous delegation operation.
1049
1049
  **/
1050
- | { name: 'Undelegated'; data: AccountId20 };
1050
+ | { name: 'Undelegated'; data: AccountId20 }
1051
+ /**
1052
+ * An account that has voted
1053
+ **/
1054
+ | { name: 'Voted'; data: { who: AccountId20; vote: PalletConvictionVotingVoteAccountVote } }
1055
+ /**
1056
+ * A vote that been removed
1057
+ **/
1058
+ | { name: 'VoteRemoved'; data: { who: AccountId20; vote: PalletConvictionVotingVoteAccountVote } };
1059
+
1060
+ export type PalletConvictionVotingVoteAccountVote =
1061
+ | { type: 'Standard'; value: { vote: PalletConvictionVotingVote; balance: bigint } }
1062
+ | { type: 'Split'; value: { aye: bigint; nay: bigint } }
1063
+ | { type: 'SplitAbstain'; value: { aye: bigint; nay: bigint; abstain: bigint } };
1064
+
1065
+ export type PalletConvictionVotingVote = number;
1051
1066
 
1052
1067
  /**
1053
1068
  * The `Event` enum of this pallet
@@ -1583,30 +1598,7 @@ export type CumulusPalletParachainSystemCall =
1583
1598
  * if the appropriate time has come.
1584
1599
  **/
1585
1600
  | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
1586
- | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } }
1587
- /**
1588
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1589
- * later.
1590
- *
1591
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
1592
- * version and name should be verified on upgrade. Since the authorization only has a hash,
1593
- * it cannot actually perform the verification.
1594
- *
1595
- * This call requires Root origin.
1596
- **/
1597
- | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
1598
- /**
1599
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1600
- *
1601
- * If the authorization required a version check, this call will ensure the spec name
1602
- * remains unchanged and that the spec version has increased.
1603
- *
1604
- * Note that this function will not apply the new `code`, but only attempt to schedule the
1605
- * upgrade with the Relay Chain.
1606
- *
1607
- * All origins are allowed.
1608
- **/
1609
- | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } };
1601
+ | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } };
1610
1602
 
1611
1603
  export type CumulusPalletParachainSystemCallLike =
1612
1604
  /**
@@ -1621,39 +1613,16 @@ export type CumulusPalletParachainSystemCallLike =
1621
1613
  * if the appropriate time has come.
1622
1614
  **/
1623
1615
  | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
1624
- | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } }
1625
- /**
1626
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1627
- * later.
1628
- *
1629
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
1630
- * version and name should be verified on upgrade. Since the authorization only has a hash,
1631
- * it cannot actually perform the verification.
1632
- *
1633
- * This call requires Root origin.
1634
- **/
1635
- | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
1636
- /**
1637
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1638
- *
1639
- * If the authorization required a version check, this call will ensure the spec name
1640
- * remains unchanged and that the spec version has increased.
1641
- *
1642
- * Note that this function will not apply the new `code`, but only attempt to schedule the
1643
- * upgrade with the Relay Chain.
1644
- *
1645
- * All origins are allowed.
1646
- **/
1647
- | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } };
1616
+ | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } };
1648
1617
 
1649
1618
  export type CumulusPrimitivesParachainInherentParachainInherentData = {
1650
- validationData: PolkadotPrimitivesV7PersistedValidationData;
1619
+ validationData: PolkadotPrimitivesV8PersistedValidationData;
1651
1620
  relayChainState: SpTrieStorageProof;
1652
1621
  downwardMessages: Array<PolkadotCorePrimitivesInboundDownwardMessage>;
1653
1622
  horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>;
1654
1623
  };
1655
1624
 
1656
- export type PolkadotPrimitivesV7PersistedValidationData = {
1625
+ export type PolkadotPrimitivesV8PersistedValidationData = {
1657
1626
  parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
1658
1627
  relayParentNumber: number;
1659
1628
  relayParentStorageRoot: H256;
@@ -3169,7 +3138,7 @@ export type PalletIdentityCall =
3169
3138
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
3170
3139
  *
3171
3140
  * ```nocompile
3172
- * Self::registrars().get(reg_index).unwrap().fee
3141
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
3173
3142
  * ```
3174
3143
  *
3175
3144
  * Emits `JudgementRequested` if successful.
@@ -3401,7 +3370,7 @@ export type PalletIdentityCallLike =
3401
3370
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
3402
3371
  *
3403
3372
  * ```nocompile
3404
- * Self::registrars().get(reg_index).unwrap().fee
3373
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
3405
3374
  * ```
3406
3375
  *
3407
3376
  * Emits `JudgementRequested` if successful.
@@ -4652,13 +4621,6 @@ export type PalletConvictionVotingCallLike =
4652
4621
  **/
4653
4622
  | { name: 'RemoveOtherVote'; params: { target: AccountId20Like; class: number; index: number } };
4654
4623
 
4655
- export type PalletConvictionVotingVoteAccountVote =
4656
- | { type: 'Standard'; value: { vote: PalletConvictionVotingVote; balance: bigint } }
4657
- | { type: 'Split'; value: { aye: bigint; nay: bigint } }
4658
- | { type: 'SplitAbstain'; value: { aye: bigint; nay: bigint; abstain: bigint } };
4659
-
4660
- export type PalletConvictionVotingVote = number;
4661
-
4662
4624
  export type PalletConvictionVotingConviction =
4663
4625
  | 'None'
4664
4626
  | 'Locked1x'
@@ -6841,8 +6803,6 @@ export type PalletAssetsCall =
6841
6803
  *
6842
6804
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6843
6805
  * asset.
6844
- *
6845
- * The asset class must be frozen before calling `start_destroy`.
6846
6806
  **/
6847
6807
  | { name: 'StartDestroy'; params: { id: bigint } }
6848
6808
  /**
@@ -7323,7 +7283,26 @@ export type PalletAssetsCall =
7323
7283
  *
7324
7284
  * Weight: `O(1)`
7325
7285
  **/
7326
- | { name: 'Block'; params: { id: bigint; who: AccountId20 } };
7286
+ | { name: 'Block'; params: { id: bigint; who: AccountId20 } }
7287
+ /**
7288
+ * Transfer the entire transferable balance from the caller asset account.
7289
+ *
7290
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7291
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7292
+ * transferred by this function. To ensure that this function results in a killed account,
7293
+ * you might need to prepare the account by removing any reference counters, storage
7294
+ * deposits, etc...
7295
+ *
7296
+ * The dispatch origin of this call must be Signed.
7297
+ *
7298
+ * - `id`: The identifier of the asset for the account holding a deposit.
7299
+ * - `dest`: The recipient of the transfer.
7300
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7301
+ * of the funds the asset account has, causing the sender asset account to be killed
7302
+ * (false), or transfer everything except at least the minimum balance, which will
7303
+ * guarantee to keep the sender asset account alive (true).
7304
+ **/
7305
+ | { name: 'TransferAll'; params: { id: bigint; dest: AccountId20; keepAlive: boolean } };
7327
7306
 
7328
7307
  export type PalletAssetsCallLike =
7329
7308
  /**
@@ -7380,8 +7359,6 @@ export type PalletAssetsCallLike =
7380
7359
  *
7381
7360
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
7382
7361
  * asset.
7383
- *
7384
- * The asset class must be frozen before calling `start_destroy`.
7385
7362
  **/
7386
7363
  | { name: 'StartDestroy'; params: { id: bigint } }
7387
7364
  /**
@@ -7868,7 +7845,26 @@ export type PalletAssetsCallLike =
7868
7845
  *
7869
7846
  * Weight: `O(1)`
7870
7847
  **/
7871
- | { name: 'Block'; params: { id: bigint; who: AccountId20Like } };
7848
+ | { name: 'Block'; params: { id: bigint; who: AccountId20Like } }
7849
+ /**
7850
+ * Transfer the entire transferable balance from the caller asset account.
7851
+ *
7852
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
7853
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
7854
+ * transferred by this function. To ensure that this function results in a killed account,
7855
+ * you might need to prepare the account by removing any reference counters, storage
7856
+ * deposits, etc...
7857
+ *
7858
+ * The dispatch origin of this call must be Signed.
7859
+ *
7860
+ * - `id`: The identifier of the asset for the account holding a deposit.
7861
+ * - `dest`: The recipient of the transfer.
7862
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
7863
+ * of the funds the asset account has, causing the sender asset account to be killed
7864
+ * (false), or transfer everything except at least the minimum balance, which will
7865
+ * guarantee to keep the sender asset account alive (true).
7866
+ **/
7867
+ | { name: 'TransferAll'; params: { id: bigint; dest: AccountId20Like; keepAlive: boolean } };
7872
7868
 
7873
7869
  /**
7874
7870
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -9368,7 +9364,7 @@ export type FrameSystemError =
9368
9364
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
9369
9365
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
9370
9366
  paraHeadHash?: H256 | undefined;
9371
- consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
9367
+ consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
9372
9368
  };
9373
9369
 
9374
9370
  export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
@@ -9381,21 +9377,21 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
9381
9377
 
9382
9378
  export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
9383
9379
 
9384
- export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead';
9380
+ export type PolkadotPrimitivesV8UpgradeGoAhead = 'Abort' | 'GoAhead';
9385
9381
 
9386
9382
  export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
9387
9383
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
9388
9384
  hrmpWatermark?: number | undefined;
9389
- consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
9385
+ consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
9390
9386
  };
9391
9387
 
9392
- export type PolkadotPrimitivesV7UpgradeRestriction = 'Present';
9388
+ export type PolkadotPrimitivesV8UpgradeRestriction = 'Present';
9393
9389
 
9394
9390
  export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
9395
9391
  dmqMqcHead: H256;
9396
9392
  relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
9397
- ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
9398
- egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
9393
+ ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
9394
+ egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
9399
9395
  };
9400
9396
 
9401
9397
  export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
@@ -9403,7 +9399,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
9403
9399
  remainingSize: number;
9404
9400
  };
9405
9401
 
9406
- export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
9402
+ export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
9407
9403
  maxCapacity: number;
9408
9404
  maxTotalSize: number;
9409
9405
  maxMessageSize: number;
@@ -9412,7 +9408,7 @@ export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
9412
9408
  mqcHead?: H256 | undefined;
9413
9409
  };
9414
9410
 
9415
- export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
9411
+ export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
9416
9412
  maxCodeSize: number;
9417
9413
  maxHeadDataSize: number;
9418
9414
  maxUpwardQueueCount: number;
@@ -9422,10 +9418,10 @@ export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
9422
9418
  hrmpMaxMessageNumPerCandidate: number;
9423
9419
  validationUpgradeCooldown: number;
9424
9420
  validationUpgradeDelay: number;
9425
- asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
9421
+ asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
9426
9422
  };
9427
9423
 
9428
- export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = {
9424
+ export type PolkadotPrimitivesV8AsyncBackingAsyncBackingParams = {
9429
9425
  maxCandidateDepth: number;
9430
9426
  allowedAncestryLen: number;
9431
9427
  };
@@ -10090,10 +10086,6 @@ export type PalletMoonbeamLazyMigrationsError =
10090
10086
  * Contract not exist
10091
10087
  **/
10092
10088
  | 'ContractNotExist'
10093
- /**
10094
- * The key lengths exceeds the maximum allowed
10095
- **/
10096
- | 'KeyTooLong'
10097
10089
  /**
10098
10090
  * The symbol length exceeds the maximum allowed
10099
10091
  **/
@@ -10343,11 +10335,7 @@ export type PalletPreimageError =
10343
10335
  /**
10344
10336
  * Too few hashes were requested to be upgraded (i.e. zero).
10345
10337
  **/
10346
- | 'TooFew'
10347
- /**
10348
- * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
10349
- **/
10350
- | 'NoCost';
10338
+ | 'TooFew';
10351
10339
 
10352
10340
  export type PalletConvictionVotingVoteVoting =
10353
10341
  | { type: 'Casting'; value: PalletConvictionVotingVoteCasting }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.68.0",
3
+ "version": "0.69.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "cf9dcec83818b29146ebe0a3ee210c3dc63c0708",
22
+ "gitHead": "825e0f549216783fa7989387cbb7023e1247e5f9",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }