Skip to content

Commit 938c719

Browse files
api, api-augment, api-base, api-contract, api-derive, rpc-augment, rpc-core, rpc-provider, types, types-augment, types-codec, types-create, types-known 8.10.1
1 parent 49417ff commit 938c719

File tree

460 files changed

+1771
-1587
lines changed

Some content is hidden

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

460 files changed

+1771
-1587
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, api-base, api-contract, api-derive, rpc-augment, rpc-core, rpc-provider, types, types-augment, types-codec, types-create, types-known 8.10.1
56
- phishing 0.15.2
67
- hw-ledger, hw-ledger-transports, keyring, networks, util, util-crypto, x-bigint, x-fetch, x-global, x-randomvalues, x-textdecoder, x-textencoder, x-ws 9.6.2
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.0.0-9/rpc-augment/mod.ts';
6-
import 'https://deno.land/x/polkadot@0.0.0-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.0.0-9/api-base/packageInfo.ts';
5-
import { packageInfo as typesInfo } from 'https://deno.land/x/polkadot@0.0.0-9/types/packageInfo.ts';
6-
import { packageInfo as codecInfo } from 'https://deno.land/x/polkadot@0.0.0-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.0.0-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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
22
/* eslint-disable */
33

4-
import type { ApiTypes } from 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/index.ts';
5-
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot@0.0.0-9/types-codec/mod.ts';
6-
import type { Codec } from 'https://deno.land/x/polkadot@0.0.0-9/types-codec/types/index.ts';
7-
import type { Perbill, Percent, Permill } from 'https://deno.land/x/polkadot@0.0.0-9/types/interfaces/runtime/index.ts';
8-
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from 'https://deno.land/x/polkadot@0.0.0-9/types/lookup.ts';
4+
import type { ApiTypes } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
5+
import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from 'https://deno.land/x/polkadot/types-codec/mod.ts';
6+
import type { Codec } from 'https://deno.land/x/polkadot/types-codec/types/index.ts';
7+
import type { Perbill, Percent, Permill } from 'https://deno.land/x/polkadot/types/interfaces/runtime/index.ts';
8+
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from 'https://deno.land/x/polkadot/types/lookup.ts';
99

