Skip to content

Commit 0275b09

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 15.7.1
1 parent 6b03907 commit 0275b09

File tree

39 files changed

+2039
-1121
lines changed

39 files changed

+2039
-1121
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} 15.7.1
56
- phishing 0.25.4
67
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 15.6.1
78
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 13.4.3

api-augment/kusama/consts.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,20 @@ declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
237237
**/
238238
[key: string]: Codec;
239239
};
240+
delegatedStaking: {
241+
/**
242+
* Injected identifier for the pallet.
243+
**/
244+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
245+
/**
246+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
247+
**/
248+
slashRewardFraction: Perbill & AugmentedConst<ApiType>;
249+
/**
250+
* Generic const
251+
**/
252+
[key: string]: Codec;
253+
};
240254
electionProviderMultiPhase: {
241255
/**
242256
* The minimum amount of improvement to the solution score that defines a solution as

api-augment/kusama/errors.ts

Lines changed: 76 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,21 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
146146
**/
147147
InvalidConfiguration: AugmentedError<ApiType>;
148148
/**
149-
* An equivocation proof provided as part of an equivocation report is invalid.
149+
* A double voting proof provided as part of an equivocation report is invalid.
150150
**/
151-
InvalidEquivocationProof: AugmentedError<ApiType>;
151+
InvalidDoubleVotingProof: AugmentedError<ApiType>;
152+
/**
153+
* The session of the equivocation proof is invalid
154+
**/
155+
InvalidEquivocationProofSession: AugmentedError<ApiType>;
156+
/**
157+
* A fork voting proof provided as part of an equivocation report is invalid.
158+
**/
159+
InvalidForkVotingProof: AugmentedError<ApiType>;
160+
/**
161+
* A future block voting proof provided as part of an equivocation report is invalid.
162+
**/
163+
InvalidFutureBlockVotingProof: AugmentedError<ApiType>;
152164
/**
153165
* A key ownership proof provided as part of an equivocation report is invalid.
154166
**/
@@ -469,6 +481,64 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
469481
**/
470482
[key: string]: AugmentedError<ApiType>;
471483
};
484+
delegatedStaking: {
485+
/**
486+
* An existing staker cannot perform this action.
487+
**/
488+
AlreadyStaking: AugmentedError<ApiType>;
489+
/**
490+
* Some corruption in internal state.
491+
**/
492+
BadState: AugmentedError<ApiType>;
493+
/**
494+
* Delegation conditions are not met.
495+
*
496+
* Possible issues are
497+
* 1) Cannot delegate to self,
498+
* 2) Cannot delegate to multiple delegates.
499+
**/
500+
InvalidDelegation: AugmentedError<ApiType>;
501+
/**
502+
* Reward Destination cannot be same as `Agent` account.
503+
**/
504+
InvalidRewardDestination: AugmentedError<ApiType>;
505+
/**
506+
* Not an existing `Agent` account.
507+
**/
508+
NotAgent: AugmentedError<ApiType>;
509+
/**
510+
* The account cannot perform this operation.
511+
**/
512+
NotAllowed: AugmentedError<ApiType>;
513+
/**
514+
* Not a Delegator account.
515+
**/
516+
NotDelegator: AugmentedError<ApiType>;
517+
/**
518+
* The account does not have enough funds to perform the operation.
519+
**/
520+
NotEnoughFunds: AugmentedError<ApiType>;
521+
/**
522+
* `Agent` has no pending slash to be applied.
523+
**/
524+
NothingToSlash: AugmentedError<ApiType>;
525+
/**
526+
* Operation not supported by this pallet.
527+
**/
528+
NotSupported: AugmentedError<ApiType>;
529+
/**
530+
* Unapplied pending slash restricts operation on `Agent`.
531+
**/
532+
UnappliedSlash: AugmentedError<ApiType>;
533+
/**
534+
* Failed to withdraw amount from Core Staking.
535+
**/
536+
WithdrawFailed: AugmentedError<ApiType>;
537+
/**
538+
* Generic error
539+
**/
540+
[key: string]: AugmentedError<ApiType>;
541+
};
472542
electionProviderMultiPhase: {
473543
/**
474544
* Some bound not met
@@ -1207,6 +1277,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
12071277
* A reward pool does not exist. In all cases this is a system logic error.
12081278
**/
12091279
RewardPoolNotFound: AugmentedError<ApiType>;
1280+
/**
1281+
* The slash amount is too low to be applied.
1282+
**/
1283+
SlashTooLow: AugmentedError<ApiType>;
12101284
/**
12111285
* A sub pool does not exist.
12121286
**/
@@ -1282,10 +1356,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
12821356
* Output code is too large
12831357
**/
12841358
NewCodeTooLarge: AugmentedError<ApiType>;
1285-
/**
1286-
* Collator did not sign PoV.
1287-
**/
1288-
NotCollatorSigned: AugmentedError<ApiType>;
12891359
/**
12901360
* The `para_head` hash in the candidate descriptor doesn't match the hash of the actual
12911361
* para head in the commitments.
@@ -1476,10 +1546,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
14761546
* Preimage has already been noted on-chain.
14771547
**/
14781548
AlreadyNoted: AugmentedError<ApiType>;
1479-
/**
1480-
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
1481-
**/
1482-
NoCost: AugmentedError<ApiType>;
14831549
/**
14841550
* The user is not authorized to perform this action.
14851551
**/

api-augment/kusama/events.ts

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
77
import type { ITuple } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
88
import type { EthereumAddress } from 'https://deno.land/x/polkadot/types/interfaces/eth/index.ts';
99
import type { AccountId32, H256, Perbill, Perquintill } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
10-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from 'https://deno.land/x/polkadot/types/lookup.ts';
10+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV8CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingKusamaRuntimeRuntimeParametersKey, StagingKusamaRuntimeRuntimeParametersValue, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from 'https://deno.land/x/polkadot/types/lookup.ts';
1111

1212
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
1313

@@ -247,6 +247,14 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
247247
* An \[account\] has cancelled a previous delegation operation.
248248
**/
249249
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
250+
/**
251+
* An account that has voted
252+
**/
253+
Voted: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
254+
/**
255+
* A vote that been removed
256+
**/
257+
VoteRemoved: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
250258
/**
251259
* Generic event
252260
**/
@@ -313,6 +321,28 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
313321
**/
314322
[key: string]: AugmentedEvent<ApiType>;
315323
};
324+
delegatedStaking: {
325+
/**
326+
* Funds delegated by a delegator.
327+
**/
328+
Delegated: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
329+
/**
330+
* Unclaimed delegation funds migrated to delegator.
331+
**/
332+
MigratedDelegation: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
333+
/**
334+
* Funds released to a delegator.
335+
**/
336+
Released: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
337+
/**
338+
* Funds slashed from a delegator.
339+
**/
340+
Slashed: AugmentedEvent<ApiType, [agent: AccountId32, delegator: AccountId32, amount: u128], { agent: AccountId32, delegator: AccountId32, amount: u128 }>;
341+
/**
342+
* Generic event
343+
**/
344+
[key: string]: AugmentedEvent<ApiType>;
345+
};
316346
electionProviderMultiPhase: {
317347
/**
318348
* An election failed.
@@ -732,8 +762,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
732762
* A member has been removed from a pool.
733763
*
734764
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
765+
* Any funds that are still delegated (i.e. dangling delegation) are released and are
766+
* represented by `released_balance`.
735767
**/
736-
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
768+
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32, releasedBalance: u128], { poolId: u32, member: AccountId32, releasedBalance: u128 }>;
737769
/**
738770
* Topped up deficit in frozen ED of the reward pool.
739771
**/
@@ -841,15 +873,15 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
841873
/**
842874
* A candidate was backed. `[candidate, head_data]`
843875
**/
844-
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
876+
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV8CandidateReceipt, Bytes, u32, u32]>;
845877
/**
846878
* A candidate was included. `[candidate, head_data]`
847879
**/
848-
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32, u32]>;
880+
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV8CandidateReceipt, Bytes, u32, u32]>;
849881
/**
850882
* A candidate timed out. `[candidate, head_data]`
851883
**/
852-
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV7CandidateReceipt, Bytes, u32]>;
884+
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV8CandidateReceipt, Bytes, u32]>;
853885
/**
854886
* Some upward messages have been received and will be processed.
855887
**/

0 commit comments

Comments
 (0)