Skip to content

Commit 26aea76

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.10.1
1 parent 4601300 commit 26aea76

File tree

488 files changed

+7413
-5308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

488 files changed

+7413
-5308
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## master
4+
5+
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.10.1
6+
37
## 0.2.42 Sep 15, 2023
48

59
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 12.5.1

api-augment/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
import 'https://deno.land/x/polkadot@0.2.42/rpc-augment/mod.ts';
3-
import 'https://deno.land/x/polkadot@0.2.42/types-augment/mod.ts';
2+
import 'https://deno.land/x/polkadot/rpc-augment/mod.ts';
3+
import 'https://deno.land/x/polkadot/types-augment/mod.ts';

api-augment/detectOther.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
import { packageInfo as baseInfo } from 'https://deno.land/x/polkadot@0.2.42/api-base/packageInfo.ts';
3-
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot@0.2.42/types/packageInfo.ts';
4-
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot@0.2.42/types-codec/packageInfo.ts';
2+
import { packageInfo as baseInfo } from 'https://deno.land/x/polkadot/api-base/packageInfo.ts';
3+
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot/types/packageInfo.ts';
4+
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot/types-codec/packageInfo.ts';
55

66
export default [baseInfo, typesInfo, codecInfo];

api-augment/detectPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
import { detectPackage } from 'https://deno.land/x/polkadot@0.2.42/util/mod.ts';
3+
import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
44

55
import others from './detectOther.ts';
66
import { packageInfo } from './packageInfo.ts';

api-augment/kusama/consts.ts

Lines changed: 89 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/* eslint-disable */
22

3-
import 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts';
3+
import 'https://deno.land/x/polkadot/api-base/types/consts.ts';
44

5-
import type { ApiTypes, AugmentedConst } from 'https://deno.land/x/polkadot@0.2.42/api-base/types/index.ts';
6-
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot@0.2.42/types-codec/mod.ts';
7-
import type { Codec, ITuple } from 'https://deno.land/x/polkadot@0.2.42/types-codec/types/index.ts';
8-
import type { Perbill, Permill, Perquintill } from 'https://deno.land/x/polkadot@0.2.42/types/interfaces/runtime/index.ts';
9-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from 'https://deno.land/x/polkadot@0.2.42/types/lookup.ts';
5+
import type { ApiTypes, AugmentedConst } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
6+
import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts';
7+
import type { Codec, ITuple } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
8+
import type { Perbill, Permill, Perquintill } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
9+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from 'https://deno.land/x/polkadot/types/lookup.ts';
1010

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

