Skip to content

Commit

Permalink
chore: fix types imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed Feb 28, 2024
1 parent 5378c3a commit 44841fc
Show file tree
Hide file tree
Showing 97 changed files with 98 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
LSP11BasicSocialRecovery__factory,
LSP6KeyManager,
UniversalProfile,
} from '../../../../types';
import { LSP11BasicSocialRecovery__factory, LSP6KeyManager, UniversalProfile } from '../../types';

import {
getNamedAccounts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UniversalProfile,
LSP11BasicSocialRecoveryInit__factory,
LSP11BasicSocialRecovery,
} from '../../../../types';
} from '../../types';

import {
getNamedAccounts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
LSP9Vault,
UPWithInstantAcceptOwnership__factory,
UPWithInstantAcceptOwnership,
} from '../../../../types';
} from '../../types';

// constants
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
RequireCallbackToken__factory,
RevertFallbackExtension,
RevertFallbackExtension__factory,
} from '../../../../types';
} from '../../types';

// helpers
import { abiCoder, provider } from '../utils/helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
EmitEventExtension__factory,
RevertErrorsTestExtension,
RevertErrorsTestExtension__factory,
} from '../../../../types';
} from '../../types';

describe('LSP17Extendable - Basic Implementation', () => {
let accounts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
NameExtension,
AgeExtension__factory,
AgeExtension,
} from '../../../../types';
} from '../../types';

// helpers
import { abiCoder, provider } from '../utils/helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
UniversalReceiverTester,
UniversalReceiverDelegateRevert__factory,
UniversalReceiverDelegateRevert,
} from '../../../../types';
} from '../../types';

// helpers
import { abiCoder, LSP1_HOOK_PLACEHOLDER } from '../utils/helpers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
LSP7MintWhenDeployed,
GenericExecutorWithBalanceOfFunction,
GenericExecutorWithBalanceOfFunction__factory,
} from '../../../../types';
} from '../../types';

// helpers
import { ARRAY_LENGTH, LSP1_HOOK_PLACEHOLDER, abiCoder } from '../utils/helpers';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
LSP7MintWhenDeployed__factory,
LSP7MintWhenDeployed,
LSP1UniversalReceiverDelegateVault__factory,
} from '../../../../types';
} from '../../types';

import { ARRAY_LENGTH, LSP1_HOOK_PLACEHOLDER, abiCoder } from '../utils/helpers';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LSP1UniversalReceiverDelegateVault__factory,
UniversalProfile__factory,
LSP9Vault__factory,
} from '../../../../types';
} from '../../types';

import {
LSP1TestContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
BothCallReturnSuccessValue__factory,
SecondCallReturnExpandedSuccessValue,
SecondCallReturnExpandedSuccessValue__factory,
} from '../../../../types';
} from '../../types';

// constants
import { LSP1_TYPE_IDS } from '../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
UPWithInstantAcceptOwnership__factory,
UPWithInstantAcceptOwnership,
LSP0ERC725Account,
} from '../../../../types';
} from '../../types';

// constants
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
LSP7Mintable__factory,
LSP8Mintable,
LSP8Mintable__factory,
} from '../../../../../../types';
} from '../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
LSP7Mintable__factory,
UniversalProfile,
UniversalProfile__factory,
} from '../../../../../../types';
} from '../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
LSP7MintableInit,
LSP7MintableInit__factory,
LSP7Mintable__factory,
} from '../../../../../../types';
} from '../../types';

export const shouldBehaveLikeBatchExecute = (
buildContext: (initialFunding?: bigint) => Promise<LSP6TestContext>,
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
FallbackRevert__factory,
TargetContract,
TargetContract__factory,
} from '../../../../../../types';
} from '../../types';

// constants
import { ERC725YDataKeys } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
UniversalProfile,
FallbackContract__factory,
FallbackContract,
} from '../../../../../../types';
} from '../../types';

// constants
import { ERC725YDataKeys } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TargetContract,
TargetContract__factory,
UniversalReceiverDelegateDataUpdater__factory,
} from '../../../../../../types';
} from '../../types';

// constants
import { ERC725YDataKeys, LSP1_TYPE_IDS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UniversalProfileInit__factory,
LSP6KeyManagerInit__factory,
LSP6KeyManagerInit,
} from '../../../../../types';
} from '../../../types';

import { LSP6TestContext } from '../../utils/context';
import { deployProxy } from '../../utils/fixtures';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
LSP6KeyManager,
UniversalProfile,
ILSP23LinkedContractsFactory,
} from '../../../../types';
} from '../../types';

import { ERC725YDataKeys } from '../../constants';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -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<BytesLike>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
LSP8Mintable__factory,
TargetContract,
TargetContract__factory,
} from '../../../../../types';
} from '../../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
TargetContract__factory,
UniversalProfile__factory,
UniversalProfile,
} from '../../../../../types';
} from '../../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<LSP6TestContext>,
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
FallbackRevert__factory,
TargetContract,
TargetContract__factory,
} from '../../../../../types';
} from '../../../types';

// constants
import { ERC725YDataKeys } from '../../../constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
OnERC721ReceivedExtension,
SignatureValidator__factory,
OnERC721ReceivedExtension__factory,
} from '../../../../../types';
} from '../../../types';

// constants
import { ERC725YDataKeys } from '../../../constants';
Expand Down
Loading

0 comments on commit 44841fc

Please sign in to comment.