Compare commits

..
10 Commits
Author SHA1 Message Date
github-actions[bot] 263fce1e7d [CI Skip] release/stable 9.11.3
skip-checks: true
2023-01-15 10:54:58 +00:00
Jaco f780c017e2 9.11.3 (#5418) 2023-01-15 12:45:18 +02:00
github-actions[bot] 87a1ae7d44 [CI Skip] bump/beta 9.11.3-1-x
skip-checks: true
2023-01-15 10:36:20 +00:00
Jaco 3cdd608e6e Bump metadata (#5417) 2023-01-15 12:27:42 +02:00
github-actions[bot] 394d4aee96 [CI Skip] bump/beta 9.11.3-0-x
skip-checks: true
2023-01-15 08:55:13 +00:00
Jaco 732dd26bd9 Bump deps (#5416) 2023-01-15 10:47:11 +02:00
github-actions[bot] ebb9f055c1 [CI Skip] release/stable 9.11.2
skip-checks: true
2023-01-13 08:14:10 +00:00
Jaco 2f34c0c6e8 9.11.2 (#5415) 2023-01-13 10:05:41 +02:00
github-actions[bot] 41617c1dfb [CI Skip] bump/beta 9.11.2-0-x
skip-checks: true
2023-01-13 07:52:29 +00:00
Jaco 6ff3577853 Adjust democracy preimages retrieval (#5413)
* Adjust democracy preimages retrieval

* Remove log
2023-01-13 09:41:52 +02:00
61 changed files with 4719 additions and 4755 deletions
+14
View File
@@ -1,5 +1,19 @@
# CHANGELOG
## 9.11.3 Jan 15, 2023
Changes:
- Update to latest Polkadot, Kusama & Substrate metadata
## 9.11.2 Jan 13, 2023
Changes:
- Ensure `derive.democracy.preimages` retrieves correctly from (current-gen) `preimage`
## 9.11.1 Jan 8, 2023
- **Breaking change** For users of `ScProvider` you now need to explicitly pass `@substrate/connect` as a parameter. This means the code needs to be adjusted as follows -
+1 -1
View File
@@ -1,4 +1,4 @@
3316 Jaco 9.11.1 (#5407)
3321 Jaco 9.11.3 (#5418)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
+4 -4
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"versions": {
"git": "9.11.1",
"npm": "9.11.1"
"git": "9.11.3",
"npm": "9.11.3"
},
"workspaces": [
"packages/*"
@@ -39,7 +39,7 @@
"@babel/core": "^7.20.12",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.20.7",
"@polkadot/dev": "^0.67.177",
"@polkadot/dev": "^0.67.181",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^29.2.5",
"copyfiles": "^2.4.1"
+8 -8
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/api-base": "9.11.1",
"@polkadot/rpc-augment": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-augment": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/util": "^10.2.3"
"@polkadot/api-base": "9.11.3",
"@polkadot/rpc-augment": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-augment": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/util": "^10.2.6"
},
"devDependencies": {
"@polkadot/types-support": "9.11.1"
"@polkadot/types-support": "9.11.3"
}
}
+4 -4
View File
@@ -1470,14 +1470,14 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid signature on statement.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* Too many spam slots used by some specific validator.
**/
PotentialSpam: AugmentedError<ApiType>;
/**
* A dispute where there are only votes on one side.
**/
SingleSidedDispute: AugmentedError<ApiType>;
/**
* Unconfirmed dispute statement sets provided
**/
UnconfirmedDispute: AugmentedError<ApiType>;
/**
* Validator index on statement is out of bounds for session.
**/
-8
View File
@@ -1297,14 +1297,6 @@ declare module '@polkadot/api-base/types/storage' {
* references sessions.
**/
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maps session indices to a vector indicating the number of potentially-spam disputes
* each validator is participating in. Potentially-spam disputes are remote disputes which have
* fewer than `byzantine_threshold + 1` validators.
*
* The i'th entry of the vector corresponds to the i'th validator in the session.
**/
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
-4
View File
@@ -602,10 +602,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Set the dispute conclusion by time out period.
**/
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the maximum number of dispute spam slots.
**/
setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the dispute period, in number of sessions to keep for disputes.
**/
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.11.3' };
+4 -4
View File
@@ -1222,14 +1222,14 @@ declare module '@polkadot/api-base/types/errors' {
* Invalid signature on statement.
**/
InvalidSignature: AugmentedError<ApiType>;
/**
* Too many spam slots used by some specific validator.
**/
PotentialSpam: AugmentedError<ApiType>;
/**
* A dispute where there are only votes on one side.
**/
SingleSidedDispute: AugmentedError<ApiType>;
/**
* Unconfirmed dispute statement sets provided
**/
UnconfirmedDispute: AugmentedError<ApiType>;
/**
* Validator index on statement is out of bounds for session.
**/
@@ -1150,14 +1150,6 @@ declare module '@polkadot/api-base/types/storage' {
* references sessions.
**/
lastPrunedSession: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Maps session indices to a vector indicating the number of potentially-spam disputes
* each validator is participating in. Potentially-spam disputes are remote disputes which have
* fewer than `byzantine_threshold + 1` validators.
*
* The i'th entry of the vector corresponds to the i'th validator in the session.
**/
spamSlots: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
**/
-4
View File
@@ -602,10 +602,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Set the dispute conclusion by time out period.
**/
setDisputeConclusionByTimeOutPeriod: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the maximum number of dispute spam slots.
**/
setDisputeMaxSpamSlots: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
/**
* Set the dispute period, in number of sessions to keep for disputes.
**/
@@ -805,20 +805,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
preimage: {
/**
* The base deposit for placing a preimage on chain.
**/
baseDeposit: u128 & AugmentedConst<ApiType>;
/**
* The per-byte deposit for placing a preimage on chain.
**/
byteDeposit: u128 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
proxy: {
/**
* The base amount of currency needed to reserve for creating an announcement.
+8 -4
View File
@@ -468,10 +468,6 @@ declare module '@polkadot/api-base/types/errors' {
* A contract with the same AccountId already exists.
**/
DuplicateContract: AugmentedError<ApiType>;
/**
* The topics passed to `seal_deposit_events` contains at least one duplicate.
**/
DuplicateTopics: AugmentedError<ApiType>;
/**
* An indetermistic code was used in a context where this is not permitted.
**/
@@ -1218,6 +1214,10 @@ declare module '@polkadot/api-base/types/errors' {
* The approval had a deadline that expired, so the approval isn't valid anymore.
**/
ApprovalExpired: AugmentedError<ApiType>;
/**
* The provided attribute can't be found.
**/
AttributeNotFound: AugmentedError<ApiType>;
/**
* The witness data given does not match the current state of the chain.
**/
@@ -1278,6 +1278,10 @@ declare module '@polkadot/api-base/types/errors' {
* The provided max supply is less than the number of items a collection already has.
**/
MaxSupplyTooSmall: AugmentedError<ApiType>;
/**
* The given item has no metadata set.
**/
MetadataNotFound: AugmentedError<ApiType>;
/**
* The method is disabled by system settings.
**/
+15 -14
View File
@@ -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, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
@@ -493,14 +493,14 @@ declare module '@polkadot/api-base/types/events' {
* The election has been finalized, with the given computation and score.
**/
ElectionFinalized: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore], { compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore }>;
/**
* There was a phase transition in a given round.
**/
PhaseTransitioned: AugmentedEvent<ApiType, [from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32], { from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 }>;
/**
* An account has been rewarded for their signed submission being finalized.
**/
Rewarded: AugmentedEvent<ApiType, [account: AccountId32, value: u128], { account: AccountId32, value: u128 }>;
/**
* The signed phase of the given round has started.
**/
SignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
/**
* An account has been slashed for submitting an invalid signed submission.
**/
@@ -508,16 +508,13 @@ declare module '@polkadot/api-base/types/events' {
/**
* A solution was stored with the given compute.
*
* If the solution is signed, this means that it hasn't yet been processed. If the
* solution is unsigned, this means that it has also been processed.
*
* The `bool` is `true` when a previous solution was ejected to make room for this one.
* 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`.
* 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.
**/
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, prevEjected: bool }>;
/**
* The unsigned phase of the given round has started.
**/
UnsignedPhaseStarted: AugmentedEvent<ApiType, [round: u32], { round: u32 }>;
SolutionStored: AugmentedEvent<ApiType, [compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool], { compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool }>;
/**
* Generic event
**/
@@ -1384,6 +1381,10 @@ declare module '@polkadot/api-base/types/events' {
* the remainder from the maximum amount of reward.
**/
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
/**
* A new force era mode was set.
**/
ForceEra: AugmentedEvent<ApiType, [mode: PalletStakingForcing], { mode: PalletStakingForcing }>;
/**
* A nominator has been kicked from a validator.
**/
@@ -647,6 +647,8 @@ declare module '@polkadot/api-base/types/storage' {
* The map of all accounts wishing to be unstaked.
*
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1008,6 +1010,8 @@ declare module '@polkadot/api-base/types/storage' {
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Active members.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1334,6 +1338,8 @@ declare module '@polkadot/api-base/types/storage' {
activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Map from all locked "stash" accounts to the controller account.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
bonded: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1494,6 +1500,8 @@ declare module '@polkadot/api-base/types/storage' {
*
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
* [`Call::chill_other`] dispatchable by anyone.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1514,6 +1522,8 @@ declare module '@polkadot/api-base/types/storage' {
offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Where the reward payment should be made. Keyed by stash.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
@@ -1541,6 +1551,8 @@ declare module '@polkadot/api-base/types/storage' {
validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* The map from (wannabe) validator stash key to the preferences of that validator.
*
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
**/
validators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
+1 -1
View File
@@ -2901,7 +2901,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Clear an attribute for a collection or item.
*
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
* `collection`.
* attribute.
*
* Any deposit is freed for the collection's owner.
*
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/rpc-core": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/rpc-core": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/util": "^10.2.6",
"rxjs": "^7.8.0"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.11.3' };
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/api": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/types-create": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/api": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/types-create": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "9.11.1",
"@polkadot/keyring": "^10.2.3"
"@polkadot/api-augment": "9.11.3",
"@polkadot/keyring": "^10.2.6"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.11.3' };
+14 -14
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/api": "9.11.1",
"@polkadot/api-augment": "9.11.1",
"@polkadot/api-base": "9.11.1",
"@polkadot/rpc-core": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/api": "9.11.3",
"@polkadot/api-augment": "9.11.3",
"@polkadot/api-base": "9.11.3",
"@polkadot/rpc-core": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api": "9.11.1",
"@polkadot/api-augment": "9.11.1",
"@polkadot/rpc-augment": "9.11.1",
"@polkadot/rpc-provider": "9.11.1",
"@polkadot/types-support": "9.11.1"
"@polkadot/api": "9.11.3",
"@polkadot/api-augment": "9.11.3",
"@polkadot/rpc-augment": "9.11.3",
"@polkadot/rpc-provider": "9.11.3",
"@polkadot/types-support": "9.11.3"
}
}
+12 -5
View File
@@ -76,7 +76,9 @@ function parseImage (api: DeriveApi, [proposalHash, status, bytes]: [HexString,
return { at: BN_ZERO, balance, proposal, proposalHash, proposer };
}
function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
function getDemocracyImages (api: DeriveApi, bounded: (Hash | Uint8Array | string | FrameSupportPreimagesBounded)[]): Observable<(DeriveProposalImage | undefined)[]> {
const hashes = bounded.map((b) => getImageHashBounded(b));
return api.query.democracy.preimages.multi<Option<PreimageStatus>>(hashes).pipe(
map((images): (DeriveProposalImage | undefined)[] =>
images.map((imageOpt) => parseDemocracy(api, imageOpt))
@@ -86,6 +88,7 @@ function getDemocracyImages (api: DeriveApi, hashes: (Hash | Uint8Array | string
function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uint8Array | string)[]): Observable<(DeriveProposalImage | undefined)[]> {
const hashes = bounded.map((b) => getImageHashBounded(b));
const bytesType = api.registry.lookup.getTypeDef(api.query.preimage.preimageFor.creator.meta.type.asMap.key).type;
return api.query.preimage.statusFor.multi(hashes).pipe(
switchMap((optStatus) => {
@@ -93,9 +96,13 @@ function getImages (api: DeriveApi, bounded: (FrameSupportPreimagesBounded | Uin
const keys = statuses
.map((s, i) =>
s
? s.isRequested
? [hashes[i], s.asRequested.len.unwrapOr(0)]
: [hashes[i], s.asUnrequested.len]
? bytesType === 'H256'
// first generation
? hashes[i]
// current generation (H256,u32)
: s.isRequested
? [hashes[i], s.asRequested.len.unwrapOr(0)]
: [hashes[i], s.asUnrequested.len]
: null
)
.filter((p) => !!p);
@@ -121,7 +128,7 @@ export function preimages (instanceId: string, api: DeriveApi): (hashes: (Hash |
return memo(instanceId, (hashes: (Hash | Uint8Array | string | FrameSupportPreimagesBounded)[]): Observable<(DeriveProposalImage | undefined)[]> =>
hashes.length
? isFunction(api.query.democracy.preimages)
? getDemocracyImages(api, hashes as string[])
? getDemocracyImages(api, hashes)
: isFunction(api.query.preimage.preimageFor)
? getImages(api, hashes)
: of([])
@@ -51,14 +51,14 @@ function parse ([proposals, images, optDepositors]: Result): DeriveProposal[] {
export function proposals (instanceId: string, api: DeriveApi): () => Observable<DeriveProposal[]> {
return memo(instanceId, (): Observable<DeriveProposal[]> =>
isFunction(api.query.democracy?.publicProps) && isFunction(api.query.democracy?.preimages)
isFunction(api.query.democracy?.publicProps)
? api.query.democracy.publicProps().pipe(
switchMap((proposals) =>
proposals.length
? combineLatest([
of(proposals),
api.derive.democracy.preimages(
proposals.map(([, hash]) => hash as unknown as Uint8Array)
proposals.map(([, hash]) => hash)
),
api.query.democracy.depositOf.multi(
proposals.map(([index]) => index)
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.11.3' };
+17 -17
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/api-augment": "9.11.1",
"@polkadot/api-base": "9.11.1",
"@polkadot/api-derive": "9.11.1",
"@polkadot/keyring": "^10.2.3",
"@polkadot/rpc-augment": "9.11.1",
"@polkadot/rpc-core": "9.11.1",
"@polkadot/rpc-provider": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-augment": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/types-create": "9.11.1",
"@polkadot/types-known": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/api-augment": "9.11.3",
"@polkadot/api-base": "9.11.3",
"@polkadot/api-derive": "9.11.3",
"@polkadot/keyring": "^10.2.6",
"@polkadot/rpc-augment": "9.11.3",
"@polkadot/rpc-core": "9.11.3",
"@polkadot/rpc-provider": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-augment": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/types-create": "9.11.3",
"@polkadot/types-known": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"eventemitter3": "^4.0.7",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/api-augment": "9.11.1",
"@polkadot/types-support": "9.11.1"
"@polkadot/api-augment": "9.11.3",
"@polkadot/types-support": "9.11.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.11.3' };
+5 -5
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/rpc-core": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/util": "^10.2.3"
"@polkadot/rpc-core": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/util": "^10.2.6"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.11.3' };
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/rpc-augment": "9.11.1",
"@polkadot/rpc-provider": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/rpc-augment": "9.11.3",
"@polkadot/rpc-provider": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/util": "^10.2.6",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^10.2.3",
"@polkadot/rpc-augment": "9.11.1"
"@polkadot/keyring": "^10.2.6",
"@polkadot/rpc-augment": "9.11.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.11.3' };
+12 -12
View File
@@ -20,26 +20,26 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/keyring": "^10.2.3",
"@polkadot/types": "9.11.1",
"@polkadot/types-support": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/x-fetch": "^10.2.3",
"@polkadot/x-global": "^10.2.3",
"@polkadot/x-ws": "^10.2.3",
"@polkadot/keyring": "^10.2.6",
"@polkadot/types": "9.11.3",
"@polkadot/types-support": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"@polkadot/x-fetch": "^10.2.6",
"@polkadot/x-global": "^10.2.6",
"@polkadot/x-ws": "^10.2.6",
"eventemitter3": "^4.0.7",
"mock-socket": "^9.1.5",
"nock": "^13.2.9"
"nock": "^13.3.0"
},
"devDependencies": {
"@substrate/connect": "0.7.18"
"@substrate/connect": "0.7.19"
},
"optionalDependencies": {
"@substrate/connect": "0.7.18"
"@substrate/connect": "0.7.19"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.11.3' };
+13 -13
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -33,18 +33,18 @@
"@babel/core": "^7.20.12",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.20.7",
"@polkadot/api": "9.11.1",
"@polkadot/api-augment": "9.11.1",
"@polkadot/rpc-augment": "9.11.1",
"@polkadot/rpc-provider": "9.11.1",
"@polkadot/types": "9.11.1",
"@polkadot/types-augment": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/types-create": "9.11.1",
"@polkadot/types-support": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/x-ws": "^10.2.3",
"@polkadot/api": "9.11.3",
"@polkadot/api-augment": "9.11.3",
"@polkadot/rpc-augment": "9.11.3",
"@polkadot/rpc-provider": "9.11.3",
"@polkadot/types": "9.11.3",
"@polkadot/types-augment": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/types-create": "9.11.3",
"@polkadot/types-support": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"@polkadot/x-ws": "^10.2.6",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.6.2"
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.11.3' };
+4 -4
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/types": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/util": "^10.2.3"
"@polkadot/types": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/util": "^10.2.6"
}
}
@@ -1035,12 +1035,7 @@ export default {
},
new_: 'u32',
},
set_dispute_max_spam_slots: {
_alias: {
new_: 'new',
},
new_: 'u32',
},
__Unused16: 'Null',
set_dispute_conclusion_by_time_out_period: {
_alias: {
new_: 'new',
@@ -1914,7 +1909,6 @@ export default {
maxValidators: 'Option<u32>',
disputePeriod: 'u32',
disputePostConclusionAcceptancePeriod: 'u32',
disputeMaxSpamSlots: 'u32',
disputeConclusionByTimeOutPeriod: 'u32',
noShowSlots: 'u32',
nDelayTranches: 'u32',
@@ -2192,7 +2186,7 @@ export default {
* Lookup701: polkadot_runtime_parachains::disputes::pallet::Error<T>
**/
PolkadotRuntimeParachainsDisputesPalletError: {
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'PotentialSpam', 'SingleSidedDispute']
_enum: ['DuplicateDisputeStatementSets', 'AncientDisputeStatement', 'ValidatorIndexOutOfBounds', 'InvalidSignature', 'DuplicateStatement', 'SingleSidedDispute', 'UnconfirmedDispute']
},
/**
* Lookup702: polkadot_runtime_common::paras_registrar::ParaInfo<sp_core::crypto::AccountId32, Balance>
File diff suppressed because it is too large Load Diff
@@ -1015,10 +1015,6 @@ declare module '@polkadot/types/lookup' {
readonly asSetDisputePostConclusionAcceptancePeriod: {
readonly new_: u32;
} & Struct;
readonly isSetDisputeMaxSpamSlots: boolean;
readonly asSetDisputeMaxSpamSlots: {
readonly new_: u32;
} & Struct;
readonly isSetDisputeConclusionByTimeOutPeriod: boolean;
readonly asSetDisputeConclusionByTimeOutPeriod: {
readonly new_: u32;
@@ -1131,7 +1127,7 @@ declare module '@polkadot/types/lookup' {
readonly asSetBypassConsistencyCheck: {
readonly new_: bool;
} & Struct;
readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeMaxSpamSlots' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight' | 'SetPvfCheckingEnabled' | 'SetPvfVotingTtl' | 'SetMinimumValidationUpgradeDelay' | 'SetBypassConsistencyCheck';
readonly type: 'SetValidationUpgradeCooldown' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight' | 'SetPvfCheckingEnabled' | 'SetPvfVotingTtl' | 'SetMinimumValidationUpgradeDelay' | 'SetBypassConsistencyCheck';
}
/** @name PolkadotRuntimeParachainsSharedPalletCall (376) */
@@ -1886,7 +1882,6 @@ declare module '@polkadot/types/lookup' {
readonly maxValidators: Option<u32>;
readonly disputePeriod: u32;
readonly disputePostConclusionAcceptancePeriod: u32;
readonly disputeMaxSpamSlots: u32;
readonly disputeConclusionByTimeOutPeriod: u32;
readonly noShowSlots: u32;
readonly nDelayTranches: u32;
@@ -2213,9 +2208,9 @@ declare module '@polkadot/types/lookup' {
readonly isValidatorIndexOutOfBounds: boolean;
readonly isInvalidSignature: boolean;
readonly isDuplicateStatement: boolean;
readonly isPotentialSpam: boolean;
readonly isSingleSidedDispute: boolean;
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
readonly isUnconfirmedDispute: boolean;
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'SingleSidedDispute' | 'UnconfirmedDispute';
}
/** @name PolkadotRuntimeCommonParasRegistrarParaInfo (702) */
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.11.3' };
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/util": "^10.2.3",
"@polkadot/x-bigint": "^10.2.3"
"@polkadot/util": "^10.2.6",
"@polkadot/x-bigint": "^10.2.6"
},
"devDependencies": {
"@polkadot/types": "9.11.1",
"@polkadot/types-augment": "9.11.1",
"@polkadot/types-support": "9.11.1",
"@polkadot/util-crypto": "^10.2.3"
"@polkadot/types": "9.11.3",
"@polkadot/types-augment": "9.11.3",
"@polkadot/types-support": "9.11.3",
"@polkadot/util-crypto": "^10.2.6"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.11.3' };
+4 -4
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/types-codec": "9.11.1",
"@polkadot/util": "^10.2.3"
"@polkadot/types-codec": "9.11.3",
"@polkadot/util": "^10.2.6"
},
"devDependencies": {
"@polkadot/types": "9.11.1"
"@polkadot/types": "9.11.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.11.3' };
+7 -7
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/networks": "^10.2.3",
"@polkadot/types": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/types-create": "9.11.1",
"@polkadot/util": "^10.2.3"
"@polkadot/networks": "^10.2.6",
"@polkadot/types": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/types-create": "9.11.3",
"@polkadot/util": "^10.2.6"
},
"devDependencies": {
"@polkadot/api": "9.11.1"
"@polkadot/api": "9.11.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.11.3' };
+2 -2
View File
@@ -20,10 +20,10 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/util": "^10.2.3"
"@polkadot/util": "^10.2.6"
}
}
File diff suppressed because one or more lines are too long
@@ -5985,7 +5985,7 @@
"type": {
"plain": 755
},
"fallback": "0x00000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000100000001000000000000000000060000006400000002000000c800000001000000000000000000000000000000000000000700c817a80402004001000200000002000000",
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000010000000000000000000600000064000000c800000001000000000000000000000000000000000000000700c817a80402004001000200000002000000",
"docs": [
" The active configuration for the current session."
]
@@ -7272,27 +7272,6 @@
" should be reverted back to if the candidate is disputed and determined to be invalid."
]
},
{
"name": "SpamSlots",
"modifier": "Optional",
"type": {
"map": {
"hashers": [
"Twox64Concat"
],
"key": 4,
"value": 101
}
},
"fallback": "0x00",
"docs": [
" Maps session indices to a vector indicating the number of potentially-spam disputes",
" each validator is participating in. Potentially-spam disputes are remote disputes which have",
" fewer than `byzantine_threshold + 1` validators.",
"",
" The i'th entry of the vector corresponds to the i'th validator in the session."
]
},
{
"name": "Frozen",
"modifier": "Default",
@@ -21882,21 +21882,6 @@
"Set the dispute post conclusion acceptance period."
]
},
{
"name": "set_dispute_max_spam_slots",
"fields": [
{
"name": "new",
"type": 4,
"typeName": "u32",
"docs": []
}
],
"index": 16,
"docs": [
"Set the maximum number of dispute spam slots."
]
},
{
"name": "set_dispute_conclusion_by_time_out_period",
"fields": [
@@ -48641,12 +48626,6 @@
"typeName": "BlockNumber",
"docs": []
},
{
"name": "dispute_max_spam_slots",
"type": 4,
"typeName": "u32",
"docs": []
},
{
"name": "dispute_conclusion_by_time_out_period",
"type": 4,
@@ -51098,19 +51077,19 @@
]
},
{
"name": "PotentialSpam",
"name": "SingleSidedDispute",
"fields": [],
"index": 5,
"docs": [
"Too many spam slots used by some specific validator."
"A dispute where there are only votes on one side."
]
},
{
"name": "SingleSidedDispute",
"name": "UnconfirmedDispute",
"fields": [],
"index": 6,
"docs": [
"A dispute where there are only votes on one side."
"Unconfirmed dispute statement sets provided"
]
}
]
File diff suppressed because one or more lines are too long
@@ -4731,7 +4731,7 @@
"type": {
"plain": 637
},
"fallback": "0x00000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000100000001000000000000000000060000006400000002000000c800000001000000000000000000000000000000000000000700c817a80402004001000200000002000000",
"fallback": "0x000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000010000000000000000000600000064000000c800000001000000000000000000000000000000000000000700c817a80402004001000200000002000000",
"docs": [
" The active configuration for the current session."
]
@@ -6018,27 +6018,6 @@
" should be reverted back to if the candidate is disputed and determined to be invalid."
]
},
{
"name": "SpamSlots",
"modifier": "Optional",
"type": {
"map": {
"hashers": [
"Twox64Concat"
],
"key": 4,
"value": 94
}
},
"fallback": "0x00",
"docs": [
" Maps session indices to a vector indicating the number of potentially-spam disputes",
" each validator is participating in. Potentially-spam disputes are remote disputes which have",
" fewer than `byzantine_threshold + 1` validators.",
"",
" The i'th entry of the vector corresponds to the i'th validator in the session."
]
},
{
"name": "Frozen",
"modifier": "Default",
@@ -25449,21 +25449,6 @@
"Set the dispute post conclusion acceptance period."
]
},
{
"name": "set_dispute_max_spam_slots",
"fields": [
{
"name": "new",
"type": 4,
"typeName": "u32",
"docs": []
}
],
"index": 16,
"docs": [
"Set the maximum number of dispute spam slots."
]
},
{
"name": "set_dispute_conclusion_by_time_out_period",
"fields": [
@@ -39844,12 +39829,6 @@
"typeName": "BlockNumber",
"docs": []
},
{
"name": "dispute_max_spam_slots",
"type": 4,
"typeName": "u32",
"docs": []
},
{
"name": "dispute_conclusion_by_time_out_period",
"type": 4,
@@ -42301,19 +42280,19 @@
]
},
{
"name": "PotentialSpam",
"name": "SingleSidedDispute",
"fields": [],
"index": 5,
"docs": [
"Too many spam slots used by some specific validator."
"A dispute where there are only votes on one side."
]
},
{
"name": "SingleSidedDispute",
"name": "UnconfirmedDispute",
"fields": [],
"index": 6,
"docs": [
"A dispute where there are only votes on one side."
"Unconfirmed dispute statement sets provided"
]
}
]
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.11.3' };
+9 -9
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.11.1",
"version": "9.11.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.20.7",
"@polkadot/keyring": "^10.2.3",
"@polkadot/types-augment": "9.11.1",
"@polkadot/types-codec": "9.11.1",
"@polkadot/types-create": "9.11.1",
"@polkadot/util": "^10.2.3",
"@polkadot/util-crypto": "^10.2.3",
"@polkadot/keyring": "^10.2.6",
"@polkadot/types-augment": "9.11.3",
"@polkadot/types-codec": "9.11.3",
"@polkadot/types-create": "9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@polkadot/keyring": "^10.2.3",
"@polkadot/types-support": "9.11.1"
"@polkadot/keyring": "^10.2.6",
"@polkadot/types-support": "9.11.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.11.1' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.11.3' };
+380 -403
View File
File diff suppressed because it is too large Load Diff