silvercents demo#9
Open
sameezy667 wants to merge 2 commits intoBetterMoneyLabs:masterfrom
Open
Conversation
- Add silvercents.rs module with complete CLI implementation - Implement issue/redeem commands for silver-backed notes - Add denomination support: Silver Dimes (1 ERG) and Quarters (2.5 ERG) - Show balance with detailed breakdown by vendor/customer - Create interactive demo showing complete transaction flow - Add comprehensive SILVERCENTS_DEMO.md documentation - Map constitutional silver coins (1946-1964) to ERG values - Calculate silver content in troy ounces (0.0723 oz per dime) - Integrate with existing Basis Tracker API - Support vendor-customer credit relationships - Demonstrate offchain efficiency (zero fees) with on-chain settlement
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.
Overview
Adds a complete SilverCents demo for Basis: a silver-backed offchain-cash demonstration (dimes & quarters).
Provides a CLI module, interactive demo, balance/issue/redeem commands, and full documentation + quickstart.
What I changed
silvercents.rs — new CLI module (issue/redeem/balance/info/demo)
mod.rs — register silvercents command
main.rs — wire silvercents into CLI dispatch
SILVERCENTS_DEMO.md — comprehensive design, usage, and security notes
SILVERCENTS_QUICKSTART.md — 5-minute quick start guide
Why
Implements the requested demo of Basis-backed SilverCents (physical silver ↔ on-chain tokens) so maintainers and contributors can try issuance and redemption flows end-to-end.
Demonstrates offchain efficiency, maturation rules (1 week), and how vendors/customers interact with the tracker.
How to test
Build project:
Start tracker server:
Run interactive demo:
Issue a note (as vendor) and check balances:
Redeem (as customer):
Notes & next steps
This is a proof-of-concept demo. Real-world deployment should include audits, optional escrow policies for physical coin custody, and integration with vendor redemption UX (QR codes / receipts).
Suggested follow-ups: automated tests for SilverCents flows, QR/receipt generation, and optional on-chain token mapping for serialized SilverCents tokens