difftreelog
refactor js-packages structure
in: master
154 files changed
.github/workflows/xcm.ymldiffbeforeafterboth368 yarn add mochawesome368 yarn add mochawesome369369370 - name: Call HRMP initialization370 - name: Call HRMP initialization371 working-directory: js-packages/tests371 working-directory: js-packages/scripts372 run: |372 run: |373 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm util/createHrmp.ts ${{matrix.network}}373 yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm createHrmp.ts ${{matrix.network}}374374375 - name: Run XCM tests375 - name: Run XCM tests376 working-directory: js-packages/tests376 working-directory: js-packages/testsjs-packages/package.jsondiffbeforeafterboth26 "@types/node": "^20.8.10",26 "@types/node": "^20.8.10",27 "@typescript-eslint/eslint-plugin": "^6.10.0",27 "@typescript-eslint/eslint-plugin": "^6.10.0",28 "@typescript-eslint/parser": "^6.10.0",28 "@typescript-eslint/parser": "^6.10.0",29 "@unique/opal-types": "workspace:*",29 "@unique-nft/opal-testnet-types": "workspace:*",30 "@unique/playgrounds": "workspace:*",30 "@unique-nft/playgrounds": "workspace:*",31 "@unique/test-utils": "workspace:*",31 "chai": "^4.3.10",32 "chai": "^4.3.10",32 "chai-subset": "^1.6.0",33 "chai-subset": "^1.6.0",33 "eslint": "^8.53.0",34 "eslint": "^8.53.0",59 "types",60 "types",60 "playgrounds",61 "playgrounds",61 "scripts",62 "scripts",63 "test-utils",62 "tests"64 "tests"63 ]65 ]64}66}js-packages/playgrounds/package.jsondiffbeforeafterboth1{1{2 "author": "",2 "author": "Unique Network",3 "license": "SEE LICENSE IN ../../../LICENSE",3 "license": "Apache 2.0",4 "description": "Playground scripts",4 "description": "Helpers for Unique Network chain",5 "engines": {5 "engines": {6 "node": ">=16"6 "node": ">=18"7 },7 },8 "name": "@unique/playgrounds",8 "name": "@unique-nft/playgrounds",9 "type": "module",9 "type": "module",10 "version": "1.0.0",10 "version": "1.0.0",11 "main": "unique.js",11 "main": "unique.js",12 "dependencies": {12 "dependencies": {13 "@polkadot/api": "10.10.1",13 "@polkadot/api": "10.10.1",14 "@polkadot/util": "^12.5.1",14 "@polkadot/util": "^12.5.1",15 "@polkadot/util-crypto": "^12.5.1",15 "@polkadot/util-crypto": "^12.5.1"16 "@unique/opal-types": "workspace:*"17 }16 }18}17}1918js-packages/playgrounds/types.xcm.tsdiffbeforeafterbothno changes
js-packages/playgrounds/unique.dev.tsdiffbeforeafterbothno changes
js-packages/playgrounds/unique.governance.tsdiffbeforeafterbothno changes
js-packages/playgrounds/unique.xcm.tsdiffbeforeafterbothno changes
js-packages/scripts/authorizeEnactUpgrade.tsdiffbeforeafterbothno changes
js-packages/scripts/benchmarks/mintFee/index.tsdiffbeforeafterboth1import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';1import {usingEthPlaygrounds} from '@unique/tests/eth/util/index.js';2import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';2import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';3import {readFile} from 'fs/promises';3import {readFile} from 'fs/promises';4import type {ICrossAccountId} from '@unique/playgrounds/types.js';4import type {ICrossAccountId} from '@unique-nft/playgrounds/types.js';5import type {IKeyringPair} from '@polkadot/types/types';5import type {IKeyringPair} from '@polkadot/types/types';6import {UniqueNFTCollection} from '@unique/playgrounds/unique.js';6import {UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';7import {Contract} from 'web3-eth-contract';7import {Contract} from 'web3-eth-contract';8import {createObjectCsvWriter} from 'csv-writer';8import {createObjectCsvWriter} from 'csv-writer';9import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common.js';9import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES} from '../utils/common.js';10import {makeNames} from '@unique/tests/util/index.js';10import {makeNames} from '@unique/test-utils/util.js';11import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';11import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';121213const {dirname} = makeNames(import.meta.url);13const {dirname} = makeNames(import.meta.url);js-packages/scripts/benchmarks/nesting/index.tsdiffbeforeafterboth4import type {IKeyringPair} from '@polkadot/types/types';4import type {IKeyringPair} from '@polkadot/types/types';5import {Contract} from 'web3-eth-contract';5import {Contract} from 'web3-eth-contract';6import {convertToTokens} from '../utils/common.js';6import {convertToTokens} from '../utils/common.js';7import {makeNames} from '@unique/tests/util/index.js';7import {makeNames} from '@unique/test-utils/util.js';8import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';8import type {ContractImports} from '@unique/tests/eth/util/playgrounds/types.js';9import type {RMRKNestableMintable} from './ABIGEN/index.js';9import type {RMRKNestableMintable} from './ABIGEN/index.js';1010js-packages/scripts/benchmarks/opsFee/index.tsdiffbeforeafterboth3import {readFile} from 'fs/promises';3import {readFile} from 'fs/promises';4import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '@unique/tests/eth/util/playgrounds/types.js';4import {CollectionLimitField, CreateCollectionData, TokenPermissionField} from '@unique/tests/eth/util/playgrounds/types.js';5import type {IKeyringPair} from '@polkadot/types/types';5import type {IKeyringPair} from '@polkadot/types/types';6import {UniqueFTCollection, UniqueNFTCollection} from '@unique/playgrounds/unique.js';6import {UniqueFTCollection, UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';7import {Contract} from 'web3-eth-contract';7import {Contract} from 'web3-eth-contract';8import {createObjectCsvWriter} from 'csv-writer';8import {createObjectCsvWriter} from 'csv-writer';9import {FunctionFeeVM} from '../utils/types.js';9import {FunctionFeeVM} from '../utils/types.js';10import type {IFunctionFee} from '../utils/types.js';10import type {IFunctionFee} from '../utils/types.js';11import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common.js';11import {convertToTokens, createCollectionForBenchmarks, PERMISSIONS, PROPERTIES, SUBS_PROPERTIES} from '../utils/common.js';12import {makeNames} from '@unique/tests/util/index.js';12import {makeNames} from '@unique/test-utils/util.js';1313141415const {dirname} = makeNames(import.meta.url);15const {dirname} = makeNames(import.meta.url);js-packages/scripts/benchmarks/utils/common.tsdiffbeforeafterboth1import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';1import {EthUniqueHelper} from '@unique/tests/eth/util/playgrounds/unique.dev.js';2import {UniqueNFTCollection, UniqueRFTCollection} from '@unique/playgrounds/unique.js';2import {UniqueNFTCollection, UniqueRFTCollection} from '@unique-nft/playgrounds/unique.js';3import type {ITokenPropertyPermission, TCollectionMode} from '@unique/playgrounds/types.js';3import type {ITokenPropertyPermission, TCollectionMode} from '@unique-nft/playgrounds/types.js';4import type {IKeyringPair} from '@polkadot/types/types';4import type {IKeyringPair} from '@polkadot/types/types';556export const PROPERTIES = Array(40)6export const PROPERTIES = Array(40)js-packages/scripts/calibrateApply.tsdiffbeforeafterboth1import {readFile, writeFile} from 'fs/promises';1import {readFile, writeFile} from 'fs/promises';2import path from 'path';2import path from 'path';3import {makeNames, usingPlaygrounds} from '@unique/tests/util/index.js';3import {makeNames, usingPlaygrounds} from '@unique/test-utils/util.js';445const {dirname} = makeNames(import.meta.url);5const {dirname} = makeNames(import.meta.url);66js-packages/scripts/createHrmp.tsdiffbeforeafterbothno changes
js-packages/scripts/generateEnv.tsdiffbeforeafterboth1import {ApiPromise, WsProvider} from '@polkadot/api';1import {ApiPromise, WsProvider} from '@polkadot/api';2import {readFile} from 'fs/promises';2import {readFile} from 'fs/promises';3import {join} from 'path';3import {join} from 'path';4import {makeNames} from '@unique/tests/util/index.js';4import {makeNames} from '@unique/test-utils/util.js';556const {dirname} = makeNames(import.meta.url);6const {dirname} = makeNames(import.meta.url);77js-packages/scripts/identitySetter.tsdiffbeforeafterbothno changes
js-packages/scripts/relayIdentitiesChecker.tsdiffbeforeafterbothno changes
js-packages/scripts/setCode.tsdiffbeforeafterbothno changes
js-packages/scripts/transfer.nload.tsdiffbeforeafterboth17/* eslint-disable @typescript-eslint/no-floating-promises */17/* eslint-disable @typescript-eslint/no-floating-promises */18import os from 'os';18import os from 'os';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import {usingPlaygrounds} from '@unique/tests/util/index.js';20import {usingPlaygrounds} from '@unique/test-utils/util.js';21import {UniqueHelper} from '@unique/playgrounds/unique.js';21import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';22import * as notReallyCluster from 'cluster'; // https://github.com/nodejs/node/issues/42271#issuecomment-106341534622import * as notReallyCluster from 'cluster'; // https://github.com/nodejs/node/issues/42271#issuecomment-106341534623const cluster = notReallyCluster as unknown as notReallyCluster.Cluster;23const cluster = notReallyCluster as unknown as notReallyCluster.Cluster;2424js-packages/test-utils/globalSetup.tsdiffbeforeafterbothno changes
js-packages/test-utils/governance.tsdiffbeforeafterbothno changes
js-packages/test-utils/index.tsdiffbeforeafterbothno changes
js-packages/test-utils/package.jsondiffbeforeafterbothno changes
js-packages/test-utils/util.tsdiffbeforeafterbothno changes
js-packages/test-utils/xcm/index.tsdiffbeforeafterbothno changes
js-packages/test-utils/xcm/types.tsdiffbeforeafterbothno changes
js-packages/tests/addCollectionAdmin.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test addCollectionAdmin(collection_id, new_admin_id):', () => {21describe('Integration Test addCollectionAdmin(collection_id, new_admin_id):', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/adminTransferAndBurn.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub} from './util/index.js';18import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';191920describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => {20describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/allowLists.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub} from './util/index.js';18import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';19import type {ICollectionPermissions} from '@unique/playgrounds/types.js';19import type {ICollectionPermissions} from '@unique-nft/playgrounds/types.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';212122describe('Integration Test ext. Allow list tests', () => {22describe('Integration Test ext. Allow list tests', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/apiConsts.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {ApiPromise} from '@polkadot/api';17import {ApiPromise} from '@polkadot/api';18import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from './util/index.js';18import {usingPlaygrounds, itSub, expect, COLLECTION_HELPER, CONTRACT_HELPER} from '@unique/test-utils/util.js';1919202021const MAX_COLLECTION_DESCRIPTION_LENGTH = 256n;21const MAX_COLLECTION_DESCRIPTION_LENGTH = 256n;js-packages/tests/approve.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from './util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId} from '@unique/playgrounds/unique.js';19import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';202021212222js-packages/tests/burnItem.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from './util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';1919202021describe('integration test: ext. burnItem():', () => {21describe('integration test: ext. burnItem():', () => {js-packages/tests/change-collection-owner.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub} from './util/index.js';18import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test changeCollectionOwner(collection_id, new_owner):', () => {21describe('Integration Test changeCollectionOwner(collection_id, new_owner):', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/confirmSponsorship.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js';18import {usingPlaygrounds, expect, itSub, Pallets} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021async function setSponsorHelper(collection: any, signer: IKeyringPair, sponsorAddress: string) {21async function setSponsorHelper(collection: any, signer: IKeyringPair, sponsorAddress: string) {22 await collection.setSponsor(signer, sponsorAddress);22 await collection.setSponsor(signer, sponsorAddress);js-packages/tests/connection.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {itSub, expect, usingPlaygrounds} from './util/index.js';17import {itSub, expect, usingPlaygrounds} from '@unique/test-utils/util.js';181819describe('Connection smoke test', () => {19describe('Connection smoke test', () => {20 itSub('Connection can be established', async ({helper}) => {20 itSub('Connection can be established', async ({helper}) => {js-packages/tests/createCollection.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js';18import {usingPlaygrounds, expect, itSub, Pallets} from '@unique/test-utils/util.js';19import {CollectionFlag} from '@unique/playgrounds/types.js';19import {CollectionFlag} from '@unique-nft/playgrounds/types.js';20import type {ICollectionCreationOptions, IProperty} from '@unique/playgrounds/types.js';20import type {ICollectionCreationOptions, IProperty} from '@unique-nft/playgrounds/types.js';21import {UniqueHelper} from '@unique/playgrounds/unique.js';21import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';222223async function mintCollectionHelper(helper: UniqueHelper, signer: IKeyringPair, options: ICollectionCreationOptions, type?: 'nft' | 'fungible' | 'refungible') {23async function mintCollectionHelper(helper: UniqueHelper, signer: IKeyringPair, options: ICollectionCreationOptions, type?: 'nft' | 'fungible' | 'refungible') {24 let collection;24 let collection;js-packages/tests/createItem.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub, Pallets} from './util/index.js';18import {usingPlaygrounds, expect, itSub, Pallets} from '@unique/test-utils/util.js';19import type {IProperty, ICrossAccountId} from '@unique/playgrounds/types.js';19import type {IProperty, ICrossAccountId} from '@unique-nft/playgrounds/types.js';20import {UniqueHelper} from '@unique/playgrounds/unique.js';20import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';212122async function mintTokenHelper(helper: UniqueHelper, collection: any, signer: IKeyringPair, owner: ICrossAccountId, type: 'nft' | 'fungible' | 'refungible'='nft', properties?: IProperty[]) {22async function mintTokenHelper(helper: UniqueHelper, collection: any, signer: IKeyringPair, owner: ICrossAccountId, type: 'nft' | 'fungible' | 'refungible'='nft', properties?: IProperty[]) {23 let token;23 let token;js-packages/tests/createMultipleItems.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, Pallets, itSub} from './util/index.js';18import {usingPlaygrounds, expect, Pallets, itSub} from '@unique/test-utils/util.js';191920describe('Integration Test createMultipleItems(collection_id, owner, items_data):', () => {20describe('Integration Test createMultipleItems(collection_id, owner, items_data):', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/createMultipleItemsEx.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, Pallets, itSub} from './util/index.js';18import {usingPlaygrounds, expect, Pallets, itSub} from '@unique/test-utils/util.js';19import type {IProperty} from '@unique/playgrounds/types.js';19import type {IProperty} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test: createMultipleItemsEx', () => {21describe('Integration Test: createMultipleItemsEx', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/creditFeesToTreasury.seqtest.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {ApiPromise} from '@polkadot/api';18import {ApiPromise} from '@polkadot/api';19import {usingPlaygrounds, expect, itSub} from './util/index.js';19import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';20import type {u32} from '@polkadot/types-codec';20import type {u32} from '@polkadot/types-codec';212122const TREASURY = '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z';22const TREASURY = '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z';js-packages/tests/destroyCollection.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, expect, usingPlaygrounds, Pallets} from './util/index.js';18import {itSub, expect, usingPlaygrounds, Pallets} from '@unique/test-utils/util.js';191920describe('integration test: ext. destroyCollection():', () => {20describe('integration test: ext. destroyCollection():', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/enableDisableTransfer.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920describe('Enable/Disable Transfers', () => {20describe('Enable/Disable Transfers', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/eth/allowlist.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Pallets} from '../util/index.js';18import {Pallets} from '@unique/test-utils/util.js';19import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util/index.js';19import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from './util/index.js';20import {CreateCollectionData} from './util/playgrounds/types.js';20import {CreateCollectionData} from './util/playgrounds/types.js';2121js-packages/tests/eth/collectionAdmin.test.tsdiffbeforeafterboth151516import type {IKeyringPair} from '@polkadot/types/types';16import type {IKeyringPair} from '@polkadot/types/types';17import {expect} from 'chai';17import {expect} from 'chai';18import {Pallets} from '../util/index.js';18import {Pallets} from '@unique/test-utils/util.js';19import type {IEthCrossAccountId} from '@unique/playgrounds/types.js';19import type {IEthCrossAccountId} from '@unique-nft/playgrounds/types.js';20import {usingEthPlaygrounds, itEth} from './util/index.js';20import {usingEthPlaygrounds, itEth} from './util/index.js';21import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';21import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';22import {CreateCollectionData} from './util/playgrounds/types.js';22import {CreateCollectionData} from './util/playgrounds/types.js';js-packages/tests/eth/collectionHelperAddress.test.tsdiffbeforeafterboth161617import {itEth, usingEthPlaygrounds, expect} from './util/index.js';17import {itEth, usingEthPlaygrounds, expect} from './util/index.js';18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {COLLECTION_HELPER, Pallets} from '../util/index.js';19import {COLLECTION_HELPER, Pallets} from '@unique/test-utils/util.js';202021describe('[eth]CollectionHelperAddress test: ERC20/ERC721 ', () => {21describe('[eth]CollectionHelperAddress test: ERC20/ERC721 ', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/eth/collectionLimits.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {Pallets} from '../util/index.js';2import {Pallets} from '@unique/test-utils/util.js';3import {expect, itEth, usingEthPlaygrounds} from './util/index.js';3import {expect, itEth, usingEthPlaygrounds} from './util/index.js';4import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types.js';4import {CollectionLimitField, CreateCollectionData} from './util/playgrounds/types.js';55js-packages/tests/eth/collectionProperties.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {itEth, usingEthPlaygrounds, expect} from './util/index.js';17import {itEth, usingEthPlaygrounds, expect} from './util/index.js';18import {Pallets} from '../util/index.js';18import {Pallets} from '@unique/test-utils/util.js';19import type {IProperty, ITokenPropertyPermission} from '@unique/playgrounds/types.js';19import type {IProperty, ITokenPropertyPermission} from '@unique-nft/playgrounds/types.js';20import type {IKeyringPair} from '@polkadot/types/types';20import type {IKeyringPair} from '@polkadot/types/types';212122describe('EVM collection properties', () => {22describe('EVM collection properties', () => {js-packages/tests/eth/collectionSponsoring.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../util/index.js';18import {Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';19import {itEth, expect} from './util/index.js';19import {itEth, expect} from './util/index.js';20import {CollectionLimitField, TokenPermissionField} from './util/playgrounds/types.js';20import {CollectionLimitField, TokenPermissionField} from './util/playgrounds/types.js';2121js-packages/tests/eth/contractSponsoring.test.tsdiffbeforeafterboth17import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';18import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';19import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from './util/index.js';19import {itEth, expect, SponsoringMode, usingEthPlaygrounds} from './util/index.js';20import {usingPlaygrounds} from '../util/index.js';20import {usingPlaygrounds} from '@unique/test-utils/util.js';21import type {CompiledContract} from './util/playgrounds/types.js';21import type {CompiledContract} from './util/playgrounds/types.js';222223describe('Sponsoring EVM contracts', () => {23describe('Sponsoring EVM contracts', () => {js-packages/tests/eth/createCollection.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {evmToAddress} from '@polkadot/util-crypto';18import {evmToAddress} from '@polkadot/util-crypto';19import {Pallets, requirePalletsOrSkip} from '../util/index.js';19import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';21import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types.js';21import {CREATE_COLLECTION_DATA_DEFAULTS, CollectionLimitField, CollectionMode, CreateCollectionData, TokenPermissionField, emptyAddress} from './util/playgrounds/types.js';22import {CollectionFlag} from '@unique/playgrounds/types.js';22import {CollectionFlag} from '@unique-nft/playgrounds/types.js';23import type {IEthCrossAccountId, TCollectionMode} from '@unique/playgrounds/types.js';23import type {IEthCrossAccountId, TCollectionMode} from '@unique-nft/playgrounds/types.js';242425const DECIMALS = 18;25const DECIMALS = 18;26const CREATE_COLLECTION_DATA_DEFAULTS_ARRAY = [26const CREATE_COLLECTION_DATA_DEFAULTS_ARRAY = [js-packages/tests/eth/createFTCollection.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Pallets, requirePalletsOrSkip} from '../util/index.js';18import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';19import {expect, itEth, usingEthPlaygrounds} from './util/index.js';19import {expect, itEth, usingEthPlaygrounds} from './util/index.js';202021const DECIMALS = 18;21const DECIMALS = 18;js-packages/tests/eth/createFTCollection.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {evmToAddress} from '@polkadot/util-crypto';18import {evmToAddress} from '@polkadot/util-crypto';19import {Pallets, requirePalletsOrSkip} from '../util/index.js';19import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';21import {CollectionLimitField} from './util/playgrounds/types.js';21import {CollectionLimitField} from './util/playgrounds/types.js';2222js-packages/tests/eth/createRFTCollection.test.tsdiffbeforeafterboth161617import {evmToAddress} from '@polkadot/util-crypto';17import {evmToAddress} from '@polkadot/util-crypto';18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {Pallets, requirePalletsOrSkip} from '../util/index.js';19import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';20import {expect, itEth, usingEthPlaygrounds} from './util/index.js';21import {CollectionLimitField} from './util/playgrounds/types.js';21import {CollectionLimitField} from './util/playgrounds/types.js';2222js-packages/tests/eth/crossTransfer.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {itEth, usingEthPlaygrounds} from './util/index.js';17import {itEth, usingEthPlaygrounds} from './util/index.js';18import {CrossAccountId} from '@unique/playgrounds/unique.js';18import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';202021describe('Token transfer between substrate address and EVM address. Fungible', () => {21describe('Token transfer between substrate address and EVM address. Fungible', () => {js-packages/tests/eth/destroyCollection.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Pallets} from '../util/index.js';18import {Pallets} from '@unique/test-utils/util.js';19import {expect, itEth, usingEthPlaygrounds} from './util/index.js';19import {expect, itEth, usingEthPlaygrounds} from './util/index.js';20import type {TCollectionMode} from '@unique/playgrounds/types.js';20import type {TCollectionMode} from '@unique-nft/playgrounds/types.js';21import {CreateCollectionData} from './util/playgrounds/types.js';21import {CreateCollectionData} from './util/playgrounds/types.js';222223describe('Destroy Collection from EVM', function() {23describe('Destroy Collection from EVM', function() {js-packages/tests/eth/events.test.tsdiffbeforeafterboth18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {itEth, usingEthPlaygrounds} from './util/index.js';19import {itEth, usingEthPlaygrounds} from './util/index.js';20import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';20import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';21import type {IEvent, TCollectionMode} from '@unique/playgrounds/types.js';21import type {IEvent, TCollectionMode} from '@unique-nft/playgrounds/types.js';22import {Pallets, requirePalletsOrSkip} from '../util/index.js';22import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';23import {CollectionLimitField, TokenPermissionField, CreateCollectionData} from './util/playgrounds/types.js';23import {CollectionLimitField, TokenPermissionField, CreateCollectionData} from './util/playgrounds/types.js';24import type {NormalizedEvent} from './util/playgrounds/types.js';24import type {NormalizedEvent} from './util/playgrounds/types.js';2525js-packages/tests/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth25import {usingEthPlaygrounds, expect, itEth} from '../util/index.js';25import {usingEthPlaygrounds, expect, itEth} from '../util/index.js';26import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';26import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';27import type {CompiledContract} from '../util/playgrounds/types.js';27import type {CompiledContract} from '../util/playgrounds/types.js';28import {requirePalletsOrSkip, Pallets, makeNames} from '../../util/index.js';28import {requirePalletsOrSkip, Pallets, makeNames} from '@unique/test-utils/util.js';292930const {dirname} = makeNames(import.meta.url);30const {dirname} = makeNames(import.meta.url);3131js-packages/tests/eth/getCode.test.tsdiffbeforeafterboth161617import {expect, itEth, usingEthPlaygrounds} from './util/index.js';17import {expect, itEth, usingEthPlaygrounds} from './util/index.js';18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {COLLECTION_HELPER, CONTRACT_HELPER} from '../util/index.js';19import {COLLECTION_HELPER, CONTRACT_HELPER} from '@unique/test-utils/util.js';202021describe('RPC eth_getCode', () => {21describe('RPC eth_getCode', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/eth/marketplace-v2/marketplace.test.tsdiffbeforeafterboth19import {readFile} from 'fs/promises';19import {readFile} from 'fs/promises';20import {SponsoringMode, itEth, usingEthPlaygrounds} from '../util/index.js';20import {SponsoringMode, itEth, usingEthPlaygrounds} from '../util/index.js';21import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';21import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';22import {makeNames} from '../../util/index.js';22import {makeNames, expect} from '@unique/test-utils/util.js';23import {expect} from 'chai';242325const {dirname} = makeNames(import.meta.url);24const {dirname} = makeNames(import.meta.url);2625js-packages/tests/eth/marketplace/marketplace.test.tsdiffbeforeafterboth17import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {readFile} from 'fs/promises';18import {readFile} from 'fs/promises';19import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from '../util/index.js';19import {itEth, usingEthPlaygrounds, expect, SponsoringMode} from '../util/index.js';20import {makeNames} from '../../util/index.js';20import {makeNames} from '@unique/test-utils/util.js';212122const {dirname} = makeNames(import.meta.url);22const {dirname} = makeNames(import.meta.url);2323js-packages/tests/eth/migration.seqtest.tsdiffbeforeafterboth18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {Struct} from '@polkadot/types';19import {Struct} from '@polkadot/types';202021import type {IEvent} from '@unique/playgrounds/types.js';21import type {IEvent} from '@unique-nft/playgrounds/types.js';22import type {InterfaceTypes} from '@polkadot/types/types/registry';22import type {InterfaceTypes} from '@polkadot/types/types/registry';23import {ApiPromise} from '@polkadot/api';23import {ApiPromise} from '@polkadot/api';2424js-packages/tests/eth/nativeFungible.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';19import {UniqueHelper} from '@unique/playgrounds/unique.js';19import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';202021describe('NativeFungible: ERC20 calls', () => {21describe('NativeFungible: ERC20 calls', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/eth/nonFungible.test.tsdiffbeforeafterboth18import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';18import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import {Contract} from 'web3-eth-contract';20import {Contract} from 'web3-eth-contract';21import type {ITokenPropertyPermission} from '@unique/playgrounds/types.js';21import type {ITokenPropertyPermission} from '@unique-nft/playgrounds/types.js';22import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js';22import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js';232324describe('Check ERC721 token URI for NFT', () => {24describe('Check ERC721 token URI for NFT', () => {js-packages/tests/eth/payable.test.tsdiffbeforeafterboth181819import {itEth, expect, usingEthPlaygrounds} from './util/index.js';19import {itEth, expect, usingEthPlaygrounds} from './util/index.js';20import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';20import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';21import {makeNames} from '../util/index.js';21import {makeNames} from '@unique/test-utils/util.js';222223const {dirname} = makeNames(import.meta.url);23const {dirname} = makeNames(import.meta.url);2424js-packages/tests/eth/proxy/fungibleProxy.test.tsdiffbeforeafterboth19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import {itEth, usingEthPlaygrounds} from '../util/index.js';20import {itEth, usingEthPlaygrounds} from '../util/index.js';21import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';21import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';22import {makeNames} from '../../util/index.js';22import {makeNames} from '@unique/test-utils/util.js';232324const {dirname} = makeNames(import.meta.url);24const {dirname} = makeNames(import.meta.url);2525js-packages/tests/eth/proxy/nonFungibleProxy.test.tsdiffbeforeafterboth18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {itEth, usingEthPlaygrounds, expect} from '../util/index.js';19import {itEth, usingEthPlaygrounds, expect} from '../util/index.js';20import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';20import {EthUniqueHelper} from '../util/playgrounds/unique.dev.js';21import {makeNames} from '../../util/index.js';21import {makeNames} from '@unique/test-utils/util.js';222223const {dirname} = makeNames(import.meta.url);23const {dirname} = makeNames(import.meta.url);2424js-packages/tests/eth/reFungible.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {Pallets, requirePalletsOrSkip} from '../util/index.js';17import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import type {ITokenPropertyPermission} from '@unique/playgrounds/types.js';20import type {ITokenPropertyPermission} from '@unique-nft/playgrounds/types.js';21import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js';21import {CREATE_COLLECTION_DATA_DEFAULTS, TokenPermissionField} from './util/playgrounds/types.js';222223describe('Refungible: Plain calls', () => {23describe('Refungible: Plain calls', () => {js-packages/tests/eth/reFungibleToken.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {Pallets, requirePalletsOrSkip} from '../util/index.js';17import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';18import {expect, itEth, usingEthPlaygrounds} from './util/index.js';19import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';19import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';20import type {IKeyringPair} from '@polkadot/types/types';20import type {IKeyringPair} from '@polkadot/types/types';js-packages/tests/eth/scheduling.test.tsdiffbeforeafterboth17import {expect} from 'chai';17import {expect} from 'chai';18import {itSchedEth} from './util/index.js';18import {itSchedEth} from './util/index.js';19import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';19import {EthUniqueHelper} from './util/playgrounds/unique.dev.js';20import {Pallets, usingPlaygrounds} from '../util/index.js';20import {Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';212122describe('Scheduing EVM smart contracts', () => {22describe('Scheduing EVM smart contracts', () => {2323js-packages/tests/eth/sponsoring.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itEth, expect, SponsoringMode} from './util/index.js';18import {itEth, expect, SponsoringMode} from './util/index.js';19import {usingPlaygrounds} from '../util/index.js';19import {usingPlaygrounds} from '@unique/test-utils/util.js';202021describe('EVM sponsoring', () => {21describe('EVM sponsoring', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/eth/tokenProperties.test.tsdiffbeforeafterboth17import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Contract} from 'web3-eth-contract';18import {Contract} from 'web3-eth-contract';19import {itEth, usingEthPlaygrounds, expect} from './util/index.js';19import {itEth, usingEthPlaygrounds, expect} from './util/index.js';20import type {ITokenPropertyPermission} from '@unique/playgrounds/types.js';20import type {ITokenPropertyPermission} from '@unique-nft/playgrounds/types.js';21import {Pallets} from '../util/index.js';21import {Pallets} from '@unique/test-utils/util.js';22import {UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection} from '@unique/playgrounds/unique.js';22import {UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection} from '@unique-nft/playgrounds/unique.js';23import {CreateCollectionData, TokenPermissionField} from './util/playgrounds/types.js';23import {CreateCollectionData, TokenPermissionField} from './util/playgrounds/types.js';242425describe('EVM token properties', () => {25describe('EVM token properties', () => {js-packages/tests/eth/tokens/callMethodsERC20.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {Pallets, requirePalletsOrSkip} from '../../util/index.js';17import {Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';18import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';18import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import {CreateCollectionData} from '../util/playgrounds/types.js';20import {CreateCollectionData} from '../util/playgrounds/types.js';js-packages/tests/eth/tokens/callMethodsERC721.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {Pallets} from '../../util/index.js';17import {Pallets} from '@unique/test-utils/util.js';18import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';18import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';19import type {IKeyringPair} from '@polkadot/types/types';19import type {IKeyringPair} from '@polkadot/types/types';20import {CreateCollectionData} from '../util/playgrounds/types.js';20import {CreateCollectionData} from '../util/playgrounds/types.js';js-packages/tests/eth/tokens/minting.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {Pallets} from '../../util/index.js';18import {Pallets} from '@unique/test-utils/util.js';19import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';19import {expect, itEth, usingEthPlaygrounds} from '../util/index.js';20import {CreateCollectionData} from '../util/playgrounds/types.js';20import {CreateCollectionData} from '../util/playgrounds/types.js';2121js-packages/tests/eth/util/index.tsdiffbeforeafterboth7import config from '../../config.js';7import config from '../../config.js';889import {EthUniqueHelper} from './playgrounds/unique.dev.js';9import {EthUniqueHelper} from './playgrounds/unique.dev.js';10import {SilentLogger, SilentConsole} from '@unique/playgrounds/unique.dev.js';10import {SilentLogger, SilentConsole} from '@unique/test-utils';11import {makeNames} from '../../util/index.js';12import type {SchedKind} from '../../util/index.js';11import type {SchedKind} from '@unique/test-utils/util.js';131214import chai from 'chai';13import chai from 'chai';15import chaiAsPromised from 'chai-as-promised';14import chaiAsPromised from 'chai-as-promised';16import chaiLike from 'chai-like';15import chaiLike from 'chai-like';17import {getTestSeed, MINIMUM_DONOR_FUND, requirePalletsOrSkip} from '../../util/index.js';16import {getTestSeed, MINIMUM_DONOR_FUND, requirePalletsOrSkip, makeNames} from '@unique/test-utils/util.js';181719chai.use(chaiAsPromised);18chai.use(chaiAsPromised);20chai.use(chaiLike);19chai.use(chaiLike);js-packages/tests/eth/util/playgrounds/types.tsdiffbeforeafterboth1import {CollectionFlag} from '@unique/playgrounds/types.js';1import {CollectionFlag} from '@unique-nft/playgrounds/types.js';2import type {TCollectionMode} from '@unique/playgrounds/types.js';2import type {TCollectionMode} from '@unique-nft/playgrounds/types.js';334export interface ContractImports {4export interface ContractImports {5 solPath: string;5 solPath: string;js-packages/tests/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth15import {evmToAddress} from '@polkadot/util-crypto';15import {evmToAddress} from '@polkadot/util-crypto';16import type {IKeyringPair} from '@polkadot/types/types';16import type {IKeyringPair} from '@polkadot/types/types';171718import {ArrangeGroup, DevUniqueHelper} from '@unique/playgrounds/unique.dev.js';18import {ArrangeGroup, DevUniqueHelper} from '@unique/test-utils/index.js';191920import type {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty} from './types.js';20import type {ContractImports, CompiledContract, CrossAddress, NormalizedEvent, EthProperty} from './types.js';21import {CollectionMode, CreateCollectionData} from './types.js';21import {CollectionMode, CreateCollectionData} from './types.js';32import refungibleTokenAbi from '../../abi/reFungibleToken.json' assert {type: 'json'};32import refungibleTokenAbi from '../../abi/reFungibleToken.json' assert {type: 'json'};33import refungibleTokenDeprecatedAbi from '../../abi/reFungibleTokenDeprecated.json' assert {type: 'json'};33import refungibleTokenDeprecatedAbi from '../../abi/reFungibleTokenDeprecated.json' assert {type: 'json'};34import contractHelpersAbi from '../../abi/contractHelpers.json' assert {type: 'json'};34import contractHelpersAbi from '../../abi/contractHelpers.json' assert {type: 'json'};35import type {ICrossAccountId, TEthereumAccount, TCollectionMode} from '@unique/playgrounds/types.js';35import type {ICrossAccountId, TEthereumAccount, TCollectionMode} from '@unique-nft/playgrounds/types.js';363637class EthGroupBase {37class EthGroupBase {38 helper: EthUniqueHelper;38 helper: EthUniqueHelper;js-packages/tests/fungible.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect, requirePalletsOrSkip, Pallets} from './util/index.js';18import {itSub, usingPlaygrounds, expect, requirePalletsOrSkip, Pallets} from '@unique/test-utils/util.js';191920const U128_MAX = (1n << 128n) - 1n;20const U128_MAX = (1n << 128n) - 1n;2121js-packages/tests/getPropertiesRpc.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {UniqueHelper, UniqueNFTCollection} from '@unique/playgrounds/unique.js';19import {UniqueHelper, UniqueNFTCollection} from '@unique-nft/playgrounds/unique.js';202021const collectionProps = [21const collectionProps = [22 {key: 'col-0', value: 'col-0-value'},22 {key: 'col-0', value: 'col-0-value'},js-packages/tests/inflation.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from './util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';191920const TREASURY = '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z';20const TREASURY = '5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z';2121js-packages/tests/limits.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js';18import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';191920describe('Number of tokens per address (NFT)', () => {20describe('Number of tokens per address (NFT)', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/maintenance.seqtest.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {ApiPromise} from '@polkadot/api';18import {ApiPromise} from '@polkadot/api';19import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js';19import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';20import {itEth} from './eth/util/index.js';20import {itEth} from './eth/util/index.js';21import {main as correctState} from './migrations/correctStateAfterMaintenance.js';21import {main as correctState} from './migrations/correctStateAfterMaintenance.js';22import type {PalletBalancesIdAmount} from '@polkadot/types/lookup';22import type {PalletBalancesIdAmount} from '@polkadot/types/lookup';js-packages/tests/migrations/942057-appPromotion/index.tsdiffbeforeafterboth1import type {Migration} from '../../util/frankensteinMigrate.js';1import type {Migration} from '../index.js';2import {collectData} from './collectData.js';2import {collectData} from './collectData.js';3import {migrateLockedToFreeze} from './lockedToFreeze.js';3import {migrateLockedToFreeze} from './lockedToFreeze.js';44js-packages/tests/migrations/942057-appPromotion/lockedToFreeze.tsdiffbeforeafterboth1// import { usingApi, privateKey, onlySign } from "./../../load/lib";1// import { usingApi, privateKey, onlySign } from "./../../load/lib";2import * as fs from 'fs';2import * as fs from 'fs';3import {usingPlaygrounds} from '../../util/index.js';3import {usingPlaygrounds} from '@unique/test-utils/util.js';4import path, {dirname} from 'path';4import path, {dirname} from 'path';5import {isInteger, parse} from 'lossless-json';5import {isInteger, parse} from 'lossless-json';6import {fileURLToPath} from 'url';6import {fileURLToPath} from 'url';js-packages/tests/migrations/correctStateAfterMaintenance.tsdiffbeforeafterboth1import config from '../config.js';1import config from '../config.js';2import {usingPlaygrounds} from '../util/index.js';2import {usingPlaygrounds} from '@unique/test-utils/util.js';3import type {u32} from '@polkadot/types-codec';3import type {u32} from '@polkadot/types-codec';445const WS_ENDPOINT = config.substrateUrl;5const WS_ENDPOINT = config.substrateUrl;js-packages/tests/migrations/index.tsdiffbeforeafterbothno changes
js-packages/tests/nativeFungible.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from './util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';191920describe('Native fungible', () => {20describe('Native fungible', () => {21 let root: IKeyringPair;21 let root: IKeyringPair;js-packages/tests/nextSponsoring.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from './util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';191920const SPONSORING_TIMEOUT = 5;20const SPONSORING_TIMEOUT = 5;2121js-packages/tests/package.jsondiffbeforeafterboth13 "mocha": "^10.1.0"13 "mocha": "^10.1.0"14 },14 },15 "scripts": {15 "scripts": {16 "setup": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/globalSetup.ts",16 "setup": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ../test-utils/globalSetup.ts",17 "setIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/identitySetter.ts",17 "setIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ../scripts/identitySetter.ts",18 "checkRelayIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ./util/relayIdentitiesChecker.ts",18 "checkRelayIdentities": "yarn node --no-warnings=ExperimentalWarning --loader ts-node/esm ../scripts/relayIdentitiesChecker.ts",19 "_test": "yarn setup && yarn mocha --timeout 9999999 --loader=ts-node/esm.mjs",19 "_test": "yarn setup && yarn mocha --timeout 9999999 --loader=ts-node/esm.mjs",20 "_testParallel": "yarn setup && yarn mocha --timeout 9999999 --parallel --loader=ts-node/esm.mjs",20 "_testParallel": "yarn setup && yarn mocha --timeout 9999999 --parallel --loader=ts-node/esm.mjs",21 "test": "yarn _test './**/*.*test.ts'",21 "test": "yarn _test './**/*.*test.ts'",js-packages/tests/pallet-presence.test.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {itSub, usingPlaygrounds, expect} from './util/index.js';17import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';181819// Pallets that must always be present19// Pallets that must always be present20const requiredPallets = [20const requiredPallets = [js-packages/tests/performance.seq.test.tsdiffbeforeafterboth161617import {ApiPromise} from '@polkadot/api';17import {ApiPromise} from '@polkadot/api';18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {expect, itSub, usingPlaygrounds} from './util/index.js';19import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';20import type {ICrossAccountId, IProperty} from '@unique/playgrounds/types.js';20import type {ICrossAccountId, IProperty} from '@unique-nft/playgrounds/types.js';21import {UniqueHelper} from '@unique/playgrounds/unique.js';21import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';222223describe('Performace tests', () => {23describe('Performace tests', () => {24 let alice: IKeyringPair;24 let alice: IKeyringPair;js-packages/tests/refungible.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from './util/index.js';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920const MAX_REFUNGIBLE_PIECES = 1_000_000_000_000_000_000_000n;20const MAX_REFUNGIBLE_PIECES = 1_000_000_000_000_000_000_000n;2121js-packages/tests/removeCollectionAdmin.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test removeCollectionAdmin(collection_id, account_id):', () => {21describe('Integration Test removeCollectionAdmin(collection_id, account_id):', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/removeCollectionSponsor.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('integration test: ext. removeCollectionSponsor():', () => {21describe('integration test: ext. removeCollectionSponsor():', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/rpc.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, itSub, expect} from './util/index.js';18import {usingPlaygrounds, itSub, expect} from '@unique/test-utils/util.js';19import {ICrossAccountId} from '@unique/playgrounds/types.js';19import {ICrossAccountId} from '@unique-nft/playgrounds/types.js';202021describe('integration test: RPC methods', () => {21describe('integration test: RPC methods', () => {22 let donor: IKeyringPair;22 let donor: IKeyringPair;js-packages/tests/scheduler.seqtest.tsdiffbeforeafterboth14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from './util/index.js';17import {expect, itSched, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {DevUniqueHelper, Event} from '@unique/playgrounds/unique.dev.js';19import {DevUniqueHelper, Event} from '@unique/test-utils';202021describe('Scheduling token and balance transfers', () => {21describe('Scheduling token and balance transfers', () => {22 let superuser: IKeyringPair;22 let superuser: IKeyringPair;js-packages/tests/setCollectionLimits.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {itSub, usingPlaygrounds, expect} from './util/index.js';19import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';212122const accountTokenOwnershipLimit = 0;22const accountTokenOwnershipLimit = 0;23const sponsoredDataSize = 0;23const sponsoredDataSize = 0;js-packages/tests/setCollectionSponsor.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect, Pallets} from './util/index.js';18import {itSub, usingPlaygrounds, expect, Pallets} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('integration test: ext. setCollectionSponsor():', () => {21describe('integration test: ext. setCollectionSponsor():', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/setPermissions.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test: Set Permissions', () => {21describe('Integration Test: Set Permissions', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/appPromotion/appPromotion.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '../../util/index.js';18import {itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';19import {expect} from '../../eth/util/index.js';19import {expect} from '../../eth/util/index.js';202021let superuser: IKeyringPair;21let superuser: IKeyringPair;js-packages/tests/sub/appPromotion/appPromotion.test.tsdiffbeforeafterboth17import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {18import {19 itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip, LOCKING_PERIOD, UNLOCKING_PERIOD,19 itSub, usingPlaygrounds, Pallets, requirePalletsOrSkip, LOCKING_PERIOD, UNLOCKING_PERIOD,20} from '../../util/index.js';20} from '@unique/test-utils/util.js';21import {DevUniqueHelper} from '@unique/playgrounds/unique.dev.js';21import {DevUniqueHelper} from '@unique/test-utils';22import {itEth, expect, SponsoringMode} from '../../eth/util/index.js';22import {itEth, expect, SponsoringMode} from '../../eth/util/index.js';232324let donor: IKeyringPair;24let donor: IKeyringPair;js-packages/tests/sub/check-event/burnItemEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {usingPlaygrounds, expect, itSub} from '../../util/index.js';19import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';2121222223describe('Burn Item event ', () => {23describe('Burn Item event ', () => {js-packages/tests/sub/check-event/createCollectionEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {usingPlaygrounds, itSub, expect} from '../../util/index.js';19import {usingPlaygrounds, itSub, expect} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Create collection event ', () => {22describe('Create collection event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/check-event/createItemEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {itSub, usingPlaygrounds, expect} from '../../util/index.js';19import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Create Item event ', () => {22describe('Create Item event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/check-event/createMultipleItemsEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {usingPlaygrounds, itSub, expect} from '../../util/index.js';19import {usingPlaygrounds, itSub, expect} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Create Multiple Items Event event ', () => {22describe('Create Multiple Items Event event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/check-event/destroyCollectionEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {itSub, usingPlaygrounds, expect} from '../../util/index.js';19import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Destroy collection event ', () => {22describe('Destroy collection event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/check-event/transferEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {usingPlaygrounds, expect, itSub} from '../../util/index.js';19import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Transfer event ', () => {22describe('Transfer event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/check-event/transferFromEvent.test.tsdiffbeforeafterboth161617// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits17// https://unique-network.readthedocs.io/en/latest/jsapi.html#setchainlimits18import type {IKeyringPair} from '@polkadot/types/types';18import type {IKeyringPair} from '@polkadot/types/types';19import {usingPlaygrounds, expect, itSub} from '../../util/index.js';19import {usingPlaygrounds, expect, itSub} from '@unique/test-utils/util.js';20import type {IEvent} from '@unique/playgrounds/types.js';20import type {IEvent} from '@unique-nft/playgrounds/types.js';212122describe('Transfer event ', () => {22describe('Transfer event ', () => {23 let alice: IKeyringPair;23 let alice: IKeyringPair;js-packages/tests/sub/collator-selection/collatorSelection.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../../util/index.js';18import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';191920async function nodeAddress(name: string) {20async function nodeAddress(name: string) {21 // eslint-disable-next-line require-await21 // eslint-disable-next-line require-awaitjs-packages/tests/sub/collator-selection/identity.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '../../util/index.js';18import {usingPlaygrounds, expect, itSub, Pallets, requirePalletsOrSkip} from '@unique/test-utils/util.js';19import {UniqueHelper} from '@unique/playgrounds/unique.js';19import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';202021async function getIdentities(helper: UniqueHelper) {21async function getIdentities(helper: UniqueHelper) {22 const identities: [string, any][] = [];22 const identities: [string, any][] = [];js-packages/tests/sub/governance/council.test.tsdiffbeforeafterboth112import type {IKeyringPair} from '@polkadot/types/types';2import type {IKeyringPair} from '@polkadot/types/types';3import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';3import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';4import {Event} from '@unique/playgrounds/unique.dev.js';4import {Event} from '@unique/test-utils';5import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, councilMotionDuration, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, initTechComm, clearFellowship, dummyProposal, dummyProposalCall, initFellowship, defaultEnactmentMoment, fellowshipPropositionOrigin} from './util.js';5import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, councilMotionDuration, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, initTechComm, clearFellowship, dummyProposal, dummyProposalCall, initFellowship, defaultEnactmentMoment, fellowshipPropositionOrigin} from './util.js';6import type {ICounselors} from './util.js';6import type {ICounselors} from './util.js';77js-packages/tests/sub/governance/democracy.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';3import {clearFellowship, democracyLaunchPeriod, democracyTrackMinRank, dummyProposalCall, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, fellowshipPreparePeriod, fellowshipPropositionOrigin, initFellowship, voteUnanimouslyInFellowship} from './util.js';3import {clearFellowship, democracyLaunchPeriod, democracyTrackMinRank, dummyProposalCall, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, fellowshipPreparePeriod, fellowshipPropositionOrigin, initFellowship, voteUnanimouslyInFellowship} from './util.js';4import {Event} from '@unique/playgrounds/unique.dev.js';4import {Event} from '@unique/test-utils';556describeGov('Governance: Democracy tests', () => {6describeGov('Governance: Democracy tests', () => {7 let regularUser: IKeyringPair;7 let regularUser: IKeyringPair;js-packages/tests/sub/governance/electsudo.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';3import {Event} from '@unique/playgrounds/unique.dev.js';3import {Event} from '@unique/test-utils';4import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, clearCouncil, clearTechComm, initTechComm, ITechComms} from './util.js';4import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, clearCouncil, clearTechComm, initTechComm, ITechComms} from './util.js';5import type {ICounselors} from './util.js';5import type {ICounselors} from './util.js';66js-packages/tests/sub/governance/fellowship.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';3import {DevUniqueHelper, Event} from '@unique/playgrounds/unique.dev.js';3import {DevUniqueHelper, Event} from '@unique/test-utils';4import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, voteUnanimouslyInFellowship, democracyTrackMinRank, fellowshipPreparePeriod, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, democracyTrackId, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js';4import {initCouncil, democracyLaunchPeriod, democracyVotingPeriod, democracyFastTrackVotingPeriod, fellowshipRankLimit, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, voteUnanimouslyInFellowship, democracyTrackMinRank, fellowshipPreparePeriod, fellowshipConfirmPeriod, fellowshipMinEnactPeriod, democracyTrackId, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js';5import type {ICounselors, ITechComms} from './util.js';5import type {ICounselors, ITechComms} from './util.js';66js-packages/tests/sub/governance/init.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';3import {Event} from '@unique/playgrounds/unique.dev.js';3import {Event} from '@unique/test-utils';4import {democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, clearCouncil, clearTechComm, clearFellowship} from './util.js';4import {democracyLaunchPeriod, democracyVotingPeriod, democracyEnactmentPeriod, clearCouncil, clearTechComm, clearFellowship} from './util.js';5import type {ICounselors, ITechComms} from './util.js';5import type {ICounselors, ITechComms} from './util.js';66js-packages/tests/sub/governance/technicalCommittee.test.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '../../util/index.js';2import {usingPlaygrounds, itSub, expect, Pallets, requirePalletsOrSkip, describeGov} from '@unique/test-utils/util.js';3import {Event} from '@unique/playgrounds/unique.dev.js';3import {Event} from '@unique/test-utils';4import {initCouncil, democracyLaunchPeriod, democracyFastTrackVotingPeriod, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js';4import {initCouncil, democracyLaunchPeriod, democracyFastTrackVotingPeriod, clearCouncil, clearTechComm, clearFellowship, defaultEnactmentMoment, dummyProposal, dummyProposalCall, fellowshipPropositionOrigin, initFellowship, initTechComm, hardResetFellowshipReferenda, hardResetDemocracy, hardResetGovScheduler} from './util.js';5import type {ITechComms} from './util.js';5import type {ITechComms} from './util.js';66js-packages/tests/sub/governance/util.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {xxhashAsHex} from '@polkadot/util-crypto';2import {xxhashAsHex} from '@polkadot/util-crypto';3import type {u32} from '@polkadot/types-codec';3import type {u32} from '@polkadot/types-codec';4import {usingPlaygrounds, expect} from '../../util/index.js';4import {usingPlaygrounds, expect} from '@unique/test-utils/util.js';5import {UniqueHelper} from '@unique/playgrounds/unique.js';5import {UniqueHelper} from '@unique-nft/playgrounds/unique.js';6import {DevUniqueHelper} from '@unique/playgrounds/unique.dev.js';6import {DevUniqueHelper} from '@unique/test-utils';778export const democracyLaunchPeriod = 35;8export const democracyLaunchPeriod = 35;9export const democracyVotingPeriod = 35;9export const democracyVotingPeriod = 35;js-packages/tests/sub/nesting/admin.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId} from '@unique/playgrounds/unique.js';19import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';202021describe('Nesting by collection admin', () => {21describe('Nesting by collection admin', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/nesting/collectionProperties.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../../util/index.js';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '@unique/test-utils/util.js';191920describe('Integration Test: Collection Properties with sudo', () => {20describe('Integration Test: Collection Properties with sudo', () => {21 let superuser: IKeyringPair;21 let superuser: IKeyringPair;js-packages/tests/sub/nesting/collectionProperties.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../../util/index.js';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '@unique/test-utils/util.js';191920describe('Integration Test: Collection Properties', () => {20describe('Integration Test: Collection Properties', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/sub/nesting/common.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId, UniqueNFTCollection, UniqueRFTCollection} from '@unique/playgrounds/unique.js';19import {CrossAccountId, UniqueNFTCollection, UniqueRFTCollection} from '@unique-nft/playgrounds/unique.js';202021let alice: IKeyringPair;21let alice: IKeyringPair;22let bob: IKeyringPair;22let bob: IKeyringPair;js-packages/tests/sub/nesting/e2e.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId} from '@unique/playgrounds/unique.js';19import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';202021describe('Composite nesting tests', () => {21describe('Composite nesting tests', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/nesting/graphs.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';19import {UniqueHelper, UniqueNFTCollection, UniqueNFToken} from '@unique/playgrounds/unique.js';19import {UniqueHelper, UniqueNFTCollection, UniqueNFToken} from '@unique-nft/playgrounds/unique.js';202021/**21/**22 * ```dot22 * ```dotjs-packages/tests/sub/nesting/nesting.negative.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';19import {UniqueFTCollection, UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection, UniqueRFToken} from '@unique/playgrounds/unique.js';19import {UniqueFTCollection, UniqueNFTCollection, UniqueNFToken, UniqueRFTCollection, UniqueRFToken} from '@unique-nft/playgrounds/unique.js';20import {itEth} from '../../eth/util/index.js';20import {itEth} from '../../eth/util/index.js';212122let alice: IKeyringPair;22let alice: IKeyringPair;js-packages/tests/sub/nesting/propertyPermissions.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect} from '../../util/index.js';18import {itSub, Pallets, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {UniqueNFTCollection, UniqueRFTCollection} from '@unique/playgrounds/unique.js';19import {UniqueNFTCollection, UniqueRFTCollection} from '@unique-nft/playgrounds/unique.js';202021describe('Integration Test: Access Rights to Token Properties', () => {21describe('Integration Test: Access Rights to Token Properties', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/nesting/refungible.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';191920describe('ReFungible-specific nesting tests', () => {20describe('ReFungible-specific nesting tests', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/sub/nesting/tokenProperties.seqtest.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '../../util/index.js';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip, sizeOfProperty} from '@unique/test-utils/util.js';191920describe('Integration Test: Token Properties with sudo', () => {20describe('Integration Test: Token Properties with sudo', () => {21 let superuser: IKeyringPair;21 let superuser: IKeyringPair;js-packages/tests/sub/nesting/tokenProperties.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect, sizeOfProperty} from '../../util/index.js';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect, sizeOfProperty} from '@unique/test-utils/util.js';19import {UniqueHelper, UniqueNFToken, UniqueRFToken} from '@unique/playgrounds/unique.js';19import {UniqueHelper, UniqueNFToken, UniqueRFToken} from '@unique-nft/playgrounds/unique.js';202021describe('Integration Test: Token Properties', () => {21describe('Integration Test: Token Properties', () => {22 let alice: IKeyringPair; // collection owner22 let alice: IKeyringPair; // collection ownerjs-packages/tests/sub/nesting/unnest.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, Pallets, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId, UniqueFTCollection, UniqueNFToken, UniqueRFToken} from '@unique/playgrounds/unique.js';19import {CrossAccountId, UniqueFTCollection, UniqueNFToken, UniqueRFToken} from '@unique-nft/playgrounds/unique.js';202021describe('Integration Test: Unnesting', () => {21describe('Integration Test: Unnesting', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/nesting/unnesting.negative.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, usingPlaygrounds} from '@unique/test-utils/util.js';19import {CrossAccountId} from '@unique/playgrounds/unique.js';19import {CrossAccountId} from '@unique-nft/playgrounds/unique.js';202021describe('Negative Test: Unnesting', () => {21describe('Negative Test: Unnesting', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/sub/refungible/burn.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920describe('Refungible: burn', () => {20describe('Refungible: burn', () => {21 let donor: IKeyringPair;21 let donor: IKeyringPair;js-packages/tests/sub/refungible/nesting.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '../../util/index.js';18import {expect, itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds} from '@unique/test-utils/util.js';191920describe('Refungible nesting', () => {20describe('Refungible nesting', () => {21 let alice: IKeyringPair;21 let alice: IKeyringPair;js-packages/tests/sub/refungible/repartition.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920describe('integration test: Refungible functionality:', () => {20describe('integration test: Refungible functionality:', () => {21 let donor: IKeyringPair;21 let donor: IKeyringPair;js-packages/tests/sub/refungible/transfer.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '../../util/index.js';18import {itSub, Pallets, requirePalletsOrSkip, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920describe('Refungible transfer tests', () => {20describe('Refungible transfer tests', () => {21 let donor: IKeyringPair;21 let donor: IKeyringPair;js-packages/tests/transfer.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itEth, usingEthPlaygrounds} from './eth/util/index.js';18import {itEth, usingEthPlaygrounds} from './eth/util/index.js';19import {itSub, Pallets, usingPlaygrounds, expect} from './util/index.js';19import {itSub, Pallets, usingPlaygrounds, expect} from '@unique/test-utils/util.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';20import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';212122describe('Integration Test Transfer(recipient, collection_id, item_id, value)', () => {22describe('Integration Test Transfer(recipient, collection_id, item_id, value)', () => {23 let donor: IKeyringPair;23 let donor: IKeyringPair;js-packages/tests/transferFrom.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect} from './util/index.js';18import {itSub, Pallets, usingPlaygrounds, expect} from '@unique/test-utils/util.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique/playgrounds/types.js';19import {NON_EXISTENT_COLLECTION_ID} from '@unique-nft/playgrounds/types.js';202021describe('Integration Test transferFrom(from, recipient, collection_id, item_id, value):', () => {21describe('Integration Test transferFrom(from, recipient, collection_id, item_id, value):', () => {22 let alice: IKeyringPair;22 let alice: IKeyringPair;js-packages/tests/tx-version-presence.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import {Metadata} from '@polkadot/types';17import {Metadata} from '@polkadot/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920let metadata: Metadata;20let metadata: Metadata;2121js-packages/tests/util/authorizeEnactUpgrade.tsdiffbeforeafterbothno changes
js-packages/tests/util/createHrmp.tsdiffbeforeafterbothno changes
js-packages/tests/util/frankensteinMigrate.tsdiffbeforeafterbothno changes
js-packages/tests/util/globalSetup.tsdiffbeforeafterbothno changes
js-packages/tests/util/identitySetter.tsdiffbeforeafterbothno changes
js-packages/tests/util/index.tsdiffbeforeafterbothno changes
js-packages/tests/util/relayIdentitiesChecker.tsdiffbeforeafterbothno changes
js-packages/tests/util/setCode.tsdiffbeforeafterbothno changes
js-packages/tests/vesting.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, usingPlaygrounds, expect} from './util/index.js';18import {itSub, usingPlaygrounds, expect} from '@unique/test-utils/util.js';191920describe('Vesting', () => {20describe('Vesting', () => {21 let donor: IKeyringPair;21 let donor: IKeyringPair;js-packages/tests/xcm/lowLevelXcmQuartz.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingMoonriverPlaygrounds, usingShidenPlaygrounds, usingRelayPlaygrounds} from '../util/index.js';18import {itSub, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingMoonriverPlaygrounds, usingShidenPlaygrounds} from '@unique/test-utils/util.js';19import {QUARTZ_CHAIN, QTZ_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, shidenUrl, SAFE_XCM_VERSION, XcmTestHelper, TRANSFER_AMOUNT, SENDER_BUDGET, relayUrl} from './xcm.types.js';19import {QUARTZ_CHAIN, QTZ_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, shidenUrl, SAFE_XCM_VERSION, XcmTestHelper, TRANSFER_AMOUNT, SENDER_BUDGET, relayUrl} from './xcm.types.js';20import {hexToString} from '@polkadot/util';20import {hexToString} from '@polkadot/util';2121js-packages/tests/xcm/lowLevelXcmUnique.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import config from '../config.js';18import config from '../config.js';19import {itSub, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingMoonbeamPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds, usingHydraDxPlaygrounds} from '../util/index.js';19import {itSub, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingMoonbeamPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds, usingHydraDxPlaygrounds} from '@unique/test-utils/util.js';20import {nToBigInt} from '@polkadot/util';20import {nToBigInt} from '@polkadot/util';21import {hexToString} from '@polkadot/util';21import {hexToString} from '@polkadot/util';22import {ASTAR_DECIMALS, SAFE_XCM_VERSION, SENDER_BUDGET, UNIQUE_CHAIN, UNQ_DECIMALS, XcmTestHelper, acalaUrl, astarUrl, hydraDxUrl, moonbeamUrl, polkadexUrl, uniqueAssetId} from './xcm.types.js';22import {ASTAR_DECIMALS, SAFE_XCM_VERSION, SENDER_BUDGET, UNIQUE_CHAIN, UNQ_DECIMALS, XcmTestHelper, acalaUrl, astarUrl, hydraDxUrl, moonbeamUrl, polkadexUrl, uniqueAssetId} from './xcm.types.js';js-packages/tests/xcm/xcm.types.tsdiffbeforeafterboth1import type {IKeyringPair} from '@polkadot/types/types';1import type {IKeyringPair} from '@polkadot/types/types';2import {hexToString} from '@polkadot/util';3import {expect, usingAcalaPlaygrounds, usingAstarPlaygrounds, usingHydraDxPlaygrounds, usingKaruraPlaygrounds, usingMoonbeamPlaygrounds, usingMoonriverPlaygrounds, usingPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds, usingShidenPlaygrounds} from '../util/index.js';2import {expect, usingAcalaPlaygrounds, usingAstarPlaygrounds, usingHydraDxPlaygrounds, usingKaruraPlaygrounds, usingMoonbeamPlaygrounds, usingMoonriverPlaygrounds, usingPlaygrounds, usingPolkadexPlaygrounds, usingRelayPlaygrounds, usingShidenPlaygrounds} from '@unique/test-utils/util.js';4import {DevUniqueHelper, Event} from '@unique/playgrounds/unique.dev.js';3import {DevUniqueHelper, Event} from '@unique/test-utils';5import config from '../config.js';4import config from '../config.js';657export const UNIQUE_CHAIN = +(process.env.RELAY_UNIQUE_ID || 2037);6export const UNIQUE_CHAIN = +(process.env.RELAY_UNIQUE_ID || 2037);js-packages/tests/xcm/xcmOpal.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import config from '../config.js';18import config from '../config.js';19import {itSub, expect, describeXCM, usingPlaygrounds, usingWestmintPlaygrounds, usingRelayPlaygrounds} from '../util/index.js';19import {itSub, expect, describeXCM, usingPlaygrounds, usingWestmintPlaygrounds, usingRelayPlaygrounds} from '@unique/test-utils/util.js';20import {XcmTestHelper} from './xcm.types.js';20import {XcmTestHelper} from './xcm.types.js';212122const STATEMINE_CHAIN = +(process.env.RELAY_WESTMINT_ID || 1000);22const STATEMINE_CHAIN = +(process.env.RELAY_WESTMINT_ID || 1000);js-packages/tests/xcm/xcmQuartz.test.tsdiffbeforeafterboth15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import {itSub, expect, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingRelayPlaygrounds, usingMoonriverPlaygrounds, usingStateminePlaygrounds, usingShidenPlaygrounds} from '../util/index.js';18import {itSub, expect, describeXCM, usingPlaygrounds, usingKaruraPlaygrounds, usingRelayPlaygrounds, usingMoonriverPlaygrounds, usingStateminePlaygrounds, usingShidenPlaygrounds} from '@unique/test-utils/util.js';19import {DevUniqueHelper, Event} from '@unique/playgrounds/unique.dev.js';19import {DevUniqueHelper, Event} from '@unique/test-utils';20import {STATEMINE_CHAIN, QUARTZ_CHAIN, KARURA_CHAIN, MOONRIVER_CHAIN, SHIDEN_CHAIN, STATEMINE_DECIMALS, KARURA_DECIMALS, QTZ_DECIMALS, RELAY_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, relayUrl, shidenUrl, statemineUrl} from './xcm.types.js';20import {STATEMINE_CHAIN, QUARTZ_CHAIN, KARURA_CHAIN, MOONRIVER_CHAIN, SHIDEN_CHAIN, STATEMINE_DECIMALS, KARURA_DECIMALS, QTZ_DECIMALS, RELAY_DECIMALS, SHIDEN_DECIMALS, karuraUrl, moonriverUrl, relayUrl, shidenUrl, statemineUrl} from './xcm.types.js';21import {hexToString} from '@polkadot/util';21import {hexToString} from '@polkadot/util';22import {XcmTestHelper} from './xcm.types.js';22import {XcmTestHelper} from './xcm.types.js';js-packages/tests/xcm/xcmUnique.test.tsdiffbeforeafterboth161617import type {IKeyringPair} from '@polkadot/types/types';17import type {IKeyringPair} from '@polkadot/types/types';18import config from '../config.js';18import config from '../config.js';19import {itSub, expect, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingRelayPlaygrounds, usingMoonbeamPlaygrounds, usingStatemintPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds} from '../util/index.js';19import {itSub, expect, describeXCM, usingPlaygrounds, usingAcalaPlaygrounds, usingRelayPlaygrounds, usingMoonbeamPlaygrounds, usingStatemintPlaygrounds, usingAstarPlaygrounds, usingPolkadexPlaygrounds} from '@unique/test-utils/util.js';20import {Event} from '@unique/playgrounds/unique.dev.js';20import {Event} from '@unique/test-utils';21import {hexToString, nToBigInt} from '@polkadot/util';21import {hexToString, nToBigInt} from '@polkadot/util';22import {ACALA_CHAIN, ASTAR_CHAIN, MOONBEAM_CHAIN, POLKADEX_CHAIN, SAFE_XCM_VERSION, STATEMINT_CHAIN, UNIQUE_CHAIN, expectFailedToTransact, expectUntrustedReserveLocationFail, uniqueAssetId, uniqueVersionedMultilocation} from './xcm.types.js';22import {ACALA_CHAIN, ASTAR_CHAIN, MOONBEAM_CHAIN, POLKADEX_CHAIN, SAFE_XCM_VERSION, STATEMINT_CHAIN, UNIQUE_CHAIN, expectFailedToTransact, expectUntrustedReserveLocationFail, uniqueAssetId, uniqueVersionedMultilocation} from './xcm.types.js';23import {XcmTestHelper} from './xcm.types.js';23import {XcmTestHelper} from './xcm.types.js';js-packages/types/package.jsondiffbeforeafterboth5 "engines": {5 "engines": {6 "node": ">=16"6 "node": ">=16"7 },7 },8 "name": "@unique/opal-types",8 "name": "@unique-nft/opal-testnet-types",9 "type": "module",9 "type": "module",10 "version": "1.0.0",10 "version": "1.0.0",11 "main": "index.js",11 "main": "index.js",js-packages/yarn.lockdiffbeforeafterboth1242 languageName: node1242 languageName: node1243 linkType: hard1243 linkType: hard124412441245"@unique/opal-types@workspace:*, @unique/opal-types@workspace:types":1245"@unique-nft/opal-testnet-types@workspace:*, @unique-nft/opal-testnet-types@workspace:types":1246 version: 0.0.0-use.local1246 version: 0.0.0-use.local1247 resolution: "@unique/opal-types@workspace:types"1247 resolution: "@unique-nft/opal-testnet-types@workspace:types"1248 dependencies:1248 dependencies:1249 "@polkadot/typegen": ^10.10.11249 "@polkadot/typegen": ^10.10.11250 languageName: unknown1250 languageName: unknown1251 linkType: soft1251 linkType: soft125212521253"@unique/playgrounds@workspace:*, @unique/playgrounds@workspace:playgrounds":1253"@unique-nft/playgrounds@workspace:*, @unique-nft/playgrounds@workspace:playgrounds":1254 version: 0.0.0-use.local1254 version: 0.0.0-use.local1255 resolution: "@unique/playgrounds@workspace:playgrounds"1255 resolution: "@unique-nft/playgrounds@workspace:playgrounds"1256 dependencies:1256 dependencies:1257 "@polkadot/api": 10.10.11257 "@polkadot/api": 10.10.11258 "@polkadot/util": ^12.5.11258 "@polkadot/util": ^12.5.11259 "@polkadot/util-crypto": ^12.5.11259 "@polkadot/util-crypto": ^12.5.11260 "@unique/opal-types": "workspace:*"1261 languageName: unknown1260 languageName: unknown1262 linkType: soft1261 linkType: soft126312621267 languageName: unknown1266 languageName: unknown1268 linkType: soft1267 linkType: soft12681269"@unique/test-utils@workspace:*, @unique/test-utils@workspace:test-utils":1270 version: 0.0.0-use.local1271 resolution: "@unique/test-utils@workspace:test-utils"1272 dependencies:1273 "@polkadot/api": 10.10.11274 "@polkadot/util": ^12.5.11275 "@polkadot/util-crypto": ^12.5.11276 "@unique-nft/opal-testnet-types": "workspace:*"1277 languageName: unknown1278 linkType: soft126912791270"@unique/tests@workspace:tests":1280"@unique/tests@workspace:tests":1271 version: 0.0.0-use.local1281 version: 0.0.0-use.local6001 "@types/node": ^20.8.106011 "@types/node": ^20.8.106002 "@typescript-eslint/eslint-plugin": ^6.10.06012 "@typescript-eslint/eslint-plugin": ^6.10.06003 "@typescript-eslint/parser": ^6.10.06013 "@typescript-eslint/parser": ^6.10.06004 "@unique/opal-types": "workspace:*"6014 "@unique-nft/opal-testnet-types": "workspace:*"6005 "@unique/playgrounds": "workspace:*"6015 "@unique-nft/playgrounds": "workspace:*"6016 "@unique/test-utils": "workspace:*"6006 chai: ^4.3.106017 chai: ^4.3.106007 chai-as-promised: ^7.1.16018 chai-as-promised: ^7.1.16008 chai-like: ^1.1.16019 chai-like: ^1.1.1