Transform BLT-Bacon to multi-chain BLT-Rewards with protocol-agnostic API#20
Draft
Transform BLT-Bacon to multi-chain BLT-Rewards with protocol-agnostic API#20
Conversation
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
…mpatibility Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
…sive documentation Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
…ion ✅ Co-authored-by: DonnieBLT <128622481+DonnieBLT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Move all bacon logic to Cloudflare Python worker
Transform BLT-Bacon to multi-chain BLT-Rewards with protocol-agnostic API
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generalizes single-chain BACON distribution to support multiple blockchain protocols (Bitcoin Runes, Solana, etc.) through a unified API gateway architecture.
Architecture
Before: Cloudflare Worker → Bitcoin Ord Server → Bitcoin Node
After: Cloudflare Worker (Gateway) → Protocol-Specific Backends → Blockchain Nodes
Backend URLs configured via JSON map:
{ "bitcoin-runes": "https://ord.example.com", "solana": "https://sol.example.com" }API Changes
New protocol-agnostic endpoints:
POST /{protocol}/send-rewards GET /{protocol}/wallet-balanceRequest format change:
{ "recipients": [ {"address": "bc1...", "amount": 10, "token": "BLT•BACON•TOKENS"} ], "fee_rate": 50, "dry_run": true }Legacy BACON endpoints (
/mainnet/send-bacon-tokens,/regtest/send-bacon-tokens) remain supported for backward compatibility.Implementation
BaconWorker→RewardsWorkerwith protocol routing and validationBACKEND_URLS(JSON map),SUPPORTED_PROTOCOLS(comma-separated list)Example
Configuration enables protocol addition without code changes:
SUPPORTED_PROTOCOLS=bitcoin-runes,solana,ethereum BACKEND_URLS='{"bitcoin-runes":"...","solana":"...","ethereum":"..."}'✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.