-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c42f38
commit 3214118
Showing
13 changed files
with
96 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# ClickHouse Database | ||
# ClickHouse DB (optional) | ||
HOST=http://127.0.0.1:8123 | ||
USERNAME=default | ||
DATABASE=default | ||
PASSWORD= | ||
|
||
# Webhook Authentication (Optional) | ||
PUBLIC_KEY=... # ed25519 public key provided by https://github.com/pinax-network/substreams-sink-webhook | ||
# Webhook Ed25519 signature (Optional) | ||
PUBLIC_KEYS=... # ed25519 public key provided by https://github.com/pinax-network/substreams-sink-webhook | ||
|
||
# Clickhouse Sink (Optional) | ||
# Sink HTTP server (Optional) | ||
PORT=3000 | ||
HOSTNAME=0.0.0.0 | ||
VERBOSE=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { join, parse } from "path"; | ||
import * as glob from "glob"; | ||
import { logger } from "../../src/logger.js"; | ||
import blocks from "./blocks.sql"; | ||
import module_hashes from "./module_hashes.sql"; | ||
|
||
const pattern = join(import.meta.dirname, "*.sql"); | ||
|
||
export async function getTables() { | ||
const tables: [string, string][] = []; | ||
for (const path of glob.sync(pattern)) { | ||
tables.push([parse(path).name, await Bun.file(path).text()]) | ||
} | ||
logger.info("[sql::tables]\t", `Loading ${tables.length} tables from ${pattern}`); | ||
return tables; | ||
} | ||
export const tables = [ | ||
["blocks", await Bun.file(blocks).text()], | ||
["module_hashes", await Bun.file(module_hashes).text()] | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.