Skip to content

Commit

Permalink
fix: yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Feb 17, 2020
1 parent 262582e commit 74728b1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 369 deletions.
5 changes: 3 additions & 2 deletions src/Context.ts
@@ -1,9 +1,10 @@
import { Identity } from './api/entities/Identity';
import { ApiPromise, Keyring } from '@polymathnetwork/polkadot/api';
import { KeyringPair } from '@polkadot/keyring/types';
import stringToU8a from '@polkadot/util/string/toU8a';
import { ApiPromise, Keyring } from '@polymathnetwork/polkadot/api';
import { IdentityId } from '@polymathnetwork/polkadot/types/interfaces';

import { Identity } from './api/entities/Identity';

interface BuildParams {
polymeshApi: ApiPromise;
accountSeed?: string | undefined;
Expand Down
3 changes: 2 additions & 1 deletion src/Polymesh.ts
@@ -1,7 +1,8 @@
import { ApiPromise, WsProvider } from '@polymathnetwork/polkadot/api';

import { PolymeshError } from './base/PolymeshError';
import { Context } from './Context';
import { ErrorCode } from './types';
import { PolymeshError } from './base/PolymeshError';

interface ConnectParams {
nodeUrl: string;
Expand Down
7 changes: 4 additions & 3 deletions src/__tests__/Context.ts
@@ -1,9 +1,10 @@
import * as polkadotModule from '@polymathnetwork/polkadot/api';
import { QueryableStorage } from '@polymathnetwork/polkadot/api/types';
import sinon from 'sinon';
import { Context } from '~/Context';
import { ImportMock, MockManager } from 'ts-mock-imports';
import * as polkadotModule from '@polymathnetwork/polkadot/api';

import * as identityModule from '~/api/entities/Identity';
import { QueryableStorage } from '@polymathnetwork/polkadot/api/types';
import { Context } from '~/Context';

describe('Context class', () => {
let mockKeyring: MockManager<polkadotModule.Keyring>;
Expand Down
7 changes: 4 additions & 3 deletions src/__tests__/Polymesh.ts
@@ -1,8 +1,9 @@
import { ImportMock } from 'ts-mock-imports';
import { Polymesh } from '~/Polymesh';
import * as pokadotModule from '@polymathnetwork/polkadot/api';
import sinon from 'sinon';
import { ImportMock } from 'ts-mock-imports';

import * as contextModule from '~/Context';
import * as pokadotModule from '@polymathnetwork/polkadot/api';
import { Polymesh } from '~/Polymesh';

describe('Polymesh Class', () => {
const mockApiPromise = ImportMock.mockStaticClass(pokadotModule, 'ApiPromise');
Expand Down
10 changes: 6 additions & 4 deletions src/api/entities/Identity.ts
@@ -1,10 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Entity } from './Entity';
import { serialize, unserialize } from '~/utils';
import { Context } from '~/Context';
import { Balance } from '@polymathnetwork/polkadot/types/interfaces';
import { ErrorCode } from '~/types';

import { PolymeshError } from '~/base/PolymeshError';
import { Context } from '~/Context';
import { ErrorCode } from '~/types';
import { serialize, unserialize } from '~/utils';

import { Entity } from './Entity';

/**
* Properties that uniquely identify an Identity
Expand Down

0 comments on commit 74728b1

Please sign in to comment.