Skip to content

Commit 88e3c90

Browse files
authored
Bump metadata (#4788)
1 parent a127dea commit 88e3c90

File tree

17 files changed

+228
-342
lines changed

17 files changed

+228
-342
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Changes:
1010

1111
- Extract metadata v14 `BTreeSet` types into correct type
1212
- Assert to ensure that `[u8; <size>]` has exact sizes (non-u8a inputs)
13-
- Adjust `tx.paymentInfo` signing process
13+
- Adjust `tx.paymentInfo` signing process for existing signature
1414
- Add Kusama 9190 upgrade block
1515
- Add Westend 9200 upgrade block
16-
- Update to latest Substrate static metadata
16+
- Update to latest Substrate, Kusama & Polkadot static metadata
1717

1818

1919
## 8.2.1 Apr 24, 2022

packages/api-augment/src/kusama/errors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,10 @@ declare module '@polkadot/api-base/types/errors' {
18021802
* No proposal or bounty at that index.
18031803
**/
18041804
InvalidIndex: AugmentedError<ApiType>;
1805+
/**
1806+
* Proposal has not been approved.
1807+
**/
1808+
ProposalNotApproved: AugmentedError<ApiType>;
18051809
/**
18061810
* Too many approvals in the queue.
18071811
**/

packages/api-augment/src/kusama/tx.ts

Lines changed: 18 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2570,11 +2570,6 @@ declare module '@polkadot/api-base/types/submittable' {
25702570
* Parameters:
25712571
* - `account`: The recovered account you want to make a call on-behalf-of.
25722572
* - `call`: The call you want to make with the recovered account.
2573-
*
2574-
* # <weight>
2575-
* - The weight of the `call` + 10,000.
2576-
* - One storage lookup to check account is recovered by `who`. O(1)
2577-
* # </weight>
25782573
**/
25792574
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
25802575
/**
@@ -2585,10 +2580,6 @@ declare module '@polkadot/api-base/types/submittable' {
25852580
*
25862581
* Parameters:
25872582
* - `account`: The recovered account you are able to call on-behalf-of.
2588-
*
2589-
* # <weight>
2590-
* - One storage mutation to check account is recovered by `who`. O(1)
2591-
* # </weight>
25922583
**/
25932584
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
25942585
/**
@@ -2601,17 +2592,6 @@ declare module '@polkadot/api-base/types/submittable' {
26012592
* Parameters:
26022593
* - `account`: The lost account that you want to claim has been successfully recovered by
26032594
* you.
2604-
*
2605-
* # <weight>
2606-
* Key: F (len of friends in config), V (len of vouching friends)
2607-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
2608-
* - One storage read to get the active recovery process. O(1), Codec O(V)
2609-
* - One storage read to get the current block number. O(1)
2610-
* - One storage write. O(1), Codec O(V).
2611-
* - One event.
2612-
*
2613-
* Total Complexity: O(F + V)
2614-
* # </weight>
26152595
**/
26162596
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
26172597
/**
@@ -2626,15 +2606,6 @@ declare module '@polkadot/api-base/types/submittable' {
26262606
*
26272607
* Parameters:
26282608
* - `rescuer`: The account trying to rescue this recoverable account.
2629-
*
2630-
* # <weight>
2631-
* Key: V (len of vouching friends)
2632-
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
2633-
* - One balance call to repatriate reserved. O(X)
2634-
* - One event.
2635-
*
2636-
* Total Complexity: O(V + X)
2637-
* # </weight>
26382609
**/
26392610
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
26402611
/**
@@ -2654,17 +2625,6 @@ declare module '@polkadot/api-base/types/submittable' {
26542625
* friends.
26552626
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
26562627
* needs to pass before the account can be recovered.
2657-
*
2658-
* # <weight>
2659-
* - Key: F (len of friends)
2660-
* - One storage read to check that account is not already recoverable. O(1).
2661-
* - A check that the friends list is sorted and unique. O(F)
2662-
* - One currency reserve operation. O(X)
2663-
* - One storage write. O(1). Codec O(F).
2664-
* - One event.
2665-
*
2666-
* Total Complexity: O(F + X)
2667-
* # </weight>
26682628
**/
26692629
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
26702630
/**
@@ -2679,17 +2639,6 @@ declare module '@polkadot/api-base/types/submittable' {
26792639
* Parameters:
26802640
* - `account`: The lost account that you want to recover. This account needs to be
26812641
* recoverable (i.e. have a recovery configuration).
2682-
*
2683-
* # <weight>
2684-
* - One storage read to check that account is recoverable. O(F)
2685-
* - One storage read to check that this recovery process hasn't already started. O(1)
2686-
* - One currency reserve operation. O(X)
2687-
* - One storage read to get the current block number. O(1)
2688-
* - One storage write. O(1).
2689-
* - One event.
2690-
*
2691-
* Total Complexity: O(F + X)
2692-
* # </weight>
26932642
**/
26942643
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
26952644
/**
@@ -2704,16 +2653,6 @@ declare module '@polkadot/api-base/types/submittable' {
27042653
*
27052654
* The dispatch origin for this call must be _Signed_ and must be a
27062655
* recoverable account (i.e. has a recovery configuration).
2707-
*
2708-
* # <weight>
2709-
* Key: F (len of friends)
2710-
* - One storage read to get the prefix iterator for active recoveries. O(1)
2711-
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
2712-
* - One balance call to unreserved. O(X)
2713-
* - One event.
2714-
*
2715-
* Total Complexity: O(F + X)
2716-
* # </weight>
27172656
**/
27182657
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
27192658
/**
@@ -2725,11 +2664,6 @@ declare module '@polkadot/api-base/types/submittable' {
27252664
* Parameters:
27262665
* - `lost`: The "lost account" to be recovered.
27272666
* - `rescuer`: The "rescuer account" which can call as the lost account.
2728-
*
2729-
* # <weight>
2730-
* - One storage write O(1)
2731-
* - One event
2732-
* # </weight>
27332667
**/
27342668
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
27352669
/**
@@ -2745,18 +2679,6 @@ declare module '@polkadot/api-base/types/submittable' {
27452679
*
27462680
* The combination of these two parameters must point to an active recovery
27472681
* process.
2748-
*
2749-
* # <weight>
2750-
* Key: F (len of friends in config), V (len of vouching friends)
2751-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
2752-
* - One storage read to get the active recovery process. O(1), Codec O(V)
2753-
* - One binary search to confirm caller is a friend. O(logF)
2754-
* - One binary search to confirm caller has not already vouched. O(logV)
2755-
* - One storage write. O(1), Codec O(V).
2756-
* - One event.
2757-
*
2758-
* Total Complexity: O(F + logF + V + logV)
2759-
* # </weight>
27602682
**/
27612683
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
27622684
/**
@@ -4154,6 +4076,24 @@ declare module '@polkadot/api-base/types/submittable' {
41544076
* # </weight>
41554077
**/
41564078
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4079+
/**
4080+
* Force a previously approved proposal to be removed from the approval queue.
4081+
* The original deposit will no longer be returned.
4082+
*
4083+
* May only be called from `T::RejectOrigin`.
4084+
* - `proposal_id`: The index of a proposal
4085+
*
4086+
* # <weight>
4087+
* - Complexity: O(A) where `A` is the number of approvals
4088+
* - Db reads and writes: `Approvals`
4089+
* # </weight>
4090+
*
4091+
* Errors:
4092+
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
4093+
* i.e., the proposal has not been approved. This could also mean the proposal does not
4094+
* exist altogether, thus there is no way it would have been approved in the first place.
4095+
**/
4096+
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
41574097
/**
41584098
* Generic tx
41594099
**/

packages/api-augment/src/polkadot/errors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,10 @@ declare module '@polkadot/api-base/types/errors' {
16151615
* No proposal or bounty at that index.
16161616
**/
16171617
InvalidIndex: AugmentedError<ApiType>;
1618+
/**
1619+
* Proposal has not been approved.
1620+
**/
1621+
ProposalNotApproved: AugmentedError<ApiType>;
16181622
/**
16191623
* Too many approvals in the queue.
16201624
**/

packages/api-augment/src/polkadot/tx.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3572,6 +3572,24 @@ declare module '@polkadot/api-base/types/submittable' {
35723572
* # </weight>
35733573
**/
35743574
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
3575+
/**
3576+
* Force a previously approved proposal to be removed from the approval queue.
3577+
* The original deposit will no longer be returned.
3578+
*
3579+
* May only be called from `T::RejectOrigin`.
3580+
* - `proposal_id`: The index of a proposal
3581+
*
3582+
* # <weight>
3583+
* - Complexity: O(A) where `A` is the number of approvals
3584+
* - Db reads and writes: `Approvals`
3585+
* # </weight>
3586+
*
3587+
* Errors:
3588+
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
3589+
* i.e., the proposal has not been approved. This could also mean the proposal does not
3590+
* exist altogether, thus there is no way it would have been approved in the first place.
3591+
**/
3592+
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
35753593
/**
35763594
* Generic tx
35773595
**/

packages/api-augment/src/substrate/errors.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,10 @@ declare module '@polkadot/api-base/types/errors' {
17861786
* No proposal or bounty at that index.
17871787
**/
17881788
InvalidIndex: AugmentedError<ApiType>;
1789+
/**
1790+
* Proposal has not been approved.
1791+
**/
1792+
ProposalNotApproved: AugmentedError<ApiType>;
17891793
/**
17901794
* Too many approvals in the queue.
17911795
**/
@@ -1812,6 +1816,10 @@ declare module '@polkadot/api-base/types/errors' {
18121816
* The asset ID is already taken.
18131817
**/
18141818
InUse: AugmentedError<ApiType>;
1819+
/**
1820+
* The asset instance is locked.
1821+
**/
1822+
Locked: AugmentedError<ApiType>;
18151823
/**
18161824
* There is no delegate approved.
18171825
**/

0 commit comments

Comments
 (0)