Skip to content

Commit

Permalink
🌺 Lens and Hey v3: v34 (#lens-v3)
Browse files Browse the repository at this point in the history
Summary: Updated dependencies and removed unused constants and contracts.

Highlights:

• Upgraded various dependencies, including `dotenv`, `axios`, and `@apollo/client`.
• Removed unused constants from `constants.ts` and contracts from `contracts.ts`.
• Updated `@types/node` and `vitest` in multiple `package.json` files.

Read more: https://pierre.co/hey/hey/lens-v3
  • Loading branch information
Yoginth authored and Pierre committed Dec 6, 2024
1 parent 40ac878 commit d847b96
Show file tree
Hide file tree
Showing 15 changed files with 605 additions and 3,496 deletions.
16 changes: 8 additions & 8 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.700.0",
"@aws-sdk/client-s3": "^3.705.0",
"@aws-sdk/client-ses": "^3.699.0",
"@aws-sdk/client-sts": "^3.699.0",
"@hey/abis": "workspace:*",
Expand All @@ -23,17 +23,17 @@
"@json2csv/plainjs": "^7.0.6",
"@lens-protocol/metadata": "^1.2.0",
"apollo-utilities": "^1.3.4",
"axios": "^1.7.8",
"axios": "^1.7.9",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"express": "^5.0.0",
"express-file-routing": "^3.0.3",
"express-rate-limit": "^7.4.1",
"express-session": "^1.18.1",
"fast-xml-parser": "^4.4.1",
"graphql": "^16.9.0",
"linkedom": "^0.18.5",
"openai": "^4.73.1",
"openai": "^4.76.0",
"rate-limit-redis": "^4.2.0",
"request-ip": "^3.3.0",
"tsx": "^4.19.2",
Expand All @@ -44,20 +44,20 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@faker-js/faker": "^9.2.0",
"@faker-js/faker": "^9.3.0",
"@hey/config": "workspace:*",
"@hey/types": "workspace:*",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/express-session": "^1.18.0",
"@types/node": "^22.10.0",
"@types/express-session": "^1.18.1",
"@types/node": "^22.10.1",
"@types/request-ip": "^0.0.41",
"@types/ua-parser-js": "^0.7.39",
"@types/uuid": "^10.0.0",
"nodemon": "^3.1.7",
"start-server-and-test": "^2.0.8",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
}
}
4 changes: 2 additions & 2 deletions apps/cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"@hey/data": "workspace:*",
"@hey/db": "workspace:*",
"@hey/helpers": "workspace:*",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"node-cron": "^3.0.3",
"tsx": "^4.19.2"
},
"devDependencies": {
"@hey/config": "workspace:*",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/node-cron": "^3.0.11",
"typescript": "^5.7.2"
}
Expand Down
4 changes: 2 additions & 2 deletions apps/invoice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"easyinvoice": "^3.0.47",
"tsx": "^4.19.2"
},
"devDependencies": {
"@hey/config": "workspace:*",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions apps/og/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@hey/indexer": "workspace:*",
"apollo-utilities": "^1.3.4",
"graphql": "^16.9.0",
"next": "^15.0.2",
"next": "^15.0.4",
"react": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
}
}
19 changes: 9 additions & 10 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"@apollo/client": "^3.11.10",
"@aws-sdk/client-s3": "^3.700.0",
"@aws-sdk/lib-storage": "^3.700.0",
"@apollo/client": "^3.12.2",
"@aws-sdk/client-s3": "^3.705.0",
"@aws-sdk/lib-storage": "^3.705.0",
"@headlessui/react": "2.2.0",
"@heroicons/react": "^2.2.0",
"@hey/abis": "workspace:*",
Expand All @@ -30,17 +30,16 @@
"@tanstack/react-query": "^5.61.3",
"@uidotdev/usehooks": "^2.4.1",
"@unleash/proxy-client-react": "^4.4.0",
"axios": "^1.7.8",
"axios": "^1.7.9",
"browser-image-compression": "^2.0.2",
"chart.js": "^4.4.6",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"esbuild": "^0.24.0",
"franc": "^6.2.0",
"graphql": "^16.9.0",
"next": "^15.0.2",
"next": "^15.0.4",
"next-axiom": "^1.5.1",
"next-themes": "^0.4.3",
"party-js": "^2.2.0",
"plur": "^5.1.0",
"plyr-react": "^5.3.0",
"prosekit": "^0.10.4",
Expand Down Expand Up @@ -76,14 +75,14 @@
"@hey/types": "workspace:*",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.9",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/uuid": "^10.0.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.16",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"husky": "^9.1.7",
"pierre": "^2.1.9"
"pierre": "^2.1.10"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
6 changes: 0 additions & 6 deletions packages/data/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ export const LENS_API_URL = getEnvConfig().lensApiEndpoint;
export const HEY_API_URL = IS_PRODUCTION
? "https://api.hey.xyz"
: "http://localhost:4784";
export const GRAPH = getEnvConfig().graph;
export const LENS_HANDLES = getEnvConfig().lensHandles;
export const TOKEN_HANDLE_REGISTRY = getEnvConfig().tokenHandleRegistry;
export const HEY_LENS_SIGNUP = getEnvConfig().heyLensSignup;
export const DEFAULT_COLLECT_TOKEN = getEnvConfig().defaultCollectToken;
export const PERMISSIONLESS_CREATOR = getEnvConfig().permissionlessCreator;
export const HEY_TIPPING = getEnvConfig().heyTipping;

export const IS_MAINNET = LENS_API_URL === LensEndpoint.Mainnet;
export const ADDRESS_PLACEHOLDER = "0x03Ba3...7EF";
Expand Down
16 changes: 2 additions & 14 deletions packages/data/contracts.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
export enum MainnetContracts {
DefaultToken = "0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c",
HeyLensSignup = "0x4b8845ACb8148dE64D1D99Cf27A3890a91F55E53",
HeyTipping = "0xCFeB907551c3C7E4Df2627B2Ed3D0C782702785B",
LensHandles = "0xe7E7EaD361f3AaCD73A61A9bD6C10cA17F38E945",
Graph = "0x9e7085a6cc3A02F6026817997cE44B26Ba4Df557",
PermissionlessCreator = "0x0b5e6100243f793e480DE6088dE6bA70aA9f3872",
TokenHandleRegistry = "0xD4F2F33680FCCb36748FA9831851643781608844"
DefaultToken = "0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c"
}

export enum TestnetContracts {
DefaultToken = "0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c",
HeyLensSignup = "0x82Bcb5DA51c6F3D0Ce942bDBEbb0B8A7774d62e8",
HeyTipping = "0xAadeC94DCD26555F464455d309a5E896f78cC65f",
LensHandles = "0xf6fDD7932219D64f267E4BfaF8d19774526d31D9",
Graph = "0x9e7085a6cc3A02F6026817997cE44B26Ba4Df557",
PermissionlessCreator = "0x36440da1D98FF46637f0b98AAA082bc77977B49B",
TokenHandleRegistry = "0x24360dc6Af3c0b37baA8B0aaDD5BcA11C1a1389A"
DefaultToken = "0x3d2bD0e15829AA5C362a4144FdF4A1112fa29B5c"
}
4 changes: 2 additions & 2 deletions packages/data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"devDependencies": {
"@hey/config": "workspace:*",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
}
}
22 changes: 2 additions & 20 deletions packages/data/utils/getEnvConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,18 @@ import LensEndpoint from "../lens-endpoints";

const getEnvConfig = (): {
defaultCollectToken: string;
heyLensSignup: `0x${string}`;
heyTipping: `0x${string}`;
lensApiEndpoint: string;
lensHandles: `0x${string}`;
graph: `0x${string}`;
permissionlessCreator?: `0x${string}`;
tokenHandleRegistry: `0x${string}`;
} => {
switch (LENS_NETWORK) {
case "testnet":
return {
defaultCollectToken: TestnetContracts.DefaultToken,
heyLensSignup: TestnetContracts.HeyLensSignup,
heyTipping: TestnetContracts.HeyTipping,
lensApiEndpoint: LensEndpoint.Testnet,
lensHandles: TestnetContracts.LensHandles,
graph: TestnetContracts.Graph,
permissionlessCreator: TestnetContracts.PermissionlessCreator,
tokenHandleRegistry: TestnetContracts.TokenHandleRegistry
lensApiEndpoint: LensEndpoint.Testnet
};
default:
return {
defaultCollectToken: MainnetContracts.DefaultToken,
heyLensSignup: MainnetContracts.HeyLensSignup,
heyTipping: MainnetContracts.HeyTipping,
lensApiEndpoint: LensEndpoint.Mainnet,
lensHandles: MainnetContracts.LensHandles,
graph: MainnetContracts.Graph,
permissionlessCreator: MainnetContracts.PermissionlessCreator,
tokenHandleRegistry: MainnetContracts.TokenHandleRegistry
lensApiEndpoint: LensEndpoint.Mainnet
};
}
};
Expand Down
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@hey/data": "workspace:*",
"@hey/helpers": "workspace:*",
"@prisma/client": "^5.22.0",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"pg-promise": "^11.10.1",
"redis": "^4.7.0"
},
"devDependencies": {
"@hey/config": "workspace:*",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"prisma": "^5.22.0",
"ts-node": "^10.9.2",
"typescript": "^5.7.2"
Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"@apollo/client": "^3.11.10",
"@apollo/client": "^3.12.2",
"@hey/abis": "workspace:*",
"@hey/data": "workspace:*",
"@hey/indexer": "workspace:*",
"@hey/types": "workspace:*",
"axios": "^1.7.8",
"axios": "^1.7.9",
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"mailchecker": "^6.0.12",
"omit-deep": "^0.3.0",
"urlcat": "^3.1.0",
Expand All @@ -26,6 +26,6 @@
"@hey/config": "workspace:*",
"@types/omit-deep": "^0.3.2",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.8"
}
}
6 changes: 3 additions & 3 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"typecheck": "tsc --pretty"
},
"dependencies": {
"@apollo/client": "^3.11.10",
"@apollo/client": "^3.12.2",
"@hey/data": "workspace:*",
"axios": "^1.7.8",
"axios": "^1.7.9",
"graphql": "^16.9.0"
},
"devDependencies": {
Expand All @@ -22,7 +22,7 @@
"@graphql-codegen/typescript-react-apollo": "^4.3.2",
"@hey/config": "workspace:*",
"@parcel/watcher": "^2.5.0",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
"@radix-ui/react-switch": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.4",
"clsx": "^2.1.1",
"next": "^15.0.2",
"next": "^15.0.4",
"react": "^18.3.1",
"react-hook-form": "^7.53.2",
"tailwind-merge": "^2.5.5",
"zod": "^3.23.8"
},
"devDependencies": {
"@hey/config": "workspace:*",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.16",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit d847b96

Please sign in to comment.