Skip to content

Commit 55dafe4

Browse files
committed
Initial upload
1 parent e36f274 commit 55dafe4

35 files changed

+7429
-1
lines changed

.env.example

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ENDPOINT=https://ENDPOINT/
2+
FALLBACK_ENDPOINT=https://SECONDARY_SOLANA_RPC/
3+
BIGTABLE_CRED="SOLANA_BIGTABLE_CRED.json"
4+
GCP_CREDENTIALS_JSON_PATH="GCP_CRED.json"
5+
OUTPUT_DIR="output"
6+
QUEUE_NAME="solana-etl-output"
7+
QUEUE_NAME_BLOCKS="blocks"
8+
QUEUE_NAME_BLOCK_REWARDS="block_rewards"
9+
QUEUE_NAME_ACCOUNTS="accounts"
10+
QUEUE_NAME_INSTRUCTIONS="instructions"
11+
QUEUE_NAME_TOKEN_TRANSFERS="token_transfers"
12+
QUEUE_NAME_TOKENS="tokens"
13+
QUEUE_NAME_TRANSACTIONS="transactions"
14+
RABBITMQ_USER=USER
15+
RABBITMQ_PASSWORD=PASS
16+
RABBITMQ_PORT=5672
17+
RABBITMQ_ADDRESS=ADDRESS
18+
NUM_EXTRACTOR_THREADS=NUM_CORES
19+
ENABLE_METRICS=true
20+
METRICS_PORT=4000
21+
METRICS_ADDRESS=ADDRESS
22+
RPC_METHOD_TIMEOUT=30

CONTRIBUTING.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contribution & Style Guide:
2+
3+
1. Pull requests should result in code that does not produce any errors when compiled.
4+
2. Pull requests should result in code that does not produce any warnings when compiled.
5+
3. Run `cargo fmt` before opening a pull request.
6+
4. Run `cargo clippy` and resolve any warnings.
7+
5. All functions should have a comment directly above that explains what it does at a high level. This comment should use the triple forward-slash `///` for compatibility with rustdoc.
8+
6. Each module should contain a high-level description of what the module is intended for. Make sure to use `//!` in the mod.rs file, and each respective rust source file.
9+
7. No more than 1 line of whitespace at a time.
10+
8. Do not add any blockchain-specific code (besides conditional imports).
11+
9. Side-effects, assumptions, and “gotchas” should be accompanied by a `NOTE:` comment.
12+
10. Try to follow a functional style, except for when calling async functions:
13+
- Use constants and immutable variables.
14+
- Use `Iterator` methods like `filter()`, `map()`, and `fold()`.

0 commit comments

Comments
 (0)