Skip to content

Commit

Permalink
rename to sink
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Oct 7, 2023
1 parent b757d7a commit 9871ad4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- uses: softprops/action-gh-release@v1
with:
files: |
substreams-service-websockets
substreams-sink-websockets
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# [`Substreams`](https://substreams.streamingfast.io/) Service WebSockets
# [`Substreams`](https://substreams.streamingfast.io/) sink WebSockets

> `substreams-service-websockets` is a tool that allows developers to pipe data extracted from a blockchain to WebSockets.
> `substreams-sink-websockets` is a tool that allows developers to pipe data extracted from a blockchain to WebSockets.
## Requirements

- [Substreams Sink Webhook](https://github.com/pinax-network/substreams-sink-webhook)

## Quickstart

```bash
$ bunx pinax-network/substreams-sink-websockets
$ bunx substreams-sink-websockets
```

## `.env` Environment variables
Expand Down
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env node

import { Server } from "bun";
import { HOSTNAME, PORT, PUBLIC_KEY, SQLITE_FILENAME } from "./src/config.js";
import { verify } from "./src/verify.js";
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
{
"version": "0.1.0",
"description": "Substreams Service Websockets",
"name": "substreams-service-websockets",
"version": "0.1.1",
"description": "Substreams Sink Websockets",
"name": "substreams-sink-websockets",
"homepage": "https://github.com/pinax-network/substreams-sink-websockets",
"type": "module",
"types": "./dist/index.d.ts",
"bin": {
"substreams-sink-websockets": "./dist/index.js"
},
"exports": {
".": "./dist/index.js"
},
"scripts": {
"start": "bun run index.ts",
"prepublish": "tsc",
"test": "bun test",
"build": "bun build --compile ./index.ts --outfile substreams-service-websockets",
"build": "bun build --compile ./index.ts --outfile substreams-sink-websockets",
"dev": "bun run --watch index.ts"
},
"dependencies": {
Expand Down

0 comments on commit 9871ad4

Please sign in to comment.