Skip to content

Commit

Permalink
mainnet stable tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
yornaath committed Oct 11, 2023
1 parent 764ced5 commit 2f9be0a
Show file tree
Hide file tree
Showing 13 changed files with 1,777 additions and 3,930 deletions.
137 changes: 14 additions & 123 deletions packages/augment-api/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import '@polkadot/api-base/types/consts';

import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, U8aFixed, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Option, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, XcmV3MultiLocation, ZeitgeistPrimitivesAsset } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, XcmV1MultiLocation, ZeitgeistPrimitivesAsset } from '@polkadot/types/lookup';

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

Expand Down Expand Up @@ -134,10 +134,6 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum length of a contract code in bytes. This limit applies to the instrumented
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
* a wasm binary below this maximum size.
*
* The value should be chosen carefully taking into the account the overall memory limit
* your runtime has, as well as the [maximum allowed callstack
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
**/
maxCodeLen: u32 & AugmentedConst<ApiType>;
/**
Expand Down Expand Up @@ -167,76 +163,21 @@ declare module '@polkadot/api-base/types/consts' {
};
court: {
/**
* The time in which the jurors should reveal their commitment vote.
**/
aggregationPeriod: u64 & AugmentedConst<ApiType>;
/**
* The required base bond in order to get an appeal initiated.
* This bond increases exponentially with the number of appeals.
**/
appealBond: u128 & AugmentedConst<ApiType>;
/**
* The time in which a court case can get appealed.
**/
appealPeriod: u64 & AugmentedConst<ApiType>;
/**
* The expected blocks per year to calculate the inflation emission.
**/
blocksPerYear: u64 & AugmentedConst<ApiType>;
/**
* The inflation period in which new tokens are minted.
**/
inflationPeriod: u64 & AugmentedConst<ApiType>;
/**
* The court lock identifier.
**/
lockId: U8aFixed & AugmentedConst<ApiType>;
/**
* The maximum number of appeals until a court fails.
**/
maxAppeals: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of jurors and delegators that can be registered.
* Block duration to cast a vote on an outcome.
**/
maxCourtParticipants: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of possible delegations.
**/
maxDelegations: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of randomly selected n * `MinJurorStake` (n equals all draw weights)
* out of all jurors and delegators stake. This configuration parameter should be
* the maximum necessary_draws_weight multiplied by 2.
* Each `MinJurorStake` (draw weight) out of `n * MinJurorStake` belongs
* to one juror or one delegator.
* (necessary_draws_weight = 2^(appeals_len) * 31 + 2^(appeals_len) - 1)
* Assume MaxAppeals - 1 (= 3), example: 2^3 * 31 + 2^3 - 1 = 255
* => 2 * 255 = 510 = `MaxSelectedDraws`.
* Why the multiplication by two?
* Because each draw weight is associated with one juror account id and
* potentially a delegator account id.
**/
maxSelectedDraws: u32 & AugmentedConst<ApiType>;
/**
* The minimum stake a user needs to lock to become a juror.
**/
minJurorStake: u128 & AugmentedConst<ApiType>;
courtCaseDuration: u64 & AugmentedConst<ApiType>;
/**
* Identifier of this pallet
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The global interval which schedules the start of new court vote periods.
* Weight used to calculate the necessary staking amount to become a juror
**/
requestInterval: u64 & AugmentedConst<ApiType>;
stakeWeight: u128 & AugmentedConst<ApiType>;
/**
* The treasury pallet identifier.
* Slashed funds are send to the treasury
**/
treasuryPalletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The time in which the jurors can cast their commitment vote.
**/
votePeriod: u64 & AugmentedConst<ApiType>;
};
democracy: {
/**
Expand Down Expand Up @@ -300,48 +241,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
votingPeriod: u64 & AugmentedConst<ApiType>;
};
globalDisputes: {
/**
* The time period in which the addition of new outcomes are allowed.
**/
addOutcomePeriod: u64 & AugmentedConst<ApiType>;
/**
* The time period in which votes are allowed.
**/
gdVotingPeriod: u64 & AugmentedConst<ApiType>;
/**
* The vote lock identifier.
**/
globalDisputeLockId: U8aFixed & AugmentedConst<ApiType>;
/**
* The pallet identifier.
**/
globalDisputesPalletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* The maximum numbers of distinct markets
* on which one account can simultaneously vote on outcomes.
* When the user unlocks, the user has again `MaxGlobalDisputeVotes` number of votes.
* This constant is useful to limit the number of for-loop iterations (weight constraints).
**/
maxGlobalDisputeVotes: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of owners
* for a voting outcome for private API calls of `push_vote_outcome`.
**/
maxOwners: u32 & AugmentedConst<ApiType>;
/**
* The minimum required amount to vote on an outcome.
**/
minOutcomeVoteAmount: u128 & AugmentedConst<ApiType>;
/**
* The maximum number of keys to remove from a storage map.
**/
removeKeysLimit: u32 & AugmentedConst<ApiType>;
/**
* The fee required to add a voting outcome.
**/
votingOutcomeFee: u128 & AugmentedConst<ApiType>;
};
identity: {
/**
* The amount held on deposit for a registered identity
Expand Down Expand Up @@ -478,6 +377,11 @@ declare module '@polkadot/api-base/types/consts' {
* The base amount of currency that must be bonded in order to create a dispute.
**/
disputeBond: u128 & AugmentedConst<ApiType>;
/**
* The additional amount of currency that must be bonded when creating a subsequent
* dispute.
**/
disputeFactor: u128 & AugmentedConst<ApiType>;
/**
* The maximum number of categories available for categorical markets.
**/
Expand Down Expand Up @@ -607,19 +511,6 @@ declare module '@polkadot/api-base/types/consts' {
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
};
simpleDisputes: {
/**
* The maximum number of disputes allowed on any single market.
**/
maxDisputes: u32 & AugmentedConst<ApiType>;
/**
* The base amount of currency that must be bonded in order to create a dispute.
**/
outcomeBond: u128 & AugmentedConst<ApiType>;
/**
* The additional amount of currency that must be bonded when creating a subsequent
* dispute.
**/
outcomeFactor: u128 & AugmentedConst<ApiType>;
/**
* The pallet identifier.
**/
Expand Down Expand Up @@ -780,11 +671,11 @@ declare module '@polkadot/api-base/types/consts' {
* The actually weight for an XCM message is `T::BaseXcmWeight +
* T::Weigher::weight(&msg)`.
**/
baseXcmWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
baseXcmWeight: u64 & AugmentedConst<ApiType>;
/**
* Self chain location.
**/
selfLocation: XcmV3MultiLocation & AugmentedConst<ApiType>;
selfLocation: XcmV1MultiLocation & AugmentedConst<ApiType>;
};
} // AugmentedConsts
} // declare module
Loading

0 comments on commit 2f9be0a

Please sign in to comment.