@dedot/api 0.6.1 → 0.7.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.
@@ -1,4 +1,4 @@
1
- import type { AccountId32, AccountId32Like, Bytes, BytesLike, Data, DispatchError, DispatchInfo, Era, FixedArray, FixedBytes, FixedI64, FixedU128, FixedU64, H256, Header, MultiAddress, MultiAddressLike, PerU16, Perbill, Percent, Permill, Perquintill, Phase, Result, UncheckedExtrinsic } from '@dedot/codecs';
1
+ import type { AccountId32, AccountId32Like, Bytes, BytesLike, Data, DispatchError, Era, FixedArray, FixedBytes, FixedI64, FixedU128, FixedU64, H160, H256, Header, MultiAddress, MultiAddressLike, PerU16, Perbill, Percent, Permill, Perquintill, Phase, Result, UncheckedExtrinsic } from '@dedot/codecs';
2
2
  export type FrameSystemAccountInfo = {
3
3
  nonce: number;
4
4
  consumers: number;
@@ -42,9 +42,6 @@ export type KitchensinkRuntimeRuntimeEvent = {
42
42
  } | {
43
43
  pallet: 'TransactionPayment';
44
44
  palletEvent: PalletTransactionPaymentEvent;
45
- } | {
46
- pallet: 'AssetTxPayment';
47
- palletEvent: PalletAssetTxPaymentEvent;
48
45
  } | {
49
46
  pallet: 'AssetConversionTxPayment';
50
47
  palletEvent: PalletAssetConversionTxPaymentEvent;
@@ -228,6 +225,12 @@ export type KitchensinkRuntimeRuntimeEvent = {
228
225
  } | {
229
226
  pallet: 'SkipFeelessPayment';
230
227
  palletEvent: PalletSkipFeelessPaymentEvent;
228
+ } | {
229
+ pallet: 'AssetConversionMigration';
230
+ palletEvent: PalletAssetConversionOpsEvent;
231
+ } | {
232
+ pallet: 'Revive';
233
+ palletEvent: PalletReviveEvent;
231
234
  };
232
235
  /**
233
236
  * Event for the System pallet.
@@ -239,7 +242,7 @@ export type FrameSystemEvent =
239
242
  {
240
243
  name: 'ExtrinsicSuccess';
241
244
  data: {
242
- dispatchInfo: DispatchInfo;
245
+ dispatchInfo: FrameSystemDispatchEventInfo;
243
246
  };
244
247
  }
245
248
  /**
@@ -249,7 +252,7 @@ export type FrameSystemEvent =
249
252
  name: 'ExtrinsicFailed';
250
253
  data: {
251
254
  dispatchError: DispatchError;
252
- dispatchInfo: DispatchInfo;
255
+ dispatchInfo: FrameSystemDispatchEventInfo;
253
256
  };
254
257
  }
255
258
  /**
@@ -296,8 +299,14 @@ export type FrameSystemEvent =
296
299
  checkVersion: boolean;
297
300
  };
298
301
  };
302
+ export type FrameSystemDispatchEventInfo = {
303
+ weight: SpWeightsWeightV2Weight;
304
+ class: FrameSupportDispatchDispatchClass;
305
+ paysFee: FrameSupportDispatchPays;
306
+ };
299
307
  export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
300
308
  export type FrameSupportDispatchPays = 'Yes' | 'No';
309
+ export type SpRuntimeProvingTrieTrieError = 'InvalidStateRoot' | 'IncompleteDatabase' | 'ValueAtIncompleteKey' | 'DecoderError' | 'InvalidHash' | 'DuplicateKey' | 'ExtraneousNode' | 'ExtraneousValue' | 'ExtraneousHashReference' | 'InvalidChildReference' | 'ValueMismatch' | 'IncompleteProof' | 'RootMismatch' | 'DecodeError';
301
310
  /**
302
311
  * The `Event` enum of this pallet
303
312
  **/
@@ -625,23 +634,6 @@ export type PalletTransactionPaymentEvent =
625
634
  tip: bigint;
626
635
  };
627
636
  };
628
- /**
629
- * The `Event` enum of this pallet
630
- **/
631
- export type PalletAssetTxPaymentEvent =
632
- /**
633
- * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
634
- * has been paid by `who` in an asset `asset_id`.
635
- **/
636
- {
637
- name: 'AssetTxFeePaid';
638
- data: {
639
- who: AccountId32;
640
- actualFee: bigint;
641
- tip: bigint;
642
- assetId?: number | undefined;
643
- };
644
- };
645
637
  /**
646
638
  * The `Event` enum of this pallet
647
639
  **/
@@ -656,7 +648,7 @@ export type PalletAssetConversionTxPaymentEvent =
656
648
  who: AccountId32;
657
649
  actualFee: bigint;
658
650
  tip: bigint;
659
- assetId: number;
651
+ assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId;
660
652
  };
661
653
  }
662
654
  /**
@@ -668,6 +660,12 @@ export type PalletAssetConversionTxPaymentEvent =
668
660
  nativeAmountKept: bigint;
669
661
  };
670
662
  };
663
+ export type FrameSupportTokensFungibleUnionOfNativeOrWithId = {
664
+ type: 'Native';
665
+ } | {
666
+ type: 'WithId';
667
+ value: number;
668
+ };
671
669
  /**
672
670
  * The `Event` enum of this pallet
673
671
  **/
@@ -676,7 +674,7 @@ export type PalletElectionProviderMultiPhaseEvent =
676
674
  * A solution was stored with the given compute.
677
675
  *
678
676
  * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
679
- * the stored solution was submited in the signed phase by a miner with the `AccountId`.
677
+ * the stored solution was submitted in the signed phase by a miner with the `AccountId`.
680
678
  * Otherwise, the solution was stored either during the unsigned phase or by
681
679
  * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
682
680
  * room for this one.
@@ -879,13 +877,15 @@ export type PalletStakingPalletEvent =
879
877
  };
880
878
  }
881
879
  /**
882
- * The stakers' rewards are getting paid.
880
+ * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed.
883
881
  **/
884
882
  | {
885
883
  name: 'PayoutStarted';
886
884
  data: {
887
885
  eraIndex: number;
888
886
  validatorStash: AccountId32;
887
+ page: number;
888
+ next?: number | undefined;
889
889
  };
890
890
  }
891
891
  /**
@@ -1083,7 +1083,7 @@ export type PalletDemocracyEvent =
1083
1083
  };
1084
1084
  }
1085
1085
  /**
1086
- * An account has secconded a proposal
1086
+ * An account has seconded a proposal
1087
1087
  **/
1088
1088
  | {
1089
1089
  name: 'Seconded';
@@ -1256,6 +1256,35 @@ export type PalletCollectiveEvent =
1256
1256
  yes: number;
1257
1257
  no: number;
1258
1258
  };
1259
+ }
1260
+ /**
1261
+ * A proposal was killed.
1262
+ **/
1263
+ | {
1264
+ name: 'Killed';
1265
+ data: {
1266
+ proposalHash: H256;
1267
+ };
1268
+ }
1269
+ /**
1270
+ * Some cost for storing a proposal was burned.
1271
+ **/
1272
+ | {
1273
+ name: 'ProposalCostBurned';
1274
+ data: {
1275
+ proposalHash: H256;
1276
+ who: AccountId32;
1277
+ };
1278
+ }
1279
+ /**
1280
+ * Some cost for storing a proposal was released.
1281
+ **/
1282
+ | {
1283
+ name: 'ProposalCostReleased';
1284
+ data: {
1285
+ proposalHash: H256;
1286
+ who: AccountId32;
1287
+ };
1259
1288
  };
1260
1289
  /**
1261
1290
  * The `Event` enum of this pallet
@@ -1382,25 +1411,15 @@ export type PalletGrandpaEvent =
1382
1411
  | {
1383
1412
  name: 'Resumed';
1384
1413
  };
1385
- export type SpConsensusGrandpaAppPublic = SpCoreEd25519Public;
1386
- export type SpCoreEd25519Public = FixedBytes<32>;
1414
+ export type SpConsensusGrandpaAppPublic = FixedBytes<32>;
1387
1415
  /**
1388
1416
  * The `Event` enum of this pallet
1389
1417
  **/
1390
1418
  export type PalletTreasuryEvent =
1391
- /**
1392
- * New proposal.
1393
- **/
1394
- {
1395
- name: 'Proposed';
1396
- data: {
1397
- proposalIndex: number;
1398
- };
1399
- }
1400
1419
  /**
1401
1420
  * We have ended a spend period and will now allocate funds.
1402
1421
  **/
1403
- | {
1422
+ {
1404
1423
  name: 'Spending';
1405
1424
  data: {
1406
1425
  budgetRemaining: bigint;
@@ -1417,16 +1436,6 @@ export type PalletTreasuryEvent =
1417
1436
  account: AccountId32;
1418
1437
  };
1419
1438
  }
1420
- /**
1421
- * A proposal was rejected; funds were slashed.
1422
- **/
1423
- | {
1424
- name: 'Rejected';
1425
- data: {
1426
- proposalIndex: number;
1427
- slashed: bigint;
1428
- };
1429
- }
1430
1439
  /**
1431
1440
  * Some of our funds have been burnt.
1432
1441
  **/
@@ -1482,7 +1491,7 @@ export type PalletTreasuryEvent =
1482
1491
  name: 'AssetSpendApproved';
1483
1492
  data: {
1484
1493
  index: number;
1485
- assetKind: number;
1494
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1486
1495
  amount: bigint;
1487
1496
  beneficiary: AccountId32;
1488
1497
  validFrom: number;
@@ -1534,18 +1543,18 @@ export type PalletTreasuryEvent =
1534
1543
  export type PalletAssetRateEvent = {
1535
1544
  name: 'AssetRateCreated';
1536
1545
  data: {
1537
- assetKind: number;
1546
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1538
1547
  rate: FixedU128;
1539
1548
  };
1540
1549
  } | {
1541
1550
  name: 'AssetRateRemoved';
1542
1551
  data: {
1543
- assetKind: number;
1552
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1544
1553
  };
1545
1554
  } | {
1546
1555
  name: 'AssetRateUpdated';
1547
1556
  data: {
1548
- assetKind: number;
1557
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1549
1558
  old: FixedU128;
1550
1559
  new: FixedU128;
1551
1560
  };
@@ -1796,8 +1805,7 @@ export type PalletImOnlineEvent =
1796
1805
  offline: Array<[AccountId32, SpStakingExposure]>;
1797
1806
  };
1798
1807
  };
1799
- export type PalletImOnlineSr25519AppSr25519Public = SpCoreSr25519Public;
1800
- export type SpCoreSr25519Public = FixedBytes<32>;
1808
+ export type PalletImOnlineSr25519AppSr25519Public = FixedBytes<32>;
1801
1809
  export type SpStakingExposure = {
1802
1810
  total: bigint;
1803
1811
  own: bigint;
@@ -1906,6 +1914,27 @@ export type PalletIdentityEvent =
1906
1914
  deposit: bigint;
1907
1915
  };
1908
1916
  }
1917
+ /**
1918
+ * An account's sub-identities were set (in bulk).
1919
+ **/
1920
+ | {
1921
+ name: 'SubIdentitiesSet';
1922
+ data: {
1923
+ main: AccountId32;
1924
+ numberOfSubs: number;
1925
+ newDeposit: bigint;
1926
+ };
1927
+ }
1928
+ /**
1929
+ * A given sub-account's associated name was changed by its super-identity.
1930
+ **/
1931
+ | {
1932
+ name: 'SubIdentityRenamed';
1933
+ data: {
1934
+ sub: AccountId32;
1935
+ main: AccountId32;
1936
+ };
1937
+ }
1909
1938
  /**
1910
1939
  * A sub-identity was removed from an identity and the deposit freed.
1911
1940
  **/
@@ -1997,6 +2026,33 @@ export type PalletIdentityEvent =
1997
2026
  who: AccountId32;
1998
2027
  username: Bytes;
1999
2028
  };
2029
+ }
2030
+ /**
2031
+ * A username has been unbound.
2032
+ **/
2033
+ | {
2034
+ name: 'UsernameUnbound';
2035
+ data: {
2036
+ username: Bytes;
2037
+ };
2038
+ }
2039
+ /**
2040
+ * A username has been removed.
2041
+ **/
2042
+ | {
2043
+ name: 'UsernameRemoved';
2044
+ data: {
2045
+ username: Bytes;
2046
+ };
2047
+ }
2048
+ /**
2049
+ * A username has been killed.
2050
+ **/
2051
+ | {
2052
+ name: 'UsernameKilled';
2053
+ data: {
2054
+ username: Bytes;
2055
+ };
2000
2056
  };
2001
2057
  /**
2002
2058
  * The `Event` enum of this pallet
@@ -2397,6 +2453,18 @@ export type PalletGluttonEvent =
2397
2453
  **/
2398
2454
  storage: FixedU64;
2399
2455
  };
2456
+ }
2457
+ /**
2458
+ * The block length limit has been updated.
2459
+ **/
2460
+ | {
2461
+ name: 'BlockLengthLimitSet';
2462
+ data: {
2463
+ /**
2464
+ * The block length limit.
2465
+ **/
2466
+ blockLength: FixedU64;
2467
+ };
2400
2468
  };
2401
2469
  /**
2402
2470
  * The `Event` enum of this pallet
@@ -2966,6 +3034,28 @@ export type PalletAssetsEvent =
2966
3034
  assetId: number;
2967
3035
  who: AccountId32;
2968
3036
  };
3037
+ }
3038
+ /**
3039
+ * Some assets were deposited (e.g. for transaction fees).
3040
+ **/
3041
+ | {
3042
+ name: 'Deposited';
3043
+ data: {
3044
+ assetId: number;
3045
+ who: AccountId32;
3046
+ amount: bigint;
3047
+ };
3048
+ }
3049
+ /**
3050
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
3051
+ **/
3052
+ | {
3053
+ name: 'Withdrawn';
3054
+ data: {
3055
+ assetId: number;
3056
+ who: AccountId32;
3057
+ amount: bigint;
3058
+ };
2969
3059
  };
2970
3060
  /**
2971
3061
  * The `Event` enum of this pallet
@@ -3106,7 +3196,7 @@ export type PalletNisEvent =
3106
3196
  };
3107
3197
  }
3108
3198
  /**
3109
- * A receipt was transfered.
3199
+ * A receipt was transferred.
3110
3200
  **/
3111
3201
  | {
3112
3202
  name: 'Transferred';
@@ -4074,10 +4164,10 @@ export type PalletCoreFellowshipEvent =
4074
4164
  };
4075
4165
  };
4076
4166
  export type PalletCoreFellowshipParamsType = {
4077
- activeSalary: FixedArray<bigint, 9>;
4078
- passiveSalary: FixedArray<bigint, 9>;
4079
- demotionPeriod: FixedArray<number, 9>;
4080
- minPromotionPeriod: FixedArray<number, 9>;
4167
+ activeSalary: Array<bigint>;
4168
+ passiveSalary: Array<bigint>;
4169
+ demotionPeriod: Array<number>;
4170
+ minPromotionPeriod: Array<number>;
4081
4171
  offboardTimeout: number;
4082
4172
  };
4083
4173
  export type PalletCoreFellowshipWish = 'Retention' | 'Promotion';
@@ -4731,6 +4821,12 @@ export type KitchensinkRuntimeRuntimeCall = {
4731
4821
  } | {
4732
4822
  pallet: 'Parameters';
4733
4823
  palletCall: PalletParametersCall;
4824
+ } | {
4825
+ pallet: 'AssetConversionMigration';
4826
+ palletCall: PalletAssetConversionOpsCall;
4827
+ } | {
4828
+ pallet: 'Revive';
4829
+ palletCall: PalletReviveCall;
4734
4830
  };
4735
4831
  export type KitchensinkRuntimeRuntimeCallLike = {
4736
4832
  pallet: 'System';
@@ -4927,6 +5023,12 @@ export type KitchensinkRuntimeRuntimeCallLike = {
4927
5023
  } | {
4928
5024
  pallet: 'Parameters';
4929
5025
  palletCall: PalletParametersCallLike;
5026
+ } | {
5027
+ pallet: 'AssetConversionMigration';
5028
+ palletCall: PalletAssetConversionOpsCallLike;
5029
+ } | {
5030
+ pallet: 'Revive';
5031
+ palletCall: PalletReviveCallLike;
4930
5032
  };
4931
5033
  /**
4932
5034
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -5559,7 +5661,7 @@ export type SpConsensusSlotsEquivocationProof = {
5559
5661
  firstHeader: Header;
5560
5662
  secondHeader: Header;
5561
5663
  };
5562
- export type SpConsensusBabeAppPublic = SpCoreSr25519Public;
5664
+ export type SpConsensusBabeAppPublic = FixedBytes<32>;
5563
5665
  export type SpConsensusSlotsSlot = bigint;
5564
5666
  export type SpSessionMembershipProof = {
5565
5667
  session: number;
@@ -5937,7 +6039,7 @@ export type PalletBalancesCall =
5937
6039
  *
5938
6040
  * This will waive the transaction fee if at least all but 10% of the accounts needed to
5939
6041
  * be upgraded. (We let some not have to be upgraded just in order to allow for the
5940
- * possibililty of churn).
6042
+ * possibility of churn).
5941
6043
  **/
5942
6044
  | {
5943
6045
  name: 'UpgradeAccounts';
@@ -5970,6 +6072,22 @@ export type PalletBalancesCall =
5970
6072
  direction: PalletBalancesAdjustmentDirection;
5971
6073
  delta: bigint;
5972
6074
  };
6075
+ }
6076
+ /**
6077
+ * Burn the specified liquid free balance from the origin account.
6078
+ *
6079
+ * If the origin's account ends up below the existential deposit as a result
6080
+ * of the burn and `keep_alive` is false, the account will be reaped.
6081
+ *
6082
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
6083
+ * this `burn` operation will reduce total issuance by the amount _burned_.
6084
+ **/
6085
+ | {
6086
+ name: 'Burn';
6087
+ params: {
6088
+ value: bigint;
6089
+ keepAlive: boolean;
6090
+ };
5973
6091
  };
5974
6092
  export type PalletBalancesCallLike =
5975
6093
  /**
@@ -6059,7 +6177,7 @@ export type PalletBalancesCallLike =
6059
6177
  *
6060
6178
  * This will waive the transaction fee if at least all but 10% of the accounts needed to
6061
6179
  * be upgraded. (We let some not have to be upgraded just in order to allow for the
6062
- * possibililty of churn).
6180
+ * possibility of churn).
6063
6181
  **/
6064
6182
  | {
6065
6183
  name: 'UpgradeAccounts';
@@ -6092,6 +6210,22 @@ export type PalletBalancesCallLike =
6092
6210
  direction: PalletBalancesAdjustmentDirection;
6093
6211
  delta: bigint;
6094
6212
  };
6213
+ }
6214
+ /**
6215
+ * Burn the specified liquid free balance from the origin account.
6216
+ *
6217
+ * If the origin's account ends up below the existential deposit as a result
6218
+ * of the burn and `keep_alive` is false, the account will be reaped.
6219
+ *
6220
+ * Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
6221
+ * this `burn` operation will reduce total issuance by the amount _burned_.
6222
+ **/
6223
+ | {
6224
+ name: 'Burn';
6225
+ params: {
6226
+ value: bigint;
6227
+ keepAlive: boolean;
6228
+ };
6095
6229
  };
6096
6230
  export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
6097
6231
  /**
@@ -6313,7 +6447,8 @@ export type PalletStakingPalletCall =
6313
6447
  * - Three extra DB entries.
6314
6448
  *
6315
6449
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
6316
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
6450
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
6451
+ * as dust.
6317
6452
  **/
6318
6453
  {
6319
6454
  name: 'Bond';
@@ -6347,7 +6482,7 @@ export type PalletStakingPalletCall =
6347
6482
  /**
6348
6483
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
6349
6484
  * period ends. If this leaves an amount actively bonded less than
6350
- * T::Currency::minimum_balance(), then it is increased to the full amount.
6485
+ * [`asset::existential_deposit`], then it is increased to the full amount.
6351
6486
  *
6352
6487
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6353
6488
  *
@@ -6389,7 +6524,7 @@ export type PalletStakingPalletCall =
6389
6524
  * this call results in a complete removal of all the data related to the stash account.
6390
6525
  * In this case, the `num_slashing_spans` must be larger or equal to the number of
6391
6526
  * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
6392
- * otherwise the call will fail. The call weight is directly propotional to
6527
+ * otherwise the call will fail. The call weight is directly proportional to
6393
6528
  * `num_slashing_spans`.
6394
6529
  *
6395
6530
  * ## Complexity
@@ -6502,7 +6637,7 @@ export type PalletStakingPalletCall =
6502
6637
  };
6503
6638
  }
6504
6639
  /**
6505
- * Increments the ideal number of validators upto maximum of
6640
+ * Increments the ideal number of validators up to maximum of
6506
6641
  * `ElectionProviderBase::MaxWinners`.
6507
6642
  *
6508
6643
  * The dispatch origin must be Root.
@@ -6517,7 +6652,7 @@ export type PalletStakingPalletCall =
6517
6652
  };
6518
6653
  }
6519
6654
  /**
6520
- * Scale up the ideal number of validators by a factor upto maximum of
6655
+ * Scale up the ideal number of validators by a factor up to maximum of
6521
6656
  * `ElectionProviderBase::MaxWinners`.
6522
6657
  *
6523
6658
  * The dispatch origin must be Root.
@@ -6667,6 +6802,7 @@ export type PalletStakingPalletCall =
6667
6802
  *
6668
6803
  * 1. the `total_balance` of the stash is below existential deposit.
6669
6804
  * 2. or, the `ledger.total` of the stash is below existential deposit.
6805
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
6670
6806
  *
6671
6807
  * The former can happen in cases like a slash; the latter when a fully unbonded account
6672
6808
  * is still receiving staking rewards in `RewardDestination::Staked`.
@@ -6849,6 +6985,28 @@ export type PalletStakingPalletCall =
6849
6985
  params: {
6850
6986
  controllers: Array<AccountId32>;
6851
6987
  };
6988
+ }
6989
+ /**
6990
+ * Restores the state of a ledger which is in an inconsistent state.
6991
+ *
6992
+ * The requirements to restore a ledger are the following:
6993
+ * * The stash is bonded; or
6994
+ * * The stash is not bonded but it has a staking lock left behind; or
6995
+ * * If the stash has an associated ledger and its state is inconsistent; or
6996
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
6997
+ *
6998
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
6999
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
7000
+ * be reset values from on-chain state.
7001
+ **/
7002
+ | {
7003
+ name: 'RestoreLedger';
7004
+ params: {
7005
+ stash: AccountId32;
7006
+ maybeController?: AccountId32 | undefined;
7007
+ maybeTotal?: bigint | undefined;
7008
+ maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
7009
+ };
6852
7010
  };
6853
7011
  export type PalletStakingPalletCallLike =
6854
7012
  /**
@@ -6866,7 +7024,8 @@ export type PalletStakingPalletCallLike =
6866
7024
  * - Three extra DB entries.
6867
7025
  *
6868
7026
  * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
6869
- * unless the `origin` falls below _existential deposit_ and gets removed as dust.
7027
+ * unless the `origin` falls below _existential deposit_ (or equal to 0) and gets removed
7028
+ * as dust.
6870
7029
  **/
6871
7030
  {
6872
7031
  name: 'Bond';
@@ -6900,7 +7059,7 @@ export type PalletStakingPalletCallLike =
6900
7059
  /**
6901
7060
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
6902
7061
  * period ends. If this leaves an amount actively bonded less than
6903
- * T::Currency::minimum_balance(), then it is increased to the full amount.
7062
+ * [`asset::existential_deposit`], then it is increased to the full amount.
6904
7063
  *
6905
7064
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
6906
7065
  *
@@ -6942,7 +7101,7 @@ export type PalletStakingPalletCallLike =
6942
7101
  * this call results in a complete removal of all the data related to the stash account.
6943
7102
  * In this case, the `num_slashing_spans` must be larger or equal to the number of
6944
7103
  * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
6945
- * otherwise the call will fail. The call weight is directly propotional to
7104
+ * otherwise the call will fail. The call weight is directly proportional to
6946
7105
  * `num_slashing_spans`.
6947
7106
  *
6948
7107
  * ## Complexity
@@ -7055,7 +7214,7 @@ export type PalletStakingPalletCallLike =
7055
7214
  };
7056
7215
  }
7057
7216
  /**
7058
- * Increments the ideal number of validators upto maximum of
7217
+ * Increments the ideal number of validators up to maximum of
7059
7218
  * `ElectionProviderBase::MaxWinners`.
7060
7219
  *
7061
7220
  * The dispatch origin must be Root.
@@ -7070,7 +7229,7 @@ export type PalletStakingPalletCallLike =
7070
7229
  };
7071
7230
  }
7072
7231
  /**
7073
- * Scale up the ideal number of validators by a factor upto maximum of
7232
+ * Scale up the ideal number of validators by a factor up to maximum of
7074
7233
  * `ElectionProviderBase::MaxWinners`.
7075
7234
  *
7076
7235
  * The dispatch origin must be Root.
@@ -7220,6 +7379,7 @@ export type PalletStakingPalletCallLike =
7220
7379
  *
7221
7380
  * 1. the `total_balance` of the stash is below existential deposit.
7222
7381
  * 2. or, the `ledger.total` of the stash is below existential deposit.
7382
+ * 3. or, existential deposit is zero and either `total_balance` or `ledger.total` is zero.
7223
7383
  *
7224
7384
  * The former can happen in cases like a slash; the latter when a fully unbonded account
7225
7385
  * is still receiving staking rewards in `RewardDestination::Staked`.
@@ -7402,6 +7562,28 @@ export type PalletStakingPalletCallLike =
7402
7562
  params: {
7403
7563
  controllers: Array<AccountId32Like>;
7404
7564
  };
7565
+ }
7566
+ /**
7567
+ * Restores the state of a ledger which is in an inconsistent state.
7568
+ *
7569
+ * The requirements to restore a ledger are the following:
7570
+ * * The stash is bonded; or
7571
+ * * The stash is not bonded but it has a staking lock left behind; or
7572
+ * * If the stash has an associated ledger and its state is inconsistent; or
7573
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
7574
+ *
7575
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
7576
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
7577
+ * be reset values from on-chain state.
7578
+ **/
7579
+ | {
7580
+ name: 'RestoreLedger';
7581
+ params: {
7582
+ stash: AccountId32Like;
7583
+ maybeController?: AccountId32Like | undefined;
7584
+ maybeTotal?: bigint | undefined;
7585
+ maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
7586
+ };
7405
7587
  };
7406
7588
  export type PalletStakingPalletConfigOp = {
7407
7589
  type: 'Noop';
@@ -7435,6 +7617,10 @@ export type PalletStakingPalletConfigOpPerbill = {
7435
7617
  } | {
7436
7618
  type: 'Remove';
7437
7619
  };
7620
+ export type PalletStakingUnlockChunk = {
7621
+ value: bigint;
7622
+ era: number;
7623
+ };
7438
7624
  /**
7439
7625
  * Contains a variant per dispatchable extrinsic that this pallet has.
7440
7626
  **/
@@ -7518,10 +7704,9 @@ export type KitchensinkRuntimeSessionKeys = {
7518
7704
  mixnet: SpMixnetAppPublic;
7519
7705
  beefy: SpConsensusBeefyEcdsaCryptoPublic;
7520
7706
  };
7521
- export type SpAuthorityDiscoveryAppPublic = SpCoreSr25519Public;
7522
- export type SpMixnetAppPublic = SpCoreSr25519Public;
7523
- export type SpConsensusBeefyEcdsaCryptoPublic = SpCoreEcdsaPublic;
7524
- export type SpCoreEcdsaPublic = FixedBytes<33>;
7707
+ export type SpAuthorityDiscoveryAppPublic = FixedBytes<32>;
7708
+ export type SpMixnetAppPublic = FixedBytes<32>;
7709
+ export type SpConsensusBeefyEcdsaCryptoPublic = FixedBytes<33>;
7525
7710
  /**
7526
7711
  * Contains a variant per dispatchable extrinsic that this pallet has.
7527
7712
  **/
@@ -8415,6 +8600,38 @@ export type PalletCollectiveCall =
8415
8600
  proposalWeightBound: SpWeightsWeightV2Weight;
8416
8601
  lengthBound: number;
8417
8602
  };
8603
+ }
8604
+ /**
8605
+ * Disapprove the proposal and burn the cost held for storing this proposal.
8606
+ *
8607
+ * Parameters:
8608
+ * - `origin`: must be the `KillOrigin`.
8609
+ * - `proposal_hash`: The hash of the proposal that should be killed.
8610
+ *
8611
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
8612
+ **/
8613
+ | {
8614
+ name: 'Kill';
8615
+ params: {
8616
+ proposalHash: H256;
8617
+ };
8618
+ }
8619
+ /**
8620
+ * Release the cost held for storing a proposal once the given proposal is completed.
8621
+ *
8622
+ * If there is no associated cost for the given proposal, this call will have no effect.
8623
+ *
8624
+ * Parameters:
8625
+ * - `origin`: must be `Signed` or `Root`.
8626
+ * - `proposal_hash`: The hash of the proposal.
8627
+ *
8628
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
8629
+ **/
8630
+ | {
8631
+ name: 'ReleaseProposalCost';
8632
+ params: {
8633
+ proposalHash: H256;
8634
+ };
8418
8635
  };
8419
8636
  export type PalletCollectiveCallLike =
8420
8637
  /**
@@ -8564,6 +8781,38 @@ export type PalletCollectiveCallLike =
8564
8781
  proposalWeightBound: SpWeightsWeightV2Weight;
8565
8782
  lengthBound: number;
8566
8783
  };
8784
+ }
8785
+ /**
8786
+ * Disapprove the proposal and burn the cost held for storing this proposal.
8787
+ *
8788
+ * Parameters:
8789
+ * - `origin`: must be the `KillOrigin`.
8790
+ * - `proposal_hash`: The hash of the proposal that should be killed.
8791
+ *
8792
+ * Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
8793
+ **/
8794
+ | {
8795
+ name: 'Kill';
8796
+ params: {
8797
+ proposalHash: H256;
8798
+ };
8799
+ }
8800
+ /**
8801
+ * Release the cost held for storing a proposal once the given proposal is completed.
8802
+ *
8803
+ * If there is no associated cost for the given proposal, this call will have no effect.
8804
+ *
8805
+ * Parameters:
8806
+ * - `origin`: must be `Signed` or `Root`.
8807
+ * - `proposal_hash`: The hash of the proposal.
8808
+ *
8809
+ * Emits `ProposalCostReleased` if any cost held for a given proposal.
8810
+ **/
8811
+ | {
8812
+ name: 'ReleaseProposalCost';
8813
+ params: {
8814
+ proposalHash: H256;
8815
+ };
8567
8816
  };
8568
8817
  /**
8569
8818
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -9139,8 +9388,7 @@ export type FinalityGrandpaPrevote = {
9139
9388
  targetHash: H256;
9140
9389
  targetNumber: number;
9141
9390
  };
9142
- export type SpConsensusGrandpaAppSignature = SpCoreEd25519Signature;
9143
- export type SpCoreEd25519Signature = FixedBytes<64>;
9391
+ export type SpConsensusGrandpaAppSignature = FixedBytes<64>;
9144
9392
  export type FinalityGrandpaEquivocationPrecommit = {
9145
9393
  roundNumber: bigint;
9146
9394
  identity: SpConsensusGrandpaAppPublic;
@@ -9156,117 +9404,44 @@ export type FinalityGrandpaPrecommit = {
9156
9404
  **/
9157
9405
  export type PalletTreasuryCall =
9158
9406
  /**
9159
- * Put forward a suggestion for spending.
9407
+ * Propose and approve a spend of treasury funds.
9160
9408
  *
9161
9409
  * ## Dispatch Origin
9162
9410
  *
9163
- * Must be signed.
9411
+ * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
9164
9412
  *
9165
- * ## Details
9166
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
9167
- * It is returned once the proposal is awarded.
9413
+ * ### Details
9414
+ * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
9415
+ * beneficiary.
9168
9416
  *
9169
- * ### Complexity
9170
- * - O(1)
9417
+ * ### Parameters
9418
+ * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9419
+ * - `beneficiary`: The destination account for the transfer.
9171
9420
  *
9172
9421
  * ## Events
9173
9422
  *
9174
- * Emits [`Event::Proposed`] if successful.
9423
+ * Emits [`Event::SpendApproved`] if successful.
9175
9424
  **/
9176
9425
  {
9177
- name: 'ProposeSpend';
9426
+ name: 'SpendLocal';
9178
9427
  params: {
9179
- value: bigint;
9428
+ amount: bigint;
9180
9429
  beneficiary: MultiAddress;
9181
9430
  };
9182
9431
  }
9183
9432
  /**
9184
- * Reject a proposed spend.
9433
+ * Force a previously approved proposal to be removed from the approval queue.
9185
9434
  *
9186
9435
  * ## Dispatch Origin
9187
9436
  *
9188
9437
  * Must be [`Config::RejectOrigin`].
9189
9438
  *
9190
9439
  * ## Details
9191
- * The original deposit will be slashed.
9192
9440
  *
9193
- * ### Complexity
9194
- * - O(1)
9441
+ * The original deposit will no longer be returned.
9195
9442
  *
9196
- * ## Events
9197
- *
9198
- * Emits [`Event::Rejected`] if successful.
9199
- **/
9200
- | {
9201
- name: 'RejectProposal';
9202
- params: {
9203
- proposalId: number;
9204
- };
9205
- }
9206
- /**
9207
- * Approve a proposal.
9208
- *
9209
- * ## Dispatch Origin
9210
- *
9211
- * Must be [`Config::ApproveOrigin`].
9212
- *
9213
- * ## Details
9214
- *
9215
- * At a later time, the proposal will be allocated to the beneficiary and the original
9216
- * deposit will be returned.
9217
- *
9218
- * ### Complexity
9219
- * - O(1).
9220
- *
9221
- * ## Events
9222
- *
9223
- * No events are emitted from this dispatch.
9224
- **/
9225
- | {
9226
- name: 'ApproveProposal';
9227
- params: {
9228
- proposalId: number;
9229
- };
9230
- }
9231
- /**
9232
- * Propose and approve a spend of treasury funds.
9233
- *
9234
- * ## Dispatch Origin
9235
- *
9236
- * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`.
9237
- *
9238
- * ### Details
9239
- * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
9240
- * beneficiary.
9241
- *
9242
- * ### Parameters
9243
- * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
9244
- * - `beneficiary`: The destination account for the transfer.
9245
- *
9246
- * ## Events
9247
- *
9248
- * Emits [`Event::SpendApproved`] if successful.
9249
- **/
9250
- | {
9251
- name: 'SpendLocal';
9252
- params: {
9253
- amount: bigint;
9254
- beneficiary: MultiAddress;
9255
- };
9256
- }
9257
- /**
9258
- * Force a previously approved proposal to be removed from the approval queue.
9259
- *
9260
- * ## Dispatch Origin
9261
- *
9262
- * Must be [`Config::RejectOrigin`].
9263
- *
9264
- * ## Details
9265
- *
9266
- * The original deposit will no longer be returned.
9267
- *
9268
- * ### Parameters
9269
- * - `proposal_id`: The index of a proposal
9443
+ * ### Parameters
9444
+ * - `proposal_id`: The index of a proposal
9270
9445
  *
9271
9446
  * ### Complexity
9272
9447
  * - O(A) where `A` is the number of approvals
@@ -9314,7 +9489,7 @@ export type PalletTreasuryCall =
9314
9489
  | {
9315
9490
  name: 'Spend';
9316
9491
  params: {
9317
- assetKind: number;
9492
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9318
9493
  amount: bigint;
9319
9494
  beneficiary: MultiAddress;
9320
9495
  validFrom?: number | undefined;
@@ -9325,7 +9500,7 @@ export type PalletTreasuryCall =
9325
9500
  *
9326
9501
  * ## Dispatch Origin
9327
9502
  *
9328
- * Must be signed.
9503
+ * Must be signed
9329
9504
  *
9330
9505
  * ## Details
9331
9506
  *
@@ -9399,79 +9574,6 @@ export type PalletTreasuryCall =
9399
9574
  };
9400
9575
  };
9401
9576
  export type PalletTreasuryCallLike =
9402
- /**
9403
- * Put forward a suggestion for spending.
9404
- *
9405
- * ## Dispatch Origin
9406
- *
9407
- * Must be signed.
9408
- *
9409
- * ## Details
9410
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
9411
- * It is returned once the proposal is awarded.
9412
- *
9413
- * ### Complexity
9414
- * - O(1)
9415
- *
9416
- * ## Events
9417
- *
9418
- * Emits [`Event::Proposed`] if successful.
9419
- **/
9420
- {
9421
- name: 'ProposeSpend';
9422
- params: {
9423
- value: bigint;
9424
- beneficiary: MultiAddressLike;
9425
- };
9426
- }
9427
- /**
9428
- * Reject a proposed spend.
9429
- *
9430
- * ## Dispatch Origin
9431
- *
9432
- * Must be [`Config::RejectOrigin`].
9433
- *
9434
- * ## Details
9435
- * The original deposit will be slashed.
9436
- *
9437
- * ### Complexity
9438
- * - O(1)
9439
- *
9440
- * ## Events
9441
- *
9442
- * Emits [`Event::Rejected`] if successful.
9443
- **/
9444
- | {
9445
- name: 'RejectProposal';
9446
- params: {
9447
- proposalId: number;
9448
- };
9449
- }
9450
- /**
9451
- * Approve a proposal.
9452
- *
9453
- * ## Dispatch Origin
9454
- *
9455
- * Must be [`Config::ApproveOrigin`].
9456
- *
9457
- * ## Details
9458
- *
9459
- * At a later time, the proposal will be allocated to the beneficiary and the original
9460
- * deposit will be returned.
9461
- *
9462
- * ### Complexity
9463
- * - O(1).
9464
- *
9465
- * ## Events
9466
- *
9467
- * No events are emitted from this dispatch.
9468
- **/
9469
- | {
9470
- name: 'ApproveProposal';
9471
- params: {
9472
- proposalId: number;
9473
- };
9474
- }
9475
9577
  /**
9476
9578
  * Propose and approve a spend of treasury funds.
9477
9579
  *
@@ -9491,7 +9593,7 @@ export type PalletTreasuryCallLike =
9491
9593
  *
9492
9594
  * Emits [`Event::SpendApproved`] if successful.
9493
9595
  **/
9494
- | {
9596
+ {
9495
9597
  name: 'SpendLocal';
9496
9598
  params: {
9497
9599
  amount: bigint;
@@ -9558,7 +9660,7 @@ export type PalletTreasuryCallLike =
9558
9660
  | {
9559
9661
  name: 'Spend';
9560
9662
  params: {
9561
- assetKind: number;
9663
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9562
9664
  amount: bigint;
9563
9665
  beneficiary: MultiAddressLike;
9564
9666
  validFrom?: number | undefined;
@@ -9569,7 +9671,7 @@ export type PalletTreasuryCallLike =
9569
9671
  *
9570
9672
  * ## Dispatch Origin
9571
9673
  *
9572
- * Must be signed.
9674
+ * Must be signed
9573
9675
  *
9574
9676
  * ## Details
9575
9677
  *
@@ -9655,7 +9757,7 @@ export type PalletAssetRateCall =
9655
9757
  {
9656
9758
  name: 'Create';
9657
9759
  params: {
9658
- assetKind: number;
9760
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9659
9761
  rate: FixedU128;
9660
9762
  };
9661
9763
  }
@@ -9668,7 +9770,7 @@ export type PalletAssetRateCall =
9668
9770
  | {
9669
9771
  name: 'Update';
9670
9772
  params: {
9671
- assetKind: number;
9773
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9672
9774
  rate: FixedU128;
9673
9775
  };
9674
9776
  }
@@ -9681,7 +9783,7 @@ export type PalletAssetRateCall =
9681
9783
  | {
9682
9784
  name: 'Remove';
9683
9785
  params: {
9684
- assetKind: number;
9786
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9685
9787
  };
9686
9788
  };
9687
9789
  export type PalletAssetRateCallLike =
@@ -9694,7 +9796,7 @@ export type PalletAssetRateCallLike =
9694
9796
  {
9695
9797
  name: 'Create';
9696
9798
  params: {
9697
- assetKind: number;
9799
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9698
9800
  rate: FixedU128;
9699
9801
  };
9700
9802
  }
@@ -9707,7 +9809,7 @@ export type PalletAssetRateCallLike =
9707
9809
  | {
9708
9810
  name: 'Update';
9709
9811
  params: {
9710
- assetKind: number;
9812
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9711
9813
  rate: FixedU128;
9712
9814
  };
9713
9815
  }
@@ -9720,7 +9822,7 @@ export type PalletAssetRateCallLike =
9720
9822
  | {
9721
9823
  name: 'Remove';
9722
9824
  params: {
9723
- assetKind: number;
9825
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
9724
9826
  };
9725
9827
  };
9726
9828
  /**
@@ -10281,8 +10383,7 @@ export type PalletImOnlineHeartbeat = {
10281
10383
  authorityIndex: number;
10282
10384
  validatorsLen: number;
10283
10385
  };
10284
- export type PalletImOnlineSr25519AppSr25519Signature = SpCoreSr25519Signature;
10285
- export type SpCoreSr25519Signature = FixedBytes<64>;
10386
+ export type PalletImOnlineSr25519AppSr25519Signature = FixedBytes<64>;
10286
10387
  /**
10287
10388
  * Identity pallet declaration.
10288
10389
  **/
@@ -10363,7 +10464,7 @@ export type PalletIdentityCall =
10363
10464
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
10364
10465
  *
10365
10466
  * ```nocompile
10366
- * Self::registrars().get(reg_index).unwrap().fee
10467
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
10367
10468
  * ```
10368
10469
  *
10369
10470
  * Emits `JudgementRequested` if successful.
@@ -10549,8 +10650,9 @@ export type PalletIdentityCall =
10549
10650
  /**
10550
10651
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
10551
10652
  *
10552
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
10553
- * should just issue (or request via governance) a new `add_username_authority` call.
10653
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
10654
+ * change the account used to grant usernames, this call can be used with the updated
10655
+ * parameters to overwrite the existing configuration.
10554
10656
  **/
10555
10657
  | {
10556
10658
  name: 'AddUsernameAuthority';
@@ -10566,13 +10668,18 @@ export type PalletIdentityCall =
10566
10668
  | {
10567
10669
  name: 'RemoveUsernameAuthority';
10568
10670
  params: {
10671
+ suffix: Bytes;
10569
10672
  authority: MultiAddress;
10570
10673
  };
10571
10674
  }
10572
10675
  /**
10573
10676
  * Set the username for `who`. Must be called by a username authority.
10574
10677
  *
10575
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
10678
+ * If `use_allocation` is set, the authority must have a username allocation available to
10679
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
10680
+ * username.
10681
+ *
10682
+ * Users can either pre-sign their usernames or
10576
10683
  * accept them later.
10577
10684
  *
10578
10685
  * Usernames must:
@@ -10586,6 +10693,7 @@ export type PalletIdentityCall =
10586
10693
  who: MultiAddress;
10587
10694
  username: Bytes;
10588
10695
  signature?: SpRuntimeMultiSignature | undefined;
10696
+ useAllocation: boolean;
10589
10697
  };
10590
10698
  }
10591
10699
  /**
@@ -10619,11 +10727,32 @@ export type PalletIdentityCall =
10619
10727
  };
10620
10728
  }
10621
10729
  /**
10622
- * Remove a username that corresponds to an account with no identity. Exists when a user
10623
- * gets a username but then calls `clear_identity`.
10730
+ * Start the process of removing a username by placing it in the unbinding usernames map.
10731
+ * Once the grace period has passed, the username can be deleted by calling
10732
+ * [remove_username](crate::Call::remove_username).
10733
+ **/
10734
+ | {
10735
+ name: 'UnbindUsername';
10736
+ params: {
10737
+ username: Bytes;
10738
+ };
10739
+ }
10740
+ /**
10741
+ * Permanently delete a username which has been unbinding for longer than the grace period.
10742
+ * Caller is refunded the fee if the username expired and the removal was successful.
10624
10743
  **/
10625
10744
  | {
10626
- name: 'RemoveDanglingUsername';
10745
+ name: 'RemoveUsername';
10746
+ params: {
10747
+ username: Bytes;
10748
+ };
10749
+ }
10750
+ /**
10751
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
10752
+ * and slashes any deposit associated with it.
10753
+ **/
10754
+ | {
10755
+ name: 'KillUsername';
10627
10756
  params: {
10628
10757
  username: Bytes;
10629
10758
  };
@@ -10705,7 +10834,7 @@ export type PalletIdentityCallLike =
10705
10834
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
10706
10835
  *
10707
10836
  * ```nocompile
10708
- * Self::registrars().get(reg_index).unwrap().fee
10837
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
10709
10838
  * ```
10710
10839
  *
10711
10840
  * Emits `JudgementRequested` if successful.
@@ -10891,8 +11020,9 @@ export type PalletIdentityCallLike =
10891
11020
  /**
10892
11021
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
10893
11022
  *
10894
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
10895
- * should just issue (or request via governance) a new `add_username_authority` call.
11023
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
11024
+ * change the account used to grant usernames, this call can be used with the updated
11025
+ * parameters to overwrite the existing configuration.
10896
11026
  **/
10897
11027
  | {
10898
11028
  name: 'AddUsernameAuthority';
@@ -10908,13 +11038,18 @@ export type PalletIdentityCallLike =
10908
11038
  | {
10909
11039
  name: 'RemoveUsernameAuthority';
10910
11040
  params: {
11041
+ suffix: BytesLike;
10911
11042
  authority: MultiAddressLike;
10912
11043
  };
10913
11044
  }
10914
11045
  /**
10915
11046
  * Set the username for `who`. Must be called by a username authority.
10916
11047
  *
10917
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
11048
+ * If `use_allocation` is set, the authority must have a username allocation available to
11049
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
11050
+ * username.
11051
+ *
11052
+ * Users can either pre-sign their usernames or
10918
11053
  * accept them later.
10919
11054
  *
10920
11055
  * Usernames must:
@@ -10928,6 +11063,7 @@ export type PalletIdentityCallLike =
10928
11063
  who: MultiAddressLike;
10929
11064
  username: BytesLike;
10930
11065
  signature?: SpRuntimeMultiSignature | undefined;
11066
+ useAllocation: boolean;
10931
11067
  };
10932
11068
  }
10933
11069
  /**
@@ -10961,11 +11097,32 @@ export type PalletIdentityCallLike =
10961
11097
  };
10962
11098
  }
10963
11099
  /**
10964
- * Remove a username that corresponds to an account with no identity. Exists when a user
10965
- * gets a username but then calls `clear_identity`.
11100
+ * Start the process of removing a username by placing it in the unbinding usernames map.
11101
+ * Once the grace period has passed, the username can be deleted by calling
11102
+ * [remove_username](crate::Call::remove_username).
11103
+ **/
11104
+ | {
11105
+ name: 'UnbindUsername';
11106
+ params: {
11107
+ username: BytesLike;
11108
+ };
11109
+ }
11110
+ /**
11111
+ * Permanently delete a username which has been unbinding for longer than the grace period.
11112
+ * Caller is refunded the fee if the username expired and the removal was successful.
10966
11113
  **/
10967
11114
  | {
10968
- name: 'RemoveDanglingUsername';
11115
+ name: 'RemoveUsername';
11116
+ params: {
11117
+ username: BytesLike;
11118
+ };
11119
+ }
11120
+ /**
11121
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
11122
+ * and slashes any deposit associated with it.
11123
+ **/
11124
+ | {
11125
+ name: 'KillUsername';
10969
11126
  params: {
10970
11127
  username: BytesLike;
10971
11128
  };
@@ -10999,15 +11156,14 @@ export type PalletIdentityJudgement = {
10999
11156
  };
11000
11157
  export type SpRuntimeMultiSignature = {
11001
11158
  type: 'Ed25519';
11002
- value: SpCoreEd25519Signature;
11159
+ value: FixedBytes<64>;
11003
11160
  } | {
11004
11161
  type: 'Sr25519';
11005
- value: SpCoreSr25519Signature;
11162
+ value: FixedBytes<64>;
11006
11163
  } | {
11007
11164
  type: 'Ecdsa';
11008
- value: SpCoreEcdsaSignature;
11165
+ value: FixedBytes<65>;
11009
11166
  };
11010
- export type SpCoreEcdsaSignature = FixedBytes<65>;
11011
11167
  /**
11012
11168
  * Contains a variant per dispatchable extrinsic that this pallet has.
11013
11169
  **/
@@ -12509,6 +12665,29 @@ export type PalletGluttonCall =
12509
12665
  params: {
12510
12666
  storage: FixedU64;
12511
12667
  };
12668
+ }
12669
+ /**
12670
+ * Increase the block size by including the specified garbage bytes.
12671
+ **/
12672
+ | {
12673
+ name: 'Bloat';
12674
+ params: {
12675
+ garbage: Array<FixedBytes<1024>>;
12676
+ };
12677
+ }
12678
+ /**
12679
+ * Set how much of the block length should be filled with trash data on each block.
12680
+ *
12681
+ * `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
12682
+ * be close to zero.
12683
+ *
12684
+ * Only callable by Root or `AdminOrigin`.
12685
+ **/
12686
+ | {
12687
+ name: 'SetBlockLength';
12688
+ params: {
12689
+ blockLength: FixedU64;
12690
+ };
12512
12691
  };
12513
12692
  export type PalletGluttonCallLike =
12514
12693
  /**
@@ -12551,6 +12730,29 @@ export type PalletGluttonCallLike =
12551
12730
  params: {
12552
12731
  storage: FixedU64;
12553
12732
  };
12733
+ }
12734
+ /**
12735
+ * Increase the block size by including the specified garbage bytes.
12736
+ **/
12737
+ | {
12738
+ name: 'Bloat';
12739
+ params: {
12740
+ garbage: Array<FixedBytes<1024>>;
12741
+ };
12742
+ }
12743
+ /**
12744
+ * Set how much of the block length should be filled with trash data on each block.
12745
+ *
12746
+ * `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
12747
+ * be close to zero.
12748
+ *
12749
+ * Only callable by Root or `AdminOrigin`.
12750
+ **/
12751
+ | {
12752
+ name: 'SetBlockLength';
12753
+ params: {
12754
+ blockLength: FixedU64;
12755
+ };
12554
12756
  };
12555
12757
  /**
12556
12758
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -13556,6 +13758,27 @@ export type PalletBountiesCall =
13556
13758
  bountyId: number;
13557
13759
  remark: Bytes;
13558
13760
  };
13761
+ }
13762
+ /**
13763
+ * Approve bountry and propose a curator simultaneously.
13764
+ * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
13765
+ *
13766
+ * May only be called from `T::SpendOrigin`.
13767
+ *
13768
+ * - `bounty_id`: Bounty ID to approve.
13769
+ * - `curator`: The curator account whom will manage this bounty.
13770
+ * - `fee`: The curator fee.
13771
+ *
13772
+ * ## Complexity
13773
+ * - O(1).
13774
+ **/
13775
+ | {
13776
+ name: 'ApproveBountyWithCurator';
13777
+ params: {
13778
+ bountyId: number;
13779
+ curator: MultiAddress;
13780
+ fee: bigint;
13781
+ };
13559
13782
  };
13560
13783
  export type PalletBountiesCallLike =
13561
13784
  /**
@@ -13719,6 +13942,27 @@ export type PalletBountiesCallLike =
13719
13942
  bountyId: number;
13720
13943
  remark: BytesLike;
13721
13944
  };
13945
+ }
13946
+ /**
13947
+ * Approve bountry and propose a curator simultaneously.
13948
+ * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
13949
+ *
13950
+ * May only be called from `T::SpendOrigin`.
13951
+ *
13952
+ * - `bounty_id`: Bounty ID to approve.
13953
+ * - `curator`: The curator account whom will manage this bounty.
13954
+ * - `fee`: The curator fee.
13955
+ *
13956
+ * ## Complexity
13957
+ * - O(1).
13958
+ **/
13959
+ | {
13960
+ name: 'ApproveBountyWithCurator';
13961
+ params: {
13962
+ bountyId: number;
13963
+ curator: MultiAddressLike;
13964
+ fee: bigint;
13965
+ };
13722
13966
  };
13723
13967
  /**
13724
13968
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -14034,7 +14278,7 @@ export type PalletAssetsCall =
14034
14278
  *
14035
14279
  * Parameters:
14036
14280
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
14037
- * an existing asset.
14281
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
14038
14282
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
14039
14283
  * member of the asset class's admin team.
14040
14284
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -14062,7 +14306,7 @@ export type PalletAssetsCall =
14062
14306
  * Unlike `create`, no funds are reserved.
14063
14307
  *
14064
14308
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
14065
- * an existing asset.
14309
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
14066
14310
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
14067
14311
  * over this asset, but may later change and configure the permissions using
14068
14312
  * `transfer_ownership` and `set_team`.
@@ -14092,8 +14336,6 @@ export type PalletAssetsCall =
14092
14336
  *
14093
14337
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
14094
14338
  * asset.
14095
- *
14096
- * The asset class must be frozen before calling `start_destroy`.
14097
14339
  **/
14098
14340
  | {
14099
14341
  name: 'StartDestroy';
@@ -14753,6 +14995,32 @@ export type PalletAssetsCall =
14753
14995
  id: number;
14754
14996
  who: MultiAddress;
14755
14997
  };
14998
+ }
14999
+ /**
15000
+ * Transfer the entire transferable balance from the caller asset account.
15001
+ *
15002
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
15003
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
15004
+ * transferred by this function. To ensure that this function results in a killed account,
15005
+ * you might need to prepare the account by removing any reference counters, storage
15006
+ * deposits, etc...
15007
+ *
15008
+ * The dispatch origin of this call must be Signed.
15009
+ *
15010
+ * - `id`: The identifier of the asset for the account holding a deposit.
15011
+ * - `dest`: The recipient of the transfer.
15012
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
15013
+ * of the funds the asset account has, causing the sender asset account to be killed
15014
+ * (false), or transfer everything except at least the minimum balance, which will
15015
+ * guarantee to keep the sender asset account alive (true).
15016
+ **/
15017
+ | {
15018
+ name: 'TransferAll';
15019
+ params: {
15020
+ id: number;
15021
+ dest: MultiAddress;
15022
+ keepAlive: boolean;
15023
+ };
14756
15024
  };
14757
15025
  export type PalletAssetsCallLike =
14758
15026
  /**
@@ -14766,7 +15034,7 @@ export type PalletAssetsCallLike =
14766
15034
  *
14767
15035
  * Parameters:
14768
15036
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
14769
- * an existing asset.
15037
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
14770
15038
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
14771
15039
  * member of the asset class's admin team.
14772
15040
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -14794,7 +15062,7 @@ export type PalletAssetsCallLike =
14794
15062
  * Unlike `create`, no funds are reserved.
14795
15063
  *
14796
15064
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
14797
- * an existing asset.
15065
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
14798
15066
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
14799
15067
  * over this asset, but may later change and configure the permissions using
14800
15068
  * `transfer_ownership` and `set_team`.
@@ -14824,8 +15092,6 @@ export type PalletAssetsCallLike =
14824
15092
  *
14825
15093
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
14826
15094
  * asset.
14827
- *
14828
- * The asset class must be frozen before calling `start_destroy`.
14829
15095
  **/
14830
15096
  | {
14831
15097
  name: 'StartDestroy';
@@ -15485,21 +15751,47 @@ export type PalletAssetsCallLike =
15485
15751
  id: number;
15486
15752
  who: MultiAddressLike;
15487
15753
  };
15488
- };
15489
- /**
15490
- * Contains a variant per dispatchable extrinsic that this pallet has.
15491
- **/
15492
- export type PalletBeefyCall =
15754
+ }
15493
15755
  /**
15494
- * Report voter equivocation/misbehavior. This method will verify the
15495
- * equivocation proof and validate the given key ownership proof
15496
- * against the extracted offender. If both are valid, the offence
15497
- * will be reported.
15756
+ * Transfer the entire transferable balance from the caller asset account.
15757
+ *
15758
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
15759
+ * any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
15760
+ * transferred by this function. To ensure that this function results in a killed account,
15761
+ * you might need to prepare the account by removing any reference counters, storage
15762
+ * deposits, etc...
15763
+ *
15764
+ * The dispatch origin of this call must be Signed.
15765
+ *
15766
+ * - `id`: The identifier of the asset for the account holding a deposit.
15767
+ * - `dest`: The recipient of the transfer.
15768
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
15769
+ * of the funds the asset account has, causing the sender asset account to be killed
15770
+ * (false), or transfer everything except at least the minimum balance, which will
15771
+ * guarantee to keep the sender asset account alive (true).
15772
+ **/
15773
+ | {
15774
+ name: 'TransferAll';
15775
+ params: {
15776
+ id: number;
15777
+ dest: MultiAddressLike;
15778
+ keepAlive: boolean;
15779
+ };
15780
+ };
15781
+ /**
15782
+ * Contains a variant per dispatchable extrinsic that this pallet has.
15783
+ **/
15784
+ export type PalletBeefyCall =
15785
+ /**
15786
+ * Report voter equivocation/misbehavior. This method will verify the
15787
+ * equivocation proof and validate the given key ownership proof
15788
+ * against the extracted offender. If both are valid, the offence
15789
+ * will be reported.
15498
15790
  **/
15499
15791
  {
15500
- name: 'ReportEquivocation';
15792
+ name: 'ReportDoubleVoting';
15501
15793
  params: {
15502
- equivocationProof: SpConsensusBeefyEquivocationProof;
15794
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
15503
15795
  keyOwnerProof: SpSessionMembershipProof;
15504
15796
  };
15505
15797
  }
@@ -15515,9 +15807,9 @@ export type PalletBeefyCall =
15515
15807
  * reporter.
15516
15808
  **/
15517
15809
  | {
15518
- name: 'ReportEquivocationUnsigned';
15810
+ name: 'ReportDoubleVotingUnsigned';
15519
15811
  params: {
15520
- equivocationProof: SpConsensusBeefyEquivocationProof;
15812
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
15521
15813
  keyOwnerProof: SpSessionMembershipProof;
15522
15814
  };
15523
15815
  }
@@ -15532,6 +15824,64 @@ export type PalletBeefyCall =
15532
15824
  params: {
15533
15825
  delayInBlocks: number;
15534
15826
  };
15827
+ }
15828
+ /**
15829
+ * Report fork voting equivocation. This method will verify the equivocation proof
15830
+ * and validate the given key ownership proof against the extracted offender.
15831
+ * If both are valid, the offence will be reported.
15832
+ **/
15833
+ | {
15834
+ name: 'ReportForkVoting';
15835
+ params: {
15836
+ equivocationProof: SpConsensusBeefyForkVotingProof;
15837
+ keyOwnerProof: SpSessionMembershipProof;
15838
+ };
15839
+ }
15840
+ /**
15841
+ * Report fork voting equivocation. This method will verify the equivocation proof
15842
+ * and validate the given key ownership proof against the extracted offender.
15843
+ * If both are valid, the offence will be reported.
15844
+ *
15845
+ * This extrinsic must be called unsigned and it is expected that only
15846
+ * block authors will call it (validated in `ValidateUnsigned`), as such
15847
+ * if the block author is defined it will be defined as the equivocation
15848
+ * reporter.
15849
+ **/
15850
+ | {
15851
+ name: 'ReportForkVotingUnsigned';
15852
+ params: {
15853
+ equivocationProof: SpConsensusBeefyForkVotingProof;
15854
+ keyOwnerProof: SpSessionMembershipProof;
15855
+ };
15856
+ }
15857
+ /**
15858
+ * Report future block voting equivocation. This method will verify the equivocation proof
15859
+ * and validate the given key ownership proof against the extracted offender.
15860
+ * If both are valid, the offence will be reported.
15861
+ **/
15862
+ | {
15863
+ name: 'ReportFutureBlockVoting';
15864
+ params: {
15865
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
15866
+ keyOwnerProof: SpSessionMembershipProof;
15867
+ };
15868
+ }
15869
+ /**
15870
+ * Report future block voting equivocation. This method will verify the equivocation proof
15871
+ * and validate the given key ownership proof against the extracted offender.
15872
+ * If both are valid, the offence will be reported.
15873
+ *
15874
+ * This extrinsic must be called unsigned and it is expected that only
15875
+ * block authors will call it (validated in `ValidateUnsigned`), as such
15876
+ * if the block author is defined it will be defined as the equivocation
15877
+ * reporter.
15878
+ **/
15879
+ | {
15880
+ name: 'ReportFutureBlockVotingUnsigned';
15881
+ params: {
15882
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
15883
+ keyOwnerProof: SpSessionMembershipProof;
15884
+ };
15535
15885
  };
15536
15886
  export type PalletBeefyCallLike =
15537
15887
  /**
@@ -15541,9 +15891,9 @@ export type PalletBeefyCallLike =
15541
15891
  * will be reported.
15542
15892
  **/
15543
15893
  {
15544
- name: 'ReportEquivocation';
15894
+ name: 'ReportDoubleVoting';
15545
15895
  params: {
15546
- equivocationProof: SpConsensusBeefyEquivocationProof;
15896
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
15547
15897
  keyOwnerProof: SpSessionMembershipProof;
15548
15898
  };
15549
15899
  }
@@ -15559,9 +15909,9 @@ export type PalletBeefyCallLike =
15559
15909
  * reporter.
15560
15910
  **/
15561
15911
  | {
15562
- name: 'ReportEquivocationUnsigned';
15912
+ name: 'ReportDoubleVotingUnsigned';
15563
15913
  params: {
15564
- equivocationProof: SpConsensusBeefyEquivocationProof;
15914
+ equivocationProof: SpConsensusBeefyDoubleVotingProof;
15565
15915
  keyOwnerProof: SpSessionMembershipProof;
15566
15916
  };
15567
15917
  }
@@ -15576,12 +15926,70 @@ export type PalletBeefyCallLike =
15576
15926
  params: {
15577
15927
  delayInBlocks: number;
15578
15928
  };
15929
+ }
15930
+ /**
15931
+ * Report fork voting equivocation. This method will verify the equivocation proof
15932
+ * and validate the given key ownership proof against the extracted offender.
15933
+ * If both are valid, the offence will be reported.
15934
+ **/
15935
+ | {
15936
+ name: 'ReportForkVoting';
15937
+ params: {
15938
+ equivocationProof: SpConsensusBeefyForkVotingProof;
15939
+ keyOwnerProof: SpSessionMembershipProof;
15940
+ };
15941
+ }
15942
+ /**
15943
+ * Report fork voting equivocation. This method will verify the equivocation proof
15944
+ * and validate the given key ownership proof against the extracted offender.
15945
+ * If both are valid, the offence will be reported.
15946
+ *
15947
+ * This extrinsic must be called unsigned and it is expected that only
15948
+ * block authors will call it (validated in `ValidateUnsigned`), as such
15949
+ * if the block author is defined it will be defined as the equivocation
15950
+ * reporter.
15951
+ **/
15952
+ | {
15953
+ name: 'ReportForkVotingUnsigned';
15954
+ params: {
15955
+ equivocationProof: SpConsensusBeefyForkVotingProof;
15956
+ keyOwnerProof: SpSessionMembershipProof;
15957
+ };
15958
+ }
15959
+ /**
15960
+ * Report future block voting equivocation. This method will verify the equivocation proof
15961
+ * and validate the given key ownership proof against the extracted offender.
15962
+ * If both are valid, the offence will be reported.
15963
+ **/
15964
+ | {
15965
+ name: 'ReportFutureBlockVoting';
15966
+ params: {
15967
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
15968
+ keyOwnerProof: SpSessionMembershipProof;
15969
+ };
15970
+ }
15971
+ /**
15972
+ * Report future block voting equivocation. This method will verify the equivocation proof
15973
+ * and validate the given key ownership proof against the extracted offender.
15974
+ * If both are valid, the offence will be reported.
15975
+ *
15976
+ * This extrinsic must be called unsigned and it is expected that only
15977
+ * block authors will call it (validated in `ValidateUnsigned`), as such
15978
+ * if the block author is defined it will be defined as the equivocation
15979
+ * reporter.
15980
+ **/
15981
+ | {
15982
+ name: 'ReportFutureBlockVotingUnsigned';
15983
+ params: {
15984
+ equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
15985
+ keyOwnerProof: SpSessionMembershipProof;
15986
+ };
15579
15987
  };
15580
- export type SpConsensusBeefyEquivocationProof = {
15988
+ export type SpConsensusBeefyDoubleVotingProof = {
15581
15989
  first: SpConsensusBeefyVoteMessage;
15582
15990
  second: SpConsensusBeefyVoteMessage;
15583
15991
  };
15584
- export type SpConsensusBeefyEcdsaCryptoSignature = SpCoreEcdsaSignature;
15992
+ export type SpConsensusBeefyEcdsaCryptoSignature = FixedBytes<65>;
15585
15993
  export type SpConsensusBeefyVoteMessage = {
15586
15994
  commitment: SpConsensusBeefyCommitment;
15587
15995
  id: SpConsensusBeefyEcdsaCryptoPublic;
@@ -15593,6 +16001,20 @@ export type SpConsensusBeefyCommitment = {
15593
16001
  validatorSetId: bigint;
15594
16002
  };
15595
16003
  export type SpConsensusBeefyPayload = Array<[FixedBytes<2>, Bytes]>;
16004
+ export type SpConsensusBeefyForkVotingProof = {
16005
+ vote: SpConsensusBeefyVoteMessage;
16006
+ ancestryProof: SpMmrPrimitivesAncestryProof;
16007
+ header: Header;
16008
+ };
16009
+ export type SpMmrPrimitivesAncestryProof = {
16010
+ prevPeaks: Array<H256>;
16011
+ prevLeafCount: bigint;
16012
+ leafCount: bigint;
16013
+ items: Array<[bigint, H256]>;
16014
+ };
16015
+ export type SpConsensusBeefyFutureBlockVotingProof = {
16016
+ vote: SpConsensusBeefyVoteMessage;
16017
+ };
15596
16018
  /**
15597
16019
  * Contains a variant per dispatchable extrinsic that this pallet has.
15598
16020
  **/
@@ -19311,6 +19733,20 @@ export type PalletCoreFellowshipCall =
19311
19733
  toRank: number;
19312
19734
  };
19313
19735
  }
19736
+ /**
19737
+ * Fast promotions can skip ranks and ignore the `min_promotion_period`.
19738
+ *
19739
+ * This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
19740
+ * be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
19741
+ * be inducted.
19742
+ **/
19743
+ | {
19744
+ name: 'PromoteFast';
19745
+ params: {
19746
+ who: AccountId32;
19747
+ toRank: number;
19748
+ };
19749
+ }
19314
19750
  /**
19315
19751
  * Stop tracking a prior member who is now not a ranked member of the collective.
19316
19752
  *
@@ -19354,6 +19790,21 @@ export type PalletCoreFellowshipCall =
19354
19790
  **/
19355
19791
  | {
19356
19792
  name: 'Import';
19793
+ }
19794
+ /**
19795
+ * Set the parameters partially.
19796
+ *
19797
+ * - `origin`: An origin complying with `ParamsOrigin` or root.
19798
+ * - `partial_params`: The new parameters for the pallet.
19799
+ *
19800
+ * This update config with multiple arguments without duplicating
19801
+ * the fields that does not need to update (set to None).
19802
+ **/
19803
+ | {
19804
+ name: 'SetPartialParams';
19805
+ params: {
19806
+ partialParams: PalletCoreFellowshipParamsTypeOption;
19807
+ };
19357
19808
  };
19358
19809
  export type PalletCoreFellowshipCallLike =
19359
19810
  /**
@@ -19440,6 +19891,20 @@ export type PalletCoreFellowshipCallLike =
19440
19891
  toRank: number;
19441
19892
  };
19442
19893
  }
19894
+ /**
19895
+ * Fast promotions can skip ranks and ignore the `min_promotion_period`.
19896
+ *
19897
+ * This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
19898
+ * be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
19899
+ * be inducted.
19900
+ **/
19901
+ | {
19902
+ name: 'PromoteFast';
19903
+ params: {
19904
+ who: AccountId32Like;
19905
+ toRank: number;
19906
+ };
19907
+ }
19443
19908
  /**
19444
19909
  * Stop tracking a prior member who is now not a ranked member of the collective.
19445
19910
  *
@@ -19483,6 +19948,28 @@ export type PalletCoreFellowshipCallLike =
19483
19948
  **/
19484
19949
  | {
19485
19950
  name: 'Import';
19951
+ }
19952
+ /**
19953
+ * Set the parameters partially.
19954
+ *
19955
+ * - `origin`: An origin complying with `ParamsOrigin` or root.
19956
+ * - `partial_params`: The new parameters for the pallet.
19957
+ *
19958
+ * This update config with multiple arguments without duplicating
19959
+ * the fields that does not need to update (set to None).
19960
+ **/
19961
+ | {
19962
+ name: 'SetPartialParams';
19963
+ params: {
19964
+ partialParams: PalletCoreFellowshipParamsTypeOption;
19965
+ };
19966
+ };
19967
+ export type PalletCoreFellowshipParamsTypeOption = {
19968
+ activeSalary: Array<bigint | undefined>;
19969
+ passiveSalary: Array<bigint | undefined>;
19970
+ demotionPeriod: Array<number | undefined>;
19971
+ minPromotionPeriod: Array<number | undefined>;
19972
+ offboardTimeout?: number | undefined;
19486
19973
  };
19487
19974
  /**
19488
19975
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -21414,8 +21901,13 @@ export type PalletAllianceUnscrupulousItem = {
21414
21901
  **/
21415
21902
  export type PalletNominationPoolsCall =
21416
21903
  /**
21417
- * Stake funds with a pool. The amount to bond is transferred from the member to the
21418
- * pools account and immediately increases the pools bond.
21904
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
21905
+ * account and immediately increases the pools bond.
21906
+ *
21907
+ * The method of transferring the amount to the pool account is determined by
21908
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
21909
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
21910
+ * the `origin`, while the pool gains the right to use these funds for staking.
21419
21911
  *
21420
21912
  * # Note
21421
21913
  *
@@ -21455,7 +21947,7 @@ export type PalletNominationPoolsCall =
21455
21947
  * The member will earn rewards pro rata based on the members stake vs the sum of the
21456
21948
  * members in the pools stake. Rewards do not "expire".
21457
21949
  *
21458
- * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
21950
+ * See `claim_payout_other` to claim rewards on behalf of some `other` pool member.
21459
21951
  **/
21460
21952
  | {
21461
21953
  name: 'ClaimPayout';
@@ -21534,7 +22026,10 @@ export type PalletNominationPoolsCall =
21534
22026
  *
21535
22027
  * # Note
21536
22028
  *
21537
- * If the target is the depositor, the pool will be destroyed.
22029
+ * - If the target is the depositor, the pool will be destroyed.
22030
+ * - If the pool has any pending slash, we also try to slash the member before letting them
22031
+ * withdraw. This calculation adds some weight overhead and is only defensive. In reality,
22032
+ * pool slashes must have been already applied via permissionless [`Call::apply_slash`].
21538
22033
  **/
21539
22034
  | {
21540
22035
  name: 'WithdrawUnbonded';
@@ -21644,7 +22139,7 @@ export type PalletNominationPoolsCall =
21644
22139
  }
21645
22140
  /**
21646
22141
  * Update configurations for the nomination pools. The origin for this call must be
21647
- * Root.
22142
+ * [`Config::AdminOrigin`].
21648
22143
  *
21649
22144
  * # Arguments
21650
22145
  *
@@ -21717,7 +22212,7 @@ export type PalletNominationPoolsCall =
21717
22212
  *
21718
22213
  * In the case of `origin != other`, `origin` can only bond extra pending rewards of
21719
22214
  * `other` members assuming set_claim_permission for the given member is
21720
- * `PermissionlessAll` or `PermissionlessCompound`.
22215
+ * `PermissionlessCompound` or `PermissionlessAll`.
21721
22216
  **/
21722
22217
  | {
21723
22218
  name: 'BondExtraOther';
@@ -21730,15 +22225,10 @@ export type PalletNominationPoolsCall =
21730
22225
  * Allows a pool member to set a claim permission to allow or disallow permissionless
21731
22226
  * bonding and withdrawing.
21732
22227
  *
21733
- * By default, this is `Permissioned`, which implies only the pool member themselves can
21734
- * claim their pending rewards. If a pool member wishes so, they can set this to
21735
- * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
21736
- * pool.
21737
- *
21738
22228
  * # Arguments
21739
22229
  *
21740
22230
  * * `origin` - Member of a pool.
21741
- * * `actor` - Account to claim reward. // improve this
22231
+ * * `permission` - The permission to be applied.
21742
22232
  **/
21743
22233
  | {
21744
22234
  name: 'SetClaimPermission';
@@ -21749,8 +22239,8 @@ export type PalletNominationPoolsCall =
21749
22239
  /**
21750
22240
  * `origin` can claim payouts on some pool member `other`'s behalf.
21751
22241
  *
21752
- * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
21753
- * for this call to be successful.
22242
+ * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim
22243
+ * permission for this call to be successful.
21754
22244
  **/
21755
22245
  | {
21756
22246
  name: 'ClaimPayoutOther';
@@ -21831,7 +22321,7 @@ export type PalletNominationPoolsCall =
21831
22321
  * Set or remove a pool's commission claim permission.
21832
22322
  *
21833
22323
  * Determines who can claim the pool's pending commission. Only the `Root` role of the pool
21834
- * is able to conifigure commission claim permissions.
22324
+ * is able to configure commission claim permissions.
21835
22325
  **/
21836
22326
  | {
21837
22327
  name: 'SetCommissionClaimPermission';
@@ -21839,11 +22329,65 @@ export type PalletNominationPoolsCall =
21839
22329
  poolId: number;
21840
22330
  permission?: PalletNominationPoolsCommissionClaimPermission | undefined;
21841
22331
  };
22332
+ }
22333
+ /**
22334
+ * Apply a pending slash on a member.
22335
+ *
22336
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22337
+ * [`adapter::StakeStrategyType::Delegate`].
22338
+ *
22339
+ * This call can be dispatched permissionlessly (i.e. by any account). If the member has
22340
+ * slash to be applied, caller may be rewarded with the part of the slash.
22341
+ **/
22342
+ | {
22343
+ name: 'ApplySlash';
22344
+ params: {
22345
+ memberAccount: MultiAddress;
22346
+ };
22347
+ }
22348
+ /**
22349
+ * Migrates delegated funds from the pool account to the `member_account`.
22350
+ *
22351
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22352
+ * [`adapter::StakeStrategyType::Delegate`].
22353
+ *
22354
+ * This is a permission-less call and refunds any fee if claim is successful.
22355
+ *
22356
+ * If the pool has migrated to delegation based staking, the staked tokens of pool members
22357
+ * can be moved and held in their own account. See [`adapter::DelegateStake`]
22358
+ **/
22359
+ | {
22360
+ name: 'MigrateDelegation';
22361
+ params: {
22362
+ memberAccount: MultiAddress;
22363
+ };
22364
+ }
22365
+ /**
22366
+ * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
22367
+ * [`adapter::StakeStrategyType::Delegate`].
22368
+ *
22369
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22370
+ * [`adapter::StakeStrategyType::Delegate`].
22371
+ *
22372
+ * This call can be dispatched permissionlessly, and refunds any fee if successful.
22373
+ *
22374
+ * If the pool has already migrated to delegation based staking, this call will fail.
22375
+ **/
22376
+ | {
22377
+ name: 'MigratePoolToDelegateStake';
22378
+ params: {
22379
+ poolId: number;
22380
+ };
21842
22381
  };
21843
22382
  export type PalletNominationPoolsCallLike =
21844
22383
  /**
21845
- * Stake funds with a pool. The amount to bond is transferred from the member to the
21846
- * pools account and immediately increases the pools bond.
22384
+ * Stake funds with a pool. The amount to bond is transferred from the member to the pool
22385
+ * account and immediately increases the pools bond.
22386
+ *
22387
+ * The method of transferring the amount to the pool account is determined by
22388
+ * [`adapter::StakeStrategyType`]. If the pool is configured to use
22389
+ * [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
22390
+ * the `origin`, while the pool gains the right to use these funds for staking.
21847
22391
  *
21848
22392
  * # Note
21849
22393
  *
@@ -21883,7 +22427,7 @@ export type PalletNominationPoolsCallLike =
21883
22427
  * The member will earn rewards pro rata based on the members stake vs the sum of the
21884
22428
  * members in the pools stake. Rewards do not "expire".
21885
22429
  *
21886
- * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
22430
+ * See `claim_payout_other` to claim rewards on behalf of some `other` pool member.
21887
22431
  **/
21888
22432
  | {
21889
22433
  name: 'ClaimPayout';
@@ -21962,7 +22506,10 @@ export type PalletNominationPoolsCallLike =
21962
22506
  *
21963
22507
  * # Note
21964
22508
  *
21965
- * If the target is the depositor, the pool will be destroyed.
22509
+ * - If the target is the depositor, the pool will be destroyed.
22510
+ * - If the pool has any pending slash, we also try to slash the member before letting them
22511
+ * withdraw. This calculation adds some weight overhead and is only defensive. In reality,
22512
+ * pool slashes must have been already applied via permissionless [`Call::apply_slash`].
21966
22513
  **/
21967
22514
  | {
21968
22515
  name: 'WithdrawUnbonded';
@@ -22072,7 +22619,7 @@ export type PalletNominationPoolsCallLike =
22072
22619
  }
22073
22620
  /**
22074
22621
  * Update configurations for the nomination pools. The origin for this call must be
22075
- * Root.
22622
+ * [`Config::AdminOrigin`].
22076
22623
  *
22077
22624
  * # Arguments
22078
22625
  *
@@ -22145,7 +22692,7 @@ export type PalletNominationPoolsCallLike =
22145
22692
  *
22146
22693
  * In the case of `origin != other`, `origin` can only bond extra pending rewards of
22147
22694
  * `other` members assuming set_claim_permission for the given member is
22148
- * `PermissionlessAll` or `PermissionlessCompound`.
22695
+ * `PermissionlessCompound` or `PermissionlessAll`.
22149
22696
  **/
22150
22697
  | {
22151
22698
  name: 'BondExtraOther';
@@ -22158,15 +22705,10 @@ export type PalletNominationPoolsCallLike =
22158
22705
  * Allows a pool member to set a claim permission to allow or disallow permissionless
22159
22706
  * bonding and withdrawing.
22160
22707
  *
22161
- * By default, this is `Permissioned`, which implies only the pool member themselves can
22162
- * claim their pending rewards. If a pool member wishes so, they can set this to
22163
- * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
22164
- * pool.
22165
- *
22166
22708
  * # Arguments
22167
22709
  *
22168
22710
  * * `origin` - Member of a pool.
22169
- * * `actor` - Account to claim reward. // improve this
22711
+ * * `permission` - The permission to be applied.
22170
22712
  **/
22171
22713
  | {
22172
22714
  name: 'SetClaimPermission';
@@ -22177,8 +22719,8 @@ export type PalletNominationPoolsCallLike =
22177
22719
  /**
22178
22720
  * `origin` can claim payouts on some pool member `other`'s behalf.
22179
22721
  *
22180
- * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
22181
- * for this call to be successful.
22722
+ * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim
22723
+ * permission for this call to be successful.
22182
22724
  **/
22183
22725
  | {
22184
22726
  name: 'ClaimPayoutOther';
@@ -22259,7 +22801,7 @@ export type PalletNominationPoolsCallLike =
22259
22801
  * Set or remove a pool's commission claim permission.
22260
22802
  *
22261
22803
  * Determines who can claim the pool's pending commission. Only the `Root` role of the pool
22262
- * is able to conifigure commission claim permissions.
22804
+ * is able to configure commission claim permissions.
22263
22805
  **/
22264
22806
  | {
22265
22807
  name: 'SetCommissionClaimPermission';
@@ -22267,6 +22809,55 @@ export type PalletNominationPoolsCallLike =
22267
22809
  poolId: number;
22268
22810
  permission?: PalletNominationPoolsCommissionClaimPermission | undefined;
22269
22811
  };
22812
+ }
22813
+ /**
22814
+ * Apply a pending slash on a member.
22815
+ *
22816
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22817
+ * [`adapter::StakeStrategyType::Delegate`].
22818
+ *
22819
+ * This call can be dispatched permissionlessly (i.e. by any account). If the member has
22820
+ * slash to be applied, caller may be rewarded with the part of the slash.
22821
+ **/
22822
+ | {
22823
+ name: 'ApplySlash';
22824
+ params: {
22825
+ memberAccount: MultiAddressLike;
22826
+ };
22827
+ }
22828
+ /**
22829
+ * Migrates delegated funds from the pool account to the `member_account`.
22830
+ *
22831
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22832
+ * [`adapter::StakeStrategyType::Delegate`].
22833
+ *
22834
+ * This is a permission-less call and refunds any fee if claim is successful.
22835
+ *
22836
+ * If the pool has migrated to delegation based staking, the staked tokens of pool members
22837
+ * can be moved and held in their own account. See [`adapter::DelegateStake`]
22838
+ **/
22839
+ | {
22840
+ name: 'MigrateDelegation';
22841
+ params: {
22842
+ memberAccount: MultiAddressLike;
22843
+ };
22844
+ }
22845
+ /**
22846
+ * Migrate pool from [`adapter::StakeStrategyType::Transfer`] to
22847
+ * [`adapter::StakeStrategyType::Delegate`].
22848
+ *
22849
+ * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
22850
+ * [`adapter::StakeStrategyType::Delegate`].
22851
+ *
22852
+ * This call can be dispatched permissionlessly, and refunds any fee if successful.
22853
+ *
22854
+ * If the pool has already migrated to delegation based staking, this call will fail.
22855
+ **/
22856
+ | {
22857
+ name: 'MigratePoolToDelegateStake';
22858
+ params: {
22859
+ poolId: number;
22860
+ };
22270
22861
  };
22271
22862
  export type PalletNominationPoolsBondExtra = {
22272
22863
  type: 'FreeBalance';
@@ -22578,7 +23169,7 @@ export type PalletAssetConversionCall =
22578
23169
  * calls to render the liquidity withdrawable and rectify the exchange rate.
22579
23170
  *
22580
23171
  * Once liquidity is added, someone may successfully call
22581
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
23172
+ * [`Pallet::swap_exact_tokens_for_tokens`].
22582
23173
  **/
22583
23174
  | {
22584
23175
  name: 'AddLiquidity';
@@ -22643,6 +23234,26 @@ export type PalletAssetConversionCall =
22643
23234
  sendTo: AccountId32;
22644
23235
  keepAlive: boolean;
22645
23236
  };
23237
+ }
23238
+ /**
23239
+ * Touch an existing pool to fulfill prerequisites before providing liquidity, such as
23240
+ * ensuring that the pool's accounts are in place. It is typically useful when a pool
23241
+ * creator removes the pool's accounts and does not provide a liquidity. This action may
23242
+ * involve holding assets from the caller as a deposit for creating the pool's accounts.
23243
+ *
23244
+ * The origin must be Signed.
23245
+ *
23246
+ * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
23247
+ * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
23248
+ *
23249
+ * Emits `Touched` event when successful.
23250
+ **/
23251
+ | {
23252
+ name: 'Touch';
23253
+ params: {
23254
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
23255
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
23256
+ };
22646
23257
  };
22647
23258
  export type PalletAssetConversionCallLike =
22648
23259
  /**
@@ -22672,7 +23283,7 @@ export type PalletAssetConversionCallLike =
22672
23283
  * calls to render the liquidity withdrawable and rectify the exchange rate.
22673
23284
  *
22674
23285
  * Once liquidity is added, someone may successfully call
22675
- * [`Pallet::swap_exact_tokens_for_tokens`] successfully.
23286
+ * [`Pallet::swap_exact_tokens_for_tokens`].
22676
23287
  **/
22677
23288
  | {
22678
23289
  name: 'AddLiquidity';
@@ -22737,12 +23348,26 @@ export type PalletAssetConversionCallLike =
22737
23348
  sendTo: AccountId32Like;
22738
23349
  keepAlive: boolean;
22739
23350
  };
22740
- };
22741
- export type FrameSupportTokensFungibleUnionOfNativeOrWithId = {
22742
- type: 'Native';
22743
- } | {
22744
- type: 'WithId';
22745
- value: number;
23351
+ }
23352
+ /**
23353
+ * Touch an existing pool to fulfill prerequisites before providing liquidity, such as
23354
+ * ensuring that the pool's accounts are in place. It is typically useful when a pool
23355
+ * creator removes the pool's accounts and does not provide a liquidity. This action may
23356
+ * involve holding assets from the caller as a deposit for creating the pool's accounts.
23357
+ *
23358
+ * The origin must be Signed.
23359
+ *
23360
+ * - `asset1`: The asset ID of an existing pool with a pair (asset1, asset2).
23361
+ * - `asset2`: The asset ID of an existing pool with a pair (asset1, asset2).
23362
+ *
23363
+ * Emits `Touched` event when successful.
23364
+ **/
23365
+ | {
23366
+ name: 'Touch';
23367
+ params: {
23368
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
23369
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
23370
+ };
22746
23371
  };
22747
23372
  /**
22748
23373
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -23472,14 +24097,18 @@ export type PalletBrokerCall =
23472
24097
  * Begin the Bulk Coretime sales rotation.
23473
24098
  *
23474
24099
  * - `origin`: Must be Root or pass `AdminOrigin`.
23475
- * - `initial_price`: The price of Bulk Coretime in the first sale.
23476
- * - `core_count`: The number of cores which can be allocated.
24100
+ * - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
24101
+ * - `extra_cores`: Number of extra cores that should be requested on top of the cores
24102
+ * required for `Reservations` and `Leases`.
24103
+ *
24104
+ * This will call [`Self::request_core_count`] internally to set the correct core count on
24105
+ * the relay chain.
23477
24106
  **/
23478
24107
  | {
23479
24108
  name: 'StartSales';
23480
24109
  params: {
23481
- initialPrice: bigint;
23482
- coreCount: number;
24110
+ endPrice: bigint;
24111
+ extraCores: number;
23483
24112
  };
23484
24113
  }
23485
24114
  /**
@@ -23591,13 +24220,12 @@ export type PalletBrokerCall =
23591
24220
  /**
23592
24221
  * Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
23593
24222
  *
23594
- * - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
24223
+ * - `origin`: Must be a Signed origin.
23595
24224
  * - `region_id`: The Region which was assigned to the Pool.
23596
- * - `max_timeslices`: The maximum number of timeslices which should be processed. This may
23597
- * effect the weight of the call but should be ideally made equivalant to the length of
23598
- * the Region `region_id`. If it is less than this, then further dispatches will be
23599
- * required with the `region_id` which makes up any remainders of the region to be
23600
- * collected.
24225
+ * - `max_timeslices`: The maximum number of timeslices which should be processed. This
24226
+ * must be greater than 0. This may affect the weight of the call but should be ideally
24227
+ * made equivalent to the length of the Region `region_id`. If less, further dispatches
24228
+ * will be required with the same `region_id` to claim revenue for the remainder.
23601
24229
  **/
23602
24230
  | {
23603
24231
  name: 'ClaimRevenue';
@@ -23687,10 +24315,58 @@ export type PalletBrokerCall =
23687
24315
  params: {
23688
24316
  coreCount: number;
23689
24317
  };
23690
- };
23691
- export type PalletBrokerCallLike =
23692
- /**
23693
- * Configure the pallet.
24318
+ } | {
24319
+ name: 'NotifyRevenue';
24320
+ params: {
24321
+ revenue: PalletBrokerOnDemandRevenueRecord;
24322
+ };
24323
+ }
24324
+ /**
24325
+ * Extrinsic for enabling auto renewal.
24326
+ *
24327
+ * Callable by the sovereign account of the task on the specified core. This account
24328
+ * will be charged at the start of every bulk period for renewing core time.
24329
+ *
24330
+ * - `origin`: Must be the sovereign account of the task
24331
+ * - `core`: The core to which the task to be renewed is currently assigned.
24332
+ * - `task`: The task for which we want to enable auto renewal.
24333
+ * - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
24334
+ * expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
24335
+ * inefficient to look up when the core expires to schedule the next renewal.
24336
+ **/
24337
+ | {
24338
+ name: 'EnableAutoRenew';
24339
+ params: {
24340
+ core: number;
24341
+ task: number;
24342
+ workloadEndHint?: number | undefined;
24343
+ };
24344
+ }
24345
+ /**
24346
+ * Extrinsic for disabling auto renewal.
24347
+ *
24348
+ * Callable by the sovereign account of the task on the specified core.
24349
+ *
24350
+ * - `origin`: Must be the sovereign account of the task.
24351
+ * - `core`: The core for which we want to disable auto renewal.
24352
+ * - `task`: The task for which we want to disable auto renewal.
24353
+ **/
24354
+ | {
24355
+ name: 'DisableAutoRenew';
24356
+ params: {
24357
+ core: number;
24358
+ task: number;
24359
+ };
24360
+ } | {
24361
+ name: 'SwapLeases';
24362
+ params: {
24363
+ id: number;
24364
+ other: number;
24365
+ };
24366
+ };
24367
+ export type PalletBrokerCallLike =
24368
+ /**
24369
+ * Configure the pallet.
23694
24370
  *
23695
24371
  * - `origin`: Must be Root or pass `AdminOrigin`.
23696
24372
  * - `config`: The configuration for this pallet.
@@ -23750,14 +24426,18 @@ export type PalletBrokerCallLike =
23750
24426
  * Begin the Bulk Coretime sales rotation.
23751
24427
  *
23752
24428
  * - `origin`: Must be Root or pass `AdminOrigin`.
23753
- * - `initial_price`: The price of Bulk Coretime in the first sale.
23754
- * - `core_count`: The number of cores which can be allocated.
24429
+ * - `end_price`: The price after the leadin period of Bulk Coretime in the first sale.
24430
+ * - `extra_cores`: Number of extra cores that should be requested on top of the cores
24431
+ * required for `Reservations` and `Leases`.
24432
+ *
24433
+ * This will call [`Self::request_core_count`] internally to set the correct core count on
24434
+ * the relay chain.
23755
24435
  **/
23756
24436
  | {
23757
24437
  name: 'StartSales';
23758
24438
  params: {
23759
- initialPrice: bigint;
23760
- coreCount: number;
24439
+ endPrice: bigint;
24440
+ extraCores: number;
23761
24441
  };
23762
24442
  }
23763
24443
  /**
@@ -23869,13 +24549,12 @@ export type PalletBrokerCallLike =
23869
24549
  /**
23870
24550
  * Claim the revenue owed from inclusion in the Instantaneous Coretime Pool.
23871
24551
  *
23872
- * - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
24552
+ * - `origin`: Must be a Signed origin.
23873
24553
  * - `region_id`: The Region which was assigned to the Pool.
23874
- * - `max_timeslices`: The maximum number of timeslices which should be processed. This may
23875
- * effect the weight of the call but should be ideally made equivalant to the length of
23876
- * the Region `region_id`. If it is less than this, then further dispatches will be
23877
- * required with the `region_id` which makes up any remainders of the region to be
23878
- * collected.
24554
+ * - `max_timeslices`: The maximum number of timeslices which should be processed. This
24555
+ * must be greater than 0. This may affect the weight of the call but should be ideally
24556
+ * made equivalent to the length of the Region `region_id`. If less, further dispatches
24557
+ * will be required with the same `region_id` to claim revenue for the remainder.
23879
24558
  **/
23880
24559
  | {
23881
24560
  name: 'ClaimRevenue';
@@ -23965,6 +24644,54 @@ export type PalletBrokerCallLike =
23965
24644
  params: {
23966
24645
  coreCount: number;
23967
24646
  };
24647
+ } | {
24648
+ name: 'NotifyRevenue';
24649
+ params: {
24650
+ revenue: PalletBrokerOnDemandRevenueRecord;
24651
+ };
24652
+ }
24653
+ /**
24654
+ * Extrinsic for enabling auto renewal.
24655
+ *
24656
+ * Callable by the sovereign account of the task on the specified core. This account
24657
+ * will be charged at the start of every bulk period for renewing core time.
24658
+ *
24659
+ * - `origin`: Must be the sovereign account of the task
24660
+ * - `core`: The core to which the task to be renewed is currently assigned.
24661
+ * - `task`: The task for which we want to enable auto renewal.
24662
+ * - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
24663
+ * expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
24664
+ * inefficient to look up when the core expires to schedule the next renewal.
24665
+ **/
24666
+ | {
24667
+ name: 'EnableAutoRenew';
24668
+ params: {
24669
+ core: number;
24670
+ task: number;
24671
+ workloadEndHint?: number | undefined;
24672
+ };
24673
+ }
24674
+ /**
24675
+ * Extrinsic for disabling auto renewal.
24676
+ *
24677
+ * Callable by the sovereign account of the task on the specified core.
24678
+ *
24679
+ * - `origin`: Must be the sovereign account of the task.
24680
+ * - `core`: The core for which we want to disable auto renewal.
24681
+ * - `task`: The task for which we want to disable auto renewal.
24682
+ **/
24683
+ | {
24684
+ name: 'DisableAutoRenew';
24685
+ params: {
24686
+ core: number;
24687
+ task: number;
24688
+ };
24689
+ } | {
24690
+ name: 'SwapLeases';
24691
+ params: {
24692
+ id: number;
24693
+ other: number;
24694
+ };
23968
24695
  };
23969
24696
  export type PalletBrokerConfigRecord = {
23970
24697
  advanceNotice: number;
@@ -23995,6 +24722,10 @@ export type PalletBrokerRegionId = {
23995
24722
  mask: PalletBrokerCoreMask;
23996
24723
  };
23997
24724
  export type PalletBrokerFinality = 'Provisional' | 'Final';
24725
+ export type PalletBrokerOnDemandRevenueRecord = {
24726
+ until: number;
24727
+ amount: bigint;
24728
+ };
23998
24729
  /**
23999
24730
  * Contains a variant per dispatchable extrinsic that this pallet has.
24000
24731
  **/
@@ -24031,7 +24762,7 @@ export type PalletMixnetBoundedMixnode = {
24031
24762
  peerId: FixedBytes<32>;
24032
24763
  externalAddresses: Array<Bytes>;
24033
24764
  };
24034
- export type SpMixnetAppSignature = SpCoreSr25519Signature;
24765
+ export type SpMixnetAppSignature = FixedBytes<64>;
24035
24766
  /**
24036
24767
  * Contains a variant per dispatchable extrinsic that this pallet has.
24037
24768
  **/
@@ -24064,9 +24795,6 @@ export type PalletParametersCallLike =
24064
24795
  export type KitchensinkRuntimeRuntimeParameters = {
24065
24796
  type: 'Storage';
24066
24797
  value: KitchensinkRuntimeDynamicParamsStorageParameters;
24067
- } | {
24068
- type: 'Contract';
24069
- value: KitchensinkRuntimeDynamicParamsContractsParameters;
24070
24798
  };
24071
24799
  export type KitchensinkRuntimeDynamicParamsStorageParameters = {
24072
24800
  type: 'BaseDeposit';
@@ -24077,19 +24805,430 @@ export type KitchensinkRuntimeDynamicParamsStorageParameters = {
24077
24805
  };
24078
24806
  export type KitchensinkRuntimeDynamicParamsStorageBaseDeposit = {};
24079
24807
  export type KitchensinkRuntimeDynamicParamsStorageByteDeposit = {};
24080
- export type KitchensinkRuntimeDynamicParamsContractsParameters = {
24081
- type: 'DepositPerItem';
24082
- value: [KitchensinkRuntimeDynamicParamsContractsDepositPerItem, bigint | undefined];
24083
- } | {
24084
- type: 'DepositPerByte';
24085
- value: [KitchensinkRuntimeDynamicParamsContractsDepositPerByte, bigint | undefined];
24086
- } | {
24087
- type: 'DefaultDepositLimit';
24088
- value: [KitchensinkRuntimeDynamicParamsContractsDefaultDepositLimit, bigint | undefined];
24808
+ /**
24809
+ * Pallet's callable functions.
24810
+ **/
24811
+ export type PalletAssetConversionOpsCall =
24812
+ /**
24813
+ * Migrates an existing pool to a new account ID derivation method for a given asset pair.
24814
+ * If the migration is successful, transaction fees are refunded to the caller.
24815
+ *
24816
+ * Must be signed.
24817
+ **/
24818
+ {
24819
+ name: 'MigrateToNewAccount';
24820
+ params: {
24821
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
24822
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
24823
+ };
24824
+ };
24825
+ export type PalletAssetConversionOpsCallLike =
24826
+ /**
24827
+ * Migrates an existing pool to a new account ID derivation method for a given asset pair.
24828
+ * If the migration is successful, transaction fees are refunded to the caller.
24829
+ *
24830
+ * Must be signed.
24831
+ **/
24832
+ {
24833
+ name: 'MigrateToNewAccount';
24834
+ params: {
24835
+ asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId;
24836
+ asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId;
24837
+ };
24838
+ };
24839
+ /**
24840
+ * Contains a variant per dispatchable extrinsic that this pallet has.
24841
+ **/
24842
+ export type PalletReviveCall =
24843
+ /**
24844
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
24845
+ *
24846
+ * # Parameters
24847
+ *
24848
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
24849
+ * * `gas_limit`: The gas limit enforced during contract execution.
24850
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
24851
+ * storage usage.
24852
+ *
24853
+ * # Note
24854
+ *
24855
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
24856
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
24857
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
24858
+ * signer and validating the transaction.
24859
+ **/
24860
+ {
24861
+ name: 'EthTransact';
24862
+ params: {
24863
+ payload: Bytes;
24864
+ gasLimit: SpWeightsWeightV2Weight;
24865
+ storageDepositLimit: bigint;
24866
+ };
24867
+ }
24868
+ /**
24869
+ * Makes a call to an account, optionally transferring some balance.
24870
+ *
24871
+ * # Parameters
24872
+ *
24873
+ * * `dest`: Address of the contract to call.
24874
+ * * `value`: The balance to transfer from the `origin` to `dest`.
24875
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
24876
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
24877
+ * caller to pay for the storage consumed.
24878
+ * * `data`: The input data to pass to the contract.
24879
+ *
24880
+ * * If the account is a smart-contract account, the associated code will be
24881
+ * executed and any value will be transferred.
24882
+ * * If the account is a regular account, any value will be transferred.
24883
+ * * If no account exists and the call value is not less than `existential_deposit`,
24884
+ * a regular account will be created and any value will be transferred.
24885
+ **/
24886
+ | {
24887
+ name: 'Call';
24888
+ params: {
24889
+ dest: H160;
24890
+ value: bigint;
24891
+ gasLimit: SpWeightsWeightV2Weight;
24892
+ storageDepositLimit: bigint;
24893
+ data: Bytes;
24894
+ };
24895
+ }
24896
+ /**
24897
+ * Instantiates a contract from a previously deployed wasm binary.
24898
+ *
24899
+ * This function is identical to [`Self::instantiate_with_code`] but without the
24900
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
24901
+ * must be supplied.
24902
+ **/
24903
+ | {
24904
+ name: 'Instantiate';
24905
+ params: {
24906
+ value: bigint;
24907
+ gasLimit: SpWeightsWeightV2Weight;
24908
+ storageDepositLimit: bigint;
24909
+ codeHash: H256;
24910
+ data: Bytes;
24911
+ salt?: FixedBytes<32> | undefined;
24912
+ };
24913
+ }
24914
+ /**
24915
+ * Instantiates a new contract from the supplied `code` optionally transferring
24916
+ * some balance.
24917
+ *
24918
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
24919
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
24920
+ * also check the documentation of [`Self::upload_code`].
24921
+ *
24922
+ * # Parameters
24923
+ *
24924
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
24925
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
24926
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
24927
+ * from the caller to pay for the storage consumed.
24928
+ * * `code`: The contract code to deploy in raw bytes.
24929
+ * * `data`: The input data to pass to the contract constructor.
24930
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
24931
+ * semantics are used. If `None` then `CRATE1` is used.
24932
+ *
24933
+ *
24934
+ * Instantiation is executed as follows:
24935
+ *
24936
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
24937
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
24938
+ * - The destination address is computed based on the sender, code_hash and the salt.
24939
+ * - The smart-contract account is created at the computed address.
24940
+ * - The `value` is transferred to the new account.
24941
+ * - The `deploy` function is executed in the context of the newly-created account.
24942
+ **/
24943
+ | {
24944
+ name: 'InstantiateWithCode';
24945
+ params: {
24946
+ value: bigint;
24947
+ gasLimit: SpWeightsWeightV2Weight;
24948
+ storageDepositLimit: bigint;
24949
+ code: Bytes;
24950
+ data: Bytes;
24951
+ salt?: FixedBytes<32> | undefined;
24952
+ };
24953
+ }
24954
+ /**
24955
+ * Upload new `code` without instantiating a contract from it.
24956
+ *
24957
+ * If the code does not already exist a deposit is reserved from the caller
24958
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
24959
+ * depends on the size of the supplied `code`.
24960
+ *
24961
+ * # Note
24962
+ *
24963
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
24964
+ * To avoid this situation a constructor could employ access control so that it can
24965
+ * only be instantiated by permissioned entities. The same is true when uploading
24966
+ * through [`Self::instantiate_with_code`].
24967
+ **/
24968
+ | {
24969
+ name: 'UploadCode';
24970
+ params: {
24971
+ code: Bytes;
24972
+ storageDepositLimit: bigint;
24973
+ };
24974
+ }
24975
+ /**
24976
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
24977
+ *
24978
+ * A code can only be removed by its original uploader (its owner) and only if it is
24979
+ * not used by any contract.
24980
+ **/
24981
+ | {
24982
+ name: 'RemoveCode';
24983
+ params: {
24984
+ codeHash: H256;
24985
+ };
24986
+ }
24987
+ /**
24988
+ * Privileged function that changes the code of an existing contract.
24989
+ *
24990
+ * This takes care of updating refcounts and all other necessary operations. Returns
24991
+ * an error if either the `code_hash` or `dest` do not exist.
24992
+ *
24993
+ * # Note
24994
+ *
24995
+ * This does **not** change the address of the contract in question. This means
24996
+ * that the contract address is no longer derived from its code hash after calling
24997
+ * this dispatchable.
24998
+ **/
24999
+ | {
25000
+ name: 'SetCode';
25001
+ params: {
25002
+ dest: H160;
25003
+ codeHash: H256;
25004
+ };
25005
+ }
25006
+ /**
25007
+ * Register the callers account id so that it can be used in contract interactions.
25008
+ *
25009
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
25010
+ * take a deposit that can be released by calling [`Self::unmap_account`].
25011
+ **/
25012
+ | {
25013
+ name: 'MapAccount';
25014
+ }
25015
+ /**
25016
+ * Unregister the callers account id in order to free the deposit.
25017
+ *
25018
+ * There is no reason to ever call this function other than freeing up the deposit.
25019
+ * This is only useful when the account should no longer be used.
25020
+ **/
25021
+ | {
25022
+ name: 'UnmapAccount';
25023
+ }
25024
+ /**
25025
+ * Dispatch an `call` with the origin set to the callers fallback address.
25026
+ *
25027
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
25028
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
25029
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
25030
+ **/
25031
+ | {
25032
+ name: 'DispatchAsFallbackAccount';
25033
+ params: {
25034
+ call: KitchensinkRuntimeRuntimeCall;
25035
+ };
25036
+ };
25037
+ export type PalletReviveCallLike =
25038
+ /**
25039
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
25040
+ *
25041
+ * # Parameters
25042
+ *
25043
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
25044
+ * * `gas_limit`: The gas limit enforced during contract execution.
25045
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
25046
+ * storage usage.
25047
+ *
25048
+ * # Note
25049
+ *
25050
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
25051
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
25052
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
25053
+ * signer and validating the transaction.
25054
+ **/
25055
+ {
25056
+ name: 'EthTransact';
25057
+ params: {
25058
+ payload: BytesLike;
25059
+ gasLimit: SpWeightsWeightV2Weight;
25060
+ storageDepositLimit: bigint;
25061
+ };
25062
+ }
25063
+ /**
25064
+ * Makes a call to an account, optionally transferring some balance.
25065
+ *
25066
+ * # Parameters
25067
+ *
25068
+ * * `dest`: Address of the contract to call.
25069
+ * * `value`: The balance to transfer from the `origin` to `dest`.
25070
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
25071
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
25072
+ * caller to pay for the storage consumed.
25073
+ * * `data`: The input data to pass to the contract.
25074
+ *
25075
+ * * If the account is a smart-contract account, the associated code will be
25076
+ * executed and any value will be transferred.
25077
+ * * If the account is a regular account, any value will be transferred.
25078
+ * * If no account exists and the call value is not less than `existential_deposit`,
25079
+ * a regular account will be created and any value will be transferred.
25080
+ **/
25081
+ | {
25082
+ name: 'Call';
25083
+ params: {
25084
+ dest: H160;
25085
+ value: bigint;
25086
+ gasLimit: SpWeightsWeightV2Weight;
25087
+ storageDepositLimit: bigint;
25088
+ data: BytesLike;
25089
+ };
25090
+ }
25091
+ /**
25092
+ * Instantiates a contract from a previously deployed wasm binary.
25093
+ *
25094
+ * This function is identical to [`Self::instantiate_with_code`] but without the
25095
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
25096
+ * must be supplied.
25097
+ **/
25098
+ | {
25099
+ name: 'Instantiate';
25100
+ params: {
25101
+ value: bigint;
25102
+ gasLimit: SpWeightsWeightV2Weight;
25103
+ storageDepositLimit: bigint;
25104
+ codeHash: H256;
25105
+ data: BytesLike;
25106
+ salt?: FixedBytes<32> | undefined;
25107
+ };
25108
+ }
25109
+ /**
25110
+ * Instantiates a new contract from the supplied `code` optionally transferring
25111
+ * some balance.
25112
+ *
25113
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
25114
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
25115
+ * also check the documentation of [`Self::upload_code`].
25116
+ *
25117
+ * # Parameters
25118
+ *
25119
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
25120
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
25121
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
25122
+ * from the caller to pay for the storage consumed.
25123
+ * * `code`: The contract code to deploy in raw bytes.
25124
+ * * `data`: The input data to pass to the contract constructor.
25125
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
25126
+ * semantics are used. If `None` then `CRATE1` is used.
25127
+ *
25128
+ *
25129
+ * Instantiation is executed as follows:
25130
+ *
25131
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
25132
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
25133
+ * - The destination address is computed based on the sender, code_hash and the salt.
25134
+ * - The smart-contract account is created at the computed address.
25135
+ * - The `value` is transferred to the new account.
25136
+ * - The `deploy` function is executed in the context of the newly-created account.
25137
+ **/
25138
+ | {
25139
+ name: 'InstantiateWithCode';
25140
+ params: {
25141
+ value: bigint;
25142
+ gasLimit: SpWeightsWeightV2Weight;
25143
+ storageDepositLimit: bigint;
25144
+ code: BytesLike;
25145
+ data: BytesLike;
25146
+ salt?: FixedBytes<32> | undefined;
25147
+ };
25148
+ }
25149
+ /**
25150
+ * Upload new `code` without instantiating a contract from it.
25151
+ *
25152
+ * If the code does not already exist a deposit is reserved from the caller
25153
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
25154
+ * depends on the size of the supplied `code`.
25155
+ *
25156
+ * # Note
25157
+ *
25158
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
25159
+ * To avoid this situation a constructor could employ access control so that it can
25160
+ * only be instantiated by permissioned entities. The same is true when uploading
25161
+ * through [`Self::instantiate_with_code`].
25162
+ **/
25163
+ | {
25164
+ name: 'UploadCode';
25165
+ params: {
25166
+ code: BytesLike;
25167
+ storageDepositLimit: bigint;
25168
+ };
25169
+ }
25170
+ /**
25171
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
25172
+ *
25173
+ * A code can only be removed by its original uploader (its owner) and only if it is
25174
+ * not used by any contract.
25175
+ **/
25176
+ | {
25177
+ name: 'RemoveCode';
25178
+ params: {
25179
+ codeHash: H256;
25180
+ };
25181
+ }
25182
+ /**
25183
+ * Privileged function that changes the code of an existing contract.
25184
+ *
25185
+ * This takes care of updating refcounts and all other necessary operations. Returns
25186
+ * an error if either the `code_hash` or `dest` do not exist.
25187
+ *
25188
+ * # Note
25189
+ *
25190
+ * This does **not** change the address of the contract in question. This means
25191
+ * that the contract address is no longer derived from its code hash after calling
25192
+ * this dispatchable.
25193
+ **/
25194
+ | {
25195
+ name: 'SetCode';
25196
+ params: {
25197
+ dest: H160;
25198
+ codeHash: H256;
25199
+ };
25200
+ }
25201
+ /**
25202
+ * Register the callers account id so that it can be used in contract interactions.
25203
+ *
25204
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
25205
+ * take a deposit that can be released by calling [`Self::unmap_account`].
25206
+ **/
25207
+ | {
25208
+ name: 'MapAccount';
25209
+ }
25210
+ /**
25211
+ * Unregister the callers account id in order to free the deposit.
25212
+ *
25213
+ * There is no reason to ever call this function other than freeing up the deposit.
25214
+ * This is only useful when the account should no longer be used.
25215
+ **/
25216
+ | {
25217
+ name: 'UnmapAccount';
25218
+ }
25219
+ /**
25220
+ * Dispatch an `call` with the origin set to the callers fallback address.
25221
+ *
25222
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
25223
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
25224
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
25225
+ **/
25226
+ | {
25227
+ name: 'DispatchAsFallbackAccount';
25228
+ params: {
25229
+ call: KitchensinkRuntimeRuntimeCallLike;
25230
+ };
24089
25231
  };
24090
- export type KitchensinkRuntimeDynamicParamsContractsDepositPerItem = {};
24091
- export type KitchensinkRuntimeDynamicParamsContractsDepositPerByte = {};
24092
- export type KitchensinkRuntimeDynamicParamsContractsDefaultDepositLimit = {};
24093
25232
  export type SpRuntimeBlakeTwo256 = {};
24094
25233
  export type PalletConvictionVotingTally = {
24095
25234
  ayes: bigint;
@@ -24135,6 +25274,26 @@ export type PalletConvictionVotingEvent =
24135
25274
  | {
24136
25275
  name: 'Undelegated';
24137
25276
  data: AccountId32;
25277
+ }
25278
+ /**
25279
+ * An account that has voted
25280
+ **/
25281
+ | {
25282
+ name: 'Voted';
25283
+ data: {
25284
+ who: AccountId32;
25285
+ vote: PalletConvictionVotingVoteAccountVote;
25286
+ };
25287
+ }
25288
+ /**
25289
+ * A vote that been removed
25290
+ **/
25291
+ | {
25292
+ name: 'VoteRemoved';
25293
+ data: {
25294
+ who: AccountId32;
25295
+ vote: PalletConvictionVotingVoteAccountVote;
25296
+ };
24138
25297
  };
24139
25298
  /**
24140
25299
  * The `Event` enum of this pallet
@@ -24392,12 +25551,15 @@ export type PalletNominationPoolsEvent =
24392
25551
  * A member has been removed from a pool.
24393
25552
  *
24394
25553
  * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
25554
+ * Any funds that are still delegated (i.e. dangling delegation) are released and are
25555
+ * represented by `released_balance`.
24395
25556
  **/
24396
25557
  | {
24397
25558
  name: 'MemberRemoved';
24398
25559
  data: {
24399
25560
  poolId: number;
24400
25561
  member: AccountId32;
25562
+ releasedBalance: bigint;
24401
25563
  };
24402
25564
  }
24403
25565
  /**
@@ -24840,7 +26002,7 @@ export type PalletRankedCollectiveVoteRecord = {
24840
26002
  **/
24841
26003
  export type PalletAssetConversionEvent =
24842
26004
  /**
24843
- * A successful call of the `CretaPool` extrinsic will create this event.
26005
+ * A successful call of the `CreatePool` extrinsic will create this event.
24844
26006
  **/
24845
26007
  {
24846
26008
  name: 'PoolCreated';
@@ -24991,6 +26153,22 @@ export type PalletAssetConversionEvent =
24991
26153
  **/
24992
26154
  path: Array<[FrameSupportTokensFungibleUnionOfNativeOrWithId, bigint]>;
24993
26155
  };
26156
+ }
26157
+ /**
26158
+ * Pool has been touched in order to fulfill operational requirements.
26159
+ **/
26160
+ | {
26161
+ name: 'Touched';
26162
+ data: {
26163
+ /**
26164
+ * The ID of the pool.
26165
+ **/
26166
+ poolId: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId];
26167
+ /**
26168
+ * The account initiating the touch.
26169
+ **/
26170
+ who: AccountId32;
26171
+ };
24994
26172
  };
24995
26173
  /**
24996
26174
  * The `Event` enum of this pallet
@@ -25150,6 +26328,8 @@ export type FrameSupportMessagesProcessMessageError = {
25150
26328
  value: SpWeightsWeightV2Weight;
25151
26329
  } | {
25152
26330
  type: 'Yield';
26331
+ } | {
26332
+ type: 'StackLimitReached';
25153
26333
  };
25154
26334
  /**
25155
26335
  * The `Event` enum of this pallet
@@ -25522,11 +26702,11 @@ export type PalletBrokerEvent =
25522
26702
  /**
25523
26703
  * The old owner of the Region.
25524
26704
  **/
25525
- oldOwner: AccountId32;
26705
+ oldOwner?: AccountId32 | undefined;
25526
26706
  /**
25527
26707
  * The new owner of the Region.
25528
26708
  **/
25529
- owner: AccountId32;
26709
+ owner?: AccountId32 | undefined;
25530
26710
  };
25531
26711
  }
25532
26712
  /**
@@ -25674,7 +26854,7 @@ export type PalletBrokerEvent =
25674
26854
  /**
25675
26855
  * The price of Bulk Coretime after the Leadin Period.
25676
26856
  **/
25677
- regularPrice: bigint;
26857
+ endPrice: bigint;
25678
26858
  /**
25679
26859
  * The first timeslice of the Regions which are being sold in this sale.
25680
26860
  **/
@@ -25685,8 +26865,7 @@ export type PalletBrokerEvent =
25685
26865
  **/
25686
26866
  regionEnd: number;
25687
26867
  /**
25688
- * The number of cores we want to sell, ideally. Selling this amount would result in
25689
- * no change to the price for the next sale.
26868
+ * The number of cores we want to sell, ideally.
25690
26869
  **/
25691
26870
  idealCoresSold: number;
25692
26871
  /**
@@ -25870,178 +27049,400 @@ export type PalletBrokerEvent =
25870
27049
  * Some historical Instantaneous Core Pool payment record has been dropped.
25871
27050
  **/
25872
27051
  | {
25873
- name: 'HistoryDropped';
27052
+ name: 'HistoryDropped';
27053
+ data: {
27054
+ /**
27055
+ * The timeslice whose history is no longer available.
27056
+ **/
27057
+ when: number;
27058
+ /**
27059
+ * The amount of revenue the system has taken.
27060
+ **/
27061
+ revenue: bigint;
27062
+ };
27063
+ }
27064
+ /**
27065
+ * Some historical Instantaneous Core Pool payment record has been ignored because the
27066
+ * timeslice was already known. Governance may need to intervene.
27067
+ **/
27068
+ | {
27069
+ name: 'HistoryIgnored';
27070
+ data: {
27071
+ /**
27072
+ * The timeslice whose history is was ignored.
27073
+ **/
27074
+ when: number;
27075
+ /**
27076
+ * The amount of revenue which was ignored.
27077
+ **/
27078
+ revenue: bigint;
27079
+ };
27080
+ }
27081
+ /**
27082
+ * Some historical Instantaneous Core Pool Revenue is ready for payout claims.
27083
+ **/
27084
+ | {
27085
+ name: 'ClaimsReady';
27086
+ data: {
27087
+ /**
27088
+ * The timeslice whose history is available.
27089
+ **/
27090
+ when: number;
27091
+ /**
27092
+ * The amount of revenue the Polkadot System has already taken.
27093
+ **/
27094
+ systemPayout: bigint;
27095
+ /**
27096
+ * The total amount of revenue remaining to be claimed.
27097
+ **/
27098
+ privatePayout: bigint;
27099
+ };
27100
+ }
27101
+ /**
27102
+ * A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain.
27103
+ **/
27104
+ | {
27105
+ name: 'CoreAssigned';
27106
+ data: {
27107
+ /**
27108
+ * The index of the Core which has been assigned.
27109
+ **/
27110
+ core: number;
27111
+ /**
27112
+ * The Relay-chain block at which this assignment should take effect.
27113
+ **/
27114
+ when: number;
27115
+ /**
27116
+ * The workload to be done on the Core.
27117
+ **/
27118
+ assignment: Array<[PalletBrokerCoretimeInterfaceCoreAssignment, number]>;
27119
+ };
27120
+ }
27121
+ /**
27122
+ * Some historical Instantaneous Core Pool payment record has been dropped.
27123
+ **/
27124
+ | {
27125
+ name: 'PotentialRenewalDropped';
27126
+ data: {
27127
+ /**
27128
+ * The timeslice whose renewal is no longer available.
27129
+ **/
27130
+ when: number;
27131
+ /**
27132
+ * The core whose workload is no longer available to be renewed for `when`.
27133
+ **/
27134
+ core: number;
27135
+ };
27136
+ } | {
27137
+ name: 'AutoRenewalEnabled';
27138
+ data: {
27139
+ /**
27140
+ * The core for which the renewal was enabled.
27141
+ **/
27142
+ core: number;
27143
+ /**
27144
+ * The task for which the renewal was enabled.
27145
+ **/
27146
+ task: number;
27147
+ };
27148
+ } | {
27149
+ name: 'AutoRenewalDisabled';
27150
+ data: {
27151
+ /**
27152
+ * The core for which the renewal was disabled.
27153
+ **/
27154
+ core: number;
27155
+ /**
27156
+ * The task for which the renewal was disabled.
27157
+ **/
27158
+ task: number;
27159
+ };
27160
+ }
27161
+ /**
27162
+ * Failed to auto-renew a core, likely due to the payer account not being sufficiently
27163
+ * funded.
27164
+ **/
27165
+ | {
27166
+ name: 'AutoRenewalFailed';
27167
+ data: {
27168
+ /**
27169
+ * The core for which the renewal failed.
27170
+ **/
27171
+ core: number;
27172
+ /**
27173
+ * The account which was supposed to pay for renewal.
27174
+ *
27175
+ * If `None` it indicates that we failed to get the sovereign account of a task.
27176
+ **/
27177
+ payer?: AccountId32 | undefined;
27178
+ };
27179
+ }
27180
+ /**
27181
+ * The auto-renewal limit has been reached upon renewing cores.
27182
+ *
27183
+ * This should never happen, given that enable_auto_renew checks for this before enabling
27184
+ * auto-renewal.
27185
+ **/
27186
+ | {
27187
+ name: 'AutoRenewalLimitReached';
27188
+ };
27189
+ /**
27190
+ * The `Event` enum of this pallet
27191
+ **/
27192
+ export type PalletParametersEvent =
27193
+ /**
27194
+ * A Parameter was set.
27195
+ *
27196
+ * Is also emitted when the value was not changed.
27197
+ **/
27198
+ {
27199
+ name: 'Updated';
27200
+ data: {
27201
+ /**
27202
+ * The key that was updated.
27203
+ **/
27204
+ key: KitchensinkRuntimeRuntimeParametersKey;
27205
+ /**
27206
+ * The old value before this call.
27207
+ **/
27208
+ oldValue?: KitchensinkRuntimeRuntimeParametersValue | undefined;
27209
+ /**
27210
+ * The new value after this call.
27211
+ **/
27212
+ newValue?: KitchensinkRuntimeRuntimeParametersValue | undefined;
27213
+ };
27214
+ };
27215
+ export type KitchensinkRuntimeRuntimeParametersKey = {
27216
+ type: 'Storage';
27217
+ value: KitchensinkRuntimeDynamicParamsStorageParametersKey;
27218
+ };
27219
+ export type KitchensinkRuntimeDynamicParamsStorageParametersKey = {
27220
+ type: 'BaseDeposit';
27221
+ value: KitchensinkRuntimeDynamicParamsStorageBaseDeposit;
27222
+ } | {
27223
+ type: 'ByteDeposit';
27224
+ value: KitchensinkRuntimeDynamicParamsStorageByteDeposit;
27225
+ };
27226
+ export type KitchensinkRuntimeRuntimeParametersValue = {
27227
+ type: 'Storage';
27228
+ value: KitchensinkRuntimeDynamicParamsStorageParametersValue;
27229
+ };
27230
+ export type KitchensinkRuntimeDynamicParamsStorageParametersValue = {
27231
+ type: 'BaseDeposit';
27232
+ value: bigint;
27233
+ } | {
27234
+ type: 'ByteDeposit';
27235
+ value: bigint;
27236
+ };
27237
+ /**
27238
+ * The `Event` enum of this pallet
27239
+ **/
27240
+ export type PalletSkipFeelessPaymentEvent =
27241
+ /**
27242
+ * A transaction fee was skipped.
27243
+ **/
27244
+ {
27245
+ name: 'FeeSkipped';
27246
+ data: {
27247
+ origin: KitchensinkRuntimeOriginCaller;
27248
+ };
27249
+ };
27250
+ /**
27251
+ * The `Event` enum of this pallet
27252
+ **/
27253
+ export type PalletAssetConversionOpsEvent =
27254
+ /**
27255
+ * Indicates that a pool has been migrated to the new account ID.
27256
+ **/
27257
+ {
27258
+ name: 'MigratedToNewAccount';
27259
+ data: {
27260
+ /**
27261
+ * Pool's ID.
27262
+ **/
27263
+ poolId: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId];
27264
+ /**
27265
+ * Pool's prior account ID.
27266
+ **/
27267
+ priorAccount: AccountId32;
27268
+ /**
27269
+ * Pool's new account ID.
27270
+ **/
27271
+ newAccount: AccountId32;
27272
+ };
27273
+ };
27274
+ /**
27275
+ * The `Event` enum of this pallet
27276
+ **/
27277
+ export type PalletReviveEvent =
27278
+ /**
27279
+ * Contract deployed by address at the specified address.
27280
+ **/
27281
+ {
27282
+ name: 'Instantiated';
27283
+ data: {
27284
+ deployer: H160;
27285
+ contract: H160;
27286
+ };
27287
+ }
27288
+ /**
27289
+ * Contract has been removed.
27290
+ *
27291
+ * # Note
27292
+ *
27293
+ * The only way for a contract to be removed and emitting this event is by calling
27294
+ * `seal_terminate`.
27295
+ **/
27296
+ | {
27297
+ name: 'Terminated';
25874
27298
  data: {
25875
27299
  /**
25876
- * The timeslice whose history is no longer available.
27300
+ * The contract that was terminated.
25877
27301
  **/
25878
- when: number;
27302
+ contract: H160;
25879
27303
  /**
25880
- * The amount of revenue the system has taken.
27304
+ * The account that received the contracts remaining balance
25881
27305
  **/
25882
- revenue: bigint;
27306
+ beneficiary: H160;
25883
27307
  };
25884
27308
  }
25885
27309
  /**
25886
- * Some historical Instantaneous Core Pool payment record has been ignored because the
25887
- * timeslice was already known. Governance may need to intervene.
27310
+ * Code with the specified hash has been stored.
25888
27311
  **/
25889
27312
  | {
25890
- name: 'HistoryIgnored';
27313
+ name: 'CodeStored';
25891
27314
  data: {
25892
- /**
25893
- * The timeslice whose history is was ignored.
25894
- **/
25895
- when: number;
25896
- /**
25897
- * The amount of revenue which was ignored.
25898
- **/
25899
- revenue: bigint;
27315
+ codeHash: H256;
27316
+ depositHeld: bigint;
27317
+ uploader: H160;
25900
27318
  };
25901
27319
  }
25902
27320
  /**
25903
- * Some historical Instantaneous Core Pool Revenue is ready for payout claims.
27321
+ * A custom event emitted by the contract.
25904
27322
  **/
25905
27323
  | {
25906
- name: 'ClaimsReady';
27324
+ name: 'ContractEmitted';
25907
27325
  data: {
25908
27326
  /**
25909
- * The timeslice whose history is available.
27327
+ * The contract that emitted the event.
25910
27328
  **/
25911
- when: number;
27329
+ contract: H160;
25912
27330
  /**
25913
- * The amount of revenue the Polkadot System has already taken.
27331
+ * Data supplied by the contract. Metadata generated during contract compilation
27332
+ * is needed to decode it.
25914
27333
  **/
25915
- systemPayout: bigint;
27334
+ data: Bytes;
25916
27335
  /**
25917
- * The total amount of revenue remaining to be claimed.
27336
+ * A list of topics used to index the event.
27337
+ * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
25918
27338
  **/
25919
- privatePayout: bigint;
27339
+ topics: Array<H256>;
25920
27340
  };
25921
27341
  }
25922
27342
  /**
25923
- * A Core has been assigned to one or more tasks and/or the Pool on the Relay-chain.
27343
+ * A code with the specified hash was removed.
25924
27344
  **/
25925
27345
  | {
25926
- name: 'CoreAssigned';
27346
+ name: 'CodeRemoved';
27347
+ data: {
27348
+ codeHash: H256;
27349
+ depositReleased: bigint;
27350
+ remover: H160;
27351
+ };
27352
+ }
27353
+ /**
27354
+ * A contract's code was updated.
27355
+ **/
27356
+ | {
27357
+ name: 'ContractCodeUpdated';
25927
27358
  data: {
25928
27359
  /**
25929
- * The index of the Core which has been assigned.
27360
+ * The contract that has been updated.
25930
27361
  **/
25931
- core: number;
27362
+ contract: H160;
25932
27363
  /**
25933
- * The Relay-chain block at which this assignment should take effect.
27364
+ * New code hash that was set for the contract.
25934
27365
  **/
25935
- when: number;
27366
+ newCodeHash: H256;
25936
27367
  /**
25937
- * The workload to be done on the Core.
27368
+ * Previous code hash of the contract.
25938
27369
  **/
25939
- assignment: Array<[PalletBrokerCoretimeInterfaceCoreAssignment, number]>;
27370
+ oldCodeHash: H256;
25940
27371
  };
25941
27372
  }
25942
27373
  /**
25943
- * Some historical Instantaneous Core Pool payment record has been dropped.
27374
+ * A contract was called either by a plain account or another contract.
27375
+ *
27376
+ * # Note
27377
+ *
27378
+ * Please keep in mind that like all events this is only emitted for successful
27379
+ * calls. This is because on failure all storage changes including events are
27380
+ * rolled back.
25944
27381
  **/
25945
27382
  | {
25946
- name: 'AllowedRenewalDropped';
27383
+ name: 'Called';
25947
27384
  data: {
25948
27385
  /**
25949
- * The timeslice whose renewal is no longer available.
27386
+ * The caller of the `contract`.
25950
27387
  **/
25951
- when: number;
27388
+ caller: PalletReviveExecOrigin;
25952
27389
  /**
25953
- * The core whose workload is no longer available to be renewed for `when`.
27390
+ * The contract that was called.
25954
27391
  **/
25955
- core: number;
27392
+ contract: H160;
25956
27393
  };
25957
- };
25958
- /**
25959
- * The `Event` enum of this pallet
25960
- **/
25961
- export type PalletParametersEvent =
27394
+ }
25962
27395
  /**
25963
- * A Parameter was set.
27396
+ * A contract delegate called a code hash.
25964
27397
  *
25965
- * Is also emitted when the value was not changed.
27398
+ * # Note
27399
+ *
27400
+ * Please keep in mind that like all events this is only emitted for successful
27401
+ * calls. This is because on failure all storage changes including events are
27402
+ * rolled back.
25966
27403
  **/
25967
- {
25968
- name: 'Updated';
27404
+ | {
27405
+ name: 'DelegateCalled';
25969
27406
  data: {
25970
27407
  /**
25971
- * The key that was updated.
25972
- **/
25973
- key: KitchensinkRuntimeRuntimeParametersKey;
25974
- /**
25975
- * The old value before this call.
27408
+ * The contract that performed the delegate call and hence in whose context
27409
+ * the `code_hash` is executed.
25976
27410
  **/
25977
- oldValue?: KitchensinkRuntimeRuntimeParametersValue | undefined;
27411
+ contract: H160;
25978
27412
  /**
25979
- * The new value after this call.
27413
+ * The code hash that was delegate called.
25980
27414
  **/
25981
- newValue?: KitchensinkRuntimeRuntimeParametersValue | undefined;
27415
+ codeHash: H256;
25982
27416
  };
25983
- };
25984
- export type KitchensinkRuntimeRuntimeParametersKey = {
25985
- type: 'Storage';
25986
- value: KitchensinkRuntimeDynamicParamsStorageParametersKey;
25987
- } | {
25988
- type: 'Contract';
25989
- value: KitchensinkRuntimeDynamicParamsContractsParametersKey;
25990
- };
25991
- export type KitchensinkRuntimeDynamicParamsStorageParametersKey = {
25992
- type: 'BaseDeposit';
25993
- value: KitchensinkRuntimeDynamicParamsStorageBaseDeposit;
25994
- } | {
25995
- type: 'ByteDeposit';
25996
- value: KitchensinkRuntimeDynamicParamsStorageByteDeposit;
25997
- };
25998
- export type KitchensinkRuntimeDynamicParamsContractsParametersKey = {
25999
- type: 'DepositPerItem';
26000
- value: KitchensinkRuntimeDynamicParamsContractsDepositPerItem;
26001
- } | {
26002
- type: 'DepositPerByte';
26003
- value: KitchensinkRuntimeDynamicParamsContractsDepositPerByte;
26004
- } | {
26005
- type: 'DefaultDepositLimit';
26006
- value: KitchensinkRuntimeDynamicParamsContractsDefaultDepositLimit;
26007
- };
26008
- export type KitchensinkRuntimeRuntimeParametersValue = {
26009
- type: 'Storage';
26010
- value: KitchensinkRuntimeDynamicParamsStorageParametersValue;
26011
- } | {
26012
- type: 'Contract';
26013
- value: KitchensinkRuntimeDynamicParamsContractsParametersValue;
26014
- };
26015
- export type KitchensinkRuntimeDynamicParamsStorageParametersValue = {
26016
- type: 'BaseDeposit';
26017
- value: bigint;
26018
- } | {
26019
- type: 'ByteDeposit';
26020
- value: bigint;
26021
- };
26022
- export type KitchensinkRuntimeDynamicParamsContractsParametersValue = {
26023
- type: 'DepositPerItem';
26024
- value: bigint;
26025
- } | {
26026
- type: 'DepositPerByte';
26027
- value: bigint;
26028
- } | {
26029
- type: 'DefaultDepositLimit';
26030
- value: bigint;
26031
- };
27417
+ }
26032
27418
  /**
26033
- * The `Event` enum of this pallet
27419
+ * Some funds have been transferred and held as storage deposit.
26034
27420
  **/
26035
- export type PalletSkipFeelessPaymentEvent =
27421
+ | {
27422
+ name: 'StorageDepositTransferredAndHeld';
27423
+ data: {
27424
+ from: H160;
27425
+ to: H160;
27426
+ amount: bigint;
27427
+ };
27428
+ }
26036
27429
  /**
26037
- * A transaction fee was skipped.
27430
+ * Some storage deposit funds have been transferred and released.
26038
27431
  **/
26039
- {
26040
- name: 'FeeSkipped';
27432
+ | {
27433
+ name: 'StorageDepositTransferredAndReleased';
26041
27434
  data: {
26042
- who: AccountId32;
27435
+ from: H160;
27436
+ to: H160;
27437
+ amount: bigint;
26043
27438
  };
26044
27439
  };
27440
+ export type PalletReviveExecOrigin = {
27441
+ type: 'Root';
27442
+ } | {
27443
+ type: 'Signed';
27444
+ value: AccountId32;
27445
+ };
26045
27446
  export type FrameSystemLastRuntimeUpgradeInfo = {
26046
27447
  specVersion: number;
26047
27448
  specName: string;
@@ -26216,11 +27617,17 @@ export type PalletBalancesReserveData = {
26216
27617
  id: FixedBytes<8>;
26217
27618
  amount: bigint;
26218
27619
  };
26219
- export type PalletBalancesIdAmount = {
27620
+ export type FrameSupportTokensMiscIdAmount = {
26220
27621
  id: KitchensinkRuntimeRuntimeHoldReason;
26221
27622
  amount: bigint;
26222
27623
  };
26223
27624
  export type KitchensinkRuntimeRuntimeHoldReason = {
27625
+ type: 'Council';
27626
+ value: PalletCollectiveHoldReason;
27627
+ } | {
27628
+ type: 'TechnicalCommittee';
27629
+ value: PalletCollectiveHoldReason;
27630
+ } | {
26224
27631
  type: 'Contracts';
26225
27632
  value: PalletContractsHoldReason;
26226
27633
  } | {
@@ -26238,10 +27645,17 @@ export type KitchensinkRuntimeRuntimeHoldReason = {
26238
27645
  } | {
26239
27646
  type: 'StateTrieMigration';
26240
27647
  value: PalletStateTrieMigrationHoldReason;
27648
+ } | {
27649
+ type: 'AllianceMotion';
27650
+ value: PalletCollectiveHoldReason;
26241
27651
  } | {
26242
27652
  type: 'SafeMode';
26243
27653
  value: PalletSafeModeHoldReason;
27654
+ } | {
27655
+ type: 'Revive';
27656
+ value: PalletReviveHoldReason;
26244
27657
  };
27658
+ export type PalletCollectiveHoldReason = 'ProposalSubmission';
26245
27659
  export type PalletContractsHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve';
26246
27660
  export type PalletPreimageHoldReason = 'Preimage';
26247
27661
  export type PalletNisHoldReason = 'NftReceipt';
@@ -26249,7 +27663,8 @@ export type PalletNftFractionalizationHoldReason = 'Fractionalized';
26249
27663
  export type PalletTransactionStorageHoldReason = 'StorageFeeHold';
26250
27664
  export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
26251
27665
  export type PalletSafeModeHoldReason = 'EnterOrExtend';
26252
- export type PalletBalancesIdAmountRuntimeFreezeReason = {
27666
+ export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
27667
+ export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
26253
27668
  id: KitchensinkRuntimeRuntimeFreezeReason;
26254
27669
  amount: bigint;
26255
27670
  };
@@ -26387,7 +27802,7 @@ export type PalletElectionProviderMultiPhaseError =
26387
27802
  **/
26388
27803
  | 'TooManyWinners'
26389
27804
  /**
26390
- * Sumission was prepared for a different round.
27805
+ * Submission was prepared for a different round.
26391
27806
  **/
26392
27807
  | 'PreDispatchDifferentRound';
26393
27808
  export type PalletStakingStakingLedger = {
@@ -26397,10 +27812,6 @@ export type PalletStakingStakingLedger = {
26397
27812
  unlocking: Array<PalletStakingUnlockChunk>;
26398
27813
  legacyClaimedRewards: Array<number>;
26399
27814
  };
26400
- export type PalletStakingUnlockChunk = {
26401
- value: bigint;
26402
- era: number;
26403
- };
26404
27815
  export type PalletStakingNominations = {
26405
27816
  targets: Array<AccountId32>;
26406
27817
  submittedIn: number;
@@ -26556,7 +27967,23 @@ export type PalletStakingPalletError =
26556
27967
  /**
26557
27968
  * Used when attempting to use deprecated controller account logic.
26558
27969
  **/
26559
- | 'ControllerDeprecated';
27970
+ | 'ControllerDeprecated'
27971
+ /**
27972
+ * Cannot reset a ledger.
27973
+ **/
27974
+ | 'CannotRestoreLedger'
27975
+ /**
27976
+ * Provided reward destination is not allowed.
27977
+ **/
27978
+ | 'RewardDestinationRestricted'
27979
+ /**
27980
+ * Not enough funds available to withdraw.
27981
+ **/
27982
+ | 'NotEnoughFunds'
27983
+ /**
27984
+ * Operation not allowed for virtual stakers.
27985
+ **/
27986
+ | 'VirtualStakerNotAllowed';
26560
27987
  export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
26561
27988
  /**
26562
27989
  * Error for the session pallet.
@@ -26727,6 +28154,7 @@ export type PalletDemocracyError =
26727
28154
  * The preimage does not exist.
26728
28155
  **/
26729
28156
  | 'PreimageNotExist';
28157
+ export type FrameSupportTokensFungibleHoldConsideration = bigint;
26730
28158
  export type PalletCollectiveVotes = {
26731
28159
  index: number;
26732
28160
  threshold: number;
@@ -26781,7 +28209,11 @@ export type PalletCollectiveError =
26781
28209
  /**
26782
28210
  * Prime account is not a member
26783
28211
  **/
26784
- | 'PrimeAccountNotMember';
28212
+ | 'PrimeAccountNotMember'
28213
+ /**
28214
+ * Proposal is still active.
28215
+ **/
28216
+ | 'ProposalActive';
26785
28217
  export type PalletElectionsPhragmenSeatHolder = {
26786
28218
  who: AccountId32;
26787
28219
  stake: bigint;
@@ -26944,7 +28376,7 @@ export type PalletTreasuryProposal = {
26944
28376
  bond: bigint;
26945
28377
  };
26946
28378
  export type PalletTreasurySpendStatus = {
26947
- assetKind: number;
28379
+ assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId;
26948
28380
  amount: bigint;
26949
28381
  beneficiary: AccountId32;
26950
28382
  validFrom: number;
@@ -26966,14 +28398,10 @@ export type FrameSupportPalletId = FixedBytes<8>;
26966
28398
  * Error for the treasury pallet.
26967
28399
  **/
26968
28400
  export type PalletTreasuryError =
26969
- /**
26970
- * Proposer's balance is too low.
26971
- **/
26972
- 'InsufficientProposersBalance'
26973
28401
  /**
26974
28402
  * No proposal, bounty or spend at that index.
26975
28403
  **/
26976
- | 'InvalidIndex'
28404
+ 'InvalidIndex'
26977
28405
  /**
26978
28406
  * Too many approvals in the queue.
26979
28407
  **/
@@ -27055,7 +28483,6 @@ export type PalletContractsStorageDeletionQueueManager = {
27055
28483
  export type PalletContractsSchedule = {
27056
28484
  limits: PalletContractsScheduleLimits;
27057
28485
  instructionWeights: PalletContractsScheduleInstructionWeights;
27058
- hostFnWeights: PalletContractsScheduleHostFnWeights;
27059
28486
  };
27060
28487
  export type PalletContractsScheduleLimits = {
27061
28488
  eventTopics: number;
@@ -27063,75 +28490,12 @@ export type PalletContractsScheduleLimits = {
27063
28490
  subjectLen: number;
27064
28491
  payloadLen: number;
27065
28492
  runtimeMemory: number;
28493
+ validatorRuntimeMemory: number;
28494
+ eventRefTime: bigint;
27066
28495
  };
27067
28496
  export type PalletContractsScheduleInstructionWeights = {
27068
28497
  base: number;
27069
28498
  };
27070
- export type PalletContractsScheduleHostFnWeights = {
27071
- caller: SpWeightsWeightV2Weight;
27072
- isContract: SpWeightsWeightV2Weight;
27073
- codeHash: SpWeightsWeightV2Weight;
27074
- ownCodeHash: SpWeightsWeightV2Weight;
27075
- callerIsOrigin: SpWeightsWeightV2Weight;
27076
- callerIsRoot: SpWeightsWeightV2Weight;
27077
- address: SpWeightsWeightV2Weight;
27078
- gasLeft: SpWeightsWeightV2Weight;
27079
- balance: SpWeightsWeightV2Weight;
27080
- valueTransferred: SpWeightsWeightV2Weight;
27081
- minimumBalance: SpWeightsWeightV2Weight;
27082
- blockNumber: SpWeightsWeightV2Weight;
27083
- now: SpWeightsWeightV2Weight;
27084
- weightToFee: SpWeightsWeightV2Weight;
27085
- input: SpWeightsWeightV2Weight;
27086
- inputPerByte: SpWeightsWeightV2Weight;
27087
- rReturn: SpWeightsWeightV2Weight;
27088
- returnPerByte: SpWeightsWeightV2Weight;
27089
- terminate: SpWeightsWeightV2Weight;
27090
- random: SpWeightsWeightV2Weight;
27091
- depositEvent: SpWeightsWeightV2Weight;
27092
- depositEventPerTopic: SpWeightsWeightV2Weight;
27093
- depositEventPerByte: SpWeightsWeightV2Weight;
27094
- debugMessage: SpWeightsWeightV2Weight;
27095
- debugMessagePerByte: SpWeightsWeightV2Weight;
27096
- setStorage: SpWeightsWeightV2Weight;
27097
- setStoragePerNewByte: SpWeightsWeightV2Weight;
27098
- setStoragePerOldByte: SpWeightsWeightV2Weight;
27099
- setCodeHash: SpWeightsWeightV2Weight;
27100
- clearStorage: SpWeightsWeightV2Weight;
27101
- clearStoragePerByte: SpWeightsWeightV2Weight;
27102
- containsStorage: SpWeightsWeightV2Weight;
27103
- containsStoragePerByte: SpWeightsWeightV2Weight;
27104
- getStorage: SpWeightsWeightV2Weight;
27105
- getStoragePerByte: SpWeightsWeightV2Weight;
27106
- takeStorage: SpWeightsWeightV2Weight;
27107
- takeStoragePerByte: SpWeightsWeightV2Weight;
27108
- transfer: SpWeightsWeightV2Weight;
27109
- call: SpWeightsWeightV2Weight;
27110
- delegateCall: SpWeightsWeightV2Weight;
27111
- callTransferSurcharge: SpWeightsWeightV2Weight;
27112
- callPerClonedByte: SpWeightsWeightV2Weight;
27113
- instantiate: SpWeightsWeightV2Weight;
27114
- instantiateTransferSurcharge: SpWeightsWeightV2Weight;
27115
- instantiatePerInputByte: SpWeightsWeightV2Weight;
27116
- instantiatePerSaltByte: SpWeightsWeightV2Weight;
27117
- hashSha2256: SpWeightsWeightV2Weight;
27118
- hashSha2256PerByte: SpWeightsWeightV2Weight;
27119
- hashKeccak256: SpWeightsWeightV2Weight;
27120
- hashKeccak256PerByte: SpWeightsWeightV2Weight;
27121
- hashBlake2256: SpWeightsWeightV2Weight;
27122
- hashBlake2256PerByte: SpWeightsWeightV2Weight;
27123
- hashBlake2128: SpWeightsWeightV2Weight;
27124
- hashBlake2128PerByte: SpWeightsWeightV2Weight;
27125
- ecdsaRecover: SpWeightsWeightV2Weight;
27126
- ecdsaToEthAddress: SpWeightsWeightV2Weight;
27127
- sr25519Verify: SpWeightsWeightV2Weight;
27128
- sr25519VerifyPerByte: SpWeightsWeightV2Weight;
27129
- reentranceCount: SpWeightsWeightV2Weight;
27130
- accountReentranceCount: SpWeightsWeightV2Weight;
27131
- instantiationNonce: SpWeightsWeightV2Weight;
27132
- lockDelegateDependency: SpWeightsWeightV2Weight;
27133
- unlockDelegateDependency: SpWeightsWeightV2Weight;
27134
- };
27135
28499
  export type PalletContractsEnvironment = {
27136
28500
  accountId: PalletContractsEnvironmentType;
27137
28501
  balance: PalletContractsEnvironmentTypeU128;
@@ -27254,6 +28618,10 @@ export type PalletContractsError =
27254
28618
  * contract code execution which is not supported.
27255
28619
  **/
27256
28620
  | 'ReentranceDenied'
28621
+ /**
28622
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
28623
+ **/
28624
+ | 'StateChangeDenied'
27257
28625
  /**
27258
28626
  * Origin doesn't have enough balance to pay the required storage deposits.
27259
28627
  **/
@@ -27285,7 +28653,7 @@ export type PalletContractsError =
27285
28653
  **/
27286
28654
  | 'CodeRejected'
27287
28655
  /**
27288
- * An indetermistic code was used in a context where this is not permitted.
28656
+ * An indeterministic code was used in a context where this is not permitted.
27289
28657
  **/
27290
28658
  | 'Indeterministic'
27291
28659
  /**
@@ -27311,7 +28679,11 @@ export type PalletContractsError =
27311
28679
  /**
27312
28680
  * Can not add a delegate dependency to the code hash of the contract itself.
27313
28681
  **/
27314
- | 'CannotAddSelfAsDelegateDependency';
28682
+ | 'CannotAddSelfAsDelegateDependency'
28683
+ /**
28684
+ * Can not add more data to transient storage.
28685
+ **/
28686
+ | 'OutOfTransientStorage';
27315
28687
  /**
27316
28688
  * Error for the Sudo pallet.
27317
28689
  **/
@@ -27347,9 +28719,21 @@ export type PalletIdentityRegistrarInfo = {
27347
28719
  fields: bigint;
27348
28720
  };
27349
28721
  export type PalletIdentityAuthorityProperties = {
27350
- suffix: Bytes;
28722
+ accountId: AccountId32;
27351
28723
  allocation: number;
27352
28724
  };
28725
+ export type PalletIdentityUsernameInformation = {
28726
+ owner: AccountId32;
28727
+ provider: PalletIdentityProvider;
28728
+ };
28729
+ export type PalletIdentityProvider = {
28730
+ type: 'Allocation';
28731
+ } | {
28732
+ type: 'AuthorityDeposit';
28733
+ value: bigint;
28734
+ } | {
28735
+ type: 'System';
28736
+ };
27353
28737
  /**
27354
28738
  * The `Error` enum of this pallet.
27355
28739
  **/
@@ -27457,7 +28841,24 @@ export type PalletIdentityError =
27457
28841
  /**
27458
28842
  * The username cannot be forcefully removed because it can still be accepted.
27459
28843
  **/
27460
- | 'NotExpired';
28844
+ | 'NotExpired'
28845
+ /**
28846
+ * The username cannot be removed because it's still in the grace period.
28847
+ **/
28848
+ | 'TooEarly'
28849
+ /**
28850
+ * The username cannot be removed because it is not unbinding.
28851
+ **/
28852
+ | 'NotUnbinding'
28853
+ /**
28854
+ * The username cannot be unbound because it is already unbinding.
28855
+ **/
28856
+ | 'AlreadyUnbinding'
28857
+ /**
28858
+ * The action cannot be performed because of insufficient privileges (e.g. authority
28859
+ * trying to unbind a username provided by the system).
28860
+ **/
28861
+ | 'InsufficientPrivileges';
27461
28862
  export type PalletSocietyMemberRecord = {
27462
28863
  rank: number;
27463
28864
  strikes: number;
@@ -27816,7 +29217,6 @@ export type PalletPreimageRequestStatus = {
27816
29217
  maybeLen?: number | undefined;
27817
29218
  };
27818
29219
  };
27819
- export type FrameSupportTokensFungibleHoldConsideration = bigint;
27820
29220
  /**
27821
29221
  * The `Error` enum of this pallet.
27822
29222
  **/
@@ -27997,6 +29397,11 @@ export type PalletBountiesBountyStatus = {
27997
29397
  beneficiary: AccountId32;
27998
29398
  unlockAt: number;
27999
29399
  };
29400
+ } | {
29401
+ type: 'ApprovedWithCurator';
29402
+ value: {
29403
+ curator: AccountId32;
29404
+ };
28000
29405
  };
28001
29406
  /**
28002
29407
  * The `Error` enum of this pallet.
@@ -28220,7 +29625,11 @@ export type PalletAssetsError =
28220
29625
  /**
28221
29626
  * Callback action resulted in error
28222
29627
  **/
28223
- | 'CallbackFailed';
29628
+ | 'CallbackFailed'
29629
+ /**
29630
+ * The asset ID must be equal to the [`NextAssetId`].
29631
+ **/
29632
+ | 'BadAssetId';
28224
29633
  /**
28225
29634
  * The `Error` enum of this pallet.
28226
29635
  **/
@@ -28230,9 +29639,21 @@ export type PalletBeefyError =
28230
29639
  **/
28231
29640
  'InvalidKeyOwnershipProof'
28232
29641
  /**
28233
- * An equivocation proof provided as part of an equivocation report is invalid.
29642
+ * A double voting proof provided as part of an equivocation report is invalid.
28234
29643
  **/
28235
- | 'InvalidEquivocationProof'
29644
+ | 'InvalidDoubleVotingProof'
29645
+ /**
29646
+ * A fork voting proof provided as part of an equivocation report is invalid.
29647
+ **/
29648
+ | 'InvalidForkVotingProof'
29649
+ /**
29650
+ * A future block voting proof provided as part of an equivocation report is invalid.
29651
+ **/
29652
+ | 'InvalidFutureBlockVotingProof'
29653
+ /**
29654
+ * The session of the equivocation proof is invalid
29655
+ **/
29656
+ | 'InvalidEquivocationProofSession'
28236
29657
  /**
28237
29658
  * A given equivocation report is valid but already previously reported.
28238
29659
  **/
@@ -28355,7 +29776,7 @@ export type PalletNisError =
28355
29776
  **/
28356
29777
  | 'Throttled'
28357
29778
  /**
28358
- * The operation would result in a receipt worth an insignficant value.
29779
+ * The operation would result in a receipt worth an insignificant value.
28359
29780
  **/
28360
29781
  | 'MakesDust'
28361
29782
  /**
@@ -28885,7 +30306,7 @@ export type PalletTransactionStorageError =
28885
30306
  **/
28886
30307
  | 'MissingProof'
28887
30308
  /**
28888
- * Unable to verify proof becasue state data is missing.
30309
+ * Unable to verify proof because state data is missing.
28889
30310
  **/
28890
30311
  | 'MissingStateData'
28891
30312
  /**
@@ -29103,7 +30524,11 @@ export type PalletReferendaError =
29103
30524
  /**
29104
30525
  * The preimage does not exist.
29105
30526
  **/
29106
- | 'PreimageNotExist';
30527
+ | 'PreimageNotExist'
30528
+ /**
30529
+ * The preimage is stored with a different length than the one provided.
30530
+ **/
30531
+ | 'PreimageStoredWithDifferentLength';
29107
30532
  /**
29108
30533
  * The `Error` enum of this pallet.
29109
30534
  **/
@@ -29551,21 +30976,45 @@ export type PalletNominationPoolsError =
29551
30976
  * Pool id provided is not correct/usable.
29552
30977
  **/
29553
30978
  | {
29554
- name: 'InvalidPoolId';
30979
+ name: 'InvalidPoolId';
30980
+ }
30981
+ /**
30982
+ * Bonding extra is restricted to the exact pending reward amount.
30983
+ **/
30984
+ | {
30985
+ name: 'BondExtraRestricted';
30986
+ }
30987
+ /**
30988
+ * No imbalance in the ED deposit for the pool.
30989
+ **/
30990
+ | {
30991
+ name: 'NothingToAdjust';
30992
+ }
30993
+ /**
30994
+ * No slash pending that can be applied to the member.
30995
+ **/
30996
+ | {
30997
+ name: 'NothingToSlash';
30998
+ }
30999
+ /**
31000
+ * The pool or member delegation has already migrated to delegate stake.
31001
+ **/
31002
+ | {
31003
+ name: 'AlreadyMigrated';
29555
31004
  }
29556
31005
  /**
29557
- * Bonding extra is restricted to the exact pending reward amount.
31006
+ * The pool or member delegation has not migrated yet to delegate stake.
29558
31007
  **/
29559
31008
  | {
29560
- name: 'BondExtraRestricted';
31009
+ name: 'NotMigrated';
29561
31010
  }
29562
31011
  /**
29563
- * No imbalance in the ED deposit for the pool.
31012
+ * This call is not allowed in the current state of the pallet.
29564
31013
  **/
29565
31014
  | {
29566
- name: 'NothingToAdjust';
31015
+ name: 'NotSupported';
29567
31016
  };
29568
- export type PalletNominationPoolsDefensiveError = 'NotEnoughSpaceInUnbondPool' | 'PoolNotFound' | 'RewardPoolNotFound' | 'SubPoolsNotFound' | 'BondedStashKilledPrematurely';
31017
+ export type PalletNominationPoolsDefensiveError = 'NotEnoughSpaceInUnbondPool' | 'PoolNotFound' | 'RewardPoolNotFound' | 'SubPoolsNotFound' | 'BondedStashKilledPrematurely' | 'DelegationUnsupported' | 'SlashNotApplied';
29569
31018
  export type PalletReferendaReferendumInfoTally = {
29570
31019
  type: 'Ongoing';
29571
31020
  value: PalletReferendaReferendumStatusTally;
@@ -29644,7 +31093,11 @@ export type PalletRankedCollectiveError =
29644
31093
  /**
29645
31094
  * The new member to exchange is the same as the old member
29646
31095
  **/
29647
- | 'SameMember';
31096
+ | 'SameMember'
31097
+ /**
31098
+ * The max member count for the rank has been reached.
31099
+ **/
31100
+ | 'TooManyMembers';
29648
31101
  export type PalletAssetConversionPoolInfo = {
29649
31102
  lpToken: number;
29650
31103
  };
@@ -29917,7 +31370,7 @@ export type PalletBrokerStatusRecord = {
29917
31370
  export type PalletBrokerSaleInfoRecord = {
29918
31371
  saleStart: number;
29919
31372
  leadinLength: number;
29920
- price: bigint;
31373
+ endPrice: bigint;
29921
31374
  regionBegin: number;
29922
31375
  regionEnd: number;
29923
31376
  idealCoresSold: number;
@@ -29926,11 +31379,11 @@ export type PalletBrokerSaleInfoRecord = {
29926
31379
  selloutPrice?: bigint | undefined;
29927
31380
  coresSold: number;
29928
31381
  };
29929
- export type PalletBrokerAllowedRenewalId = {
31382
+ export type PalletBrokerPotentialRenewalId = {
29930
31383
  core: number;
29931
31384
  when: number;
29932
31385
  };
29933
- export type PalletBrokerAllowedRenewalRecord = {
31386
+ export type PalletBrokerPotentialRenewalRecord = {
29934
31387
  price: bigint;
29935
31388
  completion: PalletBrokerCompletionStatus;
29936
31389
  };
@@ -29943,7 +31396,7 @@ export type PalletBrokerCompletionStatus = {
29943
31396
  };
29944
31397
  export type PalletBrokerRegionRecord = {
29945
31398
  end: number;
29946
- owner: AccountId32;
31399
+ owner?: AccountId32 | undefined;
29947
31400
  paid?: bigint | undefined;
29948
31401
  };
29949
31402
  export type PalletBrokerContributionRecord = {
@@ -29959,6 +31412,11 @@ export type PalletBrokerInstaPoolHistoryRecord = {
29959
31412
  systemContributions: number;
29960
31413
  maybePayout?: bigint | undefined;
29961
31414
  };
31415
+ export type PalletBrokerAutoRenewalRecord = {
31416
+ core: number;
31417
+ task: number;
31418
+ nextRenewal: number;
31419
+ };
29962
31420
  /**
29963
31421
  * The `Error` enum of this pallet.
29964
31422
  **/
@@ -30077,7 +31535,31 @@ export type PalletBrokerError =
30077
31535
  /**
30078
31536
  * The configuration could not be applied because it is invalid.
30079
31537
  **/
30080
- | 'InvalidConfig';
31538
+ | 'InvalidConfig'
31539
+ /**
31540
+ * The revenue must be claimed for 1 or more timeslices.
31541
+ **/
31542
+ | 'NoClaimTimeslices'
31543
+ /**
31544
+ * The caller doesn't have the permission to enable or disable auto-renewal.
31545
+ **/
31546
+ | 'NoPermission'
31547
+ /**
31548
+ * We reached the limit for auto-renewals.
31549
+ **/
31550
+ | 'TooManyAutoRenewals'
31551
+ /**
31552
+ * Only cores which are assigned to a task can be auto-renewed.
31553
+ **/
31554
+ | 'NonTaskAutoRenewal'
31555
+ /**
31556
+ * Failed to get the sovereign account of a task.
31557
+ **/
31558
+ | 'SovereignAccountNotFound'
31559
+ /**
31560
+ * Attempted to disable auto-renewal for a core that didn't have it enabled.
31561
+ **/
31562
+ | 'AutoRenewalNotEnabled';
30081
31563
  /**
30082
31564
  * The `Error` enum of this pallet.
30083
31565
  **/
@@ -30086,6 +31568,242 @@ export type PalletExampleTasksError =
30086
31568
  * The referenced task was not found.
30087
31569
  **/
30088
31570
  'NotFound';
31571
+ /**
31572
+ * The `Error` enum of this pallet.
31573
+ **/
31574
+ export type PalletAssetConversionOpsError =
31575
+ /**
31576
+ * Provided asset pair is not supported for pool.
31577
+ **/
31578
+ 'InvalidAssetPair'
31579
+ /**
31580
+ * The pool doesn't exist.
31581
+ **/
31582
+ | 'PoolNotFound'
31583
+ /**
31584
+ * Pool's balance cannot be zero.
31585
+ **/
31586
+ | 'ZeroBalance'
31587
+ /**
31588
+ * Indicates a partial transfer of balance to the new account during a migration.
31589
+ **/
31590
+ | 'PartialTransfer';
31591
+ export type PalletReviveWasmCodeInfo = {
31592
+ owner: AccountId32;
31593
+ deposit: bigint;
31594
+ refcount: bigint;
31595
+ codeLen: number;
31596
+ apiVersion: number;
31597
+ behaviourVersion: number;
31598
+ };
31599
+ export type PalletReviveStorageContractInfo = {
31600
+ trieId: Bytes;
31601
+ codeHash: H256;
31602
+ storageBytes: number;
31603
+ storageItems: number;
31604
+ storageByteDeposit: bigint;
31605
+ storageItemDeposit: bigint;
31606
+ storageBaseDeposit: bigint;
31607
+ delegateDependencies: Array<[H256, bigint]>;
31608
+ immutableDataLen: number;
31609
+ };
31610
+ export type PalletReviveStorageDeletionQueueManager = {
31611
+ insertCounter: number;
31612
+ deleteCounter: number;
31613
+ };
31614
+ /**
31615
+ * The `Error` enum of this pallet.
31616
+ **/
31617
+ export type PalletReviveError =
31618
+ /**
31619
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
31620
+ **/
31621
+ 'InvalidSchedule'
31622
+ /**
31623
+ * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
31624
+ **/
31625
+ | 'InvalidCallFlags'
31626
+ /**
31627
+ * The executed contract exhausted its gas limit.
31628
+ **/
31629
+ | 'OutOfGas'
31630
+ /**
31631
+ * Performing the requested transfer failed. Probably because there isn't enough
31632
+ * free balance in the sender's account.
31633
+ **/
31634
+ | 'TransferFailed'
31635
+ /**
31636
+ * Performing a call was denied because the calling depth reached the limit
31637
+ * of what is specified in the schedule.
31638
+ **/
31639
+ | 'MaxCallDepthReached'
31640
+ /**
31641
+ * No contract was found at the specified address.
31642
+ **/
31643
+ | 'ContractNotFound'
31644
+ /**
31645
+ * No code could be found at the supplied code hash.
31646
+ **/
31647
+ | 'CodeNotFound'
31648
+ /**
31649
+ * No code info could be found at the supplied code hash.
31650
+ **/
31651
+ | 'CodeInfoNotFound'
31652
+ /**
31653
+ * A buffer outside of sandbox memory was passed to a contract API function.
31654
+ **/
31655
+ | 'OutOfBounds'
31656
+ /**
31657
+ * Input passed to a contract API function failed to decode as expected type.
31658
+ **/
31659
+ | 'DecodingFailed'
31660
+ /**
31661
+ * Contract trapped during execution.
31662
+ **/
31663
+ | 'ContractTrapped'
31664
+ /**
31665
+ * The size defined in `T::MaxValueSize` was exceeded.
31666
+ **/
31667
+ | 'ValueTooLarge'
31668
+ /**
31669
+ * Termination of a contract is not allowed while the contract is already
31670
+ * on the call stack. Can be triggered by `seal_terminate`.
31671
+ **/
31672
+ | 'TerminatedWhileReentrant'
31673
+ /**
31674
+ * `seal_call` forwarded this contracts input. It therefore is no longer available.
31675
+ **/
31676
+ | 'InputForwarded'
31677
+ /**
31678
+ * The amount of topics passed to `seal_deposit_events` exceeds the limit.
31679
+ **/
31680
+ | 'TooManyTopics'
31681
+ /**
31682
+ * The chain does not provide a chain extension. Calling the chain extension results
31683
+ * in this error. Note that this usually shouldn't happen as deploying such contracts
31684
+ * is rejected.
31685
+ **/
31686
+ | 'NoChainExtension'
31687
+ /**
31688
+ * Failed to decode the XCM program.
31689
+ **/
31690
+ | 'XcmDecodeFailed'
31691
+ /**
31692
+ * A contract with the same AccountId already exists.
31693
+ **/
31694
+ | 'DuplicateContract'
31695
+ /**
31696
+ * A contract self destructed in its constructor.
31697
+ *
31698
+ * This can be triggered by a call to `seal_terminate`.
31699
+ **/
31700
+ | 'TerminatedInConstructor'
31701
+ /**
31702
+ * A call tried to invoke a contract that is flagged as non-reentrant.
31703
+ **/
31704
+ | 'ReentranceDenied'
31705
+ /**
31706
+ * A contract called into the runtime which then called back into this pallet.
31707
+ **/
31708
+ | 'ReenteredPallet'
31709
+ /**
31710
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
31711
+ **/
31712
+ | 'StateChangeDenied'
31713
+ /**
31714
+ * Origin doesn't have enough balance to pay the required storage deposits.
31715
+ **/
31716
+ | 'StorageDepositNotEnoughFunds'
31717
+ /**
31718
+ * More storage was created than allowed by the storage deposit limit.
31719
+ **/
31720
+ | 'StorageDepositLimitExhausted'
31721
+ /**
31722
+ * Code removal was denied because the code is still in use by at least one contract.
31723
+ **/
31724
+ | 'CodeInUse'
31725
+ /**
31726
+ * The contract ran to completion but decided to revert its storage changes.
31727
+ * Please note that this error is only returned from extrinsics. When called directly
31728
+ * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
31729
+ * to determine whether a reversion has taken place.
31730
+ **/
31731
+ | 'ContractReverted'
31732
+ /**
31733
+ * The contract failed to compile or is missing the correct entry points.
31734
+ *
31735
+ * A more detailed error can be found on the node console if debug messages are enabled
31736
+ * by supplying `-lruntime::revive=debug`.
31737
+ **/
31738
+ | 'CodeRejected'
31739
+ /**
31740
+ * The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
31741
+ **/
31742
+ | 'BlobTooLarge'
31743
+ /**
31744
+ * The static memory consumption of the blob will be larger than
31745
+ * [`limits::code::STATIC_MEMORY_BYTES`].
31746
+ **/
31747
+ | 'StaticMemoryTooLarge'
31748
+ /**
31749
+ * The program contains a basic block that is larger than allowed.
31750
+ **/
31751
+ | 'BasicBlockTooLarge'
31752
+ /**
31753
+ * The program contains an invalid instruction.
31754
+ **/
31755
+ | 'InvalidInstruction'
31756
+ /**
31757
+ * The contract has reached its maximum number of delegate dependencies.
31758
+ **/
31759
+ | 'MaxDelegateDependenciesReached'
31760
+ /**
31761
+ * The dependency was not found in the contract's delegate dependencies.
31762
+ **/
31763
+ | 'DelegateDependencyNotFound'
31764
+ /**
31765
+ * The contract already depends on the given delegate dependency.
31766
+ **/
31767
+ | 'DelegateDependencyAlreadyExists'
31768
+ /**
31769
+ * Can not add a delegate dependency to the code hash of the contract itself.
31770
+ **/
31771
+ | 'CannotAddSelfAsDelegateDependency'
31772
+ /**
31773
+ * Can not add more data to transient storage.
31774
+ **/
31775
+ | 'OutOfTransientStorage'
31776
+ /**
31777
+ * The contract tried to call a syscall which does not exist (at its current api level).
31778
+ **/
31779
+ | 'InvalidSyscall'
31780
+ /**
31781
+ * Invalid storage flags were passed to one of the storage syscalls.
31782
+ **/
31783
+ | 'InvalidStorageFlags'
31784
+ /**
31785
+ * PolkaVM failed during code execution. Probably due to a malformed program.
31786
+ **/
31787
+ | 'ExecutionFailed'
31788
+ /**
31789
+ * Failed to convert a U256 to a Balance.
31790
+ **/
31791
+ | 'BalanceConversionFailed'
31792
+ /**
31793
+ * Immutable data can only be set during deploys and only be read during calls.
31794
+ * Additionally, it is only valid to set the data once and it must not be empty.
31795
+ **/
31796
+ | 'InvalidImmutableAccess'
31797
+ /**
31798
+ * An `AccountID32` account tried to interact with the pallet without having a mapping.
31799
+ *
31800
+ * Call [`Pallet::map_account`] in order to create a mapping for the account.
31801
+ **/
31802
+ | 'AccountUnmapped'
31803
+ /**
31804
+ * Tried to map an account that is already mapped.
31805
+ **/
31806
+ | 'AccountAlreadyMapped';
30089
31807
  export type FrameSystemExtensionsCheckNonZeroSender = {};
30090
31808
  export type FrameSystemExtensionsCheckSpecVersion = {};
30091
31809
  export type FrameSystemExtensionsCheckTxVersion = {};
@@ -30095,8 +31813,12 @@ export type FrameSystemExtensionsCheckNonce = number;
30095
31813
  export type FrameSystemExtensionsCheckWeight = {};
30096
31814
  export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
30097
31815
  tip: bigint;
30098
- assetId?: number | undefined;
31816
+ assetId?: FrameSupportTokensFungibleUnionOfNativeOrWithId | undefined;
30099
31817
  };
31818
+ export type FrameMetadataHashExtensionCheckMetadataHash = {
31819
+ mode: FrameMetadataHashExtensionMode;
31820
+ };
31821
+ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
30100
31822
  export type SpRuntimeBlock = {
30101
31823
  header: Header;
30102
31824
  extrinsics: Array<UncheckedExtrinsic>;
@@ -30133,6 +31855,10 @@ export type SpRuntimeTransactionValidityInvalidTransaction = {
30133
31855
  type: 'MandatoryValidation';
30134
31856
  } | {
30135
31857
  type: 'BadSigner';
31858
+ } | {
31859
+ type: 'IndeterminateImplicit';
31860
+ } | {
31861
+ type: 'UnknownOrigin';
30136
31862
  };
30137
31863
  export type SpRuntimeTransactionValidityUnknownTransaction = {
30138
31864
  type: 'CannotLookup';
@@ -30164,7 +31890,7 @@ export type SpStatementStoreRuntimeApiValidStatement = {
30164
31890
  maxSize: number;
30165
31891
  };
30166
31892
  export type SpStatementStoreRuntimeApiInvalidStatement = 'BadProof' | 'NoProof' | 'InternalError';
30167
- export type SpConsensusGrandpaOpaqueKeyOwnershipProof = Bytes;
31893
+ export type SpRuntimeOpaqueValue = Bytes;
30168
31894
  export type SpConsensusBabeBabeConfiguration = {
30169
31895
  slotDuration: bigint;
30170
31896
  epochLength: bigint;
@@ -30228,6 +31954,58 @@ export type PalletContractsPrimitivesCodeUploadReturnValue = {
30228
31954
  deposit: bigint;
30229
31955
  };
30230
31956
  export type PalletContractsPrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed' | 'MigrationInProgress';
31957
+ export type PalletRevivePrimitivesContractResult = {
31958
+ gasConsumed: SpWeightsWeightV2Weight;
31959
+ gasRequired: SpWeightsWeightV2Weight;
31960
+ storageDeposit: PalletRevivePrimitivesStorageDeposit;
31961
+ debugMessage: Bytes;
31962
+ result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
31963
+ events?: Array<FrameSystemEventRecord> | undefined;
31964
+ };
31965
+ export type PalletRevivePrimitivesExecReturnValue = {
31966
+ flags: PalletReviveUapiFlagsReturnFlags;
31967
+ data: Bytes;
31968
+ };
31969
+ export type PalletReviveUapiFlagsReturnFlags = {
31970
+ bits: number;
31971
+ };
31972
+ export type PalletRevivePrimitivesStorageDeposit = {
31973
+ type: 'Refund';
31974
+ value: bigint;
31975
+ } | {
31976
+ type: 'Charge';
31977
+ value: bigint;
31978
+ };
31979
+ export type PalletRevivePrimitivesCode = {
31980
+ type: 'Upload';
31981
+ value: Bytes;
31982
+ } | {
31983
+ type: 'Existing';
31984
+ value: H256;
31985
+ };
31986
+ export type PalletRevivePrimitivesContractResultInstantiateReturnValue = {
31987
+ gasConsumed: SpWeightsWeightV2Weight;
31988
+ gasRequired: SpWeightsWeightV2Weight;
31989
+ storageDeposit: PalletRevivePrimitivesStorageDeposit;
31990
+ debugMessage: Bytes;
31991
+ result: Result<PalletRevivePrimitivesInstantiateReturnValue, DispatchError>;
31992
+ events?: Array<FrameSystemEventRecord> | undefined;
31993
+ };
31994
+ export type PalletRevivePrimitivesInstantiateReturnValue = {
31995
+ result: PalletRevivePrimitivesExecReturnValue;
31996
+ addr: H160;
31997
+ };
31998
+ export type PalletRevivePrimitivesEthContractResult = {
31999
+ fee: bigint;
32000
+ gasRequired: SpWeightsWeightV2Weight;
32001
+ storageDeposit: bigint;
32002
+ result: Result<Bytes, DispatchError>;
32003
+ };
32004
+ export type PalletRevivePrimitivesCodeUploadReturnValue = {
32005
+ codeHash: H256;
32006
+ deposit: bigint;
32007
+ };
32008
+ export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
30231
32009
  export type PalletTransactionPaymentRuntimeDispatchInfo = {
30232
32010
  weight: SpWeightsWeightV2Weight;
30233
32011
  class: FrameSupportDispatchDispatchClass;
@@ -30246,10 +32024,14 @@ export type SpConsensusBeefyValidatorSet = {
30246
32024
  validators: Array<SpConsensusBeefyEcdsaCryptoPublic>;
30247
32025
  id: bigint;
30248
32026
  };
30249
- export type SpConsensusBeefyOpaqueKeyOwnershipProof = Bytes;
32027
+ export type SpConsensusBeefyForkVotingProofOpaqueValue = {
32028
+ vote: SpConsensusBeefyVoteMessage;
32029
+ ancestryProof: SpRuntimeOpaqueValue;
32030
+ header: Header;
32031
+ };
30250
32032
  export type SpMmrPrimitivesError = 'InvalidNumericOp' | 'Push' | 'GetRoot' | 'Commit' | 'GenerateProof' | 'Verify' | 'LeafNotFound' | 'PalletNotIncluded' | 'InvalidLeafIndex' | 'InvalidBestKnownBlock';
30251
32033
  export type SpMmrPrimitivesEncodableOpaqueLeaf = Bytes;
30252
- export type SpMmrPrimitivesProof = {
32034
+ export type SpMmrPrimitivesLeafProof = {
30253
32035
  leafIndices: Array<bigint>;
30254
32036
  leafCount: bigint;
30255
32037
  items: Array<H256>;
@@ -30454,4 +32236,10 @@ export type KitchensinkRuntimeRuntimeError = {
30454
32236
  } | {
30455
32237
  pallet: 'TasksExample';
30456
32238
  palletError: PalletExampleTasksError;
32239
+ } | {
32240
+ pallet: 'AssetConversionMigration';
32241
+ palletError: PalletAssetConversionOpsError;
32242
+ } | {
32243
+ pallet: 'Revive';
32244
+ palletError: PalletReviveError;
30457
32245
  };