Update metadata, system DispatchError type (#1367)
This commit is contained in:
@@ -289,7 +289,9 @@
|
||||
},
|
||||
{
|
||||
"name": "ExtrinsicFailed",
|
||||
"args": [],
|
||||
"args": [
|
||||
"DispatchError"
|
||||
],
|
||||
"documentation": [
|
||||
" An extrinsic failed."
|
||||
]
|
||||
@@ -1218,7 +1220,7 @@
|
||||
" Take the origin account as a stash and lock up `value` of its balance. `controller` will",
|
||||
" be the account that controls it.",
|
||||
"",
|
||||
" `value` must be more than the `existential_deposit` defined in the Balances module.",
|
||||
" `value` must be more than the `minimum_balance` specified by `T::Currency`.",
|
||||
"",
|
||||
" The dispatch origin for this call must be _Signed_ by the stash account.",
|
||||
"",
|
||||
@@ -1268,7 +1270,7 @@
|
||||
"documentation": [
|
||||
" 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",
|
||||
" T::Currency::existential_deposit(), then it is increased to the full amount.",
|
||||
" T::Currency::minimum_balance(), then it is increased to the full amount.",
|
||||
"",
|
||||
" Once the unlock period is done, you can call `withdraw_unbonded` to actually move",
|
||||
" the funds out of management ready for transfer.",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -20,7 +20,7 @@ import { AuthIndex, AuthoritySignature, Heartbeat, OpaqueMultiaddr, OpaqueNetwor
|
||||
import { Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from './interfaces/offences';
|
||||
import { FullIdentification, IdentificationTuple, Keys, SessionIndex, SessionKeysPolkadot, SessionKeysSubstrate } from './interfaces/session';
|
||||
import { EraIndex, EraRewards, Exposure, Forcing, IndividualExposure, MomentOf, RewardDestination, SlashJournalEntry, StakingLedger, UnlockChunk, ValidatorPrefs, ValidatorPrefs0to145 } from './interfaces/staking';
|
||||
import { DigestOf, Event, EventId, EventIndex, EventRecord, EventRecord0to76, Key, Phase } from './interfaces/system';
|
||||
import { DigestOf, DispatchError, Event, EventId, EventIndex, EventRecord, EventRecord0to76, Key, Phase } from './interfaces/system';
|
||||
import { TreasuryProposal } from './interfaces/treasury';
|
||||
import { BlockAttestations, IncludedBlocks, MoreAttestations } from './interfaces/attestations';
|
||||
import { EcdsaSignature, EthereumAddress } from './interfaces/claims';
|
||||
@@ -569,6 +569,9 @@ export interface InterfaceRegistry {
|
||||
DigestOf: DigestOf;
|
||||
'Option<DigestOf>': Option<DigestOf>;
|
||||
'Vec<DigestOf>': Vec<DigestOf>;
|
||||
DispatchError: DispatchError;
|
||||
'Option<DispatchError>': Option<DispatchError>;
|
||||
'Vec<DispatchError>': Vec<DispatchError>;
|
||||
Event: Event;
|
||||
'Option<Event>': Option<Event>;
|
||||
'Vec<Event>': Vec<Event>;
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
export default {
|
||||
types: {
|
||||
DigestOf: 'Digest',
|
||||
DispatchError: {
|
||||
module: 'Option<u8>',
|
||||
error: 'u8'
|
||||
},
|
||||
Event: 'GenericEvent',
|
||||
EventId: '[u8; 2]',
|
||||
EventIndex: 'u32',
|
||||
|
||||
@@ -2,13 +2,21 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
||||
|
||||
import { Codec } from '../../types';
|
||||
import { Enum, Struct, Vec } from '../../codec';
|
||||
import { Bytes, GenericEvent, u32 } from '../../primitive';
|
||||
import { Enum, Option, Struct, Vec } from '../../codec';
|
||||
import { Bytes, GenericEvent, u32, u8 } from '../../primitive';
|
||||
import { Digest, Hash } from '../runtime';
|
||||
|
||||
/** Digest */
|
||||
export type DigestOf = Digest;
|
||||
|
||||
/** Struct */
|
||||
export interface DispatchError extends Struct {
|
||||
/** Option<u8> */
|
||||
readonly module: Option<u8>;
|
||||
/** u8 */
|
||||
readonly error: u8;
|
||||
}
|
||||
|
||||
/** GenericEvent */
|
||||
export type Event = GenericEvent;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user