Skip to content

Commit

Permalink
Bump substrate to latest (#5936)
Browse files Browse the repository at this point in the history
* Bump substrate to latest

* Fix issues
  • Loading branch information
TarikGul committed Jul 13, 2024
1 parent 0945d26 commit 38a978b
Show file tree
Hide file tree
Showing 16 changed files with 3,071 additions and 2,740 deletions.
13 changes: 0 additions & 13 deletions packages/api-augment/src/substrate/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1629,19 +1629,6 @@ declare module '@polkadot/api-base/types/consts' {
* The period during which an approved treasury spend has to be claimed.
**/
payoutPeriod: u32 & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
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 @@ -314,6 +314,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset is not live, and likely being destroyed.
**/
AssetNotLive: AugmentedError<ApiType>;
/**
* The asset ID must be equal to the [`NextAssetId`].
**/
BadAssetId: AugmentedError<ApiType>;
/**
* Invalid metadata given.
**/
Expand Down Expand Up @@ -2079,6 +2083,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset is not live, and likely being destroyed.
**/
AssetNotLive: AugmentedError<ApiType>;
/**
* The asset ID must be equal to the [`NextAssetId`].
**/
BadAssetId: AugmentedError<ApiType>;
/**
* Invalid metadata given.
**/
Expand Down Expand Up @@ -2164,6 +2172,10 @@ declare module '@polkadot/api-base/types/errors' {
* Preimage has already been noted on-chain.
**/
AlreadyNoted: AugmentedError<ApiType>;
/**
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
**/
NoCost: AugmentedError<ApiType>;
/**
* The user is not authorized to perform this action.
**/
Expand Down Expand Up @@ -2276,6 +2288,10 @@ declare module '@polkadot/api-base/types/errors' {
* The new member to exchange is the same as the old member
**/
SameMember: AugmentedError<ApiType>;
/**
* The max member count for the rank has been reached.
**/
TooManyMembers: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -3182,10 +3198,6 @@ declare module '@polkadot/api-base/types/errors' {
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal, bounty or spend at that index.
**/
Expand Down
16 changes: 6 additions & 10 deletions packages/api-augment/src/substrate/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';

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

Expand Down Expand Up @@ -690,7 +690,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Parameters for the pallet have changed.
**/
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsType], { params: PalletCoreFellowshipParamsType }>;
ParamsChanged: AugmentedEvent<ApiType, [params: PalletCoreFellowshipParamsTypeU128], { params: PalletCoreFellowshipParamsTypeU128 }>;
/**
* Member has been promoted to the given rank.
**/
Expand Down Expand Up @@ -933,6 +933,10 @@ declare module '@polkadot/api-base/types/events' {
[key: string]: AugmentedEvent<ApiType>;
};
glutton: {
/**
* The block length limit has been updated.
**/
BlockLengthLimitSet: AugmentedEvent<ApiType, [blockLength: u64], { blockLength: u64 }>;
/**
* The computation limit has been updated.
**/
Expand Down Expand Up @@ -2422,14 +2426,6 @@ declare module '@polkadot/api-base/types/events' {
* A payment failed and can be retried.
**/
PaymentFailed: AugmentedEvent<ApiType, [index: u32, paymentId: Null], { index: u32, paymentId: Null }>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], { proposalIndex: u32 }>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], { proposalIndex: u32, slashed: u128 }>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
Expand Down
Loading

0 comments on commit 38a978b

Please sign in to comment.