Skip to content

Commit

Permalink
chore: update incorrect Typechain paths
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Feb 19, 2024
1 parent 2d1e57f commit 8a73eb3
Show file tree
Hide file tree
Showing 27 changed files with 67 additions and 76 deletions.
2 changes: 1 addition & 1 deletion constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const INTERFACE_IDS = {
LSP17Extendable: INTERFACE_ID_LSP17Extendable,
LSP17Extension: INTERFACE_ID_LSP17Extension,
LSP20CallVerification: INTERFACE_ID_LSP20CallVerification,
LSP20CalVerifier: INTERFACE_ID_LSP20CallVerifier,
LSP20CallVerifier: INTERFACE_ID_LSP20CallVerifier,
LSP11BasicSocialRecovery: '0x049a28f1',
LSP25ExecuteRelayCall: INTERFACE_ID_LSP25,
};
Expand Down
3 changes: 3 additions & 0 deletions contracts/Imports.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ import {
import {
IPostDeploymentModule
} from "@lukso/lsp23-contracts/contracts/IPostDeploymentModule.sol";
import {
Extension4337
} from "@lukso/lsp17-contracts/contracts/Extension4337.sol";
25 changes: 9 additions & 16 deletions tests/Benchmark.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,21 @@ import { ethers } from 'hardhat';
import { expect } from 'chai';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';

import { LSP7Mintable, LSP7Mintable__factory } from '@lukso/lsp7-contracts/types';
import {
LSP7Mintable,
LSP7Mintable__factory,
LSP1UniversalReceiverDelegateUP,
LSP1UniversalReceiverDelegateUP__factory,
} from '../types';
import {
UniversalProfile,
UniversalProfile__factory,
} from '@lukso/universalprofile-contracts/types';
import { LSP6KeyManager__factory } from '@lukso/lsp6-contracts/types';

import { LSP8Mintable, LSP8Mintable__factory } from '@lukso/lsp8-contracts/types';
LSP6KeyManager__factory,
} from '../types';

import {
ERC725YDataKeys,
INTERFACE_IDS,
OPERATION_TYPES,
PERMISSIONS,
CALLTYPE,
LSP8_TOKEN_ID_FORMAT,
LSP4_TOKEN_TYPES,
} from '../constants';
import { ERC725YDataKeys, INTERFACE_IDS } from '../constants';
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';
import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts';
import { PERMISSIONS, CALLTYPE } from '@lukso/lsp6-contracts';
import { LSP8_TOKEN_ID_FORMAT } from '@lukso/lsp8-contracts';
import { LSP6TestContext } from './utils/context';
import { setupKeyManager, setupProfileWithKeyManagerWithURD } from './utils/fixtures';
import {
Expand Down
2 changes: 1 addition & 1 deletion tests/LSP17Extensions/Extension4337/4337.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
LSP6KeyManager__factory,
UniversalProfile,
UniversalProfile__factory,
Extension4337__factory,
} from '../../../types';
import { Extension4337__factory } from '@lukso/lsp17-contracts/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 @@ -2,17 +2,16 @@ import { expect } from 'chai';
import { ethers } from 'hardhat';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';

import { LSP7Mintable, LSP7Mintable__factory } from '@lukso/lsp7-contracts/types';
import {
SignatureValidator,
SignatureValidator__factory,
TargetContract,
TargetContract__factory,
} from '../../../../types';
import {
LSP7Mintable,
LSP7Mintable__factory,
UniversalProfile,
UniversalProfile__factory,
} from '@lukso/universalprofile-contracts/types';
} from '../../../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ import {
GraffitiEventExtension,
LSP7Mintable,
LSP7Mintable__factory,
} from '../../../../types';
import {
UniversalProfile__factory,
UniversalProfile,
} from '@lukso/universalprofile-contracts/types';
} from '../../../../types';

// constants
import { ERC725YDataKeys } from '../../../../constants';
Expand Down
11 changes: 8 additions & 3 deletions tests/LSP6KeyManager/Interactions/AllowedFunctions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ import { ethers } from 'hardhat';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { EIP191Signer } from '@lukso/eip191-signer.js';

