difftreelog
remove duplicated interfaces
in: master
1 file changed
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth778import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';9import {ApiInterfaceEvents} from '@polkadot/api/types';9import {ApiInterfaceEvents} from '@polkadot/api/types';10import {IKeyringPair} from '@polkadot/types/types';11import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm} from '@polkadot/util-crypto';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm} from '@polkadot/util-crypto';11import {IKeyringPair} from '@polkadot/types/types';12import { ICrossAccountIdLower, ICrossAccountId, TUniqueNetworks, IApiListeners, TApiAllowedListeners, TSigner, TSubstrateAccount, ICollectionLimits, ICollectionPermissions, INestingPermissions, IProperty, ITokenPropertyPermission, ICollectionCreationOptions, IToken, IChainProperties, TEthereumAccount } from './types';12import {IApiListeners, IChainEvent, IChainProperties, ICollectionCreationOptions, ICollectionLimits, ICollectionPermissions, ICrossAccountId, ICrossAccountIdLower, ILogger, INestingPermissions, IProperty, IToken, ITokenPropertyPermission, ITransactionResult, IUniqueHelperLog, TApiAllowedListeners, TEthereumAccount, TSigner, TSubstrateAccount, TUniqueNetworks} from './types';13141315const crossAccountIdFromLower = (lowerAddress: ICrossAccountIdLower): ICrossAccountId => {14const crossAccountIdFromLower = (lowerAddress: ICrossAccountIdLower): ICrossAccountId => {46};45};474849interface IChainEvent {50 data: any;51 method: string;52 section: string;53}5455interface ITransactionResult {56 status: 'Fail' | 'Success';57 result: {58 events: {59 event: IChainEvent60 }[];61 },62 moduleError?: string;63}6465interface ILogger {66 log: (msg: any, level?: string) => void;67 level: {68 ERROR: 'ERROR';69 WARNING: 'WARNING';70 INFO: 'INFO';71 [key: string]: string;72 }73}7475interface IUniqueHelperLog {76 executedAt: number;77 executionTime: number;78 type: 'extrinsic' | 'rpc';79 status: 'Fail' | 'Success';80 call: string;81 params: any[];82 moduleError?: string;83 events?: any;84}854686class UniqueUtil {47class UniqueUtil {87 static transactionStatus = {48 static transactionStatus = {