Skip to content

fix: resolve issues #234, #235, #236, #237 - #348

Merged
Valreb001 merged 2 commits into
Tx-wats:mainfrom
cephas360:fix/issues-234-235-236-237
Oct 19, 2026
Merged

Valreb001 merged 2 commits into
Tx-wats:mainfrom
cephas360:fix/issues-234-235-236-237

Conversation

@cephas360

@cephas360 cephas360 commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
  • FunctionCalled.match_mode Cannot Be Set From TOML #234: add match_mode field to FunctionCalled TOML repr so prefix/glob matching is reachable from config files; pass it through in the AlertRule conversion instead of hardcoding the default; add parse tests for all three modes (exact, prefix, glob); correct docs/alert-rules.md field name from 'match' to 'match_mode'

  • ${VAR} Interpolation Skips Several URL and Secret Fields #235: expand resolve_env_vars to interpolate webhooks[].url, soroban_rpc_url, and network.rpc_url; add resolve_rule_entry helper that recursively interpolates rule-level webhook_url/webhook_secret inside All/Any/Not composite rules; add per-field tests; update docs/configuration.md interpolated-fields list

  • example.toml Advertises a summary_interval_seconds Setting That Does Not Exist #236: add summary_interval_seconds to AppConfig (default 60, 0 = disabled); add default_summary_interval_seconds fn; update config/example.toml comment to note the default; add parse tests for default, zero, and custom values; document the field in docs/configuration.md top-level fields table

  • example.toml Describes the SourceAccount Example Backwards #237: fix SourceAccount example in config/example.toml — the comment said 'alert when called by anyone except the known admin' but the rule used deny=[admin] which fires only when the admin calls; remove the unnecessary All wrapper; add clear allow-vs-deny commentary explaining both semantics and how to express 'alert on everyone except X'

  • .gitignore: exclude test snapshots (*.snap, *.snap.new), IDE dirs (.idea/, .vscode/, .iml), OS artefacts (.DS_Store, Thumbs.db) and environment/secret files (.env, .env.)

Checklist

  • I have added or updated tests
  • I have updated documentation if needed
  • I have updated docs/configuration.md / README.md for any config or payload change
  • I have regenerated docs/txwatch-config.schema.json via txwatch schema if the config schema changed
  • I have added an entry under ## [Unreleased] in CHANGELOG.md
  • I have formatted the code where applicable

Notes

closes #234
closes #235
closes #236
closes #237

- Tx-wats#234: add match_mode field to FunctionCalled TOML repr so prefix/glob
  matching is reachable from config files; pass it through in the
  AlertRule conversion instead of hardcoding the default; add parse tests
  for all three modes (exact, prefix, glob); correct docs/alert-rules.md
  field name from 'match' to 'match_mode'

- Tx-wats#235: expand resolve_env_vars to interpolate webhooks[].url,
  soroban_rpc_url, and network.rpc_url; add resolve_rule_entry helper
  that recursively interpolates rule-level webhook_url/webhook_secret
  inside All/Any/Not composite rules; add per-field tests; update
  docs/configuration.md interpolated-fields list

- Tx-wats#236: add summary_interval_seconds to AppConfig (default 60, 0 =
  disabled); add default_summary_interval_seconds fn; update
  config/example.toml comment to note the default; add parse tests for
  default, zero, and custom values; document the field in
  docs/configuration.md top-level fields table

- Tx-wats#237: fix SourceAccount example in config/example.toml — the comment
  said 'alert when called by anyone except the known admin' but the rule
  used deny=[admin] which fires only when the admin calls; remove the
  unnecessary All wrapper; add clear allow-vs-deny commentary explaining
  both semantics and how to express 'alert on everyone except X'

- .gitignore: exclude test snapshots (*.snap, *.snap.new), IDE dirs
  (.idea/, .vscode/, *.iml), OS artefacts (.DS_Store, Thumbs.db) and
  environment/secret files (.env, .env.*)
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@cephas360 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Valreb001
Valreb001 merged commit 0d9fa01 into Tx-wats:main Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants