Skip to content

Commit a28521a

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 9.5.1
1 parent 4f66c1c commit a28521a

File tree

482 files changed

+3399
-2661
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

+3399
-2661
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.5.1
56
- phishing 0.18.10
67
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 10.1.10
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.9/rpc-augment/mod.ts';
6-
import 'https://deno.land/x/polkadot@0.2.9/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.9/api-base/packageInfo.ts';
5-
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot@0.2.9/types/packageInfo.ts';
6-
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot@0.2.9/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.9/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: 20 additions & 11 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.9/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.9/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.9/types-codec/mod.ts';
10-
import type { Codec } from 'https://deno.land/x/polkadot@0.2.9/types-codec/types/index.ts';
11-
import type { Perbill, Percent, Permill, Weight } from 'https://deno.land/x/polkadot@0.2.9/types/interfaces/runtime/index.ts';
12-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from 'https://deno.land/x/polkadot@0.2.9/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.9/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
/**
@@ -745,8 +745,9 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/consts.ts' {
745745
*
746746
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
747747
* 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.
748+
* the existing value can lead to inconsistencies in the
749+
* `StakingLedger` and will need to be handled properly in a migration.
750+
* The test `reducing_history_depth_abrupt` shows this effect.
750751
**/
751752
historyDepth: u32 & AugmentedConst<ApiType>;
752753
/**
@@ -761,8 +762,16 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/consts.ts' {
761762
**/
762763
maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
763764
/**
764-
* The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively
765-
* determines how many unique eras a staker may be unbonding in.
765+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
766+
* have. Effectively determines how many unique eras a staker may be
767+
* unbonding in.
768+
*
769+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
770+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
771+
* lower than the existing value can lead to inconsistencies in the
772+
* `StakingLedger` and will need to be handled properly in a runtime
773+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
774+
* this effect.
766775
**/
767776
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
768777
/**

api-augment/kusama/errors.ts

Lines changed: 35 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.9/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.9/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.9/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
/**
@@ -570,6 +570,38 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/errors.ts' {
570570
**/
571571
[key: string]: AugmentedError<ApiType>;
572572
};
573+
fastUnstake: {
574+
/**
575+
* The provided un-staker is already in Head, and cannot deregister.
576+
**/
577+
AlreadyHead: AugmentedError<ApiType>;
578+
/**
579+
* The bonded account has already been queued.
580+
**/
581+
AlreadyQueued: AugmentedError<ApiType>;
582+
/**
583+
* The call is not allowed at this point because the pallet is not active.
584+
**/
585+
CallNotAllowed: AugmentedError<ApiType>;
586+
/**
587+
* The provided Controller account was not found.
588+
*
589+
* This means that the given account is not bonded.
590+
**/
591+
NotController: AugmentedError<ApiType>;
592+
/**
593+
* The bonded account has active unlocking chunks.
594+
**/
595+
NotFullyBonded: AugmentedError<ApiType>;
596+
/**
597+
* The provided un-staker is not in the `Queue`.
598+
**/
599+
NotQueued: AugmentedError<ApiType>;
600+
/**
601+
* Generic error
602+
**/
603+
[key: string]: AugmentedError<ApiType>;
604+
};
573605
gilt: {
574606
/**
575607
* The amount of the bid is less than the minimum allowed.

api-augment/kusama/events.ts

Lines changed: 52 additions & 28 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.9/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.9/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.9/types-codec/mod.ts';
10-
import type { ITuple } from 'https://deno.land/x/polkadot@0.2.9/types-codec/types/index.ts';
11-
import type { EthereumAddress } from 'https://deno.land/x/polkadot@0.2.9/types/interfaces/eth/index.ts';
12-
import type { AccountId32, H256, Weight } from 'https://deno.land/x/polkadot@0.2.9/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.9/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.9/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
/**
@@ -377,6 +377,33 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
377377
**/
378378
[key: string]: AugmentedEvent<ApiType>;
379379
};
380+
fastUnstake: {
381+
/**
382+
* A staker was partially checked for the given eras, but the process did not finish.
383+
**/
384+
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], { stash: AccountId32, eras: Vec<u32> }>;
385+
/**
386+
* Some internal error happened while migrating stash. They are removed as head as a
387+
* consequence.
388+
**/
389+
Errored: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
390+
/**
391+
* An internal error happened. Operations will be paused now.
392+
**/
393+
InternalError: AugmentedEvent<ApiType, []>;
394+
/**
395+
* A staker was slashed for requesting fast-unstake whilst being exposed.
396+
**/
397+
Slashed: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
398+
/**
399+
* A staker was unstaked.
400+
**/
401+
Unstaked: AugmentedEvent<ApiType, [stash: AccountId32, result: Result<Null, SpRuntimeDispatchError>], { stash: AccountId32, result: Result<Null, SpRuntimeDispatchError> }>;
402+
/**
403+
* Generic event
404+
**/
405+
[key: string]: AugmentedEvent<ApiType>;
406+
};
380407
gilt: {
381408
/**
382409
* A bid was successfully placed.
@@ -968,40 +995,37 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
968995
* NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
969996
* it will not be emitted for staking rewards when they are added to stake.
970997
**/
971-
Bonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
998+
Bonded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
972999
/**
9731000
* An account has stopped participating as either a validator or nominator.
974-
* \[stash\]
9751001
**/
976-
Chilled: AugmentedEvent<ApiType, [AccountId32]>;
1002+
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], { stash: AccountId32 }>;
9771003
/**
9781004
* The era payout has been set; the first balance is the validator-payout; the second is
9791005
* the remainder from the maximum amount of reward.
980-
* \[era_index, validator_payout, remainder\]
9811006
**/
982-
EraPaid: AugmentedEvent<ApiType, [u32, u128, u128]>;
1007+
EraPaid: AugmentedEvent<ApiType, [eraIndex: u32, validatorPayout: u128, remainder: u128], { eraIndex: u32, validatorPayout: u128, remainder: u128 }>;
9831008
/**
984-
* A nominator has been kicked from a validator. \[nominator, stash\]
1009+
* A nominator has been kicked from a validator.
9851010
**/
986-
Kicked: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
1011+
Kicked: AugmentedEvent<ApiType, [nominator: AccountId32, stash: AccountId32], { nominator: AccountId32, stash: AccountId32 }>;
9871012
/**
9881013
* An old slashing report from a prior era was discarded because it could
989-
* not be processed. \[session_index\]
1014+
* not be processed.
9901015
**/
991-
OldSlashingReportDiscarded: AugmentedEvent<ApiType, [u32]>;
1016+
OldSlashingReportDiscarded: AugmentedEvent<ApiType, [sessionIndex: u32], { sessionIndex: u32 }>;
9921017
/**
993-
* The stakers' rewards are getting paid. \[era_index, validator_stash\]
1018+
* The stakers' rewards are getting paid.
9941019
**/
995-
PayoutStarted: AugmentedEvent<ApiType, [u32, AccountId32]>;
1020+
PayoutStarted: AugmentedEvent<ApiType, [eraIndex: u32, validatorStash: AccountId32], { eraIndex: u32, validatorStash: AccountId32 }>;
9961021
/**
997-
* The nominator has been rewarded by this amount. \[stash, amount\]
1022+
* The nominator has been rewarded by this amount.
9981023
**/
999-
Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1024+
Rewarded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
10001025
/**
10011026
* One staker (and potentially its nominators) has been slashed by the given amount.
1002-
* \[staker, amount\]
10031027
**/
1004-
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
1028+
Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], { staker: AccountId32, amount: u128 }>;
10051029
/**
10061030
* A new set of stakers was elected.
10071031
**/
@@ -1011,18 +1035,18 @@ declare module 'https://deno.land/x/polkadot@0.2.9/api-base/types/events.ts' {
10111035
**/
10121036
StakingElectionFailed: AugmentedEvent<ApiType, []>;
10131037
/**
1014-
* An account has unbonded this amount. \[stash, amount\]
1038+
* An account has unbonded this amount.
10151039
**/
1016-
Unbonded: AugmentedEvent<ApiType, [AccountId32, u128]>;
1040+
Unbonded: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
10171041
/**
10181042
* A validator has set their preferences.
10191043
**/
1020-
ValidatorPrefsSet: AugmentedEvent<ApiType, [AccountId32, PalletStakingValidatorPrefs]>;
1044+
ValidatorPrefsSet: AugmentedEvent<ApiType, [stash: AccountId32, prefs: PalletStakingValidatorPrefs], { stash: AccountId32, prefs: PalletStakingValidatorPrefs }>;
10211045
/**
10221046
* An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
1023-
* from the unlocking queue. \[stash, amount\]
1047+
* from the unlocking queue.
10241048
**/
1025-
Withdrawn: AugmentedEvent<ApiType, [AccountId32, u128]>;
1049+
Withdrawn: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], { stash: AccountId32, amount: u128 }>;
10261050
/**
10271051
* Generic event
10281052
**/

0 commit comments

Comments
 (0)