diff --git a/packages/lsp-smart-contracts/package.json b/packages/lsp-smart-contracts/package.json index a6cc748ef..3311f9d4a 100644 --- a/packages/lsp-smart-contracts/package.json +++ b/packages/lsp-smart-contracts/package.json @@ -62,7 +62,7 @@ "lint": "eslint . --ext .ts,.js", "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "package": "hardhat prepare-package", - "test": "hardhat test --no-compile tests/**/*.test.ts", + "test": "hardhat test --no-compile tests/**/*.test.ts tests/LSP7DigitalAsset/**/*.ts tests/LSP8IdentifiableDigitalAsset/**/*.ts", "test:foundry": "FOUNDRY_PROFILE=lsp_smart_contracts forge test --no-match-test Skip -vvv", "test:coverage": "hardhat coverage", "test:benchmark": "hardhat test --no-compile tests/Benchmark.test.ts" diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Admin/PermissionChangeOwner.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Admin/PermissionChangeOwner.test.ts index ae922613f..b4626a2ab 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Admin/PermissionChangeOwner.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Admin/PermissionChangeOwner.test.ts @@ -8,7 +8,7 @@ import { ERC725YDataKeys } from '../../../../constants'; import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; import { PERMISSIONS } from '@lukso/lsp6-contracts'; -import { LSP6KeyManager, LSP6KeyManager__factory } from '../../types'; +import { LSP6KeyManager, LSP6KeyManager__factory } from '../../../../types'; // setup import { LSP6TestContext } from '../../../utils/context'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedAddresses.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedAddresses.test.ts index 0e99cbf28..acfe2cf14 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedAddresses.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedAddresses.test.ts @@ -2,7 +2,7 @@ import { expect } from 'chai'; import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { TargetContract, TargetContract__factory } from '../../types'; +import { TargetContract, TargetContract__factory } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedFunctions.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedFunctions.test.ts index f11605ed1..634b1c8b3 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedFunctions.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedFunctions.test.ts @@ -9,7 +9,7 @@ import { LSP7Mintable__factory, LSP8Mintable, LSP8Mintable__factory, -} from '../../types'; +} from '../../../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedStandards.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedStandards.test.ts index 4e9e71387..a8b011db3 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedStandards.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/AllowedStandards.test.ts @@ -11,7 +11,7 @@ import { LSP7Mintable__factory, UniversalProfile, UniversalProfile__factory, -} from '../../types'; +} from '../../../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/ERC725XExecuteBatch.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/ERC725XExecuteBatch.test.ts index 549c9b124..acbfce4cc 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/ERC725XExecuteBatch.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/ERC725XExecuteBatch.test.ts @@ -15,7 +15,7 @@ import { LSP7MintableInit, LSP7MintableInit__factory, LSP7Mintable__factory, -} from '../../types'; +} from '../../../../types'; export const shouldBehaveLikeBatchExecute = ( buildContext: (initialFunding?: bigint) => Promise, diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/OtherScenarios.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/OtherScenarios.test.ts index eac90fb33..b43a78b30 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/OtherScenarios.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/OtherScenarios.test.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { TargetContract__factory, TargetContract } from '../../types'; +import { TargetContract__factory, TargetContract } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionCall.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionCall.test.ts index 0d88a54b3..0250ffa2f 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionCall.test.ts @@ -9,7 +9,7 @@ import { FallbackRevert__factory, TargetContract, TargetContract__factory, -} from '../../types'; +} from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDelegateCall.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDelegateCall.test.ts index c937c9f22..0bd7df864 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDelegateCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDelegateCall.test.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { ERC725YDelegateCall, ERC725YDelegateCall__factory } from '../../types'; +import { ERC725YDelegateCall, ERC725YDelegateCall__factory } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDeploy.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDeploy.test.ts index 63fd4a5fa..7fd49ca8b 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDeploy.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionDeploy.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { calculateCreate2 } from 'eth-create2-calculator'; -import { TargetContract__factory } from '../../types'; +import { TargetContract__factory } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionStaticCall.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionStaticCall.test.ts index 3f5eec98d..9171d907d 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionStaticCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionStaticCall.test.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { TargetContract, TargetContract__factory } from '../../types'; +import { TargetContract, TargetContract__factory } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionTransferValue.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionTransferValue.test.ts index cc2d96d5e..19bfb4079 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionTransferValue.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/PermissionTransferValue.test.ts @@ -16,7 +16,7 @@ import { UniversalProfile, FallbackContract__factory, FallbackContract, -} from '../../types'; +} from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/Security.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/Security.test.ts index b518c2690..bc25f95dd 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/Security.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/Interactions/Security.test.ts @@ -12,7 +12,7 @@ import { TargetContract, TargetContract__factory, UniversalReceiverDelegateDataUpdater__factory, -} from '../../types'; +} from '../../../../types'; // constants import { ERC725YDataKeys, LSP1_TYPE_IDS } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/SetData/PermissionSetData.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/SetData/PermissionSetData.test.ts index 89b252508..d512c38ec 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/SetData/PermissionSetData.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/SetData/PermissionSetData.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { encodeData, ERC725JSONSchema } from '@erc725/erc725.js'; -import { ExecutorLSP20, ExecutorLSP20__factory } from '../../types'; +import { ExecutorLSP20, ExecutorLSP20__factory } from '../../../../types'; // constants import { ERC725YDataKeys } from '../../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts index 50c557c07..89485e060 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts @@ -22,6 +22,7 @@ import { ERC725YDataKeys, INTERFACE_IDS, LSP1_TYPE_IDS, SupportedStandards } fro import { abiCoder } from '../utils/helpers'; import { AddressZero } from '../LSP17Extensions/helpers/utils'; +import { build } from 'unbuild'; export type LSP7TestAccounts = { owner: SignerWithAddress; @@ -444,8 +445,8 @@ export const shouldBehaveLikeLSP7 = (buildContext: () => Promise { - const tokenOwner = context.accounts.owner.address; it('should revert', async () => { + const tokenOwner = context.accounts.owner.address; const subtractedAmount = toBigInt(1); await expect(