Skip to content

service that manages TAP escrow balances for the gateway

License

Notifications You must be signed in to change notification settings

edgeandnode/tap-escrow-manager

Repository files navigation

tap-escrow-manager

This service maintains TAP escrow balances on behalf of a gateway sender.

The following data sources are monitored to guide the allocation of GRT into the TAP Escrow contract:

  • Graph Network Subgraph
  • TAP Subgraph
  • The gateway's Kafka topic for indexer query reports, to account for outstanding debts from receipts sent to indexers
    • Note: Kafka messages are processed for the past 28 days (Escrow withdrawEscrowThawingPeriod). Daily aggregations are stored to a file to avoid reprocessing on restart.

Configuration

Configuration options are set via a single JSON file. The structure of the file is defined in src/config.rs.

Logs

Log levels are controlled by the RUST_LOG environment variable (details).

example: RUST_LOG=info,tap_escrow_manager=debug cargo run -- config.json

Useful Commands

  • rpk group seek tap-escrow-manager-mainnet --to $unix_timestamp

About

service that manages TAP escrow balances for the gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published