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

Feat/rename to zk chain hub #11

Merged
merged 8 commits into from
May 27, 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
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Hyperhub
# zkChainHub

## Description

The Hyperhub project for zkSync involves the creation of a comprehensive data management system. This project is designed to provide key insights into the zkSync network, making it an invaluable tool for users and developers.
The zkChainHub project for zkSync involves the creation of a comprehensive data management system. This project is designed to provide key insights into the zkSync network, making it an invaluable tool for users and developers.

## Packages

- `@hyperhub/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `@hyperhub/serverless`: Includes all serverless functions from the repository.
- `@zkChainHub/typescript-config`: `tsconfig.json`s used throughout the monorepo
- `@zkChainHub/serverless`: Includes all serverless functions from the repository.

## Dev Environment

Expand All @@ -16,14 +16,14 @@ Installing and building packages can be done through the following command:
```
yarn && yarn build
```

Here `yarn`: Install deps, create symlinks, hoist packages.
And `yarn build` Build all packages.

Address changes for each package can be done the following way:

```
yarn workspace @hyperhub/serverless dev
yarn workspace @zkChainHub/serverless dev
```

## Running tests
Expand All @@ -38,7 +38,7 @@ For testing individual packages:

```
yarn workspace @huperhub/serverless build
yarn workspace @hyperhub/serverless test
yarn workspace @zkChainHub/serverless test
```

## Creating a new package
Expand All @@ -59,5 +59,5 @@ Adding new dependencies should be done from root level, and not from each packag
For example:

```
yarn workspace @hyperhub/serverless add ethers
yarn workspace @zkChainHub/serverless add ethers
```
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hyperhub",
"name": "zkChainHub",
"private": true,
"scripts": {
"build": "turbo build",
Expand All @@ -16,9 +16,9 @@
],
"devDependencies": {
"@commitlint/config-conventional": "19.2.2",
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"@types/node": "18.13.0",
"@zkChainHub/test-config": "workspace:*",
"@zkChainHub/typescript-config": "workspace:*",
"commitlint": "19.3.0",
"husky": "9.0.11",
"lint-staged": "15.2.4",
Expand Down
8 changes: 4 additions & 4 deletions packages/__example__/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/example",
"name": "@zkChainHub/example",
"private": true,
"version": "0.0.0",
"scripts": {
Expand All @@ -10,8 +10,8 @@
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@hyperhub/errors": "workspace:*",
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*"
"@zkChainHub/errors": "workspace:*",
"@zkChainHub/test-config": "workspace:*",
"@zkChainHub/typescript-config": "workspace:*"
}
}
6 changes: 3 additions & 3 deletions packages/__example__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@hyperhub/typescript-config/base.json",
"include": ["./src/**/*.ts"],
"exclude": ["dist", "node_modules"],
"extends": "@zkChainHub/typescript-config/base.json",
"include": ["./src"],
"exclude": ["node_modules", "__test__/"],
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/__example__/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseConfig } from "@hyperhub/test-config";
import { baseConfig } from "@zkChainHub/test-config";
import { mergeConfig, defineConfig } from "vitest/config";

export default mergeConfig(
Expand Down
6 changes: 3 additions & 3 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/errors",
"name": "@zkChainHub/errors",
"version": "0.0.0",
"private": true,
"license": "MIT",
Expand All @@ -11,7 +11,7 @@
"access": "public"
},
"devDependencies": {
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*"
"@zkChainHub/test-config": "workspace:*",
"@zkChainHub/typescript-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/errors/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@hyperhub/typescript-config/base.json",
"extends": "@zkChainHub/typescript-config/base.json",
"include": ["./src/**/*.ts"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
Expand Down
8 changes: 4 additions & 4 deletions packages/lib/coingecko/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/coingecko",
"name": "@zkChainHub/coingecko",
"private": true,
"version": "0.0.0",
"scripts": {
Expand All @@ -10,8 +10,8 @@
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@hyperhub/errors": "workspace:*",
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*"
"@zkChainHub/errors": "workspace:*",
"@zkChainHub/test-config": "workspace:*",
"@zkChainHub/typescript-config": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/lib/coingecko/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseError } from "@hyperhub/errors";
import { BaseError } from "@zkChainHub/errors";

export class CoingeckoError extends BaseError {
constructor(description: string) {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/coingecko/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@hyperhub/typescript-config/base.json",
"extends": "@zkChainHub/typescript-config/base.json",
"include": ["./src/**/*.ts"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/coingecko/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseConfig } from "@hyperhub/test-config";
import { baseConfig } from "@zkChainHub/test-config";
import { mergeConfig, defineConfig } from "vitest/config";

export default mergeConfig(
Expand Down
6 changes: 3 additions & 3 deletions packages/serverless/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/serverless",
"name": "@zkChainHub/serverless",
"private": true,
"version": "0.0.0",
"scripts": {
Expand All @@ -10,10 +10,10 @@
"tsc": "tsc --noEmit"
},
"devDependencies": {
"@hyperhub/errors": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"@serverless/typescript": "3.27.0",
"@types/aws-lambda": "8.10.71",
"@zkChainHub/errors": "workspace:*",
"@zkChainHub/typescript-config": "workspace:*",
"esbuild": "0.16.0",
"serverless": "3.27.0",
"serverless-esbuild": "1.37.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseError } from "@hyperhub/errors";
import { BaseError } from "@zkChainHub/errors";

export default class LambdaError extends BaseError {
constructor(description: string) {
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@hyperhub/typescript-config/base.json",
"extends": "@zkChainHub/typescript-config/base.json",
"include": ["./src/**/*.ts"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { baseConfig } from "@hyperhub/test-config";
import { baseConfig } from "@zkChainHub/test-config";
import { mergeConfig, defineConfig } from "vitest/config";

export default mergeConfig(
Expand Down
2 changes: 1 addition & 1 deletion tooling/test-config/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## @hyperhub - Test config
## @zkChainHub - Test config

All test config package related files
4 changes: 2 additions & 2 deletions tooling/test-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/test-config",
"name": "@zkChainHub/test-config",
"version": "0.0.0",
"private": true,
"license": "MIT",
Expand All @@ -11,8 +11,8 @@
"access": "public"
},
"devDependencies": {
"@hyperhub/typescript-config": "workspace:*",
"@vitest/coverage-v8": "1.6.0",
"@zkChainHub/typescript-config": "workspace:*",
"vitest": "1.6.0"
}
}
2 changes: 1 addition & 1 deletion tooling/test-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@hyperhub/typescript-config/base.json",
"extends": "@zkChainHub/typescript-config/base.json",
"exclude": ["dist", "node_modules"],
"compilerOptions": {
"outDir": "./dist",
Expand Down
2 changes: 1 addition & 1 deletion tooling/typescript-config/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## @hyperhub - Typescript config
# @zkChainHub - Typescript config

All typescript config package related files
2 changes: 1 addition & 1 deletion tooling/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperhub/typescript-config",
"name": "@zkChainHub/typescript-config",
"version": "0.0.0",
"private": true,
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@hyperhub/typescript-config/base.json"
"extends": "@zkChainHub/typescript-config/base.json"
}
Loading
Loading