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

chore: add declaration within common/tsconfig.json #72

Merged
merged 3 commits into from
Oct 3, 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
4 changes: 3 additions & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
"outDir": "./dist",
"declaration": true,
"emitDeclarationOnly": false
}
}
10 changes: 8 additions & 2 deletions packages/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ These instructions will cover the usage information and how to run the code loca

### Configuration

Configure the mode you want to run by editing the variable in `.env` by checking `.env.example`
Configure the mode you want to run by editing the variable in `.env` by checking `.env.example`.

```sh
cp .env.example .env
```

To add a new chain, create a value in the .env file with the following name:

```sh
JSON_RPC_URL_<chain_id>="your rpc url"
```

### Install

Please make sure you have run `yarn install` on the root level.
Expand All @@ -38,7 +44,7 @@ On the root's `docker-compose.yml`, run the following command:

```sh
cd ../.. # To the root level
docker compose up --build mongodb hashi_rpc
docker compose up --build hashi_rpc
```

Make sure to set `PORT=3000` within `.env` file.
Expand Down
Loading