10-
declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/consts.ts' {
10+
declare module 'https://deno.land/x/polkadot/api-base/types/consts.ts' {
1111
export interface AugmentedConsts<ApiType extends ApiTypes> {
1212
auctions: {
1313
/**

api-augment/kusama/errors.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
22
/* eslint-disable */
33

4-
import type { ApiTypes } from 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/index.ts';
4+
import type { ApiTypes } from 'https://deno.land/x/polkadot/api-base/types/index.ts';
55

6-
declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
6+
declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
77
export interface AugmentedErrors<ApiType extends ApiTypes> {
88
auctions: {
99
/**
@@ -895,10 +895,6 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
895895
* pool at a time.
896896
**/
897897
AccountBelongsToOtherPool: AugmentedError<ApiType>;
898-
/**
899-
* The member is already unbonding in this era.
900-
**/
901-
AlreadyUnbonding: AugmentedError<ApiType>;
902898
/**
903899
* The pools state cannot be changed.
904900
**/
@@ -911,7 +907,7 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
911907
* Some error occurred that should never happen. This should be reported to the
912908
* maintainers.
913909
**/
914-
DefensiveError: AugmentedError<ApiType>;
910+
Defensive: AugmentedError<ApiType>;
915911
/**
916912
* The caller does not have adequate permissions.
917913
**/
@@ -921,10 +917,6 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
921917
* anymore to, for example, collect rewards).
922918
**/
923919
FullyUnbonding: AugmentedError<ApiType>;
924-
/**
925-
* The pool has insufficient balance to bond as a nominator.
926-
**/
927-
InsufficientBond: AugmentedError<ApiType>;
928920
/**
929921
* Too many members in the pool or system.
930922
**/
@@ -1855,6 +1847,10 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
18551847
* Not a member.
18561848
**/
18571849
NotMember: AugmentedError<ApiType>;
1850+
/**
1851+
* Too many members.
1852+
**/
1853+
TooManyMembers: AugmentedError<ApiType>;
18581854
/**
18591855
* Generic error
18601856
**/
@@ -1891,6 +1887,11 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/errors.ts' {
18911887
[key: string]: AugmentedError<ApiType>;
18921888
};
18931889
treasury: {
1890+
/**
1891+
* The spend origin is valid but the amount it is allowed to spend is lower than the
1892+
* amount to be spent.
1893+
**/
1894+
InsufficientPermission: AugmentedError<ApiType>;
18941895
/**
18951896
* Proposer's balance is too low.
18961897
**/

api-augment/kusama/events.ts

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
22
/* eslint-disable */
33

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

11-
declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
11+
declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
1212
export interface AugmentedEvents<ApiType extends ApiTypes> {
1313
auctions: {
1414
/**
@@ -293,6 +293,10 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
293293
* A proposal preimage was removed and used (the deposit was returned).
294294
**/
295295
PreimageUsed: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128], { proposalHash: H256, provider: AccountId32, deposit: u128 }>;
296+
/**
297+
* A proposal got canceled.
298+
**/
299+
ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], { propIndex: u32 }>;
296300
/**
297301
* A motion has been proposed by a public account.
298302
**/
@@ -554,6 +558,10 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
554558
* A payout has been made to a member.
555559
**/
556560
PaidOut: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, payout: u128], { member: AccountId32, poolId: u32, payout: u128 }>;
561+
/**
562+
* The active balance of pool `pool_id` has been slashed to `balance`.
563+
**/
564+
PoolSlashed: AugmentedEvent<ApiType, [poolId: u32, balance: u128], { poolId: u32, balance: u128 }>;
557565
/**
558566
* The roles of a pool have been updated to the given new roles. Note that the depositor
559567
* can never change.
@@ -565,12 +573,31 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
565573
StateChanged: AugmentedEvent<ApiType, [poolId: u32, newState: PalletNominationPoolsPoolState], { poolId: u32, newState: PalletNominationPoolsPoolState }>;
566574
/**
567575
* A member has unbonded from their pool.
576+
*
577+
* - `balance` is the corresponding balance of the number of points that has been
578+
* requested to be unbonded (the argument of the `unbond` transaction) from the bonded
579+
* pool.
580+
* - `points` is the number of points that are issued as a result of `balance` being
581+
* dissolved into the corresponding unbonding pool.
582+
*
583+
* In the absence of slashing, these values will match. In the presence of slashing, the
584+
* number of points that are issued in the unbonding pool will be less than the amount
585+
* requested to be unbonded.
586+
**/
587+
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128], { member: AccountId32, poolId: u32, balance: u128, points: u128 }>;
588+
/**
589+
* The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
568590
**/
569-
Unbonded: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, amount: u128], { member: AccountId32, poolId: u32, amount: u128 }>;
591+
UnbondingPoolSlashed: AugmentedEvent<ApiType, [poolId: u32, era: u32, balance: u128], { poolId: u32, era: u32, balance: u128 }>;
570592
/**
571593
* A member has withdrawn from their pool.
594+
*
595+
* The given number of `points` have been dissolved in return of `balance`.
596+
*
597+
* Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance
598+
* will be 1.
572599
**/
573-
Withdrawn: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, amount: u128], { member: AccountId32, poolId: u32, amount: u128 }>;
600+
Withdrawn: AugmentedEvent<ApiType, [member: AccountId32, poolId: u32, balance: u128, points: u128], { member: AccountId32, poolId: u32, balance: u128, points: u128 }>;
574601
/**
575602
* Generic event
576603
**/
@@ -1112,6 +1139,17 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
11121139
**/
11131140
[key: string]: AugmentedEvent<ApiType>;
11141141
};
1142+
transactionPayment: {
1143+
/**
1144+
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
1145+
* has been paid by `who`.
1146+
**/
1147+
TransactionFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128], { who: AccountId32, actualFee: u128, tip: u128 }>;
1148+
/**
1149+
* Generic event
1150+
**/
1151+
[key: string]: AugmentedEvent<ApiType>;
1152+
};
11151153
treasury: {
11161154
/**
11171155
* Some funds have been allocated.
@@ -1137,6 +1175,10 @@ declare module 'https://deno.land/x/polkadot@0.0.0-9/api-base/types/events.ts' {
11371175
* Spending has finished; this is the amount that rolls over until next spend.
11381176
**/
11391177
Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;
1178+
/**
1179+
* A new spend proposal has been approved.
1180+
**/
1181+
SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], { proposalIndex: u32, amount: u128, beneficiary: AccountId32 }>;
11401182
/**
11411183
* We have ended a spend period and will now allocate funds.
11421184
**/

0 commit comments

Comments
 (0)