Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Dec 8, 2024
1 parent 6530b16 commit 14808c7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import '@polkadot/api-base/types/consts';
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';

export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;

Expand Down Expand Up @@ -42,12 +43,12 @@ declare module '@polkadot/api-base/types/consts' {
balances: {
/**
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
*
*
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
* In case you have multiple sources of provider references, you may also get unexpected
* behaviour if you set this to zero.
*
*
* Bottom line: Do yourself a favour and make it at least one!
**/
existentialDeposit: u128 & AugmentedConst<ApiType>;
Expand Down Expand Up @@ -108,7 +109,7 @@ declare module '@polkadot/api-base/types/consts' {
maxAuthorities: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of entries to keep in the set id to session index mapping.
*
*
* Since the `SetIdSession` map is only used for validating equivocations this
* value should relate to the bonding duration of whatever staking system is
* being used (if any). If equivocation handling is not enabled then this value
Expand All @@ -123,7 +124,7 @@ declare module '@polkadot/api-base/types/consts' {
imOnline: {
/**
* A configuration for base priority of unsigned transactions.
*
*
* This is exposed so that it can be tuned for particular runtime, when
* multiple pallets send unsigned transactions.
**/
Expand Down Expand Up @@ -170,7 +171,7 @@ declare module '@polkadot/api-base/types/consts' {
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* The maximum number of scheduled calls in the queue for a single block.
*
*
* NOTE:
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
* higher limit under `runtime-benchmarks` feature.
Expand Down Expand Up @@ -200,7 +201,7 @@ declare module '@polkadot/api-base/types/consts' {
dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
/**
* The designated SS58 prefix of this chain.
*
*
* This replaces the "ss58Format" property declared in the chain spec. Reason is
* that the runtime should know about the prefix in order to make use of it as
* an identifier of the chain.
Expand Down Expand Up @@ -232,21 +233,21 @@ declare module '@polkadot/api-base/types/consts' {
/**
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
* `priority`
*
*
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
* added to a tip component in regular `priority` calculations.
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
*
*
* ```rust,ignore
* // For `Normal`
* let priority = priority_calc(tip);
*
*
* // For `Operational`
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
* let priority = priority_calc(tip + virtual_tip);
* ```
*
*
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
* sent with the transaction. So, not only does the transaction get a priority bump based
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, i32, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, FunctionlandFulaChallengeState, FunctionlandFulaManifestAvailable, FunctionlandFulaManifestWithPoolId, FunctionlandFulaStorerData, PalletImOnlineSr25519AppSr25519Public, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError, SugarfungeMarketRateBalance } from '@polkadot/types/lookup';

export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;

Expand Down
1 change: 1 addition & 0 deletions src/interfaces/augment-api-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/
import type { Bytes, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FulaPoolPool, FulaPoolPoolRequest, FulaPoolUser, FunctionlandFulaChallenge, FunctionlandFulaClaimData, FunctionlandFulaManifest, FunctionlandFulaManifestStorageData, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollectiveVotes, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletSchedulerScheduled, PalletTransactionPaymentReleases, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SugarfungeAssetAsset, SugarfungeAssetClass, SugarfungeBagBag, SugarfungeBagBagClass, SugarfungeBundleBundle, SugarfungeMarketAssetRate, SugarfungeMarketMarket, SugarfungeRuntimeOpaqueSessionKeys } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';

export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, i32, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
import type { PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, SpConsensusGrandpaEquivocationProof, SpCoreVoid, SpWeightsWeightV2Weight, SugarfungeMarketAssetRate, SugarfungeRuntimeOpaqueSessionKeys, SugarfungeRuntimeOriginCaller } from '@polkadot/types/lookup';

export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
Expand Down

0 comments on commit 14808c7

Please sign in to comment.