git.delta.rocks / unique-network / refs/commits / 15ab59173593

difftreelog

remove duplicated interfaces

Max Andreev2022-08-24parent: #85f3ef2.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
77
8import {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';
13
1413
15const crossAccountIdFromLower = (lowerAddress: ICrossAccountIdLower): ICrossAccountId => {14const crossAccountIdFromLower = (lowerAddress: ICrossAccountIdLower): ICrossAccountId => {
46};45};
47
48
49interface IChainEvent {
50 data: any;
51 method: string;
52 section: string;
53}
54
55interface ITransactionResult {
56 status: 'Fail' | 'Success';
57 result: {
58 events: {
59 event: IChainEvent
60 }[];
61 },
62 moduleError?: string;
63}
64
65interface 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}
74
75interface 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}
8546
86class UniqueUtil {47class UniqueUtil {
87 static transactionStatus = {48 static transactionStatus = {