@polkadot/api-augment 16.5.6 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/assetHubKusama/consts.d.ts +140 -53
  2. package/assetHubKusama/errors.d.ts +310 -111
  3. package/assetHubKusama/events.d.ts +420 -149
  4. package/assetHubKusama/query.d.ts +370 -92
  5. package/assetHubKusama/runtime.d.ts +157 -8
  6. package/assetHubKusama/tx.d.ts +690 -600
  7. package/cjs/assetHubKusama/consts.d.ts +140 -53
  8. package/cjs/assetHubKusama/errors.d.ts +310 -111
  9. package/cjs/assetHubKusama/events.d.ts +420 -149
  10. package/cjs/assetHubKusama/query.d.ts +370 -92
  11. package/cjs/assetHubKusama/runtime.d.ts +157 -8
  12. package/cjs/assetHubKusama/tx.d.ts +690 -600
  13. package/cjs/kusama/consts.d.ts +0 -40
  14. package/cjs/kusama/errors.d.ts +25 -151
  15. package/cjs/kusama/events.d.ts +93 -208
  16. package/cjs/kusama/query.d.ts +98 -177
  17. package/cjs/kusama/runtime.d.ts +86 -46
  18. package/cjs/kusama/tx.d.ts +108 -608
  19. package/cjs/packageInfo.js +1 -1
  20. package/cjs/polkadot/consts.d.ts +1 -1
  21. package/cjs/polkadot/errors.d.ts +25 -85
  22. package/cjs/polkadot/events.d.ts +103 -159
  23. package/cjs/polkadot/query.d.ts +108 -172
  24. package/cjs/polkadot/runtime.d.ts +72 -46
  25. package/cjs/polkadot/tx.d.ts +101 -351
  26. package/cjs/substrate/consts.d.ts +12 -3
  27. package/cjs/substrate/errors.d.ts +28 -14
  28. package/cjs/substrate/events.d.ts +66 -1
  29. package/cjs/substrate/query.d.ts +9 -0
  30. package/cjs/substrate/runtime.d.ts +5 -1
  31. package/cjs/substrate/tx.d.ts +81 -2
  32. package/kusama/consts.d.ts +0 -40
  33. package/kusama/errors.d.ts +25 -151
  34. package/kusama/events.d.ts +93 -208
  35. package/kusama/query.d.ts +98 -177
  36. package/kusama/runtime.d.ts +86 -46
  37. package/kusama/tx.d.ts +108 -608
  38. package/package.json +6 -6
  39. package/packageInfo.js +1 -1
  40. package/polkadot/consts.d.ts +1 -1
  41. package/polkadot/errors.d.ts +25 -85
  42. package/polkadot/events.d.ts +103 -159
  43. package/polkadot/query.d.ts +108 -172
  44. package/polkadot/runtime.d.ts +72 -46
  45. package/polkadot/tx.d.ts +101 -351
  46. package/substrate/consts.d.ts +12 -3
  47. package/substrate/errors.d.ts +28 -14
  48. package/substrate/events.d.ts +66 -1
  49. package/substrate/query.d.ts +9 -0
  50. package/substrate/runtime.d.ts +5 -1
  51. package/substrate/tx.d.ts +81 -2
