Skip to content

Commit

Permalink
refactor: js-packages structure
Browse files Browse the repository at this point in the history
  • Loading branch information
uandysmith committed Jan 14, 2024
1 parent 667f02f commit 927de33
Show file tree
Hide file tree
Showing 88 changed files with 165 additions and 513 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ _help:
@echo " bench-unique"

NATIVE_FUNGIBLE_EVM_STUBS=./pallets/balances-adapter/src/stubs
NATIVE_FUNGIBLE_EVM_ABI=./js-packages/tests/eth/abi/nativeFungible.json
NATIVE_FUNGIBLE_EVM_ABI=./js-packages/evm-abi/abi/nativeFungible.json

FUNGIBLE_EVM_STUBS=./pallets/fungible/src/stubs
FUNGIBLE_EVM_ABI=./js-packages/tests/eth/abi/fungible.json
FUNGIBLE_EVM_ABI=./js-packages/evm-abi/abi/fungible.json

NONFUNGIBLE_EVM_STUBS=./pallets/nonfungible/src/stubs
NONFUNGIBLE_EVM_ABI=./js-packages/tests/eth/abi/nonFungible.json
NONFUNGIBLE_EVM_ABI=./js-packages/evm-abi/abi/nonFungible.json

REFUNGIBLE_EVM_STUBS=./pallets/refungible/src/stubs
REFUNGIBLE_EVM_ABI=./js-packages/tests/eth/abi/reFungible.json
REFUNGIBLE_TOKEN_EVM_ABI=./js-packages/tests/eth/abi/reFungibleToken.json
REFUNGIBLE_EVM_ABI=./js-packages/evm-abi/abi/reFungible.json
REFUNGIBLE_TOKEN_EVM_ABI=./js-packages/evm-abi/abi/reFungibleToken.json

CONTRACT_HELPERS_STUBS=./pallets/evm-contract-helpers/src/stubs/
CONTRACT_HELPERS_ABI=./js-packages/tests/eth/abi/contractHelpers.json
CONTRACT_HELPERS_ABI=./js-packages/evm-abi/abi/contractHelpers.json

COLLECTION_HELPER_STUBS=./pallets/unique/src/eth/stubs/
COLLECTION_HELPER_ABI=./js-packages/tests/eth/abi/collectionHelpers.json
COLLECTION_HELPER_ABI=./js-packages/evm-abi/abi/collectionHelpers.json

TESTS_API=./js-packages/tests/eth/api/
TESTS_API=./js-packages/evm-abi/api/

