Skip to content

Commit

Permalink
Merge pull request #13 from solana-fm/refactor/server
Browse files Browse the repository at this point in the history
chore: lint files and add hot reloading to script
  • Loading branch information
doodoo-aihc authored Jan 17, 2024
2 parents 5143185 + d5fac1f commit 27e56b9
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-clocks-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solanafm/explorer-kit-server": major
---

release: exploerkit-server
6 changes: 6 additions & 0 deletions packages/explorerkit-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Build & watch
pnpm dev
```

Start Dev Server with hot reloading

```
pnpm dev-serve
```

Start server

```
Expand Down
4 changes: 3 additions & 1 deletion packages/explorerkit-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solanafm/explorer-kit-server",
"version": "1.0.0",
"version": "0.0.0",
"description": "Server to decode Solana entities over HTTP API",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -18,6 +18,7 @@
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts",
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
"dev-serve": "concurrently \"pnpm dev\" \"node dist/index.js\"",
"serve": "nodemon dist/index.js",
"test": "vitest run",
"clean": "rimraf .turbo && rimraf node_modules && rimraf dist",
Expand All @@ -34,6 +35,7 @@
"@types/node": "^20.10.4",
"@types/supertest": "^2.0.16",
"@vitest/coverage-v8": "^0.34.2",
"concurrently": "^8.2.2",
"eslint": "^8.47.0",
"eslint-config-explorerkit": "workspace:*",
"nodemon": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/explorerkit-server/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Message, MessageV0, VersionedTransaction } from "@solana/web3.js";
import { ParserType, InstructionParserInterface, AccountParserInterface, SolanaFMParser } from "@solanafm/explorer-kit";
import { AccountParserInterface, InstructionParserInterface, ParserType, SolanaFMParser } from "@solanafm/explorer-kit";
import { getProgramIdl } from "@solanafm/explorer-kit-idls";
import bodyParser from "body-parser";
import bs58 from "bs58";
Expand Down
94 changes: 72 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27e56b9

Please sign in to comment.