-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Utility][Morse Parity] Built In Revenue Share #496
Milestone
Comments
Olshansk
changed the title
[REPLACE_WITH_IDENTIFIER] Provide a descriptive title
[Utility] Built In Revenue Share
Apr 25, 2024
36 tasks
Olshansk
added
the
community
A ticket intended to potentially be picked up by a community member
label
Apr 25, 2024
Olshansk
removed
the
community
A ticket intended to potentially be picked up by a community member
label
Jul 4, 2024
Olshansk
changed the title
[Utility] Built In Revenue Share
[Utility][Morse Parity] Built In Revenue Share
Jul 4, 2024
8 tasks
14 tasks
red-0ne
added a commit
that referenced
this issue
Aug 15, 2024
## Summary This PR implements rev share feature for supplier rewards. * Adds a `Supplier.RevShare` slice property. * Adds the corresponding supplier staking configuration parser along with its tests. * Updates the tests to include the mandatory `Supplier.RevShare` property. * Includes revshare testing in the tokenomics test suite. * Updates the supplier staking config documentation _Note: ~1100LOC are protobuf autogenerated code._ ## Issue - #496 ## Type of change Select one or more: - [x] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing **Documentation changes** (only if making doc changes) - [x] `make docusaurus_start`; only needed if you make doc changes **Local Testing** (only if making code changes) - [x] **Unit Tests**: `make go_develop_and_test` - [x] **LocalNet E2E Tests**: `make test_e2e` - See [quickstart guide](https://dev.poktroll.com/developer_guide/quickstart) for instructions **PR Testing** (only if making code changes) - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. - **THIS IS VERY EXPENSIVE**, so only do it after all the reviews are complete. - Optionally run `make trigger_ci` if you want to re-trigger tests without any code changes - If tests fail, try re-running failed tests only using the GitHub UI as shown [here](https://github.com/pokt-network/poktroll/assets/1892194/607984e9-0615-4569-9452-4c730190c1d2) ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced flexible revenue sharing configurations for suppliers, allowing for detailed management of service revenue shares. - Added new fields to configuration files and structures to support default and service-specific revenue share percentages. - Implemented stricter validation for revenue share entries to ensure compliance with defined criteria. - **Bug Fixes** - Enhanced error handling related to invalid revenue shares and owner addresses in configurations. - **Tests** - Expanded test coverage to include revenue sharing logic, ensuring robust validation of configurations and expected behaviors. - Added new test cases for various scenarios, including configurations with default and service-specific revenue shares. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Daniel Olshansky <[email protected]>
okdas
pushed a commit
that referenced
this issue
Nov 14, 2024
## Summary This PR implements rev share feature for supplier rewards. * Adds a `Supplier.RevShare` slice property. * Adds the corresponding supplier staking configuration parser along with its tests. * Updates the tests to include the mandatory `Supplier.RevShare` property. * Includes revshare testing in the tokenomics test suite. * Updates the supplier staking config documentation _Note: ~1100LOC are protobuf autogenerated code._ ## Issue - #496 ## Type of change Select one or more: - [x] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [ ] Documentation - [ ] Other (specify) ## Testing **Documentation changes** (only if making doc changes) - [x] `make docusaurus_start`; only needed if you make doc changes **Local Testing** (only if making code changes) - [x] **Unit Tests**: `make go_develop_and_test` - [x] **LocalNet E2E Tests**: `make test_e2e` - See [quickstart guide](https://dev.poktroll.com/developer_guide/quickstart) for instructions **PR Testing** (only if making code changes) - [ ] **DevNet E2E Tests**: Add the `devnet-test-e2e` label to the PR. - **THIS IS VERY EXPENSIVE**, so only do it after all the reviews are complete. - Optionally run `make trigger_ci` if you want to re-trigger tests without any code changes - If tests fail, try re-running failed tests only using the GitHub UI as shown [here](https://github.com/pokt-network/poktroll/assets/1892194/607984e9-0615-4569-9452-4c730190c1d2) ## Sanity Checklist - [x] I have tested my changes using the available tooling - [x] I have commented my code - [x] I have performed a self-review of my own code; both comments & source code - [ ] I create and reference any new tickets, if applicable - [ ] I have left TODOs throughout the codebase, if applicable <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Introduced flexible revenue sharing configurations for suppliers, allowing for detailed management of service revenue shares. - Added new fields to configuration files and structures to support default and service-specific revenue share percentages. - Implemented stricter validation for revenue share entries to ensure compliance with defined criteria. - **Bug Fixes** - Enhanced error handling related to invalid revenue shares and owner addresses in configurations. - **Tests** - Expanded test coverage to include revenue sharing logic, ensuring robust validation of configurations and expected behaviors. - Added new test cases for various scenarios, including configurations with default and service-specific revenue shares. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Daniel Olshansky <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Objective
Feature parity with Supplier Revenue Share from Morse.
Origin Document
pocket nodes stakeNew --help
. For background, the implementor should runpocket nodes stakeNew --help
andpocket nodes stake --help
Goals
RewardDelegators
param in pocket-coreDeliverables
poktrolld
(if necessary) to support updating the revenue sharing governance parameterMakefile
targets to easily trigger (on LocalNet) and test (e2e) modifying / updating / testing different revenue share configurations TTM valuesNon-goals / Non-deliverables
Estimated Days of Work
3 days
Disclaimer: This is the total projected number of estimated hours to completion & merge. The owner of this tickets is expected to use this GitHub issue to communicate with the core protocol team along the way, with update & feedback for each deliverable throughout the duration of this work._
Creator: @Olshansk
Co-Owners: @moatus
The text was updated successfully, but these errors were encountered: