Skip to content

Commit 055fb68

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 9.4.2
1 parent 9186cfa commit 055fb68

File tree

482 files changed

+2680
-2531
lines changed

Some content is hidden

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

482 files changed

+2680
-2531
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master
44

5+
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 9.4.2
56
- phishing 0.18.9
67
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 10.1.9
78

api-augment/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
// for the API, we decorate not only the endpoints, but all types
5-
import 'https://deno.land/x/polkadot@0.2.7/rpc-augment/mod.ts';
6-
import 'https://deno.land/x/polkadot@0.2.7/types-augment/mod.ts';
5+
import 'https://deno.land/x/polkadot/rpc-augment/mod.ts';
6+
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,8 +1,8 @@
11
// Copyright 2017-2022 @polkadot/api-augment authors & contributors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { packageInfo as baseInfo } from 'https://deno.land/x/polkadot@0.2.7/api-base/packageInfo.ts';
5-
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot@0.2.7/types/packageInfo.ts';
6-
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot@0.2.7/types-codec/packageInfo.ts';
4+
import { packageInfo as baseInfo } from 'https://deno.land/x/polkadot/api-base/packageInfo.ts';
5+
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot/types/packageInfo.ts';
6+
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot/types-codec/packageInfo.ts';
77

88
export default [baseInfo, typesInfo, codecInfo];

api-augment/detectPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Do not edit, auto-generated by @polkadot/dev
55

6-
import { detectPackage } from 'https://deno.land/x/polkadot@0.2.7/util/mod.ts';
6+
import { detectPackage } from 'https://deno.land/x/polkadot/util/mod.ts';
77

88
import others from './detectOther.ts';
99
import { packageInfo } from './packageInfo.ts';

api-augment/kusama/consts.ts

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
// import type lookup before we augment - in some environments
55
// this is required to allow for ambient/previous definitions
6-
import 'https://deno.land/x/polkadot@0.2.7/api-base/types/consts.ts';
6+
import 'https://deno.land/x/polkadot/api-base/types/consts.ts';
77

8-
import type { ApiTypes, AugmentedConst } from 'https://deno.land/x/polkadot@0.2.7/api-base/types/index.ts';
9-
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot@0.2.7/types-codec/mod.ts';
10-
import type { Codec } from 'https://deno.land/x/polkadot@0.2.7/types-codec/types/index.ts';
11-
import type { Perbill, Percent, Permill, Weight } from 'https://deno.land/x/polkadot@0.2.7/types/interfaces/runtime/index.ts';
12-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from 'https://deno.land/x/polkadot@0.2.7/types/lookup.ts';
8+
import type { ApiTypes, AugmentedConst } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
9+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts';
10+
import type { Codec } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
11+
import type { Perbill, Percent, Permill, Weight } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
12+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from 'https://deno.land/x/polkadot/types/lookup.ts';
1313

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

16-
declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/consts.ts' {
16+
declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
1717
interface AugmentedConsts<ApiType extends ApiTypes> {
1818
auctions: {
1919
/**
@@ -727,6 +727,28 @@ declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/consts.ts' {
727727
* Number of eras that staked funds must remain bonded for.
728728
**/
729729
bondingDuration: u32 & AugmentedConst<ApiType>;
730+
/**
731+
* Number of eras to keep in history.
732+
*
733+
* Following information is kept for eras in `[current_era -
734+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
735+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
736+
* `ErasTotalStake`, `ErasStartSessionIndex`,
737+
* `StakingLedger.claimed_rewards`.
738+
*
739+
* Must be more than the number of eras delayed by session.
740+
* I.e. active era must always be in history. I.e. `active_era >
741+
* current_era - history_depth` must be guaranteed.
742+
*
743+
* If migrating an existing pallet from storage value to config value,
744+
* this should be set to same value or greater as in storage.
745+
*
746+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
747+
* item `StakingLedger.claimed_rewards`. Setting this value lower than
748+
* the existing value can lead to inconsistencies and will need to be
749+
* handled properly in a migration.
750+
**/
751+
historyDepth: u32 & AugmentedConst<ApiType>;
730752
/**
731753
* Maximum number of nominations per nominator.
732754
**/

api-augment/kusama/errors.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
// import type lookup before we augment - in some environments
55
// this is required to allow for ambient/previous definitions
6-
import 'https://deno.land/x/polkadot@0.2.7/api-base/types/errors.ts';
6+
import 'https://deno.land/x/polkadot/api-base/types/errors.ts';
77

8-
import type { ApiTypes, AugmentedError } from 'https://deno.land/x/polkadot@0.2.7/api-base/types/index.ts';
8+
import type { ApiTypes, AugmentedError } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
99

1010
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
1111

12-
declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/errors.ts' {
12+
declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
1313
interface AugmentedErrors<ApiType extends ApiTypes> {
1414
auctions: {
1515
/**
@@ -1682,6 +1682,10 @@ declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/errors.ts' {
16821682
* A nomination target was supplied that was blocked or otherwise not a validator.
16831683
**/
16841684
BadTarget: AugmentedError<ApiType>;
1685+
/**
1686+
* Some bound is not met.
1687+
**/
1688+
BoundNotMet: AugmentedError<ApiType>;
16851689
/**
16861690
* The user has enough bond and thus cannot be chilled forcefully by an external person.
16871691
**/

api-augment/kusama/events.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
// import type lookup before we augment - in some environments
55
// this is required to allow for ambient/previous definitions
6-
import 'https://deno.land/x/polkadot@0.2.7/api-base/types/events.ts';
6+
import 'https://deno.land/x/polkadot/api-base/types/events.ts';
77

8-
import type { ApiTypes, AugmentedEvent } from 'https://deno.land/x/polkadot@0.2.7/api-base/types/index.ts';
9-
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot@0.2.7/types-codec/mod.ts';
10-
import type { ITuple } from 'https://deno.land/x/polkadot@0.2.7/types-codec/types/index.ts';
11-
import type { EthereumAddress } from 'https://deno.land/x/polkadot@0.2.7/types/interfaces/eth/index.ts';
12-
import type { AccountId32, H256, Weight } from 'https://deno.land/x/polkadot@0.2.7/types/interfaces/runtime/index.ts';
13-
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from 'https://deno.land/x/polkadot@0.2.7/types/lookup.ts';
8+
import type { ApiTypes, AugmentedEvent } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
9+
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts';
10+
import type { ITuple } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
11+
import type { EthereumAddress } from 'https://deno.land/x/polkadot/types/interfaces/eth/index.ts';
12+
import type { AccountId32, H256, Weight } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
13+
import type { FrameSupportDispatchDispatchInfo, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from 'https://deno.land/x/polkadot/types/lookup.ts';
1414

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

17-
declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/events.ts' {
17+
declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
1818
interface AugmentedEvents<ApiType extends ApiTypes> {
1919
auctions: {
2020
/**
@@ -778,11 +778,6 @@ declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/events.ts' {
778778
* An announcement was placed to make a call in the future.
779779
**/
780780
Announced: AugmentedEvent<ApiType, [real: AccountId32, proxy: AccountId32, callHash: H256], { real: AccountId32, proxy: AccountId32, callHash: H256 }>;
781-
/**
782-
* Anonymous account has been created by new proxy with given
783-
* disambiguation index and proxy type.
784-
**/
785-
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], { anonymous: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16 }>;
786781
/**
787782
* A proxy was added.
788783
**/
@@ -795,6 +790,11 @@ declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/events.ts' {
795790
* A proxy was removed.
796791
**/
797792
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32], { delegator: AccountId32, delegatee: AccountId32, proxyType: KusamaRuntimeProxyType, delay: u32 }>;
793+
/**
794+
* A pure account has been created by new proxy with given
795+
* disambiguation index and proxy type.
796+
**/
797+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16], { pure: AccountId32, who: AccountId32, proxyType: KusamaRuntimeProxyType, disambiguationIndex: u16 }>;
798798
/**
799799
* Generic event
800800
**/
@@ -998,8 +998,8 @@ declare module 'https://deno.land/x/polkadot@0.2.7/api-base/types/events.ts' {
998998
**/
999999
Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
10001000
/**
1001-
* One validator (and its nominators) has been slashed by the given amount.
1002-
* \[validator, amount\]
1001+
* One staker (and potentially its nominators) has been slashed by the given amount.
1002+
* \[staker, amount\]
10031003
**/
10041004
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
10051005
/**

0 commit comments

Comments
 (0)