Skip to content

Implement payment revenue#3714

Merged
jolestar merged 5 commits into
mainfrom
payment_revenue
Sep 24, 2025
Merged

Implement payment revenue#3714
jolestar merged 5 commits into
mainfrom
payment_revenue

Conversation

@jolestar

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Sep 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rooch-portal-v2.1 Ready Ready Preview Comment Sep 24, 2025 2:05am
test-portal Ready Ready Preview Comment Sep 24, 2025 2:05am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rooch Ignored Ignored Preview Sep 24, 2025 2:05am

@jolestar jolestar requested review from Copilot and removed request for baichuan3, pause125 and wow-sven September 23, 2025 12:49
@github-actions

github-actions Bot commented Sep 23, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI 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.

Pull Request Overview

This PR introduces a payment revenue management system that separates revenue earned through payment channels from principal funds. The implementation creates a dedicated revenue hub for tracking and managing revenue separately from regular payment hubs.

  • Adds a new payment_revenue module for managing revenue separately from principal funds
  • Integrates payment revenue tracking into existing payment channel operations
  • Provides CLI commands for querying and withdrawing revenue

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
frameworks/rooch-framework/sources/payment_revenue.move New module implementing revenue management with hubs, deposit/withdrawal, and source tracking
frameworks/rooch-framework/sources/payment_channel.move Updated to deposit payments as revenue instead of regular hub deposits
frameworks/rooch-framework/doc/payment_revenue.md Auto-generated documentation for the new payment revenue module
frameworks/rooch-framework/doc/payment_channel.md Updated documentation to reflect payment revenue integration
frameworks/rooch-framework/doc/README.md Added payment_revenue module to documentation index
crates/testsuite/features/payment_channel.feature Updated test scenarios to use revenue management instead of payment hubs
crates/rooch/src/commands/payment_channel/mod.rs Added query-revenue and withdraw-revenue CLI commands
crates/rooch/src/commands/payment_channel/commands/withdraw_revenue.rs New CLI command for withdrawing revenue
crates/rooch/src/commands/payment_channel/commands/query_revenue.rs New CLI command for querying revenue balances
crates/rooch/src/commands/payment_channel/commands/mod.rs Added new command module exports
crates/rooch/src/commands/payment_channel/commands/finalize_cancellation.rs Updated to use DID-based transaction signing
crates/rooch/src/commands/payment_channel/commands/dispute.rs Updated to use DID-based transaction signing
crates/rooch/src/commands/payment_channel/commands/close.rs Updated to use DID-based transaction signing
crates/rooch-types/src/framework/payment_revenue.rs Rust type bindings for the payment revenue module
crates/rooch-types/src/framework/mod.rs Added payment_revenue module export

Comment thread frameworks/rooch-framework/sources/payment_revenue.move
Comment thread frameworks/rooch-framework/sources/payment_revenue.move Outdated
Comment thread frameworks/rooch-framework/sources/payment_revenue.move Outdated
@github-actions

github-actions Bot commented Sep 23, 2025

Copy link
Copy Markdown

Docker images for this PR are available:

  • ghcr.io/rooch-network/rooch:pr-3714
  • ghcr.io/rooch-network/rooch:pr-3714-baf5dea
  • ghcr.io/rooch-network/rooch:pr-3714_debug
  • ghcr.io/rooch-network/rooch:pr-3714-baf5dea_debug

Pull commands:

  • docker pull ghcr.io/rooch-network/rooch:pr-3714
  • docker pull ghcr.io/rooch-network/rooch:pr-3714-baf5dea
  • docker pull ghcr.io/rooch-network/rooch:pr-3714_debug
  • docker pull ghcr.io/rooch-network/rooch:pr-3714-baf5dea_debug

@jolestar jolestar merged commit 2656355 into main Sep 24, 2025
19 of 21 checks passed
@jolestar jolestar deleted the payment_revenue branch September 24, 2025 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants