Skip to content

Commit

Permalink
Fixed vec deque type (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaBothara authored Nov 8, 2020
1 parent 63567b4 commit 05c3be9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/interfaces/augment-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BitVec, Bytes, Data, DoNotConstruct, Null, StorageKey, Text, Type, U256
import { AttestationTopic, AttestationValue } from '@cennznet/api-types/interfaces/attestation';
import { ExchangeKey, FeeRate } from '@cennznet/api-types/interfaces/cennzx';
import { AssetInfo } from '@cennznet/api-types/interfaces/ga';
import { RewardBalance, RewardBalanceOf, RewardDestination, VecDeque } from '@cennznet/api-types/interfaces/staking';
import { RewardBalance, RewardBalanceOf, RewardDestination } from '@cennznet/api-types/interfaces/staking';
import { AcceptPayload, DeviceId, DeviceIdResponse, Group, Invite, Member, MemberRoles, Message, MessageId, Meta, PendingInvite, PreKeyBundle, PreKeyBundlesResponse, Response, VaultKey, VaultValue, WithdrawnPreKeyBundle } from '@cennznet/api-types/interfaces/sylo';
import { ChargeTransactionPayment, FeeExchange, FeeExchangeV1 } from '@cennznet/api-types/interfaces/transactionPayment';
import { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';
Expand Down Expand Up @@ -1530,9 +1530,6 @@ declare module '@polkadot/types/types/registry' {
RewardDestination: RewardDestination;
'Option<RewardDestination>': Option<RewardDestination>;
'Vec<RewardDestination>': Vec<RewardDestination>;
VecDeque: VecDeque;
'Option<VecDeque>': Option<VecDeque>;
'Vec<VecDeque>': Vec<VecDeque>;
Meta: Meta;
'Option<Meta>': Option<Meta>;
'Vec<Meta>': Vec<Meta>;
Expand Down
2 changes: 2 additions & 0 deletions src/interfaces/injects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import { CENNZnetExtrinsicSignatureV1, SignerPayload } from './extrinsic';
import * as definitions from './definitions';
import VecAny from "@polkadot/types/codec/VecAny";

const _types = {
...definitions,
Expand All @@ -25,6 +26,7 @@ const _types = {
types: {
ExtrinsicSignatureV4: CENNZnetExtrinsicSignatureV1,
SignerPayload,
VecDeque: VecAny,
}
}
};
Expand Down
1 change: 0 additions & 1 deletion src/interfaces/staking/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ export default {
Account: 'AccountId'
}
},
VecDeque: 'Vec<any>',
}
}
5 changes: 1 addition & 4 deletions src/interfaces/staking/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */

import { Enum, Vec } from '@polkadot/types/codec';
import { Enum } from '@polkadot/types/codec';
import { AccountId, Balance } from '@polkadot/types/interfaces/runtime';

/** @name RewardBalance */
Expand All @@ -18,7 +18,4 @@ export interface RewardDestination extends Enum {
readonly asAccount: AccountId;
}

/** @name VecDeque */
export interface VecDeque extends Vec<any> {}

export type PHANTOM_STAKING = 'staking';

0 comments on commit 05c3be9

Please sign in to comment.