git.delta.rocks / unique-network / refs/commits / 3a3ad6b3e842

difftreelog

chore fix test formating

Grigoriy Simonov2022-10-25parent: #b3ce401.patch.diff
in: master

4 files changed

modifiedtests/src/eth/collectionAdmin.test.tsdiffbeforeafterboth
14// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.14// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1515
16import {IKeyringPair} from '@polkadot/types/types';16import {IKeyringPair} from '@polkadot/types/types';
17import {IEthCrossAccountId} from '../util/playgrounds/types';
18import {usingEthPlaygrounds, itEth, expect, EthUniqueHelper} from './util';17import {usingEthPlaygrounds, itEth, expect, EthUniqueHelper} from './util';
1918
20async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise<any>) {19async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise<any>) {
modifiedtests/src/eth/createFTCollection.test.tsdiffbeforeafterboth
27 before(async function() {27 before(async function() {
28 await usingEthPlaygrounds(async (helper, privateKey) => {28 await usingEthPlaygrounds(async (helper, privateKey) => {
29 requirePalletsOrSkip(this, helper, [Pallets.Fungible]);29 requirePalletsOrSkip(this, helper, [Pallets.Fungible]);
30 donor = await privateKey('//Alice');30 donor = await privateKey({filename: __filename});
31 });31 });
32 });32 });
3333
181 before(async function() {181 before(async function() {
182 await usingEthPlaygrounds(async (helper, privateKey) => {182 await usingEthPlaygrounds(async (helper, privateKey) => {
183 requirePalletsOrSkip(this, helper, [Pallets.Fungible]);183 requirePalletsOrSkip(this, helper, [Pallets.Fungible]);
184 donor = await privateKey('//Alice');184 donor = await privateKey({filename: __filename});
185 nominal = helper.balance.getOneTokenNominal();185 nominal = helper.balance.getOneTokenNominal();
186 });186 });
187 });187 });
modifiedtests/src/eth/destroyCollection.test.tsdiffbeforeafterboth
25 before(async function() {25 before(async function() {
26 await usingEthPlaygrounds(async (helper, privateKey) => {26 await usingEthPlaygrounds(async (helper, privateKey) => {
27 requirePalletsOrSkip(this, helper, [Pallets.ReFungible, Pallets.NFT]);27 requirePalletsOrSkip(this, helper, [Pallets.ReFungible, Pallets.NFT]);
28 donor = await privateKey('//Alice');28 donor = await privateKey({filename: __filename});
29 });29 });
30 });30 });
3131
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
77
8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';
9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';
10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm} from '@polkadot/util-crypto';
11import {IKeyringPair} from '@polkadot/types/types';11import {IKeyringPair} from '@polkadot/types/types';
12import {12import {
13 IApiListeners,13 IApiListeners,
33 TEthereumAccount,33 TEthereumAccount,
34 TSigner,34 TSigner,
35 TSubstrateAccount,35 TSubstrateAccount,
36 IEthCrossAccountId,
37 TNetworks,36 TNetworks,
38 IForeignAssetMetadata,37 IForeignAssetMetadata,
39 AcalaAssetMetadata,38 AcalaAssetMetadata,
40 MoonbeamAssetInfo,39 MoonbeamAssetInfo,
41 DemocracyStandardAccountVote,40 DemocracyStandardAccountVote,
42} from './types';41} from './types';
43import {hexToU8a} from '@polkadot/util/hex';
44import {u8aConcat} from '@polkadot/util/u8a';
4542
46export class CrossAccountId implements ICrossAccountId {43export class CrossAccountId implements ICrossAccountId {
47 Substrate?: TSubstrateAccount;44 Substrate?: TSubstrateAccount;