13-
declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
13+
declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
1414
interface AugmentedConsts<ApiType extends ApiTypes> {
1515
auctions: {
1616
/**
@@ -49,6 +49,10 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
4949
* Max number of authorities allowed
5050
**/
5151
maxAuthorities: u32 & AugmentedConst<ApiType>;
52+
/**
53+
* The maximum number of nominators for each validator.
54+
**/
55+
maxNominators: u32 & AugmentedConst<ApiType>;
5256
/**
5357
* Generic const
5458
**/
@@ -88,6 +92,29 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
8892
**/
8993
[key: string]: Codec;
9094
};
95+
beefy: {
96+
/**
97+
* The maximum number of authorities that can be added.
98+
**/
99+
maxAuthorities: u32 & AugmentedConst<ApiType>;
100+
/**
101+
* The maximum number of nominators for each validator.
102+
**/
103+
maxNominators: u32 & AugmentedConst<ApiType>;
104+
/**
105+
* The maximum number of entries to keep in the set id to session index mapping.
106+
*
107+
* Since the `SetIdSession` map is only used for validating equivocations this
108+
* value should relate to the bonding duration of whatever staking system is
109+
* being used (if any). If equivocation handling is not enabled then this value
110+
* can be zero.
111+
**/
112+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
113+
/**
114+
* Generic const
115+
**/
116+
[key: string]: Codec;
117+
};
91118
bounties: {
92119
/**
93120
* The amount held on deposit for placing a bounty proposal.
@@ -178,12 +205,13 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
178205
};
179206
crowdloan: {
180207
/**
181-
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
182-
* least `ExistentialDeposit`.
208+
* The minimum amount that may be contributed into a crowdloan. Should almost certainly be
209+
* at least `ExistentialDeposit`.
183210
**/
184211
minContribution: u128 & AugmentedConst<ApiType>;
185212
/**
186-
* `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b"py/cfund")`
213+
* `PalletId` for the crowdloan pallet. An appropriate value could be
214+
* `PalletId(*b"py/cfund")`
187215
**/
188216
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
189217
/**
@@ -206,16 +234,6 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
206234
* "better" in the Unsigned phase.
207235
**/
208236
betterUnsignedThreshold: Perbill & AugmentedConst<ApiType>;
209-
/**
210-
* The maximum number of electable targets to put in the snapshot.
211-
**/
212-
maxElectableTargets: u16 & AugmentedConst<ApiType>;
213-
/**
214-
* The maximum number of electing voters to put in the snapshot. At the moment, snapshots
215-
* are only over a single block, but once multi-block elections are introduced they will
216-
* take place over multiple blocks.
217-
**/
218-
maxElectingVoters: u32 & AugmentedConst<ApiType>;
219237
/**
220238
* The maximum number of winners that can be elected by this `ElectionProvider`
221239
* implementation.
@@ -334,6 +352,10 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
334352
* Max Authorities in use
335353
**/
336354
maxAuthorities: u32 & AugmentedConst<ApiType>;
355+
/**
356+
* The maximum number of nominators for each validator.
357+
**/
358+
maxNominators: u32 & AugmentedConst<ApiType>;
337359
/**
338360
* The maximum number of entries to keep in the set id to session index mapping.
339361
*
@@ -705,7 +727,7 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
705727
**/
706728
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
707729
/**
708-
* The deposit to be paid to run a parathread.
730+
* The deposit to be paid to run a on-demand parachain.
709731
* This should include the cost for storing the genesis head and validation code.
710732
**/
711733
paraDeposit: u128 & AugmentedConst<ApiType>;
@@ -747,27 +769,31 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
747769
[key: string]: Codec;
748770
};
749771
society: {
750-
/**
751-
* The minimum amount of a deposit required for a bid to be made.
752-
**/
753-
candidateDeposit: u128 & AugmentedConst<ApiType>;
754772
/**
755773
* The number of blocks between membership challenges.
756774
**/
757775
challengePeriod: u32 & AugmentedConst<ApiType>;
758776
/**
759-
* The maximum number of candidates that we accept per round.
777+
* The number of blocks on which new candidates can claim their membership and be the
778+
* named head.
779+
**/
780+
claimPeriod: u32 & AugmentedConst<ApiType>;
781+
/**
782+
* The maximum number of strikes before a member gets funds slashed.
760783
**/
761-
maxCandidateIntake: u32 & AugmentedConst<ApiType>;
784+
graceStrikes: u32 & AugmentedConst<ApiType>;
785+
/**
786+
* The maximum number of bids at once.
787+
**/
788+
maxBids: u32 & AugmentedConst<ApiType>;
762789
/**
763790
* The maximum duration of the payout lock.
764791
**/
765792
maxLockDuration: u32 & AugmentedConst<ApiType>;
766793
/**
767-
* The number of times a member may vote the wrong way (or not at all, when they are a
768-
* skeptic) before they become suspended.
794+
* The maximum number of payouts a member may have waiting unclaimed.
769795
**/
770-
maxStrikes: u32 & AugmentedConst<ApiType>;
796+
maxPayouts: u32 & AugmentedConst<ApiType>;
771797
/**
772798
* The societies's pallet id
773799
**/
@@ -777,14 +803,10 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
777803
**/
778804
periodSpend: u128 & AugmentedConst<ApiType>;
779805
/**
780-
* The number of blocks between candidate/membership rotation periods.
781-
**/
782-
rotationPeriod: u32 & AugmentedConst<ApiType>;
783-
/**
784-
* The amount of the unpaid reward that gets deducted in the case that either a skeptic
785-
* doesn't vote or someone votes in the wrong way.
806+
* The number of blocks on which new candidates should be voted on. Together with
807+
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
786808
**/
787-
wrongSideDeduction: u128 & AugmentedConst<ApiType>;
809+
votingPeriod: u32 & AugmentedConst<ApiType>;
788810
/**
789811
* Generic const
790812
**/
@@ -818,10 +840,6 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
818840
* The test `reducing_history_depth_abrupt` shows this effect.
819841
**/
820842
historyDepth: u32 & AugmentedConst<ApiType>;
821-
/**
822-
* Maximum number of nominations per nominator.
823-
**/
824-
maxNominations: u32 & AugmentedConst<ApiType>;
825843
/**
826844
* The maximum number of nominators rewarded for each validator.
827845
*
@@ -858,6 +876,36 @@ declare module 'https://deno.land/x/polkadot@0.2.42/api-base/types/consts.ts' {
858876
**/
859877
[key: string]: Codec;
860878
};
879+
stateTrieMigration: {
880+
/**
881+
* Maximal number of bytes that a key can have.
882+
*
883+
* FRAME itself does not limit the key length.
884+
* The concrete value must therefore depend on your storage usage.
885+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
886+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
887+
*
888+
* Use the *state migration RPC* to retrieve the length of the longest key in your
889+
* storage: <https://github.com/paritytech/substrate/issues/11642>
890+
*
891+
* The migration will halt with a `Halted` event if this value is too small.
892+
* Since there is no real penalty from over-estimating, it is advised to use a large
893+
* value. The default is 512 byte.
894+
*
895+
* Some key lengths for reference:
896+
* - [`frame_support::storage::StorageValue`]: 32 byte
897+
* - [`frame_support::storage::StorageMap`]: 64 byte
898+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
899+
*
900+
* For more info see
901+
* <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
902+
**/
903+
maxKeyLen: u32 & AugmentedConst<ApiType>;
904+
/**
905+
* Generic const
906+
**/
907+
[key: string]: Codec;
908+
};
861909
system: {
862910
/**
863911
* Maximum number of block number to block hash mappings to keep (oldest pruned first).

0 commit comments

Comments
 (0)