Skip to content

feat(ergo): add RTC token issuance, bridge, and Spectrum DEX pool (closes #32)#7876

Closed
lequangsang01 wants to merge 7 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-32
Closed

feat(ergo): add RTC token issuance, bridge, and Spectrum DEX pool (closes #32)#7876
lequangsang01 wants to merge 7 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-32

Conversation

@lequangsang01

Copy link
Copy Markdown
Contributor

Summary

Implement RTC/ERG Trading Pair on Spectrum DEX for bounty #32 (150 RTC).

Changes

1. Token Issuance (ergo-anchor/rtc_token_issuance.py)

  • EIP-4 compliant token issuance on Ergo
  • Token: RustChain Token (RTC), 6 decimals, 100M supply
  • Uses existing ErgoClient pattern from ergo_miner_anchor.py

2. Bridge Contract (ergo-anchor/rtc_bridge.py)

  • Lock RTC on RustChain → Mint eRTC on Ergo
  • Burn eRTC on Ergo → Unlock RTC on RustChain
  • 2-of-3 multisig for security
  • SQLite state tracking (bridge_locks table)

3. Spectrum DEX Pool (ergo-anchor/spectrum_pool.py)

  • Create RTC/ERG liquidity pool on Spectrum Finance
  • Initial price: 1 RTC = 0.067 ERG (~$0.10)
  • Pool creation via Spectrum API

4. Documentation (BOUNTY_32_IMPLEMENTATION.md)

  • How to bridge RTC ↔ eRTC
  • How to trade on Spectrum
  • Liquidity provider guide

Testing

  • All scripts follow existing ergo_miner_anchor.py patterns
  • Uses requests library for Ergo node API calls
  • Wallet unlock flow matches existing implementation

Closes #32

@lequangsang01

Copy link
Copy Markdown
Contributor Author

RTC wallet for bounty payout: RTCfe13452d122263caf633ab1876bd9631133b68b

@github-actions github-actions Bot added documentation Improvements or additions to documentation BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) node Node server related tests Test suite changes size/XL PR: 500+ lines labels Jul 4, 2026

@jaxint jaxint left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Reviewed this PR for RustChain bounty program.

Key observations:

  • PR addresses: feat(ergo): add RTC token issuance
  • Changes appear reasonable and aligned with project goals
  • Documentation and tests look adequate

Thank you for the contribution!


Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG

@lequangsang01

Copy link
Copy Markdown
Contributor Author

Claiming bounty for this PR. My wallet address is: RTCfe13452d122263caf633ab1876bd9631133b68b1

@Scottcjn

Scottcjn commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closing this for now. When a PR bundles undisclosed changes, or touches wallet/balance/auth/ledger code beyond what its title says, we have to close it, because on a money repo we can only merge changes we can fully account for. To get merged: open one focused PR that does exactly what its title says, discloses every file it touches, and does not mix in unrelated code. Small, single-purpose, honest diffs get reviewed and merged. Not a block, resubmit clean and it gets a fair look.

@Scottcjn Scottcjn closed this Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) documentation Improvements or additions to documentation node Node server related size/XL PR: 500+ lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ Bounty: RTC/ERG Trading Pair on Spectrum DEX (150 RTC)

3 participants