import { LSP7Mintable, LSP7Mintable__factory } from '@lukso/lsp7-contracts/types';
import { LSP8Mintable, LSP8Mintable__factory } from '@lukso/lsp8-contracts/types';
import { TargetContract, TargetContract__factory } from '../../../types';
import {
LSP7Mintable,
LSP7Mintable__factory,
LSP8Mintable,
LSP8Mintable__factory,
TargetContract,
TargetContract__factory,
} from '../../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants';
Expand Down
7 changes: 3 additions & 4 deletions tests/LSP6KeyManager/Interactions/AllowedStandards.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ import { expect } from 'chai';
import { ethers } from 'hardhat';
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';

import { LSP7Mintable, LSP7Mintable__factory } from '@lukso/lsp7-contracts/types';
import {
LSP7Mintable,
LSP7Mintable__factory,
SignatureValidator,
SignatureValidator__factory,
TargetContract,
TargetContract__factory,
} from '../../../types';
import {
UniversalProfile__factory,
UniversalProfile,
} from '@lukso/universalprofile-contracts/types';
} from '../../../types';

// constants
import { ERC725YDataKeys, INTERFACE_IDS } from '../../../constants';
Expand Down
6 changes: 1 addition & 5 deletions tests/LSP6KeyManager/Interactions/BatchExecute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,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 '@lukso/lsp7-contracts/types';
import { LSP7Mintable, LSP7MintableInit__factory, LSP7Mintable__factory } from '../../../types';

export const shouldBehaveLikeBatchExecute = (
buildContext: (initialFunding?: BigNumber) => Promise<LSP6TestContext>,
Expand Down
3 changes: 1 addition & 2 deletions tests/LSP6KeyManager/Interactions/PermissionDeploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { calculateCreate2 } from 'eth-create2-calculator';
import { EIP191Signer } from '@lukso/eip191-signer.js';

import { TargetContract__factory } from '../../../types';
import { UniversalProfile__factory } from '@lukso/universalprofile-contracts/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 @@ -5,7 +5,6 @@ import { EIP191Signer } from '@lukso/eip191-signer.js';
import { BigNumber } from 'ethers';
import { FakeContract, smock } from '@defi-wonderland/smock';

import { LSP7Mintable, LSP7Mintable__factory } from '@lukso/lsp7-contracts/types';
import {
Executor,
Executor__factory,
Expand All @@ -14,11 +13,11 @@ import {
TargetPayableContract__factory,
GraffitiEventExtension__factory,
GraffitiEventExtension,
} from '../../../types';
import {
UniversalProfile__factory,
UniversalProfile,
} from '@lukso/universalprofile-contracts/types';
LSP7Mintable,
LSP7Mintable__factory,
} from '../../../types';

// constants
import { ERC725YDataKeys } from '../../../constants';
Expand Down
5 changes: 3 additions & 2 deletions tests/LSP7DigitalAsset/proxy/LSP7MintableInit.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ethers } from 'hardhat';
import { expect } from 'chai';
import { LSP7MintableInit, LSP7MintableInit__factory } from '@lukso/lsp7-contracts/types';
import { LSP7MintableInit, LSP7MintableInit__factory } from '../../../types';

