From 44841fc5635dfaa22a8aa560bfbba8fa7a50243f Mon Sep 17 00:00:00 2001 From: b00ste Date: Wed, 28 Feb 2024 20:48:44 +0200 Subject: [PATCH] chore: fix types imports in tests --- .../LSP11BasicSocialRecovery.behaviour.ts | 2 +- .../LSP11BasicSocialRecovery.test.ts | 6 +----- .../LSP11BasicSocialRecoveryInit.test.ts | 2 +- .../tests/LSP14Ownable2Step/LSP14Ownable2Step.behaviour.ts | 2 +- .../LSP17ContractExtension/LSP17Extendable.behaviour.ts | 2 +- .../tests/LSP17ContractExtension/LSP17Extendable.test.ts | 2 +- .../LSP17ExtendableTokens.behaviour.ts | 2 +- .../tests/LSP17Extensions/Extension4337/4337.test.ts | 2 +- .../LSP1UniversalReceiver.behaviour.ts | 2 +- .../LSP1UniversalReceiverDelegateUP.behaviour.ts | 2 +- .../LSP1UniversalReceiverDelegateUP.test.ts | 6 +----- .../LSP1UniversalReceiverDelegateVault.behaviour.ts | 2 +- .../LSP1UniversalReceiverDelegateVault.test.ts | 2 +- .../LSP20CallVerification.behaviour.ts | 2 +- .../tests/LSP20CallVerification/LSP20WithLSP14.behaviour.ts | 2 +- .../LSP6/Admin/PermissionChangeOwner.test.ts | 2 +- .../LSP6/Interactions/AllowedAddresses.test.ts | 2 +- .../LSP6/Interactions/AllowedFunctions.test.ts | 2 +- .../LSP6/Interactions/AllowedStandards.test.ts | 2 +- .../LSP6/Interactions/ERC725XExecuteBatch.test.ts | 2 +- .../LSP6/Interactions/OtherScenarios.test.ts | 2 +- .../LSP6/Interactions/PermissionCall.test.ts | 2 +- .../LSP6/Interactions/PermissionDelegateCall.test.ts | 2 +- .../LSP6/Interactions/PermissionDeploy.test.ts | 2 +- .../LSP6/Interactions/PermissionStaticCall.test.ts | 2 +- .../LSP6/Interactions/PermissionTransferValue.test.ts | 2 +- .../LSP6/Interactions/Security.test.ts | 2 +- .../tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts | 2 +- .../LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts | 2 +- .../LSP6/SetData/PermissionSetData.test.ts | 2 +- .../LSP23LinkedContractsDeployment.test.ts | 2 +- .../tests/LSP23LinkedContractsDeployment/helpers.ts | 4 ++-- .../LSP4DigitalAssetMetadata.behaviour.ts | 2 +- .../LSP6KeyManager/Admin/PermissionChangeOwner.test.ts | 2 +- .../LSP6KeyManager/Interactions/AllowedAddresses.test.ts | 2 +- .../LSP6KeyManager/Interactions/AllowedFunctions.test.ts | 2 +- .../LSP6KeyManager/Interactions/AllowedStandards.test.ts | 2 +- .../tests/LSP6KeyManager/Interactions/BatchExecute.test.ts | 6 +----- .../Interactions/InvalidExecutePayloads.test.ts | 2 +- .../LSP6KeyManager/Interactions/PermissionCall.test.ts | 2 +- .../Interactions/PermissionDelegateCall.test.ts | 2 +- .../LSP6KeyManager/Interactions/PermissionDeploy.test.ts | 2 +- .../Interactions/PermissionStaticCall.test.ts | 2 +- .../Interactions/PermissionTransferValue.test.ts | 2 +- .../tests/LSP6KeyManager/LSP6ControlledToken.test.ts | 2 +- .../tests/LSP6KeyManager/LSP6KeyManager.test.ts | 2 +- .../tests/LSP6KeyManager/LSP6KeyManagerInit.test.ts | 2 +- .../tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts | 2 +- .../tests/LSP6KeyManager/Relay/MultiChannelNonce.test.ts | 2 +- .../tests/LSP6KeyManager/SetData/PermissionSetData.test.ts | 2 +- .../tests/LSP6KeyManager/internals/AllowedCalls.internal.ts | 2 +- .../tests/LSP7DigitalAsset/LSP7CappedSupply.behaviour.ts | 2 +- .../tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts | 2 +- .../tests/LSP7DigitalAsset/LSP7Mintable.behaviour.ts | 2 +- .../LSP7DigitalAsset/proxy/LSP7CappedSupplyInit.test.ts | 5 +---- .../LSP7DigitalAsset/proxy/LSP7DigitalAssetInit.test.ts | 2 +- .../tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts | 2 +- .../LSP7DigitalAsset/standard/LSP7CappedSupply.test.ts | 2 +- .../LSP7DigitalAsset/standard/LSP7DigitalAsset.test.ts | 2 +- .../tests/LSP7DigitalAsset/standard/LSP7Mintable.test.ts | 2 +- .../LSP8CappedSupply.behaviour.ts | 2 +- .../LSP8Enumerable.behaviour.ts | 2 +- .../LSP8IdentifiableDigitalAsset.behaviour.ts | 2 +- .../LSP8IdentifiableDigitalAsset/LSP8Mintable.behaviour.ts | 2 +- .../proxy/LSP8BurnableInit.test.ts | 2 +- .../proxy/LSP8CappedSupplyInit.test.ts | 5 +---- .../proxy/LSP8EnumerableInit.test.ts | 2 +- .../proxy/LSP8IdentifiableDigitalAssetInit.test.ts | 6 +----- .../proxy/LSP8MintableInit.test.ts | 2 +- .../standard/LSP8Burnable.test.ts | 2 +- .../standard/LSP8CappedSupply.test.ts | 2 +- .../standard/LSP8Enumerable.test.ts | 2 +- .../standard/LSP8IdentifiableDigitalAsset.test.ts | 2 +- .../standard/LSP8Mintable.test.ts | 2 +- .../tests/LSP9Vault/LSP9Vault.behaviour.ts | 2 +- .../lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.test.ts | 2 +- .../tests/LSP9Vault/LSP9VaultInit.test.ts | 2 +- packages/lsp-smart-contracts/tests/Mocks/ABIEncoder.test.ts | 2 +- .../tests/Mocks/ERC165Interfaces.test.ts | 2 +- .../tests/Mocks/KeyManagerExecutionCosts.test.ts | 6 +----- .../lsp-smart-contracts/tests/Mocks/LSP1TypeIDs.test.ts | 2 +- .../LSP20/ERC725XBatchExecuteToERC725XExecute.test.ts | 2 +- .../LSP20/ERC725XExecuteToERC725XBatchExecute.test.ts | 2 +- .../Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts | 2 +- .../LSP20/ERC725XExecuteToLSP6BatchExecuteRelayCall.test.ts | 2 +- .../LSP20/ERC725XExecuteToLSP6ExecuteRelayCall.test.ts | 2 +- .../tests/Reentrancy/LSP20/reentrancyHelpers.ts | 2 +- .../tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts | 2 +- .../SingleExecuteRelayCallToSingleExecuteRelayCall.test.ts | 2 +- .../LSP6/SingleExecuteToBatchExecuteRelayCall.test.ts | 2 +- .../LSP6/SingleExecuteToSingleExecuteRelayCall.test.ts | 2 +- .../tests/Reentrancy/LSP6/reentrancyHelpers.ts | 2 +- .../lsp-smart-contracts/tests/Reentrancy/Reentrancy.test.ts | 2 +- .../tests/Reentrancy/ReentrancyInit.test.ts | 2 +- packages/lsp-smart-contracts/tests/utils/context.ts | 6 +----- packages/lsp-smart-contracts/tests/utils/fixtures.ts | 2 +- packages/lsp-smart-contracts/tests/utils/helpers.ts | 2 +- 97 files changed, 98 insertions(+), 128 deletions(-) diff --git a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.behaviour.ts index e6b2f4a11..a5c3b3edb 100644 --- a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.behaviour.ts @@ -2,7 +2,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { LSP11BasicSocialRecovery, LSP6KeyManager, UniversalProfile } from '../../../../types'; +import { LSP11BasicSocialRecovery, LSP6KeyManager, UniversalProfile } from '../../types'; import { ERC725YDataKeys, INTERFACE_IDS } from '../../constants'; import { ALL_PERMISSIONS } from '@lukso/lsp6-contracts'; diff --git a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.test.ts b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.test.ts index 6d6795988..728d6ede4 100644 --- a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.test.ts @@ -1,8 +1,4 @@ -import { - LSP11BasicSocialRecovery__factory, - LSP6KeyManager, - UniversalProfile, -} from '../../../../types'; +import { LSP11BasicSocialRecovery__factory, LSP6KeyManager, UniversalProfile } from '../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts index 2c56f6243..686f84632 100644 --- a/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts @@ -5,7 +5,7 @@ import { UniversalProfile, LSP11BasicSocialRecoveryInit__factory, LSP11BasicSocialRecovery, -} from '../../../../types'; +} from '../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP14Ownable2Step/LSP14Ownable2Step.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP14Ownable2Step/LSP14Ownable2Step.behaviour.ts index 8684c67e3..47c2f3fa4 100644 --- a/packages/lsp-smart-contracts/tests/LSP14Ownable2Step/LSP14Ownable2Step.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP14Ownable2Step/LSP14Ownable2Step.behaviour.ts @@ -6,7 +6,7 @@ import { LSP9Vault, UPWithInstantAcceptOwnership__factory, UPWithInstantAcceptOwnership, -} from '../../../../types'; +} from '../../types'; // constants import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; diff --git a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.behaviour.ts index c38c45a84..d748737d5 100644 --- a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.behaviour.ts @@ -27,7 +27,7 @@ import { RequireCallbackToken__factory, RevertFallbackExtension, RevertFallbackExtension__factory, -} from '../../../../types'; +} from '../../types'; // helpers import { abiCoder, provider } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.test.ts b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.test.ts index a2396e952..d109eeeb6 100644 --- a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17Extendable.test.ts @@ -8,7 +8,7 @@ import { EmitEventExtension__factory, RevertErrorsTestExtension, RevertErrorsTestExtension__factory, -} from '../../../../types'; +} from '../../types'; describe('LSP17Extendable - Basic Implementation', () => { let accounts; diff --git a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17ExtendableTokens.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17ExtendableTokens.behaviour.ts index 29f4268d0..d5f2511bc 100644 --- a/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17ExtendableTokens.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP17ContractExtension/LSP17ExtendableTokens.behaviour.ts @@ -22,7 +22,7 @@ import { NameExtension, AgeExtension__factory, AgeExtension, -} from '../../../../types'; +} from '../../types'; // helpers import { abiCoder, provider } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP17Extensions/Extension4337/4337.test.ts b/packages/lsp-smart-contracts/tests/LSP17Extensions/Extension4337/4337.test.ts index fdf4fefd2..b4b5113e9 100644 --- a/packages/lsp-smart-contracts/tests/LSP17Extensions/Extension4337/4337.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP17Extensions/Extension4337/4337.test.ts @@ -10,7 +10,7 @@ import { UniversalProfile, UniversalProfile__factory, Extension4337__factory, -} from '../../../../../types'; +} from '../../../types'; import { deployEntryPoint, getBalance, isDeployed } from '../helpers/utils'; import { ERC725YDataKeys } from '../../../constants'; import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; diff --git a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiver.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiver.behaviour.ts index 711e0e7ff..db741b94f 100644 --- a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiver.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiver.behaviour.ts @@ -8,7 +8,7 @@ import { UniversalReceiverTester, UniversalReceiverDelegateRevert__factory, UniversalReceiverDelegateRevert, -} from '../../../../types'; +} from '../../types'; // helpers import { abiCoder, LSP1_HOOK_PLACEHOLDER } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.behaviour.ts index 93cf727de..6a643edfc 100644 --- a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.behaviour.ts @@ -24,7 +24,7 @@ import { LSP7MintWhenDeployed, GenericExecutorWithBalanceOfFunction, GenericExecutorWithBalanceOfFunction__factory, -} from '../../../../types'; +} from '../../types'; // helpers import { ARRAY_LENGTH, LSP1_HOOK_PLACEHOLDER, abiCoder } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.test.ts b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.test.ts index f0a51ecb2..5ae070d8f 100644 --- a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateUP.test.ts @@ -1,9 +1,5 @@ import { ethers } from 'hardhat'; -import { - LSP1UniversalReceiverDelegateUP, - UniversalProfile, - LSP6KeyManager, -} from '../../../../types'; +import { LSP1UniversalReceiverDelegateUP, UniversalProfile, LSP6KeyManager } from '../../types'; import { setupProfileWithKeyManagerWithURD } from '../utils/fixtures'; diff --git a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.behaviour.ts index 1c0c50a19..63183f41c 100644 --- a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.behaviour.ts @@ -14,7 +14,7 @@ import { LSP7MintWhenDeployed__factory, LSP7MintWhenDeployed, LSP1UniversalReceiverDelegateVault__factory, -} from '../../../../types'; +} from '../../types'; import { ARRAY_LENGTH, LSP1_HOOK_PLACEHOLDER, abiCoder } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.test.ts b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.test.ts index c80860e76..aae85aa2a 100644 --- a/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP1UniversalReceiver/LSP1UniversalReceiverDelegateVault.test.ts @@ -5,7 +5,7 @@ import { LSP1UniversalReceiverDelegateVault__factory, UniversalProfile__factory, LSP9Vault__factory, -} from '../../../../types'; +} from '../../types'; import { LSP1TestContext, diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20CallVerification.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20CallVerification.behaviour.ts index 260d7062a..956136121 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20CallVerification.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20CallVerification.behaviour.ts @@ -27,7 +27,7 @@ import { BothCallReturnSuccessValue__factory, SecondCallReturnExpandedSuccessValue, SecondCallReturnExpandedSuccessValue__factory, -} from '../../../../types'; +} from '../../types'; // constants import { LSP1_TYPE_IDS } from '../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20WithLSP14.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20WithLSP14.behaviour.ts index d51e805a8..f628d8e3c 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20WithLSP14.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP20WithLSP14.behaviour.ts @@ -6,7 +6,7 @@ import { UPWithInstantAcceptOwnership__factory, UPWithInstantAcceptOwnership, LSP0ERC725Account, -} from '../../../../types'; +} from '../../types'; // constants import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; 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 d6c8a6346..ae922613f 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 6a527b7b3..0e99cbf28 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 30a407354..f11605ed1 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 ed76ce8a6..4e9e71387 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 a42bd3630..549c9b124 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 031dbf2b9..eac90fb33 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 1e11fa55d..0d88a54b3 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 b0083ad60..c937c9f22 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 8ffd2d68d..63fd4a5fa 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 060e6a1cc..3f5eec98d 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 54f4ca443..cc2d96d5e 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 9de0e62be..b518c2690 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/LSP20WithLSP6.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts index fddbe9bfe..96de6a820 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; -import { UniversalProfile__factory, LSP6KeyManager__factory } from '../../../../../types'; +import { UniversalProfile__factory, LSP6KeyManager__factory } from '../../../types'; import { LSP6TestContext } from '../../utils/context'; diff --git a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts index 13b81e28d..e91a5aae3 100644 --- a/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts @@ -5,7 +5,7 @@ import { UniversalProfileInit__factory, LSP6KeyManagerInit__factory, LSP6KeyManagerInit, -} from '../../../../../types'; +} from '../../../types'; import { LSP6TestContext } from '../../utils/context'; import { deployProxy } from '../../utils/fixtures'; 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 836a09dd0..89b252508 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/LSP23LinkedContractsDeployment/LSP23LinkedContractsDeployment.test.ts b/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/LSP23LinkedContractsDeployment.test.ts index 5ed288d50..9c2089ce3 100644 --- a/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/LSP23LinkedContractsDeployment.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/LSP23LinkedContractsDeployment.test.ts @@ -6,7 +6,7 @@ import { LSP6KeyManager, UniversalProfile, ILSP23LinkedContractsFactory, -} from '../../../../types'; +} from '../../types'; import { ERC725YDataKeys } from '../../constants'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/helpers.ts b/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/helpers.ts index 125129fca..40192d1b3 100644 --- a/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/helpers.ts +++ b/packages/lsp-smart-contracts/tests/LSP23LinkedContractsDeployment/helpers.ts @@ -1,13 +1,13 @@ import { ethers } from 'hardhat'; import { BytesLike } from 'ethers'; -import { PromiseOrValue } from '../../../../types/common'; +import { PromiseOrValue } from '../../types/common'; import { UniversalProfileInit__factory, LSP6KeyManagerInit__factory, LSP23LinkedContractsFactory__factory, UniversalProfileInitPostDeploymentModule__factory, UniversalProfilePostDeploymentModule__factory, -} from '../../../../types'; +} from '../../types'; export async function calculateProxiesAddresses( salt: PromiseOrValue, diff --git a/packages/lsp-smart-contracts/tests/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.behaviour.ts index 60af4ed9f..91c752f8d 100644 --- a/packages/lsp-smart-contracts/tests/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadata.behaviour.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; // LSP7 + LSP8 -import { LSP7DigitalAsset, LSP8IdentifiableDigitalAsset, LSP9Vault } from '../../../../types'; +import { LSP7DigitalAsset, LSP8IdentifiableDigitalAsset, LSP9Vault } from '../../types'; // constants import { ERC725YDataKeys } from '../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Admin/PermissionChangeOwner.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Admin/PermissionChangeOwner.test.ts index 8fc5e5226..55413cb7c 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Admin/PermissionChangeOwner.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Admin/PermissionChangeOwner.test.ts @@ -9,7 +9,7 @@ import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; import { PERMISSIONS } from '@lukso/lsp6-contracts'; import { LSP25_VERSION } from '@lukso/lsp25-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/LSP6KeyManager/Interactions/AllowedAddresses.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedAddresses.test.ts index 394e8bb78..26b608954 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedAddresses.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/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/LSP6KeyManager/Interactions/AllowedFunctions.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedFunctions.test.ts index 127f91543..ce5343853 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedFunctions.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedFunctions.test.ts @@ -10,7 +10,7 @@ import { LSP8Mintable__factory, TargetContract, TargetContract__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedStandards.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedStandards.test.ts index 493f9f45b..46f2db5f6 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedStandards.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/AllowedStandards.test.ts @@ -11,7 +11,7 @@ import { TargetContract__factory, UniversalProfile__factory, UniversalProfile, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/BatchExecute.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/BatchExecute.test.ts index 17c2c6a5e..6e693748a 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/BatchExecute.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/BatchExecute.test.ts @@ -11,11 +11,7 @@ import { ALL_PERMISSIONS } from '@lukso/lsp6-contracts'; import { LSP6TestContext } from '../../utils/context'; import { setupKeyManager } from '../../utils/fixtures'; import { abiCoder, provider } from '../../utils/helpers'; -import { - LSP7Mintable, - LSP7MintableInit__factory, - LSP7Mintable__factory, -} from '../../../../../types'; +import { LSP7Mintable, LSP7MintableInit__factory, LSP7Mintable__factory } from '../../../types'; export const shouldBehaveLikeBatchExecute = ( buildContext: (initialFunding?: bigint) => Promise, diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/InvalidExecutePayloads.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/InvalidExecutePayloads.test.ts index 221532920..3686e29b0 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/InvalidExecutePayloads.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/InvalidExecutePayloads.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/LSP6KeyManager/Interactions/PermissionCall.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionCall.test.ts index 0338f78a0..bd2f0ef6a 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionCall.test.ts @@ -10,7 +10,7 @@ import { FallbackRevert__factory, TargetContract, TargetContract__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDelegateCall.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDelegateCall.test.ts index cfbb77f58..9a57ef4e7 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDelegateCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/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/LSP6KeyManager/Interactions/PermissionDeploy.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDeploy.test.ts index b6d4d409b..7957ee2b5 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDeploy.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionDeploy.test.ts @@ -4,7 +4,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { calculateCreate2 } from 'eth-create2-calculator'; import { EIP191Signer } from '@lukso/eip191-signer.js'; -import { TargetContract__factory, UniversalProfile__factory } from '../../../../../types'; +import { TargetContract__factory, UniversalProfile__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionStaticCall.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionStaticCall.test.ts index e737f4a74..17c9785f1 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionStaticCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionStaticCall.test.ts @@ -9,7 +9,7 @@ import { OnERC721ReceivedExtension, SignatureValidator__factory, OnERC721ReceivedExtension__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionTransferValue.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionTransferValue.test.ts index cc104a628..04e4cabad 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionTransferValue.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Interactions/PermissionTransferValue.test.ts @@ -17,7 +17,7 @@ import { LSP7Mintable__factory, FallbackContract, FallbackContract__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6ControlledToken.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6ControlledToken.test.ts index a10d59eb8..aa1f1bb5b 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6ControlledToken.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6ControlledToken.test.ts @@ -11,7 +11,7 @@ import { LSP7Mintable, LSP7Mintable__factory, LSP8Mintable, -} from '../../../../types'; +} from '../../types'; import { ERC725YDataKeys } from '../../constants'; import { ERC1271_VALUES } from '@lukso/lsp0-contracts'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManager.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManager.test.ts index c1355d086..261fba951 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManager.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManager.test.ts @@ -4,7 +4,7 @@ import { KeyManagerInternalTester__factory, UniversalProfile__factory, LSP6KeyManager__factory, -} from '../../../../types'; +} from '../../types'; import { LSP6TestContext } from '../utils/context'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManagerInit.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManagerInit.test.ts index 2bffdefbf..4ff2a9285 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManagerInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/LSP6KeyManagerInit.test.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { ethers } from 'hardhat'; import { LSP6TestContext } from '../utils/context'; -import { LSP6KeyManagerInit__factory, UniversalProfileInit__factory } from '../../../../types'; +import { LSP6KeyManagerInit__factory, UniversalProfileInit__factory } from '../../types'; import { deployProxy } from '../utils/fixtures'; import { shouldBehaveLikeLSP6, shouldInitializeLikeLSP6 } from './LSP6KeyManager.behaviour'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts index b160dfcf4..357f471a2 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/ExecuteRelayCall.test.ts @@ -9,7 +9,7 @@ import { TargetContract__factory, LSP7Mintable, LSP7Mintable__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/MultiChannelNonce.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/MultiChannelNonce.test.ts index 6715c796b..6513383a7 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/MultiChannelNonce.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/Relay/MultiChannelNonce.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { EIP191Signer } from '@lukso/eip191-signer.js'; -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/LSP6KeyManager/SetData/PermissionSetData.test.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/SetData/PermissionSetData.test.ts index 2ee1f0e52..5cf19926e 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/SetData/PermissionSetData.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/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 { Executor, Executor__factory } from '../../../../../types'; +import { Executor, Executor__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP6KeyManager/internals/AllowedCalls.internal.ts b/packages/lsp-smart-contracts/tests/LSP6KeyManager/internals/AllowedCalls.internal.ts index 87a27449d..ba5b10a9c 100644 --- a/packages/lsp-smart-contracts/tests/LSP6KeyManager/internals/AllowedCalls.internal.ts +++ b/packages/lsp-smart-contracts/tests/LSP6KeyManager/internals/AllowedCalls.internal.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/LSP7DigitalAsset/LSP7CappedSupply.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7CappedSupply.behaviour.ts index e2891227c..5a7d88f38 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7CappedSupply.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7CappedSupply.behaviour.ts @@ -1,7 +1,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP7CappedSupplyTester } from '../../../../types'; +import { LSP7CappedSupplyTester } from '../../types'; export type LSP7CappedSupplyTestAccounts = { owner: SignerWithAddress; diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts index c4ec0b89b..14ec71cbf 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7DigitalAsset.behaviour.ts @@ -15,7 +15,7 @@ import { TokenReceiverWithLSP1Revert, TokenReceiverWithLSP1Revert__factory, LSP7DigitalAsset, -} from '../../../../types'; +} from '../../types'; // constants import { ERC725YDataKeys, INTERFACE_IDS, LSP1_TYPE_IDS, SupportedStandards } from '../../constants'; diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7Mintable.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7Mintable.behaviour.ts index 29c1505d5..e465f422e 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7Mintable.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/LSP7Mintable.behaviour.ts @@ -8,7 +8,7 @@ import { UniversalProfileInit, LSP6KeyManagerInit, UniversalReceiverDelegateTokenReentrant, -} from '../../../../types'; +} from '../../types'; import { setupProfileWithKeyManagerWithURD } from '../utils/fixtures'; diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7CappedSupplyInit.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7CappedSupplyInit.test.ts index f0dbe84e2..ce125fee2 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7CappedSupplyInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7CappedSupplyInit.test.ts @@ -1,10 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { - LSP7CappedSupplyInitTester, - LSP7CappedSupplyInitTester__factory, -} from '../../../../../types'; +import { LSP7CappedSupplyInitTester, LSP7CappedSupplyInitTester__factory } from '../../../types'; import { shouldInitializeLikeLSP7 } from '../LSP7DigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7DigitalAssetInit.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7DigitalAssetInit.test.ts index 630c714a7..321a785c9 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7DigitalAssetInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7DigitalAssetInit.test.ts @@ -1,7 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP7InitTester__factory, LSP7DigitalAsset, LSP7InitTester } from '../../../../../types'; +import { LSP7InitTester__factory, LSP7DigitalAsset, LSP7InitTester } from '../../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts index 2af7cffa3..269bd29b5 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP7MintableInit, LSP7MintableInit__factory } from '../../../../../types'; +import { LSP7MintableInit, LSP7MintableInit__factory } from '../../../types'; import { shouldInitializeLikeLSP7 } from '../LSP7DigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7CappedSupply.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7CappedSupply.test.ts index ed7cbdf9a..b0008a6de 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7CappedSupply.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7CappedSupply.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; -import { LSP7CappedSupplyTester__factory } from '../../../../../types'; +import { LSP7CappedSupplyTester__factory } from '../../../types'; import { shouldInitializeLikeLSP7 } from '../LSP7DigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7DigitalAsset.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7DigitalAsset.test.ts index 5f28850cc..efb1658b3 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7DigitalAsset.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7DigitalAsset.test.ts @@ -1,7 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP7Tester__factory, LSP7DigitalAsset } from '../../../../../types'; +import { LSP7Tester__factory, LSP7DigitalAsset } from '../../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7Mintable.test.ts b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7Mintable.test.ts index 8c984f30c..aef2799e2 100644 --- a/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7Mintable.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP7DigitalAsset/standard/LSP7Mintable.test.ts @@ -1,5 +1,5 @@ import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts'; -import { LSP7Mintable, LSP7Mintable__factory } from '../../../../../types'; +import { LSP7Mintable, LSP7Mintable__factory } from '../../../types'; import { shouldInitializeLikeLSP7 } from '../LSP7DigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8CappedSupply.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8CappedSupply.behaviour.ts index e78a1feed..b450968d4 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8CappedSupply.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8CappedSupply.behaviour.ts @@ -1,7 +1,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP8CappedSupplyTester } from '../../../../types'; +import { LSP8CappedSupplyTester } from '../../types'; import type { BytesLike } from 'ethers'; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Enumerable.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Enumerable.behaviour.ts index 8020e0550..d4d38fb61 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Enumerable.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Enumerable.behaviour.ts @@ -2,7 +2,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP8EnumerableTester } from '../../../../types'; +import { LSP8EnumerableTester } from '../../types'; export type LSP8EnumerableTestAccounts = { owner: SignerWithAddress; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.behaviour.ts index c994fb4dd..413103ba5 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAsset.behaviour.ts @@ -15,7 +15,7 @@ import { UniversalReceiverDelegateRevert__factory, TokenReceiverWithLSP1Revert, TokenReceiverWithLSP1Revert__factory, -} from '../../../../types'; +} from '../../types'; // helpers import { tokenIdAsBytes32 } from '../utils/tokens'; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Mintable.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Mintable.behaviour.ts index 1af3e4ab2..b1477a821 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Mintable.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/LSP8Mintable.behaviour.ts @@ -7,7 +7,7 @@ import { LSP6KeyManager, UniversalReceiverDelegateTokenReentrant__factory, LSP8Mintable, -} from '../../../../types'; +} from '../../types'; import { setupProfileWithKeyManagerWithURD } from '../utils/fixtures'; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8BurnableInit.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8BurnableInit.test.ts index b994333df..334b57121 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8BurnableInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8BurnableInit.test.ts @@ -2,7 +2,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { LSP8BurnableInitTester, LSP8BurnableInitTester__factory } from '../../../../../types'; +import { LSP8BurnableInitTester, LSP8BurnableInitTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8CappedSupplyInit.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8CappedSupplyInit.test.ts index 7c0f6cbde..0e9a4787b 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8CappedSupplyInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8CappedSupplyInit.test.ts @@ -1,9 +1,6 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { - LSP8CappedSupplyInitTester, - LSP8CappedSupplyInitTester__factory, -} from '../../../../../types'; +import { LSP8CappedSupplyInitTester, LSP8CappedSupplyInitTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8EnumerableInit.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8EnumerableInit.test.ts index 434eb121c..0f17109aa 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8EnumerableInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8EnumerableInit.test.ts @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { LSP8EnumerableInitTester, LSP8EnumerableInitTester__factory } from '../../../../../types'; +import { LSP8EnumerableInitTester, LSP8EnumerableInitTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8IdentifiableDigitalAssetInit.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8IdentifiableDigitalAssetInit.test.ts index 8df3b62ee..a593d8fc3 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8IdentifiableDigitalAssetInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8IdentifiableDigitalAssetInit.test.ts @@ -1,11 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { - LSP8InitTester__factory, - LSP8IdentifiableDigitalAsset, - LSP8Tester, -} from '../../../../../types'; +import { LSP8InitTester__factory, LSP8IdentifiableDigitalAsset, LSP8Tester } from '../../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8MintableInit.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8MintableInit.test.ts index 9eb3bf32f..101701d7f 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8MintableInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/proxy/LSP8MintableInit.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP8MintableInit, LSP8MintableInit__factory } from '../../../../../types'; +import { LSP8MintableInit, LSP8MintableInit__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Burnable.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Burnable.test.ts index 7ebdeb6e8..7e0c8f1b2 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Burnable.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Burnable.test.ts @@ -1,7 +1,7 @@ import { ethers } from 'hardhat'; import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; -import { LSP8BurnableTester, LSP8BurnableTester__factory } from '../../../../../types'; +import { LSP8BurnableTester, LSP8BurnableTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts'; diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8CappedSupply.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8CappedSupply.test.ts index 438ccf9d1..687244673 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8CappedSupply.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8CappedSupply.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; -import { LSP8CappedSupplyTester__factory } from '../../../../../types'; +import { LSP8CappedSupplyTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Enumerable.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Enumerable.test.ts index 213d06c97..5147b873a 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Enumerable.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Enumerable.test.ts @@ -1,4 +1,4 @@ -import { LSP8EnumerableTester, LSP8EnumerableTester__factory } from '../../../../../types'; +import { LSP8EnumerableTester, LSP8EnumerableTester__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8IdentifiableDigitalAsset.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8IdentifiableDigitalAsset.test.ts index 261180551..7946782ce 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8IdentifiableDigitalAsset.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8IdentifiableDigitalAsset.test.ts @@ -1,7 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { LSP8Tester__factory, LSP8IdentifiableDigitalAsset } from '../../../../../types'; +import { LSP8Tester__factory, LSP8IdentifiableDigitalAsset } from '../../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Mintable.test.ts b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Mintable.test.ts index 0b3be89ce..656a72d24 100644 --- a/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Mintable.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP8IdentifiableDigitalAsset/standard/LSP8Mintable.test.ts @@ -1,6 +1,6 @@ import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts'; import { LSP8_TOKEN_ID_FORMAT } from '@lukso/lsp8-contracts'; -import { LSP8Mintable, LSP8Mintable__factory } from '../../../../../types'; +import { LSP8Mintable, LSP8Mintable__factory } from '../../../types'; import { shouldInitializeLikeLSP8 } from '../LSP8IdentifiableDigitalAsset.behaviour'; import { diff --git a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.behaviour.ts b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.behaviour.ts index deca783de..5959a7f6c 100644 --- a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.behaviour.ts +++ b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.behaviour.ts @@ -11,7 +11,7 @@ import { UniversalReceiverDelegateVaultReentrantB__factory, UniversalReceiverDelegateVaultMalicious__factory, LSP9Vault, -} from '../../../../types'; +} from '../../types'; // helpers import { ARRAY_LENGTH, abiCoder, combineAllowedCalls } from '../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.test.ts b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.test.ts index 0189281bf..a6f917e32 100644 --- a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9Vault.test.ts @@ -6,7 +6,7 @@ import { shouldBehaveLikeLSP14, } from '../LSP14Ownable2Step/LSP14Ownable2Step.behaviour'; -import { UniversalProfile, LSP6KeyManager, LSP9Vault__factory } from '../../../../types'; +import { UniversalProfile, LSP6KeyManager, LSP9Vault__factory } from '../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9VaultInit.test.ts b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9VaultInit.test.ts index 7e1436a81..278ef4091 100644 --- a/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9VaultInit.test.ts +++ b/packages/lsp-smart-contracts/tests/LSP9Vault/LSP9VaultInit.test.ts @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { shouldBehaveLikeLSP14 } from '../LSP14Ownable2Step/LSP14Ownable2Step.behaviour'; -import { UniversalProfile, LSP6KeyManager, LSP9VaultInit__factory } from '../../../../types'; +import { UniversalProfile, LSP6KeyManager, LSP9VaultInit__factory } from '../../types'; import { getNamedAccounts, diff --git a/packages/lsp-smart-contracts/tests/Mocks/ABIEncoder.test.ts b/packages/lsp-smart-contracts/tests/Mocks/ABIEncoder.test.ts index 3880c310b..d57b1d76a 100644 --- a/packages/lsp-smart-contracts/tests/Mocks/ABIEncoder.test.ts +++ b/packages/lsp-smart-contracts/tests/Mocks/ABIEncoder.test.ts @@ -1,7 +1,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers'; import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { ABIEncoder, ABIEncoder__factory } from '../../../../types'; +import { ABIEncoder, ABIEncoder__factory } from '../../types'; describe('ABI Encoder Contract', () => { let accounts: SignerWithAddress[]; diff --git a/packages/lsp-smart-contracts/tests/Mocks/ERC165Interfaces.test.ts b/packages/lsp-smart-contracts/tests/Mocks/ERC165Interfaces.test.ts index 7c1a74eeb..72d10f1d7 100644 --- a/packages/lsp-smart-contracts/tests/Mocks/ERC165Interfaces.test.ts +++ b/packages/lsp-smart-contracts/tests/Mocks/ERC165Interfaces.test.ts @@ -6,7 +6,7 @@ import { CalculateLSPInterfaces__factory, CalculateERCInterfaces, CalculateERCInterfaces__factory, -} from '../../../../types'; +} from '../../types'; // utils import { INTERFACE_IDS } from '../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Mocks/KeyManagerExecutionCosts.test.ts b/packages/lsp-smart-contracts/tests/Mocks/KeyManagerExecutionCosts.test.ts index 6077d66ad..c97664dd1 100644 --- a/packages/lsp-smart-contracts/tests/Mocks/KeyManagerExecutionCosts.test.ts +++ b/packages/lsp-smart-contracts/tests/Mocks/KeyManagerExecutionCosts.test.ts @@ -1,11 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; -import { - UniversalProfile__factory, - LSP6KeyManager__factory, - UniversalProfile, -} from '../../../../types'; +import { UniversalProfile__factory, LSP6KeyManager__factory, UniversalProfile } from '../../types'; import { ERC725YDataKeys, INTERFACE_IDS } from '../../constants'; import { OPERATION_TYPES } from '@lukso/lsp0-contracts'; import { ALL_PERMISSIONS, PERMISSIONS, CALLTYPE } from '@lukso/lsp6-contracts'; diff --git a/packages/lsp-smart-contracts/tests/Mocks/LSP1TypeIDs.test.ts b/packages/lsp-smart-contracts/tests/Mocks/LSP1TypeIDs.test.ts index 71e9ac75f..db54ed79a 100644 --- a/packages/lsp-smart-contracts/tests/Mocks/LSP1TypeIDs.test.ts +++ b/packages/lsp-smart-contracts/tests/Mocks/LSP1TypeIDs.test.ts @@ -1,7 +1,7 @@ import { ethers } from 'hardhat'; import { expect } from 'chai'; import { hexlify, keccak256, toUtf8Bytes } from 'ethers'; -import { LSP1TypeIDsTester, LSP1TypeIDsTester__factory } from '../../../../types'; +import { LSP1TypeIDsTester, LSP1TypeIDsTester__factory } from '../../types'; import { LSP1_TYPE_IDS } from '../../constants'; describe('calculate LSP1 Type IDs', () => { diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XBatchExecuteToERC725XExecute.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XBatchExecuteToERC725XExecute.test.ts index 856239b10..095fc77a4 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XBatchExecuteToERC725XExecute.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XBatchExecuteToERC725XExecute.test.ts @@ -26,7 +26,7 @@ import { loadTestCase, } from './reentrancyHelpers'; -import { LSP20ReentrantContract__factory } from '../../../../../types'; +import { LSP20ReentrantContract__factory } from '../../../types'; import { Interface } from 'ethers'; import { provider } from '../../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XBatchExecute.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XBatchExecute.test.ts index 84ab2c653..ae749dd20 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XBatchExecute.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XBatchExecute.test.ts @@ -26,7 +26,7 @@ import { loadTestCase, } from './reentrancyHelpers'; -import { LSP20ReentrantContractBatch__factory } from '../../../../../types'; +import { LSP20ReentrantContractBatch__factory } from '../../../types'; import { Interface } from 'ethers'; import { provider } from '../../utils/helpers'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts index 605599f81..1e6f228a2 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts @@ -25,7 +25,7 @@ import { // Functions loadTestCase, } from './reentrancyHelpers'; -import { LSP20ReentrantContract__factory } from '../../../../../types'; +import { LSP20ReentrantContract__factory } from '../../../types'; import { provider } from '../../utils/helpers'; export const testERC725XExecuteToERC725XExecute = ( diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6BatchExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6BatchExecuteRelayCall.test.ts index 9fa0e958b..f2a07018b 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6BatchExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6BatchExecuteRelayCall.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; // types import { BytesLike } from 'ethers'; -import { SingleReentrancyRelayer__factory } from '../../../../../types'; +import { SingleReentrancyRelayer__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6ExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6ExecuteRelayCall.test.ts index 862b116be..56688f4f6 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6ExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/ERC725XExecuteToLSP6ExecuteRelayCall.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; // types import { BytesLike } from 'ethers'; -import { SingleReentrancyRelayer__factory } from '../../../../../types'; +import { SingleReentrancyRelayer__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/reentrancyHelpers.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/reentrancyHelpers.ts index d91680810..b09c0ceaf 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/reentrancyHelpers.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP20/reentrancyHelpers.ts @@ -13,7 +13,7 @@ import { SingleReentrancyRelayer__factory, BatchReentrancyRelayer__factory, UniversalProfile__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts index afbb99745..2aafc0ec2 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts @@ -37,7 +37,7 @@ import { SecondToCallLSP6, FirstToCallLSP6, UniversalReceiverDelegateDataUpdater__factory, -} from '../../../../../types'; +} from '../../../types'; import { setupKeyManager } from '../../utils/fixtures'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteRelayCallToSingleExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteRelayCallToSingleExecuteRelayCall.test.ts index d82af4321..73f8a3f64 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteRelayCallToSingleExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteRelayCallToSingleExecuteRelayCall.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; // types import { BytesLike } from 'ethers'; -import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../../../types'; +import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToBatchExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToBatchExecuteRelayCall.test.ts index 0fcc1025b..993208a1a 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToBatchExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToBatchExecuteRelayCall.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; // types import { BytesLike } from 'ethers'; -import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../../../types'; +import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToSingleExecuteRelayCall.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToSingleExecuteRelayCall.test.ts index c4cbeb5ea..e00f21456 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToSingleExecuteRelayCall.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/SingleExecuteToSingleExecuteRelayCall.test.ts @@ -3,7 +3,7 @@ import { ethers } from 'hardhat'; // types import { BytesLike } from 'ethers'; -import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../../../types'; +import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/reentrancyHelpers.ts b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/reentrancyHelpers.ts index 4bbc74851..ed2de317e 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/reentrancyHelpers.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/LSP6/reentrancyHelpers.ts @@ -13,7 +13,7 @@ import { SingleReentrancyRelayer__factory, BatchReentrancyRelayer__factory, UniversalProfile__factory, -} from '../../../../../types'; +} from '../../../types'; // constants import { ERC725YDataKeys } from '../../../constants'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/Reentrancy.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/Reentrancy.test.ts index d63c99c79..ad88f6506 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/Reentrancy.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/Reentrancy.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; -import { UniversalProfile__factory, LSP6KeyManager__factory } from '../../../../types'; +import { UniversalProfile__factory, LSP6KeyManager__factory } from '../../types'; import { LSP6TestContext } from '../utils/context'; diff --git a/packages/lsp-smart-contracts/tests/Reentrancy/ReentrancyInit.test.ts b/packages/lsp-smart-contracts/tests/Reentrancy/ReentrancyInit.test.ts index 0dbd9d764..584a043ca 100644 --- a/packages/lsp-smart-contracts/tests/Reentrancy/ReentrancyInit.test.ts +++ b/packages/lsp-smart-contracts/tests/Reentrancy/ReentrancyInit.test.ts @@ -1,6 +1,6 @@ import { ethers } from 'hardhat'; -import { UniversalProfileInit__factory, LSP6KeyManagerInit__factory } from '../../../../types'; +import { UniversalProfileInit__factory, LSP6KeyManagerInit__factory } from '../../types'; import { deployProxy } from '../utils/fixtures'; import { LSP6TestContext } from '../utils/context'; diff --git a/packages/lsp-smart-contracts/tests/utils/context.ts b/packages/lsp-smart-contracts/tests/utils/context.ts index cba5b0867..0c561184c 100644 --- a/packages/lsp-smart-contracts/tests/utils/context.ts +++ b/packages/lsp-smart-contracts/tests/utils/context.ts @@ -1,9 +1,5 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers.js'; -import { - KeyManagerInternalTester, - LSP6KeyManager, - UniversalProfile, -} from '../../../../types/index.js'; +import { KeyManagerInternalTester, LSP6KeyManager, UniversalProfile } from '../../types/index.js'; export type LSP6TestContext = { accounts: SignerWithAddress[]; diff --git a/packages/lsp-smart-contracts/tests/utils/fixtures.ts b/packages/lsp-smart-contracts/tests/utils/fixtures.ts index 9943e3e13..bd3cf2f05 100644 --- a/packages/lsp-smart-contracts/tests/utils/fixtures.ts +++ b/packages/lsp-smart-contracts/tests/utils/fixtures.ts @@ -6,7 +6,7 @@ import { LSP1UniversalReceiverDelegateUP__factory, LSP6KeyManager__factory, UniversalProfile__factory, -} from '../../../../types'; +} from '../../types'; import { ERC725YDataKeys } from '../../constants'; import { PERMISSIONS, ALL_PERMISSIONS } from '@lukso/lsp6-contracts'; diff --git a/packages/lsp-smart-contracts/tests/utils/helpers.ts b/packages/lsp-smart-contracts/tests/utils/helpers.ts index a6bec2983..bdcbc3fc2 100644 --- a/packages/lsp-smart-contracts/tests/utils/helpers.ts +++ b/packages/lsp-smart-contracts/tests/utils/helpers.ts @@ -1,7 +1,7 @@ import { BytesLike } from 'ethers'; import hre from 'hardhat'; const { ethers } = hre; -import { LSP6KeyManager } from '../../../../types/index.js'; +import { LSP6KeyManager } from '../../types/index.js'; // constants import { LSP25_VERSION } from '@lukso/lsp25-contracts';