Skip to content

feat(x/provider): withdraw funds from consumer pool address at each block#10

Open
Pantani wants to merge 27 commits intomainfrom
Pantani/feat/incentive-payment
Open

feat(x/provider): withdraw funds from consumer pool address at each block#10
Pantani wants to merge 27 commits intomainfrom
Pantani/feat/incentive-payment

Conversation

@Pantani
Copy link
Contributor

@Pantani Pantani commented Jan 28, 2026

close #9

@Pantani Pantani self-assigned this Jan 28, 2026
@Pantani Pantani marked this pull request as ready for review February 3, 2026 21:34
@Pantani Pantani marked this pull request as draft February 5, 2026 16:56
@Pantani Pantani marked this pull request as ready for review February 5, 2026 21:05
@Pantani Pantani requested a review from clockworkgr as a code owner February 5, 2026 21:05
Copy link
Contributor

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

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

Some small comments but overall LGTM, thanks !

…e-payment

# Conflicts:
#	x/vaas/provider/types/provider.pb.go
@Pantani Pantani removed the request for review from giuliostramondo February 18, 2026 15:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements per-block fee withdrawal from consumer funding accounts and distribution to provider validators, adding a new fees_per_block parameter to configure the charge (Issue #9).

Changes:

  • Add fees_per_block to provider params (proto + Go types + validation) and update related tests.
  • Add per-block fee collection from consumers and proportional distribution to bonded validators.
  • Extend expected keeper interfaces + mocks for new staking/bank methods used by fee logic.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
x/vaas/types/expected_keepers.go Extends staking/bank keeper interfaces for total power, address codec, and module→account sends.
proto/vaas/provider/v1/provider.proto Adds fees_per_block param to proto schema.
x/vaas/provider/types/provider.pb.go Regenerated protobuf output reflecting new params field.
x/vaas/provider/types/params.go Adds default fees, wires param through constructors/defaults, and validates FeesPerBlock.
x/vaas/provider/types/params_test.go Updates params validation tests to include fees and adds a zero-fee invalid case.
x/vaas/provider/types/genesis_test.go Updates genesis tests to pass the new param.
x/vaas/provider/module.go Calls fee collection + distribution in BeginBlock.
x/vaas/provider/keeper/params.go Exposes GetFeesPerBlock from keeper params.
x/vaas/provider/keeper/params_test.go Updates keeper params test to include fees.
x/vaas/provider/keeper/fees.go New keeper logic to collect fees from consumers and distribute to validators.
x/vaas/provider/keeper/fees_test.go New unit tests for fee collection and distribution.
testutil/keeper/mocks.go Regenerates mocks for newly added expected keeper methods.
.gitignore Formatting-only change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Pantani and others added 5 commits March 2, 2026 17:03
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

x/provider: withdraw funds from consumer pool address at each block

3 participants