import { shouldInitializeLikeLSP7 } from '../LSP7DigitalAsset.behaviour';
import {
Expand All @@ -11,7 +11,8 @@ import {
} from '../LSP7Mintable.behaviour';

import { deployProxy } from '../../utils/fixtures';
import { ERC725YDataKeys, LSP4_TOKEN_TYPES } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { LSP4_TOKEN_TYPES } from '@lukso/lsp4-contracts';

describe('LSP7MintableInit with proxy', () => {
const buildTestContext = async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';

// constants
import { ALL_PERMISSIONS, ERC725YDataKeys } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { ALL_PERMISSIONS } from '@lukso/lsp6-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';

// constants
import { ALL_PERMISSIONS, ERC725YDataKeys } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { ALL_PERMISSIONS } from '@lukso/lsp6-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
5 changes: 3 additions & 2 deletions tests/Reentrancy/LSP20/ERC725XExecuteToERC725XExecute.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';

// constants
import { ALL_PERMISSIONS, ERC725YDataKeys } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { ALL_PERMISSIONS } from '@lukso/lsp6-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';
import { SingleReentrancyRelayer__factory } from '../../../types';

// constants
import { ERC725YDataKeys, OPERATION_TYPES } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';
import { SingleReentrancyRelayer__factory } from '../../../types';

// constants
import { ERC725YDataKeys, OPERATION_TYPES } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
13 changes: 4 additions & 9 deletions tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ import { testSingleExecuteRelayCallToSingleExecuteRelayCall } from './SingleExec
import { testSingleExecuteToBatchExecute } from './SingleExecuteToBatchExecute.test';
import { testSingleExecuteToBatchExecuteRelayCall } from './SingleExecuteToBatchExecuteRelayCall.test';

import {
ALL_PERMISSIONS,
CALLTYPE,
ERC725YDataKeys,
LSP1_TYPE_IDS,
LSP25_VERSION,
OPERATION_TYPES,
PERMISSIONS,
} from '../../../constants';
import { ERC725YDataKeys, LSP1_TYPE_IDS } from '../../../constants';
import { OPERATION_TYPES } from '@lukso/lsp0-contracts';
import { ALL_PERMISSIONS, CALLTYPE, PERMISSIONS } from '@lukso/lsp6-contracts';
import { LSP25_VERSION } from '@lukso/lsp25-contracts';

import {
combineAllowedCalls,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber } from 'ethers';

// constants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';
import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types';

Expand Down
2 changes: 1 addition & 1 deletion tests/Reentrancy/LSP6/SingleExecuteToBatchExecute.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';

// constants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';
import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types';

Expand Down
2 changes: 1 addition & 1 deletion tests/Reentrancy/LSP6/SingleExecuteToSingleExecute.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';

// constants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';

//types
// types
import { BigNumber, BytesLike } from 'ethers';
import { SingleReentrancyRelayer__factory, UniversalProfile__factory } from '../../../types';

Expand Down
5 changes: 3 additions & 2 deletions tests/Reentrancy/LSP6/reentrancyHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ethers } from 'hardhat';

//types
// types
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { BigNumber, BytesLike, Wallet } from 'ethers';
import {
Expand All @@ -16,7 +16,8 @@ import {
} from '../../../types';

// constants
import { ERC725YDataKeys, ALL_PERMISSIONS, PERMISSIONS, CALLTYPE } from '../../../constants';
import { ERC725YDataKeys } from '../../../constants';
import { ALL_PERMISSIONS, PERMISSIONS, CALLTYPE } from '@lukso/lsp6-contracts';

// setup
import { LSP6TestContext } from '../../utils/context';
Expand Down
3 changes: 1 addition & 2 deletions tests/Reentrancy/Reentrancy.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { BigNumber } from 'ethers';
import { ethers } from 'hardhat';

import { UniversalProfile__factory } from '@lukso/universalprofile-contracts/types';
import { LSP6KeyManager__factory } from '@lukso/lsp6-contracts/types';
import { UniversalProfile__factory, LSP6KeyManager__factory } from '../../types';

import { LSP6TestContext } from '../utils/context';

Expand Down
3 changes: 1 addition & 2 deletions tests/Reentrancy/ReentrancyInit.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { BigNumber } from 'ethers';
import { ethers } from 'hardhat';

import { UniversalProfileInit__factory } from '@lukso/universalprofile-contracts/types';
import { LSP6KeyManagerInit__factory } from '@lukso/lsp6-contracts/types';
import { UniversalProfileInit__factory, LSP6KeyManagerInit__factory } from '../../types';

import { deployProxy } from '../utils/fixtures';
import { LSP6TestContext } from '../utils/context';
Expand Down

0 comments on commit 8a73eb3

Please sign in to comment.