@@ -13,9 +13,9 @@ declare module '@polkadot/api-base/types/consts' {
13
13
  **/
14
14
  liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
15
15
  /**
16
- * A % the liquidity providers will take of every swap. Represents 10ths of a percent.
16
+ * The fraction of every swap that the liquidity providers take as a fee.
17
17
  **/
18
- lpFee: u32 & AugmentedConst<ApiType>;
18
+ lpFee: Permill & AugmentedConst<ApiType>;
19
19
  /**
20
20
  * The max number of hops in a swap.
21
21
  **/
@@ -79,10 +79,21 @@ declare module '@polkadot/api-base/types/consts' {
79
79
  **/
80
80
  [key: string]: Codec;
81
81
  };
82
+ assetsPrecompilesPermit: {
83
+ /**
84
+ * The chain ID used in EIP-712 domain separator.
85
+ **/
86
+ chainId: u64 & AugmentedConst<ApiType>;
87
+ /**
88
+ * Generic const
89
+ **/
90
+ [key: string]: Codec;
91
+ };
82
92
  aura: {
83
93
  /**
84
94
  * The slot duration Aura should run with, expressed in milliseconds.
85
- * The effective value of this type should not change while the chain is running.
95
+ *
96
+ * The effective value of this type can be changed with a runtime upgrade.
86
97
  *
87
98
  * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
88
99
  **/
@@ -349,6 +360,24 @@ declare module '@polkadot/api-base/types/consts' {
349
360
  **/
350
361
  [key: string]: Codec;
351
362
  };
363
+ multiAssetBounties: {
364
+ /**
365
+ * Minimum value for a bounty.
366
+ **/
367
+ bountyValueMinimum: u128 & AugmentedConst<ApiType>;
368
+ /**
369
+ * Minimum value for a child-bounty.
370
+ **/
371
+ childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
372
+ /**
373
+ * Maximum number of child bounties that can be added to a parent bounty.
374
+ **/
375
+ maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
376
+ /**
377
+ * Generic const
378
+ **/
379
+ [key: string]: Codec;
380
+ };
352
381
  multiBlockElection: {
353
382
  /**
354
383
  * The number of pages.
@@ -367,8 +396,7 @@ declare module '@polkadot/api-base/types/consts' {
367
396
  * Duration of the singed validation phase.
368
397
  *
369
398
  * The duration of this should not be less than `T::Pages`, and there is no point in it
370
- * being more than `SignedPhase::MaxSubmission::get() * T::Pages`. TODO: integrity test for
371
- * it.
399
+ * being more than `SignedPhase::MaxSubmission::get() * T::Pages`.
372
400
  **/
373
401
  signedValidationPhase: u32 & AugmentedConst<ApiType>;
374
402
  /**
@@ -406,11 +434,6 @@ declare module '@polkadot/api-base/types/consts' {
406
434
  * a page of results.
407
435
  **/
408
436
  maxWinnersPerPage: u32 & AugmentedConst<ApiType>;
409
- /**
410
- * The minimum amount of improvement to the solution score that defines a solution as
411
- * "better".
412
- **/
413
- solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
414
437
  /**
415
438
  * Generic const
416
439
  **/
@@ -696,39 +719,15 @@ declare module '@polkadot/api-base/types/consts' {
696
719
  };
697
720
  recovery: {
698
721
  /**
699
- * The base amount of currency needed to reserve for creating a recovery configuration.
700
- *
701
- * This is held for an additional storage item whose value size is
702
- * `2 + sizeof(BlockNumber, Balance)` bytes.
703
- **/
704
- configDepositBase: u128 & AugmentedConst<ApiType>;
705
- /**
706
- * The amount of currency needed per additional user when creating a recovery
707
- * configuration.
722
+ * DO NOT REDUCE THIS VALUE. Maximum number of friends per account config.
708
723
  *
709
- * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
710
- * value.
724
+ * Reducing this value can cause decoding errors in the bounded vectors.
711
725
  **/
712
- friendDepositFactor: u128 & AugmentedConst<ApiType>;
726
+ maxFriendsPerConfig: u32 & AugmentedConst<ApiType>;
713
727
  /**
714
- * The maximum amount of friends allowed in a recovery configuration.
715
- *
716
- * NOTE: The threshold programmed in this Pallet uses u16, so it does
717
- * not really make sense to have a limit here greater than u16::MAX.
718
- * But also, that is a lot more than you should probably set this value
719
- * to anyway...
720
- **/
721
- maxFriends: u32 & AugmentedConst<ApiType>;
722
- /**
723
- * The base amount of currency needed to reserve for starting a recovery.
724
- *
725
- * This is primarily held for deterring malicious recovery attempts, and should
726
- * have a value large enough that a bad actor would choose not to place this
727
- * deposit. It also acts to fund additional storage item whose value size is
728
- * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
729
- * threshold.
728
+ * Security deposit taken for each attempt that the initiator needs to place.
730
729
  **/
731
- recoveryDeposit: u128 & AugmentedConst<ApiType>;
730
+ securityDeposit: u128 & AugmentedConst<ApiType>;
732
731
  /**
733
732
  * Generic const
734
733
  **/
@@ -766,6 +765,19 @@ declare module '@polkadot/api-base/types/consts' {
766
765
  [key: string]: Codec;
767
766
  };
768
767
  revive: {
768
+ /**
769
+ * Allow EVM bytecode to be uploaded and instantiated.
770
+ **/
771
+ allowEVMBytecode: bool & AugmentedConst<ApiType>;
772
+ /**
773
+ * When enabled, accounts are automatically mapped on creation and unmapped on
774
+ * kill via [`AutoMapper`]. This removes the need for explicit `map_account` calls.
775
+ *
776
+ * Requires `frame_system::Config::OnNewAccount` and `OnKilledAccount` to be set
777
+ * to [`AutoMapper`]. When enabled, the `map_account` and `unmap_account`
778
+ * dispatchables are disabled.
779
+ **/
780
+ autoMap: bool & AugmentedConst<ApiType>;
769
781
  /**
770
782
  * The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
771
783
  *
@@ -779,6 +791,10 @@ declare module '@polkadot/api-base/types/consts' {
779
791
  * abuse these actions are protected with a percentage of the code deposit.
780
792
  **/
781
793
  codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
794
+ /**
795
+ * Allows debug-mode configuration, such as enabling unlimited contract size.
796
+ **/
797
+ debugEnabled: bool & AugmentedConst<ApiType>;
782
798
  /**
783
799
  * The amount of balance a caller has to pay for each byte of storage.
784
800
  *
@@ -787,6 +803,18 @@ declare module '@polkadot/api-base/types/consts' {
787
803
  * It is safe to change this value on a live chain as all refunds are pro rata.
788
804
  **/
789
805
  depositPerByte: u128 & AugmentedConst<ApiType>;
806
+ /**
807
+ * The amount of balance a caller has to pay for each child trie storage item.
808
+ *
809
+ * Those are the items created by a contract. In Solidity each value is a single
810
+ * storage item. This is why we need to set a lower value here than for the main
811
+ * trie items. Otherwise the storage deposit is too high.
812
+ *
813
+ * # Note
814
+ *
815
+ * It is safe to change this value on a live chain as all refunds are pro rata.
816
+ **/
817
+ depositPerChildTrieItem: u128 & AugmentedConst<ApiType>;
790
818
  /**
791
819
  * The amount of balance a caller has to pay for each storage item.
792
820
  *
@@ -796,21 +824,44 @@ declare module '@polkadot/api-base/types/consts' {
796
824
  **/
797
825
  depositPerItem: u128 & AugmentedConst<ApiType>;
798
826
  /**
799
- * The ratio between the decimal representation of the native token and the ETH token.
827
+ * This determines the relative scale of our gas price and gas estimates.
828
+ *
829
+ * By default, the gas price (in wei) is `FeeInfo::next_fee_multiplier()` multiplied by
830
+ * `NativeToEthRatio`. `GasScale` allows to scale this value: the actual gas price is the
831
+ * default gas price multiplied by `GasScale`.
832
+ *
833
+ * As a consequence, gas cost (gas estimates and actual gas usage during transaction) is
834
+ * scaled down by the same factor. Thus, the total transaction cost is not affected by
835
+ * `GasScale` – apart from rounding differences: the transaction cost is always a multiple
836
+ * of the gas price and is derived by rounded up, so that with higher `GasScales` this can
837
+ * lead to higher gas cost as the rounding difference would be larger.
838
+ *
839
+ * The main purpose of changing the `GasScale` is to tune the gas cost so that it is closer
840
+ * to standard EVM gas cost and contracts will not run out of gas when tools or code
841
+ * assume hard coded gas limits.
842
+ *
843
+ * Requirement: `GasScale` must not be 0
800
844
  **/
801
- nativeToEthRatio: u32 & AugmentedConst<ApiType>;
845
+ gasScale: u32 & AugmentedConst<ApiType>;
802
846
  /**
803
- * Make contract callable functions marked as `#[unstable]` available.
847
+ * The fraction the maximum extrinsic weight `eth_transact` extrinsics are capped to.
804
848
  *
805
- * Contracts that use `#[unstable]` functions won't be able to be uploaded unless
806
- * this is set to `true`. This is only meant for testnets and dev nodes in order to
807
- * experiment with new features.
849
+ * This is not a security measure but a requirement due to how we map gas to `(Weight,
850
+ * StorageDeposit)`. The mapping might derive a `Weight` that is too large to fit into an
851
+ * extrinsic. In this case we cap it to the limit specified here.
808
852
  *
809
- * # Warning
853
+ * `eth_transact` transactions that use more weight than specified will fail with an out of
854
+ * gas error during execution. Larger fractions will allow more transactions to run.
855
+ * Smaller values waste less block space: Choose as small as possible and as large as
856
+ * necessary.
810
857
  *
811
- * Do **not** set to `true` on productions chains.
858
+ * Default: `0.5`.
812
859
  **/
813
- unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
860
+ maxEthExtrinsicWeight: u128 & AugmentedConst<ApiType>;
861
+ /**
862
+ * The ratio between the decimal representation of the native token and the ETH token.
863
+ **/
864
+ nativeToEthRatio: u32 & AugmentedConst<ApiType>;
814
865
  /**
815
866
  * Generic const
816
867
  **/
@@ -892,8 +943,25 @@ declare module '@polkadot/api-base/types/consts' {
892
943
  staking: {
893
944
  /**
894
945
  * Number of eras that staked funds must remain bonded for.
946
+ *
947
+ * This is the bonding duration for validators. Nominators may have a shorter bonding
948
+ * duration when [`AreNominatorsSlashable`] is set to `false` (see
949
+ * [`StakingInterface::nominator_bonding_duration`]).
895
950
  **/
896
951
  bondingDuration: u32 & AugmentedConst<ApiType>;
952
+ /**
953
+ * When `true`, staking does not mint. It expects an external source to fund
954
+ * the general reward pot. At era boundary, rewards are snapshotted from
955
+ * the pot. `EraPayout` is not called.
956
+ *
957
+ * When `false`, staking uses the legacy path: `EraPayout` computes inflation,
958
+ * tokens are minted on-the-fly during payout.
959
+ *
960
+ * **Irreversible**: once set to `true`, must never be switched back. Eras
961
+ * created in non-minting mode have funded reward pots — switching to legacy
962
+ * would orphan those pots and cause double-minting.
963
+ **/
964
+ disableMinting: bool & AugmentedConst<ApiType>;
897
965
  /**
898
966
  * Number of eras to keep in history.
899
967
  *
@@ -919,6 +987,8 @@ declare module '@polkadot/api-base/types/consts' {
919
987
  *
920
988
  * Example: For an ideal era duration of 24 hours (86,400,000 ms),
921
989
  * this can be set to 604,800,000 ms (7 days).
990
+ *
991
+ * Only used in legacy minting mode (`DisableMinting = false`).
922
992
  **/
923
993
  maxEraDuration: u64 & AugmentedConst<ApiType>;
924
994
  /**
@@ -935,10 +1005,6 @@ declare module '@polkadot/api-base/types/consts' {
935
1005
  * reduce without handling it in a migration.
936
1006
  **/
937
1007
  maxExposurePageSize: u32 & AugmentedConst<ApiType>;
938
- /**
939
- * Maximum number of invulnerable validators.
940
- **/
941
- maxInvulnerables: u32 & AugmentedConst<ApiType>;
942
1008
  /**
943
1009
  * Maximum number of storage items that can be pruned in a single call.
944
1010
  *
@@ -967,6 +1033,17 @@ declare module '@polkadot/api-base/types/consts' {
967
1033
  * election* is bounded by this type.
968
1034
  **/
969
1035
  maxValidatorSet: u32 & AugmentedConst<ApiType>;
1036
+ /**
1037
+ * Number of eras nominators must wait to unbond when they are not slashable.
1038
+ *
1039
+ * This duration is used for nominators when [`AreNominatorsSlashable`] is `false`.
1040
+ * When nominators are slashable, they use the full [`Config::BondingDuration`] to ensure
1041
+ * slashes can be applied during the unbonding period.
1042
+ *
1043
+ * Setting this to a lower value (e.g., 1 era) allows for faster withdrawals when
1044
+ * nominators are not subject to slashing risk.
1045
+ **/
1046
+ nominatorFastUnbondDuration: u32 & AugmentedConst<ApiType>;
970
1047
  /**
971
1048
  * Number of sessions before the end of an era when the election for the next era will
972
1049
  * start.
@@ -1000,6 +1077,16 @@ declare module '@polkadot/api-base/types/consts' {
1000
1077
  **/
1001
1078
  [key: string]: Codec;
1002
1079
  };
1080
+ stakingRcClient: {
1081
+ /**
1082
+ * Deposit held when a validator sets session keys. Released on `purge_keys`.
1083
+ **/
1084
+ keyDeposit: u128 & AugmentedConst<ApiType>;
1085
+ /**
1086
+ * Generic const
1087
+ **/
1088
+ [key: string]: Codec;
1089
+ };
1003
1090
  stateTrieMigration: {
1004
1091
  /**
1005
1092
  * Maximal number of bytes that a key can have.
@@ -1022,7 +1109,7 @@ declare module '@polkadot/api-base/types/consts' {
1022
1109
  * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1023
1110
  *
1024
1111
  * For more info see
1025
- * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1112
+ * <https://www.shawntabrizi.com/blog/interacting-with-the-substrate-rpc-endpoint/>
1026
1113
  **/
1027
1114
  maxKeyLen: u32 & AugmentedConst<ApiType>;
1028
1115
  /**