From 7f1a3fa636e5a495d55de4a052fedebe37381c6c Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 11 Jun 2020 07:00:42 +0000 Subject: [PATCH] [CI Skip] release/beta 1.19.0-beta.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/query.ts | 52 +- packages/api/src/augment/tx.ts | 652 +++++++++--------- 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 +- .../types/src/interfaces/staking/types.ts | 1 + yarn.lock | 66 +- 15 files changed, 404 insertions(+), 441 deletions(-) diff --git a/lerna.json b/lerna.json index ca8f4e62f3..28e7bde116 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.19.0-beta.0" + "version": "1.19.0-beta.1" } diff --git a/package.json b/package.json index 63459ba194..779857c402 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,5 @@ "@vuepress/plugin-search": "^1.5.0", "copyfiles": "^2.3.0" }, - "version": "1.19.0-beta.0" + "version": "1.19.0-beta.1" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index b0b887beeb..cebabdab3a 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/api": "1.19.0-beta.0", - "@polkadot/rpc-core": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/api": "1.19.0-beta.1", + "@polkadot/rpc-core": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "bn.js": "^5.1.2", "rxjs": "^6.5.5" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index be93fca69e..c92f4331ac 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/api": "1.19.0-beta.0", - "@polkadot/rpc-core": "1.19.0-beta.0", - "@polkadot/rpc-provider": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/api": "1.19.0-beta.1", + "@polkadot/rpc-core": "1.19.0-beta.1", + "@polkadot/rpc-provider": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "@polkadot/util-crypto": "^2.14.0-beta.0", "bn.js": "^5.1.2", diff --git a/packages/api/package.json b/packages/api/package.json index 5e7e8b75aa..8f5b501c4e 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/api-derive": "1.19.0-beta.0", + "@polkadot/api-derive": "1.19.0-beta.1", "@polkadot/keyring": "^2.14.0-beta.0", - "@polkadot/metadata": "1.19.0-beta.0", - "@polkadot/rpc-core": "1.19.0-beta.0", - "@polkadot/rpc-provider": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", - "@polkadot/types-known": "1.19.0-beta.0", + "@polkadot/metadata": "1.19.0-beta.1", + "@polkadot/rpc-core": "1.19.0-beta.1", + "@polkadot/rpc-provider": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", + "@polkadot/types-known": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "@polkadot/util-crypto": "^2.14.0-beta.0", "bn.js": "^5.1.2", diff --git a/packages/api/src/augment/query.ts b/packages/api/src/augment/query.ts index c3ed7ceedf..b6c5abe297 100644 --- a/packages/api/src/augment/query.ts +++ b/packages/api/src/augment/query.ts @@ -10,18 +10,18 @@ import { AccountData, BalanceLock, ReleasesBalances } from '@polkadot/types/inte import { ProposalIndex, Votes } from '@polkadot/types/interfaces/collective'; import { AuthorityId } from '@polkadot/types/interfaces/consensus'; import { CodeHash, ContractInfo, PrefabWasmModule, Schedule } from '@polkadot/types/interfaces/contracts'; -import { PreimageStatus, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReleasesDemocracy, Voting } from '@polkadot/types/interfaces/democracy'; +import { PreimageStatus, PropIndex, Proposal, ReferendumIndex, ReferendumInfo, ReleasesDemocracy, Voting } from '@polkadot/types/interfaces/democracy'; import { VoteThreshold } from '@polkadot/types/interfaces/elections'; import { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; import { RegistrarInfo, Registration } from '@polkadot/types/interfaces/identity'; import { AuthIndex } from '@polkadot/types/interfaces/imOnline'; import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences'; import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery'; -import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, ValidatorId } from '@polkadot/types/interfaces/runtime'; +import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, ProxyType, ValidatorId } from '@polkadot/types/interfaces/runtime'; import { Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler'; import { Keys, SessionIndex } from '@polkadot/types/interfaces/session'; import { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; -import { ActiveEraInfo, ElectionResult, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, PhragmenScore, ReleasesStaking, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; +import { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, ReleasesStaking, 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 { Multiplier } from '@polkadot/types/interfaces/txpayment'; @@ -121,9 +121,6 @@ declare module '@polkadot/api/types/storage' { /** * The balance of an account. * - * NOTE: THIS MAY NEVER BE IN EXISTENCE AND YET HAVE A `total().is_zero()`. If the total - * is ever zero, then the entry *MUST* be removed. - * * NOTE: This is only used in the case that this module is used to store balances. **/ account: AugmentedQuery Observable> & QueryableStorageEntry; @@ -242,13 +239,6 @@ declare module '@polkadot/api/types/storage' { * The block number is the block at which it was deposited. **/ preimages: AugmentedQuery Observable>> & QueryableStorageEntry; - /** - * Who is able to vote for whom. Value is the fund-holding account, key is the - * vote-transaction-sending account. - * - * TWOX-NOTE: OK ― `AccountId` is a secure hash. - **/ - proxy: AugmentedQuery Observable>> & QueryableStorageEntry; /** * The number of (public) proposals that have been made so far. **/ @@ -398,7 +388,14 @@ declare module '@polkadot/api/types/storage' { /** * The lookup from index to account. **/ - accounts: AugmentedQuery Observable>>> & QueryableStorageEntry; + accounts: AugmentedQuery Observable>>> & QueryableStorageEntry; + }; + multisig: { + [index: string]: QueryableStorageEntry; + /** + * The set of open multisig operations. + **/ + multisigs: AugmentedQueryDoubleMap Observable>> & QueryableStorageEntry; }; offences: { [index: string]: QueryableStorageEntry; @@ -425,6 +422,14 @@ declare module '@polkadot/api/types/storage' { **/ reportsByKindIndex: AugmentedQuery Observable> & QueryableStorageEntry; }; + proxy: { + [index: string]: QueryableStorageEntry; + /** + * The set of account proxies. Maps the account which has delegated to the accounts + * which are being delegated to, together with the amount held on deposit. + **/ + proxies: AugmentedQuery Observable>, BalanceOf]>>> & QueryableStorageEntry; + }; randomnessCollectiveFlip: { [index: string]: QueryableStorageEntry; /** @@ -669,9 +674,9 @@ declare module '@polkadot/api/types/storage' { * * Information is kept for eras in `[current_era - history_depth; current_era]`. * - * Must be more than the number of eras delayed by session otherwise. - * I.e. active era must always be in history. - * I.e. `active_era > current_era - history_depth` must be guaranteed. + * Must be more than the number of eras delayed by session otherwise. I.e. active era must + * always be in history. I.e. `active_era > current_era - history_depth` must be + * guaranteed. **/ historyDepth: AugmentedQuery Observable> & QueryableStorageEntry; /** @@ -689,10 +694,6 @@ declare module '@polkadot/api/types/storage' { * Map from all (unlocked) "controller" accounts to the info regarding the staking. **/ ledger: AugmentedQuery Observable>> & QueryableStorageEntry; - /** - * The era where we migrated from Lazy Payouts to Simple Payouts - **/ - migrateEra: AugmentedQuery Observable>> & QueryableStorageEntry; /** * Minimum number of staking participants before emergency conditions are imposed. **/ @@ -718,7 +719,7 @@ declare module '@polkadot/api/types/storage' { /** * The score of the current [`QueuedElected`]. **/ - queuedScore: AugmentedQuery Observable>> & QueryableStorageEntry; + queuedScore: AugmentedQuery Observable>> & QueryableStorageEntry; /** * Slashing spans for stash accounts. **/ @@ -928,13 +929,6 @@ declare module '@polkadot/api/types/storage' { **/ tips: AugmentedQuery Observable>> & QueryableStorageEntry; }; - utility: { - [index: string]: QueryableStorageEntry; - /** - * The set of open multisig operations. - **/ - multisigs: AugmentedQueryDoubleMap Observable>> & QueryableStorageEntry; - }; vesting: { [index: string]: QueryableStorageEntry; /** diff --git a/packages/api/src/augment/tx.ts b/packages/api/src/augment/tx.ts index 38bba35f62..53935f681b 100644 --- a/packages/api/src/augment/tx.ts +++ b/packages/api/src/augment/tx.ts @@ -12,11 +12,11 @@ import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics'; import { EquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa'; import { IdentityFields, IdentityInfo, IdentityJudgement, RegistrarIndex } from '@polkadot/types/interfaces/identity'; import { Heartbeat } from '@polkadot/types/interfaces/imOnline'; -import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, Weight } from '@polkadot/types/interfaces/runtime'; +import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, Perbill, ProxyType, Weight } from '@polkadot/types/interfaces/runtime'; import { Period, Priority } from '@polkadot/types/interfaces/scheduler'; import { Keys } from '@polkadot/types/interfaces/session'; import { SocietyJudgement } from '@polkadot/types/interfaces/society'; -import { CompactAssignments, ElectionSize, EraIndex, PhragmenScore, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; +import { CompactAssignments, ElectionScore, ElectionSize, EraIndex, RewardDestination, ValidatorIndex, ValidatorPrefs } from '@polkadot/types/interfaces/staking'; import { Key } from '@polkadot/types/interfaces/system'; import { Timepoint } from '@polkadot/types/interfaces/utility'; import { VestingInfo } from '@polkadot/types/interfaces/vesting'; @@ -290,23 +290,6 @@ declare module '@polkadot/api/types/submittable' { }; democracy: { [index: string]: SubmittableExtrinsicFunction; - /** - * Specify a proxy that is already open to us. Called by the stash. - * - * NOTE: Used to be called `set_proxy`. - * - * The dispatch origin of this call must be _Signed_. - * - * - `proxy`: The account that will be activated as proxy. - * - * # - * - Complexity: `O(1)` - * - Db reads: `Proxy` - * - Db writes: `Proxy` - * - Base Weight: 7.972 µs - * # - **/ - activateProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array) => SubmittableExtrinsic>; /** * Cancel a proposal queued for enactment. * @@ -348,40 +331,6 @@ declare module '@polkadot/api/types/submittable' { * # **/ clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic>; - /** - * Clear the proxy. Called by the proxy. - * - * NOTE: Used to be called `resign_proxy`. - * - * The dispatch origin of this call must be _Signed_. - * - * # - * - Complexity: `O(1)` - * - Db reads: `Proxy`, `sender account` - * - Db writes: `Proxy`, `sender account` - * - Base Weight: 15.41 µs - * # - **/ - closeProxy: AugmentedSubmittable<() => SubmittableExtrinsic>; - /** - * Deactivate the proxy, but leave open to this account. Called by the stash. - * - * The proxy must already be active. - * - * NOTE: Used to be called `remove_proxy`. - * - * The dispatch origin of this call must be _Signed_. - * - * - `proxy`: The account that will be deactivated as proxy. - * - * # - * - Complexity: `O(1)` - * - Db reads: `Proxy` - * - Db writes: `Proxy` - * - Base Weight: 8.03 µs - * # - **/ - deactivateProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array) => SubmittableExtrinsic>; /** * Delegate the voting power (with some given conviction) of the sending account. * @@ -547,25 +496,6 @@ declare module '@polkadot/api/types/submittable' { * Same as `note_preimage` but origin is `OperationalPreimageOrigin`. **/ notePreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic>; - /** - * Become a proxy. - * - * This must be called prior to a later `activate_proxy`. - * - * Origin must be a Signed. - * - * - `target`: The account whose votes will later be proxied. - * - * `close_proxy` must be called before the account can be destroyed. - * - * # - * - Complexity: O(1) - * - Db reads: `Proxy`, `proxy account` - * - Db writes: `Proxy`, `proxy account` - * - Base Weight: 14.86 µs - * # - **/ - openProxy: AugmentedSubmittable<(target: AccountId | string | Uint8Array) => SubmittableExtrinsic>; /** * Propose a sensitive action to be taken. * @@ -586,95 +516,6 @@ declare module '@polkadot/api/types/submittable' { * # **/ propose: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; - /** - * Delegate the voting power (with some given conviction) of a proxied account. - * - * The balance delegated is locked for as long as it's delegated, and thereafter for the - * time appropriate for the conviction's lock period. - * - * The dispatch origin of this call must be _Signed_, and the signing account must have - * been set as the proxy account for `target`. - * - * - `target`: The account whole voting power shall be delegated and whose balance locked. - * This account must either: - * - be delegating already; or - * - have no voting activity (if there is, then it will need to be removed/consolidated - * through `reap_vote` or `unvote`). - * - `to`: The account whose voting the `target` account's voting power will follow. - * - `conviction`: The conviction that will be attached to the delegated votes. When the - * account is undelegated, the funds will be locked for the corresponding period. - * - `balance`: The amount of the account's balance to be used in delegating. This must - * not be more than the account's current balance. - * - * Emits `Delegated`. - * - * # - * same as `delegate with additional: - * - Db reads: `Proxy`, `proxy account` - * - Db writes: `proxy account` - * - Base Weight: 68.61 + 8.039 * R µs - * # - **/ - proxyDelegate: AugmentedSubmittable<(to: AccountId | string | Uint8Array, conviction: Conviction | 'None'|'Locked1x'|'Locked2x'|'Locked3x'|'Locked4x'|'Locked5x'|'Locked6x' | number | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic>; - /** - * Remove a proxied vote for a referendum. - * - * Exactly equivalent to `remove_vote` except that it operates on the account that the - * sender is a proxy for. - * - * The dispatch origin of this call must be _Signed_ and the signing account must be a - * proxy for some other account which has a registered vote for the referendum of `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 is calculated for the maximum number of vote. - * - Db reads: `ReferendumInfoOf`, `VotingOf`, `Proxy` - * - Db writes: `ReferendumInfoOf`, `VotingOf` - * - Base Weight: 26.35 + .36 * R µs - * # - **/ - proxyRemoveVote: AugmentedSubmittable<(index: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; - /** - * Undelegate the voting power of a proxied account. - * - * Tokens may be unlocked following once an amount of time consistent with the lock period - * of the conviction with which the delegation was issued. - * - * The dispatch origin of this call must be _Signed_ and the signing account must be a - * proxy for some other account which is currently delegating. - * - * Emits `Undelegated`. - * - * # - * same as `undelegate with additional: - * Db reads: `Proxy` - * Base Weight: 39 + 7.958 * R µs - * # - **/ - proxyUndelegate: AugmentedSubmittable<() => SubmittableExtrinsic>; - /** - * Vote in a referendum on behalf of a stash. If `vote.is_aye()`, the vote is to enact - * the proposal; otherwise it is a vote to keep the status quo. - * - * The dispatch origin of this call must be _Signed_. - * - * - `ref_index`: The index of the referendum to proxy vote for. - * - `vote`: The vote configuration. - * - * # - * - Complexity: `O(R)` where R is the number of referendums the proxy has voted on. - * weight is charged as if maximum votes. - * - Db reads: `ReferendumInfoOf`, `VotingOf`, `balances locks`, `Proxy`, `proxy account` - * - Db writes: `ReferendumInfoOf`, `VotingOf`, `balances locks` - * ------------ - * - Base Weight: - * - Proxy Vote New: 54.35 + .344 * R µs - * - Proxy Vote Existing: 54.35 + .35 * R µs - * # - **/ - proxyVote: AugmentedSubmittable<(refIndex: Compact | AnyNumber | Uint8Array, vote: AccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic>; /** * Remove an expired proposal preimage and collect the deposit. * @@ -861,7 +702,7 @@ declare module '@polkadot/api/types/submittable' { * the outgoing member is slashed. * * If a runner-up is available, then the best runner-up will be removed and replaces the - * outgoing member. Otherwise, a new phragmen round is started. + * outgoing member. Otherwise, a new phragmen election is started. * * Note that this does not affect the designated block number of the next election. * @@ -1297,6 +1138,9 @@ declare module '@polkadot/api/types/submittable' { * - One storage mutation (codec `O(1)`). * - One reserve operation. * - One event. + * ------------------- + * - Base Weight: 28.69 µs + * - DB Weight: 1 Read/Write (Accounts) * # **/ claim: AugmentedSubmittable<(index: AccountIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; @@ -1308,6 +1152,7 @@ declare module '@polkadot/api/types/submittable' { * * - `index`: the index to be (re-)assigned. * - `new`: the new owner of the index. This function is a no-op if it is equal to sender. + * - `freeze`: if set to `true`, will freeze the index so it cannot be transferred. * * Emits `IndexAssigned` if successful. * @@ -1316,9 +1161,14 @@ declare module '@polkadot/api/types/submittable' { * - One storage mutation (codec `O(1)`). * - 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) * # **/ - forceTransfer: AugmentedSubmittable<(updated: AccountId | string | Uint8Array, index: AccountIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + forceTransfer: AugmentedSubmittable<(updated: AccountId | string | Uint8Array, index: AccountIndex | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic>; /** * Free up an index owned by the sender. * @@ -1335,9 +1185,33 @@ declare module '@polkadot/api/types/submittable' { * - One storage mutation (codec `O(1)`). * - One reserve operation. * - One event. + * ------------------- + * - Base Weight: 25.53 µs + * - DB Weight: 1 Read/Write (Accounts) * # **/ free: AugmentedSubmittable<(index: AccountIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Freeze an index so it will always point to the sender account. This consumes the deposit. + * + * The dispatch origin for this call must be _Signed_ and the signing account must have a + * non-frozen account `index`. + * + * - `index`: the index to be frozen in place. + * + * Emits `IndexFrozen` if successful. + * + * # + * - `O(1)`. + * - One storage mutation (codec `O(1)`). + * - Up to one slash operation. + * - One event. + * ------------------- + * - Base Weight: 30.86 µs + * - DB Weight: 1 Read/Write (Accounts) + * # + **/ + freeze: AugmentedSubmittable<(index: AccountIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Assign an index already owned by the sender to another account. The balance reservation * is effectively transferred to the new account. @@ -1354,10 +1228,263 @@ declare module '@polkadot/api/types/submittable' { * - One storage mutation (codec `O(1)`). * - One transfer operation. * - One event. + * ------------------- + * - Base Weight: 33.74 µs + * - DB Weight: + * - Reads: Indices Accounts, System Account (recipient) + * - Writes: Indices Accounts, System Account (recipient) * # **/ transfer: AugmentedSubmittable<(updated: AccountId | string | Uint8Array, index: AccountIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; }; + multisig: { + [index: string]: SubmittableExtrinsicFunction; + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call_hash`: The hash of the call to be executed. + * + * NOTE: If this is the final approval, you will want to use `as_multi` instead. + * + * # + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a + * 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] + * # + **/ + approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], maybeTimepoint: Option | null | object | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * If there are enough, then dispatch the call. Calls must each fulfil the `IsCallable` + * filter. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call`: The call to be executed. + * + * NOTE: Unless this is the final approval, you will generally want to use + * `approve_as_multi` instead, since it only requires a hash of the call. + * + * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise + * on success, result is `Ok` and the result from the interior call, if it was executed, + * may be found in the deposited `MultisigExecuted` event. + * + * # + * - `O(S + Z + Call)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - The weight of the `call`. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a + * deposit taken for its lifetime of + * `DepositBase + threshold * DepositFactor`. + * ------------------------------- + * - Base Weight: + * - Create: 46.55 + 0.089 * S µs + * - Approve: 34.03 + .112 * S µs + * - Complete: 40.36 + .225 * S µs + * - DB Weight: + * - Reads: Multisig Storage, [Caller Account] + * - Writes: Multisig Storage, [Caller Account] + * - Plus Call Weight + * # + **/ + asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], maybeTimepoint: Option | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously + * for this operation will be unreserved on success. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `timepoint`: The timepoint (block number and transaction index) of the first approval + * transaction for this dispatch. + * - `call_hash`: The hash of the call to be executed. + * + * # + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - One event. + * - I/O: 1 read `O(S)`, one remove. + * - Storage: removes one item. + * ---------------------------------- + * - Base Weight: 37.6 + 0.084 * S + * - DB Weight: + * - Read: Multisig Storage, [Caller Account] + * - Write: Multisig Storage, [Caller Account] + * # + **/ + cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], timepoint: Timepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic>; + }; + proxy: { + [index: string]: SubmittableExtrinsicFunction; + /** + * Register a proxy account for the sender that is able to make calls on its behalf. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to make a proxy. + * - `proxy_type`: The permissions allowed for this proxy account. + * + * # + * P is the number of proxies the user has + * - Base weight: 17.48 + .176 * P µs + * - DB weight: 1 storage read and write. + * # + **/ + addProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array) => SubmittableExtrinsic>; + /** + * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and + * initialize it with a proxy of `proxy_type` for `origin` sender. + * + * Requires a `Signed` origin. + * + * - `proxy_type`: The type of the proxy that the sender will be registered as over the + * new account. This will almost always be the most permissive `ProxyType` possible to + * allow for maximum flexibility. + * - `index`: A disambiguation index, in case this is called multiple times in the same + * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just + * want to use `0`. + * + * Fails with `Duplicate` if this has already been called in this transaction, from the + * same sender, with the same parameters. + * + * Fails if there are insufficient funds to pay for deposit. + * + * # + * P is the number of proxies the user has + * - Base weight: 36.48 + .039 * P µs + * - DB weight: 1 storage read and write. + * # + **/ + anonymous: AugmentedSubmittable<(proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Removes a previously spawned anonymous proxy. + * + * WARNING: **All access to this account will be lost.** Any funds held in it will be + * inaccessible. + * + * Requires a `Signed` origin, and the sender account must have been created by a call to + * `anonymous` with corresponding parameters. + * + * - `spawner`: The account that originally called `anonymous` to create this account. + * - `index`: The disambiguation index originally passed to `anonymous`. Probably `0`. + * - `proxy_type`: The proxy type originally passed to `anonymous`. + * - `height`: The height of the chain when the call to `anonymous` was processed. + * - `ext_index`: The extrinsic index in which the call to `anonymous` was processed. + * + * Fails with `NoPermission` in case the caller is not a previously created anonymous + * account whose `anonymous` call has corresponding parameters. + * + * # + * P is the number of proxies the user has + * - Base weight: 15.65 + .137 * P µs + * - DB weight: 1 storage read and write. + * # + **/ + killAnonymous: AugmentedSubmittable<(spawner: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact | AnyNumber | Uint8Array, extIndex: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; + /** + * Dispatch the given `call` from an account that the sender is authorised for through + * `add_proxy`. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `real`: The account that the proxy will make a call on behalf of. + * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call. + * - `call`: The call to be made by the `real` account. + * + * # + * P is the number of proxies the user has + * - Base weight: 19.87 + .141 * P µs + * - DB weight: 1 storage read. + * - Plus the weight of the `call` + * # + **/ + proxy: AugmentedSubmittable<(real: AccountId | string | Uint8Array, forceProxyType: Option | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; + /** + * Unregister all proxy accounts for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * WARNING: This may be called on accounts created by `anonymous`, however if done, then + * the unreserved fees will be inaccessible. **All access to this account will be lost.** + * + * # + * P is the number of proxies the user has + * - Base weight: 13.73 + .129 * P µs + * - DB weight: 1 storage read and write. + * # + **/ + removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic>; + /** + * Unregister a proxy account for the sender. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `proxy`: The account that the `caller` would like to remove as a proxy. + * - `proxy_type`: The permissions currently enabled for the removed proxy account. + * + * # + * P is the number of proxies the user has + * - Base weight: 14.37 + .164 * P µs + * - DB weight: 1 storage read and write. + * # + **/ + removeProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array) => SubmittableExtrinsic>; + }; recovery: { [index: string]: SubmittableExtrinsicFunction; /** @@ -2131,39 +2258,6 @@ declare module '@polkadot/api/types/submittable' { * # **/ nominate: AugmentedSubmittable<(targets: Vec | (LookupSource | Address | AccountId | AccountIndex | string | Uint8Array)[]) => SubmittableExtrinsic>; - /** - * **This extrinsic will be removed after `MigrationEra + HistoryDepth` has passed, giving - * opportunity for users to claim all rewards before moving to Simple Payouts. After this - * time, you should use `payout_stakers` instead.** - * - * Make one nominator's payout for one era. - * - * - `who` is the controller account of the nominator to pay out. - * - `era` may not be lower than one following the most recently paid era. If it is higher, - * then it indicates an instruction to skip the payout of all previous eras. - * - `validators` is the list of all validators that `who` had exposure to during `era`, - * alongside the index of `who` in the clipped exposure of the validator. - * I.e. each element is a tuple of - * `(validator, index of `who` in clipped exposure of validator)`. - * If it is incomplete, then less than the full reward will be paid out. - * It must not exceed `MAX_NOMINATIONS`. - * - * WARNING: once an era is payed for a validator such validator can't claim the payout of - * previous era. - * - * WARNING: Incorrect arguments here can result in loss of payout. Be very careful. - * - * # - * - Number of storage read of `O(validators)`; `validators` is the argument of the call, - * and is bounded by `MAX_NOMINATIONS`. - * - Each storage read is `O(N)` size and decode complexity; `N` is the maximum - * nominations that can be given to a single validator. - * - Computation complexity: `O(MAX_NOMINATIONS * logN)`; `MAX_NOMINATIONS` is the - * maximum number of validators that may be nominated by a single nominator, it is - * bounded only economically (all nominators are required to place a minimum stake). - * # - **/ - payoutNominator: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array, validators: Vec> | ([AccountId | string | Uint8Array, u32 | AnyNumber | Uint8Array])[]) => SubmittableExtrinsic>; /** * Pay out all the stakers behind a single validator for a single era. * @@ -2183,35 +2277,13 @@ declare module '@polkadot/api/types/submittable' { * N is the Number of payouts for the validator (including the validator) * Base Weight: 110 + 54.2 * N µs (Median Slopes) * DB Weight: - * - Read: EraElectionStatus, CurrentEra, HistoryDepth, MigrateEra, ErasValidatorReward, + * - 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) * # **/ payoutStakers: AugmentedSubmittable<(validatorStash: AccountId | string | Uint8Array, era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; - /** - * **This extrinsic will be removed after `MigrationEra + HistoryDepth` has passed, giving - * opportunity for users to claim all rewards before moving to Simple Payouts. After this - * time, you should use `payout_stakers` instead.** - * - * Make one validator's payout for one era. - * - * - `who` is the controller account of the validator to pay out. - * - `era` may not be lower than one following the most recently paid era. If it is higher, - * then it indicates an instruction to skip the payout of all previous eras. - * - * WARNING: once an era is payed for a validator such validator can't claim the payout of - * previous era. - * - * WARNING: Incorrect arguments here can result in loss of payout. Be very careful. - * - * # - * - Time complexity: O(1). - * - Contains a limited number of reads and writes. - * # - **/ - payoutValidator: AugmentedSubmittable<(era: EraIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** * Remove all data structure concerning a staker/stash once its balance is zero. * This is essentially equivalent to `withdraw_unbonded` except it can be called by anyone @@ -2335,7 +2407,7 @@ declare module '@polkadot/api/types/submittable' { **/ setValidatorCount: AugmentedSubmittable<(updated: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic>; /** - * Submit a phragmen result to the chain. If the solution: + * Submit an election result to the chain. If the solution: * * 1. is valid. * 2. has a better score than a potentially existing solution on chain. @@ -2348,7 +2420,7 @@ declare module '@polkadot/api/types/submittable' { * 2. `assignments`: the compact version of an assignment vector that encodes the edge * weights. * - * Both of which may be computed using [`phragmen`], or any other algorithm. + * Both of which may be computed using _phragmen_, or any other algorithm. * * Additionally, the submitter must provide: * @@ -2383,7 +2455,7 @@ declare module '@polkadot/api/types/submittable' { * See `crate::weight` module. * # **/ - 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: PhragmenScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic>; + 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>; /** * Unsigned version of `submit_election_solution`. * @@ -2395,7 +2467,7 @@ declare module '@polkadot/api/types/submittable' { * See `crate::weight` module. * # **/ - submitElectionSolutionUnsigned: 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: PhragmenScore, era: EraIndex | AnyNumber | Uint8Array, size: ElectionSize | { validators?: any; nominators?: any } | string | Uint8Array) => SubmittableExtrinsic>; + submitElectionSolutionUnsigned: 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>; /** * Schedule a portion of the stash to be unlocked ready for transfer out after the bond * period ends. If this leaves an amount actively bonded less than @@ -3015,105 +3087,31 @@ declare module '@polkadot/api/types/submittable' { utility: { [index: string]: SubmittableExtrinsicFunction; /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. + * Send a call through an indexed pseudonym of the sender. * - * Payment: `MultisigDepositBase` will be reserved if this is the first approval, plus - * `threshold` times `MultisigDepositFactor`. It is returned once this dispatch happens or - * is cancelled. + * Calls must each fulfil the `IsCallable` filter; it is not cleared before. + * + * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. + * because you expect `proxy` to have been used prior in the call stack and you do not want + * the call restrictions to apply to any sub-accounts), then use `as_sub` instead. * * The dispatch origin for this call must be _Signed_. * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call_hash`: The hash of the call to be executed. - * - * NOTE: If this is the final approval, you will want to use `as_multi` instead. - * * # - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a - * deposit taken for its lifetime of - * `MultisigDepositBase + threshold * MultisigDepositFactor`. - * ---------------------------------- - * - 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] + * - Base weight: 2.861 µs + * - Plus the weight of the `call` * # **/ - approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], maybeTimepoint: Option | null | object | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic>; - /** - * Register approval for a dispatch to be made from a deterministic composite account if - * approved by a total of `threshold - 1` of `other_signatories`. - * - * If there are enough, then dispatch the call. Calls must each fulfil the `IsCallable` - * filter. - * - * Payment: `MultisigDepositBase` will be reserved if this is the first approval, plus - * `threshold` times `MultisigDepositFactor`. It is returned once this dispatch happens or - * is cancelled. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is - * not the first approval, then it must be `Some`, with the timepoint (block number and - * transaction index) of the first approval transaction. - * - `call`: The call to be executed. - * - * NOTE: Unless this is the final approval, you will generally want to use - * `approve_as_multi` instead, since it only requires a hash of the call. - * - * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise - * on success, result is `Ok` and the result from the interior call, if it was executed, - * may be found in the deposited `MultisigExecuted` event. - * - * # - * - `O(S + Z + Call)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. - * - One encode & hash, both of complexity `O(S)`. - * - Up to one binary search and insert (`O(logS + S)`). - * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. - * - One event. - * - The weight of the `call`. - * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a - * deposit taken for its lifetime of - * `MultisigDepositBase + threshold * MultisigDepositFactor`. - * ------------------------------- - * - Base Weight: - * - Create: 46.55 + 0.089 * S µs - * - Approve: 34.03 + .112 * S µs - * - Complete: 40.36 + .225 * S µs - * - DB Weight: - * - Reads: Multisig Storage, [Caller Account] - * - Writes: Multisig Storage, [Caller Account] - * - Plus Call Weight - * # - **/ - asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], maybeTimepoint: Option | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; + asLimitedSub: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic>; /** * Send a call through an indexed pseudonym of the sender. * - * Calls must each fulfil the `IsCallable` filter. + * The call must fulfil only the pre-cleared `IsCallable` filter (i.e. only the level of + * filtering that remains after calling `take()`). + * + * NOTE: If you need to ensure that any account-based filtering is honored (i.e. because + * you expect `proxy` to have been used prior in the call stack and you want it to apply to + * any sub-accounts), then use `as_limited_sub` instead. * * The dispatch origin for this call must be _Signed_. * @@ -3146,36 +3144,6 @@ declare module '@polkadot/api/types/submittable' { * event is deposited. **/ batch: AugmentedSubmittable<(calls: Vec | (Call | { callIndex?: any; args?: any } | string | Uint8Array)[]) => SubmittableExtrinsic>; - /** - * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously - * for this operation will be unreserved on success. - * - * The dispatch origin for this call must be _Signed_. - * - * - `threshold`: The total number of approvals for this dispatch before it is executed. - * - `other_signatories`: The accounts (other than the sender) who can approve this - * dispatch. May not be empty. - * - `timepoint`: The timepoint (block number and transaction index) of the first approval - * transaction for this dispatch. - * - `call_hash`: The hash of the call to be executed. - * - * # - * - `O(S)`. - * - Up to one balance-reserve or unreserve operation. - * - One passthrough operation, one insert, both `O(S)` where `S` is the number of - * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. - * - One encode & hash, both of complexity `O(S)`. - * - One event. - * - I/O: 1 read `O(S)`, one remove. - * - Storage: removes one item. - * ---------------------------------- - * - Base Weight: 37.6 + 0.084 * S - * - DB Weight: - * - Read: Multisig Storage, [Caller Account] - * - Write: Multisig Storage, [Caller Account] - * # - **/ - cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId | string | Uint8Array)[], timepoint: Timepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic>; }; vesting: { [index: string]: SubmittableExtrinsicFunction; diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 7539f6e919..2537667fe3 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/types": "1.19.0-beta.0", - "@polkadot/types-known": "1.19.0-beta.0", + "@polkadot/types": "1.19.0-beta.1", + "@polkadot/types-known": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "@polkadot/util-crypto": "^2.14.0-beta.0", "bn.js": "^5.1.2" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 1cc93ebf23..b3e7cb4a93 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/metadata": "1.19.0-beta.0", - "@polkadot/rpc-provider": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/metadata": "1.19.0-beta.1", + "@polkadot/rpc-provider": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "memoizee": "^0.4.14", "rxjs": "^6.5.5" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index c1236826aa..86f077d327 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/metadata": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/metadata": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "@polkadot/util-crypto": "^2.14.0-beta.0", "bn.js": "^5.1.2", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index cb7a8190a4..a11a0bd6cc 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.1", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.10.2", "@babel/register": "^7.10.1", "@babel/runtime": "^7.10.2", - "@polkadot/api": "1.19.0-beta.0", - "@polkadot/metadata": "1.19.0-beta.0", - "@polkadot/rpc-provider": "1.19.0-beta.0", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/api": "1.19.0-beta.1", + "@polkadot/metadata": "1.19.0-beta.1", + "@polkadot/rpc-provider": "1.19.0-beta.1", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "handlebars": "^4.7.6", "websocket": "^1.0.31", diff --git a/packages/types-known/package.json b/packages/types-known/package.json index f97186aa1b..429cc5933f 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types-known", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/types": "1.19.0-beta.0", + "@polkadot/types": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "bn.js": "^5.1.2" }, diff --git a/packages/types/package.json b/packages/types/package.json index 1d398b3d44..17b38ce9cb 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.19.0-beta.0", + "version": "1.19.0-beta.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.10.2", - "@polkadot/metadata": "1.19.0-beta.0", + "@polkadot/metadata": "1.19.0-beta.1", "@polkadot/util": "^2.14.0-beta.0", "@polkadot/util-crypto": "^2.14.0-beta.0", "@types/bn.js": "^4.11.6", diff --git a/packages/types/src/interfaces/staking/types.ts b/packages/types/src/interfaces/staking/types.ts index 113ebf7b05..b6512f9187 100644 --- a/packages/types/src/interfaces/staking/types.ts +++ b/packages/types/src/interfaces/staking/types.ts @@ -141,6 +141,7 @@ export interface ReleasesStaking extends Enum { readonly isV100: boolean; readonly isV200: boolean; readonly isV300: boolean; + readonly isV400: boolean; } /** @name RewardDestination */ diff --git a/yarn.lock b/yarn.lock index 5bc312c936..ebe19c9b3d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2669,25 +2669,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.10.2 - "@polkadot/api": 1.19.0-beta.0 - "@polkadot/rpc-core": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/api": 1.19.0-beta.1 + "@polkadot/rpc-core": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 bn.js: ^5.1.2 rxjs: ^6.5.5 languageName: unknown linkType: soft -"@polkadot/api-derive@1.19.0-beta.0, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.19.0-beta.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.10.2 - "@polkadot/api": 1.19.0-beta.0 + "@polkadot/api": 1.19.0-beta.1 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/rpc-core": 1.19.0-beta.0 - "@polkadot/rpc-provider": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/rpc-core": 1.19.0-beta.1 + "@polkadot/rpc-provider": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@polkadot/util-crypto": ^2.14.0-beta.0 bn.js: ^5.1.2 @@ -2696,18 +2696,18 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.19.0-beta.0, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.19.0-beta.1, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.10.2 - "@polkadot/api-derive": 1.19.0-beta.0 + "@polkadot/api-derive": 1.19.0-beta.1 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/metadata": 1.19.0-beta.0 - "@polkadot/rpc-core": 1.19.0-beta.0 - "@polkadot/rpc-provider": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 - "@polkadot/types-known": 1.19.0-beta.0 + "@polkadot/metadata": 1.19.0-beta.1 + "@polkadot/rpc-core": 1.19.0-beta.1 + "@polkadot/rpc-provider": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 + "@polkadot/types-known": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@polkadot/util-crypto": ^2.14.0-beta.0 bn.js: ^5.1.2 @@ -2816,43 +2816,43 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.19.0-beta.0, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.19.0-beta.1, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.10.2 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 - "@polkadot/types-known": 1.19.0-beta.0 + "@polkadot/types": 1.19.0-beta.1 + "@polkadot/types-known": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@polkadot/util-crypto": ^2.14.0-beta.0 bn.js: ^5.1.2 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.19.0-beta.0, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.19.0-beta.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.10.2 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/metadata": 1.19.0-beta.0 - "@polkadot/rpc-provider": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/metadata": 1.19.0-beta.1 + "@polkadot/rpc-provider": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 memoizee: ^0.4.14 rxjs: ^6.5.5 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.19.0-beta.0, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.19.0-beta.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.10.2 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/metadata": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/metadata": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@polkadot/util-crypto": ^2.14.0-beta.0 bn.js: ^5.1.2 @@ -2880,10 +2880,10 @@ __metadata: "@babel/core": ^7.10.2 "@babel/register": ^7.10.1 "@babel/runtime": ^7.10.2 - "@polkadot/api": 1.19.0-beta.0 - "@polkadot/metadata": 1.19.0-beta.0 - "@polkadot/rpc-provider": 1.19.0-beta.0 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/api": 1.19.0-beta.1 + "@polkadot/metadata": 1.19.0-beta.1 + "@polkadot/rpc-provider": 1.19.0-beta.1 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@types/websocket": ^1.0.0 "@types/yargs": ^15.0.5 @@ -2899,25 +2899,25 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types-known@1.19.0-beta.0, @polkadot/types-known@workspace:packages/types-known": +"@polkadot/types-known@1.19.0-beta.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.10.2 - "@polkadot/types": 1.19.0-beta.0 + "@polkadot/types": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@types/bn.js": ^4.11.6 bn.js: ^5.1.2 languageName: unknown linkType: soft -"@polkadot/types@1.19.0-beta.0, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.19.0-beta.1, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.10.2 "@polkadot/keyring": ^2.14.0-beta.0 - "@polkadot/metadata": 1.19.0-beta.0 + "@polkadot/metadata": 1.19.0-beta.1 "@polkadot/util": ^2.14.0-beta.0 "@polkadot/util-crypto": ^2.14.0-beta.0 "@types/bn.js": ^4.11.6