Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: js-packages structure #1051

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/xcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ jobs:
yarn add mochawesome

- name: Call HRMP initialization
working-directory: js-packages/tests
working-directory: js-packages/scripts
run: |
yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/createHrmp.ts ${{matrix.network}}
yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm createHrmp.ts ${{matrix.network}}

- name: Run XCM tests
working-directory: js-packages/tests
Expand Down
6 changes: 4 additions & 2 deletions js-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@unique/opal-types": "workspace:*",
"@unique/playgrounds": "workspace:*",
"@unique-nft/opal-testnet-types": "workspace:*",
"@unique-nft/playgrounds": "workspace:*",
"@unique/test-utils": "workspace:*",
"chai": "^4.3.10",
"chai-subset": "^1.6.0",
"eslint": "^8.53.0",
Expand Down Expand Up @@ -59,6 +60,7 @@
"types",
"playgrounds",
"scripts",
"test-utils",
"tests"
]
}
13 changes: 6 additions & 7 deletions js-packages/playgrounds/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"author": "",
"license": "SEE LICENSE IN ../../../LICENSE",
"description": "Playground scripts",
"author": "Unique Network",
"license": "Apache 2.0",
"description": "Helpers for Unique Network chain",
"engines": {
"node": ">=16"
"node": ">=18"
},
"name": "@unique/playgrounds",
"name": "@unique-nft/playgrounds",
"type": "module",
"version": "1.0.0",
"main": "unique.js",
"dependencies": {
"@polkadot/api": "10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@unique/opal-types": "workspace:*"
"@polkadot/util-crypto": "^12.5.1"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {readFile} from 'fs/promises';
import {u8aToHex} from '@polkadot/util';
import {usingPlaygrounds} from './index.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import {blake2AsHex} from '@polkadot/util-crypto';


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,13 +1,13 @@
import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {readFile} from 'fs/promises';
import type {ICrossAccountId} from '@unique/playgrounds/types.js';
import type {ICrossAccountId} from '@unique-nft/playgrounds/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
import {UniqueNFTCollection} from '@unique/playgrounds/unique.js';
import {UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';
import {Contract} from 'web3-eth-contract';
import {createObjectCsvWriter} from 'csv-writer';
import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common.js';
import {makeNames} from '@unique/tests/util/index.js';
import {makeNames} from '@unique/test-utils/util.js';
import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';

const {dirname} = makeNames(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion js-packages/scripts/benchmarks/nesting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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/tests/util/index.js';
import {makeNames} from '@unique/test-utils/util.js';
import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';
import type {RMRKNestableMintable} from './ABIGEN/index.js';

Expand Down
4 changes: 2 additions & 2 deletions js-packages/scripts/benchmarks/opsFee/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js'
import {readFile} from 'fs/promises';
import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '@unique/tests/eth/util/playgrounds/types.js';
import type {IKeyringPair} from '@polkadot/types/types';
import {UniqueFTCollection, UniqueNFTCollection} from '@unique/playgrounds/unique.js';
import {UniqueFTCollection, UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';
import {Contract} from 'web3-eth-contract';
import {createObjectCsvWriter} from 'csv-writer';
import {FunctionFeeVM} from '../utils/types.js';
import type {IFunctionFee} from '../utils/types.js';
import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common.js';
import {makeNames} from '@unique/tests/util/index.js';
import {makeNames} from '@unique/test-utils/util.js';


const {dirname} = makeNames(import.meta.url);
Expand Down
4 changes: 2 additions & 2 deletions js-packages/scripts/benchmarks/utils/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';
import {UniqueNFTCollection, UniqueRFTCollection} from '@unique/playgrounds/unique.js';
import type {ITokenPropertyPermission, TCollectionMode} from '@unique/playgrounds/types.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';

export const PROPERTIES = Array(40)
Expand Down
2 changes: 1 addition & 1 deletion js-packages/scripts/calibrateApply.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {readFile, writeFile} from 'fs/promises';
import path from 'path';
import {makeNames, usingPlaygrounds} from '@unique/tests/util/index.js';
import {makeNames, usingPlaygrounds} from '@unique/test-utils/util.js';

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {usingPlaygrounds} from './index.js';
import config from '../config.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import config from '../tests/config.js';

const profile = process.argv[2];
if(!profile) throw new Error('missing profile/relay argument');
Expand Down
2 changes: 1 addition & 1 deletion js-packages/scripts/generateEnv.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ApiPromise, WsProvider} from '@polkadot/api';
import {readFile} from 'fs/promises';
import {join} from 'path';
import {makeNames} from '@unique/tests/util/index.js';
import {makeNames} from '@unique/test-utils/util.js';

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import {encodeAddress} from '@polkadot/keyring';
import type {IKeyringPair} from '@polkadot/types/types';
import {usingPlaygrounds, Pallets} from './index.js';
import {ChainHelperBase} from '@unique/playgrounds/unique.js';
import {usingPlaygrounds, Pallets} from '@unique/test-utils/util.js';
import {ChainHelperBase} from '@unique-nft/playgrounds/unique.js';

const relayUrl = process.argv[2] ?? 'ws://localhost:9844';
const paraUrl = process.argv[3] ?? 'ws://localhost:9944';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Example: `yarn checkRelayIdentities wss://polkadot-rpc.dwellir.com wss://kusama-rpc.dwellir.com`

import {encodeAddress} from '@polkadot/keyring';
import {usingPlaygrounds} from './index.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import {getIdentities, getSubs, getSupers, constructSubInfo} from './identitySetter.js';

const relay1Url = process.argv[2] ?? 'ws://localhost:9844';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {readFile} from 'fs/promises';
import {u8aToHex} from '@polkadot/util';
import {usingPlaygrounds} from './index.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';

const codePath = process.argv[2];
if(!codePath) throw new Error('missing code path argument');
Expand Down
4 changes: 2 additions & 2 deletions js-packages/scripts/transfer.nload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/* eslint-disable @typescript-eslint/no-floating-promises */
import os from 'os';
import type {IKeyringPair} from '@polkadot/types/types';
import {usingPlaygrounds} from '@unique/tests/util/index.js';
import {UniqueHelper} from '@unique/playgrounds/unique.js';
import {usingPlaygrounds} from '@unique/test-utils/util.js';
import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';
import * as notReallyCluster from 'cluster'; // https://github.com/nodejs/node/issues/42271#issuecomment-1063415346
const cluster = notReallyCluster as unknown as notReallyCluster.Cluster;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import {
usingPlaygrounds, Pallets, DONOR_FUNDING, MINIMUM_DONOR_FUND, LOCKING_PERIOD, UNLOCKING_PERIOD, makeNames,
} from './index.js';
} from './util.js';
import * as path from 'path';
import {promises as fs} from 'fs';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {blake2AsHex} from '@polkadot/util-crypto';
import type {PalletDemocracyConviction} from '@polkadot/types/lookup';
import type {IPhasicEvent, TSigner} from './types.js';
import {HelperGroup, UniqueHelper} from './unique.js';
import type {IPhasicEvent, TSigner} from '@unique-nft/playgrounds/types.js';
import {HelperGroup, UniqueHelper} from '@unique-nft/playgrounds/unique.js';

export class CollectiveGroup extends HelperGroup<UniqueHelper> {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
// SPDX-License-Identifier: Apache-2.0

import '@unique/opal-types/augment-api.js';
import '@unique/opal-types/augment-types.js';
import '@unique/opal-types/types-lookup.js';
import '@unique-nft/opal-testnet-types/augment-api.js';
import '@unique-nft/opal-testnet-types/augment-types.js';
import '@unique-nft/opal-testnet-types/types-lookup.js';

import {stringToU8a} from '@polkadot/util';
import {blake2AsHex, encodeAddress, mnemonicGenerate} from '@polkadot/util-crypto';
import type {ChainHelperBaseConstructor, UniqueHelperConstructor} from './unique.js';
import {UniqueHelper, ChainHelperBase, HelperGroup} from './unique.js';
import type {ChainHelperBaseConstructor, UniqueHelperConstructor} from '@unique-nft/playgrounds/unique.js';
import {UniqueHelper, ChainHelperBase, HelperGroup} from '@unique-nft/playgrounds/unique.js';
import {ApiPromise, Keyring, WsProvider} from '@polkadot/api';
import * as defs from '@unique/opal-types/definitions.js';
import * as defs from '@unique-nft/opal-testnet-types/definitions.js';
import type {IKeyringPair} from '@polkadot/types/types';
import type {EventRecord} from '@polkadot/types/interfaces';
import type {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from './types.js';
import type {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from '@unique-nft/playgrounds/types.js';
import type {FrameSystemEventRecord, StagingXcmV2TraitsError, StagingXcmV3TraitsOutcome} from '@polkadot/types/lookup';
import type {SignerOptions, VoidFn} from '@polkadot/api/types';
import {spawnSync} from 'child_process';
import {AcalaHelper, AstarHelper, MoonbeamHelper, PolkadexHelper, RelayHelper, WestmintHelper, ForeignAssetsGroup, XcmGroup, XTokensGroup, TokensGroup, HydraDxHelper} from './unique.xcm.js';
import {CollectiveGroup, CollectiveMembershipGroup, DemocracyGroup, RankedCollectiveGroup, ReferendaGroup} from './unique.governance.js';
import type {ICollectiveGroup, IFellowshipGroup} from './unique.governance.js';
import {AcalaHelper, AstarHelper, MoonbeamHelper, PolkadexHelper, RelayHelper, WestmintHelper, ForeignAssetsGroup, XcmGroup, XTokensGroup, TokensGroup, HydraDxHelper} from './xcm/index.js';
import {CollectiveGroup, CollectiveMembershipGroup, DemocracyGroup, RankedCollectiveGroup, ReferendaGroup} from './governance.js';
import type {ICollectiveGroup, IFellowshipGroup} from './governance.js';

export class SilentLogger {
log(_msg: any, _level: any): void { }
Expand Down
18 changes: 18 additions & 0 deletions js-packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"author": "",
"license": "SEE LICENSE IN ../../../LICENSE",
"description": "Playground scripts",
"engines": {
"node": ">=16"
},
"name": "@unique/test-utils",
"type": "module",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"@polkadot/api": "10.10.1",
"@polkadot/util": "^12.5.1",
"@polkadot/util-crypto": "^12.5.1",
"@unique-nft/opal-testnet-types": "workspace:*"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import chaiSubset from 'chai-subset';
import {Context} from 'mocha';
import config from '../config.js';
import {ChainHelperBase} from '@unique/playgrounds/unique.js';
import type {ILogger} from '@unique/playgrounds/types.js';
import {DevUniqueHelper, SilentLogger, SilentConsole, DevMoonbeamHelper, DevMoonriverHelper, DevAcalaHelper, DevKaruraHelper, DevRelayHelper, DevWestmintHelper, DevStatemineHelper, DevStatemintHelper, DevAstarHelper, DevShidenHelper, DevPolkadexHelper, DevHydraDxHelper} from '@unique/playgrounds/unique.dev.js';
import config from '../tests/config.js';
import {ChainHelperBase} from '@unique-nft/playgrounds/unique.js';
import type {ILogger} from '@unique-nft/playgrounds/types.js';
import {DevUniqueHelper, SilentLogger, SilentConsole, DevMoonbeamHelper, DevMoonriverHelper, DevAcalaHelper, DevKaruraHelper, DevRelayHelper, DevWestmintHelper, DevStatemineHelper, DevStatemintHelper, DevAstarHelper, DevShidenHelper, DevPolkadexHelper, DevHydraDxHelper} from '@unique/test-utils';
import {dirname} from 'path';
import {fileURLToPath} from 'url';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {ApiPromise, WsProvider} from '@polkadot/api';
import type {IKeyringPair} from '@polkadot/types/types';
import {ChainHelperBase, EthereumBalanceGroup, HelperGroup, SubstrateBalanceGroup, UniqueHelper} from './unique.js';
import type {ILogger, TSigner, TSubstrateAccount} from './types.js';
import type {AcalaAssetMetadata, DemocracyStandardAccountVote, MoonbeamAssetInfo} from './types.xcm.js';
import {ChainHelperBase, EthereumBalanceGroup, HelperGroup, SubstrateBalanceGroup, UniqueHelper} from '@unique-nft/playgrounds/unique.js';
import type {ILogger, TSigner} from '@unique-nft/playgrounds/types.js';
import type {AcalaAssetMetadata, DemocracyStandardAccountVote, MoonbeamAssetInfo} from './types.js';


export class XcmChainHelper extends ChainHelperBase {
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/addCollectionAdmin.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 {itSub, usingPlaygrounds, expect} from './util/index.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';
import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';

describe('Integration Test addCollectionAdmin(collection_id, new_admin_id):', () => {
let donor: IKeyringPair;
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/adminTransferAndBurn.test.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 {usingPlaygrounds, expect, itSub} from './util/index.js';
import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';

describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => {
let alice: IKeyringPair;
Expand Down
6 changes: 3 additions & 3 deletions js-packages/tests/allowLists.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.

import type {IKeyringPair} from '@polkadot/types/types';
import {usingPlaygrounds, expect, itSub} from './util/index.js';
import type {ICollectionPermissions} from '@unique/playgrounds/types.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';
import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';
import type {ICollectionPermissions} from '@unique-nft/playgrounds/types.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';

describe('Integration Test ext. Allow list tests', () => {
let alice: IKeyringPair;
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/apiConsts.test.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 {ApiPromise} from '@polkadot/api';
import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from './util/index.js';
import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from '@unique/test-utils/util.js';


const MAX_COLLECTION_DESCRIPTION_LENGTH = 256n;
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/approve.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 {expect, itSub, Pallets, usingPlaygrounds} from './util/index.js';
import {CrossAccountId} from '@unique/playgrounds/unique.js';
import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';
import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';



Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/burnItem.test.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, itSub, usingPlaygrounds} from './util/index.js';
import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';


describe('integration test: ext. burnItem():', () => {
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/change-collection-owner.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 {usingPlaygrounds, expect, itSub} from './util/index.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';
import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';

describe('Integration Test changeCollectionOwner(collection_id, new_owner):', () => {
let alice: IKeyringPair;
Expand Down
4 changes: 2 additions & 2 deletions js-packages/tests/confirmSponsorship.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 {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';
import {usingPlaygrounds, expect, itSub, Pallets} from '@unique/test-utils/util.js';
import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';

async function setSponsorHelper(collection: any, signer: IKeyringPair, sponsorAddress: string) {
await collection.setSponsor(signer, sponsorAddress);
Expand Down
2 changes: 1 addition & 1 deletion js-packages/tests/connection.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 {itSub, expect, usingPlaygrounds} from './util/index.js';
import {itSub, expect, usingPlaygrounds} from '@unique/test-utils/util.js';

describe('Connection smoke test', () => {
itSub('Connection can be established', async ({helper}) => {
Expand Down
8 changes: 4 additions & 4 deletions js-packages/tests/createCollection.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 {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js';
import {CollectionFlag} from '@unique/playgrounds/types.js';
import type {ICollectionCreationOptions, IProperty} from '@unique/playgrounds/types.js';
import {UniqueHelper} from '@unique/playgrounds/unique.js';
import {usingPlaygrounds, expect, itSub, Pallets} from '@unique/test-utils/util.js';
import {CollectionFlag} from '@unique-nft/playgrounds/types.js';
import type {ICollectionCreationOptions, IProperty} from '@unique-nft/playgrounds/types.js';
import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';

async function mintCollectionHelper(helper: UniqueHelper, signer: IKeyringPair, options: ICollectionCreationOptions, type?: 'nft' | 'fungible' | 'refungible') {
let collection;
Expand Down
Loading
Loading