Bump metadata (#4788)

This commit is contained in:
Jaco
2022-05-01 09:35:49 +03:00
committed by GitHub
parent a127dea5e4
commit 88e3c900b7
17 changed files with 228 additions and 342 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ Changes:
- Extract metadata v14 `BTreeSet` types into correct type
- Assert to ensure that `[u8; <size>]` has exact sizes (non-u8a inputs)
- Adjust `tx.paymentInfo` signing process
- Adjust `tx.paymentInfo` signing process for existing signature
- Add Kusama 9190 upgrade block
- Add Westend 9200 upgrade block
- Update to latest Substrate static metadata
- Update to latest Substrate, Kusama & Polkadot static metadata
## 8.2.1 Apr 24, 2022
@@ -1802,6 +1802,10 @@ declare module '@polkadot/api-base/types/errors' {
* No proposal or bounty at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
+18 -78
View File
@@ -2570,11 +2570,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The recovered account you want to make a call on-behalf-of.
* - `call`: The call you want to make with the recovered account.
*
* # <weight>
* - The weight of the `call` + 10,000.
* - One storage lookup to check account is recovered by `who`. O(1)
* # </weight>
**/
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
/**
@@ -2585,10 +2580,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `account`: The recovered account you are able to call on-behalf-of.
*
* # <weight>
* - One storage mutation to check account is recovered by `who`. O(1)
* # </weight>
**/
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2601,17 +2592,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The lost account that you want to claim has been successfully recovered by
* you.
*
* # <weight>
* Key: F (len of friends in config), V (len of vouching friends)
* - One storage read to get the recovery configuration. O(1), Codec O(F)
* - One storage read to get the active recovery process. O(1), Codec O(V)
* - One storage read to get the current block number. O(1)
* - One storage write. O(1), Codec O(V).
* - One event.
*
* Total Complexity: O(F + V)
* # </weight>
**/
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2626,15 +2606,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `rescuer`: The account trying to rescue this recoverable account.
*
* # <weight>
* Key: V (len of vouching friends)
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
* - One balance call to repatriate reserved. O(X)
* - One event.
*
* Total Complexity: O(V + X)
* # </weight>
**/
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2654,17 +2625,6 @@ declare module '@polkadot/api-base/types/submittable' {
* friends.
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
* needs to pass before the account can be recovered.
*
* # <weight>
* - Key: F (len of friends)
* - One storage read to check that account is not already recoverable. O(1).
* - A check that the friends list is sorted and unique. O(F)
* - One currency reserve operation. O(X)
* - One storage write. O(1). Codec O(F).
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
/**
@@ -2679,17 +2639,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The lost account that you want to recover. This account needs to be
* recoverable (i.e. have a recovery configuration).
*
* # <weight>
* - One storage read to check that account is recoverable. O(F)
* - One storage read to check that this recovery process hasn't already started. O(1)
* - One currency reserve operation. O(X)
* - One storage read to get the current block number. O(1)
* - One storage write. O(1).
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2704,16 +2653,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* The dispatch origin for this call must be _Signed_ and must be a
* recoverable account (i.e. has a recovery configuration).
*
* # <weight>
* Key: F (len of friends)
* - One storage read to get the prefix iterator for active recoveries. O(1)
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
* - One balance call to unreserved. O(X)
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
@@ -2725,11 +2664,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `lost`: The "lost account" to be recovered.
* - `rescuer`: The "rescuer account" which can call as the lost account.
*
* # <weight>
* - One storage write O(1)
* - One event
* # </weight>
**/
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
/**
@@ -2745,18 +2679,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* The combination of these two parameters must point to an active recovery
* process.
*
* # <weight>
* Key: F (len of friends in config), V (len of vouching friends)
* - One storage read to get the recovery configuration. O(1), Codec O(F)
* - One storage read to get the active recovery process. O(1), Codec O(V)
* - One binary search to confirm caller is a friend. O(logF)
* - One binary search to confirm caller has not already vouched. O(logV)
* - One storage write. O(1), Codec O(V).
* - One event.
*
* Total Complexity: O(F + logF + V + logV)
* # </weight>
**/
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
/**
@@ -4154,6 +4076,24 @@ declare module '@polkadot/api-base/types/submittable' {
* # </weight>
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Force a previously approved proposal to be removed from the approval queue.
* The original deposit will no longer be returned.
*
* May only be called from `T::RejectOrigin`.
* - `proposal_id`: The index of a proposal
*
* # <weight>
* - Complexity: O(A) where `A` is the number of approvals
* - Db reads and writes: `Approvals`
* # </weight>
*
* Errors:
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
* i.e., the proposal has not been approved. This could also mean the proposal does not
* exist altogether, thus there is no way it would have been approved in the first place.
**/
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Generic tx
**/
@@ -1615,6 +1615,10 @@ declare module '@polkadot/api-base/types/errors' {
* No proposal or bounty at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
+18
View File
@@ -3572,6 +3572,24 @@ declare module '@polkadot/api-base/types/submittable' {
* # </weight>
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Force a previously approved proposal to be removed from the approval queue.
* The original deposit will no longer be returned.
*
* May only be called from `T::RejectOrigin`.
* - `proposal_id`: The index of a proposal
*
* # <weight>
* - Complexity: O(A) where `A` is the number of approvals
* - Db reads and writes: `Approvals`
* # </weight>
*
* Errors:
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
* i.e., the proposal has not been approved. This could also mean the proposal does not
* exist altogether, thus there is no way it would have been approved in the first place.
**/
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Generic tx
**/
@@ -1786,6 +1786,10 @@ declare module '@polkadot/api-base/types/errors' {
* No proposal or bounty at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
@@ -1812,6 +1816,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset ID is already taken.
**/
InUse: AugmentedError<ApiType>;
/**
* The asset instance is locked.
**/
Locked: AugmentedError<ApiType>;
/**
* There is no delegate approved.
**/
+18 -78
View File
@@ -2817,11 +2817,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The recovered account you want to make a call on-behalf-of.
* - `call`: The call you want to make with the recovered account.
*
* # <weight>
* - The weight of the `call` + 10,000.
* - One storage lookup to check account is recovered by `who`. O(1)
* # </weight>
**/
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
/**
@@ -2832,10 +2827,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `account`: The recovered account you are able to call on-behalf-of.
*
* # <weight>
* - One storage mutation to check account is recovered by `who`. O(1)
* # </weight>
**/
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2848,17 +2839,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The lost account that you want to claim has been successfully recovered by
* you.
*
* # <weight>
* Key: F (len of friends in config), V (len of vouching friends)
* - One storage read to get the recovery configuration. O(1), Codec O(F)
* - One storage read to get the active recovery process. O(1), Codec O(V)
* - One storage read to get the current block number. O(1)
* - One storage write. O(1), Codec O(V).
* - One event.
*
* Total Complexity: O(F + V)
* # </weight>
**/
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2873,15 +2853,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Parameters:
* - `rescuer`: The account trying to rescue this recoverable account.
*
* # <weight>
* Key: V (len of vouching friends)
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
* - One balance call to repatriate reserved. O(X)
* - One event.
*
* Total Complexity: O(V + X)
* # </weight>
**/
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2901,17 +2872,6 @@ declare module '@polkadot/api-base/types/submittable' {
* friends.
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
* needs to pass before the account can be recovered.
*
* # <weight>
* - Key: F (len of friends)
* - One storage read to check that account is not already recoverable. O(1).
* - A check that the friends list is sorted and unique. O(F)
* - One currency reserve operation. O(X)
* - One storage write. O(1). Codec O(F).
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
/**
@@ -2926,17 +2886,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `account`: The lost account that you want to recover. This account needs to be
* recoverable (i.e. have a recovery configuration).
*
* # <weight>
* - One storage read to check that account is recoverable. O(F)
* - One storage read to check that this recovery process hasn't already started. O(1)
* - One currency reserve operation. O(X)
* - One storage read to get the current block number. O(1)
* - One storage write. O(1).
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
/**
@@ -2951,16 +2900,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* The dispatch origin for this call must be _Signed_ and must be a
* recoverable account (i.e. has a recovery configuration).
*
* # <weight>
* Key: F (len of friends)
* - One storage read to get the prefix iterator for active recoveries. O(1)
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
* - One balance call to unreserved. O(X)
* - One event.
*
* Total Complexity: O(F + X)
* # </weight>
**/
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
@@ -2972,11 +2911,6 @@ declare module '@polkadot/api-base/types/submittable' {
* Parameters:
* - `lost`: The "lost account" to be recovered.
* - `rescuer`: The "rescuer account" which can call as the lost account.
*
* # <weight>
* - One storage write O(1)
* - One event
* # </weight>
**/
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
/**
@@ -2992,18 +2926,6 @@ declare module '@polkadot/api-base/types/submittable' {
*
* The combination of these two parameters must point to an active recovery
* process.
*
* # <weight>
* Key: F (len of friends in config), V (len of vouching friends)
* - One storage read to get the recovery configuration. O(1), Codec O(F)
* - One storage read to get the active recovery process. O(1), Codec O(V)
* - One binary search to confirm caller is a friend. O(logF)
* - One binary search to confirm caller has not already vouched. O(logV)
* - One storage write. O(1), Codec O(V).
* - One event.
*
* Total Complexity: O(F + logF + V + logV)
* # </weight>
**/
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
/**
@@ -4545,6 +4467,24 @@ declare module '@polkadot/api-base/types/submittable' {
* # </weight>
**/
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Force a previously approved proposal to be removed from the approval queue.
* The original deposit will no longer be returned.
*
* May only be called from `T::RejectOrigin`.
* - `proposal_id`: The index of a proposal
*
* # <weight>
* - Complexity: O(A) where `A` is the number of approvals
* - Db reads and writes: `Approvals`
* # </weight>
*
* Errors:
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
* i.e., the proposal has not been approved. This could also mean the proposal does not
* exist altogether, thus there is no way it would have been approved in the first place.
**/
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
/**
* Generic tx
**/
@@ -2293,6 +2293,9 @@ export default {
proposalId: 'Compact<u32>',
},
approve_proposal: {
proposalId: 'Compact<u32>',
},
remove_approval: {
proposalId: 'Compact<u32>'
}
}
@@ -3958,7 +3961,7 @@ export default {
* Lookup452: pallet_treasury::pallet::Error<T, I>
**/
PalletTreasuryError: {
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals']
_enum: ['InsufficientProposersBalance', 'InvalidIndex', 'TooManyApprovals', 'ProposalNotApproved']
},
/**
* Lookup453: pallet_contracts::wasm::PrefabWasmModule<T>
@@ -4537,7 +4540,7 @@ export default {
* Lookup559: pallet_uniques::pallet::Error<T, I>
**/
PalletUniquesError: {
_enum: ['NoPermission', 'UnknownClass', 'AlreadyExists', 'WrongOwner', 'BadWitness', 'InUse', 'Frozen', 'WrongDelegate', 'NoDelegate', 'Unapproved', 'Unaccepted']
_enum: ['NoPermission', 'UnknownClass', 'AlreadyExists', 'WrongOwner', 'BadWitness', 'InUse', 'Frozen', 'WrongDelegate', 'NoDelegate', 'Unapproved', 'Unaccepted', 'Locked']
},
/**
* Lookup561: pallet_transaction_storage::TransactionInfo
@@ -2484,7 +2484,11 @@ declare module '@polkadot/types/lookup' {
readonly asApproveProposal: {
readonly proposalId: Compact<u32>;
} & Struct;
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';
readonly isRemoveApproval: boolean;
readonly asRemoveApproval: {
readonly proposalId: Compact<u32>;
} & Struct;
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal' | 'RemoveApproval';
}
/** @name PalletContractsCall (248) */
@@ -4334,7 +4338,8 @@ declare module '@polkadot/types/lookup' {
readonly isInsufficientProposersBalance: boolean;
readonly isInvalidIndex: boolean;
readonly isTooManyApprovals: boolean;
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';
readonly isProposalNotApproved: boolean;
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals' | 'ProposalNotApproved';
}
/** @name PalletContractsWasmPrefabWasmModule (453) */
@@ -5038,7 +5043,8 @@ declare module '@polkadot/types/lookup' {
readonly isNoDelegate: boolean;
readonly isUnapproved: boolean;
readonly isUnaccepted: boolean;
readonly type: 'NoPermission' | 'UnknownClass' | 'AlreadyExists' | 'WrongOwner' | 'BadWitness' | 'InUse' | 'Frozen' | 'WrongDelegate' | 'NoDelegate' | 'Unapproved' | 'Unaccepted';
readonly isLocked: boolean;
readonly type: 'NoPermission' | 'UnknownClass' | 'AlreadyExists' | 'WrongOwner' | 'BadWitness' | 'InUse' | 'Frozen' | 'WrongDelegate' | 'NoDelegate' | 'Unapproved' | 'Unaccepted' | 'Locked';
}
/** @name PalletTransactionStorageTransactionInfo (561) */
File diff suppressed because one or more lines are too long
@@ -268,7 +268,7 @@
{
"name": "Version",
"type": 169,
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000e62300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
"value": "0x186b7573616d61347061726974792d6b7573616d6102000000f02300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000b00000000",
"docs": [
" Get the chain's current version."
]
@@ -21280,6 +21280,35 @@
"- DbWrite: `Approvals`",
"# </weight>"
]
},
{
"name": "remove_approval",
"fields": [
{
"name": "proposal_id",
"type": 122,
"typeName": "ProposalIndex",
"docs": []
}
],
"index": 3,
"docs": [
"Force a previously approved proposal to be removed from the approval queue.",
"The original deposit will no longer be returned.",
"",
"May only be called from `T::RejectOrigin`.",
"- `proposal_id`: The index of a proposal",
"",
"# <weight>",
"- Complexity: O(A) where `A` is the number of approvals",
"- Db reads and writes: `Approvals`",
"# </weight>",
"",
"Errors:",
"- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,",
"i.e., the proposal has not been approved. This could also mean the proposal does not",
"exist altogether, thus there is no way it would have been approved in the first place."
]
}
]
}
@@ -24543,12 +24572,7 @@
"",
"Parameters:",
"- `account`: The recovered account you want to make a call on-behalf-of.",
"- `call`: The call you want to make with the recovered account.",
"",
"# <weight>",
"- The weight of the `call` + 10,000.",
"- One storage lookup to check account is recovered by `who`. O(1)",
"# </weight>"
"- `call`: The call you want to make with the recovered account."
]
},
{
@@ -24576,12 +24600,7 @@
"",
"Parameters:",
"- `lost`: The \"lost account\" to be recovered.",
"- `rescuer`: The \"rescuer account\" which can call as the lost account.",
"",
"# <weight>",
"- One storage write O(1)",
"- One event",
"# </weight>"
"- `rescuer`: The \"rescuer account\" which can call as the lost account."
]
},
{
@@ -24623,18 +24642,7 @@
" account can be recovered. Should be less than or equal to the length of the list of",
" friends.",
"- `delay_period`: The number of blocks after a recovery attempt is initialized that",
" needs to pass before the account can be recovered.",
"",
"# <weight>",
"- Key: F (len of friends)",
"- One storage read to check that account is not already recoverable. O(1).",
"- A check that the friends list is sorted and unique. O(F)",
"- One currency reserve operation. O(X)",
"- One storage write. O(1). Codec O(F).",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
" needs to pass before the account can be recovered."
]
},
{
@@ -24659,18 +24667,7 @@
"",
"Parameters:",
"- `account`: The lost account that you want to recover. This account needs to be",
" recoverable (i.e. have a recovery configuration).",
"",
"# <weight>",
"- One storage read to check that account is recoverable. O(F)",
"- One storage read to check that this recovery process hasn't already started. O(1)",
"- One currency reserve operation. O(X)",
"- One storage read to get the current block number. O(1)",
"- One storage write. O(1).",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
" recoverable (i.e. have a recovery configuration)."
]
},
{
@@ -24702,19 +24699,7 @@
"- `rescuer`: The account trying to rescue the lost account that you want to vouch for.",
"",
"The combination of these two parameters must point to an active recovery",
"process.",
"",
"# <weight>",
"Key: F (len of friends in config), V (len of vouching friends)",
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
"- One storage read to get the active recovery process. O(1), Codec O(V)",
"- One binary search to confirm caller is a friend. O(logF)",
"- One binary search to confirm caller has not already vouched. O(logV)",
"- One storage write. O(1), Codec O(V).",
"- One event.",
"",
"Total Complexity: O(F + logF + V + logV)",
"# </weight>"
"process."
]
},
{
@@ -24737,18 +24722,7 @@
"",
"Parameters:",
"- `account`: The lost account that you want to claim has been successfully recovered by",
" you.",
"",
"# <weight>",
"Key: F (len of friends in config), V (len of vouching friends)",
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
"- One storage read to get the active recovery process. O(1), Codec O(V)",
"- One storage read to get the current block number. O(1)",
"- One storage write. O(1), Codec O(V).",
"- One event.",
"",
"Total Complexity: O(F + V)",
"# </weight>"
" you."
]
},
{
@@ -24773,16 +24747,7 @@
"recoverable account with an active recovery process for it.",
"",
"Parameters:",
"- `rescuer`: The account trying to rescue this recoverable account.",
"",
"# <weight>",
"Key: V (len of vouching friends)",
"- One storage read/remove to get the active recovery process. O(1), Codec O(V)",
"- One balance call to repatriate reserved. O(X)",
"- One event.",
"",
"Total Complexity: O(V + X)",
"# </weight>"
"- `rescuer`: The account trying to rescue this recoverable account."
]
},
{
@@ -24800,17 +24765,7 @@
"(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)",
"",
"The dispatch origin for this call must be _Signed_ and must be a",
"recoverable account (i.e. has a recovery configuration).",
"",
"# <weight>",
"Key: F (len of friends)",
"- One storage read to get the prefix iterator for active recoveries. O(1)",
"- One storage read/remove to get the recovery configuration. O(1), Codec O(F)",
"- One balance call to unreserved. O(X)",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
"recoverable account (i.e. has a recovery configuration)."
]
},
{
@@ -24831,11 +24786,7 @@
"be able to make calls on behalf of the recovered account.",
"",
"Parameters:",
"- `account`: The recovered account you are able to call on-behalf-of.",
"",
"# <weight>",
"- One storage mutation to check account is recovered by `who`. O(1)",
"# </weight>"
"- `account`: The recovered account you are able to call on-behalf-of."
]
}
]
@@ -36038,6 +35989,14 @@
"docs": [
"Too many approvals in the queue."
]
},
{
"name": "ProposalNotApproved",
"fields": [],
"index": 3,
"docs": [
"Proposal has not been approved."
]
}
]
}
File diff suppressed because one or more lines are too long
@@ -268,7 +268,7 @@
{
"name": "Version",
"type": 166,
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000e62300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
"value": "0x20706f6c6b61646f743c7061726974792d706f6c6b61646f7400000000f02300000000000038df6acb689907609b0400000037e397fc7c91f5e40100000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000af2c0297a23e6d3d0200000049eaaf1b548a0cb00100000091d5df18b0d2cf5801000000ed99c5acb25eedf503000000cbca25e39f14238702000000687ad44ad37f03c201000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000000c00000000",
"docs": [
" Get the chain's current version."
]
@@ -17851,6 +17851,35 @@
"- DbWrite: `Approvals`",
"# </weight>"
]
},
{
"name": "remove_approval",
"fields": [
{
"name": "proposal_id",
"type": 119,
"typeName": "ProposalIndex",
"docs": []
}
],
"index": 3,
"docs": [
"Force a previously approved proposal to be removed from the approval queue.",
"The original deposit will no longer be returned.",
"",
"May only be called from `T::RejectOrigin`.",
"- `proposal_id`: The index of a proposal",
"",
"# <weight>",
"- Complexity: O(A) where `A` is the number of approvals",
"- Db reads and writes: `Approvals`",
"# </weight>",
"",
"Errors:",
"- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,",
"i.e., the proposal has not been approved. This could also mean the proposal does not",
"exist altogether, thus there is no way it would have been approved in the first place."
]
}
]
}
@@ -34280,6 +34309,14 @@
"docs": [
"Too many approvals in the queue."
]
},
{
"name": "ProposalNotApproved",
"fields": [],
"index": 3,
"docs": [
"Proposal has not been approved."
]
}
]
}
File diff suppressed because one or more lines are too long
@@ -16457,6 +16457,35 @@
"- DbWrite: `Approvals`",
"# </weight>"
]
},
{
"name": "remove_approval",
"fields": [
{
"name": "proposal_id",
"type": 119,
"typeName": "ProposalIndex",
"docs": []
}
],
"index": 3,
"docs": [
"Force a previously approved proposal to be removed from the approval queue.",
"The original deposit will no longer be returned.",
"",
"May only be called from `T::RejectOrigin`.",
"- `proposal_id`: The index of a proposal",
"",
"# <weight>",
"- Complexity: O(A) where `A` is the number of approvals",
"- Db reads and writes: `Approvals`",
"# </weight>",
"",
"Errors:",
"- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,",
"i.e., the proposal has not been approved. This could also mean the proposal does not",
"exist altogether, thus there is no way it would have been approved in the first place."
]
}
]
}
@@ -19478,12 +19507,7 @@
"",
"Parameters:",
"- `account`: The recovered account you want to make a call on-behalf-of.",
"- `call`: The call you want to make with the recovered account.",
"",
"# <weight>",
"- The weight of the `call` + 10,000.",
"- One storage lookup to check account is recovered by `who`. O(1)",
"# </weight>"
"- `call`: The call you want to make with the recovered account."
]
},
{
@@ -19511,12 +19535,7 @@
"",
"Parameters:",
"- `lost`: The \"lost account\" to be recovered.",
"- `rescuer`: The \"rescuer account\" which can call as the lost account.",
"",
"# <weight>",
"- One storage write O(1)",
"- One event",
"# </weight>"
"- `rescuer`: The \"rescuer account\" which can call as the lost account."
]
},
{
@@ -19558,18 +19577,7 @@
" account can be recovered. Should be less than or equal to the length of the list of",
" friends.",
"- `delay_period`: The number of blocks after a recovery attempt is initialized that",
" needs to pass before the account can be recovered.",
"",
"# <weight>",
"- Key: F (len of friends)",
"- One storage read to check that account is not already recoverable. O(1).",
"- A check that the friends list is sorted and unique. O(F)",
"- One currency reserve operation. O(X)",
"- One storage write. O(1). Codec O(F).",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
" needs to pass before the account can be recovered."
]
},
{
@@ -19594,18 +19602,7 @@
"",
"Parameters:",
"- `account`: The lost account that you want to recover. This account needs to be",
" recoverable (i.e. have a recovery configuration).",
"",
"# <weight>",
"- One storage read to check that account is recoverable. O(F)",
"- One storage read to check that this recovery process hasn't already started. O(1)",
"- One currency reserve operation. O(X)",
"- One storage read to get the current block number. O(1)",
"- One storage write. O(1).",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
" recoverable (i.e. have a recovery configuration)."
]
},
{
@@ -19637,19 +19634,7 @@
"- `rescuer`: The account trying to rescue the lost account that you want to vouch for.",
"",
"The combination of these two parameters must point to an active recovery",
"process.",
"",
"# <weight>",
"Key: F (len of friends in config), V (len of vouching friends)",
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
"- One storage read to get the active recovery process. O(1), Codec O(V)",
"- One binary search to confirm caller is a friend. O(logF)",
"- One binary search to confirm caller has not already vouched. O(logV)",
"- One storage write. O(1), Codec O(V).",
"- One event.",
"",
"Total Complexity: O(F + logF + V + logV)",
"# </weight>"
"process."
]
},
{
@@ -19672,18 +19657,7 @@
"",
"Parameters:",
"- `account`: The lost account that you want to claim has been successfully recovered by",
" you.",
"",
"# <weight>",
"Key: F (len of friends in config), V (len of vouching friends)",
"- One storage read to get the recovery configuration. O(1), Codec O(F)",
"- One storage read to get the active recovery process. O(1), Codec O(V)",
"- One storage read to get the current block number. O(1)",
"- One storage write. O(1), Codec O(V).",
"- One event.",
"",
"Total Complexity: O(F + V)",
"# </weight>"
" you."
]
},
{
@@ -19708,16 +19682,7 @@
"recoverable account with an active recovery process for it.",
"",
"Parameters:",
"- `rescuer`: The account trying to rescue this recoverable account.",
"",
"# <weight>",
"Key: V (len of vouching friends)",
"- One storage read/remove to get the active recovery process. O(1), Codec O(V)",
"- One balance call to repatriate reserved. O(X)",
"- One event.",
"",
"Total Complexity: O(V + X)",
"# </weight>"
"- `rescuer`: The account trying to rescue this recoverable account."
]
},
{
@@ -19735,17 +19700,7 @@
"(`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends)",
"",
"The dispatch origin for this call must be _Signed_ and must be a",
"recoverable account (i.e. has a recovery configuration).",
"",
"# <weight>",
"Key: F (len of friends)",
"- One storage read to get the prefix iterator for active recoveries. O(1)",
"- One storage read/remove to get the recovery configuration. O(1), Codec O(F)",
"- One balance call to unreserved. O(X)",
"- One event.",
"",
"Total Complexity: O(F + X)",
"# </weight>"
"recoverable account (i.e. has a recovery configuration)."
]
},
{
@@ -19766,11 +19721,7 @@
"be able to make calls on behalf of the recovered account.",
"",
"Parameters:",
"- `account`: The recovered account you are able to call on-behalf-of.",
"",
"# <weight>",
"- One storage mutation to check account is recovered by `who`. O(1)",
"# </weight>"
"- `account`: The recovered account you are able to call on-behalf-of."
]
}
]
@@ -30752,6 +30703,14 @@
"docs": [
"Too many approvals in the queue."
]
},
{
"name": "ProposalNotApproved",
"fields": [],
"index": 3,
"docs": [
"Proposal has not been approved."
]
}
]
}
@@ -36435,6 +36394,14 @@
"docs": [
"The named owner has not signed ownership of the class is acceptable."
]
},
{
"name": "Locked",
"fields": [],
"index": 11,
"docs": [
"The asset instance is locked."
]
}
]
}