Adds a focused NEAR Hackathon 2026 entry built on Ration's existing,
real audit-log service rather than a Ration-on-NEAR rewrite: a minimal
NEAR smart contract (contracts-near/audit_anchor) storing/verifying
{tenant_id, chain_tip_hash, sequence, occurred_at_unix}, plus a
from-scratch Go NEAR transaction signer and CLI
(services/audit-log/internal/nearanchor, cmd/near-anchor) that reads
audit-log's real local chain tip and anchors it on-chain.
Verified live on NEAR Testnet (account ration-anchor-286ca315f1.testnet):
contract deployed and code_hash-matched, two successful on-chain
anchors, one deliberate replay correctly rejected by nearcore's own
sequence guard, and a real (non-mocked) Go integration test passing
against the live contract. Transaction encoding cross-checked
byte-for-byte against near-api-js. Zero regressions in existing Go/Rust
suites. Full detail and every tx hash in docs/near-hackathon/.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
70 lines
1.9 KiB
Plaintext
70 lines
1.9 KiB
Plaintext
bin/
|
|
data/
|
|
*.log
|
|
.env
|
|
.DS_Store
|
|
.ration-demo.pid
|
|
|
|
# Rust
|
|
services/ledger-core/target/
|
|
sdk/rust/ration-client/target/
|
|
contracts-near/*/target/
|
|
**/*.proptest-regressions
|
|
|
|
# near-anchor's generated NEAR Testnet account keys — never commit a
|
|
# private key, even a disposable testnet-only one.
|
|
.secrets/
|
|
|
|
# C
|
|
services/wal/*.o
|
|
services/wal/*.a
|
|
services/wal/test_wal
|
|
services/wal/bench_wal
|
|
|
|
# Go
|
|
pkg/pb/*.pb.go
|
|
|
|
# proto codegen tool cache
|
|
**/.protoc-cache/
|
|
|
|
# dev-only mTLS CA/certs generated by infra/dev-ca/generate-dev-ca.sh —
|
|
# never commit private keys, even dev-only throwaway ones.
|
|
infra/dev-ca/out/
|
|
|
|
# TLC's checkpoint/state-dump dir, written next to whichever .tla it ran
|
|
# against (e.g. docs/formal/) every time someone runs the model checker.
|
|
states/
|
|
tla2tools.jar
|
|
|
|
# Terraform: provider plugin caches/state are environment-specific and
|
|
# can contain sensitive plan output — never commit them.
|
|
**/.terraform/
|
|
*.tfstate
|
|
*.tfstate.*
|
|
*.tfplan
|
|
crash.log
|
|
crash.*.log
|
|
|
|
# libFuzzer harness build artifacts and auto-generated corpus/crash
|
|
# findings (services/wal/fuzz) — the harness source is committed, its
|
|
# compiled binary and discovered corpus are local, regenerable outputs.
|
|
services/wal/fuzz/fuzz_frame_parse
|
|
services/wal/fuzz/fuzz_frame_parse.dSYM/
|
|
services/wal/fuzz/corpus/
|
|
services/wal/fuzz/crash-*
|
|
services/wal/fuzz/leak-*
|
|
services/wal/fuzz/oom-*
|
|
services/wal/fuzz/timeout-*
|
|
|
|
# chaosload is a dev-only test tool (scripts/chaos/kill-ledger-mid-write.sh)
|
|
# built on demand into a scratch workdir — never commit the compiled
|
|
# binary if someone builds it at the module root by hand.
|
|
services/gateway/chaosload
|
|
.gstack/
|
|
|
|
# Generated hackathon-submission demo video/recording (scripts/
|
|
# record-demo.sh + asciinema/agg/ffmpeg) — a real build artifact meant
|
|
# for the owner to upload to YouTube/Vimeo and link in the HackerEarth
|
|
# submission form, not source, so it's never committed here.
|
|
demo-video/
|