From 98c8240457670e6200b0759e115f00ff25df8515 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 28 Sep 2020 07:05:01 +0000 Subject: [PATCH] [CI Skip] release/stable 2.0.1 skip-checks: true --- lerna.json | 2 +- package.json | 2 +- packages/api-contract/package.json | 8 +- packages/api-derive/package.json | 10 +- packages/api/package.json | 14 +- packages/api/src/augment/consts.ts | 25 +- packages/api/src/augment/query.ts | 30 ++- packages/api/src/augment/tx.ts | 375 +++++++++++++++-------------- packages/metadata/package.json | 6 +- packages/rpc-core/package.json | 8 +- packages/rpc-provider/package.json | 6 +- packages/typegen/package.json | 10 +- packages/types-known/package.json | 4 +- packages/types/package.json | 4 +- yarn.lock | 66 ++--- 15 files changed, 315 insertions(+), 255 deletions(-) diff --git a/lerna.json b/lerna.json index 649efd84ca..d3f022646e 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "2.0.0" + "version": "2.0.1" } diff --git a/package.json b/package.json index 0bbb8f0090..a927872e72 100644 --- a/package.json +++ b/package.json @@ -38,5 +38,5 @@ "typedoc-plugin-markdown": "^3.0.2", "typedoc-plugin-no-inherit": "^1.2.0" }, - "version": "2.0.0" + "version": "2.0.1" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index f3c19d9410..7f87c70381 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "2.0.0", + "version": "2.0.1", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api": "2.0.0", - "@polkadot/rpc-core": "2.0.0", - "@polkadot/types": "2.0.0", + "@polkadot/api": "2.0.1", + "@polkadot/rpc-core": "2.0.1", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "bn.js": "^5.1.3", "rxjs": "^6.6.3" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 36a59e6e36..63aff4ff00 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "2.0.0", + "version": "2.0.1", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api": "2.0.0", - "@polkadot/rpc-core": "2.0.0", - "@polkadot/rpc-provider": "2.0.0", - "@polkadot/types": "2.0.0", + "@polkadot/api": "2.0.1", + "@polkadot/rpc-core": "2.0.1", + "@polkadot/rpc-provider": "2.0.1", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", "bn.js": "^5.1.3", diff --git a/packages/api/package.json b/packages/api/package.json index 145331b5fe..d7eb0d0a4e 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "2.0.0", + "version": "2.0.1", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,13 +27,13 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/api-derive": "2.0.0", + "@polkadot/api-derive": "2.0.1", "@polkadot/keyring": "^3.5.1", - "@polkadot/metadata": "2.0.0", - "@polkadot/rpc-core": "2.0.0", - "@polkadot/rpc-provider": "2.0.0", - "@polkadot/types": "2.0.0", - "@polkadot/types-known": "2.0.0", + "@polkadot/metadata": "2.0.1", + "@polkadot/rpc-core": "2.0.1", + "@polkadot/rpc-provider": "2.0.1", + "@polkadot/types": "2.0.1", + "@polkadot/types-known": "2.0.1", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", "bn.js": "^5.1.3", diff --git a/packages/api/src/augment/consts.ts b/packages/api/src/augment/consts.ts index 2246e0040b..71189d6ddb 100644 --- a/packages/api/src/augment/consts.ts +++ b/packages/api/src/augment/consts.ts @@ -374,10 +374,31 @@ declare module '@polkadot/api/types/consts' { }; treasury: { [key: string]: Codec; + /** + * Percentage of the curator fee that will be reserved upfront as deposit for bounty curator. + **/ + bountyCuratorDeposit: Permill & AugmentedConst; + /** + * The amount held on deposit for placing a bounty proposal. + **/ + bountyDepositBase: BalanceOf & AugmentedConst; + /** + * The delay period for which a bounty beneficiary need to wait before claim the payout. + **/ + bountyDepositPayoutDelay: BlockNumber & AugmentedConst; + bountyValueMinimum: BalanceOf & AugmentedConst; /** * Percentage of spare funds (if any) that are burnt per spend period. **/ burn: Permill & AugmentedConst; + /** + * The amount held on deposit per byte within the tip report reason or bounty description. + **/ + dataDepositPerByte: BalanceOf & AugmentedConst; + /** + * Maximum acceptable reason length. + **/ + maximumReasonLength: u32 & AugmentedConst; /** * The treasury's module id, used for deriving its sovereign account ID. **/ @@ -407,10 +428,6 @@ declare module '@polkadot/api/types/consts' { * The amount held on deposit for placing a tip report. **/ tipReportDepositBase: BalanceOf & AugmentedConst; - /** - * The amount held on deposit per byte within the tip report reason. - **/ - tipReportDepositPerByte: BalanceOf & AugmentedConst; }; vesting: { [key: string]: Codec; diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index 25accf7c7a..0bdd014f43 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -24,7 +24,7 @@ import { Keys, SessionIndex } from '@polkadot/types/interfaces/session'; import { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; import { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system'; -import { OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; +import { Bounty, BountyIndex, OpenTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; import { Multiplier } from '@polkadot/types/interfaces/txpayment'; import { Multisig } from '@polkadot/types/interfaces/utility'; import { VestingInfo } from '@polkadot/types/interfaces/vesting'; @@ -173,8 +173,7 @@ declare module '@polkadot/api/types/storage' { **/ members: AugmentedQuery Observable>> & QueryableStorageEntry; /** - * The member who provides the default vote for any other members that do not vote before - * the timeout. If None, then no member has that privilege. + * The prime member that helps determine the default vote behavior in case of absentations. **/ prime: AugmentedQuery Observable>> & QueryableStorageEntry; /** @@ -288,7 +287,7 @@ declare module '@polkadot/api/types/storage' { **/ members: AugmentedQuery Observable>>> & QueryableStorageEntry; /** - * The current runners_up. Sorted based on low to high merit (worse to best runner). + * The current runners_up. Sorted based on low to high merit (worse to best). **/ runnersUp: AugmentedQuery Observable>>> & QueryableStorageEntry; /** @@ -860,6 +859,10 @@ declare module '@polkadot/api/types/storage' { * Hash of the previous block. **/ parentHash: AugmentedQuery Observable> & QueryableStorageEntry; + /** + * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not. + **/ + upgradedToU32RefCount: AugmentedQuery Observable> & QueryableStorageEntry; }; technicalCommittee: { [key: string]: QueryableStorageEntry; @@ -868,8 +871,7 @@ declare module '@polkadot/api/types/storage' { **/ members: AugmentedQuery Observable>> & QueryableStorageEntry; /** - * The member who provides the default vote for any other members that do not vote before - * the timeout. If None, then no member has that privilege. + * The prime member that helps determine the default vote behavior in case of absentations. **/ prime: AugmentedQuery Observable>> & QueryableStorageEntry; /** @@ -922,6 +924,22 @@ declare module '@polkadot/api/types/storage' { * Proposal indices that have been approved but not yet awarded. **/ approvals: AugmentedQuery Observable>> & QueryableStorageEntry; + /** + * Bounties that have been made. + **/ + bounties: AugmentedQuery Observable>> & QueryableStorageEntry; + /** + * Bounty indices that have been approved but not yet funded. + **/ + bountyApprovals: AugmentedQuery Observable>> & QueryableStorageEntry; + /** + * Number of bounty proposals that have been made. + **/ + bountyCount: AugmentedQuery Observable> & QueryableStorageEntry; + /** + * The description of each bounty. + **/ + bountyDescriptions: AugmentedQuery Observable>> & QueryableStorageEntry; /** * Number of proposals that have been made. **/ diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index 906b57337e..e1100e09b7 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -20,6 +20,7 @@ import { Keys } from '@polkadot/types/interfaces/session'; import { SocietyJudgement } from '@polkadot/types/interfaces/society'; import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; import { Key } from '@polkadot/types/interfaces/system'; +import { BountyIndex } from '@polkadot/types/interfaces/treasury'; import { Timepoint } from '@polkadot/types/interfaces/utility'; import { VestingInfo } from '@polkadot/types/interfaces/vesting'; import { ApiTypes, SubmittableExtrinsic } from '@polkadot/api/types'; @@ -312,6 +313,34 @@ declare module '@polkadot/api/types/submittable' { }; democracy: { [key: string]: SubmittableExtrinsicFunction; + /** + * Permanently place a proposal into the blacklist. This prevents it from ever being + * proposed again. + * + * If called on a queued public or external proposal, then this will result in it being + * removed. If the `ref_index` supplied is an active referendum with the proposal hash, + * then it will be cancelled. + * + * The dispatch origin of this call must be `BlacklistOrigin`. + * + * - `proposal_hash`: The proposal hash to blacklist permanently. + * - `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be + * cancelled. + * + * Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a + * reasonable value). + **/ + blacklist: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, maybeRefIndex: Option | null | object | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Remove a proposal. + * + * The dispatch origin of this call must be `CancelProposalOrigin`. + * + * - `prop_index`: The index of the proposal to cancel. + * + * Weight: `O(p)` where `p = PublicProps::::decode_len()` + **/ + cancelProposal: AugmentedSubmittable<(propIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Cancel a proposal queued for enactment. * @@ -319,11 +348,7 @@ declare module '@polkadot/api/types/submittable' { * * - `which`: The index of the referendum to cancel. * - * # - * - `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`. - * - Db reads: `scheduler lookup`, scheduler agenda` - * - Db writes: `scheduler lookup`, scheduler agenda` - * # + * Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`. **/ cancelQueued: AugmentedSubmittable<(which: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -333,10 +358,7 @@ declare module '@polkadot/api/types/submittable' { * * - `ref_index`: The index of the referendum to cancel. * - * # - * - Complexity: `O(1)`. - * - Db writes: `ReferendumInfoOf` - * # + * # Weight: `O(1)`. **/ cancelReferendum: AugmentedSubmittable<(refIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -344,10 +366,7 @@ declare module '@polkadot/api/types/submittable' { * * The dispatch origin of this call must be _Root_. * - * # - * - `O(1)`. - * - Db writes: `PublicProps` - * # + * Weight: `O(1)`. **/ clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic>; /** @@ -369,14 +388,8 @@ declare module '@polkadot/api/types/submittable' { * * Emits `Delegated`. * - * # - * - Complexity: `O(R)` where R is the number of referendums the voter delegating to has + * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. - * - Db reads: 3*`VotingOf`, `origin account locks` - * - Db writes: 3*`VotingOf`, `origin account locks` - * - Db reads per votes: `ReferendumInfoOf` - * - Db writes per votes: `ReferendumInfoOf` - * # **/ delegate: AugmentedSubmittable<(to: AccountId | string | Uint8Array, conviction: Conviction | 'None'|'Locked1x'|'Locked2x'|'Locked3x'|'Locked4x'|'Locked5x'|'Locked6x' | number | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -387,11 +400,7 @@ declare module '@polkadot/api/types/submittable' { * * -`ref_index`: The index of the referendum to cancel. * - * # - * - Complexity: `O(1)`. - * - Db reads: `ReferendumInfoOf`, `Cancellations` - * - Db writes: `ReferendumInfoOf`, `Cancellations` - * # + * Weight: `O(1)`. **/ emergencyCancel: AugmentedSubmittable<(refIndex: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -406,12 +415,8 @@ declare module '@polkadot/api/types/submittable' { * * - `proposal_hash`: The preimage hash of the proposal. * - * # - * - Complexity `O(V)` with V number of vetoers in the blacklist of proposal. + * Weight: `O(V)` with V number of vetoers in the blacklist of proposal. * Decoding vec of length V. Charged as maximum - * - Db reads: `NextExternal`, `Blacklist` - * - Db writes: `NextExternal` - * # **/ externalPropose: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -425,10 +430,7 @@ declare module '@polkadot/api/types/submittable' { * Unlike `external_propose`, blacklisting has no effect on this and it may replace a * pre-scheduled `external_propose` call. * - * # - * - Complexity: `O(1)` - * - Db write: `NextExternal` - * # + * Weight: `O(1)` **/ externalProposeDefault: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -442,10 +444,7 @@ declare module '@polkadot/api/types/submittable' { * Unlike `external_propose`, blacklisting has no effect on this and it may replace a * pre-scheduled `external_propose` call. * - * # - * - Complexity: `O(1)` - * - Db write: `NextExternal` - * # + * Weight: `O(1)` **/ externalProposeMajority: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -463,12 +462,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `Started`. * - * # - * - Complexity: `O(1)` - * - Db reads: `NextExternal`, `ReferendumCount` - * - Db writes: `NextExternal`, `ReferendumCount`, `ReferendumInfoOf` - * - Base Weight: 30.1 µs - * # + * Weight: `O(1)` **/ fastTrack: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, votingPeriod: BlockNumber | AnyNumber | Uint8Array, delay: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -483,11 +477,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `PreimageNoted`. * - * # - * - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit). - * - Db reads: `Preimages` - * - Db writes: `Preimages` - * # + * Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit). **/ noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -504,11 +494,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `PreimageNoted`. * - * # - * - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit). - * - Db reads: `Preimages` - * - Db writes: `Preimages` - * # + * Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit). **/ notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -526,11 +512,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `Proposed`. * - * # - * - Complexity: `O(1)` - * - Db reads: `PublicPropCount`, `PublicProps` - * - Db writes: `PublicPropCount`, `PublicProps`, `DepositOf` - * # + * Weight: `O(p)` **/ propose: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -548,11 +530,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `PreimageReaped`. * - * # - * - Complexity: `O(D)` where D is length of proposal. - * - Db reads: `Preimages`, provider account data - * - Db writes: `Preimages` provider account data - * # + * Weight: `O(D)` where D is length of proposal. **/ reapPreimage: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, proposalLenUpperBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -569,12 +547,8 @@ declare module '@polkadot/api/types/submittable' { * referendum `index`. * - `index`: The index of referendum of the vote to be removed. * - * # - * - `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. - * - Db reads: `ReferendumInfoOf`, `VotingOf` - * - Db writes: `ReferendumInfoOf`, `VotingOf` - * # **/ removeOtherVote: AugmentedSubmittable<(target: AccountId | string | Uint8Array, index: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -603,12 +577,8 @@ declare module '@polkadot/api/types/submittable' { * * - `index`: The index of referendum of the vote to be removed. * - * # - * - `O(R + log R)` where R is the number of referenda that `target` has voted on. + * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on. * Weight is calculated for the maximum number of vote. - * - Db reads: `ReferendumInfoOf`, `VotingOf` - * - Db writes: `ReferendumInfoOf`, `VotingOf` - * # **/ removeVote: AugmentedSubmittable<(index: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -621,11 +591,7 @@ declare module '@polkadot/api/types/submittable' { * - `seconds_upper_bound`: an upper bound on the current number of seconds on this * proposal. Extrinsic is weighted according to this value with no refund. * - * # - * - Complexity: `O(S)` where S is the number of seconds a proposal already has. - * - Db reads: `DepositOf` - * - Db writes: `DepositOf` - * # + * Weight: `O(S)` where S is the number of seconds a proposal already has. **/ second: AugmentedSubmittable<(proposal: Compact | AnyNumber | Uint8Array, secondsUpperBound: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** @@ -639,14 +605,8 @@ declare module '@polkadot/api/types/submittable' { * * Emits `Undelegated`. * - * # - * - Complexity: `O(R)` where R is the number of referendums the voter delegating to has + * Weight: `O(R)` where R is the number of referendums the voter delegating to has * voted on. Weight is charged as if maximum votes. - * - Db reads: 2*`VotingOf` - * - Db writes: 2*`VotingOf` - * - Db reads per votes: `ReferendumInfoOf` - * - Db writes per votes: `ReferendumInfoOf` - * # **/ undelegate: AugmentedSubmittable<() => SubmittableExtrinsic>; /** @@ -656,11 +616,7 @@ declare module '@polkadot/api/types/submittable' { * * - `target`: The account to remove the lock on. * - * # - * - Complexity `O(R)` with R number of vote of target. - * - Db reads: `VotingOf`, `balances locks`, `target account` - * - Db writes: `VotingOf`, `balances locks`, `target account` - * # + * Weight: `O(R)` with R number of vote of target. **/ unlock: AugmentedSubmittable<(target: AccountId | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -672,12 +628,7 @@ declare module '@polkadot/api/types/submittable' { * * Emits `Vetoed`. * - * # - * - Complexity: `O(V + log(V))` where V is number of `existing vetoers` - * Performs a binary search on `existing_vetoers` which should not be very large. - * - Db reads: `NextExternal`, `Blacklist` - * - Db writes: `NextExternal`, `Blacklist` - * # + * Weight: `O(V + log(V))` where V is number of `existing vetoers` **/ vetoExternal: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic>; /** @@ -689,12 +640,7 @@ declare module '@polkadot/api/types/submittable' { * - `ref_index`: The index of the referendum to vote for. * - `vote`: The vote configuration. * - * # - * - Complexity: `O(R)` where R is the number of referendums the voter has voted on. - * weight is charged as if maximum votes. - * - Db reads: `ReferendumInfoOf`, `VotingOf`, `balances locks` - * - Db writes: `ReferendumInfoOf`, `VotingOf`, `balances locks` - * # + * Weight: `O(R)` where R is the number of referendums the voter has voted on. **/ vote: AugmentedSubmittable<(refIndex: Compact | AnyNumber | Uint8Array, vote: AccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic>; }; @@ -773,8 +719,6 @@ declare module '@polkadot/api/types/submittable' { * State writes: * - RunnersUp (remove_and_replace_member), * - [AccountData(who) (unreserve)] - * - * Weight note: The call into changeMembers need to be accounted for. * **/ renounceCandidacy: AugmentedSubmittable<(renouncing: Renouncing | { Member: any } | { RunnerUp: any } | { Candidate: any } | string | Uint8Array) => SubmittableExtrinsic>; @@ -821,7 +765,6 @@ declare module '@polkadot/api/types/submittable' { * Base weight = 33.33 µs * Complexity of candidate_count: 0.375 µs * State reads: - * - Candidates.len() * - Candidates * - Members * - RunnersUp @@ -852,6 +795,7 @@ declare module '@polkadot/api/types/submittable' { * State reads: * - Candidates.len() + Members.len() + RunnersUp.len() * - Voting (is_voter) + * - Lock * - [AccountBalance(who) (unreserve + total_balance)] * State writes: * - Voting @@ -1169,9 +1113,8 @@ declare module '@polkadot/api/types/submittable' { [key: string]: SubmittableExtrinsicFunction; /** * # - * - Complexity: `O(K + E)` where K is length of `Keys` and E is length of - * `Heartbeat.network_state.external_address` - * + * - Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) + * and E is length of `heartbeat.network_state.external_address` * - `O(K)`: decoding of length `K` * - `O(E)`: decoding/encoding of length `E` * - DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`, @@ -1200,7 +1143,6 @@ declare module '@polkadot/api/types/submittable' { * - One reserve operation. * - One event. * ------------------- - * - Base Weight: 28.69 µs * - DB Weight: 1 Read/Write (Accounts) * # **/ @@ -1223,7 +1165,6 @@ declare module '@polkadot/api/types/submittable' { * - Up to one reserve operation. * - One event. * ------------------- - * - Base Weight: 26.83 µs * - DB Weight: * - Reads: Indices Accounts, System Account (original owner) * - Writes: Indices Accounts, System Account (original owner) @@ -1247,7 +1188,6 @@ declare module '@polkadot/api/types/submittable' { * - One reserve operation. * - One event. * ------------------- - * - Base Weight: 25.53 µs * - DB Weight: 1 Read/Write (Accounts) * # **/ @@ -1268,7 +1208,6 @@ declare module '@polkadot/api/types/submittable' { * - Up to one slash operation. * - One event. * ------------------- - * - Base Weight: 30.86 µs * - DB Weight: 1 Read/Write (Accounts) * # **/ @@ -1290,7 +1229,6 @@ declare module '@polkadot/api/types/submittable' { * - One transfer operation. * - One event. * ------------------- - * - Base Weight: 33.74 µs * - DB Weight: * - Reads: Indices Accounts, System Account (recipient) * - Writes: Indices Accounts, System Account (recipient) @@ -1333,9 +1271,6 @@ declare module '@polkadot/api/types/submittable' { * deposit taken for its lifetime of * `DepositBase + threshold * DepositFactor`. * ---------------------------------- - * - Base Weight: - * - Create: 44.71 + 0.088 * S - * - Approve: 31.48 + 0.116 * S * - DB Weight: * - Read: Multisig Storage, [Caller Account] * - Write: Multisig Storage, [Caller Account] @@ -1384,11 +1319,6 @@ declare module '@polkadot/api/types/submittable' { * deposit taken for its lifetime of * `DepositBase + threshold * DepositFactor`. * ------------------------------- - * - Base Weight: - * - Create: 41.89 + 0.118 * S + .002 * Z µs - * - Create w/ Store: 53.57 + 0.119 * S + .003 * Z µs - * - Approve: 31.39 + 0.136 * S + .002 * Z µs - * - Complete: 39.94 + 0.26 * S + .002 * Z µs * - DB Weight: * - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`) * - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`) @@ -1410,7 +1340,6 @@ declare module '@polkadot/api/types/submittable' { * # * O(Z + C) where Z is the length of the call and C its execution weight. * ------------------------------- - * - Base Weight: 33.72 + 0.002 * Z µs * - DB Weight: None * - Plus Call Weight * # @@ -1439,7 +1368,6 @@ declare module '@polkadot/api/types/submittable' { * - I/O: 1 read `O(S)`, one remove. * - Storage: removes one item. * ---------------------------------- - * - Base Weight: 36.07 + 0.124 * S * - DB Weight: * - Read: Multisig Storage, [Caller Account], Refund Account, Calls * - Write: Multisig Storage, [Caller Account], Refund Account, Calls @@ -2288,7 +2216,7 @@ declare module '@polkadot/api/types/submittable' { * NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned * unless the `origin` falls below _existential deposit_ and gets removed as dust. * ------------------ - * Base Weight: 67.87 µs + * Weight: O(1) * DB Weight: * - Read: Bonded, Ledger, [Origin Account], Current Era, History Depth, Locks * - Write: Bonded, Payee, [Origin Account], Locks, Ledger @@ -2313,7 +2241,6 @@ declare module '@polkadot/api/types/submittable' { * - O(1). * - One DB entry. * ------------ - * Base Weight: 54.88 µs * DB Weight: * - Read: Era Election Status, Bonded, Ledger, [Origin Account], Locks * - Write: [Origin Account], Locks, Ledger @@ -2331,7 +2258,6 @@ declare module '@polkadot/api/types/submittable' { * Complexity: O(U + S) * with U unapplied slashes weighted with U=1000 * and S is the number of slash indices to be canceled. - * - Base: 5870 + 34.61 * S µs * - Read: Unapplied Slashes * - Write: Unapplied Slashes * # @@ -2350,7 +2276,7 @@ declare module '@polkadot/api/types/submittable' { * - Contains one read. * - Writes are limited to the `origin` account key. * -------- - * Base Weight: 16.53 µs + * Weight: O(1) * DB Weight: * - Read: EraElectionStatus, Ledger * - Write: Validators, Nominators @@ -2365,7 +2291,7 @@ declare module '@polkadot/api/types/submittable' { * * # * - No arguments. - * - Base Weight: 1.959 µs + * - Weight: O(1) * - Write ForceEra * # **/ @@ -2376,7 +2302,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * - Base Weight: 2.05 µs + * - Weight: O(1) * - Write: ForceEra * # **/ @@ -2388,7 +2314,7 @@ declare module '@polkadot/api/types/submittable' { * * # * - No arguments. - * - Base Weight: 1.857 µs + * - Weight: O(1) * - Write: ForceEra * # **/ @@ -2400,7 +2326,6 @@ declare module '@polkadot/api/types/submittable' { * * # * O(S) where S is the number of slashing spans to be removed - * Base Weight: 53.07 + 2.365 * S µs * Reads: Bonded, Slashing Spans, Account, Locks * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Account, Locks * Writes Each: SpanSlash * S @@ -2413,8 +2338,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * Base Weight: 1.717 µs - * Read/Write: Validator Count + * Same as [`set_validator_count`]. * # **/ increaseValidatorCount: AugmentedSubmittable<(additional: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -2432,7 +2356,7 @@ declare module '@polkadot/api/types/submittable' { * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS). * - Both the reads and writes follow a similar pattern. * --------- - * Base Weight: 22.34 + .36 * N µs + * Weight: O(N) * where N is the number of targets * DB Weight: * - Reads: Era Election Status, Ledger, Current Era @@ -2457,14 +2381,17 @@ declare module '@polkadot/api/types/submittable' { * - Contains a limited number of reads and writes. * ----------- * N is the Number of payouts for the validator (including the validator) - * Base Weight: - * - Reward Destination Staked: 110 + 54.2 * N µs (Median Slopes) - * - Reward Destination Controller (Creating): 120 + 41.95 * N µs (Median Slopes) + * Weight: + * - Reward Destination Staked: O(N) + * - Reward Destination Controller (Creating): O(N) * DB Weight: * - Read: EraElectionStatus, CurrentEra, HistoryDepth, ErasValidatorReward, * ErasStakersClipped, ErasRewardPoints, ErasValidatorPrefs (8 items) * - Read Each: Bonded, Ledger, Payee, Locks, System Account (5 items) * - Write Each: System Account, Locks, Ledger (3 items) + * + * NOTE: weights are assuming that payouts are made to alive stash account (Staked). + * Paying even a dead controller is cheaper weight-wise. We don't do any refunds here. * # **/ payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -2479,7 +2406,6 @@ declare module '@polkadot/api/types/submittable' { * * # * Complexity: O(S) where S is the number of slashing spans on the account. - * Base Weight: 75.94 + 2.396 * S µs * DB Weight: * - Reads: Stash Account, Bonded, Slashing Spans, Locks * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, Stash Account, Locks @@ -2498,7 +2424,6 @@ declare module '@polkadot/api/types/submittable' { * - Bounded by `MAX_UNLOCKING_CHUNKS`. * - Storage changes: Can't increase storage, only decrease it. * --------------- - * - Base Weight: 34.51 µs * .048 L µs * - DB Weight: * - Reads: EraElectionStatus, Ledger, Locks, [Origin Account] * - Writes: [Origin Account], Locks, Ledger @@ -2511,8 +2436,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * Base Weight: 1.717 µs - * Read/Write: Validator Count + * Same as [`set_validator_count`]. * # **/ scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -2528,7 +2452,7 @@ declare module '@polkadot/api/types/submittable' { * - Contains a limited number of reads. * - Writes are limited to the `origin` account key. * ---------- - * Base Weight: 25.22 µs + * Weight: O(1) * DB Weight: * - Read: Bonded, Ledger New Controller, Ledger Old Controller * - Write: Bonded, Ledger New Controller, Ledger Old Controller @@ -2550,7 +2474,7 @@ declare module '@polkadot/api/types/submittable' { * * # * - E: Number of history depths removed, i.e. 10 -> 7 = 3 - * - Base Weight: 29.13 * E µs + * - Weight: O(E) * - DB Weight: * - Reads: Current Era, History Depth * - Writes: History Depth @@ -2566,11 +2490,10 @@ declare module '@polkadot/api/types/submittable' { * * # * - O(V) - * - Base Weight: 2.208 + .006 * V µs * - Write: Invulnerables * # **/ - setInvulnerables: AugmentedSubmittable<(validators: Vec | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic>; + setInvulnerables: AugmentedSubmittable<(invulnerables: Vec | (AccountId | string | Uint8Array)[]) => SubmittableExtrinsic>; /** * (Re-)set the payment target for a controller. * @@ -2583,7 +2506,7 @@ declare module '@polkadot/api/types/submittable' { * - Contains a limited number of reads. * - Writes are limited to the `origin` account key. * --------- - * - Base Weight: 11.33 µs + * - Weight: O(1) * - DB Weight: * - Read: Ledger * - Write: Payee @@ -2596,7 +2519,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin must be Root. * * # - * Base Weight: 1.717 µs + * Weight: O(1) * Write: Validator Count * # **/ @@ -2647,7 +2570,9 @@ declare module '@polkadot/api/types/submittable' { * minimized (to ensure less variance) * * # - * See `crate::weight` module. + * The transaction is assumed to be the longest path, a better solution. + * - Initial solution is almost the same. + * - Worse solution is retraced in pre-dispatch-checks which sets its own weight. * # **/ submitElectionSolution: AugmentedSubmittable<(winners: Vec | (ValidatorIndex | AnyNumber | Uint8Array)[], compact: CompactAssignments | { votes1?: any; votes2?: any; votes3?: any; votes4?: any; votes5?: any; votes6?: any; votes7?: any; votes8?: any; votes9?: any; votes10?: any; votes11?: any; votes12?: any; votes13?: any; votes14?: any; votes15?: any; votes16?: any } | string | Uint8Array, score: ElectionScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic>; @@ -2691,10 +2616,10 @@ declare module '@polkadot/api/types/submittable' { * `withdraw_unbonded`. * - One DB entry. * ---------- - * Base Weight: 50.34 µs + * Weight: O(1) * DB Weight: - * - Read: Era Election Status, Ledger, Current Era, Locks, [Origin Account] - * - Write: [Origin Account], Locks, Ledger + * - Read: EraElectionStatus, Ledger, CurrentEra, Locks, BalanceOf Stash, + * - Write: Locks, Ledger, BalanceOf Stash, * **/ unbond: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -2711,7 +2636,7 @@ declare module '@polkadot/api/types/submittable' { * - Contains a limited number of reads. * - Writes are limited to the `origin` account key. * ----------- - * Base Weight: 17.13 µs + * Weight: O(1) * DB Weight: * - Read: Era Election Status, Ledger * - Write: Nominators, Validators @@ -2739,13 +2664,14 @@ declare module '@polkadot/api/types/submittable' { * - Writes are limited to the `origin` account key. * --------------- * Complexity O(S) where S is the number of slashing spans to remove - * Base Weight: - * Update: 50.52 + .028 * S µs + * Update: * - Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account] * - Writes: [Origin Account], Locks, Ledger - * Kill: 79.41 + 2.366 * S µs - * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin Account], Locks - * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, [Origin Account], Locks + * Kill: + * - Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin + * Account], Locks, BalanceOf stash + * - Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, + * [Origin Account], Locks, BalanceOf stash. * - Writes Each: SpanSlash * S * NOTE: Weight annotation is the kill scenario, we refund otherwise. * # @@ -3128,6 +3054,32 @@ declare module '@polkadot/api/types/submittable' { }; treasury: { [key: string]: SubmittableExtrinsicFunction; + /** + * Accept the curator role for a bounty. + * A deposit will be reserved from curator and refund upon successful payout. + * + * May only be called from the curator. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB change. + * # + **/ + acceptCurator: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Approve a bounty proposal. At a later time, the bounty will be funded and become active + * and the original deposit will be returned. + * + * May only be called from `T::ApproveOrigin`. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB change. + * # + **/ + approveBounty: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Approve a proposal. At a later time, the proposal will be allocated to the beneficiary * and the original deposit will be returned. @@ -3141,6 +3093,32 @@ declare module '@polkadot/api/types/submittable' { * # **/ approveProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Award bounty to a beneficiary account. The beneficiary will be able to claim the funds after a delay. + * + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to award. + * - `beneficiary`: The beneficiary account whom will receive the payout. + **/ + awardBounty: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array, beneficiary: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Claim the payout from an awarded bounty after payout delay. + * + * The dispatch origin for this call must be the beneficiary of this bounty. + * + * - `bounty_id`: Bounty ID to claim. + **/ + claimBounty: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Cancel a proposed or active bounty. All the funds will be sent to treasury and + * the curator deposit will be unreserved if possible. + * + * Only `T::RejectOrigin` is able to cancel a bounty. + * + * - `bounty_id`: Bounty ID to cancel. + **/ + closeBounty: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Close and payout a tip. * @@ -3161,6 +3139,42 @@ declare module '@polkadot/api/types/submittable' { * # **/ closeTip: AugmentedSubmittable<(hash: Hash | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Extend the expiry time of an active bounty. + * + * The dispatch origin for this call must be the curator of this bounty. + * + * - `bounty_id`: Bounty ID to extend. + * - `remark`: additional information. + **/ + extendBountyExpiry: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array, remark: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Propose a new bounty. + * + * The dispatch origin for this call must be _Signed_. + * + * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as + * `DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval, + * or slashed when rejected. + * + * - `curator`: The curator account whom will manage this bounty. + * - `fee`: The curator fee. + * - `value`: The total payment amount of this bounty, curator fee included. + * - `description`: The description of this bounty. + **/ + proposeBounty: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, description: Bytes | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Assign a curator to a funded bounty. + * + * May only be called from `T::ApproveOrigin`. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB change. + * # + **/ + proposeCurator: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array, curator: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array, fee: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Put forward a suggestion for spending. A deposit proportional to the value * is reserved and slashed if the proposal is rejected. It is returned once the @@ -3191,7 +3205,7 @@ declare module '@polkadot/api/types/submittable' { * The dispatch origin for this call must be _Signed_. * * Payment: `TipReportDepositBase` will be reserved from the origin account, as well as - * `TipReportDepositPerByte` for each byte in `reason`. + * `DataDepositPerByte` for each byte in `reason`. * * - `reason`: The reason for, or the thing that deserves, the tip; generally this will be * a UTF-8-encoded URL. @@ -3202,8 +3216,8 @@ declare module '@polkadot/api/types/submittable' { * # * - Complexity: `O(R)` where `R` length of `reason`. * - encoding and hashing of 'reason' - * - DbReads: `Reasons`, `Tips`, `who account data` - * - DbWrites: `Tips`, `who account data` + * - DbReads: `Reasons`, `Tips` + * - DbWrites: `Reasons`, `Tips` * # **/ reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId | string | Uint8Array) => SubmittableExtrinsic>; @@ -3256,7 +3270,7 @@ declare module '@polkadot/api/types/submittable' { * - DbWrites: `Tips` * # **/ - tip: AugmentedSubmittable<(hash: Hash | string | Uint8Array, tipValue: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + tip: AugmentedSubmittable<(hash: Hash | string | Uint8Array, tipValue: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Give a tip for something new; no finder's fee will be taken. * @@ -3281,7 +3295,30 @@ declare module '@polkadot/api/types/submittable' { * - DbWrites: `Reasons`, `Tips` * # **/ - tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId | string | Uint8Array, tipValue: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId | string | Uint8Array, tipValue: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Unassign curator from a bounty. + * + * This function can only be called by the `RejectOrigin` a signed origin. + * + * If this function is called by the `RejectOrigin`, we assume that the curator is malicious + * or inactive. As a result, we will slash the curator when possible. + * + * If the origin is the curator, we take this as a sign they are unable to do their job and + * they willingly give up. We could slash them, but for now we allow them to recover their + * deposit and exit without issue. (We may want to change this if it is abused.) + * + * Finally, the origin can be anyone if and only if the curator is "inactive". This allows + * anyone in the community to call out that a curator is not doing their due diligence, and + * we should pick a new curator. In this case the curator should also be slashed. + * + * # + * - O(1). + * - Limited storage reads. + * - One DB change. + * # + **/ + unassignCurator: AugmentedSubmittable<(bountyId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; }; utility: { [key: string]: SubmittableExtrinsicFunction; @@ -3344,8 +3381,6 @@ declare module '@polkadot/api/types/submittable' { * - DbWeight: 4 Reads, 4 Writes * - Reads: Vesting Storage, Balances Locks, Target Account, Source Account * - Writes: Vesting Storage, Balances Locks, Target Account, Source Account - * - Benchmark: 100.3 + .365 * l µs (min square analysis) - * - Using 100 µs fixed. Assuming less than 50 locks on any user, else we may want factor in number of locks. * # **/ forceVestedTransfer: AugmentedSubmittable<(source: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array, target: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array, schedule: VestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic>; @@ -3362,10 +3397,6 @@ declare module '@polkadot/api/types/submittable' { * - DbWeight: 2 Reads, 2 Writes * - Reads: Vesting Storage, Balances Locks, [Sender Account] * - Writes: Vesting Storage, Balances Locks, [Sender Account] - * - Benchmark: - * - Unlocked: 48.76 + .048 * l µs (min square analysis) - * - Locked: 44.43 + .284 * l µs (min square analysis) - * - Using 50 µs fixed. Assuming less than 50 locks on any user, else we may want factor in number of locks. * # **/ vest: AugmentedSubmittable<() => SubmittableExtrinsic>; @@ -3384,10 +3415,6 @@ declare module '@polkadot/api/types/submittable' { * - DbWeight: 3 Reads, 3 Writes * - Reads: Vesting Storage, Balances Locks, Target Account * - Writes: Vesting Storage, Balances Locks, Target Account - * - Benchmark: - * - Unlocked: 44.3 + .294 * l µs (min square analysis) - * - Locked: 48.16 + .103 * l µs (min square analysis) - * - Using 50 µs fixed. Assuming less than 50 locks on any user, else we may want factor in number of locks. * # **/ vestOther: AugmentedSubmittable<(target: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array) => SubmittableExtrinsic>; @@ -3407,8 +3434,6 @@ declare module '@polkadot/api/types/submittable' { * - DbWeight: 3 Reads, 3 Writes * - Reads: Vesting Storage, Balances Locks, Target Account, [Sender Account] * - Writes: Vesting Storage, Balances Locks, Target Account, [Sender Account] - * - Benchmark: 100.3 + .365 * l µs (min square analysis) - * - Using 100 µs fixed. Assuming less than 50 locks on any user, else we may want factor in number of locks. * # **/ vestedTransfer: AugmentedSubmittable<(target: LookupSource | Address | AccountId | AccountIndex | LookupSource | string | Uint8Array, schedule: VestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic>; diff --git a/packages/metadata/package.json b/packages/metadata/package.json index bdc5f4a009..f69b89fd80 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "2.0.0", + "version": "2.0.1", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/types": "2.0.0", - "@polkadot/types-known": "2.0.0", + "@polkadot/types": "2.0.1", + "@polkadot/types-known": "2.0.1", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", "bn.js": "^5.1.3" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 2ef3c49ade..26af20db0f 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "2.0.0", + "version": "2.0.1", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "2.0.0", - "@polkadot/rpc-provider": "2.0.0", - "@polkadot/types": "2.0.0", + "@polkadot/metadata": "2.0.1", + "@polkadot/rpc-provider": "2.0.1", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "memoizee": "^0.4.14", "rxjs": "^6.6.3" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 3ab3ff2ad2..ce44212801 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "2.0.0", + "version": "2.0.1", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "2.0.0", - "@polkadot/types": "2.0.0", + "@polkadot/metadata": "2.0.1", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", "@polkadot/x-fetch": "^0.3.2", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 30c1ca1e3e..b57b249c64 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "2.0.0", + "version": "2.0.1", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.11.6", "@babel/register": "^7.11.5", "@babel/runtime": "^7.11.2", - "@polkadot/api": "2.0.0", - "@polkadot/metadata": "2.0.0", - "@polkadot/rpc-provider": "2.0.0", - "@polkadot/types": "2.0.0", + "@polkadot/api": "2.0.1", + "@polkadot/metadata": "2.0.1", + "@polkadot/rpc-provider": "2.0.1", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "handlebars": "^4.7.6", "websocket": "^1.0.32", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 51ca467536..aeb1fa3ea7 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "2.0.0", + "version": "2.0.1", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/types": "2.0.0", + "@polkadot/types": "2.0.1", "@polkadot/util": "^3.5.1", "bn.js": "^5.1.3" }, diff --git a/packages/types/package.json b/packages/types/package.json index 940e30e46e..b5e953765b 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "2.0.0", + "version": "2.0.1", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.11.2", - "@polkadot/metadata": "2.0.0", + "@polkadot/metadata": "2.0.1", "@polkadot/util": "^3.5.1", "@polkadot/util-crypto": "^3.5.1", "@types/bn.js": "^4.11.6", diff --git a/yarn.lock b/yarn.lock index cface95638..2e2fbb23b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2756,25 +2756,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": 2.0.0 - "@polkadot/rpc-core": 2.0.0 - "@polkadot/types": 2.0.0 + "@polkadot/api": 2.0.1 + "@polkadot/rpc-core": 2.0.1 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 bn.js: ^5.1.3 rxjs: ^6.6.3 languageName: unknown linkType: soft -"@polkadot/api-derive@2.0.0, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@2.0.1, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api": 2.0.0 + "@polkadot/api": 2.0.1 "@polkadot/keyring": ^3.5.1 - "@polkadot/rpc-core": 2.0.0 - "@polkadot/rpc-provider": 2.0.0 - "@polkadot/types": 2.0.0 + "@polkadot/rpc-core": 2.0.1 + "@polkadot/rpc-provider": 2.0.1 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 "@polkadot/util-crypto": ^3.5.1 bn.js: ^5.1.3 @@ -2783,18 +2783,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@2.0.0, @polkadot/api@workspace:packages/api": +"@polkadot/api@2.0.1, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/api-derive": 2.0.0 + "@polkadot/api-derive": 2.0.1 "@polkadot/keyring": ^3.5.1 - "@polkadot/metadata": 2.0.0 - "@polkadot/rpc-core": 2.0.0 - "@polkadot/rpc-provider": 2.0.0 - "@polkadot/types": 2.0.0 - "@polkadot/types-known": 2.0.0 + "@polkadot/metadata": 2.0.1 + "@polkadot/rpc-core": 2.0.1 + "@polkadot/rpc-provider": 2.0.1 + "@polkadot/types": 2.0.1 + "@polkadot/types-known": 2.0.1 "@polkadot/util": ^3.5.1 "@polkadot/util-crypto": ^3.5.1 bn.js: ^5.1.3 @@ -2910,43 +2910,43 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@2.0.0, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@2.0.1, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.5.1 - "@polkadot/types": 2.0.0 - "@polkadot/types-known": 2.0.0 + "@polkadot/types": 2.0.1 + "@polkadot/types-known": 2.0.1 "@polkadot/util": ^3.5.1 "@polkadot/util-crypto": ^3.5.1 bn.js: ^5.1.3 languageName: unknown linkType: soft -"@polkadot/rpc-core@2.0.0, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@2.0.1, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.5.1 - "@polkadot/metadata": 2.0.0 - "@polkadot/rpc-provider": 2.0.0 - "@polkadot/types": 2.0.0 + "@polkadot/metadata": 2.0.1 + "@polkadot/rpc-provider": 2.0.1 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 memoizee: ^0.4.14 rxjs: ^6.6.3 languageName: unknown linkType: soft -"@polkadot/rpc-provider@2.0.0, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@2.0.1, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.5.1 - "@polkadot/metadata": 2.0.0 - "@polkadot/types": 2.0.0 + "@polkadot/metadata": 2.0.1 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 "@polkadot/util-crypto": ^3.5.1 "@polkadot/x-fetch": ^0.3.2 @@ -2974,10 +2974,10 @@ __metadata: "@babel/core": ^7.11.6 "@babel/register": ^7.11.5 "@babel/runtime": ^7.11.2 - "@polkadot/api": 2.0.0 - "@polkadot/metadata": 2.0.0 - "@polkadot/rpc-provider": 2.0.0 - "@polkadot/types": 2.0.0 + "@polkadot/api": 2.0.1 + "@polkadot/metadata": 2.0.1 + "@polkadot/rpc-provider": 2.0.1 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 "@types/websocket": ^1.0.1 "@types/yargs": ^15.0.7 @@ -2993,25 +2993,25 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@2.0.0, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@2.0.1, @polkadot/types-known@workspace:packages/types-known": version: 0.0.0-use.local resolution: "@polkadot/types-known@workspace:packages/types-known" dependencies: "@babel/runtime": ^7.11.2 - "@polkadot/types": 2.0.0 + "@polkadot/types": 2.0.1 "@polkadot/util": ^3.5.1 "@types/bn.js": ^4.11.6 bn.js: ^5.1.3 languageName: unknown linkType: soft -"@polkadot/types@2.0.0, @polkadot/types@workspace:packages/types": +"@polkadot/types@2.0.1, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.11.2 "@polkadot/keyring": ^3.5.1 - "@polkadot/metadata": 2.0.0 + "@polkadot/metadata": 2.0.1 "@polkadot/util": ^3.5.1 "@polkadot/util-crypto": ^3.5.1 "@types/bn.js": ^4.11.6