Commit 02153d4
docs: add event schema and Dune analytics guide (#80)
* docs: add event schema and Dune analytics guide
* fix(dune): use correct Dune Stellar column names
topic_1/data do not exist in stellar.history_contract_events.
The real columns are:
topics_decoded VARCHAR JSON array — index 0 is the event-name symbol
data_decoded VARCHAR JSON object — keyed by field name
Replace all topic_1 references with:
JSON_EXTRACT_SCALAR(topics_decoded, '$[0]')
Replace all data references with:
JSON_EXTRACT_SCALAR(data_decoded, '$.field')
Fix applied to all 10 .sql files and the matching code blocks in
docs/dune-analytics.md. Also add correct column table to §1.
* ci: run verify-build on docs changes so docs-only PRs satisfy the required check
The build job only triggered on contracts/** and toolchain paths, so a
docs-only PR never ran it — and since build is a required status check,
those PRs were unmergeable (BLOCKED with 'build expected', not even
admin-overridable). Add docs/** to the triggers: build recompiles the
contract (a no-op pass for docs) and the required check is satisfied.
Also brings this branch up to current testnet.
---------
Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com>1 parent 05e266c commit 02153d4
12 files changed
Lines changed: 873 additions & 0 deletions
File tree
- .github/workflows
- docs
- dune-queries
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments