DispatchInfo paysFee to Pays enum (#2266)
* DispatchInfo paysFee to Pays enum * Update Kusama types
This commit is contained in:
@@ -31,7 +31,7 @@ import { AttestedCandidate, AuctionIndex, Bidder, CandidateReceipt, CollatorId,
|
||||
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||
import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, DispatchClass, DispatchInfo, DispatchInfoTo190, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, Origin, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, DispatchClass, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, Origin, Pays, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||
import { SchedulePeriod, SchedulePriority, Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||
import { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||
import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||
@@ -179,6 +179,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
DispatchInfoTo190: DispatchInfoTo190;
|
||||
'Option<DispatchInfoTo190>': Option<DispatchInfoTo190>;
|
||||
'Vec<DispatchInfoTo190>': Vec<DispatchInfoTo190>;
|
||||
DispatchInfoTo244: DispatchInfoTo244;
|
||||
'Option<DispatchInfoTo244>': Option<DispatchInfoTo244>;
|
||||
'Vec<DispatchInfoTo244>': Vec<DispatchInfoTo244>;
|
||||
Fixed64: Fixed64;
|
||||
'Option<Fixed64>': Option<Fixed64>;
|
||||
'Vec<Fixed64>': Vec<Fixed64>;
|
||||
@@ -233,6 +236,9 @@ declare module '@polkadot/types/types/registry' {
|
||||
Origin: Origin;
|
||||
'Option<Origin>': Option<Origin>;
|
||||
'Vec<Origin>': Vec<Origin>;
|
||||
Pays: Pays;
|
||||
'Option<Pays>': Option<Pays>;
|
||||
'Vec<Pays>': Vec<Pays>;
|
||||
Perbill: Perbill;
|
||||
'Compact<Perbill>': Compact<Perbill>;
|
||||
'Option<Perbill>': Option<Perbill>;
|
||||
|
||||
@@ -45,12 +45,17 @@ export default {
|
||||
DispatchInfo: {
|
||||
weight: 'Weight',
|
||||
class: 'DispatchClass',
|
||||
paysFee: 'bool'
|
||||
paysFee: 'Pays'
|
||||
},
|
||||
DispatchInfoTo190: {
|
||||
weight: 'Weight',
|
||||
class: 'DispatchClass'
|
||||
},
|
||||
DispatchInfoTo244: {
|
||||
weight: 'Weight',
|
||||
class: 'DispatchClass',
|
||||
paysFee: 'bool'
|
||||
},
|
||||
Fixed64: 'Int<64, Fixed64>',
|
||||
Fixed128: 'Int<128, Fixed128>',
|
||||
H160: '[u8; 20; H160]',
|
||||
@@ -74,6 +79,9 @@ export default {
|
||||
ModuleId: 'LockIdentifier',
|
||||
Moment: 'u64',
|
||||
Origin: 'DoNotConstruct<Origin>',
|
||||
Pays: {
|
||||
_enum: ['Yes', 'No']
|
||||
},
|
||||
Perbill: 'u32',
|
||||
Percent: 'u8',
|
||||
Permill: 'u32',
|
||||
|
||||
@@ -84,7 +84,7 @@ export interface DispatchClass extends Enum {
|
||||
export interface DispatchInfo extends Struct {
|
||||
readonly weight: Weight;
|
||||
readonly class: DispatchClass;
|
||||
readonly paysFee: bool;
|
||||
readonly paysFee: Pays;
|
||||
}
|
||||
|
||||
/** @name DispatchInfoTo190 */
|
||||
@@ -93,6 +93,13 @@ export interface DispatchInfoTo190 extends Struct {
|
||||
readonly class: DispatchClass;
|
||||
}
|
||||
|
||||
/** @name DispatchInfoTo244 */
|
||||
export interface DispatchInfoTo244 extends Struct {
|
||||
readonly weight: Weight;
|
||||
readonly class: DispatchClass;
|
||||
readonly paysFee: bool;
|
||||
}
|
||||
|
||||
/** @name Fixed128 */
|
||||
export interface Fixed128 extends Int {}
|
||||
|
||||
@@ -150,6 +157,12 @@ export interface Moment extends u64 {}
|
||||
/** @name Origin */
|
||||
export interface Origin extends DoNotConstruct {}
|
||||
|
||||
/** @name Pays */
|
||||
export interface Pays extends Enum {
|
||||
readonly isYes: boolean;
|
||||
readonly isNo: boolean;
|
||||
}
|
||||
|
||||
/** @name Perbill */
|
||||
export interface Perbill extends u32 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user