Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update substrate metadata latest #5849

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions packages/api-augment/src/substrate/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,14 @@ declare module '@polkadot/api-base/types/consts' {
/**
* The maximum number of locks that should exist on an account.
* Not strictly enforced, but used for weight estimation.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxLocks: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of named reserves that can exist on an account.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
maxReserves: u32 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -534,18 +538,10 @@ declare module '@polkadot/api-base/types/consts' {
* this value.
**/
signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
/**
* Duration of the signed phase.
**/
signedPhase: u32 & AugmentedConst<ApiType>;
/**
* Base reward for a signed solution
**/
signedRewardBase: u128 & AugmentedConst<ApiType>;
/**
* Duration of the unsigned phase.
**/
unsignedPhase: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
Expand Down Expand Up @@ -659,7 +655,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
* Maximum number of registrars allowed in the system. Needed to bound the complexity
* of, e.g., updating judgements.
**/
maxRegistrars: u32 & AugmentedConst<ApiType>;
Expand Down Expand Up @@ -742,6 +738,14 @@ declare module '@polkadot/api-base/types/consts' {
* size is slightly lower than this as defined by [`MaxMessageLenOf`].
**/
heapSize: u32 & AugmentedConst<ApiType>;
/**
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
* should be provided to the message queue for servicing enqueued items `on_idle`.
* Useful for parachains to process messages at the same block they are received.
*
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
**/
idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
* The maximum number of stale pages (i.e. of overweight messages) allowed before culling
* can happen. Once there are more stale pages than this, then historical pages may be
Expand All @@ -750,10 +754,11 @@ declare module '@polkadot/api-base/types/consts' {
maxStale: u32 & AugmentedConst<ApiType>;
/**
* The amount of weight (if any) which should be provided to the message queue for
* servicing enqueued items.
* servicing enqueued items `on_initialize`.
*
* This may be legitimately `None` in the case that you will call
* `ServiceQueues::service_queues` manually.
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
* it run in `on_idle`.
**/
serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
/**
Expand Down
20 changes: 16 additions & 4 deletions packages/api-augment/src/substrate/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
DuplicateContract: AugmentedError<ApiType>;
/**
* An indetermistic code was used in a context where this is not permitted.
* An indeterministic code was used in a context where this is not permitted.
**/
Indeterministic: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -1105,7 +1105,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
OcwCallWrongEra: AugmentedError<ApiType>;
/**
* Sumission was prepared for a different round.
* Submission was prepared for a different round.
**/
PreDispatchDifferentRound: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -1846,7 +1846,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
DurationTooSmall: AugmentedError<ApiType>;
/**
* The operation would result in a receipt worth an insignficant value.
* The operation would result in a receipt worth an insignificant value.
**/
MakesDust: AugmentedError<ApiType>;
/**
Expand Down Expand Up @@ -2280,6 +2280,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
Expand Down Expand Up @@ -2408,6 +2412,10 @@ declare module '@polkadot/api-base/types/errors' {
* The preimage does not exist.
**/
PreimageNotExist: AugmentedError<ApiType>;
/**
* The preimage is stored with a different length than the one provided.
**/
PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
/**
* The queue of the track is empty.
**/
Expand Down Expand Up @@ -2743,6 +2751,10 @@ declare module '@polkadot/api-base/types/errors' {
* The user has enough bond and thus cannot be chilled forcefully by an external person.
**/
CannotChillOther: AugmentedError<ApiType>;
/**
* Cannot reset a ledger.
**/
CannotRestoreLedger: AugmentedError<ApiType>;
/**
* Commission is too low. Must be at least `MinCommission`.
**/
Expand Down Expand Up @@ -3058,7 +3070,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
MissingProof: AugmentedError<ApiType>;
/**
* Unable to verify proof becasue state data is missing.
* Unable to verify proof because state data is missing.
**/
MissingStateData: AugmentedError<ApiType>;
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/api-augment/src/substrate/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ declare module '@polkadot/api-base/types/events' {
**/
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], { who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill }>;
/**
* A successful call of the `CretaPool` extrinsic will create this event.
* A successful call of the `CreatePool` extrinsic will create this event.
**/
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], { creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32 }>;
/**
Expand Down Expand Up @@ -772,7 +772,7 @@ declare module '@polkadot/api-base/types/events' {
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32, deposit: u128], { proposalIndex: u32, deposit: u128 }>;
/**
* An account has secconded a proposal
* An account has seconded a proposal
**/
Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], { seconder: AccountId32, propIndex: u32 }>;
/**
Expand Down Expand Up @@ -827,7 +827,7 @@ declare module '@polkadot/api-base/types/events' {
* A solution was stored with the given compute.
*
* The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
* the stored solution was submited in the signed phase by a miner with the `AccountId`.
* the stored solution was submitted in the signed phase by a miner with the `AccountId`.
* Otherwise, the solution was stored either during the unsigned phase or by
* `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
* room for this one.
Expand Down Expand Up @@ -1371,7 +1371,7 @@ declare module '@polkadot/api-base/types/events' {
**/
Thawed: AugmentedEvent<ApiType, [index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool], { index: u32, who: AccountId32, proportion: Perquintill, amount: u128, dropped: bool }>;
/**
* A receipt was transfered.
* A receipt was transferred.
**/
Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], { from: AccountId32, to: AccountId32, index: u32 }>;
/**
Expand Down
10 changes: 7 additions & 3 deletions packages/api-augment/src/substrate/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
Expand Down Expand Up @@ -317,10 +317,14 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Any liquidity locks on some account balances.
* NOTE: Should only be accessed when setting, changing and freeing a lock.
*
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
**/
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Named reserves on some account balances.
*
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
**/
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
Expand Down Expand Up @@ -579,7 +583,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
Expand Down Expand Up @@ -2244,7 +2248,7 @@ declare module '@polkadot/api-base/types/storage' {
**/
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The prime member that helps determine the default vote behavior in case of absentations.
* The prime member that helps determine the default vote behavior in case of abstentions.
**/
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
Expand Down
Loading
Loading