git.delta.rocks / unique-network / refs/commits / dc42d67e1052

difftreelog

fix remove cyclic imports

Daniel Shiposha2022-09-23parent: #6678c1e.patch.diff
in: master

4 files changed

modifiedtests/src/eth/util/playgrounds/types.tsdiffbeforeafterboth
1import {EthUniqueHelper} from './unique.dev';
2
3export interface ContractImports {1export interface ContractImports {
4 solPath: string;2 solPath: string;
16 args: { [key: string]: string }14 args: { [key: string]: string }
17};15};
18
19export type EthUniqueHelperConstructor = new (...args: any[]) => EthUniqueHelper;
2016
modifiedtests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth
--- a/tests/src/eth/util/playgrounds/unique.dev.ts
+++ b/tests/src/eth/util/playgrounds/unique.dev.ts
@@ -18,7 +18,7 @@
 
 import {DevUniqueHelper} from '../../../util/playgrounds/unique.dev';
 
-import {ContractImports, CompiledContract, NormalizedEvent, EthUniqueHelperConstructor} from './types';
+import {ContractImports, CompiledContract, NormalizedEvent} from './types';
 
 // Native contracts ABI
 import collectionHelpersAbi from '../../collectionHelpersAbi.json';
modifiedtests/src/util/playgrounds/types.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/types.ts
+++ b/tests/src/util/playgrounds/types.ts
@@ -2,7 +2,6 @@
 // SPDX-License-Identifier: Apache-2.0
 
 import {IKeyringPair} from '@polkadot/types/types';
-import {UniqueHelper} from './unique';
 
 export interface IEvent {
   section: string;
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -2772,6 +2772,8 @@
   }
 }
 
+export type UniqueHelperConstructor = new(...args: any[]) => UniqueHelper;
+
 // eslint-disable-next-line @typescript-eslint/naming-convention
 function ScheduledUniqueHelper<T extends UniqueHelperConstructor>(Base: T) {
   return class extends Base {