Rename srml to interfaces (#1198)

* Rename srml to interfaces

* newline, package.json
This commit is contained in:
Jaco Greeff
2019-07-26 12:08:17 +02:00
committed by GitHub
parent a0d7a52a5c
commit 2a37b8746d
129 changed files with 183 additions and 124 deletions
+1 -1
View File
@@ -14,8 +14,8 @@
"scripts": {
"build": "polkadot-dev-build-ts && yarn run build:methodsdoc && polkadot-dev-build-docs",
"build:htmldoc": "yarn clean && typedoc --theme default --out docs/html",
"build:interfaces": "node packages/types/src/scripts/interfacesTsWrapper.js",
"build:methodsdoc": "node packages/types/src/scripts/MetadataMdWrapper.js",
"build:srmlTs": "node packages/types/src/scripts/srmlTSWrapper.js",
"check": "yarn lint",
"lint": "eslint --ext .js,.jsx,.ts,.tsx . && tsc --noEmit --pretty",
"clean": "polkadot-dev-clean-build",
+1 -1
View File
@@ -3,7 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { ISubmittableResult, SubmittableResult } from '@polkadot/api/SubmittableExtrinsic';
import { Hash } from '@polkadot/types/srml/types';
import { Hash } from '@polkadot/types/interfaces';
import { IKeyringPair } from '@polkadot/types/types';
import { ContractABI } from './types';
+1 -1
View File
@@ -3,7 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { ISubmittableResult, SubmittableResult } from '@polkadot/api/SubmittableExtrinsic';
import { Hash } from '@polkadot/types/srml/types';
import { Hash } from '@polkadot/types/interfaces';
import { IKeyringPair } from '@polkadot/types/types';
import { ContractABI } from './types';
+2 -2
View File
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BalanceLock, VestingSchedule } from '@polkadot/types/srml/balances/types';
import { Balance, BlockNumber, Index } from '@polkadot/types/srml/runtime/types';
import { BalanceLock, VestingSchedule } from '@polkadot/types/interfaces/balances';
import { Balance, BlockNumber, Index } from '@polkadot/types/interfaces/runtime';
import BN from 'bn.js';
import { combineLatest, of, Observable } from 'rxjs';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/types';
import { BlockNumber } from '@polkadot/types/interfaces';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/types';
import { BlockNumber } from '@polkadot/types/interfaces';
import { Observable } from 'rxjs';
import { filter, map } from 'rxjs/operators';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/types';
import { BlockNumber } from '@polkadot/types/interfaces';
import { Observable, combineLatest } from 'rxjs';
import { map } from 'rxjs/operators';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ReferendumInfo } from '@polkadot/types/srml/democracy/types';
import { ReferendumInfo } from '@polkadot/types/interfaces/democracy';
import BN from 'bn.js';
import { Observable } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ReferendumInfo } from '@polkadot/types/srml/democracy/types';
import { ReferendumInfo } from '@polkadot/types/interfaces/democracy';
import BN from 'bn.js';
import { Observable, of } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Balance } from '@polkadot/types/srml/types';
import { Balance } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import { combineLatest, Observable, of } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ReferendumIndex } from '@polkadot/types/srml/democracy/types';
import { ReferendumIndex } from '@polkadot/types/interfaces/democracy';
import BN from 'bn.js';
import { Observable, of } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ApprovalFlag, SetIndex } from '@polkadot/types/srml/elections/types';
import { ApprovalFlag, SetIndex } from '@polkadot/types/interfaces/elections';
import { ApiInterfaceRx } from '@polkadot/api/types';
import { Observable } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ApprovalFlag, SetIndex } from '@polkadot/types/srml/elections/types';
import { ApprovalFlag, SetIndex } from '@polkadot/types/interfaces/elections';
import { ApiInterfaceRx } from '@polkadot/api/types';
import { Observable } from 'rxjs';
+2 -2
View File
@@ -2,8 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SetIndex, VoteIndex } from '@polkadot/types/srml/elections/types';
import { BlockNumber } from '@polkadot/types/srml/types';
import { SetIndex, VoteIndex } from '@polkadot/types/interfaces/elections';
import { BlockNumber } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import { Observable } from 'rxjs';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SetIndex } from '@polkadot/types/srml/elections/types';
import { SetIndex } from '@polkadot/types/interfaces/elections';
import { ApiInterfaceRx } from '@polkadot/api/types';
import { AccountId, Vec, Option, createType } from '@polkadot/types';
import { DerivedVoterPositions } from '../types';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/types';
import { BlockNumber } from '@polkadot/types/interfaces';
import { DerivedSessionInfo } from '../types';
import BN from 'bn.js';
+3 -3
View File
@@ -2,9 +2,9 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/runtime/types';
import { Keys } from '@polkadot/types/srml/session/types';
import { Exposure, RewardDestination, StakingLedger, UnlockChunk, ValidatorPrefs } from '@polkadot/types/srml/staking/types';
import { BlockNumber } from '@polkadot/types/interfaces/runtime';
import { Keys } from '@polkadot/types/interfaces/session';
import { Exposure, RewardDestination, StakingLedger, UnlockChunk, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
import { ApiInterfaceRx } from '@polkadot/api/types';
import { DerivedStaking, DerivedUnlocking } from '../types';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ReferendumIndex, ReferendumInfo } from '@polkadot/types/srml/democracy/types';
import { ReferendumIndex, ReferendumInfo } from '@polkadot/types/interfaces/democracy';
import BN from 'bn.js';
import { ClassOf, createType } from '@polkadot/types';
+3 -3
View File
@@ -2,9 +2,9 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SetIndex, VoteIndex } from '@polkadot/types/srml/elections/types';
import { Balance, BlockNumber, Index } from '@polkadot/types/srml/runtime/types';
import { Exposure, RewardDestination, StakingLedger, ValidatorPrefs } from '@polkadot/types/srml/staking/types';
import { SetIndex, VoteIndex } from '@polkadot/types/interfaces/elections';
import { Balance, BlockNumber, Index } from '@polkadot/types/interfaces/runtime';
import { Exposure, RewardDestination, StakingLedger, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
import BN from 'bn.js';
import { AccountId, Vote } from '@polkadot/types';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ApprovalFlag } from '@polkadot/types/srml/elections/types';
import { ApprovalFlag } from '@polkadot/types/interfaces/elections';
import BN from 'bn.js';
import { Vec } from '@polkadot/types';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ApprovalFlag } from '@polkadot/types/srml/elections/types';
import { ApprovalFlag } from '@polkadot/types/interfaces/elections';
import { Vec } from '@polkadot/types';
+3 -3
View File
@@ -3,7 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { ProviderInterface } from '@polkadot/rpc-provider/types';
import { Hash, RuntimeVersion, SignedBlock } from '@polkadot/types/srml/types';
import { Hash, RuntimeVersion, SignedBlock } from '@polkadot/types/interfaces';
import { AnyFunction, Codec, CodecArg, RegistryTypes } from '@polkadot/types/types';
import {
ApiInterfaceRx, ApiInterfaceEvents, ApiOptions, ApiTypes, DecorateMethodOptions,
@@ -27,7 +27,7 @@ import { Event, getTypeRegistry, Metadata, Method, Null, u64 } from '@polkadot/t
import Linkage, { LinkageResult } from '@polkadot/types/codec/Linkage';
import { DEFAULT_VERSION as EXTRINSIC_DEFAULT_VERSION } from '@polkadot/types/primitive/Extrinsic/constants';
import { MethodFunction, ModulesWithMethods } from '@polkadot/types/primitive/Method';
import * as srmlTypes from '@polkadot/types/srml/definitions';
import * as interfacesTypes from '@polkadot/types/interfaces/definitions';
import { StorageEntry } from '@polkadot/types/primitive/StorageKey';
import { assert, compactStripLength, isFunction, isObject, isUndefined, logger, u8aToHex } from '@polkadot/util';
import { cryptoWaitReady } from '@polkadot/util-crypto';
@@ -143,7 +143,7 @@ export default abstract class ApiBase<ApiType> {
// we only re-register the types (global) if this is not a cloned instance
if (!options.source) {
// first register the definitions we have, i.e. those where there are no type classes
Object.values(srmlTypes).forEach(({ types }): void =>
Object.values(interfacesTypes).forEach(({ types }): void =>
this.registerTypes(types)
);
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Balance, BlockNumber, Hash, Index } from '@polkadot/types/srml/types';
import { Balance, BlockNumber, Hash, Index } from '@polkadot/types/interfaces';
import { SignerPayload as ISignerPayload } from './types';
import { Address, ClassOf, Compact, ExtrinsicEra, Struct, u8, Method } from '@polkadot/types';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ExtrinsicStatus, EventRecord, Hash, Index, SignedBlock } from '@polkadot/types/srml/types';
import { ExtrinsicStatus, EventRecord, Hash, Index, SignedBlock } from '@polkadot/types/interfaces';
import { AnyNumber, AnyU8a, Callback, Codec, IExtrinsic, IExtrinsicEra, IKeyringPair, SignatureOptions } from '@polkadot/types/types';
import { ApiInterfaceRx, ApiTypes } from './types';
+1 -1
View File
@@ -4,7 +4,7 @@
// Simple non-runnable checks to test type definitions in the editor itself
import { Index } from '@polkadot/types/srml/types';
import { Index } from '@polkadot/types/interfaces';
import { ApiPromise } from '@polkadot/api';
import { HeaderExtended } from '@polkadot/api-derive';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Hash, RuntimeVersion } from '@polkadot/types/srml/types';
import { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
import { AnyFunction, Callback, Codec, CodecArg, IExtrinsic, RegistryTypes, SignatureOptions } from '@polkadot/types/types';
import BN from 'bn.js';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { EventRecord, SignedBlock } from '@polkadot/types/srml/types';
import { EventRecord, SignedBlock } from '@polkadot/types/interfaces';
import { U8a } from '@polkadot/types';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { BlockNumber } from '@polkadot/types/srml/types';
import { BlockNumber } from '@polkadot/types/interfaces';
import BN from 'bn.js';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SignedBlock } from '@polkadot/types/srml/types';
import { SignedBlock } from '@polkadot/types/interfaces';
import WsProvider from '@polkadot/rpc-provider/ws';
import { Extrinsic } from '@polkadot/types';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { EventRecord } from '@polkadot/types/srml/types';
import { EventRecord } from '@polkadot/types/interfaces';
import WsProvider from '@polkadot/rpc-provider/ws';
import { AccountId, ClassOf, Header, Option, Vec } from '@polkadot/types';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Hash } from '@polkadot/types/srml/types';
import { Hash } from '@polkadot/types/interfaces';
import fs from 'fs';
import path from 'path';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Balance, Index } from '@polkadot/types/srml/types';
import { Balance, Index } from '@polkadot/types/interfaces';
import BN from 'bn.js';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { EventRecord, Hash, SessionIndex } from '@polkadot/types/srml/types';
import { EventRecord, Hash, SessionIndex } from '@polkadot/types/interfaces';
import { HeaderExtended } from '@polkadot/api-derive';
import WsProvider from '@polkadot/rpc-provider/ws';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { EventRecord, Hash, Index, SignedBlock } from '@polkadot/types/srml/types';
import { EventRecord, Hash, Index, SignedBlock } from '@polkadot/types/interfaces';
import Keyring from '@polkadot/keyring';
import testingPairs from '@polkadot/keyring/testingPairs';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Balance } from '@polkadot/types/srml/types';
import { Balance } from '@polkadot/types/interfaces';
import BN from 'bn.js';
import { Observable } from 'rxjs';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Index } from '@polkadot/types/srml/types';
import { Index } from '@polkadot/types/interfaces';
import { Observable } from 'rxjs';
import { first, switchMap } from 'rxjs/operators';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { SignedBlock, StorageChangeSet } from '@polkadot/types/srml/types';
import { SignedBlock, StorageChangeSet } from '@polkadot/types/interfaces';
import storage from '@polkadot/api-metadata/storage/static';
import WsProvider from '@polkadot/rpc-provider/ws';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { ChainProperties } from '@polkadot/types/srml/types';
import { ChainProperties } from '@polkadot/types/interfaces';
import { ClassOf, Extrinsic, Vec } from '@polkadot/types';
import WsProvider from '@polkadot/rpc-provider/ws';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { RuntimeVersion } from '@polkadot/types/srml/types';
import { RuntimeVersion } from '@polkadot/types/interfaces';
import { ClassOf, Header } from '@polkadot/types';
import WsProvider from '@polkadot/rpc-provider/ws';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Balance, Hash, StorageData } from '@polkadot/types/srml/types';
import { Balance, Hash, StorageData } from '@polkadot/types/interfaces';
import fs from 'fs';
import path from 'path';
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { StorageChangeSet } from '@polkadot/types/srml/types';
import { StorageChangeSet } from '@polkadot/types/interfaces';
import WsProvider from '@polkadot/rpc-provider/ws';
import storage from '@polkadot/api-metadata/storage/static';
+1 -1
View File
@@ -4,7 +4,7 @@
import '@polkadot/types/injector';
import { Balance } from '@polkadot/types/srml/types';
import { Balance } from '@polkadot/types/interfaces';
import { Codec } from '@polkadot/types/types';
import fromMetadata from '@polkadot/api-metadata/storage/fromMetadata';
+1 -1
View File
@@ -4,7 +4,7 @@
import { ProviderInterface } from '@polkadot/rpc-provider/types';
import { RpcSection, RpcMethod } from '@polkadot/jsonrpc/types';
import { StorageChangeSet, StorageData } from '@polkadot/types/srml/types';
import { StorageChangeSet, StorageData } from '@polkadot/types/interfaces';
import { AnyJson, Codec } from '@polkadot/types/types';
import { RpcInterface, RpcInterfaceMethod, RpcInterfaceSection } from './types';
+1 -1
View File
@@ -4,7 +4,7 @@
import '../injector';
import { Balance, BlockNumber } from '../srml/runtime/types';
import { Balance, BlockNumber } from '../interfaces/runtime';
import BN from 'bn.js';
+2 -2
View File
@@ -4,8 +4,8 @@
import '../injector';
import { VoteThreshold } from '../srml/elections/types';
import { BlockNumber } from '../srml/runtime/types';
import { VoteThreshold } from '../interfaces/elections';
import { BlockNumber } from '../interfaces/runtime';
import { CodecTo } from '../types';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
+1 -1
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { Proposal, PropIndex } from '../srml/democracy/types';
import { Proposal, PropIndex } from '../interfaces/democracy';
import { Codec, CodecTo } from '../types';
import extrinsics from '@polkadot/api-metadata/extrinsics/static';
+2 -2
View File
@@ -4,7 +4,7 @@
import { ClassOf } from './codec/createType';
import getTypeRegistry from './codec/typeRegistry';
import * as srmlTypes from './srml/definitions';
import * as definitions from './interfaces/definitions';
/**
* @description A utility method that injects all the srml definitions into the type registry
@@ -12,7 +12,7 @@ import * as srmlTypes from './srml/definitions';
export function injectDefinitions (): void {
const registry = getTypeRegistry();
Object.values(srmlTypes).forEach(({ types }): void =>
Object.values(definitions).forEach(({ types }): void =>
registry.register(types)
);
+1 -1
View File
@@ -1,4 +1,4 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Option, Vec } from './codec';
import { AccountId, AccountIndex, Address, Block, Bool, Bytes, ConsensusEngineId, Data, Digest, DigestItem, Event, Extrinsic, ExtrinsicEra, Fixed64, H160, H256, H512, Header, I128, I16, I256, I32, I64, I8, ImmortalEra, Method, Moment, MortalEra, Null, Origin, SignaturePayload, StorageHasher, StorageKey, Text, Type, U128, U16, U256, U32, U64, U8, Vote, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from './primitive';
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,9 +1,9 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Codec } from '../../types';
import { Enum, Option, Vec } from '../../codec';
import { AccountId } from '../../primitive';
import { BlockNumber, Hash } from '../runtime/types';
import { BlockNumber, Hash } from '../runtime';
/** BlockNumber */
export type InclusionHeight = BlockNumber;
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,4 +1,4 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Option, Vec } from '../../codec';
import { u64 } from '../../primitive';
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,7 +1,7 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Option, Set, Struct, Vec } from '../../codec';
import { Balance, BlockNumber, LockIdentifier } from '../runtime/types';
import { Balance, BlockNumber, LockIdentifier } from '../runtime';
/** Struct */
export interface BalanceLock extends Struct {
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,4 +1,4 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Option, Struct, Vec } from '../../codec';
import { AccountId, u32, u64 } from '../../primitive';
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,4 +1,4 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Option, Vec } from '../../codec';
import { AccountId } from '../../primitive';
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,8 +1,8 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { Bool, Bytes, Null, u32, u64, u8 } from '../../primitive';
import { Balance, BlockNumber, Hash } from '../runtime/types';
import { Balance, BlockNumber, Hash } from '../runtime';
/** Struct */
export interface AliveContractInfo extends Struct {
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,9 +1,9 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { Method, u32 } from '../../primitive';
import { BlockNumber } from '../runtime/types';
import { VoteThreshold } from '../elections/types';
import { BlockNumber } from '../runtime';
import { VoteThreshold } from '../elections';
/** Enum */
export interface Conviction extends Enum {
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,8 +1,8 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { AccountId, Bytes, Null, i8, u32, u64 } from '../../primitive';
import { Balance } from '../runtime/types';
import { Balance } from '../runtime';
/** Struct */
export interface AccountInfo extends Struct {
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,8 +1,8 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { u32 } from '../../primitive';
import { Balance } from '../runtime/types';
import { Balance } from '../runtime';
/** u32 */
export type ApprovalFlag = u32;
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,10 +1,10 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Codec } from '../../types';
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { u64 } from '../../primitive';
import { BlockNumber } from '../runtime/types';
import { AuthorityId } from '../consensus/types';
import { BlockNumber } from '../runtime';
import { AuthorityId } from '../consensus';
/** u64 */
export type AuthorityWeight = u64;
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,10 +1,10 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Option, Struct, Vec } from '../../codec';
import { Bytes } from '../../primitive';
import { BlockNumber } from '../runtime/types';
import { AuthorityId } from '../consensus/types';
import { SessionIndex } from '../session/types';
import { BlockNumber } from '../runtime';
import { AuthorityId } from '../consensus';
import { SessionIndex } from '../session';
/** Struct */
export interface Heartbeat extends Struct {
+3
View File
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,9 +1,9 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Codec } from '../../types';
import { Compact, Enum, Option, Struct, Vec } from '../../codec';
import { AccountId, Bytes, u32, u64 } from '../../primitive';
import { BalanceOf, BlockNumber, Hash, Signature } from '../runtime/types';
import { BalanceOf, BlockNumber, Hash, Signature } from '../runtime';
/** Struct */
export interface AttestedCandidate extends Struct {
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,9 +1,9 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Codec } from '../../types';
import { Enum, Option, Struct, Vec } from '../../codec';
import { Block, Bytes, ConsensusEngineId, StorageKey, Text, bool, u32, u64, u8 } from '../../primitive';
import { BlockNumber, Hash, Justification, Signature, StorageData } from '../runtime/types';
import { BlockNumber, Hash, Justification, Signature, StorageData } from '../runtime';
/** Vec<u8> */
export type ApiId = Vec<u8>;
@@ -0,0 +1,3 @@
// Auto-generated via `yarn build:interfaces`, do not edit
export * from './types';
@@ -1,4 +1,4 @@
// Auto-generated via `yarn build:srmlTs`, do not edit
// Auto-generated via `yarn build:interfaces`, do not edit
import { Codec } from '../../types';
import { Compact, Option, Struct, Vec } from '../../codec';

Some files were not shown because too many files have changed in this diff Show More