Skip to content

Commit f1320a2

Browse files
committed
Datastore crate & repo setup
1 parent c556df9 commit f1320a2

17 files changed

+5415
-1
lines changed

.env.example

Whitespace-only changes.

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
check:
14+
name: Check
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@stable
19+
- run: cargo check
20+
21+
test:
22+
name: Test
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: dtolnay/rust-toolchain@stable
27+
- run: cargo test
28+
29+
fmt:
30+
name: Rustfmt
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@stable
35+
with:
36+
components: rustfmt
37+
- run: cargo fmt --all -- --check
38+
39+
clippy:
40+
name: Clippy
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: dtolnay/rust-toolchain@stable
45+
with:
46+
components: clippy
47+
- run: cargo clippy -- -D warnings
48+
49+
build:
50+
name: Build
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: dtolnay/rust-toolchain@stable
55+
- run: cargo build --release

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Rust
2+
/target/
3+
4+
# IDE & OS
5+
.idea/
6+
.vscode/
7+
*.swp
8+
*.swo
9+
.DS_Store
10+
Thumbs.db
11+
12+
# Environment variables
13+
.env
14+
.env.local

.sqlx/query-ca6a250821d4542720578da20aa9cf31e808fa8dcbd701c75246dbdc95c58946.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CLAUDE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# TIPS - Transaction Inclusion Prioritization Stack
2+
3+
## Overview
4+
TIPS is an experimental project to replace the p2p mempool with a collection of stateless servies to enable:
5+
6+
- Higher throughput
7+
- Simulation of all transaction
8+
- Cost savings on hardware
9+
- Bundle support
10+
11+
## Code Style & Standards
12+
- Do not add comments unless instructed
13+
- Put imports at the top of the file, never in functions
14+
- Use `just fix` to fix formatting and warnings
15+
- Run `just ci` to verify your changes
16+
- Add dependencies to the Cargo.toml in the root and reference them in the crate cargo files
17+
- Always use the latest dependency versions. Use https://crates.io/ to find dependency versions when adding new deps
18+
- For logging use the tracing crate with appropriate levels and structured logging

0 commit comments

Comments
 (0)