From f713935b0dfdb022dc8b3fd008203a894654cc66 Mon Sep 17 00:00:00 2001 From: CJ42 Date: Mon, 25 Mar 2024 10:46:17 +0000 Subject: [PATCH 1/2] fix: add missing `"package"` script and missing artifacts --- packages/lsp0-contracts/package.json | 4 ++-- packages/lsp1-contracts/hardhat.config.ts | 2 +- packages/lsp1-contracts/package.json | 4 +++- packages/lsp14-contracts/hardhat.config.ts | 2 +- packages/lsp14-contracts/package.json | 4 +++- packages/lsp16-contracts/package.json | 4 +++- packages/lsp17-contracts/hardhat.config.ts | 2 +- packages/lsp17-contracts/package.json | 4 +++- .../lsp17contractextension-contracts/hardhat.config.ts | 2 +- packages/lsp17contractextension-contracts/package.json | 4 +++- packages/lsp1delegate-contracts/package.json | 4 ++-- packages/lsp20-contracts/hardhat.config.ts | 2 +- packages/lsp20-contracts/package.json | 4 +++- packages/lsp23-contracts/hardhat.config.ts | 8 +++++++- packages/lsp23-contracts/package.json | 4 ++-- packages/lsp25-contracts/hardhat.config.ts | 2 +- packages/lsp25-contracts/package.json | 4 +++- packages/lsp4-contracts/package.json | 4 ++-- packages/lsp5-contracts/package.json | 3 ++- packages/lsp6-contracts/hardhat.config.ts | 1 + packages/lsp6-contracts/package.json | 4 ++-- packages/lsp7-contracts/hardhat.config.ts | 3 +++ packages/lsp7-contracts/package.json | 4 ++-- packages/lsp8-contracts/hardhat.config.ts | 5 +++++ packages/lsp8-contracts/package.json | 4 ++-- packages/lsp9-contracts/package.json | 4 ++-- packages/universalprofile-contracts/package.json | 4 +++- template/package.json | 4 ++-- 28 files changed, 66 insertions(+), 34 deletions(-) diff --git a/packages/lsp0-contracts/package.json b/packages/lsp0-contracts/package.json index 202060370..2c66b3023 100644 --- a/packages/lsp0-contracts/package.json +++ b/packages/lsp0-contracts/package.json @@ -36,14 +36,14 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp1-contracts/hardhat.config.ts b/packages/lsp1-contracts/hardhat.config.ts index 1f9e172b9..d8b963f8f 100755 --- a/packages/lsp1-contracts/hardhat.config.ts +++ b/packages/lsp1-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: [], + contracts: ['ILSP1UniversalReceiver', 'ILSP1UniversalReceiverDelegate'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp1-contracts/package.json b/packages/lsp1-contracts/package.json index b9066b560..209402765 100644 --- a/packages/lsp1-contracts/package.json +++ b/packages/lsp1-contracts/package.json @@ -36,10 +36,12 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@openzeppelin/contracts": "^4.9.3", diff --git a/packages/lsp14-contracts/hardhat.config.ts b/packages/lsp14-contracts/hardhat.config.ts index 4e12de17e..1eadd2417 100755 --- a/packages/lsp14-contracts/hardhat.config.ts +++ b/packages/lsp14-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: ['LSP14Ownable2Step'], + contracts: ['ILSP14Ownable2Step', 'LSP14Ownable2Step'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp14-contracts/package.json b/packages/lsp14-contracts/package.json index 2276d624c..740b3354f 100644 --- a/packages/lsp14-contracts/package.json +++ b/packages/lsp14-contracts/package.json @@ -36,10 +36,12 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp16-contracts/package.json b/packages/lsp16-contracts/package.json index ee8e0d56e..5949a6ce2 100644 --- a/packages/lsp16-contracts/package.json +++ b/packages/lsp16-contracts/package.json @@ -35,13 +35,15 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:foundry": "forge build", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "test": "hardhat test --no-compile tests/*.test.ts", "test:foundry": "FOUNDRY_PROFILE=lsp16 forge test --no-match-test Skip -vvv", - "test:coverage": "hardhat coverage" + "test:coverage": "hardhat coverage", + "package": "hardhat prepare-package" }, "dependencies": { "@openzeppelin/contracts": "^4.9.2", diff --git a/packages/lsp17-contracts/hardhat.config.ts b/packages/lsp17-contracts/hardhat.config.ts index 1f9e172b9..8252a159e 100644 --- a/packages/lsp17-contracts/hardhat.config.ts +++ b/packages/lsp17-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: [], + contracts: ['Extension4337', 'OnERC721ReceivedExtension'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp17-contracts/package.json b/packages/lsp17-contracts/package.json index 891f96f7c..f828d4f4e 100644 --- a/packages/lsp17-contracts/package.json +++ b/packages/lsp17-contracts/package.json @@ -36,10 +36,12 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp17contractextension-contracts/hardhat.config.ts b/packages/lsp17contractextension-contracts/hardhat.config.ts index 1f9e172b9..50cb2eee2 100644 --- a/packages/lsp17contractextension-contracts/hardhat.config.ts +++ b/packages/lsp17contractextension-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: [], + contracts: ['LSP17Extendable', 'LSP17Extension'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp17contractextension-contracts/package.json b/packages/lsp17contractextension-contracts/package.json index 39f1e194f..846757c51 100644 --- a/packages/lsp17contractextension-contracts/package.json +++ b/packages/lsp17contractextension-contracts/package.json @@ -36,10 +36,12 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp1delegate-contracts/package.json b/packages/lsp1delegate-contracts/package.json index c7dd6c567..7ec252d28 100644 --- a/packages/lsp1delegate-contracts/package.json +++ b/packages/lsp1delegate-contracts/package.json @@ -36,14 +36,14 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp20-contracts/hardhat.config.ts b/packages/lsp20-contracts/hardhat.config.ts index 1f9e172b9..d2c3d3311 100755 --- a/packages/lsp20-contracts/hardhat.config.ts +++ b/packages/lsp20-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: [], + contracts: ['ILSP20CallVerifier', 'LSP20CallVerification'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp20-contracts/package.json b/packages/lsp20-contracts/package.json index 90b47e29b..97e3e589d 100644 --- a/packages/lsp20-contracts/package.json +++ b/packages/lsp20-contracts/package.json @@ -36,9 +36,11 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" } } diff --git a/packages/lsp23-contracts/hardhat.config.ts b/packages/lsp23-contracts/hardhat.config.ts index b951b71a4..534ea24a4 100644 --- a/packages/lsp23-contracts/hardhat.config.ts +++ b/packages/lsp23-contracts/hardhat.config.ts @@ -107,7 +107,13 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: ['LSP23LinkedContractsFactory', 'IPostDeploymentModule'], + contracts: [ + 'ILSP23LinkedContractsFactory', + 'LSP23LinkedContractsFactory', + 'IPostDeploymentModule', + 'UniversalProfilePostDeploymentModule', + 'UniversalProfileInitPostDeploymentModule', + ], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp23-contracts/package.json b/packages/lsp23-contracts/package.json index ba1865fd5..75787ba1a 100644 --- a/packages/lsp23-contracts/package.json +++ b/packages/lsp23-contracts/package.json @@ -36,13 +36,13 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp25-contracts/hardhat.config.ts b/packages/lsp25-contracts/hardhat.config.ts index 1f9e172b9..ee74f5b42 100644 --- a/packages/lsp25-contracts/hardhat.config.ts +++ b/packages/lsp25-contracts/hardhat.config.ts @@ -107,7 +107,7 @@ const config: HardhatUserConfig = { }, packager: { // What contracts to keep the artifacts and the bindings for. - contracts: [], + contracts: ['ILSP25ExecuteRelayCall'], // Whether to include the TypeChain factories or not. // If this is enabled, you need to run the TypeChain files through the TypeScript compiler before shipping to the registry. includeFactories: true, diff --git a/packages/lsp25-contracts/package.json b/packages/lsp25-contracts/package.json index f88256481..8aed8630d 100644 --- a/packages/lsp25-contracts/package.json +++ b/packages/lsp25-contracts/package.json @@ -36,12 +36,14 @@ "scripts": { "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "test": "hardhat test --no-compile tests/*.test.ts", - "test:coverage": "hardhat coverage" + "test:coverage": "hardhat coverage", + "package": "hardhat prepare-package" }, "dependencies": { "@openzeppelin/contracts": "^4.9.3" diff --git a/packages/lsp4-contracts/package.json b/packages/lsp4-contracts/package.json index 6fc736f02..92296bce6 100644 --- a/packages/lsp4-contracts/package.json +++ b/packages/lsp4-contracts/package.json @@ -36,7 +36,6 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", @@ -45,7 +44,8 @@ "lint": "eslint . --ext .ts,.js", "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "test": "hardhat test --no-compile tests/*.test.ts", - "test:coverage": "hardhat coverage" + "test:coverage": "hardhat coverage", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp5-contracts/package.json b/packages/lsp5-contracts/package.json index c5da08d82..0658baafd 100644 --- a/packages/lsp5-contracts/package.json +++ b/packages/lsp5-contracts/package.json @@ -39,7 +39,8 @@ "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp6-contracts/hardhat.config.ts b/packages/lsp6-contracts/hardhat.config.ts index e26f28156..7a6e07afb 100644 --- a/packages/lsp6-contracts/hardhat.config.ts +++ b/packages/lsp6-contracts/hardhat.config.ts @@ -108,6 +108,7 @@ const config: HardhatUserConfig = { packager: { // What contracts to keep the artifacts and the bindings for. contracts: [ + 'ILSP6KeyManager', 'LSP6KeyManager', // Standard version 'LSP6KeyManagerInit', // Proxy version ], diff --git a/packages/lsp6-contracts/package.json b/packages/lsp6-contracts/package.json index 62880a44c..f697ce39c 100644 --- a/packages/lsp6-contracts/package.json +++ b/packages/lsp6-contracts/package.json @@ -36,7 +36,6 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:foundry": "forge build", "build:js": "unbuild", @@ -45,7 +44,8 @@ "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", - "test:foundry": "FOUNDRY_PROFILE=lsp6 forge test --no-match-test Skip -vvv" + "test:foundry": "FOUNDRY_PROFILE=lsp6 forge test --no-match-test Skip -vvv", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp7-contracts/hardhat.config.ts b/packages/lsp7-contracts/hardhat.config.ts index 23f109844..7e41b547e 100644 --- a/packages/lsp7-contracts/hardhat.config.ts +++ b/packages/lsp7-contracts/hardhat.config.ts @@ -108,14 +108,17 @@ const config: HardhatUserConfig = { packager: { // What contracts to keep the artifacts and the bindings for. contracts: [ + 'ILSP7DigitalAsset', // Standard version // ------------------ 'LSP7DigitalAsset', + 'LSP7Burnable', 'LSP7CappedSupply', 'LSP7Mintable', // Proxy version // ------------------ 'LSP7DigitalAssetInitAbstract', + 'LSP7BurnableInitAbstract', 'LSP7CappedSupplyInitAbstract', 'LSP7MintableInit', ], diff --git a/packages/lsp7-contracts/package.json b/packages/lsp7-contracts/package.json index cf41ed6f2..5696fa8d0 100644 --- a/packages/lsp7-contracts/package.json +++ b/packages/lsp7-contracts/package.json @@ -36,14 +36,14 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp8-contracts/hardhat.config.ts b/packages/lsp8-contracts/hardhat.config.ts index db8d7e37d..b773cde02 100644 --- a/packages/lsp8-contracts/hardhat.config.ts +++ b/packages/lsp8-contracts/hardhat.config.ts @@ -108,15 +108,20 @@ const config: HardhatUserConfig = { packager: { // What contracts to keep the artifacts and the bindings for. contracts: [ + 'ILSP8IdentifiableDigitalAsset', // Standard version // ------------------ 'LSP8IdentifiableDigitalAsset', + 'LSP8Burnable', 'LSP8CappedSupply', + 'LSP8Enumerable', 'LSP8Mintable', // Proxy version // ------------------ 'LSP8IdentifiableDigitalAssetInitAbstract', + 'LSP8BurnableInitAbstract', 'LSP8CappedSupplyInitAbstract', + 'LSP8EnumerableInitAbstract', 'LSP8MintableInit', ], // Whether to include the TypeChain factories or not. diff --git a/packages/lsp8-contracts/package.json b/packages/lsp8-contracts/package.json index e23635016..4172aa466 100644 --- a/packages/lsp8-contracts/package.json +++ b/packages/lsp8-contracts/package.json @@ -36,14 +36,14 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/lsp9-contracts/package.json b/packages/lsp9-contracts/package.json index d69171a0f..63c19efbf 100644 --- a/packages/lsp9-contracts/package.json +++ b/packages/lsp9-contracts/package.json @@ -36,14 +36,14 @@ "Solidity" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:js": "unbuild", "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/packages/universalprofile-contracts/package.json b/packages/universalprofile-contracts/package.json index b06c34b32..11b137237 100644 --- a/packages/universalprofile-contracts/package.json +++ b/packages/universalprofile-contracts/package.json @@ -35,10 +35,12 @@ ], "scripts": { "build": "hardhat compile --show-stack-traces", + "build:types": "npx wagmi generate", "clean": "hardhat clean && rm -Rf dist/", "format": "prettier --write .", "lint": "eslint . --ext .ts,.js", - "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'" + "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", diff --git a/template/package.json b/template/package.json index 6ad508b5c..806ae2641 100644 --- a/template/package.json +++ b/template/package.json @@ -36,7 +36,6 @@ "./README.md" ], "scripts": { - "package": "hardhat prepare-package", "build": "hardhat compile --show-stack-traces", "build:foundry": "forge build", "build:js": "unbuild", @@ -47,7 +46,8 @@ "lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'", "test": "hardhat test --no-compile tests/*.test.ts", "test:foundry": "FOUNDRY_PROFILE=lspN forge test --no-match-test Skip -vvv", - "test:coverage": "hardhat coverage" + "test:coverage": "hardhat coverage", + "package": "hardhat prepare-package" }, "dependencies": { "@erc725/smart-contracts": "^7.0.0", From d96ced18c2aa6d6e1c003154bd2ccde8dcdeb03e Mon Sep 17 00:00:00 2001 From: CJ42 Date: Mon, 25 Mar 2024 11:10:34 +0000 Subject: [PATCH 2/2] refactor: adjust interface ID constant names --- packages/lsp-smart-contracts/constants.ts | 8 ++++---- packages/lsp0-contracts/constants.ts | 2 +- packages/lsp6-contracts/constants.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/lsp-smart-contracts/constants.ts b/packages/lsp-smart-contracts/constants.ts index b52770160..bfce04bc9 100644 --- a/packages/lsp-smart-contracts/constants.ts +++ b/packages/lsp-smart-contracts/constants.ts @@ -4,13 +4,13 @@ */ // export * from './contracts'; -import { INTERFACE_ID_LSP0ERC725Account, LSP0_TYPE_IDS } from '@lukso/lsp0-contracts'; +import { INTERFACE_ID_LSP0, LSP0_TYPE_IDS } from '@lukso/lsp0-contracts'; import { INTERFACE_ID_LSP1, LSP1DataKeys } from '@lukso/lsp1-contracts'; import { INTERFACE_ID_LSP1DELEGATE } from '@lukso/lsp1delegate-contracts'; import { LSP3DataKeys } from '@lukso/lsp3-contracts'; import { LSP4DataKeys } from '@lukso/lsp4-contracts'; import { LSP5DataKeys } from '@lukso/lsp5-contracts'; -import { INTERFACE_ID_LSP6KEYMANAGER, LSP6DataKeys } from '@lukso/lsp6-contracts'; +import { INTERFACE_ID_LSP6, LSP6DataKeys } from '@lukso/lsp6-contracts'; import { INTERFACE_ID_LSP7, LSP7_TYPE_IDS } from '@lukso/lsp7-contracts'; import { INTERFACE_ID_LSP8, LSP8DataKeys, LSP8_TYPE_IDS } from '@lukso/lsp8-contracts'; import { INTERFACE_ID_LSP9, LSP9DataKeys, LSP9_TYPE_IDS } from '@lukso/lsp9-contracts'; @@ -58,10 +58,10 @@ export const INTERFACE_IDS = { ERC1155: '0xd9b67a26', ERC725X: '0x7545acac', ERC725Y: '0x629aa694', - LSP0ERC725Account: INTERFACE_ID_LSP0ERC725Account, + LSP0ERC725Account: INTERFACE_ID_LSP0, LSP1UniversalReceiver: INTERFACE_ID_LSP1, LSP1UniversalReceiverDelegate: INTERFACE_ID_LSP1DELEGATE, - LSP6KeyManager: INTERFACE_ID_LSP6KEYMANAGER, + LSP6KeyManager: INTERFACE_ID_LSP6, LSP7DigitalAsset: INTERFACE_ID_LSP7, LSP8IdentifiableDigitalAsset: INTERFACE_ID_LSP8, LSP9Vault: INTERFACE_ID_LSP9, diff --git a/packages/lsp0-contracts/constants.ts b/packages/lsp0-contracts/constants.ts index 9fe90d5e5..ccef5e1d0 100644 --- a/packages/lsp0-contracts/constants.ts +++ b/packages/lsp0-contracts/constants.ts @@ -1,6 +1,6 @@ // ERC165 Interface ID // ---------- -export const INTERFACE_ID_LSP0ERC725Account = '0x24871b3d'; +export const INTERFACE_ID_LSP0 = '0x24871b3d'; // ERC1271 // ---------- diff --git a/packages/lsp6-contracts/constants.ts b/packages/lsp6-contracts/constants.ts index 1f6e72493..9b372d0c7 100644 --- a/packages/lsp6-contracts/constants.ts +++ b/packages/lsp6-contracts/constants.ts @@ -1,6 +1,6 @@ import { LSP2ArrayKey } from '@lukso/lsp2-contracts'; -export const INTERFACE_ID_LSP6KEYMANAGER = '0x23f34c62'; +export const INTERFACE_ID_LSP6 = '0x23f34c62'; /** * @dev values returned by the `isValidSignature` function of the ERC1271 standard.