Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing "package" commands to generate artifacts + unify interface ID constant names #936

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/lsp-smart-contracts/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp0-contracts/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ERC165 Interface ID
// ----------
export const INTERFACE_ID_LSP0ERC725Account = '0x24871b3d';
export const INTERFACE_ID_LSP0 = '0x24871b3d';

// ERC1271
// ----------
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp0-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp1-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp1-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp14-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp14-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp16-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp17-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp17-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp17contractextension-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp1delegate-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp20-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp20-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
8 changes: 7 additions & 1 deletion packages/lsp23-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp23-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp25-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/lsp25-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp4-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:js": "unbuild",
"build:types": "npx wagmi generate",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/lsp5-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/lsp6-contracts/constants.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions packages/lsp6-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp6-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"Solidity"
],
"scripts": {
"package": "hardhat prepare-package",
"build": "hardhat compile --show-stack-traces",
"build:foundry": "forge build",
"build:js": "unbuild",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions packages/lsp7-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp7-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/lsp8-contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions packages/lsp8-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading
Loading