.PHONY: regenerate_solidity
regenerate_solidity: UniqueFungible.sol UniqueNFT.sol UniqueRefungible.sol UniqueRefungibleToken.sol ContractHelpers.sol CollectionHelpers.sol
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions js-packages/evm-abi/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"author": "Unique Network",
"license": "Apache 2.0",
"description": "EVM interfaces for Unique Network chains",
"engines": {
"node": ">=18"
},
"name": "@unique-nft/evm-abi",
"type": "module",
"version": "1.0.0",
"main": "index.js"
}
2 changes: 2 additions & 0 deletions js-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@unique-nft/evm-abi": "workspace:*",
"@unique-nft/opal-testnet-types": "workspace:*",
"@unique-nft/playgrounds": "workspace:*",
"@unique/test-utils": "workspace:*",
Expand Down Expand Up @@ -58,6 +59,7 @@
"packageManager": "[email protected]",
"workspaces": [
"types",
"evm-abi",
"playgrounds",
"scripts",
"test-utils",
Expand Down
6 changes: 3 additions & 3 deletions js-packages/scripts/benchmarks/mintFee/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {readFile} from 'fs/promises';
import type {ICrossAccountId} from '@unique-nft/playgrounds/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
Expand All @@ -8,7 +8,7 @@ import {Contract} from 'web3-eth-contract';
import {createObjectCsvWriter} from 'csv-writer';
import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common.js';
import {makeNames} from '@unique/test-utils/util.js';
import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';
import type {ContractImports} from '@unique/test-utils/eth/types.js';

const {dirname} = makeNames(import.meta.url);

Expand Down
30 changes: 16 additions & 14 deletions js-packages/scripts/benchmarks/nesting/index.ts
Original file line number Diff line number Diff line change
@@ -1,58 +1,60 @@
import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {readFile} from 'fs/promises';
import type {IKeyringPair} from '@polkadot/types/types';
import {Contract} from 'web3-eth-contract';
import {convertToTokens} from '../utils/common.js';
import {makeNames} from '@unique/test-utils/util.js';
import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';
import type {ContractImports} from '@unique/test-utils/eth/types.js';
import type {RMRKNestableMintable} from './ABIGEN/index.js';

const {dirname} = makeNames(import.meta.url);

const NODE_MODULES = `${dirname}/../../../../node_modules`

Check failure on line 13 in js-packages/scripts/benchmarks/nesting/index.ts

View workflow job for this annotation

GitHub Actions / codestyle / yarn_eslint

Missing semicolon

export const CONTRACT_IMPORT: ContractImports[] = [
{
fsPath: `${dirname}/../../../../node_modules/@rmrk-team/evm-contracts/contracts/RMRK/nestable/RMRKNestable.sol`,
fsPath: `${NODE_MODULES}/@rmrk-team/evm-contracts/contracts/RMRK/nestable/RMRKNestable.sol`,
solPath: '@rmrk-team/evm-contracts/contracts/RMRK/nestable/RMRKNestable.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@rmrk-team/evm-contracts/contracts/RMRK/nestable/IERC6059.sol`,
fsPath: `${NODE_MODULES}/@rmrk-team/evm-contracts/contracts/RMRK/nestable/IERC6059.sol`,
solPath: '@rmrk-team/evm-contracts/contracts/RMRK/nestable/IERC6059.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@rmrk-team/evm-contracts/contracts/RMRK/core/RMRKCore.sol`,
fsPath: `${NODE_MODULES}/@rmrk-team/evm-contracts/contracts/RMRK/core/RMRKCore.sol`,
solPath: '@rmrk-team/evm-contracts/contracts/RMRK/core/RMRKCore.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol`,
solPath: '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/token/ERC721/IERC721.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/token/ERC721/IERC721.sol`,
solPath: '@openzeppelin/contracts/token/ERC721/IERC721.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol`,
solPath: '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/utils/Address.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/utils/Address.sol`,
solPath: '@openzeppelin/contracts/utils/Address.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/utils/Context.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/utils/Context.sol`,
solPath: '@openzeppelin/contracts/utils/Context.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@openzeppelin/contracts/utils/introspection/IERC165.sol`,
fsPath: `${NODE_MODULES}/@openzeppelin/contracts/utils/introspection/IERC165.sol`,
solPath: '@openzeppelin/contracts/utils/introspection/IERC165.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@rmrk-team/evm-contracts/contracts/RMRK/library/RMRKErrors.sol`,
fsPath: `${NODE_MODULES}/@rmrk-team/evm-contracts/contracts/RMRK/library/RMRKErrors.sol`,
solPath: '@rmrk-team/evm-contracts/contracts/RMRK/library/RMRKErrors.sol',
},
{
fsPath: `${dirname}/../../../../node_modules/@rmrk-team/evm-contracts/contracts/RMRK/core/IRMRKCore.sol`,
fsPath: `${NODE_MODULES}/@rmrk-team/evm-contracts/contracts/RMRK/core/IRMRKCore.sol`,
solPath: '@rmrk-team/evm-contracts/contracts/RMRK/core/IRMRKCore.sol',
},
{
Expand Down
6 changes: 3 additions & 3 deletions js-packages/scripts/benchmarks/opsFee/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {readFile} from 'fs/promises';
import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '@unique/tests/eth/util/playgrounds/types.js';
import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '@unique/test-utils/eth/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
import {UniqueFTCollection, UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';
import {Contract} from 'web3-eth-contract';
Expand Down
2 changes: 1 addition & 1 deletion js-packages/scripts/benchmarks/utils/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {UniqueNFTCollection, UniqueRFTCollection} from '@unique-nft/playgrounds/unique.js';
import type {ITokenPropertyPermission, TCollectionMode} from '@unique-nft/playgrounds/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
Expand Down
4 changes: 2 additions & 2 deletions js-packages/scripts/calibrate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {IKeyringPair} from '@polkadot/types/types';
import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';
import {EthUniqueHelper} from '@unique/tests//eth/util/playgrounds/unique.dev.js';
import {usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';

class Fract {
static ZERO = new Fract(0n);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import config from '../config.js';
import config from '../tests/config.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import type {u32} from '@polkadot/types-codec';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import type {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, E
import {CollectionMode, CreateCollectionData} from './types.js';

// Native contracts ABI
import collectionHelpersAbi from '../../abi/collectionHelpers.json' assert {type: 'json'};
import nativeFungibleAbi from '../../abi/nativeFungible.json' assert {type: 'json'};
import fungibleAbi from '../../abi/fungible.json' assert {type: 'json'};
import fungibleDeprecatedAbi from '../../abi/fungibleDeprecated.json' assert {type: 'json'};
import nonFungibleAbi from '../../abi/nonFungible.json' assert {type: 'json'};
import nonFungibleDeprecatedAbi from '../../abi/nonFungibleDeprecated.json' assert {type: 'json'};
import refungibleAbi from '../../abi/reFungible.json' assert {type: 'json'};
import refungibleDeprecatedAbi from '../../abi/reFungibleDeprecated.json' assert {type: 'json'};
import refungibleTokenAbi from '../../abi/reFungibleToken.json' assert {type: 'json'};
import refungibleTokenDeprecatedAbi from '../../abi/reFungibleTokenDeprecated.json' assert {type: 'json'};
import contractHelpersAbi from '../../abi/contractHelpers.json' assert {type: 'json'};
import collectionHelpersAbi from '@unique-nft/evm-abi/abi/collectionHelpers.json' assert {type: 'json'};
import nativeFungibleAbi from '@unique-nft/evm-abi/abi/nativeFungible.json' assert {type: 'json'};
import fungibleAbi from '@unique-nft/evm-abi/abi/fungible.json' assert {type: 'json'};
import fungibleDeprecatedAbi from '@unique-nft/evm-abi/abi/fungibleDeprecated.json' assert {type: 'json'};
import nonFungibleAbi from '@unique-nft/evm-abi/abi/nonFungible.json' assert {type: 'json'};
import nonFungibleDeprecatedAbi from '@unique-nft/evm-abi/abi/nonFungibleDeprecated.json' assert {type: 'json'};
import refungibleAbi from '@unique-nft/evm-abi/abi/reFungible.json' assert {type: 'json'};
import refungibleDeprecatedAbi from '@unique-nft/evm-abi/abi/reFungibleDeprecated.json' assert {type: 'json'};
import refungibleTokenAbi from '@unique-nft/evm-abi/abi/reFungibleToken.json' assert {type: 'json'};
import refungibleTokenDeprecatedAbi from '@unique-nft/evm-abi/abi/reFungibleTokenDeprecated.json' assert {type: 'json'};
import contractHelpersAbi from '@unique-nft/evm-abi/abi/contractHelpers.json' assert {type: 'json'};
import type {ICrossAccountId, TEthereumAccount, TCollectionMode} from '@unique-nft/playgrounds/types.js';

class EthGroupBase {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import * as path from 'path';
import type {IKeyringPair} from '@polkadot/types/types';

import config from '../../config.js';
import config from '../../tests/config.js';

import {EthUniqueHelper} from './playgrounds/unique.dev.js';
import {EthUniqueHelper} from './index.js';
import {SilentLogger, SilentConsole} from '@unique/test-utils';
import type {SchedKind} from '@unique/test-utils/util.js';

Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/allowlist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import type {IKeyringPair} from '@polkadot/types/types';
import {Pallets} from '@unique/test-utils/util.js';
import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util/index.js';
import {CreateCollectionData} from './util/playgrounds/types.js';
import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from '@unique/test-utils/eth/util.js';
import {CreateCollectionData} from '@unique/test-utils/eth/types.js';

describe('EVM contract allowlist', () => {
let donor: IKeyringPair;
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/base.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import type {IKeyringPair} from '@polkadot/types/types';
import {itEth, usingEthPlaygrounds, expect} from './util/index.js';
import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';
import {itEth, usingEthPlaygrounds, expect} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';


describe('Contract calls', () => {
Expand Down
6 changes: 3 additions & 3 deletions js-packages/tests/eth/collectionAdmin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import type {IKeyringPair} from '@polkadot/types/types';
import {expect} from 'chai';
import {Pallets} from '@unique/test-utils/util.js';
import type {IEthCrossAccountId} from '@unique-nft/playgrounds/types.js';
import {usingEthPlaygrounds, itEth} from './util/index.js';
import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';
import {CreateCollectionData} from './util/playgrounds/types.js';
import {usingEthPlaygrounds, itEth} from '@unique/test-utils/eth/util.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {CreateCollectionData} from '@unique/test-utils/eth/types.js';

async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise<any>) {
const before = await helper.balance.getSubstrate(helper.address.ethToSubstrate(userAddress));
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/eth/collectionHelperAddress.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import {itEth, usingEthPlaygrounds, expect} from './util/index.js';
import {itEth, usingEthPlaygrounds, expect} from '@unique/test-utils/eth/util.js';
import type {IKeyringPair} from '@polkadot/types/types';
import {COLLECTION_HELPER, Pallets} from '@unique/test-utils/util.js';

Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/collectionLimits.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {IKeyringPair} from '@polkadot/types/types';
import {Pallets} from '@unique/test-utils/util.js';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CollectionLimitField, CreateCollectionData} from '@unique/test-utils/eth/types.js';


describe('Can set collection limits', () => {
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/eth/collectionProperties.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import {itEth, usingEthPlaygrounds, expect} from './util/index.js';
import {itEth, usingEthPlaygrounds, expect} from '@unique/test-utils/eth/util.js';
import {Pallets} from '@unique/test-utils/util.js';
import type {IProperty, ITokenPropertyPermission} from '@unique-nft/playgrounds/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/collectionSponsoring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import type {IKeyringPair} from '@polkadot/types/types';
import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';
import {itEth, expect} from './util/index.js';
import {CollectionLimitField, TokenPermissionField} from './util/playgrounds/types.js';
import {itEth, expect} from '@unique/test-utils/eth/util.js';
import {CollectionLimitField, TokenPermissionField} from '@unique/test-utils/eth/types.js';

describe('evm nft collection sponsoring', () => {
let donor: IKeyringPair;
Expand Down
6 changes: 3 additions & 3 deletions js-packages/tests/eth/contractSponsoring.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import type {IKeyringPair} from '@polkadot/types/types';
import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';
import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from './util/index.js';
import {EthUniqueHelper} from '@unique/test-utils/eth/index.js';
import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import type {CompiledContract} from './util/playgrounds/types.js';
import type {CompiledContract} from '@unique/test-utils/eth/types.js';

describe('Sponsoring EVM contracts', () => {
let donor: IKeyringPair;
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/createCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import type {IKeyringPair} from '@polkadot/types/types';
import {evmToAddress} from '@polkadot/util-crypto';
import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from '@unique/test-utils/eth/types.js';
import {CollectionFlag} from '@unique-nft/playgrounds/types.js';
import type {IEthCrossAccountId, TCollectionMode} from '@unique-nft/playgrounds/types.js';

Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/eth/createFTCollection.seqtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import type {IKeyringPair} from '@polkadot/types/types';
import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';

const DECIMALS = 18;

Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/createFTCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import type {IKeyringPair} from '@polkadot/types/types';
import {evmToAddress} from '@polkadot/util-crypto';
import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {CollectionLimitField} from './util/playgrounds/types.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CollectionLimitField} from '@unique/test-utils/eth/types.js';

const DECIMALS = 18;

Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/eth/createNFTCollection.seqtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import type {IKeyringPair} from '@polkadot/types/types';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';


describe('Create NFT collection from EVM', () => {
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/createNFTCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import {evmToAddress} from '@polkadot/util-crypto';
import type {IKeyringPair} from '@polkadot/types/types';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {CollectionLimitField} from './util/playgrounds/types.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CollectionLimitField} from '@unique/test-utils/eth/types.js';


describe('Create NFT collection from EVM', () => {
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/eth/createRFTCollection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import {evmToAddress} from '@polkadot/util-crypto';
import type {IKeyringPair} from '@polkadot/types/types';
import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';
import {expect, itEth, usingEthPlaygrounds} from './util/index.js';
import {CollectionLimitField} from './util/playgrounds/types.js';
import {expect, itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CollectionLimitField} from '@unique/test-utils/eth/types.js';


describe('Create RFT collection from EVM', () => {
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/eth/crossTransfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import {itEth, usingEthPlaygrounds} from './util/index.js';
import {itEth, usingEthPlaygrounds} from '@unique/test-utils/eth/util.js';
import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';
import type {IKeyringPair} from '@polkadot/types/types';

Expand Down
Loading

0 comments on commit 927de33

Please sign in to comment.